@wix/auto_sdk_ecom_order-transactions 1.0.33 → 1.0.35
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 +26 -4
- package/build/cjs/index.js +122 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +140 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +26 -4
- package/build/es/index.mjs +119 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +140 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +26 -4
- package/build/internal/cjs/index.js +122 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +140 -1
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +26 -4
- package/build/internal/es/index.mjs +119 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +140 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { ListTransactionsForSingleOrderResponse, ListTransactionsForMultipleOrdersResponse, Payment, AddPaymentsResponse, UpdatePaymentStatusIdentifiers, UpdatePaymentStatusOptions, UpdatePaymentStatusResponse, PaymentAndOrderId, BulkUpdatePaymentStatusesOptions, BulkUpdatePaymentStatusesResponse } from './index.typings.js';
|
|
3
|
-
export { ActionEvent, ActionType, ActionTypeWithLiterals, Activity, ActivityType, ActivityTypeWithLiterals, AddChargebackRequest, AddChargebackResponse, AddInvoiceToOrderRequest, AddInvoiceToOrderResponse, AddPaymentsRequest, AddRefundRequest, AddRefundResponse, AdditionalFeeRefund, Address, AddressAddressLine1OptionsOneOf, AggregatedRefundSummary, ApplicationError, AppliedCoupon, AuthorizationActionFailureDetails, AuthorizationCapture, AuthorizationCaptureStatus, AuthorizationCaptureStatusWithLiterals, AuthorizationDetails, AuthorizationVoid, AuthorizationVoidStatus, AuthorizationVoidStatusWithLiterals, BillingInfo, BulkActionMetadata, BulkGenerateInvoicesRequest, BulkGenerateInvoicesResponse, BulkInvoiceResult, BulkPaymentResult, BulkUpdatePaymentStatusesRequest, BuyerDetails, BuyerInfo, CalculateRefundItemRequest, CalculateRefundItemResponse, CalculateRefundRequest, CalculateRefundResponse, ChannelInfo, ChannelType, ChannelTypeWithLiterals, Chargeback, ChargebackApproved, ChargebackReversed, ChargebackStatus, ChargebackStatusWithLiterals, CreditCardPaymentMethodDetails, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomField, CustomTextFieldSelection, DiffmatokyPayload, DigitalFile, Discount, DomainEvent, DomainEventBodyOneOf, EnteredBy, EnteredByIdentityType, EnteredByIdentityTypeWithLiterals, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorInformation, ExternalReceiptInfo, Fulfillment, FulfillmentLineItem, FulfillmentStatus, FulfillmentStatusWithLiterals, FulfillmentTrackingInfo, FullName, GenerateInvoiceRequest, GenerateInvoiceResponse, GetRefundabilityStatusRequest, GetRefundabilityStatusResponse, GiftCard, GiftCardPaymentDetails, IdentificationData, IdentificationDataIdOneOf, IdentityType, IdentityTypeWithLiterals, IndexingMessage, InvoiceForOrder, InvoiceInfo, InvoiceSource, InvoiceSourceWithLiterals, InvoicesForOrder, ItemMetadata, LineItem, LineItemPriceData, LineItemRefund, LineItemRefundSummary, LineItemType, LineItemTypeWithLiterals, ListInvoicesForMultipleOrdersRequest, ListInvoicesForMultipleOrdersResponse, ListInvoicesForSingleOrderRequest, ListInvoicesForSingleOrderResponse, ListTransactionsForMultipleOrdersRequest, ListTransactionsForSingleOrderRequest, ManuallyRefundableReason, ManuallyRefundableReasonWithLiterals, MaskedPayment, MediaItem, MediaItemType, MediaItemTypeWithLiterals, MembershipName, MembershipPaymentDetails, MembershipPaymentStatus, MembershipPaymentStatusWithLiterals, MessageEnvelope, NonRefundableReason, NonRefundableReasonWithLiterals, OptionSelection, Order, OrderRefunded, OrderTransactions, PaymentDetailsUpdated, PaymentPaymentDetailsOneOf, PaymentReceiptInfoOneOf, PaymentRefund, PaymentStatus, PaymentStatusWithLiterals, PaymentsUpdated, PickupAddress, PickupDetails, Price, QueryOrderTransactionsRequest, QueryOrderTransactionsResponse, Reason, ReasonWithLiterals, Refund, RefundCompleted, RefundCreated, RefundDetails, RefundItem, RefundItemsBreakdown, RefundSideEffects, RefundStatus, RefundStatusInfo, RefundStatusWithLiterals, RefundTransaction, Refundability, RefundabilityAdditionalRefundabilityInfoOneOf, RefundableStatus, RefundableStatusWithLiterals, RegularPaymentDetails, RegularPaymentDetailsPaymentMethodDetailsOneOf, RestockInfo, RestockItem, RestockType, RestockTypeWithLiterals, RestoreInfo, ReverseChargebackRequest, ReverseChargebackResponse, ScheduledAction, ShipmentDetails, ShippingInfo, ShippingInfoDetailsOneOf, ShippingPriceData, ShippingRefund, SnapshotMessage, SortOrder, SortOrderWithLiterals, Sorting, Street, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionInfo, SubscriptionOptionInfo, SubscriptionSettings, Totals, TrackingInfo, TransactionStatus, TransactionStatusWithLiterals, TriggerRefundRequest, TriggerRefundResponse, UpdatePaymentStatusRequest, UpdatePaymentsApplicationErrors, UpdatePaymentsRequest, UpdatePaymentsResponse, UpdateRefundRequest, UpdateRefundResponse, UpdateRefundTransactionApplicationErrors, UpdateRefundTransactionRequest, UpdateRefundTransactionResponse, V2InvoiceInfo, V2Refund, VatId, VatType, VatTypeWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals, WixReceiptInfo } from './index.typings.js';
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { ListTransactionsForSingleOrderResponse, ListTransactionsForMultipleOrdersResponse, Payment, AddPaymentsResponse, UpdatePaymentStatusIdentifiers, UpdatePaymentStatusOptions, UpdatePaymentStatusResponse, PaymentAndOrderId, BulkUpdatePaymentStatusesOptions, BulkUpdatePaymentStatusesResponse, OrderTransactionsDetailsUpdatedEnvelope, OrderTransactionsRefundCompletedEnvelope, OrderTransactionsUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, ActionType, ActionTypeWithLiterals, Activity, ActivityType, ActivityTypeWithLiterals, AddChargebackRequest, AddChargebackResponse, AddInvoiceToOrderRequest, AddInvoiceToOrderResponse, AddPaymentsRequest, AddRefundRequest, AddRefundResponse, AdditionalFeeRefund, Address, AddressAddressLine1OptionsOneOf, AggregatedRefundSummary, ApplicationError, AppliedCoupon, AuthorizationActionFailureDetails, AuthorizationCapture, AuthorizationCaptureStatus, AuthorizationCaptureStatusWithLiterals, AuthorizationDetails, AuthorizationVoid, AuthorizationVoidStatus, AuthorizationVoidStatusWithLiterals, BaseEventMetadata, BillingInfo, BulkActionMetadata, BulkGenerateInvoicesRequest, BulkGenerateInvoicesResponse, BulkInvoiceResult, BulkPaymentResult, BulkUpdatePaymentStatusesRequest, BuyerDetails, BuyerInfo, CalculateRefundItemRequest, CalculateRefundItemResponse, CalculateRefundRequest, CalculateRefundResponse, ChannelInfo, ChannelType, ChannelTypeWithLiterals, Chargeback, ChargebackApproved, ChargebackReversed, ChargebackStatus, ChargebackStatusWithLiterals, CreditCardPaymentMethodDetails, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomField, CustomTextFieldSelection, DiffmatokyPayload, DigitalFile, Discount, DomainEvent, DomainEventBodyOneOf, EnteredBy, EnteredByIdentityType, EnteredByIdentityTypeWithLiterals, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorInformation, EventMetadata, ExternalReceiptInfo, Fulfillment, FulfillmentLineItem, FulfillmentStatus, FulfillmentStatusWithLiterals, FulfillmentTrackingInfo, FullName, GenerateInvoiceRequest, GenerateInvoiceResponse, GetRefundabilityStatusRequest, GetRefundabilityStatusResponse, GiftCard, GiftCardPaymentDetails, IdentificationData, IdentificationDataIdOneOf, IdentityType, IdentityTypeWithLiterals, IndexingMessage, InvoiceForOrder, InvoiceInfo, InvoiceSource, InvoiceSourceWithLiterals, InvoicesForOrder, ItemMetadata, LineItem, LineItemPriceData, LineItemRefund, LineItemRefundSummary, LineItemType, LineItemTypeWithLiterals, ListInvoicesForMultipleOrdersRequest, ListInvoicesForMultipleOrdersResponse, ListInvoicesForSingleOrderRequest, ListInvoicesForSingleOrderResponse, ListTransactionsForMultipleOrdersRequest, ListTransactionsForSingleOrderRequest, ManuallyRefundableReason, ManuallyRefundableReasonWithLiterals, MaskedPayment, MediaItem, MediaItemType, MediaItemTypeWithLiterals, MembershipName, MembershipPaymentDetails, MembershipPaymentStatus, MembershipPaymentStatusWithLiterals, MessageEnvelope, NonRefundableReason, NonRefundableReasonWithLiterals, OptionSelection, Order, OrderRefunded, OrderTransactions, PaymentDetailsUpdated, PaymentPaymentDetailsOneOf, PaymentReceiptInfoOneOf, PaymentRefund, PaymentStatus, PaymentStatusWithLiterals, PaymentsUpdated, PickupAddress, PickupDetails, Price, QueryOrderTransactionsRequest, QueryOrderTransactionsResponse, Reason, ReasonWithLiterals, Refund, RefundCompleted, RefundCreated, RefundDetails, RefundItem, RefundItemsBreakdown, RefundSideEffects, RefundStatus, RefundStatusInfo, RefundStatusWithLiterals, RefundTransaction, Refundability, RefundabilityAdditionalRefundabilityInfoOneOf, RefundableStatus, RefundableStatusWithLiterals, RegularPaymentDetails, RegularPaymentDetailsPaymentMethodDetailsOneOf, RestockInfo, RestockItem, RestockType, RestockTypeWithLiterals, RestoreInfo, ReverseChargebackRequest, ReverseChargebackResponse, ScheduledAction, ShipmentDetails, ShippingInfo, ShippingInfoDetailsOneOf, ShippingPriceData, ShippingRefund, SnapshotMessage, SortOrder, SortOrderWithLiterals, Sorting, Street, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionInfo, SubscriptionOptionInfo, SubscriptionSettings, Totals, TrackingInfo, TransactionStatus, TransactionStatusWithLiterals, TriggerRefundRequest, TriggerRefundResponse, UpdatePaymentStatusRequest, UpdatePaymentsApplicationErrors, UpdatePaymentsRequest, UpdatePaymentsResponse, UpdateRefundRequest, UpdateRefundResponse, UpdateRefundTransactionApplicationErrors, UpdateRefundTransactionRequest, UpdateRefundTransactionResponse, V2InvoiceInfo, V2Refund, VatId, VatType, VatTypeWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals, WixReceiptInfo } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function listTransactionsForSingleOrder$1(httpClient: HttpClient): ListTransactionsForSingleOrderSignature;
|
|
6
6
|
interface ListTransactionsForSingleOrderSignature {
|
|
@@ -59,11 +59,33 @@ interface BulkUpdatePaymentStatusesSignature {
|
|
|
59
59
|
*/
|
|
60
60
|
(paymentAndOrderIds: PaymentAndOrderId[], options?: BulkUpdatePaymentStatusesOptions): Promise<NonNullablePaths<BulkUpdatePaymentStatusesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.regularPaymentDetails.offlinePayment` | `results.${number}.item.regularPaymentDetails.status` | `results.${number}.item.regularPaymentDetails.savedPaymentMethod` | `results.${number}.item.giftcardPaymentDetails.giftCardPaymentId` | `results.${number}.item.giftcardPaymentDetails.appId` | `results.${number}.item.giftcardPaymentDetails.voided` | `results.${number}.item.amount.amount` | `results.${number}.item.amount.formattedAmount` | `results.${number}.item.refundDisabled` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
61
61
|
}
|
|
62
|
+
declare const onOrderTransactionsDetailsUpdated$1: EventDefinition<OrderTransactionsDetailsUpdatedEnvelope, "wix.ecom.v1.order_transactions_details_updated">;
|
|
63
|
+
declare const onOrderTransactionsRefundCompleted$1: EventDefinition<OrderTransactionsRefundCompletedEnvelope, "wix.ecom.v1.order_transactions_refund_completed">;
|
|
64
|
+
declare const onOrderTransactionsUpdated$1: EventDefinition<OrderTransactionsUpdatedEnvelope, "wix.ecom.v1.order_transactions_updated">;
|
|
62
65
|
|
|
63
66
|
declare const listTransactionsForSingleOrder: MaybeContext<BuildRESTFunction<typeof listTransactionsForSingleOrder$1> & typeof listTransactionsForSingleOrder$1>;
|
|
64
67
|
declare const listTransactionsForMultipleOrders: MaybeContext<BuildRESTFunction<typeof listTransactionsForMultipleOrders$1> & typeof listTransactionsForMultipleOrders$1>;
|
|
65
68
|
declare const addPayments: MaybeContext<BuildRESTFunction<typeof addPayments$1> & typeof addPayments$1>;
|
|
66
69
|
declare const updatePaymentStatus: MaybeContext<BuildRESTFunction<typeof updatePaymentStatus$1> & typeof updatePaymentStatus$1>;
|
|
67
70
|
declare const bulkUpdatePaymentStatuses: MaybeContext<BuildRESTFunction<typeof bulkUpdatePaymentStatuses$1> & typeof bulkUpdatePaymentStatuses$1>;
|
|
71
|
+
/**
|
|
72
|
+
* Triggered when a payment or refund is added to an order, or when an existing payment is updated.
|
|
73
|
+
*
|
|
74
|
+
* Contains the ID of the updated order and details of its associated transactions,
|
|
75
|
+
* as well as IDs of the updated payments and refunds.
|
|
76
|
+
*/
|
|
77
|
+
declare const onOrderTransactionsDetailsUpdated: BuildEventDefinition<typeof onOrderTransactionsDetailsUpdated$1>;
|
|
78
|
+
/**
|
|
79
|
+
* Triggered (once) when all RefundTransactions in Refund become either SUCCEEDED or FAILED.
|
|
80
|
+
*/
|
|
81
|
+
declare const onOrderTransactionsRefundCompleted: BuildEventDefinition<typeof onOrderTransactionsRefundCompleted$1>;
|
|
82
|
+
/**
|
|
83
|
+
* Triggered when a payment or refund is added to an order, or when an existing payment is updated.
|
|
84
|
+
*
|
|
85
|
+
* Contains the ID of the updated order and details of its associated transactions,
|
|
86
|
+
* as well as IDs of the updated payments and refunds.
|
|
87
|
+
* @deprecated
|
|
88
|
+
*/
|
|
89
|
+
declare const onOrderTransactionsUpdated: BuildEventDefinition<typeof onOrderTransactionsUpdated$1>;
|
|
68
90
|
|
|
69
|
-
export { AddPaymentsResponse, BulkUpdatePaymentStatusesOptions, BulkUpdatePaymentStatusesResponse, ListTransactionsForMultipleOrdersResponse, ListTransactionsForSingleOrderResponse, Payment, PaymentAndOrderId, UpdatePaymentStatusIdentifiers, UpdatePaymentStatusOptions, UpdatePaymentStatusResponse, addPayments, bulkUpdatePaymentStatuses, listTransactionsForMultipleOrders, listTransactionsForSingleOrder, updatePaymentStatus };
|
|
91
|
+
export { AddPaymentsResponse, BulkUpdatePaymentStatusesOptions, BulkUpdatePaymentStatusesResponse, ListTransactionsForMultipleOrdersResponse, ListTransactionsForSingleOrderResponse, OrderTransactionsDetailsUpdatedEnvelope, OrderTransactionsRefundCompletedEnvelope, OrderTransactionsUpdatedEnvelope, Payment, PaymentAndOrderId, UpdatePaymentStatusIdentifiers, UpdatePaymentStatusOptions, UpdatePaymentStatusResponse, addPayments, bulkUpdatePaymentStatuses, listTransactionsForMultipleOrders, listTransactionsForSingleOrder, onOrderTransactionsDetailsUpdated, onOrderTransactionsRefundCompleted, onOrderTransactionsUpdated, updatePaymentStatus };
|
package/build/cjs/index.js
CHANGED
|
@@ -50,12 +50,21 @@ __export(index_exports, {
|
|
|
50
50
|
bulkUpdatePaymentStatuses: () => bulkUpdatePaymentStatuses4,
|
|
51
51
|
listTransactionsForMultipleOrders: () => listTransactionsForMultipleOrders4,
|
|
52
52
|
listTransactionsForSingleOrder: () => listTransactionsForSingleOrder4,
|
|
53
|
+
onOrderTransactionsDetailsUpdated: () => onOrderTransactionsDetailsUpdated2,
|
|
54
|
+
onOrderTransactionsRefundCompleted: () => onOrderTransactionsRefundCompleted2,
|
|
55
|
+
onOrderTransactionsUpdated: () => onOrderTransactionsUpdated2,
|
|
53
56
|
updatePaymentStatus: () => updatePaymentStatus4,
|
|
54
57
|
updatePayments: () => updatePayments4,
|
|
55
58
|
updateRefundTransaction: () => updateRefundTransaction4
|
|
56
59
|
});
|
|
57
60
|
module.exports = __toCommonJS(index_exports);
|
|
58
61
|
|
|
62
|
+
// src/ecom-v1-order-transactions-order-transactions.public.ts
|
|
63
|
+
var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
64
|
+
var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
65
|
+
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
66
|
+
var import_sdk_types = require("@wix/sdk-types");
|
|
67
|
+
|
|
59
68
|
// src/ecom-v1-order-transactions-order-transactions.universal.ts
|
|
60
69
|
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
61
70
|
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
@@ -953,9 +962,116 @@ function updatePayments3(httpClient) {
|
|
|
953
962
|
{ httpClient }
|
|
954
963
|
);
|
|
955
964
|
}
|
|
965
|
+
var onOrderTransactionsDetailsUpdated = (0, import_sdk_types.EventDefinition)(
|
|
966
|
+
"wix.ecom.v1.order_transactions_details_updated",
|
|
967
|
+
true,
|
|
968
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
969
|
+
(0, import_transform_paths2.transformPaths)(event, [
|
|
970
|
+
{
|
|
971
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
972
|
+
paths: [
|
|
973
|
+
{ path: "data.orderTransactions.payments.createdDate" },
|
|
974
|
+
{ path: "data.orderTransactions.payments.updatedDate" },
|
|
975
|
+
{
|
|
976
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
992
|
+
},
|
|
993
|
+
{ path: "data.orderTransactions.refunds.createdDate" },
|
|
994
|
+
{ path: "metadata.eventTime" }
|
|
995
|
+
]
|
|
996
|
+
}
|
|
997
|
+
])
|
|
998
|
+
)
|
|
999
|
+
)();
|
|
1000
|
+
var onOrderTransactionsRefundCompleted = (0, import_sdk_types.EventDefinition)(
|
|
1001
|
+
"wix.ecom.v1.order_transactions_refund_completed",
|
|
1002
|
+
true,
|
|
1003
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1004
|
+
(0, import_transform_paths2.transformPaths)(event, [
|
|
1005
|
+
{
|
|
1006
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1007
|
+
paths: [
|
|
1008
|
+
{ path: "data.refund.createdDate" },
|
|
1009
|
+
{ path: "data.orderTransactions.payments.createdDate" },
|
|
1010
|
+
{ path: "data.orderTransactions.payments.updatedDate" },
|
|
1011
|
+
{
|
|
1012
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
1028
|
+
},
|
|
1029
|
+
{ path: "data.orderTransactions.refunds.createdDate" },
|
|
1030
|
+
{ path: "metadata.eventTime" }
|
|
1031
|
+
]
|
|
1032
|
+
}
|
|
1033
|
+
])
|
|
1034
|
+
)
|
|
1035
|
+
)();
|
|
1036
|
+
var onOrderTransactionsUpdated = (0, import_sdk_types.EventDefinition)(
|
|
1037
|
+
"wix.ecom.v1.order_transactions_updated",
|
|
1038
|
+
true,
|
|
1039
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1040
|
+
(0, import_transform_paths2.transformPaths)(event, [
|
|
1041
|
+
{
|
|
1042
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1043
|
+
paths: [
|
|
1044
|
+
{ path: "data.orderTransactions.payments.createdDate" },
|
|
1045
|
+
{ path: "data.orderTransactions.payments.updatedDate" },
|
|
1046
|
+
{
|
|
1047
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
path: "data.orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
1063
|
+
},
|
|
1064
|
+
{ path: "data.orderTransactions.refunds.createdDate" },
|
|
1065
|
+
{ path: "metadata.eventTime" }
|
|
1066
|
+
]
|
|
1067
|
+
}
|
|
1068
|
+
])
|
|
1069
|
+
)
|
|
1070
|
+
)();
|
|
956
1071
|
|
|
957
1072
|
// src/ecom-v1-order-transactions-order-transactions.context.ts
|
|
958
1073
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
1074
|
+
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
959
1075
|
var listTransactionsForSingleOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listTransactionsForSingleOrder3);
|
|
960
1076
|
var listTransactionsForMultipleOrders4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listTransactionsForMultipleOrders3);
|
|
961
1077
|
var addPayments4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addPayments3);
|
|
@@ -963,6 +1079,9 @@ var updatePaymentStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTMo
|
|
|
963
1079
|
var bulkUpdatePaymentStatuses4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdatePaymentStatuses3);
|
|
964
1080
|
var updateRefundTransaction4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateRefundTransaction3);
|
|
965
1081
|
var updatePayments4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updatePayments3);
|
|
1082
|
+
var onOrderTransactionsDetailsUpdated2 = (0, import_event_definition_modules.createEventModule)(onOrderTransactionsDetailsUpdated);
|
|
1083
|
+
var onOrderTransactionsRefundCompleted2 = (0, import_event_definition_modules.createEventModule)(onOrderTransactionsRefundCompleted);
|
|
1084
|
+
var onOrderTransactionsUpdated2 = (0, import_event_definition_modules.createEventModule)(onOrderTransactionsUpdated);
|
|
966
1085
|
// Annotate the CommonJS export names for ESM import in node:
|
|
967
1086
|
0 && (module.exports = {
|
|
968
1087
|
ActionType,
|
|
@@ -995,6 +1114,9 @@ var updatePayments4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)
|
|
|
995
1114
|
bulkUpdatePaymentStatuses,
|
|
996
1115
|
listTransactionsForMultipleOrders,
|
|
997
1116
|
listTransactionsForSingleOrder,
|
|
1117
|
+
onOrderTransactionsDetailsUpdated,
|
|
1118
|
+
onOrderTransactionsRefundCompleted,
|
|
1119
|
+
onOrderTransactionsUpdated,
|
|
998
1120
|
updatePaymentStatus,
|
|
999
1121
|
updatePayments,
|
|
1000
1122
|
updateRefundTransaction
|