Class AmountUpdate


  • public class AmountUpdate
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AmountUpdate.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      AmountUpdate()  
      AmountUpdate​(java.util.Optional<java.lang.String> currency, java.util.Optional<java.lang.Long> value)  
    • Constructor Detail

      • AmountUpdate

        public AmountUpdate​(java.util.Optional<java.lang.String> currency,
                            java.util.Optional<java.lang.Long> value)
      • AmountUpdate

        public AmountUpdate()
    • 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.

      • 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object