@wix/auto_sdk_ecom_order-payment-requests 1.0.61 → 1.0.63
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 +16 -3
- package/build/cjs/index.js +159 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +139 -1
- package/build/cjs/index.typings.js +141 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +113 -2
- package/build/cjs/meta.js +104 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +5 -1
- package/build/cjs/schemas.js +13 -2
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +16 -3
- package/build/es/index.mjs +157 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +139 -1
- package/build/es/index.typings.mjs +139 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +113 -2
- package/build/es/meta.mjs +102 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +5 -1
- package/build/es/schemas.mjs +10 -1
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +48 -5
- package/build/internal/cjs/index.js +159 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +172 -2
- package/build/internal/cjs/index.typings.js +141 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +113 -2
- package/build/internal/cjs/meta.js +104 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +5 -1
- package/build/internal/cjs/schemas.js +13 -2
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +48 -5
- package/build/internal/es/index.mjs +157 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +172 -2
- package/build/internal/es/index.typings.mjs +139 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +113 -2
- package/build/internal/es/meta.mjs +102 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +5 -1
- package/build/internal/es/schemas.mjs +10 -1
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { CreateOrderPaymentRequestOptions, OrderPaymentRequest, CreateOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestApplicationErrors, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, OrderPaymentRequestCreatedEnvelope, OrderPaymentRequestDeletedEnvelope, OrderPaymentRequestExpiredEnvelope, OrderPaymentRequestPaidEnvelope, OrderPaymentRequestUpdatedEnvelope, OrderPaymentRequestVoidedEnvelope, OrderPaymentRequestsQueryBuilder, OrderPaymentRequestQuery, typedQueryOrderPaymentRequests } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, AccountInfoMetadata, ActionEvent, ActionLink, ActionLinks, BaseEventMetadata, CommonQueryWithEntityContext, CreateOrderPaymentRequestRequest, CreateOrderPaymentRequestResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteOrderPaymentRequestRequest, DeleteOrderPaymentRequestResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetOrderPaymentRequestRequest, GetOrderPaymentRequestResponse, GetOrderPaymentRequestURLRequest, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, OrderPaymentRequestExpired, OrderPaymentRequestPaid, OrderPaymentRequestQuerySpec, OrderPaymentRequestVoided, OrderPaymentRequestsQueryResult, PaymentMethod, PaymentMethodWithLiterals, Price, QueryOrderPaymentRequestsRequest, QueryOrderPaymentRequestsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, Source, Status, StatusWithLiterals, SubscriptionInfo, UpdateExtendedFieldsRequest, UpdateOrderPaymentRequestRequest, UpdateOrderPaymentRequestResponse,
|
|
2
|
+
import { CreateOrderPaymentRequestOptions, OrderPaymentRequest, CreateOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestApplicationErrors, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, VoidOrderPaymentRequestApplicationErrors, OrderPaymentRequestCreatedEnvelope, OrderPaymentRequestDeletedEnvelope, OrderPaymentRequestExpiredEnvelope, OrderPaymentRequestPaidEnvelope, OrderPaymentRequestUpdatedEnvelope, OrderPaymentRequestVoidedEnvelope, OrderPaymentRequestsQueryBuilder, OrderPaymentRequestQuery, typedQueryOrderPaymentRequests } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, ActionLink, ActionLinks, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateOrderPaymentRequestsOptions, BulkCreateOrderPaymentRequestsRequest, BulkCreateOrderPaymentRequestsResponse, BulkOrderPaymentRequestItem, BulkOrderPaymentRequestResult, ChargeOrderPaymentRequestApplicationErrors, ChargeOrderPaymentRequestOptions, ChargeOrderPaymentRequestRequest, ChargeOrderPaymentRequestResponse, CommonQueryWithEntityContext, CreateOrderPaymentRequestRequest, CreateOrderPaymentRequestResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteOrderPaymentRequestRequest, DeleteOrderPaymentRequestResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetOrderPaymentRequestRequest, GetOrderPaymentRequestResponse, GetOrderPaymentRequestURLRequest, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, OrderPaymentRequestExpired, OrderPaymentRequestPaid, OrderPaymentRequestQuerySpec, OrderPaymentRequestVoided, OrderPaymentRequestsQueryResult, PaymentMethod, PaymentMethodWithLiterals, Price, QueryOrderPaymentRequestsRequest, QueryOrderPaymentRequestsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, Source, Status, StatusWithLiterals, SubscriptionInfo, UpdateExtendedFieldsRequest, UpdateOrderPaymentRequestRequest, UpdateOrderPaymentRequestResponse, VoidOrderPaymentRequestRequest, VoidOrderPaymentRequestResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createOrderPaymentRequest$1(httpClient: HttpClient): CreateOrderPaymentRequestSignature;
|
|
6
6
|
interface CreateOrderPaymentRequestSignature {
|
|
@@ -71,6 +71,18 @@ interface UpdateExtendedFieldsSignature {
|
|
|
71
71
|
*/
|
|
72
72
|
(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, `orderPaymentRequest.source.externalId` | `orderPaymentRequest.status` | `orderPaymentRequest.orderId` | `orderPaymentRequest.amount.amount` | `orderPaymentRequest.amount.formattedAmount` | `orderPaymentRequest.currency` | `orderPaymentRequest.title` | `orderPaymentRequest.blockedPaymentMethods`, 4>>;
|
|
73
73
|
}
|
|
74
|
+
declare function voidOrderPaymentRequest$1(httpClient: HttpClient): VoidOrderPaymentRequestSignature;
|
|
75
|
+
interface VoidOrderPaymentRequestSignature {
|
|
76
|
+
/**
|
|
77
|
+
* Voids the given order payment request.
|
|
78
|
+
*
|
|
79
|
+
* Only `UNPAID` order payment requests can be voided. Voiding an order payment request that is already `VOIDED` succeeds without making any changes. Voiding a `PAID` or `EXPIRED` order payment request fails.
|
|
80
|
+
* @param - ID of the order payment request to void.
|
|
81
|
+
*/
|
|
82
|
+
(orderPaymentRequestId: string): Promise<void & {
|
|
83
|
+
__applicationErrorsType?: VoidOrderPaymentRequestApplicationErrors;
|
|
84
|
+
}>;
|
|
85
|
+
}
|
|
74
86
|
declare const onOrderPaymentRequestCreated$1: EventDefinition<OrderPaymentRequestCreatedEnvelope, "wix.ecom.v1.order_payment_request_created">;
|
|
75
87
|
declare const onOrderPaymentRequestDeleted$1: EventDefinition<OrderPaymentRequestDeletedEnvelope, "wix.ecom.v1.order_payment_request_deleted">;
|
|
76
88
|
declare const onOrderPaymentRequestExpired$1: EventDefinition<OrderPaymentRequestExpiredEnvelope, "wix.ecom.v1.order_payment_request_expired">;
|
|
@@ -88,6 +100,7 @@ declare const updateOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof u
|
|
|
88
100
|
declare const deleteOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof deleteOrderPaymentRequest$1> & typeof deleteOrderPaymentRequest$1>;
|
|
89
101
|
declare const getOrderPaymentRequestUrl: MaybeContext<BuildRESTFunction<typeof getOrderPaymentRequestUrl$1> & typeof getOrderPaymentRequestUrl$1>;
|
|
90
102
|
declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
|
|
103
|
+
declare const voidOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof voidOrderPaymentRequest$1> & typeof voidOrderPaymentRequest$1>;
|
|
91
104
|
declare const queryOrderPaymentRequests: MaybeContext<BuildRESTFunction<typeof customQueryOrderPaymentRequests> & typeof customQueryOrderPaymentRequests>;
|
|
92
105
|
/**
|
|
93
106
|
* Triggered when an order payment request is created.
|
|
@@ -114,4 +127,4 @@ declare const onOrderPaymentRequestUpdated: BuildEventDefinition<typeof onOrderP
|
|
|
114
127
|
*/
|
|
115
128
|
declare const onOrderPaymentRequestVoided: BuildEventDefinition<typeof onOrderPaymentRequestVoided$1> & typeof onOrderPaymentRequestVoided$1;
|
|
116
129
|
|
|
117
|
-
export { CreateOrderPaymentRequestApplicationErrors, CreateOrderPaymentRequestOptions, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, OrderPaymentRequest, OrderPaymentRequestCreatedEnvelope, OrderPaymentRequestDeletedEnvelope, OrderPaymentRequestExpiredEnvelope, OrderPaymentRequestPaidEnvelope, OrderPaymentRequestQuery, OrderPaymentRequestUpdatedEnvelope, OrderPaymentRequestVoidedEnvelope, OrderPaymentRequestsQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, onOrderPaymentRequestCreated, onOrderPaymentRequestDeleted, onOrderPaymentRequestExpired, onOrderPaymentRequestPaid, onOrderPaymentRequestUpdated, onOrderPaymentRequestVoided, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest };
|
|
130
|
+
export { CreateOrderPaymentRequestApplicationErrors, CreateOrderPaymentRequestOptions, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, OrderPaymentRequest, OrderPaymentRequestCreatedEnvelope, OrderPaymentRequestDeletedEnvelope, OrderPaymentRequestExpiredEnvelope, OrderPaymentRequestPaidEnvelope, OrderPaymentRequestQuery, OrderPaymentRequestUpdatedEnvelope, OrderPaymentRequestVoidedEnvelope, OrderPaymentRequestsQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, VoidOrderPaymentRequestApplicationErrors, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, onOrderPaymentRequestCreated, onOrderPaymentRequestDeleted, onOrderPaymentRequestExpired, onOrderPaymentRequestPaid, onOrderPaymentRequestUpdated, onOrderPaymentRequestVoided, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest, voidOrderPaymentRequest };
|
package/build/cjs/index.js
CHANGED
|
@@ -24,6 +24,8 @@ __export(index_exports, {
|
|
|
24
24
|
SortOrder: () => SortOrder,
|
|
25
25
|
Status: () => Status,
|
|
26
26
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
27
|
+
bulkCreateOrderPaymentRequests: () => bulkCreateOrderPaymentRequests4,
|
|
28
|
+
chargeOrderPaymentRequest: () => chargeOrderPaymentRequest4,
|
|
27
29
|
createOrderPaymentRequest: () => createOrderPaymentRequest4,
|
|
28
30
|
deleteOrderPaymentRequest: () => deleteOrderPaymentRequest4,
|
|
29
31
|
getOrderPaymentRequest: () => getOrderPaymentRequest4,
|
|
@@ -142,6 +144,49 @@ function createOrderPaymentRequest(payload) {
|
|
|
142
144
|
}
|
|
143
145
|
return __createOrderPaymentRequest;
|
|
144
146
|
}
|
|
147
|
+
function bulkCreateOrderPaymentRequests(payload) {
|
|
148
|
+
function __bulkCreateOrderPaymentRequests({ host }) {
|
|
149
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
150
|
+
{
|
|
151
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
152
|
+
paths: [
|
|
153
|
+
{ path: "orderPaymentRequests.expirationDate" },
|
|
154
|
+
{ path: "orderPaymentRequests.createdDate" },
|
|
155
|
+
{ path: "orderPaymentRequests.updatedDate" }
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
]);
|
|
159
|
+
const metadata = {
|
|
160
|
+
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
161
|
+
method: "POST",
|
|
162
|
+
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.BulkCreateOrderPaymentRequests",
|
|
163
|
+
packageName: PACKAGE_NAME,
|
|
164
|
+
migrationOptions: {
|
|
165
|
+
optInTransformResponse: true
|
|
166
|
+
},
|
|
167
|
+
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
168
|
+
{
|
|
169
|
+
protoPath: "/v1/bulk/order-payment-requests/create",
|
|
170
|
+
data: serializedData,
|
|
171
|
+
host
|
|
172
|
+
}
|
|
173
|
+
),
|
|
174
|
+
data: serializedData,
|
|
175
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
176
|
+
{
|
|
177
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
178
|
+
paths: [
|
|
179
|
+
{ path: "results.item.orderPaymentRequest.expirationDate" },
|
|
180
|
+
{ path: "results.item.orderPaymentRequest.createdDate" },
|
|
181
|
+
{ path: "results.item.orderPaymentRequest.updatedDate" }
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
])
|
|
185
|
+
};
|
|
186
|
+
return metadata;
|
|
187
|
+
}
|
|
188
|
+
return __bulkCreateOrderPaymentRequests;
|
|
189
|
+
}
|
|
145
190
|
function getOrderPaymentRequest(payload) {
|
|
146
191
|
function __getOrderPaymentRequest({ host }) {
|
|
147
192
|
const metadata = {
|
|
@@ -345,6 +390,25 @@ function voidOrderPaymentRequest(payload) {
|
|
|
345
390
|
}
|
|
346
391
|
return __voidOrderPaymentRequest;
|
|
347
392
|
}
|
|
393
|
+
function chargeOrderPaymentRequest(payload) {
|
|
394
|
+
function __chargeOrderPaymentRequest({ host }) {
|
|
395
|
+
const metadata = {
|
|
396
|
+
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
397
|
+
method: "POST",
|
|
398
|
+
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.ChargeOrderPaymentRequest",
|
|
399
|
+
packageName: PACKAGE_NAME,
|
|
400
|
+
migrationOptions: {
|
|
401
|
+
optInTransformResponse: true
|
|
402
|
+
},
|
|
403
|
+
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
404
|
+
{ protoPath: "/v1/order-payment-requests/charge", data: payload, host }
|
|
405
|
+
),
|
|
406
|
+
data: payload
|
|
407
|
+
};
|
|
408
|
+
return metadata;
|
|
409
|
+
}
|
|
410
|
+
return __chargeOrderPaymentRequest;
|
|
411
|
+
}
|
|
348
412
|
|
|
349
413
|
// src/ecom-v1-order-payment-request-order-payment-requests.universal.ts
|
|
350
414
|
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
@@ -417,6 +481,52 @@ async function createOrderPaymentRequest2(options) {
|
|
|
417
481
|
throw transformedError;
|
|
418
482
|
}
|
|
419
483
|
}
|
|
484
|
+
async function bulkCreateOrderPaymentRequests2(orderPaymentRequests, options) {
|
|
485
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
486
|
+
const payload = (0, import_transform_paths2.transformPaths)(
|
|
487
|
+
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
488
|
+
orderPaymentRequests,
|
|
489
|
+
returnEntity: options?.returnEntity
|
|
490
|
+
}),
|
|
491
|
+
[
|
|
492
|
+
{
|
|
493
|
+
transformFn: import_image.transformSDKImageToRESTImage,
|
|
494
|
+
paths: [{ path: "orderPaymentRequests.image" }]
|
|
495
|
+
}
|
|
496
|
+
]
|
|
497
|
+
);
|
|
498
|
+
const reqOpts = bulkCreateOrderPaymentRequests(
|
|
499
|
+
payload
|
|
500
|
+
);
|
|
501
|
+
sideEffects?.onSiteCall?.();
|
|
502
|
+
try {
|
|
503
|
+
const result = await httpClient.request(reqOpts);
|
|
504
|
+
sideEffects?.onSuccess?.(result);
|
|
505
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
506
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
507
|
+
{
|
|
508
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
509
|
+
paths: [{ path: "results.item.orderPaymentRequest.image" }]
|
|
510
|
+
}
|
|
511
|
+
])
|
|
512
|
+
);
|
|
513
|
+
} catch (err) {
|
|
514
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
515
|
+
err,
|
|
516
|
+
{
|
|
517
|
+
spreadPathsToArguments: {},
|
|
518
|
+
explicitPathsToArguments: {
|
|
519
|
+
orderPaymentRequests: "$[0]",
|
|
520
|
+
returnEntity: "$[1].returnEntity"
|
|
521
|
+
},
|
|
522
|
+
singleArgumentUnchanged: false
|
|
523
|
+
},
|
|
524
|
+
["orderPaymentRequests", "options"]
|
|
525
|
+
);
|
|
526
|
+
sideEffects?.onError?.(err);
|
|
527
|
+
throw transformedError;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
420
530
|
async function getOrderPaymentRequest2(orderPaymentRequestId) {
|
|
421
531
|
const { httpClient, sideEffects } = arguments[1];
|
|
422
532
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -689,6 +799,35 @@ async function voidOrderPaymentRequest2(orderPaymentRequestId) {
|
|
|
689
799
|
throw transformedError;
|
|
690
800
|
}
|
|
691
801
|
}
|
|
802
|
+
async function chargeOrderPaymentRequest2(orderPaymentRequestId, options) {
|
|
803
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
804
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
805
|
+
orderPaymentRequestId,
|
|
806
|
+
paymentToken: options?.paymentToken
|
|
807
|
+
});
|
|
808
|
+
const reqOpts = chargeOrderPaymentRequest(payload);
|
|
809
|
+
sideEffects?.onSiteCall?.();
|
|
810
|
+
try {
|
|
811
|
+
const result = await httpClient.request(reqOpts);
|
|
812
|
+
sideEffects?.onSuccess?.(result);
|
|
813
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
814
|
+
} catch (err) {
|
|
815
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
816
|
+
err,
|
|
817
|
+
{
|
|
818
|
+
spreadPathsToArguments: {},
|
|
819
|
+
explicitPathsToArguments: {
|
|
820
|
+
orderPaymentRequestId: "$[0]",
|
|
821
|
+
paymentToken: "$[1].paymentToken"
|
|
822
|
+
},
|
|
823
|
+
singleArgumentUnchanged: false
|
|
824
|
+
},
|
|
825
|
+
["orderPaymentRequestId", "options"]
|
|
826
|
+
);
|
|
827
|
+
sideEffects?.onError?.(err);
|
|
828
|
+
throw transformedError;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
692
831
|
|
|
693
832
|
// src/ecom-v1-order-payment-request-order-payment-requests.public.ts
|
|
694
833
|
function createOrderPaymentRequest3(httpClient) {
|
|
@@ -698,6 +837,14 @@ function createOrderPaymentRequest3(httpClient) {
|
|
|
698
837
|
{ httpClient }
|
|
699
838
|
);
|
|
700
839
|
}
|
|
840
|
+
function bulkCreateOrderPaymentRequests3(httpClient) {
|
|
841
|
+
return (orderPaymentRequests, options) => bulkCreateOrderPaymentRequests2(
|
|
842
|
+
orderPaymentRequests,
|
|
843
|
+
options,
|
|
844
|
+
// @ts-ignore
|
|
845
|
+
{ httpClient }
|
|
846
|
+
);
|
|
847
|
+
}
|
|
701
848
|
function getOrderPaymentRequest3(httpClient) {
|
|
702
849
|
return (orderPaymentRequestId) => getOrderPaymentRequest2(
|
|
703
850
|
orderPaymentRequestId,
|
|
@@ -756,6 +903,14 @@ function voidOrderPaymentRequest3(httpClient) {
|
|
|
756
903
|
{ httpClient }
|
|
757
904
|
);
|
|
758
905
|
}
|
|
906
|
+
function chargeOrderPaymentRequest3(httpClient) {
|
|
907
|
+
return (orderPaymentRequestId, options) => chargeOrderPaymentRequest2(
|
|
908
|
+
orderPaymentRequestId,
|
|
909
|
+
options,
|
|
910
|
+
// @ts-ignore
|
|
911
|
+
{ httpClient }
|
|
912
|
+
);
|
|
913
|
+
}
|
|
759
914
|
var onOrderPaymentRequestCreated = (0, import_sdk_types.EventDefinition)(
|
|
760
915
|
"wix.ecom.v1.order_payment_request_created",
|
|
761
916
|
true,
|
|
@@ -899,12 +1054,14 @@ function customQueryOrderPaymentRequests(httpClient) {
|
|
|
899
1054
|
return overloadedQuery;
|
|
900
1055
|
}
|
|
901
1056
|
var createOrderPaymentRequest4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOrderPaymentRequest3);
|
|
1057
|
+
var bulkCreateOrderPaymentRequests4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateOrderPaymentRequests3);
|
|
902
1058
|
var getOrderPaymentRequest4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOrderPaymentRequest3);
|
|
903
1059
|
var updateOrderPaymentRequest4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateOrderPaymentRequest3);
|
|
904
1060
|
var deleteOrderPaymentRequest4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteOrderPaymentRequest3);
|
|
905
1061
|
var getOrderPaymentRequestUrl4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOrderPaymentRequestUrl3);
|
|
906
1062
|
var updateExtendedFields4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateExtendedFields3);
|
|
907
1063
|
var voidOrderPaymentRequest4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(voidOrderPaymentRequest3);
|
|
1064
|
+
var chargeOrderPaymentRequest4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(chargeOrderPaymentRequest3);
|
|
908
1065
|
var queryOrderPaymentRequests4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryOrderPaymentRequests);
|
|
909
1066
|
var onOrderPaymentRequestCreated2 = (0, import_event_definition_modules.createEventModule)(
|
|
910
1067
|
onOrderPaymentRequestCreated
|
|
@@ -930,6 +1087,8 @@ var onOrderPaymentRequestVoided2 = (0, import_event_definition_modules.createEve
|
|
|
930
1087
|
SortOrder,
|
|
931
1088
|
Status,
|
|
932
1089
|
WebhookIdentityType,
|
|
1090
|
+
bulkCreateOrderPaymentRequests,
|
|
1091
|
+
chargeOrderPaymentRequest,
|
|
933
1092
|
createOrderPaymentRequest,
|
|
934
1093
|
deleteOrderPaymentRequest,
|
|
935
1094
|
getOrderPaymentRequest,
|