Class AmountOfMoney

java.lang.Object
com.onlinepayments.domain.AmountOfMoney

public class AmountOfMoney extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Amount in the smallest currency unit, i.e.: EUR is a 2-decimals currency, the value 1234 will result in EUR 12.34 KWD is a 3-decimals currency, the value 1234 will result in KWD 1.234 JPY is a zero-decimal currency, the value 1234 will result in JPY 1234
    Three-letter ISO currency code representing the currency for the amount
    void
    setAmount(Long value)
    Amount in the smallest currency unit, i.e.: EUR is a 2-decimals currency, the value 1234 will result in EUR 12.34 KWD is a 3-decimals currency, the value 1234 will result in KWD 1.234 JPY is a zero-decimal currency, the value 1234 will result in JPY 1234
    void
    Three-letter ISO currency code representing the currency for the amount
    Amount in the smallest currency unit, i.e.: EUR is a 2-decimals currency, the value 1234 will result in EUR 12.34 KWD is a 3-decimals currency, the value 1234 will result in KWD 1.234 JPY is a zero-decimal currency, the value 1234 will result in JPY 1234
    Three-letter ISO currency code representing the currency for the amount

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AmountOfMoney

      public AmountOfMoney()
  • Method Details

    • getAmount

      public Long getAmount()
      Amount in the smallest currency unit, i.e.:
      • EUR is a 2-decimals currency, the value 1234 will result in EUR 12.34
      • KWD is a 3-decimals currency, the value 1234 will result in KWD 1.234
      • JPY is a zero-decimal currency, the value 1234 will result in JPY 1234
    • setAmount

      public void setAmount(Long value)
      Amount in the smallest currency unit, i.e.:
      • EUR is a 2-decimals currency, the value 1234 will result in EUR 12.34
      • KWD is a 3-decimals currency, the value 1234 will result in KWD 1.234
      • JPY is a zero-decimal currency, the value 1234 will result in JPY 1234
    • withAmount

      public AmountOfMoney withAmount(Long value)
      Amount in the smallest currency unit, i.e.:
      • EUR is a 2-decimals currency, the value 1234 will result in EUR 12.34
      • KWD is a 3-decimals currency, the value 1234 will result in KWD 1.234
      • JPY is a zero-decimal currency, the value 1234 will result in JPY 1234
    • getCurrencyCode

      public String getCurrencyCode()
      Three-letter ISO currency code representing the currency for the amount
    • setCurrencyCode

      public void setCurrencyCode(String value)
      Three-letter ISO currency code representing the currency for the amount
    • withCurrencyCode

      public AmountOfMoney withCurrencyCode(String value)
      Three-letter ISO currency code representing the currency for the amount