@wix/auto_sdk_ecom_order-transactions 1.0.78 → 1.0.80

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 +18 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +14 -1
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +14 -1
  8. package/build/cjs/meta.js +18 -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 +17 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +14 -1
  14. package/build/es/index.typings.mjs +17 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +14 -1
  17. package/build/es/meta.mjs +17 -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 +18 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +14 -1
  23. package/build/internal/cjs/index.typings.js +18 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +14 -1
  26. package/build/internal/cjs/meta.js +18 -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 +17 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +14 -1
  32. package/build/internal/es/index.typings.mjs +17 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +14 -1
  35. package/build/internal/es/meta.mjs +17 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +4 -4
@@ -482,6 +482,19 @@ interface CashRounding {
482
482
  */
483
483
  formattedAmount?: string;
484
484
  }
485
+ declare enum PaymentStatus {
486
+ APPROVED = "APPROVED",
487
+ PENDING = "PENDING",
488
+ PENDING_MERCHANT = "PENDING_MERCHANT",
489
+ CANCELED = "CANCELED",
490
+ DECLINED = "DECLINED",
491
+ REFUNDED = "REFUNDED",
492
+ PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
493
+ AUTHORIZED = "AUTHORIZED",
494
+ VOIDED = "VOIDED"
495
+ }
496
+ /** @enumType */
497
+ type PaymentStatusWithLiterals = PaymentStatus | 'APPROVED' | 'PENDING' | 'PENDING_MERCHANT' | 'CANCELED' | 'DECLINED' | 'REFUNDED' | 'PARTIALLY_REFUNDED' | 'AUTHORIZED' | 'VOIDED';
485
498
  interface Refund {
486
499
  /**
487
500
  * Refund ID.
@@ -1908,4 +1921,4 @@ interface BulkUpdatePaymentStatusesOptions {
1908
1921
  interface UpdateRefundTransactionOptions {
1909
1922
  }
1910
1923
 
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 };
1924
+ 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 };
@@ -27,6 +27,7 @@ __export(index_typings_exports, {
27
27
  ManuallyRefundableReason: () => ManuallyRefundableReason,
28
28
  MembershipPaymentStatus: () => MembershipPaymentStatus,
29
29
  NonRefundableReason: () => NonRefundableReason,
30
+ PaymentStatus: () => PaymentStatus,
30
31
  PredefinedPaymentMethod: () => PredefinedPaymentMethod,
31
32
  Reason: () => Reason,
32
33
  RefundStatus: () => RefundStatus,
@@ -399,6 +400,10 @@ function updateRefundTransaction(payload) {
399
400
  {
400
401
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
401
402
  paths: [{ path: "fieldMask" }]
403
+ },
404
+ {
405
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
406
+ paths: [{ path: "statusUpdatedDate" }]
402
407
  }
403
408
  ]);
404
409
  const metadata = {
@@ -584,6 +589,18 @@ var MembershipPaymentStatus = /* @__PURE__ */ ((MembershipPaymentStatus2) => {
584
589
  MembershipPaymentStatus2["VOIDED"] = "VOIDED";
585
590
  return MembershipPaymentStatus2;
586
591
  })(MembershipPaymentStatus || {});
592
+ var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
593
+ PaymentStatus2["APPROVED"] = "APPROVED";
594
+ PaymentStatus2["PENDING"] = "PENDING";
595
+ PaymentStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
596
+ PaymentStatus2["CANCELED"] = "CANCELED";
597
+ PaymentStatus2["DECLINED"] = "DECLINED";
598
+ PaymentStatus2["REFUNDED"] = "REFUNDED";
599
+ PaymentStatus2["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
600
+ PaymentStatus2["AUTHORIZED"] = "AUTHORIZED";
601
+ PaymentStatus2["VOIDED"] = "VOIDED";
602
+ return PaymentStatus2;
603
+ })(PaymentStatus || {});
587
604
  var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
588
605
  RefundStatus2["PENDING"] = "PENDING";
589
606
  RefundStatus2["SUCCEEDED"] = "SUCCEEDED";
@@ -841,6 +858,7 @@ async function updatePayments2() {
841
858
  ManuallyRefundableReason,
842
859
  MembershipPaymentStatus,
843
860
  NonRefundableReason,
861
+ PaymentStatus,
844
862
  PredefinedPaymentMethod,
845
863
  Reason,
846
864
  RefundStatus,