Money
Describes@ebitex/commerce-sdk 0.2.xSee the changelog:@ebitex/commerce-sdk
A price as the Store holds it: whole minor units beside a currency, and the same amount as the Store’s own decimal string. Never a float.
Properties
Section titled “Properties”amount
Section titled “amount”amount:
string
The amount as a decimal string in the currency’s own exponent ("89.50", "5000" for JPY). Show this; do arithmetic on amountMinor.
amountMinor
Section titled “amountMinor”amountMinor:
number
compareAt
Section titled “compareAt”compareAt:
string|null
compareAtMinor
Section titled “compareAtMinor”compareAtMinor:
number|null
currency
Section titled “currency”currency:
string
taxIncluded
Section titled “taxIncluded”taxIncluded:
boolean
Whether the stored price already includes tax: the Store’s setting.