Files
medusa-store/www/apps/docs/content/references/pricing/interfaces/CreateMoneyAmountDTO.md
Shahed Nasser f0af8ecc89 docs: generate pricing module reference (#5349)
* docs: generate pricing module reference

* added notes about new configurations
2023-10-11 14:08:19 +03:00

2.2 KiB

displayed_sidebar
displayed_sidebar
pricingReference

CreateMoneyAmountDTO

An object that holds data to create a money amount.

Hierarchy

Properties

amount

Optional amount: number

A number indicating the amount of this money amount.

Defined in

packages/types/src/pricing/common/money-amount.ts:41


currency

Optional currency: CreateCurrencyDTO

An object of type CurrencyDTO that holds the details of the money amount's currency. Since this is a relation, it will only be retrieved if it's passed to the relations array of the find-configuration options.

Defined in

packages/types/src/pricing/common/money-amount.ts:40


currency_code

currency_code: string

A string that indicates the currency code of this money amount.

Defined in

packages/types/src/pricing/common/money-amount.ts:39


id

Optional id: string

A string that indicates the ID of the money amount.

Defined in

packages/types/src/pricing/common/money-amount.ts:38


max_quantity

Optional max_quantity: number

A number that indicates the maximum quantity required to be purchased for this money amount to be applied.

Defined in

packages/types/src/pricing/common/money-amount.ts:43


min_quantity

Optional min_quantity: number

A number that indicates the minimum quantity required to be purchased for this money amount to be applied.

Defined in

packages/types/src/pricing/common/money-amount.ts:42