@wix/auto_sdk_ecom_order-payment-requests 1.0.60 → 1.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +33 -16
  2. package/build/cjs/index.js +100 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +171 -61
  5. package/build/cjs/index.typings.js +91 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +116 -35
  8. package/build/cjs/meta.js +65 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +5 -1
  11. package/build/cjs/schemas.js +116 -117
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +33 -16
  14. package/build/es/index.mjs +99 -0
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +171 -61
  17. package/build/es/index.typings.mjs +90 -0
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +116 -35
  20. package/build/es/meta.mjs +64 -0
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +5 -1
  23. package/build/es/schemas.mjs +113 -116
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +40 -18
  26. package/build/internal/cjs/index.js +100 -0
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +187 -71
  29. package/build/internal/cjs/index.typings.js +91 -0
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +116 -35
  32. package/build/internal/cjs/meta.js +65 -0
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +5 -1
  35. package/build/internal/cjs/schemas.js +116 -117
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +40 -18
  38. package/build/internal/es/index.mjs +99 -0
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +187 -71
  41. package/build/internal/es/index.typings.mjs +90 -0
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +116 -35
  44. package/build/internal/es/meta.mjs +64 -0
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +5 -1
  47. package/build/internal/es/schemas.mjs +113 -116
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -43,7 +43,9 @@ __export(schemas_exports, {
43
43
  UpdateExtendedFieldsRequest: () => UpdateExtendedFieldsRequest,
44
44
  UpdateExtendedFieldsResponse: () => UpdateExtendedFieldsResponse,
45
45
  UpdateOrderPaymentRequestRequest: () => UpdateOrderPaymentRequestRequest,
46
- UpdateOrderPaymentRequestResponse: () => UpdateOrderPaymentRequestResponse
46
+ UpdateOrderPaymentRequestResponse: () => UpdateOrderPaymentRequestResponse,
47
+ VoidOrderPaymentRequestRequest: () => VoidOrderPaymentRequestRequest,
48
+ VoidOrderPaymentRequestResponse: () => VoidOrderPaymentRequestResponse
47
49
  });
48
50
  module.exports = __toCommonJS(schemas_exports);
49
51
 
@@ -57,15 +59,17 @@ var CreateOrderPaymentRequestRequest = z.object({
57
59
  "Must be a valid GUID"
58
60
  ).optional().nullable(),
59
61
  source: z.object({
60
- appId: z.string().describe("App Def ID that created the order payment request.").regex(
62
+ appId: z.string().describe(
63
+ "ID of the app that created the order payment request."
64
+ ).regex(
61
65
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
62
66
  "Must be a valid GUID"
63
67
  ).min(1).max(100).optional().nullable(),
64
68
  externalId: z.string().describe(
65
- "Reference to an ID from an external system, indicating the original source of the order payment request."
69
+ "Reference to a record in the source system. For example, if the payment request was created from a paylink or invoice, use this field to store the paylink ID or invoice ID."
66
70
  ).min(1).max(100).optional()
67
71
  }).describe(
68
- "Additional parameters to identify the source of the order payment request."
72
+ "Details about the source that created the order payment request."
69
73
  ).optional(),
70
74
  status: z.enum(["UNPAID", "PAID", "EXPIRED"]).optional(),
71
75
  orderId: z.string().describe("Order ID.").regex(
@@ -80,30 +84,32 @@ var CreateOrderPaymentRequestRequest = z.object({
80
84
  "Amount to collect. Set when the order payment request is created and can't be changed afterward."
81
85
  ),
82
86
  currency: z.string().describe(
83
- "Currency code. The value will always match the currency used in the order."
87
+ "Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
84
88
  ).optional(),
85
89
  paymentGatewayOrderId: z.string().describe(
86
- "Payment gateway order id which is associated with this payment request"
90
+ "Payment gateway order ID associated with this payment request."
87
91
  ).min(1).max(100).optional().nullable(),
88
- title: z.string().describe(
89
- "Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for."
90
- ).min(1).max(200),
92
+ title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200),
91
93
  description: z.string().describe(
92
- "Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for."
94
+ "Description displayed to the customer on the payment page."
93
95
  ).max(300).optional().nullable(),
94
- expirationDate: z.date().describe("Time and date the order payment request expires.").optional().nullable(),
96
+ expirationDate: z.date().describe(
97
+ "Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
98
+ ).optional().nullable(),
95
99
  extendedFields: z.object({
96
100
  namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
97
101
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
98
102
  ).optional()
99
103
  }).describe(
100
- "[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls."
104
+ "Custom field data for this order payment request.\n\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls."
101
105
  ).optional(),
102
- _createdDate: z.date().describe("Date and time the OrderPaymentRequest was created.").optional().nullable(),
103
- _updatedDate: z.date().describe("Date and time the OrderPaymentRequest was last updated.").optional().nullable(),
106
+ _createdDate: z.date().describe("Date and time the order payment request was created.").optional().nullable(),
107
+ _updatedDate: z.date().describe(
108
+ "Date and time the order payment request was last updated."
109
+ ).optional().nullable(),
104
110
  image: z.string().describe("Image to display to the customer on the payment page.").optional(),
105
111
  blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
106
- }).describe("OrderPaymentRequest to be created.").optional()
112
+ }).describe("Order payment request to create.").optional()
107
113
  }).optional()
