@wix/auto_sdk_ecom_manual-tax-mappings 1.0.43 → 1.0.44
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.
- package/build/cjs/schemas.js +393 -319
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/schemas.mjs +393 -319
- package/build/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
- package/build/internal/cjs/index.js +0 -964
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -789
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -649
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -1022
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -924
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -751
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -610
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -966
- package/build/internal/es/schemas.mjs.map +0 -1
package/build/cjs/schemas.js
CHANGED
|
@@ -56,239 +56,257 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
56
56
|
// src/billing-v1-manual-tax-mapping-manual-tax-mappings.schemas.ts
|
|
57
57
|
var z = __toESM(require("zod"));
|
|
58
58
|
var CreateManualTaxMappingRequest = /* @__PURE__ */ z.object({
|
|
59
|
-
manualTaxMapping: z.object({
|
|
60
|
-
_id: z.string().describe("Manual tax mapping ID.").regex(
|
|
59
|
+
manualTaxMapping: /* @__PURE__ */ z.object({
|
|
60
|
+
_id: /* @__PURE__ */ z.string().describe("Manual tax mapping ID.").regex(
|
|
61
61
|
/^[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}$/,
|
|
62
62
|
"Must be a valid GUID"
|
|
63
63
|
).optional().nullable(),
|
|
64
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
64
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
65
65
|
"Revision number, which increments by 1 each time the manual tax mapping is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the manual tax mapping.\n\nIgnored when creating a manual tax mapping."
|
|
66
66
|
).optional().nullable(),
|
|
67
|
-
_createdDate: z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
68
|
-
_updatedDate: z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
69
|
-
taxGroupId: z.string().describe(
|
|
67
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
68
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
69
|
+
taxGroupId: /* @__PURE__ */ z.string().describe(
|
|
70
70
|
"Tax group ID. Tax groups define collections of items or services that share the same tax treatment."
|
|
71
71
|
).regex(
|
|
72
72
|
/^[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}$/,
|
|
73
73
|
"Must be a valid GUID"
|
|
74
74
|
),
|
|
75
|
-
taxRegionId: z.string().describe(
|
|
75
|
+
taxRegionId: /* @__PURE__ */ z.string().describe(
|
|
76
76
|
"Tax region ID. Tax regions represent geographical areas where specific tax rules apply."
|
|
77
77
|
).regex(
|
|
78
78
|
/^[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}$/,
|
|
79
79
|
"Must be a valid GUID"
|
|
80
80
|
),
|
|
81
|
-
taxRate: z.string().describe(
|
|
81
|
+
taxRate: /* @__PURE__ */ z.string().describe(
|
|
82
82
|
'Tax rate to apply for this tax group and region combination.\n\nSpecified as a decimal string representing a fraction, not a percentage. For example, `"0.05"` is 5%, `"0.1"` is 10%, and `"0.08"` is 8%. Don\'t pass a number (`0.05`), an integer (`5`), or a percentage string (`"5%"`). Up to 6 decimal places are supported.'
|
|
83
83
|
),
|
|
84
|
-
description: z.string().describe(
|
|
84
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
85
85
|
"Description of the manual tax mapping. Use this field to add context or notes about the tax rate."
|
|
86
86
|
).max(1e3).optional().nullable(),
|
|
87
|
-
taxType: z.string().describe(
|
|
87
|
+
taxType: /* @__PURE__ */ z.string().describe(
|
|
88
88
|
"Type of tax being applied, such as `VAT`, `GST`, or `Sales Tax`. This depends on the jurisdiction's tax laws."
|
|
89
89
|
).max(200).optional(),
|
|
90
|
-
taxName: z.string().describe(
|
|
90
|
+
taxName: /* @__PURE__ */ z.string().describe(
|
|
91
91
|
"Customer-facing name of the tax, shown at checkout. For example, `STATE TAX`, `GST`, or `VAT`.\n\nCosmetic only. It doesn't affect the calculated amount. Can be left empty, in which case checkout shows a default label such as `Sales Tax`."
|
|
92
92
|
).max(200).optional(),
|
|
93
|
-
jurisdiction: z.string().describe(
|
|
93
|
+
jurisdiction: /* @__PURE__ */ z.string().describe(
|
|
94
94
|
"Name of the jurisdiction where this tax rate applies. For example, `California` or `United Kingdom`."
|
|
95
95
|
).max(200).optional(),
|
|
96
|
-
jurisdictionType: z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).optional(),
|
|
97
|
-
exemptRates: z.array(
|
|
98
|
-
z.object({
|
|
99
|
-
taxExemptGroupId: z.string().describe("Tax exempt group ID.").regex(
|
|
96
|
+
jurisdictionType: /* @__PURE__ */ z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).optional(),
|
|
97
|
+
exemptRates: /* @__PURE__ */ z.array(
|
|
98
|
+
/* @__PURE__ */ z.object({
|
|
99
|
+
taxExemptGroupId: /* @__PURE__ */ z.string().describe("Tax exempt group ID.").regex(
|
|
100
100
|
/^[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}$/,
|
|
101
101
|
"Must be a valid GUID"
|
|
102
102
|
).optional(),
|
|
103
|
-
taxRate: z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
103
|
+
taxRate: /* @__PURE__ */ z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
104
104
|
})
|
|
105
105
|
).max(50).optional(),
|
|
106
|
-
extendedFields: z.object({
|
|
107
|
-
namespaces:
|
|
106
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
107
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
108
|
+
/* @__PURE__ */ z.string(),
|
|
109
|
+
/* @__PURE__ */ z.record(
|
|
110
|
+
/* @__PURE__ */ z.string(),
|
|
111
|
+
/* @__PURE__ */ z.any()
|
|
112
|
+
)
|
|
113
|
+
).describe(
|
|
108
114
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
109
115
|
).optional()
|
|
110
116
|
}).describe("Extended fields for storing additional custom data.").optional()
|
|
111
117
|
}).describe("Manual tax mapping to create.")
|
|
112
118
|
});
|
|
113
119
|
var CreateManualTaxMappingResponse = /* @__PURE__ */ z.object({
|
|
114
|
-
_id: z.string().describe("Manual tax mapping ID.").regex(
|
|
120
|
+
_id: /* @__PURE__ */ z.string().describe("Manual tax mapping ID.").regex(
|
|
115
121
|
/^[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}$/,
|
|
116
122
|
"Must be a valid GUID"
|
|
117
123
|
).optional().nullable(),
|
|
118
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
124
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
119
125
|
"Revision number, which increments by 1 each time the manual tax mapping is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the manual tax mapping.\n\nIgnored when creating a manual tax mapping."
|
|
120
126
|
).optional().nullable(),
|
|
121
|
-
_createdDate: z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
122
|
-
_updatedDate: z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
123
|
-
taxGroupId: z.string().describe(
|
|
127
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
128
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
129
|
+
taxGroupId: /* @__PURE__ */ z.string().describe(
|
|
124
130
|
"Tax group ID. Tax groups define collections of items or services that share the same tax treatment."
|
|
125
131
|
).regex(
|
|
126
132
|
/^[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}$/,
|
|
127
133
|
"Must be a valid GUID"
|
|
128
134
|
).optional().nullable(),
|
|
129
|
-
taxRegionId: z.string().describe(
|
|
135
|
+
taxRegionId: /* @__PURE__ */ z.string().describe(
|
|
130
136
|
"Tax region ID. Tax regions represent geographical areas where specific tax rules apply."
|
|
131
137
|
).regex(
|
|
132
138
|
/^[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}$/,
|
|
133
139
|
"Must be a valid GUID"
|
|
134
140
|
).optional().nullable(),
|
|
135
|
-
taxRate: z.string().describe(
|
|
141
|
+
taxRate: /* @__PURE__ */ z.string().describe(
|
|
136
142
|
'Tax rate to apply for this tax group and region combination.\n\nSpecified as a decimal string representing a fraction, not a percentage. For example, `"0.05"` is 5%, `"0.1"` is 10%, and `"0.08"` is 8%. Don\'t pass a number (`0.05`), an integer (`5`), or a percentage string (`"5%"`). Up to 6 decimal places are supported.'
|
|
137
143
|
).optional(),
|
|
138
|
-
description: z.string().describe(
|
|
144
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
139
145
|
"Description of the manual tax mapping. Use this field to add context or notes about the tax rate."
|
|
140
146
|
).max(1e3).optional().nullable(),
|
|
141
|
-
taxType: z.string().describe(
|
|
147
|
+
taxType: /* @__PURE__ */ z.string().describe(
|
|
142
148
|
"Type of tax being applied, such as `VAT`, `GST`, or `Sales Tax`. This depends on the jurisdiction's tax laws."
|
|
143
149
|
).max(200).optional(),
|
|
144
|
-
taxName: z.string().describe(
|
|
150
|
+
taxName: /* @__PURE__ */ z.string().describe(
|
|
145
151
|
"Customer-facing name of the tax, shown at checkout. For example, `STATE TAX`, `GST`, or `VAT`.\n\nCosmetic only. It doesn't affect the calculated amount. Can be left empty, in which case checkout shows a default label such as `Sales Tax`."
|
|
146
152
|
).max(200).optional(),
|
|
147
|
-
jurisdiction: z.string().describe(
|
|
153
|
+
jurisdiction: /* @__PURE__ */ z.string().describe(
|
|
148
154
|
"Name of the jurisdiction where this tax rate applies. For example, `California` or `United Kingdom`."
|
|
149
155
|
).max(200).optional(),
|
|
150
|
-
jurisdictionType: z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).describe(
|
|
156
|
+
jurisdictionType: /* @__PURE__ */ z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).describe(
|
|
151
157
|
"Type of jurisdiction where this tax rate applies, such as country, state, county, city, or special district."
|
|
152
158
|
).optional(),
|
|
153
|
-
exemptRates: z.array(
|
|
154
|
-
z.object({
|
|
155
|
-
taxExemptGroupId: z.string().describe("Tax exempt group ID.").regex(
|
|
159
|
+
exemptRates: /* @__PURE__ */ z.array(
|
|
160
|
+
/* @__PURE__ */ z.object({
|
|
161
|
+
taxExemptGroupId: /* @__PURE__ */ z.string().describe("Tax exempt group ID.").regex(
|
|
156
162
|
/^[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}$/,
|
|
157
163
|
"Must be a valid GUID"
|
|
158
164
|
).optional(),
|
|
159
|
-
taxRate: z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
165
|
+
taxRate: /* @__PURE__ */ z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
160
166
|
})
|
|
161
167
|
).max(50).optional(),
|
|
162
|
-
extendedFields: z.object({
|
|
163
|
-
namespaces:
|
|
168
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
169
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
170
|
+
/* @__PURE__ */ z.string(),
|
|
171
|
+
/* @__PURE__ */ z.record(
|
|
172
|
+
/* @__PURE__ */ z.string(),
|
|
173
|
+
/* @__PURE__ */ z.any()
|
|
174
|
+
)
|
|
175
|
+
).describe(
|
|
164
176
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
165
177
|
).optional()
|
|
166
178
|
}).describe("Extended fields for storing additional custom data.").optional()
|
|
167
179
|
});
|
|
168
180
|
var BulkCreateManualTaxMappingsRequest = /* @__PURE__ */ z.object({
|
|
169
|
-
manualTaxMappings: z.array(
|
|
170
|
-
z.object({
|
|
171
|
-
_id: z.string().describe("Manual tax mapping ID.").regex(
|
|
181
|
+
manualTaxMappings: /* @__PURE__ */ z.array(
|
|
182
|
+
/* @__PURE__ */ z.object({
|
|
183
|
+
_id: /* @__PURE__ */ z.string().describe("Manual tax mapping ID.").regex(
|
|
172
184
|
/^[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}$/,
|
|
173
185
|
"Must be a valid GUID"
|
|
174
186
|
).optional().nullable(),
|
|
175
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
187
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
176
188
|
"Revision number, which increments by 1 each time the manual tax mapping is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the manual tax mapping.\n\nIgnored when creating a manual tax mapping."
|
|
177
189
|
).optional().nullable(),
|
|
178
|
-
_createdDate: z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
179
|
-
_updatedDate: z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
180
|
-
taxGroupId: z.string().describe(
|
|
190
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
191
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
192
|
+
taxGroupId: /* @__PURE__ */ z.string().describe(
|
|
181
193
|
"Tax group ID. Tax groups define collections of items or services that share the same tax treatment."
|
|
182
194
|
).regex(
|
|
183
195
|
/^[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}$/,
|
|
184
196
|
"Must be a valid GUID"
|
|
185
197
|
),
|
|
186
|
-
taxRegionId: z.string().describe(
|
|
198
|
+
taxRegionId: /* @__PURE__ */ z.string().describe(
|
|
187
199
|
"Tax region ID. Tax regions represent geographical areas where specific tax rules apply."
|
|
188
200
|
).regex(
|
|
189
201
|
/^[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}$/,
|
|
190
202
|
"Must be a valid GUID"
|
|
191
203
|
),
|
|
192
|
-
taxRate: z.string().describe(
|
|
204
|
+
taxRate: /* @__PURE__ */ z.string().describe(
|
|
193
205
|
'Tax rate to apply for this tax group and region combination.\n\nSpecified as a decimal string representing a fraction, not a percentage. For example, `"0.05"` is 5%, `"0.1"` is 10%, and `"0.08"` is 8%. Don\'t pass a number (`0.05`), an integer (`5`), or a percentage string (`"5%"`). Up to 6 decimal places are supported.'
|
|
194
206
|
),
|
|
195
|
-
description: z.string().describe(
|
|
207
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
196
208
|
"Description of the manual tax mapping. Use this field to add context or notes about the tax rate."
|
|
197
209
|
).max(1e3).optional().nullable(),
|
|
198
|
-
taxType: z.string().describe(
|
|
210
|
+
taxType: /* @__PURE__ */ z.string().describe(
|
|
199
211
|
"Type of tax being applied, such as `VAT`, `GST`, or `Sales Tax`. This depends on the jurisdiction's tax laws."
|
|
200
212
|
).max(200).optional(),
|
|
201
|
-
taxName: z.string().describe(
|
|
213
|
+
taxName: /* @__PURE__ */ z.string().describe(
|
|
202
214
|
"Customer-facing name of the tax, shown at checkout. For example, `STATE TAX`, `GST`, or `VAT`.\n\nCosmetic only. It doesn't affect the calculated amount. Can be left empty, in which case checkout shows a default label such as `Sales Tax`."
|
|
203
215
|
).max(200).optional(),
|
|
204
|
-
jurisdiction: z.string().describe(
|
|
216
|
+
jurisdiction: /* @__PURE__ */ z.string().describe(
|
|
205
217
|
"Name of the jurisdiction where this tax rate applies. For example, `California` or `United Kingdom`."
|
|
206
218
|
).max(200).optional(),
|
|
207
|
-
jurisdictionType: z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).optional(),
|
|
208
|
-
exemptRates: z.array(
|
|
209
|
-
z.object({
|
|
210
|
-
taxExemptGroupId: z.string().describe("Tax exempt group ID.").regex(
|
|
219
|
+
jurisdictionType: /* @__PURE__ */ z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).optional(),
|
|
220
|
+
exemptRates: /* @__PURE__ */ z.array(
|
|
221
|
+
/* @__PURE__ */ z.object({
|
|
222
|
+
taxExemptGroupId: /* @__PURE__ */ z.string().describe("Tax exempt group ID.").regex(
|
|
211
223
|
/^[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}$/,
|
|
212
224
|
"Must be a valid GUID"
|
|
213
225
|
).optional(),
|
|
214
|
-
taxRate: z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
226
|
+
taxRate: /* @__PURE__ */ z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
215
227
|
})
|
|
216
228
|
).max(50).optional(),
|
|
217
|
-
extendedFields: z.object({
|
|
218
|
-
namespaces:
|
|
229
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
230
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
231
|
+
/* @__PURE__ */ z.string(),
|
|
232
|
+
/* @__PURE__ */ z.record(
|
|
233
|
+
/* @__PURE__ */ z.string(),
|
|
234
|
+
/* @__PURE__ */ z.any()
|
|
235
|
+
)
|
|
236
|
+
).describe(
|
|
219
237
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
220
238
|
).optional()
|
|
221
239
|
}).describe("Extended fields for storing additional custom data.").optional()
|
|
222
240
|
})
|
|
223
241
|
).min(1).max(100),
|
|
224
|
-
options: z.object({
|
|
225
|
-
returnEntity: z.boolean().describe(
|
|
242
|
+
options: /* @__PURE__ */ z.object({
|
|
243
|
+
returnEntity: /* @__PURE__ */ z.boolean().describe(
|
|
226
244
|
"Whether to return the created manual tax mapping entities in the response.\n\nDefault: `false`"
|
|
227
245
|
).optional()
|
|
228
246
|
}).optional()
|
|
229
247
|
});
|
|
230
248
|
var BulkCreateManualTaxMappingsResponse = /* @__PURE__ */ z.object({
|
|
231
|
-
results: z.array(
|
|
232
|
-
z.object({
|
|
233
|
-
itemMetadata: z.object({
|
|
234
|
-
_id: z.string().describe(
|
|
249
|
+
results: /* @__PURE__ */ z.array(
|
|
250
|
+
/* @__PURE__ */ z.object({
|
|
251
|
+
itemMetadata: /* @__PURE__ */ z.object({
|
|
252
|
+
_id: /* @__PURE__ */ z.string().describe(
|
|
235
253
|
"Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed."
|
|
236
254
|
).regex(
|
|
237
255
|
/^[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}$/,
|
|
238
256
|
"Must be a valid GUID"
|
|
239
257
|
).optional().nullable(),
|
|
240
|
-
originalIndex: z.number().int().describe(
|
|
258
|
+
originalIndex: /* @__PURE__ */ z.number().int().describe(
|
|
241
259
|
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
242
260
|
).min(0).optional(),
|
|
243
|
-
success: z.boolean().describe(
|
|
261
|
+
success: /* @__PURE__ */ z.boolean().describe(
|
|
244
262
|
"Whether the requested action for this item was successful. When `false`, the `error` field is returned."
|
|
245
263
|
).optional(),
|
|
246
|
-
error: z.object({
|
|
247
|
-
code: z.string().describe("Error code.").optional(),
|
|
248
|
-
description: z.string().describe("Description of the error.").optional(),
|
|
249
|
-
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
264
|
+
error: /* @__PURE__ */ z.object({
|
|
265
|
+
code: /* @__PURE__ */ z.string().describe("Error code.").optional(),
|
|
266
|
+
description: /* @__PURE__ */ z.string().describe("Description of the error.").optional(),
|
|
267
|
+
data: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Data related to the error.").optional().nullable()
|
|
250
268
|
}).describe("Details about the error in case of failure.").optional()
|
|
251
269
|
}).describe("Metadata for the individual create operation.").optional(),
|
|
252
|
-
item: z.object({
|
|
253
|
-
_id: z.string().describe("Manual tax mapping ID.").regex(
|
|
270
|
+
item: /* @__PURE__ */ z.object({
|
|
271
|
+
_id: /* @__PURE__ */ z.string().describe("Manual tax mapping ID.").regex(
|
|
254
272
|
/^[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}$/,
|
|
255
273
|
"Must be a valid GUID"
|
|
256
274
|
).optional().nullable(),
|
|
257
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
275
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
258
276
|
"Revision number, which increments by 1 each time the manual tax mapping is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the manual tax mapping.\n\nIgnored when creating a manual tax mapping."
|
|
259
277
|
).optional().nullable(),
|
|
260
|
-
_createdDate: z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
261
|
-
_updatedDate: z.date().describe(
|
|
278
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
279
|
+
_updatedDate: /* @__PURE__ */ z.date().describe(
|
|
262
280
|
"Date and time the manual tax mapping was last updated."
|
|
263
281
|
).optional().nullable(),
|
|
264
|
-
taxGroupId: z.string().describe(
|
|
282
|
+
taxGroupId: /* @__PURE__ */ z.string().describe(
|
|
265
283
|
"Tax group ID. Tax groups define collections of items or services that share the same tax treatment."
|
|
266
284
|
).regex(
|
|
267
285
|
/^[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}$/,
|
|
268
286
|
"Must be a valid GUID"
|
|
269
287
|
).optional().nullable(),
|
|
270
|
-
taxRegionId: z.string().describe(
|
|
288
|
+
taxRegionId: /* @__PURE__ */ z.string().describe(
|
|
271
289
|
"Tax region ID. Tax regions represent geographical areas where specific tax rules apply."
|
|
272
290
|
).regex(
|
|
273
291
|
/^[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}$/,
|
|
274
292
|
"Must be a valid GUID"
|
|
275
293
|
).optional().nullable(),
|
|
276
|
-
taxRate: z.string().describe(
|
|
294
|
+
taxRate: /* @__PURE__ */ z.string().describe(
|
|
277
295
|
'Tax rate to apply for this tax group and region combination.\n\nSpecified as a decimal string representing a fraction, not a percentage. For example, `"0.05"` is 5%, `"0.1"` is 10%, and `"0.08"` is 8%. Don\'t pass a number (`0.05`), an integer (`5`), or a percentage string (`"5%"`). Up to 6 decimal places are supported.'
|
|
278
296
|
).optional(),
|
|
279
|
-
description: z.string().describe(
|
|
297
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
280
298
|
"Description of the manual tax mapping. Use this field to add context or notes about the tax rate."
|
|
281
299
|
).max(1e3).optional().nullable(),
|
|
282
|
-
taxType: z.string().describe(
|
|
300
|
+
taxType: /* @__PURE__ */ z.string().describe(
|
|
283
301
|
"Type of tax being applied, such as `VAT`, `GST`, or `Sales Tax`. This depends on the jurisdiction's tax laws."
|
|
284
302
|
).max(200).optional(),
|
|
285
|
-
taxName: z.string().describe(
|
|
303
|
+
taxName: /* @__PURE__ */ z.string().describe(
|
|
286
304
|
"Customer-facing name of the tax, shown at checkout. For example, `STATE TAX`, `GST`, or `VAT`.\n\nCosmetic only. It doesn't affect the calculated amount. Can be left empty, in which case checkout shows a default label such as `Sales Tax`."
|
|
287
305
|
).max(200).optional(),
|
|
288
|
-
jurisdiction: z.string().describe(
|
|
306
|
+
jurisdiction: /* @__PURE__ */ z.string().describe(
|
|
289
307
|
"Name of the jurisdiction where this tax rate applies. For example, `California` or `United Kingdom`."
|
|
290
308
|
).max(200).optional(),
|
|
291
|
-
jurisdictionType: z.enum([
|
|
309
|
+
jurisdictionType: /* @__PURE__ */ z.enum([
|
|
292
310
|
"UNDEFINED",
|
|
293
311
|
"COUNTRY",
|
|
294
312
|
"STATE",
|
|
@@ -298,17 +316,23 @@ var BulkCreateManualTaxMappingsResponse = /* @__PURE__ */ z.object({
|
|
|
298
316
|
]).describe(
|
|
299
317
|
"Type of jurisdiction where this tax rate applies, such as country, state, county, city, or special district."
|
|
300
318
|
).optional(),
|
|
301
|
-
exemptRates: z.array(
|
|
302
|
-
z.object({
|
|
303
|
-
taxExemptGroupId: z.string().describe("Tax exempt group ID.").regex(
|
|
319
|
+
exemptRates: /* @__PURE__ */ z.array(
|
|
320
|
+
/* @__PURE__ */ z.object({
|
|
321
|
+
taxExemptGroupId: /* @__PURE__ */ z.string().describe("Tax exempt group ID.").regex(
|
|
304
322
|
/^[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}$/,
|
|
305
323
|
"Must be a valid GUID"
|
|
306
324
|
).optional(),
|
|
307
|
-
taxRate: z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
325
|
+
taxRate: /* @__PURE__ */ z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
308
326
|
})
|
|
309
327
|
).max(50).optional(),
|
|
310
|
-
extendedFields: z.object({
|
|
311
|
-
namespaces:
|
|
328
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
329
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
330
|
+
/* @__PURE__ */ z.string(),
|
|
331
|
+
/* @__PURE__ */ z.record(
|
|
332
|
+
/* @__PURE__ */ z.string(),
|
|
333
|
+
/* @__PURE__ */ z.any()
|
|
334
|
+
)
|
|
335
|
+
).describe(
|
|
312
336
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
313
337
|
).optional()
|
|
314
338
|
}).describe("Extended fields for storing additional custom data.").optional()
|
|
@@ -317,215 +341,235 @@ var BulkCreateManualTaxMappingsResponse = /* @__PURE__ */ z.object({
|
|
|
317
341
|
).optional()
|
|
318
342
|
})
|
|
319
343
|
).min(1).max(100).optional(),
|
|
320
|
-
bulkActionMetadata: z.object({
|
|
321
|
-
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").min(0).optional(),
|
|
322
|
-
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").min(0).optional(),
|
|
323
|
-
undetailedFailures: z.number().int().describe(
|
|
344
|
+
bulkActionMetadata: /* @__PURE__ */ z.object({
|
|
345
|
+
totalSuccesses: /* @__PURE__ */ z.number().int().describe("Number of items that were successfully processed.").min(0).optional(),
|
|
346
|
+
totalFailures: /* @__PURE__ */ z.number().int().describe("Number of items that couldn't be processed.").min(0).optional(),
|
|
347
|
+
undetailedFailures: /* @__PURE__ */ z.number().int().describe(
|
|
324
348
|
"Number of failures without details because detailed failure threshold was exceeded."
|
|
325
349
|
).min(0).optional()
|
|
326
350
|
}).describe("Metadata for the bulk create operation.").optional()
|
|
327
351
|
});
|
|
328
352
|
var GetManualTaxMappingRequest = /* @__PURE__ */ z.object({
|
|
329
|
-
manualTaxMappingId: z.string().describe("Manual tax mapping ID.").regex(
|
|
353
|
+
manualTaxMappingId: /* @__PURE__ */ z.string().describe("Manual tax mapping ID.").regex(
|
|
330
354
|
/^[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}$/,
|
|
331
355
|
"Must be a valid GUID"
|
|
332
356
|
)
|
|
333
357
|
});
|
|
334
358
|
var GetManualTaxMappingResponse = /* @__PURE__ */ z.object({
|
|
335
|
-
_id: z.string().describe("Manual tax mapping ID.").regex(
|
|
359
|
+
_id: /* @__PURE__ */ z.string().describe("Manual tax mapping ID.").regex(
|
|
336
360
|
/^[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}$/,
|
|
337
361
|
"Must be a valid GUID"
|
|
338
362
|
).optional().nullable(),
|
|
339
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
363
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
340
364
|
"Revision number, which increments by 1 each time the manual tax mapping is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the manual tax mapping.\n\nIgnored when creating a manual tax mapping."
|
|
341
365
|
).optional().nullable(),
|
|
342
|
-
_createdDate: z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
343
|
-
_updatedDate: z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
344
|
-
taxGroupId: z.string().describe(
|
|
366
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
367
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
368
|
+
taxGroupId: /* @__PURE__ */ z.string().describe(
|
|
345
369
|
"Tax group ID. Tax groups define collections of items or services that share the same tax treatment."
|
|
346
370
|
).regex(
|
|
347
371
|
/^[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}$/,
|
|
348
372
|
"Must be a valid GUID"
|
|
349
373
|
).optional().nullable(),
|
|
350
|
-
taxRegionId: z.string().describe(
|
|
374
|
+
taxRegionId: /* @__PURE__ */ z.string().describe(
|
|
351
375
|
"Tax region ID. Tax regions represent geographical areas where specific tax rules apply."
|
|
352
376
|
).regex(
|
|
353
377
|
/^[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}$/,
|
|
354
378
|
"Must be a valid GUID"
|
|
355
379
|
).optional().nullable(),
|
|
356
|
-
taxRate: z.string().describe(
|
|
380
|
+
taxRate: /* @__PURE__ */ z.string().describe(
|
|
357
381
|
'Tax rate to apply for this tax group and region combination.\n\nSpecified as a decimal string representing a fraction, not a percentage. For example, `"0.05"` is 5%, `"0.1"` is 10%, and `"0.08"` is 8%. Don\'t pass a number (`0.05`), an integer (`5`), or a percentage string (`"5%"`). Up to 6 decimal places are supported.'
|
|
358
382
|
).optional(),
|
|
359
|
-
description: z.string().describe(
|
|
383
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
360
384
|
"Description of the manual tax mapping. Use this field to add context or notes about the tax rate."
|
|
361
385
|
).max(1e3).optional().nullable(),
|
|
362
|
-
taxType: z.string().describe(
|
|
386
|
+
taxType: /* @__PURE__ */ z.string().describe(
|
|
363
387
|
"Type of tax being applied, such as `VAT`, `GST`, or `Sales Tax`. This depends on the jurisdiction's tax laws."
|
|
364
388
|
).max(200).optional(),
|
|
365
|
-
taxName: z.string().describe(
|
|
389
|
+
taxName: /* @__PURE__ */ z.string().describe(
|
|
366
390
|
"Customer-facing name of the tax, shown at checkout. For example, `STATE TAX`, `GST`, or `VAT`.\n\nCosmetic only. It doesn't affect the calculated amount. Can be left empty, in which case checkout shows a default label such as `Sales Tax`."
|
|
367
391
|
).max(200).optional(),
|
|
368
|
-
jurisdiction: z.string().describe(
|
|
392
|
+
jurisdiction: /* @__PURE__ */ z.string().describe(
|
|
369
393
|
"Name of the jurisdiction where this tax rate applies. For example, `California` or `United Kingdom`."
|
|
370
394
|
).max(200).optional(),
|
|
371
|
-
jurisdictionType: z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).describe(
|
|
395
|
+
jurisdictionType: /* @__PURE__ */ z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).describe(
|
|
372
396
|
"Type of jurisdiction where this tax rate applies, such as country, state, county, city, or special district."
|
|
373
397
|
).optional(),
|
|
374
|
-
exemptRates: z.array(
|
|
375
|
-
z.object({
|
|
376
|
-
taxExemptGroupId: z.string().describe("Tax exempt group ID.").regex(
|
|
398
|
+
exemptRates: /* @__PURE__ */ z.array(
|
|
399
|
+
/* @__PURE__ */ z.object({
|
|
400
|
+
taxExemptGroupId: /* @__PURE__ */ z.string().describe("Tax exempt group ID.").regex(
|
|
377
401
|
/^[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}$/,
|
|
378
402
|
"Must be a valid GUID"
|
|
379
403
|
).optional(),
|
|
380
|
-
taxRate: z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
404
|
+
taxRate: /* @__PURE__ */ z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
381
405
|
})
|
|
382
406
|
).max(50).optional(),
|
|
383
|
-
extendedFields: z.object({
|
|
384
|
-
namespaces:
|
|
407
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
408
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
409
|
+
/* @__PURE__ */ z.string(),
|
|
410
|
+
/* @__PURE__ */ z.record(
|
|
411
|
+
/* @__PURE__ */ z.string(),
|
|
412
|
+
/* @__PURE__ */ z.any()
|
|
413
|
+
)
|
|
414
|
+
).describe(
|
|
385
415
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
386
416
|
).optional()
|
|
387
417
|
}).describe("Extended fields for storing additional custom data.").optional()
|
|
388
418
|
});
|
|
389
419
|
var UpdateManualTaxMappingRequest = /* @__PURE__ */ z.object({
|
|
390
|
-
_id: z.string().describe("Manual tax mapping ID.").regex(
|
|
420
|
+
_id: /* @__PURE__ */ z.string().describe("Manual tax mapping ID.").regex(
|
|
391
421
|
/^[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}$/,
|
|
392
422
|
"Must be a valid GUID"
|
|
393
423
|
),
|
|
394
|
-
manualTaxMapping: z.object({
|
|
395
|
-
_id: z.string().describe("Manual tax mapping ID.").regex(
|
|
424
|
+
manualTaxMapping: /* @__PURE__ */ z.object({
|
|
425
|
+
_id: /* @__PURE__ */ z.string().describe("Manual tax mapping ID.").regex(
|
|
396
426
|
/^[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}$/,
|
|
397
427
|
"Must be a valid GUID"
|
|
398
428
|
).optional().nullable(),
|
|
399
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
429
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
400
430
|
"Revision number, which increments by 1 each time the manual tax mapping is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the manual tax mapping.\n\nIgnored when creating a manual tax mapping."
|
|
401
431
|
),
|
|
402
|
-
_createdDate: z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
403
|
-
_updatedDate: z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
404
|
-
taxGroupId: z.string().describe(
|
|
432
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
433
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
434
|
+
taxGroupId: /* @__PURE__ */ z.string().describe(
|
|
405
435
|
"Tax group ID. Tax groups define collections of items or services that share the same tax treatment."
|
|
406
436
|
).regex(
|
|
407
437
|
/^[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}$/,
|
|
408
438
|
"Must be a valid GUID"
|
|
409
439
|
).optional().nullable(),
|
|
410
|
-
taxRegionId: z.string().describe(
|
|
440
|
+
taxRegionId: /* @__PURE__ */ z.string().describe(
|
|
411
441
|
"Tax region ID. Tax regions represent geographical areas where specific tax rules apply."
|
|
412
442
|
).regex(
|
|
413
443
|
/^[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}$/,
|
|
414
444
|
"Must be a valid GUID"
|
|
415
445
|
).optional().nullable(),
|
|
416
|
-
taxRate: z.string().describe(
|
|
446
|
+
taxRate: /* @__PURE__ */ z.string().describe(
|
|
417
447
|
'Tax rate to apply for this tax group and region combination.\n\nSpecified as a decimal string representing a fraction, not a percentage. For example, `"0.05"` is 5%, `"0.1"` is 10%, and `"0.08"` is 8%. Don\'t pass a number (`0.05`), an integer (`5`), or a percentage string (`"5%"`). Up to 6 decimal places are supported.'
|
|
418
448
|
).optional(),
|
|
419
|
-
description: z.string().describe(
|
|
449
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
420
450
|
"Description of the manual tax mapping. Use this field to add context or notes about the tax rate."
|
|
421
451
|
).max(1e3).optional().nullable(),
|
|
422
|
-
taxType: z.string().describe(
|
|
452
|
+
taxType: /* @__PURE__ */ z.string().describe(
|
|
423
453
|
"Type of tax being applied, such as `VAT`, `GST`, or `Sales Tax`. This depends on the jurisdiction's tax laws."
|
|
424
454
|
).max(200).optional(),
|
|
425
|
-
taxName: z.string().describe(
|
|
455
|
+
taxName: /* @__PURE__ */ z.string().describe(
|
|
426
456
|
"Customer-facing name of the tax, shown at checkout. For example, `STATE TAX`, `GST`, or `VAT`.\n\nCosmetic only. It doesn't affect the calculated amount. Can be left empty, in which case checkout shows a default label such as `Sales Tax`."
|
|
427
457
|
).max(200).optional(),
|
|
428
|
-
jurisdiction: z.string().describe(
|
|
458
|
+
jurisdiction: /* @__PURE__ */ z.string().describe(
|
|
429
459
|
"Name of the jurisdiction where this tax rate applies. For example, `California` or `United Kingdom`."
|
|
430
460
|
).max(200).optional(),
|
|
431
|
-
jurisdictionType: z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).optional(),
|
|
432
|
-
exemptRates: z.array(
|
|
433
|
-
z.object({
|
|
434
|
-
taxExemptGroupId: z.string().describe("Tax exempt group ID.").regex(
|
|
461
|
+
jurisdictionType: /* @__PURE__ */ z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).optional(),
|
|
462
|
+
exemptRates: /* @__PURE__ */ z.array(
|
|
463
|
+
/* @__PURE__ */ z.object({
|
|
464
|
+
taxExemptGroupId: /* @__PURE__ */ z.string().describe("Tax exempt group ID.").regex(
|
|
435
465
|
/^[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}$/,
|
|
436
466
|
"Must be a valid GUID"
|
|
437
467
|
).optional(),
|
|
438
|
-
taxRate: z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
468
|
+
taxRate: /* @__PURE__ */ z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
439
469
|
})
|
|
440
470
|
).max(50).optional(),
|
|
441
|
-
extendedFields: z.object({
|
|
442
|
-
namespaces:
|
|
471
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
472
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
473
|
+
/* @__PURE__ */ z.string(),
|
|
474
|
+
/* @__PURE__ */ z.record(
|
|
475
|
+
/* @__PURE__ */ z.string(),
|
|
476
|
+
/* @__PURE__ */ z.any()
|
|
477
|
+
)
|
|
478
|
+
).describe(
|
|
443
479
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
444
480
|
).optional()
|
|
445
481
|
}).describe("Extended fields for storing additional custom data.").optional()
|
|
446
482
|
}).describe("Manual tax mapping to update.")
|
|
447
483
|
});
|
|
448
484
|
var UpdateManualTaxMappingResponse = /* @__PURE__ */ z.object({
|
|
449
|
-
_id: z.string().describe("Manual tax mapping ID.").regex(
|
|
485
|
+
_id: /* @__PURE__ */ z.string().describe("Manual tax mapping ID.").regex(
|
|
450
486
|
/^[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}$/,
|
|
451
487
|
"Must be a valid GUID"
|
|
452
488
|
).optional().nullable(),
|
|
453
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
489
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
454
490
|
"Revision number, which increments by 1 each time the manual tax mapping is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the manual tax mapping.\n\nIgnored when creating a manual tax mapping."
|
|
455
491
|
).optional().nullable(),
|
|
456
|
-
_createdDate: z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
457
|
-
_updatedDate: z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
458
|
-
taxGroupId: z.string().describe(
|
|
492
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
493
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
494
|
+
taxGroupId: /* @__PURE__ */ z.string().describe(
|
|
459
495
|
"Tax group ID. Tax groups define collections of items or services that share the same tax treatment."
|
|
460
496
|
).regex(
|
|
461
497
|
/^[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}$/,
|
|
462
498
|
"Must be a valid GUID"
|
|
463
499
|
).optional().nullable(),
|
|
464
|
-
taxRegionId: z.string().describe(
|
|
500
|
+
taxRegionId: /* @__PURE__ */ z.string().describe(
|
|
465
501
|
"Tax region ID. Tax regions represent geographical areas where specific tax rules apply."
|
|
466
502
|
).regex(
|
|
467
503
|
/^[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}$/,
|
|
468
504
|
"Must be a valid GUID"
|
|
469
505
|
).optional().nullable(),
|
|
470
|
-
taxRate: z.string().describe(
|
|
506
|
+
taxRate: /* @__PURE__ */ z.string().describe(
|
|
471
507
|
'Tax rate to apply for this tax group and region combination.\n\nSpecified as a decimal string representing a fraction, not a percentage. For example, `"0.05"` is 5%, `"0.1"` is 10%, and `"0.08"` is 8%. Don\'t pass a number (`0.05`), an integer (`5`), or a percentage string (`"5%"`). Up to 6 decimal places are supported.'
|
|
472
508
|
).optional(),
|
|
473
|
-
description: z.string().describe(
|
|
509
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
474
510
|
"Description of the manual tax mapping. Use this field to add context or notes about the tax rate."
|
|
475
511
|
).max(1e3).optional().nullable(),
|
|
476
|
-
taxType: z.string().describe(
|
|
512
|
+
taxType: /* @__PURE__ */ z.string().describe(
|
|
477
513
|
"Type of tax being applied, such as `VAT`, `GST`, or `Sales Tax`. This depends on the jurisdiction's tax laws."
|
|
478
514
|
).max(200).optional(),
|
|
479
|
-
taxName: z.string().describe(
|
|
515
|
+
taxName: /* @__PURE__ */ z.string().describe(
|
|
480
516
|
"Customer-facing name of the tax, shown at checkout. For example, `STATE TAX`, `GST`, or `VAT`.\n\nCosmetic only. It doesn't affect the calculated amount. Can be left empty, in which case checkout shows a default label such as `Sales Tax`."
|
|
481
517
|
).max(200).optional(),
|
|
482
|
-
jurisdiction: z.string().describe(
|
|
518
|
+
jurisdiction: /* @__PURE__ */ z.string().describe(
|
|
483
519
|
"Name of the jurisdiction where this tax rate applies. For example, `California` or `United Kingdom`."
|
|
484
520
|
).max(200).optional(),
|
|
485
|
-
jurisdictionType: z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).describe(
|
|
521
|
+
jurisdictionType: /* @__PURE__ */ z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).describe(
|
|
486
522
|
"Type of jurisdiction where this tax rate applies, such as country, state, county, city, or special district."
|
|
487
523
|
).optional(),
|
|
488
|
-
exemptRates: z.array(
|
|
489
|
-
z.object({
|
|
490
|
-
taxExemptGroupId: z.string().describe("Tax exempt group ID.").regex(
|
|
524
|
+
exemptRates: /* @__PURE__ */ z.array(
|
|
525
|
+
/* @__PURE__ */ z.object({
|
|
526
|
+
taxExemptGroupId: /* @__PURE__ */ z.string().describe("Tax exempt group ID.").regex(
|
|
491
527
|
/^[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}$/,
|
|
492
528
|
"Must be a valid GUID"
|
|
493
529
|
).optional(),
|
|
494
|
-
taxRate: z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
530
|
+
taxRate: /* @__PURE__ */ z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
495
531
|
})
|
|
496
532
|
).max(50).optional(),
|
|
497
|
-
extendedFields: z.object({
|
|
498
|
-
namespaces:
|
|
533
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
534
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
535
|
+
/* @__PURE__ */ z.string(),
|
|
536
|
+
/* @__PURE__ */ z.record(
|
|
537
|
+
/* @__PURE__ */ z.string(),
|
|
538
|
+
/* @__PURE__ */ z.any()
|
|
539
|
+
)
|
|
540
|
+
).describe(
|
|
499
541
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
500
542
|
).optional()
|
|
501
543
|
}).describe("Extended fields for storing additional custom data.").optional()
|
|
502
544
|
});
|
|
503
545
|
var DeleteManualTaxMappingRequest = /* @__PURE__ */ z.object({
|
|
504
|
-
manualTaxMappingId: z.string().describe("Manual tax mapping ID.").regex(
|
|
546
|
+
manualTaxMappingId: /* @__PURE__ */ z.string().describe("Manual tax mapping ID.").regex(
|
|
505
547
|
/^[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}$/,
|
|
506
548
|
"Must be a valid GUID"
|
|
507
549
|
)
|
|
508
550
|
});
|
|
509
551
|
var DeleteManualTaxMappingResponse = /* @__PURE__ */ z.object({});
|
|
510
552
|
var QueryManualTaxMappingsRequest = /* @__PURE__ */ z.object({
|
|
511
|
-
query: z.intersection(
|
|
512
|
-
z.object({
|
|
513
|
-
filter: z.record(z.string(), z.any()).describe(
|
|
553
|
+
query: /* @__PURE__ */ z.intersection(
|
|
554
|
+
/* @__PURE__ */ z.object({
|
|
555
|
+
filter: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
|
|
514
556
|
"Filter object.\n\nLearn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section)."
|
|
515
557
|
).optional().nullable(),
|
|
516
|
-
sort: z.array(
|
|
517
|
-
z.object({
|
|
518
|
-
fieldName: z.string().describe("Name of the field to sort by.").max(50).optional(),
|
|
519
|
-
order: z.enum(["ASC", "DESC"]).optional()
|
|
558
|
+
sort: /* @__PURE__ */ z.array(
|
|
559
|
+
/* @__PURE__ */ z.object({
|
|
560
|
+
fieldName: /* @__PURE__ */ z.string().describe("Name of the field to sort by.").max(50).optional(),
|
|
561
|
+
order: /* @__PURE__ */ z.enum(["ASC", "DESC"]).optional()
|
|
520
562
|
})
|
|
521
563
|
).max(5).optional()
|
|
522
564
|
}),
|
|
523
|
-
z.xor([
|
|
524
|
-
z.object({
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
565
|
+
/* @__PURE__ */ z.xor([
|
|
566
|
+
/* @__PURE__ */ z.object({
|
|
567
|
+
cursorPaging: /* @__PURE__ */ z.never().optional()
|
|
568
|
+
}),
|
|
569
|
+
/* @__PURE__ */ z.object({
|
|
570
|
+
cursorPaging: /* @__PURE__ */ z.object({
|
|
571
|
+
limit: /* @__PURE__ */ z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
|
|
572
|
+
cursor: /* @__PURE__ */ z.string().describe(
|
|
529
573
|
"Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
530
574
|
).max(16e3).optional().nullable()
|
|
531
575
|
}).describe(
|
|
@@ -536,238 +580,250 @@ var QueryManualTaxMappingsRequest = /* @__PURE__ */ z.object({
|
|
|
536
580
|
).describe("Query options.")
|
|
537
581
|
});
|
|
538
582
|
var QueryManualTaxMappingsResponse = /* @__PURE__ */ z.object({
|
|
539
|
-
manualTaxMappings: z.array(
|
|
540
|
-
z.object({
|
|
541
|
-
_id: z.string().describe("Manual tax mapping ID.").regex(
|
|
583
|
+
manualTaxMappings: /* @__PURE__ */ z.array(
|
|
584
|
+
/* @__PURE__ */ z.object({
|
|
585
|
+
_id: /* @__PURE__ */ z.string().describe("Manual tax mapping ID.").regex(
|
|
542
586
|
/^[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}$/,
|
|
543
587
|
"Must be a valid GUID"
|
|
544
588
|
).optional().nullable(),
|
|
545
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
589
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
546
590
|
"Revision number, which increments by 1 each time the manual tax mapping is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the manual tax mapping.\n\nIgnored when creating a manual tax mapping."
|
|
547
591
|
).optional().nullable(),
|
|
548
|
-
_createdDate: z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
549
|
-
_updatedDate: z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
550
|
-
taxGroupId: z.string().describe(
|
|
592
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
593
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
594
|
+
taxGroupId: /* @__PURE__ */ z.string().describe(
|
|
551
595
|
"Tax group ID. Tax groups define collections of items or services that share the same tax treatment."
|
|
552
596
|
).regex(
|
|
553
597
|
/^[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}$/,
|
|
554
598
|
"Must be a valid GUID"
|
|
555
599
|
).optional().nullable(),
|
|
556
|
-
taxRegionId: z.string().describe(
|
|
600
|
+
taxRegionId: /* @__PURE__ */ z.string().describe(
|
|
557
601
|
"Tax region ID. Tax regions represent geographical areas where specific tax rules apply."
|
|
558
602
|
).regex(
|
|
559
603
|
/^[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}$/,
|
|
560
604
|
"Must be a valid GUID"
|
|
561
605
|
).optional().nullable(),
|
|
562
|
-
taxRate: z.string().describe(
|
|
606
|
+
taxRate: /* @__PURE__ */ z.string().describe(
|
|
563
607
|
'Tax rate to apply for this tax group and region combination.\n\nSpecified as a decimal string representing a fraction, not a percentage. For example, `"0.05"` is 5%, `"0.1"` is 10%, and `"0.08"` is 8%. Don\'t pass a number (`0.05`), an integer (`5`), or a percentage string (`"5%"`). Up to 6 decimal places are supported.'
|
|
564
608
|
).optional(),
|
|
565
|
-
description: z.string().describe(
|
|
609
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
566
610
|
"Description of the manual tax mapping. Use this field to add context or notes about the tax rate."
|
|
567
611
|
).max(1e3).optional().nullable(),
|
|
568
|
-
taxType: z.string().describe(
|
|
612
|
+
taxType: /* @__PURE__ */ z.string().describe(
|
|
569
613
|
"Type of tax being applied, such as `VAT`, `GST`, or `Sales Tax`. This depends on the jurisdiction's tax laws."
|
|
570
614
|
).max(200).optional(),
|
|
571
|
-
taxName: z.string().describe(
|
|
615
|
+
taxName: /* @__PURE__ */ z.string().describe(
|
|
572
616
|
"Customer-facing name of the tax, shown at checkout. For example, `STATE TAX`, `GST`, or `VAT`.\n\nCosmetic only. It doesn't affect the calculated amount. Can be left empty, in which case checkout shows a default label such as `Sales Tax`."
|
|
573
617
|
).max(200).optional(),
|
|
574
|
-
jurisdiction: z.string().describe(
|
|
618
|
+
jurisdiction: /* @__PURE__ */ z.string().describe(
|
|
575
619
|
"Name of the jurisdiction where this tax rate applies. For example, `California` or `United Kingdom`."
|
|
576
620
|
).max(200).optional(),
|
|
577
|
-
jurisdictionType: z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).describe(
|
|
621
|
+
jurisdictionType: /* @__PURE__ */ z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).describe(
|
|
578
622
|
"Type of jurisdiction where this tax rate applies, such as country, state, county, city, or special district."
|
|
579
623
|
).optional(),
|
|
580
|
-
exemptRates: z.array(
|
|
581
|
-
z.object({
|
|
582
|
-
taxExemptGroupId: z.string().describe("Tax exempt group ID.").regex(
|
|
624
|
+
exemptRates: /* @__PURE__ */ z.array(
|
|
625
|
+
/* @__PURE__ */ z.object({
|
|
626
|
+
taxExemptGroupId: /* @__PURE__ */ z.string().describe("Tax exempt group ID.").regex(
|
|
583
627
|
/^[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}$/,
|
|
584
628
|
"Must be a valid GUID"
|
|
585
629
|
).optional(),
|
|
586
|
-
taxRate: z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
630
|
+
taxRate: /* @__PURE__ */ z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
587
631
|
})
|
|
588
632
|
).max(50).optional(),
|
|
589
|
-
extendedFields: z.object({
|
|
590
|
-
namespaces:
|
|
633
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
634
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
635
|
+
/* @__PURE__ */ z.string(),
|
|
636
|
+
/* @__PURE__ */ z.record(
|
|
637
|
+
/* @__PURE__ */ z.string(),
|
|
638
|
+
/* @__PURE__ */ z.any()
|
|
639
|
+
)
|
|
640
|
+
).describe(
|
|
591
641
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
592
642
|
).optional()
|
|
593
643
|
}).describe("Extended fields for storing additional custom data.").optional()
|
|
594
644
|
})
|
|
595
645
|
).max(100).optional(),
|
|
596
|
-
pagingMetadata: z.object({
|
|
597
|
-
count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
|
|
598
|
-
cursors: z.object({
|
|
599
|
-
next: z.string().describe(
|
|
646
|
+
pagingMetadata: /* @__PURE__ */ z.object({
|
|
647
|
+
count: /* @__PURE__ */ z.number().int().describe("Number of items returned in current page.").optional().nullable(),
|
|
648
|
+
cursors: /* @__PURE__ */ z.object({
|
|
649
|
+
next: /* @__PURE__ */ z.string().describe(
|
|
600
650
|
"Cursor string pointing to the next page in the list of results."
|
|
601
651
|
).max(16e3).optional().nullable(),
|
|
602
|
-
prev: z.string().describe(
|
|
652
|
+
prev: /* @__PURE__ */ z.string().describe(
|
|
603
653
|
"Cursor pointing to the previous page in the list of results."
|
|
604
654
|
).max(16e3).optional().nullable()
|
|
605
655
|
}).describe(
|
|
606
656
|
"Cursor strings that point to the next page, previous page, or both."
|
|
607
657
|
).optional(),
|
|
608
|
-
hasNext: z.boolean().describe(
|
|
658
|
+
hasNext: /* @__PURE__ */ z.boolean().describe(
|
|
609
659
|
"Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
|
|
610
660
|
).optional().nullable()
|
|
611
661
|
}).describe("Pagination metadata.").optional()
|
|
612
662
|
});
|
|
613
663
|
var UpdateExtendedFieldsRequest = /* @__PURE__ */ z.object({
|
|
614
|
-
_id: z.string().describe("ID of the entity to update."),
|
|
615
|
-
namespace: z.string().describe(
|
|
664
|
+
_id: /* @__PURE__ */ z.string().describe("ID of the entity to update."),
|
|
665
|
+
namespace: /* @__PURE__ */ z.string().describe(
|
|
616
666
|
"Identifier for the app whose extended fields are being updated."
|
|
617
667
|
),
|
|
618
|
-
options: z.object({
|
|
619
|
-
namespaceData: z.record(z.string(), z.any()).describe(
|
|
668
|
+
options: /* @__PURE__ */ z.object({
|
|
669
|
+
namespaceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
|
|
620
670
|
"Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured."
|
|
621
671
|
)
|
|
622
672
|
})
|
|
623
673
|
});
|
|
624
674
|
var UpdateExtendedFieldsResponse = /* @__PURE__ */ z.object({
|
|
625
|
-
manualTaxMapping: z.object({
|
|
626
|
-
_id: z.string().describe("Manual tax mapping ID.").regex(
|
|
675
|
+
manualTaxMapping: /* @__PURE__ */ z.object({
|
|
676
|
+
_id: /* @__PURE__ */ z.string().describe("Manual tax mapping ID.").regex(
|
|
627
677
|
/^[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}$/,
|
|
628
678
|
"Must be a valid GUID"
|
|
629
679
|
).optional().nullable(),
|
|
630
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
680
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
631
681
|
"Revision number, which increments by 1 each time the manual tax mapping is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the manual tax mapping.\n\nIgnored when creating a manual tax mapping."
|
|
632
682
|
).optional().nullable(),
|
|
633
|
-
_createdDate: z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
634
|
-
_updatedDate: z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
635
|
-
taxGroupId: z.string().describe(
|
|
683
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
684
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
685
|
+
taxGroupId: /* @__PURE__ */ z.string().describe(
|
|
636
686
|
"Tax group ID. Tax groups define collections of items or services that share the same tax treatment."
|
|
637
687
|
).regex(
|
|
638
688
|
/^[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}$/,
|
|
639
689
|
"Must be a valid GUID"
|
|
640
690
|
).optional().nullable(),
|
|
641
|
-
taxRegionId: z.string().describe(
|
|
691
|
+
taxRegionId: /* @__PURE__ */ z.string().describe(
|
|
642
692
|
"Tax region ID. Tax regions represent geographical areas where specific tax rules apply."
|
|
643
693
|
).regex(
|
|
644
694
|
/^[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}$/,
|
|
645
695
|
"Must be a valid GUID"
|
|
646
696
|
).optional().nullable(),
|
|
647
|
-
taxRate: z.string().describe(
|
|
697
|
+
taxRate: /* @__PURE__ */ z.string().describe(
|
|
648
698
|
'Tax rate to apply for this tax group and region combination.\n\nSpecified as a decimal string representing a fraction, not a percentage. For example, `"0.05"` is 5%, `"0.1"` is 10%, and `"0.08"` is 8%. Don\'t pass a number (`0.05`), an integer (`5`), or a percentage string (`"5%"`). Up to 6 decimal places are supported.'
|
|
649
699
|
).optional(),
|
|
650
|
-
description: z.string().describe(
|
|
700
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
651
701
|
"Description of the manual tax mapping. Use this field to add context or notes about the tax rate."
|
|
652
702
|
).max(1e3).optional().nullable(),
|
|
653
|
-
taxType: z.string().describe(
|
|
703
|
+
taxType: /* @__PURE__ */ z.string().describe(
|
|
654
704
|
"Type of tax being applied, such as `VAT`, `GST`, or `Sales Tax`. This depends on the jurisdiction's tax laws."
|
|
655
705
|
).max(200).optional(),
|
|
656
|
-
taxName: z.string().describe(
|
|
706
|
+
taxName: /* @__PURE__ */ z.string().describe(
|
|
657
707
|
"Customer-facing name of the tax, shown at checkout. For example, `STATE TAX`, `GST`, or `VAT`.\n\nCosmetic only. It doesn't affect the calculated amount. Can be left empty, in which case checkout shows a default label such as `Sales Tax`."
|
|
658
708
|
).max(200).optional(),
|
|
659
|
-
jurisdiction: z.string().describe(
|
|
709
|
+
jurisdiction: /* @__PURE__ */ z.string().describe(
|
|
660
710
|
"Name of the jurisdiction where this tax rate applies. For example, `California` or `United Kingdom`."
|
|
661
711
|
).max(200).optional(),
|
|
662
|
-
jurisdictionType: z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).describe(
|
|
712
|
+
jurisdictionType: /* @__PURE__ */ z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).describe(
|
|
663
713
|
"Type of jurisdiction where this tax rate applies, such as country, state, county, city, or special district."
|
|
664
714
|
).optional(),
|
|
665
|
-
exemptRates: z.array(
|
|
666
|
-
z.object({
|
|
667
|
-
taxExemptGroupId: z.string().describe("Tax exempt group ID.").regex(
|
|
715
|
+
exemptRates: /* @__PURE__ */ z.array(
|
|
716
|
+
/* @__PURE__ */ z.object({
|
|
717
|
+
taxExemptGroupId: /* @__PURE__ */ z.string().describe("Tax exempt group ID.").regex(
|
|
668
718
|
/^[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}$/,
|
|
669
719
|
"Must be a valid GUID"
|
|
670
720
|
).optional(),
|
|
671
|
-
taxRate: z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
721
|
+
taxRate: /* @__PURE__ */ z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
672
722
|
})
|
|
673
723
|
).max(50).optional(),
|
|
674
|
-
extendedFields: z.object({
|
|
675
|
-
namespaces:
|
|
724
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
725
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
726
|
+
/* @__PURE__ */ z.string(),
|
|
727
|
+
/* @__PURE__ */ z.record(
|
|
728
|
+
/* @__PURE__ */ z.string(),
|
|
729
|
+
/* @__PURE__ */ z.any()
|
|
730
|
+
)
|
|
731
|
+
).describe(
|
|
676
732
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
677
733
|
).optional()
|
|
678
734
|
}).describe("Extended fields for storing additional custom data.").optional()
|
|
679
735
|
}).describe("Updated manual tax mapping.").optional()
|
|
680
736
|
});
|
|
681
737
|
var BulkAssignExemptOverridesRequest = /* @__PURE__ */ z.object({
|
|
682
|
-
options: z.object({
|
|
683
|
-
assignOverrides: z.array(
|
|
684
|
-
z.object({
|
|
685
|
-
manualTaxMappingId: z.string().describe(
|
|
738
|
+
options: /* @__PURE__ */ z.object({
|
|
739
|
+
assignOverrides: /* @__PURE__ */ z.array(
|
|
740
|
+
/* @__PURE__ */ z.object({
|
|
741
|
+
manualTaxMappingId: /* @__PURE__ */ z.string().describe(
|
|
686
742
|
"ID of the manual tax mapping to which the exempt group override will be assigned."
|
|
687
743
|
).regex(
|
|
688
744
|
/^[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}$/,
|
|
689
745
|
"Must be a valid GUID"
|
|
690
746
|
),
|
|
691
|
-
exemptGroupOverrides: z.array(
|
|
692
|
-
z.object({
|
|
693
|
-
exemptGroupId: z.string().describe("ID of the tax exempt group.").regex(
|
|
747
|
+
exemptGroupOverrides: /* @__PURE__ */ z.array(
|
|
748
|
+
/* @__PURE__ */ z.object({
|
|
749
|
+
exemptGroupId: /* @__PURE__ */ z.string().describe("ID of the tax exempt group.").regex(
|
|
694
750
|
/^[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}$/,
|
|
695
751
|
"Must be a valid GUID"
|
|
696
752
|
),
|
|
697
|
-
rate: z.string().describe(
|
|
753
|
+
rate: /* @__PURE__ */ z.string().describe(
|
|
698
754
|
"Override tax rate for the exempt group in the context of the manual tax mapping."
|
|
699
755
|
)
|
|
700
756
|
})
|
|
701
757
|
).min(1).max(50)
|
|
702
758
|
})
|
|
703
759
|
).max(50).optional(),
|
|
704
|
-
returnEntity: z.boolean().describe(
|
|
760
|
+
returnEntity: /* @__PURE__ */ z.boolean().describe(
|
|
705
761
|
"Whether to return the updated manual tax mapping entities in the response.\nDefault: `false`"
|
|
706
762
|
).optional()
|
|
707
763
|
}).optional()
|
|
708
764
|
});
|
|
709
765
|
var BulkAssignExemptOverridesResponse = /* @__PURE__ */ z.object({
|
|
710
|
-
results: z.array(
|
|
711
|
-
z.object({
|
|
712
|
-
itemMetadata: z.object({
|
|
713
|
-
_id: z.string().describe(
|
|
766
|
+
results: /* @__PURE__ */ z.array(
|
|
767
|
+
/* @__PURE__ */ z.object({
|
|
768
|
+
itemMetadata: /* @__PURE__ */ z.object({
|
|
769
|
+
_id: /* @__PURE__ */ z.string().describe(
|
|
714
770
|
"Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed."
|
|
715
771
|
).regex(
|
|
716
772
|
/^[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}$/,
|
|
717
773
|
"Must be a valid GUID"
|
|
718
774
|
).optional().nullable(),
|
|
719
|
-
originalIndex: z.number().int().describe(
|
|
775
|
+
originalIndex: /* @__PURE__ */ z.number().int().describe(
|
|
720
776
|
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
721
777
|
).min(0).optional(),
|
|
722
|
-
success: z.boolean().describe(
|
|
778
|
+
success: /* @__PURE__ */ z.boolean().describe(
|
|
723
779
|
"Whether the requested action for this item was successful. When `false`, the `error` field is returned."
|
|
724
780
|
).optional(),
|
|
725
|
-
error: z.object({
|
|
726
|
-
code: z.string().describe("Error code.").optional(),
|
|
727
|
-
description: z.string().describe("Description of the error.").optional(),
|
|
728
|
-
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
781
|
+
error: /* @__PURE__ */ z.object({
|
|
782
|
+
code: /* @__PURE__ */ z.string().describe("Error code.").optional(),
|
|
783
|
+
description: /* @__PURE__ */ z.string().describe("Description of the error.").optional(),
|
|
784
|
+
data: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Data related to the error.").optional().nullable()
|
|
729
785
|
}).describe("Details about the error in case of failure.").optional()
|
|
730
786
|
}).describe("Metadata for the individual assign operation.").optional(),
|
|
731
|
-
item: z.object({
|
|
732
|
-
_id: z.string().describe("Manual tax mapping ID.").regex(
|
|
787
|
+
item: /* @__PURE__ */ z.object({
|
|
788
|
+
_id: /* @__PURE__ */ z.string().describe("Manual tax mapping ID.").regex(
|
|
733
789
|
/^[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}$/,
|
|
734
790
|
"Must be a valid GUID"
|
|
735
791
|
).optional().nullable(),
|
|
736
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
792
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
737
793
|
"Revision number, which increments by 1 each time the manual tax mapping is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the manual tax mapping.\n\nIgnored when creating a manual tax mapping."
|
|
738
794
|
).optional().nullable(),
|
|
739
|
-
_createdDate: z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
740
|
-
_updatedDate: z.date().describe(
|
|
795
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
796
|
+
_updatedDate: /* @__PURE__ */ z.date().describe(
|
|
741
797
|
"Date and time the manual tax mapping was last updated."
|
|
742
798
|
).optional().nullable(),
|
|
743
|
-
taxGroupId: z.string().describe(
|
|
799
|
+
taxGroupId: /* @__PURE__ */ z.string().describe(
|
|
744
800
|
"Tax group ID. Tax groups define collections of items or services that share the same tax treatment."
|
|
745
801
|
).regex(
|
|
746
802
|
/^[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}$/,
|
|
747
803
|
"Must be a valid GUID"
|
|
748
804
|
).optional().nullable(),
|
|
749
|
-
taxRegionId: z.string().describe(
|
|
805
|
+
taxRegionId: /* @__PURE__ */ z.string().describe(
|
|
750
806
|
"Tax region ID. Tax regions represent geographical areas where specific tax rules apply."
|
|
751
807
|
).regex(
|
|
752
808
|
/^[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}$/,
|
|
753
809
|
"Must be a valid GUID"
|
|
754
810
|
).optional().nullable(),
|
|
755
|
-
taxRate: z.string().describe(
|
|
811
|
+
taxRate: /* @__PURE__ */ z.string().describe(
|
|
756
812
|
'Tax rate to apply for this tax group and region combination.\n\nSpecified as a decimal string representing a fraction, not a percentage. For example, `"0.05"` is 5%, `"0.1"` is 10%, and `"0.08"` is 8%. Don\'t pass a number (`0.05`), an integer (`5`), or a percentage string (`"5%"`). Up to 6 decimal places are supported.'
|
|
757
813
|
).optional(),
|
|
758
|
-
description: z.string().describe(
|
|
814
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
759
815
|
"Description of the manual tax mapping. Use this field to add context or notes about the tax rate."
|
|
760
816
|
).max(1e3).optional().nullable(),
|
|
761
|
-
taxType: z.string().describe(
|
|
817
|
+
taxType: /* @__PURE__ */ z.string().describe(
|
|
762
818
|
"Type of tax being applied, such as `VAT`, `GST`, or `Sales Tax`. This depends on the jurisdiction's tax laws."
|
|
763
819
|
).max(200).optional(),
|
|
764
|
-
taxName: z.string().describe(
|
|
820
|
+
taxName: /* @__PURE__ */ z.string().describe(
|
|
765
821
|
"Customer-facing name of the tax, shown at checkout. For example, `STATE TAX`, `GST`, or `VAT`.\n\nCosmetic only. It doesn't affect the calculated amount. Can be left empty, in which case checkout shows a default label such as `Sales Tax`."
|
|
766
822
|
).max(200).optional(),
|
|
767
|
-
jurisdiction: z.string().describe(
|
|
823
|
+
jurisdiction: /* @__PURE__ */ z.string().describe(
|
|
768
824
|
"Name of the jurisdiction where this tax rate applies. For example, `California` or `United Kingdom`."
|
|
769
825
|
).max(200).optional(),
|
|
770
|
-
jurisdictionType: z.enum([
|
|
826
|
+
jurisdictionType: /* @__PURE__ */ z.enum([
|
|
771
827
|
"UNDEFINED",
|
|
772
828
|
"COUNTRY",
|
|
773
829
|
"STATE",
|
|
@@ -777,17 +833,23 @@ var BulkAssignExemptOverridesResponse = /* @__PURE__ */ z.object({
|
|
|
777
833
|
]).describe(
|
|
778
834
|
"Type of jurisdiction where this tax rate applies, such as country, state, county, city, or special district."
|
|
779
835
|
).optional(),
|
|
780
|
-
exemptRates: z.array(
|
|
781
|
-
z.object({
|
|
782
|
-
taxExemptGroupId: z.string().describe("Tax exempt group ID.").regex(
|
|
836
|
+
exemptRates: /* @__PURE__ */ z.array(
|
|
837
|
+
/* @__PURE__ */ z.object({
|
|
838
|
+
taxExemptGroupId: /* @__PURE__ */ z.string().describe("Tax exempt group ID.").regex(
|
|
783
839
|
/^[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}$/,
|
|
784
840
|
"Must be a valid GUID"
|
|
785
841
|
).optional(),
|
|
786
|
-
taxRate: z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
842
|
+
taxRate: /* @__PURE__ */ z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
787
843
|
})
|
|
788
844
|
).max(50).optional(),
|
|
789
|
-
extendedFields: z.object({
|
|
790
|
-
namespaces:
|
|
845
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
846
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
847
|
+
/* @__PURE__ */ z.string(),
|
|
848
|
+
/* @__PURE__ */ z.record(
|
|
849
|
+
/* @__PURE__ */ z.string(),
|
|
850
|
+
/* @__PURE__ */ z.any()
|
|
851
|
+
)
|
|
852
|
+
).describe(
|
|
791
853
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
792
854
|
).optional()
|
|
793
855
|
}).describe("Extended fields for storing additional custom data.").optional()
|
|
@@ -796,94 +858,94 @@ var BulkAssignExemptOverridesResponse = /* @__PURE__ */ z.object({
|
|
|
796
858
|
).optional()
|
|
797
859
|
})
|
|
798
860
|
).max(50).optional(),
|
|
799
|
-
bulkActionMetadata: z.object({
|
|
800
|
-
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").min(0).optional(),
|
|
801
|
-
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").min(0).optional(),
|
|
802
|
-
undetailedFailures: z.number().int().describe(
|
|
861
|
+
bulkActionMetadata: /* @__PURE__ */ z.object({
|
|
862
|
+
totalSuccesses: /* @__PURE__ */ z.number().int().describe("Number of items that were successfully processed.").min(0).optional(),
|
|
863
|
+
totalFailures: /* @__PURE__ */ z.number().int().describe("Number of items that couldn't be processed.").min(0).optional(),
|
|
864
|
+
undetailedFailures: /* @__PURE__ */ z.number().int().describe(
|
|
803
865
|
"Number of failures without details because detailed failure threshold was exceeded."
|
|
804
866
|
).min(0).optional()
|
|
805
867
|
}).describe("Metadata for the bulk assign operation.").optional()
|
|
806
868
|
});
|
|
807
869
|
var BulkUnassignExemptOverridesRequest = /* @__PURE__ */ z.object({
|
|
808
|
-
unassignOverrides: z.array(
|
|
809
|
-
z.object({
|
|
810
|
-
manualTaxMappingId: z.string().describe(
|
|
870
|
+
unassignOverrides: /* @__PURE__ */ z.array(
|
|
871
|
+
/* @__PURE__ */ z.object({
|
|
872
|
+
manualTaxMappingId: /* @__PURE__ */ z.string().describe(
|
|
811
873
|
"ID of the manual tax mapping from which the exempt group override will be unassigned."
|
|
812
874
|
).regex(
|
|
813
875
|
/^[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}$/,
|
|
814
876
|
"Must be a valid GUID"
|
|
815
877
|
),
|
|
816
|
-
exemptGroupIds: z.array(z.string()).min(1).max(50).optional()
|
|
878
|
+
exemptGroupIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(1).max(50).optional()
|
|
817
879
|
})
|
|
818
880
|
).max(50),
|
|
819
|
-
options: z.object({
|
|
820
|
-
returnEntity: z.boolean().describe(
|
|
881
|
+
options: /* @__PURE__ */ z.object({
|
|
882
|
+
returnEntity: /* @__PURE__ */ z.boolean().describe(
|
|
821
883
|
"Whether to return the updated manual tax mapping entities in the response.\nDefault: `false`"
|
|
822
884
|
).optional()
|
|
823
885
|
}).optional()
|
|
824
886
|
});
|
|
825
887
|
var BulkUnassignExemptOverridesResponse = /* @__PURE__ */ z.object({
|
|
826
|
-
results: z.array(
|
|
827
|
-
z.object({
|
|
828
|
-
itemMetadata: z.object({
|
|
829
|
-
_id: z.string().describe(
|
|
888
|
+
results: /* @__PURE__ */ z.array(
|
|
889
|
+
/* @__PURE__ */ z.object({
|
|
890
|
+
itemMetadata: /* @__PURE__ */ z.object({
|
|
891
|
+
_id: /* @__PURE__ */ z.string().describe(
|
|
830
892
|
"Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed."
|
|
831
893
|
).regex(
|
|
832
894
|
/^[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}$/,
|
|
833
895
|
"Must be a valid GUID"
|
|
834
896
|
).optional().nullable(),
|
|
835
|
-
originalIndex: z.number().int().describe(
|
|
897
|
+
originalIndex: /* @__PURE__ */ z.number().int().describe(
|
|
836
898
|
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
837
899
|
).min(0).optional(),
|
|
838
|
-
success: z.boolean().describe(
|
|
900
|
+
success: /* @__PURE__ */ z.boolean().describe(
|
|
839
901
|
"Whether the requested action for this item was successful. When `false`, the `error` field is returned."
|
|
840
902
|
).optional(),
|
|
841
|
-
error: z.object({
|
|
842
|
-
code: z.string().describe("Error code.").optional(),
|
|
843
|
-
description: z.string().describe("Description of the error.").optional(),
|
|
844
|
-
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
903
|
+
error: /* @__PURE__ */ z.object({
|
|
904
|
+
code: /* @__PURE__ */ z.string().describe("Error code.").optional(),
|
|
905
|
+
description: /* @__PURE__ */ z.string().describe("Description of the error.").optional(),
|
|
906
|
+
data: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Data related to the error.").optional().nullable()
|
|
845
907
|
}).describe("Details about the error in case of failure.").optional()
|
|
846
908
|
}).describe("Metadata for the individual assign operation.").optional(),
|
|
847
|
-
item: z.object({
|
|
848
|
-
_id: z.string().describe("Manual tax mapping ID.").regex(
|
|
909
|
+
item: /* @__PURE__ */ z.object({
|
|
910
|
+
_id: /* @__PURE__ */ z.string().describe("Manual tax mapping ID.").regex(
|
|
849
911
|
/^[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}$/,
|
|
850
912
|
"Must be a valid GUID"
|
|
851
913
|
).optional().nullable(),
|
|
852
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
914
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
853
915
|
"Revision number, which increments by 1 each time the manual tax mapping is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the manual tax mapping.\n\nIgnored when creating a manual tax mapping."
|
|
854
916
|
).optional().nullable(),
|
|
855
|
-
_createdDate: z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
856
|
-
_updatedDate: z.date().describe(
|
|
917
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
918
|
+
_updatedDate: /* @__PURE__ */ z.date().describe(
|
|
857
919
|
"Date and time the manual tax mapping was last updated."
|
|
858
920
|
).optional().nullable(),
|
|
859
|
-
taxGroupId: z.string().describe(
|
|
921
|
+
taxGroupId: /* @__PURE__ */ z.string().describe(
|
|
860
922
|
"Tax group ID. Tax groups define collections of items or services that share the same tax treatment."
|
|
861
923
|
).regex(
|
|
862
924
|
/^[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}$/,
|
|
863
925
|
"Must be a valid GUID"
|
|
864
926
|
).optional().nullable(),
|
|
865
|
-
taxRegionId: z.string().describe(
|
|
927
|
+
taxRegionId: /* @__PURE__ */ z.string().describe(
|
|
866
928
|
"Tax region ID. Tax regions represent geographical areas where specific tax rules apply."
|
|
867
929
|
).regex(
|
|
868
930
|
/^[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}$/,
|
|
869
931
|
"Must be a valid GUID"
|
|
870
932
|
).optional().nullable(),
|
|
871
|
-
taxRate: z.string().describe(
|
|
933
|
+
taxRate: /* @__PURE__ */ z.string().describe(
|
|
872
934
|
'Tax rate to apply for this tax group and region combination.\n\nSpecified as a decimal string representing a fraction, not a percentage. For example, `"0.05"` is 5%, `"0.1"` is 10%, and `"0.08"` is 8%. Don\'t pass a number (`0.05`), an integer (`5`), or a percentage string (`"5%"`). Up to 6 decimal places are supported.'
|
|
873
935
|
).optional(),
|
|
874
|
-
description: z.string().describe(
|
|
936
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
875
937
|
"Description of the manual tax mapping. Use this field to add context or notes about the tax rate."
|
|
876
938
|
).max(1e3).optional().nullable(),
|
|
877
|
-
taxType: z.string().describe(
|
|
939
|
+
taxType: /* @__PURE__ */ z.string().describe(
|
|
878
940
|
"Type of tax being applied, such as `VAT`, `GST`, or `Sales Tax`. This depends on the jurisdiction's tax laws."
|
|
879
941
|
).max(200).optional(),
|
|
880
|
-
taxName: z.string().describe(
|
|
942
|
+
taxName: /* @__PURE__ */ z.string().describe(
|
|
881
943
|
"Customer-facing name of the tax, shown at checkout. For example, `STATE TAX`, `GST`, or `VAT`.\n\nCosmetic only. It doesn't affect the calculated amount. Can be left empty, in which case checkout shows a default label such as `Sales Tax`."
|
|
882
944
|
).max(200).optional(),
|
|
883
|
-
jurisdiction: z.string().describe(
|
|
945
|
+
jurisdiction: /* @__PURE__ */ z.string().describe(
|
|
884
946
|
"Name of the jurisdiction where this tax rate applies. For example, `California` or `United Kingdom`."
|
|
885
947
|
).max(200).optional(),
|
|
886
|
-
jurisdictionType: z.enum([
|
|
948
|
+
jurisdictionType: /* @__PURE__ */ z.enum([
|
|
887
949
|
"UNDEFINED",
|
|
888
950
|
"COUNTRY",
|
|
889
951
|
"STATE",
|
|
@@ -893,17 +955,23 @@ var BulkUnassignExemptOverridesResponse = /* @__PURE__ */ z.object({
|
|
|
893
955
|
]).describe(
|
|
894
956
|
"Type of jurisdiction where this tax rate applies, such as country, state, county, city, or special district."
|
|
895
957
|
).optional(),
|
|
896
|
-
exemptRates: z.array(
|
|
897
|
-
z.object({
|
|
898
|
-
taxExemptGroupId: z.string().describe("Tax exempt group ID.").regex(
|
|
958
|
+
exemptRates: /* @__PURE__ */ z.array(
|
|
959
|
+
/* @__PURE__ */ z.object({
|
|
960
|
+
taxExemptGroupId: /* @__PURE__ */ z.string().describe("Tax exempt group ID.").regex(
|
|
899
961
|
/^[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}$/,
|
|
900
962
|
"Must be a valid GUID"
|
|
901
963
|
).optional(),
|
|
902
|
-
taxRate: z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
964
|
+
taxRate: /* @__PURE__ */ z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
903
965
|
})
|
|
904
966
|
).max(50).optional(),
|
|
905
|
-
extendedFields: z.object({
|
|
906
|
-
namespaces:
|
|
967
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
968
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
969
|
+
/* @__PURE__ */ z.string(),
|
|
970
|
+
/* @__PURE__ */ z.record(
|
|
971
|
+
/* @__PURE__ */ z.string(),
|
|
972
|
+
/* @__PURE__ */ z.any()
|
|
973
|
+
)
|
|
974
|
+
).describe(
|
|
907
975
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
908
976
|
).optional()
|
|
909
977
|
}).describe("Extended fields for storing additional custom data.").optional()
|
|
@@ -912,86 +980,92 @@ var BulkUnassignExemptOverridesResponse = /* @__PURE__ */ z.object({
|
|
|
912
980
|
).optional()
|
|
913
981
|
})
|
|
914
982
|
).max(10).optional(),
|
|
915
|
-
bulkActionMetadata: z.object({
|
|
916
|
-
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").min(0).optional(),
|
|
917
|
-
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").min(0).optional(),
|
|
918
|
-
undetailedFailures: z.number().int().describe(
|
|
983
|
+
bulkActionMetadata: /* @__PURE__ */ z.object({
|
|
984
|
+
totalSuccesses: /* @__PURE__ */ z.number().int().describe("Number of items that were successfully processed.").min(0).optional(),
|
|
985
|
+
totalFailures: /* @__PURE__ */ z.number().int().describe("Number of items that couldn't be processed.").min(0).optional(),
|
|
986
|
+
undetailedFailures: /* @__PURE__ */ z.number().int().describe(
|
|
919
987
|
"Number of failures without details because detailed failure threshold was exceeded."
|
|
920
988
|
).min(0).optional()
|
|
921
989
|
}).describe("Metadata for the bulk assign operation.").optional()
|
|
922
990
|
});
|
|
923
991
|
var ListManualTaxMappingsRequest = /* @__PURE__ */ z.object({});
|
|
924
992
|
var ListManualTaxMappingsResponse = /* @__PURE__ */ z.object({
|
|
925
|
-
manualTaxMappings: z.array(
|
|
926
|
-
z.object({
|
|
927
|
-
_id: z.string().describe("Manual tax mapping ID.").regex(
|
|
993
|
+
manualTaxMappings: /* @__PURE__ */ z.array(
|
|
994
|
+
/* @__PURE__ */ z.object({
|
|
995
|
+
_id: /* @__PURE__ */ z.string().describe("Manual tax mapping ID.").regex(
|
|
928
996
|
/^[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}$/,
|
|
929
997
|
"Must be a valid GUID"
|
|
930
998
|
).optional().nullable(),
|
|
931
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
999
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
932
1000
|
"Revision number, which increments by 1 each time the manual tax mapping is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the manual tax mapping.\n\nIgnored when creating a manual tax mapping."
|
|
933
1001
|
).optional().nullable(),
|
|
934
|
-
_createdDate: z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
935
|
-
_updatedDate: z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
936
|
-
taxGroupId: z.string().describe(
|
|
1002
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was created.").optional().nullable(),
|
|
1003
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the manual tax mapping was last updated.").optional().nullable(),
|
|
1004
|
+
taxGroupId: /* @__PURE__ */ z.string().describe(
|
|
937
1005
|
"Tax group ID. Tax groups define collections of items or services that share the same tax treatment."
|
|
938
1006
|
).regex(
|
|
939
1007
|
/^[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}$/,
|
|
940
1008
|
"Must be a valid GUID"
|
|
941
1009
|
).optional().nullable(),
|
|
942
|
-
taxRegionId: z.string().describe(
|
|
1010
|
+
taxRegionId: /* @__PURE__ */ z.string().describe(
|
|
943
1011
|
"Tax region ID. Tax regions represent geographical areas where specific tax rules apply."
|
|
944
1012
|
).regex(
|
|
945
1013
|
/^[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}$/,
|
|
946
1014
|
"Must be a valid GUID"
|
|
947
1015
|
).optional().nullable(),
|
|
948
|
-
taxRate: z.string().describe(
|
|
1016
|
+
taxRate: /* @__PURE__ */ z.string().describe(
|
|
949
1017
|
'Tax rate to apply for this tax group and region combination.\n\nSpecified as a decimal string representing a fraction, not a percentage. For example, `"0.05"` is 5%, `"0.1"` is 10%, and `"0.08"` is 8%. Don\'t pass a number (`0.05`), an integer (`5`), or a percentage string (`"5%"`). Up to 6 decimal places are supported.'
|
|
950
1018
|
).optional(),
|
|
951
|
-
description: z.string().describe(
|
|
1019
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
952
1020
|
"Description of the manual tax mapping. Use this field to add context or notes about the tax rate."
|
|
953
1021
|
).max(1e3).optional().nullable(),
|
|
954
|
-
taxType: z.string().describe(
|
|
1022
|
+
taxType: /* @__PURE__ */ z.string().describe(
|
|
955
1023
|
"Type of tax being applied, such as `VAT`, `GST`, or `Sales Tax`. This depends on the jurisdiction's tax laws."
|
|
956
1024
|
).max(200).optional(),
|
|
957
|
-
taxName: z.string().describe(
|
|
1025
|
+
taxName: /* @__PURE__ */ z.string().describe(
|
|
958
1026
|
"Customer-facing name of the tax, shown at checkout. For example, `STATE TAX`, `GST`, or `VAT`.\n\nCosmetic only. It doesn't affect the calculated amount. Can be left empty, in which case checkout shows a default label such as `Sales Tax`."
|
|
959
1027
|
).max(200).optional(),
|
|
960
|
-
jurisdiction: z.string().describe(
|
|
1028
|
+
jurisdiction: /* @__PURE__ */ z.string().describe(
|
|
961
1029
|
"Name of the jurisdiction where this tax rate applies. For example, `California` or `United Kingdom`."
|
|
962
1030
|
).max(200).optional(),
|
|
963
|
-
jurisdictionType: z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).describe(
|
|
1031
|
+
jurisdictionType: /* @__PURE__ */ z.enum(["UNDEFINED", "COUNTRY", "STATE", "COUNTY", "CITY", "SPECIAL"]).describe(
|
|
964
1032
|
"Type of jurisdiction where this tax rate applies, such as country, state, county, city, or special district."
|
|
965
1033
|
).optional(),
|
|
966
|
-
exemptRates: z.array(
|
|
967
|
-
z.object({
|
|
968
|
-
taxExemptGroupId: z.string().describe("Tax exempt group ID.").regex(
|
|
1034
|
+
exemptRates: /* @__PURE__ */ z.array(
|
|
1035
|
+
/* @__PURE__ */ z.object({
|
|
1036
|
+
taxExemptGroupId: /* @__PURE__ */ z.string().describe("Tax exempt group ID.").regex(
|
|
969
1037
|
/^[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}$/,
|
|
970
1038
|
"Must be a valid GUID"
|
|
971
1039
|
).optional(),
|
|
972
|
-
taxRate: z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
1040
|
+
taxRate: /* @__PURE__ */ z.string().describe("Tax override rate for given tax mapping.").optional()
|
|
973
1041
|
})
|
|
974
1042
|
).max(50).optional(),
|
|
975
|
-
extendedFields: z.object({
|
|
976
|
-
namespaces:
|
|
1043
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
1044
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
1045
|
+
/* @__PURE__ */ z.string(),
|
|
1046
|
+
/* @__PURE__ */ z.record(
|
|
1047
|
+
/* @__PURE__ */ z.string(),
|
|
1048
|
+
/* @__PURE__ */ z.any()
|
|
1049
|
+
)
|
|
1050
|
+
).describe(
|
|
977
1051
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
978
1052
|
).optional()
|
|
979
1053
|
}).describe("Extended fields for storing additional custom data.").optional()
|
|
980
1054
|
})
|
|
981
1055
|
).max(1e3).optional(),
|
|
982
|
-
pagingMetadata: z.object({
|
|
983
|
-
count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
|
|
984
|
-
cursors: z.object({
|
|
985
|
-
next: z.string().describe(
|
|
1056
|
+
pagingMetadata: /* @__PURE__ */ z.object({
|
|
1057
|
+
count: /* @__PURE__ */ z.number().int().describe("Number of items returned in current page.").optional().nullable(),
|
|
1058
|
+
cursors: /* @__PURE__ */ z.object({
|
|
1059
|
+
next: /* @__PURE__ */ z.string().describe(
|
|
986
1060
|
"Cursor string pointing to the next page in the list of results."
|
|
987
1061
|
).max(16e3).optional().nullable(),
|
|
988
|
-
prev: z.string().describe(
|
|
1062
|
+
prev: /* @__PURE__ */ z.string().describe(
|
|
989
1063
|
"Cursor pointing to the previous page in the list of results."
|
|
990
1064
|
).max(16e3).optional().nullable()
|
|
991
1065
|
}).describe(
|
|
992
1066
|
"Cursor strings that point to the next page, previous page, or both."
|
|
993
1067
|
).optional(),
|
|
994
|
-
hasNext: z.boolean().describe(
|
|
1068
|
+
hasNext: /* @__PURE__ */ z.boolean().describe(
|
|
995
1069
|
"Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
|
|
996
1070
|
).optional().nullable()
|
|
997
1071
|
}).describe("Pagination metadata.").optional()
|