Class WalletTransaction.Builder

  • Enclosing class:
    WalletTransaction

    public static final class WalletTransaction.Builder
    extends java.lang.Object
    • Method Detail

      • sourceID

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

        public WalletTransaction.Builder grossAmount​(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 WalletTransaction.Builder grossAmountDecimal​(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 WalletTransaction.Builder fee​(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 WalletTransaction.Builder feeIDs​(java.util.List<java.lang.String> feeIDs)
        The IDs of the fees paid for the transaction.
      • feeIDs

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

        public WalletTransaction.Builder feeDecimal​(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 WalletTransaction.Builder netAmount​(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 WalletTransaction.Builder netAmountDecimal​(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 WalletTransaction.Builder availableBalance​(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.
      • availableBalance

        public WalletTransaction.Builder availableBalance​(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 WalletTransaction.Builder availableBalanceDecimal​(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.
      • availableBalanceDecimal

        public WalletTransaction.Builder availableBalanceDecimal​(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.