@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
|
@@ -235,7 +235,6 @@ interface AuthorizationCapture {
|
|
|
235
235
|
failureDetails?: AuthorizationActionFailureDetails;
|
|
236
236
|
}
|
|
237
237
|
declare enum AuthorizationCaptureStatus {
|
|
238
|
-
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
239
238
|
/** Capture operation still in progress. */
|
|
240
239
|
PENDING = "PENDING",
|
|
241
240
|
/** Capture operation succeeded. */
|
|
@@ -244,7 +243,7 @@ declare enum AuthorizationCaptureStatus {
|
|
|
244
243
|
FAILED = "FAILED"
|
|
245
244
|
}
|
|
246
245
|
/** @enumType */
|
|
247
|
-
type AuthorizationCaptureStatusWithLiterals = AuthorizationCaptureStatus | '
|
|
246
|
+
type AuthorizationCaptureStatusWithLiterals = AuthorizationCaptureStatus | 'PENDING' | 'SUCCEEDED' | 'FAILED';
|
|
248
247
|
interface Price {
|
|
249
248
|
/**
|
|
250
249
|
* Amount.
|
|
@@ -272,7 +271,6 @@ interface AuthorizationVoid {
|
|
|
272
271
|
reason?: ReasonWithLiterals;
|
|
273
272
|
}
|
|
274
273
|
declare enum AuthorizationVoidStatus {
|
|
275
|
-
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
276
274
|
/** Void operation still in progress. */
|
|
277
275
|
PENDING = "PENDING",
|
|
278
276
|
/** Void operation succeeded. */
|
|
@@ -281,17 +279,16 @@ declare enum AuthorizationVoidStatus {
|
|
|
281
279
|
FAILED = "FAILED"
|
|
282
280
|
}
|
|
283
281
|
/** @enumType */
|
|
284
|
-
type AuthorizationVoidStatusWithLiterals = AuthorizationVoidStatus | '
|
|
282
|
+
type AuthorizationVoidStatusWithLiterals = AuthorizationVoidStatus | 'PENDING' | 'SUCCEEDED' | 'FAILED';
|
|
285
283
|
/** Reason the authorization was voided. */
|
|
286
284
|
declare enum Reason {
|
|
287
|
-
UNKNOWN_REASON = "UNKNOWN_REASON",
|
|
288
285
|
/** Authorization was voided by user. */
|
|
289
286
|
MANUAL = "MANUAL",
|
|
290
287
|
/** Authorization passed execution date. */
|
|
291
288
|
SCHEDULED = "SCHEDULED"
|
|
292
289
|
}
|
|
293
290
|
/** @enumType */
|
|
294
|
-
type ReasonWithLiterals = Reason | '
|
|
291
|
+
type ReasonWithLiterals = Reason | 'MANUAL' | 'SCHEDULED';
|
|
295
292
|
interface ScheduledAction {
|
|
296
293
|
/** Type of the action. */
|
|
297
294
|
actionType?: ActionTypeWithLiterals;
|
|
@@ -299,12 +296,11 @@ interface ScheduledAction {
|
|
|
299
296
|
executionDate?: Date | null;
|
|
300
297
|
}
|
|
301
298
|
declare enum ActionType {
|
|
302
|
-
UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
|
|
303
299
|
VOID = "VOID",
|
|
304
300
|
CAPTURE = "CAPTURE"
|
|
305
301
|
}
|
|
306
302
|
/** @enumType */
|
|
307
|
-
type ActionTypeWithLiterals = ActionType | '
|
|
303
|
+
type ActionTypeWithLiterals = ActionType | 'VOID' | 'CAPTURE';
|
|
308
304
|
interface Chargeback {
|
|
309
305
|
/**
|
|
310
306
|
* Chargeback ID.
|
|
@@ -350,14 +346,13 @@ interface Chargeback {
|
|
|
350
346
|
externalId?: string | null;
|
|
351
347
|
}
|
|
352
348
|
declare enum ChargebackStatus {
|
|
353
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
354
349
|
/** Chargeback was approved. */
|
|
355
350
|
APPROVED = "APPROVED",
|
|
356
351
|
/** Chargeback was reversed. */
|
|
357
352
|
REVERSED = "REVERSED"
|
|
358
353
|
}
|
|
359
354
|
/** @enumType */
|
|
360
|
-
type ChargebackStatusWithLiterals = ChargebackStatus | '
|
|
355
|
+
type ChargebackStatusWithLiterals = ChargebackStatus | 'APPROVED' | 'REVERSED';
|
|
361
356
|
interface PaymentMethodName {
|
|
362
357
|
/**
|
|
363
358
|
* Translated payment method name in buyer language.
|
|
@@ -407,8 +402,6 @@ interface UserDefinedPaymentMethodNameKindOneOf {
|
|
|
407
402
|
}
|
|
408
403
|
/** Predefined payment method types for offline/manual payments. */
|
|
409
404
|
declare enum PredefinedPaymentMethod {
|
|
410
|
-
/** Unknown payment method type. */
|
|
411
|
-
UNKNOWN_PREDEFINED_PAYMENT_METHOD = "UNKNOWN_PREDEFINED_PAYMENT_METHOD",
|
|
412
405
|
/** Cash payment. */
|
|
413
406
|
CASH = "CASH",
|
|
414
407
|
/** Bank transfer. */
|
|
@@ -417,7 +410,7 @@ declare enum PredefinedPaymentMethod {
|
|
|
417
410
|
CHECK = "CHECK"
|
|
418
411
|
}
|
|
419
412
|
/** @enumType */
|
|
420
|
-
type PredefinedPaymentMethodWithLiterals = PredefinedPaymentMethod | '
|
|
413
|
+
type PredefinedPaymentMethodWithLiterals = PredefinedPaymentMethod | 'CASH' | 'BANK_TRANSFER' | 'CHECK';
|
|
421
414
|
interface GiftCardPaymentDetails {
|
|
422
415
|
/**
|
|
423
416
|
* Gift card payment ID.
|
|
@@ -834,6 +827,26 @@ interface RestockItem {
|
|
|
834
827
|
* @max 100000
|
|
835
828
|
*/
|
|
836
829
|
quantity?: number;
|
|
830
|
+
/**
|
|
831
|
+
* Per-location breakdown of restock quantities.
|
|
832
|
+
* @internal
|
|
833
|
+
* @maxSize 5
|
|
834
|
+
*/
|
|
835
|
+
restockLocations?: RestockLocation[];
|
|
836
|
+
}
|
|
837
|
+
/** Quantity of items restocked at a specific location. */
|
|
838
|
+
interface RestockLocation {
|
|
839
|
+
/**
|
|
840
|
+
* ID of the location where items were restocked.
|
|
841
|
+
* @format GUID
|
|
842
|
+
*/
|
|
843
|
+
locationId?: string;
|
|
844
|
+
/**
|
|
845
|
+
* Number of items restocked at this location.
|
|
846
|
+
* @min 1
|
|
847
|
+
* @max 100000
|
|
848
|
+
*/
|
|
849
|
+
quantity?: number;
|
|
837
850
|
}
|
|
838
851
|
interface RefundCompleted {
|
|
839
852
|
/**
|
|
@@ -2075,4 +2088,4 @@ declare function updatePayments(): Promise<void & {
|
|
|
2075
2088
|
__applicationErrorsType?: UpdatePaymentsApplicationErrors;
|
|
2076
2089
|
}>;
|
|
2077
2090
|
|
|
2078
|
-
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, updatePayments, updateRefundTransaction };
|
|
2091
|
+
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, updatePayments, updateRefundTransaction };
|
|
@@ -501,39 +501,33 @@ var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
|
501
501
|
return TransactionStatus2;
|
|
502
502
|
})(TransactionStatus || {});
|
|
503
503
|
var AuthorizationCaptureStatus = /* @__PURE__ */ ((AuthorizationCaptureStatus2) => {
|
|
504
|
-
AuthorizationCaptureStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
505
504
|
AuthorizationCaptureStatus2["PENDING"] = "PENDING";
|
|
506
505
|
AuthorizationCaptureStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
507
506
|
AuthorizationCaptureStatus2["FAILED"] = "FAILED";
|
|
508
507
|
return AuthorizationCaptureStatus2;
|
|
509
508
|
})(AuthorizationCaptureStatus || {});
|
|
510
509
|
var AuthorizationVoidStatus = /* @__PURE__ */ ((AuthorizationVoidStatus2) => {
|
|
511
|
-
AuthorizationVoidStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
512
510
|
AuthorizationVoidStatus2["PENDING"] = "PENDING";
|
|
513
511
|
AuthorizationVoidStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
514
512
|
AuthorizationVoidStatus2["FAILED"] = "FAILED";
|
|
515
513
|
return AuthorizationVoidStatus2;
|
|
516
514
|
})(AuthorizationVoidStatus || {});
|
|
517
515
|
var Reason = /* @__PURE__ */ ((Reason2) => {
|
|
518
|
-
Reason2["UNKNOWN_REASON"] = "UNKNOWN_REASON";
|
|
519
516
|
Reason2["MANUAL"] = "MANUAL";
|
|
520
517
|
Reason2["SCHEDULED"] = "SCHEDULED";
|
|
521
518
|
return Reason2;
|
|
522
519
|
})(Reason || {});
|
|
523
520
|
var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
524
|
-
ActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
525
521
|
ActionType2["VOID"] = "VOID";
|
|
526
522
|
ActionType2["CAPTURE"] = "CAPTURE";
|
|
527
523
|
return ActionType2;
|
|
528
524
|
})(ActionType || {});
|
|
529
525
|
var ChargebackStatus = /* @__PURE__ */ ((ChargebackStatus2) => {
|
|
530
|
-
ChargebackStatus2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
531
526
|
ChargebackStatus2["APPROVED"] = "APPROVED";
|
|
532
527
|
ChargebackStatus2["REVERSED"] = "REVERSED";
|
|
533
528
|
return ChargebackStatus2;
|
|
534
529
|
})(ChargebackStatus || {});
|
|
535
530
|
var PredefinedPaymentMethod = /* @__PURE__ */ ((PredefinedPaymentMethod2) => {
|
|
536
|
-
PredefinedPaymentMethod2["UNKNOWN_PREDEFINED_PAYMENT_METHOD"] = "UNKNOWN_PREDEFINED_PAYMENT_METHOD";
|
|
537
531
|
PredefinedPaymentMethod2["CASH"] = "CASH";
|
|
538
532
|
PredefinedPaymentMethod2["BANK_TRANSFER"] = "BANK_TRANSFER";
|
|
539
533
|
PredefinedPaymentMethod2["CHECK"] = "CHECK";
|