|
1
|
/** |
|
2
|
* @schema AdminCreateTaxRegion |
|
3
|
* type: object |
|
4
|
* description: The tax region's details. |
|
5
|
* x-schemaName: AdminCreateTaxRegion |
|
6
|
* required: |
|
7
|
* - country_code |
|
8
|
* properties: |
|
9
|
* country_code: |
|
10
|
* type: string |
|
11
|
* title: country_code |
|
12
|
* description: The tax region's country code. |
|
13
|
* example: us |
|
14
|
* province_code: |
|
15
|
* type: string |
|
16
|
* title: province_code |
|
17
|
* description: The tax region's ISO 3166-2 province code. Must be lower-case. |
|
18
|
* example: us-ca |
|
19
|
* externalDocs: |
|
20
|
* url: https://en.wikipedia.org/wiki/ISO_3166-2 |
|
21
|
* description: Learn more about ISO 3166-2 |
|
22
|
* parent_id: |
|
23
|
* type: string |
|
24
|
* title: parent_id |
|
25
|
* description: The ID of the parent tax region. |
|
26
|
* default_tax_rate: |
|
27
|
* type: object |
|
28
|
* description: The tax region's default tax rate. |
|
29
|
* required: |
|
30
|
* - code |
|
31
|
* - name |
|
32
|
* properties: |
|
33
|
* rate: |
|
34
|
* type: number |
|
35
|
* title: rate |
|
36
|
* description: The rate to charge. |
|
37
|
* example: 10 |
|
38
|
* code: |
|
39
|
* type: string |
|
40
|
* title: code |
|
41
|
* description: The code the tax rate is identified by |
|
42
|
* name: |
|
43
|
* type: string |
|
44
|
* title: name |
|
45
|
* description: The default tax rate's name. |
|
46
|
* example: VAT |
|
47
|
* is_combinable: |
|
48
|
* type: boolean |
|
49
|
* description: Whether the tax rate should be combined with parent rates. |
|
50
|
* externalDocs: |
|
51
|
* url: https://docs.medusajs.com/resources/commerce-modules/tax/tax-rates-and-rules#combinable-tax-rates |
|
52
|
* metadata: |
|
53
|
* type: object |
|
54
|
* description: The default tax rate's metadata, used to store custom key-value pairs. |
|
55
|
* externalDocs: |
|
56
|
* url: https://docs.medusajs.com/api/admin#manage-metadata |
|
57
|
* description: Learn how to manage metadata |
|
58
|
* metadata: |
|
59
|
* type: object |
|
60
|
* description: The tax region's metadata, used to store custom key-value pairs. |
|
61
|
* externalDocs: |
|
62
|
* url: https://docs.medusajs.com/api/admin#manage-metadata |
|
63
|
* description: Learn how to manage metadata |
|
64
|
* provider_id: |
|
65
|
* type: string |
|
66
|
* title: provider_id |
|
67
|
* description: The ID of the tax provider used to calculate the tax rate in this tax region. |
|
68
|
* |
|
69
|
*/ |
|
70
|
|