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 boolean
equals(java.lang.Object obj)
Account
getAccount()
Account the composed transaction belongs to.java.math.BigDecimal
getAmount()
Transaction amount in account currency.java.lang.String
getCustodyOrderId()
Custody order id for custody withdraw transaction, null otherwise.java.lang.String
getData()
Optional transaction data if available.java.lang.String
getDestination()
Transaction destination, i.e.java.math.BigDecimal
getFee()
Maximum transaction fee.java.lang.String
getNonce()
Transaction nonce to prevent double spend.java.lang.String
getSignedTransaction()
Signed transaction for a crypto transaction, null otherwise.java.lang.String
getType()
Transaction type, 'FIAT', 'CRYPTO', 'NOMINATED' or 'CUSTODY-WITHDRAW'.int
hashCode()
java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-