@wix/auto_sdk_ecom_order-payment-requests 1.0.0 → 1.0.1
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/src/ecom-v1-order-payment-request-order-payment-requests.types.d.ts +138 -30
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.d.ts +157 -33
- package/build/cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.js.map +1 -1
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.types.d.ts +138 -30
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.types.js.map +1 -1
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.universal.d.ts +157 -33
- package/build/es/src/ecom-v1-order-payment-request-order-payment-requests.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.types.d.ts +138 -30
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.types.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.d.ts +157 -33
- package/build/internal/cjs/src/ecom-v1-order-payment-request-order-payment-requests.universal.js.map +1 -1
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.types.d.ts +138 -30
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.types.js.map +1 -1
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.universal.d.ts +157 -33
- package/build/internal/es/src/ecom-v1-order-payment-request-order-payment-requests.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,45 +1,68 @@
|
|
|
1
1
|
export interface OrderPaymentRequest {
|
|
2
2
|
/**
|
|
3
3
|
* Order payment request ID.
|
|
4
|
+
* @format GUID
|
|
4
5
|
* @readonly
|
|
5
6
|
*/
|
|
6
7
|
id?: string | null;
|
|
7
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Additional parameters to identify the source of the order payment request.
|
|
10
|
+
* @immutable
|
|
11
|
+
*/
|
|
8
12
|
source?: Source;
|
|
9
13
|
/**
|
|
10
14
|
* status.
|
|
11
15
|
* @readonly
|
|
12
16
|
*/
|
|
13
17
|
status?: Status;
|
|
14
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Order ID.
|
|
20
|
+
* @format GUID
|
|
21
|
+
* @immutable
|
|
22
|
+
*/
|
|
15
23
|
orderId?: string;
|
|
16
24
|
/**
|
|
17
25
|
* Order number.
|
|
18
26
|
* @readonly
|
|
27
|
+
* @maxLength 100
|
|
19
28
|
*/
|
|
20
29
|
orderNumber?: string | null;
|
|
21
30
|
/**
|
|
22
31
|
* Amount to collect.
|
|
23
32
|
* > **Note:** The amount can only be set once.
|
|
33
|
+
* @immutable
|
|
24
34
|
*/
|
|
25
35
|
amount?: Price;
|
|
26
36
|
/**
|
|
27
37
|
* Currency code. The value will always match the currency used in the order.
|
|
38
|
+
* @format CURRENCY
|
|
28
39
|
* @readonly
|
|
29
40
|
*/
|
|
30
41
|
currency?: string;
|
|
31
42
|
/**
|
|
32
43
|
* Payment gateway order id which is associated with this payment request
|
|
33
44
|
* @readonly
|
|
45
|
+
* @minLength 1
|
|
46
|
+
* @maxLength 100
|
|
34
47
|
*/
|
|
35
48
|
paymentGatewayOrderId?: string | null;
|
|
36
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for.
|
|
51
|
+
* @minLength 1
|
|
52
|
+
* @maxLength 50
|
|
53
|
+
*/
|
|
37
54
|
title?: string;
|
|
38
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for.
|
|
57
|
+
* @maxLength 300
|
|
58
|
+
*/
|
|
39
59
|
description?: string | null;
|
|
40
60
|
/** Image to be displayed to the customer on the payment page. */
|
|
41
61
|
image?: Image;
|
|
42
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* Time and date the order payment request expires.
|
|
64
|
+
* @immutable
|
|
65
|
+
*/
|
|
43
66
|
expirationDate?: Date | null;
|
|
44
67
|
/** [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls. */
|
|
45
68
|
extendedFields?: ExtendedFields;
|
|
@@ -55,9 +78,20 @@ export interface OrderPaymentRequest {
|
|
|
55
78
|
updatedDate?: Date | null;
|
|
56
79
|
}
|
|
57
80
|
export interface Source {
|
|
58
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* App Def ID that created the order payment request.
|
|
83
|
+
* @format GUID
|
|
84
|
+
* @minLength 1
|
|
85
|
+
* @maxLength 100
|
|
86
|
+
* @immutable
|
|
87
|
+
*/
|
|
59
88
|
appId?: string | null;
|
|
60
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* Reference to an ID from an external system, indicating the original source of the order payment request.
|
|
91
|
+
* @minLength 1
|
|
92
|
+
* @maxLength 100
|
|
93
|
+
* @immutable
|
|
94
|
+
*/
|
|
61
95
|
externalId?: string;
|
|
62
96
|
}
|
|
63
97
|
export declare enum Status {
|
|
@@ -67,7 +101,10 @@ export declare enum Status {
|
|
|
67
101
|
EXPIRED = "EXPIRED"
|
|
68
102
|
}
|
|
69
103
|
export interface Price {
|
|
70
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* Amount.
|
|
106
|
+
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
107
|
+
*/
|
|
71
108
|
amount?: string;
|
|
72
109
|
/**
|
|
73
110
|
* Amount formatted with currency symbol.
|
|
@@ -76,7 +113,10 @@ export interface Price {
|
|
|
76
113
|
formattedAmount?: string;
|
|
77
114
|
}
|
|
78
115
|
export interface Image {
|
|
79
|
-
/**
|
|
116
|
+
/**
|
|
117
|
+
* WixMedia image ID.
|
|
118
|
+
* @maxLength 200
|
|
119
|
+
*/
|
|
80
120
|
id?: string;
|
|
81
121
|
/**
|
|
82
122
|
* Original image height.
|
|
@@ -88,11 +128,15 @@ export interface Image {
|
|
|
88
128
|
* @readonly
|
|
89
129
|
*/
|
|
90
130
|
width?: number;
|
|
91
|
-
/**
|
|
131
|
+
/**
|
|
132
|
+
* Image alt text.
|
|
133
|
+
* @maxLength 200
|
|
134
|
+
*/
|
|
92
135
|
altText?: string | null;
|
|
93
136
|
/**
|
|
94
137
|
* Image filename.
|
|
95
138
|
* @readonly
|
|
139
|
+
* @maxLength 200
|
|
96
140
|
*/
|
|
97
141
|
filename?: string | null;
|
|
98
142
|
}
|
|
@@ -124,11 +168,18 @@ export interface CreateOrderPaymentRequestRequest {
|
|
|
124
168
|
export interface CreateOrderPaymentRequestResponse {
|
|
125
169
|
/** The created OrderPaymentRequest. */
|
|
126
170
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
127
|
-
/**
|
|
171
|
+
/**
|
|
172
|
+
* Order payment request URL.
|
|
173
|
+
* @minLength 1
|
|
174
|
+
* @maxLength 100
|
|
175
|
+
*/
|
|
128
176
|
orderPaymentRequestUrl?: string;
|
|
129
177
|
}
|
|
130
178
|
export interface GetOrderPaymentRequestRequest {
|
|
131
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* ID of the OrderPaymentRequest to retrieve.
|
|
181
|
+
* @format GUID
|
|
182
|
+
*/
|
|
132
183
|
orderPaymentRequestId: string;
|
|
133
184
|
}
|
|
134
185
|
export interface GetOrderPaymentRequestResponse {
|
|
@@ -144,7 +195,10 @@ export interface UpdateOrderPaymentRequestResponse {
|
|
|
144
195
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
145
196
|
}
|
|
146
197
|
export interface DeleteOrderPaymentRequestRequest {
|
|
147
|
-
/**
|
|
198
|
+
/**
|
|
199
|
+
* Id of the OrderPaymentRequest to delete.
|
|
200
|
+
* @format GUID
|
|
201
|
+
*/
|
|
148
202
|
orderPaymentRequestId: string;
|
|
149
203
|
}
|
|
150
204
|
export interface DeleteOrderPaymentRequestResponse {
|
|
@@ -168,6 +222,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
168
222
|
/**
|
|
169
223
|
* Sort object in the following format:
|
|
170
224
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
225
|
+
* @maxSize 5
|
|
171
226
|
*/
|
|
172
227
|
sort?: Sorting[];
|
|
173
228
|
}
|
|
@@ -177,7 +232,10 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
177
232
|
cursorPaging?: CursorPaging;
|
|
178
233
|
}
|
|
179
234
|
export interface Sorting {
|
|
180
|
-
/**
|
|
235
|
+
/**
|
|
236
|
+
* Name of the field to sort by.
|
|
237
|
+
* @maxLength 512
|
|
238
|
+
*/
|
|
181
239
|
fieldName?: string;
|
|
182
240
|
/** Sort order. */
|
|
183
241
|
order?: SortOrder;
|
|
@@ -187,18 +245,25 @@ export declare enum SortOrder {
|
|
|
187
245
|
DESC = "DESC"
|
|
188
246
|
}
|
|
189
247
|
export interface CursorPaging {
|
|
190
|
-
/**
|
|
248
|
+
/**
|
|
249
|
+
* Maximum number of items to return in the results.
|
|
250
|
+
* @max 100
|
|
251
|
+
*/
|
|
191
252
|
limit?: number | null;
|
|
192
253
|
/**
|
|
193
254
|
* Pointer to the next or previous page in the list of results.
|
|
194
255
|
*
|
|
195
256
|
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
196
257
|
* Not relevant for the first request.
|
|
258
|
+
* @maxLength 16000
|
|
197
259
|
*/
|
|
198
260
|
cursor?: string | null;
|
|
199
261
|
}
|
|
200
262
|
export interface QueryOrderPaymentRequestsResponse {
|
|
201
|
-
/**
|
|
263
|
+
/**
|
|
264
|
+
* List of payment requests.
|
|
265
|
+
* @maxSize 1000
|
|
266
|
+
*/
|
|
202
267
|
orderPaymentRequests?: OrderPaymentRequest[];
|
|
203
268
|
/** Paging metadata */
|
|
204
269
|
pagingMetadata?: CursorPagingMetadata;
|
|
@@ -217,17 +282,30 @@ export interface CursorPagingMetadata {
|
|
|
217
282
|
hasNext?: boolean | null;
|
|
218
283
|
}
|
|
219
284
|
export interface Cursors {
|
|
220
|
-
/**
|
|
285
|
+
/**
|
|
286
|
+
* Cursor string pointing to the next page in the list of results.
|
|
287
|
+
* @maxLength 16000
|
|
288
|
+
*/
|
|
221
289
|
next?: string | null;
|
|
222
|
-
/**
|
|
290
|
+
/**
|
|
291
|
+
* Cursor pointing to the previous page in the list of results.
|
|
292
|
+
* @maxLength 16000
|
|
293
|
+
*/
|
|
223
294
|
prev?: string | null;
|
|
224
295
|
}
|
|
225
296
|
export interface GetOrderPaymentRequestURLRequest {
|
|
226
|
-
/**
|
|
297
|
+
/**
|
|
298
|
+
* Order Payment Request ID.
|
|
299
|
+
* @format GUID
|
|
300
|
+
*/
|
|
227
301
|
orderPaymentRequestId: string;
|
|
228
302
|
}
|
|
229
303
|
export interface GetOrderPaymentRequestURLResponse {
|
|
230
|
-
/**
|
|
304
|
+
/**
|
|
305
|
+
* Order Payment Request URL.
|
|
306
|
+
* @minLength 1
|
|
307
|
+
* @maxLength 100
|
|
308
|
+
*/
|
|
231
309
|
orderPaymentRequestUrl?: string;
|
|
232
310
|
}
|
|
233
311
|
export interface UpdateExtendedFieldsRequest {
|
|
@@ -317,9 +395,15 @@ export interface ActionEvent {
|
|
|
317
395
|
export interface Empty {
|
|
318
396
|
}
|
|
319
397
|
export interface MessageEnvelope {
|
|
320
|
-
/**
|
|
398
|
+
/**
|
|
399
|
+
* App instance ID.
|
|
400
|
+
* @format GUID
|
|
401
|
+
*/
|
|
321
402
|
instanceId?: string | null;
|
|
322
|
-
/**
|
|
403
|
+
/**
|
|
404
|
+
* Event type.
|
|
405
|
+
* @maxLength 150
|
|
406
|
+
*/
|
|
323
407
|
eventType?: string;
|
|
324
408
|
/** The identification type and identity data. */
|
|
325
409
|
identity?: IdentificationData;
|
|
@@ -327,26 +411,50 @@ export interface MessageEnvelope {
|
|
|
327
411
|
data?: string;
|
|
328
412
|
}
|
|
329
413
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
330
|
-
/**
|
|
414
|
+
/**
|
|
415
|
+
* ID of a site visitor that has not logged in to the site.
|
|
416
|
+
* @format GUID
|
|
417
|
+
*/
|
|
331
418
|
anonymousVisitorId?: string;
|
|
332
|
-
/**
|
|
419
|
+
/**
|
|
420
|
+
* ID of a site visitor that has logged in to the site.
|
|
421
|
+
* @format GUID
|
|
422
|
+
*/
|
|
333
423
|
memberId?: string;
|
|
334
|
-
/**
|
|
424
|
+
/**
|
|
425
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
426
|
+
* @format GUID
|
|
427
|
+
*/
|
|
335
428
|
wixUserId?: string;
|
|
336
|
-
/**
|
|
429
|
+
/**
|
|
430
|
+
* ID of an app.
|
|
431
|
+
* @format GUID
|
|
432
|
+
*/
|
|
337
433
|
appId?: string;
|
|
338
434
|
/** @readonly */
|
|
339
435
|
identityType?: WebhookIdentityType;
|
|
340
436
|
}
|
|
341
437
|
/** @oneof */
|
|
342
438
|
export interface IdentificationDataIdOneOf {
|
|
343
|
-
/**
|
|
439
|
+
/**
|
|
440
|
+
* ID of a site visitor that has not logged in to the site.
|
|
441
|
+
* @format GUID
|
|
442
|
+
*/
|
|
344
443
|
anonymousVisitorId?: string;
|
|
345
|
-
/**
|
|
444
|
+
/**
|
|
445
|
+
* ID of a site visitor that has logged in to the site.
|
|
446
|
+
* @format GUID
|
|
447
|
+
*/
|
|
346
448
|
memberId?: string;
|
|
347
|
-
/**
|
|
449
|
+
/**
|
|
450
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
451
|
+
* @format GUID
|
|
452
|
+
*/
|
|
348
453
|
wixUserId?: string;
|
|
349
|
-
/**
|
|
454
|
+
/**
|
|
455
|
+
* ID of an app.
|
|
456
|
+
* @format GUID
|
|
457
|
+
*/
|
|
350
458
|
appId?: string;
|
|
351
459
|
}
|
|
352
460
|
export declare enum WebhookIdentityType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-order-payment-request-order-payment-requests.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-order-payment-request-order-payment-requests.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ecom-v1-order-payment-request-order-payment-requests.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-order-payment-request-order-payment-requests.types.ts"],"names":[],"mappings":";;;AAkGA,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,2BAAiB,CAAA;IACjB,uBAAa,CAAA;IACb,6BAAmB,CAAA;AACrB,CAAC,EALW,MAAM,sBAAN,MAAM,QAKjB;AA8JD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAyOD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -1,45 +1,68 @@
|
|
|
1
1
|
export interface OrderPaymentRequest {
|
|
2
2
|
/**
|
|
3
3
|
* Order payment request ID.
|
|
4
|
+
* @format GUID
|
|
4
5
|
* @readonly
|
|
5
6
|
*/
|
|
6
7
|
_id?: string | null;
|
|
7
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Additional parameters to identify the source of the order payment request.
|
|
10
|
+
* @immutable
|
|
11
|
+
*/
|
|
8
12
|
source?: Source;
|
|
9
13
|
/**
|
|
10
14
|
* status.
|
|
11
15
|
* @readonly
|
|
12
16
|
*/
|
|
13
17
|
status?: Status;
|
|
14
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Order ID.
|
|
20
|
+
* @format GUID
|
|
21
|
+
* @immutable
|
|
22
|
+
*/
|
|
15
23
|
orderId?: string;
|
|
16
24
|
/**
|
|
17
25
|
* Order number.
|
|
18
26
|
* @readonly
|
|
27
|
+
* @maxLength 100
|
|
19
28
|
*/
|
|
20
29
|
orderNumber?: string | null;
|
|
21
30
|
/**
|
|
22
31
|
* Amount to collect.
|
|
23
32
|
* > **Note:** The amount can only be set once.
|
|
33
|
+
* @immutable
|
|
24
34
|
*/
|
|
25
35
|
amount?: Price;
|
|
26
36
|
/**
|
|
27
37
|
* Currency code. The value will always match the currency used in the order.
|
|
38
|
+
* @format CURRENCY
|
|
28
39
|
* @readonly
|
|
29
40
|
*/
|
|
30
41
|
currency?: string;
|
|
31
42
|
/**
|
|
32
43
|
* Payment gateway order id which is associated with this payment request
|
|
33
44
|
* @readonly
|
|
45
|
+
* @minLength 1
|
|
46
|
+
* @maxLength 100
|
|
34
47
|
*/
|
|
35
48
|
paymentGatewayOrderId?: string | null;
|
|
36
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for.
|
|
51
|
+
* @minLength 1
|
|
52
|
+
* @maxLength 50
|
|
53
|
+
*/
|
|
37
54
|
title?: string;
|
|
38
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for.
|
|
57
|
+
* @maxLength 300
|
|
58
|
+
*/
|
|
39
59
|
description?: string | null;
|
|
40
60
|
/** Image to be displayed to the customer on the payment page. */
|
|
41
61
|
image?: string;
|
|
42
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* Time and date the order payment request expires.
|
|
64
|
+
* @immutable
|
|
65
|
+
*/
|
|
43
66
|
expirationDate?: Date | null;
|
|
44
67
|
/** [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls. */
|
|
45
68
|
extendedFields?: ExtendedFields;
|
|
@@ -55,9 +78,20 @@ export interface OrderPaymentRequest {
|
|
|
55
78
|
_updatedDate?: Date | null;
|
|
56
79
|
}
|
|
57
80
|
export interface Source {
|
|
58
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* App Def ID that created the order payment request.
|
|
83
|
+
* @format GUID
|
|
84
|
+
* @minLength 1
|
|
85
|
+
* @maxLength 100
|
|
86
|
+
* @immutable
|
|
87
|
+
*/
|
|
59
88
|
appId?: string | null;
|
|
60
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* Reference to an ID from an external system, indicating the original source of the order payment request.
|
|
91
|
+
* @minLength 1
|
|
92
|
+
* @maxLength 100
|
|
93
|
+
* @immutable
|
|
94
|
+
*/
|
|
61
95
|
externalId?: string;
|
|
62
96
|
}
|
|
63
97
|
export declare enum Status {
|
|
@@ -67,7 +101,10 @@ export declare enum Status {
|
|
|
67
101
|
EXPIRED = "EXPIRED"
|
|
68
102
|
}
|
|
69
103
|
export interface Price {
|
|
70
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* Amount.
|
|
106
|
+
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
107
|
+
*/
|
|
71
108
|
amount?: string;
|
|
72
109
|
/**
|
|
73
110
|
* Amount formatted with currency symbol.
|
|
@@ -103,11 +140,18 @@ export interface CreateOrderPaymentRequestRequest {
|
|
|
103
140
|
export interface CreateOrderPaymentRequestResponse {
|
|
104
141
|
/** The created OrderPaymentRequest. */
|
|
105
142
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
106
|
-
/**
|
|
143
|
+
/**
|
|
144
|
+
* Order payment request URL.
|
|
145
|
+
* @minLength 1
|
|
146
|
+
* @maxLength 100
|
|
147
|
+
*/
|
|
107
148
|
orderPaymentRequestUrl?: string;
|
|
108
149
|
}
|
|
109
150
|
export interface GetOrderPaymentRequestRequest {
|
|
110
|
-
/**
|
|
151
|
+
/**
|
|
152
|
+
* ID of the OrderPaymentRequest to retrieve.
|
|
153
|
+
* @format GUID
|
|
154
|
+
*/
|
|
111
155
|
orderPaymentRequestId: string;
|
|
112
156
|
}
|
|
113
157
|
export interface GetOrderPaymentRequestResponse {
|
|
@@ -123,7 +167,10 @@ export interface UpdateOrderPaymentRequestResponse {
|
|
|
123
167
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
124
168
|
}
|
|
125
169
|
export interface DeleteOrderPaymentRequestRequest {
|
|
126
|
-
/**
|
|
170
|
+
/**
|
|
171
|
+
* Id of the OrderPaymentRequest to delete.
|
|
172
|
+
* @format GUID
|
|
173
|
+
*/
|
|
127
174
|
orderPaymentRequestId: string;
|
|
128
175
|
}
|
|
129
176
|
export interface DeleteOrderPaymentRequestResponse {
|
|
@@ -147,6 +194,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
147
194
|
/**
|
|
148
195
|
* Sort object in the following format:
|
|
149
196
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
197
|
+
* @maxSize 5
|
|
150
198
|
*/
|
|
151
199
|
sort?: Sorting[];
|
|
152
200
|
}
|
|
@@ -156,7 +204,10 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
156
204
|
cursorPaging?: CursorPaging;
|
|
157
205
|
}
|
|
158
206
|
export interface Sorting {
|
|
159
|
-
/**
|
|
207
|
+
/**
|
|
208
|
+
* Name of the field to sort by.
|
|
209
|
+
* @maxLength 512
|
|
210
|
+
*/
|
|
160
211
|
fieldName?: string;
|
|
161
212
|
/** Sort order. */
|
|
162
213
|
order?: SortOrder;
|
|
@@ -166,18 +217,25 @@ export declare enum SortOrder {
|
|
|
166
217
|
DESC = "DESC"
|
|
167
218
|
}
|
|
168
219
|
export interface CursorPaging {
|
|
169
|
-
/**
|
|
220
|
+
/**
|
|
221
|
+
* Maximum number of items to return in the results.
|
|
222
|
+
* @max 100
|
|
223
|
+
*/
|
|
170
224
|
limit?: number | null;
|
|
171
225
|
/**
|
|
172
226
|
* Pointer to the next or previous page in the list of results.
|
|
173
227
|
*
|
|
174
228
|
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
175
229
|
* Not relevant for the first request.
|
|
230
|
+
* @maxLength 16000
|
|
176
231
|
*/
|
|
177
232
|
cursor?: string | null;
|
|
178
233
|
}
|
|
179
234
|
export interface QueryOrderPaymentRequestsResponse {
|
|
180
|
-
/**
|
|
235
|
+
/**
|
|
236
|
+
* List of payment requests.
|
|
237
|
+
* @maxSize 1000
|
|
238
|
+
*/
|
|
181
239
|
orderPaymentRequests?: OrderPaymentRequest[];
|
|
182
240
|
/** Paging metadata */
|
|
183
241
|
pagingMetadata?: CursorPagingMetadata;
|
|
@@ -196,17 +254,30 @@ export interface CursorPagingMetadata {
|
|
|
196
254
|
hasNext?: boolean | null;
|
|
197
255
|
}
|
|
198
256
|
export interface Cursors {
|
|
199
|
-
/**
|
|
257
|
+
/**
|
|
258
|
+
* Cursor string pointing to the next page in the list of results.
|
|
259
|
+
* @maxLength 16000
|
|
260
|
+
*/
|
|
200
261
|
next?: string | null;
|
|
201
|
-
/**
|
|
262
|
+
/**
|
|
263
|
+
* Cursor pointing to the previous page in the list of results.
|
|
264
|
+
* @maxLength 16000
|
|
265
|
+
*/
|
|
202
266
|
prev?: string | null;
|
|
203
267
|
}
|
|
204
268
|
export interface GetOrderPaymentRequestURLRequest {
|
|
205
|
-
/**
|
|
269
|
+
/**
|
|
270
|
+
* Order Payment Request ID.
|
|
271
|
+
* @format GUID
|
|
272
|
+
*/
|
|
206
273
|
orderPaymentRequestId: string;
|
|
207
274
|
}
|
|
208
275
|
export interface GetOrderPaymentRequestURLResponse {
|
|
209
|
-
/**
|
|
276
|
+
/**
|
|
277
|
+
* Order Payment Request URL.
|
|
278
|
+
* @minLength 1
|
|
279
|
+
* @maxLength 100
|
|
280
|
+
*/
|
|
210
281
|
orderPaymentRequestUrl?: string;
|
|
211
282
|
}
|
|
212
283
|
export interface UpdateExtendedFieldsRequest {
|
|
@@ -294,9 +365,15 @@ export interface ActionEvent {
|
|
|
294
365
|
export interface Empty {
|
|
295
366
|
}
|
|
296
367
|
export interface MessageEnvelope {
|
|
297
|
-
/**
|
|
368
|
+
/**
|
|
369
|
+
* App instance ID.
|
|
370
|
+
* @format GUID
|
|
371
|
+
*/
|
|
298
372
|
instanceId?: string | null;
|
|
299
|
-
/**
|
|
373
|
+
/**
|
|
374
|
+
* Event type.
|
|
375
|
+
* @maxLength 150
|
|
376
|
+
*/
|
|
300
377
|
eventType?: string;
|
|
301
378
|
/** The identification type and identity data. */
|
|
302
379
|
identity?: IdentificationData;
|
|
@@ -304,26 +381,50 @@ export interface MessageEnvelope {
|
|
|
304
381
|
data?: string;
|
|
305
382
|
}
|
|
306
383
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
307
|
-
/**
|
|
384
|
+
/**
|
|
385
|
+
* ID of a site visitor that has not logged in to the site.
|
|
386
|
+
* @format GUID
|
|
387
|
+
*/
|
|
308
388
|
anonymousVisitorId?: string;
|
|
309
|
-
/**
|
|
389
|
+
/**
|
|
390
|
+
* ID of a site visitor that has logged in to the site.
|
|
391
|
+
* @format GUID
|
|
392
|
+
*/
|
|
310
393
|
memberId?: string;
|
|
311
|
-
/**
|
|
394
|
+
/**
|
|
395
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
396
|
+
* @format GUID
|
|
397
|
+
*/
|
|
312
398
|
wixUserId?: string;
|
|
313
|
-
/**
|
|
399
|
+
/**
|
|
400
|
+
* ID of an app.
|
|
401
|
+
* @format GUID
|
|
402
|
+
*/
|
|
314
403
|
appId?: string;
|
|
315
404
|
/** @readonly */
|
|
316
405
|
identityType?: WebhookIdentityType;
|
|
317
406
|
}
|
|
318
407
|
/** @oneof */
|
|
319
408
|
export interface IdentificationDataIdOneOf {
|
|
320
|
-
/**
|
|
409
|
+
/**
|
|
410
|
+
* ID of a site visitor that has not logged in to the site.
|
|
411
|
+
* @format GUID
|
|
412
|
+
*/
|
|
321
413
|
anonymousVisitorId?: string;
|
|
322
|
-
/**
|
|
414
|
+
/**
|
|
415
|
+
* ID of a site visitor that has logged in to the site.
|
|
416
|
+
* @format GUID
|
|
417
|
+
*/
|
|
323
418
|
memberId?: string;
|
|
324
|
-
/**
|
|
419
|
+
/**
|
|
420
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
421
|
+
* @format GUID
|
|
422
|
+
*/
|
|
325
423
|
wixUserId?: string;
|
|
326
|
-
/**
|
|
424
|
+
/**
|
|
425
|
+
* ID of an app.
|
|
426
|
+
* @format GUID
|
|
427
|
+
*/
|
|
327
428
|
appId?: string;
|
|
328
429
|
}
|
|
329
430
|
export declare enum WebhookIdentityType {
|
|
@@ -428,45 +529,68 @@ export declare function updateOrderPaymentRequest(_id: string | null, orderPayme
|
|
|
428
529
|
export interface UpdateOrderPaymentRequest {
|
|
429
530
|
/**
|
|
430
531
|
* Order payment request ID.
|
|
532
|
+
* @format GUID
|
|
431
533
|
* @readonly
|
|
432
534
|
*/
|
|
433
535
|
_id?: string | null;
|
|
434
|
-
/**
|
|
536
|
+
/**
|
|
537
|
+
* Additional parameters to identify the source of the order payment request.
|
|
538
|
+
* @immutable
|
|
539
|
+
*/
|
|
435
540
|
source?: Source;
|
|
436
541
|
/**
|
|
437
542
|
* status.
|
|
438
543
|
* @readonly
|
|
439
544
|
*/
|
|
440
545
|
status?: Status;
|
|
441
|
-
/**
|
|
546
|
+
/**
|
|
547
|
+
* Order ID.
|
|
548
|
+
* @format GUID
|
|
549
|
+
* @immutable
|
|
550
|
+
*/
|
|
442
551
|
orderId?: string;
|
|
443
552
|
/**
|
|
444
553
|
* Order number.
|
|
445
554
|
* @readonly
|
|
555
|
+
* @maxLength 100
|
|
446
556
|
*/
|
|
447
557
|
orderNumber?: string | null;
|
|
448
558
|
/**
|
|
449
559
|
* Amount to collect.
|
|
450
560
|
* > **Note:** The amount can only be set once.
|
|
561
|
+
* @immutable
|
|
451
562
|
*/
|
|
452
563
|
amount?: Price;
|
|
453
564
|
/**
|
|
454
565
|
* Currency code. The value will always match the currency used in the order.
|
|
566
|
+
* @format CURRENCY
|
|
455
567
|
* @readonly
|
|
456
568
|
*/
|
|
457
569
|
currency?: string;
|
|
458
570
|
/**
|
|
459
571
|
* Payment gateway order id which is associated with this payment request
|
|
460
572
|
* @readonly
|
|
573
|
+
* @minLength 1
|
|
574
|
+
* @maxLength 100
|
|
461
575
|
*/
|
|
462
576
|
paymentGatewayOrderId?: string | null;
|
|
463
|
-
/**
|
|
577
|
+
/**
|
|
578
|
+
* Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for.
|
|
579
|
+
* @minLength 1
|
|
580
|
+
* @maxLength 50
|
|
581
|
+
*/
|
|
464
582
|
title?: string;
|
|
465
|
-
/**
|
|
583
|
+
/**
|
|
584
|
+
* Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for.
|
|
585
|
+
* @maxLength 300
|
|
586
|
+
*/
|
|
466
587
|
description?: string | null;
|
|
467
588
|
/** Image to be displayed to the customer on the payment page. */
|
|
468
589
|
image?: string;
|
|
469
|
-
/**
|
|
590
|
+
/**
|
|
591
|
+
* Time and date the order payment request expires.
|
|
592
|
+
* @immutable
|
|
593
|
+
*/
|
|
470
594
|
expirationDate?: Date | null;
|
|
471
595
|
/** [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls. */
|
|
472
596
|
extendedFields?: ExtendedFields;
|