@wix/auto_sdk_ecom_order-payment-requests 1.0.67 → 1.0.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/schemas.js +226 -182
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/schemas.mjs +226 -182
- package/build/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
- package/build/internal/cjs/index.js +0 -1106
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -836
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -622
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -542
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -1062
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -797
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -582
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -490
- package/build/internal/es/schemas.mjs.map +0 -1
package/build/cjs/schemas.js
CHANGED
|
@@ -52,308 +52,340 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
52
52
|
// src/ecom-v1-order-payment-request-order-payment-requests.schemas.ts
|
|
53
53
|
var z = __toESM(require("zod"));
|
|
54
54
|
var CreateOrderPaymentRequestRequest = /* @__PURE__ */ z.object({
|
|
55
|
-
options: z.object({
|
|
56
|
-
orderPaymentRequest: z.object({
|
|
57
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
55
|
+
options: /* @__PURE__ */ z.object({
|
|
56
|
+
orderPaymentRequest: /* @__PURE__ */ z.object({
|
|
57
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
58
58
|
/^[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}$/,
|
|
59
59
|
"Must be a valid GUID"
|
|
60
60
|
).optional().nullable(),
|
|
61
|
-
source: z.object({
|
|
62
|
-
appId: z.string().describe(
|
|
61
|
+
source: /* @__PURE__ */ z.object({
|
|
62
|
+
appId: /* @__PURE__ */ z.string().describe(
|
|
63
63
|
"ID of the app that created the order payment request."
|
|
64
64
|
).regex(
|
|
65
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}$/,
|
|
66
66
|
"Must be a valid GUID"
|
|
67
67
|
).min(1).max(100).optional().nullable(),
|
|
68
|
-
externalId: z.string().describe(
|
|
68
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
69
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."
|
|
70
70
|
).min(1).max(100).optional()
|
|
71
71
|
}).describe(
|
|
72
72
|
"Details about the source that created the order payment request."
|
|
73
73
|
).optional(),
|
|
74
|
-
status: z.enum(["UNPAID", "PAID", "EXPIRED"]).optional(),
|
|
75
|
-
orderId: z.string().describe("Order ID.").regex(
|
|
74
|
+
status: /* @__PURE__ */ z.enum(["UNPAID", "PAID", "EXPIRED"]).optional(),
|
|
75
|
+
orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
|
|
76
76
|
/^[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}$/,
|
|
77
77
|
"Must be a valid GUID"
|
|
78
78
|
),
|
|
79
|
-
orderNumber: z.string().describe("Order number.").max(100).optional().nullable(),
|
|
80
|
-
amount: z.object({
|
|
81
|
-
amount: z.string().describe("Amount.").optional(),
|
|
82
|
-
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
79
|
+
orderNumber: /* @__PURE__ */ z.string().describe("Order number.").max(100).optional().nullable(),
|
|
80
|
+
amount: /* @__PURE__ */ z.object({
|
|
81
|
+
amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
|
|
82
|
+
formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
|
|
83
83
|
}).describe(
|
|
84
84
|
"Amount to collect. Set when the order payment request is created and can't be changed afterward."
|
|
85
85
|
),
|
|
86
|
-
currency: z.string().describe(
|
|
86
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
87
87
|
"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
|
|
88
88
|
).optional(),
|
|
89
|
-
paymentGatewayOrderId: z.string().describe(
|
|
89
|
+
paymentGatewayOrderId: /* @__PURE__ */ z.string().describe(
|
|
90
90
|
"Payment gateway order ID associated with this payment request."
|
|
91
91
|
).min(1).max(100).optional().nullable(),
|
|
92
|
-
title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200),
|
|
93
|
-
description: z.string().describe(
|
|
92
|
+
title: /* @__PURE__ */ z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200),
|
|
93
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
94
94
|
"Description displayed to the customer on the payment page."
|
|
95
95
|
).max(300).optional().nullable(),
|
|
96
|
-
expirationDate: z.date().describe(
|
|
96
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
97
97
|
"Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
|
|
98
98
|
).optional().nullable(),
|
|
99
|
-
extendedFields: z.object({
|
|
100
|
-
namespaces:
|
|
99
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
100
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
101
|
+
/* @__PURE__ */ z.string(),
|
|
102
|
+
/* @__PURE__ */ z.record(
|
|
103
|
+
/* @__PURE__ */ z.string(),
|
|
104
|
+
/* @__PURE__ */ z.any()
|
|
105
|
+
)
|
|
106
|
+
).describe(
|
|
101
107
|
"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)."
|
|
102
108
|
).optional()
|
|
103
109
|
}).describe(
|
|
104
110
|
"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."
|
|
105
111
|
).optional(),
|
|
106
|
-
_createdDate: z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
107
|
-
_updatedDate: z.date().describe(
|
|
112
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
113
|
+
_updatedDate: /* @__PURE__ */ z.date().describe(
|
|
108
114
|
"Date and time the order payment request was last updated."
|
|
109
115
|
).optional().nullable(),
|
|
110
|
-
image: z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
111
|
-
blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
|
|
116
|
+
image: /* @__PURE__ */ z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
117
|
+
blockedPaymentMethods: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["MANUAL"])).max(1).optional()
|
|
112
118
|
}).describe("Order payment request to create.").optional()
|
|
113
119
|
}).optional()
|
|
114
120
|
});
|
|
115
121
|
var CreateOrderPaymentRequestResponse = /* @__PURE__ */ z.object({
|
|
116
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
122
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
117
123
|
/^[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}$/,
|
|
118
124
|
"Must be a valid GUID"
|
|
119
125
|
).optional().nullable(),
|
|
120
|
-
source: z.object({
|
|
121
|
-
appId: z.string().describe("ID of the app that created the order payment request.").regex(
|
|
126
|
+
source: /* @__PURE__ */ z.object({
|
|
127
|
+
appId: /* @__PURE__ */ z.string().describe("ID of the app that created the order payment request.").regex(
|
|
122
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}$/,
|
|
123
129
|
"Must be a valid GUID"
|
|
124
130
|
).min(1).max(100).optional().nullable(),
|
|
125
|
-
externalId: z.string().describe(
|
|
131
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
126
132
|
"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."
|
|
127
133
|
).min(1).max(100).optional()
|
|
128
134
|
}).describe(
|
|
129
135
|
"Details about the source that created the order payment request."
|
|
130
136
|
).optional(),
|
|
131
|
-
status: z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
137
|
+
status: /* @__PURE__ */ z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
132
138
|
"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."
|
|
133
139
|
).optional(),
|
|
134
|
-
orderId: z.string().describe("Order ID.").regex(
|
|
140
|
+
orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
|
|
135
141
|
/^[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}$/,
|
|
136
142
|
"Must be a valid GUID"
|
|
137
143
|
).optional(),
|
|
138
|
-
orderNumber: z.string().describe("Order number.").max(100).optional().nullable(),
|
|
139
|
-
amount: z.object({
|
|
140
|
-
amount: z.string().describe("Amount.").optional(),
|
|
141
|
-
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
144
|
+
orderNumber: /* @__PURE__ */ z.string().describe("Order number.").max(100).optional().nullable(),
|
|
145
|
+
amount: /* @__PURE__ */ z.object({
|
|
146
|
+
amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
|
|
147
|
+
formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
|
|
142
148
|
}).describe(
|
|
143
149
|
"Amount to collect. Set when the order payment request is created and can't be changed afterward."
|
|
144
150
|
).optional(),
|
|
145
|
-
currency: z.string().describe(
|
|
151
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
146
152
|
"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
|
|
147
153
|
).optional(),
|
|
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(
|
|
154
|
+
paymentGatewayOrderId: /* @__PURE__ */ z.string().describe("Payment gateway order ID associated with this payment request.").min(1).max(100).optional().nullable(),
|
|
155
|
+
title: /* @__PURE__ */ z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
156
|
+
description: /* @__PURE__ */ z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
|
|
157
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
152
158
|
"Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
|
|
153
159
|
).optional().nullable(),
|
|
154
|
-
extendedFields: z.object({
|
|
155
|
-
namespaces:
|
|
160
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
161
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
162
|
+
/* @__PURE__ */ z.string(),
|
|
163
|
+
/* @__PURE__ */ z.record(
|
|
164
|
+
/* @__PURE__ */ z.string(),
|
|
165
|
+
/* @__PURE__ */ z.any()
|
|
166
|
+
)
|
|
167
|
+
).describe(
|
|
156
168
|
"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)."
|
|
157
169
|
).optional()
|
|
158
170
|
}).describe(
|
|
159
171
|
"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."
|
|
160
172
|
).optional(),
|
|
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(),
|
|
163
|
-
image: z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
164
|
-
blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
|
|
173
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
174
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
175
|
+
image: /* @__PURE__ */ z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
176
|
+
blockedPaymentMethods: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["MANUAL"])).max(1).optional()
|
|
165
177
|
});
|
|
166
178
|
var GetOrderPaymentRequestRequest = /* @__PURE__ */ z.object({
|
|
167
|
-
orderPaymentRequestId: z.string().describe("ID of the order payment request to retrieve.").regex(
|
|
179
|
+
orderPaymentRequestId: /* @__PURE__ */ z.string().describe("ID of the order payment request to retrieve.").regex(
|
|
168
180
|
/^[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}$/,
|
|
169
181
|
"Must be a valid GUID"
|
|
170
182
|
)
|
|
171
183
|
});
|
|
172
184
|
var GetOrderPaymentRequestResponse = /* @__PURE__ */ z.object({
|
|
173
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
185
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
174
186
|
/^[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}$/,
|
|
175
187
|
"Must be a valid GUID"
|
|
176
188
|
).optional().nullable(),
|
|
177
|
-
source: z.object({
|
|
178
|
-
appId: z.string().describe("ID of the app that created the order payment request.").regex(
|
|
189
|
+
source: /* @__PURE__ */ z.object({
|
|
190
|
+
appId: /* @__PURE__ */ z.string().describe("ID of the app that created the order payment request.").regex(
|
|
179
191
|
/^[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}$/,
|
|
180
192
|
"Must be a valid GUID"
|
|
181
193
|
).min(1).max(100).optional().nullable(),
|
|
182
|
-
externalId: z.string().describe(
|
|
194
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
183
195
|
"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."
|
|
184
196
|
).min(1).max(100).optional()
|
|
185
197
|
}).describe(
|
|
186
198
|
"Details about the source that created the order payment request."
|
|
187
199
|
).optional(),
|
|
188
|
-
status: z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
200
|
+
status: /* @__PURE__ */ z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
189
201
|
"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."
|
|
190
202
|
).optional(),
|
|
191
|
-
orderId: z.string().describe("Order ID.").regex(
|
|
203
|
+
orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
|
|
192
204
|
/^[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}$/,
|
|
193
205
|
"Must be a valid GUID"
|
|
194
206
|
).optional(),
|
|
195
|
-
orderNumber: z.string().describe("Order number.").max(100).optional().nullable(),
|
|
196
|
-
amount: z.object({
|
|
197
|
-
amount: z.string().describe("Amount.").optional(),
|
|
198
|
-
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
207
|
+
orderNumber: /* @__PURE__ */ z.string().describe("Order number.").max(100).optional().nullable(),
|
|
208
|
+
amount: /* @__PURE__ */ z.object({
|
|
209
|
+
amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
|
|
210
|
+
formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
|
|
199
211
|
}).describe(
|
|
200
212
|
"Amount to collect. Set when the order payment request is created and can't be changed afterward."
|
|
201
213
|
).optional(),
|
|
202
|
-
currency: z.string().describe(
|
|
214
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
203
215
|
"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
|
|
204
216
|
).optional(),
|
|
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(
|
|
217
|
+
paymentGatewayOrderId: /* @__PURE__ */ z.string().describe("Payment gateway order ID associated with this payment request.").min(1).max(100).optional().nullable(),
|
|
218
|
+
title: /* @__PURE__ */ z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
219
|
+
description: /* @__PURE__ */ z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
|
|
220
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
209
221
|
"Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
|
|
210
222
|
).optional().nullable(),
|
|
211
|
-
extendedFields: z.object({
|
|
212
|
-
namespaces:
|
|
223
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
224
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
225
|
+
/* @__PURE__ */ z.string(),
|
|
226
|
+
/* @__PURE__ */ z.record(
|
|
227
|
+
/* @__PURE__ */ z.string(),
|
|
228
|
+
/* @__PURE__ */ z.any()
|
|
229
|
+
)
|
|
230
|
+
).describe(
|
|
213
231
|
"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)."
|
|
214
232
|
).optional()
|
|
215
233
|
}).describe(
|
|
216
234
|
"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."
|
|
217
235
|
).optional(),
|
|
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(),
|
|
220
|
-
image: z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
221
|
-
blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
|
|
236
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
237
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
238
|
+
image: /* @__PURE__ */ z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
239
|
+
blockedPaymentMethods: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["MANUAL"])).max(1).optional()
|
|
222
240
|
});
|
|
223
241
|
var UpdateOrderPaymentRequestRequest = /* @__PURE__ */ z.object({
|
|
224
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
242
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
225
243
|
/^[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}$/,
|
|
226
244
|
"Must be a valid GUID"
|
|
227
245
|
),
|
|
228
|
-
orderPaymentRequest: z.object({
|
|
229
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
246
|
+
orderPaymentRequest: /* @__PURE__ */ z.object({
|
|
247
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
230
248
|
/^[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}$/,
|
|
231
249
|
"Must be a valid GUID"
|
|
232
250
|
).optional().nullable(),
|
|
233
|
-
source: z.object({
|
|
234
|
-
appId: z.string().describe("ID of the app that created the order payment request.").regex(
|
|
251
|
+
source: /* @__PURE__ */ z.object({
|
|
252
|
+
appId: /* @__PURE__ */ z.string().describe("ID of the app that created the order payment request.").regex(
|
|
235
253
|
/^[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}$/,
|
|
236
254
|
"Must be a valid GUID"
|
|
237
255
|
).min(1).max(100).optional().nullable(),
|
|
238
|
-
externalId: z.string().describe(
|
|
256
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
239
257
|
"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."
|
|
240
258
|
).min(1).max(100).optional()
|
|
241
259
|
}).describe(
|
|
242
260
|
"Details about the source that created the order payment request."
|
|
243
261
|
).optional(),
|
|
244
|
-
status: z.enum(["UNPAID", "PAID", "EXPIRED"]).optional(),
|
|
245
|
-
orderId: z.string().describe("Order ID.").regex(
|
|
262
|
+
status: /* @__PURE__ */ z.enum(["UNPAID", "PAID", "EXPIRED"]).optional(),
|
|
263
|
+
orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
|
|
246
264
|
/^[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}$/,
|
|
247
265
|
"Must be a valid GUID"
|
|
248
266
|
).optional(),
|
|
249
|
-
orderNumber: z.string().describe("Order number.").max(100).optional().nullable(),
|
|
250
|
-
amount: z.object({
|
|
251
|
-
amount: z.string().describe("Amount.").optional(),
|
|
252
|
-
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
267
|
+
orderNumber: /* @__PURE__ */ z.string().describe("Order number.").max(100).optional().nullable(),
|
|
268
|
+
amount: /* @__PURE__ */ z.object({
|
|
269
|
+
amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
|
|
270
|
+
formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
|
|
253
271
|
}).describe(
|
|
254
272
|
"Amount to collect. Set when the order payment request is created and can't be changed afterward."
|
|
255
273
|
).optional(),
|
|
256
|
-
currency: z.string().describe(
|
|
274
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
257
275
|
"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
|
|
258
276
|
).optional(),
|
|
259
|
-
paymentGatewayOrderId: z.string().describe(
|
|
277
|
+
paymentGatewayOrderId: /* @__PURE__ */ z.string().describe(
|
|
260
278
|
"Payment gateway order ID associated with this payment request."
|
|
261
279
|
).min(1).max(100).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(
|
|
280
|
+
title: /* @__PURE__ */ z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
281
|
+
description: /* @__PURE__ */ z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
|
|
282
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
265
283
|
"Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
|
|
266
284
|
).optional().nullable(),
|
|
267
|
-
extendedFields: z.object({
|
|
268
|
-
namespaces:
|
|
285
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
286
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
287
|
+
/* @__PURE__ */ z.string(),
|
|
288
|
+
/* @__PURE__ */ z.record(
|
|
289
|
+
/* @__PURE__ */ z.string(),
|
|
290
|
+
/* @__PURE__ */ z.any()
|
|
291
|
+
)
|
|
292
|
+
).describe(
|
|
269
293
|
"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)."
|
|
270
294
|
).optional()
|
|
271
295
|
}).describe(
|
|
272
296
|
"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."
|
|
273
297
|
).optional(),
|
|
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(),
|
|
276
|
-
image: z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
277
|
-
blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
|
|
298
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
299
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
300
|
+
image: /* @__PURE__ */ z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
301
|
+
blockedPaymentMethods: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["MANUAL"])).max(1).optional()
|
|
278
302
|
}).describe("Order payment request to update.")
|
|
279
303
|
});
|
|
280
304
|
var UpdateOrderPaymentRequestResponse = /* @__PURE__ */ z.object({
|
|
281
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
305
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
282
306
|
/^[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}$/,
|
|
283
307
|
"Must be a valid GUID"
|
|
284
308
|
).optional().nullable(),
|
|
285
|
-
source: z.object({
|
|
286
|
-
appId: z.string().describe("ID of the app that created the order payment request.").regex(
|
|
309
|
+
source: /* @__PURE__ */ z.object({
|
|
310
|
+
appId: /* @__PURE__ */ z.string().describe("ID of the app that created the order payment request.").regex(
|
|
287
311
|
/^[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}$/,
|
|
288
312
|
"Must be a valid GUID"
|
|
289
313
|
).min(1).max(100).optional().nullable(),
|
|
290
|
-
externalId: z.string().describe(
|
|
314
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
291
315
|
"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."
|
|
292
316
|
).min(1).max(100).optional()
|
|
293
317
|
}).describe(
|
|
294
318
|
"Details about the source that created the order payment request."
|
|
295
319
|
).optional(),
|
|
296
|
-
status: z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
320
|
+
status: /* @__PURE__ */ z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
297
321
|
"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."
|
|
298
322
|
).optional(),
|
|
299
|
-
orderId: z.string().describe("Order ID.").regex(
|
|
323
|
+
orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
|
|
300
324
|
/^[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}$/,
|
|
301
325
|
"Must be a valid GUID"
|
|
302
326
|
).optional(),
|
|
303
|
-
orderNumber: z.string().describe("Order number.").max(100).optional().nullable(),
|
|
304
|
-
amount: z.object({
|
|
305
|
-
amount: z.string().describe("Amount.").optional(),
|
|
306
|
-
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
327
|
+
orderNumber: /* @__PURE__ */ z.string().describe("Order number.").max(100).optional().nullable(),
|
|
328
|
+
amount: /* @__PURE__ */ z.object({
|
|
329
|
+
amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
|
|
330
|
+
formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
|
|
307
331
|
}).describe(
|
|
308
332
|
"Amount to collect. Set when the order payment request is created and can't be changed afterward."
|
|
309
333
|
).optional(),
|
|
310
|
-
currency: z.string().describe(
|
|
334
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
311
335
|
"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
|
|
312
336
|
).optional(),
|
|
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(
|
|
337
|
+
paymentGatewayOrderId: /* @__PURE__ */ z.string().describe("Payment gateway order ID associated with this payment request.").min(1).max(100).optional().nullable(),
|
|
338
|
+
title: /* @__PURE__ */ z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
339
|
+
description: /* @__PURE__ */ z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
|
|
340
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
317
341
|
"Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
|
|
318
342
|
).optional().nullable(),
|
|
319
|
-
extendedFields: z.object({
|
|
320
|
-
namespaces:
|
|
343
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
344
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
345
|
+
/* @__PURE__ */ z.string(),
|
|
346
|
+
/* @__PURE__ */ z.record(
|
|
347
|
+
/* @__PURE__ */ z.string(),
|
|
348
|
+
/* @__PURE__ */ z.any()
|
|
349
|
+
)
|
|
350
|
+
).describe(
|
|
321
351
|
"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)."
|
|
322
352
|
).optional()
|
|
323
353
|
}).describe(
|
|
324
354
|
"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."
|
|
325
355
|
).optional(),
|
|
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(),
|
|
328
|
-
image: z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
329
|
-
blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
|
|
356
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
357
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
358
|
+
image: /* @__PURE__ */ z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
359
|
+
blockedPaymentMethods: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["MANUAL"])).max(1).optional()
|
|
330
360
|
});
|
|
331
361
|
var DeleteOrderPaymentRequestRequest = /* @__PURE__ */ z.object({
|
|
332
|
-
orderPaymentRequestId: z.string().describe("ID of the order payment request to delete.").regex(
|
|
362
|
+
orderPaymentRequestId: /* @__PURE__ */ z.string().describe("ID of the order payment request to delete.").regex(
|
|
333
363
|
/^[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}$/,
|
|
334
364
|
"Must be a valid GUID"
|
|
335
365
|
)
|
|
336
366
|
});
|
|
337
367
|
var DeleteOrderPaymentRequestResponse = /* @__PURE__ */ z.object({});
|
|
338
368
|
var QueryOrderPaymentRequestsRequest = /* @__PURE__ */ z.object({
|
|
339
|
-
query: z.intersection(
|
|
340
|
-
z.object({
|
|
341
|
-
filter: z.record(z.string(), z.any()).describe(
|
|
369
|
+
query: /* @__PURE__ */ z.intersection(
|
|
370
|
+
/* @__PURE__ */ z.object({
|
|
371
|
+
filter: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
|
|
342
372
|
'Filter object in the following format:\n`"filter" : {\n"fieldName1": "value1",\n"fieldName2":{"$operator":"value2"}\n}`\nExample of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`'
|
|
343
373
|
).optional().nullable(),
|
|
344
|
-
sort: z.array(
|
|
345
|
-
z.object({
|
|
346
|
-
fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
|
|
347
|
-
order: z.enum(["ASC", "DESC"]).optional()
|
|
374
|
+
sort: /* @__PURE__ */ z.array(
|
|
375
|
+
/* @__PURE__ */ z.object({
|
|
376
|
+
fieldName: /* @__PURE__ */ z.string().describe("Name of the field to sort by.").max(512).optional(),
|
|
377
|
+
order: /* @__PURE__ */ z.enum(["ASC", "DESC"]).optional()
|
|
348
378
|
})
|
|
349
379
|
).max(5).optional()
|
|
350
380
|
}),
|
|
351
|
-
z.xor([
|
|
352
|
-
z.object({
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
381
|
+
/* @__PURE__ */ z.xor([
|
|
382
|
+
/* @__PURE__ */ z.object({
|
|
383
|
+
cursorPaging: /* @__PURE__ */ z.never().optional()
|
|
384
|
+
}),
|
|
385
|
+
/* @__PURE__ */ z.object({
|
|
386
|
+
cursorPaging: /* @__PURE__ */ z.object({
|
|
387
|
+
limit: /* @__PURE__ */ z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
|
|
388
|
+
cursor: /* @__PURE__ */ z.string().describe(
|
|
357
389
|
"Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
358
390
|
).max(16e3).optional().nullable()
|
|
359
391
|
}).describe(
|
|
@@ -364,157 +396,169 @@ var QueryOrderPaymentRequestsRequest = /* @__PURE__ */ z.object({
|
|
|
364
396
|
).describe("WQL expression.")
|
|
365
397
|
});
|
|
366
398
|
var QueryOrderPaymentRequestsResponse = /* @__PURE__ */ z.object({
|
|
367
|
-
orderPaymentRequests: z.array(
|
|
368
|
-
z.object({
|
|
369
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
399
|
+
orderPaymentRequests: /* @__PURE__ */ z.array(
|
|
400
|
+
/* @__PURE__ */ z.object({
|
|
401
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
370
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}$/,
|
|
371
403
|
"Must be a valid GUID"
|
|
372
404
|
).optional().nullable(),
|
|
373
|
-
source: z.object({
|
|
374
|
-
appId: z.string().describe("ID of the app that created the order payment request.").regex(
|
|
405
|
+
source: /* @__PURE__ */ z.object({
|
|
406
|
+
appId: /* @__PURE__ */ z.string().describe("ID of the app that created the order payment request.").regex(
|
|
375
407
|
/^[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}$/,
|
|
376
408
|
"Must be a valid GUID"
|
|
377
409
|
).min(1).max(100).optional().nullable(),
|
|
378
|
-
externalId: z.string().describe(
|
|
410
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
379
411
|
"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."
|
|
380
412
|
).min(1).max(100).optional()
|
|
381
413
|
}).describe(
|
|
382
414
|
"Details about the source that created the order payment request."
|
|
383
415
|
).optional(),
|
|
384
|
-
status: z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
416
|
+
status: /* @__PURE__ */ z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
385
417
|
"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."
|
|
386
418
|
).optional(),
|
|
387
|
-
orderId: z.string().describe("Order ID.").regex(
|
|
419
|
+
orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
|
|
388
420
|
/^[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}$/,
|
|
389
421
|
"Must be a valid GUID"
|
|
390
422
|
).optional(),
|
|
391
|
-
orderNumber: z.string().describe("Order number.").max(100).optional().nullable(),
|
|
392
|
-
amount: z.object({
|
|
393
|
-
amount: z.string().describe("Amount.").optional(),
|
|
394
|
-
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
423
|
+
orderNumber: /* @__PURE__ */ z.string().describe("Order number.").max(100).optional().nullable(),
|
|
424
|
+
amount: /* @__PURE__ */ z.object({
|
|
425
|
+
amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
|
|
426
|
+
formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
|
|
395
427
|
}).describe(
|
|
396
428
|
"Amount to collect. Set when the order payment request is created and can't be changed afterward."
|
|
397
429
|
).optional(),
|
|
398
|
-
currency: z.string().describe(
|
|
430
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
399
431
|
"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
|
|
400
432
|
).optional(),
|
|
401
|
-
paymentGatewayOrderId: z.string().describe(
|
|
433
|
+
paymentGatewayOrderId: /* @__PURE__ */ z.string().describe(
|
|
402
434
|
"Payment gateway order ID associated with this payment request."
|
|
403
435
|
).min(1).max(100).optional().nullable(),
|
|
404
|
-
title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
405
|
-
description: z.string().describe(
|
|
436
|
+
title: /* @__PURE__ */ z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
437
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
406
438
|
"Description displayed to the customer on the payment page."
|
|
407
439
|
).max(300).optional().nullable(),
|
|
408
|
-
expirationDate: z.date().describe(
|
|
440
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
409
441
|
"Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
|
|
410
442
|
).optional().nullable(),
|
|
411
|
-
extendedFields: z.object({
|
|
412
|
-
namespaces:
|
|
443
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
444
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
445
|
+
/* @__PURE__ */ z.string(),
|
|
446
|
+
/* @__PURE__ */ z.record(
|
|
447
|
+
/* @__PURE__ */ z.string(),
|
|
448
|
+
/* @__PURE__ */ z.any()
|
|
449
|
+
)
|
|
450
|
+
).describe(
|
|
413
451
|
"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)."
|
|
414
452
|
).optional()
|
|
415
453
|
}).describe(
|
|
416
454
|
"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."
|
|
417
455
|
).optional(),
|
|
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(),
|
|
420
|
-
image: z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
421
|
-
blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
|
|
456
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
457
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
458
|
+
image: /* @__PURE__ */ z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
459
|
+
blockedPaymentMethods: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["MANUAL"])).max(1).optional()
|
|
422
460
|
})
|
|
423
461
|
).max(1e3).optional(),
|
|
424
|
-
pagingMetadata: z.object({
|
|
425
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
426
|
-
cursors: z.object({
|
|
427
|
-
next: z.string().describe(
|
|
462
|
+
pagingMetadata: /* @__PURE__ */ z.object({
|
|
463
|
+
count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
464
|
+
cursors: /* @__PURE__ */ z.object({
|
|
465
|
+
next: /* @__PURE__ */ z.string().describe(
|
|
428
466
|
"Cursor string pointing to the next page in the list of results."
|
|
429
467
|
).max(16e3).optional().nullable(),
|
|
430
|
-
prev: z.string().describe(
|
|
468
|
+
prev: /* @__PURE__ */ z.string().describe(
|
|
431
469
|
"Cursor pointing to the previous page in the list of results."
|
|
432
470
|
).max(16e3).optional().nullable()
|
|
433
471
|
}).describe(
|
|
434
472
|
"Cursor strings that point to the next page, previous page, or both."
|
|
435
473
|
).optional(),
|
|
436
|
-
hasNext: z.boolean().describe(
|
|
474
|
+
hasNext: /* @__PURE__ */ z.boolean().describe(
|
|
437
475
|
"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."
|
|
438
476
|
).optional().nullable()
|
|
439
477
|
}).describe("Paging metadata.").optional()
|
|
440
478
|
});
|
|
441
479
|
var GetOrderPaymentRequestUrlRequest = /* @__PURE__ */ z.object({
|
|
442
|
-
orderPaymentRequestId: z.string().describe("ID of the order payment request.").regex(
|
|
480
|
+
orderPaymentRequestId: /* @__PURE__ */ z.string().describe("ID of the order payment request.").regex(
|
|
443
481
|
/^[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}$/,
|
|
444
482
|
"Must be a valid GUID"
|
|
445
483
|
)
|
|
446
484
|
});
|
|
447
485
|
var GetOrderPaymentRequestUrlResponse = /* @__PURE__ */ z.object({
|
|
448
|
-
orderPaymentRequestUrl: z.string().describe("Payment page URL for the order payment request.").min(1).max(100).optional()
|
|
486
|
+
orderPaymentRequestUrl: /* @__PURE__ */ z.string().describe("Payment page URL for the order payment request.").min(1).max(100).optional()
|
|
449
487
|
});
|
|
450
488
|
var UpdateExtendedFieldsRequest = /* @__PURE__ */ z.object({
|
|
451
|
-
_id: z.string().describe("ID of the entity to update."),
|
|
452
|
-
namespace: z.string().describe(
|
|
489
|
+
_id: /* @__PURE__ */ z.string().describe("ID of the entity to update."),
|
|
490
|
+
namespace: /* @__PURE__ */ z.string().describe(
|
|
453
491
|
"Identifier for the app whose extended fields are being updated."
|
|
454
492
|
),
|
|
455
|
-
options: z.object({
|
|
456
|
-
namespaceData: z.record(z.string(), z.any()).describe(
|
|
493
|
+
options: /* @__PURE__ */ z.object({
|
|
494
|
+
namespaceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
|
|
457
495
|
"Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured."
|
|
458
496
|
)
|
|
459
497
|
})
|
|
460
498
|
});
|
|
461
499
|
var UpdateExtendedFieldsResponse = /* @__PURE__ */ z.object({
|
|
462
|
-
orderPaymentRequest: z.object({
|
|
463
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
500
|
+
orderPaymentRequest: /* @__PURE__ */ z.object({
|
|
501
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
464
502
|
/^[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}$/,
|
|
465
503
|
"Must be a valid GUID"
|
|
466
504
|
).optional().nullable(),
|
|
467
|
-
source: z.object({
|
|
468
|
-
appId: z.string().describe("ID of the app that created the order payment request.").regex(
|
|
505
|
+
source: /* @__PURE__ */ z.object({
|
|
506
|
+
appId: /* @__PURE__ */ z.string().describe("ID of the app that created the order payment request.").regex(
|
|
469
507
|
/^[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}$/,
|
|
470
508
|
"Must be a valid GUID"
|
|
471
509
|
).min(1).max(100).optional().nullable(),
|
|
472
|
-
externalId: z.string().describe(
|
|
510
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
473
511
|
"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."
|
|
474
512
|
).min(1).max(100).optional()
|
|
475
513
|
}).describe(
|
|
476
514
|
"Details about the source that created the order payment request."
|
|
477
515
|
).optional(),
|
|
478
|
-
status: z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
516
|
+
status: /* @__PURE__ */ z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
479
517
|
"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."
|
|
480
518
|
).optional(),
|
|
481
|
-
orderId: z.string().describe("Order ID.").regex(
|
|
519
|
+
orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
|
|
482
520
|
/^[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}$/,
|
|
483
521
|
"Must be a valid GUID"
|
|
484
522
|
).optional(),
|
|
485
|
-
orderNumber: z.string().describe("Order number.").max(100).optional().nullable(),
|
|
486
|
-
amount: z.object({
|
|
487
|
-
amount: z.string().describe("Amount.").optional(),
|
|
488
|
-
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
523
|
+
orderNumber: /* @__PURE__ */ z.string().describe("Order number.").max(100).optional().nullable(),
|
|
524
|
+
amount: /* @__PURE__ */ z.object({
|
|
525
|
+
amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
|
|
526
|
+
formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
|
|
489
527
|
}).describe(
|
|
490
528
|
"Amount to collect. Set when the order payment request is created and can't be changed afterward."
|
|
491
529
|
).optional(),
|
|
492
|
-
currency: z.string().describe(
|
|
530
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
493
531
|
"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
|
|
494
532
|
).optional(),
|
|
495
|
-
paymentGatewayOrderId: z.string().describe(
|
|
533
|
+
paymentGatewayOrderId: /* @__PURE__ */ z.string().describe(
|
|
496
534
|
"Payment gateway order ID associated with this payment request."
|
|
497
535
|
).min(1).max(100).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(
|
|
536
|
+
title: /* @__PURE__ */ z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
537
|
+
description: /* @__PURE__ */ z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
|
|
538
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
501
539
|
"Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
|
|
502
540
|
).optional().nullable(),
|
|
503
|
-
extendedFields: z.object({
|
|
504
|
-
namespaces:
|
|
541
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
542
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
543
|
+
/* @__PURE__ */ z.string(),
|
|
544
|
+
/* @__PURE__ */ z.record(
|
|
545
|
+
/* @__PURE__ */ z.string(),
|
|
546
|
+
/* @__PURE__ */ z.any()
|
|
547
|
+
)
|
|
548
|
+
).describe(
|
|
505
549
|
"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)."
|
|
506
550
|
).optional()
|
|
507
551
|
}).describe(
|
|
508
552
|
"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."
|
|
509
553
|
).optional(),
|
|
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(),
|
|
512
|
-
image: z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
513
|
-
blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
|
|
554
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
555
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
556
|
+
image: /* @__PURE__ */ z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
557
|
+
blockedPaymentMethods: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["MANUAL"])).max(1).optional()
|
|
514
558
|
}).describe("Updated order payment request.").optional()
|
|
515
559
|
});
|
|
516
560
|
var VoidOrderPaymentRequestRequest = /* @__PURE__ */ z.object({
|
|
517
|
-
orderPaymentRequestId: z.string().describe("ID of the order payment request to void.").regex(
|
|
561
|
+
orderPaymentRequestId: /* @__PURE__ */ z.string().describe("ID of the order payment request to void.").regex(
|
|
518
562
|
/^[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
563
|
"Must be a valid GUID"
|
|
520
564
|
)
|