@wix/auto_sdk_ecom_tax-calculation 1.0.54 → 1.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,74 +40,74 @@ module.exports = __toCommonJS(schemas_exports);
40
40
  // src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.ts
41
41
  var z = __toESM(require("zod"));
42
42
  var CalculateTaxRequest = /* @__PURE__ */ z.object({
43
- options: z.object({
44
- externalId: z.string().describe(
43
+ options: /* @__PURE__ */ z.object({
44
+ externalId: /* @__PURE__ */ z.string().describe(
45
45
  "Optional ID of the entity that tax is being calculated for. For example, a cart ID."
46
46
  ).regex(
47
47
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
48
48
  "Must be a valid GUID"
49
49
  ).optional().nullable(),
50
- currency: z.string().describe(
50
+ currency: /* @__PURE__ */ z.string().describe(
51
51
  "3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format."
52
52
  ).optional(),
53
- addresses: z.array(
54
- z.object({
55
- country: z.string().describe(
53
+ addresses: /* @__PURE__ */ z.array(
54
+ /* @__PURE__ */ z.object({
55
+ country: /* @__PURE__ */ z.string().describe(
56
56
  "2-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format."
57
57
  ).optional().nullable(),
58
- subdivision: z.string().describe(
58
+ subdivision: /* @__PURE__ */ z.string().describe(
59
59
  "Subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format."
60
60
  ).max(50).optional().nullable(),
61
- city: z.string().describe("City name.").max(100).optional().nullable(),
62
- postalCode: z.string().describe("Postal or zip code.").max(50).optional().nullable(),
63
- addressLine: z.string().describe(
61
+ city: /* @__PURE__ */ z.string().describe("City name.").max(100).optional().nullable(),
62
+ postalCode: /* @__PURE__ */ z.string().describe("Postal or zip code.").max(50).optional().nullable(),
63
+ addressLine: /* @__PURE__ */ z.string().describe(
64
64
  "Main address line, usually street and number as free text."
65
65
  ).max(200).optional().nullable(),
66
- addressLine2: z.string().describe(
66
+ addressLine2: /* @__PURE__ */ z.string().describe(
67
67
  "Free text providing more detailed address information, such as apartment, suite, or floor."
68
68
  ).max(200).optional().nullable()
69
69
  })
70
70
  ).min(1).max(3),
71
- lineItems: z.array(
72
- z.object({
73
- _id: z.string().describe("Line item ID.").min(1).max(100),
74
- itemName: z.string().describe("Line item name to display.").min(0).max(250).optional().nullable(),
75
- quantity: z.number().int().describe("Line item quantity.").min(1).max(1e5).optional(),
76
- price: z.string().describe("Line item price."),
77
- itemCode: z.string().describe(
71
+ lineItems: /* @__PURE__ */ z.array(
72
+ /* @__PURE__ */ z.object({
73
+ _id: /* @__PURE__ */ z.string().describe("Line item ID.").min(1).max(100),
74
+ itemName: /* @__PURE__ */ z.string().describe("Line item name to display.").min(0).max(250).optional().nullable(),
75
+ quantity: /* @__PURE__ */ z.number().int().describe("Line item quantity.").min(1).max(1e5).optional(),
76
+ price: /* @__PURE__ */ z.string().describe("Line item price."),
77
+ itemCode: /* @__PURE__ */ z.string().describe(
78
78
  "Stock keeping unit for this line item. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku)."
79
79
  ).max(40).optional().nullable(),
80
- taxGroupId: z.string().describe(
80
+ taxGroupId: /* @__PURE__ */ z.string().describe(
81
81
  "Tax group ID for this line item. If not provided, the default tax group applies."
82
82
  ).regex(
83
83
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
84
84
  "Must be a valid GUID"
85
85
  ).optional().nullable(),
86
- appId: z.string().describe(
86
+ appId: /* @__PURE__ */ z.string().describe(
87
87
  'ID of the app providing the catalog for this line item.\n\nYou can get your app\'s ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n\nFor items from Wix catalogs, the following values always apply:\n+ Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`\n+ Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`\n+ Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`'
88
88
  ).regex(
89
89
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
90
90
  "Must be a valid GUID"
91
91
  ).optional().nullable(),
92
- taxIncludedInPrice: z.boolean().describe("Whether tax is included in the price.").optional().nullable(),
93
- addressIndex: z.intersection(
94
- z.object({}),
95
- z.xor([
96
- z.object({
97
- singleAddress: z.never().optional(),
98
- multipleAddresses: z.never().optional()
92
+ taxIncludedInPrice: /* @__PURE__ */ z.boolean().describe("Whether tax is included in the price.").optional().nullable(),
93
+ addressIndex: /* @__PURE__ */ z.intersection(
94
+ /* @__PURE__ */ z.object({}),
95
+ /* @__PURE__ */ z.xor([
96
+ /* @__PURE__ */ z.object({
97
+ singleAddress: /* @__PURE__ */ z.never().optional(),
98
+ multipleAddresses: /* @__PURE__ */ z.never().optional()
99
99
  }),
100
- z.object({
101
- multipleAddresses: z.never().optional(),
102
- singleAddress: z.number().int().describe(
100
+ /* @__PURE__ */ z.object({
101
+ multipleAddresses: /* @__PURE__ */ z.never().optional(),
102
+ singleAddress: /* @__PURE__ */ z.number().int().describe(
103
103
  "Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based."
104
104
  )
105
105
  }),
106
- z.object({
107
- singleAddress: z.never().optional(),
108
- multipleAddresses: z.object({
109
- origin: z.number().int().describe("Index of the origin address.").optional(),
110
- destination: z.number().int().describe("Index of the destination address.").optional()
106
+ /* @__PURE__ */ z.object({
107
+ singleAddress: /* @__PURE__ */ z.never().optional(),
108
+ multipleAddresses: /* @__PURE__ */ z.object({
109
+ origin: /* @__PURE__ */ z.number().int().describe("Index of the origin address.").optional(),
110
+ destination: /* @__PURE__ */ z.number().int().describe("Index of the destination address.").optional()
111
111
  }).describe(
112
112
  "Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\nas well as the address the item is shipped to."
113
113
  )
@@ -121,39 +121,39 @@ var CalculateTaxRequest = /* @__PURE__ */ z.object({
121
121
  }).describe("Calculate tax options.")
122
122
  });
123
123
  var CalculateTaxResponse = /* @__PURE__ */ z.object({
124
- externalId: z.string().describe(
124
+ externalId: /* @__PURE__ */ z.string().describe(
125
125
  "Optional ID of the entity that tax is being calculated for. For example, a cart ID."
126
126
  ).regex(
127
127
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
128
128
  "Must be a valid GUID"
129
129
  ).optional().nullable(),
130
- currency: z.string().describe(
130
+ currency: /* @__PURE__ */ z.string().describe(
131
131
  "3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format."
132
132
  ).optional(),
133
- addresses: z.array(
134
- z.object({
135
- city: z.string().optional().nullable(),
136
- subdivision: z.string().optional().nullable(),
137
- country: z.string().optional().nullable(),
138
- postalCode: z.string().optional().nullable(),
139
- addressLine2: z.string().optional().nullable()
133
+ addresses: /* @__PURE__ */ z.array(
134
+ /* @__PURE__ */ z.object({
135
+ city: /* @__PURE__ */ z.string().optional().nullable(),
136
+ subdivision: /* @__PURE__ */ z.string().optional().nullable(),
137
+ country: /* @__PURE__ */ z.string().optional().nullable(),
138
+ postalCode: /* @__PURE__ */ z.string().optional().nullable(),
139
+ addressLine2: /* @__PURE__ */ z.string().optional().nullable()
140
140
  })
141
141
  ).min(1).max(3).optional(),
142
- taxSummary: z.object({
143
- totalAmount: z.string().describe("Total price for all line items.").optional(),
144
- totalTax: z.string().describe(
142
+ taxSummary: /* @__PURE__ */ z.object({
143
+ totalAmount: /* @__PURE__ */ z.string().describe("Total price for all line items.").optional(),
144
+ totalTax: /* @__PURE__ */ z.string().describe(
145
145
  "Total amount of tax calculated for all line items.\nNote that due to rounding, `totalTax` may not equal the sum of `lineItemTaxDetails.taxSummary.taxAmount`."
146
146
  ).optional(),
147
- totalTaxableAmount: z.string().describe("Total taxable amount for all line items.").optional(),
148
- totalTaxIncludedInPrice: z.string().describe(
147
+ totalTaxableAmount: /* @__PURE__ */ z.string().describe("Total taxable amount for all line items.").optional(),
148
+ totalTaxIncludedInPrice: /* @__PURE__ */ z.string().describe(
149
149
  "Total amount of `totalTax` that is included in price. Applies to line items with `taxIncludedInPrice` set to `true`."
150
150
  ).optional(),
151
- aggregatedTaxBreakdown: z.array(
152
- z.object({
153
- taxName: z.string().describe("Name of the tax that was calculated.").max(200).optional(),
154
- taxType: z.string().describe("Type of tax that was calculated.").max(200).optional(),
155
- jurisdiction: z.string().describe("Jurisdiction that taxes were calculated for.").max(200).optional(),
156
- jurisdictionType: z.enum([
151
+ aggregatedTaxBreakdown: /* @__PURE__ */ z.array(
152
+ /* @__PURE__ */ z.object({
153
+ taxName: /* @__PURE__ */ z.string().describe("Name of the tax that was calculated.").max(200).optional(),
154
+ taxType: /* @__PURE__ */ z.string().describe("Type of tax that was calculated.").max(200).optional(),
155
+ jurisdiction: /* @__PURE__ */ z.string().describe("Jurisdiction that taxes were calculated for.").max(200).optional(),
156
+ jurisdictionType: /* @__PURE__ */ z.enum([
157
157
  "UNDEFINED",
158
158
  "COUNTRY",
159
159
  "STATE",
@@ -161,36 +161,36 @@ var CalculateTaxResponse = /* @__PURE__ */ z.object({
161
161
  "CITY",
162
162
  "SPECIAL"
163
163
  ]).describe("Type of jurisdiction that taxes were calculated for.").optional(),
164
- rate: z.string().describe(
164
+ rate: /* @__PURE__ */ z.string().describe(
165
165
  'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `"0.1000"` and 200% tax is `"2.0000"`.'
166
166
  ).optional(),
167
- aggregatedTaxAmount: z.string().describe("Total amount of this tax for this jurisdiction.").optional()
167
+ aggregatedTaxAmount: /* @__PURE__ */ z.string().describe("Total amount of this tax for this jurisdiction.").optional()
168
168
  })
169
169
  ).min(0).max(50).optional()
170
170
  }).describe("Summary of the tax calculated.").optional(),
171
- lineItemTaxDetails: z.array(
172
- z.object({
173
- _id: z.string().describe("Line item ID.").min(1).max(100).optional(),
174
- itemName: z.string().describe("Line item name to display.").min(0).max(250).optional().nullable(),
175
- quantity: z.number().int().describe("Line item quantity.").min(1).max(1e5).optional(),
176
- taxBreakdown: z.array(
177
- z.object({
178
- jurisdiction: z.string().describe("Jurisdiction that taxes were calculated for.").max(200).optional().nullable(),
179
- nonTaxableAmount: z.string().describe("Non-taxable amount of the price.").optional().nullable(),
180
- rate: z.string().describe(
171
+ lineItemTaxDetails: /* @__PURE__ */ z.array(
172
+ /* @__PURE__ */ z.object({
173
+ _id: /* @__PURE__ */ z.string().describe("Line item ID.").min(1).max(100).optional(),
174
+ itemName: /* @__PURE__ */ z.string().describe("Line item name to display.").min(0).max(250).optional().nullable(),
175
+ quantity: /* @__PURE__ */ z.number().int().describe("Line item quantity.").min(1).max(1e5).optional(),
176
+ taxBreakdown: /* @__PURE__ */ z.array(
177
+ /* @__PURE__ */ z.object({
178
+ jurisdiction: /* @__PURE__ */ z.string().describe("Jurisdiction that taxes were calculated for.").max(200).optional().nullable(),
179
+ nonTaxableAmount: /* @__PURE__ */ z.string().describe("Non-taxable amount of the price.").optional().nullable(),
180
+ rate: /* @__PURE__ */ z.string().describe(
181
181
  'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `"0.1000"` and 200% tax is `"2.0000"`.'
182
182
  ).optional().nullable(),
183
- taxAmount: z.string().describe(
183
+ taxAmount: /* @__PURE__ */ z.string().describe(
184
184
  "Amount of this tax calculated for this jurisdiction."
185
185
  ).optional().nullable(),
186
- taxableAmount: z.string().describe("Taxable amount of the price.").optional().nullable(),
187
- taxType: z.string().describe(
186
+ taxableAmount: /* @__PURE__ */ z.string().describe("Taxable amount of the price.").optional().nullable(),
187
+ taxType: /* @__PURE__ */ z.string().describe(
188
188
  'Type of tax that was calculated. For example, `"Sales Tax"`, `"Income Tax"`, `"Value Added Tax"`, etc.'
189
189
  ).max(200).optional().nullable(),
190
- taxName: z.string().describe(
190
+ taxName: /* @__PURE__ */ z.string().describe(
191
191
  'Name of the tax that was calculated. For example, `"NY State Sales Tax"`, `"Quebec GST"`, etc.'
192
192
  ).max(200).optional().nullable(),
193
- jurisdictionType: z.enum([
193
+ jurisdictionType: /* @__PURE__ */ z.enum([
194
194
  "UNDEFINED",
195
195
  "COUNTRY",
196
196
  "STATE",
@@ -202,34 +202,34 @@ var CalculateTaxResponse = /* @__PURE__ */ z.object({
202
202
  ).optional()
203
203
  })
204
204
  ).max(7).optional(),
205
- taxSummary: z.object({
206
- fullPrice: z.string().describe(
205
+ taxSummary: /* @__PURE__ */ z.object({
206
+ fullPrice: /* @__PURE__ */ z.string().describe(
207
207
  "Total price for this line item.\nTo determine the price for each individual unit of this line item, divide by `quantity`."
208
208
  ).optional().nullable(),
209
- taxAmount: z.string().describe("Total amount of tax calculated for this line item.").optional(),
210
- taxableAmount: z.string().describe("Total taxable amount for this line item.").optional(),
211
- appId: z.string().describe(
209
+ taxAmount: /* @__PURE__ */ z.string().describe("Total amount of tax calculated for this line item.").optional(),
210
+ taxableAmount: /* @__PURE__ */ z.string().describe("Total taxable amount for this line item.").optional(),
211
+ appId: /* @__PURE__ */ z.string().describe(
212
212
  "ID of the calculator app that calculated tax for this line item."
213
213
  ).max(50).optional().nullable()
214
214
  }).describe("Summary of this line item's total price and tax.").optional(),
215
- addressIndex: z.intersection(
216
- z.object({}),
217
- z.xor([
218
- z.object({
219
- singleAddress: z.never().optional(),
220
- multipleAddresses: z.never().optional()
215
+ addressIndex: /* @__PURE__ */ z.intersection(
216
+ /* @__PURE__ */ z.object({}),
217
+ /* @__PURE__ */ z.xor([
218
+ /* @__PURE__ */ z.object({
219
+ singleAddress: /* @__PURE__ */ z.never().optional(),
220
+ multipleAddresses: /* @__PURE__ */ z.never().optional()
221
221
  }),
222
- z.object({
223
- multipleAddresses: z.never().optional(),
224
- singleAddress: z.number().int().describe(
222
+ /* @__PURE__ */ z.object({
223
+ multipleAddresses: /* @__PURE__ */ z.never().optional(),
224
+ singleAddress: /* @__PURE__ */ z.number().int().describe(
225
225
  "Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based."
226
226
  )
227
227
  }),
228
- z.object({
229
- singleAddress: z.never().optional(),
230
- multipleAddresses: z.object({
231
- origin: z.number().int().describe("Index of the origin address.").optional(),
232
- destination: z.number().int().describe("Index of the destination address.").optional()
228
+ /* @__PURE__ */ z.object({
229
+ singleAddress: /* @__PURE__ */ z.never().optional(),
230
+ multipleAddresses: /* @__PURE__ */ z.object({
231
+ origin: /* @__PURE__ */ z.number().int().describe("Index of the origin address.").optional(),
232
+ destination: /* @__PURE__ */ z.number().int().describe("Index of the destination address.").optional()
233
233
  }).describe(
234
234
  "Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\nas well as the address the item is shipped to."
235
235
  )
@@ -238,27 +238,27 @@ var CalculateTaxResponse = /* @__PURE__ */ z.object({
238
238
  ).describe(
239
239
  "Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based."
240
240
  ).optional(),
241
- taxIncludedInPrice: z.boolean().describe("Whether tax is included in the price.").optional()
241
+ taxIncludedInPrice: /* @__PURE__ */ z.boolean().describe("Whether tax is included in the price.").optional()
242
242
  })
243
243
  ).min(1).max(300).optional(),
244
- errors: z.array(
245
- z.object({
246
- code: z.string().describe("Error code.").optional(),
247
- description: z.string().describe("Description of the error.").optional(),
248
- data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
244
+ errors: /* @__PURE__ */ z.array(
245
+ /* @__PURE__ */ z.object({
246
+ code: /* @__PURE__ */ z.string().describe("Error code.").optional(),
247
+ description: /* @__PURE__ */ z.string().describe("Description of the error.").optional(),
248
+ data: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Data related to the error.").optional().nullable()
249
249
  })
250
250
  ).min(0).max(100).optional()
251
251
  });
252
252
  var ListTaxCalculatorsRequest = /* @__PURE__ */ z.object({});
253
253
  var ListTaxCalculatorsResponse = /* @__PURE__ */ z.object({
254
- taxCalculatorDetails: z.array(
255
- z.object({
256
- appId: z.string().describe("ID of the tax calculator.").regex(
254
+ taxCalculatorDetails: /* @__PURE__ */ z.array(
255
+ /* @__PURE__ */ z.object({
256
+ appId: /* @__PURE__ */ z.string().describe("ID of the tax calculator.").regex(
257
257
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
258
258
  "Must be a valid GUID"
259
259
  ).optional(),
260
- displayName: z.string().describe("Display name of the tax calculator.").min(1).max(200).optional(),
261
- unsupportedCountries: z.array(z.string()).max(195).optional()
260
+ displayName: /* @__PURE__ */ z.string().describe("Display name of the tax calculator.").min(1).max(200).optional(),
261
+ unsupportedCountries: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(195).optional()
262
262
  })
263
263
  ).max(10).optional()
264
264
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../schemas.ts","../../src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.ts"],"sourcesContent":["export * from './src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.js';\n","import * as z from 'zod';\n\nexport const CalculateTaxRequest = /*#__PURE__*/ z.object({\n options: z\n .object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n country: z\n .string()\n .describe(\n '2-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.'\n )\n .optional()\n .nullable(),\n subdivision: z\n .string()\n .describe(\n 'Subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.'\n )\n .max(50)\n .optional()\n .nullable(),\n city: z\n .string()\n .describe('City name.')\n .max(100)\n .optional()\n .nullable(),\n postalCode: z\n .string()\n .describe('Postal or zip code.')\n .max(50)\n .optional()\n .nullable(),\n addressLine: z\n .string()\n .describe(\n 'Main address line, usually street and number as free text.'\n )\n .max(200)\n .optional()\n .nullable(),\n addressLine2: z\n .string()\n .describe(\n 'Free text providing more detailed address information, such as apartment, suite, or floor.'\n )\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3),\n lineItems: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n price: z.string().describe('Line item price.'),\n itemCode: z\n .string()\n .describe(\n 'Stock keeping unit for this line item. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).'\n )\n .max(40)\n .optional()\n .nullable(),\n taxGroupId: z\n .string()\n .describe(\n 'Tax group ID for this line item. If not provided, the default tax group applies.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app providing the catalog for this line item.\\n\\nYou can get your app\\'s ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\\n\\nFor items from Wix catalogs, the following values always apply:\\n+ Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\\n+ Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n+ Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional()\n .nullable(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n ),\n })\n )\n .min(1)\n .max(300),\n })\n .describe('Calculate tax options.'),\n});\nexport const CalculateTaxResponse = /*#__PURE__*/ z.object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n city: z.string().optional().nullable(),\n subdivision: z.string().optional().nullable(),\n country: z.string().optional().nullable(),\n postalCode: z.string().optional().nullable(),\n addressLine2: z.string().optional().nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n taxSummary: z\n .object({\n totalAmount: z\n .string()\n .describe('Total price for all line items.')\n .optional(),\n totalTax: z\n .string()\n .describe(\n 'Total amount of tax calculated for all line items.\\nNote that due to rounding, `totalTax` may not equal the sum of `lineItemTaxDetails.taxSummary.taxAmount`.'\n )\n .optional(),\n totalTaxableAmount: z\n .string()\n .describe('Total taxable amount for all line items.')\n .optional(),\n totalTaxIncludedInPrice: z\n .string()\n .describe(\n 'Total amount of `totalTax` that is included in price. Applies to line items with `taxIncludedInPrice` set to `true`.'\n )\n .optional(),\n aggregatedTaxBreakdown: z\n .array(\n z.object({\n taxName: z\n .string()\n .describe('Name of the tax that was calculated.')\n .max(200)\n .optional(),\n taxType: z\n .string()\n .describe('Type of tax that was calculated.')\n .max(200)\n .optional(),\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe('Type of jurisdiction that taxes were calculated for.')\n .optional(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional(),\n aggregatedTaxAmount: z\n .string()\n .describe('Total amount of this tax for this jurisdiction.')\n .optional(),\n })\n )\n .min(0)\n .max(50)\n .optional(),\n })\n .describe('Summary of the tax calculated.')\n .optional(),\n lineItemTaxDetails: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100).optional(),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n taxBreakdown: z\n .array(\n z.object({\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional()\n .nullable(),\n nonTaxableAmount: z\n .string()\n .describe('Non-taxable amount of the price.')\n .optional()\n .nullable(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe(\n 'Amount of this tax calculated for this jurisdiction.'\n )\n .optional()\n .nullable(),\n taxableAmount: z\n .string()\n .describe('Taxable amount of the price.')\n .optional()\n .nullable(),\n taxType: z\n .string()\n .describe(\n 'Type of tax that was calculated. For example, `\"Sales Tax\"`, `\"Income Tax\"`, `\"Value Added Tax\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n taxName: z\n .string()\n .describe(\n 'Name of the tax that was calculated. For example, `\"NY State Sales Tax\"`, `\"Quebec GST\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe(\n 'Type of jurisdiction that taxes were calculated for. For example, `\"State\"`, `\"Çounty\"`, `\"City\"`, `\"Special\"`, etc.'\n )\n .optional(),\n })\n )\n .max(7)\n .optional(),\n taxSummary: z\n .object({\n fullPrice: z\n .string()\n .describe(\n 'Total price for this line item.\\nTo determine the price for each individual unit of this line item, divide by `quantity`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe('Total amount of tax calculated for this line item.')\n .optional(),\n taxableAmount: z\n .string()\n .describe('Total taxable amount for this line item.')\n .optional(),\n appId: z\n .string()\n .describe(\n 'ID of the calculator app that calculated tax for this line item.'\n )\n .max(50)\n .optional()\n .nullable(),\n })\n .describe(\"Summary of this line item's total price and tax.\")\n .optional(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n )\n .optional(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional(),\n })\n )\n .min(1)\n .max(300)\n .optional(),\n errors: z\n .array(\n z.object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n )\n .min(0)\n .max(100)\n .optional(),\n});\nexport const ListTaxCalculatorsRequest = /*#__PURE__*/ z.object({});\nexport const ListTaxCalculatorsResponse = /*#__PURE__*/ z.object({\n taxCalculatorDetails: z\n .array(\n z.object({\n appId: z\n .string()\n .describe('ID of the tax calculator.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n displayName: z\n .string()\n .describe('Display name of the tax calculator.')\n .min(1)\n .max(200)\n .optional(),\n unsupportedCountries: z.array(z.string()).max(195).optional(),\n })\n )\n .max(10)\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,sBAAoC,gBAAE,SAAO;AAAA,EACxD,SACG,SAAO;AAAA,IACN,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,WACG;AAAA,MACG,SAAO;AAAA,QACP,SACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,aACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,QACZ,MACG,SAAO,EACP,SAAS,YAAY,EACrB,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACZ,YACG,SAAO,EACP,SAAS,qBAAqB,EAC9B,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,QACZ,aACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACZ,cACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,MACd,CAAC;AAAA,IACH,EACC,IAAI,CAAC,EACL,IAAI,CAAC;AAAA,IACR,WACG;AAAA,MACG,SAAO;AAAA,QACP,KAAO,SAAO,EAAE,SAAS,eAAe,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG;AAAA,QACxD,UACG,SAAO,EACP,SAAS,4BAA4B,EACrC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACZ,UACG,SAAO,EACP,IAAI,EACJ,SAAS,qBAAqB,EAC9B,IAAI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,aACG,SAAO,EACP,SAAS,2BAA2B,EACpC,SAAS;AAAA,MACZ,MACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B,SAAS,4BAA4B,EACrC,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AACd,CAAC;AACM,IAAM,4BAA0C,gBAAE,SAAO,CAAC,CAAC;AAC3D,IAAM,6BAA2C,gBAAE,SAAO;AAAA,EAC/D,sBACG;AAAA,IACG,SAAO;AAAA,MACP,OACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS;AAAA,MACZ,aACG,SAAO,EACP,SAAS,qCAAqC,EAC9C,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,MACZ,sBAAwB,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IAC9D,CAAC;AAAA,EACH,EACC,IAAI,EAAE,EACN,SAAS;AACd,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../schemas.ts","../../src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.ts"],"sourcesContent":["export * from './src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.js';\n","import * as z from 'zod';\n\nexport const CalculateTaxRequest = /*#__PURE__*/ z.object({\n options: /*#__PURE__*/ z\n .object({\n externalId: /*#__PURE__*/ z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: /*#__PURE__*/ z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n country: /*#__PURE__*/ z\n .string()\n .describe(\n '2-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.'\n )\n .optional()\n .nullable(),\n subdivision: /*#__PURE__*/ z\n .string()\n .describe(\n 'Subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.'\n )\n .max(50)\n .optional()\n .nullable(),\n city: /*#__PURE__*/ z\n .string()\n .describe('City name.')\n .max(100)\n .optional()\n .nullable(),\n postalCode: /*#__PURE__*/ z\n .string()\n .describe('Postal or zip code.')\n .max(50)\n .optional()\n .nullable(),\n addressLine: /*#__PURE__*/ z\n .string()\n .describe(\n 'Main address line, usually street and number as free text.'\n )\n .max(200)\n .optional()\n .nullable(),\n addressLine2: /*#__PURE__*/ z\n .string()\n .describe(\n 'Free text providing more detailed address information, such as apartment, suite, or floor.'\n )\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3),\n lineItems: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n _id: /*#__PURE__*/ z\n .string()\n .describe('Line item ID.')\n .min(1)\n .max(100),\n itemName: /*#__PURE__*/ z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n price: /*#__PURE__*/ z.string().describe('Line item price.'),\n itemCode: /*#__PURE__*/ z\n .string()\n .describe(\n 'Stock keeping unit for this line item. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).'\n )\n .max(40)\n .optional()\n .nullable(),\n taxGroupId: /*#__PURE__*/ z\n .string()\n .describe(\n 'Tax group ID for this line item. If not provided, the default tax group applies.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n appId: /*#__PURE__*/ z\n .string()\n .describe(\n 'ID of the app providing the catalog for this line item.\\n\\nYou can get your app\\'s ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\\n\\nFor items from Wix catalogs, the following values always apply:\\n+ Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\\n+ Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n+ Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n taxIncludedInPrice: /*#__PURE__*/ z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional()\n .nullable(),\n addressIndex: /*#__PURE__*/ z\n .intersection(\n /*#__PURE__*/ z.object({}),\n /*#__PURE__*/ z.xor([\n /*#__PURE__*/ z.object({\n singleAddress: /*#__PURE__*/ z.never().optional(),\n multipleAddresses: /*#__PURE__*/ z.never().optional(),\n }),\n /*#__PURE__*/ z.object({\n multipleAddresses: /*#__PURE__*/ z.never().optional(),\n singleAddress: /*#__PURE__*/ z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n /*#__PURE__*/ z.object({\n singleAddress: /*#__PURE__*/ z.never().optional(),\n multipleAddresses: /*#__PURE__*/ z\n .object({\n origin: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n ),\n })\n )\n .min(1)\n .max(300),\n })\n .describe('Calculate tax options.'),\n});\nexport const CalculateTaxResponse = /*#__PURE__*/ z.object({\n externalId: /*#__PURE__*/ z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: /*#__PURE__*/ z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n city: /*#__PURE__*/ z.string().optional().nullable(),\n subdivision: /*#__PURE__*/ z.string().optional().nullable(),\n country: /*#__PURE__*/ z.string().optional().nullable(),\n postalCode: /*#__PURE__*/ z.string().optional().nullable(),\n addressLine2: /*#__PURE__*/ z.string().optional().nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n taxSummary: /*#__PURE__*/ z\n .object({\n totalAmount: /*#__PURE__*/ z\n .string()\n .describe('Total price for all line items.')\n .optional(),\n totalTax: /*#__PURE__*/ z\n .string()\n .describe(\n 'Total amount of tax calculated for all line items.\\nNote that due to rounding, `totalTax` may not equal the sum of `lineItemTaxDetails.taxSummary.taxAmount`.'\n )\n .optional(),\n totalTaxableAmount: /*#__PURE__*/ z\n .string()\n .describe('Total taxable amount for all line items.')\n .optional(),\n totalTaxIncludedInPrice: /*#__PURE__*/ z\n .string()\n .describe(\n 'Total amount of `totalTax` that is included in price. Applies to line items with `taxIncludedInPrice` set to `true`.'\n )\n .optional(),\n aggregatedTaxBreakdown: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n taxName: /*#__PURE__*/ z\n .string()\n .describe('Name of the tax that was calculated.')\n .max(200)\n .optional(),\n taxType: /*#__PURE__*/ z\n .string()\n .describe('Type of tax that was calculated.')\n .max(200)\n .optional(),\n jurisdiction: /*#__PURE__*/ z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional(),\n jurisdictionType: /*#__PURE__*/ z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe('Type of jurisdiction that taxes were calculated for.')\n .optional(),\n rate: /*#__PURE__*/ z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional(),\n aggregatedTaxAmount: /*#__PURE__*/ z\n .string()\n .describe('Total amount of this tax for this jurisdiction.')\n .optional(),\n })\n )\n .min(0)\n .max(50)\n .optional(),\n })\n .describe('Summary of the tax calculated.')\n .optional(),\n lineItemTaxDetails: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n _id: /*#__PURE__*/ z\n .string()\n .describe('Line item ID.')\n .min(1)\n .max(100)\n .optional(),\n itemName: /*#__PURE__*/ z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n taxBreakdown: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n jurisdiction: /*#__PURE__*/ z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional()\n .nullable(),\n nonTaxableAmount: /*#__PURE__*/ z\n .string()\n .describe('Non-taxable amount of the price.')\n .optional()\n .nullable(),\n rate: /*#__PURE__*/ z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional()\n .nullable(),\n taxAmount: /*#__PURE__*/ z\n .string()\n .describe(\n 'Amount of this tax calculated for this jurisdiction.'\n )\n .optional()\n .nullable(),\n taxableAmount: /*#__PURE__*/ z\n .string()\n .describe('Taxable amount of the price.')\n .optional()\n .nullable(),\n taxType: /*#__PURE__*/ z\n .string()\n .describe(\n 'Type of tax that was calculated. For example, `\"Sales Tax\"`, `\"Income Tax\"`, `\"Value Added Tax\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n taxName: /*#__PURE__*/ z\n .string()\n .describe(\n 'Name of the tax that was calculated. For example, `\"NY State Sales Tax\"`, `\"Quebec GST\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n jurisdictionType: /*#__PURE__*/ z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe(\n 'Type of jurisdiction that taxes were calculated for. For example, `\"State\"`, `\"Çounty\"`, `\"City\"`, `\"Special\"`, etc.'\n )\n .optional(),\n })\n )\n .max(7)\n .optional(),\n taxSummary: /*#__PURE__*/ z\n .object({\n fullPrice: /*#__PURE__*/ z\n .string()\n .describe(\n 'Total price for this line item.\\nTo determine the price for each individual unit of this line item, divide by `quantity`.'\n )\n .optional()\n .nullable(),\n taxAmount: /*#__PURE__*/ z\n .string()\n .describe('Total amount of tax calculated for this line item.')\n .optional(),\n taxableAmount: /*#__PURE__*/ z\n .string()\n .describe('Total taxable amount for this line item.')\n .optional(),\n appId: /*#__PURE__*/ z\n .string()\n .describe(\n 'ID of the calculator app that calculated tax for this line item.'\n )\n .max(50)\n .optional()\n .nullable(),\n })\n .describe(\"Summary of this line item's total price and tax.\")\n .optional(),\n addressIndex: /*#__PURE__*/ z\n .intersection(\n /*#__PURE__*/ z.object({}),\n /*#__PURE__*/ z.xor([\n /*#__PURE__*/ z.object({\n singleAddress: /*#__PURE__*/ z.never().optional(),\n multipleAddresses: /*#__PURE__*/ z.never().optional(),\n }),\n /*#__PURE__*/ z.object({\n multipleAddresses: /*#__PURE__*/ z.never().optional(),\n singleAddress: /*#__PURE__*/ z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n /*#__PURE__*/ z.object({\n singleAddress: /*#__PURE__*/ z.never().optional(),\n multipleAddresses: /*#__PURE__*/ z\n .object({\n origin: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n )\n .optional(),\n taxIncludedInPrice: /*#__PURE__*/ z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional(),\n })\n )\n .min(1)\n .max(300)\n .optional(),\n errors: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n code: /*#__PURE__*/ z.string().describe('Error code.').optional(),\n description: /*#__PURE__*/ z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: /*#__PURE__*/ z\n .record(/*#__PURE__*/ z.string(), /*#__PURE__*/ z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n )\n .min(0)\n .max(100)\n .optional(),\n});\nexport const ListTaxCalculatorsRequest = /*#__PURE__*/ z.object({});\nexport const ListTaxCalculatorsResponse = /*#__PURE__*/ z.object({\n taxCalculatorDetails: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n appId: /*#__PURE__*/ z\n .string()\n .describe('ID of the tax calculator.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n displayName: /*#__PURE__*/ z\n .string()\n .describe('Display name of the tax calculator.')\n .min(1)\n .max(200)\n .optional(),\n unsupportedCountries: /*#__PURE__*/ z\n .array(/*#__PURE__*/ z.string())\n .max(195)\n .optional(),\n })\n )\n .max(10)\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,sBAAoC,gBAAE,SAAO;AAAA,EACxD,SAAuB,gBACpB,SAAO;AAAA,IACN,YAA0B,gBACvB,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UAAwB,gBACrB,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,WAAyB,gBACtB;AAAA,MACe,gBAAE,SAAO;AAAA,QACrB,SAAuB,gBACpB,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,aAA2B,gBACxB,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,QACZ,MAAoB,gBACjB,SAAO,EACP,SAAS,YAAY,EACrB,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACZ,YAA0B,gBACvB,SAAO,EACP,SAAS,qBAAqB,EAC9B,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,QACZ,aAA2B,gBACxB,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACZ,cAA4B,gBACzB,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,MACd,CAAC;AAAA,IACH,EACC,IAAI,CAAC,EACL,IAAI,CAAC;AAAA,IACR,WAAyB,gBACtB;AAAA,MACe,gBAAE,SAAO;AAAA,QACrB,KAAmB,gBAChB,SAAO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