Constructor
new Currency(amount_1000, code, fallback_value)
- Source:
Properties:
Name |
Type |
Description |
amount_1000 |
Number
|
The amount of the currency by 1000 |
code |
String
|
The currency code |
fallback_value |
String
|
The fallback value |
_ |
String
|
The type of the object, for internal use only |
Builds a currency object for a Parameter
Parameters:
Name |
Type |
Description |
amount_1000 |
Number
|
Amount multiplied by 1000 |
code |
String
|
Currency code as defined in ISO 4217 |
fallback_value |
String
|
Default text if localization fails |
Throws:
-
-
If amount_1000 is not provided
-
-
Type
-
Error
-
-
If code is not provided
-
-
Type
-
Error
-
-
If fallback_value is not provided
-
-
Type
-
Error