docs: generate pricing module reference (#5349)

* docs: generate pricing module reference

* added notes about new configurations
This commit is contained in:
Shahed Nasser
2023-10-11 14:08:19 +03:00
committed by GitHub
parent 9c1c19f409
commit f0af8ecc89
110 changed files with 7170 additions and 146 deletions

View File

@@ -0,0 +1,67 @@
---
displayed_sidebar: pricingReference
---
# CalculatedPriceSetDTO
An object that holds the details of a calculated price set.
## Properties
### amount
**amount**: ``null`` \| `number`
a number indicating the calculated amount. It can possibly be `null` if there's no price set up for the provided context.
#### Defined in
[packages/types/src/pricing/common/price-set.ts:66](https://github.com/medusajs/medusa/blob/daea35fe73/packages/types/src/pricing/common/price-set.ts#L66)
___
### currency\_code
**currency\_code**: ``null`` \| `string`
a string indicating the currency code of the calculated price. It can possibly be `null`.
#### Defined in
[packages/types/src/pricing/common/price-set.ts:67](https://github.com/medusajs/medusa/blob/daea35fe73/packages/types/src/pricing/common/price-set.ts#L67)
___
### id
**id**: `string`
a string indicating the ID of the price set.
#### Defined in
[packages/types/src/pricing/common/price-set.ts:65](https://github.com/medusajs/medusa/blob/daea35fe73/packages/types/src/pricing/common/price-set.ts#L65)
___
### max\_quantity
**max\_quantity**: ``null`` \| `number`
a number indicaitng the maximum quantity required to be purchased for this price to apply. It's set if the `quantity` property is provided in the context. Otherwise, its value will be `null`.
#### Defined in
[packages/types/src/pricing/common/price-set.ts:69](https://github.com/medusajs/medusa/blob/daea35fe73/packages/types/src/pricing/common/price-set.ts#L69)
___
### min\_quantity
**min\_quantity**: ``null`` \| `number`
a number indicaitng the minimum quantity required to be purchased for this price to apply. It's set if the `quantity` property is provided in the context. Otherwise, its value will be `null`.
#### Defined in
[packages/types/src/pricing/common/price-set.ts:68](https://github.com/medusajs/medusa/blob/daea35fe73/packages/types/src/pricing/common/price-set.ts#L68)