Class CurrencyParameter
- java.lang.Object
-
- com.flowable.engage.external.system.whatsapp.dto.CurrencyParameter
-
- All Implemented Interfaces:
WhatsAppTemplateParameter
public class CurrencyParameter extends Object implements WhatsAppTemplateParameter
- Author:
- Anatolii Balakiriev
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description CurrencyParameter(String fallbackValue, String code, BigDecimal amount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimal
getAmount()
String
getCode()
String
getFallbackValue()
void
setAmount(BigDecimal amount)
void
setCode(String code)
void
setFallbackValue(String fallbackValue)
-
-
-
Field Detail
-
fallbackValue
protected String fallbackValue
Default value, if the device is unsuccessful in localizing a parameter, it should fall back to using this value (e.g. $100.99)
-
code
protected String code
Currency code as defined in ISO 4217 (e.g. USD).
-
amount
protected BigDecimal amount
Amount multiplied by 1000 (e.g. 100990 is 100.99)
-
-
Constructor Detail
-
CurrencyParameter
public CurrencyParameter(String fallbackValue, String code, BigDecimal amount)
-
-
Method Detail
-
getFallbackValue
public String getFallbackValue()
-
setFallbackValue
public void setFallbackValue(String fallbackValue)
-
getCode
public String getCode()
-
setCode
public void setCode(String code)
-
getAmount
public BigDecimal getAmount()
-
setAmount
public void setAmount(BigDecimal amount)
-
-