@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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +0 -6
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +21 -14
  5. package/build/cjs/index.typings.js +0 -6
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +21 -14
  8. package/build/cjs/meta.js +0 -6
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +0 -6
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +21 -14
  14. package/build/es/index.typings.mjs +0 -6
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +21 -14
  17. package/build/es/meta.mjs +0 -6
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +0 -6
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +27 -14
  23. package/build/internal/cjs/index.typings.js +0 -6
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +21 -14
  26. package/build/internal/cjs/meta.js +0 -6
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +0 -6
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +27 -14
  32. package/build/internal/es/index.typings.mjs +0 -6
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +21 -14
  35. package/build/internal/es/meta.mjs +0 -6
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. 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 | 'UNKNOWN_STATUS' | 'PENDING' | 'SUCCEEDED' | 'FAILED';
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 | 'UNKNOWN_STATUS' | 'PENDING' | 'SUCCEEDED' | 'FAILED';
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 | 'UNKNOWN_REASON' | 'MANUAL' | 'SCHEDULED';
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 | 'UNKNOWN_ACTION_TYPE' | 'VOID' | 'CAPTURE';
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 | 'UNSPECIFIED' | 'APPROVED' | 'REVERSED';
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 | 'UNKNOWN_PREDEFINED_PAYMENT_METHOD' | 'CASH' | 'BANK_TRANSFER' | 'CHECK';
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 };
@@ -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";