Package io.moov.sdk.models.components
Class FacilitatorFee
- java.lang.Object
-
- io.moov.sdk.models.components.FacilitatorFee
-
public class FacilitatorFee extends java.lang.ObjectFacilitatorFeeTotal or markup fee.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFacilitatorFee.Builder
-
Constructor Summary
Constructors Constructor Description FacilitatorFee()FacilitatorFee(java.util.Optional<java.lang.Long> total, java.util.Optional<java.lang.String> totalDecimal, java.util.Optional<java.lang.Long> markup, java.util.Optional<java.lang.String> markupDecimal)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FacilitatorFee.Builderbuilder()booleanequals(java.lang.Object o)inthashCode()java.util.Optional<java.lang.Long>markup()Markup facilitator fee in cents.java.util.Optional<java.lang.String>markupDecimal()Same as `markup`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.java.lang.StringtoString()java.util.Optional<java.lang.Long>total()Total facilitator fee in cents.java.util.Optional<java.lang.String>totalDecimal()Same as `total`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.FacilitatorFeewithMarkup(long markup)Markup facilitator fee in cents.FacilitatorFeewithMarkup(java.util.Optional<java.lang.Long> markup)Markup facilitator fee in cents.FacilitatorFeewithMarkupDecimal(java.lang.String markupDecimal)Same as `markup`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.FacilitatorFeewithMarkupDecimal(java.util.Optional<java.lang.String> markupDecimal)Same as `markup`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.FacilitatorFeewithTotal(long total)Total facilitator fee in cents.FacilitatorFeewithTotal(java.util.Optional<java.lang.Long> total)Total facilitator fee in cents.FacilitatorFeewithTotalDecimal(java.lang.String totalDecimal)Same as `total`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.FacilitatorFeewithTotalDecimal(java.util.Optional<java.lang.String> totalDecimal)Same as `total`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.
-
-
-
Method Detail
-
total
public java.util.Optional<java.lang.Long> total()
Total facilitator fee in cents. Only either `total` or `totalDecimal` can be set.
-
totalDecimal
public java.util.Optional<java.lang.String> totalDecimal()
Same as `total`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.Only either `total` or `totalDecimal` can be set. Set this field if you expect the fee to be in fractions of a cent.
-
markup
public java.util.Optional<java.lang.Long> markup()
Markup facilitator fee in cents. Only either `markup` or `markupDecimal` can be set.
-
markupDecimal
public java.util.Optional<java.lang.String> markupDecimal()
Same as `markup`, but a decimal-formatted numerical string that represents up to 9 decimal place precision. Only either `markup` or `markupDecimal` can be set. Set this field if you expect the fee to be in fractions of a cent.
-
builder
public static FacilitatorFee.Builder builder()
-
withTotal
public FacilitatorFee withTotal(long total)
Total facilitator fee in cents. Only either `total` or `totalDecimal` can be set.
-
withTotal
public FacilitatorFee withTotal(java.util.Optional<java.lang.Long> total)
Total facilitator fee in cents. Only either `total` or `totalDecimal` can be set.
-
withTotalDecimal
public FacilitatorFee withTotalDecimal(java.lang.String totalDecimal)
Same as `total`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.Only either `total` or `totalDecimal` can be set. Set this field if you expect the fee to be in fractions of a cent.
-
withTotalDecimal
public FacilitatorFee withTotalDecimal(java.util.Optional<java.lang.String> totalDecimal)
Same as `total`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.Only either `total` or `totalDecimal` can be set. Set this field if you expect the fee to be in fractions of a cent.
-
withMarkup
public FacilitatorFee withMarkup(long markup)
Markup facilitator fee in cents. Only either `markup` or `markupDecimal` can be set.
-
withMarkup
public FacilitatorFee withMarkup(java.util.Optional<java.lang.Long> markup)
Markup facilitator fee in cents. Only either `markup` or `markupDecimal` can be set.
-
withMarkupDecimal
public FacilitatorFee withMarkupDecimal(java.lang.String markupDecimal)
Same as `markup`, but a decimal-formatted numerical string that represents up to 9 decimal place precision. Only either `markup` or `markupDecimal` can be set. Set this field if you expect the fee to be in fractions of a cent.
-
withMarkupDecimal
public FacilitatorFee withMarkupDecimal(java.util.Optional<java.lang.String> markupDecimal)
Same as `markup`, but a decimal-formatted numerical string that represents up to 9 decimal place precision. Only either `markup` or `markupDecimal` can be set. Set this field if you expect the fee to be in fractions of a cent.
-
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
-
-