Package io.moov.sdk.models.components
Class AmountUpdate
- java.lang.Object
-
- io.moov.sdk.models.components.AmountUpdate
-
public class AmountUpdate extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAmountUpdate.Builder
-
Constructor Summary
Constructors Constructor Description AmountUpdate()AmountUpdate(java.util.Optional<java.lang.String> currency, java.util.Optional<java.lang.Long> value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AmountUpdate.Builderbuilder()java.util.Optional<java.lang.String>currency()A 3-letter ISO 4217 currency code.booleanequals(java.lang.Object o)inthashCode()java.lang.StringtoString()java.util.Optional<java.lang.Long>value()Quantity in the smallest unit of the specified currency.AmountUpdatewithCurrency(java.lang.String currency)A 3-letter ISO 4217 currency code.AmountUpdatewithCurrency(java.util.Optional<java.lang.String> currency)A 3-letter ISO 4217 currency code.AmountUpdatewithValue(long value)Quantity in the smallest unit of the specified currency.AmountUpdatewithValue(java.util.Optional<java.lang.Long> value)Quantity in the smallest unit of the specified currency.
-
-
-
Method Detail
-
currency
public java.util.Optional<java.lang.String> currency()
A 3-letter ISO 4217 currency code.
-
value
public java.util.Optional<java.lang.Long> value()
Quantity in the smallest unit of the specified currency.In USD this is cents, for example, $12.04 is 1204 and $0.99 is 99.
-
builder
public static AmountUpdate.Builder builder()
-
withCurrency
public AmountUpdate withCurrency(java.lang.String currency)
A 3-letter ISO 4217 currency code.
-
withCurrency
public AmountUpdate withCurrency(java.util.Optional<java.lang.String> currency)
A 3-letter ISO 4217 currency code.
-
withValue
public AmountUpdate withValue(long value)
Quantity in the smallest unit of the specified currency.In USD this is cents, for example, $12.04 is 1204 and $0.99 is 99.
-
withValue
public AmountUpdate withValue(java.util.Optional<java.lang.Long> value)
Quantity in the smallest unit of the specified currency.In USD this is cents, for example, $12.04 is 1204 and $0.99 is 99.
-
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
-
-