@wix/auto_sdk_ecom_order-payment-requests 1.0.60 → 1.0.61
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/index.d.ts +17 -13
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +81 -60
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +46 -33
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +103 -115
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +17 -13
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +81 -60
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +46 -33
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +103 -115
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +17 -13
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +88 -69
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +46 -33
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +103 -115
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +17 -13
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +88 -69
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +46 -33
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +103 -115
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -9,7 +9,7 @@ interface OrderPaymentRequest {
|
|
|
9
9
|
*/
|
|
10
10
|
_id?: string | null;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Details about the source that created the order payment request.
|
|
13
13
|
* @immutable
|
|
14
14
|
*/
|
|
15
15
|
source?: Source;
|
|
@@ -36,43 +36,47 @@ interface OrderPaymentRequest {
|
|
|
36
36
|
*/
|
|
37
37
|
amount?: Price;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.
|
|
40
40
|
* @format CURRENCY
|
|
41
41
|
* @readonly
|
|
42
42
|
*/
|
|
43
43
|
currency?: string;
|
|
44
44
|
/**
|
|
45
|
-
* Payment gateway order
|
|
45
|
+
* Payment gateway order ID associated with this payment request.
|
|
46
46
|
* @readonly
|
|
47
47
|
* @minLength 1
|
|
48
48
|
* @maxLength 100
|
|
49
49
|
*/
|
|
50
50
|
paymentGatewayOrderId?: string | null;
|
|
51
51
|
/**
|
|
52
|
-
* Title
|
|
52
|
+
* Title displayed to the customer on the payment page.
|
|
53
53
|
* @minLength 1
|
|
54
54
|
* @maxLength 200
|
|
55
55
|
*/
|
|
56
56
|
title?: string;
|
|
57
57
|
/**
|
|
58
|
-
* Description
|
|
58
|
+
* Description displayed to the customer on the payment page.
|
|
59
59
|
* @maxLength 300
|
|
60
60
|
*/
|
|
61
61
|
description?: string | null;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Date and time the order payment request expires. If not provided, the order payment request doesn't expire.
|
|
64
64
|
* @immutable
|
|
65
65
|
*/
|
|
66
66
|
expirationDate?: Date | null;
|
|
67
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* Custom field data for this order payment request.
|
|
69
|
+
*
|
|
70
|
+
* [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.
|
|
71
|
+
*/
|
|
68
72
|
extendedFields?: ExtendedFields;
|
|
69
73
|
/**
|
|
70
|
-
* Date and time the
|
|
74
|
+
* Date and time the order payment request was created.
|
|
71
75
|
* @readonly
|
|
72
76
|
*/
|
|
73
77
|
_createdDate?: Date | null;
|
|
74
78
|
/**
|
|
75
|
-
* Date and time the
|
|
79
|
+
* Date and time the order payment request was last updated.
|
|
76
80
|
* @readonly
|
|
77
81
|
*/
|
|
78
82
|
_updatedDate?: Date | null;
|
|
@@ -84,14 +88,12 @@ interface OrderPaymentRequest {
|
|
|
84
88
|
*/
|
|
85
89
|
blockedPaymentMethods?: PaymentMethodWithLiterals[];
|
|
86
90
|
/**
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* These actions are optional and may be conditionally rendered based on the client context.
|
|
91
|
+
* Action links rendered by the payment page, such as navigation links or error resolution URLs.
|
|
90
92
|
* @internal
|
|
91
93
|
*/
|
|
92
94
|
actionLinks?: ActionLinks;
|
|
93
95
|
/**
|
|
94
|
-
*
|
|
96
|
+
* Subscription charges for the order. Displayed to the customer on the payment page so they're aware that paying activates a subscription.
|
|
95
97
|
* @internal
|
|
96
98
|
* @maxSize 100
|
|
97
99
|
* @readonly
|
|
@@ -100,7 +102,7 @@ interface OrderPaymentRequest {
|
|
|
100
102
|
}
|
|
101
103
|
interface Source {
|
|
102
104
|
/**
|
|
103
|
-
*
|
|
105
|
+
* ID of the app that created the order payment request.
|
|
104
106
|
* @format GUID
|
|
105
107
|
* @minLength 1
|
|
106
108
|
* @maxLength 100
|
|
@@ -108,7 +110,7 @@ interface Source {
|
|
|
108
110
|
*/
|
|
109
111
|
appId?: string | null;
|
|
110
112
|
/**
|
|
111
|
-
* Reference to
|
|
113
|
+
* 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.
|
|
112
114
|
* @minLength 1
|
|
113
115
|
* @maxLength 100
|
|
114
116
|
* @immutable
|
|
@@ -116,10 +118,15 @@ interface Source {
|
|
|
116
118
|
externalId?: string;
|
|
117
119
|
}
|
|
118
120
|
declare enum Status {
|
|
121
|
+
/** Payment is owed but hasn't been collected yet. */
|
|
119
122
|
UNPAID = "UNPAID",
|
|
123
|
+
/** Payment has been collected. */
|
|
120
124
|
PAID = "PAID",
|
|
125
|
+
/** The order payment request has passed its `expirationDate` without being paid. */
|
|
121
126
|
EXPIRED = "EXPIRED",
|
|
122
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* The order payment request was voided and can no longer be paid.
|
|
129
|
+
* @documentationMaturity preview
|
|
123
130
|
* @internal
|
|
124
131
|
*/
|
|
125
132
|
VOIDED = "VOIDED"
|
|
@@ -157,11 +164,13 @@ declare enum PaymentMethod {
|
|
|
157
164
|
type PaymentMethodWithLiterals = PaymentMethod | 'MANUAL';
|
|
158
165
|
interface ActionLinks {
|
|
159
166
|
/**
|
|
160
|
-
*
|
|
167
|
+
* Navigation action links rendered as anchors on the payment page.
|
|
168
|
+
*
|
|
169
|
+
* Currently supports a single action link.
|
|
161
170
|
* @maxSize 1
|
|
162
171
|
*/
|
|
163
172
|
general?: ActionLink[];
|
|
164
|
-
/**
|
|
173
|
+
/** Action link rendered as a button in error messages on the payment page. */
|
|
165
174
|
error?: ActionLink;
|
|
166
175
|
}
|
|
167
176
|
interface ActionLink {
|
|
@@ -185,7 +194,7 @@ interface SubscriptionInfo {
|
|
|
185
194
|
*/
|
|
186
195
|
title?: string;
|
|
187
196
|
/**
|
|
188
|
-
* Description of the charges
|
|
197
|
+
* Description of the charges applied for the subscription.
|
|
189
198
|
* @maxLength 1000
|
|
190
199
|
*/
|
|
191
200
|
chargeDescription?: string | null;
|
|
@@ -197,30 +206,30 @@ interface SubscriptionInfo {
|
|
|
197
206
|
/** Whether the subscription renews automatically. */
|
|
198
207
|
autoRenewal?: boolean;
|
|
199
208
|
}
|
|
200
|
-
/** Triggered when
|
|
209
|
+
/** Triggered when an order payment request's `status` changes to `PAID`. */
|
|
201
210
|
interface OrderPaymentRequestPaid {
|
|
202
|
-
/** Order payment request */
|
|
211
|
+
/** Order payment request that was paid. */
|
|
203
212
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
204
213
|
}
|
|
205
|
-
/** Triggered when
|
|
214
|
+
/** Triggered when an order payment request's `status` changes to `EXPIRED`. */
|
|
206
215
|
interface OrderPaymentRequestExpired {
|
|
207
|
-
/** Order payment request */
|
|
216
|
+
/** Order payment request that expired. */
|
|
208
217
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
209
218
|
}
|
|
210
|
-
/** Triggered when
|
|
219
|
+
/** Triggered when an order payment request's `status` changes to `VOIDED`. */
|
|
211
220
|
interface OrderPaymentRequestVoided {
|
|
212
|
-
/** Order payment request */
|
|
221
|
+
/** Order payment request that was voided. */
|
|
213
222
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
214
223
|
}
|
|
215
224
|
interface CreateOrderPaymentRequestRequest {
|
|
216
|
-
/**
|
|
225
|
+
/** Order payment request to create. */
|
|
217
226
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
218
227
|
}
|
|
219
228
|
interface CreateOrderPaymentRequestResponse {
|
|
220
|
-
/**
|
|
229
|
+
/** Created order payment request. */
|
|
221
230
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
222
231
|
/**
|
|
223
|
-
*
|
|
232
|
+
* Payment page URL for the order payment request. Share this URL with the customer so they can complete the payment.
|
|
224
233
|
* @minLength 1
|
|
225
234
|
* @maxLength 100
|
|
226
235
|
*/
|
|
@@ -228,26 +237,26 @@ interface CreateOrderPaymentRequestResponse {
|
|
|
228
237
|
}
|
|
229
238
|
interface GetOrderPaymentRequestRequest {
|
|
230
239
|
/**
|
|
231
|
-
* ID of the
|
|
240
|
+
* ID of the order payment request to retrieve.
|
|
232
241
|
* @format GUID
|
|
233
242
|
*/
|
|
234
243
|
orderPaymentRequestId: string;
|
|
235
244
|
}
|
|
236
245
|
interface GetOrderPaymentRequestResponse {
|
|
237
|
-
/**
|
|
246
|
+
/** Retrieved order payment request. */
|
|
238
247
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
239
248
|
}
|
|
240
249
|
interface UpdateOrderPaymentRequestRequest {
|
|
241
|
-
/**
|
|
250
|
+
/** Order payment request to update. */
|
|
242
251
|
orderPaymentRequest: OrderPaymentRequest;
|
|
243
252
|
}
|
|
244
253
|
interface UpdateOrderPaymentRequestResponse {
|
|
245
|
-
/** Updated
|
|
254
|
+
/** Updated order payment request. */
|
|
246
255
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
247
256
|
}
|
|
248
257
|
interface DeleteOrderPaymentRequestRequest {
|
|
249
258
|
/**
|
|
250
|
-
*
|
|
259
|
+
* ID of the order payment request to delete.
|
|
251
260
|
* @format GUID
|
|
252
261
|
*/
|
|
253
262
|
orderPaymentRequestId: string;
|
|
@@ -314,11 +323,11 @@ interface CursorPaging {
|
|
|
314
323
|
}
|
|
315
324
|
interface QueryOrderPaymentRequestsResponse {
|
|
316
325
|
/**
|
|
317
|
-
* List of payment requests.
|
|
326
|
+
* List of order payment requests.
|
|
318
327
|
* @maxSize 1000
|
|
319
328
|
*/
|
|
320
329
|
orderPaymentRequests?: OrderPaymentRequest[];
|
|
321
|
-
/** Paging metadata */
|
|
330
|
+
/** Paging metadata. */
|
|
322
331
|
pagingMetadata?: CursorPagingMetadata;
|
|
323
332
|
}
|
|
324
333
|
interface CursorPagingMetadata {
|
|
@@ -348,14 +357,14 @@ interface Cursors {
|
|
|
348
357
|
}
|
|
349
358
|
interface GetOrderPaymentRequestURLRequest {
|
|
350
359
|
/**
|
|
351
|
-
*
|
|
360
|
+
* ID of the order payment request.
|
|
352
361
|
* @format GUID
|
|
353
362
|
*/
|
|
354
363
|
orderPaymentRequestId: string;
|
|
355
364
|
}
|
|
356
365
|
interface GetOrderPaymentRequestURLResponse {
|
|
357
366
|
/**
|
|
358
|
-
*
|
|
367
|
+
* Payment page URL for the order payment request.
|
|
359
368
|
* @minLength 1
|
|
360
369
|
* @maxLength 100
|
|
361
370
|
*/
|
|
@@ -370,7 +379,7 @@ interface UpdateExtendedFieldsRequest {
|
|
|
370
379
|
namespaceData: Record<string, any> | null;
|
|
371
380
|
}
|
|
372
381
|
interface UpdateExtendedFieldsResponse {
|
|
373
|
-
/** Updated
|
|
382
|
+
/** Updated order payment request. */
|
|
374
383
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
375
384
|
}
|
|
376
385
|
interface VoidOrderPaymentRequestRequest {
|
|
@@ -550,6 +559,10 @@ type CreateOrderPaymentRequestApplicationErrors = {
|
|
|
550
559
|
code?: 'INVALID_ORDER_STATUS_FOR_SUBSCRIPTION';
|
|
551
560
|
description?: string;
|
|
552
561
|
data?: Record<string, any>;
|
|
562
|
+
} | {
|
|
563
|
+
code?: 'ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND';
|
|
564
|
+
description?: string;
|
|
565
|
+
data?: Record<string, any>;
|
|
553
566
|
};
|
|
554
567
|
/** @docsIgnore */
|
|
555
568
|
type GetOrderPaymentRequestApplicationErrors = {
|
|
@@ -707,7 +720,7 @@ interface OrderPaymentRequestExpiredEnvelope {
|
|
|
707
720
|
metadata: EventMetadata;
|
|
708
721
|
}
|
|
709
722
|
/**
|
|
710
|
-
* Triggered when an order payment request status
|
|
723
|
+
* Triggered when an order payment request's `status` changes to `EXPIRED`.
|
|
711
724
|
* @permissionScope Manage Stores - all permissions
|
|
712
725
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
713
726
|
* @permissionScope Manage Stores
|
|
@@ -728,7 +741,7 @@ interface OrderPaymentRequestPaidEnvelope {
|
|
|
728
741
|
metadata: EventMetadata;
|
|
729
742
|
}
|
|
730
743
|
/**
|
|
731
|
-
* Triggered when an order payment request status
|
|
744
|
+
* Triggered when an order payment request's `status` changes to `PAID`.
|
|
732
745
|
* @permissionScope Manage Stores - all permissions
|
|
733
746
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
734
747
|
* @permissionScope Manage Stores
|
|
@@ -770,7 +783,7 @@ interface OrderPaymentRequestVoidedEnvelope {
|
|
|
770
783
|
metadata: EventMetadata;
|
|
771
784
|
}
|
|
772
785
|
/**
|
|
773
|
-
* Triggered when an order payment request status
|
|
786
|
+
* Triggered when an order payment request's `status` changes to `VOIDED`.
|
|
774
787
|
* @permissionScope Manage Stores - all permissions
|
|
775
788
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
776
789
|
* @permissionScope Manage Stores
|
|
@@ -787,7 +800,11 @@ interface OrderPaymentRequestVoidedEnvelope {
|
|
|
787
800
|
*/
|
|
788
801
|
declare function onOrderPaymentRequestVoided(handler: (event: OrderPaymentRequestVoidedEnvelope) => void | Promise<void>): void;
|
|
789
802
|
/**
|
|
790
|
-
* Creates
|
|
803
|
+
* Creates an order payment request.
|
|
804
|
+
*
|
|
805
|
+
* The response includes the payment page URL, which you can share with the customer. To retrieve the URL later, call [Get Order Payment Request URL](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/order-payment-requests/get-order-payment-request-url).
|
|
806
|
+
*
|
|
807
|
+
* Creation fails with `ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND` if the site doesn't have a Payment Request Page added and published.
|
|
791
808
|
* @public
|
|
792
809
|
* @documentationMaturity preview
|
|
793
810
|
* @requiredField options.orderPaymentRequest.amount
|
|
@@ -795,25 +812,25 @@ declare function onOrderPaymentRequestVoided(handler: (event: OrderPaymentReques
|
|
|
795
812
|
* @requiredField options.orderPaymentRequest.title
|
|
796
813
|
* @permissionId ECOM.ORDER_PAYMENT_REQUEST_CREATE
|
|
797
814
|
* @applicableIdentity APP
|
|
798
|
-
* @returns
|
|
815
|
+
* @returns Created order payment request.
|
|
799
816
|
* @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.CreateOrderPaymentRequest
|
|
800
817
|
*/
|
|
801
818
|
declare function createOrderPaymentRequest(options?: NonNullablePaths<CreateOrderPaymentRequestOptions, `orderPaymentRequest.amount` | `orderPaymentRequest.orderId` | `orderPaymentRequest.title`, 3>): Promise<NonNullablePaths<OrderPaymentRequest, `source.externalId` | `status` | `orderId` | `amount.amount` | `amount.formattedAmount` | `currency` | `title` | `blockedPaymentMethods`, 3> & {
|
|
802
819
|
__applicationErrorsType?: CreateOrderPaymentRequestApplicationErrors;
|
|
803
820
|
}>;
|
|
804
821
|
interface CreateOrderPaymentRequestOptions {
|
|
805
|
-
/**
|
|
822
|
+
/** Order payment request to create. */
|
|
806
823
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
807
824
|
}
|
|
808
825
|
/**
|
|
809
|
-
* Retrieves
|
|
810
|
-
* @param orderPaymentRequestId - ID of the
|
|
826
|
+
* Retrieves an order payment request.
|
|
827
|
+
* @param orderPaymentRequestId - ID of the order payment request to retrieve.
|
|
811
828
|
* @public
|
|
812
829
|
* @documentationMaturity preview
|
|
813
830
|
* @requiredField orderPaymentRequestId
|
|
814
831
|
* @permissionId ECOM.ORDER_PAYMENT_REQUEST_READ
|
|
815
832
|
* @applicableIdentity APP
|
|
816
|
-
* @returns
|
|
833
|
+
* @returns Retrieved order payment request.
|
|
817
834
|
* @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.GetOrderPaymentRequest
|
|
818
835
|
*/
|
|
819
836
|
declare function getOrderPaymentRequest(orderPaymentRequestId: string): Promise<NonNullablePaths<OrderPaymentRequest, `source.externalId` | `status` | `orderId` | `amount.amount` | `amount.formattedAmount` | `currency` | `title` | `blockedPaymentMethods`, 3> & {
|
|
@@ -830,7 +847,7 @@ declare function getOrderPaymentRequest(orderPaymentRequestId: string): Promise<
|
|
|
830
847
|
* @requiredField orderPaymentRequest
|
|
831
848
|
* @permissionId ECOM.ORDER_PAYMENT_REQUEST_UPDATE
|
|
832
849
|
* @applicableIdentity APP
|
|
833
|
-
* @returns Updated
|
|
850
|
+
* @returns Updated order payment request.
|
|
834
851
|
* @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.UpdateOrderPaymentRequest
|
|
835
852
|
*/
|
|
836
853
|
declare function updateOrderPaymentRequest(_id: string, orderPaymentRequest: UpdateOrderPaymentRequest): Promise<NonNullablePaths<OrderPaymentRequest, `source.externalId` | `status` | `orderId` | `amount.amount` | `amount.formattedAmount` | `currency` | `title` | `blockedPaymentMethods`, 3> & {
|
|
@@ -844,7 +861,7 @@ interface UpdateOrderPaymentRequest {
|
|
|
844
861
|
*/
|
|
845
862
|
_id?: string | null;
|
|
846
863
|
/**
|
|
847
|
-
*
|
|
864
|
+
* Details about the source that created the order payment request.
|
|
848
865
|
* @immutable
|
|
849
866
|
*/
|
|
850
867
|
source?: Source;
|
|
@@ -871,43 +888,47 @@ interface UpdateOrderPaymentRequest {
|
|
|
871
888
|
*/
|
|
872
889
|
amount?: Price;
|
|
873
890
|
/**
|
|
874
|
-
*
|
|
891
|
+
* Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.
|
|
875
892
|
* @format CURRENCY
|
|
876
893
|
* @readonly
|
|
877
894
|
*/
|
|
878
895
|
currency?: string;
|
|
879
896
|
/**
|
|
880
|
-
* Payment gateway order
|
|
897
|
+
* Payment gateway order ID associated with this payment request.
|
|
881
898
|
* @readonly
|
|
882
899
|
* @minLength 1
|
|
883
900
|
* @maxLength 100
|
|
884
901
|
*/
|
|
885
902
|
paymentGatewayOrderId?: string | null;
|
|
886
903
|
/**
|
|
887
|
-
* Title
|
|
904
|
+
* Title displayed to the customer on the payment page.
|
|
888
905
|
* @minLength 1
|
|
889
906
|
* @maxLength 200
|
|
890
907
|
*/
|
|
891
908
|
title?: string;
|
|
892
909
|
/**
|
|
893
|
-
* Description
|
|
910
|
+
* Description displayed to the customer on the payment page.
|
|
894
911
|
* @maxLength 300
|
|
895
912
|
*/
|
|
896
913
|
description?: string | null;
|
|
897
914
|
/**
|
|
898
|
-
*
|
|
915
|
+
* Date and time the order payment request expires. If not provided, the order payment request doesn't expire.
|
|
899
916
|
* @immutable
|
|
900
917
|
*/
|
|
901
918
|
expirationDate?: Date | null;
|
|
902
|
-
/**
|
|
919
|
+
/**
|
|
920
|
+
* Custom field data for this order payment request.
|
|
921
|
+
*
|
|
922
|
+
* [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.
|
|
923
|
+
*/
|
|
903
924
|
extendedFields?: ExtendedFields;
|
|
904
925
|
/**
|
|
905
|
-
* Date and time the
|
|
926
|
+
* Date and time the order payment request was created.
|
|
906
927
|
* @readonly
|
|
907
928
|
*/
|
|
908
929
|
_createdDate?: Date | null;
|
|
909
930
|
/**
|
|
910
|
-
* Date and time the
|
|
931
|
+
* Date and time the order payment request was last updated.
|
|
911
932
|
* @readonly
|
|
912
933
|
*/
|
|
913
934
|
_updatedDate?: Date | null;
|
|
@@ -919,14 +940,12 @@ interface UpdateOrderPaymentRequest {
|
|
|
919
940
|
*/
|
|
920
941
|
blockedPaymentMethods?: PaymentMethodWithLiterals[];
|
|
921
942
|
/**
|
|
922
|
-
*
|
|
923
|
-
*
|
|
924
|
-
* These actions are optional and may be conditionally rendered based on the client context.
|
|
943
|
+
* Action links rendered by the payment page, such as navigation links or error resolution URLs.
|
|
925
944
|
* @internal
|
|
926
945
|
*/
|
|
927
946
|
actionLinks?: ActionLinks;
|
|
928
947
|
/**
|
|
929
|
-
*
|
|
948
|
+
* Subscription charges for the order. Displayed to the customer on the payment page so they're aware that paying activates a subscription.
|
|
930
949
|
* @internal
|
|
931
950
|
* @maxSize 100
|
|
932
951
|
* @readonly
|
|
@@ -937,7 +956,7 @@ interface UpdateOrderPaymentRequest {
|
|
|
937
956
|
* Deletes an order payment request.
|
|
938
957
|
*
|
|
939
958
|
* You can delete an order payment request in any status except `PAID`. Attempting to delete a `PAID` order payment request fails with `CANNOT_DELETE_PAID_ORDER_PAYMENT_REQUEST`.
|
|
940
|
-
* @param orderPaymentRequestId -
|
|
959
|
+
* @param orderPaymentRequestId - ID of the order payment request to delete.
|
|
941
960
|
* @public
|
|
942
961
|
* @documentationMaturity preview
|
|
943
962
|
* @requiredField orderPaymentRequestId
|
|
@@ -949,11 +968,11 @@ declare function deleteOrderPaymentRequest(orderPaymentRequestId: string): Promi
|
|
|
949
968
|
__applicationErrorsType?: DeleteOrderPaymentRequestApplicationErrors;
|
|
950
969
|
}>;
|
|
951
970
|
/**
|
|
952
|
-
* Retrieves a list of
|
|
971
|
+
* Retrieves a list of up to 1,000 order payment requests, given the provided [paging, filtering, and sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
|
|
953
972
|
*
|
|
954
|
-
* Query Payment Requests runs with these defaults, which you can override:
|
|
955
|
-
* - `
|
|
956
|
-
* - `cursorPaging.limit` is 100
|
|
973
|
+
* Query Order Payment Requests runs with these defaults, which you can override:
|
|
974
|
+
* - `_createdDate` is sorted in `DESC` order
|
|
975
|
+
* - `cursorPaging.limit` is `100`
|
|
957
976
|
*
|
|
958
977
|
* To learn about working with _Query_ endpoints, see
|
|
959
978
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language), and
|
|
@@ -1136,8 +1155,8 @@ declare const utils: {
|
|
|
1136
1155
|
};
|
|
1137
1156
|
};
|
|
1138
1157
|
/**
|
|
1139
|
-
* Retrieves the
|
|
1140
|
-
* @param orderPaymentRequestId -
|
|
1158
|
+
* Retrieves the payment page URL for an order payment request.
|
|
1159
|
+
* @param orderPaymentRequestId - ID of the order payment request.
|
|
1141
1160
|
* @public
|
|
1142
1161
|
* @documentationMaturity preview
|
|
1143
1162
|
* @requiredField orderPaymentRequestId
|
|
@@ -1149,7 +1168,7 @@ declare function getOrderPaymentRequestUrl(orderPaymentRequestId: string): Promi
|
|
|
1149
1168
|
__applicationErrorsType?: GetOrderPaymentRequestUrlApplicationErrors;
|
|
1150
1169
|
}>;
|
|
1151
1170
|
/**
|
|
1152
|
-
* Updates extended fields of
|
|
1171
|
+
* Updates the extended fields of an order payment request.
|
|
1153
1172
|
* @param _id - ID of the entity to update.
|
|
1154
1173
|
* @param namespace - Identifier for the app whose extended fields are being updated.
|
|
1155
1174
|
* @public
|