public class AmountAttribute extends Attribute
Attribute.Type| Constructor and Description |
|---|
AmountAttribute()
Default constructor.
|
AmountAttribute(String id,
String label,
BigDecimal amount,
String currency,
String amountFormatted,
String currencyFormatted)
Constructor with all details.
|
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
getAmount()
Get amount.
|
String |
getAmountFormatted()
Get formatted amount.
|
String |
getCurrency()
Get currency.
|
String |
getCurrencyFormatted()
Get formatted currency.
|
void |
setAmount(BigDecimal amount)
Set amount.
|
void |
setAmountFormatted(String amountFormatted)
Set formatted amount.
|
void |
setCurrency(String currency)
Set currency.
|
void |
setCurrencyFormatted(String currencyFormatted)
Set formatted currency.
|
public AmountAttribute()
public AmountAttribute(String id, String label, BigDecimal amount, String currency, String amountFormatted, String currencyFormatted)
id - Attribute ID.label - Attribute label.amount - Amount.currency - Currency.amountFormatted - Formatted amount.currencyFormatted - Formatted currency.public BigDecimal getAmount()
public void setAmount(BigDecimal amount)
amount - Amount.public String getCurrency()
public void setCurrency(String currency)
currency - Currency.public String getAmountFormatted()
public void setAmountFormatted(String amountFormatted)
amountFormatted - Formatted amount.public String getCurrencyFormatted()
public void setCurrencyFormatted(String currencyFormatted)
currencyFormatted - Formatted currency.Copyright © 2016–2019 Wultra s.r.o.. All rights reserved.