Package com.onlinepayments.domain
Class AmountOfMoney
java.lang.Object
com.onlinepayments.domain.AmountOfMoney
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAmount 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 1234Three-letter ISO currency code representing the currency for the amountvoidAmount 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 1234voidsetCurrencyCode(String value) Three-letter ISO currency code representing the currency for the amountwithAmount(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 1234withCurrencyCode(String value) Three-letter ISO currency code representing the currency for the amount
-
Constructor Details
-
AmountOfMoney
public AmountOfMoney()
-
-
Method Details
-
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
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
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
Three-letter ISO currency code representing the currency for the amount -
setCurrencyCode
Three-letter ISO currency code representing the currency for the amount -
withCurrencyCode
Three-letter ISO currency code representing the currency for the amount
-