@wix/auto_sdk_ecom_order-transactions 1.0.76 → 1.0.78
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 +0 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +21 -14
- package/build/cjs/index.typings.js +0 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +21 -14
- package/build/cjs/meta.js +0 -6
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +0 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +21 -14
- package/build/es/index.typings.mjs +0 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +21 -14
- package/build/es/meta.mjs +0 -6
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +0 -6
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +27 -14
- package/build/internal/cjs/index.typings.js +0 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +21 -14
- package/build/internal/cjs/meta.js +0 -6
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +0 -6
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +27 -14
- package/build/internal/es/index.typings.mjs +0 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +21 -14
- package/build/internal/es/meta.mjs +0 -6
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -185,7 +185,6 @@ interface AuthorizationCapture {
|
|
|
185
185
|
failureDetails?: AuthorizationActionFailureDetails;
|
|
186
186
|
}
|
|
187
187
|
declare enum AuthorizationCaptureStatus {
|
|
188
|
-
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
189
188
|
/** Capture operation still in progress. */
|
|
190
189
|
PENDING = "PENDING",
|
|
191
190
|
/** Capture operation succeeded. */
|
|
@@ -194,7 +193,7 @@ declare enum AuthorizationCaptureStatus {
|
|
|
194
193
|
FAILED = "FAILED"
|
|
195
194
|
}
|
|
196
195
|
/** @enumType */
|
|
197
|
-
type AuthorizationCaptureStatusWithLiterals = AuthorizationCaptureStatus | '
|
|
196
|
+
type AuthorizationCaptureStatusWithLiterals = AuthorizationCaptureStatus | 'PENDING' | 'SUCCEEDED' | 'FAILED';
|
|
198
197
|
interface Price {
|
|
199
198
|
/**
|
|
200
199
|
* Amount.
|
|
@@ -222,7 +221,6 @@ interface AuthorizationVoid {
|
|
|
222
221
|
reason?: ReasonWithLiterals;
|
|
223
222
|
}
|
|
224
223
|
declare enum AuthorizationVoidStatus {
|
|
225
|
-
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
226
224
|
/** Void operation still in progress. */
|
|
227
225
|
PENDING = "PENDING",
|
|
228
226
|
/** Void operation succeeded. */
|
|
@@ -231,17 +229,16 @@ declare enum AuthorizationVoidStatus {
|
|
|
231
229
|
FAILED = "FAILED"
|
|
232
230
|
}
|
|
233
231
|
/** @enumType */
|
|
234
|
-
type AuthorizationVoidStatusWithLiterals = AuthorizationVoidStatus | '
|
|
232
|
+
type AuthorizationVoidStatusWithLiterals = AuthorizationVoidStatus | 'PENDING' | 'SUCCEEDED' | 'FAILED';
|
|
235
233
|
/** Reason the authorization was voided. */
|
|
236
234
|
declare enum Reason {
|
|
237
|
-
UNKNOWN_REASON = "UNKNOWN_REASON",
|
|
238
235
|
/** Authorization was voided by user. */
|
|
239
236
|
MANUAL = "MANUAL",
|
|
240
237
|
/** Authorization passed execution date. */
|
|
241
238
|
SCHEDULED = "SCHEDULED"
|
|
242
239
|
}
|
|
243
240
|
/** @enumType */
|
|
244
|
-
type ReasonWithLiterals = Reason | '
|
|
241
|
+
type ReasonWithLiterals = Reason | 'MANUAL' | 'SCHEDULED';
|
|
245
242
|
interface ScheduledAction {
|
|
246
243
|
/** Type of the action. */
|
|
247
244
|
actionType?: ActionTypeWithLiterals;
|
|
@@ -249,12 +246,11 @@ interface ScheduledAction {
|
|
|
249
246
|
executionDate?: Date | null;
|
|
250
247
|
}
|
|
251
248
|
declare enum ActionType {
|
|
252
|
-
UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
|
|
253
249
|
VOID = "VOID",
|
|
254
250
|
CAPTURE = "CAPTURE"
|
|
255
251
|
}
|
|
256
252
|
/** @enumType */
|
|
257
|
-
type ActionTypeWithLiterals = ActionType | '
|
|
253
|
+
type ActionTypeWithLiterals = ActionType | 'VOID' | 'CAPTURE';
|
|
258
254
|
interface Chargeback {
|
|
259
255
|
/**
|
|
260
256
|
* Chargeback ID.
|
|
@@ -300,14 +296,13 @@ interface Chargeback {
|
|
|
300
296
|
externalId?: string | null;
|
|
301
297
|
}
|
|
302
298
|
declare enum ChargebackStatus {
|
|
303
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
304
299
|
/** Chargeback was approved. */
|
|
305
300
|
APPROVED = "APPROVED",
|
|
306
301
|
/** Chargeback was reversed. */
|
|
307
302
|
REVERSED = "REVERSED"
|
|
308
303
|
}
|
|
309
304
|
/** @enumType */
|
|
310
|
-
type ChargebackStatusWithLiterals = ChargebackStatus | '
|
|
305
|
+
type ChargebackStatusWithLiterals = ChargebackStatus | 'APPROVED' | 'REVERSED';
|
|
311
306
|
interface PaymentMethodName {
|
|
312
307
|
/**
|
|
313
308
|
* Translated payment method name in buyer language.
|
|
@@ -357,8 +352,6 @@ interface UserDefinedPaymentMethodNameKindOneOf {
|
|
|
357
352
|
}
|
|
358
353
|
/** Predefined payment method types for offline/manual payments. */
|
|
359
354
|
declare enum PredefinedPaymentMethod {
|
|
360
|
-
/** Unknown payment method type. */
|
|
361
|
-
UNKNOWN_PREDEFINED_PAYMENT_METHOD = "UNKNOWN_PREDEFINED_PAYMENT_METHOD",
|
|
362
355
|
/** Cash payment. */
|
|
363
356
|
CASH = "CASH",
|
|
364
357
|
/** Bank transfer. */
|
|
@@ -367,7 +360,7 @@ declare enum PredefinedPaymentMethod {
|
|
|
367
360
|
CHECK = "CHECK"
|
|
368
361
|
}
|
|
369
362
|
/** @enumType */
|
|
370
|
-
type PredefinedPaymentMethodWithLiterals = PredefinedPaymentMethod | '
|
|
363
|
+
type PredefinedPaymentMethodWithLiterals = PredefinedPaymentMethod | 'CASH' | 'BANK_TRANSFER' | 'CHECK';
|
|
371
364
|
interface GiftCardPaymentDetails {
|
|
372
365
|
/**
|
|
373
366
|
* Gift card payment ID.
|
|
@@ -764,6 +757,20 @@ interface RestockItem {
|
|
|
764
757
|
*/
|
|
765
758
|
quantity?: number;
|
|
766
759
|
}
|
|
760
|
+
/** Quantity of items restocked at a specific location. */
|
|
761
|
+
interface RestockLocation {
|
|
762
|
+
/**
|
|
763
|
+
* ID of the location where items were restocked.
|
|
764
|
+
* @format GUID
|
|
765
|
+
*/
|
|
766
|
+
locationId?: string;
|
|
767
|
+
/**
|
|
768
|
+
* Number of items restocked at this location.
|
|
769
|
+
* @min 1
|
|
770
|
+
* @max 100000
|
|
771
|
+
*/
|
|
772
|
+
quantity?: number;
|
|
773
|
+
}
|
|
767
774
|
interface RefundCompleted {
|
|
768
775
|
/**
|
|
769
776
|
* Order ID.
|
|
@@ -1901,4 +1908,4 @@ interface BulkUpdatePaymentStatusesOptions {
|
|
|
1901
1908
|
interface UpdateRefundTransactionOptions {
|
|
1902
1909
|
}
|
|
1903
1910
|
|
|
1904
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, ActionType, type ActionTypeWithLiterals, type AddChargebackRequest, type AddChargebackResponse, type AddInvoiceToOrderRequest, type AddInvoiceToOrderResponse, type AddPaymentsRequest, type AddPaymentsResponse, type AddRefundRequest, type AddRefundResponse, type AdditionalFeeRefund, type AggregatedRefundSummary, type ApplicationError, type AuthorizationActionFailureDetails, type AuthorizationCapture, AuthorizationCaptureStatus, type AuthorizationCaptureStatusWithLiterals, type AuthorizationDetails, type AuthorizationVoid, AuthorizationVoidStatus, type AuthorizationVoidStatusWithLiterals, type BaseEventMetadata, type BulkActionMetadata, type BulkGenerateInvoicesRequest, type BulkGenerateInvoicesResponse, type BulkInvoiceResult, type BulkPaymentResult, type BulkUpdatePaymentStatusesOptions, type BulkUpdatePaymentStatusesRequest, type BulkUpdatePaymentStatusesResponse, type CalculateRefundItemRequest, type CalculateRefundItemResponse, type CalculateRefundRequest, type CalculateRefundResponse, type CashRounding, type CashRoundingDetails, type Chargeback, type ChargebackApproved, type ChargebackReversed, ChargebackStatus, type ChargebackStatusWithLiterals, type CreditCardPaymentMethodDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExternalReceiptInfo, type GenerateInvoiceRequest, type GenerateInvoiceResponse, type GetRefundabilityStatusRequest, type GetRefundabilityStatusResponse, type GiftCardPaymentDetails, type IdentificationData, type IdentificationDataIdOneOf, type InvoiceForOrder, type InvoiceInfo, type InvoicesForOrder, type ItemMetadata, type LineItemRefund, type LineItemRefundSummary, type ListInvoicesForMultipleOrdersRequest, type ListInvoicesForMultipleOrdersResponse, type ListInvoicesForSingleOrderRequest, type ListInvoicesForSingleOrderResponse, type ListTransactionsForMultipleOrdersRequest, type ListTransactionsForMultipleOrdersResponse, type ListTransactionsForSingleOrderRequest, type ListTransactionsForSingleOrderResponse, ManuallyRefundableReason, type ManuallyRefundableReasonWithLiterals, type MaskedPayment, type MembershipName, type MembershipPaymentDetails, MembershipPaymentStatus, type MembershipPaymentStatusWithLiterals, type MessageEnvelope, NonRefundableReason, type NonRefundableReasonWithLiterals, type OrderTransactions, type OrderTransactionsChargebackApprovedEnvelope, type OrderTransactionsChargebackReversedEnvelope, type OrderTransactionsDetailsUpdatedEnvelope, type OrderTransactionsRefundCompletedEnvelope, type OrderTransactionsUpdatedEnvelope, type Payment, type PaymentAndOrderId, type PaymentDetailsUpdated, type PaymentMethodName, type PaymentPaymentDetailsOneOf, type PaymentReceiptInfoOneOf, type PaymentRefund, type PaymentsUpdated, PredefinedPaymentMethod, type PredefinedPaymentMethodWithLiterals, type Price, type QueryOrderTransactionsRequest, type QueryOrderTransactionsResponse, Reason, type ReasonWithLiterals, type Refund, type RefundCompleted, type RefundCreated, type RefundDetails, type RefundItem, type RefundItemsBreakdown, type RefundSideEffects, RefundStatus, type RefundStatusInfo, type RefundStatusWithLiterals, type RefundTransaction, type Refundability, type RefundabilityAdditionalRefundabilityInfoOneOf, RefundableStatus, type RefundableStatusWithLiterals, type RegularPaymentDetails, type RegularPaymentDetailsPaymentMethodDetailsOneOf, type RestockInfo, type RestockItem, RestockType, type RestockTypeWithLiterals, type RestoreInfo, type ReverseChargebackRequest, type ReverseChargebackResponse, type ScheduledAction, type ShippingRefund, SortOrder, type SortOrderWithLiterals, type Sorting, TransactionStatus, type TransactionStatusWithLiterals, type TriggerRefundRequest, type TriggerRefundResponse, type UpdatePaymentStatusIdentifiers, type UpdatePaymentStatusOptions, type UpdatePaymentStatusRequest, type UpdatePaymentStatusResponse, type UpdatePaymentsApplicationErrors, type UpdatePaymentsRequest, type UpdatePaymentsResponse, type UpdateRefundRequest, type UpdateRefundResponse, type UpdateRefundTransactionApplicationErrors, type UpdateRefundTransactionOptions, type UpdateRefundTransactionRequest, type UpdateRefundTransactionResponse, type UserDefinedPaymentMethodName, type UserDefinedPaymentMethodNameKindOneOf, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixReceiptInfo, addPayments, bulkUpdatePaymentStatuses, listTransactionsForMultipleOrders, listTransactionsForSingleOrder, onOrderTransactionsChargebackApproved, onOrderTransactionsChargebackReversed, onOrderTransactionsDetailsUpdated, onOrderTransactionsRefundCompleted, onOrderTransactionsUpdated, updatePaymentStatus };
|
|
1911
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, ActionType, type ActionTypeWithLiterals, type AddChargebackRequest, type AddChargebackResponse, type AddInvoiceToOrderRequest, type AddInvoiceToOrderResponse, type AddPaymentsRequest, type AddPaymentsResponse, type AddRefundRequest, type AddRefundResponse, type AdditionalFeeRefund, type AggregatedRefundSummary, type ApplicationError, type AuthorizationActionFailureDetails, type AuthorizationCapture, AuthorizationCaptureStatus, type AuthorizationCaptureStatusWithLiterals, type AuthorizationDetails, type AuthorizationVoid, AuthorizationVoidStatus, type AuthorizationVoidStatusWithLiterals, type BaseEventMetadata, type BulkActionMetadata, type BulkGenerateInvoicesRequest, type BulkGenerateInvoicesResponse, type BulkInvoiceResult, type BulkPaymentResult, type BulkUpdatePaymentStatusesOptions, type BulkUpdatePaymentStatusesRequest, type BulkUpdatePaymentStatusesResponse, type CalculateRefundItemRequest, type CalculateRefundItemResponse, type CalculateRefundRequest, type CalculateRefundResponse, type CashRounding, type CashRoundingDetails, type Chargeback, type ChargebackApproved, type ChargebackReversed, ChargebackStatus, type ChargebackStatusWithLiterals, type CreditCardPaymentMethodDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExternalReceiptInfo, type GenerateInvoiceRequest, type GenerateInvoiceResponse, type GetRefundabilityStatusRequest, type GetRefundabilityStatusResponse, type GiftCardPaymentDetails, type IdentificationData, type IdentificationDataIdOneOf, type InvoiceForOrder, type InvoiceInfo, type InvoicesForOrder, type ItemMetadata, type LineItemRefund, type LineItemRefundSummary, type ListInvoicesForMultipleOrdersRequest, type ListInvoicesForMultipleOrdersResponse, type ListInvoicesForSingleOrderRequest, type ListInvoicesForSingleOrderResponse, type ListTransactionsForMultipleOrdersRequest, type ListTransactionsForMultipleOrdersResponse, type ListTransactionsForSingleOrderRequest, type ListTransactionsForSingleOrderResponse, ManuallyRefundableReason, type ManuallyRefundableReasonWithLiterals, type MaskedPayment, type MembershipName, type MembershipPaymentDetails, MembershipPaymentStatus, type MembershipPaymentStatusWithLiterals, type MessageEnvelope, NonRefundableReason, type NonRefundableReasonWithLiterals, type OrderTransactions, type OrderTransactionsChargebackApprovedEnvelope, type OrderTransactionsChargebackReversedEnvelope, type OrderTransactionsDetailsUpdatedEnvelope, type OrderTransactionsRefundCompletedEnvelope, type OrderTransactionsUpdatedEnvelope, type Payment, type PaymentAndOrderId, type PaymentDetailsUpdated, type PaymentMethodName, type PaymentPaymentDetailsOneOf, type PaymentReceiptInfoOneOf, type PaymentRefund, type PaymentsUpdated, PredefinedPaymentMethod, type PredefinedPaymentMethodWithLiterals, type Price, type QueryOrderTransactionsRequest, type QueryOrderTransactionsResponse, Reason, type ReasonWithLiterals, type Refund, type RefundCompleted, type RefundCreated, type RefundDetails, type RefundItem, type RefundItemsBreakdown, type RefundSideEffects, RefundStatus, type RefundStatusInfo, type RefundStatusWithLiterals, type RefundTransaction, type Refundability, type RefundabilityAdditionalRefundabilityInfoOneOf, RefundableStatus, type RefundableStatusWithLiterals, type RegularPaymentDetails, type RegularPaymentDetailsPaymentMethodDetailsOneOf, type RestockInfo, type RestockItem, type RestockLocation, RestockType, type RestockTypeWithLiterals, type RestoreInfo, type ReverseChargebackRequest, type ReverseChargebackResponse, type ScheduledAction, type ShippingRefund, SortOrder, type SortOrderWithLiterals, type Sorting, TransactionStatus, type TransactionStatusWithLiterals, type TriggerRefundRequest, type TriggerRefundResponse, type UpdatePaymentStatusIdentifiers, type UpdatePaymentStatusOptions, type UpdatePaymentStatusRequest, type UpdatePaymentStatusResponse, type UpdatePaymentsApplicationErrors, type UpdatePaymentsRequest, type UpdatePaymentsResponse, type UpdateRefundRequest, type UpdateRefundResponse, type UpdateRefundTransactionApplicationErrors, type UpdateRefundTransactionOptions, type UpdateRefundTransactionRequest, type UpdateRefundTransactionResponse, type UserDefinedPaymentMethodName, type UserDefinedPaymentMethodNameKindOneOf, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixReceiptInfo, addPayments, bulkUpdatePaymentStatuses, listTransactionsForMultipleOrders, listTransactionsForSingleOrder, onOrderTransactionsChargebackApproved, onOrderTransactionsChargebackReversed, onOrderTransactionsDetailsUpdated, onOrderTransactionsRefundCompleted, onOrderTransactionsUpdated, updatePaymentStatus };
|
|
@@ -545,39 +545,33 @@ var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
|
545
545
|
return TransactionStatus2;
|
|
546
546
|
})(TransactionStatus || {});
|
|
547
547
|
var AuthorizationCaptureStatus = /* @__PURE__ */ ((AuthorizationCaptureStatus2) => {
|
|
548
|
-
AuthorizationCaptureStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
549
548
|
AuthorizationCaptureStatus2["PENDING"] = "PENDING";
|
|
550
549
|
AuthorizationCaptureStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
551
550
|
AuthorizationCaptureStatus2["FAILED"] = "FAILED";
|
|
552
551
|
return AuthorizationCaptureStatus2;
|
|
553
552
|
})(AuthorizationCaptureStatus || {});
|
|
554
553
|
var AuthorizationVoidStatus = /* @__PURE__ */ ((AuthorizationVoidStatus2) => {
|
|
555
|
-
AuthorizationVoidStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
556
554
|
AuthorizationVoidStatus2["PENDING"] = "PENDING";
|
|
557
555
|
AuthorizationVoidStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
558
556
|
AuthorizationVoidStatus2["FAILED"] = "FAILED";
|
|
559
557
|
return AuthorizationVoidStatus2;
|
|
560
558
|
})(AuthorizationVoidStatus || {});
|
|
561
559
|
var Reason = /* @__PURE__ */ ((Reason2) => {
|
|
562
|
-
Reason2["UNKNOWN_REASON"] = "UNKNOWN_REASON";
|
|
563
560
|
Reason2["MANUAL"] = "MANUAL";
|
|
564
561
|
Reason2["SCHEDULED"] = "SCHEDULED";
|
|
565
562
|
return Reason2;
|
|
566
563
|
})(Reason || {});
|
|
567
564
|
var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
568
|
-
ActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
569
565
|
ActionType2["VOID"] = "VOID";
|
|
570
566
|
ActionType2["CAPTURE"] = "CAPTURE";
|
|
571
567
|
return ActionType2;
|
|
572
568
|
})(ActionType || {});
|
|
573
569
|
var ChargebackStatus = /* @__PURE__ */ ((ChargebackStatus2) => {
|
|
574
|
-
ChargebackStatus2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
575
570
|
ChargebackStatus2["APPROVED"] = "APPROVED";
|
|
576
571
|
ChargebackStatus2["REVERSED"] = "REVERSED";
|
|
577
572
|
return ChargebackStatus2;
|
|
578
573
|
})(ChargebackStatus || {});
|
|
579
574
|
var PredefinedPaymentMethod = /* @__PURE__ */ ((PredefinedPaymentMethod2) => {
|
|
580
|
-
PredefinedPaymentMethod2["UNKNOWN_PREDEFINED_PAYMENT_METHOD"] = "UNKNOWN_PREDEFINED_PAYMENT_METHOD";
|
|
581
575
|
PredefinedPaymentMethod2["CASH"] = "CASH";
|
|
582
576
|
PredefinedPaymentMethod2["BANK_TRANSFER"] = "BANK_TRANSFER";
|
|
583
577
|
PredefinedPaymentMethod2["CHECK"] = "CHECK";
|