Class CustodyOrder


  • public final class CustodyOrder
    extends java.lang.Object
    Record containing custody order.
    • Constructor Summary

      Constructors 
      Constructor Description
      CustodyOrder​(java.lang.String id, java.lang.String type, java.lang.String status, java.math.BigDecimal amount, boolean feeInAmount, java.math.BigDecimal estimatedFees, java.math.BigDecimal fees, java.util.ArrayList<java.lang.String> fromAddresses, java.lang.String fromAccountId, java.lang.String fromUserId, java.lang.String fromUserIntegratorId, java.lang.String toAddress, java.lang.String toAccountId, java.lang.String toUserId, java.lang.String toUserIntegratorId, int createdAt, int updatedAt)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.math.BigDecimal getAmount()
      Custody order amount, null if not known yet.
      int getCreatedAt()
      Epoch timestamp when custody order was created.
      java.math.BigDecimal getEstimatedFees()
      Estimated custody order fees.
      boolean getFeeInAmount()
      Flag indicating if fees are included in order amount.
      java.math.BigDecimal getFees()
      Actual custody order fees, null if not known yet.
      java.lang.String getFromAccountId()
      Debit Account identifier, if applicable.
      java.util.ArrayList<java.lang.String> getFromAddresses()
      Crypto addresses from which funds where received, if any.
      java.lang.String getFromUserId()
      Debit {@link Account's Account's} user identifier, if applicable.
      java.lang.String getFromUserIntegratorId()
      Debit {@link Account's Account's} user integrator identifier, if applicable.
      java.lang.String getId()
      Identifier.
      java.lang.String getStatus()
      Transaction status.
      java.lang.String getToAccountId()
      Credit Account identifier, if applicable.
      java.lang.String getToAddress()
      Destination crypto address, if applicable.
      java.lang.String getToUserId()
      Credit {@link Account's Account's} user identifier, if applicable.
      java.lang.String getToUserIntegratorId()
      Credit {@link Account's Account's} user integrator identifier, if applicable.
      java.lang.String getType()
      Custody order type.
      int getUpdatedAt()
      Epoch timestamp when custody order was updated.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CustodyOrder

        public CustodyOrder​(java.lang.String id,
                            java.lang.String type,
                            java.lang.String status,
                            java.math.BigDecimal amount,
                            boolean feeInAmount,
                            java.math.BigDecimal estimatedFees,
                            java.math.BigDecimal fees,
                            java.util.ArrayList<java.lang.String> fromAddresses,
                            java.lang.String fromAccountId,
                            java.lang.String fromUserId,
                            java.lang.String fromUserIntegratorId,
                            java.lang.String toAddress,
                            java.lang.String toAccountId,
                            java.lang.String toUserId,
                            java.lang.String toUserIntegratorId,
                            int createdAt,
                            int updatedAt)
    • Method Detail

      • getId

        public java.lang.String getId()
        Identifier.
      • getType

        public java.lang.String getType()
        Custody order type.
        See Also:
        CustodyOrderType
      • getStatus

        public java.lang.String getStatus()
        Transaction status.
        See Also:
        CustodyOrder
      • getAmount

        public java.math.BigDecimal getAmount()
        Custody order amount, null if not known yet.
      • getFeeInAmount

        public boolean getFeeInAmount()
        Flag indicating if fees are included in order amount.
      • getEstimatedFees

        public java.math.BigDecimal getEstimatedFees()
        Estimated custody order fees.
      • getFees

        public java.math.BigDecimal getFees()
        Actual custody order fees, null if not known yet.
      • getFromAddresses

        public java.util.ArrayList<java.lang.String> getFromAddresses()
        Crypto addresses from which funds where received, if any.
      • getFromAccountId

        public java.lang.String getFromAccountId()
        Debit Account identifier, if applicable.
      • getFromUserId

        public java.lang.String getFromUserId()
        Debit {@link Account's Account's} user identifier, if applicable.
      • getFromUserIntegratorId

        public java.lang.String getFromUserIntegratorId()
        Debit {@link Account's Account's} user integrator identifier, if applicable.
      • getToAddress

        public java.lang.String getToAddress()
        Destination crypto address, if applicable.
      • getToAccountId

        public java.lang.String getToAccountId()
        Credit Account identifier, if applicable.
      • getToUserId

        public java.lang.String getToUserId()
        Credit {@link Account's Account's} user identifier, if applicable.
      • getToUserIntegratorId

        public java.lang.String getToUserIntegratorId()
        Credit {@link Account's Account's} user integrator identifier, if applicable.
      • getCreatedAt

        public int getCreatedAt()
        Epoch timestamp when custody order was created.
      • getUpdatedAt

        public int getUpdatedAt()
        Epoch timestamp when custody order was updated.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object