@wix/auto_sdk_ecom_subscription-contracts 1.0.124 → 1.0.126

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.
Files changed (39) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +17 -2
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +17 -2
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/schemas.js +1446 -1400
  8. package/build/cjs/schemas.js.map +1 -1
  9. package/build/es/index.d.mts +1 -1
  10. package/build/es/index.mjs.map +1 -1
  11. package/build/es/index.typings.d.mts +17 -2
  12. package/build/es/index.typings.mjs.map +1 -1
  13. package/build/es/meta.d.mts +17 -2
  14. package/build/es/meta.mjs.map +1 -1
  15. package/build/es/schemas.mjs +1446 -1400
  16. package/build/es/schemas.mjs.map +1 -1
  17. package/build/internal/cjs/index.d.ts +1 -1
  18. package/build/internal/cjs/index.typings.d.ts +17 -2
  19. package/build/internal/cjs/meta.d.ts +17 -2
  20. package/build/internal/es/index.d.mts +1 -1
  21. package/build/internal/es/index.typings.d.mts +17 -2
  22. package/build/internal/es/meta.d.mts +17 -2
  23. package/package.json +2 -2
  24. package/build/internal/cjs/index.js +0 -950
  25. package/build/internal/cjs/index.js.map +0 -1
  26. package/build/internal/cjs/index.typings.js +0 -717
  27. package/build/internal/cjs/index.typings.js.map +0 -1
  28. package/build/internal/cjs/meta.js +0 -586
  29. package/build/internal/cjs/meta.js.map +0 -1
  30. package/build/internal/cjs/schemas.js +0 -3041
  31. package/build/internal/cjs/schemas.js.map +0 -1
  32. package/build/internal/es/index.mjs +0 -894
  33. package/build/internal/es/index.mjs.map +0 -1
  34. package/build/internal/es/index.typings.mjs +0 -663
  35. package/build/internal/es/index.typings.mjs.map +0 -1
  36. package/build/internal/es/meta.mjs +0 -531
  37. package/build/internal/es/meta.mjs.map +0 -1
  38. package/build/internal/es/schemas.mjs +0 -3001
  39. package/build/internal/es/schemas.mjs.map +0 -1
@@ -40,141 +40,141 @@ module.exports = __toCommonJS(schemas_exports);
40
40
  // src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.schemas.ts
41
41
  var z = __toESM(require("zod"));
