Package io.moov.sdk.models.components
Class Sweep
- java.lang.Object
-
- io.moov.sdk.models.components.Sweep
-
public class Sweep extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSweep.Builder
-
Constructor Summary
Constructors Constructor Description Sweep(java.lang.String sweepID, SweepStatus status, java.lang.String accruedAmount, java.lang.String currency, java.time.OffsetDateTime accrualStartedOn)Sweep(java.lang.String sweepID, SweepStatus status, java.lang.String accruedAmount, java.util.Optional<java.lang.String> residualBalance, java.lang.String currency, java.time.OffsetDateTime accrualStartedOn, java.util.Optional<java.time.OffsetDateTime> accrualEndedOn, java.util.Optional<java.lang.String> pushPaymentMethodID, java.util.Optional<java.lang.String> pullPaymentMethodID, java.util.Optional<java.lang.String> transferID, java.util.Optional<java.lang.String> transferAmount, java.util.Optional<java.lang.String> statementDescriptor, java.util.Optional<? extends java.util.List<SweepSubtotal>> subtotals)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.time.OffsetDateTime>accrualEndedOn()The date-time the sweep stopped accruing transactions.java.time.OffsetDateTimeaccrualStartedOn()The date-time the sweep began accruing transactions.java.lang.StringaccruedAmount()The total net amount of wallet transactions accrued in the sweep.static Sweep.Builderbuilder()java.lang.Stringcurrency()A 3-letter ISO 4217 currency code.booleanequals(java.lang.Object o)inthashCode()java.util.Optional<java.lang.String>pullPaymentMethodID()ID of the payment method.java.util.Optional<java.lang.String>pushPaymentMethodID()ID of the payment method.java.util.Optional<java.lang.String>residualBalance()Amount remaining in the wallet after the sweep transfer completes.java.util.Optional<java.lang.String>statementDescriptor()The text that appears on the banking statement.SweepStatusstatus()java.util.Optional<java.util.List<SweepSubtotal>>subtotals()The subtotal of each transaction type contributing to the sweep's accrued amount.java.lang.StringsweepID()java.lang.StringtoString()java.util.Optional<java.lang.String>transferAmount()Amount that is transferred.java.util.Optional<java.lang.String>transferID()SweepwithAccrualEndedOn(java.time.OffsetDateTime accrualEndedOn)The date-time the sweep stopped accruing transactions.SweepwithAccrualEndedOn(java.util.Optional<java.time.OffsetDateTime> accrualEndedOn)The date-time the sweep stopped accruing transactions.SweepwithAccrualStartedOn(java.time.OffsetDateTime accrualStartedOn)The date-time the sweep began accruing transactions.SweepwithAccruedAmount(java.lang.String accruedAmount)The total net amount of wallet transactions accrued in the sweep.SweepwithCurrency(java.lang.String currency)A 3-letter ISO 4217 currency code.SweepwithPullPaymentMethodID(java.lang.String pullPaymentMethodID)ID of the payment method.SweepwithPullPaymentMethodID(java.util.Optional<java.lang.String> pullPaymentMethodID)ID of the payment method.SweepwithPushPaymentMethodID(java.lang.String pushPaymentMethodID)ID of the payment method.SweepwithPushPaymentMethodID(java.util.Optional<java.lang.String> pushPaymentMethodID)ID of the payment method.SweepwithResidualBalance(java.lang.String residualBalance)Amount remaining in the wallet after the sweep transfer completes.SweepwithResidualBalance(java.util.Optional<java.lang.String> residualBalance)Amount remaining in the wallet after the sweep transfer completes.SweepwithStatementDescriptor(java.lang.String statementDescriptor)The text that appears on the banking statement.SweepwithStatementDescriptor(java.util.Optional<java.lang.String> statementDescriptor)The text that appears on the banking statement.SweepwithStatus(SweepStatus status)SweepwithSubtotals(java.util.List<SweepSubtotal> subtotals)The subtotal of each transaction type contributing to the sweep's accrued amount.SweepwithSubtotals(java.util.Optional<? extends java.util.List<SweepSubtotal>> subtotals)The subtotal of each transaction type contributing to the sweep's accrued amount.SweepwithSweepID(java.lang.String sweepID)SweepwithTransferAmount(java.lang.String transferAmount)Amount that is transferred.SweepwithTransferAmount(java.util.Optional<java.lang.String> transferAmount)Amount that is transferred.SweepwithTransferID(java.lang.String transferID)SweepwithTransferID(java.util.Optional<java.lang.String> transferID)
-
-
-
Constructor Detail
-
Sweep
public Sweep(java.lang.String sweepID, SweepStatus status, java.lang.String accruedAmount, java.util.Optional<java.lang.String> residualBalance, java.lang.String currency, java.time.OffsetDateTime accrualStartedOn, java.util.Optional<java.time.OffsetDateTime> accrualEndedOn, java.util.Optional<java.lang.String> pushPaymentMethodID, java.util.Optional<java.lang.String> pullPaymentMethodID, java.util.Optional<java.lang.String> transferID, java.util.Optional<java.lang.String> transferAmount, java.util.Optional<java.lang.String> statementDescriptor, java.util.Optional<? extends java.util.List<SweepSubtotal>> subtotals)
-
Sweep
public Sweep(java.lang.String sweepID, SweepStatus status, java.lang.String accruedAmount, java.lang.String currency, java.time.OffsetDateTime accrualStartedOn)
-
-
Method Detail
-
sweepID
public java.lang.String sweepID()
-
status
public SweepStatus status()
-
accruedAmount
public java.lang.String accruedAmount()
The total net amount of wallet transactions accrued in the sweep.
-
residualBalance
public java.util.Optional<java.lang.String> residualBalance()
Amount remaining in the wallet after the sweep transfer completes.
-
currency
public java.lang.String currency()
A 3-letter ISO 4217 currency code.
-
accrualStartedOn
public java.time.OffsetDateTime accrualStartedOn()
The date-time the sweep began accruing transactions.
-
accrualEndedOn
public java.util.Optional<java.time.OffsetDateTime> accrualEndedOn()
The date-time the sweep stopped accruing transactions.
-
pushPaymentMethodID
public java.util.Optional<java.lang.String> pushPaymentMethodID()
ID of the payment method.
-
pullPaymentMethodID
public java.util.Optional<java.lang.String> pullPaymentMethodID()
ID of the payment method.
-
transferID
public java.util.Optional<java.lang.String> transferID()
-
transferAmount
public java.util.Optional<java.lang.String> transferAmount()
Amount that is transferred.
-
statementDescriptor
public java.util.Optional<java.lang.String> statementDescriptor()
The text that appears on the banking statement. The default descriptor is a 10 character ID if an override is not set in the sweep configs statementDescriptor.
-
subtotals
public java.util.Optional<java.util.List<SweepSubtotal>> subtotals()
The subtotal of each transaction type contributing to the sweep's accrued amount.
-
builder
public static Sweep.Builder builder()
-
withSweepID
public Sweep withSweepID(java.lang.String sweepID)
-
withStatus
public Sweep withStatus(SweepStatus status)
-
withAccruedAmount
public Sweep withAccruedAmount(java.lang.String accruedAmount)
The total net amount of wallet transactions accrued in the sweep.
-
withResidualBalance
public Sweep withResidualBalance(java.lang.String residualBalance)
Amount remaining in the wallet after the sweep transfer completes.
-
withResidualBalance
public Sweep withResidualBalance(java.util.Optional<java.lang.String> residualBalance)
Amount remaining in the wallet after the sweep transfer completes.
-
withCurrency
public Sweep withCurrency(java.lang.String currency)
A 3-letter ISO 4217 currency code.
-
withAccrualStartedOn
public Sweep withAccrualStartedOn(java.time.OffsetDateTime accrualStartedOn)
The date-time the sweep began accruing transactions.
-
withAccrualEndedOn
public Sweep withAccrualEndedOn(java.time.OffsetDateTime accrualEndedOn)
The date-time the sweep stopped accruing transactions.
-
withAccrualEndedOn
public Sweep withAccrualEndedOn(java.util.Optional<java.time.OffsetDateTime> accrualEndedOn)
The date-time the sweep stopped accruing transactions.
-
withPushPaymentMethodID
public Sweep withPushPaymentMethodID(java.lang.String pushPaymentMethodID)
ID of the payment method.
-
withPushPaymentMethodID
public Sweep withPushPaymentMethodID(java.util.Optional<java.lang.String> pushPaymentMethodID)
ID of the payment method.
-
withPullPaymentMethodID
public Sweep withPullPaymentMethodID(java.lang.String pullPaymentMethodID)
ID of the payment method.
-
withPullPaymentMethodID
public Sweep withPullPaymentMethodID(java.util.Optional<java.lang.String> pullPaymentMethodID)
ID of the payment method.
-
withTransferID
public Sweep withTransferID(java.lang.String transferID)
-
withTransferID
public Sweep withTransferID(java.util.Optional<java.lang.String> transferID)
-
withTransferAmount
public Sweep withTransferAmount(java.lang.String transferAmount)
Amount that is transferred.
-
withTransferAmount
public Sweep withTransferAmount(java.util.Optional<java.lang.String> transferAmount)
Amount that is transferred.
-
withStatementDescriptor
public Sweep withStatementDescriptor(java.lang.String statementDescriptor)
The text that appears on the banking statement. The default descriptor is a 10 character ID if an override is not set in the sweep configs statementDescriptor.
-
withStatementDescriptor
public Sweep withStatementDescriptor(java.util.Optional<java.lang.String> statementDescriptor)
The text that appears on the banking statement. The default descriptor is a 10 character ID if an override is not set in the sweep configs statementDescriptor.
-
withSubtotals
public Sweep withSubtotals(java.util.List<SweepSubtotal> subtotals)
The subtotal of each transaction type contributing to the sweep's accrued amount.
-
withSubtotals
public Sweep withSubtotals(java.util.Optional<? extends java.util.List<SweepSubtotal>> subtotals)
The subtotal of each transaction type contributing to the sweep's accrued amount.
-
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
-
-