@wix/auto_sdk_ecom_order-transactions 1.0.86 → 1.0.87
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 +23 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +42 -2
- package/build/cjs/index.typings.js +23 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +42 -2
- package/build/cjs/meta.js +23 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +20 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +42 -2
- package/build/es/index.typings.mjs +20 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +42 -2
- package/build/es/meta.mjs +20 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +23 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +42 -2
- package/build/internal/cjs/index.typings.js +23 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +42 -2
- package/build/internal/cjs/meta.js +23 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +20 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +42 -2
- package/build/internal/es/index.typings.mjs +20 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +42 -2
- package/build/internal/es/meta.mjs +20 -0
- package/build/internal/es/meta.mjs.map +1 -1
- 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. */
|
|
@@ -99,6 +99,9 @@ interface PaymentReceiptInfoOneOf {
|
|
|
99
99
|
*/
|
|
100
100
|
externalReceipt?: ExternalReceiptInfo;
|
|
101
101
|
}
|
|
102
|
+
/** @oneof */
|
|
103
|
+
interface PaymentStatusDetailsOneOf {
|
|
104
|
+
}
|
|
102
105
|
interface RegularPaymentDetails extends RegularPaymentDetailsPaymentMethodDetailsOneOf {
|
|
103
106
|
/** Credit card details. */
|
|
104
107
|
creditCardDetails?: CreditCardPaymentMethodDetails;
|
|
@@ -569,6 +572,43 @@ declare enum PaymentStatus {
|
|
|
569
572
|
}
|
|
570
573
|
/** @enumType */
|
|
571
574
|
type PaymentStatusWithLiterals = PaymentStatus | 'APPROVED' | 'PENDING' | 'PENDING_MERCHANT' | 'CANCELED' | 'DECLINED' | 'REFUNDED' | 'PARTIALLY_REFUNDED' | 'AUTHORIZED' | 'VOIDED';
|
|
575
|
+
interface CanceledStatusDetails {
|
|
576
|
+
reason?: CanceledReasonWithLiterals;
|
|
577
|
+
}
|
|
578
|
+
declare enum CanceledReason {
|
|
579
|
+
/** Other payment with the same chargeCorrelationId failed before current payment started. */
|
|
580
|
+
OTHER_PAYMENT_FAILURE = "OTHER_PAYMENT_FAILURE",
|
|
581
|
+
/** Payment was not completed by user and expired. */
|
|
582
|
+
EXPIRED = "EXPIRED"
|
|
583
|
+
}
|
|
584
|
+
/** @enumType */
|
|
585
|
+
type CanceledReasonWithLiterals = CanceledReason | 'OTHER_PAYMENT_FAILURE' | 'EXPIRED';
|
|
586
|
+
interface DeclinedStatusDetails {
|
|
587
|
+
reason?: DeclinedReasonWithLiterals;
|
|
588
|
+
}
|
|
589
|
+
declare enum DeclinedReason {
|
|
590
|
+
/** Corresponding charge failed. */
|
|
591
|
+
CHARGE_FAILED = "CHARGE_FAILED",
|
|
592
|
+
/** Payment details expired. */
|
|
593
|
+
EXPIRED = "EXPIRED",
|
|
594
|
+
/** Insufficient funds. */
|
|
595
|
+
INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
|
|
596
|
+
/** Gift card was disabled before charge was attempted. */
|
|
597
|
+
GIFT_CARD_DISABLED = "GIFT_CARD_DISABLED"
|
|
598
|
+
}
|
|
599
|
+
/** @enumType */
|
|
600
|
+
type DeclinedReasonWithLiterals = DeclinedReason | 'CHARGE_FAILED' | 'EXPIRED' | 'INSUFFICIENT_FUNDS' | 'GIFT_CARD_DISABLED';
|
|
601
|
+
interface VoidedStatusDetails {
|
|
602
|
+
reason?: VoidedReasonWithLiterals;
|
|
603
|
+
}
|
|
604
|
+
declare enum VoidedReason {
|
|
605
|
+
/** Payment was voided by merchant request. */
|
|
606
|
+
MERCHANT_REQUEST = "MERCHANT_REQUEST",
|
|
607
|
+
/** Other payment with the same chargeCorrelationId failed and caused rollback of all payments with same chargeCorrelationId. */
|
|
608
|
+
OTHER_PAYMENT_FAILURE = "OTHER_PAYMENT_FAILURE"
|
|
609
|
+
}
|
|
610
|
+
/** @enumType */
|
|
611
|
+
type VoidedReasonWithLiterals = VoidedReason | 'MERCHANT_REQUEST' | 'OTHER_PAYMENT_FAILURE';
|
|
572
612
|
interface Refund {
|
|
573
613
|
/**
|
|
574
614
|
* Refund ID.
|
|
@@ -2130,4 +2170,4 @@ declare function updatePayments(): Promise<void & {
|
|
|
2130
2170
|
__applicationErrorsType?: UpdatePaymentsApplicationErrors;
|
|
2131
2171
|
}>;
|
|
2132
2172
|
|
|
2133
|
-
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, updatePayments, updateRefundTransaction };
|
|
2173
|
+
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, updatePayments, updateRefundTransaction };
|
|
@@ -556,6 +556,23 @@ 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
|
+
return DeclinedReason2;
|
|
570
|
+
})(DeclinedReason || {});
|
|
571
|
+
var VoidedReason = /* @__PURE__ */ ((VoidedReason2) => {
|
|
572
|
+
VoidedReason2["MERCHANT_REQUEST"] = "MERCHANT_REQUEST";
|
|
573
|
+
VoidedReason2["OTHER_PAYMENT_FAILURE"] = "OTHER_PAYMENT_FAILURE";
|
|
574
|
+
return VoidedReason2;
|
|
575
|
+
})(VoidedReason || {});
|
|
559
576
|
var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
|
|
560
577
|
RefundStatus2["PENDING"] = "PENDING";
|
|
561
578
|
RefundStatus2["SUCCEEDED"] = "SUCCEEDED";
|
|
@@ -808,7 +825,9 @@ export {
|
|
|
808
825
|
ActionType,
|
|
809
826
|
AuthorizationCaptureStatus,
|
|
810
827
|
AuthorizationVoidStatus,
|
|
828
|
+
CanceledReason,
|
|
811
829
|
ChargebackStatus,
|
|
830
|
+
DeclinedReason,
|
|
812
831
|
ManuallyRefundableReason,
|
|
813
832
|
MembershipPaymentStatus,
|
|
814
833
|
NonRefundableReason,
|
|
@@ -820,6 +839,7 @@ export {
|
|
|
820
839
|
RestockType,
|
|
821
840
|
SortOrder,
|
|
822
841
|
TransactionStatus,
|
|
842
|
+
VoidedReason,
|
|
823
843
|
WebhookIdentityType,
|
|
824
844
|
addPayments2 as addPayments,
|
|
825
845
|
bulkUpdatePaymentStatuses2 as bulkUpdatePaymentStatuses,
|