42
42
  var GetSubscriptionContractRequest = /* @__PURE__ */ z.object({
43
- subscriptionContractId: z.string().describe("ID of the SubscriptionContract to retrieve.").regex(
43
+ subscriptionContractId: /* @__PURE__ */ z.string().describe("ID of the SubscriptionContract to retrieve.").regex(
44
44
  /^[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}$/,
45
45
  "Must be a valid GUID"
46
46
  )
47
47
  });
48
48
  var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
49
- _id: z.string().describe("SubscriptionContract ID.").regex(
49
+ _id: /* @__PURE__ */ z.string().describe("SubscriptionContract ID.").regex(
50
50
  /^[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}$/,
51
51
  "Must be a valid GUID"
52
52
  ).optional().nullable(),
53
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
53
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
54
54
  "Revision number, which increments by 1 each time the SubscriptionContract is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the SubscriptionContract.\n\nIgnored when creating a SubscriptionOrderContract."
55
55
  ).optional().nullable(),
56
- _createdDate: z.date().describe(
56
+ _createdDate: /* @__PURE__ */ z.date().describe(
57
57
  "Date and time the subscription contract was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
58
58
  ).optional().nullable(),
59
- _updatedDate: z.date().describe(
59
+ _updatedDate: /* @__PURE__ */ z.date().describe(
60
60
  "Date and time the subscription contract was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
61
61
  ).optional().nullable(),
62
- description: z.string().describe(
62
+ description: /* @__PURE__ */ z.string().describe(
63
63
  'Subscription option description. For example, `"1kg of selected coffee, once a month"`.'
64
64
  ).max(500).optional().nullable(),
65
- subscriptionSettings: z.object({
66
- frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
67
- interval: z.number().int().describe(
65
+ subscriptionSettings: /* @__PURE__ */ z.object({
66
+ frequency: /* @__PURE__ */ z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
67
+ interval: /* @__PURE__ */ z.number().int().describe(
68
68
  "Number of frequency units in a billing cycle. For example, frequency `MONTH` with interval `3` means billing every 3 months."
69
69
  ).min(1).max(3650).optional().nullable(),
70
- autoRenewal: z.boolean().describe(
70
+ autoRenewal: /* @__PURE__ */ z.boolean().describe(
71
71
  "Whether subscription is renewed automatically at the end of each period."
72
72
  ).optional(),
73
- billingCycles: z.number().int().describe(
73
+ billingCycles: /* @__PURE__ */ z.number().int().describe(
74
74
  "Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
75
75
  ).min(1).optional().nullable(),
76
- enableCustomerCancellation: z.boolean().describe("Whether to allow the customer to cancel the subscription.").optional(),
77
- freeTrialPeriod: z.object({
78
- frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of period. Values: DAY, WEEK, MONTH, YEAR").optional(),
79
- interval: z.number().int().describe(
76
+ enableCustomerCancellation: /* @__PURE__ */ z.boolean().describe("Whether to allow the customer to cancel the subscription.").optional(),
77
+ freeTrialPeriod: /* @__PURE__ */ z.object({
78
+ frequency: /* @__PURE__ */ z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of period. Values: DAY, WEEK, MONTH, YEAR").optional(),
79
+ interval: /* @__PURE__ */ z.number().int().describe(
80
80
  "Number of frequency units in the free trial period. For example, frequency `MONTH` with interval `3` means a 3-month free trial."
81
81
  ).min(1).max(3650).optional()
82
82
  }).describe("Period until first cycle starts. If None => no free trial").optional()
83
83
  }).describe("Subscription detailed information.").optional(),
84
- lineItems: z.array(
85
- z.object({
86
- _id: z.string().describe("Line item ID.").optional(),
87
- productName: z.object({
88
- original: z.string().describe(
84
+ lineItems: /* @__PURE__ */ z.array(
85
+ /* @__PURE__ */ z.object({
86
+ _id: /* @__PURE__ */ z.string().describe("Line item ID.").optional(),
87
+ productName: /* @__PURE__ */ z.object({
88
+ original: /* @__PURE__ */ z.string().describe(
89
89
  "__Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
90
90
  ).min(1).max(200).optional(),
91
- translated: z.string().describe(
91
+ translated: /* @__PURE__ */ z.string().describe(
92
92
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
93
93
  ).min(1).max(400).optional().nullable()
94
94
  }).describe(
95
95
  "Item name.\n\n+ Stores - `product.name`\n+ Bookings - `service.info.name`\n+ Events - `ticket.name`"
96
96
  ).optional(),
97
- catalogReference: z.object({
98
- catalogItemId: z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
99
- appId: z.string().describe(
97
+ catalogReference: /* @__PURE__ */ z.object({
98
+ catalogItemId: /* @__PURE__ */ z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
99
+ appId: /* @__PURE__ */ z.string().describe(
100
100
  'ID of the app providing the catalog.\n\nYou can get your app\'s ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n\nFor items from Wix catalogs, the following values always apply:\n+ Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`\n+ Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`\n+ Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`'
101
101
  ).min(1).optional(),
102
- options: z.record(z.string(), z.any()).describe(
102
+ options: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
103
103
  "Additional item details in `key:value` pairs.\n\nUse this optional field for more specificity with item selection. The values of the `options` field differ depending on which catalog is providing the items.\n\nFor Wix Stores products, learn more about integrating with [Catalog V3](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)\nor [Catalog V1](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v1/catalog/e-commerce-integration), depending on [the version the site uses](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-versioning/introduction)."
104
104
  ).optional().nullable()
105
105
  }).describe(
106
106
  "References to the line item's origin catalog. Empty for custom line items."
107
107
  ).optional(),
108
- quantity: z.number().int().describe("Line item quantity.").min(1).max(1e5).optional(),
109
- totalDiscount: z.object({
110
- amount: z.string().describe("Amount.").optional(),
111
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
108
+ quantity: /* @__PURE__ */ z.number().int().describe("Line item quantity.").min(1).max(1e5).optional(),
109
+ totalDiscount: /* @__PURE__ */ z.object({
110
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
111
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
112
112
  }).describe("Total discount for this line item's entire quantity.").optional(),
113
- descriptionLines: z.array(
114
- z.intersection(
115
- z.object({
116
- name: z.object({
117
- original: z.string().describe(
113
+ descriptionLines: /* @__PURE__ */ z.array(
114
+ /* @__PURE__ */ z.intersection(
115
+ /* @__PURE__ */ z.object({
116
+ name: /* @__PURE__ */ z.object({
117
+ original: /* @__PURE__ */ z.string().describe(
118
118
  "Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope)."
119
119
  ).max(100).optional(),
120
- translated: z.string().describe(
120
+ translated: /* @__PURE__ */ z.string().describe(
121
121
  "Description line name translated into the buyer's language.\n\nDefault: Same as `original`."
122
122
  ).max(200).optional().nullable()
123
123
  }).describe("Description line name.").optional()
124
124
  }),
125
- z.xor([
126
- z.object({
127
- plainText: z.never().optional(),
128
- colorInfo: z.never().optional()
125
+ /* @__PURE__ */ z.xor([
126
+ /* @__PURE__ */ z.object({
127
+ plainText: /* @__PURE__ */ z.never().optional(),
128
+ colorInfo: /* @__PURE__ */ z.never().optional()
129
129
  }),
130
- z.object({
131
- colorInfo: z.never().optional(),
132
- plainText: z.object({
133
- original: z.string().describe(
130
+ /* @__PURE__ */ z.object({
131
+ colorInfo: /* @__PURE__ */ z.never().optional(),
132
+ plainText: /* @__PURE__ */ z.object({
133
+ original: /* @__PURE__ */ z.string().describe(
134
134
  "Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope)."
135
135
  ).max(600).optional(),
136
- translated: z.string().describe(
136
+ translated: /* @__PURE__ */ z.string().describe(
137
137
  "Description line plain text value translated into the buyer's language.\n\nDefault: Same as `original`."
138
138
  ).max(600).optional().nullable()
139
139
  }).describe("Description line plain text value.")
140
140
  }),
141
- z.object({
142
- plainText: z.never().optional(),
143
- colorInfo: z.object({
144
- original: z.string().describe(
141
+ /* @__PURE__ */ z.object({
142
+ plainText: /* @__PURE__ */ z.never().optional(),
143
+ colorInfo: /* @__PURE__ */ z.object({
144
+ original: /* @__PURE__ */ z.string().describe(
145
145
  "Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope)."
146
146
  ).max(500).optional(),
147
- translated: z.string().describe(
147
+ translated: /* @__PURE__ */ z.string().describe(
148
148
  "Description line color name translated into the buyer's language.\n\nDefault: Same as `original`."
149
149
  ).max(500).optional().nullable(),
150
- code: z.string().describe("HEX or RGB color code for display.").optional().nullable()
150
+ code: /* @__PURE__ */ z.string().describe("HEX or RGB color code for display.").optional().nullable()
151
151
  }).describe("Description line color value.")
152
152
  })
153
153
  ])
154
154
  )
155
155
  ).min(0).max(20).optional(),
156
- image: z.string().describe("Line item image.").optional(),
157
- physicalProperties: z.object({
158
- weight: z.number().describe(
156
+ image: /* @__PURE__ */ z.string().describe("Line item image.").optional(),
157
+ physicalProperties: /* @__PURE__ */ z.object({
158
+ weight: /* @__PURE__ */ z.number().describe(
159
159
  "Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request."
160
160
  ).optional().nullable(),
161
- sku: z.string().describe(
161
+ sku: /* @__PURE__ */ z.string().describe(
162
162
  "Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku)."
163
163
  ).max(40).optional().nullable(),
164
- shippable: z.boolean().describe("Whether this line item is shippable.").optional()
164
+ shippable: /* @__PURE__ */ z.boolean().describe("Whether this line item is shippable.").optional()
165
165
  }).describe(
166
166
  "Physical properties of the item. When relevant, contains information such as SKU and item weight."
167
167
  ).optional(),
168
- itemType: z.intersection(
169
- z.object({}),
170
- z.xor([
171
- z.object({
172
- preset: z.never().optional(),
173
- custom: z.never().optional()
168
+ itemType: /* @__PURE__ */ z.intersection(
169
+ /* @__PURE__ */ z.object({}),
170
+ /* @__PURE__ */ z.xor([
171
+ /* @__PURE__ */ z.object({
172
+ preset: /* @__PURE__ */ z.never().optional(),
173
+ custom: /* @__PURE__ */ z.never().optional()
174
174
  }),
175
- z.object({
176
- custom: z.never().optional(),
177
- preset: z.enum([
175
+ /* @__PURE__ */ z.object({
176
+ custom: /* @__PURE__ */ z.never().optional(),
177
+ preset: /* @__PURE__ */ z.enum([
178
178
  "UNRECOGNISED",
179
179
  "PHYSICAL",
180
180
  "DIGITAL",
@@ -182,45 +182,45 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
182
182
  "SERVICE"
183
183
  ]).describe("Preset item type.")
184
184
  }),
185
- z.object({
186
- preset: z.never().optional(),
187
- custom: z.string().describe(
185
+ /* @__PURE__ */ z.object({
186
+ preset: /* @__PURE__ */ z.never().optional(),
187
+ custom: /* @__PURE__ */ z.string().describe(
188
188
  "Custom item type. When none of the preset types are suitable, specifies the custom type."
189
189
  )
190
190
  })
191
191
  ])
192
192
  ).describe("Item type. Either a preset type or custom.").optional(),
193
- fulfillerId: z.string().describe(
193
+ fulfillerId: /* @__PURE__ */ z.string().describe(
194
194
  "Fulfiller ID. Field is empty when the line item is self-fulfilled.\nTo get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/order-fulfillments/list-fulfillments-for-single-order)."
195
195
  ).regex(
196
196
  /^[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}$/,
197
197
  "Must be a valid GUID"
198
198
  ).optional().nullable(),
199
- refundQuantity: z.number().int().describe("Number of items that were refunded.").min(0).max(1e5).optional().nullable(),
200
- restockQuantity: z.number().int().describe(
199
+ refundQuantity: /* @__PURE__ */ z.number().int().describe("Number of items that were refunded.").min(0).max(1e5).optional().nullable(),
200
+ restockQuantity: /* @__PURE__ */ z.number().int().describe(
201
201
  "Number of items restocked.\n\nFor a per-location breakdown, see `restockLocations`."
202
202
  ).min(0).max(1e5).optional().nullable(),
203
- price: z.object({
204
- amount: z.string().describe("Amount.").optional(),
205
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
203
+ price: /* @__PURE__ */ z.object({
204
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
205
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
206
206
  }).describe(
207
207
  "Line item price after line item discounts for display purposes."
208
208
  ).optional(),
209
- priceBeforeDiscounts: z.object({
210
- amount: z.string().describe("Amount.").optional(),
211
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
209
+ priceBeforeDiscounts: /* @__PURE__ */ z.object({
210
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
211
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
212
212
  }).describe(
213
213
  "Line item price before line item discounts for display purposes. Defaults to `price` when not provided."
214
214
  ).optional(),
215
- totalPriceBeforeTax: z.object({
216
- amount: z.string().describe("Amount.").optional(),
217
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
215
+ totalPriceBeforeTax: /* @__PURE__ */ z.object({
216
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
217
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
218
218
  }).describe("Total price after discounts, and before tax.").optional(),
219
- totalPriceAfterTax: z.object({
220
- amount: z.string().describe("Amount.").optional(),
221
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
219
+ totalPriceAfterTax: /* @__PURE__ */ z.object({
220
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
221
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
222
222
  }).describe("Total price after all discounts and tax.").optional(),
223
- paymentOption: z.enum([
223
+ paymentOption: /* @__PURE__ */ z.enum([
224
224
  "FULL_PAYMENT_ONLINE",
225
225
  "FULL_PAYMENT_OFFLINE",
226
226
  "MEMBERSHIP",
@@ -230,59 +230,59 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
230
230
  ]).describe(
231
231
  "Type of selected payment option for current item.\n\nDefault: `FULL_PAYMENT_ONLINE`"
232
232
  ).optional(),
233
- taxDetails: z.object({
234
- taxableAmount: z.object({
235
- amount: z.string().describe("Amount.").optional(),
236
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
233
+ taxDetails: /* @__PURE__ */ z.object({
234
+ taxableAmount: /* @__PURE__ */ z.object({
235
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
236
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
237
237
  }).describe("Taxable amount of this line item.").optional(),
238
- taxRate: z.string().describe(
238
+ taxRate: /* @__PURE__ */ z.string().describe(
239
239
  'Tax rate percentage, as a decimal numeral between 0 and 1. For example, `"0.13"`.'
240
240
  ).optional(),
241
- totalTax: z.object({
242
- amount: z.string().describe("Amount.").optional(),
243
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
241
+ totalTax: /* @__PURE__ */ z.object({
242
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
243
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
244
244
  }).describe(
245
245
  "The calculated tax, based on the `taxableAmount` and `taxRate`."
246
246
  ).optional()
247
247
  }).describe(
248
248
  "Deprecated. Use `taxInfo` instead.\nThis field will be removed on September 30, 2024.\nTax details for this line item."
249
249
  ).optional(),
250
- taxInfo: z.object({
251
- taxAmount: z.object({
252
- amount: z.string().describe("Amount.").optional(),
253
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
250
+ taxInfo: /* @__PURE__ */ z.object({
251
+ taxAmount: /* @__PURE__ */ z.object({
252
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
253
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
254
254
  }).describe(
255
255
  "Calculated tax, based on `taxable_amount` and `tax_rate`."
256
256
  ).optional(),
257
- taxableAmount: z.object({
258
- amount: z.string().describe("Amount.").optional(),
259
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
257
+ taxableAmount: /* @__PURE__ */ z.object({
258
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
259
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
260
260
  }).describe("Amount for which tax is calculated.").optional(),
261
- taxRate: z.string().describe("Tax rate %, as a decimal point.").optional().nullable(),
262
- taxGroupId: z.string().describe("Tax group ID.").regex(
261
+ taxRate: /* @__PURE__ */ z.string().describe("Tax rate %, as a decimal point.").optional().nullable(),
262
+ taxGroupId: /* @__PURE__ */ z.string().describe("Tax group ID.").regex(
263
263
  /^[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}$/,
264
264
  "Must be a valid GUID"
265
265
  ).optional().nullable(),
266
- taxIncludedInPrice: z.boolean().describe("Indicates whether the price already includes tax.").optional(),
267
- taxBreakdown: z.array(
268
- z.object({
269
- jurisdiction: z.string().describe(
266
+ taxIncludedInPrice: /* @__PURE__ */ z.boolean().describe("Indicates whether the price already includes tax.").optional(),
267
+ taxBreakdown: /* @__PURE__ */ z.array(
268
+ /* @__PURE__ */ z.object({
269
+ jurisdiction: /* @__PURE__ */ z.string().describe(
270
270
  'Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec".'
271
271
  ).max(200).optional().nullable(),
272
- rate: z.string().describe(
272
+ rate: /* @__PURE__ */ z.string().describe(
273
273
  "Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000."
274
274
  ).optional().nullable(),
275
- taxAmount: z.object({
276
- amount: z.string().describe("Amount.").optional(),
277
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
275
+ taxAmount: /* @__PURE__ */ z.object({
276
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
277
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
278
278
  }).describe("Amount of tax calculated for this line item.").optional(),
279
- taxType: z.string().describe(
279
+ taxType: /* @__PURE__ */ z.string().describe(
280
280
  `The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc.`
281
281
  ).max(200).optional().nullable(),
282
- taxName: z.string().describe(
282
+ taxName: /* @__PURE__ */ z.string().describe(
283
283
  'The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.\nThis name should be explicit enough to allow the merchant to understand what tax was calculated.'
284
284
  ).max(200).optional().nullable(),
285
- jurisdictionType: z.enum([
285
+ jurisdictionType: /* @__PURE__ */ z.enum([
286
286
  "UNDEFINED",
287
287
  "COUNTRY",
288
288
  "STATE",
@@ -292,150 +292,152 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
292
292
  ]).describe(
293
293
  "Type of jurisdiction that taxes were calculated for."
294
294
  ).optional(),
295
- nonTaxableAmount: z.object({
296
- amount: z.string().describe("Amount.").optional(),
297
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
295
+ nonTaxableAmount: /* @__PURE__ */ z.object({
296
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
297
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
298
298
  }).describe("Non-taxable amount of the line item price.").optional(),
299
- taxableAmount: z.object({
300
- amount: z.string().describe("Amount.").optional(),
301
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
299
+ taxableAmount: /* @__PURE__ */ z.object({
300
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
301
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
302
302
  }).describe("Taxable amount of the line item price.").optional()
303
303
  })
304
304
  ).max(7).optional()
305
305
  }).describe(
306
306
  "Represents all the relevant tax details for a specific line item."
307
307
  ).optional(),
308
- digitalFile: z.object({
309
- fileId: z.string().describe("ID of the secure file in media.").min(1).max(100).optional(),
310
- link: z.string().describe(
308
+ digitalFile: /* @__PURE__ */ z.object({
309
+ fileId: /* @__PURE__ */ z.string().describe("ID of the secure file in media.").min(1).max(100).optional(),
310
+ link: /* @__PURE__ */ z.string().describe(
311
311
  "Link will exist after the digital links have been generated on the order."
312
312
  ).url().min(1).max(2e3).optional().nullable(),
313
- expirationDate: z.date().describe("Link expiration time and date.").optional().nullable()
313
+ expirationDate: /* @__PURE__ */ z.date().describe("Link expiration time and date.").optional().nullable()
314
314
  }).describe(
315
315
  "Digital file identifier, relevant only for items with type DIGITAL."
316
316
  ).optional(),
317
- subscriptionInfo: z.object({
318
- _id: z.string().describe("Subscription ID.").regex(
317
+ subscriptionInfo: /* @__PURE__ */ z.object({
318
+ _id: /* @__PURE__ */ z.string().describe("Subscription ID.").regex(
319
319
  /^[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}$/,
320
320
  "Must be a valid GUID"
321
321
  ).optional().nullable(),
322
- cycleNumber: z.number().int().describe(
322
+ cycleNumber: /* @__PURE__ */ z.number().int().describe(
323
323
  "Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`."
324
324
  ).min(0).optional(),
325
- subscriptionOptionTitle: z.string().describe(
325
+ subscriptionOptionTitle: /* @__PURE__ */ z.string().describe(
326
326
  'Subscription option title. For example, `"Monthly coffee Subscription"`.'
327
327
  ).min(0).max(150).optional(),
328
- subscriptionOptionDescription: z.string().describe(
328
+ subscriptionOptionDescription: /* @__PURE__ */ z.string().describe(
329
329
  'Subscription option description. For example, `"1kg of selected coffee, once a month"`.'
330
330
  ).max(500).optional().nullable(),
331
- subscriptionSettings: z.object({
332
- frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
333
- interval: z.number().int().describe(
331
+ subscriptionSettings: /* @__PURE__ */ z.object({
332
+ frequency: /* @__PURE__ */ z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
333
+ interval: /* @__PURE__ */ z.number().int().describe(
334
334
  "Number of frequency units in a billing cycle. For example, frequency `MONTH` with interval `3` means billing every 3 months."
335
335
  ).min(1).max(3650).optional().nullable(),
336
- autoRenewal: z.boolean().describe(
336
+ autoRenewal: /* @__PURE__ */ z.boolean().describe(
337
337
  "Whether subscription is renewed automatically at the end of each period."
338
338
  ).optional(),
339
- billingCycles: z.number().int().describe(
339
+ billingCycles: /* @__PURE__ */ z.number().int().describe(
340
340
  "Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
341
341
  ).min(1).optional().nullable(),
342
- enableCustomerCancellation: z.boolean().describe(
342
+ enableCustomerCancellation: /* @__PURE__ */ z.boolean().describe(
343
343
  "Whether to allow the customer to cancel the subscription."
344
344
  ).optional(),
345
- freeTrialPeriod: z.object({
346
- frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe(
345
+ freeTrialPeriod: /* @__PURE__ */ z.object({
346
+ frequency: /* @__PURE__ */ z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe(
347
347
  "Frequency of period. Values: DAY, WEEK, MONTH, YEAR"
348
348
  ).optional(),
349
- interval: z.number().int().describe(
349
+ interval: /* @__PURE__ */ z.number().int().describe(
350
350
  "Number of frequency units in the free trial period. For example, frequency `MONTH` with interval `3` means a 3-month free trial."
351
351
  ).min(1).max(3650).optional()
352
352
  }).describe(
353
353
  "Period until first cycle starts. If None => no free trial"
354
354
  ).optional()
355
355
  }).describe("Subscription detailed information.").optional(),
356
- chargesDescription: z.string().describe(
356
+ chargesDescription: /* @__PURE__ */ z.string().describe(
357
357
  "Description of the charges that will be applied for subscription."
358
358
  ).max(1e3).optional().nullable()
359
359
  }).describe("Subscription info.").optional(),
360
- priceDescription: z.object({
361
- original: z.string().describe(
360
+ priceDescription: /* @__PURE__ */ z.object({
361
+ original: /* @__PURE__ */ z.string().describe(
362
362
  "__Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope)."
363
363
  ).min(1).max(100).optional(),
364
- translated: z.string().describe(
364
+ translated: /* @__PURE__ */ z.string().describe(
365
365
  "Price description translated into the buyer's language.\n\nDefault: Same as `original`."
366
366
  ).min(1).max(100).optional().nullable()
367
367
  }).describe(
368
368
  'Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".'
369
369
  ).optional(),
370
- depositAmount: z.object({
371
- amount: z.string().describe("Amount.").optional(),
372
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
370
+ depositAmount: /* @__PURE__ */ z.object({
371
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
372
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
373
373
  }).describe(
374
374
  'Item\'s price amount to be charged during checkout. Relevant for items with a `paymentOption` value of `"DEPOSIT_ONLINE"`.'
375
375
  ).optional(),
376
- locations: z.array(
377
- z.object({
378
- _id: z.string().describe("Location id in the associated owner app.").regex(
376
+ locations: /* @__PURE__ */ z.array(
377
+ /* @__PURE__ */ z.object({
378
+ _id: /* @__PURE__ */ z.string().describe("Location id in the associated owner app.").regex(
379
379
  /^[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}$/,
380
380
  "Must be a valid GUID"
381
381
  ).optional(),
382
- appId: z.string().describe(
382
+ appId: /* @__PURE__ */ z.string().describe(
383
383
  "Location owner app, if not provided then the site business info locations will be used."
384
384
  ).regex(
385
385
  /^[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}$/,
386
386
  "Must be a valid GUID"
387
387
  ).optional().nullable(),
388
- quantity: z.number().int().describe("Quantity for specific location.").min(1).max(1e5).optional(),
389
- name: z.string().describe("Location name.").max(500).optional().nullable()
388
+ quantity: /* @__PURE__ */ z.number().int().describe("Quantity for specific location.").min(1).max(1e5).optional(),
389
+ name: /* @__PURE__ */ z.string().describe("Location name.").max(500).optional().nullable()
390
390
  })
391
391
  ).min(0).max(5).optional(),
392
- lineItemPrice: z.object({
393
- amount: z.string().describe("Amount.").optional(),
394
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
392
+ lineItemPrice: /* @__PURE__ */ z.object({
393
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
394
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
395
395
  }).describe(
396
396
  "Total price **after** catalog discounts and line item discounts."
397
397
  ).optional(),
398
- taxableAddress: z.intersection(
399
- z.object({}),
400
- z.xor([
401
- z.object({ addressType: z.never().optional() }),
402
- z.object({
403
- addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
398
+ taxableAddress: /* @__PURE__ */ z.intersection(
399
+ /* @__PURE__ */ z.object({}),
400
+ /* @__PURE__ */ z.xor([
401
+ /* @__PURE__ */ z.object({
402
+ addressType: /* @__PURE__ */ z.never().optional()
403
+ }),
404
+ /* @__PURE__ */ z.object({
405
+ addressType: /* @__PURE__ */ z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
404
406
  "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
405
407
  )
406
408
  })
407
409
  ])
408
410
  ).describe("Address used for tax calculation.").optional(),
409
- priceUndetermined: z.boolean().describe(
411
+ priceUndetermined: /* @__PURE__ */ z.boolean().describe(
410
412
  "Whether the price is not yet defined, and will be updated after the order is created.\n\nDefault: `false`"
411
413
  ).optional(),
412
- fixedQuantity: z.boolean().describe(
414
+ fixedQuantity: /* @__PURE__ */ z.boolean().describe(
413
415
  "Whether the line item quantity is fixed and cannot be changed.\n\nDefault: `false`"
414
416
  ).optional(),
415
- decimalQuantity: z.intersection(
416
- z.object({
417
- value: z.string().describe(
417
+ decimalQuantity: /* @__PURE__ */ z.intersection(
418
+ /* @__PURE__ */ z.object({
419
+ value: /* @__PURE__ */ z.string().describe(
418
420
  'The decimal quantity the buyer / merchant entered.\n\nString-encoded decimal. The exact value is preserved \u2014 no\nrounding, no conversion to an integer.\n\nExamples: "2.75", "1.5", "0.75".'
419
421
  ).optional(),
420
- description: z.object({
421
- original: z.string().describe(
422
+ description: /* @__PURE__ */ z.object({
423
+ original: /* @__PURE__ */ z.string().describe(
422
424
  "__Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
423
425
  ).min(1).max(200).optional(),
424
- translated: z.string().describe(
426
+ translated: /* @__PURE__ */ z.string().describe(
425
427
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
426
428
  ).min(1).max(400).optional().nullable()
427
429
  }).describe(
428
430
  'Human-readable, pre-formatted display string for the quantity. For example, "2.75 square meters of fake grass".\nAlways set alongside `value`; use this directly for display rather than composing your own string from `value` and `unit`.'
429
431
  ).optional()
430
432
  }),
431
- z.xor([
432
- z.object({
433
- measurementUnit: z.never().optional(),
434
- otherUnit: z.never().optional()
433
+ /* @__PURE__ */ z.xor([
434
+ /* @__PURE__ */ z.object({
435
+ measurementUnit: /* @__PURE__ */ z.never().optional(),
436
+ otherUnit: /* @__PURE__ */ z.never().optional()
435
437
  }),
436
- z.object({
437
- otherUnit: z.never().optional(),
438
- measurementUnit: z.enum([
438
+ /* @__PURE__ */ z.object({
439
+ otherUnit: /* @__PURE__ */ z.never().optional(),
440
+ measurementUnit: /* @__PURE__ */ z.enum([
439
441
  "UNSPECIFIED",
440
442
  "ML",
441
443
  "CL",
@@ -462,9 +464,9 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
462
464
  "Unit the value is expressed in, selected from the standard `measurementUnit` enum."
463
465
  )
464
466
  }),
465
- z.object({
466
- measurementUnit: z.never().optional(),
467
- otherUnit: z.string().describe(
467
+ /* @__PURE__ */ z.object({
468
+ measurementUnit: /* @__PURE__ */ z.never().optional(),
469
+ otherUnit: /* @__PURE__ */ z.string().describe(
468
470
  'Free-form unit name for standard units not in the\n`measurementUnit` enum (e.g. "hour", "minute", "session").'
469
471
  ).min(1).max(50)
470
472
  })
@@ -472,47 +474,53 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
472
474
  ).describe(
473
475
  "Decimal-quantity metadata. Set when the line represents a\nnon-integer purchase (e.g. 2.75 m\xB2 of fake grass).\n\nWhen set, the line item must have `fixedQuantity` = true and be set with `quantity` = 1.\nThe decimal value lives in `decimalQuantity.value`."
474
476
  ).optional(),
475
- extendedFields: z.object({
476
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
477
+ extendedFields: /* @__PURE__ */ z.object({
478
+ namespaces: /* @__PURE__ */ z.record(
479
+ /* @__PURE__ */ z.string(),
480
+ /* @__PURE__ */ z.record(
481
+ /* @__PURE__ */ z.string(),
482
+ /* @__PURE__ */ z.any()
483
+ )
484
+ ).describe(
477
485
  "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)."
478
486
  ).optional()
479
487
  }).describe(
480
488
  "Custom extended fields for the line item object.\n\n[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls."
481
489
  ).optional(),
482
- modifierGroups: z.array(
483
- z.object({
484
- _id: z.string().describe("Modifier group ID.").min(1).max(36).optional(),
485
- name: z.object({
486
- original: z.string().describe(
490
+ modifierGroups: /* @__PURE__ */ z.array(
491
+ /* @__PURE__ */ z.object({
492
+ _id: /* @__PURE__ */ z.string().describe("Modifier group ID.").min(1).max(36).optional(),
493
+ name: /* @__PURE__ */ z.object({
494
+ original: /* @__PURE__ */ z.string().describe(
487
495
  "__Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
488
496
  ).min(1).max(200).optional(),
489
- translated: z.string().describe(
497
+ translated: /* @__PURE__ */ z.string().describe(
490
498
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
491
499
  ).min(1).max(400).optional().nullable()
492
500
  }).describe("Modifier group name.").optional(),
493
- modifiers: z.array(
494
- z.object({
495
- _id: z.string().describe("Modifier ID.").min(1).max(36).optional(),
496
- quantity: z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
497
- label: z.object({
498
- original: z.string().describe(
501
+ modifiers: /* @__PURE__ */ z.array(
502
+ /* @__PURE__ */ z.object({
503
+ _id: /* @__PURE__ */ z.string().describe("Modifier ID.").min(1).max(36).optional(),
504
+ quantity: /* @__PURE__ */ z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
505
+ label: /* @__PURE__ */ z.object({
506
+ original: /* @__PURE__ */ z.string().describe(
499
507
  "__Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
500
508
  ).min(1).max(200).optional(),
501
- translated: z.string().describe(
509
+ translated: /* @__PURE__ */ z.string().describe(
502
510
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
503
511
  ).min(1).max(400).optional().nullable()
504
512
  }).describe("Primary display label for the modifier.").optional(),
505
- details: z.object({
506
- original: z.string().describe(
513
+ details: /* @__PURE__ */ z.object({
514
+ original: /* @__PURE__ */ z.string().describe(
507
515
  "__Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
508
516
  ).min(1).max(200).optional(),
509
- translated: z.string().describe(
517
+ translated: /* @__PURE__ */ z.string().describe(
510
518
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
511
519
  ).min(1).max(400).optional().nullable()
512
520
  }).describe("Additional details.").optional(),
513
- price: z.object({
514
- amount: z.string().describe("Amount.").optional(),
515
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
521
+ price: /* @__PURE__ */ z.object({
522
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
523
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
516
524
  }).describe("The price of the modifier.").optional()
517
525
  })
518
526
  ).min(1).max(10).optional()
@@ -520,33 +528,33 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
520
528
  ).max(10).optional()
521
529
  })
522
530
  ).min(1).max(100).optional(),
523
- buyerInfo: z.intersection(
524
- z.object({
525
- contactId: z.string().describe(
531
+ buyerInfo: /* @__PURE__ */ z.intersection(
532
+ /* @__PURE__ */ z.object({
533
+ contactId: /* @__PURE__ */ z.string().describe(
526
534
  "Contact ID. Automatically created if one doesn't exist. For more information, see [Contacts API](https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts/contact-v4/introduction)."
527
535
  ).regex(
528
536
  /^[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}$/,
529
537
  "Must be a valid GUID"
530
538
  ).optional().nullable(),
531
- email: z.string().describe("Buyer's email address.").email().optional().nullable()
539
+ email: /* @__PURE__ */ z.string().describe("Buyer's email address.").email().optional().nullable()
532
540
  }),
533
- z.xor([
534
- z.object({
535
- visitorId: z.never().optional(),
536
- memberId: z.never().optional()
541
+ /* @__PURE__ */ z.xor([
542
+ /* @__PURE__ */ z.object({
543
+ visitorId: /* @__PURE__ */ z.never().optional(),
544
+ memberId: /* @__PURE__ */ z.never().optional()
537
545
  }),
538
- z.object({
539
- memberId: z.never().optional(),
540
- visitorId: z.string().describe(
546
+ /* @__PURE__ */ z.object({
547
+ memberId: /* @__PURE__ */ z.never().optional(),
548
+ visitorId: /* @__PURE__ */ z.string().describe(
541
549
  "Visitor ID. Returned when the buyer isn't a logged-in site member."
542
550
  ).regex(
543
551
  /^[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}$/,
544
552
  "Must be a valid GUID"
545
553
  )
546
554
  }),
547
- z.object({
548
- visitorId: z.never().optional(),
549
- memberId: z.string().describe(
555
+ /* @__PURE__ */ z.object({
556
+ visitorId: /* @__PURE__ */ z.never().optional(),
557
+ memberId: /* @__PURE__ */ z.string().describe(
550
558
  "Member ID. Returned when the buyer is a logged-in site member."
551
559
  ).regex(
552
560
  /^[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}$/,
@@ -555,87 +563,87 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
555
563
  })
556
564
  ])
557
565
  ).describe("Buyer information.").optional(),
558
- buyerLanguage: z.string().describe(
566
+ buyerLanguage: /* @__PURE__ */ z.string().describe(
559
567
  "Language for communication with the buyer. Defaults to the site language.\nFor a site that supports multiple languages, this is the language the buyer selected."
560
568
  ).max(10).optional().nullable(),
561
- weightUnit: z.enum(["UNSPECIFIED_WEIGHT_UNIT", "KG", "LB"]).describe("Weight measurement unit - defaults to site's weight unit.").optional(),
562
- currency: z.string().describe(
569
+ weightUnit: /* @__PURE__ */ z.enum(["UNSPECIFIED_WEIGHT_UNIT", "KG", "LB"]).describe("Weight measurement unit - defaults to site's weight unit.").optional(),
570
+ currency: /* @__PURE__ */ z.string().describe(
563
571
  "Currency used for the pricing of this order in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format."
564
572
  ).optional().nullable(),
565
- currencyConversionDetails: z.object({
566
- originalCurrency: z.string().describe(
573
+ currencyConversionDetails: /* @__PURE__ */ z.object({
574
+ originalCurrency: /* @__PURE__ */ z.string().describe(
567
575
  "Currency used for the pricing of this order, in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.\n\nThis currency is used to calculate the pricing before conversion to the buyer's payment currency."
568
576
  ).optional().nullable(),
569
- conversionRate: z.string().describe(
577
+ conversionRate: /* @__PURE__ */ z.string().describe(
570
578
  "The rate used for converting the original currency to the currency used for payment.\n\nReturned only when a single rate produced every amount on the order.\nThis is the case for an order converted once at checkout."
571
579
  ).optional().nullable()
572
580
  }).describe(
573
581
  "Multi-currency information of the subscription. conversionRate may reflect updated exchange rate on created order per recurring cycle."
574
582
  ).optional(),
575
- taxIncludedInPrices: z.boolean().describe(
583
+ taxIncludedInPrices: /* @__PURE__ */ z.boolean().describe(
576
584
  "Whether tax is included in line item prices.\n\nDefault: `false`"
577
585
  ).optional(),
578
- priceSummary: z.object({
579
- subtotal: z.object({
580
- amount: z.string().describe("Amount.").optional(),
581
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
586
+ priceSummary: /* @__PURE__ */ z.object({
587
+ subtotal: /* @__PURE__ */ z.object({
588
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
589
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
582
590
  }).describe(
583
591
  "Subtotal of all line items, before discounts and before tax."
584
592
  ).optional(),
585
- shipping: z.object({
586
- amount: z.string().describe("Amount.").optional(),
587
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
593
+ shipping: /* @__PURE__ */ z.object({
594
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
595
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
588
596
  }).describe("Total shipping price, before discounts and before tax.").optional(),
589
- tax: z.object({
590
- amount: z.string().describe("Amount.").optional(),
591
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
597
+ tax: /* @__PURE__ */ z.object({
598
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
599
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
592
600
  }).describe("Total tax applied to the order.").optional(),
593
- discount: z.object({
594
- amount: z.string().describe("Amount.").optional(),
595
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
601
+ discount: /* @__PURE__ */ z.object({
602
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
603
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
596
604
  }).describe("Total discount amount applied to the order.").optional(),
597
- total: z.object({
598
- amount: z.string().describe("Amount.").optional(),
599
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
605
+ total: /* @__PURE__ */ z.object({
606
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
607
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
600
608
  }).describe("Order's total price after discounts and tax.").optional(),
601
- totalAdditionalFees: z.object({
602
- amount: z.string().describe("Amount.").optional(),
603
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
609
+ totalAdditionalFees: /* @__PURE__ */ z.object({
610
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
611
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
604
612
  }).describe("Total additional fees before tax.").optional()
605
613
  }).describe("Order price summary.").optional(),
606
- platformFeeSummary: z.object({
607
- total: z.object({
608
- amount: z.string().describe("Amount.").optional(),
609
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
614
+ platformFeeSummary: /* @__PURE__ */ z.object({
615
+ total: /* @__PURE__ */ z.object({
616
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
617
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
610
618
  }).describe("Total sum of all platform fees.").optional(),
611
- totalPassOn: z.object({
612
- amount: z.string().describe("Amount.").optional(),
613
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
619
+ totalPassOn: /* @__PURE__ */ z.object({
620
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
621
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
614
622
  }).describe("Total amount of platform fees with `PASS_ON` charge type.").optional(),
615
- totalAbsorbed: z.object({
616
- amount: z.string().describe("Amount.").optional(),
617
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
623
+ totalAbsorbed: /* @__PURE__ */ z.object({
624
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
625
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
618
626
  }).describe("Total amount of platform fees with `ABSORBED` charge type.").optional(),
619
- fees: z.array(
620
- z.object({
621
- name: z.object({
622
- original: z.string().describe(
627
+ fees: /* @__PURE__ */ z.array(
628
+ /* @__PURE__ */ z.object({
629
+ name: /* @__PURE__ */ z.object({
630
+ original: /* @__PURE__ */ z.string().describe(
623
631
  "__Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
624
632
  ).min(1).max(200).optional(),
625
- translated: z.string().describe(
633
+ translated: /* @__PURE__ */ z.string().describe(
626
634
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
627
635
  ).min(1).max(400).optional().nullable()
628
636
  }).describe("Platform fee name.").optional(),
629
- amount: z.object({
630
- amount: z.string().describe("Amount.").optional(),
631
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
637
+ amount: /* @__PURE__ */ z.object({
638
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
639
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
632
640
  }).describe("Platform fee amount.").optional(),
633
- lineItemId: z.string().describe("ID of the line item the platform fee applies to.").regex(
641
+ lineItemId: /* @__PURE__ */ z.string().describe("ID of the line item the platform fee applies to.").regex(
634
642
  /^[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}$/,
635
643
  "Must be a valid GUID"
636
644
  ).optional(),
637
- chargeType: z.enum(["PASS_ON", "ABSORBED"]).describe("Platform fee charge type.").optional(),
638
- percentageRate: z.string().describe(
645
+ chargeType: /* @__PURE__ */ z.enum(["PASS_ON", "ABSORBED"]).describe("Platform fee charge type.").optional(),
646
+ percentageRate: /* @__PURE__ */ z.string().describe(
639
647
  "Percentage rate charged as platform fee.\nThe fee rate percentage expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%."
640
648
  ).optional()
641
649
  })
@@ -643,26 +651,26 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
643
651
  }).describe(
644
652
  "Summary of platform fees for this subscription contract, including totals by charge type and a breakdown of individual fees."
645
653
  ).optional(),
646
- billingInfo: z.object({
647
- address: z.object({
648
- streetAddress: z.object({
649
- name: z.string().optional(),
650
- number: z.string().optional()
654
+ billingInfo: /* @__PURE__ */ z.object({
655
+ address: /* @__PURE__ */ z.object({
656
+ streetAddress: /* @__PURE__ */ z.object({
657
+ name: /* @__PURE__ */ z.string().optional(),
658
+ number: /* @__PURE__ */ z.string().optional()
651
659
  }).optional(),
652
- city: z.string().optional().nullable(),
653
- subdivision: z.string().optional().nullable(),
654
- country: z.string().optional().nullable(),
655
- postalCode: z.string().optional().nullable(),
656
- addressLine2: z.string().optional().nullable()
660
+ city: /* @__PURE__ */ z.string().optional().nullable(),
661
+ subdivision: /* @__PURE__ */ z.string().optional().nullable(),
662
+ country: /* @__PURE__ */ z.string().optional().nullable(),
663
+ postalCode: /* @__PURE__ */ z.string().optional().nullable(),
664
+ addressLine2: /* @__PURE__ */ z.string().optional().nullable()
657
665
  }).describe("Address.").optional(),
658
- contactDetails: z.object({
659
- firstName: z.string().describe("First name.").max(100).optional().nullable(),
660
- lastName: z.string().describe("Last name.").max(100).optional().nullable(),
661
- phone: z.string().describe("Phone number.").optional().nullable(),
662
- company: z.string().describe("Company name.").max(1e3).optional().nullable(),
663
- vatId: z.object({
664
- _id: z.string().describe("Customer's tax ID.").optional(),
665
- type: z.enum(["UNSPECIFIED", "CPF", "CNPJ"]).describe(
666
+ contactDetails: /* @__PURE__ */ z.object({
667
+ firstName: /* @__PURE__ */ z.string().describe("First name.").max(100).optional().nullable(),
668
+ lastName: /* @__PURE__ */ z.string().describe("Last name.").max(100).optional().nullable(),
669
+ phone: /* @__PURE__ */ z.string().describe("Phone number.").optional().nullable(),
670
+ company: /* @__PURE__ */ z.string().describe("Company name.").max(1e3).optional().nullable(),
671
+ vatId: /* @__PURE__ */ z.object({
672
+ _id: /* @__PURE__ */ z.string().describe("Customer's tax ID.").optional(),
673
+ type: /* @__PURE__ */ z.enum(["UNSPECIFIED", "CPF", "CNPJ"]).describe(
666
674
  "Tax type.\n\nSupported values:\n+ `CPF`: for individual tax payers\n+ `CNPJ`: for corporations"
667
675
  ).optional()
668
676
  }).describe(
@@ -670,59 +678,59 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
670
678
  ).optional()
671
679
  }).describe("Contact details.").optional()
672
680
  }).describe("Billing address and contact details.").optional(),
673
- shippingInfo: z.object({
674
- carrierId: z.string().describe(
681
+ shippingInfo: /* @__PURE__ */ z.object({
682
+ carrierId: /* @__PURE__ */ z.string().describe(
675
683
  "App Def Id of external provider which was a source of shipping info"
676
684
  ).min(1).max(100).optional().nullable(),
677
- code: z.string().describe(
685
+ code: /* @__PURE__ */ z.string().describe(
678
686
  'Unique code (or ID) of selected shipping option. For example, `"usps_std_overnight"`.'
679
687
  ).min(1).max(100).optional().nullable(),
680
- title: z.string().describe(
688
+ title: /* @__PURE__ */ z.string().describe(
681
689
  'Shipping option title.\nFor example, `"USPS Standard Overnight Delivery"`, `"Standard"` or `"First-Class Package International"`.'
682
690
  ).max(250).optional(),
683
- logistics: z.intersection(
684
- z.object({
685
- deliveryTime: z.string().describe(
691
+ logistics: /* @__PURE__ */ z.intersection(
692
+ /* @__PURE__ */ z.object({
693
+ deliveryTime: /* @__PURE__ */ z.string().describe(
686
694
  'Expected delivery time in free text. For example, `"3-5 business days"`.'
687
695
  ).max(500).optional().nullable(),
688
- instructions: z.string().describe(
696
+ instructions: /* @__PURE__ */ z.string().describe(
689
697
  'Instructions for the carrier. For example, `"Please knock on the door. If unanswered, please call contact number."`.'
690
698
  ).max(1e3).optional().nullable(),
691
- deliverByDate: z.date().describe(
699
+ deliverByDate: /* @__PURE__ */ z.date().describe(
692
700
  "Deprecated - Latest expected delivery date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
693
701
  ).optional().nullable(),
694
- deliveryTimeSlot: z.object({
695
- from: z.date().describe("Delivery slot starting time.").optional().nullable(),
696
- to: z.date().describe("Delivery slot ending time.").optional().nullable()
702
+ deliveryTimeSlot: /* @__PURE__ */ z.object({
703
+ from: /* @__PURE__ */ z.date().describe("Delivery slot starting time.").optional().nullable(),
704
+ to: /* @__PURE__ */ z.date().describe("Delivery slot ending time.").optional().nullable()
697
705
  }).describe("Expected delivery time slot with start and end times.").optional()
698
706
  }),
699
- z.xor([
700
- z.object({
701
- shippingDestination: z.never().optional(),
702
- pickupDetails: z.never().optional()
707
+ /* @__PURE__ */ z.xor([
708
+ /* @__PURE__ */ z.object({
709
+ shippingDestination: /* @__PURE__ */ z.never().optional(),
710
+ pickupDetails: /* @__PURE__ */ z.never().optional()
703
711
  }),
704
- z.object({
705
- pickupDetails: z.never().optional(),
706
- shippingDestination: z.object({
707
- address: z.object({
708
- streetAddress: z.object({
709
- name: z.string().optional(),
710
- number: z.string().optional()
712
+ /* @__PURE__ */ z.object({
713
+ pickupDetails: /* @__PURE__ */ z.never().optional(),
714
+ shippingDestination: /* @__PURE__ */ z.object({
715
+ address: /* @__PURE__ */ z.object({
716
+ streetAddress: /* @__PURE__ */ z.object({
717
+ name: /* @__PURE__ */ z.string().optional(),
718
+ number: /* @__PURE__ */ z.string().optional()
711
719
  }).optional(),
712
- city: z.string().optional().nullable(),
713
- subdivision: z.string().optional().nullable(),
714
- country: z.string().optional().nullable(),
715
- postalCode: z.string().optional().nullable(),
716
- addressLine2: z.string().optional().nullable()
720
+ city: /* @__PURE__ */ z.string().optional().nullable(),
721
+ subdivision: /* @__PURE__ */ z.string().optional().nullable(),
722
+ country: /* @__PURE__ */ z.string().optional().nullable(),
723
+ postalCode: /* @__PURE__ */ z.string().optional().nullable(),
724
+ addressLine2: /* @__PURE__ */ z.string().optional().nullable()
717
725
  }).describe("Address.").optional(),
718
- contactDetails: z.object({
719
- firstName: z.string().describe("First name.").max(100).optional().nullable(),
720
- lastName: z.string().describe("Last name.").max(100).optional().nullable(),
721
- phone: z.string().describe("Phone number.").optional().nullable(),
722
- company: z.string().describe("Company name.").max(1e3).optional().nullable(),
723
- vatId: z.object({
724
- _id: z.string().describe("Customer's tax ID.").optional(),
725
- type: z.enum(["UNSPECIFIED", "CPF", "CNPJ"]).describe(
726
+ contactDetails: /* @__PURE__ */ z.object({
727
+ firstName: /* @__PURE__ */ z.string().describe("First name.").max(100).optional().nullable(),
728
+ lastName: /* @__PURE__ */ z.string().describe("Last name.").max(100).optional().nullable(),
729
+ phone: /* @__PURE__ */ z.string().describe("Phone number.").optional().nullable(),
730
+ company: /* @__PURE__ */ z.string().describe("Company name.").max(1e3).optional().nullable(),
731
+ vatId: /* @__PURE__ */ z.object({
732
+ _id: /* @__PURE__ */ z.string().describe("Customer's tax ID.").optional(),
733
+ type: /* @__PURE__ */ z.enum(["UNSPECIFIED", "CPF", "CNPJ"]).describe(
726
734
  "Tax type.\n\nSupported values:\n+ `CPF`: for individual tax payers\n+ `CNPJ`: for corporations"
727
735
  ).optional()
728
736
  }).describe(
@@ -733,95 +741,95 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
733
741
  "Shipping destination address and contact details. For pickup orders, this contains the pickup location address, not the recipient's address."
734
742
  )
735
743
  }),
736
- z.object({
737
- shippingDestination: z.never().optional(),
738
- pickupDetails: z.object({
739
- address: z.object({
740
- streetAddress: z.object({
741
- name: z.string().optional(),
742
- number: z.string().optional()
744
+ /* @__PURE__ */ z.object({
745
+ shippingDestination: /* @__PURE__ */ z.never().optional(),
746
+ pickupDetails: /* @__PURE__ */ z.object({
747
+ address: /* @__PURE__ */ z.object({
748
+ streetAddress: /* @__PURE__ */ z.object({
749
+ name: /* @__PURE__ */ z.string().optional(),
750
+ number: /* @__PURE__ */ z.string().optional()
743
751
  }).optional(),
744
- city: z.string().optional().nullable(),
745
- subdivision: z.string().optional().nullable(),
746
- country: z.string().optional().nullable(),
747
- postalCode: z.string().optional().nullable(),
748
- addressLine2: z.string().optional().nullable()
752
+ city: /* @__PURE__ */ z.string().optional().nullable(),
753
+ subdivision: /* @__PURE__ */ z.string().optional().nullable(),
754
+ country: /* @__PURE__ */ z.string().optional().nullable(),
755
+ postalCode: /* @__PURE__ */ z.string().optional().nullable(),
756
+ addressLine2: /* @__PURE__ */ z.string().optional().nullable()
749
757
  }).describe("Pickup address.").optional(),
750
- pickupMethod: z.enum(["STORE_PICKUP", "PICKUP_POINT"]).describe("Pickup method").optional()
758
+ pickupMethod: /* @__PURE__ */ z.enum(["STORE_PICKUP", "PICKUP_POINT"]).describe("Pickup method").optional()
751
759
  }).describe(
752
760
  "Pickup details for store pickup or pickup point orders."
753
761
  )
754
762
  })
755
763
  ])
756
764
  ).describe("Shipping logistics.").optional(),
757
- cost: z.object({
758
- price: z.object({
759
- amount: z.string().describe("Amount.").optional(),
760
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
765
+ cost: /* @__PURE__ */ z.object({
766
+ price: /* @__PURE__ */ z.object({
767
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
768
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
761
769
  }).describe("Shipping price for display purposes.").optional(),
762
- totalPriceBeforeTax: z.object({
763
- amount: z.string().describe("Amount.").optional(),
764
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
770
+ totalPriceBeforeTax: /* @__PURE__ */ z.object({
771
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
772
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
765
773
  }).describe(
766
774
  "Total price of shipping after discounts (when relevant), and before tax."
767
775
  ).optional(),
768
- totalPriceAfterTax: z.object({
769
- amount: z.string().describe("Amount.").optional(),
770
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
776
+ totalPriceAfterTax: /* @__PURE__ */ z.object({
777
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
778
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
771
779
  }).describe(
772
780
  "Shipping price after all discounts (if any exist), and after tax."
773
781
  ).optional(),
774
- taxDetails: z.object({
775
- taxableAmount: z.object({
776
- amount: z.string().describe("Amount.").optional(),
777
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
782
+ taxDetails: /* @__PURE__ */ z.object({
783
+ taxableAmount: /* @__PURE__ */ z.object({
784
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
785
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
778
786
  }).describe("Taxable amount of this line item.").optional(),
779
- taxRate: z.string().describe(
787
+ taxRate: /* @__PURE__ */ z.string().describe(
780
788
  'Tax rate percentage, as a decimal numeral between 0 and 1. For example, `"0.13"`.'
781
789
  ).optional(),
782
- totalTax: z.object({
783
- amount: z.string().describe("Amount.").optional(),
784
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
790
+ totalTax: /* @__PURE__ */ z.object({
791
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
792
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
785
793
  }).describe(
786
794
  "The calculated tax, based on the `taxableAmount` and `taxRate`."
787
795
  ).optional()
788
796
  }).describe("Tax details.").optional(),
789
- taxInfo: z.object({
790
- taxAmount: z.object({
791
- amount: z.string().describe("Amount.").optional(),
792
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
797
+ taxInfo: /* @__PURE__ */ z.object({
798
+ taxAmount: /* @__PURE__ */ z.object({
799
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
800
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
793
801
  }).describe(
794
802
  "Calculated tax, based on `taxable_amount` and `tax_rate`."
795
803
  ).optional(),
796
- taxableAmount: z.object({
797
- amount: z.string().describe("Amount.").optional(),
798
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
804
+ taxableAmount: /* @__PURE__ */ z.object({
805
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
806
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
799
807
  }).describe("Amount for which tax is calculated.").optional(),
800
- taxRate: z.string().describe("Tax rate %, as a decimal point.").optional().nullable(),
801
- taxGroupId: z.string().describe("Tax group ID.").regex(
808
+ taxRate: /* @__PURE__ */ z.string().describe("Tax rate %, as a decimal point.").optional().nullable(),
809
+ taxGroupId: /* @__PURE__ */ z.string().describe("Tax group ID.").regex(
802
810
  /^[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}$/,
803
811
  "Must be a valid GUID"
804
812
  ).optional().nullable(),
805
- taxIncludedInPrice: z.boolean().describe("Indicates whether the price already includes tax.").optional(),
806
- taxBreakdown: z.array(
807
- z.object({
808
- jurisdiction: z.string().describe(
813
+ taxIncludedInPrice: /* @__PURE__ */ z.boolean().describe("Indicates whether the price already includes tax.").optional(),
814
+ taxBreakdown: /* @__PURE__ */ z.array(
815
+ /* @__PURE__ */ z.object({
816
+ jurisdiction: /* @__PURE__ */ z.string().describe(
809
817
  'Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec".'
810
818
  ).max(200).optional().nullable(),
811
- rate: z.string().describe(
819
+ rate: /* @__PURE__ */ z.string().describe(
812
820
  "Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000."
813
821
  ).optional().nullable(),
814
- taxAmount: z.object({
815
- amount: z.string().describe("Amount.").optional(),
816
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
822
+ taxAmount: /* @__PURE__ */ z.object({
823
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
824
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
817
825
  }).describe("Amount of tax calculated for this line item.").optional(),
818
- taxType: z.string().describe(
826
+ taxType: /* @__PURE__ */ z.string().describe(
819
827
  `The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc.`
820
828
  ).max(200).optional().nullable(),
821
- taxName: z.string().describe(
829
+ taxName: /* @__PURE__ */ z.string().describe(
822
830
  'The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.\nThis name should be explicit enough to allow the merchant to understand what tax was calculated.'
823
831
  ).max(200).optional().nullable(),
824
- jurisdictionType: z.enum([
832
+ jurisdictionType: /* @__PURE__ */ z.enum([
825
833
  "UNDEFINED",
826
834
  "COUNTRY",
827
835
  "STATE",
@@ -831,118 +839,118 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
831
839
  ]).describe(
832
840
  "Type of jurisdiction that taxes were calculated for."
833
841
  ).optional(),
834
- nonTaxableAmount: z.object({
835
- amount: z.string().describe("Amount.").optional(),
836
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
842
+ nonTaxableAmount: /* @__PURE__ */ z.object({
843
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
844
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
837
845
  }).describe("Non-taxable amount of the line item price.").optional(),
838
- taxableAmount: z.object({
839
- amount: z.string().describe("Amount.").optional(),
840
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
846
+ taxableAmount: /* @__PURE__ */ z.object({
847
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
848
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
841
849
  }).describe("Taxable amount of the line item price.").optional()
842
850
  })
843
851
  ).max(7).optional()
844
852
  }).describe("Represents all the relevant tax details for a shipping.").optional(),
845
- discount: z.object({
846
- amount: z.string().describe("Amount.").optional(),
847
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
853
+ discount: /* @__PURE__ */ z.object({
854
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
855
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
848
856
  }).describe("Shipping discount before tax.").optional()
849
857
  }).describe("Shipping costs.").optional(),
850
- region: z.object({
851
- name: z.string().describe(
858
+ region: /* @__PURE__ */ z.object({
859
+ name: /* @__PURE__ */ z.string().describe(
852
860
  'Name of shipping region. For example, `"Metropolitan London"`, or `"Outer Melbourne suburbs"`.'
853
861
  ).max(100).optional().nullable()
854
862
  }).describe("Shipping region.").optional()
855
863
  }).describe("Shipping info and selected shipping option details.").optional(),
856
- appliedDiscounts: z.array(
857
- z.intersection(
858
- z.object({
859
- discountType: z.enum(["GLOBAL", "SPECIFIC_ITEMS", "SHIPPING"]).optional(),
860
- lineItemIds: z.array(z.string()).min(0).max(300).optional(),
861
- _id: z.string().describe("Discount ID.").regex(
864
+ appliedDiscounts: /* @__PURE__ */ z.array(
865
+ /* @__PURE__ */ z.intersection(
866
+ /* @__PURE__ */ z.object({
867
+ discountType: /* @__PURE__ */ z.enum(["GLOBAL", "SPECIFIC_ITEMS", "SHIPPING"]).optional(),
868
+ lineItemIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(0).max(300).optional(),
869
+ _id: /* @__PURE__ */ z.string().describe("Discount ID.").regex(
862
870
  /^[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
871
  "Must be a valid GUID"
864
872
  ).optional().nullable(),
865
- lineItemDiscounts: z.array(
866
- z.object({
867
- _id: z.string().describe("Line item ID.").regex(
873
+ lineItemDiscounts: /* @__PURE__ */ z.array(
874
+ /* @__PURE__ */ z.object({
875
+ _id: /* @__PURE__ */ z.string().describe("Line item ID.").regex(
868
876
  /^[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
877
  "Must be a valid GUID"
870
878
  ).optional(),
871
- totalDiscount: z.object({
872
- amount: z.string().describe("Amount.").optional(),
873
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
879
+ totalDiscount: /* @__PURE__ */ z.object({
880
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
881
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
874
882
  }).describe("Total discount amount for this line item.").optional()
875
883
  })
876
884
  ).max(300).optional()
877
885
  }),
878
- z.xor([
879
- z.object({
880
- coupon: z.never().optional(),
881
- merchantDiscount: z.never().optional(),
882
- discountRule: z.never().optional()
886
+ /* @__PURE__ */ z.xor([
887
+ /* @__PURE__ */ z.object({
888
+ coupon: /* @__PURE__ */ z.never().optional(),
889
+ merchantDiscount: /* @__PURE__ */ z.never().optional(),
890
+ discountRule: /* @__PURE__ */ z.never().optional()
883
891
  }),
884
- z.object({
885
- merchantDiscount: z.never().optional(),
886
- discountRule: z.never().optional(),
887
- coupon: z.object({
888
- _id: z.string().describe("Coupon ID.").optional(),
889
- code: z.string().describe("Coupon code.").optional(),
890
- name: z.string().describe("Coupon name.").optional(),
891
- amount: z.object({
892
- amount: z.string().describe("Amount.").optional(),
893
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
892
+ /* @__PURE__ */ z.object({
893
+ merchantDiscount: /* @__PURE__ */ z.never().optional(),
894
+ discountRule: /* @__PURE__ */ z.never().optional(),
895
+ coupon: /* @__PURE__ */ z.object({
896
+ _id: /* @__PURE__ */ z.string().describe("Coupon ID.").optional(),
897
+ code: /* @__PURE__ */ z.string().describe("Coupon code.").optional(),
898
+ name: /* @__PURE__ */ z.string().describe("Coupon name.").optional(),
899
+ amount: /* @__PURE__ */ z.object({
900
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
901
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
894
902
  }).describe("Coupon value.").optional()
895
903
  }).describe("Coupon applied by the customer.")
896
904
  }),
897
- z.object({
898
- coupon: z.never().optional(),
899
- discountRule: z.never().optional(),
900
- merchantDiscount: z.intersection(
901
- z.object({
902
- amount: z.object({
903
- amount: z.string().describe("Amount.").optional(),
904
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
905
+ /* @__PURE__ */ z.object({
906
+ coupon: /* @__PURE__ */ z.never().optional(),
907
+ discountRule: /* @__PURE__ */ z.never().optional(),
908
+ merchantDiscount: /* @__PURE__ */ z.intersection(
909
+ /* @__PURE__ */ z.object({
910
+ amount: /* @__PURE__ */ z.object({
911
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
912
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
905
913
  }).describe("Discount amount.").optional()
906
914
  }),
907
- z.xor([
908
- z.object({
909
- discountReason: z.never().optional(),
910
- description: z.never().optional()
915
+ /* @__PURE__ */ z.xor([
916
+ /* @__PURE__ */ z.object({
917
+ discountReason: /* @__PURE__ */ z.never().optional(),
918
+ description: /* @__PURE__ */ z.never().optional()
911
919
  }),
912
- z.object({
913
- description: z.never().optional(),
914
- discountReason: z.enum([
920
+ /* @__PURE__ */ z.object({
921
+ description: /* @__PURE__ */ z.never().optional(),
922
+ discountReason: /* @__PURE__ */ z.enum([
915
923
  "UNSPECIFIED",
916
924
  "EXCHANGED_ITEMS",
917
925
  "BILLING_ADJUSTMENT"
918
926
  ]).describe("Predefined discount reason.")
919
927
  }),
920
- z.object({
921
- discountReason: z.never().optional(),
922
- description: z.string().describe("Custom discount description as free text.").max(200)
928
+ /* @__PURE__ */ z.object({
929
+ discountReason: /* @__PURE__ */ z.never().optional(),
930
+ description: /* @__PURE__ */ z.string().describe("Custom discount description as free text.").max(200)
923
931
  })
924
932
  ])
925
933
  ).describe("Discount applied manually by the merchant.")
926
934
  }),
927
- z.object({
928
- coupon: z.never().optional(),
929
- merchantDiscount: z.never().optional(),
930
- discountRule: z.object({
931
- _id: z.string().describe("Discount rule ID").regex(
935
+ /* @__PURE__ */ z.object({
936
+ coupon: /* @__PURE__ */ z.never().optional(),
937
+ merchantDiscount: /* @__PURE__ */ z.never().optional(),
938
+ discountRule: /* @__PURE__ */ z.object({
939
+ _id: /* @__PURE__ */ z.string().describe("Discount rule ID").regex(
932
940
  /^[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}$/,
933
941
  "Must be a valid GUID"
934
942
  ).optional(),
935
- name: z.object({
936
- original: z.string().describe(
943
+ name: /* @__PURE__ */ z.object({
944
+ original: /* @__PURE__ */ z.string().describe(
937
945
  "Original discount rule name (in site's default language)."
938
946
  ).min(1).max(256).optional(),
939
- translated: z.string().describe(
947
+ translated: /* @__PURE__ */ z.string().describe(
940
948
  "Translated discount rule name according to buyer language. Defaults to `original` when not provided."
941
949
  ).min(1).max(500).optional().nullable()
942
950
  }).describe("Discount rule name").optional(),
943
- amount: z.object({
944
- amount: z.string().describe("Amount.").optional(),
945
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
951
+ amount: /* @__PURE__ */ z.object({
952
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
953
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
946
954
  }).describe("Discount value.").optional()
947
955
  }).describe(
948
956
  "Automatic discount applied by the system based on configured discount rules."
@@ -951,8 +959,8 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
951
959
  ])
952
960
  )
953
961
  ).max(100).optional(),
954
- channelInfo: z.object({
955
- type: z.enum([
962
+ channelInfo: /* @__PURE__ */ z.object({
963
+ type: /* @__PURE__ */ z.enum([
956
964
  "UNSPECIFIED",
957
965
  "WEB",
958
966
  "POS",
@@ -974,40 +982,40 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
974
982
  ]).describe(
975
983
  "Sales channel that submitted the order.\n\nWhen creating an order via the API to record an external order, use the channel type that matches the original source. If no matching type exists, use `OTHER_PLATFORM`."
976
984
  ).optional(),
977
- externalOrderId: z.string().describe(
985
+ externalOrderId: /* @__PURE__ */ z.string().describe(
978
986
  "Reference to an order ID from an external system. Relevant when recording orders from external platforms."
979
987
  ).max(100).optional().nullable(),
980
- externalOrderUrl: z.string().describe(
988
+ externalOrderUrl: /* @__PURE__ */ z.string().describe(
981
989
  "URL to the order in the external system. Relevant when recording orders from external platforms."
982
990
  ).max(300).optional().nullable()
983
991
  }).describe("Information about the sales channel that submitted this order.").optional(),
984
- customFields: z.array(
985
- z.object({
986
- value: z.any().describe("Custom field value.").optional().nullable(),
987
- title: z.string().describe("Custom field title.").min(1).max(500).optional(),
988
- translatedTitle: z.string().describe("Translated custom field title.").min(1).max(500).optional().nullable()
992
+ customFields: /* @__PURE__ */ z.array(
993
+ /* @__PURE__ */ z.object({
994
+ value: /* @__PURE__ */ z.any().describe("Custom field value.").optional().nullable(),
995
+ title: /* @__PURE__ */ z.string().describe("Custom field title.").min(1).max(500).optional(),
996
+ translatedTitle: /* @__PURE__ */ z.string().describe("Translated custom field title.").min(1).max(500).optional().nullable()
989
997
  })
990
998
  ).max(100).optional(),
991
- recipientInfo: z.object({
992
- address: z.object({
993
- streetAddress: z.object({
994
- name: z.string().optional(),
995
- number: z.string().optional()
999
+ recipientInfo: /* @__PURE__ */ z.object({
1000
+ address: /* @__PURE__ */ z.object({
1001
+ streetAddress: /* @__PURE__ */ z.object({
1002
+ name: /* @__PURE__ */ z.string().optional(),
1003
+ number: /* @__PURE__ */ z.string().optional()
996
1004
  }).optional(),
997
- city: z.string().optional().nullable(),
998
- subdivision: z.string().optional().nullable(),
999
- country: z.string().optional().nullable(),
1000
- postalCode: z.string().optional().nullable(),
1001
- addressLine2: z.string().optional().nullable()
1005
+ city: /* @__PURE__ */ z.string().optional().nullable(),
1006
+ subdivision: /* @__PURE__ */ z.string().optional().nullable(),
1007
+ country: /* @__PURE__ */ z.string().optional().nullable(),
1008
+ postalCode: /* @__PURE__ */ z.string().optional().nullable(),
1009
+ addressLine2: /* @__PURE__ */ z.string().optional().nullable()
1002
1010
  }).describe("Address.").optional(),
1003
- contactDetails: z.object({
1004
- firstName: z.string().describe("First name.").max(100).optional().nullable(),
1005
- lastName: z.string().describe("Last name.").max(100).optional().nullable(),
1006
- phone: z.string().describe("Phone number.").optional().nullable(),
1007
- company: z.string().describe("Company name.").max(1e3).optional().nullable(),
1008
- vatId: z.object({
1009
- _id: z.string().describe("Customer's tax ID.").optional(),
1010
- type: z.enum(["UNSPECIFIED", "CPF", "CNPJ"]).describe(
1011
+ contactDetails: /* @__PURE__ */ z.object({
1012
+ firstName: /* @__PURE__ */ z.string().describe("First name.").max(100).optional().nullable(),
1013
+ lastName: /* @__PURE__ */ z.string().describe("Last name.").max(100).optional().nullable(),
1014
+ phone: /* @__PURE__ */ z.string().describe("Phone number.").optional().nullable(),
1015
+ company: /* @__PURE__ */ z.string().describe("Company name.").max(1e3).optional().nullable(),
1016
+ vatId: /* @__PURE__ */ z.object({
1017
+ _id: /* @__PURE__ */ z.string().describe("Customer's tax ID.").optional(),
1018
+ type: /* @__PURE__ */ z.enum(["UNSPECIFIED", "CPF", "CNPJ"]).describe(
1011
1019
  "Tax type.\n\nSupported values:\n+ `CPF`: for individual tax payers\n+ `CNPJ`: for corporations"
1012
1020
  ).optional()
1013
1021
  }).describe(
@@ -1017,75 +1025,81 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
1017
1025
  }).describe(
1018
1026
  "Order recipient address and contact details.\n\nThis field may differ from the address in `shippingInfo.logistics` when:\n+ The chosen shipping option is pickup point or store pickup.\n+ No shipping option is selected."
1019
1027
  ).optional(),
1020
- extendedFields: z.object({
1021
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1028
+ extendedFields: /* @__PURE__ */ z.object({
1029
+ namespaces: /* @__PURE__ */ z.record(
1030
+ /* @__PURE__ */ z.string(),
1031
+ /* @__PURE__ */ z.record(
1032
+ /* @__PURE__ */ z.string(),
1033
+ /* @__PURE__ */ z.any()
1034
+ )
1035
+ ).describe(
1022
1036
  "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)."
1023
1037
  ).optional()
1024
1038
  }).describe(
1025
1039
  "Custom field data for the subscription contract object.\n\n[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls."
1026
1040
  ).optional(),
1027
- title: z.string().describe(
1041
+ title: /* @__PURE__ */ z.string().describe(
1028
1042
  'Subscription option title. For example, `"Monthly coffee Subscription"`.'
1029
1043
  ).min(0).max(150).optional().nullable(),
1030
- additionalFees: z.array(
1031
- z.object({
1032
- code: z.string().describe("Additional fee's unique code for future processing.").min(1).max(100).optional().nullable(),
1033
- name: z.string().describe("Name of additional fee.").min(1).max(50).optional(),
1034
- price: z.object({
1035
- amount: z.string().describe("Amount.").optional(),
1036
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1044
+ additionalFees: /* @__PURE__ */ z.array(
1045
+ /* @__PURE__ */ z.object({
1046
+ code: /* @__PURE__ */ z.string().describe("Additional fee's unique code for future processing.").min(1).max(100).optional().nullable(),
1047
+ name: /* @__PURE__ */ z.string().describe("Name of additional fee.").min(1).max(50).optional(),
1048
+ price: /* @__PURE__ */ z.object({
1049
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1050
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1037
1051
  }).describe("Additional fee's price.").optional(),
1038
- taxDetails: z.object({
1039
- taxableAmount: z.object({
1040
- amount: z.string().describe("Amount.").optional(),
1041
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1052
+ taxDetails: /* @__PURE__ */ z.object({
1053
+ taxableAmount: /* @__PURE__ */ z.object({
1054
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1055
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1042
1056
  }).describe("Taxable amount of this line item.").optional(),
1043
- taxRate: z.string().describe(
1057
+ taxRate: /* @__PURE__ */ z.string().describe(
1044
1058
  'Tax rate percentage, as a decimal numeral between 0 and 1. For example, `"0.13"`.'
1045
1059
  ).optional(),
1046
- totalTax: z.object({
1047
- amount: z.string().describe("Amount.").optional(),
1048
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1060
+ totalTax: /* @__PURE__ */ z.object({
1061
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1062
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1049
1063
  }).describe(
1050
1064
  "The calculated tax, based on the `taxableAmount` and `taxRate`."
1051
1065
  ).optional()
1052
1066
  }).describe("Tax details.").optional(),
1053
- taxInfo: z.object({
1054
- taxAmount: z.object({
1055
- amount: z.string().describe("Amount.").optional(),
1056
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1067
+ taxInfo: /* @__PURE__ */ z.object({
1068
+ taxAmount: /* @__PURE__ */ z.object({
1069
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1070
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1057
1071
  }).describe(
1058
1072
  "Calculated tax, based on `taxable_amount` and `tax_rate`."
1059
1073
  ).optional(),
1060
- taxableAmount: z.object({
1061
- amount: z.string().describe("Amount.").optional(),
1062
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1074
+ taxableAmount: /* @__PURE__ */ z.object({
1075
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1076
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1063
1077
  }).describe("Amount for which tax is calculated.").optional(),
1064
- taxRate: z.string().describe("Tax rate %, as a decimal point.").optional().nullable(),
1065
- taxGroupId: z.string().describe("Tax group ID.").regex(
1078
+ taxRate: /* @__PURE__ */ z.string().describe("Tax rate %, as a decimal point.").optional().nullable(),
1079
+ taxGroupId: /* @__PURE__ */ z.string().describe("Tax group ID.").regex(
1066
1080
  /^[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}$/,
1067
1081
  "Must be a valid GUID"
1068
1082
  ).optional().nullable(),
1069
- taxIncludedInPrice: z.boolean().describe("Indicates whether the price already includes tax.").optional(),
1070
- taxBreakdown: z.array(
1071
- z.object({
1072
- jurisdiction: z.string().describe(
1083
+ taxIncludedInPrice: /* @__PURE__ */ z.boolean().describe("Indicates whether the price already includes tax.").optional(),
1084
+ taxBreakdown: /* @__PURE__ */ z.array(
1085
+ /* @__PURE__ */ z.object({
1086
+ jurisdiction: /* @__PURE__ */ z.string().describe(
1073
1087
  'Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec".'
1074
1088
  ).max(200).optional().nullable(),
1075
- rate: z.string().describe(
1089
+ rate: /* @__PURE__ */ z.string().describe(
1076
1090
  "Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000."
1077
1091
  ).optional().nullable(),
1078
- taxAmount: z.object({
1079
- amount: z.string().describe("Amount.").optional(),
1080
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1092
+ taxAmount: /* @__PURE__ */ z.object({
1093
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1094
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1081
1095
  }).describe("Amount of tax calculated for this line item.").optional(),
1082
- taxType: z.string().describe(
1096
+ taxType: /* @__PURE__ */ z.string().describe(
1083
1097
  `The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc.`
1084
1098
  ).max(200).optional().nullable(),
1085
- taxName: z.string().describe(
1099
+ taxName: /* @__PURE__ */ z.string().describe(
1086
1100
  'The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.\nThis name should be explicit enough to allow the merchant to understand what tax was calculated.'
1087
1101
  ).max(200).optional().nullable(),
1088
- jurisdictionType: z.enum([
1102
+ jurisdictionType: /* @__PURE__ */ z.enum([
1089
1103
  "UNDEFINED",
1090
1104
  "COUNTRY",
1091
1105
  "STATE",
@@ -1095,43 +1109,45 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
1095
1109
  ]).describe(
1096
1110
  "Type of jurisdiction that taxes were calculated for."
1097
1111
  ).optional(),
1098
- nonTaxableAmount: z.object({
1099
- amount: z.string().describe("Amount.").optional(),
1100
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1112
+ nonTaxableAmount: /* @__PURE__ */ z.object({
1113
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1114
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1101
1115
  }).describe("Non-taxable amount of the line item price.").optional(),
1102
- taxableAmount: z.object({
1103
- amount: z.string().describe("Amount.").optional(),
1104
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1116
+ taxableAmount: /* @__PURE__ */ z.object({
1117
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1118
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1105
1119
  }).describe("Taxable amount of the line item price.").optional()
1106
1120
  })
1107
1121
  ).max(7).optional()
1108
1122
  }).describe(
1109
1123
  "Represents all the relevant tax details for additional fee."
1110
1124
  ).optional(),
1111
- providerAppId: z.string().describe("SPI implementer's `appId`.").regex(
1125
+ providerAppId: /* @__PURE__ */ z.string().describe("SPI implementer's `appId`.").regex(
1112
1126
  /^[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}$/,
1113
1127
  "Must be a valid GUID"
1114
1128
  ).optional().nullable(),
1115
- priceBeforeTax: z.object({
1116
- amount: z.string().describe("Amount.").optional(),
1117
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1129
+ priceBeforeTax: /* @__PURE__ */ z.object({
1130
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1131
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1118
1132
  }).describe("Additional fee's price before tax.").optional(),
1119
- priceAfterTax: z.object({
1120
- amount: z.string().describe("Amount.").optional(),
1121
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1133
+ priceAfterTax: /* @__PURE__ */ z.object({
1134
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1135
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1122
1136
  }).describe("Additional fee's price after tax.").optional(),
1123
- _id: z.string().describe("Additional fee's id.").regex(
1137
+ _id: /* @__PURE__ */ z.string().describe("Additional fee's id.").regex(
1124
1138
  /^[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}$/,
1125
1139
  "Must be a valid GUID"
1126
1140
  ).optional(),
1127
- lineItemIds: z.array(z.string()).optional(),
1128
- source: z.enum(["SERVICE_PLUGIN", "ITEM", "MANUAL", "SHIPPING", "PLATFORM"]).describe("Specifies the entity that added the additional fee.").optional(),
1129
- taxableAddress: z.intersection(
1130
- z.object({}),
1131
- z.xor([
1132
- z.object({ addressType: z.never().optional() }),
1133
- z.object({
1134
- addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
1141
+ lineItemIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
1142
+ source: /* @__PURE__ */ z.enum(["SERVICE_PLUGIN", "ITEM", "MANUAL", "SHIPPING", "PLATFORM"]).describe("Specifies the entity that added the additional fee.").optional(),
1143
+ taxableAddress: /* @__PURE__ */ z.intersection(
1144
+ /* @__PURE__ */ z.object({}),
1145
+ /* @__PURE__ */ z.xor([
1146
+ /* @__PURE__ */ z.object({
1147
+ addressType: /* @__PURE__ */ z.never().optional()
1148
+ }),
1149
+ /* @__PURE__ */ z.object({
1150
+ addressType: /* @__PURE__ */ z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
1135
1151
  "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
1136
1152
  )
1137
1153
  })
@@ -1139,33 +1155,33 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
1139
1155
  ).describe("Address type tax was calculated against for this fee.").optional()
1140
1156
  })
1141
1157
  ).max(100).optional(),
1142
- activities: z.array(
1143
- z.intersection(
1144
- z.object({
1145
- _id: z.string().describe("Activity ID.").regex(
1158
+ activities: /* @__PURE__ */ z.array(
1159
+ /* @__PURE__ */ z.intersection(
1160
+ /* @__PURE__ */ z.object({
1161
+ _id: /* @__PURE__ */ z.string().describe("Activity ID.").regex(
1146
1162
  /^[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}$/,
1147
1163
  "Must be a valid GUID"
1148
1164
  ).optional(),
1149
- _createdDate: z.date().describe("When the activity occurred.").optional().nullable(),
1150
- author: z.intersection(
1151
- z.object({}),
1152
- z.xor([
1153
- z.object({
1154
- userId: z.never().optional(),
1155
- appId: z.never().optional()
1165
+ _createdDate: /* @__PURE__ */ z.date().describe("When the activity occurred.").optional().nullable(),
1166
+ author: /* @__PURE__ */ z.intersection(
1167
+ /* @__PURE__ */ z.object({}),
1168
+ /* @__PURE__ */ z.xor([
1169
+ /* @__PURE__ */ z.object({
1170
+ userId: /* @__PURE__ */ z.never().optional(),
1171
+ appId: /* @__PURE__ */ z.never().optional()
1156
1172
  }),
1157
- z.object({
1158
- appId: z.never().optional(),
1159
- userId: z.string().describe(
1173
+ /* @__PURE__ */ z.object({
1174
+ appId: /* @__PURE__ */ z.never().optional(),
1175
+ userId: /* @__PURE__ */ z.string().describe(
1160
1176
  "User ID. When the draft order was created by a Wix user."
1161
1177
  ).regex(
1162
1178
  /^[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}$/,
1163
1179
  "Must be a valid GUID"
1164
1180
  )
1165
1181
  }),
1166
- z.object({
1167
- userId: z.never().optional(),
1168
- appId: z.string().describe(
1182
+ /* @__PURE__ */ z.object({
1183
+ userId: /* @__PURE__ */ z.never().optional(),
1184
+ appId: /* @__PURE__ */ z.string().describe(
1169
1185
  "App ID. When the draft order was created by an app."
1170
1186
  ).regex(
1171
1187
  /^[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}$/,
@@ -1174,14 +1190,16 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
1174
1190
  })
1175
1191
  ])
1176
1192
  ).describe("Identity of the draft order's initiator.").optional(),
1177
- activityType: z.enum(["UNKNOWN_ACTIVITY_TYPE", "CHANGES_APPLIED"]).describe("Activity type.").optional()
1193
+ activityType: /* @__PURE__ */ z.enum(["UNKNOWN_ACTIVITY_TYPE", "CHANGES_APPLIED"]).describe("Activity type.").optional()
1178
1194
  }),
1179
- z.intersection(
1180
- z.xor([
1181
- z.object({ contractTarget: z.never().optional() }),
1182
- z.object({
1183
- contractTarget: z.object({
1184
- nextCycleNumber: z.number().int().describe(
1195
+ /* @__PURE__ */ z.intersection(
1196
+ /* @__PURE__ */ z.xor([
1197
+ /* @__PURE__ */ z.object({
1198
+ contractTarget: /* @__PURE__ */ z.never().optional()
1199
+ }),
1200
+ /* @__PURE__ */ z.object({
1201
+ contractTarget: /* @__PURE__ */ z.object({
1202
+ nextCycleNumber: /* @__PURE__ */ z.number().int().describe(
1185
1203
  "Cycle number of the next billing cycle (1-based). Set by the caller; returned by the server on read."
1186
1204
  ).optional().nullable()
1187
1205
  }).describe(
@@ -1189,63 +1207,65 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
1189
1207
  )
1190
1208
  })
1191
1209
  ]),
1192
- z.xor([
1193
- z.object({ changesApplied: z.never().optional() }),
1194
- z.object({
1195
- changesApplied: z.intersection(
1196
- z.object({
1197
- draftSubscriptionContractId: z.string().describe(
1210
+ /* @__PURE__ */ z.xor([
1211
+ /* @__PURE__ */ z.object({
1212
+ changesApplied: /* @__PURE__ */ z.never().optional()
1213
+ }),
1214
+ /* @__PURE__ */ z.object({
1215
+ changesApplied: /* @__PURE__ */ z.intersection(
1216
+ /* @__PURE__ */ z.object({
1217
+ draftSubscriptionContractId: /* @__PURE__ */ z.string().describe(
1198
1218
  "ID of the DraftSubscriptionContract that was committed."
1199
1219
  ).regex(
1200
1220
  /^[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}$/,
1201
1221
  "Must be a valid GUID"
1202
1222
  ).optional(),
1203
- changes: z.array(
1204
- z.intersection(
1205
- z.object({}),
1206
- z.xor([
1207
- z.object({
1208
- lineItemChanged: z.never().optional(),
1209
- lineItemAdded: z.never().optional(),
1210
- lineItemRemoved: z.never().optional(),
1211
- discountAdded: z.never().optional(),
1212
- discountRemoved: z.never().optional(),
1213
- additionalFeeAdded: z.never().optional(),
1214
- additionalFeeRemoved: z.never().optional(),
1215
- totalPriceChanged: z.never().optional()
1223
+ changes: /* @__PURE__ */ z.array(
1224
+ /* @__PURE__ */ z.intersection(
1225
+ /* @__PURE__ */ z.object({}),
1226
+ /* @__PURE__ */ z.xor([
1227
+ /* @__PURE__ */ z.object({
1228
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
1229
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
1230
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
1231
+ discountAdded: /* @__PURE__ */ z.never().optional(),
1232
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
1233
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
1234
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
1235
+ totalPriceChanged: /* @__PURE__ */ z.never().optional()
1216
1236
  }),
1217
- z.object({
1218
- lineItemAdded: z.never().optional(),
1219
- lineItemRemoved: z.never().optional(),
1220
- discountAdded: z.never().optional(),
1221
- discountRemoved: z.never().optional(),
1222
- additionalFeeAdded: z.never().optional(),
1223
- additionalFeeRemoved: z.never().optional(),
1224
- totalPriceChanged: z.never().optional(),
1225
- lineItemChanged: z.object({
1226
- _id: z.string().describe("Line item ID.").regex(
1237
+ /* @__PURE__ */ z.object({
1238
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
1239
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
1240
+ discountAdded: /* @__PURE__ */ z.never().optional(),
1241
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
1242
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
1243
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
1244
+ totalPriceChanged: /* @__PURE__ */ z.never().optional(),
1245
+ lineItemChanged: /* @__PURE__ */ z.object({
1246
+ _id: /* @__PURE__ */ z.string().describe("Line item ID.").regex(
1227
1247
  /^[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}$/,
1228
1248
  "Must be a valid GUID"
1229
1249
  ).optional(),
1230
- name: z.object({
1231
- original: z.string().describe(
1250
+ name: /* @__PURE__ */ z.object({
1251
+ original: /* @__PURE__ */ z.string().describe(
1232
1252
  "__Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
1233
1253
  ).min(1).max(200).optional(),
1234
- translated: z.string().describe(
1254
+ translated: /* @__PURE__ */ z.string().describe(
1235
1255
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1236
1256
  ).min(1).max(400).optional().nullable()
1237
1257
  }).describe("Item name after change.").optional(),
1238
- quantity: z.object({
1239
- originalQuantity: z.number().int().describe(
1258
+ quantity: /* @__PURE__ */ z.object({
1259
+ originalQuantity: /* @__PURE__ */ z.number().int().describe(
1240
1260
  "Original item quantity before the change."
1241
1261
  ).min(0).max(1e6).optional(),
1242
- newQuantity: z.number().int().describe(
1262
+ newQuantity: /* @__PURE__ */ z.number().int().describe(
1243
1263
  "New item quantity after the change."
1244
1264
  ).min(0).max(1e6).optional(),
1245
- diff: z.number().int().describe(
1265
+ diff: /* @__PURE__ */ z.number().int().describe(
1246
1266
  "Difference between new and original quantities."
1247
1267
  ).min(1).max(1e6).optional(),
1248
- deltaType: z.enum([
1268
+ deltaType: /* @__PURE__ */ z.enum([
1249
1269
  "QUANTITY_INCREASED",
1250
1270
  "QUANTITY_DECREASED"
1251
1271
  ]).describe(
@@ -1254,80 +1274,80 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
1254
1274
  }).describe("Item quantity change.").optional()
1255
1275
  }).describe("Line item was modified.")
1256
1276
  }),
1257
- z.object({
1258
- lineItemChanged: z.never().optional(),
1259
- lineItemRemoved: z.never().optional(),
1260
- discountAdded: z.never().optional(),
1261
- discountRemoved: z.never().optional(),
1262
- additionalFeeAdded: z.never().optional(),
1263
- additionalFeeRemoved: z.never().optional(),
1264
- totalPriceChanged: z.never().optional(),
1265
- lineItemAdded: z.object({
1266
- _id: z.string().describe("Line item ID.").regex(
1277
+ /* @__PURE__ */ z.object({
1278
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
1279
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
1280
+ discountAdded: /* @__PURE__ */ z.never().optional(),
1281
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
1282
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
1283
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
1284
+ totalPriceChanged: /* @__PURE__ */ z.never().optional(),
1285
+ lineItemAdded: /* @__PURE__ */ z.object({
1286
+ _id: /* @__PURE__ */ z.string().describe("Line item ID.").regex(
1267
1287
  /^[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}$/,
1268
1288
  "Must be a valid GUID"
1269
1289
  ).optional(),
1270
- name: z.object({
1271
- original: z.string().describe(
1290
+ name: /* @__PURE__ */ z.object({
1291
+ original: /* @__PURE__ */ z.string().describe(
1272
1292
  "__Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
1273
1293
  ).min(1).max(200).optional(),
1274
- translated: z.string().describe(
1294
+ translated: /* @__PURE__ */ z.string().describe(
1275
1295
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1276
1296
  ).min(1).max(400).optional().nullable()
1277
1297
  }).describe("Item name.").optional(),
1278
- quantity: z.number().int().describe("Added or removed item quantity.").min(1).max(1e6).optional()
1298
+ quantity: /* @__PURE__ */ z.number().int().describe("Added or removed item quantity.").min(1).max(1e6).optional()
1279
1299
  }).describe(
1280
1300
  "Line item was added to the contract."
1281
1301
  )
1282
1302
  }),
1283
- z.object({
1284
- lineItemChanged: z.never().optional(),
1285
- lineItemAdded: z.never().optional(),
1286
- discountAdded: z.never().optional(),
1287
- discountRemoved: z.never().optional(),
1288
- additionalFeeAdded: z.never().optional(),
1289
- additionalFeeRemoved: z.never().optional(),
1290
- totalPriceChanged: z.never().optional(),
1291
- lineItemRemoved: z.object({
1292
- _id: z.string().describe("Line item ID.").regex(
1303
+ /* @__PURE__ */ z.object({
1304
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
1305
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
1306
+ discountAdded: /* @__PURE__ */ z.never().optional(),
1307
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
1308
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
1309
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
1310
+ totalPriceChanged: /* @__PURE__ */ z.never().optional(),
1311
+ lineItemRemoved: /* @__PURE__ */ z.object({
1312
+ _id: /* @__PURE__ */ z.string().describe("Line item ID.").regex(
1293
1313
  /^[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}$/,
1294
1314
  "Must be a valid GUID"
1295
1315
  ).optional(),
1296
- name: z.object({
1297
- original: z.string().describe(
1316
+ name: /* @__PURE__ */ z.object({
1317
+ original: /* @__PURE__ */ z.string().describe(
1298
1318
  "__Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
1299
1319
  ).min(1).max(200).optional(),
1300
- translated: z.string().describe(
1320
+ translated: /* @__PURE__ */ z.string().describe(
1301
1321
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1302
1322
  ).min(1).max(400).optional().nullable()
1303
1323
  }).describe("Item name.").optional(),
1304
- quantity: z.number().int().describe("Added or removed item quantity.").min(1).max(1e6).optional()
1324
+ quantity: /* @__PURE__ */ z.number().int().describe("Added or removed item quantity.").min(1).max(1e6).optional()
1305
1325
  }).describe(
1306
1326
  "Line item was removed from the contract."
1307
1327
  )
1308
1328
  }),
1309
- z.object({
1310
- lineItemChanged: z.never().optional(),
1311
- lineItemAdded: z.never().optional(),
1312
- lineItemRemoved: z.never().optional(),
1313
- discountRemoved: z.never().optional(),
1314
- additionalFeeAdded: z.never().optional(),
1315
- additionalFeeRemoved: z.never().optional(),
1316
- totalPriceChanged: z.never().optional(),
1317
- discountAdded: z.object({
1318
- _id: z.string().describe("Discount ID.").regex(
1329
+ /* @__PURE__ */ z.object({
1330
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
1331
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
1332
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
1333
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
1334
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
1335
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
1336
+ totalPriceChanged: /* @__PURE__ */ z.never().optional(),
1337
+ discountAdded: /* @__PURE__ */ z.object({
1338
+ _id: /* @__PURE__ */ z.string().describe("Discount ID.").regex(
1319
1339
  /^[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}$/,
1320
1340
  "Must be a valid GUID"
1321
1341
  ).optional(),
1322
- name: z.object({
1323
- original: z.string().describe(
1342
+ name: /* @__PURE__ */ z.object({
1343
+ original: /* @__PURE__ */ z.string().describe(
1324
1344
  "Value in site default language."
1325
1345
  ).min(1).optional(),
1326
- translated: z.string().describe("Translated value.").min(1).optional().nullable()
1346
+ translated: /* @__PURE__ */ z.string().describe("Translated value.").min(1).optional().nullable()
1327
1347
  }).describe("Discount name.").optional(),
1328
- totalAmount: z.object({
1329
- amount: z.string().describe("Amount.").optional(),
1330
- formattedAmount: z.string().describe(
1348
+ totalAmount: /* @__PURE__ */ z.object({
1349
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1350
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1331
1351
  "Amount formatted with currency symbol."
1332
1352
  ).optional()
1333
1353
  }).describe("Discount amount.").optional()
@@ -1335,28 +1355,28 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
1335
1355
  "Discount was added to the contract."
1336
1356
  )
1337
1357
  }),
1338
- z.object({
1339
- lineItemChanged: z.never().optional(),
1340
- lineItemAdded: z.never().optional(),
1341
- lineItemRemoved: z.never().optional(),
1342
- discountAdded: z.never().optional(),
1343
- additionalFeeAdded: z.never().optional(),
1344
- additionalFeeRemoved: z.never().optional(),
1345
- totalPriceChanged: z.never().optional(),
1346
- discountRemoved: z.object({
1347
- _id: z.string().describe("Discount ID.").regex(
1358
+ /* @__PURE__ */ z.object({
1359
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
1360
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
1361
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
1362
+ discountAdded: /* @__PURE__ */ z.never().optional(),
1363
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
1364
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
1365
+ totalPriceChanged: /* @__PURE__ */ z.never().optional(),
1366
+ discountRemoved: /* @__PURE__ */ z.object({
1367
+ _id: /* @__PURE__ */ z.string().describe("Discount ID.").regex(
1348
1368
  /^[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}$/,
1349
1369
  "Must be a valid GUID"
1350
1370
  ).optional(),
1351
- name: z.object({
1352
- original: z.string().describe(
1371
+ name: /* @__PURE__ */ z.object({
1372
+ original: /* @__PURE__ */ z.string().describe(
1353
1373
  "Value in site default language."
1354
1374
  ).min(1).optional(),
1355
- translated: z.string().describe("Translated value.").min(1).optional().nullable()
1375
+ translated: /* @__PURE__ */ z.string().describe("Translated value.").min(1).optional().nullable()
1356
1376
  }).describe("Discount name.").optional(),
1357
- totalAmount: z.object({
1358
- amount: z.string().describe("Amount.").optional(),
1359
- formattedAmount: z.string().describe(
1377
+ totalAmount: /* @__PURE__ */ z.object({
1378
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1379
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1360
1380
  "Amount formatted with currency symbol."
1361
1381
  ).optional()
1362
1382
  }).describe("Discount amount.").optional()
@@ -1364,28 +1384,28 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
1364
1384
  "Discount was removed from the contract."
1365
1385
  )
1366
1386
  }),
1367
- z.object({
1368
- lineItemChanged: z.never().optional(),
1369
- lineItemAdded: z.never().optional(),
1370
- lineItemRemoved: z.never().optional(),
1371
- discountAdded: z.never().optional(),
1372
- discountRemoved: z.never().optional(),
1373
- additionalFeeRemoved: z.never().optional(),
1374
- totalPriceChanged: z.never().optional(),
1375
- additionalFeeAdded: z.object({
1376
- _id: z.string().describe("Additional fee ID.").regex(
1387
+ /* @__PURE__ */ z.object({
1388
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
1389
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
1390
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
1391
+ discountAdded: /* @__PURE__ */ z.never().optional(),
1392
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
1393
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
1394
+ totalPriceChanged: /* @__PURE__ */ z.never().optional(),
1395
+ additionalFeeAdded: /* @__PURE__ */ z.object({
1396
+ _id: /* @__PURE__ */ z.string().describe("Additional fee ID.").regex(
1377
1397
  /^[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}$/,
1378
1398
  "Must be a valid GUID"
1379
1399
  ).optional(),
1380
- name: z.object({
1381
- original: z.string().describe(
1400
+ name: /* @__PURE__ */ z.object({
1401
+ original: /* @__PURE__ */ z.string().describe(
1382
1402
  "Value in site default language."
1383
1403
  ).min(1).optional(),
1384
- translated: z.string().describe("Translated value.").min(1).optional().nullable()
1404
+ translated: /* @__PURE__ */ z.string().describe("Translated value.").min(1).optional().nullable()
1385
1405
  }).describe("Additional fee name.").optional(),
1386
- totalAmount: z.object({
1387
- amount: z.string().describe("Amount.").optional(),
1388
- formattedAmount: z.string().describe(
1406
+ totalAmount: /* @__PURE__ */ z.object({
1407
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1408
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1389
1409
  "Amount formatted with currency symbol."
1390
1410
  ).optional()
1391
1411
  }).describe("Additional fee amount.").optional()
@@ -1393,28 +1413,28 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
1393
1413
  "Additional fee was added to the contract."
1394
1414
  )
1395
1415
  }),
1396
- z.object({
1397
- lineItemChanged: z.never().optional(),
1398
- lineItemAdded: z.never().optional(),
1399
- lineItemRemoved: z.never().optional(),
1400
- discountAdded: z.never().optional(),
1401
- discountRemoved: z.never().optional(),
1402
- additionalFeeAdded: z.never().optional(),
1403
- totalPriceChanged: z.never().optional(),
1404
- additionalFeeRemoved: z.object({
1405
- _id: z.string().describe("Additional fee ID.").regex(
1416
+ /* @__PURE__ */ z.object({
1417
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
1418
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
1419
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
1420
+ discountAdded: /* @__PURE__ */ z.never().optional(),
1421
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
1422
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
1423
+ totalPriceChanged: /* @__PURE__ */ z.never().optional(),
1424
+ additionalFeeRemoved: /* @__PURE__ */ z.object({
1425
+ _id: /* @__PURE__ */ z.string().describe("Additional fee ID.").regex(
1406
1426
  /^[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}$/,
1407
1427
  "Must be a valid GUID"
1408
1428
  ).optional(),
1409
- name: z.object({
1410
- original: z.string().describe(
1429
+ name: /* @__PURE__ */ z.object({
1430
+ original: /* @__PURE__ */ z.string().describe(
1411
1431
  "Value in site default language."
1412
1432
  ).min(1).optional(),
1413
- translated: z.string().describe("Translated value.").min(1).optional().nullable()
1433
+ translated: /* @__PURE__ */ z.string().describe("Translated value.").min(1).optional().nullable()
1414
1434
  }).describe("Additional fee name.").optional(),
1415
- totalAmount: z.object({
1416
- amount: z.string().describe("Amount.").optional(),
1417
- formattedAmount: z.string().describe(
1435
+ totalAmount: /* @__PURE__ */ z.object({
1436
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1437
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1418
1438
  "Amount formatted with currency symbol."
1419
1439
  ).optional()
1420
1440
  }).describe("Additional fee amount.").optional()
@@ -1422,24 +1442,24 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
1422
1442
  "Additional fee was removed from the contract."
1423
1443
  )
1424
1444
  }),
1425
- z.object({
1426
- lineItemChanged: z.never().optional(),
1427
- lineItemAdded: z.never().optional(),
1428
- lineItemRemoved: z.never().optional(),
1429
- discountAdded: z.never().optional(),
1430
- discountRemoved: z.never().optional(),
1431
- additionalFeeAdded: z.never().optional(),
1432
- additionalFeeRemoved: z.never().optional(),
1433
- totalPriceChanged: z.object({
1434
- originalTotal: z.object({
1435
- amount: z.string().describe("Amount.").optional(),
1436
- formattedAmount: z.string().describe(
1445
+ /* @__PURE__ */ z.object({
1446
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
1447
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
1448
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
1449
+ discountAdded: /* @__PURE__ */ z.never().optional(),
1450
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
1451
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
1452
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
1453
+ totalPriceChanged: /* @__PURE__ */ z.object({
1454
+ originalTotal: /* @__PURE__ */ z.object({
1455
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1456
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1437
1457
  "Amount formatted with currency symbol."
1438
1458
  ).optional()
1439
1459
  }).describe("Total price before the commit.").optional(),
1440
- newTotal: z.object({
1441
- amount: z.string().describe("Amount.").optional(),
1442
- formattedAmount: z.string().describe(
1460
+ newTotal: /* @__PURE__ */ z.object({
1461
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1462
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1443
1463
  "Amount formatted with currency symbol."
1444
1464
  ).optional()
1445
1465
  }).describe("Total price after the commit.").optional()
@@ -1448,15 +1468,17 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
1448
1468
  ])
1449
1469
  )
1450
1470
  ).max(100).optional(),
1451
- reason: z.string().describe(
1471
+ reason: /* @__PURE__ */ z.string().describe(
1452
1472
  "Reason for the edit, provided by the merchant (optional)."
1453
1473
  ).max(200).optional().nullable()
1454
1474
  }),
1455
- z.xor([
1456
- z.object({ contractTarget: z.never().optional() }),
1457
- z.object({
1458
- contractTarget: z.object({
1459
- nextCycleNumber: z.number().int().describe(
1475
+ /* @__PURE__ */ z.xor([
1476
+ /* @__PURE__ */ z.object({
1477
+ contractTarget: /* @__PURE__ */ z.never().optional()
1478
+ }),
1479
+ /* @__PURE__ */ z.object({
1480
+ contractTarget: /* @__PURE__ */ z.object({
1481
+ nextCycleNumber: /* @__PURE__ */ z.number().int().describe(
1460
1482
  "Cycle number of the next billing cycle (1-based). Set by the caller; returned by the server on read."
1461
1483
  ).optional().nullable()
1462
1484
  }).describe(
@@ -1474,24 +1496,26 @@ var GetSubscriptionContractResponse = /* @__PURE__ */ z.object({
1474
1496
  ).max(500).optional()
1475
1497
  });
1476
1498
  var QuerySubscriptionContractsRequest = /* @__PURE__ */ z.object({
1477
- query: z.intersection(
1478
- z.object({
1479
- filter: z.record(z.string(), z.any()).describe(
1499
+ query: /* @__PURE__ */ z.intersection(
1500
+ /* @__PURE__ */ z.object({
1501
+ filter: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
1480
1502
  'Filter object in the following format:\n`"filter" : {\n"fieldName1": "value1",\n"fieldName2":{"$operator":"value2"}\n}`\nExample of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\nLearn more about the [filter format](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).'
1481
1503
  ).optional().nullable(),
1482
- sort: z.array(
1483
- z.object({
1484
- fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
1485
- order: z.enum(["ASC", "DESC"]).optional()
1504
+ sort: /* @__PURE__ */ z.array(
1505
+ /* @__PURE__ */ z.object({
1506
+ fieldName: /* @__PURE__ */ z.string().describe("Name of the field to sort by.").max(512).optional(),
1507
+ order: /* @__PURE__ */ z.enum(["ASC", "DESC"]).optional()
1486
1508
  })
1487
1509
  ).max(5).optional()
1488
1510
  }),
1489
- z.xor([
1490
- z.object({ cursorPaging: z.never().optional() }),
1491
- z.object({
1492
- cursorPaging: z.object({
1493
- limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
1494
- cursor: z.string().describe(
1511
+ /* @__PURE__ */ z.xor([
1512
+ /* @__PURE__ */ z.object({
1513
+ cursorPaging: /* @__PURE__ */ z.never().optional()
1514
+ }),
1515
+ /* @__PURE__ */ z.object({
1516
+ cursorPaging: /* @__PURE__ */ z.object({
1517
+ limit: /* @__PURE__ */ z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
1518
+ cursor: /* @__PURE__ */ z.string().describe(
1495
1519
  "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."
1496
1520
  ).max(16e3).optional().nullable()
1497
1521
  }).describe(
@@ -1502,147 +1526,147 @@ var QuerySubscriptionContractsRequest = /* @__PURE__ */ z.object({
1502
1526
  ).describe("WQL expression.")
1503
1527
  });
1504
1528
  var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
1505
- subscriptionContracts: z.array(
1506
- z.object({
1507
- _id: z.string().describe("SubscriptionContract ID.").regex(
1529
+ subscriptionContracts: /* @__PURE__ */ z.array(
1530
+ /* @__PURE__ */ z.object({
1531
+ _id: /* @__PURE__ */ z.string().describe("SubscriptionContract ID.").regex(
1508
1532
  /^[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}$/,
1509
1533
  "Must be a valid GUID"
1510
1534
  ).optional().nullable(),
1511
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1535
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1512
1536
  "Revision number, which increments by 1 each time the SubscriptionContract is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the SubscriptionContract.\n\nIgnored when creating a SubscriptionOrderContract."
1513
1537
  ).optional().nullable(),
1514
- _createdDate: z.date().describe(
1538
+ _createdDate: /* @__PURE__ */ z.date().describe(
1515
1539
  "Date and time the subscription contract was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
1516
1540
  ).optional().nullable(),
1517
- _updatedDate: z.date().describe(
1541
+ _updatedDate: /* @__PURE__ */ z.date().describe(
1518
1542
  "Date and time the subscription contract was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
1519
1543
  ).optional().nullable(),
1520
- description: z.string().describe(
1544
+ description: /* @__PURE__ */ z.string().describe(
1521
1545
  'Subscription option description. For example, `"1kg of selected coffee, once a month"`.'
1522
1546
  ).max(500).optional().nullable(),
1523
- subscriptionSettings: z.object({
1524
- frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
1525
- interval: z.number().int().describe(
1547
+ subscriptionSettings: /* @__PURE__ */ z.object({
1548
+ frequency: /* @__PURE__ */ z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
1549
+ interval: /* @__PURE__ */ z.number().int().describe(
1526
1550
  "Number of frequency units in a billing cycle. For example, frequency `MONTH` with interval `3` means billing every 3 months."
1527
1551
  ).min(1).max(3650).optional().nullable(),
1528
- autoRenewal: z.boolean().describe(
1552
+ autoRenewal: /* @__PURE__ */ z.boolean().describe(
1529
1553
  "Whether subscription is renewed automatically at the end of each period."
1530
1554
  ).optional(),
1531
- billingCycles: z.number().int().describe(
1555
+ billingCycles: /* @__PURE__ */ z.number().int().describe(
1532
1556
  "Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
1533
1557
  ).min(1).optional().nullable(),
1534
- enableCustomerCancellation: z.boolean().describe(
1558
+ enableCustomerCancellation: /* @__PURE__ */ z.boolean().describe(
1535
1559
  "Whether to allow the customer to cancel the subscription."
1536
1560
  ).optional(),
1537
- freeTrialPeriod: z.object({
1538
- frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe(
1561
+ freeTrialPeriod: /* @__PURE__ */ z.object({
1562
+ frequency: /* @__PURE__ */ z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe(
1539
1563
  "Frequency of period. Values: DAY, WEEK, MONTH, YEAR"
1540
1564
  ).optional(),
1541
- interval: z.number().int().describe(
1565
+ interval: /* @__PURE__ */ z.number().int().describe(
1542
1566
  "Number of frequency units in the free trial period. For example, frequency `MONTH` with interval `3` means a 3-month free trial."
1543
1567
  ).min(1).max(3650).optional()
1544
1568
  }).describe(
1545
1569
  "Period until first cycle starts. If None => no free trial"
1546
1570
  ).optional()
1547
1571
  }).describe("Subscription detailed information.").optional(),
1548
- lineItems: z.array(
1549
- z.object({
1550
- _id: z.string().describe("Line item ID.").optional(),
1551
- productName: z.object({
1552
- original: z.string().describe(
1572
+ lineItems: /* @__PURE__ */ z.array(
1573
+ /* @__PURE__ */ z.object({
1574
+ _id: /* @__PURE__ */ z.string().describe("Line item ID.").optional(),
1575
+ productName: /* @__PURE__ */ z.object({
1576
+ original: /* @__PURE__ */ z.string().describe(
1553
1577
  "__Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
1554
1578
  ).min(1).max(200).optional(),
1555
- translated: z.string().describe(
1579
+ translated: /* @__PURE__ */ z.string().describe(
1556
1580
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1557
1581
  ).min(1).max(400).optional().nullable()
1558
1582
  }).describe(
1559
1583
  "Item name.\n\n+ Stores - `product.name`\n+ Bookings - `service.info.name`\n+ Events - `ticket.name`"
1560
1584
  ).optional(),
1561
- catalogReference: z.object({
1562
- catalogItemId: z.string().describe(
1585
+ catalogReference: /* @__PURE__ */ z.object({
1586
+ catalogItemId: /* @__PURE__ */ z.string().describe(
1563
1587
  "ID of the item within the catalog it belongs to."
1564
1588
  ).min(1).max(36).optional(),
1565
- appId: z.string().describe(
1589
+ appId: /* @__PURE__ */ z.string().describe(
1566
1590
  'ID of the app providing the catalog.\n\nYou can get your app\'s ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n\nFor items from Wix catalogs, the following values always apply:\n+ Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`\n+ Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`\n+ Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`'
1567
1591
  ).min(1).optional(),
1568
- options: z.record(z.string(), z.any()).describe(
1592
+ options: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
1569
1593
  "Additional item details in `key:value` pairs.\n\nUse this optional field for more specificity with item selection. The values of the `options` field differ depending on which catalog is providing the items.\n\nFor Wix Stores products, learn more about integrating with [Catalog V3](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)\nor [Catalog V1](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v1/catalog/e-commerce-integration), depending on [the version the site uses](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-versioning/introduction)."
1570
1594
  ).optional().nullable()
1571
1595
  }).describe(
1572
1596
  "References to the line item's origin catalog. Empty for custom line items."
1573
1597
  ).optional(),
1574
- quantity: z.number().int().describe("Line item quantity.").min(1).max(1e5).optional(),
1575
- totalDiscount: z.object({
1576
- amount: z.string().describe("Amount.").optional(),
1577
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1598
+ quantity: /* @__PURE__ */ z.number().int().describe("Line item quantity.").min(1).max(1e5).optional(),
1599
+ totalDiscount: /* @__PURE__ */ z.object({
1600
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1601
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1578
1602
  }).describe(
1579
1603
  "Total discount for this line item's entire quantity."
1580
1604
  ).optional(),
1581
- descriptionLines: z.array(
1582
- z.intersection(
1583
- z.object({
1584
- name: z.object({
1585
- original: z.string().describe(
1605
+ descriptionLines: /* @__PURE__ */ z.array(
1606
+ /* @__PURE__ */ z.intersection(
1607
+ /* @__PURE__ */ z.object({
1608
+ name: /* @__PURE__ */ z.object({
1609
+ original: /* @__PURE__ */ z.string().describe(
1586
1610
  "Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope)."
1587
1611
  ).max(100).optional(),
1588
- translated: z.string().describe(
1612
+ translated: /* @__PURE__ */ z.string().describe(
1589
1613
  "Description line name translated into the buyer's language.\n\nDefault: Same as `original`."
1590
1614
  ).max(200).optional().nullable()
1591
1615
  }).describe("Description line name.").optional()
1592
1616
  }),
1593
- z.xor([
1594
- z.object({
1595
- plainText: z.never().optional(),
1596
- colorInfo: z.never().optional()
1617
+ /* @__PURE__ */ z.xor([
1618
+ /* @__PURE__ */ z.object({
1619
+ plainText: /* @__PURE__ */ z.never().optional(),
1620
+ colorInfo: /* @__PURE__ */ z.never().optional()
1597
1621
  }),
1598
- z.object({
1599
- colorInfo: z.never().optional(),
1600
- plainText: z.object({
1601
- original: z.string().describe(
1622
+ /* @__PURE__ */ z.object({
1623
+ colorInfo: /* @__PURE__ */ z.never().optional(),
1624
+ plainText: /* @__PURE__ */ z.object({
1625
+ original: /* @__PURE__ */ z.string().describe(
1602
1626
  "Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope)."
1603
1627
  ).max(600).optional(),
1604
- translated: z.string().describe(
1628
+ translated: /* @__PURE__ */ z.string().describe(
1605
1629
  "Description line plain text value translated into the buyer's language.\n\nDefault: Same as `original`."
1606
1630
  ).max(600).optional().nullable()
1607
1631
  }).describe("Description line plain text value.")
1608
1632
  }),
1609
- z.object({
1610
- plainText: z.never().optional(),
1611
- colorInfo: z.object({
1612
- original: z.string().describe(
1633
+ /* @__PURE__ */ z.object({
1634
+ plainText: /* @__PURE__ */ z.never().optional(),
1635
+ colorInfo: /* @__PURE__ */ z.object({
1636
+ original: /* @__PURE__ */ z.string().describe(
1613
1637
  "Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope)."
1614
1638
  ).max(500).optional(),
1615
- translated: z.string().describe(
1639
+ translated: /* @__PURE__ */ z.string().describe(
1616
1640
  "Description line color name translated into the buyer's language.\n\nDefault: Same as `original`."
1617
1641
  ).max(500).optional().nullable(),
1618
- code: z.string().describe("HEX or RGB color code for display.").optional().nullable()
1642
+ code: /* @__PURE__ */ z.string().describe("HEX or RGB color code for display.").optional().nullable()
1619
1643
  }).describe("Description line color value.")
1620
1644
  })
1621
1645
  ])
1622
1646
  )
1623
1647
  ).min(0).max(20).optional(),
1624
- image: z.string().describe("Line item image.").optional(),
1625
- physicalProperties: z.object({
1626
- weight: z.number().describe(
1648
+ image: /* @__PURE__ */ z.string().describe("Line item image.").optional(),
1649
+ physicalProperties: /* @__PURE__ */ z.object({
1650
+ weight: /* @__PURE__ */ z.number().describe(
1627
1651
  "Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request."
1628
1652
  ).optional().nullable(),
1629
- sku: z.string().describe(
1653
+ sku: /* @__PURE__ */ z.string().describe(
1630
1654
  "Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku)."
1631
1655
  ).max(40).optional().nullable(),
1632
- shippable: z.boolean().describe("Whether this line item is shippable.").optional()
1656
+ shippable: /* @__PURE__ */ z.boolean().describe("Whether this line item is shippable.").optional()
1633
1657
  }).describe(
1634
1658
  "Physical properties of the item. When relevant, contains information such as SKU and item weight."
1635
1659
  ).optional(),
1636
- itemType: z.intersection(
1637
- z.object({}),
1638
- z.xor([
1639
- z.object({
1640
- preset: z.never().optional(),
1641
- custom: z.never().optional()
1660
+ itemType: /* @__PURE__ */ z.intersection(
1661
+ /* @__PURE__ */ z.object({}),
1662
+ /* @__PURE__ */ z.xor([
1663
+ /* @__PURE__ */ z.object({
1664
+ preset: /* @__PURE__ */ z.never().optional(),
1665
+ custom: /* @__PURE__ */ z.never().optional()
1642
1666
  }),
1643
- z.object({
1644
- custom: z.never().optional(),
1645
- preset: z.enum([
1667
+ /* @__PURE__ */ z.object({
1668
+ custom: /* @__PURE__ */ z.never().optional(),
1669
+ preset: /* @__PURE__ */ z.enum([
1646
1670
  "UNRECOGNISED",
1647
1671
  "PHYSICAL",
1648
1672
  "DIGITAL",
@@ -1650,45 +1674,45 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
1650
1674
  "SERVICE"
1651
1675
  ]).describe("Preset item type.")
1652
1676
  }),
1653
- z.object({
1654
- preset: z.never().optional(),
1655
- custom: z.string().describe(
1677
+ /* @__PURE__ */ z.object({
1678
+ preset: /* @__PURE__ */ z.never().optional(),
1679
+ custom: /* @__PURE__ */ z.string().describe(
1656
1680
  "Custom item type. When none of the preset types are suitable, specifies the custom type."
1657
1681
  )
1658
1682
  })
1659
1683
  ])
1660
1684
  ).describe("Item type. Either a preset type or custom.").optional(),
1661
- fulfillerId: z.string().describe(
1685
+ fulfillerId: /* @__PURE__ */ z.string().describe(
1662
1686
  "Fulfiller ID. Field is empty when the line item is self-fulfilled.\nTo get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/order-fulfillments/list-fulfillments-for-single-order)."
1663
1687
  ).regex(
1664
1688
  /^[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}$/,
1665
1689
  "Must be a valid GUID"
1666
1690
  ).optional().nullable(),
1667
- refundQuantity: z.number().int().describe("Number of items that were refunded.").min(0).max(1e5).optional().nullable(),
1668
- restockQuantity: z.number().int().describe(
1691
+ refundQuantity: /* @__PURE__ */ z.number().int().describe("Number of items that were refunded.").min(0).max(1e5).optional().nullable(),
1692
+ restockQuantity: /* @__PURE__ */ z.number().int().describe(
1669
1693
  "Number of items restocked.\n\nFor a per-location breakdown, see `restockLocations`."
1670
1694
  ).min(0).max(1e5).optional().nullable(),
1671
- price: z.object({
1672
- amount: z.string().describe("Amount.").optional(),
1673
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1695
+ price: /* @__PURE__ */ z.object({
1696
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1697
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1674
1698
  }).describe(
1675
1699
  "Line item price after line item discounts for display purposes."
1676
1700
  ).optional(),
1677
- priceBeforeDiscounts: z.object({
1678
- amount: z.string().describe("Amount.").optional(),
1679
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1701
+ priceBeforeDiscounts: /* @__PURE__ */ z.object({
1702
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1703
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1680
1704
  }).describe(
1681
1705
  "Line item price before line item discounts for display purposes. Defaults to `price` when not provided."
1682
1706
  ).optional(),
1683
- totalPriceBeforeTax: z.object({
1684
- amount: z.string().describe("Amount.").optional(),
1685
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1707
+ totalPriceBeforeTax: /* @__PURE__ */ z.object({
1708
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1709
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1686
1710
  }).describe("Total price after discounts, and before tax.").optional(),
1687
- totalPriceAfterTax: z.object({
1688
- amount: z.string().describe("Amount.").optional(),
1689
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1711
+ totalPriceAfterTax: /* @__PURE__ */ z.object({
1712
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1713
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1690
1714
  }).describe("Total price after all discounts and tax.").optional(),
1691
- paymentOption: z.enum([
1715
+ paymentOption: /* @__PURE__ */ z.enum([
1692
1716
  "FULL_PAYMENT_ONLINE",
1693
1717
  "FULL_PAYMENT_OFFLINE",
1694
1718
  "MEMBERSHIP",
@@ -1698,65 +1722,65 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
1698
1722
  ]).describe(
1699
1723
  "Type of selected payment option for current item.\n\nDefault: `FULL_PAYMENT_ONLINE`"
1700
1724
  ).optional(),
1701
- taxDetails: z.object({
1702
- taxableAmount: z.object({
1703
- amount: z.string().describe("Amount.").optional(),
1704
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1725
+ taxDetails: /* @__PURE__ */ z.object({
1726
+ taxableAmount: /* @__PURE__ */ z.object({
1727
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1728
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1705
1729
  }).describe("Taxable amount of this line item.").optional(),
1706
- taxRate: z.string().describe(
1730
+ taxRate: /* @__PURE__ */ z.string().describe(
1707
1731
  'Tax rate percentage, as a decimal numeral between 0 and 1. For example, `"0.13"`.'
1708
1732
  ).optional(),
1709
- totalTax: z.object({
1710
- amount: z.string().describe("Amount.").optional(),
1711
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1733
+ totalTax: /* @__PURE__ */ z.object({
1734
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1735
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1712
1736
  }).describe(
1713
1737
  "The calculated tax, based on the `taxableAmount` and `taxRate`."
1714
1738
  ).optional()
1715
1739
  }).describe(
1716
1740
  "Deprecated. Use `taxInfo` instead.\nThis field will be removed on September 30, 2024.\nTax details for this line item."
1717
1741
  ).optional(),
1718
- taxInfo: z.object({
1719
- taxAmount: z.object({
1720
- amount: z.string().describe("Amount.").optional(),
1721
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1742
+ taxInfo: /* @__PURE__ */ z.object({
1743
+ taxAmount: /* @__PURE__ */ z.object({
1744
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1745
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1722
1746
  }).describe(
1723
1747
  "Calculated tax, based on `taxable_amount` and `tax_rate`."
1724
1748
  ).optional(),
1725
- taxableAmount: z.object({
1726
- amount: z.string().describe("Amount.").optional(),
1727
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1749
+ taxableAmount: /* @__PURE__ */ z.object({
1750
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1751
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1728
1752
  }).describe("Amount for which tax is calculated.").optional(),
1729
- taxRate: z.string().describe("Tax rate %, as a decimal point.").optional().nullable(),
1730
- taxGroupId: z.string().describe("Tax group ID.").regex(
1753
+ taxRate: /* @__PURE__ */ z.string().describe("Tax rate %, as a decimal point.").optional().nullable(),
1754
+ taxGroupId: /* @__PURE__ */ z.string().describe("Tax group ID.").regex(
1731
1755
  /^[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}$/,
1732
1756
  "Must be a valid GUID"
1733
1757
  ).optional().nullable(),
1734
- taxIncludedInPrice: z.boolean().describe(
1758
+ taxIncludedInPrice: /* @__PURE__ */ z.boolean().describe(
1735
1759
  "Indicates whether the price already includes tax."
1736
1760
  ).optional(),
1737
- taxBreakdown: z.array(
1738
- z.object({
1739
- jurisdiction: z.string().describe(
1761
+ taxBreakdown: /* @__PURE__ */ z.array(
1762
+ /* @__PURE__ */ z.object({
1763
+ jurisdiction: /* @__PURE__ */ z.string().describe(
1740
1764
  'Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec".'
1741
1765
  ).max(200).optional().nullable(),
1742
- rate: z.string().describe(
1766
+ rate: /* @__PURE__ */ z.string().describe(
1743
1767
  "Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000."
1744
1768
  ).optional().nullable(),
1745
- taxAmount: z.object({
1746
- amount: z.string().describe("Amount.").optional(),
1747
- formattedAmount: z.string().describe(
1769
+ taxAmount: /* @__PURE__ */ z.object({
1770
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1771
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1748
1772
  "Amount formatted with currency symbol."
1749
1773
  ).optional()
1750
1774
  }).describe(
1751
1775
  "Amount of tax calculated for this line item."
1752
1776
  ).optional(),
1753
- taxType: z.string().describe(
1777
+ taxType: /* @__PURE__ */ z.string().describe(
1754
1778
  `The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc.`
1755
1779
  ).max(200).optional().nullable(),
1756
- taxName: z.string().describe(
1780
+ taxName: /* @__PURE__ */ z.string().describe(
1757
1781
  'The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.\nThis name should be explicit enough to allow the merchant to understand what tax was calculated.'
1758
1782
  ).max(200).optional().nullable(),
1759
- jurisdictionType: z.enum([
1783
+ jurisdictionType: /* @__PURE__ */ z.enum([
1760
1784
  "UNDEFINED",
1761
1785
  "COUNTRY",
1762
1786
  "STATE",
@@ -1766,17 +1790,17 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
1766
1790
  ]).describe(
1767
1791
  "Type of jurisdiction that taxes were calculated for."
1768
1792
  ).optional(),
1769
- nonTaxableAmount: z.object({
1770
- amount: z.string().describe("Amount.").optional(),
1771
- formattedAmount: z.string().describe(
1793
+ nonTaxableAmount: /* @__PURE__ */ z.object({
1794
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1795
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1772
1796
  "Amount formatted with currency symbol."
1773
1797
  ).optional()
1774
1798
  }).describe(
1775
1799
  "Non-taxable amount of the line item price."
1776
1800
  ).optional(),
1777
- taxableAmount: z.object({
1778
- amount: z.string().describe("Amount.").optional(),
1779
- formattedAmount: z.string().describe(
1801
+ taxableAmount: /* @__PURE__ */ z.object({
1802
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1803
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1780
1804
  "Amount formatted with currency symbol."
1781
1805
  ).optional()
1782
1806
  }).describe("Taxable amount of the line item price.").optional()
@@ -1785,137 +1809,139 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
1785
1809
  }).describe(
1786
1810
  "Represents all the relevant tax details for a specific line item."
1787
1811
  ).optional(),
1788
- digitalFile: z.object({
1789
- fileId: z.string().describe("ID of the secure file in media.").min(1).max(100).optional(),
1790
- link: z.string().describe(
1812
+ digitalFile: /* @__PURE__ */ z.object({
1813
+ fileId: /* @__PURE__ */ z.string().describe("ID of the secure file in media.").min(1).max(100).optional(),
1814
+ link: /* @__PURE__ */ z.string().describe(
1791
1815
  "Link will exist after the digital links have been generated on the order."
1792
1816
  ).url().min(1).max(2e3).optional().nullable(),
1793
- expirationDate: z.date().describe("Link expiration time and date.").optional().nullable()
1817
+ expirationDate: /* @__PURE__ */ z.date().describe("Link expiration time and date.").optional().nullable()
1794
1818
  }).describe(
1795
1819
  "Digital file identifier, relevant only for items with type DIGITAL."
1796
1820
  ).optional(),
1797
- subscriptionInfo: z.object({
1798
- _id: z.string().describe("Subscription ID.").regex(
1821
+ subscriptionInfo: /* @__PURE__ */ z.object({
1822
+ _id: /* @__PURE__ */ z.string().describe("Subscription ID.").regex(
1799
1823
  /^[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}$/,
1800
1824
  "Must be a valid GUID"
1801
1825
  ).optional().nullable(),
1802
- cycleNumber: z.number().int().describe(
1826
+ cycleNumber: /* @__PURE__ */ z.number().int().describe(
1803
1827
  "Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`."
1804
1828
  ).min(0).optional(),
1805
- subscriptionOptionTitle: z.string().describe(
1829
+ subscriptionOptionTitle: /* @__PURE__ */ z.string().describe(
1806
1830
  'Subscription option title. For example, `"Monthly coffee Subscription"`.'
1807
1831
  ).min(0).max(150).optional(),
1808
- subscriptionOptionDescription: z.string().describe(
1832
+ subscriptionOptionDescription: /* @__PURE__ */ z.string().describe(
1809
1833
  'Subscription option description. For example, `"1kg of selected coffee, once a month"`.'
1810
1834
  ).max(500).optional().nullable(),
1811
- subscriptionSettings: z.object({
1812
- frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
1813
- interval: z.number().int().describe(
1835
+ subscriptionSettings: /* @__PURE__ */ z.object({
1836
+ frequency: /* @__PURE__ */ z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
1837
+ interval: /* @__PURE__ */ z.number().int().describe(
1814
1838
  "Number of frequency units in a billing cycle. For example, frequency `MONTH` with interval `3` means billing every 3 months."
1815
1839
  ).min(1).max(3650).optional().nullable(),
1816
- autoRenewal: z.boolean().describe(
1840
+ autoRenewal: /* @__PURE__ */ z.boolean().describe(
1817
1841
  "Whether subscription is renewed automatically at the end of each period."
1818
1842
  ).optional(),
1819
- billingCycles: z.number().int().describe(
1843
+ billingCycles: /* @__PURE__ */ z.number().int().describe(
1820
1844
  "Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
1821
1845
  ).min(1).optional().nullable(),
1822
- enableCustomerCancellation: z.boolean().describe(
1846
+ enableCustomerCancellation: /* @__PURE__ */ z.boolean().describe(
1823
1847
  "Whether to allow the customer to cancel the subscription."
1824
1848
  ).optional(),
1825
- freeTrialPeriod: z.object({
1826
- frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe(
1849
+ freeTrialPeriod: /* @__PURE__ */ z.object({
1850
+ frequency: /* @__PURE__ */ z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe(
1827
1851
  "Frequency of period. Values: DAY, WEEK, MONTH, YEAR"
1828
1852
  ).optional(),
1829
- interval: z.number().int().describe(
1853
+ interval: /* @__PURE__ */ z.number().int().describe(
1830
1854
  "Number of frequency units in the free trial period. For example, frequency `MONTH` with interval `3` means a 3-month free trial."
1831
1855
  ).min(1).max(3650).optional()
1832
1856
  }).describe(
1833
1857
  "Period until first cycle starts. If None => no free trial"
1834
1858
  ).optional()
1835
1859
  }).describe("Subscription detailed information.").optional(),
1836
- chargesDescription: z.string().describe(
1860
+ chargesDescription: /* @__PURE__ */ z.string().describe(
1837
1861
  "Description of the charges that will be applied for subscription."
1838
1862
  ).max(1e3).optional().nullable()
1839
1863
  }).describe("Subscription info.").optional(),
1840
- priceDescription: z.object({
1841
- original: z.string().describe(
1864
+ priceDescription: /* @__PURE__ */ z.object({
1865
+ original: /* @__PURE__ */ z.string().describe(
1842
1866
  "__Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope)."
1843
1867
  ).min(1).max(100).optional(),
1844
- translated: z.string().describe(
1868
+ translated: /* @__PURE__ */ z.string().describe(
1845
1869
  "Price description translated into the buyer's language.\n\nDefault: Same as `original`."
1846
1870
  ).min(1).max(100).optional().nullable()
1847
1871
  }).describe(
1848
1872
  'Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".'
1849
1873
  ).optional(),
1850
- depositAmount: z.object({
1851
- amount: z.string().describe("Amount.").optional(),
1852
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1874
+ depositAmount: /* @__PURE__ */ z.object({
1875
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1876
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1853
1877
  }).describe(
1854
1878
  'Item\'s price amount to be charged during checkout. Relevant for items with a `paymentOption` value of `"DEPOSIT_ONLINE"`.'
1855
1879
  ).optional(),
1856
- locations: z.array(
1857
- z.object({
1858
- _id: z.string().describe("Location id in the associated owner app.").regex(
1880
+ locations: /* @__PURE__ */ z.array(
1881
+ /* @__PURE__ */ z.object({
1882
+ _id: /* @__PURE__ */ z.string().describe("Location id in the associated owner app.").regex(
1859
1883
  /^[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}$/,
1860
1884
  "Must be a valid GUID"
1861
1885
  ).optional(),
1862
- appId: z.string().describe(
1886
+ appId: /* @__PURE__ */ z.string().describe(
1863
1887
  "Location owner app, if not provided then the site business info locations will be used."
1864
1888
  ).regex(
1865
1889
  /^[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}$/,
1866
1890
  "Must be a valid GUID"
1867
1891
  ).optional().nullable(),
1868
- quantity: z.number().int().describe("Quantity for specific location.").min(1).max(1e5).optional(),
1869
- name: z.string().describe("Location name.").max(500).optional().nullable()
1892
+ quantity: /* @__PURE__ */ z.number().int().describe("Quantity for specific location.").min(1).max(1e5).optional(),
1893
+ name: /* @__PURE__ */ z.string().describe("Location name.").max(500).optional().nullable()
1870
1894
  })
1871
1895
  ).min(0).max(5).optional(),
1872
- lineItemPrice: z.object({
1873
- amount: z.string().describe("Amount.").optional(),
1874
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
1896
+ lineItemPrice: /* @__PURE__ */ z.object({
1897
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
1898
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
1875
1899
  }).describe(
1876
1900
  "Total price **after** catalog discounts and line item discounts."
1877
1901
  ).optional(),
1878
- taxableAddress: z.intersection(
1879
- z.object({}),
1880
- z.xor([
1881
- z.object({ addressType: z.never().optional() }),
1882
- z.object({
1883
- addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
1902
+ taxableAddress: /* @__PURE__ */ z.intersection(
1903
+ /* @__PURE__ */ z.object({}),
1904
+ /* @__PURE__ */ z.xor([
1905
+ /* @__PURE__ */ z.object({
1906
+ addressType: /* @__PURE__ */ z.never().optional()
1907
+ }),
1908
+ /* @__PURE__ */ z.object({
1909
+ addressType: /* @__PURE__ */ z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
1884
1910
  "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
1885
1911
  )
1886
1912
  })
1887
1913
  ])
1888
1914
  ).describe("Address used for tax calculation.").optional(),
1889
- priceUndetermined: z.boolean().describe(
1915
+ priceUndetermined: /* @__PURE__ */ z.boolean().describe(
1890
1916
  "Whether the price is not yet defined, and will be updated after the order is created.\n\nDefault: `false`"
1891
1917
  ).optional(),
1892
- fixedQuantity: z.boolean().describe(
1918
+ fixedQuantity: /* @__PURE__ */ z.boolean().describe(
1893
1919
  "Whether the line item quantity is fixed and cannot be changed.\n\nDefault: `false`"
1894
1920
  ).optional(),
1895
- decimalQuantity: z.intersection(
1896
- z.object({
1897
- value: z.string().describe(
1921
+ decimalQuantity: /* @__PURE__ */ z.intersection(
1922
+ /* @__PURE__ */ z.object({
1923
+ value: /* @__PURE__ */ z.string().describe(
1898
1924
  'The decimal quantity the buyer / merchant entered.\n\nString-encoded decimal. The exact value is preserved \u2014 no\nrounding, no conversion to an integer.\n\nExamples: "2.75", "1.5", "0.75".'
1899
1925
  ).optional(),
1900
- description: z.object({
1901
- original: z.string().describe(
1926
+ description: /* @__PURE__ */ z.object({
1927
+ original: /* @__PURE__ */ z.string().describe(
1902
1928
  "__Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
1903
1929
  ).min(1).max(200).optional(),
1904
- translated: z.string().describe(
1930
+ translated: /* @__PURE__ */ z.string().describe(
1905
1931
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1906
1932
  ).min(1).max(400).optional().nullable()
1907
1933
  }).describe(
1908
1934
  'Human-readable, pre-formatted display string for the quantity. For example, "2.75 square meters of fake grass".\nAlways set alongside `value`; use this directly for display rather than composing your own string from `value` and `unit`.'
1909
1935
  ).optional()
1910
1936
  }),
1911
- z.xor([
1912
- z.object({
1913
- measurementUnit: z.never().optional(),
1914
- otherUnit: z.never().optional()
1937
+ /* @__PURE__ */ z.xor([
1938
+ /* @__PURE__ */ z.object({
1939
+ measurementUnit: /* @__PURE__ */ z.never().optional(),
1940
+ otherUnit: /* @__PURE__ */ z.never().optional()
1915
1941
  }),
1916
- z.object({
1917
- otherUnit: z.never().optional(),
1918
- measurementUnit: z.enum([
1942
+ /* @__PURE__ */ z.object({
1943
+ otherUnit: /* @__PURE__ */ z.never().optional(),
1944
+ measurementUnit: /* @__PURE__ */ z.enum([
1919
1945
  "UNSPECIFIED",
1920
1946
  "ML",
1921
1947
  "CL",
@@ -1942,9 +1968,9 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
1942
1968
  "Unit the value is expressed in, selected from the standard `measurementUnit` enum."
1943
1969
  )
1944
1970
  }),
1945
- z.object({
1946
- measurementUnit: z.never().optional(),
1947
- otherUnit: z.string().describe(
1971
+ /* @__PURE__ */ z.object({
1972
+ measurementUnit: /* @__PURE__ */ z.never().optional(),
1973
+ otherUnit: /* @__PURE__ */ z.string().describe(
1948
1974
  'Free-form unit name for standard units not in the\n`measurementUnit` enum (e.g. "hour", "minute", "session").'
1949
1975
  ).min(1).max(50)
1950
1976
  })
@@ -1952,47 +1978,53 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
1952
1978
  ).describe(
1953
1979
  "Decimal-quantity metadata. Set when the line represents a\nnon-integer purchase (e.g. 2.75 m\xB2 of fake grass).\n\nWhen set, the line item must have `fixedQuantity` = true and be set with `quantity` = 1.\nThe decimal value lives in `decimalQuantity.value`."
1954
1980
  ).optional(),
1955
- extendedFields: z.object({
1956
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1981
+ extendedFields: /* @__PURE__ */ z.object({
1982
+ namespaces: /* @__PURE__ */ z.record(
1983
+ /* @__PURE__ */ z.string(),
1984
+ /* @__PURE__ */ z.record(
1985
+ /* @__PURE__ */ z.string(),
1986
+ /* @__PURE__ */ z.any()
1987
+ )
1988
+ ).describe(
1957
1989
  "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)."
1958
1990
  ).optional()
1959
1991
  }).describe(
1960
1992
  "Custom extended fields for the line item object.\n\n[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls."
1961
1993
  ).optional(),
1962
- modifierGroups: z.array(
1963
- z.object({
1964
- _id: z.string().describe("Modifier group ID.").min(1).max(36).optional(),
1965
- name: z.object({
1966
- original: z.string().describe(
1994
+ modifierGroups: /* @__PURE__ */ z.array(
1995
+ /* @__PURE__ */ z.object({
1996
+ _id: /* @__PURE__ */ z.string().describe("Modifier group ID.").min(1).max(36).optional(),
1997
+ name: /* @__PURE__ */ z.object({
1998
+ original: /* @__PURE__ */ z.string().describe(
1967
1999
  "__Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
1968
2000
  ).min(1).max(200).optional(),
1969
- translated: z.string().describe(
2001
+ translated: /* @__PURE__ */ z.string().describe(
1970
2002
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1971
2003
  ).min(1).max(400).optional().nullable()
1972
2004
  }).describe("Modifier group name.").optional(),
1973
- modifiers: z.array(
1974
- z.object({
1975
- _id: z.string().describe("Modifier ID.").min(1).max(36).optional(),
1976
- quantity: z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
1977
- label: z.object({
1978
- original: z.string().describe(
2005
+ modifiers: /* @__PURE__ */ z.array(
2006
+ /* @__PURE__ */ z.object({
2007
+ _id: /* @__PURE__ */ z.string().describe("Modifier ID.").min(1).max(36).optional(),
2008
+ quantity: /* @__PURE__ */ z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
2009
+ label: /* @__PURE__ */ z.object({
2010
+ original: /* @__PURE__ */ z.string().describe(
1979
2011
  "__Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
1980
2012
  ).min(1).max(200).optional(),
1981
- translated: z.string().describe(
2013
+ translated: /* @__PURE__ */ z.string().describe(
1982
2014
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1983
2015
  ).min(1).max(400).optional().nullable()
1984
2016
  }).describe("Primary display label for the modifier.").optional(),
1985
- details: z.object({
1986
- original: z.string().describe(
2017
+ details: /* @__PURE__ */ z.object({
2018
+ original: /* @__PURE__ */ z.string().describe(
1987
2019
  "__Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
1988
2020
  ).min(1).max(200).optional(),
1989
- translated: z.string().describe(
2021
+ translated: /* @__PURE__ */ z.string().describe(
1990
2022
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1991
2023
  ).min(1).max(400).optional().nullable()
1992
2024
  }).describe("Additional details.").optional(),
1993
- price: z.object({
1994
- amount: z.string().describe("Amount.").optional(),
1995
- formattedAmount: z.string().describe(
2025
+ price: /* @__PURE__ */ z.object({
2026
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2027
+ formattedAmount: /* @__PURE__ */ z.string().describe(
1996
2028
  "Amount formatted with currency symbol."
1997
2029
  ).optional()
1998
2030
  }).describe("The price of the modifier.").optional()
@@ -2002,33 +2034,33 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2002
2034
  ).max(10).optional()
2003
2035
  })
2004
2036
  ).min(1).max(100).optional(),
2005
- buyerInfo: z.intersection(
2006
- z.object({
2007
- contactId: z.string().describe(
2037
+ buyerInfo: /* @__PURE__ */ z.intersection(
2038
+ /* @__PURE__ */ z.object({
2039
+ contactId: /* @__PURE__ */ z.string().describe(
2008
2040
  "Contact ID. Automatically created if one doesn't exist. For more information, see [Contacts API](https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts/contact-v4/introduction)."
2009
2041
  ).regex(
2010
2042
  /^[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}$/,
2011
2043
  "Must be a valid GUID"
2012
2044
  ).optional().nullable(),
2013
- email: z.string().describe("Buyer's email address.").email().optional().nullable()
2045
+ email: /* @__PURE__ */ z.string().describe("Buyer's email address.").email().optional().nullable()
2014
2046
  }),
2015
- z.xor([
2016
- z.object({
2017
- visitorId: z.never().optional(),
2018
- memberId: z.never().optional()
2047
+ /* @__PURE__ */ z.xor([
2048
+ /* @__PURE__ */ z.object({
2049
+ visitorId: /* @__PURE__ */ z.never().optional(),
2050
+ memberId: /* @__PURE__ */ z.never().optional()
2019
2051
  }),
2020
- z.object({
2021
- memberId: z.never().optional(),
2022
- visitorId: z.string().describe(
2052
+ /* @__PURE__ */ z.object({
2053
+ memberId: /* @__PURE__ */ z.never().optional(),
2054
+ visitorId: /* @__PURE__ */ z.string().describe(
2023
2055
  "Visitor ID. Returned when the buyer isn't a logged-in site member."
2024
2056
  ).regex(
2025
2057
  /^[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}$/,
2026
2058
  "Must be a valid GUID"
2027
2059
  )
2028
2060
  }),
2029
- z.object({
2030
- visitorId: z.never().optional(),
2031
- memberId: z.string().describe(
2061
+ /* @__PURE__ */ z.object({
2062
+ visitorId: /* @__PURE__ */ z.never().optional(),
2063
+ memberId: /* @__PURE__ */ z.string().describe(
2032
2064
  "Member ID. Returned when the buyer is a logged-in site member."
2033
2065
  ).regex(
2034
2066
  /^[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}$/,
@@ -2037,95 +2069,95 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2037
2069
  })
2038
2070
  ])
2039
2071
  ).describe("Buyer information.").optional(),
2040
- buyerLanguage: z.string().describe(
2072
+ buyerLanguage: /* @__PURE__ */ z.string().describe(
2041
2073
  "Language for communication with the buyer. Defaults to the site language.\nFor a site that supports multiple languages, this is the language the buyer selected."
2042
2074
  ).max(10).optional().nullable(),
2043
- weightUnit: z.enum(["UNSPECIFIED_WEIGHT_UNIT", "KG", "LB"]).describe("Weight measurement unit - defaults to site's weight unit.").optional(),
2044
- currency: z.string().describe(
2075
+ weightUnit: /* @__PURE__ */ z.enum(["UNSPECIFIED_WEIGHT_UNIT", "KG", "LB"]).describe("Weight measurement unit - defaults to site's weight unit.").optional(),
2076
+ currency: /* @__PURE__ */ z.string().describe(
2045
2077
  "Currency used for the pricing of this order in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format."
2046
2078
  ).optional().nullable(),
2047
- currencyConversionDetails: z.object({
2048
- originalCurrency: z.string().describe(
2079
+ currencyConversionDetails: /* @__PURE__ */ z.object({
2080
+ originalCurrency: /* @__PURE__ */ z.string().describe(
2049
2081
  "Currency used for the pricing of this order, in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.\n\nThis currency is used to calculate the pricing before conversion to the buyer's payment currency."
2050
2082
  ).optional().nullable(),
2051
- conversionRate: z.string().describe(
2083
+ conversionRate: /* @__PURE__ */ z.string().describe(
2052
2084
  "The rate used for converting the original currency to the currency used for payment.\n\nReturned only when a single rate produced every amount on the order.\nThis is the case for an order converted once at checkout."
2053
2085
  ).optional().nullable()
2054
2086
  }).describe(
2055
2087
  "Multi-currency information of the subscription. conversionRate may reflect updated exchange rate on created order per recurring cycle."
2056
2088
  ).optional(),
2057
- taxIncludedInPrices: z.boolean().describe(
2089
+ taxIncludedInPrices: /* @__PURE__ */ z.boolean().describe(
2058
2090
  "Whether tax is included in line item prices.\n\nDefault: `false`"
2059
2091
  ).optional(),
2060
- priceSummary: z.object({
2061
- subtotal: z.object({
2062
- amount: z.string().describe("Amount.").optional(),
2063
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2092
+ priceSummary: /* @__PURE__ */ z.object({
2093
+ subtotal: /* @__PURE__ */ z.object({
2094
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2095
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2064
2096
  }).describe(
2065
2097
  "Subtotal of all line items, before discounts and before tax."
2066
2098
  ).optional(),
2067
- shipping: z.object({
2068
- amount: z.string().describe("Amount.").optional(),
2069
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2099
+ shipping: /* @__PURE__ */ z.object({
2100
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2101
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2070
2102
  }).describe(
2071
2103
  "Total shipping price, before discounts and before tax."
2072
2104
  ).optional(),
2073
- tax: z.object({
2074
- amount: z.string().describe("Amount.").optional(),
2075
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2105
+ tax: /* @__PURE__ */ z.object({
2106
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2107
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2076
2108
  }).describe("Total tax applied to the order.").optional(),
2077
- discount: z.object({
2078
- amount: z.string().describe("Amount.").optional(),
2079
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2109
+ discount: /* @__PURE__ */ z.object({
2110
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2111
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2080
2112
  }).describe("Total discount amount applied to the order.").optional(),
2081
- total: z.object({
2082
- amount: z.string().describe("Amount.").optional(),
2083
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2113
+ total: /* @__PURE__ */ z.object({
2114
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2115
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2084
2116
  }).describe("Order's total price after discounts and tax.").optional(),
2085
- totalAdditionalFees: z.object({
2086
- amount: z.string().describe("Amount.").optional(),
2087
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2117
+ totalAdditionalFees: /* @__PURE__ */ z.object({
2118
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2119
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2088
2120
  }).describe("Total additional fees before tax.").optional()
2089
2121
  }).describe("Order price summary.").optional(),
2090
- platformFeeSummary: z.object({
2091
- total: z.object({
2092
- amount: z.string().describe("Amount.").optional(),
2093
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2122
+ platformFeeSummary: /* @__PURE__ */ z.object({
2123
+ total: /* @__PURE__ */ z.object({
2124
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2125
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2094
2126
  }).describe("Total sum of all platform fees.").optional(),
2095
- totalPassOn: z.object({
2096
- amount: z.string().describe("Amount.").optional(),
2097
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2127
+ totalPassOn: /* @__PURE__ */ z.object({
2128
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2129
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2098
2130
  }).describe(
2099
2131
  "Total amount of platform fees with `PASS_ON` charge type."
2100
2132
  ).optional(),
2101
- totalAbsorbed: z.object({
2102
- amount: z.string().describe("Amount.").optional(),
2103
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2133
+ totalAbsorbed: /* @__PURE__ */ z.object({
2134
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2135
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2104
2136
  }).describe(
2105
2137
  "Total amount of platform fees with `ABSORBED` charge type."
2106
2138
  ).optional(),
2107
- fees: z.array(
2108
- z.object({
2109
- name: z.object({
2110
- original: z.string().describe(
2139
+ fees: /* @__PURE__ */ z.array(
2140
+ /* @__PURE__ */ z.object({
2141
+ name: /* @__PURE__ */ z.object({
2142
+ original: /* @__PURE__ */ z.string().describe(
2111
2143
  "__Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
2112
2144
  ).min(1).max(200).optional(),
2113
- translated: z.string().describe(
2145
+ translated: /* @__PURE__ */ z.string().describe(
2114
2146
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
2115
2147
  ).min(1).max(400).optional().nullable()
2116
2148
  }).describe("Platform fee name.").optional(),
2117
- amount: z.object({
2118
- amount: z.string().describe("Amount.").optional(),
2119
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2149
+ amount: /* @__PURE__ */ z.object({
2150
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2151
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2120
2152
  }).describe("Platform fee amount.").optional(),
2121
- lineItemId: z.string().describe(
2153
+ lineItemId: /* @__PURE__ */ z.string().describe(
2122
2154
  "ID of the line item the platform fee applies to."
2123
2155
  ).regex(
2124
2156
  /^[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}$/,
2125
2157
  "Must be a valid GUID"
2126
2158
  ).optional(),
2127
- chargeType: z.enum(["PASS_ON", "ABSORBED"]).describe("Platform fee charge type.").optional(),
2128
- percentageRate: z.string().describe(
2159
+ chargeType: /* @__PURE__ */ z.enum(["PASS_ON", "ABSORBED"]).describe("Platform fee charge type.").optional(),
2160
+ percentageRate: /* @__PURE__ */ z.string().describe(
2129
2161
  "Percentage rate charged as platform fee.\nThe fee rate percentage expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%."
2130
2162
  ).optional()
2131
2163
  })
@@ -2133,26 +2165,26 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2133
2165
  }).describe(
2134
2166
  "Summary of platform fees for this subscription contract, including totals by charge type and a breakdown of individual fees."
2135
2167
  ).optional(),
2136
- billingInfo: z.object({
2137
- address: z.object({
2138
- streetAddress: z.object({
2139
- name: z.string().optional(),
2140
- number: z.string().optional()
2168
+ billingInfo: /* @__PURE__ */ z.object({
2169
+ address: /* @__PURE__ */ z.object({
2170
+ streetAddress: /* @__PURE__ */ z.object({
2171
+ name: /* @__PURE__ */ z.string().optional(),
2172
+ number: /* @__PURE__ */ z.string().optional()
2141
2173
  }).optional(),
2142
- city: z.string().optional().nullable(),
2143
- subdivision: z.string().optional().nullable(),
2144
- country: z.string().optional().nullable(),
2145
- postalCode: z.string().optional().nullable(),
2146
- addressLine2: z.string().optional().nullable()
2174
+ city: /* @__PURE__ */ z.string().optional().nullable(),
2175
+ subdivision: /* @__PURE__ */ z.string().optional().nullable(),
2176
+ country: /* @__PURE__ */ z.string().optional().nullable(),
2177
+ postalCode: /* @__PURE__ */ z.string().optional().nullable(),
2178
+ addressLine2: /* @__PURE__ */ z.string().optional().nullable()
2147
2179
  }).describe("Address.").optional(),
2148
- contactDetails: z.object({
2149
- firstName: z.string().describe("First name.").max(100).optional().nullable(),
2150
- lastName: z.string().describe("Last name.").max(100).optional().nullable(),
2151
- phone: z.string().describe("Phone number.").optional().nullable(),
2152
- company: z.string().describe("Company name.").max(1e3).optional().nullable(),
2153
- vatId: z.object({
2154
- _id: z.string().describe("Customer's tax ID.").optional(),
2155
- type: z.enum(["UNSPECIFIED", "CPF", "CNPJ"]).describe(
2180
+ contactDetails: /* @__PURE__ */ z.object({
2181
+ firstName: /* @__PURE__ */ z.string().describe("First name.").max(100).optional().nullable(),
2182
+ lastName: /* @__PURE__ */ z.string().describe("Last name.").max(100).optional().nullable(),
2183
+ phone: /* @__PURE__ */ z.string().describe("Phone number.").optional().nullable(),
2184
+ company: /* @__PURE__ */ z.string().describe("Company name.").max(1e3).optional().nullable(),
2185
+ vatId: /* @__PURE__ */ z.object({
2186
+ _id: /* @__PURE__ */ z.string().describe("Customer's tax ID.").optional(),
2187
+ type: /* @__PURE__ */ z.enum(["UNSPECIFIED", "CPF", "CNPJ"]).describe(
2156
2188
  "Tax type.\n\nSupported values:\n+ `CPF`: for individual tax payers\n+ `CNPJ`: for corporations"
2157
2189
  ).optional()
2158
2190
  }).describe(
@@ -2160,61 +2192,61 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2160
2192
  ).optional()
2161
2193
  }).describe("Contact details.").optional()
2162
2194
  }).describe("Billing address and contact details.").optional(),
2163
- shippingInfo: z.object({
2164
- carrierId: z.string().describe(
2195
+ shippingInfo: /* @__PURE__ */ z.object({
2196
+ carrierId: /* @__PURE__ */ z.string().describe(
2165
2197
  "App Def Id of external provider which was a source of shipping info"
2166
2198
  ).min(1).max(100).optional().nullable(),
2167
- code: z.string().describe(
2199
+ code: /* @__PURE__ */ z.string().describe(
2168
2200
  'Unique code (or ID) of selected shipping option. For example, `"usps_std_overnight"`.'
2169
2201
  ).min(1).max(100).optional().nullable(),
2170
- title: z.string().describe(
2202
+ title: /* @__PURE__ */ z.string().describe(
2171
2203
  'Shipping option title.\nFor example, `"USPS Standard Overnight Delivery"`, `"Standard"` or `"First-Class Package International"`.'
2172
2204
  ).max(250).optional(),
2173
- logistics: z.intersection(
2174
- z.object({
2175
- deliveryTime: z.string().describe(
2205
+ logistics: /* @__PURE__ */ z.intersection(
2206
+ /* @__PURE__ */ z.object({
2207
+ deliveryTime: /* @__PURE__ */ z.string().describe(
2176
2208
  'Expected delivery time in free text. For example, `"3-5 business days"`.'
2177
2209
  ).max(500).optional().nullable(),
2178
- instructions: z.string().describe(
2210
+ instructions: /* @__PURE__ */ z.string().describe(
2179
2211
  'Instructions for the carrier. For example, `"Please knock on the door. If unanswered, please call contact number."`.'
2180
2212
  ).max(1e3).optional().nullable(),
2181
- deliverByDate: z.date().describe(
2213
+ deliverByDate: /* @__PURE__ */ z.date().describe(
2182
2214
  "Deprecated - Latest expected delivery date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format."
2183
2215
  ).optional().nullable(),
2184
- deliveryTimeSlot: z.object({
2185
- from: z.date().describe("Delivery slot starting time.").optional().nullable(),
2186
- to: z.date().describe("Delivery slot ending time.").optional().nullable()
2216
+ deliveryTimeSlot: /* @__PURE__ */ z.object({
2217
+ from: /* @__PURE__ */ z.date().describe("Delivery slot starting time.").optional().nullable(),
2218
+ to: /* @__PURE__ */ z.date().describe("Delivery slot ending time.").optional().nullable()
2187
2219
  }).describe(
2188
2220
  "Expected delivery time slot with start and end times."
2189
2221
  ).optional()
2190
2222
  }),
2191
- z.xor([
2192
- z.object({
2193
- shippingDestination: z.never().optional(),
2194
- pickupDetails: z.never().optional()
2223
+ /* @__PURE__ */ z.xor([
2224
+ /* @__PURE__ */ z.object({
2225
+ shippingDestination: /* @__PURE__ */ z.never().optional(),
2226
+ pickupDetails: /* @__PURE__ */ z.never().optional()
2195
2227
  }),
2196
- z.object({
2197
- pickupDetails: z.never().optional(),
2198
- shippingDestination: z.object({
2199
- address: z.object({
2200
- streetAddress: z.object({
2201
- name: z.string().optional(),
2202
- number: z.string().optional()
2228
+ /* @__PURE__ */ z.object({
2229
+ pickupDetails: /* @__PURE__ */ z.never().optional(),
2230
+ shippingDestination: /* @__PURE__ */ z.object({
2231
+ address: /* @__PURE__ */ z.object({
2232
+ streetAddress: /* @__PURE__ */ z.object({
2233
+ name: /* @__PURE__ */ z.string().optional(),
2234
+ number: /* @__PURE__ */ z.string().optional()
2203
2235
  }).optional(),
2204
- city: z.string().optional().nullable(),
2205
- subdivision: z.string().optional().nullable(),
2206
- country: z.string().optional().nullable(),
2207
- postalCode: z.string().optional().nullable(),
2208
- addressLine2: z.string().optional().nullable()
2236
+ city: /* @__PURE__ */ z.string().optional().nullable(),
2237
+ subdivision: /* @__PURE__ */ z.string().optional().nullable(),
2238
+ country: /* @__PURE__ */ z.string().optional().nullable(),
2239
+ postalCode: /* @__PURE__ */ z.string().optional().nullable(),
2240
+ addressLine2: /* @__PURE__ */ z.string().optional().nullable()
2209
2241
  }).describe("Address.").optional(),
2210
- contactDetails: z.object({
2211
- firstName: z.string().describe("First name.").max(100).optional().nullable(),
2212
- lastName: z.string().describe("Last name.").max(100).optional().nullable(),
2213
- phone: z.string().describe("Phone number.").optional().nullable(),
2214
- company: z.string().describe("Company name.").max(1e3).optional().nullable(),
2215
- vatId: z.object({
2216
- _id: z.string().describe("Customer's tax ID.").optional(),
2217
- type: z.enum(["UNSPECIFIED", "CPF", "CNPJ"]).describe(
2242
+ contactDetails: /* @__PURE__ */ z.object({
2243
+ firstName: /* @__PURE__ */ z.string().describe("First name.").max(100).optional().nullable(),
2244
+ lastName: /* @__PURE__ */ z.string().describe("Last name.").max(100).optional().nullable(),
2245
+ phone: /* @__PURE__ */ z.string().describe("Phone number.").optional().nullable(),
2246
+ company: /* @__PURE__ */ z.string().describe("Company name.").max(1e3).optional().nullable(),
2247
+ vatId: /* @__PURE__ */ z.object({
2248
+ _id: /* @__PURE__ */ z.string().describe("Customer's tax ID.").optional(),
2249
+ type: /* @__PURE__ */ z.enum(["UNSPECIFIED", "CPF", "CNPJ"]).describe(
2218
2250
  "Tax type.\n\nSupported values:\n+ `CPF`: for individual tax payers\n+ `CNPJ`: for corporations"
2219
2251
  ).optional()
2220
2252
  }).describe(
@@ -2225,101 +2257,101 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2225
2257
  "Shipping destination address and contact details. For pickup orders, this contains the pickup location address, not the recipient's address."
2226
2258
  )
2227
2259
  }),
2228
- z.object({
2229
- shippingDestination: z.never().optional(),
2230
- pickupDetails: z.object({
2231
- address: z.object({
2232
- streetAddress: z.object({
2233
- name: z.string().optional(),
2234
- number: z.string().optional()
2260
+ /* @__PURE__ */ z.object({
2261
+ shippingDestination: /* @__PURE__ */ z.never().optional(),
2262
+ pickupDetails: /* @__PURE__ */ z.object({
2263
+ address: /* @__PURE__ */ z.object({
2264
+ streetAddress: /* @__PURE__ */ z.object({
2265
+ name: /* @__PURE__ */ z.string().optional(),
2266
+ number: /* @__PURE__ */ z.string().optional()
2235
2267
  }).optional(),
2236
- city: z.string().optional().nullable(),
2237
- subdivision: z.string().optional().nullable(),
2238
- country: z.string().optional().nullable(),
2239
- postalCode: z.string().optional().nullable(),
2240
- addressLine2: z.string().optional().nullable()
2268
+ city: /* @__PURE__ */ z.string().optional().nullable(),
2269
+ subdivision: /* @__PURE__ */ z.string().optional().nullable(),
2270
+ country: /* @__PURE__ */ z.string().optional().nullable(),
2271
+ postalCode: /* @__PURE__ */ z.string().optional().nullable(),
2272
+ addressLine2: /* @__PURE__ */ z.string().optional().nullable()
2241
2273
  }).describe("Pickup address.").optional(),
2242
- pickupMethod: z.enum(["STORE_PICKUP", "PICKUP_POINT"]).describe("Pickup method").optional()
2274
+ pickupMethod: /* @__PURE__ */ z.enum(["STORE_PICKUP", "PICKUP_POINT"]).describe("Pickup method").optional()
2243
2275
  }).describe(
2244
2276
  "Pickup details for store pickup or pickup point orders."
2245
2277
  )
2246
2278
  })
2247
2279
  ])
2248
2280
  ).describe("Shipping logistics.").optional(),
2249
- cost: z.object({
2250
- price: z.object({
2251
- amount: z.string().describe("Amount.").optional(),
2252
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2281
+ cost: /* @__PURE__ */ z.object({
2282
+ price: /* @__PURE__ */ z.object({
2283
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2284
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2253
2285
  }).describe("Shipping price for display purposes.").optional(),
2254
- totalPriceBeforeTax: z.object({
2255
- amount: z.string().describe("Amount.").optional(),
2256
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2286
+ totalPriceBeforeTax: /* @__PURE__ */ z.object({
2287
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2288
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2257
2289
  }).describe(
2258
2290
  "Total price of shipping after discounts (when relevant), and before tax."
2259
2291
  ).optional(),
2260
- totalPriceAfterTax: z.object({
2261
- amount: z.string().describe("Amount.").optional(),
2262
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2292
+ totalPriceAfterTax: /* @__PURE__ */ z.object({
2293
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2294
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2263
2295
  }).describe(
2264
2296
  "Shipping price after all discounts (if any exist), and after tax."
2265
2297
  ).optional(),
2266
- taxDetails: z.object({
2267
- taxableAmount: z.object({
2268
- amount: z.string().describe("Amount.").optional(),
2269
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2298
+ taxDetails: /* @__PURE__ */ z.object({
2299
+ taxableAmount: /* @__PURE__ */ z.object({
2300
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2301
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2270
2302
  }).describe("Taxable amount of this line item.").optional(),
2271
- taxRate: z.string().describe(
2303
+ taxRate: /* @__PURE__ */ z.string().describe(
2272
2304
  'Tax rate percentage, as a decimal numeral between 0 and 1. For example, `"0.13"`.'
2273
2305
  ).optional(),
2274
- totalTax: z.object({
2275
- amount: z.string().describe("Amount.").optional(),
2276
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2306
+ totalTax: /* @__PURE__ */ z.object({
2307
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2308
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2277
2309
  }).describe(
2278
2310
  "The calculated tax, based on the `taxableAmount` and `taxRate`."
2279
2311
  ).optional()
2280
2312
  }).describe("Tax details.").optional(),
2281
- taxInfo: z.object({
2282
- taxAmount: z.object({
2283
- amount: z.string().describe("Amount.").optional(),
2284
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2313
+ taxInfo: /* @__PURE__ */ z.object({
2314
+ taxAmount: /* @__PURE__ */ z.object({
2315
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2316
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2285
2317
  }).describe(
2286
2318
  "Calculated tax, based on `taxable_amount` and `tax_rate`."
2287
2319
  ).optional(),
2288
- taxableAmount: z.object({
2289
- amount: z.string().describe("Amount.").optional(),
2290
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2320
+ taxableAmount: /* @__PURE__ */ z.object({
2321
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2322
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2291
2323
  }).describe("Amount for which tax is calculated.").optional(),
2292
- taxRate: z.string().describe("Tax rate %, as a decimal point.").optional().nullable(),
2293
- taxGroupId: z.string().describe("Tax group ID.").regex(
2324
+ taxRate: /* @__PURE__ */ z.string().describe("Tax rate %, as a decimal point.").optional().nullable(),
2325
+ taxGroupId: /* @__PURE__ */ z.string().describe("Tax group ID.").regex(
2294
2326
  /^[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}$/,
2295
2327
  "Must be a valid GUID"
2296
2328
  ).optional().nullable(),
2297
- taxIncludedInPrice: z.boolean().describe(
2329
+ taxIncludedInPrice: /* @__PURE__ */ z.boolean().describe(
2298
2330
  "Indicates whether the price already includes tax."
2299
2331
  ).optional(),
2300
- taxBreakdown: z.array(
2301
- z.object({
2302
- jurisdiction: z.string().describe(
2332
+ taxBreakdown: /* @__PURE__ */ z.array(
2333
+ /* @__PURE__ */ z.object({
2334
+ jurisdiction: /* @__PURE__ */ z.string().describe(
2303
2335
  'Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec".'
2304
2336
  ).max(200).optional().nullable(),
2305
- rate: z.string().describe(
2337
+ rate: /* @__PURE__ */ z.string().describe(
2306
2338
  "Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000."
2307
2339
  ).optional().nullable(),
2308
- taxAmount: z.object({
2309
- amount: z.string().describe("Amount.").optional(),
2310
- formattedAmount: z.string().describe(
2340
+ taxAmount: /* @__PURE__ */ z.object({
2341
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2342
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2311
2343
  "Amount formatted with currency symbol."
2312
2344
  ).optional()
2313
2345
  }).describe(
2314
2346
  "Amount of tax calculated for this line item."
2315
2347
  ).optional(),
2316
- taxType: z.string().describe(
2348
+ taxType: /* @__PURE__ */ z.string().describe(
2317
2349
  `The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc.`
2318
2350
  ).max(200).optional().nullable(),
2319
- taxName: z.string().describe(
2351
+ taxName: /* @__PURE__ */ z.string().describe(
2320
2352
  'The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.\nThis name should be explicit enough to allow the merchant to understand what tax was calculated.'
2321
2353
  ).max(200).optional().nullable(),
2322
- jurisdictionType: z.enum([
2354
+ jurisdictionType: /* @__PURE__ */ z.enum([
2323
2355
  "UNDEFINED",
2324
2356
  "COUNTRY",
2325
2357
  "STATE",
@@ -2329,17 +2361,17 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2329
2361
  ]).describe(
2330
2362
  "Type of jurisdiction that taxes were calculated for."
2331
2363
  ).optional(),
2332
- nonTaxableAmount: z.object({
2333
- amount: z.string().describe("Amount.").optional(),
2334
- formattedAmount: z.string().describe(
2364
+ nonTaxableAmount: /* @__PURE__ */ z.object({
2365
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2366
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2335
2367
  "Amount formatted with currency symbol."
2336
2368
  ).optional()
2337
2369
  }).describe(
2338
2370
  "Non-taxable amount of the line item price."
2339
2371
  ).optional(),
2340
- taxableAmount: z.object({
2341
- amount: z.string().describe("Amount.").optional(),
2342
- formattedAmount: z.string().describe(
2372
+ taxableAmount: /* @__PURE__ */ z.object({
2373
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2374
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2343
2375
  "Amount formatted with currency symbol."
2344
2376
  ).optional()
2345
2377
  }).describe("Taxable amount of the line item price.").optional()
@@ -2348,111 +2380,111 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2348
2380
  }).describe(
2349
2381
  "Represents all the relevant tax details for a shipping."
2350
2382
  ).optional(),
2351
- discount: z.object({
2352
- amount: z.string().describe("Amount.").optional(),
2353
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2383
+ discount: /* @__PURE__ */ z.object({
2384
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2385
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2354
2386
  }).describe("Shipping discount before tax.").optional()
2355
2387
  }).describe("Shipping costs.").optional(),
2356
- region: z.object({
2357
- name: z.string().describe(
2388
+ region: /* @__PURE__ */ z.object({
2389
+ name: /* @__PURE__ */ z.string().describe(
2358
2390
  'Name of shipping region. For example, `"Metropolitan London"`, or `"Outer Melbourne suburbs"`.'
2359
2391
  ).max(100).optional().nullable()
2360
2392
  }).describe("Shipping region.").optional()
2361
2393
  }).describe("Shipping info and selected shipping option details.").optional(),
2362
- appliedDiscounts: z.array(
2363
- z.intersection(
2364
- z.object({
2365
- discountType: z.enum(["GLOBAL", "SPECIFIC_ITEMS", "SHIPPING"]).optional(),
2366
- lineItemIds: z.array(z.string()).min(0).max(300).optional(),
2367
- _id: z.string().describe("Discount ID.").regex(
2394
+ appliedDiscounts: /* @__PURE__ */ z.array(
2395
+ /* @__PURE__ */ z.intersection(
2396
+ /* @__PURE__ */ z.object({
2397
+ discountType: /* @__PURE__ */ z.enum(["GLOBAL", "SPECIFIC_ITEMS", "SHIPPING"]).optional(),
2398
+ lineItemIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(0).max(300).optional(),
2399
+ _id: /* @__PURE__ */ z.string().describe("Discount ID.").regex(
2368
2400
  /^[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}$/,
2369
2401
  "Must be a valid GUID"
2370
2402
  ).optional().nullable(),
2371
- lineItemDiscounts: z.array(
2372
- z.object({
2373
- _id: z.string().describe("Line item ID.").regex(
2403
+ lineItemDiscounts: /* @__PURE__ */ z.array(
2404
+ /* @__PURE__ */ z.object({
2405
+ _id: /* @__PURE__ */ z.string().describe("Line item ID.").regex(
2374
2406
  /^[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}$/,
2375
2407
  "Must be a valid GUID"
2376
2408
  ).optional(),
2377
- totalDiscount: z.object({
2378
- amount: z.string().describe("Amount.").optional(),
2379
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2409
+ totalDiscount: /* @__PURE__ */ z.object({
2410
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2411
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2380
2412
  }).describe("Total discount amount for this line item.").optional()
2381
2413
  })
2382
2414
  ).max(300).optional()
2383
2415
  }),
2384
- z.xor([
2385
- z.object({
2386
- coupon: z.never().optional(),
2387
- merchantDiscount: z.never().optional(),
2388
- discountRule: z.never().optional()
2416
+ /* @__PURE__ */ z.xor([
2417
+ /* @__PURE__ */ z.object({
2418
+ coupon: /* @__PURE__ */ z.never().optional(),
2419
+ merchantDiscount: /* @__PURE__ */ z.never().optional(),
2420
+ discountRule: /* @__PURE__ */ z.never().optional()
2389
2421
  }),
2390
- z.object({
2391
- merchantDiscount: z.never().optional(),
2392
- discountRule: z.never().optional(),
2393
- coupon: z.object({
2394
- _id: z.string().describe("Coupon ID.").optional(),
2395
- code: z.string().describe("Coupon code.").optional(),
2396
- name: z.string().describe("Coupon name.").optional(),
2397
- amount: z.object({
2398
- amount: z.string().describe("Amount.").optional(),
2399
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2422
+ /* @__PURE__ */ z.object({
2423
+ merchantDiscount: /* @__PURE__ */ z.never().optional(),
2424
+ discountRule: /* @__PURE__ */ z.never().optional(),
2425
+ coupon: /* @__PURE__ */ z.object({
2426
+ _id: /* @__PURE__ */ z.string().describe("Coupon ID.").optional(),
2427
+ code: /* @__PURE__ */ z.string().describe("Coupon code.").optional(),
2428
+ name: /* @__PURE__ */ z.string().describe("Coupon name.").optional(),
2429
+ amount: /* @__PURE__ */ z.object({
2430
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2431
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2400
2432
  }).describe("Coupon value.").optional()
2401
2433
  }).describe("Coupon applied by the customer.")
2402
2434
  }),
2403
- z.object({
2404
- coupon: z.never().optional(),
2405
- discountRule: z.never().optional(),
2406
- merchantDiscount: z.intersection(
2407
- z.object({
2408
- amount: z.object({
2409
- amount: z.string().describe("Amount.").optional(),
2410
- formattedAmount: z.string().describe(
2435
+ /* @__PURE__ */ z.object({
2436
+ coupon: /* @__PURE__ */ z.never().optional(),
2437
+ discountRule: /* @__PURE__ */ z.never().optional(),
2438
+ merchantDiscount: /* @__PURE__ */ z.intersection(
2439
+ /* @__PURE__ */ z.object({
2440
+ amount: /* @__PURE__ */ z.object({
2441
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2442
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2411
2443
  "Amount formatted with currency symbol."
2412
2444
  ).optional()
2413
2445
  }).describe("Discount amount.").optional()
2414
2446
  }),
2415
- z.xor([
2416
- z.object({
2417
- discountReason: z.never().optional(),
2418
- description: z.never().optional()
2447
+ /* @__PURE__ */ z.xor([
2448
+ /* @__PURE__ */ z.object({
2449
+ discountReason: /* @__PURE__ */ z.never().optional(),
2450
+ description: /* @__PURE__ */ z.never().optional()
2419
2451
  }),
2420
- z.object({
2421
- description: z.never().optional(),
2422
- discountReason: z.enum([
2452
+ /* @__PURE__ */ z.object({
2453
+ description: /* @__PURE__ */ z.never().optional(),
2454
+ discountReason: /* @__PURE__ */ z.enum([
2423
2455
  "UNSPECIFIED",
2424
2456
  "EXCHANGED_ITEMS",
2425
2457
  "BILLING_ADJUSTMENT"
2426
2458
  ]).describe("Predefined discount reason.")
2427
2459
  }),
2428
- z.object({
2429
- discountReason: z.never().optional(),
2430
- description: z.string().describe(
2460
+ /* @__PURE__ */ z.object({
2461
+ discountReason: /* @__PURE__ */ z.never().optional(),
2462
+ description: /* @__PURE__ */ z.string().describe(
2431
2463
  "Custom discount description as free text."
2432
2464
  ).max(200)
2433
2465
  })
2434
2466
  ])
2435
2467
  ).describe("Discount applied manually by the merchant.")
2436
2468
  }),
2437
- z.object({
2438
- coupon: z.never().optional(),
2439
- merchantDiscount: z.never().optional(),
2440
- discountRule: z.object({
2441
- _id: z.string().describe("Discount rule ID").regex(
2469
+ /* @__PURE__ */ z.object({
2470
+ coupon: /* @__PURE__ */ z.never().optional(),
2471
+ merchantDiscount: /* @__PURE__ */ z.never().optional(),
2472
+ discountRule: /* @__PURE__ */ z.object({
2473
+ _id: /* @__PURE__ */ z.string().describe("Discount rule ID").regex(
2442
2474
  /^[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}$/,
2443
2475
  "Must be a valid GUID"
2444
2476
  ).optional(),
2445
- name: z.object({
2446
- original: z.string().describe(
2477
+ name: /* @__PURE__ */ z.object({
2478
+ original: /* @__PURE__ */ z.string().describe(
2447
2479
  "Original discount rule name (in site's default language)."
2448
2480
  ).min(1).max(256).optional(),
2449
- translated: z.string().describe(
2481
+ translated: /* @__PURE__ */ z.string().describe(
2450
2482
  "Translated discount rule name according to buyer language. Defaults to `original` when not provided."
2451
2483
  ).min(1).max(500).optional().nullable()
2452
2484
  }).describe("Discount rule name").optional(),
2453
- amount: z.object({
2454
- amount: z.string().describe("Amount.").optional(),
2455
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2485
+ amount: /* @__PURE__ */ z.object({
2486
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2487
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2456
2488
  }).describe("Discount value.").optional()
2457
2489
  }).describe(
2458
2490
  "Automatic discount applied by the system based on configured discount rules."
@@ -2461,8 +2493,8 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2461
2493
  ])
2462
2494
  )
2463
2495
  ).max(100).optional(),
2464
- channelInfo: z.object({
2465
- type: z.enum([
2496
+ channelInfo: /* @__PURE__ */ z.object({
2497
+ type: /* @__PURE__ */ z.enum([
2466
2498
  "UNSPECIFIED",
2467
2499
  "WEB",
2468
2500
  "POS",
@@ -2484,42 +2516,42 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2484
2516
  ]).describe(
2485
2517
  "Sales channel that submitted the order.\n\nWhen creating an order via the API to record an external order, use the channel type that matches the original source. If no matching type exists, use `OTHER_PLATFORM`."
2486
2518
  ).optional(),
2487
- externalOrderId: z.string().describe(
2519
+ externalOrderId: /* @__PURE__ */ z.string().describe(
2488
2520
  "Reference to an order ID from an external system. Relevant when recording orders from external platforms."
2489
2521
  ).max(100).optional().nullable(),
2490
- externalOrderUrl: z.string().describe(
2522
+ externalOrderUrl: /* @__PURE__ */ z.string().describe(
2491
2523
  "URL to the order in the external system. Relevant when recording orders from external platforms."
2492
2524
  ).max(300).optional().nullable()
2493
2525
  }).describe(
2494
2526
  "Information about the sales channel that submitted this order."
2495
2527
  ).optional(),
2496
- customFields: z.array(
2497
- z.object({
2498
- value: z.any().describe("Custom field value.").optional().nullable(),
2499
- title: z.string().describe("Custom field title.").min(1).max(500).optional(),
2500
- translatedTitle: z.string().describe("Translated custom field title.").min(1).max(500).optional().nullable()
2528
+ customFields: /* @__PURE__ */ z.array(
2529
+ /* @__PURE__ */ z.object({
2530
+ value: /* @__PURE__ */ z.any().describe("Custom field value.").optional().nullable(),
2531
+ title: /* @__PURE__ */ z.string().describe("Custom field title.").min(1).max(500).optional(),
2532
+ translatedTitle: /* @__PURE__ */ z.string().describe("Translated custom field title.").min(1).max(500).optional().nullable()
2501
2533
  })
2502
2534
  ).max(100).optional(),
2503
- recipientInfo: z.object({
2504
- address: z.object({
2505
- streetAddress: z.object({
2506
- name: z.string().optional(),
2507
- number: z.string().optional()
2535
+ recipientInfo: /* @__PURE__ */ z.object({
2536
+ address: /* @__PURE__ */ z.object({
2537
+ streetAddress: /* @__PURE__ */ z.object({
2538
+ name: /* @__PURE__ */ z.string().optional(),
2539
+ number: /* @__PURE__ */ z.string().optional()
2508
2540
  }).optional(),
2509
- city: z.string().optional().nullable(),
2510
- subdivision: z.string().optional().nullable(),
2511
- country: z.string().optional().nullable(),
2512
- postalCode: z.string().optional().nullable(),
2513
- addressLine2: z.string().optional().nullable()
2541
+ city: /* @__PURE__ */ z.string().optional().nullable(),
2542
+ subdivision: /* @__PURE__ */ z.string().optional().nullable(),
2543
+ country: /* @__PURE__ */ z.string().optional().nullable(),
2544
+ postalCode: /* @__PURE__ */ z.string().optional().nullable(),
2545
+ addressLine2: /* @__PURE__ */ z.string().optional().nullable()
2514
2546
  }).describe("Address.").optional(),
2515
- contactDetails: z.object({
2516
- firstName: z.string().describe("First name.").max(100).optional().nullable(),
2517
- lastName: z.string().describe("Last name.").max(100).optional().nullable(),
2518
- phone: z.string().describe("Phone number.").optional().nullable(),
2519
- company: z.string().describe("Company name.").max(1e3).optional().nullable(),
2520
- vatId: z.object({
2521
- _id: z.string().describe("Customer's tax ID.").optional(),
2522
- type: z.enum(["UNSPECIFIED", "CPF", "CNPJ"]).describe(
2547
+ contactDetails: /* @__PURE__ */ z.object({
2548
+ firstName: /* @__PURE__ */ z.string().describe("First name.").max(100).optional().nullable(),
2549
+ lastName: /* @__PURE__ */ z.string().describe("Last name.").max(100).optional().nullable(),
2550
+ phone: /* @__PURE__ */ z.string().describe("Phone number.").optional().nullable(),
2551
+ company: /* @__PURE__ */ z.string().describe("Company name.").max(1e3).optional().nullable(),
2552
+ vatId: /* @__PURE__ */ z.object({
2553
+ _id: /* @__PURE__ */ z.string().describe("Customer's tax ID.").optional(),
2554
+ type: /* @__PURE__ */ z.enum(["UNSPECIFIED", "CPF", "CNPJ"]).describe(
2523
2555
  "Tax type.\n\nSupported values:\n+ `CPF`: for individual tax payers\n+ `CNPJ`: for corporations"
2524
2556
  ).optional()
2525
2557
  }).describe(
@@ -2529,81 +2561,87 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2529
2561
  }).describe(
2530
2562
  "Order recipient address and contact details.\n\nThis field may differ from the address in `shippingInfo.logistics` when:\n+ The chosen shipping option is pickup point or store pickup.\n+ No shipping option is selected."
2531
2563
  ).optional(),
2532
- extendedFields: z.object({
2533
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
2564
+ extendedFields: /* @__PURE__ */ z.object({
2565
+ namespaces: /* @__PURE__ */ z.record(
2566
+ /* @__PURE__ */ z.string(),
2567
+ /* @__PURE__ */ z.record(
2568
+ /* @__PURE__ */ z.string(),
2569
+ /* @__PURE__ */ z.any()
2570
+ )
2571
+ ).describe(
2534
2572
  "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)."
2535
2573
  ).optional()
2536
2574
  }).describe(
2537
2575
  "Custom field data for the subscription contract object.\n\n[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls."
2538
2576
  ).optional(),
2539
- title: z.string().describe(
2577
+ title: /* @__PURE__ */ z.string().describe(
2540
2578
  'Subscription option title. For example, `"Monthly coffee Subscription"`.'
2541
2579
  ).min(0).max(150).optional().nullable(),
2542
- additionalFees: z.array(
2543
- z.object({
2544
- code: z.string().describe("Additional fee's unique code for future processing.").min(1).max(100).optional().nullable(),
2545
- name: z.string().describe("Name of additional fee.").min(1).max(50).optional(),
2546
- price: z.object({
2547
- amount: z.string().describe("Amount.").optional(),
2548
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2580
+ additionalFees: /* @__PURE__ */ z.array(
2581
+ /* @__PURE__ */ z.object({
2582
+ code: /* @__PURE__ */ z.string().describe("Additional fee's unique code for future processing.").min(1).max(100).optional().nullable(),
2583
+ name: /* @__PURE__ */ z.string().describe("Name of additional fee.").min(1).max(50).optional(),
2584
+ price: /* @__PURE__ */ z.object({
2585
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2586
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2549
2587
  }).describe("Additional fee's price.").optional(),
2550
- taxDetails: z.object({
2551
- taxableAmount: z.object({
2552
- amount: z.string().describe("Amount.").optional(),
2553
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2588
+ taxDetails: /* @__PURE__ */ z.object({
2589
+ taxableAmount: /* @__PURE__ */ z.object({
2590
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2591
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2554
2592
  }).describe("Taxable amount of this line item.").optional(),
2555
- taxRate: z.string().describe(
2593
+ taxRate: /* @__PURE__ */ z.string().describe(
2556
2594
  'Tax rate percentage, as a decimal numeral between 0 and 1. For example, `"0.13"`.'
2557
2595
  ).optional(),
2558
- totalTax: z.object({
2559
- amount: z.string().describe("Amount.").optional(),
2560
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2596
+ totalTax: /* @__PURE__ */ z.object({
2597
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2598
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2561
2599
  }).describe(
2562
2600
  "The calculated tax, based on the `taxableAmount` and `taxRate`."
2563
2601
  ).optional()
2564
2602
  }).describe("Tax details.").optional(),
2565
- taxInfo: z.object({
2566
- taxAmount: z.object({
2567
- amount: z.string().describe("Amount.").optional(),
2568
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2603
+ taxInfo: /* @__PURE__ */ z.object({
2604
+ taxAmount: /* @__PURE__ */ z.object({
2605
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2606
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2569
2607
  }).describe(
2570
2608
  "Calculated tax, based on `taxable_amount` and `tax_rate`."
2571
2609
  ).optional(),
2572
- taxableAmount: z.object({
2573
- amount: z.string().describe("Amount.").optional(),
2574
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2610
+ taxableAmount: /* @__PURE__ */ z.object({
2611
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2612
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2575
2613
  }).describe("Amount for which tax is calculated.").optional(),
2576
- taxRate: z.string().describe("Tax rate %, as a decimal point.").optional().nullable(),
2577
- taxGroupId: z.string().describe("Tax group ID.").regex(
2614
+ taxRate: /* @__PURE__ */ z.string().describe("Tax rate %, as a decimal point.").optional().nullable(),
2615
+ taxGroupId: /* @__PURE__ */ z.string().describe("Tax group ID.").regex(
2578
2616
  /^[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}$/,
2579
2617
  "Must be a valid GUID"
2580
2618
  ).optional().nullable(),
2581
- taxIncludedInPrice: z.boolean().describe(
2619
+ taxIncludedInPrice: /* @__PURE__ */ z.boolean().describe(
2582
2620
  "Indicates whether the price already includes tax."
2583
2621
  ).optional(),
2584
- taxBreakdown: z.array(
2585
- z.object({
2586
- jurisdiction: z.string().describe(
2622
+ taxBreakdown: /* @__PURE__ */ z.array(
2623
+ /* @__PURE__ */ z.object({
2624
+ jurisdiction: /* @__PURE__ */ z.string().describe(
2587
2625
  'Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec".'
2588
2626
  ).max(200).optional().nullable(),
2589
- rate: z.string().describe(
2627
+ rate: /* @__PURE__ */ z.string().describe(
2590
2628
  "Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000."
2591
2629
  ).optional().nullable(),
2592
- taxAmount: z.object({
2593
- amount: z.string().describe("Amount.").optional(),
2594
- formattedAmount: z.string().describe(
2630
+ taxAmount: /* @__PURE__ */ z.object({
2631
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2632
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2595
2633
  "Amount formatted with currency symbol."
2596
2634
  ).optional()
2597
2635
  }).describe(
2598
2636
  "Amount of tax calculated for this line item."
2599
2637
  ).optional(),
2600
- taxType: z.string().describe(
2638
+ taxType: /* @__PURE__ */ z.string().describe(
2601
2639
  `The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc.`
2602
2640
  ).max(200).optional().nullable(),
2603
- taxName: z.string().describe(
2641
+ taxName: /* @__PURE__ */ z.string().describe(
2604
2642
  'The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.\nThis name should be explicit enough to allow the merchant to understand what tax was calculated.'
2605
2643
  ).max(200).optional().nullable(),
2606
- jurisdictionType: z.enum([
2644
+ jurisdictionType: /* @__PURE__ */ z.enum([
2607
2645
  "UNDEFINED",
2608
2646
  "COUNTRY",
2609
2647
  "STATE",
@@ -2613,17 +2651,17 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2613
2651
  ]).describe(
2614
2652
  "Type of jurisdiction that taxes were calculated for."
2615
2653
  ).optional(),
2616
- nonTaxableAmount: z.object({
2617
- amount: z.string().describe("Amount.").optional(),
2618
- formattedAmount: z.string().describe(
2654
+ nonTaxableAmount: /* @__PURE__ */ z.object({
2655
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2656
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2619
2657
  "Amount formatted with currency symbol."
2620
2658
  ).optional()
2621
2659
  }).describe(
2622
2660
  "Non-taxable amount of the line item price."
2623
2661
  ).optional(),
2624
- taxableAmount: z.object({
2625
- amount: z.string().describe("Amount.").optional(),
2626
- formattedAmount: z.string().describe(
2662
+ taxableAmount: /* @__PURE__ */ z.object({
2663
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2664
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2627
2665
  "Amount formatted with currency symbol."
2628
2666
  ).optional()
2629
2667
  }).describe("Taxable amount of the line item price.").optional()
@@ -2632,36 +2670,38 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2632
2670
  }).describe(
2633
2671
  "Represents all the relevant tax details for additional fee."
2634
2672
  ).optional(),
2635
- providerAppId: z.string().describe("SPI implementer's `appId`.").regex(
2673
+ providerAppId: /* @__PURE__ */ z.string().describe("SPI implementer's `appId`.").regex(
2636
2674
  /^[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}$/,
2637
2675
  "Must be a valid GUID"
2638
2676
  ).optional().nullable(),
2639
- priceBeforeTax: z.object({
2640
- amount: z.string().describe("Amount.").optional(),
2641
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2677
+ priceBeforeTax: /* @__PURE__ */ z.object({
2678
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2679
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2642
2680
  }).describe("Additional fee's price before tax.").optional(),
2643
- priceAfterTax: z.object({
2644
- amount: z.string().describe("Amount.").optional(),
2645
- formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
2681
+ priceAfterTax: /* @__PURE__ */ z.object({
2682
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2683
+ formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
2646
2684
  }).describe("Additional fee's price after tax.").optional(),
2647
- _id: z.string().describe("Additional fee's id.").regex(
2685
+ _id: /* @__PURE__ */ z.string().describe("Additional fee's id.").regex(
2648
2686
  /^[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}$/,
2649
2687
  "Must be a valid GUID"
2650
2688
  ).optional(),
2651
- lineItemIds: z.array(z.string()).optional(),
2652
- source: z.enum([
2689
+ lineItemIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
2690
+ source: /* @__PURE__ */ z.enum([
2653
2691
  "SERVICE_PLUGIN",
2654
2692
  "ITEM",
2655
2693
  "MANUAL",
2656
2694
  "SHIPPING",
2657
2695
  "PLATFORM"
2658
2696
  ]).describe("Specifies the entity that added the additional fee.").optional(),
2659
- taxableAddress: z.intersection(
2660
- z.object({}),
2661
- z.xor([
2662
- z.object({ addressType: z.never().optional() }),
2663
- z.object({
2664
- addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
2697
+ taxableAddress: /* @__PURE__ */ z.intersection(
2698
+ /* @__PURE__ */ z.object({}),
2699
+ /* @__PURE__ */ z.xor([
2700
+ /* @__PURE__ */ z.object({
2701
+ addressType: /* @__PURE__ */ z.never().optional()
2702
+ }),
2703
+ /* @__PURE__ */ z.object({
2704
+ addressType: /* @__PURE__ */ z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
2665
2705
  "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
2666
2706
  )
2667
2707
  })
@@ -2671,33 +2711,33 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2671
2711
  ).optional()
2672
2712
  })
2673
2713
  ).max(100).optional(),
2674
- activities: z.array(
2675
- z.intersection(
2676
- z.object({
2677
- _id: z.string().describe("Activity ID.").regex(
2714
+ activities: /* @__PURE__ */ z.array(
2715
+ /* @__PURE__ */ z.intersection(
2716
+ /* @__PURE__ */ z.object({
2717
+ _id: /* @__PURE__ */ z.string().describe("Activity ID.").regex(
2678
2718
  /^[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}$/,
2679
2719
  "Must be a valid GUID"
2680
2720
  ).optional(),
2681
- _createdDate: z.date().describe("When the activity occurred.").optional().nullable(),
2682
- author: z.intersection(
2683
- z.object({}),
2684
- z.xor([
2685
- z.object({
2686
- userId: z.never().optional(),
2687
- appId: z.never().optional()
2721
+ _createdDate: /* @__PURE__ */ z.date().describe("When the activity occurred.").optional().nullable(),
2722
+ author: /* @__PURE__ */ z.intersection(
2723
+ /* @__PURE__ */ z.object({}),
2724
+ /* @__PURE__ */ z.xor([
2725
+ /* @__PURE__ */ z.object({
2726
+ userId: /* @__PURE__ */ z.never().optional(),
2727
+ appId: /* @__PURE__ */ z.never().optional()
2688
2728
  }),
2689
- z.object({
2690
- appId: z.never().optional(),
2691
- userId: z.string().describe(
2729
+ /* @__PURE__ */ z.object({
2730
+ appId: /* @__PURE__ */ z.never().optional(),
2731
+ userId: /* @__PURE__ */ z.string().describe(
2692
2732
  "User ID. When the draft order was created by a Wix user."
2693
2733
  ).regex(
2694
2734
  /^[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}$/,
2695
2735
  "Must be a valid GUID"
2696
2736
  )
2697
2737
  }),
2698
- z.object({
2699
- userId: z.never().optional(),
2700
- appId: z.string().describe(
2738
+ /* @__PURE__ */ z.object({
2739
+ userId: /* @__PURE__ */ z.never().optional(),
2740
+ appId: /* @__PURE__ */ z.string().describe(
2701
2741
  "App ID. When the draft order was created by an app."
2702
2742
  ).regex(
2703
2743
  /^[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}$/,
@@ -2706,14 +2746,16 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2706
2746
  })
2707
2747
  ])
2708
2748
  ).describe("Identity of the draft order's initiator.").optional(),
2709
- activityType: z.enum(["UNKNOWN_ACTIVITY_TYPE", "CHANGES_APPLIED"]).describe("Activity type.").optional()
2749
+ activityType: /* @__PURE__ */ z.enum(["UNKNOWN_ACTIVITY_TYPE", "CHANGES_APPLIED"]).describe("Activity type.").optional()
2710
2750
  }),
2711
- z.intersection(
2712
- z.xor([
2713
- z.object({ contractTarget: z.never().optional() }),
2714
- z.object({
2715
- contractTarget: z.object({
2716
- nextCycleNumber: z.number().int().describe(
2751
+ /* @__PURE__ */ z.intersection(
2752
+ /* @__PURE__ */ z.xor([
2753
+ /* @__PURE__ */ z.object({
2754
+ contractTarget: /* @__PURE__ */ z.never().optional()
2755
+ }),
2756
+ /* @__PURE__ */ z.object({
2757
+ contractTarget: /* @__PURE__ */ z.object({
2758
+ nextCycleNumber: /* @__PURE__ */ z.number().int().describe(
2717
2759
  "Cycle number of the next billing cycle (1-based). Set by the caller; returned by the server on read."
2718
2760
  ).optional().nullable()
2719
2761
  }).describe(
@@ -2721,63 +2763,65 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2721
2763
  )
2722
2764
  })
2723
2765
  ]),
2724
- z.xor([
2725
- z.object({ changesApplied: z.never().optional() }),
2726
- z.object({
2727
- changesApplied: z.intersection(
2728
- z.object({
2729
- draftSubscriptionContractId: z.string().describe(
2766
+ /* @__PURE__ */ z.xor([
2767
+ /* @__PURE__ */ z.object({
2768
+ changesApplied: /* @__PURE__ */ z.never().optional()
2769
+ }),
2770
+ /* @__PURE__ */ z.object({
2771
+ changesApplied: /* @__PURE__ */ z.intersection(
2772
+ /* @__PURE__ */ z.object({
2773
+ draftSubscriptionContractId: /* @__PURE__ */ z.string().describe(
2730
2774
  "ID of the DraftSubscriptionContract that was committed."
2731
2775
  ).regex(
2732
2776
  /^[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}$/,
2733
2777
  "Must be a valid GUID"
2734
2778
  ).optional(),
2735
- changes: z.array(
2736
- z.intersection(
2737
- z.object({}),
2738
- z.xor([
2739
- z.object({
2740
- lineItemChanged: z.never().optional(),
2741
- lineItemAdded: z.never().optional(),
2742
- lineItemRemoved: z.never().optional(),
2743
- discountAdded: z.never().optional(),
2744
- discountRemoved: z.never().optional(),
2745
- additionalFeeAdded: z.never().optional(),
2746
- additionalFeeRemoved: z.never().optional(),
2747
- totalPriceChanged: z.never().optional()
2779
+ changes: /* @__PURE__ */ z.array(
2780
+ /* @__PURE__ */ z.intersection(
2781
+ /* @__PURE__ */ z.object({}),
2782
+ /* @__PURE__ */ z.xor([
2783
+ /* @__PURE__ */ z.object({
2784
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
2785
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
2786
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
2787
+ discountAdded: /* @__PURE__ */ z.never().optional(),
2788
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
2789
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
2790
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
2791
+ totalPriceChanged: /* @__PURE__ */ z.never().optional()
2748
2792
  }),
2749
- z.object({
2750
- lineItemAdded: z.never().optional(),
2751
- lineItemRemoved: z.never().optional(),
2752
- discountAdded: z.never().optional(),
2753
- discountRemoved: z.never().optional(),
2754
- additionalFeeAdded: z.never().optional(),
2755
- additionalFeeRemoved: z.never().optional(),
2756
- totalPriceChanged: z.never().optional(),
2757
- lineItemChanged: z.object({
2758
- _id: z.string().describe("Line item ID.").regex(
2793
+ /* @__PURE__ */ z.object({
2794
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
2795
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
2796
+ discountAdded: /* @__PURE__ */ z.never().optional(),
2797
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
2798
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
2799
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
2800
+ totalPriceChanged: /* @__PURE__ */ z.never().optional(),
2801
+ lineItemChanged: /* @__PURE__ */ z.object({
2802
+ _id: /* @__PURE__ */ z.string().describe("Line item ID.").regex(
2759
2803
  /^[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}$/,
2760
2804
  "Must be a valid GUID"
2761
2805
  ).optional(),
2762
- name: z.object({
2763
- original: z.string().describe(
2806
+ name: /* @__PURE__ */ z.object({
2807
+ original: /* @__PURE__ */ z.string().describe(
2764
2808
  "__Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
2765
2809
  ).min(1).max(200).optional(),
2766
- translated: z.string().describe(
2810
+ translated: /* @__PURE__ */ z.string().describe(
2767
2811
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
2768
2812
  ).min(1).max(400).optional().nullable()
2769
2813
  }).describe("Item name after change.").optional(),
2770
- quantity: z.object({
2771
- originalQuantity: z.number().int().describe(
2814
+ quantity: /* @__PURE__ */ z.object({
2815
+ originalQuantity: /* @__PURE__ */ z.number().int().describe(
2772
2816
  "Original item quantity before the change."
2773
2817
  ).min(0).max(1e6).optional(),
2774
- newQuantity: z.number().int().describe(
2818
+ newQuantity: /* @__PURE__ */ z.number().int().describe(
2775
2819
  "New item quantity after the change."
2776
2820
  ).min(0).max(1e6).optional(),
2777
- diff: z.number().int().describe(
2821
+ diff: /* @__PURE__ */ z.number().int().describe(
2778
2822
  "Difference between new and original quantities."
2779
2823
  ).min(1).max(1e6).optional(),
2780
- deltaType: z.enum([
2824
+ deltaType: /* @__PURE__ */ z.enum([
2781
2825
  "QUANTITY_INCREASED",
2782
2826
  "QUANTITY_DECREASED"
2783
2827
  ]).describe(
@@ -2786,84 +2830,84 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2786
2830
  }).describe("Item quantity change.").optional()
2787
2831
  }).describe("Line item was modified.")
2788
2832
  }),
2789
- z.object({
2790
- lineItemChanged: z.never().optional(),
2791
- lineItemRemoved: z.never().optional(),
2792
- discountAdded: z.never().optional(),
2793
- discountRemoved: z.never().optional(),
2794
- additionalFeeAdded: z.never().optional(),
2795
- additionalFeeRemoved: z.never().optional(),
2796
- totalPriceChanged: z.never().optional(),
2797
- lineItemAdded: z.object({
2798
- _id: z.string().describe("Line item ID.").regex(
2833
+ /* @__PURE__ */ z.object({
2834
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
2835
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
2836
+ discountAdded: /* @__PURE__ */ z.never().optional(),
2837
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
2838
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
2839
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
2840
+ totalPriceChanged: /* @__PURE__ */ z.never().optional(),
2841
+ lineItemAdded: /* @__PURE__ */ z.object({
2842
+ _id: /* @__PURE__ */ z.string().describe("Line item ID.").regex(
2799
2843
  /^[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}$/,
2800
2844
  "Must be a valid GUID"
2801
2845
  ).optional(),
2802
- name: z.object({
2803
- original: z.string().describe(
2846
+ name: /* @__PURE__ */ z.object({
2847
+ original: /* @__PURE__ */ z.string().describe(
2804
2848
  "__Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
2805
2849
  ).min(1).max(200).optional(),
2806
- translated: z.string().describe(
2850
+ translated: /* @__PURE__ */ z.string().describe(
2807
2851
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
2808
2852
  ).min(1).max(400).optional().nullable()
2809
2853
  }).describe("Item name.").optional(),
2810
- quantity: z.number().int().describe(
2854
+ quantity: /* @__PURE__ */ z.number().int().describe(
2811
2855
  "Added or removed item quantity."
2812
2856
  ).min(1).max(1e6).optional()
2813
2857
  }).describe(
2814
2858
  "Line item was added to the contract."
2815
2859
  )
2816
2860
  }),
2817
- z.object({
2818
- lineItemChanged: z.never().optional(),
2819
- lineItemAdded: z.never().optional(),
2820
- discountAdded: z.never().optional(),
2821
- discountRemoved: z.never().optional(),
2822
- additionalFeeAdded: z.never().optional(),
2823
- additionalFeeRemoved: z.never().optional(),
2824
- totalPriceChanged: z.never().optional(),
2825
- lineItemRemoved: z.object({
2826
- _id: z.string().describe("Line item ID.").regex(
2861
+ /* @__PURE__ */ z.object({
2862
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
2863
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
2864
+ discountAdded: /* @__PURE__ */ z.never().optional(),
2865
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
2866
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
2867
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
2868
+ totalPriceChanged: /* @__PURE__ */ z.never().optional(),
2869
+ lineItemRemoved: /* @__PURE__ */ z.object({
2870
+ _id: /* @__PURE__ */ z.string().describe("Line item ID.").regex(
2827
2871
  /^[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}$/,
2828
2872
  "Must be a valid GUID"
2829
2873
  ).optional(),
2830
- name: z.object({
2831
- original: z.string().describe(
2874
+ name: /* @__PURE__ */ z.object({
2875
+ original: /* @__PURE__ */ z.string().describe(
2832
2876
  "__Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
2833
2877
  ).min(1).max(200).optional(),
2834
- translated: z.string().describe(
2878
+ translated: /* @__PURE__ */ z.string().describe(
2835
2879
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
2836
2880
  ).min(1).max(400).optional().nullable()
2837
2881
  }).describe("Item name.").optional(),
2838
- quantity: z.number().int().describe(
2882
+ quantity: /* @__PURE__ */ z.number().int().describe(
2839
2883
  "Added or removed item quantity."
2840
2884
  ).min(1).max(1e6).optional()
2841
2885
  }).describe(
2842
2886
  "Line item was removed from the contract."
2843
2887
  )
2844
2888
  }),
2845
- z.object({
2846
- lineItemChanged: z.never().optional(),
2847
- lineItemAdded: z.never().optional(),
2848
- lineItemRemoved: z.never().optional(),
2849
- discountRemoved: z.never().optional(),
2850
- additionalFeeAdded: z.never().optional(),
2851
- additionalFeeRemoved: z.never().optional(),
2852
- totalPriceChanged: z.never().optional(),
2853
- discountAdded: z.object({
2854
- _id: z.string().describe("Discount ID.").regex(
2889
+ /* @__PURE__ */ z.object({
2890
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
2891
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
2892
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
2893
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
2894
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
2895
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
2896
+ totalPriceChanged: /* @__PURE__ */ z.never().optional(),
2897
+ discountAdded: /* @__PURE__ */ z.object({
2898
+ _id: /* @__PURE__ */ z.string().describe("Discount ID.").regex(
2855
2899
  /^[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}$/,
2856
2900
  "Must be a valid GUID"
2857
2901
  ).optional(),
2858
- name: z.object({
2859
- original: z.string().describe(
2902
+ name: /* @__PURE__ */ z.object({
2903
+ original: /* @__PURE__ */ z.string().describe(
2860
2904
  "Value in site default language."
2861
2905
  ).min(1).optional(),
2862
- translated: z.string().describe("Translated value.").min(1).optional().nullable()
2906
+ translated: /* @__PURE__ */ z.string().describe("Translated value.").min(1).optional().nullable()
2863
2907
  }).describe("Discount name.").optional(),
2864
- totalAmount: z.object({
2865
- amount: z.string().describe("Amount.").optional(),
2866
- formattedAmount: z.string().describe(
2908
+ totalAmount: /* @__PURE__ */ z.object({
2909
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2910
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2867
2911
  "Amount formatted with currency symbol."
2868
2912
  ).optional()
2869
2913
  }).describe("Discount amount.").optional()
@@ -2871,28 +2915,28 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2871
2915
  "Discount was added to the contract."
2872
2916
  )
2873
2917
  }),
2874
- z.object({
2875
- lineItemChanged: z.never().optional(),
2876
- lineItemAdded: z.never().optional(),
2877
- lineItemRemoved: z.never().optional(),
2878
- discountAdded: z.never().optional(),
2879
- additionalFeeAdded: z.never().optional(),
2880
- additionalFeeRemoved: z.never().optional(),
2881
- totalPriceChanged: z.never().optional(),
2882
- discountRemoved: z.object({
2883
- _id: z.string().describe("Discount ID.").regex(
2918
+ /* @__PURE__ */ z.object({
2919
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
2920
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
2921
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
2922
+ discountAdded: /* @__PURE__ */ z.never().optional(),
2923
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
2924
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
2925
+ totalPriceChanged: /* @__PURE__ */ z.never().optional(),
2926
+ discountRemoved: /* @__PURE__ */ z.object({
2927
+ _id: /* @__PURE__ */ z.string().describe("Discount ID.").regex(
2884
2928
  /^[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}$/,
2885
2929
  "Must be a valid GUID"
2886
2930
  ).optional(),
2887
- name: z.object({
2888
- original: z.string().describe(
2931
+ name: /* @__PURE__ */ z.object({
2932
+ original: /* @__PURE__ */ z.string().describe(
2889
2933
  "Value in site default language."
2890
2934
  ).min(1).optional(),
2891
- translated: z.string().describe("Translated value.").min(1).optional().nullable()
2935
+ translated: /* @__PURE__ */ z.string().describe("Translated value.").min(1).optional().nullable()
2892
2936
  }).describe("Discount name.").optional(),
2893
- totalAmount: z.object({
2894
- amount: z.string().describe("Amount.").optional(),
2895
- formattedAmount: z.string().describe(
2937
+ totalAmount: /* @__PURE__ */ z.object({
2938
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2939
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2896
2940
  "Amount formatted with currency symbol."
2897
2941
  ).optional()
2898
2942
  }).describe("Discount amount.").optional()
@@ -2900,28 +2944,28 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2900
2944
  "Discount was removed from the contract."
2901
2945
  )
2902
2946
  }),
2903
- z.object({
2904
- lineItemChanged: z.never().optional(),
2905
- lineItemAdded: z.never().optional(),
2906
- lineItemRemoved: z.never().optional(),
2907
- discountAdded: z.never().optional(),
2908
- discountRemoved: z.never().optional(),
2909
- additionalFeeRemoved: z.never().optional(),
2910
- totalPriceChanged: z.never().optional(),
2911
- additionalFeeAdded: z.object({
2912
- _id: z.string().describe("Additional fee ID.").regex(
2947
+ /* @__PURE__ */ z.object({
2948
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
2949
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
2950
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
2951
+ discountAdded: /* @__PURE__ */ z.never().optional(),
2952
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
2953
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
2954
+ totalPriceChanged: /* @__PURE__ */ z.never().optional(),
2955
+ additionalFeeAdded: /* @__PURE__ */ z.object({
2956
+ _id: /* @__PURE__ */ z.string().describe("Additional fee ID.").regex(
2913
2957
  /^[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}$/,
2914
2958
  "Must be a valid GUID"
2915
2959
  ).optional(),
2916
- name: z.object({
2917
- original: z.string().describe(
2960
+ name: /* @__PURE__ */ z.object({
2961
+ original: /* @__PURE__ */ z.string().describe(
2918
2962
  "Value in site default language."
2919
2963
  ).min(1).optional(),
2920
- translated: z.string().describe("Translated value.").min(1).optional().nullable()
2964
+ translated: /* @__PURE__ */ z.string().describe("Translated value.").min(1).optional().nullable()
2921
2965
  }).describe("Additional fee name.").optional(),
2922
- totalAmount: z.object({
2923
- amount: z.string().describe("Amount.").optional(),
2924
- formattedAmount: z.string().describe(
2966
+ totalAmount: /* @__PURE__ */ z.object({
2967
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2968
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2925
2969
  "Amount formatted with currency symbol."
2926
2970
  ).optional()
2927
2971
  }).describe("Additional fee amount.").optional()
@@ -2929,28 +2973,28 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2929
2973
  "Additional fee was added to the contract."
2930
2974
  )
2931
2975
  }),
2932
- z.object({
2933
- lineItemChanged: z.never().optional(),
2934
- lineItemAdded: z.never().optional(),
2935
- lineItemRemoved: z.never().optional(),
2936
- discountAdded: z.never().optional(),
2937
- discountRemoved: z.never().optional(),
2938
- additionalFeeAdded: z.never().optional(),
2939
- totalPriceChanged: z.never().optional(),
2940
- additionalFeeRemoved: z.object({
2941
- _id: z.string().describe("Additional fee ID.").regex(
2976
+ /* @__PURE__ */ z.object({
2977
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
2978
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
2979
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
2980
+ discountAdded: /* @__PURE__ */ z.never().optional(),
2981
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
2982
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
2983
+ totalPriceChanged: /* @__PURE__ */ z.never().optional(),
2984
+ additionalFeeRemoved: /* @__PURE__ */ z.object({
2985
+ _id: /* @__PURE__ */ z.string().describe("Additional fee ID.").regex(
2942
2986
  /^[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}$/,
2943
2987
  "Must be a valid GUID"
2944
2988
  ).optional(),
2945
- name: z.object({
2946
- original: z.string().describe(
2989
+ name: /* @__PURE__ */ z.object({
2990
+ original: /* @__PURE__ */ z.string().describe(
2947
2991
  "Value in site default language."
2948
2992
  ).min(1).optional(),
2949
- translated: z.string().describe("Translated value.").min(1).optional().nullable()
2993
+ translated: /* @__PURE__ */ z.string().describe("Translated value.").min(1).optional().nullable()
2950
2994
  }).describe("Additional fee name.").optional(),
2951
- totalAmount: z.object({
2952
- amount: z.string().describe("Amount.").optional(),
2953
- formattedAmount: z.string().describe(
2995
+ totalAmount: /* @__PURE__ */ z.object({
2996
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
2997
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2954
2998
  "Amount formatted with currency symbol."
2955
2999
  ).optional()
2956
3000
  }).describe("Additional fee amount.").optional()
@@ -2958,26 +3002,26 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2958
3002
  "Additional fee was removed from the contract."
2959
3003
  )
2960
3004
  }),
2961
- z.object({
2962
- lineItemChanged: z.never().optional(),
2963
- lineItemAdded: z.never().optional(),
2964
- lineItemRemoved: z.never().optional(),
2965
- discountAdded: z.never().optional(),
2966
- discountRemoved: z.never().optional(),
2967
- additionalFeeAdded: z.never().optional(),
2968
- additionalFeeRemoved: z.never().optional(),
2969
- totalPriceChanged: z.object({
2970
- originalTotal: z.object({
2971
- amount: z.string().describe("Amount.").optional(),
2972
- formattedAmount: z.string().describe(
3005
+ /* @__PURE__ */ z.object({
3006
+ lineItemChanged: /* @__PURE__ */ z.never().optional(),
3007
+ lineItemAdded: /* @__PURE__ */ z.never().optional(),
3008
+ lineItemRemoved: /* @__PURE__ */ z.never().optional(),
3009
+ discountAdded: /* @__PURE__ */ z.never().optional(),
3010
+ discountRemoved: /* @__PURE__ */ z.never().optional(),
3011
+ additionalFeeAdded: /* @__PURE__ */ z.never().optional(),
3012
+ additionalFeeRemoved: /* @__PURE__ */ z.never().optional(),
3013
+ totalPriceChanged: /* @__PURE__ */ z.object({
3014
+ originalTotal: /* @__PURE__ */ z.object({
3015
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
3016
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2973
3017
  "Amount formatted with currency symbol."
2974
3018
  ).optional()
2975
3019
  }).describe(
2976
3020
  "Total price before the commit."
2977
3021
  ).optional(),
2978
- newTotal: z.object({
2979
- amount: z.string().describe("Amount.").optional(),
2980
- formattedAmount: z.string().describe(
3022
+ newTotal: /* @__PURE__ */ z.object({
3023
+ amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
3024
+ formattedAmount: /* @__PURE__ */ z.string().describe(
2981
3025
  "Amount formatted with currency symbol."
2982
3026
  ).optional()
2983
3027
  }).describe(
@@ -2988,15 +3032,17 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
2988
3032
  ])
2989
3033
  )
2990
3034
  ).max(100).optional(),
2991
- reason: z.string().describe(
3035
+ reason: /* @__PURE__ */ z.string().describe(
2992
3036
  "Reason for the edit, provided by the merchant (optional)."
2993
3037
  ).max(200).optional().nullable()
2994
3038
  }),
2995
- z.xor([
2996
- z.object({ contractTarget: z.never().optional() }),
2997
- z.object({
2998
- contractTarget: z.object({
2999
- nextCycleNumber: z.number().int().describe(
3039
+ /* @__PURE__ */ z.xor([
3040
+ /* @__PURE__ */ z.object({
3041
+ contractTarget: /* @__PURE__ */ z.never().optional()
3042
+ }),
3043
+ /* @__PURE__ */ z.object({
3044
+ contractTarget: /* @__PURE__ */ z.object({
3045
+ nextCycleNumber: /* @__PURE__ */ z.number().int().describe(
3000
3046
  "Cycle number of the next billing cycle (1-based). Set by the caller; returned by the server on read."
3001
3047
  ).optional().nullable()
3002
3048
  }).describe(
@@ -3014,19 +3060,19 @@ var QuerySubscriptionContractsResponse = /* @__PURE__ */ z.object({
3014
3060
  ).max(500).optional()
3015
3061
  })
3016
3062
  ).optional(),
3017
- pagingMetadata: z.object({
3018
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
3019
- cursors: z.object({
3020
- next: z.string().describe(
3063
+ pagingMetadata: /* @__PURE__ */ z.object({
3064
+ count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
3065
+ cursors: /* @__PURE__ */ z.object({
3066
+ next: /* @__PURE__ */ z.string().describe(
3021
3067
  "Cursor string pointing to the next page in the list of results."
3022
3068
  ).max(16e3).optional().nullable(),
3023
- prev: z.string().describe(
3069
+ prev: /* @__PURE__ */ z.string().describe(
3024
3070
  "Cursor pointing to the previous page in the list of results."
3025
3071
  ).max(16e3).optional().nullable()
3026
3072
  }).describe(
3027
3073
  "Cursor strings that point to the next page, previous page, or both."
3028
3074
  ).optional(),
3029
- hasNext: z.boolean().describe(
3075
+ hasNext: /* @__PURE__ */ z.boolean().describe(
3030
3076
  "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."
3031
3077
  ).optional().nullable()
3032
3078
  }).describe("Paging metadata").optional()