@wix/auto_sdk_ecom_checkout-templates 1.0.149 → 1.0.151

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.
@@ -1,115 +1,115 @@
1
1
  // src/ecom-v1-checkout-template-checkout-templates.schemas.ts
2
2
  import * as z from "zod";
3
3
  var CreateCheckoutTemplateRequest = /* @__PURE__ */ z.object({
4
- checkoutTemplate: z.object({
5
- _id: z.string().describe("Checkout template ID.").regex(
4
+ checkoutTemplate: /* @__PURE__ */ z.object({
5
+ _id: /* @__PURE__ */ z.string().describe("Checkout template ID.").regex(
6
6
  /^[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}$/,
7
7
  "Must be a valid GUID"
8
8
  ).optional().nullable(),
9
- status: z.enum(["ACTIVE", "INACTIVE"]).optional(),
10
- customization: z.object({
11
- webClient: z.object({
12
- disabledContinueShoppingButton: z.boolean().describe(
9
+ status: /* @__PURE__ */ z.enum(["ACTIVE", "INACTIVE"]).optional(),
10
+ customization: /* @__PURE__ */ z.object({
11
+ webClient: /* @__PURE__ */ z.object({
12
+ disabledContinueShoppingButton: /* @__PURE__ */ z.boolean().describe(
13
13
  'Whether to disable the "Continue shopping" button.\n\nDefault: `false`'
14
14
  ).optional(),
15
- disabledPolicyAgreementCheckbox: z.boolean().describe(
15
+ disabledPolicyAgreementCheckbox: /* @__PURE__ */ z.boolean().describe(
16
16
  "Whether to disable policy agreement checkout in the checkout page\n\nDefault: `false`"
17
17
  ).optional()
18
18
  }).describe(
19
19
  "Web client customizations. These customizations only apply to the standard Wix checkout page."
20
20
  ).optional(),
21
- lockedGiftCard: z.boolean().describe(
21
+ lockedGiftCard: /* @__PURE__ */ z.boolean().describe(
22
22
  "Whether to lock the ability to add or remove a gift card.\n\nDefault: `false`"
23
23
  ).optional(),
24
- lockedCoupon: z.boolean().describe(
24
+ lockedCoupon: /* @__PURE__ */ z.boolean().describe(
25
25
  "Whether to lock the ability to apply or remove a coupon code.\n\nDefault: `false`"
26
26
  ).optional(),
27
- disabledManualPayment: z.boolean().describe(
27
+ disabledManualPayment: /* @__PURE__ */ z.boolean().describe(
28
28
  "Whether to disable manual payment option for this checkout.\n\nDefault: `false`"
29
29
  ).optional()
30
30
  }).describe(
31
31
  "Custom settings to apply to the checkout page created from this template."
32
32
  ).optional(),
33
- lineItems: z.array(
34
- z.object({
35
- quantity: z.number().int().describe("Item quantity.\n\nMin: `1` <br />\nMax: `100000`").min(1).max(1e5),
36
- catalogReference: z.object({
37
- catalogItemId: z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36),
38
- appId: z.string().describe(
33
+ lineItems: /* @__PURE__ */ z.array(
34
+ /* @__PURE__ */ z.object({
35
+ quantity: /* @__PURE__ */ z.number().int().describe("Item quantity.\n\nMin: `1` <br />\nMax: `100000`").min(1).max(1e5),
36
+ catalogReference: /* @__PURE__ */ z.object({
37
+ catalogItemId: /* @__PURE__ */ z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36),
38
+ appId: /* @__PURE__ */ z.string().describe(
39
39
  '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"`'
40
40
  ).min(1),
41
- options: z.record(z.string(), z.any()).describe(
41
+ options: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
42
42
  "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)."
43
43
  ).optional().nullable()
44
44
  }).describe(
45
45
  "Catalog and item reference. Holds IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin."
46
46
  ),
47
- catalogOverrideFields: z.object({
48
- productName: z.object({
49
- original: z.string().describe(
47
+ catalogOverrideFields: /* @__PURE__ */ z.object({
48
+ productName: /* @__PURE__ */ z.object({
49
+ original: /* @__PURE__ */ z.string().describe(
50
50
  "__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."
51
51
  ).min(1).max(200).optional(),
52
- translated: z.string().describe(
52
+ translated: /* @__PURE__ */ z.string().describe(
53
53
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
54
54
  ).min(1).max(400).optional().nullable()
55
55
  }).describe("Item name.").optional(),
56
- price: z.string().describe("Item price **after** discounts.").optional().nullable(),
57
- fullPrice: z.string().describe("Item price **before** discounts.").optional().nullable(),
58
- descriptionLines: z.array(
59
- z.intersection(
60
- z.object({
61
- name: z.object({
62
- original: z.string().describe(
56
+ price: /* @__PURE__ */ z.string().describe("Item price **after** discounts.").optional().nullable(),
57
+ fullPrice: /* @__PURE__ */ z.string().describe("Item price **before** discounts.").optional().nullable(),
58
+ descriptionLines: /* @__PURE__ */ z.array(
59
+ /* @__PURE__ */ z.intersection(
60
+ /* @__PURE__ */ z.object({
61
+ name: /* @__PURE__ */ z.object({
62
+ original: /* @__PURE__ */ z.string().describe(
63
63
  "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)."
64
64
  ).max(100).optional(),
65
- translated: z.string().describe(
65
+ translated: /* @__PURE__ */ z.string().describe(
66
66
  "Description line name translated into the buyer's language.\n\nDefault: Same as `original`."
67
67
  ).max(200).optional().nullable()
68
68
  }).describe("Description line name.").optional()
69
69
  }),
70
- z.xor([
71
- z.object({
72
- plainText: z.never().optional(),
73
- colorInfo: z.never().optional()
70
+ /* @__PURE__ */ z.xor([
71
+ /* @__PURE__ */ z.object({
72
+ plainText: /* @__PURE__ */ z.never().optional(),
73
+ colorInfo: /* @__PURE__ */ z.never().optional()
74
74
  }),
75
- z.object({
76
- colorInfo: z.never().optional(),
77
- plainText: z.object({
78
- original: z.string().describe(
75
+ /* @__PURE__ */ z.object({
76
+ colorInfo: /* @__PURE__ */ z.never().optional(),
77
+ plainText: /* @__PURE__ */ z.object({
78
+ original: /* @__PURE__ */ z.string().describe(
79
79
  "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)."
80
80
  ).max(600).optional(),
81
- translated: z.string().describe(
81
+ translated: /* @__PURE__ */ z.string().describe(
82
82
  "Description line plain text value translated into the buyer's language.\n\nDefault: Same as `original`."
83
83
  ).max(600).optional().nullable()
84
84
  }).describe("Description line plain text value.")
85
85
  }),
86
- z.object({
87
- plainText: z.never().optional(),
88
- colorInfo: z.object({
89
- original: z.string().describe(
86
+ /* @__PURE__ */ z.object({
87
+ plainText: /* @__PURE__ */ z.never().optional(),
88
+ colorInfo: /* @__PURE__ */ z.object({
89
+ original: /* @__PURE__ */ z.string().describe(
90
90
  "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)."
91
91
  ).max(500).optional(),
92
- translated: z.string().describe(
92
+ translated: /* @__PURE__ */ z.string().describe(
93
93
  "Description line color name translated into the buyer's language.\n\nDefault: Same as `original`."
94
94
  ).max(500).optional().nullable(),
95
- code: z.string().describe("HEX or RGB color code for display.").optional().nullable()
95
+ code: /* @__PURE__ */ z.string().describe("HEX or RGB color code for display.").optional().nullable()
96
96
  }).describe("Description line color value.")
97
97
  })
98
98
  ])
99
99
  )
100
100
  ).min(0).max(20).optional(),
101
- physicalProperties: z.object({
102
- weight: z.number().describe(
101
+ physicalProperties: /* @__PURE__ */ z.object({
102
+ weight: /* @__PURE__ */ z.number().describe(
103
103
  "Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request."
104
104
  ).optional().nullable(),
105
- sku: z.string().describe(
105
+ sku: /* @__PURE__ */ z.string().describe(
106
106
  "Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku)."
107
107
  ).max(40).optional().nullable(),
108
- shippable: z.boolean().describe("Whether this line item is shippable.").optional()
108
+ shippable: /* @__PURE__ */ z.boolean().describe("Whether this line item is shippable.").optional()
109
109
  }).describe("Physical properties of the item.").optional(),
110
- image: z.string().describe("Item image.").optional(),
111
- paymentOption: z.object({
112
- value: z.enum([
110
+ image: /* @__PURE__ */ z.string().describe("Item image.").optional(),
111
+ paymentOption: /* @__PURE__ */ z.object({
112
+ value: /* @__PURE__ */ z.enum([
113
113
  "FULL_PAYMENT_ONLINE",
114
114
  "FULL_PAYMENT_OFFLINE",
115
115
  "MEMBERSHIP",
@@ -118,110 +118,110 @@ var CreateCheckoutTemplateRequest = /* @__PURE__ */ z.object({
118
118
  "MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER"
119
119
  ]).optional()
120
120
  }).describe("Payment method selected for the item.").optional(),
121
- depositAmount: z.string().describe(
121
+ depositAmount: /* @__PURE__ */ z.string().describe(
122
122
  "Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`."
123
123
  ).optional().nullable(),
124
- savePaymentMethod: z.boolean().describe(
124
+ savePaymentMethod: /* @__PURE__ */ z.boolean().describe(
125
125
  "Whether to save the payment method on the order.\n\nDefault: `false`"
126
126
  ).optional().nullable(),
127
- inventoryAppId: z.string().describe("ID of the app managing the inventory.").regex(
127
+ inventoryAppId: /* @__PURE__ */ z.string().describe("ID of the app managing the inventory.").regex(
128
128
  /^[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}$/,
129
129
  "Must be a valid GUID"
130
130
  ).optional().nullable()
131
131
  }).describe("Overriding values for catalog item properties.").optional()
132
132
  })
133
133
  ).max(300).optional(),
134
- customLineItems: z.array(
135
- z.object({
136
- quantity: z.number().int().describe("Custom line item quantity.\n\nMin: `1`\nMax: `100000`").min(1).max(1e5),
137
- price: z.string().describe(
134
+ customLineItems: /* @__PURE__ */ z.array(
135
+ /* @__PURE__ */ z.object({
136
+ quantity: /* @__PURE__ */ z.number().int().describe("Custom line item quantity.\n\nMin: `1`\nMax: `100000`").min(1).max(1e5),
137
+ price: /* @__PURE__ */ z.string().describe(
138
138
  "Custom line item price.\n\nMust be a number or a decimal without symbols."
139
139
  ).optional(),
140
- priceDescription: z.object({
141
- original: z.string().describe(
140
+ priceDescription: /* @__PURE__ */ z.object({
141
+ original: /* @__PURE__ */ z.string().describe(
142
142
  "__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)."
143
143
  ).min(1).max(100).optional(),
144
- translated: z.string().describe(
144
+ translated: /* @__PURE__ */ z.string().describe(
145
145
  "Price description translated into the buyer's language.\n\nDefault: Same as `original`."
146
146
  ).min(1).max(100).optional().nullable()
147
147
  }).describe(
148
148
  'Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".'
149
149
  ).optional(),
150
- descriptionLines: z.array(
151
- z.intersection(
152
- z.object({
153
- name: z.object({
154
- original: z.string().describe(
150
+ descriptionLines: /* @__PURE__ */ z.array(
151
+ /* @__PURE__ */ z.intersection(
152
+ /* @__PURE__ */ z.object({
153
+ name: /* @__PURE__ */ z.object({
154
+ original: /* @__PURE__ */ z.string().describe(
155
155
  "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)."
156
156
  ).max(100).optional(),
157
- translated: z.string().describe(
157
+ translated: /* @__PURE__ */ z.string().describe(
158
158
  "Description line name translated into the buyer's language.\n\nDefault: Same as `original`."
159
159
  ).max(200).optional().nullable()
160
160
  }).describe("Description line name.").optional()
161
161
  }),
162
- z.xor([
163
- z.object({
164
- plainText: z.never().optional(),
165
- colorInfo: z.never().optional()
162
+ /* @__PURE__ */ z.xor([
163
+ /* @__PURE__ */ z.object({
164
+ plainText: /* @__PURE__ */ z.never().optional(),
165
+ colorInfo: /* @__PURE__ */ z.never().optional()
166
166
  }),
167
- z.object({
168
- colorInfo: z.never().optional(),
169
- plainText: z.object({
170
- original: z.string().describe(
167
+ /* @__PURE__ */ z.object({
168
+ colorInfo: /* @__PURE__ */ z.never().optional(),
169
+ plainText: /* @__PURE__ */ z.object({
170
+ original: /* @__PURE__ */ z.string().describe(
171
171
  "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)."
172
172
  ).max(600).optional(),
173
- translated: z.string().describe(
173
+ translated: /* @__PURE__ */ z.string().describe(
174
174
  "Description line plain text value translated into the buyer's language.\n\nDefault: Same as `original`."
175
175
  ).max(600).optional().nullable()
176
176
  }).describe("Description line plain text value.")
177
177
  }),
178
- z.object({
179
- plainText: z.never().optional(),
180
- colorInfo: z.object({
181
- original: z.string().describe(
178
+ /* @__PURE__ */ z.object({
179
+ plainText: /* @__PURE__ */ z.never().optional(),
180
+ colorInfo: /* @__PURE__ */ z.object({
181
+ original: /* @__PURE__ */ z.string().describe(
182
182
  "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)."
183
183
  ).max(500).optional(),
184
- translated: z.string().describe(
184
+ translated: /* @__PURE__ */ z.string().describe(
185
185
  "Description line color name translated into the buyer's language.\n\nDefault: Same as `original`."
186
186
  ).max(500).optional().nullable(),
187
- code: z.string().describe("HEX or RGB color code for display.").optional().nullable()
187
+ code: /* @__PURE__ */ z.string().describe("HEX or RGB color code for display.").optional().nullable()
188
188
  }).describe("Description line color value.")
189
189
  })
190
190
  ])
191
191
  )
192
192
  ).max(10).optional(),
193
- media: z.string().describe("Custom line item's media.").optional(),
194
- _id: z.string().describe(
193
+ media: /* @__PURE__ */ z.string().describe("Custom line item's media.").optional(),
194
+ _id: /* @__PURE__ */ z.string().describe(
195
195
  "Deprecated. Custom line item ID.\n\nTo maintain a unique value for a custom line item across multiple carts and orders, pass `catalogReference` instead.\nLearn more about [custom items with catalog reference](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/catalogs/catalog-and-custom-items#custom-item-with-catalog-reference)."
196
196
  ).regex(
197
197
  /^[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}$/,
198
198
  "Must be a valid GUID"
199
199
  ).optional().nullable(),
200
- taxGroupId: z.string().describe("Tax group ID for this custom line item.").regex(
200
+ taxGroupId: /* @__PURE__ */ z.string().describe("Tax group ID for this custom line item.").regex(
201
201
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
202
202
  "Must be a valid GUID"
203
203
  ).optional().nullable(),
204
- productName: z.object({
205
- original: z.string().describe(
204
+ productName: /* @__PURE__ */ z.object({
205
+ original: /* @__PURE__ */ z.string().describe(
206
206
  "__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."
207
207
  ).min(1).max(200).optional(),
208
- translated: z.string().describe(
208
+ translated: /* @__PURE__ */ z.string().describe(
209
209
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
210
210
  ).min(1).max(400).optional().nullable()
211
211
  }).describe("Name of the item or product."),
212
- url: z.string().describe(
212
+ url: /* @__PURE__ */ z.string().describe(
213
213
  "URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work."
214
214
  ).optional(),
215
- itemType: z.intersection(
216
- z.object({}),
217
- z.xor([
218
- z.object({
219
- preset: z.never().optional(),
220
- custom: z.never().optional()
215
+ itemType: /* @__PURE__ */ z.intersection(
216
+ /* @__PURE__ */ z.object({}),
217
+ /* @__PURE__ */ z.xor([
218
+ /* @__PURE__ */ z.object({
219
+ preset: /* @__PURE__ */ z.never().optional(),
220
+ custom: /* @__PURE__ */ z.never().optional()
221
221
  }),
222
- z.object({
223
- custom: z.never().optional(),
224
- preset: z.enum([
222
+ /* @__PURE__ */ z.object({
223
+ custom: /* @__PURE__ */ z.never().optional(),
224
+ preset: /* @__PURE__ */ z.enum([
225
225
  "UNRECOGNISED",
226
226
  "PHYSICAL",
227
227
  "DIGITAL",
@@ -229,30 +229,30 @@ var CreateCheckoutTemplateRequest = /* @__PURE__ */ z.object({
229
229
  "SERVICE"
230
230
  ]).describe("Preset item type.")
231
231
  }),
232
- z.object({
233
- preset: z.never().optional(),
234
- custom: z.string().describe(
232
+ /* @__PURE__ */ z.object({
233
+ preset: /* @__PURE__ */ z.never().optional(),
234
+ custom: /* @__PURE__ */ z.string().describe(
235
235
  "Custom item type. When none of the preset types are suitable, specifies the custom type."
236
236
  )
237
237
  })
238
238
  ])
239
239
  ).describe("Item type. Either a preset type or custom."),
240
- fullPrice: z.string().describe(
240
+ fullPrice: /* @__PURE__ */ z.string().describe(
241
241
  "Item price **before** catalog-defined discount. Defaults to `price` when not provided."
242
242
  ).optional().nullable(),
243
- quantityAvailable: z.number().int().describe(
243
+ quantityAvailable: /* @__PURE__ */ z.number().int().describe(
244
244
  'Item quantity available for purchase. Only return this if inventory is managed.\nNot returning this field means that the buyer can "infinitely" tick up the number of items in the cart.'
245
245
  ).min(0).max(1e5).optional().nullable(),
246
- physicalProperties: z.object({
247
- weight: z.number().describe(
246
+ physicalProperties: /* @__PURE__ */ z.object({
247
+ weight: /* @__PURE__ */ z.number().describe(
248
248
  "Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request."
249
249
  ).optional().nullable(),
250
- sku: z.string().describe(
250
+ sku: /* @__PURE__ */ z.string().describe(
251
251
  "Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku)."
252
252
  ).max(40).optional().nullable(),
253
- shippable: z.boolean().describe("Whether this line item is shippable.").optional()
253
+ shippable: /* @__PURE__ */ z.boolean().describe("Whether this line item is shippable.").optional()
254
254
  }).describe("Physical properties of the item.").optional(),
255
- paymentOption: z.enum([
255
+ paymentOption: /* @__PURE__ */ z.enum([
256
256
  "FULL_PAYMENT_ONLINE",
257
257
  "FULL_PAYMENT_OFFLINE",
258
258
  "MEMBERSHIP",
@@ -260,118 +260,120 @@ var CreateCheckoutTemplateRequest = /* @__PURE__ */ z.object({
260
260
  "MEMBERSHIP_OFFLINE",
261
261
  "MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER"
262
262
  ]).optional(),
263
- serviceProperties: z.object({
264
- scheduledDate: z.date().describe(
263
+ serviceProperties: /* @__PURE__ */ z.object({
264
+ scheduledDate: /* @__PURE__ */ z.date().describe(
265
265
  "Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\nFor example, the start time of a class."
266
266
  ).optional().nullable(),
267
- numberOfParticipants: z.number().int().describe(
267
+ numberOfParticipants: /* @__PURE__ */ z.number().int().describe(
268
268
  "The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room."
269
269
  ).min(1).max(1e4).optional().nullable()
270
270
  }).describe(
271
271
  "Service properties. When relevant, this contains information such as date and number of participants.\nUsed, among other things, when checking for valid memberships."
272
272
  ).optional(),
273
- rootCatalogItemId: z.string().describe(
273
+ rootCatalogItemId: /* @__PURE__ */ z.string().describe(
274
274
  "In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.\n\n+ For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.\n+ In most cases, this field is the same as `catalogReference.catalogItemId`.\n+ Used in membership validation."
275
275
  ).min(1).max(36).optional().nullable(),
276
- depositAmount: z.string().describe(
276
+ depositAmount: /* @__PURE__ */ z.string().describe(
277
277
  "Partial payment for the given item to be paid upfront during the checkout.\n\nEligible for catalog items with type `DEPOSIT_ONLINE`.\nWhen omitted, the item's price will not be split and is expected to be paid in a single installment."
278
278
  ).optional().nullable(),
279
- deliveryProfileId: z.string().describe("Delivery profile ID.").regex(
279
+ deliveryProfileId: /* @__PURE__ */ z.string().describe("Delivery profile ID.").regex(
280
280
  /^[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}$/,
281
281
  "Must be a valid GUID"
282
282
  ).optional().nullable(),
283
- catalogReference: z.object({
284
- catalogItemId: z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36),
285
- appId: z.string().describe(
283
+ catalogReference: /* @__PURE__ */ z.object({
284
+ catalogItemId: /* @__PURE__ */ z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36),
285
+ appId: /* @__PURE__ */ z.string().describe(
286
286
  '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"`'
287
287
  ).min(1),
288
- options: z.record(z.string(), z.any()).describe(
288
+ options: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
289
289
  "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)."
290
290
  ).optional().nullable()
291
291
  }).describe(
292
292
  "Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin."
293
293
  ).optional(),
294
- priceUndetermined: z.boolean().describe(
294
+ priceUndetermined: /* @__PURE__ */ z.boolean().describe(
295
295
  "Whether the price is not yet defined, and will be updated after the order is created.\n\nDefault: `false`"
296
296
  ).optional(),
297
- fixedQuantity: z.boolean().describe(
297
+ fixedQuantity: /* @__PURE__ */ z.boolean().describe(
298
298
  "Whether the line item quantity is fixed and cannot be changed.\n\nDefault: `false`"
299
299
  ).optional(),
300
- consentRequiredPaymentPolicy: z.string().describe(
300
+ consentRequiredPaymentPolicy: /* @__PURE__ */ z.string().describe(
301
301
  "Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page."
302
302
  ).min(1).max(1e3).optional().nullable(),
303
- savePaymentMethod: z.boolean().describe(
303
+ savePaymentMethod: /* @__PURE__ */ z.boolean().describe(
304
304
  "Whether to save the payment method on the order.\n\nDefault: `false`"
305
305
  ).optional(),
306
- policies: z.array(
307
- z.object({
308
- title: z.string().describe("Policy title - should be translated").min(1).max(29).optional().nullable(),
309
- content: z.string().describe("Policy content - should be translated").min(1).max(3e3).optional()
306
+ policies: /* @__PURE__ */ z.array(
307
+ /* @__PURE__ */ z.object({
308
+ title: /* @__PURE__ */ z.string().describe("Policy title - should be translated").min(1).max(29).optional().nullable(),
309
+ content: /* @__PURE__ */ z.string().describe("Policy content - should be translated").min(1).max(3e3).optional()
310
310
  })
311
311
  ).max(5).optional(),
312
- membersOnly: z.boolean().describe(
312
+ membersOnly: /* @__PURE__ */ z.boolean().describe(
313
313
  "Whether the item can only be purchased by site members.\n\nDefault: `false`"
314
314
  ).optional(),
315
- taxableAddress: z.intersection(
316
- z.object({}),
317
- z.xor([
318
- z.object({ addressType: z.never().optional() }),
319
- z.object({
320
- addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
315
+ taxableAddress: /* @__PURE__ */ z.intersection(
316
+ /* @__PURE__ */ z.object({}),
317
+ /* @__PURE__ */ z.xor([
318
+ /* @__PURE__ */ z.object({
319
+ addressType: /* @__PURE__ */ z.never().optional()
320
+ }),
321
+ /* @__PURE__ */ z.object({
322
+ addressType: /* @__PURE__ */ z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
321
323
  "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
322
324
  )
323
325
  })
324
326
  ])
325
327
  ).describe("Address to use for tax calculation purposes.").optional(),
326
- modifierGroups: z.array(
327
- z.object({
328
- _id: z.string().describe("Modifier group ID.").min(1).max(36).optional(),
329
- name: z.object({
330
- original: z.string().describe(
328
+ modifierGroups: /* @__PURE__ */ z.array(
329
+ /* @__PURE__ */ z.object({
330
+ _id: /* @__PURE__ */ z.string().describe("Modifier group ID.").min(1).max(36).optional(),
331
+ name: /* @__PURE__ */ z.object({
332
+ original: /* @__PURE__ */ z.string().describe(
331
333
  "__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."
332
334
  ).min(1).max(200).optional(),
333
- translated: z.string().describe(
335
+ translated: /* @__PURE__ */ z.string().describe(
334
336
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
335
337
  ).min(1).max(400).optional().nullable()
336
338
  }).describe("Modifier group name.").optional(),
337
- modifiers: z.array(
338
- z.object({
339
- _id: z.string().describe("Modifier ID.").min(1).max(36).optional(),
340
- quantity: z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
341
- label: z.object({
342
- original: z.string().describe(
339
+ modifiers: /* @__PURE__ */ z.array(
340
+ /* @__PURE__ */ z.object({
341
+ _id: /* @__PURE__ */ z.string().describe("Modifier ID.").min(1).max(36).optional(),
342
+ quantity: /* @__PURE__ */ z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
343
+ label: /* @__PURE__ */ z.object({
344
+ original: /* @__PURE__ */ z.string().describe(
343
345
  "__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."
344
346
  ).min(1).max(200).optional(),
345
- translated: z.string().describe(
347
+ translated: /* @__PURE__ */ z.string().describe(
346
348
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
347
349
  ).min(1).max(400).optional().nullable()
348
350
  }).describe("Primary display label for the modifier.").optional(),
349
- details: z.object({
350
- original: z.string().describe(
351
+ details: /* @__PURE__ */ z.object({
352
+ original: /* @__PURE__ */ z.string().describe(
351
353
  "__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."
352
354
  ).min(1).max(200).optional(),
353
- translated: z.string().describe(
355
+ translated: /* @__PURE__ */ z.string().describe(
354
356
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
355
357
  ).min(1).max(400).optional().nullable()
356
358
  }).describe("Additional details.").optional(),
357
- price: z.string().describe("The price of the modifier.").optional().nullable()
359
+ price: /* @__PURE__ */ z.string().describe("The price of the modifier.").optional().nullable()
358
360
  })
359
361
  ).min(1).max(25).optional()
360
362
  })
361
363
  ).max(25).optional()
362
364
  })
363
365
  ).max(300).optional(),
364
- couponCode: z.string().describe(
366
+ couponCode: /* @__PURE__ */ z.string().describe(
365
367
  "Coupon code.\n\nNote that a checkout can only hold one `couponCode` at a time. If an additional `couponCode` is added, it will override the existing `couponCode`.\nFor additional information, see the Coupons API."
366
368
  ).optional().nullable(),
367
- customContentReference: z.object({
368
- appId: z.string().describe(
369
+ customContentReference: /* @__PURE__ */ z.object({
370
+ appId: /* @__PURE__ */ z.string().describe(
369
371
  "ID of the app providing the content.\n\nYou can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/)."
370
372
  ).regex(
371
373
  /^[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}$/,
372
374
  "Must be a valid GUID"
373
375
  ).optional(),
374
- componentId: z.string().describe(
376
+ componentId: /* @__PURE__ */ z.string().describe(
375
377
  "ID of the component within the app it belongs to.\n\nYou can get your component's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/)."
376
378
  ).regex(
377
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,14 +382,14 @@ var CreateCheckoutTemplateRequest = /* @__PURE__ */ z.object({
380
382
  }).describe(
381
383
  'Reference IDs for the app and component providing custom checkout page content.\n\nTo access and manage custom checkout page content, your app must have the permission scope named "Manage eCommerce - Admin Permissions".\nLearn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'
382
384
  ).optional(),
383
- externalReference: z.object({
384
- appId: z.string().describe(
385
+ externalReference: /* @__PURE__ */ z.object({
386
+ appId: /* @__PURE__ */ z.string().describe(
385
387
  "ID of the app associated with the purchase flow.\nFor example, the Wix Pay Links app ID."
386
388
  ).regex(
387
389
  /^[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}$/,
388
390
  "Must be a valid GUID"
389
391
  ).optional(),
390
- resourceId: z.string().describe(
392
+ resourceId: /* @__PURE__ */ z.string().describe(
391
393
  "Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.\nFor example, a Wix Pay Link ID."
392
394
  ).min(1).max(100).optional().nullable()
393
395
  }).describe(
@@ -396,116 +398,116 @@ var CreateCheckoutTemplateRequest = /* @__PURE__ */ z.object({
396
398
  }).describe("Checkout template to create.")
397
399
  });
398
400
  var CreateCheckoutTemplateResponse = /* @__PURE__ */ z.object({
399
- _id: z.string().describe("Checkout template ID.").regex(
401
+ _id: /* @__PURE__ */ z.string().describe("Checkout template ID.").regex(
400
402
  /^[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}$/,
401
403
  "Must be a valid GUID"
402
404
  ).optional().nullable(),
403
- status: z.enum(["ACTIVE", "INACTIVE"]).describe(
405
+ status: /* @__PURE__ */ z.enum(["ACTIVE", "INACTIVE"]).describe(
404
406
  "Status of the checkout template.\n\nWhen `status` is `INACTIVE` checkouts will not be created with this template `id`. Instead, the endpoint will redirect to the domain site.\n\nDefault: `ACTIVE`"
405
407
  ).optional(),
406
- customization: z.object({
407
- webClient: z.object({
408
- disabledContinueShoppingButton: z.boolean().describe(
408
+ customization: /* @__PURE__ */ z.object({
409
+ webClient: /* @__PURE__ */ z.object({
410
+ disabledContinueShoppingButton: /* @__PURE__ */ z.boolean().describe(
409
411
  'Whether to disable the "Continue shopping" button.\n\nDefault: `false`'
410
412
  ).optional(),
411
- disabledPolicyAgreementCheckbox: z.boolean().describe(
413
+ disabledPolicyAgreementCheckbox: /* @__PURE__ */ z.boolean().describe(
412
414
  "Whether to disable policy agreement checkout in the checkout page\n\nDefault: `false`"
413
415
  ).optional()
414
416
  }).describe(
415
417
  "Web client customizations. These customizations only apply to the standard Wix checkout page."
416
418
  ).optional(),
417
- lockedGiftCard: z.boolean().describe(
419
+ lockedGiftCard: /* @__PURE__ */ z.boolean().describe(
418
420
  "Whether to lock the ability to add or remove a gift card.\n\nDefault: `false`"
419
421
  ).optional(),
420
- lockedCoupon: z.boolean().describe(
422
+ lockedCoupon: /* @__PURE__ */ z.boolean().describe(
421
423
  "Whether to lock the ability to apply or remove a coupon code.\n\nDefault: `false`"
422
424
  ).optional(),
423
- disabledManualPayment: z.boolean().describe(
425
+ disabledManualPayment: /* @__PURE__ */ z.boolean().describe(
424
426
  "Whether to disable manual payment option for this checkout.\n\nDefault: `false`"
425
427
  ).optional()
426
428
  }).describe(
427
429
  "Custom settings to apply to the checkout page created from this template."
428
430
  ).optional(),
429
- lineItems: z.array(
430
- z.object({
431
- quantity: z.number().int().describe("Item quantity.\n\nMin: `1` <br />\nMax: `100000`").min(1).max(1e5).optional(),
432
- catalogReference: z.object({
433
- catalogItemId: z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
434
- appId: z.string().describe(
431
+ lineItems: /* @__PURE__ */ z.array(
432
+ /* @__PURE__ */ z.object({
433
+ quantity: /* @__PURE__ */ z.number().int().describe("Item quantity.\n\nMin: `1` <br />\nMax: `100000`").min(1).max(1e5).optional(),
434
+ catalogReference: /* @__PURE__ */ z.object({
435
+ catalogItemId: /* @__PURE__ */ z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
436
+ appId: /* @__PURE__ */ z.string().describe(
435
437
  '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"`'
436
438
  ).min(1).optional(),
437
- options: z.record(z.string(), z.any()).describe(
439
+ options: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
438
440
  "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)."
439
441
  ).optional().nullable()
440
442
  }).describe(
441
443
  "Catalog and item reference. Holds IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin."
442
444
  ).optional(),
443
- catalogOverrideFields: z.object({
444
- productName: z.object({
445
- original: z.string().describe(
445
+ catalogOverrideFields: /* @__PURE__ */ z.object({
446
+ productName: /* @__PURE__ */ z.object({
447
+ original: /* @__PURE__ */ z.string().describe(
446
448
  "__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."
447
449
  ).min(1).max(200).optional(),
448
- translated: z.string().describe(
450
+ translated: /* @__PURE__ */ z.string().describe(
449
451
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
450
452
  ).min(1).max(400).optional().nullable()
451
453
  }).describe("Item name.").optional(),
452
- price: z.string().describe("Item price **after** discounts.").optional().nullable(),
453
- fullPrice: z.string().describe("Item price **before** discounts.").optional().nullable(),
454
- descriptionLines: z.array(
455
- z.intersection(
456
- z.object({
457
- name: z.object({
458
- original: z.string().describe(
454
+ price: /* @__PURE__ */ z.string().describe("Item price **after** discounts.").optional().nullable(),
455
+ fullPrice: /* @__PURE__ */ z.string().describe("Item price **before** discounts.").optional().nullable(),
456
+ descriptionLines: /* @__PURE__ */ z.array(
457
+ /* @__PURE__ */ z.intersection(
458
+ /* @__PURE__ */ z.object({
459
+ name: /* @__PURE__ */ z.object({
460
+ original: /* @__PURE__ */ z.string().describe(
459
461
  "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)."
460
462
  ).max(100).optional(),
461
- translated: z.string().describe(
463
+ translated: /* @__PURE__ */ z.string().describe(
462
464
  "Description line name translated into the buyer's language.\n\nDefault: Same as `original`."
463
465
  ).max(200).optional().nullable()
464
466
  }).describe("Description line name.").optional()
465
467
  }),
466
- z.xor([
467
- z.object({
468
- plainText: z.never().optional(),
469
- colorInfo: z.never().optional()
468
+ /* @__PURE__ */ z.xor([
469
+ /* @__PURE__ */ z.object({
470
+ plainText: /* @__PURE__ */ z.never().optional(),
471
+ colorInfo: /* @__PURE__ */ z.never().optional()
470
472
  }),
471
- z.object({
472
- colorInfo: z.never().optional(),
473
- plainText: z.object({
474
- original: z.string().describe(
473
+ /* @__PURE__ */ z.object({
474
+ colorInfo: /* @__PURE__ */ z.never().optional(),
475
+ plainText: /* @__PURE__ */ z.object({
476
+ original: /* @__PURE__ */ z.string().describe(
475
477
  "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)."
476
478
  ).max(600).optional(),
477
- translated: z.string().describe(
479
+ translated: /* @__PURE__ */ z.string().describe(
478
480
  "Description line plain text value translated into the buyer's language.\n\nDefault: Same as `original`."
479
481
  ).max(600).optional().nullable()
480
482
  }).describe("Description line plain text value.")
481
483
  }),
482
- z.object({
483
- plainText: z.never().optional(),
484
- colorInfo: z.object({
485
- original: z.string().describe(
484
+ /* @__PURE__ */ z.object({
485
+ plainText: /* @__PURE__ */ z.never().optional(),
486
+ colorInfo: /* @__PURE__ */ z.object({
487
+ original: /* @__PURE__ */ z.string().describe(
486
488
  "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)."
487
489
  ).max(500).optional(),
488
- translated: z.string().describe(
490
+ translated: /* @__PURE__ */ z.string().describe(
489
491
  "Description line color name translated into the buyer's language.\n\nDefault: Same as `original`."
490
492
  ).max(500).optional().nullable(),
491
- code: z.string().describe("HEX or RGB color code for display.").optional().nullable()
493
+ code: /* @__PURE__ */ z.string().describe("HEX or RGB color code for display.").optional().nullable()
492
494
  }).describe("Description line color value.")
493
495
  })
494
496
  ])
495
497
  )
496
498
  ).min(0).max(20).optional(),
497
- physicalProperties: z.object({
498
- weight: z.number().describe(
499
+ physicalProperties: /* @__PURE__ */ z.object({
500
+ weight: /* @__PURE__ */ z.number().describe(
499
501
  "Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request."
500
502
  ).optional().nullable(),
501
- sku: z.string().describe(
503
+ sku: /* @__PURE__ */ z.string().describe(
502
504
  "Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku)."
503
505
  ).max(40).optional().nullable(),
504
- shippable: z.boolean().describe("Whether this line item is shippable.").optional()
506
+ shippable: /* @__PURE__ */ z.boolean().describe("Whether this line item is shippable.").optional()
505
507
  }).describe("Physical properties of the item.").optional(),
506
- image: z.string().describe("Item image.").optional(),
507
- paymentOption: z.object({
508
- value: z.enum([
508
+ image: /* @__PURE__ */ z.string().describe("Item image.").optional(),
509
+ paymentOption: /* @__PURE__ */ z.object({
510
+ value: /* @__PURE__ */ z.enum([
509
511
  "FULL_PAYMENT_ONLINE",
510
512
  "FULL_PAYMENT_OFFLINE",
511
513
  "MEMBERSHIP",
@@ -516,110 +518,110 @@ var CreateCheckoutTemplateResponse = /* @__PURE__ */ z.object({
516
518
  "Type of selected payment option for current item.\n\nDefault: `FULL_PAYMENT_ONLINE`"
517
519
  ).optional()
518
520
  }).describe("Payment method selected for the item.").optional(),
519
- depositAmount: z.string().describe(
521
+ depositAmount: /* @__PURE__ */ z.string().describe(
520
522
  "Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`."
521
523
  ).optional().nullable(),
522
- savePaymentMethod: z.boolean().describe(
524
+ savePaymentMethod: /* @__PURE__ */ z.boolean().describe(
523
525
  "Whether to save the payment method on the order.\n\nDefault: `false`"
524
526
  ).optional().nullable(),
525
- inventoryAppId: z.string().describe("ID of the app managing the inventory.").regex(
527
+ inventoryAppId: /* @__PURE__ */ z.string().describe("ID of the app managing the inventory.").regex(
526
528
  /^[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}$/,
527
529
  "Must be a valid GUID"
528
530
  ).optional().nullable()
529
531
  }).describe("Overriding values for catalog item properties.").optional()
530
532
  })
531
533
  ).max(300).optional(),
532
- customLineItems: z.array(
533
- z.object({
534
- quantity: z.number().int().describe("Custom line item quantity.\n\nMin: `1`\nMax: `100000`").min(1).max(1e5).optional(),
535
- price: z.string().describe(
534
+ customLineItems: /* @__PURE__ */ z.array(
535
+ /* @__PURE__ */ z.object({
536
+ quantity: /* @__PURE__ */ z.number().int().describe("Custom line item quantity.\n\nMin: `1`\nMax: `100000`").min(1).max(1e5).optional(),
537
+ price: /* @__PURE__ */ z.string().describe(
536
538
  "Custom line item price.\n\nMust be a number or a decimal without symbols."
537
539
  ).optional(),
538
- priceDescription: z.object({
539
- original: z.string().describe(
540
+ priceDescription: /* @__PURE__ */ z.object({
541
+ original: /* @__PURE__ */ z.string().describe(
540
542
  "__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)."
541
543
  ).min(1).max(100).optional(),
542
- translated: z.string().describe(
544
+ translated: /* @__PURE__ */ z.string().describe(
543
545
  "Price description translated into the buyer's language.\n\nDefault: Same as `original`."
544
546
  ).min(1).max(100).optional().nullable()
545
547
  }).describe(
546
548
  'Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".'
547
549
  ).optional(),
548
- descriptionLines: z.array(
549
- z.intersection(
550
- z.object({
551
- name: z.object({
552
- original: z.string().describe(
550
+ descriptionLines: /* @__PURE__ */ z.array(
551
+ /* @__PURE__ */ z.intersection(
552
+ /* @__PURE__ */ z.object({
553
+ name: /* @__PURE__ */ z.object({
554
+ original: /* @__PURE__ */ z.string().describe(
553
555
  "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)."
554
556
  ).max(100).optional(),
555
- translated: z.string().describe(
557
+ translated: /* @__PURE__ */ z.string().describe(
556
558
  "Description line name translated into the buyer's language.\n\nDefault: Same as `original`."
557
559
  ).max(200).optional().nullable()
558
560
  }).describe("Description line name.").optional()
559
561
  }),
560
- z.xor([
561
- z.object({
562
- plainText: z.never().optional(),
563
- colorInfo: z.never().optional()
562
+ /* @__PURE__ */ z.xor([
563
+ /* @__PURE__ */ z.object({
564
+ plainText: /* @__PURE__ */ z.never().optional(),
565
+ colorInfo: /* @__PURE__ */ z.never().optional()
564
566
  }),
565
- z.object({
566
- colorInfo: z.never().optional(),
567
- plainText: z.object({
568
- original: z.string().describe(
567
+ /* @__PURE__ */ z.object({
568
+ colorInfo: /* @__PURE__ */ z.never().optional(),
569
+ plainText: /* @__PURE__ */ z.object({
570
+ original: /* @__PURE__ */ z.string().describe(
569
571
  "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)."
570
572
  ).max(600).optional(),
571
- translated: z.string().describe(
573
+ translated: /* @__PURE__ */ z.string().describe(
572
574
  "Description line plain text value translated into the buyer's language.\n\nDefault: Same as `original`."
573
575
  ).max(600).optional().nullable()
574
576
  }).describe("Description line plain text value.")
575
577
  }),
576
- z.object({
577
- plainText: z.never().optional(),
578
- colorInfo: z.object({
579
- original: z.string().describe(
578
+ /* @__PURE__ */ z.object({
579
+ plainText: /* @__PURE__ */ z.never().optional(),
580
+ colorInfo: /* @__PURE__ */ z.object({
581
+ original: /* @__PURE__ */ z.string().describe(
580
582
  "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)."
581
583
  ).max(500).optional(),
582
- translated: z.string().describe(
584
+ translated: /* @__PURE__ */ z.string().describe(
583
585
  "Description line color name translated into the buyer's language.\n\nDefault: Same as `original`."
584
586
  ).max(500).optional().nullable(),
585
- code: z.string().describe("HEX or RGB color code for display.").optional().nullable()
587
+ code: /* @__PURE__ */ z.string().describe("HEX or RGB color code for display.").optional().nullable()
586
588
  }).describe("Description line color value.")
587
589
  })
588
590
  ])
589
591
  )
590
592
  ).max(10).optional(),
591
- media: z.string().describe("Custom line item's media.").optional(),
592
- _id: z.string().describe(
593
+ media: /* @__PURE__ */ z.string().describe("Custom line item's media.").optional(),
594
+ _id: /* @__PURE__ */ z.string().describe(
593
595
  "Deprecated. Custom line item ID.\n\nTo maintain a unique value for a custom line item across multiple carts and orders, pass `catalogReference` instead.\nLearn more about [custom items with catalog reference](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/catalogs/catalog-and-custom-items#custom-item-with-catalog-reference)."
594
596
  ).regex(
595
597
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
596
598
  "Must be a valid GUID"
597
599
  ).optional().nullable(),
598
- taxGroupId: z.string().describe("Tax group ID for this custom line item.").regex(
600
+ taxGroupId: /* @__PURE__ */ z.string().describe("Tax group ID for this custom line item.").regex(
599
601
  /^[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}$/,
600
602
  "Must be a valid GUID"
601
603
  ).optional().nullable(),
602
- productName: z.object({
603
- original: z.string().describe(
604
+ productName: /* @__PURE__ */ z.object({
605
+ original: /* @__PURE__ */ z.string().describe(
604
606
  "__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."
605
607
  ).min(1).max(200).optional(),
606
- translated: z.string().describe(
608
+ translated: /* @__PURE__ */ z.string().describe(
607
609
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
608
610
  ).min(1).max(400).optional().nullable()
609
611
  }).describe("Name of the item or product.").optional(),
610
- url: z.string().describe(
612
+ url: /* @__PURE__ */ z.string().describe(
611
613
  "URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work."
612
614
  ).optional(),
613
- itemType: z.intersection(
614
- z.object({}),
615
- z.xor([
616
- z.object({
617
- preset: z.never().optional(),
618
- custom: z.never().optional()
615
+ itemType: /* @__PURE__ */ z.intersection(
616
+ /* @__PURE__ */ z.object({}),
617
+ /* @__PURE__ */ z.xor([
618
+ /* @__PURE__ */ z.object({
619
+ preset: /* @__PURE__ */ z.never().optional(),
620
+ custom: /* @__PURE__ */ z.never().optional()
619
621
  }),
620
- z.object({
621
- custom: z.never().optional(),
622
- preset: z.enum([
622
+ /* @__PURE__ */ z.object({
623
+ custom: /* @__PURE__ */ z.never().optional(),
624
+ preset: /* @__PURE__ */ z.enum([
623
625
  "UNRECOGNISED",
624
626
  "PHYSICAL",
625
627
  "DIGITAL",
@@ -627,30 +629,30 @@ var CreateCheckoutTemplateResponse = /* @__PURE__ */ z.object({
627
629
  "SERVICE"
628
630
  ]).describe("Preset item type.")
629
631
  }),
630
- z.object({
631
- preset: z.never().optional(),
632
- custom: z.string().describe(
632
+ /* @__PURE__ */ z.object({
633
+ preset: /* @__PURE__ */ z.never().optional(),
634
+ custom: /* @__PURE__ */ z.string().describe(
633
635
  "Custom item type. When none of the preset types are suitable, specifies the custom type."
634
636
  )
635
637
  })
636
638
  ])
637
639
  ).describe("Item type. Either a preset type or custom.").optional(),
638
- fullPrice: z.string().describe(
640
+ fullPrice: /* @__PURE__ */ z.string().describe(
639
641
  "Item price **before** catalog-defined discount. Defaults to `price` when not provided."
640
642
  ).optional().nullable(),
641
- quantityAvailable: z.number().int().describe(
643
+ quantityAvailable: /* @__PURE__ */ z.number().int().describe(
642
644
  'Item quantity available for purchase. Only return this if inventory is managed.\nNot returning this field means that the buyer can "infinitely" tick up the number of items in the cart.'
643
645
  ).min(0).max(1e5).optional().nullable(),
644
- physicalProperties: z.object({
645
- weight: z.number().describe(
646
+ physicalProperties: /* @__PURE__ */ z.object({
647
+ weight: /* @__PURE__ */ z.number().describe(
646
648
  "Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request."
647
649
  ).optional().nullable(),
648
- sku: z.string().describe(
650
+ sku: /* @__PURE__ */ z.string().describe(
649
651
  "Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku)."
650
652
  ).max(40).optional().nullable(),
651
- shippable: z.boolean().describe("Whether this line item is shippable.").optional()
653
+ shippable: /* @__PURE__ */ z.boolean().describe("Whether this line item is shippable.").optional()
652
654
  }).describe("Physical properties of the item.").optional(),
653
- paymentOption: z.enum([
655
+ paymentOption: /* @__PURE__ */ z.enum([
654
656
  "FULL_PAYMENT_ONLINE",
655
657
  "FULL_PAYMENT_OFFLINE",
656
658
  "MEMBERSHIP",
@@ -660,118 +662,120 @@ var CreateCheckoutTemplateResponse = /* @__PURE__ */ z.object({
660
662
  ]).describe(
661
663
  "Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.\n\n+ `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout.\n+ `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.\n+ `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.\n+ `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Amount to be paid is defined by deposit_amount field."
662
664
  ).optional(),
663
- serviceProperties: z.object({
664
- scheduledDate: z.date().describe(
665
+ serviceProperties: /* @__PURE__ */ z.object({
666
+ scheduledDate: /* @__PURE__ */ z.date().describe(
665
667
  "Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\nFor example, the start time of a class."
666
668
  ).optional().nullable(),
667
- numberOfParticipants: z.number().int().describe(
669
+ numberOfParticipants: /* @__PURE__ */ z.number().int().describe(
668
670
  "The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room."
669
671
  ).min(1).max(1e4).optional().nullable()
670
672
  }).describe(
671
673
  "Service properties. When relevant, this contains information such as date and number of participants.\nUsed, among other things, when checking for valid memberships."
672
674
  ).optional(),
673
- rootCatalogItemId: z.string().describe(
675
+ rootCatalogItemId: /* @__PURE__ */ z.string().describe(
674
676
  "In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.\n\n+ For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.\n+ In most cases, this field is the same as `catalogReference.catalogItemId`.\n+ Used in membership validation."
675
677
  ).min(1).max(36).optional().nullable(),
676
- depositAmount: z.string().describe(
678
+ depositAmount: /* @__PURE__ */ z.string().describe(
677
679
  "Partial payment for the given item to be paid upfront during the checkout.\n\nEligible for catalog items with type `DEPOSIT_ONLINE`.\nWhen omitted, the item's price will not be split and is expected to be paid in a single installment."
678
680
  ).optional().nullable(),
679
- deliveryProfileId: z.string().describe("Delivery profile ID.").regex(
681
+ deliveryProfileId: /* @__PURE__ */ z.string().describe("Delivery profile ID.").regex(
680
682
  /^[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}$/,
681
683
  "Must be a valid GUID"
682
684
  ).optional().nullable(),
683
- catalogReference: z.object({
684
- catalogItemId: z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
685
- appId: z.string().describe(
685
+ catalogReference: /* @__PURE__ */ z.object({
686
+ catalogItemId: /* @__PURE__ */ z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
687
+ appId: /* @__PURE__ */ z.string().describe(
686
688
  '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"`'
687
689
  ).min(1).optional(),
688
- options: z.record(z.string(), z.any()).describe(
690
+ options: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
689
691
  "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)."
690
692
  ).optional().nullable()
691
693
  }).describe(
692
694
  "Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin."
693
695
  ).optional(),
694
- priceUndetermined: z.boolean().describe(
696
+ priceUndetermined: /* @__PURE__ */ z.boolean().describe(
695
697
  "Whether the price is not yet defined, and will be updated after the order is created.\n\nDefault: `false`"
696
698
  ).optional(),
697
- fixedQuantity: z.boolean().describe(
699
+ fixedQuantity: /* @__PURE__ */ z.boolean().describe(
698
700
  "Whether the line item quantity is fixed and cannot be changed.\n\nDefault: `false`"
699
701
  ).optional(),
700
- consentRequiredPaymentPolicy: z.string().describe(
702
+ consentRequiredPaymentPolicy: /* @__PURE__ */ z.string().describe(
701
703
  "Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page."
702
704
  ).min(1).max(1e3).optional().nullable(),
703
- savePaymentMethod: z.boolean().describe(
705
+ savePaymentMethod: /* @__PURE__ */ z.boolean().describe(
704
706
  "Whether to save the payment method on the order.\n\nDefault: `false`"
705
707
  ).optional(),
706
- policies: z.array(
707
- z.object({
708
- title: z.string().describe("Policy title - should be translated").min(1).max(29).optional().nullable(),
709
- content: z.string().describe("Policy content - should be translated").min(1).max(3e3).optional()
708
+ policies: /* @__PURE__ */ z.array(
709
+ /* @__PURE__ */ z.object({
710
+ title: /* @__PURE__ */ z.string().describe("Policy title - should be translated").min(1).max(29).optional().nullable(),
711
+ content: /* @__PURE__ */ z.string().describe("Policy content - should be translated").min(1).max(3e3).optional()
710
712
  })
711
713
  ).max(5).optional(),
712
- membersOnly: z.boolean().describe(
714
+ membersOnly: /* @__PURE__ */ z.boolean().describe(
713
715
  "Whether the item can only be purchased by site members.\n\nDefault: `false`"
714
716
  ).optional(),
715
- taxableAddress: z.intersection(
716
- z.object({}),
717
- z.xor([
718
- z.object({ addressType: z.never().optional() }),
719
- z.object({
720
- addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
717
+ taxableAddress: /* @__PURE__ */ z.intersection(
718
+ /* @__PURE__ */ z.object({}),
719
+ /* @__PURE__ */ z.xor([
720
+ /* @__PURE__ */ z.object({
721
+ addressType: /* @__PURE__ */ z.never().optional()
722
+ }),
723
+ /* @__PURE__ */ z.object({
724
+ addressType: /* @__PURE__ */ z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
721
725
  "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
722
726
  )
723
727
  })
724
728
  ])
725
729
  ).describe("Address to use for tax calculation purposes.").optional(),
726
- modifierGroups: z.array(
727
- z.object({
728
- _id: z.string().describe("Modifier group ID.").min(1).max(36).optional(),
729
- name: z.object({
730
- original: z.string().describe(
730
+ modifierGroups: /* @__PURE__ */ z.array(
731
+ /* @__PURE__ */ z.object({
732
+ _id: /* @__PURE__ */ z.string().describe("Modifier group ID.").min(1).max(36).optional(),
733
+ name: /* @__PURE__ */ z.object({
734
+ original: /* @__PURE__ */ z.string().describe(
731
735
  "__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."
732
736
  ).min(1).max(200).optional(),
733
- translated: z.string().describe(
737
+ translated: /* @__PURE__ */ z.string().describe(
734
738
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
735
739
  ).min(1).max(400).optional().nullable()
736
740
  }).describe("Modifier group name.").optional(),
737
- modifiers: z.array(
738
- z.object({
739
- _id: z.string().describe("Modifier ID.").min(1).max(36).optional(),
740
- quantity: z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
741
- label: z.object({
742
- original: z.string().describe(
741
+ modifiers: /* @__PURE__ */ z.array(
742
+ /* @__PURE__ */ z.object({
743
+ _id: /* @__PURE__ */ z.string().describe("Modifier ID.").min(1).max(36).optional(),
744
+ quantity: /* @__PURE__ */ z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
745
+ label: /* @__PURE__ */ z.object({
746
+ original: /* @__PURE__ */ z.string().describe(
743
747
  "__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."
744
748
  ).min(1).max(200).optional(),
745
- translated: z.string().describe(
749
+ translated: /* @__PURE__ */ z.string().describe(
746
750
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
747
751
  ).min(1).max(400).optional().nullable()
748
752
  }).describe("Primary display label for the modifier.").optional(),
749
- details: z.object({
750
- original: z.string().describe(
753
+ details: /* @__PURE__ */ z.object({
754
+ original: /* @__PURE__ */ z.string().describe(
751
755
  "__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."
752
756
  ).min(1).max(200).optional(),
753
- translated: z.string().describe(
757
+ translated: /* @__PURE__ */ z.string().describe(
754
758
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
755
759
  ).min(1).max(400).optional().nullable()
756
760
  }).describe("Additional details.").optional(),
757
- price: z.string().describe("The price of the modifier.").optional().nullable()
761
+ price: /* @__PURE__ */ z.string().describe("The price of the modifier.").optional().nullable()
758
762
  })
759
763
  ).min(1).max(25).optional()
760
764
  })
761
765
  ).max(25).optional()
762
766
  })
763
767
  ).max(300).optional(),
764
- couponCode: z.string().describe(
768
+ couponCode: /* @__PURE__ */ z.string().describe(
765
769
  "Coupon code.\n\nNote that a checkout can only hold one `couponCode` at a time. If an additional `couponCode` is added, it will override the existing `couponCode`.\nFor additional information, see the Coupons API."
766
770
  ).optional().nullable(),
767
- customContentReference: z.object({
768
- appId: z.string().describe(
771
+ customContentReference: /* @__PURE__ */ z.object({
772
+ appId: /* @__PURE__ */ z.string().describe(
769
773
  "ID of the app providing the content.\n\nYou can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/)."
770
774
  ).regex(
771
775
  /^[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}$/,
772
776
  "Must be a valid GUID"
773
777
  ).optional(),
774
- componentId: z.string().describe(
778
+ componentId: /* @__PURE__ */ z.string().describe(
775
779
  "ID of the component within the app it belongs to.\n\nYou can get your component's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/)."
776
780
  ).regex(
777
781
  /^[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}$/,
@@ -780,14 +784,14 @@ var CreateCheckoutTemplateResponse = /* @__PURE__ */ z.object({
780
784
  }).describe(
781
785
  'Reference IDs for the app and component providing custom checkout page content.\n\nTo access and manage custom checkout page content, your app must have the permission scope named "Manage eCommerce - Admin Permissions".\nLearn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'
782
786
  ).optional(),
783
- externalReference: z.object({
784
- appId: z.string().describe(
787
+ externalReference: /* @__PURE__ */ z.object({
788
+ appId: /* @__PURE__ */ z.string().describe(
785
789
  "ID of the app associated with the purchase flow.\nFor example, the Wix Pay Links app ID."
786
790
  ).regex(
787
791
  /^[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}$/,
788
792
  "Must be a valid GUID"
789
793
  ).optional(),
790
- resourceId: z.string().describe(
794
+ resourceId: /* @__PURE__ */ z.string().describe(
791
795
  "Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.\nFor example, a Wix Pay Link ID."
792
796
  ).min(1).max(100).optional().nullable()
793
797
  }).describe(
@@ -795,122 +799,122 @@ var CreateCheckoutTemplateResponse = /* @__PURE__ */ z.object({
795
799
  ).optional()
796
800
  });
797
801
  var GetCheckoutTemplateRequest = /* @__PURE__ */ z.object({
798
- checkoutTemplateId: z.string().describe("ID of the checkout template to retrieve.").regex(
802
+ checkoutTemplateId: /* @__PURE__ */ z.string().describe("ID of the checkout template to retrieve.").regex(
799
803
  /^[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}$/,
800
804
  "Must be a valid GUID"
801
805
  )
802
806
  });
803
807
  var GetCheckoutTemplateResponse = /* @__PURE__ */ z.object({
804
- _id: z.string().describe("Checkout template ID.").regex(
808
+ _id: /* @__PURE__ */ z.string().describe("Checkout template ID.").regex(
805
809
  /^[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}$/,
806
810
  "Must be a valid GUID"
807
811
  ).optional().nullable(),
808
- status: z.enum(["ACTIVE", "INACTIVE"]).describe(
812
+ status: /* @__PURE__ */ z.enum(["ACTIVE", "INACTIVE"]).describe(
809
813
  "Status of the checkout template.\n\nWhen `status` is `INACTIVE` checkouts will not be created with this template `id`. Instead, the endpoint will redirect to the domain site.\n\nDefault: `ACTIVE`"
810
814
  ).optional(),
811
- customization: z.object({
812
- webClient: z.object({
813
- disabledContinueShoppingButton: z.boolean().describe(
815
+ customization: /* @__PURE__ */ z.object({
816
+ webClient: /* @__PURE__ */ z.object({
817
+ disabledContinueShoppingButton: /* @__PURE__ */ z.boolean().describe(
814
818
  'Whether to disable the "Continue shopping" button.\n\nDefault: `false`'
815
819
  ).optional(),
816
- disabledPolicyAgreementCheckbox: z.boolean().describe(
820
+ disabledPolicyAgreementCheckbox: /* @__PURE__ */ z.boolean().describe(
817
821
  "Whether to disable policy agreement checkout in the checkout page\n\nDefault: `false`"
818
822
  ).optional()
819
823
  }).describe(
820
824
  "Web client customizations. These customizations only apply to the standard Wix checkout page."
821
825
  ).optional(),
822
- lockedGiftCard: z.boolean().describe(
826
+ lockedGiftCard: /* @__PURE__ */ z.boolean().describe(
823
827
  "Whether to lock the ability to add or remove a gift card.\n\nDefault: `false`"
824
828
  ).optional(),
825
- lockedCoupon: z.boolean().describe(
829
+ lockedCoupon: /* @__PURE__ */ z.boolean().describe(
826
830
  "Whether to lock the ability to apply or remove a coupon code.\n\nDefault: `false`"
827
831
  ).optional(),
828
- disabledManualPayment: z.boolean().describe(
832
+ disabledManualPayment: /* @__PURE__ */ z.boolean().describe(
829
833
  "Whether to disable manual payment option for this checkout.\n\nDefault: `false`"
830
834
  ).optional()
831
835
  }).describe(
832
836
  "Custom settings to apply to the checkout page created from this template."
833
837
  ).optional(),
834
- lineItems: z.array(
835
- z.object({
836
- quantity: z.number().int().describe("Item quantity.\n\nMin: `1` <br />\nMax: `100000`").min(1).max(1e5).optional(),
837
- catalogReference: z.object({
838
- catalogItemId: z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
839
- appId: z.string().describe(
838
+ lineItems: /* @__PURE__ */ z.array(
839
+ /* @__PURE__ */ z.object({
840
+ quantity: /* @__PURE__ */ z.number().int().describe("Item quantity.\n\nMin: `1` <br />\nMax: `100000`").min(1).max(1e5).optional(),
841
+ catalogReference: /* @__PURE__ */ z.object({
842
+ catalogItemId: /* @__PURE__ */ z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
843
+ appId: /* @__PURE__ */ z.string().describe(
840
844
  '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"`'
841
845
  ).min(1).optional(),
842
- options: z.record(z.string(), z.any()).describe(
846
+ options: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
843
847
  "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)."
844
848
  ).optional().nullable()
845
849
  }).describe(
846
850
  "Catalog and item reference. Holds IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin."
847
851
  ).optional(),
848
- catalogOverrideFields: z.object({
849
- productName: z.object({
850
- original: z.string().describe(
852
+ catalogOverrideFields: /* @__PURE__ */ z.object({
853
+ productName: /* @__PURE__ */ z.object({
854
+ original: /* @__PURE__ */ z.string().describe(
851
855
  "__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."
852
856
  ).min(1).max(200).optional(),
853
- translated: z.string().describe(
857
+ translated: /* @__PURE__ */ z.string().describe(
854
858
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
855
859
  ).min(1).max(400).optional().nullable()
856
860
  }).describe("Item name.").optional(),
857
- price: z.string().describe("Item price **after** discounts.").optional().nullable(),
858
- fullPrice: z.string().describe("Item price **before** discounts.").optional().nullable(),
859
- descriptionLines: z.array(
860
- z.intersection(
861
- z.object({
862
- name: z.object({
863
- original: z.string().describe(
861
+ price: /* @__PURE__ */ z.string().describe("Item price **after** discounts.").optional().nullable(),
862
+ fullPrice: /* @__PURE__ */ z.string().describe("Item price **before** discounts.").optional().nullable(),
863
+ descriptionLines: /* @__PURE__ */ z.array(
864
+ /* @__PURE__ */ z.intersection(
865
+ /* @__PURE__ */ z.object({
866
+ name: /* @__PURE__ */ z.object({
867
+ original: /* @__PURE__ */ z.string().describe(
864
868
  "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)."
865
869
  ).max(100).optional(),
866
- translated: z.string().describe(
870
+ translated: /* @__PURE__ */ z.string().describe(
867
871
  "Description line name translated into the buyer's language.\n\nDefault: Same as `original`."
868
872
  ).max(200).optional().nullable()
869
873
  }).describe("Description line name.").optional()
870
874
  }),
871
- z.xor([
872
- z.object({
873
- plainText: z.never().optional(),
874
- colorInfo: z.never().optional()
875
+ /* @__PURE__ */ z.xor([
876
+ /* @__PURE__ */ z.object({
877
+ plainText: /* @__PURE__ */ z.never().optional(),
878
+ colorInfo: /* @__PURE__ */ z.never().optional()
875
879
  }),
876
- z.object({
877
- colorInfo: z.never().optional(),
878
- plainText: z.object({
879
- original: z.string().describe(
880
+ /* @__PURE__ */ z.object({
881
+ colorInfo: /* @__PURE__ */ z.never().optional(),
882
+ plainText: /* @__PURE__ */ z.object({
883
+ original: /* @__PURE__ */ z.string().describe(
880
884
  "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)."
881
885
  ).max(600).optional(),
882
- translated: z.string().describe(
886
+ translated: /* @__PURE__ */ z.string().describe(
883
887
  "Description line plain text value translated into the buyer's language.\n\nDefault: Same as `original`."
884
888
  ).max(600).optional().nullable()
885
889
  }).describe("Description line plain text value.")
886
890
  }),
887
- z.object({
888
- plainText: z.never().optional(),
889
- colorInfo: z.object({
890
- original: z.string().describe(
891
+ /* @__PURE__ */ z.object({
892
+ plainText: /* @__PURE__ */ z.never().optional(),
893
+ colorInfo: /* @__PURE__ */ z.object({
894
+ original: /* @__PURE__ */ z.string().describe(
891
895
  "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)."
892
896
  ).max(500).optional(),
893
- translated: z.string().describe(
897
+ translated: /* @__PURE__ */ z.string().describe(
894
898
  "Description line color name translated into the buyer's language.\n\nDefault: Same as `original`."
895
899
  ).max(500).optional().nullable(),
896
- code: z.string().describe("HEX or RGB color code for display.").optional().nullable()
900
+ code: /* @__PURE__ */ z.string().describe("HEX or RGB color code for display.").optional().nullable()
897
901
  }).describe("Description line color value.")
898
902
  })
899
903
  ])
900
904
  )
901
905
  ).min(0).max(20).optional(),
902
- physicalProperties: z.object({
903
- weight: z.number().describe(
906
+ physicalProperties: /* @__PURE__ */ z.object({
907
+ weight: /* @__PURE__ */ z.number().describe(
904
908
  "Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request."
905
909
  ).optional().nullable(),
906
- sku: z.string().describe(
910
+ sku: /* @__PURE__ */ z.string().describe(
907
911
  "Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku)."
908
912
  ).max(40).optional().nullable(),
909
- shippable: z.boolean().describe("Whether this line item is shippable.").optional()
913
+ shippable: /* @__PURE__ */ z.boolean().describe("Whether this line item is shippable.").optional()
910
914
  }).describe("Physical properties of the item.").optional(),
911
- image: z.string().describe("Item image.").optional(),
912
- paymentOption: z.object({
913
- value: z.enum([
915
+ image: /* @__PURE__ */ z.string().describe("Item image.").optional(),
916
+ paymentOption: /* @__PURE__ */ z.object({
917
+ value: /* @__PURE__ */ z.enum([
914
918
  "FULL_PAYMENT_ONLINE",
915
919
  "FULL_PAYMENT_OFFLINE",
916
920
  "MEMBERSHIP",
@@ -921,110 +925,110 @@ var GetCheckoutTemplateResponse = /* @__PURE__ */ z.object({
921
925
  "Type of selected payment option for current item.\n\nDefault: `FULL_PAYMENT_ONLINE`"
922
926
  ).optional()
923
927
  }).describe("Payment method selected for the item.").optional(),
924
- depositAmount: z.string().describe(
928
+ depositAmount: /* @__PURE__ */ z.string().describe(
925
929
  "Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`."
926
930
  ).optional().nullable(),
927
- savePaymentMethod: z.boolean().describe(
931
+ savePaymentMethod: /* @__PURE__ */ z.boolean().describe(
928
932
  "Whether to save the payment method on the order.\n\nDefault: `false`"
929
933
  ).optional().nullable(),
930
- inventoryAppId: z.string().describe("ID of the app managing the inventory.").regex(
934
+ inventoryAppId: /* @__PURE__ */ z.string().describe("ID of the app managing the inventory.").regex(
931
935
  /^[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}$/,
932
936
  "Must be a valid GUID"
933
937
  ).optional().nullable()
934
938
  }).describe("Overriding values for catalog item properties.").optional()
935
939
  })
936
940
  ).max(300).optional(),
937
- customLineItems: z.array(
938
- z.object({
939
- quantity: z.number().int().describe("Custom line item quantity.\n\nMin: `1`\nMax: `100000`").min(1).max(1e5).optional(),
940
- price: z.string().describe(
941
+ customLineItems: /* @__PURE__ */ z.array(
942
+ /* @__PURE__ */ z.object({
943
+ quantity: /* @__PURE__ */ z.number().int().describe("Custom line item quantity.\n\nMin: `1`\nMax: `100000`").min(1).max(1e5).optional(),
944
+ price: /* @__PURE__ */ z.string().describe(
941
945
  "Custom line item price.\n\nMust be a number or a decimal without symbols."
942
946
  ).optional(),
943
- priceDescription: z.object({
944
- original: z.string().describe(
947
+ priceDescription: /* @__PURE__ */ z.object({
948
+ original: /* @__PURE__ */ z.string().describe(
945
949
  "__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)."
946
950
  ).min(1).max(100).optional(),
947
- translated: z.string().describe(
951
+ translated: /* @__PURE__ */ z.string().describe(
948
952
  "Price description translated into the buyer's language.\n\nDefault: Same as `original`."
949
953
  ).min(1).max(100).optional().nullable()
950
954
  }).describe(
951
955
  'Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".'
952
956
  ).optional(),
953
- descriptionLines: z.array(
954
- z.intersection(
955
- z.object({
956
- name: z.object({
957
- original: z.string().describe(
957
+ descriptionLines: /* @__PURE__ */ z.array(
958
+ /* @__PURE__ */ z.intersection(
959
+ /* @__PURE__ */ z.object({
960
+ name: /* @__PURE__ */ z.object({
961
+ original: /* @__PURE__ */ z.string().describe(
958
962
  "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)."
959
963
  ).max(100).optional(),
960
- translated: z.string().describe(
964
+ translated: /* @__PURE__ */ z.string().describe(
961
965
  "Description line name translated into the buyer's language.\n\nDefault: Same as `original`."
962
966
  ).max(200).optional().nullable()
963
967
  }).describe("Description line name.").optional()
964
968
  }),
965
- z.xor([
966
- z.object({
967
- plainText: z.never().optional(),
968
- colorInfo: z.never().optional()
969
+ /* @__PURE__ */ z.xor([
970
+ /* @__PURE__ */ z.object({
971
+ plainText: /* @__PURE__ */ z.never().optional(),
972
+ colorInfo: /* @__PURE__ */ z.never().optional()
969
973
  }),
970
- z.object({
971
- colorInfo: z.never().optional(),
972
- plainText: z.object({
973
- original: z.string().describe(
974
+ /* @__PURE__ */ z.object({
975
+ colorInfo: /* @__PURE__ */ z.never().optional(),
976
+ plainText: /* @__PURE__ */ z.object({
977
+ original: /* @__PURE__ */ z.string().describe(
974
978
  "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)."
975
979
  ).max(600).optional(),
976
- translated: z.string().describe(
980
+ translated: /* @__PURE__ */ z.string().describe(
977
981
  "Description line plain text value translated into the buyer's language.\n\nDefault: Same as `original`."
978
982
  ).max(600).optional().nullable()
979
983
  }).describe("Description line plain text value.")
980
984
  }),
981
- z.object({
982
- plainText: z.never().optional(),
983
- colorInfo: z.object({
984
- original: z.string().describe(
985
+ /* @__PURE__ */ z.object({
986
+ plainText: /* @__PURE__ */ z.never().optional(),
987
+ colorInfo: /* @__PURE__ */ z.object({
988
+ original: /* @__PURE__ */ z.string().describe(
985
989
  "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)."
986
990
  ).max(500).optional(),
987
- translated: z.string().describe(
991
+ translated: /* @__PURE__ */ z.string().describe(
988
992
  "Description line color name translated into the buyer's language.\n\nDefault: Same as `original`."
989
993
  ).max(500).optional().nullable(),
990
- code: z.string().describe("HEX or RGB color code for display.").optional().nullable()
994
+ code: /* @__PURE__ */ z.string().describe("HEX or RGB color code for display.").optional().nullable()
991
995
  }).describe("Description line color value.")
992
996
  })
993
997
  ])
994
998
  )
995
999
  ).max(10).optional(),
996
- media: z.string().describe("Custom line item's media.").optional(),
997
- _id: z.string().describe(
1000
+ media: /* @__PURE__ */ z.string().describe("Custom line item's media.").optional(),
1001
+ _id: /* @__PURE__ */ z.string().describe(
998
1002
  "Deprecated. Custom line item ID.\n\nTo maintain a unique value for a custom line item across multiple carts and orders, pass `catalogReference` instead.\nLearn more about [custom items with catalog reference](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/catalogs/catalog-and-custom-items#custom-item-with-catalog-reference)."
999
1003
  ).regex(
1000
1004
  /^[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}$/,
1001
1005
  "Must be a valid GUID"
1002
1006
  ).optional().nullable(),
1003
- taxGroupId: z.string().describe("Tax group ID for this custom line item.").regex(
1007
+ taxGroupId: /* @__PURE__ */ z.string().describe("Tax group ID for this custom line item.").regex(
1004
1008
  /^[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}$/,
1005
1009
  "Must be a valid GUID"
1006
1010
  ).optional().nullable(),
1007
- productName: z.object({
1008
- original: z.string().describe(
1011
+ productName: /* @__PURE__ */ z.object({
1012
+ original: /* @__PURE__ */ z.string().describe(
1009
1013
  "__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."
1010
1014
  ).min(1).max(200).optional(),
1011
- translated: z.string().describe(
1015
+ translated: /* @__PURE__ */ z.string().describe(
1012
1016
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1013
1017
  ).min(1).max(400).optional().nullable()
1014
1018
  }).describe("Name of the item or product.").optional(),
1015
- url: z.string().describe(
1019
+ url: /* @__PURE__ */ z.string().describe(
1016
1020
  "URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work."
1017
1021
  ).optional(),
1018
- itemType: z.intersection(
1019
- z.object({}),
1020
- z.xor([
1021
- z.object({
1022
- preset: z.never().optional(),
1023
- custom: z.never().optional()
1022
+ itemType: /* @__PURE__ */ z.intersection(
1023
+ /* @__PURE__ */ z.object({}),
1024
+ /* @__PURE__ */ z.xor([
1025
+ /* @__PURE__ */ z.object({
1026
+ preset: /* @__PURE__ */ z.never().optional(),
1027
+ custom: /* @__PURE__ */ z.never().optional()
1024
1028
  }),
1025
- z.object({
1026
- custom: z.never().optional(),
1027
- preset: z.enum([
1029
+ /* @__PURE__ */ z.object({
1030
+ custom: /* @__PURE__ */ z.never().optional(),
1031
+ preset: /* @__PURE__ */ z.enum([
1028
1032
  "UNRECOGNISED",
1029
1033
  "PHYSICAL",
1030
1034
  "DIGITAL",
@@ -1032,30 +1036,30 @@ var GetCheckoutTemplateResponse = /* @__PURE__ */ z.object({
1032
1036
  "SERVICE"
1033
1037
  ]).describe("Preset item type.")
1034
1038
  }),
1035
- z.object({
1036
- preset: z.never().optional(),
1037
- custom: z.string().describe(
1039
+ /* @__PURE__ */ z.object({
1040
+ preset: /* @__PURE__ */ z.never().optional(),
1041
+ custom: /* @__PURE__ */ z.string().describe(
1038
1042
  "Custom item type. When none of the preset types are suitable, specifies the custom type."
1039
1043
  )
1040
1044
  })
1041
1045
  ])
1042
1046
  ).describe("Item type. Either a preset type or custom.").optional(),
1043
- fullPrice: z.string().describe(
1047
+ fullPrice: /* @__PURE__ */ z.string().describe(
1044
1048
  "Item price **before** catalog-defined discount. Defaults to `price` when not provided."
1045
1049
  ).optional().nullable(),
1046
- quantityAvailable: z.number().int().describe(
1050
+ quantityAvailable: /* @__PURE__ */ z.number().int().describe(
1047
1051
  'Item quantity available for purchase. Only return this if inventory is managed.\nNot returning this field means that the buyer can "infinitely" tick up the number of items in the cart.'
1048
1052
  ).min(0).max(1e5).optional().nullable(),
1049
- physicalProperties: z.object({
1050
- weight: z.number().describe(
1053
+ physicalProperties: /* @__PURE__ */ z.object({
1054
+ weight: /* @__PURE__ */ z.number().describe(
1051
1055
  "Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request."
1052
1056
  ).optional().nullable(),
1053
- sku: z.string().describe(
1057
+ sku: /* @__PURE__ */ z.string().describe(
1054
1058
  "Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku)."
1055
1059
  ).max(40).optional().nullable(),
1056
- shippable: z.boolean().describe("Whether this line item is shippable.").optional()
1060
+ shippable: /* @__PURE__ */ z.boolean().describe("Whether this line item is shippable.").optional()
1057
1061
  }).describe("Physical properties of the item.").optional(),
1058
- paymentOption: z.enum([
1062
+ paymentOption: /* @__PURE__ */ z.enum([
1059
1063
  "FULL_PAYMENT_ONLINE",
1060
1064
  "FULL_PAYMENT_OFFLINE",
1061
1065
  "MEMBERSHIP",
@@ -1065,118 +1069,120 @@ var GetCheckoutTemplateResponse = /* @__PURE__ */ z.object({
1065
1069
  ]).describe(
1066
1070
  "Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.\n\n+ `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout.\n+ `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.\n+ `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.\n+ `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Amount to be paid is defined by deposit_amount field."
1067
1071
  ).optional(),
1068
- serviceProperties: z.object({
1069
- scheduledDate: z.date().describe(
1072
+ serviceProperties: /* @__PURE__ */ z.object({
1073
+ scheduledDate: /* @__PURE__ */ z.date().describe(
1070
1074
  "Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\nFor example, the start time of a class."
1071
1075
  ).optional().nullable(),
1072
- numberOfParticipants: z.number().int().describe(
1076
+ numberOfParticipants: /* @__PURE__ */ z.number().int().describe(
1073
1077
  "The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room."
1074
1078
  ).min(1).max(1e4).optional().nullable()
1075
1079
  }).describe(
1076
1080
  "Service properties. When relevant, this contains information such as date and number of participants.\nUsed, among other things, when checking for valid memberships."
1077
1081
  ).optional(),
1078
- rootCatalogItemId: z.string().describe(
1082
+ rootCatalogItemId: /* @__PURE__ */ z.string().describe(
1079
1083
  "In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.\n\n+ For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.\n+ In most cases, this field is the same as `catalogReference.catalogItemId`.\n+ Used in membership validation."
1080
1084
  ).min(1).max(36).optional().nullable(),
1081
- depositAmount: z.string().describe(
1085
+ depositAmount: /* @__PURE__ */ z.string().describe(
1082
1086
  "Partial payment for the given item to be paid upfront during the checkout.\n\nEligible for catalog items with type `DEPOSIT_ONLINE`.\nWhen omitted, the item's price will not be split and is expected to be paid in a single installment."
1083
1087
  ).optional().nullable(),
1084
- deliveryProfileId: z.string().describe("Delivery profile ID.").regex(
1088
+ deliveryProfileId: /* @__PURE__ */ z.string().describe("Delivery profile ID.").regex(
1085
1089
  /^[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}$/,
1086
1090
  "Must be a valid GUID"
1087
1091
  ).optional().nullable(),
1088
- catalogReference: z.object({
1089
- catalogItemId: z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
1090
- appId: z.string().describe(
1092
+ catalogReference: /* @__PURE__ */ z.object({
1093
+ catalogItemId: /* @__PURE__ */ z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
1094
+ appId: /* @__PURE__ */ z.string().describe(
1091
1095
  '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"`'
1092
1096
  ).min(1).optional(),
1093
- options: z.record(z.string(), z.any()).describe(
1097
+ options: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
1094
1098
  "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)."
1095
1099
  ).optional().nullable()
1096
1100
  }).describe(
1097
1101
  "Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin."
1098
1102
  ).optional(),
1099
- priceUndetermined: z.boolean().describe(
1103
+ priceUndetermined: /* @__PURE__ */ z.boolean().describe(
1100
1104
  "Whether the price is not yet defined, and will be updated after the order is created.\n\nDefault: `false`"
1101
1105
  ).optional(),
1102
- fixedQuantity: z.boolean().describe(
1106
+ fixedQuantity: /* @__PURE__ */ z.boolean().describe(
1103
1107
  "Whether the line item quantity is fixed and cannot be changed.\n\nDefault: `false`"
1104
1108
  ).optional(),
1105
- consentRequiredPaymentPolicy: z.string().describe(
1109
+ consentRequiredPaymentPolicy: /* @__PURE__ */ z.string().describe(
1106
1110
  "Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page."
1107
1111
  ).min(1).max(1e3).optional().nullable(),
1108
- savePaymentMethod: z.boolean().describe(
1112
+ savePaymentMethod: /* @__PURE__ */ z.boolean().describe(
1109
1113
  "Whether to save the payment method on the order.\n\nDefault: `false`"
1110
1114
  ).optional(),
1111
- policies: z.array(
1112
- z.object({
1113
- title: z.string().describe("Policy title - should be translated").min(1).max(29).optional().nullable(),
1114
- content: z.string().describe("Policy content - should be translated").min(1).max(3e3).optional()
1115
+ policies: /* @__PURE__ */ z.array(
1116
+ /* @__PURE__ */ z.object({
1117
+ title: /* @__PURE__ */ z.string().describe("Policy title - should be translated").min(1).max(29).optional().nullable(),
1118
+ content: /* @__PURE__ */ z.string().describe("Policy content - should be translated").min(1).max(3e3).optional()
1115
1119
  })
1116
1120
  ).max(5).optional(),
1117
- membersOnly: z.boolean().describe(
1121
+ membersOnly: /* @__PURE__ */ z.boolean().describe(
1118
1122
  "Whether the item can only be purchased by site members.\n\nDefault: `false`"
1119
1123
  ).optional(),
1120
- taxableAddress: z.intersection(
1121
- z.object({}),
1122
- z.xor([
1123
- z.object({ addressType: z.never().optional() }),
1124
- z.object({
1125
- addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
1124
+ taxableAddress: /* @__PURE__ */ z.intersection(
1125
+ /* @__PURE__ */ z.object({}),
1126
+ /* @__PURE__ */ z.xor([
1127
+ /* @__PURE__ */ z.object({
1128
+ addressType: /* @__PURE__ */ z.never().optional()
1129
+ }),
1130
+ /* @__PURE__ */ z.object({
1131
+ addressType: /* @__PURE__ */ z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
1126
1132
  "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
1127
1133
  )
1128
1134
  })
1129
1135
  ])
1130
1136
  ).describe("Address to use for tax calculation purposes.").optional(),
1131
- modifierGroups: z.array(
1132
- z.object({
1133
- _id: z.string().describe("Modifier group ID.").min(1).max(36).optional(),
1134
- name: z.object({
1135
- original: z.string().describe(
1137
+ modifierGroups: /* @__PURE__ */ z.array(
1138
+ /* @__PURE__ */ z.object({
1139
+ _id: /* @__PURE__ */ z.string().describe("Modifier group ID.").min(1).max(36).optional(),
1140
+ name: /* @__PURE__ */ z.object({
1141
+ original: /* @__PURE__ */ z.string().describe(
1136
1142
  "__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."
1137
1143
  ).min(1).max(200).optional(),
1138
- translated: z.string().describe(
1144
+ translated: /* @__PURE__ */ z.string().describe(
1139
1145
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1140
1146
  ).min(1).max(400).optional().nullable()
1141
1147
  }).describe("Modifier group name.").optional(),
1142
- modifiers: z.array(
1143
- z.object({
1144
- _id: z.string().describe("Modifier ID.").min(1).max(36).optional(),
1145
- quantity: z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
1146
- label: z.object({
1147
- original: z.string().describe(
1148
+ modifiers: /* @__PURE__ */ z.array(
1149
+ /* @__PURE__ */ z.object({
1150
+ _id: /* @__PURE__ */ z.string().describe("Modifier ID.").min(1).max(36).optional(),
1151
+ quantity: /* @__PURE__ */ z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
1152
+ label: /* @__PURE__ */ z.object({
1153
+ original: /* @__PURE__ */ z.string().describe(
1148
1154
  "__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."
1149
1155
  ).min(1).max(200).optional(),
1150
- translated: z.string().describe(
1156
+ translated: /* @__PURE__ */ z.string().describe(
1151
1157
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1152
1158
  ).min(1).max(400).optional().nullable()
1153
1159
  }).describe("Primary display label for the modifier.").optional(),
1154
- details: z.object({
1155
- original: z.string().describe(
1160
+ details: /* @__PURE__ */ z.object({
1161
+ original: /* @__PURE__ */ z.string().describe(
1156
1162
  "__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."
1157
1163
  ).min(1).max(200).optional(),
1158
- translated: z.string().describe(
1164
+ translated: /* @__PURE__ */ z.string().describe(
1159
1165
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1160
1166
  ).min(1).max(400).optional().nullable()
1161
1167
  }).describe("Additional details.").optional(),
1162
- price: z.string().describe("The price of the modifier.").optional().nullable()
1168
+ price: /* @__PURE__ */ z.string().describe("The price of the modifier.").optional().nullable()
1163
1169
  })
1164
1170
  ).min(1).max(25).optional()
1165
1171
  })
1166
1172
  ).max(25).optional()
1167
1173
  })
1168
1174
  ).max(300).optional(),
1169
- couponCode: z.string().describe(
1175
+ couponCode: /* @__PURE__ */ z.string().describe(
1170
1176
  "Coupon code.\n\nNote that a checkout can only hold one `couponCode` at a time. If an additional `couponCode` is added, it will override the existing `couponCode`.\nFor additional information, see the Coupons API."
1171
1177
  ).optional().nullable(),
1172
- customContentReference: z.object({
1173
- appId: z.string().describe(
1178
+ customContentReference: /* @__PURE__ */ z.object({
1179
+ appId: /* @__PURE__ */ z.string().describe(
1174
1180
  "ID of the app providing the content.\n\nYou can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/)."
1175
1181
  ).regex(
1176
1182
  /^[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}$/,
1177
1183
  "Must be a valid GUID"
1178
1184
  ).optional(),
1179
- componentId: z.string().describe(
1185
+ componentId: /* @__PURE__ */ z.string().describe(
1180
1186
  "ID of the component within the app it belongs to.\n\nYou can get your component's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/)."
1181
1187
  ).regex(
1182
1188
  /^[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}$/,
@@ -1185,14 +1191,14 @@ var GetCheckoutTemplateResponse = /* @__PURE__ */ z.object({
1185
1191
  }).describe(
1186
1192
  'Reference IDs for the app and component providing custom checkout page content.\n\nTo access and manage custom checkout page content, your app must have the permission scope named "Manage eCommerce - Admin Permissions".\nLearn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'
1187
1193
  ).optional(),
1188
- externalReference: z.object({
1189
- appId: z.string().describe(
1194
+ externalReference: /* @__PURE__ */ z.object({
1195
+ appId: /* @__PURE__ */ z.string().describe(
1190
1196
  "ID of the app associated with the purchase flow.\nFor example, the Wix Pay Links app ID."
1191
1197
  ).regex(
1192
1198
  /^[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}$/,
1193
1199
  "Must be a valid GUID"
1194
1200
  ).optional(),
1195
- resourceId: z.string().describe(
1201
+ resourceId: /* @__PURE__ */ z.string().describe(
1196
1202
  "Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.\nFor example, a Wix Pay Link ID."
1197
1203
  ).min(1).max(100).optional().nullable()
1198
1204
  }).describe(
@@ -1200,119 +1206,119 @@ var GetCheckoutTemplateResponse = /* @__PURE__ */ z.object({
1200
1206
  ).optional()
1201
1207
  });
1202
1208
  var UpdateCheckoutTemplateRequest = /* @__PURE__ */ z.object({
1203
- _id: z.string().describe("Checkout template ID.").regex(
1209
+ _id: /* @__PURE__ */ z.string().describe("Checkout template ID.").regex(
1204
1210
  /^[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}$/,
1205
1211
  "Must be a valid GUID"
1206
1212
  ),
1207
- checkoutTemplate: z.object({
1208
- _id: z.string().describe("Checkout template ID.").regex(
1213
+ checkoutTemplate: /* @__PURE__ */ z.object({
1214
+ _id: /* @__PURE__ */ z.string().describe("Checkout template ID.").regex(
1209
1215
  /^[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}$/,
1210
1216
  "Must be a valid GUID"
1211
1217
  ).optional().nullable(),
1212
- status: z.enum(["ACTIVE", "INACTIVE"]).optional(),
1213
- customization: z.object({
1214
- webClient: z.object({
1215
- disabledContinueShoppingButton: z.boolean().describe(
1218
+ status: /* @__PURE__ */ z.enum(["ACTIVE", "INACTIVE"]).optional(),
1219
+ customization: /* @__PURE__ */ z.object({
1220
+ webClient: /* @__PURE__ */ z.object({
1221
+ disabledContinueShoppingButton: /* @__PURE__ */ z.boolean().describe(
1216
1222
  'Whether to disable the "Continue shopping" button.\n\nDefault: `false`'
1217
1223
  ).optional(),
1218
- disabledPolicyAgreementCheckbox: z.boolean().describe(
1224
+ disabledPolicyAgreementCheckbox: /* @__PURE__ */ z.boolean().describe(
1219
1225
  "Whether to disable policy agreement checkout in the checkout page\n\nDefault: `false`"
1220
1226
  ).optional()
1221
1227
  }).describe(
1222
1228
  "Web client customizations. These customizations only apply to the standard Wix checkout page."
1223
1229
  ).optional(),
1224
- lockedGiftCard: z.boolean().describe(
1230
+ lockedGiftCard: /* @__PURE__ */ z.boolean().describe(
1225
1231
  "Whether to lock the ability to add or remove a gift card.\n\nDefault: `false`"
1226
1232
  ).optional(),
1227
- lockedCoupon: z.boolean().describe(
1233
+ lockedCoupon: /* @__PURE__ */ z.boolean().describe(
1228
1234
  "Whether to lock the ability to apply or remove a coupon code.\n\nDefault: `false`"
1229
1235
  ).optional(),
1230
- disabledManualPayment: z.boolean().describe(
1236
+ disabledManualPayment: /* @__PURE__ */ z.boolean().describe(
1231
1237
  "Whether to disable manual payment option for this checkout.\n\nDefault: `false`"
1232
1238
  ).optional()
1233
1239
  }).describe(
1234
1240
  "Custom settings to apply to the checkout page created from this template."
1235
1241
  ).optional(),
1236
- lineItems: z.array(
1237
- z.object({
1238
- quantity: z.number().int().describe("Item quantity.\n\nMin: `1` <br />\nMax: `100000`").min(1).max(1e5).optional(),
1239
- catalogReference: z.object({
1240
- catalogItemId: z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
1241
- appId: z.string().describe(
1242
+ lineItems: /* @__PURE__ */ z.array(
1243
+ /* @__PURE__ */ z.object({
1244
+ quantity: /* @__PURE__ */ z.number().int().describe("Item quantity.\n\nMin: `1` <br />\nMax: `100000`").min(1).max(1e5).optional(),
1245
+ catalogReference: /* @__PURE__ */ z.object({
1246
+ catalogItemId: /* @__PURE__ */ z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
1247
+ appId: /* @__PURE__ */ z.string().describe(
1242
1248
  '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"`'
1243
1249
  ).min(1).optional(),
1244
- options: z.record(z.string(), z.any()).describe(
1250
+ options: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
1245
1251
  "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)."
1246
1252
  ).optional().nullable()
1247
1253
  }).describe(
1248
1254
  "Catalog and item reference. Holds IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin."
1249
1255
  ).optional(),
1250
- catalogOverrideFields: z.object({
1251
- productName: z.object({
1252
- original: z.string().describe(
1256
+ catalogOverrideFields: /* @__PURE__ */ z.object({
1257
+ productName: /* @__PURE__ */ z.object({
1258
+ original: /* @__PURE__ */ z.string().describe(
1253
1259
  "__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."
1254
1260
  ).min(1).max(200).optional(),
1255
- translated: z.string().describe(
1261
+ translated: /* @__PURE__ */ z.string().describe(
1256
1262
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1257
1263
  ).min(1).max(400).optional().nullable()
1258
1264
  }).describe("Item name.").optional(),
1259
- price: z.string().describe("Item price **after** discounts.").optional().nullable(),
1260
- fullPrice: z.string().describe("Item price **before** discounts.").optional().nullable(),
1261
- descriptionLines: z.array(
1262
- z.intersection(
1263
- z.object({
1264
- name: z.object({
1265
- original: z.string().describe(
1265
+ price: /* @__PURE__ */ z.string().describe("Item price **after** discounts.").optional().nullable(),
1266
+ fullPrice: /* @__PURE__ */ z.string().describe("Item price **before** discounts.").optional().nullable(),
1267
+ descriptionLines: /* @__PURE__ */ z.array(
1268
+ /* @__PURE__ */ z.intersection(
1269
+ /* @__PURE__ */ z.object({
1270
+ name: /* @__PURE__ */ z.object({
1271
+ original: /* @__PURE__ */ z.string().describe(
1266
1272
  "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)."
1267
1273
  ).max(100).optional(),
1268
- translated: z.string().describe(
1274
+ translated: /* @__PURE__ */ z.string().describe(
1269
1275
  "Description line name translated into the buyer's language.\n\nDefault: Same as `original`."
1270
1276
  ).max(200).optional().nullable()
1271
1277
  }).describe("Description line name.").optional()
1272
1278
  }),
1273
- z.xor([
1274
- z.object({
1275
- plainText: z.never().optional(),
1276
- colorInfo: z.never().optional()
1279
+ /* @__PURE__ */ z.xor([
1280
+ /* @__PURE__ */ z.object({
1281
+ plainText: /* @__PURE__ */ z.never().optional(),
1282
+ colorInfo: /* @__PURE__ */ z.never().optional()
1277
1283
  }),
1278
- z.object({
1279
- colorInfo: z.never().optional(),
1280
- plainText: z.object({
1281
- original: z.string().describe(
1284
+ /* @__PURE__ */ z.object({
1285
+ colorInfo: /* @__PURE__ */ z.never().optional(),
1286
+ plainText: /* @__PURE__ */ z.object({
1287
+ original: /* @__PURE__ */ z.string().describe(
1282
1288
  "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)."
1283
1289
  ).max(600).optional(),
1284
- translated: z.string().describe(
1290
+ translated: /* @__PURE__ */ z.string().describe(
1285
1291
  "Description line plain text value translated into the buyer's language.\n\nDefault: Same as `original`."
1286
1292
  ).max(600).optional().nullable()
1287
1293
  }).describe("Description line plain text value.")
1288
1294
  }),
1289
- z.object({
1290
- plainText: z.never().optional(),
1291
- colorInfo: z.object({
1292
- original: z.string().describe(
1295
+ /* @__PURE__ */ z.object({
1296
+ plainText: /* @__PURE__ */ z.never().optional(),
1297
+ colorInfo: /* @__PURE__ */ z.object({
1298
+ original: /* @__PURE__ */ z.string().describe(
1293
1299
  "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)."
1294
1300
  ).max(500).optional(),
1295
- translated: z.string().describe(
1301
+ translated: /* @__PURE__ */ z.string().describe(
1296
1302
  "Description line color name translated into the buyer's language.\n\nDefault: Same as `original`."
1297
1303
  ).max(500).optional().nullable(),
1298
- code: z.string().describe("HEX or RGB color code for display.").optional().nullable()
1304
+ code: /* @__PURE__ */ z.string().describe("HEX or RGB color code for display.").optional().nullable()
1299
1305
  }).describe("Description line color value.")
1300
1306
  })
1301
1307
  ])
1302
1308
  )
1303
1309
  ).min(0).max(20).optional(),
1304
- physicalProperties: z.object({
1305
- weight: z.number().describe(
1310
+ physicalProperties: /* @__PURE__ */ z.object({
1311
+ weight: /* @__PURE__ */ z.number().describe(
1306
1312
  "Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request."
1307
1313
  ).optional().nullable(),
1308
- sku: z.string().describe(
1314
+ sku: /* @__PURE__ */ z.string().describe(
1309
1315
  "Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku)."
1310
1316
  ).max(40).optional().nullable(),
1311
- shippable: z.boolean().describe("Whether this line item is shippable.").optional()
1317
+ shippable: /* @__PURE__ */ z.boolean().describe("Whether this line item is shippable.").optional()
1312
1318
  }).describe("Physical properties of the item.").optional(),
1313
- image: z.string().describe("Item image.").optional(),
1314
- paymentOption: z.object({
1315
- value: z.enum([
1319
+ image: /* @__PURE__ */ z.string().describe("Item image.").optional(),
1320
+ paymentOption: /* @__PURE__ */ z.object({
1321
+ value: /* @__PURE__ */ z.enum([
1316
1322
  "FULL_PAYMENT_ONLINE",
1317
1323
  "FULL_PAYMENT_OFFLINE",
1318
1324
  "MEMBERSHIP",
@@ -1321,110 +1327,110 @@ var UpdateCheckoutTemplateRequest = /* @__PURE__ */ z.object({
1321
1327
  "MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER"
1322
1328
  ]).optional()
1323
1329
  }).describe("Payment method selected for the item.").optional(),
1324
- depositAmount: z.string().describe(
1330
+ depositAmount: /* @__PURE__ */ z.string().describe(
1325
1331
  "Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`."
1326
1332
  ).optional().nullable(),
1327
- savePaymentMethod: z.boolean().describe(
1333
+ savePaymentMethod: /* @__PURE__ */ z.boolean().describe(
1328
1334
  "Whether to save the payment method on the order.\n\nDefault: `false`"
1329
1335
  ).optional().nullable(),
1330
- inventoryAppId: z.string().describe("ID of the app managing the inventory.").regex(
1336
+ inventoryAppId: /* @__PURE__ */ z.string().describe("ID of the app managing the inventory.").regex(
1331
1337
  /^[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}$/,
1332
1338
  "Must be a valid GUID"
1333
1339
  ).optional().nullable()
1334
1340
  }).describe("Overriding values for catalog item properties.").optional()
1335
1341
  })
1336
1342
  ).max(300).optional(),
1337
- customLineItems: z.array(
1338
- z.object({
1339
- quantity: z.number().int().describe("Custom line item quantity.\n\nMin: `1`\nMax: `100000`").min(1).max(1e5).optional(),
1340
- price: z.string().describe(
1343
+ customLineItems: /* @__PURE__ */ z.array(
1344
+ /* @__PURE__ */ z.object({
1345
+ quantity: /* @__PURE__ */ z.number().int().describe("Custom line item quantity.\n\nMin: `1`\nMax: `100000`").min(1).max(1e5).optional(),
1346
+ price: /* @__PURE__ */ z.string().describe(
1341
1347
  "Custom line item price.\n\nMust be a number or a decimal without symbols."
1342
1348
  ).optional(),
1343
- priceDescription: z.object({
1344
- original: z.string().describe(
1349
+ priceDescription: /* @__PURE__ */ z.object({
1350
+ original: /* @__PURE__ */ z.string().describe(
1345
1351
  "__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)."
1346
1352
  ).min(1).max(100).optional(),
1347
- translated: z.string().describe(
1353
+ translated: /* @__PURE__ */ z.string().describe(
1348
1354
  "Price description translated into the buyer's language.\n\nDefault: Same as `original`."
1349
1355
  ).min(1).max(100).optional().nullable()
1350
1356
  }).describe(
1351
1357
  'Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".'
1352
1358
  ).optional(),
1353
- descriptionLines: z.array(
1354
- z.intersection(
1355
- z.object({
1356
- name: z.object({
1357
- original: z.string().describe(
1359
+ descriptionLines: /* @__PURE__ */ z.array(
1360
+ /* @__PURE__ */ z.intersection(
1361
+ /* @__PURE__ */ z.object({
1362
+ name: /* @__PURE__ */ z.object({
1363
+ original: /* @__PURE__ */ z.string().describe(
1358
1364
  "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)."
1359
1365
  ).max(100).optional(),
1360
- translated: z.string().describe(
1366
+ translated: /* @__PURE__ */ z.string().describe(
1361
1367
  "Description line name translated into the buyer's language.\n\nDefault: Same as `original`."
1362
1368
  ).max(200).optional().nullable()
1363
1369
  }).describe("Description line name.").optional()
1364
1370
  }),
1365
- z.xor([
1366
- z.object({
1367
- plainText: z.never().optional(),
1368
- colorInfo: z.never().optional()
1371
+ /* @__PURE__ */ z.xor([
1372
+ /* @__PURE__ */ z.object({
1373
+ plainText: /* @__PURE__ */ z.never().optional(),
1374
+ colorInfo: /* @__PURE__ */ z.never().optional()
1369
1375
  }),
1370
- z.object({
1371
- colorInfo: z.never().optional(),
1372
- plainText: z.object({
1373
- original: z.string().describe(
1376
+ /* @__PURE__ */ z.object({
1377
+ colorInfo: /* @__PURE__ */ z.never().optional(),
1378
+ plainText: /* @__PURE__ */ z.object({
1379
+ original: /* @__PURE__ */ z.string().describe(
1374
1380
  "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)."
1375
1381
  ).max(600).optional(),
1376
- translated: z.string().describe(
1382
+ translated: /* @__PURE__ */ z.string().describe(
1377
1383
  "Description line plain text value translated into the buyer's language.\n\nDefault: Same as `original`."
1378
1384
  ).max(600).optional().nullable()
1379
1385
  }).describe("Description line plain text value.")
1380
1386
  }),
1381
- z.object({
1382
- plainText: z.never().optional(),
1383
- colorInfo: z.object({
1384
- original: z.string().describe(
1387
+ /* @__PURE__ */ z.object({
1388
+ plainText: /* @__PURE__ */ z.never().optional(),
1389
+ colorInfo: /* @__PURE__ */ z.object({
1390
+ original: /* @__PURE__ */ z.string().describe(
1385
1391
  "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)."
1386
1392
  ).max(500).optional(),
1387
- translated: z.string().describe(
1393
+ translated: /* @__PURE__ */ z.string().describe(
1388
1394
  "Description line color name translated into the buyer's language.\n\nDefault: Same as `original`."
1389
1395
  ).max(500).optional().nullable(),
1390
- code: z.string().describe("HEX or RGB color code for display.").optional().nullable()
1396
+ code: /* @__PURE__ */ z.string().describe("HEX or RGB color code for display.").optional().nullable()
1391
1397
  }).describe("Description line color value.")
1392
1398
  })
1393
1399
  ])
1394
1400
  )
1395
1401
  ).max(10).optional(),
1396
- media: z.string().describe("Custom line item's media.").optional(),
1397
- _id: z.string().describe(
1402
+ media: /* @__PURE__ */ z.string().describe("Custom line item's media.").optional(),
1403
+ _id: /* @__PURE__ */ z.string().describe(
1398
1404
  "Deprecated. Custom line item ID.\n\nTo maintain a unique value for a custom line item across multiple carts and orders, pass `catalogReference` instead.\nLearn more about [custom items with catalog reference](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/catalogs/catalog-and-custom-items#custom-item-with-catalog-reference)."
1399
1405
  ).regex(
1400
1406
  /^[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}$/,
1401
1407
  "Must be a valid GUID"
1402
1408
  ).optional().nullable(),
1403
- taxGroupId: z.string().describe("Tax group ID for this custom line item.").regex(
1409
+ taxGroupId: /* @__PURE__ */ z.string().describe("Tax group ID for this custom line item.").regex(
1404
1410
  /^[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}$/,
1405
1411
  "Must be a valid GUID"
1406
1412
  ).optional().nullable(),
1407
- productName: z.object({
1408
- original: z.string().describe(
1413
+ productName: /* @__PURE__ */ z.object({
1414
+ original: /* @__PURE__ */ z.string().describe(
1409
1415
  "__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."
1410
1416
  ).min(1).max(200).optional(),
1411
- translated: z.string().describe(
1417
+ translated: /* @__PURE__ */ z.string().describe(
1412
1418
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1413
1419
  ).min(1).max(400).optional().nullable()
1414
1420
  }).describe("Name of the item or product.").optional(),
1415
- url: z.string().describe(
1421
+ url: /* @__PURE__ */ z.string().describe(
1416
1422
  "URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work."
1417
1423
  ).optional(),
1418
- itemType: z.intersection(
1419
- z.object({}),
1420
- z.xor([
1421
- z.object({
1422
- preset: z.never().optional(),
1423
- custom: z.never().optional()
1424
+ itemType: /* @__PURE__ */ z.intersection(
1425
+ /* @__PURE__ */ z.object({}),
1426
+ /* @__PURE__ */ z.xor([
1427
+ /* @__PURE__ */ z.object({
1428
+ preset: /* @__PURE__ */ z.never().optional(),
1429
+ custom: /* @__PURE__ */ z.never().optional()
1424
1430
  }),
1425
- z.object({
1426
- custom: z.never().optional(),
1427
- preset: z.enum([
1431
+ /* @__PURE__ */ z.object({
1432
+ custom: /* @__PURE__ */ z.never().optional(),
1433
+ preset: /* @__PURE__ */ z.enum([
1428
1434
  "UNRECOGNISED",
1429
1435
  "PHYSICAL",
1430
1436
  "DIGITAL",
@@ -1432,30 +1438,30 @@ var UpdateCheckoutTemplateRequest = /* @__PURE__ */ z.object({
1432
1438
  "SERVICE"
1433
1439
  ]).describe("Preset item type.")
1434
1440
  }),
1435
- z.object({
1436
- preset: z.never().optional(),
1437
- custom: z.string().describe(
1441
+ /* @__PURE__ */ z.object({
1442
+ preset: /* @__PURE__ */ z.never().optional(),
1443
+ custom: /* @__PURE__ */ z.string().describe(
1438
1444
  "Custom item type. When none of the preset types are suitable, specifies the custom type."
1439
1445
  )
1440
1446
  })
1441
1447
  ])
1442
1448
  ).describe("Item type. Either a preset type or custom.").optional(),
1443
- fullPrice: z.string().describe(
1449
+ fullPrice: /* @__PURE__ */ z.string().describe(
1444
1450
  "Item price **before** catalog-defined discount. Defaults to `price` when not provided."
1445
1451
  ).optional().nullable(),
1446
- quantityAvailable: z.number().int().describe(
1452
+ quantityAvailable: /* @__PURE__ */ z.number().int().describe(
1447
1453
  'Item quantity available for purchase. Only return this if inventory is managed.\nNot returning this field means that the buyer can "infinitely" tick up the number of items in the cart.'
1448
1454
  ).min(0).max(1e5).optional().nullable(),
1449
- physicalProperties: z.object({
1450
- weight: z.number().describe(
1455
+ physicalProperties: /* @__PURE__ */ z.object({
1456
+ weight: /* @__PURE__ */ z.number().describe(
1451
1457
  "Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request."
1452
1458
  ).optional().nullable(),
1453
- sku: z.string().describe(
1459
+ sku: /* @__PURE__ */ z.string().describe(
1454
1460
  "Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku)."
1455
1461
  ).max(40).optional().nullable(),
1456
- shippable: z.boolean().describe("Whether this line item is shippable.").optional()
1462
+ shippable: /* @__PURE__ */ z.boolean().describe("Whether this line item is shippable.").optional()
1457
1463
  }).describe("Physical properties of the item.").optional(),
1458
- paymentOption: z.enum([
1464
+ paymentOption: /* @__PURE__ */ z.enum([
1459
1465
  "FULL_PAYMENT_ONLINE",
1460
1466
  "FULL_PAYMENT_OFFLINE",
1461
1467
  "MEMBERSHIP",
@@ -1463,118 +1469,120 @@ var UpdateCheckoutTemplateRequest = /* @__PURE__ */ z.object({
1463
1469
  "MEMBERSHIP_OFFLINE",
1464
1470
  "MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER"
1465
1471
  ]).optional(),
1466
- serviceProperties: z.object({
1467
- scheduledDate: z.date().describe(
1472
+ serviceProperties: /* @__PURE__ */ z.object({
1473
+ scheduledDate: /* @__PURE__ */ z.date().describe(
1468
1474
  "Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\nFor example, the start time of a class."
1469
1475
  ).optional().nullable(),
1470
- numberOfParticipants: z.number().int().describe(
1476
+ numberOfParticipants: /* @__PURE__ */ z.number().int().describe(
1471
1477
  "The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room."
1472
1478
  ).min(1).max(1e4).optional().nullable()
1473
1479
  }).describe(
1474
1480
  "Service properties. When relevant, this contains information such as date and number of participants.\nUsed, among other things, when checking for valid memberships."
1475
1481
  ).optional(),
1476
- rootCatalogItemId: z.string().describe(
1482
+ rootCatalogItemId: /* @__PURE__ */ z.string().describe(
1477
1483
  "In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.\n\n+ For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.\n+ In most cases, this field is the same as `catalogReference.catalogItemId`.\n+ Used in membership validation."
1478
1484
  ).min(1).max(36).optional().nullable(),
1479
- depositAmount: z.string().describe(
1485
+ depositAmount: /* @__PURE__ */ z.string().describe(
1480
1486
  "Partial payment for the given item to be paid upfront during the checkout.\n\nEligible for catalog items with type `DEPOSIT_ONLINE`.\nWhen omitted, the item's price will not be split and is expected to be paid in a single installment."
1481
1487
  ).optional().nullable(),
1482
- deliveryProfileId: z.string().describe("Delivery profile ID.").regex(
1488
+ deliveryProfileId: /* @__PURE__ */ z.string().describe("Delivery profile ID.").regex(
1483
1489
  /^[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}$/,
1484
1490
  "Must be a valid GUID"
1485
1491
  ).optional().nullable(),
1486
- catalogReference: z.object({
1487
- catalogItemId: z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
1488
- appId: z.string().describe(
1492
+ catalogReference: /* @__PURE__ */ z.object({
1493
+ catalogItemId: /* @__PURE__ */ z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
1494
+ appId: /* @__PURE__ */ z.string().describe(
1489
1495
  '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"`'
1490
1496
  ).min(1).optional(),
1491
- options: z.record(z.string(), z.any()).describe(
1497
+ options: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
1492
1498
  "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)."
1493
1499
  ).optional().nullable()
1494
1500
  }).describe(
1495
1501
  "Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin."
1496
1502
  ).optional(),
1497
- priceUndetermined: z.boolean().describe(
1503
+ priceUndetermined: /* @__PURE__ */ z.boolean().describe(
1498
1504
  "Whether the price is not yet defined, and will be updated after the order is created.\n\nDefault: `false`"
1499
1505
  ).optional(),
1500
- fixedQuantity: z.boolean().describe(
1506
+ fixedQuantity: /* @__PURE__ */ z.boolean().describe(
1501
1507
  "Whether the line item quantity is fixed and cannot be changed.\n\nDefault: `false`"
1502
1508
  ).optional(),
1503
- consentRequiredPaymentPolicy: z.string().describe(
1509
+ consentRequiredPaymentPolicy: /* @__PURE__ */ z.string().describe(
1504
1510
  "Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page."
1505
1511
  ).min(1).max(1e3).optional().nullable(),
1506
- savePaymentMethod: z.boolean().describe(
1512
+ savePaymentMethod: /* @__PURE__ */ z.boolean().describe(
1507
1513
  "Whether to save the payment method on the order.\n\nDefault: `false`"
1508
1514
  ).optional(),
1509
- policies: z.array(
1510
- z.object({
1511
- title: z.string().describe("Policy title - should be translated").min(1).max(29).optional().nullable(),
1512
- content: z.string().describe("Policy content - should be translated").min(1).max(3e3).optional()
1515
+ policies: /* @__PURE__ */ z.array(
1516
+ /* @__PURE__ */ z.object({
1517
+ title: /* @__PURE__ */ z.string().describe("Policy title - should be translated").min(1).max(29).optional().nullable(),
1518
+ content: /* @__PURE__ */ z.string().describe("Policy content - should be translated").min(1).max(3e3).optional()
1513
1519
  })
1514
1520
  ).max(5).optional(),
1515
- membersOnly: z.boolean().describe(
1521
+ membersOnly: /* @__PURE__ */ z.boolean().describe(
1516
1522
  "Whether the item can only be purchased by site members.\n\nDefault: `false`"
1517
1523
  ).optional(),
1518
- taxableAddress: z.intersection(
1519
- z.object({}),
1520
- z.xor([
1521
- z.object({ addressType: z.never().optional() }),
1522
- z.object({
1523
- addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
1524
+ taxableAddress: /* @__PURE__ */ z.intersection(
1525
+ /* @__PURE__ */ z.object({}),
1526
+ /* @__PURE__ */ z.xor([
1527
+ /* @__PURE__ */ z.object({
1528
+ addressType: /* @__PURE__ */ z.never().optional()
1529
+ }),
1530
+ /* @__PURE__ */ z.object({
1531
+ addressType: /* @__PURE__ */ z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
1524
1532
  "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
1525
1533
  )
1526
1534
  })
1527
1535
  ])
1528
1536
  ).describe("Address to use for tax calculation purposes.").optional(),
1529
- modifierGroups: z.array(
1530
- z.object({
1531
- _id: z.string().describe("Modifier group ID.").min(1).max(36).optional(),
1532
- name: z.object({
1533
- original: z.string().describe(
1537
+ modifierGroups: /* @__PURE__ */ z.array(
1538
+ /* @__PURE__ */ z.object({
1539
+ _id: /* @__PURE__ */ z.string().describe("Modifier group ID.").min(1).max(36).optional(),
1540
+ name: /* @__PURE__ */ z.object({
1541
+ original: /* @__PURE__ */ z.string().describe(
1534
1542
  "__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."
1535
1543
  ).min(1).max(200).optional(),
1536
- translated: z.string().describe(
1544
+ translated: /* @__PURE__ */ z.string().describe(
1537
1545
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1538
1546
  ).min(1).max(400).optional().nullable()
1539
1547
  }).describe("Modifier group name.").optional(),
1540
- modifiers: z.array(
1541
- z.object({
1542
- _id: z.string().describe("Modifier ID.").min(1).max(36).optional(),
1543
- quantity: z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
1544
- label: z.object({
1545
- original: z.string().describe(
1548
+ modifiers: /* @__PURE__ */ z.array(
1549
+ /* @__PURE__ */ z.object({
1550
+ _id: /* @__PURE__ */ z.string().describe("Modifier ID.").min(1).max(36).optional(),
1551
+ quantity: /* @__PURE__ */ z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
1552
+ label: /* @__PURE__ */ z.object({
1553
+ original: /* @__PURE__ */ z.string().describe(
1546
1554
  "__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."
1547
1555
  ).min(1).max(200).optional(),
1548
- translated: z.string().describe(
1556
+ translated: /* @__PURE__ */ z.string().describe(
1549
1557
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1550
1558
  ).min(1).max(400).optional().nullable()
1551
1559
  }).describe("Primary display label for the modifier.").optional(),
1552
- details: z.object({
1553
- original: z.string().describe(
1560
+ details: /* @__PURE__ */ z.object({
1561
+ original: /* @__PURE__ */ z.string().describe(
1554
1562
  "__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."
1555
1563
  ).min(1).max(200).optional(),
1556
- translated: z.string().describe(
1564
+ translated: /* @__PURE__ */ z.string().describe(
1557
1565
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1558
1566
  ).min(1).max(400).optional().nullable()
1559
1567
  }).describe("Additional details.").optional(),
1560
- price: z.string().describe("The price of the modifier.").optional().nullable()
1568
+ price: /* @__PURE__ */ z.string().describe("The price of the modifier.").optional().nullable()
1561
1569
  })
1562
1570
  ).min(1).max(25).optional()
1563
1571
  })
1564
1572
  ).max(25).optional()
1565
1573
  })
1566
1574
  ).max(300).optional(),
1567
- couponCode: z.string().describe(
1575
+ couponCode: /* @__PURE__ */ z.string().describe(
1568
1576
  "Coupon code.\n\nNote that a checkout can only hold one `couponCode` at a time. If an additional `couponCode` is added, it will override the existing `couponCode`.\nFor additional information, see the Coupons API."
1569
1577
  ).optional().nullable(),
1570
- customContentReference: z.object({
1571
- appId: z.string().describe(
1578
+ customContentReference: /* @__PURE__ */ z.object({
1579
+ appId: /* @__PURE__ */ z.string().describe(
1572
1580
  "ID of the app providing the content.\n\nYou can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/)."
1573
1581
  ).regex(
1574
1582
  /^[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}$/,
1575
1583
  "Must be a valid GUID"
1576
1584
  ).optional(),
1577
- componentId: z.string().describe(
1585
+ componentId: /* @__PURE__ */ z.string().describe(
1578
1586
  "ID of the component within the app it belongs to.\n\nYou can get your component's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/)."
1579
1587
  ).regex(
1580
1588
  /^[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}$/,
@@ -1583,14 +1591,14 @@ var UpdateCheckoutTemplateRequest = /* @__PURE__ */ z.object({
1583
1591
  }).describe(
1584
1592
  'Reference IDs for the app and component providing custom checkout page content.\n\nTo access and manage custom checkout page content, your app must have the permission scope named "Manage eCommerce - Admin Permissions".\nLearn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'
1585
1593
  ).optional(),
1586
- externalReference: z.object({
1587
- appId: z.string().describe(
1594
+ externalReference: /* @__PURE__ */ z.object({
1595
+ appId: /* @__PURE__ */ z.string().describe(
1588
1596
  "ID of the app associated with the purchase flow.\nFor example, the Wix Pay Links app ID."
1589
1597
  ).regex(
1590
1598
  /^[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}$/,
1591
1599
  "Must be a valid GUID"
1592
1600
  ).optional(),
1593
- resourceId: z.string().describe(
1601
+ resourceId: /* @__PURE__ */ z.string().describe(
1594
1602
  "Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.\nFor example, a Wix Pay Link ID."
1595
1603
  ).min(1).max(100).optional().nullable()
1596
1604
  }).describe(
@@ -1599,116 +1607,116 @@ var UpdateCheckoutTemplateRequest = /* @__PURE__ */ z.object({
1599
1607
  }).describe("Checkout template info to update.")
1600
1608
  });
1601
1609
  var UpdateCheckoutTemplateResponse = /* @__PURE__ */ z.object({
1602
- _id: z.string().describe("Checkout template ID.").regex(
1610
+ _id: /* @__PURE__ */ z.string().describe("Checkout template ID.").regex(
1603
1611
  /^[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}$/,
1604
1612
  "Must be a valid GUID"
1605
1613
  ).optional().nullable(),
1606
- status: z.enum(["ACTIVE", "INACTIVE"]).describe(
1614
+ status: /* @__PURE__ */ z.enum(["ACTIVE", "INACTIVE"]).describe(
1607
1615
  "Status of the checkout template.\n\nWhen `status` is `INACTIVE` checkouts will not be created with this template `id`. Instead, the endpoint will redirect to the domain site.\n\nDefault: `ACTIVE`"
1608
1616
  ).optional(),
1609
- customization: z.object({
1610
- webClient: z.object({
1611
- disabledContinueShoppingButton: z.boolean().describe(
1617
+ customization: /* @__PURE__ */ z.object({
1618
+ webClient: /* @__PURE__ */ z.object({
1619
+ disabledContinueShoppingButton: /* @__PURE__ */ z.boolean().describe(
1612
1620
  'Whether to disable the "Continue shopping" button.\n\nDefault: `false`'
1613
1621
  ).optional(),
1614
- disabledPolicyAgreementCheckbox: z.boolean().describe(
1622
+ disabledPolicyAgreementCheckbox: /* @__PURE__ */ z.boolean().describe(
1615
1623
  "Whether to disable policy agreement checkout in the checkout page\n\nDefault: `false`"
1616
1624
  ).optional()
1617
1625
  }).describe(
1618
1626
  "Web client customizations. These customizations only apply to the standard Wix checkout page."
1619
1627
  ).optional(),
1620
- lockedGiftCard: z.boolean().describe(
1628
+ lockedGiftCard: /* @__PURE__ */ z.boolean().describe(
1621
1629
  "Whether to lock the ability to add or remove a gift card.\n\nDefault: `false`"
1622
1630
  ).optional(),
1623
- lockedCoupon: z.boolean().describe(
1631
+ lockedCoupon: /* @__PURE__ */ z.boolean().describe(
1624
1632
  "Whether to lock the ability to apply or remove a coupon code.\n\nDefault: `false`"
1625
1633
  ).optional(),
1626
- disabledManualPayment: z.boolean().describe(
1634
+ disabledManualPayment: /* @__PURE__ */ z.boolean().describe(
1627
1635
  "Whether to disable manual payment option for this checkout.\n\nDefault: `false`"
1628
1636
  ).optional()
1629
1637
  }).describe(
1630
1638
  "Custom settings to apply to the checkout page created from this template."
1631
1639
  ).optional(),
1632
- lineItems: z.array(
1633
- z.object({
1634
- quantity: z.number().int().describe("Item quantity.\n\nMin: `1` <br />\nMax: `100000`").min(1).max(1e5).optional(),
1635
- catalogReference: z.object({
1636
- catalogItemId: z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
1637
- appId: z.string().describe(
1640
+ lineItems: /* @__PURE__ */ z.array(
1641
+ /* @__PURE__ */ z.object({
1642
+ quantity: /* @__PURE__ */ z.number().int().describe("Item quantity.\n\nMin: `1` <br />\nMax: `100000`").min(1).max(1e5).optional(),
1643
+ catalogReference: /* @__PURE__ */ z.object({
1644
+ catalogItemId: /* @__PURE__ */ z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
1645
+ appId: /* @__PURE__ */ z.string().describe(
1638
1646
  '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"`'
1639
1647
  ).min(1).optional(),
1640
- options: z.record(z.string(), z.any()).describe(
1648
+ options: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
1641
1649
  "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)."
1642
1650
  ).optional().nullable()
1643
1651
  }).describe(
1644
1652
  "Catalog and item reference. Holds IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin."
1645
1653
  ).optional(),
1646
- catalogOverrideFields: z.object({
1647
- productName: z.object({
1648
- original: z.string().describe(
1654
+ catalogOverrideFields: /* @__PURE__ */ z.object({
1655
+ productName: /* @__PURE__ */ z.object({
1656
+ original: /* @__PURE__ */ z.string().describe(
1649
1657
  "__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."
1650
1658
  ).min(1).max(200).optional(),
1651
- translated: z.string().describe(
1659
+ translated: /* @__PURE__ */ z.string().describe(
1652
1660
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1653
1661
  ).min(1).max(400).optional().nullable()
1654
1662
  }).describe("Item name.").optional(),
1655
- price: z.string().describe("Item price **after** discounts.").optional().nullable(),
1656
- fullPrice: z.string().describe("Item price **before** discounts.").optional().nullable(),
1657
- descriptionLines: z.array(
1658
- z.intersection(
1659
- z.object({
1660
- name: z.object({
1661
- original: z.string().describe(
1663
+ price: /* @__PURE__ */ z.string().describe("Item price **after** discounts.").optional().nullable(),
1664
+ fullPrice: /* @__PURE__ */ z.string().describe("Item price **before** discounts.").optional().nullable(),
1665
+ descriptionLines: /* @__PURE__ */ z.array(
1666
+ /* @__PURE__ */ z.intersection(
1667
+ /* @__PURE__ */ z.object({
1668
+ name: /* @__PURE__ */ z.object({
1669
+ original: /* @__PURE__ */ z.string().describe(
1662
1670
  "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)."
1663
1671
  ).max(100).optional(),
1664
- translated: z.string().describe(
1672
+ translated: /* @__PURE__ */ z.string().describe(
1665
1673
  "Description line name translated into the buyer's language.\n\nDefault: Same as `original`."
1666
1674
  ).max(200).optional().nullable()
1667
1675
  }).describe("Description line name.").optional()
1668
1676
  }),
1669
- z.xor([
1670
- z.object({
1671
- plainText: z.never().optional(),
1672
- colorInfo: z.never().optional()
1677
+ /* @__PURE__ */ z.xor([
1678
+ /* @__PURE__ */ z.object({
1679
+ plainText: /* @__PURE__ */ z.never().optional(),
1680
+ colorInfo: /* @__PURE__ */ z.never().optional()
1673
1681
  }),
1674
- z.object({
1675
- colorInfo: z.never().optional(),
1676
- plainText: z.object({
1677
- original: z.string().describe(
1682
+ /* @__PURE__ */ z.object({
1683
+ colorInfo: /* @__PURE__ */ z.never().optional(),
1684
+ plainText: /* @__PURE__ */ z.object({
1685
+ original: /* @__PURE__ */ z.string().describe(
1678
1686
  "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)."
1679
1687
  ).max(600).optional(),
1680
- translated: z.string().describe(
1688
+ translated: /* @__PURE__ */ z.string().describe(
1681
1689
  "Description line plain text value translated into the buyer's language.\n\nDefault: Same as `original`."
1682
1690
  ).max(600).optional().nullable()
1683
1691
  }).describe("Description line plain text value.")
1684
1692
  }),
1685
- z.object({
1686
- plainText: z.never().optional(),
1687
- colorInfo: z.object({
1688
- original: z.string().describe(
1693
+ /* @__PURE__ */ z.object({
1694
+ plainText: /* @__PURE__ */ z.never().optional(),
1695
+ colorInfo: /* @__PURE__ */ z.object({
1696
+ original: /* @__PURE__ */ z.string().describe(
1689
1697
  "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)."
1690
1698
  ).max(500).optional(),
1691
- translated: z.string().describe(
1699
+ translated: /* @__PURE__ */ z.string().describe(
1692
1700
  "Description line color name translated into the buyer's language.\n\nDefault: Same as `original`."
1693
1701
  ).max(500).optional().nullable(),
1694
- code: z.string().describe("HEX or RGB color code for display.").optional().nullable()
1702
+ code: /* @__PURE__ */ z.string().describe("HEX or RGB color code for display.").optional().nullable()
1695
1703
  }).describe("Description line color value.")
1696
1704
  })
1697
1705
  ])
1698
1706
  )
1699
1707
  ).min(0).max(20).optional(),
1700
- physicalProperties: z.object({
1701
- weight: z.number().describe(
1708
+ physicalProperties: /* @__PURE__ */ z.object({
1709
+ weight: /* @__PURE__ */ z.number().describe(
1702
1710
  "Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request."
1703
1711
  ).optional().nullable(),
1704
- sku: z.string().describe(
1712
+ sku: /* @__PURE__ */ z.string().describe(
1705
1713
  "Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku)."
1706
1714
  ).max(40).optional().nullable(),
1707
- shippable: z.boolean().describe("Whether this line item is shippable.").optional()
1715
+ shippable: /* @__PURE__ */ z.boolean().describe("Whether this line item is shippable.").optional()
1708
1716
  }).describe("Physical properties of the item.").optional(),
1709
- image: z.string().describe("Item image.").optional(),
1710
- paymentOption: z.object({
1711
- value: z.enum([
1717
+ image: /* @__PURE__ */ z.string().describe("Item image.").optional(),
1718
+ paymentOption: /* @__PURE__ */ z.object({
1719
+ value: /* @__PURE__ */ z.enum([
1712
1720
  "FULL_PAYMENT_ONLINE",
1713
1721
  "FULL_PAYMENT_OFFLINE",
1714
1722
  "MEMBERSHIP",
@@ -1719,110 +1727,110 @@ var UpdateCheckoutTemplateResponse = /* @__PURE__ */ z.object({
1719
1727
  "Type of selected payment option for current item.\n\nDefault: `FULL_PAYMENT_ONLINE`"
1720
1728
  ).optional()
1721
1729
  }).describe("Payment method selected for the item.").optional(),
1722
- depositAmount: z.string().describe(
1730
+ depositAmount: /* @__PURE__ */ z.string().describe(
1723
1731
  "Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`."
1724
1732
  ).optional().nullable(),
1725
- savePaymentMethod: z.boolean().describe(
1733
+ savePaymentMethod: /* @__PURE__ */ z.boolean().describe(
1726
1734
  "Whether to save the payment method on the order.\n\nDefault: `false`"
1727
1735
  ).optional().nullable(),
1728
- inventoryAppId: z.string().describe("ID of the app managing the inventory.").regex(
1736
+ inventoryAppId: /* @__PURE__ */ z.string().describe("ID of the app managing the inventory.").regex(
1729
1737
  /^[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}$/,
1730
1738
  "Must be a valid GUID"
1731
1739
  ).optional().nullable()
1732
1740
  }).describe("Overriding values for catalog item properties.").optional()
1733
1741
  })
1734
1742
  ).max(300).optional(),
1735
- customLineItems: z.array(
1736
- z.object({
1737
- quantity: z.number().int().describe("Custom line item quantity.\n\nMin: `1`\nMax: `100000`").min(1).max(1e5).optional(),
1738
- price: z.string().describe(
1743
+ customLineItems: /* @__PURE__ */ z.array(
1744
+ /* @__PURE__ */ z.object({
1745
+ quantity: /* @__PURE__ */ z.number().int().describe("Custom line item quantity.\n\nMin: `1`\nMax: `100000`").min(1).max(1e5).optional(),
1746
+ price: /* @__PURE__ */ z.string().describe(
1739
1747
  "Custom line item price.\n\nMust be a number or a decimal without symbols."
1740
1748
  ).optional(),
1741
- priceDescription: z.object({
1742
- original: z.string().describe(
1749
+ priceDescription: /* @__PURE__ */ z.object({
1750
+ original: /* @__PURE__ */ z.string().describe(
1743
1751
  "__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)."
1744
1752
  ).min(1).max(100).optional(),
1745
- translated: z.string().describe(
1753
+ translated: /* @__PURE__ */ z.string().describe(
1746
1754
  "Price description translated into the buyer's language.\n\nDefault: Same as `original`."
1747
1755
  ).min(1).max(100).optional().nullable()
1748
1756
  }).describe(
1749
1757
  'Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".'
1750
1758
  ).optional(),
1751
- descriptionLines: z.array(
1752
- z.intersection(
1753
- z.object({
1754
- name: z.object({
1755
- original: z.string().describe(
1759
+ descriptionLines: /* @__PURE__ */ z.array(
1760
+ /* @__PURE__ */ z.intersection(
1761
+ /* @__PURE__ */ z.object({
1762
+ name: /* @__PURE__ */ z.object({
1763
+ original: /* @__PURE__ */ z.string().describe(
1756
1764
  "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)."
1757
1765
  ).max(100).optional(),
1758
- translated: z.string().describe(
1766
+ translated: /* @__PURE__ */ z.string().describe(
1759
1767
  "Description line name translated into the buyer's language.\n\nDefault: Same as `original`."
1760
1768
  ).max(200).optional().nullable()
1761
1769
  }).describe("Description line name.").optional()
1762
1770
  }),
1763
- z.xor([
1764
- z.object({
1765
- plainText: z.never().optional(),
1766
- colorInfo: z.never().optional()
1771
+ /* @__PURE__ */ z.xor([
1772
+ /* @__PURE__ */ z.object({
1773
+ plainText: /* @__PURE__ */ z.never().optional(),
1774
+ colorInfo: /* @__PURE__ */ z.never().optional()
1767
1775
  }),
1768
- z.object({
1769
- colorInfo: z.never().optional(),
1770
- plainText: z.object({
1771
- original: z.string().describe(
1776
+ /* @__PURE__ */ z.object({
1777
+ colorInfo: /* @__PURE__ */ z.never().optional(),
1778
+ plainText: /* @__PURE__ */ z.object({
1779
+ original: /* @__PURE__ */ z.string().describe(
1772
1780
  "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)."
1773
1781
  ).max(600).optional(),
1774
- translated: z.string().describe(
1782
+ translated: /* @__PURE__ */ z.string().describe(
1775
1783
  "Description line plain text value translated into the buyer's language.\n\nDefault: Same as `original`."
1776
1784
  ).max(600).optional().nullable()
1777
1785
  }).describe("Description line plain text value.")
1778
1786
  }),
1779
- z.object({
1780
- plainText: z.never().optional(),
1781
- colorInfo: z.object({
1782
- original: z.string().describe(
1787
+ /* @__PURE__ */ z.object({
1788
+ plainText: /* @__PURE__ */ z.never().optional(),
1789
+ colorInfo: /* @__PURE__ */ z.object({
1790
+ original: /* @__PURE__ */ z.string().describe(
1783
1791
  "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)."
1784
1792
  ).max(500).optional(),
1785
- translated: z.string().describe(
1793
+ translated: /* @__PURE__ */ z.string().describe(
1786
1794
  "Description line color name translated into the buyer's language.\n\nDefault: Same as `original`."
1787
1795
  ).max(500).optional().nullable(),
1788
- code: z.string().describe("HEX or RGB color code for display.").optional().nullable()
1796
+ code: /* @__PURE__ */ z.string().describe("HEX or RGB color code for display.").optional().nullable()
1789
1797
  }).describe("Description line color value.")
1790
1798
  })
1791
1799
  ])
1792
1800
  )
1793
1801
  ).max(10).optional(),
1794
- media: z.string().describe("Custom line item's media.").optional(),
1795
- _id: z.string().describe(
1802
+ media: /* @__PURE__ */ z.string().describe("Custom line item's media.").optional(),
1803
+ _id: /* @__PURE__ */ z.string().describe(
1796
1804
  "Deprecated. Custom line item ID.\n\nTo maintain a unique value for a custom line item across multiple carts and orders, pass `catalogReference` instead.\nLearn more about [custom items with catalog reference](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/catalogs/catalog-and-custom-items#custom-item-with-catalog-reference)."
1797
1805
  ).regex(
1798
1806
  /^[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}$/,
1799
1807
  "Must be a valid GUID"
1800
1808
  ).optional().nullable(),
1801
- taxGroupId: z.string().describe("Tax group ID for this custom line item.").regex(
1809
+ taxGroupId: /* @__PURE__ */ z.string().describe("Tax group ID for this custom line item.").regex(
1802
1810
  /^[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}$/,
1803
1811
  "Must be a valid GUID"
1804
1812
  ).optional().nullable(),
1805
- productName: z.object({
1806
- original: z.string().describe(
1813
+ productName: /* @__PURE__ */ z.object({
1814
+ original: /* @__PURE__ */ z.string().describe(
1807
1815
  "__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."
1808
1816
  ).min(1).max(200).optional(),
1809
- translated: z.string().describe(
1817
+ translated: /* @__PURE__ */ z.string().describe(
1810
1818
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1811
1819
  ).min(1).max(400).optional().nullable()
1812
1820
  }).describe("Name of the item or product.").optional(),
1813
- url: z.string().describe(
1821
+ url: /* @__PURE__ */ z.string().describe(
1814
1822
  "URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work."
1815
1823
  ).optional(),
1816
- itemType: z.intersection(
1817
- z.object({}),
1818
- z.xor([
1819
- z.object({
1820
- preset: z.never().optional(),
1821
- custom: z.never().optional()
1824
+ itemType: /* @__PURE__ */ z.intersection(
1825
+ /* @__PURE__ */ z.object({}),
1826
+ /* @__PURE__ */ z.xor([
1827
+ /* @__PURE__ */ z.object({
1828
+ preset: /* @__PURE__ */ z.never().optional(),
1829
+ custom: /* @__PURE__ */ z.never().optional()
1822
1830
  }),
1823
- z.object({
1824
- custom: z.never().optional(),
1825
- preset: z.enum([
1831
+ /* @__PURE__ */ z.object({
1832
+ custom: /* @__PURE__ */ z.never().optional(),
1833
+ preset: /* @__PURE__ */ z.enum([
1826
1834
  "UNRECOGNISED",
1827
1835
  "PHYSICAL",
1828
1836
  "DIGITAL",
@@ -1830,30 +1838,30 @@ var UpdateCheckoutTemplateResponse = /* @__PURE__ */ z.object({
1830
1838
  "SERVICE"
1831
1839
  ]).describe("Preset item type.")
1832
1840
  }),
1833
- z.object({
1834
- preset: z.never().optional(),
1835
- custom: z.string().describe(
1841
+ /* @__PURE__ */ z.object({
1842
+ preset: /* @__PURE__ */ z.never().optional(),
1843
+ custom: /* @__PURE__ */ z.string().describe(
1836
1844
  "Custom item type. When none of the preset types are suitable, specifies the custom type."
1837
1845
  )
1838
1846
  })
1839
1847
  ])
1840
1848
  ).describe("Item type. Either a preset type or custom.").optional(),
1841
- fullPrice: z.string().describe(
1849
+ fullPrice: /* @__PURE__ */ z.string().describe(
1842
1850
  "Item price **before** catalog-defined discount. Defaults to `price` when not provided."
1843
1851
  ).optional().nullable(),
1844
- quantityAvailable: z.number().int().describe(
1852
+ quantityAvailable: /* @__PURE__ */ z.number().int().describe(
1845
1853
  'Item quantity available for purchase. Only return this if inventory is managed.\nNot returning this field means that the buyer can "infinitely" tick up the number of items in the cart.'
1846
1854
  ).min(0).max(1e5).optional().nullable(),
1847
- physicalProperties: z.object({
1848
- weight: z.number().describe(
1855
+ physicalProperties: /* @__PURE__ */ z.object({
1856
+ weight: /* @__PURE__ */ z.number().describe(
1849
1857
  "Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request."
1850
1858
  ).optional().nullable(),
1851
- sku: z.string().describe(
1859
+ sku: /* @__PURE__ */ z.string().describe(
1852
1860
  "Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku)."
1853
1861
  ).max(40).optional().nullable(),
1854
- shippable: z.boolean().describe("Whether this line item is shippable.").optional()
1862
+ shippable: /* @__PURE__ */ z.boolean().describe("Whether this line item is shippable.").optional()
1855
1863
  }).describe("Physical properties of the item.").optional(),
1856
- paymentOption: z.enum([
1864
+ paymentOption: /* @__PURE__ */ z.enum([
1857
1865
  "FULL_PAYMENT_ONLINE",
1858
1866
  "FULL_PAYMENT_OFFLINE",
1859
1867
  "MEMBERSHIP",
@@ -1863,118 +1871,120 @@ var UpdateCheckoutTemplateResponse = /* @__PURE__ */ z.object({
1863
1871
  ]).describe(
1864
1872
  "Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.\n\n+ `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout.\n+ `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.\n+ `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.\n+ `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Amount to be paid is defined by deposit_amount field."
1865
1873
  ).optional(),
1866
- serviceProperties: z.object({
1867
- scheduledDate: z.date().describe(
1874
+ serviceProperties: /* @__PURE__ */ z.object({
1875
+ scheduledDate: /* @__PURE__ */ z.date().describe(
1868
1876
  "Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\nFor example, the start time of a class."
1869
1877
  ).optional().nullable(),
1870
- numberOfParticipants: z.number().int().describe(
1878
+ numberOfParticipants: /* @__PURE__ */ z.number().int().describe(
1871
1879
  "The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room."
1872
1880
  ).min(1).max(1e4).optional().nullable()
1873
1881
  }).describe(
1874
1882
  "Service properties. When relevant, this contains information such as date and number of participants.\nUsed, among other things, when checking for valid memberships."
1875
1883
  ).optional(),
1876
- rootCatalogItemId: z.string().describe(
1884
+ rootCatalogItemId: /* @__PURE__ */ z.string().describe(
1877
1885
  "In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.\n\n+ For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.\n+ In most cases, this field is the same as `catalogReference.catalogItemId`.\n+ Used in membership validation."
1878
1886
  ).min(1).max(36).optional().nullable(),
1879
- depositAmount: z.string().describe(
1887
+ depositAmount: /* @__PURE__ */ z.string().describe(
1880
1888
  "Partial payment for the given item to be paid upfront during the checkout.\n\nEligible for catalog items with type `DEPOSIT_ONLINE`.\nWhen omitted, the item's price will not be split and is expected to be paid in a single installment."
1881
1889
  ).optional().nullable(),
1882
- deliveryProfileId: z.string().describe("Delivery profile ID.").regex(
1890
+ deliveryProfileId: /* @__PURE__ */ z.string().describe("Delivery profile ID.").regex(
1883
1891
  /^[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}$/,
1884
1892
  "Must be a valid GUID"
1885
1893
  ).optional().nullable(),
1886
- catalogReference: z.object({
1887
- catalogItemId: z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
1888
- appId: z.string().describe(
1894
+ catalogReference: /* @__PURE__ */ z.object({
1895
+ catalogItemId: /* @__PURE__ */ z.string().describe("ID of the item within the catalog it belongs to.").min(1).max(36).optional(),
1896
+ appId: /* @__PURE__ */ z.string().describe(
1889
1897
  '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"`'
1890
1898
  ).min(1).optional(),
1891
- options: z.record(z.string(), z.any()).describe(
1899
+ options: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
1892
1900
  "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)."
1893
1901
  ).optional().nullable()
1894
1902
  }).describe(
1895
1903
  "Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin."
1896
1904
  ).optional(),
1897
- priceUndetermined: z.boolean().describe(
1905
+ priceUndetermined: /* @__PURE__ */ z.boolean().describe(
1898
1906
  "Whether the price is not yet defined, and will be updated after the order is created.\n\nDefault: `false`"
1899
1907
  ).optional(),
1900
- fixedQuantity: z.boolean().describe(
1908
+ fixedQuantity: /* @__PURE__ */ z.boolean().describe(
1901
1909
  "Whether the line item quantity is fixed and cannot be changed.\n\nDefault: `false`"
1902
1910
  ).optional(),
1903
- consentRequiredPaymentPolicy: z.string().describe(
1911
+ consentRequiredPaymentPolicy: /* @__PURE__ */ z.string().describe(
1904
1912
  "Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page."
1905
1913
  ).min(1).max(1e3).optional().nullable(),
1906
- savePaymentMethod: z.boolean().describe(
1914
+ savePaymentMethod: /* @__PURE__ */ z.boolean().describe(
1907
1915
  "Whether to save the payment method on the order.\n\nDefault: `false`"
1908
1916
  ).optional(),
1909
- policies: z.array(
1910
- z.object({
1911
- title: z.string().describe("Policy title - should be translated").min(1).max(29).optional().nullable(),
1912
- content: z.string().describe("Policy content - should be translated").min(1).max(3e3).optional()
1917
+ policies: /* @__PURE__ */ z.array(
1918
+ /* @__PURE__ */ z.object({
1919
+ title: /* @__PURE__ */ z.string().describe("Policy title - should be translated").min(1).max(29).optional().nullable(),
1920
+ content: /* @__PURE__ */ z.string().describe("Policy content - should be translated").min(1).max(3e3).optional()
1913
1921
  })
1914
1922
  ).max(5).optional(),
1915
- membersOnly: z.boolean().describe(
1923
+ membersOnly: /* @__PURE__ */ z.boolean().describe(
1916
1924
  "Whether the item can only be purchased by site members.\n\nDefault: `false`"
1917
1925
  ).optional(),
1918
- taxableAddress: z.intersection(
1919
- z.object({}),
1920
- z.xor([
1921
- z.object({ addressType: z.never().optional() }),
1922
- z.object({
1923
- addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
1926
+ taxableAddress: /* @__PURE__ */ z.intersection(
1927
+ /* @__PURE__ */ z.object({}),
1928
+ /* @__PURE__ */ z.xor([
1929
+ /* @__PURE__ */ z.object({
1930
+ addressType: /* @__PURE__ */ z.never().optional()
1931
+ }),
1932
+ /* @__PURE__ */ z.object({
1933
+ addressType: /* @__PURE__ */ z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
1924
1934
  "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
1925
1935
  )
1926
1936
  })
1927
1937
  ])
1928
1938
  ).describe("Address to use for tax calculation purposes.").optional(),
1929
- modifierGroups: z.array(
1930
- z.object({
1931
- _id: z.string().describe("Modifier group ID.").min(1).max(36).optional(),
1932
- name: z.object({
1933
- original: z.string().describe(
1939
+ modifierGroups: /* @__PURE__ */ z.array(
1940
+ /* @__PURE__ */ z.object({
1941
+ _id: /* @__PURE__ */ z.string().describe("Modifier group ID.").min(1).max(36).optional(),
1942
+ name: /* @__PURE__ */ z.object({
1943
+ original: /* @__PURE__ */ z.string().describe(
1934
1944
  "__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."
1935
1945
  ).min(1).max(200).optional(),
1936
- translated: z.string().describe(
1946
+ translated: /* @__PURE__ */ z.string().describe(
1937
1947
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1938
1948
  ).min(1).max(400).optional().nullable()
1939
1949
  }).describe("Modifier group name.").optional(),
1940
- modifiers: z.array(
1941
- z.object({
1942
- _id: z.string().describe("Modifier ID.").min(1).max(36).optional(),
1943
- quantity: z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
1944
- label: z.object({
1945
- original: z.string().describe(
1950
+ modifiers: /* @__PURE__ */ z.array(
1951
+ /* @__PURE__ */ z.object({
1952
+ _id: /* @__PURE__ */ z.string().describe("Modifier ID.").min(1).max(36).optional(),
1953
+ quantity: /* @__PURE__ */ z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
1954
+ label: /* @__PURE__ */ z.object({
1955
+ original: /* @__PURE__ */ z.string().describe(
1946
1956
  "__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."
1947
1957
  ).min(1).max(200).optional(),
1948
- translated: z.string().describe(
1958
+ translated: /* @__PURE__ */ z.string().describe(
1949
1959
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1950
1960
  ).min(1).max(400).optional().nullable()
1951
1961
  }).describe("Primary display label for the modifier.").optional(),
1952
- details: z.object({
1953
- original: z.string().describe(
1962
+ details: /* @__PURE__ */ z.object({
1963
+ original: /* @__PURE__ */ z.string().describe(
1954
1964
  "__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."
1955
1965
  ).min(1).max(200).optional(),
1956
- translated: z.string().describe(
1966
+ translated: /* @__PURE__ */ z.string().describe(
1957
1967
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1958
1968
  ).min(1).max(400).optional().nullable()
1959
1969
  }).describe("Additional details.").optional(),
1960
- price: z.string().describe("The price of the modifier.").optional().nullable()
1970
+ price: /* @__PURE__ */ z.string().describe("The price of the modifier.").optional().nullable()
1961
1971
  })
1962
1972
  ).min(1).max(25).optional()
1963
1973
  })
1964
1974
  ).max(25).optional()
1965
1975
  })
1966
1976
  ).max(300).optional(),
1967
- couponCode: z.string().describe(
1977
+ couponCode: /* @__PURE__ */ z.string().describe(
1968
1978
  "Coupon code.\n\nNote that a checkout can only hold one `couponCode` at a time. If an additional `couponCode` is added, it will override the existing `couponCode`.\nFor additional information, see the Coupons API."
1969
1979
  ).optional().nullable(),
1970
- customContentReference: z.object({
1971
- appId: z.string().describe(
1980
+ customContentReference: /* @__PURE__ */ z.object({
1981
+ appId: /* @__PURE__ */ z.string().describe(
1972
1982
  "ID of the app providing the content.\n\nYou can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/)."
1973
1983
  ).regex(
1974
1984
  /^[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}$/,
1975
1985
  "Must be a valid GUID"
1976
1986
  ).optional(),
1977
- componentId: z.string().describe(
1987
+ componentId: /* @__PURE__ */ z.string().describe(
1978
1988
  "ID of the component within the app it belongs to.\n\nYou can get your component's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/)."
1979
1989
  ).regex(
1980
1990
  /^[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}$/,
@@ -1983,14 +1993,14 @@ var UpdateCheckoutTemplateResponse = /* @__PURE__ */ z.object({
1983
1993
  }).describe(
1984
1994
  'Reference IDs for the app and component providing custom checkout page content.\n\nTo access and manage custom checkout page content, your app must have the permission scope named "Manage eCommerce - Admin Permissions".\nLearn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'
1985
1995
  ).optional(),
1986
- externalReference: z.object({
1987
- appId: z.string().describe(
1996
+ externalReference: /* @__PURE__ */ z.object({
1997
+ appId: /* @__PURE__ */ z.string().describe(
1988
1998
  "ID of the app associated with the purchase flow.\nFor example, the Wix Pay Links app ID."
1989
1999
  ).regex(
1990
2000
  /^[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}$/,
1991
2001
  "Must be a valid GUID"
1992
2002
  ).optional(),
1993
- resourceId: z.string().describe(
2003
+ resourceId: /* @__PURE__ */ z.string().describe(
1994
2004
  "Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.\nFor example, a Wix Pay Link ID."
1995
2005
  ).min(1).max(100).optional().nullable()
1996
2006
  }).describe(
@@ -1998,153 +2008,153 @@ var UpdateCheckoutTemplateResponse = /* @__PURE__ */ z.object({
1998
2008
  ).optional()
1999
2009
  });
2000
2010
  var DeleteCheckoutTemplateRequest = /* @__PURE__ */ z.object({
2001
- checkoutTemplateId: z.string().describe("ID of the checkout template to delete.").regex(
2011
+ checkoutTemplateId: /* @__PURE__ */ z.string().describe("ID of the checkout template to delete.").regex(
2002
2012
  /^[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}$/,
2003
2013
  "Must be a valid GUID"
2004
2014
  )
2005
2015
  });
2006
2016
  var DeleteCheckoutTemplateResponse = /* @__PURE__ */ z.object({});
2007
2017
  var QueryCheckoutTemplatesRequest = /* @__PURE__ */ z.object({
2008
- query: z.object({
2009
- filter: z.object({
2010
- _id: z.object({
2011
- $eq: z.string(),
2012
- $exists: z.boolean(),
2013
- $gt: z.string(),
2014
- $gte: z.string(),
2015
- $hasAll: z.array(z.string()),
2016
- $hasSome: z.array(z.string()),
2017
- $in: z.array(z.string()),
2018
- $lt: z.string(),
2019
- $lte: z.string(),
2020
- $ne: z.string(),
2021
- $nin: z.array(z.string()),
2022
- $startsWith: z.string()
2018
+ query: /* @__PURE__ */ z.object({
2019
+ filter: /* @__PURE__ */ z.object({
2020
+ _id: /* @__PURE__ */ z.object({
2021
+ $eq: /* @__PURE__ */ z.string(),
2022
+ $exists: /* @__PURE__ */ z.boolean(),
2023
+ $gt: /* @__PURE__ */ z.string(),
2024
+ $gte: /* @__PURE__ */ z.string(),
2025
+ $hasAll: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
2026
+ $hasSome: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
2027
+ $in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
2028
+ $lt: /* @__PURE__ */ z.string(),
2029
+ $lte: /* @__PURE__ */ z.string(),
2030
+ $ne: /* @__PURE__ */ z.string(),
2031
+ $nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
2032
+ $startsWith: /* @__PURE__ */ z.string()
2023
2033
  }).partial().strict().optional(),
2024
- status: z.object({
2025
- $eq: z.string(),
2026
- $exists: z.boolean(),
2027
- $gt: z.string(),
2028
- $gte: z.string(),
2029
- $hasAll: z.array(z.string()),
2030
- $hasSome: z.array(z.string()),
2031
- $in: z.array(z.string()),
2032
- $lt: z.string(),
2033
- $lte: z.string(),
2034
- $ne: z.string(),
2035
- $nin: z.array(z.string()),
2036
- $startsWith: z.string()
2034
+ status: /* @__PURE__ */ z.object({
2035
+ $eq: /* @__PURE__ */ z.string(),
2036
+ $exists: /* @__PURE__ */ z.boolean(),
2037
+ $gt: /* @__PURE__ */ z.string(),
2038
+ $gte: /* @__PURE__ */ z.string(),
2039
+ $hasAll: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
2040
+ $hasSome: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
2041
+ $in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
2042
+ $lt: /* @__PURE__ */ z.string(),
2043
+ $lte: /* @__PURE__ */ z.string(),
2044
+ $ne: /* @__PURE__ */ z.string(),
2045
+ $nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
2046
+ $startsWith: /* @__PURE__ */ z.string()
2037
2047
  }).partial().strict().optional(),
2038
- $and: z.array(z.any()).optional(),
2039
- $or: z.array(z.any()).optional(),
2040
- $not: z.any().optional()
2048
+ $and: /* @__PURE__ */ z.array(/* @__PURE__ */ z.any()).optional(),
2049
+ $or: /* @__PURE__ */ z.array(/* @__PURE__ */ z.any()).optional(),
2050
+ $not: /* @__PURE__ */ z.any().optional()
2041
2051
  }).strict().optional(),
2042
- sort: z.array(
2043
- z.object({
2044
- fieldName: z.enum(["_id", "status"]).optional(),
2045
- order: z.enum(["ASC", "DESC"]).optional()
2052
+ sort: /* @__PURE__ */ z.array(
2053
+ /* @__PURE__ */ z.object({
2054
+ fieldName: /* @__PURE__ */ z.enum(["_id", "status"]).optional(),
2055
+ order: /* @__PURE__ */ z.enum(["ASC", "DESC"]).optional()
2046
2056
  })
2047
2057
  ).optional()
2048
- }).catchall(z.any()).describe("Query options.")
2058
+ }).catchall(/* @__PURE__ */ z.any()).describe("Query options.")
2049
2059
  });
2050
2060
  var QueryCheckoutTemplatesResponse = /* @__PURE__ */ z.object({
2051
- checkoutTemplates: z.array(
2052
- z.object({
2053
- _id: z.string().describe("Checkout template ID.").regex(
2061
+ checkoutTemplates: /* @__PURE__ */ z.array(
2062
+ /* @__PURE__ */ z.object({
2063
+ _id: /* @__PURE__ */ z.string().describe("Checkout template ID.").regex(
2054
2064
  /^[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}$/,
2055
2065
  "Must be a valid GUID"
2056
2066
  ).optional().nullable(),
2057
- status: z.enum(["ACTIVE", "INACTIVE"]).describe(
2067
+ status: /* @__PURE__ */ z.enum(["ACTIVE", "INACTIVE"]).describe(
2058
2068
  "Status of the checkout template.\n\nWhen `status` is `INACTIVE` checkouts will not be created with this template `id`. Instead, the endpoint will redirect to the domain site.\n\nDefault: `ACTIVE`"
2059
2069
  ).optional(),
2060
- customization: z.object({
2061
- webClient: z.object({
2062
- disabledContinueShoppingButton: z.boolean().describe(
2070
+ customization: /* @__PURE__ */ z.object({
2071
+ webClient: /* @__PURE__ */ z.object({
2072
+ disabledContinueShoppingButton: /* @__PURE__ */ z.boolean().describe(
2063
2073
  'Whether to disable the "Continue shopping" button.\n\nDefault: `false`'
2064
2074
  ).optional(),
2065
- disabledPolicyAgreementCheckbox: z.boolean().describe(
2075
+ disabledPolicyAgreementCheckbox: /* @__PURE__ */ z.boolean().describe(
2066
2076
  "Whether to disable policy agreement checkout in the checkout page\n\nDefault: `false`"
2067
2077
  ).optional()
2068
2078
  }).describe(
2069
2079
  "Web client customizations. These customizations only apply to the standard Wix checkout page."
2070
2080
  ).optional(),
2071
- lockedGiftCard: z.boolean().describe(
2081
+ lockedGiftCard: /* @__PURE__ */ z.boolean().describe(
2072
2082
  "Whether to lock the ability to add or remove a gift card.\n\nDefault: `false`"
2073
2083
  ).optional(),
2074
- lockedCoupon: z.boolean().describe(
2084
+ lockedCoupon: /* @__PURE__ */ z.boolean().describe(
2075
2085
  "Whether to lock the ability to apply or remove a coupon code.\n\nDefault: `false`"
2076
2086
  ).optional(),
2077
- disabledManualPayment: z.boolean().describe(
2087
+ disabledManualPayment: /* @__PURE__ */ z.boolean().describe(
2078
2088
  "Whether to disable manual payment option for this checkout.\n\nDefault: `false`"
2079
2089
  ).optional()
2080
2090
  }).describe(
2081
2091
  "Custom settings to apply to the checkout page created from this template."
2082
2092
  ).optional(),
2083
- lineItems: z.array(
2084
- z.object({
2085
- quantity: z.number().int().describe("Item quantity.\n\nMin: `1` <br />\nMax: `100000`").min(1).max(1e5).optional(),
2086
- catalogReference: z.object({
2087
- catalogItemId: z.string().describe(
2093
+ lineItems: /* @__PURE__ */ z.array(
2094
+ /* @__PURE__ */ z.object({
2095
+ quantity: /* @__PURE__ */ z.number().int().describe("Item quantity.\n\nMin: `1` <br />\nMax: `100000`").min(1).max(1e5).optional(),
2096
+ catalogReference: /* @__PURE__ */ z.object({
2097
+ catalogItemId: /* @__PURE__ */ z.string().describe(
2088
2098
  "ID of the item within the catalog it belongs to."
2089
2099
  ).min(1).max(36).optional(),
2090
- appId: z.string().describe(
2100
+ appId: /* @__PURE__ */ z.string().describe(
2091
2101
  '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"`'
2092
2102
  ).min(1).optional(),
2093
- options: z.record(z.string(), z.any()).describe(
2103
+ options: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
2094
2104
  "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)."
2095
2105
  ).optional().nullable()
2096
2106
  }).describe(
2097
2107
  "Catalog and item reference. Holds IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin."
2098
2108
  ).optional(),
2099
- catalogOverrideFields: z.object({
2100
- productName: z.object({
2101
- original: z.string().describe(
2109
+ catalogOverrideFields: /* @__PURE__ */ z.object({
2110
+ productName: /* @__PURE__ */ z.object({
2111
+ original: /* @__PURE__ */ z.string().describe(
2102
2112
  "__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."
2103
2113
  ).min(1).max(200).optional(),
2104
- translated: z.string().describe(
2114
+ translated: /* @__PURE__ */ z.string().describe(
2105
2115
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
2106
2116
  ).min(1).max(400).optional().nullable()
2107
2117
  }).describe("Item name.").optional(),
2108
- price: z.string().describe("Item price **after** discounts.").optional().nullable(),
2109
- fullPrice: z.string().describe("Item price **before** discounts.").optional().nullable(),
2110
- descriptionLines: z.array(
2111
- z.intersection(
2112
- z.object({
2113
- name: z.object({
2114
- original: z.string().describe(
2118
+ price: /* @__PURE__ */ z.string().describe("Item price **after** discounts.").optional().nullable(),
2119
+ fullPrice: /* @__PURE__ */ z.string().describe("Item price **before** discounts.").optional().nullable(),
2120
+ descriptionLines: /* @__PURE__ */ z.array(
2121
+ /* @__PURE__ */ z.intersection(
2122
+ /* @__PURE__ */ z.object({
2123
+ name: /* @__PURE__ */ z.object({
2124
+ original: /* @__PURE__ */ z.string().describe(
2115
2125
  "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)."
2116
2126
  ).max(100).optional(),
2117
- translated: z.string().describe(
2127
+ translated: /* @__PURE__ */ z.string().describe(
2118
2128
  "Description line name translated into the buyer's language.\n\nDefault: Same as `original`."
2119
2129
  ).max(200).optional().nullable()
2120
2130
  }).describe("Description line name.").optional()
2121
2131
  }),
2122
- z.xor([
2123
- z.object({
2124
- plainText: z.never().optional(),
2125
- colorInfo: z.never().optional()
2132
+ /* @__PURE__ */ z.xor([
2133
+ /* @__PURE__ */ z.object({
2134
+ plainText: /* @__PURE__ */ z.never().optional(),
2135
+ colorInfo: /* @__PURE__ */ z.never().optional()
2126
2136
  }),
2127
- z.object({
2128
- colorInfo: z.never().optional(),
2129
- plainText: z.object({
2130
- original: z.string().describe(
2137
+ /* @__PURE__ */ z.object({
2138
+ colorInfo: /* @__PURE__ */ z.never().optional(),
2139
+ plainText: /* @__PURE__ */ z.object({
2140
+ original: /* @__PURE__ */ z.string().describe(
2131
2141
  "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)."
2132
2142
  ).max(600).optional(),
2133
- translated: z.string().describe(
2143
+ translated: /* @__PURE__ */ z.string().describe(
2134
2144
  "Description line plain text value translated into the buyer's language.\n\nDefault: Same as `original`."
2135
2145
  ).max(600).optional().nullable()
2136
2146
  }).describe("Description line plain text value.")
2137
2147
  }),
2138
- z.object({
2139
- plainText: z.never().optional(),
2140
- colorInfo: z.object({
2141
- original: z.string().describe(
2148
+ /* @__PURE__ */ z.object({
2149
+ plainText: /* @__PURE__ */ z.never().optional(),
2150
+ colorInfo: /* @__PURE__ */ z.object({
2151
+ original: /* @__PURE__ */ z.string().describe(
2142
2152
  "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)."
2143
2153
  ).max(500).optional(),
2144
- translated: z.string().describe(
2154
+ translated: /* @__PURE__ */ z.string().describe(
2145
2155
  "Description line color name translated into the buyer's language.\n\nDefault: Same as `original`."
2146
2156
  ).max(500).optional().nullable(),
2147
- code: z.string().describe(
2157
+ code: /* @__PURE__ */ z.string().describe(
2148
2158
  "HEX or RGB color code for display."
2149
2159
  ).optional().nullable()
2150
2160
  }).describe("Description line color value.")
@@ -2152,18 +2162,18 @@ var QueryCheckoutTemplatesResponse = /* @__PURE__ */ z.object({
2152
2162
  ])
2153
2163
  )
2154
2164
  ).min(0).max(20).optional(),
2155
- physicalProperties: z.object({
2156
- weight: z.number().describe(
2165
+ physicalProperties: /* @__PURE__ */ z.object({
2166
+ weight: /* @__PURE__ */ z.number().describe(
2157
2167
  "Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request."
2158
2168
  ).optional().nullable(),
2159
- sku: z.string().describe(
2169
+ sku: /* @__PURE__ */ z.string().describe(
2160
2170
  "Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku)."
2161
2171
  ).max(40).optional().nullable(),
2162
- shippable: z.boolean().describe("Whether this line item is shippable.").optional()
2172
+ shippable: /* @__PURE__ */ z.boolean().describe("Whether this line item is shippable.").optional()
2163
2173
  }).describe("Physical properties of the item.").optional(),
2164
- image: z.string().describe("Item image.").optional(),
2165
- paymentOption: z.object({
2166
- value: z.enum([
2174
+ image: /* @__PURE__ */ z.string().describe("Item image.").optional(),
2175
+ paymentOption: /* @__PURE__ */ z.object({
2176
+ value: /* @__PURE__ */ z.enum([
2167
2177
  "FULL_PAYMENT_ONLINE",
2168
2178
  "FULL_PAYMENT_OFFLINE",
2169
2179
  "MEMBERSHIP",
@@ -2174,112 +2184,112 @@ var QueryCheckoutTemplatesResponse = /* @__PURE__ */ z.object({
2174
2184
  "Type of selected payment option for current item.\n\nDefault: `FULL_PAYMENT_ONLINE`"
2175
2185
  ).optional()
2176
2186
  }).describe("Payment method selected for the item.").optional(),
2177
- depositAmount: z.string().describe(
2187
+ depositAmount: /* @__PURE__ */ z.string().describe(
2178
2188
  "Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`."
2179
2189
  ).optional().nullable(),
2180
- savePaymentMethod: z.boolean().describe(
2190
+ savePaymentMethod: /* @__PURE__ */ z.boolean().describe(
2181
2191
  "Whether to save the payment method on the order.\n\nDefault: `false`"
2182
2192
  ).optional().nullable(),
2183
- inventoryAppId: z.string().describe("ID of the app managing the inventory.").regex(
2193
+ inventoryAppId: /* @__PURE__ */ z.string().describe("ID of the app managing the inventory.").regex(
2184
2194
  /^[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}$/,
2185
2195
  "Must be a valid GUID"
2186
2196
  ).optional().nullable()
2187
2197
  }).describe("Overriding values for catalog item properties.").optional()
2188
2198
  })
2189
2199
  ).max(300).optional(),
2190
- customLineItems: z.array(
2191
- z.object({
2192
- quantity: z.number().int().describe(
2200
+ customLineItems: /* @__PURE__ */ z.array(
2201
+ /* @__PURE__ */ z.object({
2202
+ quantity: /* @__PURE__ */ z.number().int().describe(
2193
2203
  "Custom line item quantity.\n\nMin: `1`\nMax: `100000`"
2194
2204
  ).min(1).max(1e5).optional(),
2195
- price: z.string().describe(
2205
+ price: /* @__PURE__ */ z.string().describe(
2196
2206
  "Custom line item price.\n\nMust be a number or a decimal without symbols."
2197
2207
  ).optional(),
2198
- priceDescription: z.object({
2199
- original: z.string().describe(
2208
+ priceDescription: /* @__PURE__ */ z.object({
2209
+ original: /* @__PURE__ */ z.string().describe(
2200
2210
  "__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)."
2201
2211
  ).min(1).max(100).optional(),
2202
- translated: z.string().describe(
2212
+ translated: /* @__PURE__ */ z.string().describe(
2203
2213
  "Price description translated into the buyer's language.\n\nDefault: Same as `original`."
2204
2214
  ).min(1).max(100).optional().nullable()
2205
2215
  }).describe(
2206
2216
  'Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".'
2207
2217
  ).optional(),
2208
- descriptionLines: z.array(
2209
- z.intersection(
2210
- z.object({
2211
- name: z.object({
2212
- original: z.string().describe(
2218
+ descriptionLines: /* @__PURE__ */ z.array(
2219
+ /* @__PURE__ */ z.intersection(
2220
+ /* @__PURE__ */ z.object({
2221
+ name: /* @__PURE__ */ z.object({
2222
+ original: /* @__PURE__ */ z.string().describe(
2213
2223
  "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)."
2214
2224
  ).max(100).optional(),
2215
- translated: z.string().describe(
2225
+ translated: /* @__PURE__ */ z.string().describe(
2216
2226
  "Description line name translated into the buyer's language.\n\nDefault: Same as `original`."
2217
2227
  ).max(200).optional().nullable()
2218
2228
  }).describe("Description line name.").optional()
2219
2229
  }),
2220
- z.xor([
2221
- z.object({
2222
- plainText: z.never().optional(),
2223
- colorInfo: z.never().optional()
2230
+ /* @__PURE__ */ z.xor([
2231
+ /* @__PURE__ */ z.object({
2232
+ plainText: /* @__PURE__ */ z.never().optional(),
2233
+ colorInfo: /* @__PURE__ */ z.never().optional()
2224
2234
  }),
2225
- z.object({
2226
- colorInfo: z.never().optional(),
2227
- plainText: z.object({
2228
- original: z.string().describe(
2235
+ /* @__PURE__ */ z.object({
2236
+ colorInfo: /* @__PURE__ */ z.never().optional(),
2237
+ plainText: /* @__PURE__ */ z.object({
2238
+ original: /* @__PURE__ */ z.string().describe(
2229
2239
  "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)."
2230
2240
  ).max(600).optional(),
2231
- translated: z.string().describe(
2241
+ translated: /* @__PURE__ */ z.string().describe(
2232
2242
  "Description line plain text value translated into the buyer's language.\n\nDefault: Same as `original`."
2233
2243
  ).max(600).optional().nullable()
2234
2244
  }).describe("Description line plain text value.")
2235
2245
  }),
2236
- z.object({
2237
- plainText: z.never().optional(),
2238
- colorInfo: z.object({
2239
- original: z.string().describe(
2246
+ /* @__PURE__ */ z.object({
2247
+ plainText: /* @__PURE__ */ z.never().optional(),
2248
+ colorInfo: /* @__PURE__ */ z.object({
2249
+ original: /* @__PURE__ */ z.string().describe(
2240
2250
  "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)."
2241
2251
  ).max(500).optional(),
2242
- translated: z.string().describe(
2252
+ translated: /* @__PURE__ */ z.string().describe(
2243
2253
  "Description line color name translated into the buyer's language.\n\nDefault: Same as `original`."
2244
2254
  ).max(500).optional().nullable(),
2245
- code: z.string().describe("HEX or RGB color code for display.").optional().nullable()
2255
+ code: /* @__PURE__ */ z.string().describe("HEX or RGB color code for display.").optional().nullable()
2246
2256
  }).describe("Description line color value.")
2247
2257
  })
2248
2258
  ])
2249
2259
  )
2250
2260
  ).max(10).optional(),
2251
- media: z.string().describe("Custom line item's media.").optional(),
2252
- _id: z.string().describe(
2261
+ media: /* @__PURE__ */ z.string().describe("Custom line item's media.").optional(),
2262
+ _id: /* @__PURE__ */ z.string().describe(
2253
2263
  "Deprecated. Custom line item ID.\n\nTo maintain a unique value for a custom line item across multiple carts and orders, pass `catalogReference` instead.\nLearn more about [custom items with catalog reference](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/catalogs/catalog-and-custom-items#custom-item-with-catalog-reference)."
2254
2264
  ).regex(
2255
2265
  /^[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}$/,
2256
2266
  "Must be a valid GUID"
2257
2267
  ).optional().nullable(),
2258
- taxGroupId: z.string().describe("Tax group ID for this custom line item.").regex(
2268
+ taxGroupId: /* @__PURE__ */ z.string().describe("Tax group ID for this custom line item.").regex(
2259
2269
  /^[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}$/,
2260
2270
  "Must be a valid GUID"
2261
2271
  ).optional().nullable(),
2262
- productName: z.object({
2263
- original: z.string().describe(
2272
+ productName: /* @__PURE__ */ z.object({
2273
+ original: /* @__PURE__ */ z.string().describe(
2264
2274
  "__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."
2265
2275
  ).min(1).max(200).optional(),
2266
- translated: z.string().describe(
2276
+ translated: /* @__PURE__ */ z.string().describe(
2267
2277
  "Item name translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
2268
2278
  ).min(1).max(400).optional().nullable()
2269
2279
  }).describe("Name of the item or product.").optional(),
2270
- url: z.string().describe(
2280
+ url: /* @__PURE__ */ z.string().describe(
2271
2281
  "URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work."
2272
2282
  ).optional(),
2273
- itemType: z.intersection(
2274
- z.object({}),
2275
- z.xor([
2276
- z.object({
2277
- preset: z.never().optional(),
2278
- custom: z.never().optional()
2283
+ itemType: /* @__PURE__ */ z.intersection(
2284
+ /* @__PURE__ */ z.object({}),
2285
+ /* @__PURE__ */ z.xor([
2286
+ /* @__PURE__ */ z.object({
2287
+ preset: /* @__PURE__ */ z.never().optional(),
2288
+ custom: /* @__PURE__ */ z.never().optional()
2279
2289
  }),
2280
- z.object({
2281
- custom: z.never().optional(),
2282
- preset: z.enum([
2290
+ /* @__PURE__ */ z.object({
2291
+ custom: /* @__PURE__ */ z.never().optional(),
2292
+ preset: /* @__PURE__ */ z.enum([
2283
2293
  "UNRECOGNISED",
2284
2294
  "PHYSICAL",
2285
2295
  "DIGITAL",
@@ -2287,30 +2297,30 @@ var QueryCheckoutTemplatesResponse = /* @__PURE__ */ z.object({
2287
2297
  "SERVICE"
2288
2298
  ]).describe("Preset item type.")
2289
2299
  }),
2290
- z.object({
2291
- preset: z.never().optional(),
2292
- custom: z.string().describe(
2300
+ /* @__PURE__ */ z.object({
2301
+ preset: /* @__PURE__ */ z.never().optional(),
2302
+ custom: /* @__PURE__ */ z.string().describe(
2293
2303
  "Custom item type. When none of the preset types are suitable, specifies the custom type."
2294
2304
  )
2295
2305
  })
2296
2306
  ])
2297
2307
  ).describe("Item type. Either a preset type or custom.").optional(),
2298
- fullPrice: z.string().describe(
2308
+ fullPrice: /* @__PURE__ */ z.string().describe(
2299
2309
  "Item price **before** catalog-defined discount. Defaults to `price` when not provided."
2300
2310
  ).optional().nullable(),
2301
- quantityAvailable: z.number().int().describe(
2311
+ quantityAvailable: /* @__PURE__ */ z.number().int().describe(
2302
2312
  'Item quantity available for purchase. Only return this if inventory is managed.\nNot returning this field means that the buyer can "infinitely" tick up the number of items in the cart.'
2303
2313
  ).min(0).max(1e5).optional().nullable(),
2304
- physicalProperties: z.object({
2305
- weight: z.number().describe(
2314
+ physicalProperties: /* @__PURE__ */ z.object({
2315
+ weight: /* @__PURE__ */ z.number().describe(
2306
2316
  "Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request."
2307
2317
  ).optional().nullable(),
2308
- sku: z.string().describe(
2318
+ sku: /* @__PURE__ */ z.string().describe(
2309
2319
  "Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku)."
2310
2320
  ).max(40).optional().nullable(),
2311
- shippable: z.boolean().describe("Whether this line item is shippable.").optional()
2321
+ shippable: /* @__PURE__ */ z.boolean().describe("Whether this line item is shippable.").optional()
2312
2322
  }).describe("Physical properties of the item.").optional(),
2313
- paymentOption: z.enum([
2323
+ paymentOption: /* @__PURE__ */ z.enum([
2314
2324
  "FULL_PAYMENT_ONLINE",
2315
2325
  "FULL_PAYMENT_OFFLINE",
2316
2326
  "MEMBERSHIP",
@@ -2320,120 +2330,122 @@ var QueryCheckoutTemplatesResponse = /* @__PURE__ */ z.object({
2320
2330
  ]).describe(
2321
2331
  "Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.\n\n+ `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout.\n+ `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.\n+ `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.\n+ `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Amount to be paid is defined by deposit_amount field."
2322
2332
  ).optional(),
2323
- serviceProperties: z.object({
2324
- scheduledDate: z.date().describe(
2333
+ serviceProperties: /* @__PURE__ */ z.object({
2334
+ scheduledDate: /* @__PURE__ */ z.date().describe(
2325
2335
  "Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\nFor example, the start time of a class."
2326
2336
  ).optional().nullable(),
2327
- numberOfParticipants: z.number().int().describe(
2337
+ numberOfParticipants: /* @__PURE__ */ z.number().int().describe(
2328
2338
  "The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room."
2329
2339
  ).min(1).max(1e4).optional().nullable()
2330
2340
  }).describe(
2331
2341
  "Service properties. When relevant, this contains information such as date and number of participants.\nUsed, among other things, when checking for valid memberships."
2332
2342
  ).optional(),
2333
- rootCatalogItemId: z.string().describe(
2343
+ rootCatalogItemId: /* @__PURE__ */ z.string().describe(
2334
2344
  "In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.\n\n+ For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.\n+ In most cases, this field is the same as `catalogReference.catalogItemId`.\n+ Used in membership validation."
2335
2345
  ).min(1).max(36).optional().nullable(),
2336
- depositAmount: z.string().describe(
2346
+ depositAmount: /* @__PURE__ */ z.string().describe(
2337
2347
  "Partial payment for the given item to be paid upfront during the checkout.\n\nEligible for catalog items with type `DEPOSIT_ONLINE`.\nWhen omitted, the item's price will not be split and is expected to be paid in a single installment."
2338
2348
  ).optional().nullable(),
2339
- deliveryProfileId: z.string().describe("Delivery profile ID.").regex(
2349
+ deliveryProfileId: /* @__PURE__ */ z.string().describe("Delivery profile ID.").regex(
2340
2350
  /^[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}$/,
2341
2351
  "Must be a valid GUID"
2342
2352
  ).optional().nullable(),
2343
- catalogReference: z.object({
2344
- catalogItemId: z.string().describe(
2353
+ catalogReference: /* @__PURE__ */ z.object({
2354
+ catalogItemId: /* @__PURE__ */ z.string().describe(
2345
2355
  "ID of the item within the catalog it belongs to."
2346
2356
  ).min(1).max(36).optional(),
2347
- appId: z.string().describe(
2357
+ appId: /* @__PURE__ */ z.string().describe(
2348
2358
  '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"`'
2349
2359
  ).min(1).optional(),
2350
- options: z.record(z.string(), z.any()).describe(
2360
+ options: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
2351
2361
  "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)."
2352
2362
  ).optional().nullable()
2353
2363
  }).describe(
2354
2364
  "Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin."
2355
2365
  ).optional(),
2356
- priceUndetermined: z.boolean().describe(
2366
+ priceUndetermined: /* @__PURE__ */ z.boolean().describe(
2357
2367
  "Whether the price is not yet defined, and will be updated after the order is created.\n\nDefault: `false`"
2358
2368
  ).optional(),
2359
- fixedQuantity: z.boolean().describe(
2369
+ fixedQuantity: /* @__PURE__ */ z.boolean().describe(
2360
2370
  "Whether the line item quantity is fixed and cannot be changed.\n\nDefault: `false`"
2361
2371
  ).optional(),
2362
- consentRequiredPaymentPolicy: z.string().describe(
2372
+ consentRequiredPaymentPolicy: /* @__PURE__ */ z.string().describe(
2363
2373
  "Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page."
2364
2374
  ).min(1).max(1e3).optional().nullable(),
2365
- savePaymentMethod: z.boolean().describe(
2375
+ savePaymentMethod: /* @__PURE__ */ z.boolean().describe(
2366
2376
  "Whether to save the payment method on the order.\n\nDefault: `false`"
2367
2377
  ).optional(),
2368
- policies: z.array(
2369
- z.object({
2370
- title: z.string().describe("Policy title - should be translated").min(1).max(29).optional().nullable(),
2371
- content: z.string().describe("Policy content - should be translated").min(1).max(3e3).optional()
2378
+ policies: /* @__PURE__ */ z.array(
2379
+ /* @__PURE__ */ z.object({
2380
+ title: /* @__PURE__ */ z.string().describe("Policy title - should be translated").min(1).max(29).optional().nullable(),
2381
+ content: /* @__PURE__ */ z.string().describe("Policy content - should be translated").min(1).max(3e3).optional()
2372
2382
  })
2373
2383
  ).max(5).optional(),
2374
- membersOnly: z.boolean().describe(
2384
+ membersOnly: /* @__PURE__ */ z.boolean().describe(
2375
2385
  "Whether the item can only be purchased by site members.\n\nDefault: `false`"
2376
2386
  ).optional(),
2377
- taxableAddress: z.intersection(
2378
- z.object({}),
2379
- z.xor([
2380
- z.object({ addressType: z.never().optional() }),
2381
- z.object({
2382
- addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
2387
+ taxableAddress: /* @__PURE__ */ z.intersection(
2388
+ /* @__PURE__ */ z.object({}),
2389
+ /* @__PURE__ */ z.xor([
2390
+ /* @__PURE__ */ z.object({
2391
+ addressType: /* @__PURE__ */ z.never().optional()
2392
+ }),
2393
+ /* @__PURE__ */ z.object({
2394
+ addressType: /* @__PURE__ */ z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
2383
2395
  "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
2384
2396
  )
2385
2397
  })
2386
2398
  ])
2387
2399
  ).describe("Address to use for tax calculation purposes.").optional(),
2388
- modifierGroups: z.array(
2389
- z.object({
2390
- _id: z.string().describe("Modifier group ID.").min(1).max(36).optional(),
2391
- name: z.object({
2392
- original: z.string().describe(
2400
+ modifierGroups: /* @__PURE__ */ z.array(
2401
+ /* @__PURE__ */ z.object({
2402
+ _id: /* @__PURE__ */ z.string().describe("Modifier group ID.").min(1).max(36).optional(),
2403
+ name: /* @__PURE__ */ z.object({
2404
+ original: /* @__PURE__ */ z.string().describe(
2393
2405
  "__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."
2394
2406
  ).min(1).max(200).optional(),
2395
- translated: z.string().describe(
2407
+ translated: /* @__PURE__ */ z.string().describe(
2396
2408
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
2397
2409
  ).min(1).max(400).optional().nullable()
2398
2410
  }).describe("Modifier group name.").optional(),
2399
- modifiers: z.array(
2400
- z.object({
2401
- _id: z.string().describe("Modifier ID.").min(1).max(36).optional(),
2402
- quantity: z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
2403
- label: z.object({
2404
- original: z.string().describe(
2411
+ modifiers: /* @__PURE__ */ z.array(
2412
+ /* @__PURE__ */ z.object({
2413
+ _id: /* @__PURE__ */ z.string().describe("Modifier ID.").min(1).max(36).optional(),
2414
+ quantity: /* @__PURE__ */ z.number().int().describe("The quantity of this modifier.").min(1).max(1e5).optional().nullable(),
2415
+ label: /* @__PURE__ */ z.object({
2416
+ original: /* @__PURE__ */ z.string().describe(
2405
2417
  "__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."
2406
2418
  ).min(1).max(200).optional(),
2407
- translated: z.string().describe(
2419
+ translated: /* @__PURE__ */ z.string().describe(
2408
2420
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
2409
2421
  ).min(1).max(400).optional().nullable()
2410
2422
  }).describe("Primary display label for the modifier.").optional(),
2411
- details: z.object({
2412
- original: z.string().describe(
2423
+ details: /* @__PURE__ */ z.object({
2424
+ original: /* @__PURE__ */ z.string().describe(
2413
2425
  "__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."
2414
2426
  ).min(1).max(200).optional(),
2415
- translated: z.string().describe(
2427
+ translated: /* @__PURE__ */ z.string().describe(
2416
2428
  "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
2417
2429
  ).min(1).max(400).optional().nullable()
2418
2430
  }).describe("Additional details.").optional(),
2419
- price: z.string().describe("The price of the modifier.").optional().nullable()
2431
+ price: /* @__PURE__ */ z.string().describe("The price of the modifier.").optional().nullable()
2420
2432
  })
2421
2433
  ).min(1).max(25).optional()
2422
2434
  })
2423
2435
  ).max(25).optional()
2424
2436
  })
2425
2437
  ).max(300).optional(),
2426
- couponCode: z.string().describe(
2438
+ couponCode: /* @__PURE__ */ z.string().describe(
2427
2439
  "Coupon code.\n\nNote that a checkout can only hold one `couponCode` at a time. If an additional `couponCode` is added, it will override the existing `couponCode`.\nFor additional information, see the Coupons API."
2428
2440
  ).optional().nullable(),
2429
- customContentReference: z.object({
2430
- appId: z.string().describe(
2441
+ customContentReference: /* @__PURE__ */ z.object({
2442
+ appId: /* @__PURE__ */ z.string().describe(
2431
2443
  "ID of the app providing the content.\n\nYou can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/)."
2432
2444
  ).regex(
2433
2445
  /^[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}$/,
2434
2446
  "Must be a valid GUID"
2435
2447
  ).optional(),
2436
- componentId: z.string().describe(
2448
+ componentId: /* @__PURE__ */ z.string().describe(
2437
2449
  "ID of the component within the app it belongs to.\n\nYou can get your component's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/)."
2438
2450
  ).regex(
2439
2451
  /^[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}$/,
@@ -2442,14 +2454,14 @@ var QueryCheckoutTemplatesResponse = /* @__PURE__ */ z.object({
2442
2454
  }).describe(
2443
2455
  'Reference IDs for the app and component providing custom checkout page content.\n\nTo access and manage custom checkout page content, your app must have the permission scope named "Manage eCommerce - Admin Permissions".\nLearn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).'
2444
2456
  ).optional(),
2445
- externalReference: z.object({
2446
- appId: z.string().describe(
2457
+ externalReference: /* @__PURE__ */ z.object({
2458
+ appId: /* @__PURE__ */ z.string().describe(
2447
2459
  "ID of the app associated with the purchase flow.\nFor example, the Wix Pay Links app ID."
2448
2460
  ).regex(
2449
2461
  /^[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}$/,
2450
2462
  "Must be a valid GUID"
2451
2463
  ).optional(),
2452
- resourceId: z.string().describe(
2464
+ resourceId: /* @__PURE__ */ z.string().describe(
2453
2465
  "Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.\nFor example, a Wix Pay Link ID."
2454
2466
  ).min(1).max(100).optional().nullable()
2455
2467
  }).describe(
@@ -2457,36 +2469,36 @@ var QueryCheckoutTemplatesResponse = /* @__PURE__ */ z.object({
2457
2469
  ).optional()
2458
2470
  })
2459
2471
  ).optional(),
2460
- pagingMetadata: z.object({
2461
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
2462
- cursors: z.object({
2463
- next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
2464
- prev: z.string().describe(
2472
+ pagingMetadata: /* @__PURE__ */ z.object({
2473
+ count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
2474
+ cursors: /* @__PURE__ */ z.object({
2475
+ next: /* @__PURE__ */ z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
2476
+ prev: /* @__PURE__ */ z.string().describe(
2465
2477
  "Cursor pointing to previous page in the list of results."
2466
2478
  ).optional().nullable()
2467
2479
  }).describe("Offset that was requested.").optional(),
2468
- hasNext: z.boolean().describe(
2480
+ hasNext: /* @__PURE__ */ z.boolean().describe(
2469
2481
  "Indicates if there are more results after the current page.\nIf `true`, another page of results can be retrieved.\nIf `false`, this is the last page."
2470
2482
  ).optional().nullable()
2471
2483
  }).describe("Paging metadata.").optional()
2472
2484
  });
2473
2485
  var CreateCheckoutFromTemplateRequest = /* @__PURE__ */ z.object({
2474
- checkoutTemplateId: z.string().describe("ID of the checkout template to use to create a checkout from.").regex(
2486
+ checkoutTemplateId: /* @__PURE__ */ z.string().describe("ID of the checkout template to use to create a checkout from.").regex(
2475
2487
  /^[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}$/,
2476
2488
  "Must be a valid GUID"
2477
2489
  ),
2478
- siteId: z.string().describe("ID of the site associated with the checkout template.").regex(
2490
+ siteId: /* @__PURE__ */ z.string().describe("ID of the site associated with the checkout template.").regex(
2479
2491
  /^[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}$/,
2480
2492
  "Must be a valid GUID"
2481
2493
  )
2482
2494
  });
2483
2495
  var CreateCheckoutFromTemplateResponse = /* @__PURE__ */ z.object({
2484
- checkoutId: z.string().describe("ID of the created checkout.").regex(
2496
+ checkoutId: /* @__PURE__ */ z.string().describe("ID of the created checkout.").regex(
2485
2497
  /^[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}$/,
2486
2498
  "Must be a valid GUID"
2487
2499
  ).optional(),
2488
- checkoutUrl: z.string().describe("URL of the created checkout page.").optional(),
2489
- purchaseFlowId: z.string().describe(
2500
+ checkoutUrl: /* @__PURE__ */ z.string().describe("URL of the created checkout page.").optional(),
2501
+ purchaseFlowId: /* @__PURE__ */ z.string().describe(
2490
2502
  "Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order."
2491
2503
  ).regex(
2492
2504
  /^[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}$/,
@@ -2494,20 +2506,23 @@ var CreateCheckoutFromTemplateResponse = /* @__PURE__ */ z.object({
2494
2506
  ).optional().nullable()
2495
2507
  });
2496
2508
  var CreateAndRedirectToCheckoutRequest = /* @__PURE__ */ z.object({
2497
- checkoutTemplateId: z.string().describe("ID of the checkout template to use to create a checkout.").regex(
2509
+ checkoutTemplateId: /* @__PURE__ */ z.string().describe("ID of the checkout template to use to create a checkout.").regex(
2498
2510
  /^[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}$/,
2499
2511
  "Must be a valid GUID"
2500
2512
  ),
2501
- siteId: z.string().describe("ID of the site associated with the checkout template.").regex(
2513
+ siteId: /* @__PURE__ */ z.string().describe("ID of the site associated with the checkout template.").regex(
2502
2514
  /^[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}$/,
2503
2515
  "Must be a valid GUID"
2504
2516
  )
2505
2517
  });
2506
2518
  var CreateAndRedirectToCheckoutResponse = /* @__PURE__ */ z.object({
2507
- body: z.string().optional(),
2508
- statusCode: z.number().int().optional().nullable(),
2509
- headers: z.array(
2510
- z.object({ key: z.string().optional(), value: z.string().optional() })
2519
+ body: /* @__PURE__ */ z.string().optional(),
2520
+ statusCode: /* @__PURE__ */ z.number().int().optional().nullable(),
2521
+ headers: /* @__PURE__ */ z.array(
2522
+ /* @__PURE__ */ z.object({
2523
+ key: /* @__PURE__ */ z.string().optional(),
2524
+ value: /* @__PURE__ */ z.string().optional()
2525
+ })
2511
2526
  ).optional()
2512
2527
  });
2513
2528
  export {