@wix/auto_sdk_ecom_order-payment-requests 1.0.62 → 1.0.64
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 +1 -1
- package/build/cjs/index.js +59 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +58 -1
- package/build/cjs/index.typings.js +50 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +53 -2
- package/build/cjs/meta.js +40 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +58 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +58 -1
- package/build/es/index.typings.mjs +49 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +53 -2
- package/build/es/meta.mjs +39 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +26 -3
- package/build/internal/cjs/index.js +59 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +115 -1
- package/build/internal/cjs/index.typings.js +50 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +135 -3
- package/build/internal/cjs/meta.js +40 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +26 -3
- package/build/internal/es/index.mjs +58 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +115 -1
- package/build/internal/es/index.typings.mjs +49 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +135 -3
- package/build/internal/es/meta.mjs +39 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateOrderPaymentRequestRequest as CreateOrderPaymentRequestRequest$1, CreateOrderPaymentRequestResponse as CreateOrderPaymentRequestResponse$1, BulkCreateOrderPaymentRequestsRequest as BulkCreateOrderPaymentRequestsRequest$1, BulkCreateOrderPaymentRequestsResponse as BulkCreateOrderPaymentRequestsResponse$1, GetOrderPaymentRequestRequest as GetOrderPaymentRequestRequest$1, GetOrderPaymentRequestResponse as GetOrderPaymentRequestResponse$1, UpdateOrderPaymentRequestRequest as UpdateOrderPaymentRequestRequest$1, UpdateOrderPaymentRequestResponse as UpdateOrderPaymentRequestResponse$1, DeleteOrderPaymentRequestRequest as DeleteOrderPaymentRequestRequest$1, DeleteOrderPaymentRequestResponse as DeleteOrderPaymentRequestResponse$1, QueryOrderPaymentRequestsRequest as QueryOrderPaymentRequestsRequest$1, QueryOrderPaymentRequestsResponse as QueryOrderPaymentRequestsResponse$1, GetOrderPaymentRequestURLRequest as GetOrderPaymentRequestURLRequest$1, GetOrderPaymentRequestURLResponse as GetOrderPaymentRequestURLResponse$1, UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse$1, VoidOrderPaymentRequestRequest as VoidOrderPaymentRequestRequest$1, VoidOrderPaymentRequestResponse as VoidOrderPaymentRequestResponse$1 } from './index.typings.js';
|
|
1
|
+
import { CreateOrderPaymentRequestRequest as CreateOrderPaymentRequestRequest$1, CreateOrderPaymentRequestResponse as CreateOrderPaymentRequestResponse$1, BulkCreateOrderPaymentRequestsRequest as BulkCreateOrderPaymentRequestsRequest$1, BulkCreateOrderPaymentRequestsResponse as BulkCreateOrderPaymentRequestsResponse$1, GetOrderPaymentRequestRequest as GetOrderPaymentRequestRequest$1, GetOrderPaymentRequestResponse as GetOrderPaymentRequestResponse$1, UpdateOrderPaymentRequestRequest as UpdateOrderPaymentRequestRequest$1, UpdateOrderPaymentRequestResponse as UpdateOrderPaymentRequestResponse$1, DeleteOrderPaymentRequestRequest as DeleteOrderPaymentRequestRequest$1, DeleteOrderPaymentRequestResponse as DeleteOrderPaymentRequestResponse$1, QueryOrderPaymentRequestsRequest as QueryOrderPaymentRequestsRequest$1, QueryOrderPaymentRequestsResponse as QueryOrderPaymentRequestsResponse$1, GetOrderPaymentRequestURLRequest as GetOrderPaymentRequestURLRequest$1, GetOrderPaymentRequestURLResponse as GetOrderPaymentRequestURLResponse$1, UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse$1, VoidOrderPaymentRequestRequest as VoidOrderPaymentRequestRequest$1, VoidOrderPaymentRequestResponse as VoidOrderPaymentRequestResponse$1, ChargeOrderPaymentRequestRequest as ChargeOrderPaymentRequestRequest$1, ChargeOrderPaymentRequestResponse as ChargeOrderPaymentRequestResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface OrderPaymentRequest {
|
|
@@ -87,6 +87,18 @@ interface OrderPaymentRequest {
|
|
|
87
87
|
* @maxSize 1
|
|
88
88
|
*/
|
|
89
89
|
blockedPaymentMethods?: PaymentMethodWithLiterals[];
|
|
90
|
+
/**
|
|
91
|
+
* Action links rendered by the payment page, such as navigation links or error resolution URLs.
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
actionLinks?: ActionLinks;
|
|
95
|
+
/**
|
|
96
|
+
* Subscription charges for the order. Displayed to the customer on the payment page so they're aware that paying activates a subscription.
|
|
97
|
+
* @internal
|
|
98
|
+
* @maxSize 100
|
|
99
|
+
* @readonly
|
|
100
|
+
*/
|
|
101
|
+
subscriptionInfo?: SubscriptionInfo[];
|
|
90
102
|
}
|
|
91
103
|
interface Source {
|
|
92
104
|
/**
|
|
@@ -111,7 +123,13 @@ declare enum Status {
|
|
|
111
123
|
/** Payment has been collected. */
|
|
112
124
|
PAID = "PAID",
|
|
113
125
|
/** The order payment request has passed its `expirationDate` without being paid. */
|
|
114
|
-
EXPIRED = "EXPIRED"
|
|
126
|
+
EXPIRED = "EXPIRED",
|
|
127
|
+
/**
|
|
128
|
+
* The order payment request was voided and can no longer be paid.
|
|
129
|
+
* @documentationMaturity preview
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
132
|
+
VOIDED = "VOIDED"
|
|
115
133
|
}
|
|
116
134
|
/** @enumType */
|
|
117
135
|
type StatusWithLiterals = Status | 'UNPAID' | 'PAID' | 'EXPIRED';
|
|
@@ -326,6 +344,13 @@ interface GetOrderPaymentRequestResponse {
|
|
|
326
344
|
interface UpdateOrderPaymentRequestRequest {
|
|
327
345
|
/** Order payment request to update. */
|
|
328
346
|
orderPaymentRequest: OrderPaymentRequest;
|
|
347
|
+
/**
|
|
348
|
+
* Set of fields to update.
|
|
349
|
+
*
|
|
350
|
+
* Fields that aren't included in `fieldMask.paths` are ignored.
|
|
351
|
+
* @internal
|
|
352
|
+
*/
|
|
353
|
+
fieldMask?: string[];
|
|
329
354
|
}
|
|
330
355
|
interface UpdateOrderPaymentRequestResponse {
|
|
331
356
|
/** Updated order payment request. */
|
|
@@ -376,6 +401,20 @@ interface Sorting {
|
|
|
376
401
|
fieldName?: string;
|
|
377
402
|
/** Sort order. */
|
|
378
403
|
order?: SortOrderWithLiterals;
|
|
404
|
+
/**
|
|
405
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
406
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
407
|
+
*
|
|
408
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
409
|
+
*
|
|
410
|
+
* Example:
|
|
411
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
412
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
413
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
414
|
+
* @internal
|
|
415
|
+
* @maxSize 10
|
|
416
|
+
*/
|
|
417
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
379
418
|
}
|
|
380
419
|
declare enum SortOrder {
|
|
381
420
|
ASC = "ASC",
|
|
@@ -468,6 +507,26 @@ interface VoidOrderPaymentRequestRequest {
|
|
|
468
507
|
}
|
|
469
508
|
interface VoidOrderPaymentRequestResponse {
|
|
470
509
|
}
|
|
510
|
+
interface ChargeOrderPaymentRequestRequest {
|
|
511
|
+
/**
|
|
512
|
+
* ID of the order payment request to charge.
|
|
513
|
+
* @format GUID
|
|
514
|
+
*/
|
|
515
|
+
orderPaymentRequestId: string;
|
|
516
|
+
/**
|
|
517
|
+
* Token representing the payment details the customer entered, including their card and payment provider. Obtain it by calling `paymentsApi.initializePayment()` on the `paymentsApi` object provided by the Wix Cashier payments client SDK. Valid for a single charge attempt.
|
|
518
|
+
* @maxLength 100
|
|
519
|
+
*/
|
|
520
|
+
paymentToken?: string | null;
|
|
521
|
+
}
|
|
522
|
+
interface ChargeOrderPaymentRequestResponse {
|
|
523
|
+
/**
|
|
524
|
+
* Token for completing the payment. Returned for every charge that reaches the payment provider. Pass it to `paymentsApi.continuePayment()` in the Wix Cashier payments client SDK, which completes any remaining step the provider requires from the customer, such as 3D Secure verification or an off-site redirect.
|
|
525
|
+
* @minLength 1
|
|
526
|
+
* @maxLength 1000
|
|
527
|
+
*/
|
|
528
|
+
paymentResponseToken?: string | null;
|
|
529
|
+
}
|
|
471
530
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
472
531
|
createdEvent?: EntityCreatedEvent;
|
|
473
532
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -511,8 +570,18 @@ interface DomainEventBodyOneOf {
|
|
|
511
570
|
}
|
|
512
571
|
interface EntityCreatedEvent {
|
|
513
572
|
entityAsJson?: string;
|
|
573
|
+
/**
|
|
574
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
575
|
+
* @internal
|
|
576
|
+
*/
|
|
577
|
+
triggeredByUndelete?: boolean | null;
|
|
514
578
|
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
515
579
|
restoreInfo?: RestoreInfo;
|
|
580
|
+
/**
|
|
581
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
582
|
+
* @internal
|
|
583
|
+
*/
|
|
584
|
+
additionalMetadataAsJson?: string | null;
|
|
516
585
|
}
|
|
517
586
|
interface RestoreInfo {
|
|
518
587
|
deletedDate?: Date | null;
|
|
@@ -524,10 +593,42 @@ interface EntityUpdatedEvent {
|
|
|
524
593
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
525
594
|
*/
|
|
526
595
|
currentEntityAsJson?: string;
|
|
596
|
+
/**
|
|
597
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
598
|
+
* wont populate it / have any reference to it in the API.
|
|
599
|
+
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
600
|
+
* the developer should send only the new (current) entity.
|
|
601
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
602
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
603
|
+
* @internal
|
|
604
|
+
* @deprecated
|
|
605
|
+
*/
|
|
606
|
+
previousEntityAsJson?: string | null;
|
|
607
|
+
/**
|
|
608
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
609
|
+
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
610
|
+
* @internal
|
|
611
|
+
*/
|
|
612
|
+
modifiedFields?: Record<string, any>;
|
|
613
|
+
/**
|
|
614
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
615
|
+
* @internal
|
|
616
|
+
*/
|
|
617
|
+
additionalMetadataAsJson?: string | null;
|
|
527
618
|
}
|
|
528
619
|
interface EntityDeletedEvent {
|
|
620
|
+
/**
|
|
621
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
622
|
+
* @internal
|
|
623
|
+
*/
|
|
624
|
+
movedToTrash?: boolean | null;
|
|
529
625
|
/** Entity that was deleted. */
|
|
530
626
|
deletedEntityAsJson?: string | null;
|
|
627
|
+
/**
|
|
628
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
629
|
+
* @internal
|
|
630
|
+
*/
|
|
631
|
+
additionalMetadataAsJson?: string | null;
|
|
531
632
|
}
|
|
532
633
|
interface ActionEvent {
|
|
533
634
|
bodyAsJson?: string;
|
|
@@ -697,6 +798,36 @@ type VoidOrderPaymentRequestApplicationErrors = {
|
|
|
697
798
|
description?: string;
|
|
698
799
|
data?: Record<string, any>;
|
|
699
800
|
};
|
|
801
|
+
/** @docsIgnore */
|
|
802
|
+
type ChargeOrderPaymentRequestApplicationErrors = {
|
|
803
|
+
code?: 'ORDER_PAYMENT_REQUEST_NOT_FOUND';
|
|
804
|
+
description?: string;
|
|
805
|
+
data?: Record<string, any>;
|
|
806
|
+
} | {
|
|
807
|
+
code?: 'CANNOT_CHARGE_PAID_ORDER_PAYMENT_REQUEST';
|
|
808
|
+
description?: string;
|
|
809
|
+
data?: Record<string, any>;
|
|
810
|
+
} | {
|
|
811
|
+
code?: 'CANNOT_CHARGE_EXPIRED_ORDER_PAYMENT_REQUEST';
|
|
812
|
+
description?: string;
|
|
813
|
+
data?: Record<string, any>;
|
|
814
|
+
} | {
|
|
815
|
+
code?: 'CANNOT_CHARGE_VOIDED_ORDER_PAYMENT_REQUEST';
|
|
816
|
+
description?: string;
|
|
817
|
+
data?: Record<string, any>;
|
|
818
|
+
} | {
|
|
819
|
+
code?: 'PAYMENT_IN_PROGRESS';
|
|
820
|
+
description?: string;
|
|
821
|
+
data?: Record<string, any>;
|
|
822
|
+
} | {
|
|
823
|
+
code?: 'PAYMENT_ATTEMPT_EXPIRED';
|
|
824
|
+
description?: string;
|
|
825
|
+
data?: Record<string, any>;
|
|
826
|
+
} | {
|
|
827
|
+
code?: 'PAYMENT_METHOD_UNAVAILABLE';
|
|
828
|
+
description?: string;
|
|
829
|
+
data?: Record<string, any>;
|
|
830
|
+
};
|
|
700
831
|
|
|
701
832
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
702
833
|
getUrl: (context: any) => string;
|
|
@@ -725,5 +856,6 @@ declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
|
|
|
725
856
|
id: string;
|
|
726
857
|
}, UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse$1, UpdateExtendedFieldsResponse>;
|
|
727
858
|
declare function voidOrderPaymentRequest(): __PublicMethodMetaInfo<'POST', {}, VoidOrderPaymentRequestRequest$1, VoidOrderPaymentRequestRequest, VoidOrderPaymentRequestResponse$1, VoidOrderPaymentRequestResponse>;
|
|
859
|
+
declare function chargeOrderPaymentRequest(): __PublicMethodMetaInfo<'POST', {}, ChargeOrderPaymentRequestRequest$1, ChargeOrderPaymentRequestRequest, ChargeOrderPaymentRequestResponse$1, ChargeOrderPaymentRequestResponse>;
|
|
728
860
|
|
|
729
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ActionLink as ActionLinkOriginal, type ActionLinks as ActionLinksOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateOrderPaymentRequestsRequest as BulkCreateOrderPaymentRequestsRequestOriginal, type BulkCreateOrderPaymentRequestsResponse as BulkCreateOrderPaymentRequestsResponseOriginal, type BulkOrderPaymentRequestItem as BulkOrderPaymentRequestItemOriginal, type BulkOrderPaymentRequestResult as BulkOrderPaymentRequestResultOriginal, type CreateOrderPaymentRequestApplicationErrors as CreateOrderPaymentRequestApplicationErrorsOriginal, type CreateOrderPaymentRequestRequest as CreateOrderPaymentRequestRequestOriginal, type CreateOrderPaymentRequestResponse as CreateOrderPaymentRequestResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteOrderPaymentRequestApplicationErrors as DeleteOrderPaymentRequestApplicationErrorsOriginal, type DeleteOrderPaymentRequestRequest as DeleteOrderPaymentRequestRequestOriginal, type DeleteOrderPaymentRequestResponse as DeleteOrderPaymentRequestResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetOrderPaymentRequestApplicationErrors as GetOrderPaymentRequestApplicationErrorsOriginal, type GetOrderPaymentRequestRequest as GetOrderPaymentRequestRequestOriginal, type GetOrderPaymentRequestResponse as GetOrderPaymentRequestResponseOriginal, type GetOrderPaymentRequestURLRequest as GetOrderPaymentRequestURLRequestOriginal, type GetOrderPaymentRequestURLResponse as GetOrderPaymentRequestURLResponseOriginal, type GetOrderPaymentRequestUrlApplicationErrors as GetOrderPaymentRequestUrlApplicationErrorsOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type ItemMetadata as ItemMetadataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type OrderPaymentRequestExpired as OrderPaymentRequestExpiredOriginal, type OrderPaymentRequest as OrderPaymentRequestOriginal, type OrderPaymentRequestPaid as OrderPaymentRequestPaidOriginal, type OrderPaymentRequestVoided as OrderPaymentRequestVoidedOriginal, PaymentMethod as PaymentMethodOriginal, type PaymentMethodWithLiterals as PaymentMethodWithLiteralsOriginal, type Price as PriceOriginal, type QueryOrderPaymentRequestsRequest as QueryOrderPaymentRequestsRequestOriginal, type QueryOrderPaymentRequestsResponse as QueryOrderPaymentRequestsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type Source as SourceOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type SubscriptionInfo as SubscriptionInfoOriginal, type UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal, type UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal, type UpdateOrderPaymentRequestApplicationErrors as UpdateOrderPaymentRequestApplicationErrorsOriginal, type UpdateOrderPaymentRequestRequest as UpdateOrderPaymentRequestRequestOriginal, type UpdateOrderPaymentRequestResponse as UpdateOrderPaymentRequestResponseOriginal, type VoidOrderPaymentRequestApplicationErrors as VoidOrderPaymentRequestApplicationErrorsOriginal, type VoidOrderPaymentRequestRequest as VoidOrderPaymentRequestRequestOriginal, type VoidOrderPaymentRequestResponse as VoidOrderPaymentRequestResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateOrderPaymentRequests, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest, voidOrderPaymentRequest };
|
|
861
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ActionLink as ActionLinkOriginal, type ActionLinks as ActionLinksOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateOrderPaymentRequestsRequest as BulkCreateOrderPaymentRequestsRequestOriginal, type BulkCreateOrderPaymentRequestsResponse as BulkCreateOrderPaymentRequestsResponseOriginal, type BulkOrderPaymentRequestItem as BulkOrderPaymentRequestItemOriginal, type BulkOrderPaymentRequestResult as BulkOrderPaymentRequestResultOriginal, type ChargeOrderPaymentRequestApplicationErrors as ChargeOrderPaymentRequestApplicationErrorsOriginal, type ChargeOrderPaymentRequestRequest as ChargeOrderPaymentRequestRequestOriginal, type ChargeOrderPaymentRequestResponse as ChargeOrderPaymentRequestResponseOriginal, type CreateOrderPaymentRequestApplicationErrors as CreateOrderPaymentRequestApplicationErrorsOriginal, type CreateOrderPaymentRequestRequest as CreateOrderPaymentRequestRequestOriginal, type CreateOrderPaymentRequestResponse as CreateOrderPaymentRequestResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteOrderPaymentRequestApplicationErrors as DeleteOrderPaymentRequestApplicationErrorsOriginal, type DeleteOrderPaymentRequestRequest as DeleteOrderPaymentRequestRequestOriginal, type DeleteOrderPaymentRequestResponse as DeleteOrderPaymentRequestResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetOrderPaymentRequestApplicationErrors as GetOrderPaymentRequestApplicationErrorsOriginal, type GetOrderPaymentRequestRequest as GetOrderPaymentRequestRequestOriginal, type GetOrderPaymentRequestResponse as GetOrderPaymentRequestResponseOriginal, type GetOrderPaymentRequestURLRequest as GetOrderPaymentRequestURLRequestOriginal, type GetOrderPaymentRequestURLResponse as GetOrderPaymentRequestURLResponseOriginal, type GetOrderPaymentRequestUrlApplicationErrors as GetOrderPaymentRequestUrlApplicationErrorsOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type ItemMetadata as ItemMetadataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type OrderPaymentRequestExpired as OrderPaymentRequestExpiredOriginal, type OrderPaymentRequest as OrderPaymentRequestOriginal, type OrderPaymentRequestPaid as OrderPaymentRequestPaidOriginal, type OrderPaymentRequestVoided as OrderPaymentRequestVoidedOriginal, PaymentMethod as PaymentMethodOriginal, type PaymentMethodWithLiterals as PaymentMethodWithLiteralsOriginal, type Price as PriceOriginal, type QueryOrderPaymentRequestsRequest as QueryOrderPaymentRequestsRequestOriginal, type QueryOrderPaymentRequestsResponse as QueryOrderPaymentRequestsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type Source as SourceOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type SubscriptionInfo as SubscriptionInfoOriginal, type UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal, type UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal, type UpdateOrderPaymentRequestApplicationErrors as UpdateOrderPaymentRequestApplicationErrorsOriginal, type UpdateOrderPaymentRequestRequest as UpdateOrderPaymentRequestRequestOriginal, type UpdateOrderPaymentRequestResponse as UpdateOrderPaymentRequestResponseOriginal, type VoidOrderPaymentRequestApplicationErrors as VoidOrderPaymentRequestApplicationErrorsOriginal, type VoidOrderPaymentRequestRequest as VoidOrderPaymentRequestRequestOriginal, type VoidOrderPaymentRequestResponse as VoidOrderPaymentRequestResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateOrderPaymentRequests, chargeOrderPaymentRequest, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest, voidOrderPaymentRequest };
|
|
@@ -25,6 +25,7 @@ __export(meta_exports, {
|
|
|
25
25
|
StatusOriginal: () => Status,
|
|
26
26
|
WebhookIdentityTypeOriginal: () => WebhookIdentityType,
|
|
27
27
|
bulkCreateOrderPaymentRequests: () => bulkCreateOrderPaymentRequests2,
|
|
28
|
+
chargeOrderPaymentRequest: () => chargeOrderPaymentRequest2,
|
|
28
29
|
createOrderPaymentRequest: () => createOrderPaymentRequest2,
|
|
29
30
|
deleteOrderPaymentRequest: () => deleteOrderPaymentRequest2,
|
|
30
31
|
getOrderPaymentRequest: () => getOrderPaymentRequest2,
|
|
@@ -370,12 +371,32 @@ function voidOrderPaymentRequest(payload) {
|
|
|
370
371
|
}
|
|
371
372
|
return __voidOrderPaymentRequest;
|
|
372
373
|
}
|
|
374
|
+
function chargeOrderPaymentRequest(payload) {
|
|
375
|
+
function __chargeOrderPaymentRequest({ host }) {
|
|
376
|
+
const metadata = {
|
|
377
|
+
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
378
|
+
method: "POST",
|
|
379
|
+
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.ChargeOrderPaymentRequest",
|
|
380
|
+
packageName: PACKAGE_NAME,
|
|
381
|
+
migrationOptions: {
|
|
382
|
+
optInTransformResponse: true
|
|
383
|
+
},
|
|
384
|
+
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
385
|
+
{ protoPath: "/v1/order-payment-requests/charge", data: payload, host }
|
|
386
|
+
),
|
|
387
|
+
data: payload
|
|
388
|
+
};
|
|
389
|
+
return metadata;
|
|
390
|
+
}
|
|
391
|
+
return __chargeOrderPaymentRequest;
|
|
392
|
+
}
|
|
373
393
|
|
|
374
394
|
// src/ecom-v1-order-payment-request-order-payment-requests.types.ts
|
|
375
395
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
376
396
|
Status2["UNPAID"] = "UNPAID";
|
|
377
397
|
Status2["PAID"] = "PAID";
|
|
378
398
|
Status2["EXPIRED"] = "EXPIRED";
|
|
399
|
+
Status2["VOIDED"] = "VOIDED";
|
|
379
400
|
return Status2;
|
|
380
401
|
})(Status || {});
|
|
381
402
|
var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
|
|
@@ -563,6 +584,24 @@ function voidOrderPaymentRequest2() {
|
|
|
563
584
|
__originalResponseType: null
|
|
564
585
|
};
|
|
565
586
|
}
|
|
587
|
+
function chargeOrderPaymentRequest2() {
|
|
588
|
+
const payload = {};
|
|
589
|
+
const getRequestOptions = chargeOrderPaymentRequest(payload);
|
|
590
|
+
const getUrl = (context) => {
|
|
591
|
+
const { url } = getRequestOptions(context);
|
|
592
|
+
return url;
|
|
593
|
+
};
|
|
594
|
+
return {
|
|
595
|
+
getUrl,
|
|
596
|
+
httpMethod: "POST",
|
|
597
|
+
path: "/v1/order-payment-requests/charge",
|
|
598
|
+
pathParams: {},
|
|
599
|
+
__requestType: null,
|
|
600
|
+
__originalRequestType: null,
|
|
601
|
+
__responseType: null,
|
|
602
|
+
__originalResponseType: null
|
|
603
|
+
};
|
|
604
|
+
}
|
|
566
605
|
// Annotate the CommonJS export names for ESM import in node:
|
|
567
606
|
0 && (module.exports = {
|
|
568
607
|
PaymentMethodOriginal,
|
|
@@ -570,6 +609,7 @@ function voidOrderPaymentRequest2() {
|
|
|
570
609
|
StatusOriginal,
|
|
571
610
|
WebhookIdentityTypeOriginal,
|
|
572
611
|
bulkCreateOrderPaymentRequests,
|
|
612
|
+
chargeOrderPaymentRequest,
|
|
573
613
|
createOrderPaymentRequest,
|
|
574
614
|
deleteOrderPaymentRequest,
|
|
575
615
|
getOrderPaymentRequest,
|