@wix/auto_sdk_ecom_order-payment-requests 1.0.66 → 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 +3 -3
- 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/es/schemas.mjs
CHANGED
|
@@ -1,308 +1,340 @@
|
|
|
1
1
|
// src/ecom-v1-order-payment-request-order-payment-requests.schemas.ts
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
var CreateOrderPaymentRequestRequest = /* @__PURE__ */ z.object({
|
|
4
|
-
options: z.object({
|
|
5
|
-
orderPaymentRequest: z.object({
|
|
6
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
4
|
+
options: /* @__PURE__ */ z.object({
|
|
5
|
+
orderPaymentRequest: /* @__PURE__ */ z.object({
|
|
6
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
7
7
|
/^[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}$/,
|
|
8
8
|
"Must be a valid GUID"
|
|
9
9
|
).optional().nullable(),
|
|
10
|
-
source: z.object({
|
|
11
|
-
appId: z.string().describe(
|
|
10
|
+
source: /* @__PURE__ */ z.object({
|
|
11
|
+
appId: /* @__PURE__ */ z.string().describe(
|
|
12
12
|
"ID of the app that created the order payment request."
|
|
13
13
|
).regex(
|
|
14
14
|
/^[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}$/,
|
|
15
15
|
"Must be a valid GUID"
|
|
16
16
|
).min(1).max(100).optional().nullable(),
|
|
17
|
-
externalId: z.string().describe(
|
|
17
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
18
18
|
"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."
|
|
19
19
|
).min(1).max(100).optional()
|
|
20
20
|
}).describe(
|
|
21
21
|
"Details about the source that created the order payment request."
|
|
22
22
|
).optional(),
|
|
23
|
-
status: z.enum(["UNPAID", "PAID", "EXPIRED"]).optional(),
|
|
24
|
-
orderId: z.string().describe("Order ID.").regex(
|
|
23
|
+
status: /* @__PURE__ */ z.enum(["UNPAID", "PAID", "EXPIRED"]).optional(),
|
|
24
|
+
orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
|
|
25
25
|
/^[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}$/,
|
|
26
26
|
"Must be a valid GUID"
|
|
27
27
|
),
|
|
28
|
-
orderNumber: z.string().describe("Order number.").max(100).optional().nullable(),
|
|
29
|
-
amount: z.object({
|
|
30
|
-
amount: z.string().describe("Amount.").optional(),
|
|
31
|
-
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
28
|
+
orderNumber: /* @__PURE__ */ z.string().describe("Order number.").max(100).optional().nullable(),
|
|
29
|
+
amount: /* @__PURE__ */ z.object({
|
|
30
|
+
amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
|
|
31
|
+
formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
|
|
32
32
|
}).describe(
|
|
33
33
|
"Amount to collect. Set when the order payment request is created and can't be changed afterward."
|
|
34
34
|
),
|
|
35
|
-
currency: z.string().describe(
|
|
35
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
36
36
|
"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
|
|
37
37
|
).optional(),
|
|
38
|
-
paymentGatewayOrderId: z.string().describe(
|
|
38
|
+
paymentGatewayOrderId: /* @__PURE__ */ z.string().describe(
|
|
39
39
|
"Payment gateway order ID associated with this payment request."
|
|
40
40
|
).min(1).max(100).optional().nullable(),
|
|
41
|
-
title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200),
|
|
42
|
-
description: z.string().describe(
|
|
41
|
+
title: /* @__PURE__ */ z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200),
|
|
42
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
43
43
|
"Description displayed to the customer on the payment page."
|
|
44
44
|
).max(300).optional().nullable(),
|
|
45
|
-
expirationDate: z.date().describe(
|
|
45
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
46
46
|
"Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
|
|
47
47
|
).optional().nullable(),
|
|
48
|
-
extendedFields: z.object({
|
|
49
|
-
namespaces:
|
|
48
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
49
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
50
|
+
/* @__PURE__ */ z.string(),
|
|
51
|
+
/* @__PURE__ */ z.record(
|
|
52
|
+
/* @__PURE__ */ z.string(),
|
|
53
|
+
/* @__PURE__ */ z.any()
|
|
54
|
+
)
|
|
55
|
+
).describe(
|
|
50
56
|
"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)."
|
|
51
57
|
).optional()
|
|
52
58
|
}).describe(
|
|
53
59
|
"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."
|
|
54
60
|
).optional(),
|
|
55
|
-
_createdDate: z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
56
|
-
_updatedDate: z.date().describe(
|
|
61
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
62
|
+
_updatedDate: /* @__PURE__ */ z.date().describe(
|
|
57
63
|
"Date and time the order payment request was last updated."
|
|
58
64
|
).optional().nullable(),
|
|
59
|
-
image: z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
60
|
-
blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
|
|
65
|
+
image: /* @__PURE__ */ z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
66
|
+
blockedPaymentMethods: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["MANUAL"])).max(1).optional()
|
|
61
67
|
}).describe("Order payment request to create.").optional()
|
|
62
68
|
}).optional()
|
|
63
69
|
});
|
|
64
70
|
var CreateOrderPaymentRequestResponse = /* @__PURE__ */ z.object({
|
|
65
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
71
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
66
72
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
67
73
|
"Must be a valid GUID"
|
|
68
74
|
).optional().nullable(),
|
|
69
|
-
source: z.object({
|
|
70
|
-
appId: z.string().describe("ID of the app that created the order payment request.").regex(
|
|
75
|
+
source: /* @__PURE__ */ z.object({
|
|
76
|
+
appId: /* @__PURE__ */ z.string().describe("ID of the app that created the order payment request.").regex(
|
|
71
77
|
/^[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}$/,
|
|
72
78
|
"Must be a valid GUID"
|
|
73
79
|
).min(1).max(100).optional().nullable(),
|
|
74
|
-
externalId: z.string().describe(
|
|
80
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
75
81
|
"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."
|
|
76
82
|
).min(1).max(100).optional()
|
|
77
83
|
}).describe(
|
|
78
84
|
"Details about the source that created the order payment request."
|
|
79
85
|
).optional(),
|
|
80
|
-
status: z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
86
|
+
status: /* @__PURE__ */ z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
81
87
|
"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."
|
|
82
88
|
).optional(),
|
|
83
|
-
orderId: z.string().describe("Order ID.").regex(
|
|
89
|
+
orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
|
|
84
90
|
/^[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}$/,
|
|
85
91
|
"Must be a valid GUID"
|
|
86
92
|
).optional(),
|
|
87
|
-
orderNumber: z.string().describe("Order number.").max(100).optional().nullable(),
|
|
88
|
-
amount: z.object({
|
|
89
|
-
amount: z.string().describe("Amount.").optional(),
|
|
90
|
-
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
93
|
+
orderNumber: /* @__PURE__ */ z.string().describe("Order number.").max(100).optional().nullable(),
|
|
94
|
+
amount: /* @__PURE__ */ z.object({
|
|
95
|
+
amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
|
|
96
|
+
formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
|
|
91
97
|
}).describe(
|
|
92
98
|
"Amount to collect. Set when the order payment request is created and can't be changed afterward."
|
|
93
99
|
).optional(),
|
|
94
|
-
currency: z.string().describe(
|
|
100
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
95
101
|
"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
|
|
96
102
|
).optional(),
|
|
97
|
-
paymentGatewayOrderId: z.string().describe("Payment gateway order ID associated with this payment request.").min(1).max(100).optional().nullable(),
|
|
98
|
-
title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
99
|
-
description: z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
|
|
100
|
-
expirationDate: z.date().describe(
|
|
103
|
+
paymentGatewayOrderId: /* @__PURE__ */ z.string().describe("Payment gateway order ID associated with this payment request.").min(1).max(100).optional().nullable(),
|
|
104
|
+
title: /* @__PURE__ */ z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
105
|
+
description: /* @__PURE__ */ z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
|
|
106
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
101
107
|
"Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
|
|
102
108
|
).optional().nullable(),
|
|
103
|
-
extendedFields: z.object({
|
|
104
|
-
namespaces:
|
|
109
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
110
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
111
|
+
/* @__PURE__ */ z.string(),
|
|
112
|
+
/* @__PURE__ */ z.record(
|
|
113
|
+
/* @__PURE__ */ z.string(),
|
|
114
|
+
/* @__PURE__ */ z.any()
|
|
115
|
+
)
|
|
116
|
+
).describe(
|
|
105
117
|
"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)."
|
|
106
118
|
).optional()
|
|
107
119
|
}).describe(
|
|
108
120
|
"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."
|
|
109
121
|
).optional(),
|
|
110
|
-
_createdDate: z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
111
|
-
_updatedDate: z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
112
|
-
image: z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
113
|
-
blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
|
|
122
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
123
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
124
|
+
image: /* @__PURE__ */ z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
125
|
+
blockedPaymentMethods: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["MANUAL"])).max(1).optional()
|
|
114
126
|
});
|
|
115
127
|
var GetOrderPaymentRequestRequest = /* @__PURE__ */ z.object({
|
|
116
|
-
orderPaymentRequestId: z.string().describe("ID of the order payment request to retrieve.").regex(
|
|
128
|
+
orderPaymentRequestId: /* @__PURE__ */ z.string().describe("ID of the order payment request to retrieve.").regex(
|
|
117
129
|
/^[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
130
|
"Must be a valid GUID"
|
|
119
131
|
)
|
|
120
132
|
});
|
|
121
133
|
var GetOrderPaymentRequestResponse = /* @__PURE__ */ z.object({
|
|
122
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
134
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
123
135
|
/^[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}$/,
|
|
124
136
|
"Must be a valid GUID"
|
|
125
137
|
).optional().nullable(),
|
|
126
|
-
source: z.object({
|
|
127
|
-
appId: z.string().describe("ID of the app that created the order payment request.").regex(
|
|
138
|
+
source: /* @__PURE__ */ z.object({
|
|
139
|
+
appId: /* @__PURE__ */ z.string().describe("ID of the app that created the order payment request.").regex(
|
|
128
140
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
129
141
|
"Must be a valid GUID"
|
|
130
142
|
).min(1).max(100).optional().nullable(),
|
|
131
|
-
externalId: z.string().describe(
|
|
143
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
132
144
|
"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."
|
|
133
145
|
).min(1).max(100).optional()
|
|
134
146
|
}).describe(
|
|
135
147
|
"Details about the source that created the order payment request."
|
|
136
148
|
).optional(),
|
|
137
|
-
status: z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
149
|
+
status: /* @__PURE__ */ z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
138
150
|
"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."
|
|
139
151
|
).optional(),
|
|
140
|
-
orderId: z.string().describe("Order ID.").regex(
|
|
152
|
+
orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
|
|
141
153
|
/^[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}$/,
|
|
142
154
|
"Must be a valid GUID"
|
|
143
155
|
).optional(),
|
|
144
|
-
orderNumber: z.string().describe("Order number.").max(100).optional().nullable(),
|
|
145
|
-
amount: z.object({
|
|
146
|
-
amount: z.string().describe("Amount.").optional(),
|
|
147
|
-
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
156
|
+
orderNumber: /* @__PURE__ */ z.string().describe("Order number.").max(100).optional().nullable(),
|
|
157
|
+
amount: /* @__PURE__ */ z.object({
|
|
158
|
+
amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
|
|
159
|
+
formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
|
|
148
160
|
}).describe(
|
|
149
161
|
"Amount to collect. Set when the order payment request is created and can't be changed afterward."
|
|
150
162
|
).optional(),
|
|
151
|
-
currency: z.string().describe(
|
|
163
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
152
164
|
"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
|
|
153
165
|
).optional(),
|
|
154
|
-
paymentGatewayOrderId: z.string().describe("Payment gateway order ID associated with this payment request.").min(1).max(100).optional().nullable(),
|
|
155
|
-
title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
156
|
-
description: z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
|
|
157
|
-
expirationDate: z.date().describe(
|
|
166
|
+
paymentGatewayOrderId: /* @__PURE__ */ z.string().describe("Payment gateway order ID associated with this payment request.").min(1).max(100).optional().nullable(),
|
|
167
|
+
title: /* @__PURE__ */ z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
168
|
+
description: /* @__PURE__ */ z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
|
|
169
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
158
170
|
"Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
|
|
159
171
|
).optional().nullable(),
|
|
160
|
-
extendedFields: z.object({
|
|
161
|
-
namespaces:
|
|
172
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
173
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
174
|
+
/* @__PURE__ */ z.string(),
|
|
175
|
+
/* @__PURE__ */ z.record(
|
|
176
|
+
/* @__PURE__ */ z.string(),
|
|
177
|
+
/* @__PURE__ */ z.any()
|
|
178
|
+
)
|
|
179
|
+
).describe(
|
|
162
180
|
"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)."
|
|
163
181
|
).optional()
|
|
164
182
|
}).describe(
|
|
165
183
|
"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."
|
|
166
184
|
).optional(),
|
|
167
|
-
_createdDate: z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
168
|
-
_updatedDate: z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
169
|
-
image: z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
170
|
-
blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
|
|
185
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
186
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
187
|
+
image: /* @__PURE__ */ z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
188
|
+
blockedPaymentMethods: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["MANUAL"])).max(1).optional()
|
|
171
189
|
});
|
|
172
190
|
var UpdateOrderPaymentRequestRequest = /* @__PURE__ */ z.object({
|
|
173
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
191
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
174
192
|
/^[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
193
|
"Must be a valid GUID"
|
|
176
194
|
),
|
|
177
|
-
orderPaymentRequest: z.object({
|
|
178
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
195
|
+
orderPaymentRequest: /* @__PURE__ */ z.object({
|
|
196
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
179
197
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
180
198
|
"Must be a valid GUID"
|
|
181
199
|
).optional().nullable(),
|
|
182
|
-
source: z.object({
|
|
183
|
-
appId: z.string().describe("ID of the app that created the order payment request.").regex(
|
|
200
|
+
source: /* @__PURE__ */ z.object({
|
|
201
|
+
appId: /* @__PURE__ */ z.string().describe("ID of the app that created the order payment request.").regex(
|
|
184
202
|
/^[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}$/,
|
|
185
203
|
"Must be a valid GUID"
|
|
186
204
|
).min(1).max(100).optional().nullable(),
|
|
187
|
-
externalId: z.string().describe(
|
|
205
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
188
206
|
"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."
|
|
189
207
|
).min(1).max(100).optional()
|
|
190
208
|
}).describe(
|
|
191
209
|
"Details about the source that created the order payment request."
|
|
192
210
|
).optional(),
|
|
193
|
-
status: z.enum(["UNPAID", "PAID", "EXPIRED"]).optional(),
|
|
194
|
-
orderId: z.string().describe("Order ID.").regex(
|
|
211
|
+
status: /* @__PURE__ */ z.enum(["UNPAID", "PAID", "EXPIRED"]).optional(),
|
|
212
|
+
orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
|
|
195
213
|
/^[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}$/,
|
|
196
214
|
"Must be a valid GUID"
|
|
197
215
|
).optional(),
|
|
198
|
-
orderNumber: z.string().describe("Order number.").max(100).optional().nullable(),
|
|
199
|
-
amount: z.object({
|
|
200
|
-
amount: z.string().describe("Amount.").optional(),
|
|
201
|
-
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
216
|
+
orderNumber: /* @__PURE__ */ z.string().describe("Order number.").max(100).optional().nullable(),
|
|
217
|
+
amount: /* @__PURE__ */ z.object({
|
|
218
|
+
amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
|
|
219
|
+
formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
|
|
202
220
|
}).describe(
|
|
203
221
|
"Amount to collect. Set when the order payment request is created and can't be changed afterward."
|
|
204
222
|
).optional(),
|
|
205
|
-
currency: z.string().describe(
|
|
223
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
206
224
|
"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
|
|
207
225
|
).optional(),
|
|
208
|
-
paymentGatewayOrderId: z.string().describe(
|
|
226
|
+
paymentGatewayOrderId: /* @__PURE__ */ z.string().describe(
|
|
209
227
|
"Payment gateway order ID associated with this payment request."
|
|
210
228
|
).min(1).max(100).optional().nullable(),
|
|
211
|
-
title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
212
|
-
description: z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
|
|
213
|
-
expirationDate: z.date().describe(
|
|
229
|
+
title: /* @__PURE__ */ z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
230
|
+
description: /* @__PURE__ */ z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
|
|
231
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
214
232
|
"Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
|
|
215
233
|
).optional().nullable(),
|
|
216
|
-
extendedFields: z.object({
|
|
217
|
-
namespaces:
|
|
234
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
235
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
236
|
+
/* @__PURE__ */ z.string(),
|
|
237
|
+
/* @__PURE__ */ z.record(
|
|
238
|
+
/* @__PURE__ */ z.string(),
|
|
239
|
+
/* @__PURE__ */ z.any()
|
|
240
|
+
)
|
|
241
|
+
).describe(
|
|
218
242
|
"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)."
|
|
219
243
|
).optional()
|
|
220
244
|
}).describe(
|
|
221
245
|
"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."
|
|
222
246
|
).optional(),
|
|
223
|
-
_createdDate: z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
224
|
-
_updatedDate: z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
225
|
-
image: z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
226
|
-
blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
|
|
247
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
248
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
249
|
+
image: /* @__PURE__ */ z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
250
|
+
blockedPaymentMethods: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["MANUAL"])).max(1).optional()
|
|
227
251
|
}).describe("Order payment request to update.")
|
|
228
252
|
});
|
|
229
253
|
var UpdateOrderPaymentRequestResponse = /* @__PURE__ */ z.object({
|
|
230
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
254
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
231
255
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
232
256
|
"Must be a valid GUID"
|
|
233
257
|
).optional().nullable(),
|
|
234
|
-
source: z.object({
|
|
235
|
-
appId: z.string().describe("ID of the app that created the order payment request.").regex(
|
|
258
|
+
source: /* @__PURE__ */ z.object({
|
|
259
|
+
appId: /* @__PURE__ */ z.string().describe("ID of the app that created the order payment request.").regex(
|
|
236
260
|
/^[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}$/,
|
|
237
261
|
"Must be a valid GUID"
|
|
238
262
|
).min(1).max(100).optional().nullable(),
|
|
239
|
-
externalId: z.string().describe(
|
|
263
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
240
264
|
"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."
|
|
241
265
|
).min(1).max(100).optional()
|
|
242
266
|
}).describe(
|
|
243
267
|
"Details about the source that created the order payment request."
|
|
244
268
|
).optional(),
|
|
245
|
-
status: z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
269
|
+
status: /* @__PURE__ */ z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
246
270
|
"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."
|
|
247
271
|
).optional(),
|
|
248
|
-
orderId: z.string().describe("Order ID.").regex(
|
|
272
|
+
orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
|
|
249
273
|
/^[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}$/,
|
|
250
274
|
"Must be a valid GUID"
|
|
251
275
|
).optional(),
|
|
252
|
-
orderNumber: z.string().describe("Order number.").max(100).optional().nullable(),
|
|
253
|
-
amount: z.object({
|
|
254
|
-
amount: z.string().describe("Amount.").optional(),
|
|
255
|
-
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
276
|
+
orderNumber: /* @__PURE__ */ z.string().describe("Order number.").max(100).optional().nullable(),
|
|
277
|
+
amount: /* @__PURE__ */ z.object({
|
|
278
|
+
amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
|
|
279
|
+
formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
|
|
256
280
|
}).describe(
|
|
257
281
|
"Amount to collect. Set when the order payment request is created and can't be changed afterward."
|
|
258
282
|
).optional(),
|
|
259
|
-
currency: z.string().describe(
|
|
283
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
260
284
|
"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
|
|
261
285
|
).optional(),
|
|
262
|
-
paymentGatewayOrderId: z.string().describe("Payment gateway order ID associated with this payment request.").min(1).max(100).optional().nullable(),
|
|
263
|
-
title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
264
|
-
description: z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
|
|
265
|
-
expirationDate: z.date().describe(
|
|
286
|
+
paymentGatewayOrderId: /* @__PURE__ */ z.string().describe("Payment gateway order ID associated with this payment request.").min(1).max(100).optional().nullable(),
|
|
287
|
+
title: /* @__PURE__ */ z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
288
|
+
description: /* @__PURE__ */ z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
|
|
289
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
266
290
|
"Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
|
|
267
291
|
).optional().nullable(),
|
|
268
|
-
extendedFields: z.object({
|
|
269
|
-
namespaces:
|
|
292
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
293
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
294
|
+
/* @__PURE__ */ z.string(),
|
|
295
|
+
/* @__PURE__ */ z.record(
|
|
296
|
+
/* @__PURE__ */ z.string(),
|
|
297
|
+
/* @__PURE__ */ z.any()
|
|
298
|
+
)
|
|
299
|
+
).describe(
|
|
270
300
|
"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)."
|
|
271
301
|
).optional()
|
|
272
302
|
}).describe(
|
|
273
303
|
"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."
|
|
274
304
|
).optional(),
|
|
275
|
-
_createdDate: z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
276
|
-
_updatedDate: z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
277
|
-
image: z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
278
|
-
blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
|
|
305
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
306
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
307
|
+
image: /* @__PURE__ */ z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
308
|
+
blockedPaymentMethods: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["MANUAL"])).max(1).optional()
|
|
279
309
|
});
|
|
280
310
|
var DeleteOrderPaymentRequestRequest = /* @__PURE__ */ z.object({
|
|
281
|
-
orderPaymentRequestId: z.string().describe("ID of the order payment request to delete.").regex(
|
|
311
|
+
orderPaymentRequestId: /* @__PURE__ */ z.string().describe("ID of the order payment request to delete.").regex(
|
|
282
312
|
/^[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
313
|
"Must be a valid GUID"
|
|
284
314
|
)
|
|
285
315
|
});
|
|
286
316
|
var DeleteOrderPaymentRequestResponse = /* @__PURE__ */ z.object({});
|
|
287
317
|
var QueryOrderPaymentRequestsRequest = /* @__PURE__ */ z.object({
|
|
288
|
-
query: z.intersection(
|
|
289
|
-
z.object({
|
|
290
|
-
filter: z.record(z.string(), z.any()).describe(
|
|
318
|
+
query: /* @__PURE__ */ z.intersection(
|
|
319
|
+
/* @__PURE__ */ z.object({
|
|
320
|
+
filter: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
|
|
291
321
|
'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`'
|
|
292
322
|
).optional().nullable(),
|
|
293
|
-
sort: z.array(
|
|
294
|
-
z.object({
|
|
295
|
-
fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
|
|
296
|
-
order: z.enum(["ASC", "DESC"]).optional()
|
|
323
|
+
sort: /* @__PURE__ */ z.array(
|
|
324
|
+
/* @__PURE__ */ z.object({
|
|
325
|
+
fieldName: /* @__PURE__ */ z.string().describe("Name of the field to sort by.").max(512).optional(),
|
|
326
|
+
order: /* @__PURE__ */ z.enum(["ASC", "DESC"]).optional()
|
|
297
327
|
})
|
|
298
328
|
).max(5).optional()
|
|
299
329
|
}),
|
|
300
|
-
z.xor([
|
|
301
|
-
z.object({
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
330
|
+
/* @__PURE__ */ z.xor([
|
|
331
|
+
/* @__PURE__ */ z.object({
|
|
332
|
+
cursorPaging: /* @__PURE__ */ z.never().optional()
|
|
333
|
+
}),
|
|
334
|
+
/* @__PURE__ */ z.object({
|
|
335
|
+
cursorPaging: /* @__PURE__ */ z.object({
|
|
336
|
+
limit: /* @__PURE__ */ z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
|
|
337
|
+
cursor: /* @__PURE__ */ z.string().describe(
|
|
306
338
|
"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."
|
|
307
339
|
).max(16e3).optional().nullable()
|
|
308
340
|
}).describe(
|
|
@@ -313,157 +345,169 @@ var QueryOrderPaymentRequestsRequest = /* @__PURE__ */ z.object({
|
|
|
313
345
|
).describe("WQL expression.")
|
|
314
346
|
});
|
|
315
347
|
var QueryOrderPaymentRequestsResponse = /* @__PURE__ */ z.object({
|
|
316
|
-
orderPaymentRequests: z.array(
|
|
317
|
-
z.object({
|
|
318
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
348
|
+
orderPaymentRequests: /* @__PURE__ */ z.array(
|
|
349
|
+
/* @__PURE__ */ z.object({
|
|
350
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
319
351
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
320
352
|
"Must be a valid GUID"
|
|
321
353
|
).optional().nullable(),
|
|
322
|
-
source: z.object({
|
|
323
|
-
appId: z.string().describe("ID of the app that created the order payment request.").regex(
|
|
354
|
+
source: /* @__PURE__ */ z.object({
|
|
355
|
+
appId: /* @__PURE__ */ z.string().describe("ID of the app that created the order payment request.").regex(
|
|
324
356
|
/^[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}$/,
|
|
325
357
|
"Must be a valid GUID"
|
|
326
358
|
).min(1).max(100).optional().nullable(),
|
|
327
|
-
externalId: z.string().describe(
|
|
359
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
328
360
|
"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."
|
|
329
361
|
).min(1).max(100).optional()
|
|
330
362
|
}).describe(
|
|
331
363
|
"Details about the source that created the order payment request."
|
|
332
364
|
).optional(),
|
|
333
|
-
status: z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
365
|
+
status: /* @__PURE__ */ z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
334
366
|
"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."
|
|
335
367
|
).optional(),
|
|
336
|
-
orderId: z.string().describe("Order ID.").regex(
|
|
368
|
+
orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
|
|
337
369
|
/^[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}$/,
|
|
338
370
|
"Must be a valid GUID"
|
|
339
371
|
).optional(),
|
|
340
|
-
orderNumber: z.string().describe("Order number.").max(100).optional().nullable(),
|
|
341
|
-
amount: z.object({
|
|
342
|
-
amount: z.string().describe("Amount.").optional(),
|
|
343
|
-
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
372
|
+
orderNumber: /* @__PURE__ */ z.string().describe("Order number.").max(100).optional().nullable(),
|
|
373
|
+
amount: /* @__PURE__ */ z.object({
|
|
374
|
+
amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
|
|
375
|
+
formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
|
|
344
376
|
}).describe(
|
|
345
377
|
"Amount to collect. Set when the order payment request is created and can't be changed afterward."
|
|
346
378
|
).optional(),
|
|
347
|
-
currency: z.string().describe(
|
|
379
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
348
380
|
"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
|
|
349
381
|
).optional(),
|
|
350
|
-
paymentGatewayOrderId: z.string().describe(
|
|
382
|
+
paymentGatewayOrderId: /* @__PURE__ */ z.string().describe(
|
|
351
383
|
"Payment gateway order ID associated with this payment request."
|
|
352
384
|
).min(1).max(100).optional().nullable(),
|
|
353
|
-
title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
354
|
-
description: z.string().describe(
|
|
385
|
+
title: /* @__PURE__ */ z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
386
|
+
description: /* @__PURE__ */ z.string().describe(
|
|
355
387
|
"Description displayed to the customer on the payment page."
|
|
356
388
|
).max(300).optional().nullable(),
|
|
357
|
-
expirationDate: z.date().describe(
|
|
389
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
358
390
|
"Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
|
|
359
391
|
).optional().nullable(),
|
|
360
|
-
extendedFields: z.object({
|
|
361
|
-
namespaces:
|
|
392
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
393
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
394
|
+
/* @__PURE__ */ z.string(),
|
|
395
|
+
/* @__PURE__ */ z.record(
|
|
396
|
+
/* @__PURE__ */ z.string(),
|
|
397
|
+
/* @__PURE__ */ z.any()
|
|
398
|
+
)
|
|
399
|
+
).describe(
|
|
362
400
|
"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)."
|
|
363
401
|
).optional()
|
|
364
402
|
}).describe(
|
|
365
403
|
"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."
|
|
366
404
|
).optional(),
|
|
367
|
-
_createdDate: z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
368
|
-
_updatedDate: z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
369
|
-
image: z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
370
|
-
blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
|
|
405
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
406
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
407
|
+
image: /* @__PURE__ */ z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
408
|
+
blockedPaymentMethods: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["MANUAL"])).max(1).optional()
|
|
371
409
|
})
|
|
372
410
|
).max(1e3).optional(),
|
|
373
|
-
pagingMetadata: z.object({
|
|
374
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
375
|
-
cursors: z.object({
|
|
376
|
-
next: z.string().describe(
|
|
411
|
+
pagingMetadata: /* @__PURE__ */ z.object({
|
|
412
|
+
count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
413
|
+
cursors: /* @__PURE__ */ z.object({
|
|
414
|
+
next: /* @__PURE__ */ z.string().describe(
|
|
377
415
|
"Cursor string pointing to the next page in the list of results."
|
|
378
416
|
).max(16e3).optional().nullable(),
|
|
379
|
-
prev: z.string().describe(
|
|
417
|
+
prev: /* @__PURE__ */ z.string().describe(
|
|
380
418
|
"Cursor pointing to the previous page in the list of results."
|
|
381
419
|
).max(16e3).optional().nullable()
|
|
382
420
|
}).describe(
|
|
383
421
|
"Cursor strings that point to the next page, previous page, or both."
|
|
384
422
|
).optional(),
|
|
385
|
-
hasNext: z.boolean().describe(
|
|
423
|
+
hasNext: /* @__PURE__ */ z.boolean().describe(
|
|
386
424
|
"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."
|
|
387
425
|
).optional().nullable()
|
|
388
426
|
}).describe("Paging metadata.").optional()
|
|
389
427
|
});
|
|
390
428
|
var GetOrderPaymentRequestUrlRequest = /* @__PURE__ */ z.object({
|
|
391
|
-
orderPaymentRequestId: z.string().describe("ID of the order payment request.").regex(
|
|
429
|
+
orderPaymentRequestId: /* @__PURE__ */ z.string().describe("ID of the order payment request.").regex(
|
|
392
430
|
/^[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}$/,
|
|
393
431
|
"Must be a valid GUID"
|
|
394
432
|
)
|
|
395
433
|
});
|
|
396
434
|
var GetOrderPaymentRequestUrlResponse = /* @__PURE__ */ z.object({
|
|
397
|
-
orderPaymentRequestUrl: z.string().describe("Payment page URL for the order payment request.").min(1).max(100).optional()
|
|
435
|
+
orderPaymentRequestUrl: /* @__PURE__ */ z.string().describe("Payment page URL for the order payment request.").min(1).max(100).optional()
|
|
398
436
|
});
|
|
399
437
|
var UpdateExtendedFieldsRequest = /* @__PURE__ */ z.object({
|
|
400
|
-
_id: z.string().describe("ID of the entity to update."),
|
|
401
|
-
namespace: z.string().describe(
|
|
438
|
+
_id: /* @__PURE__ */ z.string().describe("ID of the entity to update."),
|
|
439
|
+
namespace: /* @__PURE__ */ z.string().describe(
|
|
402
440
|
"Identifier for the app whose extended fields are being updated."
|
|
403
441
|
),
|
|
404
|
-
options: z.object({
|
|
405
|
-
namespaceData: z.record(z.string(), z.any()).describe(
|
|
442
|
+
options: /* @__PURE__ */ z.object({
|
|
443
|
+
namespaceData: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
|
|
406
444
|
"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."
|
|
407
445
|
)
|
|
408
446
|
})
|
|
409
447
|
});
|
|
410
448
|
var UpdateExtendedFieldsResponse = /* @__PURE__ */ z.object({
|
|
411
|
-
orderPaymentRequest: z.object({
|
|
412
|
-
_id: z.string().describe("Order payment request ID.").regex(
|
|
449
|
+
orderPaymentRequest: /* @__PURE__ */ z.object({
|
|
450
|
+
_id: /* @__PURE__ */ z.string().describe("Order payment request ID.").regex(
|
|
413
451
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
414
452
|
"Must be a valid GUID"
|
|
415
453
|
).optional().nullable(),
|
|
416
|
-
source: z.object({
|
|
417
|
-
appId: z.string().describe("ID of the app that created the order payment request.").regex(
|
|
454
|
+
source: /* @__PURE__ */ z.object({
|
|
455
|
+
appId: /* @__PURE__ */ z.string().describe("ID of the app that created the order payment request.").regex(
|
|
418
456
|
/^[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}$/,
|
|
419
457
|
"Must be a valid GUID"
|
|
420
458
|
).min(1).max(100).optional().nullable(),
|
|
421
|
-
externalId: z.string().describe(
|
|
459
|
+
externalId: /* @__PURE__ */ z.string().describe(
|
|
422
460
|
"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."
|
|
423
461
|
).min(1).max(100).optional()
|
|
424
462
|
}).describe(
|
|
425
463
|
"Details about the source that created the order payment request."
|
|
426
464
|
).optional(),
|
|
427
|
-
status: z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
465
|
+
status: /* @__PURE__ */ z.enum(["UNPAID", "PAID", "EXPIRED"]).describe(
|
|
428
466
|
"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."
|
|
429
467
|
).optional(),
|
|
430
|
-
orderId: z.string().describe("Order ID.").regex(
|
|
468
|
+
orderId: /* @__PURE__ */ z.string().describe("Order ID.").regex(
|
|
431
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}$/,
|
|
432
470
|
"Must be a valid GUID"
|
|
433
471
|
).optional(),
|
|
434
|
-
orderNumber: z.string().describe("Order number.").max(100).optional().nullable(),
|
|
435
|
-
amount: z.object({
|
|
436
|
-
amount: z.string().describe("Amount.").optional(),
|
|
437
|
-
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
472
|
+
orderNumber: /* @__PURE__ */ z.string().describe("Order number.").max(100).optional().nullable(),
|
|
473
|
+
amount: /* @__PURE__ */ z.object({
|
|
474
|
+
amount: /* @__PURE__ */ z.string().describe("Amount.").optional(),
|
|
475
|
+
formattedAmount: /* @__PURE__ */ z.string().describe("Amount formatted with currency symbol.").optional()
|
|
438
476
|
}).describe(
|
|
439
477
|
"Amount to collect. Set when the order payment request is created and can't be changed afterward."
|
|
440
478
|
).optional(),
|
|
441
|
-
currency: z.string().describe(
|
|
479
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
442
480
|
"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency."
|
|
443
481
|
).optional(),
|
|
444
|
-
paymentGatewayOrderId: z.string().describe(
|
|
482
|
+
paymentGatewayOrderId: /* @__PURE__ */ z.string().describe(
|
|
445
483
|
"Payment gateway order ID associated with this payment request."
|
|
446
484
|
).min(1).max(100).optional().nullable(),
|
|
447
|
-
title: z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
448
|
-
description: z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
|
|
449
|
-
expirationDate: z.date().describe(
|
|
485
|
+
title: /* @__PURE__ */ z.string().describe("Title displayed to the customer on the payment page.").min(1).max(200).optional(),
|
|
486
|
+
description: /* @__PURE__ */ z.string().describe("Description displayed to the customer on the payment page.").max(300).optional().nullable(),
|
|
487
|
+
expirationDate: /* @__PURE__ */ z.date().describe(
|
|
450
488
|
"Date and time the order payment request expires. If not provided, the order payment request doesn't expire."
|
|
451
489
|
).optional().nullable(),
|
|
452
|
-
extendedFields: z.object({
|
|
453
|
-
namespaces:
|
|
490
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
491
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
492
|
+
/* @__PURE__ */ z.string(),
|
|
493
|
+
/* @__PURE__ */ z.record(
|
|
494
|
+
/* @__PURE__ */ z.string(),
|
|
495
|
+
/* @__PURE__ */ z.any()
|
|
496
|
+
)
|
|
497
|
+
).describe(
|
|
454
498
|
"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)."
|
|
455
499
|
).optional()
|
|
456
500
|
}).describe(
|
|
457
501
|
"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."
|
|
458
502
|
).optional(),
|
|
459
|
-
_createdDate: z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
460
|
-
_updatedDate: z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
461
|
-
image: z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
462
|
-
blockedPaymentMethods: z.array(z.enum(["MANUAL"])).max(1).optional()
|
|
503
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was created.").optional().nullable(),
|
|
504
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the order payment request was last updated.").optional().nullable(),
|
|
505
|
+
image: /* @__PURE__ */ z.string().describe("Image to display to the customer on the payment page.").optional(),
|
|
506
|
+
blockedPaymentMethods: /* @__PURE__ */ z.array(/* @__PURE__ */ z.enum(["MANUAL"])).max(1).optional()
|
|
463
507
|
}).describe("Updated order payment request.").optional()
|
|
464
508
|
});
|
|
465
509
|
var VoidOrderPaymentRequestRequest = /* @__PURE__ */ z.object({
|
|
466
|
-
orderPaymentRequestId: z.string().describe("ID of the order payment request to void.").regex(
|
|
510
|
+
orderPaymentRequestId: /* @__PURE__ */ z.string().describe("ID of the order payment request to void.").regex(
|
|
467
511
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
468
512
|
"Must be a valid GUID"
|
|
469
513
|
)
|