1 /**
2 * @schema AdminTaxRate
3 * type: object
4 * description: The tax rate's details.
5 * x-schemaName: AdminTaxRate
6 * required:
7 * - id
8 * - rate
9 * - code
10 * - name
11 * - metadata
12 * - tax_region_id
13 * - is_combinable
14 * - is_default
15 * - created_at
16 * - updated_at
17 * - deleted_at
18 * - created_by
19 * - tax_region
20 * - rules
21 * properties:
22 * id:
23 * type: string
24 * title: id
25 * description: The tax rate's ID.
26 * rate:
27 * type: number
28 * title: rate
29 * description: The rate to charge.
30 * example: 10
31 * code:
32 * type: string
33 * title: code
34 * description: The code the tax rate is identified by.
35 * name:
36 * type: string
37 * title: name
38 * description: The tax rate's name.
39 * metadata:
40 * type: object
41 * description: The tax rate's metadata, can hold custom key-value pairs.
42 * externalDocs:
43 * url: https://docs.medusajs.com/api/admin#manage-metadata
44 * description: Learn how to manage metadata
45 * tax_region_id:
46 * type: string
47 * title: tax_region_id
48 * description: The ID of the tax region this rate belongs to.
49 * is_combinable:
50 * type: boolean
51 * title: is_combinable
52 * description: Whether the tax rate should be combined with parent rates.
53 * externalDocs:
54 * url: https://docs.medusajs.com/resources/commerce-modules/tax/tax-rates-and-rules#combinable-tax-rates
55 * is_default:
56 * type: boolean
57 * title: is_default
58 * description: Whether this tax rate is the default in the tax region.
59 * created_at:
60 * type: string
61 * format: date-time
62 * title: created_at
63 * description: The date the tax rate was created.
64 * updated_at:
65 * type: string
66 * format: date-time
67 * title: updated_at
68 * description: The date the tax rate was updated.
69 * deleted_at:
70 * type: string
71 * format: date-time
72 * title: deleted_at
73 * description: The date the tax rate was deleted.
74 * created_by:
75 * type: string
76 * title: created_by
77 * description: The ID of the user that created the tax rate.
78 * tax_region:
79 * $ref: "#/components/schemas/AdminTaxRegion"
80 * rules:
81 * type: array
82 * description: The tax rate's rules.
83 * items:
84 * $ref: "#/components/schemas/AdminTaxRateRule"
85 *
86 */
87