public class OfferingTransaction
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the metadata of an offering transaction.
Modifier and Type | Field and Description |
---|---|
private MonetaryAmount |
cost
The cost of an offering transaction.
|
private java.util.Date |
createdOn
The date on which an offering transaction was created.
|
private OfferingStatus |
offeringStatus
The status of an offering transaction.
|
private java.lang.String |
transactionId
The transaction ID of the offering transaction.
|
Constructor and Description |
---|
OfferingTransaction() |
Modifier and Type | Method and Description |
---|---|
OfferingTransaction |
clone() |
boolean |
equals(java.lang.Object obj) |
MonetaryAmount |
getCost()
The cost of an offering transaction.
|
java.util.Date |
getCreatedOn()
The date on which an offering transaction was created.
|
OfferingStatus |
getOfferingStatus()
The status of an offering transaction.
|
java.lang.String |
getTransactionId()
The transaction ID of the offering transaction.
|
int |
hashCode() |
void |
setCost(MonetaryAmount cost)
The cost of an offering transaction.
|
void |
setCreatedOn(java.util.Date createdOn)
The date on which an offering transaction was created.
|
void |
setOfferingStatus(OfferingStatus offeringStatus)
The status of an offering transaction.
|
void |
setTransactionId(java.lang.String transactionId)
The transaction ID of the offering transaction.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
OfferingTransaction |
withCost(MonetaryAmount cost)
The cost of an offering transaction.
|
OfferingTransaction |
withCreatedOn(java.util.Date createdOn)
The date on which an offering transaction was created.
|
OfferingTransaction |
withOfferingStatus(OfferingStatus offeringStatus)
The status of an offering transaction.
|
OfferingTransaction |
withTransactionId(java.lang.String transactionId)
The transaction ID of the offering transaction.
|
private OfferingStatus offeringStatus
The status of an offering transaction.
private java.lang.String transactionId
The transaction ID of the offering transaction.
private java.util.Date createdOn
The date on which an offering transaction was created.
private MonetaryAmount cost
The cost of an offering transaction.
public void setOfferingStatus(OfferingStatus offeringStatus)
The status of an offering transaction.
offeringStatus
- The status of an offering transaction.public OfferingStatus getOfferingStatus()
The status of an offering transaction.
public OfferingTransaction withOfferingStatus(OfferingStatus offeringStatus)
The status of an offering transaction.
offeringStatus
- The status of an offering transaction.public void setTransactionId(java.lang.String transactionId)
The transaction ID of the offering transaction.
transactionId
- The transaction ID of the offering transaction.public java.lang.String getTransactionId()
The transaction ID of the offering transaction.
public OfferingTransaction withTransactionId(java.lang.String transactionId)
The transaction ID of the offering transaction.
transactionId
- The transaction ID of the offering transaction.public void setCreatedOn(java.util.Date createdOn)
The date on which an offering transaction was created.
createdOn
- The date on which an offering transaction was created.public java.util.Date getCreatedOn()
The date on which an offering transaction was created.
public OfferingTransaction withCreatedOn(java.util.Date createdOn)
The date on which an offering transaction was created.
createdOn
- The date on which an offering transaction was created.public void setCost(MonetaryAmount cost)
The cost of an offering transaction.
cost
- The cost of an offering transaction.public MonetaryAmount getCost()
The cost of an offering transaction.
public OfferingTransaction withCost(MonetaryAmount cost)
The cost of an offering transaction.
cost
- The cost of an offering transaction.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public OfferingTransaction clone()
clone
in class java.lang.Object