MoneyAmount
A Money Amount represent a price amount, for example, a product variant's price or a price in a price list. Each Money Amount either has a Currency or Region associated with it to indicate the pricing in a given Currency or, for fully region-based pricing, the given price in a specific Region. If region-based pricing is used, the amount will be in the currency defined for the Region.
Constructors
constructor
**new MoneyAmount**()
A Money Amount represent a price amount, for example, a product variant's price or a price in a price list. Each Money Amount either has a Currency or Region associated with it to indicate the pricing in a given Currency or, for fully region-based pricing, the given price in a specific Region. If region-based pricing is used, the amount will be in the currency defined for the Region.
Properties
amountnumberRequiredcreated_atDateRequiredcurrency_codestringRequireddeleted_atnull | DateRequiredidstringRequiredmax_quantitynull | numberRequiredmin_quantitynull | numberRequiredprice_list_idnull | stringRequiredregion_idstringRequiredupdated_atDateRequiredvariant_idstringRequiredMethods
afterLoad
Private **afterLoad**(): void
Returns
void
voidvoidbeforeInsert
Private **beforeInsert**(): undefined \| void
Returns
undefined | void
undefined \| voidundefined | voidbeforeUpdate
Private **beforeUpdate**(): void