Class AmountUpdate.Builder

  • Enclosing class:
    AmountUpdate

    public static final class AmountUpdate.Builder
    extends java.lang.Object
    • 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.