Files
medusa-store/www/utils/generated/oas-output/schemas/AdminCreateTaxRate.ts
Shahed Nasser 4b8d9cc735 oas: [3/n] improve oas schemas (#9042)
Improve oas schemas [3/n]
2024-09-07 06:16:00 +00:00

49 lines
1.3 KiB
TypeScript

/**
* @schema AdminCreateTaxRate
* type: object
* description: The tax rate's details.
* x-schemaName: AdminCreateTaxRate
* required:
* - name
* - tax_region_id
* properties:
* name:
* type: string
* title: name
* description: The tax rate's name.
* example: VAT
* tax_region_id:
* type: string
* title: tax_region_id
* description: The ID of the tax region this rate belongs to.
* rate:
* type: number
* title: rate
* description: The rate to charge.
* example: 10
* code:
* type: string
* title: code
* description: The code the tax rate is identified by.
* rules:
* type: array
* description: The tax rate's rules.
* items:
* $ref: "#/components/schemas/AdminCreateTaxRateRule"
* is_default:
* type: boolean
* title: is_default
* description: Whether the tax rate is the default in its tax region.
* is_combinable:
* type: boolean
* title: is_combinable
* description: Whether the tax rate should be combined with parent rates.
* externalDocs:
* url: https://docs.medusajs.com/v2/resources/commerce-modules/tax/tax-rates-and-rules#combinable-tax-rates
* metadata:
* type: object
* description: The tax rate's metadata, used to store custom key-value pairs.
*
*/