Shopify SDK for Unity
|
A monetary value with currency. More...
Public Member Functions | |
MoneyV2Query (StringBuilder query) | |
MoneyV2Query is used to build queries. Typically MoneyV2Query will not be used directly but instead will be used when building queries from either QueryRootQuery or MutationQuery. More... | |
MoneyV2Query | amount () |
Decimal money amount. More... | |
MoneyV2Query | currencyCode () |
Currency of the money. More... | |
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 |
MoneyV2Query is used to build queries. Typically MoneyV2Query will not be used directly but instead will be used when building queries from either QueryRootQuery or MutationQuery.
|
inline |
Decimal money amount.
|
inline |
Currency of the money.