1 /**
2 * @schema AdminCreateTaxRate
3 * type: object
4 * description: The tax rate's details.
5 * x-schemaName: AdminCreateTaxRate
6 * required:
7 * - name
8 * - tax_region_id
9 * - code
10 * properties:
11 * name:
12 * type: string
13 * title: name
14 * description: The tax rate's name.
15 * example: VAT
16 * tax_region_id:
17 * type: string
18 * title: tax_region_id
19 * description: The ID of the tax region this rate belongs to.
20 * rate:
21 * type: number
22 * title: rate
23 * description: The rate to charge.
24 * example: 10
25 * code:
26 * type: string
27 * title: code
28 * description: The code the tax rate is identified by.
29 * rules:
30 * type: array
31 * description: The tax rate's rules.
32 * items:
33 * $ref: "#/components/schemas/AdminCreateTaxRateRule"
34 * is_default:
35 * type: boolean
36 * title: is_default
37 * description: Whether the tax rate is the default in its tax region.
38 * is_combinable:
39 * type: boolean
40 * title: is_combinable
41 * description: Whether the tax rate should be combined with parent rates.
42 * externalDocs:
43 * url: https://docs.medusajs.com/resources/commerce-modules/tax/tax-rates-and-rules#combinable-tax-rates
44 * metadata:
45 * type: object
46 * description: The tax rate's metadata, used to store custom key-value pairs.
47 * externalDocs:
48 * url: https://docs.medusajs.com/api/admin#manage-metadata
49 * description: Learn how to manage metadata
50 *
51 */
52