@wix/auto_sdk_ecom_order-transactions 1.0.68 → 1.0.70
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 +10 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +47 -3
- package/build/cjs/index.typings.js +10 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +47 -3
- package/build/cjs/meta.js +10 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +9 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +47 -3
- package/build/es/index.typings.mjs +9 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +47 -3
- package/build/es/meta.mjs +9 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +10 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +54 -3
- package/build/internal/cjs/index.typings.js +10 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +47 -3
- package/build/internal/cjs/meta.js +10 -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 +9 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +54 -3
- package/build/internal/es/index.typings.mjs +9 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +47 -3
- package/build/internal/es/meta.mjs +9 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -314,6 +314,48 @@ interface PaymentMethodName {
|
|
|
314
314
|
*/
|
|
315
315
|
siteLanguageName?: string | null;
|
|
316
316
|
}
|
|
317
|
+
/**
|
|
318
|
+
* User-defined payment method name.
|
|
319
|
+
* Allows specifying either a predefined type or a custom name.
|
|
320
|
+
*/
|
|
321
|
+
interface UserDefinedPaymentMethodName extends UserDefinedPaymentMethodNameKindOneOf {
|
|
322
|
+
/** Predefined payment method. */
|
|
323
|
+
predefined?: PredefinedPaymentMethodWithLiterals;
|
|
324
|
+
/**
|
|
325
|
+
* Custom payment method name provided by user.
|
|
326
|
+
*
|
|
327
|
+
* For example, `"Wire transfer"`, `"Money order"`, `"Venmo"` or any other custom name.
|
|
328
|
+
* @minLength 1
|
|
329
|
+
* @maxLength 100
|
|
330
|
+
*/
|
|
331
|
+
custom?: string | null;
|
|
332
|
+
}
|
|
333
|
+
/** @oneof */
|
|
334
|
+
interface UserDefinedPaymentMethodNameKindOneOf {
|
|
335
|
+
/** Predefined payment method. */
|
|
336
|
+
predefined?: PredefinedPaymentMethodWithLiterals;
|
|
337
|
+
/**
|
|
338
|
+
* Custom payment method name provided by user.
|
|
339
|
+
*
|
|
340
|
+
* For example, `"Wire transfer"`, `"Money order"`, `"Venmo"` or any other custom name.
|
|
341
|
+
* @minLength 1
|
|
342
|
+
* @maxLength 100
|
|
343
|
+
*/
|
|
344
|
+
custom?: string | null;
|
|
345
|
+
}
|
|
346
|
+
/** Predefined payment method types for offline/manual payments. */
|
|
347
|
+
declare enum PredefinedPaymentMethod {
|
|
348
|
+
/** Unknown payment method type. */
|
|
349
|
+
UNKNOWN_PREDEFINED_PAYMENT_METHOD = "UNKNOWN_PREDEFINED_PAYMENT_METHOD",
|
|
350
|
+
/** Cash payment. */
|
|
351
|
+
CASH = "CASH",
|
|
352
|
+
/** Bank transfer. */
|
|
353
|
+
BANK_TRANSFER = "BANK_TRANSFER",
|
|
354
|
+
/** Payment by check. */
|
|
355
|
+
CHECK = "CHECK"
|
|
356
|
+
}
|
|
357
|
+
/** @enumType */
|
|
358
|
+
type PredefinedPaymentMethodWithLiterals = PredefinedPaymentMethod | 'UNKNOWN_PREDEFINED_PAYMENT_METHOD' | 'CASH' | 'BANK_TRANSFER' | 'CHECK';
|
|
317
359
|
interface GiftCardPaymentDetails {
|
|
318
360
|
/**
|
|
319
361
|
* Gift card payment ID.
|
|
@@ -372,10 +414,12 @@ declare enum MembershipPaymentStatus {
|
|
|
372
414
|
/** The attempt to charge the payment failed, for example, due to lack of credits. */
|
|
373
415
|
CHARGE_FAILED = "CHARGE_FAILED",
|
|
374
416
|
/** Payment is pending. */
|
|
375
|
-
CHARGE_PENDING = "CHARGE_PENDING"
|
|
417
|
+
CHARGE_PENDING = "CHARGE_PENDING",
|
|
418
|
+
/** Payment was voided. */
|
|
419
|
+
VOIDED = "VOIDED"
|
|
376
420
|
}
|
|
377
421
|
/** @enumType */
|
|
378
|
-
type MembershipPaymentStatusWithLiterals = MembershipPaymentStatus | 'CHARGED' | 'CHARGE_FAILED' | 'CHARGE_PENDING';
|
|
422
|
+
type MembershipPaymentStatusWithLiterals = MembershipPaymentStatus | 'CHARGED' | 'CHARGE_FAILED' | 'CHARGE_PENDING' | 'VOIDED';
|
|
379
423
|
interface MembershipName {
|
|
380
424
|
/**
|
|
381
425
|
* Membership name.
|
|
@@ -1831,4 +1875,4 @@ interface BulkUpdatePaymentStatusesOptions {
|
|
|
1831
1875
|
interface UpdateRefundTransactionOptions {
|
|
1832
1876
|
}
|
|
1833
1877
|
|
|
1834
|
-
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 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, 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, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixReceiptInfo, addPayments, bulkUpdatePaymentStatuses, listTransactionsForMultipleOrders, listTransactionsForSingleOrder, onOrderTransactionsChargebackApproved, onOrderTransactionsChargebackReversed, onOrderTransactionsDetailsUpdated, onOrderTransactionsRefundCompleted, onOrderTransactionsUpdated, updatePaymentStatus };
|
|
1878
|
+
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 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 };
|
|
@@ -27,6 +27,7 @@ __export(index_typings_exports, {
|
|
|
27
27
|
ManuallyRefundableReason: () => ManuallyRefundableReason,
|
|
28
28
|
MembershipPaymentStatus: () => MembershipPaymentStatus,
|
|
29
29
|
NonRefundableReason: () => NonRefundableReason,
|
|
30
|
+
PredefinedPaymentMethod: () => PredefinedPaymentMethod,
|
|
30
31
|
Reason: () => Reason,
|
|
31
32
|
RefundStatus: () => RefundStatus,
|
|
32
33
|
RefundableStatus: () => RefundableStatus,
|
|
@@ -575,10 +576,18 @@ var ChargebackStatus = /* @__PURE__ */ ((ChargebackStatus2) => {
|
|
|
575
576
|
ChargebackStatus2["REVERSED"] = "REVERSED";
|
|
576
577
|
return ChargebackStatus2;
|
|
577
578
|
})(ChargebackStatus || {});
|
|
579
|
+
var PredefinedPaymentMethod = /* @__PURE__ */ ((PredefinedPaymentMethod2) => {
|
|
580
|
+
PredefinedPaymentMethod2["UNKNOWN_PREDEFINED_PAYMENT_METHOD"] = "UNKNOWN_PREDEFINED_PAYMENT_METHOD";
|
|
581
|
+
PredefinedPaymentMethod2["CASH"] = "CASH";
|
|
582
|
+
PredefinedPaymentMethod2["BANK_TRANSFER"] = "BANK_TRANSFER";
|
|
583
|
+
PredefinedPaymentMethod2["CHECK"] = "CHECK";
|
|
584
|
+
return PredefinedPaymentMethod2;
|
|
585
|
+
})(PredefinedPaymentMethod || {});
|
|
578
586
|
var MembershipPaymentStatus = /* @__PURE__ */ ((MembershipPaymentStatus2) => {
|
|
579
587
|
MembershipPaymentStatus2["CHARGED"] = "CHARGED";
|
|
580
588
|
MembershipPaymentStatus2["CHARGE_FAILED"] = "CHARGE_FAILED";
|
|
581
589
|
MembershipPaymentStatus2["CHARGE_PENDING"] = "CHARGE_PENDING";
|
|
590
|
+
MembershipPaymentStatus2["VOIDED"] = "VOIDED";
|
|
582
591
|
return MembershipPaymentStatus2;
|
|
583
592
|
})(MembershipPaymentStatus || {});
|
|
584
593
|
var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
|
|
@@ -838,6 +847,7 @@ async function updatePayments2() {
|
|
|
838
847
|
ManuallyRefundableReason,
|
|
839
848
|
MembershipPaymentStatus,
|
|
840
849
|
NonRefundableReason,
|
|
850
|
+
PredefinedPaymentMethod,
|
|
841
851
|
Reason,
|
|
842
852
|
RefundStatus,
|
|
843
853
|
RefundableStatus,
|