Package io.moov.sdk.models.components
Class MoovFee
- java.lang.Object
-
- io.moov.sdk.models.components.MoovFee
-
public class MoovFee extends java.lang.ObjectMoovFeeMoov fee charged to an account involved in a transfer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMoovFee.Builder
-
Constructor Summary
Constructors Constructor Description MoovFee(java.lang.String accountID, TransferParty transferParty, AmountDecimal totalAmount, java.util.List<java.lang.String> feeIDs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringaccountID()ID of the account that fees were charged to.static MoovFee.Builderbuilder()booleanequals(java.lang.Object o)java.util.List<java.lang.String>feeIDs()List of fee IDs that sum to the totalAmount.inthashCode()java.lang.StringtoString()AmountDecimaltotalAmount()The total amount of fees charged to the account.TransferPartytransferParty()Indicates whether the account charged was the partner, source, or destination of the transfer.MoovFeewithAccountID(java.lang.String accountID)ID of the account that fees were charged to.MoovFeewithFeeIDs(java.util.List<java.lang.String> feeIDs)List of fee IDs that sum to the totalAmount.MoovFeewithTotalAmount(AmountDecimal totalAmount)The total amount of fees charged to the account.MoovFeewithTransferParty(TransferParty transferParty)Indicates whether the account charged was the partner, source, or destination of the transfer.
-
-
-
Constructor Detail
-
MoovFee
public MoovFee(java.lang.String accountID, TransferParty transferParty, AmountDecimal totalAmount, java.util.List<java.lang.String> feeIDs)
-
-
Method Detail
-
accountID
public java.lang.String accountID()
ID of the account that fees were charged to.
-
transferParty
public TransferParty transferParty()
Indicates whether the account charged was the partner, source, or destination of the transfer.
-
totalAmount
public AmountDecimal totalAmount()
The total amount of fees charged to the account.
-
feeIDs
public java.util.List<java.lang.String> feeIDs()
List of fee IDs that sum to the totalAmount.
-
builder
public static final MoovFee.Builder builder()
-
withAccountID
public MoovFee withAccountID(java.lang.String accountID)
ID of the account that fees were charged to.
-
withTransferParty
public MoovFee withTransferParty(TransferParty transferParty)
Indicates whether the account charged was the partner, source, or destination of the transfer.
-
withTotalAmount
public MoovFee withTotalAmount(AmountDecimal totalAmount)
The total amount of fees charged to the account.
-
withFeeIDs
public MoovFee withFeeIDs(java.util.List<java.lang.String> feeIDs)
List of fee IDs that sum to the totalAmount.
-
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
-
-