Class TransactionAmount


  • public final class TransactionAmount
    extends java.lang.Object
    Record containing transaction amount details.
    • Constructor Summary

      Constructors 
      Constructor Description
      TransactionAmount​(java.lang.String direction, java.lang.String userId, java.lang.String userIntegratorId, java.lang.String accountId, java.math.BigDecimal amount, java.util.HashMap<java.lang.String,​java.lang.Double> fiatAmount, java.lang.String address, boolean isChange, java.lang.String accountNumber, java.lang.String sortCode, java.lang.String bic, java.lang.String iban)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getAccountId()
      Account id or null if it is external user.
      java.lang.String getAccountNumber()
      Fiat account number or null.
      java.lang.String getAddress()
      Blockchain address or null.
      java.math.BigDecimal getAmount()
      Amount in transaction currency or null if transaction is Ethereum contract deploy.
      java.lang.String getBic()
      Fiat account BIC or null.
      java.lang.String getDirection()
      Direction, either 'SENT' or 'RECEIVED'.
      java.util.HashMap<java.lang.String,​java.lang.Double> getFiatAmount()
      Amount in fiat currencies at the time of the transaction submission.
      java.lang.String getIban()
      Fiat account IBAN or null.
      boolean getIsChange()
      Indicates if this amount represents change amount.
      java.lang.String getSortCode()
      Fiat account sort code or null.
      java.lang.String getUserId()
      User id or null if it is external user.
      java.lang.String getUserIntegratorId()
      User integrator id or null if it is external user.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • TransactionAmount

        public TransactionAmount​(java.lang.String direction,
                                 java.lang.String userId,
                                 java.lang.String userIntegratorId,
                                 java.lang.String accountId,
                                 java.math.BigDecimal amount,
                                 java.util.HashMap<java.lang.String,​java.lang.Double> fiatAmount,
                                 java.lang.String address,
                                 boolean isChange,
                                 java.lang.String accountNumber,
                                 java.lang.String sortCode,
                                 java.lang.String bic,
                                 java.lang.String iban)
    • Method Detail

      • getDirection

        public java.lang.String getDirection()
        Direction, either 'SENT' or 'RECEIVED'.
        See Also:
        TransactionDirection
      • getUserId

        public java.lang.String getUserId()
        User id or null if it is external user.
      • getUserIntegratorId

        public java.lang.String getUserIntegratorId()
        User integrator id or null if it is external user.
      • getAccountId

        public java.lang.String getAccountId()
        Account id or null if it is external user.
      • getAmount

        public java.math.BigDecimal getAmount()
        Amount in transaction currency or null if transaction is Ethereum contract deploy.
      • getFiatAmount

        public java.util.HashMap<java.lang.String,​java.lang.Double> getFiatAmount()
        Amount in fiat currencies at the time of the transaction submission.
        See Also:
        CurrencyCode
      • getAddress

        public java.lang.String getAddress()
        Blockchain address or null.
      • getIsChange

        public boolean getIsChange()
        Indicates if this amount represents change amount.
      • getAccountNumber

        public java.lang.String getAccountNumber()
        Fiat account number or null.
      • getSortCode

        public java.lang.String getSortCode()
        Fiat account sort code or null.
      • getBic

        public java.lang.String getBic()
        Fiat account BIC or null.
      • getIban

        public java.lang.String getIban()
        Fiat account IBAN or null.
      • 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