Package io.moov.sdk.models.components
Class AmountUpdate.Builder
- java.lang.Object
-
- io.moov.sdk.models.components.AmountUpdate.Builder
-
- Enclosing class:
- AmountUpdate
public static final class AmountUpdate.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AmountUpdatebuild()AmountUpdate.Buildercurrency(java.lang.String currency)A 3-letter ISO 4217 currency code.AmountUpdate.Buildercurrency(java.util.Optional<java.lang.String> currency)A 3-letter ISO 4217 currency code.AmountUpdate.Buildervalue(long value)Quantity in the smallest unit of the specified currency.AmountUpdate.Buildervalue(java.util.Optional<java.lang.Long> value)Quantity in the smallest unit of the specified currency.
-
-
-
Method Detail
-
currency
public AmountUpdate.Builder currency(java.lang.String currency)
A 3-letter ISO 4217 currency code.
-
currency
public AmountUpdate.Builder currency(java.util.Optional<java.lang.String> currency)
A 3-letter ISO 4217 currency code.
-
value
public AmountUpdate.Builder value(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.
-
value
public AmountUpdate.Builder value(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.
-
build
public AmountUpdate build()
-
-