Package io.moov.sdk.models.components
Class FeeProperties
- java.lang.Object
-
- io.moov.sdk.models.components.FeeProperties
-
public class FeeProperties extends java.lang.ObjectFeePropertiesDefines the specific parameters used for fee calculation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeeProperties.Builder
-
Constructor Summary
Constructors Constructor Description FeeProperties()FeeProperties(java.util.Optional<? extends AmountDecimal> fixedAmount, java.util.Optional<java.lang.String> variableRate, java.util.Optional<? extends AmountDecimal> minPerTransaction, java.util.Optional<? extends AmountDecimal> maxPerTransaction)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FeeProperties.Builderbuilder()booleanequals(java.lang.Object o)java.util.Optional<AmountDecimal>fixedAmount()A fixed fee that is applied to the amount of each transaction in the `fixed` and `blended` fee models.inthashCode()java.util.Optional<AmountDecimal>maxPerTransaction()Specifies the maximum allowable spending for a single transaction, working as a transaction ceiling.java.util.Optional<AmountDecimal>minPerTransaction()Specifies the minimum allowable spending for a single transaction, working as a transaction floor.java.lang.StringtoString()java.util.Optional<java.lang.String>variableRate()A percentage fee that is applied to the amount of each transaction in the `blended` fee model, expressed as a decimal.FeePropertieswithFixedAmount(AmountDecimal fixedAmount)A fixed fee that is applied to the amount of each transaction in the `fixed` and `blended` fee models.FeePropertieswithFixedAmount(java.util.Optional<? extends AmountDecimal> fixedAmount)A fixed fee that is applied to the amount of each transaction in the `fixed` and `blended` fee models.FeePropertieswithMaxPerTransaction(AmountDecimal maxPerTransaction)Specifies the maximum allowable spending for a single transaction, working as a transaction ceiling.FeePropertieswithMaxPerTransaction(java.util.Optional<? extends AmountDecimal> maxPerTransaction)Specifies the maximum allowable spending for a single transaction, working as a transaction ceiling.FeePropertieswithMinPerTransaction(AmountDecimal minPerTransaction)Specifies the minimum allowable spending for a single transaction, working as a transaction floor.FeePropertieswithMinPerTransaction(java.util.Optional<? extends AmountDecimal> minPerTransaction)Specifies the minimum allowable spending for a single transaction, working as a transaction floor.FeePropertieswithVariableRate(java.lang.String variableRate)A percentage fee that is applied to the amount of each transaction in the `blended` fee model, expressed as a decimal.FeePropertieswithVariableRate(java.util.Optional<java.lang.String> variableRate)A percentage fee that is applied to the amount of each transaction in the `blended` fee model, expressed as a decimal.
-
-
-
Constructor Detail
-
FeeProperties
public FeeProperties(java.util.Optional<? extends AmountDecimal> fixedAmount, java.util.Optional<java.lang.String> variableRate, java.util.Optional<? extends AmountDecimal> minPerTransaction, java.util.Optional<? extends AmountDecimal> maxPerTransaction)
-
FeeProperties
public FeeProperties()
-
-
Method Detail
-
fixedAmount
public java.util.Optional<AmountDecimal> fixedAmount()
A fixed fee that is applied to the amount of each transaction in the `fixed` and `blended` fee models.
-
variableRate
public java.util.Optional<java.lang.String> variableRate()
A percentage fee that is applied to the amount of each transaction in the `blended` fee model, expressed as a decimal.For example, 0.05% is '0.05'.
-
minPerTransaction
public java.util.Optional<AmountDecimal> minPerTransaction()
Specifies the minimum allowable spending for a single transaction, working as a transaction floor.
-
maxPerTransaction
public java.util.Optional<AmountDecimal> maxPerTransaction()
Specifies the maximum allowable spending for a single transaction, working as a transaction ceiling.
-
builder
public static FeeProperties.Builder builder()
-
withFixedAmount
public FeeProperties withFixedAmount(AmountDecimal fixedAmount)
A fixed fee that is applied to the amount of each transaction in the `fixed` and `blended` fee models.
-
withFixedAmount
public FeeProperties withFixedAmount(java.util.Optional<? extends AmountDecimal> fixedAmount)
A fixed fee that is applied to the amount of each transaction in the `fixed` and `blended` fee models.
-
withVariableRate
public FeeProperties withVariableRate(java.lang.String variableRate)
A percentage fee that is applied to the amount of each transaction in the `blended` fee model, expressed as a decimal.For example, 0.05% is '0.05'.
-
withVariableRate
public FeeProperties withVariableRate(java.util.Optional<java.lang.String> variableRate)
A percentage fee that is applied to the amount of each transaction in the `blended` fee model, expressed as a decimal.For example, 0.05% is '0.05'.
-
withMinPerTransaction
public FeeProperties withMinPerTransaction(AmountDecimal minPerTransaction)
Specifies the minimum allowable spending for a single transaction, working as a transaction floor.
-
withMinPerTransaction
public FeeProperties withMinPerTransaction(java.util.Optional<? extends AmountDecimal> minPerTransaction)
Specifies the minimum allowable spending for a single transaction, working as a transaction floor.
-
withMaxPerTransaction
public FeeProperties withMaxPerTransaction(AmountDecimal maxPerTransaction)
Specifies the maximum allowable spending for a single transaction, working as a transaction ceiling.
-
withMaxPerTransaction
public FeeProperties withMaxPerTransaction(java.util.Optional<? extends AmountDecimal> maxPerTransaction)
Specifies the maximum allowable spending for a single transaction, working as a transaction ceiling.
-
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
-
-