LetterOfCredit
LetterOfCredit
import com.owlike.genson.annotation.JsonProperty;
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;
import java.util.Objects;
@DataType()
public final class LetterOfCredit {
@Property()
private final String id;
@Property()
private final String expiryDate;
@Property()
private final String buyer;
@Property()
private final String bank;
@Property()
private final String seller;
@Property()
private final double amount;
@Property()
private String status;
@Override
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
@Override
public int hashCode() {
return Objects.hash(getId(), getExpiryDate(), getBuyer(), getBank(), getSeller());
}
@Override
public String toString() {
return this.getClass().getSimpleName() + "@" + Integer.toHexString(hashCode())
+ " [id=" + id + ", expiryDate=" + expiryDate + ", buyer=" + buyer + ", bank=" +
bank + ", seller=" + seller
+ ", amount=" + amount + ", status=" + status + "]";
}
}