@wix/auto_sdk_ecom_order-transactions 1.0.86 → 1.0.88

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 +25 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +56 -2
  5. package/build/cjs/index.typings.js +25 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +46 -2
  8. package/build/cjs/meta.js +25 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +22 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +56 -2
  14. package/build/es/index.typings.mjs +22 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +46 -2
  17. package/build/es/meta.mjs +22 -0
  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 +25 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +56 -2
  23. package/build/internal/cjs/index.typings.js +25 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +46 -2
  26. package/build/internal/cjs/meta.js +25 -0
  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 +22 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +56 -2
  32. package/build/internal/es/index.typings.mjs +22 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +46 -2
  35. package/build/internal/es/meta.mjs +22 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -22,7 +22,7 @@ interface OrderTransactions {
22
22
  */
23
23
  refunds?: Refund[];
24
24
  }
25
- interface Payment extends PaymentPaymentDetailsOneOf, PaymentReceiptInfoOneOf {
25
+ interface Payment extends PaymentPaymentDetailsOneOf, PaymentReceiptInfoOneOf, PaymentStatusDetailsOneOf {
26
26
  /** Regular payment details. */
27
27
  regularPaymentDetails?: RegularPaymentDetails;
28
28
  /** Gift card payment details. */
@@ -59,6 +59,9 @@ interface PaymentPaymentDetailsOneOf {
59
59
  /** @oneof */
60
60
  interface PaymentReceiptInfoOneOf {
61
61
  }
62
+ /** @oneof */
63
+ interface PaymentStatusDetailsOneOf {
64
+ }
62
65
  interface RegularPaymentDetails extends RegularPaymentDetailsPaymentMethodDetailsOneOf {
63
66
  /** Credit card details. */
64
67
  creditCardDetails?: CreditCardPaymentMethodDetails;
@@ -496,6 +499,47 @@ declare enum PaymentStatus {
496
499
  }
497
500
  /** @enumType */
498
501
  type PaymentStatusWithLiterals = PaymentStatus | 'APPROVED' | 'PENDING' | 'PENDING_MERCHANT' | 'CANCELED' | 'DECLINED' | 'REFUNDED' | 'PARTIALLY_REFUNDED' | 'AUTHORIZED' | 'VOIDED';
502
+ interface CanceledStatusDetails {
503
+ reason?: CanceledReasonWithLiterals;
504
+ }
505
+ declare enum CanceledReason {
506
+ /** Other payment with the same chargeCorrelationId failed before current payment started. */
507
+ OTHER_PAYMENT_FAILURE = "OTHER_PAYMENT_FAILURE",
508
+ /** Payment was not completed by user and expired. */
509
+ EXPIRED = "EXPIRED"
510
+ }
511
+ /** @enumType */
512
+ type CanceledReasonWithLiterals = CanceledReason | 'OTHER_PAYMENT_FAILURE' | 'EXPIRED';
513
+ interface DeclinedStatusDetails {
514
+ reason?: DeclinedReasonWithLiterals;
515
+ }
516
+ declare enum DeclinedReason {
517
+ /** Corresponding charge failed. */
518
+ CHARGE_FAILED = "CHARGE_FAILED",
519
+ /** Payment details expired. */
520
+ EXPIRED = "EXPIRED",
521
+ /** Insufficient funds. */
522
+ INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
523
+ /** Gift card was disabled before charge was attempted. */
524
+ GIFT_CARD_DISABLED = "GIFT_CARD_DISABLED",
525
+ /** Payment was rejected by fraud or risk assessment. */
526
+ RISK_REJECTED = "RISK_REJECTED",
527
+ /** 3D Secure authentication failed. */
528
+ THREE_D_SECURE_FAILED = "THREE_D_SECURE_FAILED"
529
+ }
530
+ /** @enumType */
531
+ type DeclinedReasonWithLiterals = DeclinedReason | 'CHARGE_FAILED' | 'EXPIRED' | 'INSUFFICIENT_FUNDS' | 'GIFT_CARD_DISABLED' | 'RISK_REJECTED' | 'THREE_D_SECURE_FAILED';
532
+ interface VoidedStatusDetails {
533
+ reason?: VoidedReasonWithLiterals;
534
+ }
535
+ declare enum VoidedReason {
536
+ /** Payment was voided by merchant request. */
537
+ MERCHANT_REQUEST = "MERCHANT_REQUEST",
538
+ /** Other payment with the same chargeCorrelationId failed and caused rollback of all payments with same chargeCorrelationId. */
539
+ OTHER_PAYMENT_FAILURE = "OTHER_PAYMENT_FAILURE"
540
+ }
541
+ /** @enumType */
542
+ type VoidedReasonWithLiterals = VoidedReason | 'MERCHANT_REQUEST' | 'OTHER_PAYMENT_FAILURE';
499
543
  interface Refund {
500
544
  /**
501
545
  * Refund ID.
@@ -1678,6 +1722,8 @@ interface OrderTransactionsChargebackApprovedEnvelope {
1678
1722
  * Triggered when a new chargeback is added to an order.
1679
1723
  * @permissionScope Manage Stores - all permissions
1680
1724
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1725
+ * @permissionScope Manage_Wix_Rentals_App_Forms_submissions
1726
+ * @permissionScopeId SCOPE.RENTALS.MANAGE
1681
1727
  * @permissionScope Manage Stores
1682
1728
  * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1683
1729
  * @permissionScope Read eCommerce - all read permissions
@@ -1710,6 +1756,8 @@ interface OrderTransactionsChargebackReversedEnvelope {
1710
1756
  * Triggered when an existing chargeback is reversed.
1711
1757
  * @permissionScope Manage Stores - all permissions
1712
1758
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1759
+ * @permissionScope Manage_Wix_Rentals_App_Forms_submissions
1760
+ * @permissionScopeId SCOPE.RENTALS.MANAGE
1713
1761
  * @permissionScope Manage Stores
1714
1762
  * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1715
1763
  * @permissionScope Read eCommerce - all read permissions
@@ -1745,6 +1793,8 @@ interface OrderTransactionsDetailsUpdatedEnvelope {
1745
1793
  * as well as IDs of the updated payments and refunds.
1746
1794
  * @permissionScope Manage Stores - all permissions
1747
1795
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1796
+ * @permissionScope Manage_Wix_Rentals_App_Forms_submissions
1797
+ * @permissionScopeId SCOPE.RENTALS.MANAGE
1748
1798
  * @permissionScope Manage Stores
1749
1799
  * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1750
1800
  * @permissionScope Read eCommerce - all read permissions
@@ -1782,6 +1832,8 @@ interface OrderTransactionsRefundCompletedEnvelope {
1782
1832
  * and the updated order transaction state.
1783
1833
  * @permissionScope Manage Stores - all permissions
1784
1834
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1835
+ * @permissionScope Manage_Wix_Rentals_App_Forms_submissions
1836
+ * @permissionScopeId SCOPE.RENTALS.MANAGE
1785
1837
  * @permissionScope Manage Stores
1786
1838
  * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1787
1839
  * @permissionScope Read eCommerce - all read permissions
@@ -1817,6 +1869,8 @@ interface OrderTransactionsUpdatedEnvelope {
1817
1869
  * as well as IDs of the updated payments and refunds.
1818
1870
  * @permissionScope Manage Stores - all permissions
1819
1871
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1872
+ * @permissionScope Manage_Wix_Rentals_App_Forms_submissions
1873
+ * @permissionScopeId SCOPE.RENTALS.MANAGE
1820
1874
  * @permissionScope Manage Stores
1821
1875
  * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1822
1876
  * @permissionScope Read eCommerce - all read permissions
@@ -1941,4 +1995,4 @@ interface BulkUpdatePaymentStatusesOptions {
1941
1995
  interface UpdateRefundTransactionOptions {
1942
1996
  }
1943
1997
 
1944
- 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, PaymentStatus, type PaymentStatusWithLiterals, 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 };
1998
+ 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, CanceledReason, type CanceledReasonWithLiterals, type CanceledStatusDetails, 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, DeclinedReason, type DeclinedReasonWithLiterals, type DeclinedStatusDetails, 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, PaymentStatus, type PaymentStatusDetailsOneOf, type PaymentStatusWithLiterals, 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, VoidedReason, type VoidedReasonWithLiterals, type VoidedStatusDetails, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixReceiptInfo, addPayments, bulkUpdatePaymentStatuses, listTransactionsForMultipleOrders, listTransactionsForSingleOrder, onOrderTransactionsChargebackApproved, onOrderTransactionsChargebackReversed, onOrderTransactionsDetailsUpdated, onOrderTransactionsRefundCompleted, onOrderTransactionsUpdated, updatePaymentStatus };
@@ -556,6 +556,25 @@ var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
556
556
  PaymentStatus2["VOIDED"] = "VOIDED";
557
557
  return PaymentStatus2;
558
558
  })(PaymentStatus || {});
559
+ var CanceledReason = /* @__PURE__ */ ((CanceledReason2) => {
560
+ CanceledReason2["OTHER_PAYMENT_FAILURE"] = "OTHER_PAYMENT_FAILURE";
561
+ CanceledReason2["EXPIRED"] = "EXPIRED";
562
+ return CanceledReason2;
563
+ })(CanceledReason || {});
564
+ var DeclinedReason = /* @__PURE__ */ ((DeclinedReason2) => {
565
+ DeclinedReason2["CHARGE_FAILED"] = "CHARGE_FAILED";
566
+ DeclinedReason2["EXPIRED"] = "EXPIRED";
567
+ DeclinedReason2["INSUFFICIENT_FUNDS"] = "INSUFFICIENT_FUNDS";
568
+ DeclinedReason2["GIFT_CARD_DISABLED"] = "GIFT_CARD_DISABLED";
569
+ DeclinedReason2["RISK_REJECTED"] = "RISK_REJECTED";
570
+ DeclinedReason2["THREE_D_SECURE_FAILED"] = "THREE_D_SECURE_FAILED";
571
+ return DeclinedReason2;
572
+ })(DeclinedReason || {});
573
+ var VoidedReason = /* @__PURE__ */ ((VoidedReason2) => {
574
+ VoidedReason2["MERCHANT_REQUEST"] = "MERCHANT_REQUEST";
575
+ VoidedReason2["OTHER_PAYMENT_FAILURE"] = "OTHER_PAYMENT_FAILURE";
576
+ return VoidedReason2;
577
+ })(VoidedReason || {});
559
578
  var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
560
579
  RefundStatus2["PENDING"] = "PENDING";
561
580
  RefundStatus2["SUCCEEDED"] = "SUCCEEDED";
@@ -808,7 +827,9 @@ export {
808
827
  ActionType,
809
828
  AuthorizationCaptureStatus,
810
829
  AuthorizationVoidStatus,
830
+ CanceledReason,
811
831
  ChargebackStatus,
832
+ DeclinedReason,
812
833
  ManuallyRefundableReason,
813
834
  MembershipPaymentStatus,
814
835
  NonRefundableReason,
@@ -820,6 +841,7 @@ export {
820
841
  RestockType,
821
842
  SortOrder,
822
843
  TransactionStatus,
844
+ VoidedReason,
823
845
  WebhookIdentityType,
824
846
  addPayments2 as addPayments,
825
847
  bulkUpdatePaymentStatuses2 as bulkUpdatePaymentStatuses,