Class WalletTransaction


  • public class WalletTransaction
    extends java.lang.Object
    WalletTransaction

    A transaction that funds or deducts from the wallet.

    • Constructor Detail

      • WalletTransaction

        public WalletTransaction​(java.lang.String walletID,
                                 java.lang.String transactionID,
                                 WalletTransactionType transactionType,
                                 WalletTransactionSourceType sourceType,
                                 java.lang.String sourceID,
                                 WalletTransactionStatus status,
                                 java.lang.String memo,
                                 java.time.OffsetDateTime createdOn,
                                 java.util.Optional<java.time.OffsetDateTime> completedOn,
                                 java.lang.String currency,
                                 long grossAmount,
                                 java.lang.String grossAmountDecimal,
                                 long fee,
                                 java.util.Optional<? extends java.util.List<java.lang.String>> feeIDs,
                                 java.lang.String feeDecimal,
                                 long netAmount,
                                 java.lang.String netAmountDecimal,
                                 java.util.Optional<java.lang.Long> availableBalance,
                                 java.util.Optional<java.lang.String> availableBalanceDecimal,
                                 java.util.Optional<java.lang.String> sweepID)
      • WalletTransaction

        public WalletTransaction​(java.lang.String walletID,
                                 java.lang.String transactionID,
                                 WalletTransactionType transactionType,
                                 WalletTransactionSourceType sourceType,
                                 java.lang.String sourceID,
                                 WalletTransactionStatus status,
                                 java.lang.String memo,
                                 java.time.OffsetDateTime createdOn,
                                 java.lang.String currency,
                                 long grossAmount,
                                 java.lang.String grossAmountDecimal,
                                 long fee,
                                 java.lang.String feeDecimal,
                                 long netAmount,
                                 java.lang.String netAmountDecimal)
    • Method Detail

      • walletID

        public java.lang.String walletID()
      • transactionID

        public java.lang.String transactionID()
      • sourceID

        public java.lang.String sourceID()
        The ID of the Moov object to which this transaction is related.
      • memo

        public java.lang.String memo()
        Detailed description of the transaction.
      • createdOn

        public java.time.OffsetDateTime createdOn()
      • completedOn

        public java.util.Optional<java.time.OffsetDateTime> completedOn()
      • currency

        public java.lang.String currency()
        A 3-letter ISO 4217 currency code.
      • grossAmount

        public long grossAmount()
        The total transaction amount. The amount is in the smallest unit of the specified currency. In USD this is cents, for example, $12.04 is 1204 and $0.99 is 99.
      • grossAmountDecimal

        public java.lang.String grossAmountDecimal()
        The total transaction amount. Same as `grossAmount`, but a decimal-formatted numerical string that represents up to 9 decimal place precision. In USD for example, 12.987654321 is $12.987654321 and 0.9987634521 is $0.9987634521.
      • fee

        public long fee()
        Total fees paid for the transaction. The value is in the smallest unit of the specified currency. In USD this is cents, for example, $12.04 is 1204 and $0.99 is 99.
      • feeIDs

        public java.util.Optional<java.util.List<java.lang.String>> feeIDs()
        The IDs of the fees paid for the transaction.
      • feeDecimal

        public java.lang.String feeDecimal()
        Total fees paid for the transaction. Same as `fee`, but a decimal-formatted numerical string that represents up to 9 decimal place precision. In USD for example, 12.987654321 is $12.987654321 and 0.9987634521 is $0.9987634521.
      • netAmount

        public long netAmount()
        Net amount is the gross amount less fees paid, and the amount that affects the wallet's balance. The amount is in the smallest unit of the specified currency. In USD this is cents, for example, $12.04 is 1204 and $0.99 is 99.
      • netAmountDecimal

        public java.lang.String netAmountDecimal()
        Net amount is the gross amount less fees paid, and the amount that affects the wallet's balance. Same as `netAmount`, but a decimal-formatted numerical string that represents up to 9 decimal place precision. In USD for example, 12.987654321 is $12.987654321 and 0.9987634521 is $0.9987634521.
      • availableBalance

        public java.util.Optional<java.lang.Long> availableBalance()
        The wallet's total available balance after recording a completed transaction. The value is in the smallest unit of the specified currency. In USD this is cents, for example, $12.04 is 1204 and $0.99 is 99.
      • availableBalanceDecimal

        public java.util.Optional<java.lang.String> availableBalanceDecimal()
        The wallet's total available balance after recording a completed transaction. Same as `availableBalance`, but a decimal-formatted numerical string that represents up to 9 decimal place precision. In USD for example, 12.987654321 is $12.987654321 and 0.9987634521 is $0.9987634521.
      • sweepID

        public java.util.Optional<java.lang.String> sweepID()
      • withWalletID

        public WalletTransaction withWalletID​(java.lang.String walletID)
      • withTransactionID

        public WalletTransaction withTransactionID​(java.lang.String transactionID)
      • withSourceID

        public WalletTransaction withSourceID​(java.lang.String sourceID)
        The ID of the Moov object to which this transaction is related.
      • withMemo

        public WalletTransaction withMemo​(java.lang.String memo)
        Detailed description of the transaction.
      • withCreatedOn

        public WalletTransaction withCreatedOn​(java.time.OffsetDateTime createdOn)
      • withCompletedOn

        public WalletTransaction withCompletedOn​(java.time.OffsetDateTime completedOn)
      • withCompletedOn

        public WalletTransaction withCompletedOn​(java.util.Optional<java.time.OffsetDateTime> completedOn)
      • withCurrency

        public WalletTransaction withCurrency​(java.lang.String currency)
        A 3-letter ISO 4217 currency code.
      • withGrossAmount

        public WalletTransaction withGrossAmount​(long grossAmount)
        The total transaction amount. The amount is in the smallest unit of the specified currency. In USD this is cents, for example, $12.04 is 1204 and $0.99 is 99.
      • withGrossAmountDecimal

        public WalletTransaction withGrossAmountDecimal​(java.lang.String grossAmountDecimal)
        The total transaction amount. Same as `grossAmount`, but a decimal-formatted numerical string that represents up to 9 decimal place precision. In USD for example, 12.987654321 is $12.987654321 and 0.9987634521 is $0.9987634521.
      • withFee

        public WalletTransaction withFee​(long fee)
        Total fees paid for the transaction. The value is in the smallest unit of the specified currency. In USD this is cents, for example, $12.04 is 1204 and $0.99 is 99.
      • withFeeIDs

        public WalletTransaction withFeeIDs​(java.util.List<java.lang.String> feeIDs)
        The IDs of the fees paid for the transaction.
      • withFeeIDs

        public WalletTransaction withFeeIDs​(java.util.Optional<? extends java.util.List<java.lang.String>> feeIDs)
        The IDs of the fees paid for the transaction.
      • withFeeDecimal

        public WalletTransaction withFeeDecimal​(java.lang.String feeDecimal)
        Total fees paid for the transaction. Same as `fee`, but a decimal-formatted numerical string that represents up to 9 decimal place precision. In USD for example, 12.987654321 is $12.987654321 and 0.9987634521 is $0.9987634521.
      • withNetAmount

        public WalletTransaction withNetAmount​(long netAmount)
        Net amount is the gross amount less fees paid, and the amount that affects the wallet's balance. The amount is in the smallest unit of the specified currency. In USD this is cents, for example, $12.04 is 1204 and $0.99 is 99.
      • withNetAmountDecimal

        public WalletTransaction withNetAmountDecimal​(java.lang.String netAmountDecimal)
        Net amount is the gross amount less fees paid, and the amount that affects the wallet's balance. Same as `netAmount`, but a decimal-formatted numerical string that represents up to 9 decimal place precision. In USD for example, 12.987654321 is $12.987654321 and 0.9987634521 is $0.9987634521.
      • withAvailableBalance

        public WalletTransaction withAvailableBalance​(long availableBalance)
        The wallet's total available balance after recording a completed transaction. The value is in the smallest unit of the specified currency. In USD this is cents, for example, $12.04 is 1204 and $0.99 is 99.
      • withAvailableBalance

        public WalletTransaction withAvailableBalance​(java.util.Optional<java.lang.Long> availableBalance)
        The wallet's total available balance after recording a completed transaction. The value is in the smallest unit of the specified currency. In USD this is cents, for example, $12.04 is 1204 and $0.99 is 99.
      • withAvailableBalanceDecimal

        public WalletTransaction withAvailableBalanceDecimal​(java.lang.String availableBalanceDecimal)
        The wallet's total available balance after recording a completed transaction. Same as `availableBalance`, but a decimal-formatted numerical string that represents up to 9 decimal place precision. In USD for example, 12.987654321 is $12.987654321 and 0.9987634521 is $0.9987634521.
      • withAvailableBalanceDecimal

        public WalletTransaction withAvailableBalanceDecimal​(java.util.Optional<java.lang.String> availableBalanceDecimal)
        The wallet's total available balance after recording a completed transaction. Same as `availableBalance`, but a decimal-formatted numerical string that represents up to 9 decimal place precision. In USD for example, 12.987654321 is $12.987654321 and 0.9987634521 is $0.9987634521.
      • withSweepID

        public WalletTransaction withSweepID​(java.util.Optional<java.lang.String> sweepID)
      • equals

        public boolean equals​(java.lang.Object o)
        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