@wix/auto_sdk_ecom_order-payment-requests 1.0.19 → 1.0.21
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/{ecom-v1-order-payment-request-order-payment-requests.universal-59AOR9bE.d.mts → ecom-v1-order-payment-request-order-payment-requests.universal-DuU6VRJp.d.mts} +21 -7
- package/build/{ecom-v1-order-payment-request-order-payment-requests.universal-59AOR9bE.d.ts → ecom-v1-order-payment-request-order-payment-requests.universal-DuU6VRJp.d.ts} +21 -7
- package/build/index.d.mts +3 -3
- package/build/index.d.ts +3 -3
- package/build/index.js +52 -2
- package/build/index.js.map +1 -1
- package/build/index.mjs +50 -1
- package/build/index.mjs.map +1 -1
- package/build/internal/{ecom-v1-order-payment-request-order-payment-requests.universal-59AOR9bE.d.mts → ecom-v1-order-payment-request-order-payment-requests.universal-DuU6VRJp.d.mts} +21 -7
- package/build/internal/{ecom-v1-order-payment-request-order-payment-requests.universal-59AOR9bE.d.ts → ecom-v1-order-payment-request-order-payment-requests.universal-DuU6VRJp.d.ts} +21 -7
- package/build/internal/index.d.mts +17 -4
- package/build/internal/index.d.ts +17 -4
- package/build/internal/index.js +52 -2
- package/build/internal/index.js.map +1 -1
- package/build/internal/index.mjs +50 -1
- package/build/internal/index.mjs.map +1 -1
- package/build/internal/meta.d.mts +25 -15
- package/build/internal/meta.d.ts +25 -15
- package/build/internal/meta.js +38 -2
- package/build/internal/meta.js.map +1 -1
- package/build/internal/meta.mjs +36 -1
- package/build/internal/meta.mjs.map +1 -1
- package/build/meta.d.mts +25 -15
- package/build/meta.d.ts +25 -15
- package/build/meta.js +38 -2
- package/build/meta.js.map +1 -1
- package/build/meta.mjs +36 -1
- package/build/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -57,8 +57,6 @@ interface OrderPaymentRequest {
|
|
|
57
57
|
* @maxLength 300
|
|
58
58
|
*/
|
|
59
59
|
description?: string | null;
|
|
60
|
-
/** Image to be displayed to the customer on the payment page. */
|
|
61
|
-
image?: string;
|
|
62
60
|
/**
|
|
63
61
|
* Time and date the order payment request expires.
|
|
64
62
|
* @immutable
|
|
@@ -76,6 +74,8 @@ interface OrderPaymentRequest {
|
|
|
76
74
|
* @readonly
|
|
77
75
|
*/
|
|
78
76
|
_updatedDate?: Date | null;
|
|
77
|
+
/** Image to display to the customer on the payment page. */
|
|
78
|
+
image?: string;
|
|
79
79
|
/**
|
|
80
80
|
* List of payment methods that can't be used for this order payment request.
|
|
81
81
|
* @maxSize 1
|
|
@@ -139,12 +139,17 @@ declare enum PaymentMethod {
|
|
|
139
139
|
type PaymentMethodWithLiterals = PaymentMethod | 'UNKNOWN_PAYMENT_METHOD' | 'MANUAL';
|
|
140
140
|
/** Triggered when the order payment request status changes to paid */
|
|
141
141
|
interface OrderPaymentRequestPaid {
|
|
142
|
-
/**
|
|
142
|
+
/** Order payment request */
|
|
143
143
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
144
144
|
}
|
|
145
145
|
/** Triggered when the order payment request status changes to expired */
|
|
146
146
|
interface OrderPaymentRequestExpired {
|
|
147
|
-
/**
|
|
147
|
+
/** Order payment request */
|
|
148
|
+
orderPaymentRequest?: OrderPaymentRequest;
|
|
149
|
+
}
|
|
150
|
+
/** Triggered when the order payment request status changes to voided */
|
|
151
|
+
interface OrderPaymentRequestVoided {
|
|
152
|
+
/** Order payment request */
|
|
148
153
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
149
154
|
}
|
|
150
155
|
interface CreateOrderPaymentRequestRequest {
|
|
@@ -308,6 +313,15 @@ interface UpdateExtendedFieldsResponse {
|
|
|
308
313
|
/** Updated OrderPaymentRequest. */
|
|
309
314
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
310
315
|
}
|
|
316
|
+
interface VoidOrderPaymentRequestRequest {
|
|
317
|
+
/**
|
|
318
|
+
* ID of the order payment request to void.
|
|
319
|
+
* @format GUID
|
|
320
|
+
*/
|
|
321
|
+
orderPaymentRequestId: string;
|
|
322
|
+
}
|
|
323
|
+
interface VoidOrderPaymentRequestResponse {
|
|
324
|
+
}
|
|
311
325
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
312
326
|
createdEvent?: EntityCreatedEvent;
|
|
313
327
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -507,8 +521,6 @@ interface UpdateOrderPaymentRequest {
|
|
|
507
521
|
* @maxLength 300
|
|
508
522
|
*/
|
|
509
523
|
description?: string | null;
|
|
510
|
-
/** Image to be displayed to the customer on the payment page. */
|
|
511
|
-
image?: string;
|
|
512
524
|
/**
|
|
513
525
|
* Time and date the order payment request expires.
|
|
514
526
|
* @immutable
|
|
@@ -526,6 +538,8 @@ interface UpdateOrderPaymentRequest {
|
|
|
526
538
|
* @readonly
|
|
527
539
|
*/
|
|
528
540
|
_updatedDate?: Date | null;
|
|
541
|
+
/** Image to display to the customer on the payment page. */
|
|
542
|
+
image?: string;
|
|
529
543
|
/**
|
|
530
544
|
* List of payment methods that can't be used for this order payment request.
|
|
531
545
|
* @maxSize 1
|
|
@@ -614,4 +628,4 @@ interface UpdateExtendedFieldsOptions {
|
|
|
614
628
|
namespaceData: Record<string, any> | null;
|
|
615
629
|
}
|
|
616
630
|
|
|
617
|
-
export { type
|
|
631
|
+
export { type DomainEvent as A, type DomainEventBodyOneOf as B, type CreateOrderPaymentRequestOptions as C, type DeleteOrderPaymentRequestRequest as D, type ExtendedFields as E, type EntityCreatedEvent as F, type GetOrderPaymentRequestURLResponse as G, type EntityUpdatedEvent as H, type EntityDeletedEvent as I, type ActionEvent as J, type Empty as K, type IdentificationData as L, type MessageEnvelope as M, type IdentificationDataIdOneOf as N, type OrderPaymentRequest as O, PaymentMethod as P, type QueryOrderPaymentRequestsRequest as Q, type RestoreInfo as R, Status as S, type OrderPaymentRequestsQueryResult as T, type UpdateOrderPaymentRequest as U, type VoidOrderPaymentRequestRequest as V, WebhookIdentityType as W, type OrderPaymentRequestsQueryBuilder as a, type UpdateExtendedFieldsOptions as b, type UpdateExtendedFieldsResponse as c, SortOrder as d, type Source as e, type Price as f, type OrderPaymentRequestPaid as g, type OrderPaymentRequestExpired as h, type OrderPaymentRequestVoided as i, type CreateOrderPaymentRequestRequest as j, type CreateOrderPaymentRequestResponse as k, type GetOrderPaymentRequestRequest as l, type GetOrderPaymentRequestResponse as m, type UpdateOrderPaymentRequestRequest as n, type UpdateOrderPaymentRequestResponse as o, type DeleteOrderPaymentRequestResponse as p, type CursorQuery as q, type CursorQueryPagingMethodOneOf as r, type Sorting as s, type CursorPaging as t, type QueryOrderPaymentRequestsResponse as u, type CursorPagingMetadata as v, type Cursors as w, type GetOrderPaymentRequestURLRequest as x, type UpdateExtendedFieldsRequest as y, type VoidOrderPaymentRequestResponse as z };
|
|
@@ -57,8 +57,6 @@ interface OrderPaymentRequest {
|
|
|
57
57
|
* @maxLength 300
|
|
58
58
|
*/
|
|
59
59
|
description?: string | null;
|
|
60
|
-
/** Image to be displayed to the customer on the payment page. */
|
|
61
|
-
image?: string;
|
|
62
60
|
/**
|
|
63
61
|
* Time and date the order payment request expires.
|
|
64
62
|
* @immutable
|
|
@@ -76,6 +74,8 @@ interface OrderPaymentRequest {
|
|
|
76
74
|
* @readonly
|
|
77
75
|
*/
|
|
78
76
|
_updatedDate?: Date | null;
|
|
77
|
+
/** Image to display to the customer on the payment page. */
|
|
78
|
+
image?: string;
|
|
79
79
|
/**
|
|
80
80
|
* List of payment methods that can't be used for this order payment request.
|
|
81
81
|
* @maxSize 1
|
|
@@ -139,12 +139,17 @@ declare enum PaymentMethod {
|
|
|
139
139
|
type PaymentMethodWithLiterals = PaymentMethod | 'UNKNOWN_PAYMENT_METHOD' | 'MANUAL';
|
|
140
140
|
/** Triggered when the order payment request status changes to paid */
|
|
141
141
|
interface OrderPaymentRequestPaid {
|
|
142
|
-
/**
|
|
142
|
+
/** Order payment request */
|
|
143
143
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
144
144
|
}
|
|
145
145
|
/** Triggered when the order payment request status changes to expired */
|
|
146
146
|
interface OrderPaymentRequestExpired {
|
|
147
|
-
/**
|
|
147
|
+
/** Order payment request */
|
|
148
|
+
orderPaymentRequest?: OrderPaymentRequest;
|
|
149
|
+
}
|
|
150
|
+
/** Triggered when the order payment request status changes to voided */
|
|
151
|
+
interface OrderPaymentRequestVoided {
|
|
152
|
+
/** Order payment request */
|
|
148
153
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
149
154
|
}
|
|
150
155
|
interface CreateOrderPaymentRequestRequest {
|
|
@@ -308,6 +313,15 @@ interface UpdateExtendedFieldsResponse {
|
|
|
308
313
|
/** Updated OrderPaymentRequest. */
|
|
309
314
|
orderPaymentRequest?: OrderPaymentRequest;
|
|
310
315
|
}
|
|
316
|
+
interface VoidOrderPaymentRequestRequest {
|
|
317
|
+
/**
|
|
318
|
+
* ID of the order payment request to void.
|
|
319
|
+
* @format GUID
|
|
320
|
+
*/
|
|
321
|
+
orderPaymentRequestId: string;
|
|
322
|
+
}
|
|
323
|
+
interface VoidOrderPaymentRequestResponse {
|
|
324
|
+
}
|
|
311
325
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
312
326
|
createdEvent?: EntityCreatedEvent;
|
|
313
327
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -507,8 +521,6 @@ interface UpdateOrderPaymentRequest {
|
|
|
507
521
|
* @maxLength 300
|
|
508
522
|
*/
|
|
509
523
|
description?: string | null;
|
|
510
|
-
/** Image to be displayed to the customer on the payment page. */
|
|
511
|
-
image?: string;
|
|
512
524
|
/**
|
|
513
525
|
* Time and date the order payment request expires.
|
|
514
526
|
* @immutable
|
|
@@ -526,6 +538,8 @@ interface UpdateOrderPaymentRequest {
|
|
|
526
538
|
* @readonly
|
|
527
539
|
*/
|
|
528
540
|
_updatedDate?: Date | null;
|
|
541
|
+
/** Image to display to the customer on the payment page. */
|
|
542
|
+
image?: string;
|
|
529
543
|
/**
|
|
530
544
|
* List of payment methods that can't be used for this order payment request.
|
|
531
545
|
* @maxSize 1
|
|
@@ -614,4 +628,4 @@ interface UpdateExtendedFieldsOptions {
|
|
|
614
628
|
namespaceData: Record<string, any> | null;
|
|
615
629
|
}
|
|
616
630
|
|
|
617
|
-
export { type
|
|
631
|
+
export { type DomainEvent as A, type DomainEventBodyOneOf as B, type CreateOrderPaymentRequestOptions as C, type DeleteOrderPaymentRequestRequest as D, type ExtendedFields as E, type EntityCreatedEvent as F, type GetOrderPaymentRequestURLResponse as G, type EntityUpdatedEvent as H, type EntityDeletedEvent as I, type ActionEvent as J, type Empty as K, type IdentificationData as L, type MessageEnvelope as M, type IdentificationDataIdOneOf as N, type OrderPaymentRequest as O, PaymentMethod as P, type QueryOrderPaymentRequestsRequest as Q, type RestoreInfo as R, Status as S, type OrderPaymentRequestsQueryResult as T, type UpdateOrderPaymentRequest as U, type VoidOrderPaymentRequestRequest as V, WebhookIdentityType as W, type OrderPaymentRequestsQueryBuilder as a, type UpdateExtendedFieldsOptions as b, type UpdateExtendedFieldsResponse as c, SortOrder as d, type Source as e, type Price as f, type OrderPaymentRequestPaid as g, type OrderPaymentRequestExpired as h, type OrderPaymentRequestVoided as i, type CreateOrderPaymentRequestRequest as j, type CreateOrderPaymentRequestResponse as k, type GetOrderPaymentRequestRequest as l, type GetOrderPaymentRequestResponse as m, type UpdateOrderPaymentRequestRequest as n, type UpdateOrderPaymentRequestResponse as o, type DeleteOrderPaymentRequestResponse as p, type CursorQuery as q, type CursorQueryPagingMethodOneOf as r, type Sorting as s, type CursorPaging as t, type QueryOrderPaymentRequestsResponse as u, type CursorPagingMetadata as v, type Cursors as w, type GetOrderPaymentRequestURLRequest as x, type UpdateExtendedFieldsRequest as y, type VoidOrderPaymentRequestResponse as z };
|
package/build/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { C as CreateOrderPaymentRequestOptions, O as OrderPaymentRequest, U as UpdateOrderPaymentRequest, a as OrderPaymentRequestsQueryBuilder, G as GetOrderPaymentRequestURLResponse, b as UpdateExtendedFieldsOptions, c as UpdateExtendedFieldsResponse } from './ecom-v1-order-payment-request-order-payment-requests.universal-
|
|
3
|
-
export {
|
|
2
|
+
import { C as CreateOrderPaymentRequestOptions, O as OrderPaymentRequest, U as UpdateOrderPaymentRequest, a as OrderPaymentRequestsQueryBuilder, G as GetOrderPaymentRequestURLResponse, b as UpdateExtendedFieldsOptions, c as UpdateExtendedFieldsResponse } from './ecom-v1-order-payment-request-order-payment-requests.universal-DuU6VRJp.mjs';
|
|
3
|
+
export { J as ActionEvent, j as CreateOrderPaymentRequestRequest, k as CreateOrderPaymentRequestResponse, t as CursorPaging, v as CursorPagingMetadata, q as CursorQuery, r as CursorQueryPagingMethodOneOf, w as Cursors, D as DeleteOrderPaymentRequestRequest, p as DeleteOrderPaymentRequestResponse, A as DomainEvent, B as DomainEventBodyOneOf, K as Empty, F as EntityCreatedEvent, I as EntityDeletedEvent, H as EntityUpdatedEvent, E as ExtendedFields, l as GetOrderPaymentRequestRequest, m as GetOrderPaymentRequestResponse, x as GetOrderPaymentRequestURLRequest, L as IdentificationData, N as IdentificationDataIdOneOf, M as MessageEnvelope, h as OrderPaymentRequestExpired, g as OrderPaymentRequestPaid, i as OrderPaymentRequestVoided, T as OrderPaymentRequestsQueryResult, P as PaymentMethod, f as Price, Q as QueryOrderPaymentRequestsRequest, u as QueryOrderPaymentRequestsResponse, R as RestoreInfo, d as SortOrder, s as Sorting, e as Source, S as Status, y as UpdateExtendedFieldsRequest, n as UpdateOrderPaymentRequestRequest, o as UpdateOrderPaymentRequestResponse, V as VoidOrderPaymentRequestRequest, z as VoidOrderPaymentRequestResponse, W as WebhookIdentityType } from './ecom-v1-order-payment-request-order-payment-requests.universal-DuU6VRJp.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createOrderPaymentRequest$1(httpClient: HttpClient): CreateOrderPaymentRequestSignature;
|
|
6
6
|
interface CreateOrderPaymentRequestSignature {
|
|
@@ -35,7 +35,7 @@ interface DeleteOrderPaymentRequestSignature {
|
|
|
35
35
|
/**
|
|
36
36
|
* Deletes a order payment request.
|
|
37
37
|
*
|
|
38
|
-
* Please note that only `UNPAID` payment requests can be deleted.
|
|
38
|
+
* Please note that only `UNPAID` and `VOIDED` payment requests can be deleted.
|
|
39
39
|
* @param - Id of the OrderPaymentRequest to delete.
|
|
40
40
|
*/
|
|
41
41
|
(orderPaymentRequestId: string): Promise<void>;
|
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { C as CreateOrderPaymentRequestOptions, O as OrderPaymentRequest, U as UpdateOrderPaymentRequest, a as OrderPaymentRequestsQueryBuilder, G as GetOrderPaymentRequestURLResponse, b as UpdateExtendedFieldsOptions, c as UpdateExtendedFieldsResponse } from './ecom-v1-order-payment-request-order-payment-requests.universal-
|
|
3
|
-
export {
|
|
2
|
+
import { C as CreateOrderPaymentRequestOptions, O as OrderPaymentRequest, U as UpdateOrderPaymentRequest, a as OrderPaymentRequestsQueryBuilder, G as GetOrderPaymentRequestURLResponse, b as UpdateExtendedFieldsOptions, c as UpdateExtendedFieldsResponse } from './ecom-v1-order-payment-request-order-payment-requests.universal-DuU6VRJp.js';
|
|
3
|
+
export { J as ActionEvent, j as CreateOrderPaymentRequestRequest, k as CreateOrderPaymentRequestResponse, t as CursorPaging, v as CursorPagingMetadata, q as CursorQuery, r as CursorQueryPagingMethodOneOf, w as Cursors, D as DeleteOrderPaymentRequestRequest, p as DeleteOrderPaymentRequestResponse, A as DomainEvent, B as DomainEventBodyOneOf, K as Empty, F as EntityCreatedEvent, I as EntityDeletedEvent, H as EntityUpdatedEvent, E as ExtendedFields, l as GetOrderPaymentRequestRequest, m as GetOrderPaymentRequestResponse, x as GetOrderPaymentRequestURLRequest, L as IdentificationData, N as IdentificationDataIdOneOf, M as MessageEnvelope, h as OrderPaymentRequestExpired, g as OrderPaymentRequestPaid, i as OrderPaymentRequestVoided, T as OrderPaymentRequestsQueryResult, P as PaymentMethod, f as Price, Q as QueryOrderPaymentRequestsRequest, u as QueryOrderPaymentRequestsResponse, R as RestoreInfo, d as SortOrder, s as Sorting, e as Source, S as Status, y as UpdateExtendedFieldsRequest, n as UpdateOrderPaymentRequestRequest, o as UpdateOrderPaymentRequestResponse, V as VoidOrderPaymentRequestRequest, z as VoidOrderPaymentRequestResponse, W as WebhookIdentityType } from './ecom-v1-order-payment-request-order-payment-requests.universal-DuU6VRJp.js';
|
|
4
4
|
|
|
5
5
|
declare function createOrderPaymentRequest$1(httpClient: HttpClient): CreateOrderPaymentRequestSignature;
|
|
6
6
|
interface CreateOrderPaymentRequestSignature {
|
|
@@ -35,7 +35,7 @@ interface DeleteOrderPaymentRequestSignature {
|
|
|
35
35
|
/**
|
|
36
36
|
* Deletes a order payment request.
|
|
37
37
|
*
|
|
38
|
-
* Please note that only `UNPAID` payment requests can be deleted.
|
|
38
|
+
* Please note that only `UNPAID` and `VOIDED` payment requests can be deleted.
|
|
39
39
|
* @param - Id of the OrderPaymentRequest to delete.
|
|
40
40
|
*/
|
|
41
41
|
(orderPaymentRequestId: string): Promise<void>;
|
package/build/index.js
CHANGED
|
@@ -30,7 +30,8 @@ __export(index_exports, {
|
|
|
30
30
|
getOrderPaymentRequestUrl: () => getOrderPaymentRequestUrl4,
|
|
31
31
|
queryOrderPaymentRequests: () => queryOrderPaymentRequests4,
|
|
32
32
|
updateExtendedFields: () => updateExtendedFields4,
|
|
33
|
-
updateOrderPaymentRequest: () => updateOrderPaymentRequest4
|
|
33
|
+
updateOrderPaymentRequest: () => updateOrderPaymentRequest4,
|
|
34
|
+
voidOrderPaymentRequest: () => voidOrderPaymentRequest4
|
|
34
35
|
});
|
|
35
36
|
module.exports = __toCommonJS(index_exports);
|
|
36
37
|
|
|
@@ -284,6 +285,22 @@ function updateExtendedFields(payload) {
|
|
|
284
285
|
}
|
|
285
286
|
return __updateExtendedFields;
|
|
286
287
|
}
|
|
288
|
+
function voidOrderPaymentRequest(payload) {
|
|
289
|
+
function __voidOrderPaymentRequest({ host }) {
|
|
290
|
+
const metadata = {
|
|
291
|
+
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
292
|
+
method: "POST",
|
|
293
|
+
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.VoidOrderPaymentRequest",
|
|
294
|
+
packageName: PACKAGE_NAME,
|
|
295
|
+
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
296
|
+
{ protoPath: "/v1/order-payment-requests/void", data: payload, host }
|
|
297
|
+
),
|
|
298
|
+
data: payload
|
|
299
|
+
};
|
|
300
|
+
return metadata;
|
|
301
|
+
}
|
|
302
|
+
return __voidOrderPaymentRequest;
|
|
303
|
+
}
|
|
287
304
|
|
|
288
305
|
// src/ecom-v1-order-payment-request-order-payment-requests.universal.ts
|
|
289
306
|
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
@@ -567,6 +584,30 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
567
584
|
throw transformedError;
|
|
568
585
|
}
|
|
569
586
|
}
|
|
587
|
+
async function voidOrderPaymentRequest2(orderPaymentRequestId) {
|
|
588
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
589
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
590
|
+
orderPaymentRequestId
|
|
591
|
+
});
|
|
592
|
+
const reqOpts = voidOrderPaymentRequest(payload);
|
|
593
|
+
sideEffects?.onSiteCall?.();
|
|
594
|
+
try {
|
|
595
|
+
const result = await httpClient.request(reqOpts);
|
|
596
|
+
sideEffects?.onSuccess?.(result);
|
|
597
|
+
} catch (err) {
|
|
598
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
599
|
+
err,
|
|
600
|
+
{
|
|
601
|
+
spreadPathsToArguments: {},
|
|
602
|
+
explicitPathsToArguments: { orderPaymentRequestId: "$[0]" },
|
|
603
|
+
singleArgumentUnchanged: false
|
|
604
|
+
},
|
|
605
|
+
["orderPaymentRequestId"]
|
|
606
|
+
);
|
|
607
|
+
sideEffects?.onError?.(err);
|
|
608
|
+
throw transformedError;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
570
611
|
|
|
571
612
|
// src/ecom-v1-order-payment-request-order-payment-requests.public.ts
|
|
572
613
|
function createOrderPaymentRequest3(httpClient) {
|
|
@@ -620,6 +661,13 @@ function updateExtendedFields3(httpClient) {
|
|
|
620
661
|
{ httpClient }
|
|
621
662
|
);
|
|
622
663
|
}
|
|
664
|
+
function voidOrderPaymentRequest3(httpClient) {
|
|
665
|
+
return (orderPaymentRequestId) => voidOrderPaymentRequest2(
|
|
666
|
+
orderPaymentRequestId,
|
|
667
|
+
// @ts-ignore
|
|
668
|
+
{ httpClient }
|
|
669
|
+
);
|
|
670
|
+
}
|
|
623
671
|
|
|
624
672
|
// src/ecom-v1-order-payment-request-order-payment-requests.context.ts
|
|
625
673
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
@@ -630,6 +678,7 @@ var deleteOrderPaymentRequest4 = /* @__PURE__ */ (0, import_rest_modules3.create
|
|
|
630
678
|
var queryOrderPaymentRequests4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryOrderPaymentRequests3);
|
|
631
679
|
var getOrderPaymentRequestUrl4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOrderPaymentRequestUrl3);
|
|
632
680
|
var updateExtendedFields4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateExtendedFields3);
|
|
681
|
+
var voidOrderPaymentRequest4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(voidOrderPaymentRequest3);
|
|
633
682
|
// Annotate the CommonJS export names for ESM import in node:
|
|
634
683
|
0 && (module.exports = {
|
|
635
684
|
PaymentMethod,
|
|
@@ -642,6 +691,7 @@ var updateExtendedFields4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTM
|
|
|
642
691
|
getOrderPaymentRequestUrl,
|
|
643
692
|
queryOrderPaymentRequests,
|
|
644
693
|
updateExtendedFields,
|
|
645
|
-
updateOrderPaymentRequest
|
|
694
|
+
updateOrderPaymentRequest,
|
|
695
|
+
voidOrderPaymentRequest
|
|
646
696
|
});
|
|
647
697
|
//# sourceMappingURL=index.js.map
|