public class AmountOfMoney extends Object
| Constructor and Description |
|---|
AmountOfMoney() |
| Modifier and Type | Method and Description |
|---|---|
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
|
String |
getCurrencyCode()
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 |
setCurrencyCode(String value)
Three-letter ISO currency code representing the currency for the amount
|
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
|
AmountOfMoney |
withCurrencyCode(String value)
Three-letter ISO currency code representing the currency for the amount
|
public Long getAmount()
public void setAmount(Long value)
public AmountOfMoney withAmount(Long value)
public String getCurrencyCode()
public void setCurrencyCode(String value)
public AmountOfMoney withCurrencyCode(String value)
Copyright © 2024 Worldline Online Payments Direct. All rights reserved.