Package io.moov.sdk.models.components
Class WalletTransaction
- java.lang.Object
-
- io.moov.sdk.models.components.WalletTransaction
-
public class WalletTransaction extends java.lang.ObjectWalletTransactionA transaction that funds or deducts from the wallet.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWalletTransaction.Builder
-
Constructor Summary
Constructors Constructor Description 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)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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Long>availableBalance()The wallet's total available balance after recording a completed transaction.java.util.Optional<java.lang.String>availableBalanceDecimal()The wallet's total available balance after recording a completed transaction.static WalletTransaction.Builderbuilder()java.util.Optional<java.time.OffsetDateTime>completedOn()java.time.OffsetDateTimecreatedOn()java.lang.Stringcurrency()A 3-letter ISO 4217 currency code.booleanequals(java.lang.Object o)longfee()Total fees paid for the transaction.java.lang.StringfeeDecimal()Total fees paid for the transaction.java.util.Optional<java.util.List<java.lang.String>>feeIDs()The IDs of the fees paid for the transaction.longgrossAmount()The total transaction amount.java.lang.StringgrossAmountDecimal()The total transaction amount.inthashCode()java.lang.Stringmemo()Detailed description of the transaction.longnetAmount()Net amount is the gross amount less fees paid, and the amount that affects the wallet's balance.java.lang.StringnetAmountDecimal()Net amount is the gross amount less fees paid, and the amount that affects the wallet's balance.java.lang.StringsourceID()The ID of the Moov object to which this transaction is related.WalletTransactionSourceTypesourceType()WalletTransactionStatusstatus()java.util.Optional<java.lang.String>sweepID()java.lang.StringtoString()java.lang.StringtransactionID()WalletTransactionTypetransactionType()java.lang.StringwalletID()WalletTransactionwithAvailableBalance(long availableBalance)The wallet's total available balance after recording a completed transaction.WalletTransactionwithAvailableBalance(java.util.Optional<java.lang.Long> availableBalance)The wallet's total available balance after recording a completed transaction.WalletTransactionwithAvailableBalanceDecimal(java.lang.String availableBalanceDecimal)The wallet's total available balance after recording a completed transaction.WalletTransactionwithAvailableBalanceDecimal(java.util.Optional<java.lang.String> availableBalanceDecimal)The wallet's total available balance after recording a completed transaction.WalletTransactionwithCompletedOn(java.time.OffsetDateTime completedOn)WalletTransactionwithCompletedOn(java.util.Optional<java.time.OffsetDateTime> completedOn)WalletTransactionwithCreatedOn(java.time.OffsetDateTime createdOn)WalletTransactionwithCurrency(java.lang.String currency)A 3-letter ISO 4217 currency code.WalletTransactionwithFee(long fee)Total fees paid for the transaction.WalletTransactionwithFeeDecimal(java.lang.String feeDecimal)Total fees paid for the transaction.WalletTransactionwithFeeIDs(java.util.List<java.lang.String> feeIDs)The IDs of the fees paid for the transaction.WalletTransactionwithFeeIDs(java.util.Optional<? extends java.util.List<java.lang.String>> feeIDs)The IDs of the fees paid for the transaction.WalletTransactionwithGrossAmount(long grossAmount)The total transaction amount.WalletTransactionwithGrossAmountDecimal(java.lang.String grossAmountDecimal)The total transaction amount.WalletTransactionwithMemo(java.lang.String memo)Detailed description of the transaction.WalletTransactionwithNetAmount(long netAmount)Net amount is the gross amount less fees paid, and the amount that affects the wallet's balance.WalletTransactionwithNetAmountDecimal(java.lang.String netAmountDecimal)Net amount is the gross amount less fees paid, and the amount that affects the wallet's balance.WalletTransactionwithSourceID(java.lang.String sourceID)The ID of the Moov object to which this transaction is related.WalletTransactionwithSourceType(WalletTransactionSourceType sourceType)WalletTransactionwithStatus(WalletTransactionStatus status)WalletTransactionwithSweepID(java.lang.String sweepID)WalletTransactionwithSweepID(java.util.Optional<java.lang.String> sweepID)WalletTransactionwithTransactionID(java.lang.String transactionID)WalletTransactionwithTransactionType(WalletTransactionType transactionType)WalletTransactionwithWalletID(java.lang.String walletID)
-
-
-
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()
-
transactionType
public WalletTransactionType transactionType()
-
sourceType
public WalletTransactionSourceType sourceType()
-
sourceID
public java.lang.String sourceID()
The ID of the Moov object to which this transaction is related.
-
status
public WalletTransactionStatus status()
-
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()
-
builder
public static final WalletTransaction.Builder builder()
-
withWalletID
public WalletTransaction withWalletID(java.lang.String walletID)
-
withTransactionID
public WalletTransaction withTransactionID(java.lang.String transactionID)
-
withTransactionType
public WalletTransaction withTransactionType(WalletTransactionType transactionType)
-
withSourceType
public WalletTransaction withSourceType(WalletTransactionSourceType sourceType)
-
withSourceID
public WalletTransaction withSourceID(java.lang.String sourceID)
The ID of the Moov object to which this transaction is related.
-
withStatus
public WalletTransaction withStatus(WalletTransactionStatus status)
-
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.lang.String sweepID)
-
withSweepID
public WalletTransaction withSweepID(java.util.Optional<java.lang.String> sweepID)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-