Representation of monetary amounts with a currency code (ECLCurrencyCode - ISO 4217) and a value in minor units.
-
$10.95 USD would be specified as a minor units value of 1095 and a currency code of USD.
-
$0.10 USD would be specified as a minor units value of 10 and a currency code of USD.
More...
|
static CurrencyCode | CurrencyCodefromString (string text) |
| Returns the corresponding CurrencyCode of the given string. If the string can not be parsed into a valid CurrencyCode, the UNKNOWN CurrnecyCode is returned. More...
|
|
Representation of monetary amounts with a currency code (ECLCurrencyCode - ISO 4217) and a value in minor units.
-
$10.95 USD would be specified as a minor units value of 1095 and a currency code of USD.
-
$0.10 USD would be specified as a minor units value of 10 and a currency code of USD.
◆ Money() [1/3]
CWSWrapper.Money.Money |
( |
| ) |
|
|
inline |
Constructor for defining monetary amounts.
◆ Money() [2/3]
Constructor for defining monetary amounts.
- Parameters
-
cc | Currency code as an instance of CurrencyCode. |
amount | Amount in minor units. |
◆ Money() [3/3]
Constructor for defining monetary amounts.
- Parameters
-
cc | Currency code as an instance of CurrencyCode. |
amount | Amount in minor units. |
◆ CurrencyCodefromString()
static CurrencyCode CWSWrapper.Money.CurrencyCodefromString |
( |
string |
text | ) |
|
|
inlinestatic |
Returns the corresponding CurrencyCode of the given string. If the string can not be parsed into a valid CurrencyCode, the UNKNOWN CurrnecyCode is returned.
- Parameters
-
text | The string to be parsed. |
- Returns
- The appropriate currency code for the string.
◆ getAmountInMinorUnits()
long CWSWrapper.Money.getAmountInMinorUnits |
( |
| ) |
|
|
inline |
Get the monetary amount in minor units.
- Returns
- Amount in minor units.
◆ currencyCode
string CWSWrapper.Money.currencyCode |
|
getset |
Currency Code
The currency code associated with the monetary amount.
◆ value
long CWSWrapper.Money.value |
|
getset |
Monetary Amount
Amount in minor units.
The documentation for this class was generated from the following file: