Package money.zumo.zumokit
Class ComposedTransaction
- java.lang.Object
-
- money.zumo.zumokit.ComposedTransaction
-
-
Constructor Summary
Constructors Constructor Description ComposedTransaction(java.lang.String type, Account account, java.lang.String destination, java.math.BigDecimal amount, java.math.BigDecimal fee, java.lang.String nonce, java.lang.String signedTransaction, java.lang.String custodyOrderId, java.lang.String data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)AccountgetAccount()Account the composed transaction belongs to.java.math.BigDecimalgetAmount()Transaction amount in account currency.java.lang.StringgetCustodyOrderId()Custody order id for custody withdraw transaction, null otherwise.java.lang.StringgetData()Optional transaction data if available.java.lang.StringgetDestination()Transaction destination, i.e.java.math.BigDecimalgetFee()Maximum transaction fee.java.lang.StringgetNonce()Transaction nonce to prevent double spend.java.lang.StringgetSignedTransaction()Signed transaction for a crypto transaction, null otherwise.java.lang.StringgetType()Transaction type, 'FIAT', 'CRYPTO', 'NOMINATED' or 'CUSTODY-WITHDRAW'.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
ComposedTransaction
public ComposedTransaction(java.lang.String type, Account account, java.lang.String destination, java.math.BigDecimal amount, java.math.BigDecimal fee, java.lang.String nonce, java.lang.String signedTransaction, java.lang.String custodyOrderId, java.lang.String data)
-
-
Method Detail
-
getType
public java.lang.String getType()
Transaction type, 'FIAT', 'CRYPTO', 'NOMINATED' or 'CUSTODY-WITHDRAW'.- See Also:
TransactionType
-
getAccount
public Account getAccount()
Account the composed transaction belongs to.
-
getDestination
public java.lang.String getDestination()
Transaction destination, i.e. destination address for crypto transactions or user id for fiat transactions.
-
getAmount
public java.math.BigDecimal getAmount()
Transaction amount in account currency.
-
getFee
public java.math.BigDecimal getFee()
Maximum transaction fee.
-
getNonce
public java.lang.String getNonce()
Transaction nonce to prevent double spend.
-
getSignedTransaction
public java.lang.String getSignedTransaction()
Signed transaction for a crypto transaction, null otherwise.
-
getCustodyOrderId
public java.lang.String getCustodyOrderId()
Custody order id for custody withdraw transaction, null otherwise.
-
getData
public java.lang.String getData()
Optional transaction data if available.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-