108
114
  });
109
115
  var CreateOrderPaymentRequestResponse = z.object({
@@ -112,15 +118,15 @@ var CreateOrderPaymentRequestResponse = z.object({
112
118
  "Must be a valid GUID"
113
119
  ).optional().nullable(),
114
120
  source: z.object({
115
- appId: z.string().describe("App Def ID that created the order payment request.").regex(
121
+ appId: z.string().describe("ID of the app that created the order payment request.").regex(
116
122
  /^[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}$/,
117
123
  "Must be a valid GUID"
118
124
  ).min(1).max(100).optional().nullable(),
119
125
  externalId: z.string().describe(
120
- "Reference to an ID from an external system, indicating the original source of the order payment request."
126
+ "Reference to a record in the source system. For example, if the payment request was created from a paylink or invoice, use this field to store the paylink ID or invoice ID."
121
127
  ).min(1).max(100).optional()
122
128
  }).describe(
123
- "Additional parameters to identify the source of the order payment request."
129
+ "Details about the source that created the order payment request."
124
130
  ).optional(),
125
131
  status: z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
126
132
  "Payment request status. Set by the system. A new order payment request starts as `UNPAID`, unless `expirationDate` is already in the past at creation time, in which case it is created as `EXPIRED`. The system sets the status to `PAID` once payment is collected, `EXPIRED` when the expiration date passes, or `VOIDED` when the request is voided."
@@ -137,32 +143,28 @@ var CreateOrderPaymentRequestResponse = z.object({
137
143
  "Amount to collect. Set when the order payment request is created and can't be changed afterward."
138
144
  ).optional(),
139
145
  currency: z.string().describe(
140
- "Currency code. The value will always match the currency used in the order."
146
+ "Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
141
147
  ).optional(),
142
- paymentGatewayOrderId: z.string().describe(
143
- "Payment gateway order id which is associated with this payment request"
144
- ).min(1).max(100).optional().nullable(),
145
- title: z.string().describe(
146
- "Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for."
147
- ).min(1).max(200).optional(),
148
- description: z.string().describe(
149
- "Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for."
150
- ).max(300).optional().nullable(),
151
- expirationDate: z.date().describe("Time and date the order payment request expires.").optional().nullable(),
148
+ paymentGatewayOrderId: z.string().describe("Payment gateway order ID associated with this payment request.").min(1).max(100).optional().nullable(),
149
+ title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
150
+ description: z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
151
+ expirationDate: z.date().describe(
152
+ "Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
153
+ ).optional().nullable(),
152
154
  extendedFields: z.object({
153
155
  namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
154
156
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
155
157
  ).optional()
156
158
  }).describe(
157
- "[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls."
159
+ "Custom field data for this order payment request.\n\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls."
158
160
  ).optional(),
159
- _createdDate: z.date().describe("Date and time the OrderPaymentRequest was created.").optional().nullable(),
160
- _updatedDate: z.date().describe("Date and time the OrderPaymentRequest was last updated.").optional().nullable(),
161
+ _createdDate: z.date().describe("Date and time the order payment request was created.").optional().nullable(),
162
+ _updatedDate: z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
161
163
  image: z.string().describe("Image to display to the customer on the payment page.").optional(),
162
164
  blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
163
165
  });
164
166
  var GetOrderPaymentRequestRequest = z.object({
165
- orderPaymentRequestId: z.string().describe("ID of the OrderPaymentRequest to retrieve.").regex(
167
+ orderPaymentRequestId: z.string().describe("ID of the order payment request to retrieve.").regex(
166
168
  /^[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}$/,
167
169
  "Must be a valid GUID"
168
170
  )
@@ -173,15 +175,15 @@ var GetOrderPaymentRequestResponse = z.object({
173
175
  "Must be a valid GUID"
174
176
  ).optional().nullable(),
175
177
  source: z.object({
176
- appId: z.string().describe("App Def ID that created the order payment request.").regex(
178
+ appId: z.string().describe("ID of the app that created the order payment request.").regex(
177
179
  /^[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}$/,
178
180
  "Must be a valid GUID"
179
181
  ).min(1).max(100).optional().nullable(),
180
182
  externalId: z.string().describe(
181
- "Reference to an ID from an external system, indicating the original source of the order payment request."
183
+ "Reference to a record in the source system. For example, if the payment request was created from a paylink or invoice, use this field to store the paylink ID or invoice ID."
182
184
  ).min(1).max(100).optional()
183
185
  }).describe(
184
- "Additional parameters to identify the source of the order payment request."
186
+ "Details about the source that created the order payment request."
185
187
  ).optional(),
186
188
  status: z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
187
189
  "Payment request status. Set by the system. A new order payment request starts as `UNPAID`, unless `expirationDate` is already in the past at creation time, in which case it is created as `EXPIRED`. The system sets the status to `PAID` once payment is collected, `EXPIRED` when the expiration date passes, or `VOIDED` when the request is voided."
@@ -198,27 +200,23 @@ var GetOrderPaymentRequestResponse = z.object({
198
200
  "Amount to collect. Set when the order payment request is created and can't be changed afterward."
199
201
  ).optional(),
200
202
  currency: z.string().describe(
201
- "Currency code. The value will always match the currency used in the order."
203
+ "Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
202
204
  ).optional(),
203
- paymentGatewayOrderId: z.string().describe(
204
- "Payment gateway order id which is associated with this payment request"
205
- ).min(1).max(100).optional().nullable(),
206
- title: z.string().describe(
207
- "Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for."
208
- ).min(1).max(200).optional(),
209
- description: z.string().describe(
210
- "Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for."
211
- ).max(300).optional().nullable(),
212
- expirationDate: z.date().describe("Time and date the order payment request expires.").optional().nullable(),
205
+ paymentGatewayOrderId: z.string().describe("Payment gateway order ID associated with this payment request.").min(1).max(100).optional().nullable(),
206
+ title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
207
+ description: z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
208
+ expirationDate: z.date().describe(
209
+ "Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
210
+ ).optional().nullable(),
213
211
  extendedFields: z.object({
214
212
  namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
215
213
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
216
214
  ).optional()
217
215
  }).describe(
218
- "[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls."
216
+ "Custom field data for this order payment request.\n\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls."
219
217
  ).optional(),
220
- _createdDate: z.date().describe("Date and time the OrderPaymentRequest was created.").optional().nullable(),
221
- _updatedDate: z.date().describe("Date and time the OrderPaymentRequest was last updated.").optional().nullable(),
218
+ _createdDate: z.date().describe("Date and time the order payment request was created.").optional().nullable(),
219
+ _updatedDate: z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
222
220
  image: z.string().describe("Image to display to the customer on the payment page.").optional(),
223
221
  blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
224
222
  });
@@ -233,15 +231,15 @@ var UpdateOrderPaymentRequestRequest = z.object({
233
231
  "Must be a valid GUID"
234
232
  ).optional().nullable(),
235
233
  source: z.object({
236
- appId: z.string().describe("App Def ID that created the order payment request.").regex(
234
+ appId: z.string().describe("ID of the app that created the order payment request.").regex(
237
235
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
238
236
  "Must be a valid GUID"
239
237
  ).min(1).max(100).optional().nullable(),
240
238
  externalId: z.string().describe(
241
- "Reference to an ID from an external system, indicating the original source of the order payment request."
239
+ "Reference to a record in the source system. For example, if the payment request was created from a paylink or invoice, use this field to store the paylink ID or invoice ID."
242
240
  ).min(1).max(100).optional()
243
241
  }).describe(
244
- "Additional parameters to identify the source of the order payment request."
242
+ "Details about the source that created the order payment request."
245
243
  ).optional(),
246
244
  status: z.enum(["UNPAID", "PAID", "EXPIRED"]).optional(),
247
245
  orderId: z.string().describe("Order ID.").regex(
@@ -256,30 +254,28 @@ var UpdateOrderPaymentRequestRequest = z.object({
256
254
  "Amount to collect. Set when the order payment request is created and can't be changed afterward."
257
255
  ).optional(),
258
256
  currency: z.string().describe(
259
- "Currency code. The value will always match the currency used in the order."
257
+ "Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
260
258
  ).optional(),
261
259
  paymentGatewayOrderId: z.string().describe(
262
- "Payment gateway order id which is associated with this payment request"
260
+ "Payment gateway order ID associated with this payment request."
263
261
  ).min(1).max(100).optional().nullable(),
264
- title: z.string().describe(
265
- "Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for."
266
- ).min(1).max(200).optional(),
267
- description: z.string().describe(
268
- "Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for."
269
- ).max(300).optional().nullable(),
270
- expirationDate: z.date().describe("Time and date the order payment request expires.").optional().nullable(),
262
+ title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
263
+ description: z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
264
+ expirationDate: z.date().describe(
265
+ "Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
266
+ ).optional().nullable(),
271
267
  extendedFields: z.object({
272
268
  namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
273
269
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
274
270
  ).optional()
275
271
  }).describe(
276
- "[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls."
272
+ "Custom field data for this order payment request.\n\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls."
277
273
  ).optional(),
278
- _createdDate: z.date().describe("Date and time the OrderPaymentRequest was created.").optional().nullable(),
279
- _updatedDate: z.date().describe("Date and time the OrderPaymentRequest was last updated.").optional().nullable(),
274
+ _createdDate: z.date().describe("Date and time the order payment request was created.").optional().nullable(),
275
+ _updatedDate: z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
280
276
  image: z.string().describe("Image to display to the customer on the payment page.").optional(),
281
277
  blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
282
- }).describe("OrderPaymentRequest to be updated, may be partial.")
278
+ }).describe("Order payment request to update.")
283
279
  });
284
280
  var UpdateOrderPaymentRequestResponse = z.object({
285
281
  _id: z.string().describe("Order payment request ID.").regex(
@@ -287,15 +283,15 @@ var UpdateOrderPaymentRequestResponse = z.object({
287
283
  "Must be a valid GUID"
288
284
  ).optional().nullable(),
289
285
  source: z.object({
290
- appId: z.string().describe("App Def ID that created the order payment request.").regex(
286
+ appId: z.string().describe("ID of the app that created the order payment request.").regex(
291
287
  /^[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}$/,
292
288
  "Must be a valid GUID"
293
289
  ).min(1).max(100).optional().nullable(),
294
290
  externalId: z.string().describe(
295
- "Reference to an ID from an external system, indicating the original source of the order payment request."
291
+ "Reference to a record in the source system. For example, if the payment request was created from a paylink or invoice, use this field to store the paylink ID or invoice ID."
296
292
  ).min(1).max(100).optional()
297
293
  }).describe(
298
- "Additional parameters to identify the source of the order payment request."
294
+ "Details about the source that created the order payment request."
299
295
  ).optional(),
300
296
  status: z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
301
297
  "Payment request status. Set by the system. A new order payment request starts as `UNPAID`, unless `expirationDate` is already in the past at creation time, in which case it is created as `EXPIRED`. The system sets the status to `PAID` once payment is collected, `EXPIRED` when the expiration date passes, or `VOIDED` when the request is voided."
@@ -312,32 +308,28 @@ var UpdateOrderPaymentRequestResponse = z.object({
312
308
  "Amount to collect. Set when the order payment request is created and can't be changed afterward."
313
309
  ).optional(),
314
310
  currency: z.string().describe(
315
- "Currency code. The value will always match the currency used in the order."
311
+ "Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
316
312
  ).optional(),
317
- paymentGatewayOrderId: z.string().describe(
318
- "Payment gateway order id which is associated with this payment request"
319
- ).min(1).max(100).optional().nullable(),
320
- title: z.string().describe(
321
- "Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for."
322
- ).min(1).max(200).optional(),
323
- description: z.string().describe(
324
- "Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for."
325
- ).max(300).optional().nullable(),
326
- expirationDate: z.date().describe("Time and date the order payment request expires.").optional().nullable(),
313
+ paymentGatewayOrderId: z.string().describe("Payment gateway order ID associated with this payment request.").min(1).max(100).optional().nullable(),
314
+ title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
315
+ description: z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
316
+ expirationDate: z.date().describe(
317
+ "Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
318
+ ).optional().nullable(),
327
319
  extendedFields: z.object({
328
320
  namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
329
321
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
330
322
  ).optional()
331
323
  }).describe(
332
- "[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls."
324
+ "Custom field data for this order payment request.\n\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls."
333
325
  ).optional(),
334
- _createdDate: z.date().describe("Date and time the OrderPaymentRequest was created.").optional().nullable(),
335
- _updatedDate: z.date().describe("Date and time the OrderPaymentRequest was last updated.").optional().nullable(),
326
+ _createdDate: z.date().describe("Date and time the order payment request was created.").optional().nullable(),
327
+ _updatedDate: z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
336
328
  image: z.string().describe("Image to display to the customer on the payment page.").optional(),
337
329
  blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
338
330
  });
339
331
  var DeleteOrderPaymentRequestRequest = z.object({
340
- orderPaymentRequestId: z.string().describe("Id of the OrderPaymentRequest to delete.").regex(
332
+ orderPaymentRequestId: z.string().describe("ID of the order payment request to delete.").regex(
341
333
  /^[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}$/,
342
334
  "Must be a valid GUID"
343
335
  )
@@ -379,15 +371,15 @@ var QueryOrderPaymentRequestsResponse = z.object({
379
371
  "Must be a valid GUID"
380
372
  ).optional().nullable(),
381
373
  source: z.object({
382
- appId: z.string().describe("App Def ID that created the order payment request.").regex(
374
+ appId: z.string().describe("ID of the app that created the order payment request.").regex(
383
375
  /^[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}$/,
384
376
  "Must be a valid GUID"
385
377
  ).min(1).max(100).optional().nullable(),
386
378
  externalId: z.string().describe(
387
- "Reference to an ID from an external system, indicating the original source of the order payment request."
379
+ "Reference to a record in the source system. For example, if the payment request was created from a paylink or invoice, use this field to store the paylink ID or invoice ID."
388
380
  ).min(1).max(100).optional()
389
381
  }).describe(
390
- "Additional parameters to identify the source of the order payment request."
382
+ "Details about the source that created the order payment request."
391
383
  ).optional(),
392
384
  status: z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
393
385
  "Payment request status. Set by the system. A new order payment request starts as `UNPAID`, unless `expirationDate` is already in the past at creation time, in which case it is created as `EXPIRED`. The system sets the status to `PAID` once payment is collected, `EXPIRED` when the expiration date passes, or `VOIDED` when the request is voided."
@@ -404,27 +396,27 @@ var QueryOrderPaymentRequestsResponse = z.object({
404
396
  "Amount to collect. Set when the order payment request is created and can't be changed afterward."
405
397
  ).optional(),
406
398
  currency: z.string().describe(
407
- "Currency code. The value will always match the currency used in the order."
399
+ "Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
408
400
  ).optional(),
409
401
  paymentGatewayOrderId: z.string().describe(
410
- "Payment gateway order id which is associated with this payment request"
402
+ "Payment gateway order ID associated with this payment request."
411
403
  ).min(1).max(100).optional().nullable(),
412
- title: z.string().describe(
413
- "Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for."
414
- ).min(1).max(200).optional(),
404
+ title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
415
405
  description: z.string().describe(
416
- "Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for."
406
+ "Description displayed to the customer on the payment page."
417
407
  ).max(300).optional().nullable(),
418
- expirationDate: z.date().describe("Time and date the order payment request expires.").optional().nullable(),
408
+ expirationDate: z.date().describe(
409
+ "Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
410
+ ).optional().nullable(),
419
411
  extendedFields: z.object({
420
412
  namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
421
413
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
422
414
  ).optional()
423
415
  }).describe(
424
- "[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls."
416
+ "Custom field data for this order payment request.\n\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls."
425
417
  ).optional(),
426
- _createdDate: z.date().describe("Date and time the OrderPaymentRequest was created.").optional().nullable(),
427
- _updatedDate: z.date().describe("Date and time the OrderPaymentRequest was last updated.").optional().nullable(),
418
+ _createdDate: z.date().describe("Date and time the order payment request was created.").optional().nullable(),
419
+ _updatedDate: z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
428
420
  image: z.string().describe("Image to display to the customer on the payment page.").optional(),
429
421
  blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
430
422
  })
@@ -444,16 +436,16 @@ var QueryOrderPaymentRequestsResponse = z.object({
444
436
  hasNext: z.boolean().describe(
445
437
  "Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
446
438
  ).optional().nullable()
447
- }).describe("Paging metadata").optional()
439
+ }).describe("Paging metadata.").optional()
448
440
  });
449
441
  var GetOrderPaymentRequestUrlRequest = z.object({
450
- orderPaymentRequestId: z.string().describe("Order Payment Request ID.").regex(
442
+ orderPaymentRequestId: z.string().describe("ID of the order payment request.").regex(
451
443
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
452
444
  "Must be a valid GUID"
453
445
  )
454
446
  });
455
447
  var GetOrderPaymentRequestUrlResponse = z.object({
456
- orderPaymentRequestUrl: z.string().describe("Order Payment Request URL.").min(1).max(100).optional()
448
+ orderPaymentRequestUrl: z.string().describe("Payment page URL for the order payment request.").min(1).max(100).optional()
457
449
  });
458
450
  var UpdateExtendedFieldsRequest = z.object({
459
451
  _id: z.string().describe("ID of the entity to update."),
@@ -473,15 +465,15 @@ var UpdateExtendedFieldsResponse = z.object({
473
465
  "Must be a valid GUID"
474
466
  ).optional().nullable(),
475
467
  source: z.object({
476
- appId: z.string().describe("App Def ID that created the order payment request.").regex(
468
+ appId: z.string().describe("ID of the app that created the order payment request.").regex(
477
469
  /^[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}$/,
478
470
  "Must be a valid GUID"
479
471
  ).min(1).max(100).optional().nullable(),
480
472
  externalId: z.string().describe(
481
- "Reference to an ID from an external system, indicating the original source of the order payment request."
473
+ "Reference to a record in the source system. For example, if the payment request was created from a paylink or invoice, use this field to store the paylink ID or invoice ID."
482
474
  ).min(1).max(100).optional()
483
475
  }).describe(
484
- "Additional parameters to identify the source of the order payment request."
476
+ "Details about the source that created the order payment request."
485
477
  ).optional(),
486
478
  status: z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
487
479
  "Payment request status. Set by the system. A new order payment request starts as `UNPAID`, unless `expirationDate` is already in the past at creation time, in which case it is created as `EXPIRED`. The system sets the status to `PAID` once payment is collected, `EXPIRED` when the expiration date passes, or `VOIDED` when the request is voided."
@@ -498,31 +490,36 @@ var UpdateExtendedFieldsResponse = z.object({
498
490
  "Amount to collect. Set when the order payment request is created and can't be changed afterward."
499
491
  ).optional(),
500
492
  currency: z.string().describe(
501
- "Currency code. The value will always match the currency used in the order."
493
+ "Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
502
494
  ).optional(),
503
495
  paymentGatewayOrderId: z.string().describe(
504
- "Payment gateway order id which is associated with this payment request"
496
+ "Payment gateway order ID associated with this payment request."
505
497
  ).min(1).max(100).optional().nullable(),
506
- title: z.string().describe(
507
- "Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for."
508
- ).min(1).max(200).optional(),
509
- description: z.string().describe(
510
- "Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for."
511
- ).max(300).optional().nullable(),
512
- expirationDate: z.date().describe("Time and date the order payment request expires.").optional().nullable(),
498
+ title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
499
+ description: z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
500
+ expirationDate: z.date().describe(
501
+ "Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
502
+ ).optional().nullable(),
513
503
  extendedFields: z.object({
514
504
  namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
515
505
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
516
506
  ).optional()
517
507
  }).describe(
518
- "[Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls."
508
+ "Custom field data for this order payment request.\n\n[Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls."
519
509
  ).optional(),
520
- _createdDate: z.date().describe("Date and time the OrderPaymentRequest was created.").optional().nullable(),
521
- _updatedDate: z.date().describe("Date and time the OrderPaymentRequest was last updated.").optional().nullable(),
510
+ _createdDate: z.date().describe("Date and time the order payment request was created.").optional().nullable(),
511
+ _updatedDate: z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
522
512
  image: z.string().describe("Image to display to the customer on the payment page.").optional(),
523
513
  blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
524
- }).describe("Updated OrderPaymentRequest.").optional()
514
+ }).describe("Updated order payment request.").optional()
515
+ });
516
+ var VoidOrderPaymentRequestRequest = z.object({
517
+ orderPaymentRequestId: z.string().describe("ID of the order payment request to void.").regex(
518
+ /^[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}$/,
519
+ "Must be a valid GUID"
520
+ )
525
521
  });
522
+ var VoidOrderPaymentRequestResponse = z.object({});
526
523
  // Annotate the CommonJS export names for ESM import in node:
527
524
  0 && (module.exports = {
528
525
  CreateOrderPaymentRequestRequest,
@@ -538,6 +535,8 @@ var UpdateExtendedFieldsResponse = z.object({
538
535
  UpdateExtendedFieldsRequest,
539
536
  UpdateExtendedFieldsResponse,
540
537
  UpdateOrderPaymentRequestRequest,
541
- UpdateOrderPaymentRequestResponse
538
+ UpdateOrderPaymentRequestResponse,
539
+ VoidOrderPaymentRequestRequest,
540
+ VoidOrderPaymentRequestResponse
542
541
  });
543
542
  //# sourceMappingURL=schemas.js.map