public class CurrencyParameter extends Object implements WhatsAppTemplateParameter
Modifier and Type | Field and Description |
---|---|
protected BigDecimal |
amount
Amount multiplied by 1000 (e.g.
|
protected String |
code
Currency code as defined in ISO 4217 (e.g.
|
protected String |
fallbackValue
Default value, if the device is unsuccessful in localizing a parameter, it should fall back to using this value (e.g.
|
Constructor and Description |
---|
CurrencyParameter(String fallbackValue,
String code,
BigDecimal amount) |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
getAmount() |
String |
getCode() |
String |
getFallbackValue() |
void |
setAmount(BigDecimal amount) |
void |
setCode(String code) |
void |
setFallbackValue(String fallbackValue) |
protected String fallbackValue
protected String code
protected BigDecimal amount
public CurrencyParameter(String fallbackValue, String code, BigDecimal amount)
public String getFallbackValue()
public void setFallbackValue(String fallbackValue)
public String getCode()
public void setCode(String code)
public BigDecimal getAmount()
public void setAmount(BigDecimal amount)