CommerceMoneyAmount
The CommerceMoneyAmount
type represents a monetary value with currency information.
- Name
amount
- Type
number
- Description
The raw amount as a number, usually in the smallest unit of the currency (like cents for USD). For example,
1000
for $10.00.
- Name
amountFormatted
- Type
string
- Description
The amount as a formatted string. For example,
10.00
for $10.00.
- Name
currency
- Type
string
- Description
The ISO currency code for this amount. For example,
USD
.
- Name
currencySymbol
- Type
string
- Description
The symbol for the currency. For example,
$
.
Feedback
Last updated on