Shopify SDK for Unity
|
A monetary value with currency. More...
Public Member Functions | |
MoneyV2 (Dictionary< string, object > dataJSON) | |
Accepts deserialized json data. Will further parse passed in data. More... | |
decimal | amount () |
Decimal money amount. More... | |
CurrencyCode | currencyCode () |
Currency of the money. More... | |
object | Clone () |
Additional Inherited Members | |
Protected Member Functions inherited from Shopify.Unity.SDK.AbstractResponse | |
T | Get< T > (string field, string alias=null) |
Protected Attributes inherited from Shopify.Unity.SDK.AbstractResponse | |
Dictionary< string, object > | Data |
Properties inherited from Shopify.Unity.SDK.AbstractResponse | |
Dictionary< string, object > | DataJSON [get, protected set] |
A monetary value with currency.
To format currencies, combine this type's amount and currencyCode fields with your client's locale.
For example, in JavaScript you could use Intl.NumberFormat:
Other formatting libraries include:
For a more general solution, the [Unicode CLDR number formatting database] is available with many implementations (such as TwitterCldr).
|
inline |
Accepts deserialized json data. Will further parse passed in data.
dataJSON | Deserialized JSON data for MoneyV2 |
|
inline |
Decimal money amount.
|
inline |
Currency of the money.