@wix/auto_sdk_ecom_orders 1.0.238 → 1.0.239

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 (41) hide show
  1. package/build/cjs/{ecom-v1-order-orders.universal-CYBcAlDl.d.ts → ecom-v1-order-orders.universal-Ceg_0nIT.d.ts} +1550 -1550
  2. package/build/cjs/index.d.ts +2 -2
  3. package/build/cjs/index.js +74 -74
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/index.typings.d.ts +2 -2
  6. package/build/cjs/index.typings.js +74 -74
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.d.ts +1550 -1550
  9. package/build/cjs/meta.js +74 -74
  10. package/build/cjs/meta.js.map +1 -1
  11. package/build/es/{ecom-v1-order-orders.universal-CYBcAlDl.d.mts → ecom-v1-order-orders.universal-Ceg_0nIT.d.mts} +1550 -1550
  12. package/build/es/index.d.mts +2 -2
  13. package/build/es/index.mjs +74 -74
  14. package/build/es/index.mjs.map +1 -1
  15. package/build/es/index.typings.d.mts +2 -2
  16. package/build/es/index.typings.mjs +74 -74
  17. package/build/es/index.typings.mjs.map +1 -1
  18. package/build/es/meta.d.mts +1550 -1550
  19. package/build/es/meta.mjs +74 -74
  20. package/build/es/meta.mjs.map +1 -1
  21. package/build/internal/cjs/{ecom-v1-order-orders.universal-C8_CZEHt.d.ts → ecom-v1-order-orders.universal-CVrXK60v.d.ts} +1631 -1631
  22. package/build/internal/cjs/index.d.ts +2 -2
  23. package/build/internal/cjs/index.js +74 -74
  24. package/build/internal/cjs/index.js.map +1 -1
  25. package/build/internal/cjs/index.typings.d.ts +2 -2
  26. package/build/internal/cjs/index.typings.js +74 -74
  27. package/build/internal/cjs/index.typings.js.map +1 -1
  28. package/build/internal/cjs/meta.d.ts +1550 -1550
  29. package/build/internal/cjs/meta.js +74 -74
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/internal/es/{ecom-v1-order-orders.universal-C8_CZEHt.d.mts → ecom-v1-order-orders.universal-CVrXK60v.d.mts} +1631 -1631
  32. package/build/internal/es/index.d.mts +2 -2
  33. package/build/internal/es/index.mjs +74 -74
  34. package/build/internal/es/index.mjs.map +1 -1
  35. package/build/internal/es/index.typings.d.mts +2 -2
  36. package/build/internal/es/index.typings.mjs +74 -74
  37. package/build/internal/es/index.typings.mjs.map +1 -1
  38. package/build/internal/es/meta.d.mts +1550 -1550
  39. package/build/internal/es/meta.mjs +74 -74
  40. package/build/internal/es/meta.mjs.map +1 -1
  41. package/package.json +2 -2
@@ -3738,2008 +3738,2008 @@ interface TriggerReindexOrderRequest {
3738
3738
  */
3739
3739
  orderId?: string;
3740
3740
  }
3741
- interface SendBuyerConfirmationEmailRequest {
3742
- /** @format GUID */
3743
- orderId?: string;
3744
- }
3745
- interface SendBuyerConfirmationEmailResponse {
3746
- }
3747
- interface SendBuyerPaymentsReceivedEmailRequest {
3741
+ interface PreparePaymentCollectionRequest {
3748
3742
  /**
3743
+ * Ecom order ID.
3749
3744
  * @minLength 1
3750
3745
  * @maxLength 100
3751
3746
  */
3752
- orderId?: string;
3753
- }
3754
- interface SendBuyerPaymentsReceivedEmailResponse {
3755
- }
3756
- interface SendBuyerPickupConfirmationEmailRequest {
3747
+ ecomOrderId: string;
3748
+ /** Amount to collect */
3749
+ amount: Price;
3757
3750
  /**
3758
- * @minLength 1
3759
- * @maxLength 100
3751
+ * Optional parameter. When present, payment collection will be performed using given payment gateway order.
3752
+ * Existing payment gateway order will be updated with a new amount.
3753
+ * When parameter is absent, new payment gateway order will be created and used for payment collection.
3760
3754
  */
3761
- orderId?: string;
3762
- }
3763
- interface SendBuyerPickupConfirmationEmailResponse {
3764
- }
3765
- interface BulkSendBuyerPickupConfirmationEmailsRequest {
3755
+ paymentGatewayOrderId?: string | null;
3766
3756
  /**
3767
- * IDs of orders to send pickup emails for.
3768
- * @minSize 1
3769
- * @maxSize 300
3757
+ * Whether to delay capture of the payment.
3758
+ * Default: false
3759
+ * @deprecated Whether to delay capture of the payment.
3760
+ * Default: false
3761
+ * @replacedBy delayed_capture_settings.scheduled_action
3762
+ * @targetRemovalDate 2024-09-30
3770
3763
  */
3771
- orderIds?: string[];
3772
- }
3773
- interface BulkSendBuyerPickupConfirmationEmailsResponse {
3764
+ delayedCapture?: boolean;
3765
+ /** Delayed capture payment settings */
3766
+ delayedCaptureSettings?: DelayedCaptureSettings;
3774
3767
  }
3775
- interface SendBuyerShippingConfirmationEmailRequest {
3768
+ interface RedirectUrls {
3776
3769
  /**
3777
- * @minLength 1
3778
- * @maxLength 100
3770
+ * URL to redirect buyer in case of approved (successful) transaction
3771
+ * @format WEB_URL
3779
3772
  */
3780
- orderId?: string;
3773
+ successUrl?: string | null;
3774
+ /**
3775
+ * URL to redirect buyer in case of buyer canceled the transaction
3776
+ * @format WEB_URL
3777
+ */
3778
+ cancelUrl?: string | null;
3779
+ /**
3780
+ * URL to redirect buyer in case of failed/rejected transaction
3781
+ * @format WEB_URL
3782
+ */
3783
+ errorUrl?: string | null;
3784
+ /**
3785
+ * URL to redirect buyer in case of pending transaction (that might take some time to process)
3786
+ * @format WEB_URL
3787
+ */
3788
+ pendingUrl?: string | null;
3781
3789
  }
3782
- interface SendBuyerShippingConfirmationEmailResponse {
3790
+ interface DelayedCaptureSettings {
3791
+ /** Specifies the automatic action (void/capture) for authorized transaction after the specified duration */
3792
+ scheduledAction?: ScheduledActionWithLiterals;
3793
+ /** Delay duration before execution. Optional - if not set, providers default period will be used */
3794
+ delayDuration?: Duration;
3783
3795
  }
3784
- interface BulkSendBuyerShippingConfirmationEmailsRequest {
3796
+ declare enum ScheduledAction {
3797
+ /** Whether payment will be auto-voided when duration passes */
3798
+ VOID = "VOID",
3799
+ /** Whether payment will be auto-captured when duration passes */
3800
+ CAPTURE = "CAPTURE"
3801
+ }
3802
+ /** @enumType */
3803
+ type ScheduledActionWithLiterals = ScheduledAction | 'VOID' | 'CAPTURE';
3804
+ interface Duration {
3785
3805
  /**
3786
- * IDs of orders to send pickup emails for.
3787
- * @minSize 1
3788
- * @maxSize 300
3806
+ * Amount of units. For example, 30 MINUTES, 1 HOURS, 7 DAYS, etc
3807
+ * @min 1
3789
3808
  */
3790
- orderIds?: string[];
3809
+ count?: number;
3810
+ /** Duration unit: MINUTES, HOURS and DAYS */
3811
+ unit?: DurationUnitWithLiterals;
3791
3812
  }
3792
- interface BulkSendBuyerShippingConfirmationEmailsResponse {
3813
+ declare enum DurationUnit {
3814
+ MINUTES = "MINUTES",
3815
+ HOURS = "HOURS",
3816
+ DAYS = "DAYS"
3793
3817
  }
3794
- interface SendMerchantOrderReceivedNotificationRequest {
3818
+ /** @enumType */
3819
+ type DurationUnitWithLiterals = DurationUnit | 'MINUTES' | 'HOURS' | 'DAYS';
3820
+ interface PreparePaymentCollectionResponse {
3821
+ /** Payment gateway order id which is associated with given payment */
3822
+ paymentGatewayOrderId?: string;
3823
+ }
3824
+ interface GetPaymentCollectabilityStatusRequest {
3795
3825
  /**
3826
+ * Ecom order ID.
3796
3827
  * @minLength 1
3797
3828
  * @maxLength 100
3798
3829
  */
3799
- orderId?: string;
3830
+ ecomOrderId: string;
3800
3831
  }
3801
- interface SendMerchantOrderReceivedNotificationResponse {
3832
+ interface GetPaymentCollectabilityStatusResponse {
3833
+ /** Payment collectability status */
3834
+ status?: PaymentCollectabilityStatusWithLiterals;
3835
+ /** Collectable order amount */
3836
+ amount?: Price;
3802
3837
  }
3803
- interface SendCancelRefundEmailRequest {
3838
+ declare enum PaymentCollectabilityStatus {
3839
+ UNKNOWN = "UNKNOWN",
3840
+ COLLECTABLE = "COLLECTABLE",
3841
+ NONCOLLECTABLE_ORDER_IS_CANCELLED = "NONCOLLECTABLE_ORDER_IS_CANCELLED",
3842
+ NONCOLLECTABLE_ORDER_IS_PAID = "NONCOLLECTABLE_ORDER_IS_PAID",
3843
+ NONCOLLECTABLE_MISSING_PAYMENT_METHOD = "NONCOLLECTABLE_MISSING_PAYMENT_METHOD",
3844
+ NONCOLLECTABLE_ORDER_IS_PENDING = "NONCOLLECTABLE_ORDER_IS_PENDING",
3845
+ NONCOLLECTABLE_ORDER_IS_REJECTED = "NONCOLLECTABLE_ORDER_IS_REJECTED",
3846
+ NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS = "NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS",
3847
+ NONCOLLECTABLE_ORDER_HAS_CHARGEBACKS = "NONCOLLECTABLE_ORDER_HAS_CHARGEBACKS",
3848
+ NONCOLLECTABLE_SUBSCRIPTION_CYCLE_ALREADY_PASSED = "NONCOLLECTABLE_SUBSCRIPTION_CYCLE_ALREADY_PASSED",
3849
+ NONCOLLECTABLE_ORDER_HAS_UNSUPPORTED_SUBSCRIPTION = "NONCOLLECTABLE_ORDER_HAS_UNSUPPORTED_SUBSCRIPTION"
3850
+ }
3851
+ /** @enumType */
3852
+ type PaymentCollectabilityStatusWithLiterals = PaymentCollectabilityStatus | 'UNKNOWN' | 'COLLECTABLE' | 'NONCOLLECTABLE_ORDER_IS_CANCELLED' | 'NONCOLLECTABLE_ORDER_IS_PAID' | 'NONCOLLECTABLE_MISSING_PAYMENT_METHOD' | 'NONCOLLECTABLE_ORDER_IS_PENDING' | 'NONCOLLECTABLE_ORDER_IS_REJECTED' | 'NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS' | 'NONCOLLECTABLE_ORDER_HAS_CHARGEBACKS' | 'NONCOLLECTABLE_SUBSCRIPTION_CYCLE_ALREADY_PASSED' | 'NONCOLLECTABLE_ORDER_HAS_UNSUPPORTED_SUBSCRIPTION';
3853
+ interface RecordManuallyCollectedPaymentRequest {
3804
3854
  /**
3805
- * The ID of order that is canceled/refunded
3855
+ * Order ID.
3806
3856
  * @minLength 1
3807
3857
  * @maxLength 100
3808
3858
  */
3809
- orderId?: string;
3810
- /**
3811
- * Personal note added to the email (optional)
3812
- * @minLength 1
3813
- * @maxLength 1000
3814
- */
3815
- customMessage?: string | null;
3816
- /** Refund amount */
3817
- refundAmount?: Price;
3818
- /**
3819
- * Refund ID. (Optional)
3820
- * @format GUID
3821
- */
3822
- refundId?: string | null;
3823
- }
3824
- interface SendCancelRefundEmailResponse {
3859
+ orderId: string;
3860
+ /** Amount to be recorded as approved manual payment for given order */
3861
+ amount: Price;
3825
3862
  }
3826
- interface SendRefundEmailRequest {
3827
- /**
3828
- * The ID of order that is refunded
3829
- * @format GUID
3830
- */
3831
- orderId?: string;
3832
- /**
3833
- * Refund ID
3834
- * @format GUID
3835
- */
3836
- refundId?: string;
3863
+ /**
3864
+ * User-defined payment method name.
3865
+ * Allows specifying either a predefined type or a custom name.
3866
+ */
3867
+ interface UserDefinedPaymentMethodName extends UserDefinedPaymentMethodNameKindOneOf {
3868
+ /** Predefined payment method. */
3869
+ predefined?: PredefinedPaymentMethodWithLiterals;
3837
3870
  /**
3838
- * Personal note added to the email (optional)
3871
+ * Custom payment method name provided by user.
3872
+ *
3873
+ * For example, `"Wire transfer"`, `"Money order"`, `"Venmo"` or any other custom name.
3839
3874
  * @minLength 1
3840
- * @maxLength 1000
3875
+ * @maxLength 100
3841
3876
  */
3842
- customMessage?: string | null;
3843
- }
3844
- interface SendRefundEmailResponse {
3845
- }
3846
- interface SendFulfillmentEmailRequest {
3847
- /** @format GUID */
3848
- orderId?: string;
3849
- /** @format GUID */
3850
- fulfillerId?: string;
3851
- }
3852
- interface SendFulfillmentEmailResponse {
3877
+ custom?: string | null;
3853
3878
  }
3854
- interface SendMerchantOrderReceivedPushRequest {
3879
+ /** @oneof */
3880
+ interface UserDefinedPaymentMethodNameKindOneOf {
3881
+ /** Predefined payment method. */
3882
+ predefined?: PredefinedPaymentMethodWithLiterals;
3855
3883
  /**
3884
+ * Custom payment method name provided by user.
3885
+ *
3886
+ * For example, `"Wire transfer"`, `"Money order"`, `"Venmo"` or any other custom name.
3856
3887
  * @minLength 1
3857
3888
  * @maxLength 100
3858
3889
  */
3859
- orderId?: string;
3860
- }
3861
- interface SendMerchantOrderReceivedPushResponse {
3862
- }
3863
- interface PreviewEmailByTypeRequest {
3864
- emailType?: PreviewEmailTypeWithLiterals;
3890
+ custom?: string | null;
3865
3891
  }
3866
- declare enum PreviewEmailType {
3867
- ORDER_PLACED = "ORDER_PLACED",
3868
- DOWNLOAD_LINKS = "DOWNLOAD_LINKS",
3869
- ORDER_SHIPPED = "ORDER_SHIPPED",
3870
- ORDER_READY_FOR_PICKUP = "ORDER_READY_FOR_PICKUP"
3892
+ /** Predefined payment method types for offline/manual payments. */
3893
+ declare enum PredefinedPaymentMethod {
3894
+ /** Cash payment. */
3895
+ CASH = "CASH",
3896
+ /** Bank transfer. */
3897
+ BANK_TRANSFER = "BANK_TRANSFER",
3898
+ /** Payment by check. */
3899
+ CHECK = "CHECK"
3871
3900
  }
3872
3901
  /** @enumType */
3873
- type PreviewEmailTypeWithLiterals = PreviewEmailType | 'ORDER_PLACED' | 'DOWNLOAD_LINKS' | 'ORDER_SHIPPED' | 'ORDER_READY_FOR_PICKUP';
3874
- interface PreviewEmailByTypeResponse {
3875
- emailPreview?: string;
3902
+ type PredefinedPaymentMethodWithLiterals = PredefinedPaymentMethod | 'CASH' | 'BANK_TRANSFER' | 'CHECK';
3903
+ interface RecordManuallyCollectedPaymentResponse {
3876
3904
  }
3877
- interface PreviewRefundEmailRequest {
3905
+ interface MarkOrderAsPaidRequest {
3878
3906
  /**
3907
+ * Ecom order ID.
3879
3908
  * @minLength 1
3880
3909
  * @maxLength 100
3881
3910
  */
3882
- orderId?: string;
3883
- /** Refund amount */
3884
- refundAmount?: Price;
3885
- /** Refund business details */
3886
- details?: RefundDetails;
3911
+ ecomOrderId: string;
3912
+ }
3913
+ interface MarkOrderAsPaidResponse {
3914
+ /** Updated order. */
3915
+ order?: Order;
3916
+ }
3917
+ interface BulkMarkOrdersAsPaidRequest {
3887
3918
  /**
3888
- * Personal note added to the email (optional)
3919
+ * IDs of orders to mark as paid.
3920
+ * @minSize 1
3921
+ * @maxSize 100
3889
3922
  * @minLength 1
3890
- * @maxLength 1000
3891
- */
3892
- customMessage?: string | null;
3893
- /**
3894
- * Refund ID. (Optional)
3895
- * @format GUID
3923
+ * @maxLength 100
3896
3924
  */
3897
- refundId?: string | null;
3925
+ ecomOrderIds: string[];
3898
3926
  }
3899
- /** Business model of a refund request */
3900
- interface RefundDetails {
3927
+ interface BulkMarkOrdersAsPaidResponse {
3901
3928
  /**
3902
- * Order line item IDs and quantities that were refunded.
3903
- * @maxSize 300
3929
+ * Items updated by the bulk action.
3930
+ * The Order entity within the results optimistically changes its payment status to paid, however this process is async.
3904
3931
  */
3905
- items?: RefundItem[];
3906
- /** Whether the shipping fee was also refunded. */
3907
- shippingIncluded?: boolean;
3932
+ results?: BulkOrderResult[];
3933
+ /** Bulk action metadata. */
3934
+ bulkActionMetadata?: BulkActionMetadata;
3935
+ }
3936
+ interface BulkOrderResult {
3937
+ /** Item metadata. */
3938
+ itemMetadata?: ItemMetadata;
3908
3939
  /**
3909
- * Reason for the refund, provided by customer (optional).
3910
- * @maxLength 200
3940
+ * Updated order.
3941
+ *
3942
+ * Returned when `returnFullEntity = true`.
3911
3943
  */
3912
- reason?: string | null;
3944
+ item?: Order;
3945
+ }
3946
+ interface ItemMetadata {
3947
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
3948
+ _id?: string | null;
3949
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
3950
+ originalIndex?: number;
3951
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
3952
+ success?: boolean;
3953
+ /** Details about the error in case of failure. */
3954
+ error?: ApplicationError;
3955
+ }
3956
+ interface ApplicationError {
3957
+ /** Error code. */
3958
+ code?: string;
3959
+ /** Description of the error. */
3960
+ description?: string;
3961
+ /** Data related to the error. */
3962
+ data?: Record<string, any> | null;
3963
+ }
3964
+ interface BulkActionMetadata {
3965
+ /** Number of items that were successfully processed. */
3966
+ totalSuccesses?: number;
3967
+ /** Number of items that couldn't be processed. */
3968
+ totalFailures?: number;
3969
+ /** Number of failures without details because detailed failure threshold was exceeded. */
3970
+ undetailedFailures?: number;
3971
+ }
3972
+ interface GetRefundabilityStatusRequest {
3913
3973
  /**
3914
- * Line items that were refunded.
3915
- * @maxSize 300
3974
+ * Order ID.
3975
+ * @minLength 1
3976
+ * @maxLength 100
3916
3977
  */
3917
- lineItems?: LineItemRefund[];
3978
+ ecomOrderId: string;
3979
+ }
3980
+ interface GetRefundabilityStatusResponse {
3918
3981
  /**
3919
- * Additional fees that were refunded.
3920
- * @maxSize 100
3982
+ * Refundability details.
3983
+ * @maxSize 300
3921
3984
  */
3922
- additionalFees?: AdditionalFeeRefund[];
3923
- /** Shipping amount that was refunded. */
3924
- shipping?: ShippingRefund;
3925
- }
3926
- interface RefundItem {
3985
+ refundabilities?: Refundability[];
3927
3986
  /**
3928
- * Line item ID the refunded line item.
3929
- * @format GUID
3987
+ * Whether the order supports refunding per item.
3988
+ * @deprecated
3930
3989
  */
3931
- lineItemId?: string;
3990
+ refundablePerItem?: boolean;
3991
+ }
3992
+ interface Refundability extends RefundabilityAdditionalRefundabilityInfoOneOf {
3993
+ /** Reason why payment is not refundable. */
3994
+ nonRefundableReason?: NonRefundableReasonWithLiterals;
3995
+ /** Reason why payment is only refundable manually. */
3996
+ manuallyRefundableReason?: ManuallyRefundableReasonWithLiterals;
3997
+ /** Payment ID. */
3998
+ paymentId?: string;
3999
+ /** Payment refundability status. */
4000
+ refundabilityStatus?: RefundableStatusWithLiterals;
4001
+ /** Link to payment provider dashboard. */
4002
+ providerLink?: string | null;
4003
+ }
4004
+ /** @oneof */
4005
+ interface RefundabilityAdditionalRefundabilityInfoOneOf {
4006
+ /** Reason why payment is not refundable. */
4007
+ nonRefundableReason?: NonRefundableReasonWithLiterals;
4008
+ /** Reason why payment is only refundable manually. */
4009
+ manuallyRefundableReason?: ManuallyRefundableReasonWithLiterals;
4010
+ }
4011
+ declare enum RefundableStatus {
4012
+ NOT_REFUNDABLE = "NOT_REFUNDABLE",
4013
+ MANUAL = "MANUAL",
4014
+ REFUNDABLE = "REFUNDABLE"
4015
+ }
4016
+ /** @enumType */
4017
+ type RefundableStatusWithLiterals = RefundableStatus | 'NOT_REFUNDABLE' | 'MANUAL' | 'REFUNDABLE';
4018
+ declare enum NonRefundableReason {
4019
+ NONE = "NONE",
4020
+ ALREADY_REFUNDED = "ALREADY_REFUNDED",
4021
+ PROVIDER_IS_DOWN = "PROVIDER_IS_DOWN",
4022
+ INTERNAL_ERROR = "INTERNAL_ERROR",
4023
+ NOT_PAID = "NOT_PAID",
4024
+ ACCESS_DENIED = "ACCESS_DENIED",
4025
+ ZERO_PRICE = "ZERO_PRICE",
4026
+ DISABLED_BY_PROVIDER = "DISABLED_BY_PROVIDER",
4027
+ PENDING_REFUND = "PENDING_REFUND",
4028
+ FORBIDDEN = "FORBIDDEN",
4029
+ TRANSACTION_NOT_FOUND = "TRANSACTION_NOT_FOUND",
4030
+ ORDER_IS_PENDING = "ORDER_IS_PENDING",
4031
+ ORDER_IS_REJECTED = "ORDER_IS_REJECTED"
4032
+ }
4033
+ /** @enumType */
4034
+ type NonRefundableReasonWithLiterals = NonRefundableReason | 'NONE' | 'ALREADY_REFUNDED' | 'PROVIDER_IS_DOWN' | 'INTERNAL_ERROR' | 'NOT_PAID' | 'ACCESS_DENIED' | 'ZERO_PRICE' | 'DISABLED_BY_PROVIDER' | 'PENDING_REFUND' | 'FORBIDDEN' | 'TRANSACTION_NOT_FOUND' | 'ORDER_IS_PENDING' | 'ORDER_IS_REJECTED';
4035
+ declare enum ManuallyRefundableReason {
4036
+ EXPIRED = "EXPIRED",
4037
+ NOT_SUPPORTED = "NOT_SUPPORTED",
4038
+ OFFLINE = "OFFLINE",
4039
+ REQUIRES_CARD_READER = "REQUIRES_CARD_READER"
4040
+ }
4041
+ /** @enumType */
4042
+ type ManuallyRefundableReasonWithLiterals = ManuallyRefundableReason | 'EXPIRED' | 'NOT_SUPPORTED' | 'OFFLINE' | 'REQUIRES_CARD_READER';
4043
+ interface CreatePaymentGatewayOrderRequest {
3932
4044
  /**
3933
- * Line item quantity refunded.
3934
- * @min 1
3935
- * @max 100000
4045
+ * Ecom order ID.
4046
+ * @minLength 1
4047
+ * @maxLength 100
3936
4048
  */
3937
- quantity?: number;
4049
+ ecomOrderId: string;
4050
+ /** Information about the user who initiated the payment. */
4051
+ chargedBy?: ChargedBy;
3938
4052
  }
3939
- interface LineItemRefund {
4053
+ interface ChargedBy {
3940
4054
  /**
3941
- * Line item ID.
4055
+ * ID - id of the user who initiated the payment
3942
4056
  * @format GUID
3943
- * @immutable
3944
4057
  */
3945
- lineItemId?: string;
4058
+ _id?: string;
3946
4059
  /**
3947
- * Refund quantity.
3948
- * @min 1
3949
- * @max 100000
3950
- * @immutable
4060
+ * Full name - name of the user who initiated the payment
4061
+ * @minLength 1
4062
+ * @maxLength 200
3951
4063
  */
3952
- quantity?: number;
4064
+ fullName?: string | null;
3953
4065
  }
3954
- interface AdditionalFeeRefund {
4066
+ interface CreatePaymentGatewayOrderResponse {
4067
+ /** ID of the order created in the payment gateway */
4068
+ paymentGatewayOrderId?: string;
4069
+ }
4070
+ interface ChargeMembershipsRequest {
3955
4071
  /**
3956
- * Additional fee ID.
3957
- * @format GUID
3958
- * @immutable
4072
+ * Order ID.
4073
+ * @minLength 1
4074
+ * @maxLength 100
3959
4075
  */
3960
- additionalFeeId?: string;
4076
+ ecomOrderId: string;
3961
4077
  /**
3962
- * Refund amount.
3963
- * @immutable
4078
+ * The member id. Do not attempt to get it from the request context, since in some cases the caller is not a member
4079
+ * but a user which is using the membership on behalf of the a member
4080
+ * @format GUID
3964
4081
  */
3965
- amount?: Price;
3966
- }
3967
- interface ShippingRefund {
4082
+ memberId: string;
3968
4083
  /**
3969
- * Refund amount.
3970
- * @immutable
4084
+ * List of items to be paid by memberships
4085
+ * @minSize 1
4086
+ * @maxSize 300
3971
4087
  */
3972
- amount?: Price;
3973
- }
3974
- interface PreviewRefundEmailResponse {
3975
- emailPreview?: string;
4088
+ membershipCharges?: MembershipChargeItem[];
3976
4089
  }
3977
- interface PreviewCancelEmailRequest {
4090
+ interface MembershipChargeItem {
3978
4091
  /**
4092
+ * The id of used membership
3979
4093
  * @minLength 1
3980
4094
  * @maxLength 100
3981
4095
  */
3982
- orderId?: string;
4096
+ membershipId?: string;
3983
4097
  /**
3984
- * Personal note added to the email (optional)
4098
+ * ID of the application providing this payment option
4099
+ * @format GUID
4100
+ */
4101
+ appId?: string;
4102
+ /** The name of used membership */
4103
+ membershipName?: MembershipName;
4104
+ /** Additional data about this membership */
4105
+ membershipAdditionalData?: Record<string, any> | null;
4106
+ /** Catalog and item reference info. */
4107
+ catalogReference?: CatalogReference;
4108
+ /** Properties of the service. When relevant, contains information such as date and number of participants. */
4109
+ serviceProperties?: ServiceProperties;
4110
+ /**
4111
+ * Usually would be the same as catalogReference.catalogItemId
4112
+ * For cases when these are not the same, this field would return the actual id of the item in the catalog
4113
+ * For example, for Wix bookings, catalogReference.catalogItemId is the booking id, and this value is being set to be the service id
3985
4114
  * @minLength 1
3986
- * @maxLength 1000
4115
+ * @maxLength 36
3987
4116
  */
3988
- customMessage?: string | null;
3989
- }
3990
- interface PreviewCancelEmailResponse {
3991
- emailPreview?: string;
3992
- }
3993
- interface PreviewCancelRefundEmailRequest {
4117
+ rootCatalogItemId?: string | null;
3994
4118
  /**
4119
+ * line item id of Checkout/Order line item
3995
4120
  * @minLength 1
3996
4121
  * @maxLength 100
3997
4122
  */
3998
- orderId?: string;
4123
+ lineItemId?: string;
4124
+ }
4125
+ interface MembershipName {
3999
4126
  /**
4000
- * Personal note added to the email (optional)
4001
- * @minLength 1
4002
- * @maxLength 1000
4127
+ * Membership name.
4128
+ * @maxLength 100
4003
4129
  */
4004
- customMessage?: string | null;
4005
- /** Refund amount */
4006
- refundAmount?: Price;
4130
+ original?: string;
4007
4131
  /**
4008
- * Refund ID. (Optional)
4009
- * @format GUID
4132
+ * Translated membership name. Defaults to `original` when not provided.
4133
+ * @maxLength 100
4010
4134
  */
4011
- refundId?: string | null;
4012
- }
4013
- interface PreviewCancelRefundEmailResponse {
4014
- emailPreview?: string;
4015
- }
4016
- interface PreviewBuyerPaymentsReceivedEmailRequest {
4017
- }
4018
- interface PreviewBuyerPaymentsReceivedEmailResponse {
4019
- emailPreview?: string;
4135
+ translated?: string | null;
4020
4136
  }
4021
- interface PreviewBuyerConfirmationEmailRequest {
4137
+ interface ServiceProperties {
4138
+ /**
4139
+ * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
4140
+ * For example, the start time of a class.
4141
+ */
4142
+ scheduledDate?: Date | null;
4143
+ /**
4144
+ * The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.
4145
+ * @min 1
4146
+ * @max 10000
4147
+ */
4148
+ numberOfParticipants?: number | null;
4022
4149
  }
4023
- interface PreviewBuyerConfirmationEmailResponse {
4024
- emailPreview?: string;
4150
+ interface ChargeMembershipsResponse {
4025
4151
  }
4026
- interface PreviewBuyerPickupConfirmationEmailRequest {
4027
- }
4028
- interface PreviewBuyerPickupConfirmationEmailResponse {
4029
- emailPreview?: string;
4030
- }
4031
- interface PreviewShippingConfirmationEmailRequest {
4032
- }
4033
- interface PreviewShippingConfirmationEmailResponse {
4034
- emailPreview?: string;
4035
- }
4036
- interface PreviewResendDownloadLinksEmailRequest {
4037
- }
4038
- interface PreviewResendDownloadLinksEmailResponse {
4039
- emailPreview?: string;
4040
- }
4041
- interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
4042
- /** Emitted on a meta site creation. */
4043
- siteCreated?: SiteCreated;
4044
- /** Emitted on a meta site transfer completion. */
4045
- siteTransferred?: SiteTransferred;
4046
- /** Emitted on a meta site deletion. */
4047
- siteDeleted?: SiteDeleted;
4048
- /** Emitted on a meta site restoration. */
4049
- siteUndeleted?: SiteUndeleted;
4050
- /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
4051
- sitePublished?: SitePublished;
4052
- /** Emitted on a meta site unpublish. */
4053
- siteUnpublished?: SiteUnpublished;
4054
- /** Emitted when meta site is marked as template. */
4055
- siteMarkedAsTemplate?: SiteMarkedAsTemplate;
4056
- /** Emitted when meta site is marked as a WixSite. */
4057
- siteMarkedAsWixSite?: SiteMarkedAsWixSite;
4058
- /** Emitted when an application is provisioned (installed). */
4059
- serviceProvisioned?: ServiceProvisioned;
4060
- /** Emitted when an application is removed (uninstalled). */
4061
- serviceRemoved?: ServiceRemoved;
4062
- /** Emitted when meta site name (URL slug) is changed. */
4063
- siteRenamedPayload?: SiteRenamed;
4064
- /** Emitted when meta site was permanently deleted. */
4065
- hardDeleted?: SiteHardDeleted;
4066
- /** Emitted on a namespace change. */
4067
- namespaceChanged?: NamespaceChanged;
4068
- /** Emitted when Studio is attached. */
4069
- studioAssigned?: StudioAssigned;
4070
- /** Emitted when Studio is detached. */
4071
- studioUnassigned?: StudioUnassigned;
4152
+ interface TriggerRefundRequest {
4072
4153
  /**
4073
- * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
4074
- * the actual URL.
4075
- *
4076
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
4077
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
4154
+ * The order this refund related to
4155
+ * @minLength 1
4156
+ * @maxLength 100
4078
4157
  */
4079
- urlChanged?: SiteUrlChanged;
4080
- /** Site is marked as PurgedExternally */
4081
- sitePurgedExternally?: SitePurgedExternally;
4082
- /** Emitted when Odeditor is attached. */
4083
- odeditorAssigned?: OdeditorAssigned;
4084
- /** Emitted when Odeditor is detached. */
4085
- odeditorUnassigned?: OdeditorUnassigned;
4086
- /** Emitted when Picasso is attached. */
4087
- picassoAssigned?: PicassoAssigned;
4088
- /** Emitted when Picasso is detached. */
4089
- picassoUnassigned?: PicassoUnassigned;
4090
- /** Emitted when Wixel is attached. */
4091
- wixelAssigned?: WixelAssigned;
4092
- /** Emitted when Wixel is detached. */
4093
- wixelUnassigned?: WixelUnassigned;
4094
- /** Emitted when StudioTwo is attached. */
4095
- studioTwoAssigned?: StudioTwoAssigned;
4096
- /** Emitted when StudioTwo is detached. */
4097
- studioTwoUnassigned?: StudioTwoUnassigned;
4098
- /** Emitted when media from user domain is enabled. */
4099
- userDomainMediaEnabled?: UserDomainMediaEnabled;
4100
- /** Emitted when media from user domain is disabled. */
4101
- userDomainMediaDisabled?: UserDomainMediaDisabled;
4102
- /** Emitted when Editorless is attached. */
4103
- editorlessAssigned?: EditorlessAssigned;
4104
- /** Emitted when Editorless is detached. */
4105
- editorlessUnassigned?: EditorlessUnassigned;
4158
+ ecomOrderId: string;
4106
4159
  /**
4107
- * A meta site id.
4108
- * @format GUID
4160
+ * Refund operations information
4161
+ * @minSize 1
4162
+ * @maxSize 1
4109
4163
  */
4110
- metaSiteId?: string;
4111
- /** A meta site version. Monotonically increasing. */
4112
- version?: string;
4113
- /** A timestamp of the event. */
4114
- timestamp?: string;
4164
+ payments: PaymentRefund[];
4165
+ /** Business model of a refund */
4166
+ details?: RefundDetails;
4167
+ /** Side effect details related to refund */
4168
+ sideEffects?: RefundSideEffects;
4169
+ }
4170
+ interface PaymentRefund {
4115
4171
  /**
4116
- * TODO(meta-site): Change validation once validations are disabled for consumers
4117
- * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
4118
- * @maxSize 4000
4172
+ * Specific payment within the order to refund
4173
+ * @format GUID
4119
4174
  */
4120
- assets?: Asset[];
4121
- }
4122
- /** @oneof */
4123
- interface MetaSiteSpecialEventPayloadOneOf {
4124
- /** Emitted on a meta site creation. */
4125
- siteCreated?: SiteCreated;
4126
- /** Emitted on a meta site transfer completion. */
4127
- siteTransferred?: SiteTransferred;
4128
- /** Emitted on a meta site deletion. */
4129
- siteDeleted?: SiteDeleted;
4130
- /** Emitted on a meta site restoration. */
4131
- siteUndeleted?: SiteUndeleted;
4132
- /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
4133
- sitePublished?: SitePublished;
4134
- /** Emitted on a meta site unpublish. */
4135
- siteUnpublished?: SiteUnpublished;
4136
- /** Emitted when meta site is marked as template. */
4137
- siteMarkedAsTemplate?: SiteMarkedAsTemplate;
4138
- /** Emitted when meta site is marked as a WixSite. */
4139
- siteMarkedAsWixSite?: SiteMarkedAsWixSite;
4140
- /** Emitted when an application is provisioned (installed). */
4141
- serviceProvisioned?: ServiceProvisioned;
4142
- /** Emitted when an application is removed (uninstalled). */
4143
- serviceRemoved?: ServiceRemoved;
4144
- /** Emitted when meta site name (URL slug) is changed. */
4145
- siteRenamedPayload?: SiteRenamed;
4146
- /** Emitted when meta site was permanently deleted. */
4147
- hardDeleted?: SiteHardDeleted;
4148
- /** Emitted on a namespace change. */
4149
- namespaceChanged?: NamespaceChanged;
4150
- /** Emitted when Studio is attached. */
4151
- studioAssigned?: StudioAssigned;
4152
- /** Emitted when Studio is detached. */
4153
- studioUnassigned?: StudioUnassigned;
4175
+ paymentId?: string;
4176
+ /** Refund amount. Not relevant for membership and gift card refunds. */
4177
+ amount?: Price;
4154
4178
  /**
4155
- * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
4156
- * the actual URL.
4157
- *
4158
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
4159
- * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
4179
+ * Whether refund is made externally and manually (on the payment provider's side)
4180
+ * When false (default), the payment gateway will be called in order to make an actual refund, and then the payment will be marked as refunded.
4181
+ * When true, the payment will only be *marked* as refunded, and no actual refund will be performed.
4160
4182
  */
4161
- urlChanged?: SiteUrlChanged;
4162
- /** Site is marked as PurgedExternally */
4163
- sitePurgedExternally?: SitePurgedExternally;
4164
- /** Emitted when Odeditor is attached. */
4165
- odeditorAssigned?: OdeditorAssigned;
4166
- /** Emitted when Odeditor is detached. */
4167
- odeditorUnassigned?: OdeditorUnassigned;
4168
- /** Emitted when Picasso is attached. */
4169
- picassoAssigned?: PicassoAssigned;
4170
- /** Emitted when Picasso is detached. */
4171
- picassoUnassigned?: PicassoUnassigned;
4172
- /** Emitted when Wixel is attached. */
4173
- wixelAssigned?: WixelAssigned;
4174
- /** Emitted when Wixel is detached. */
4175
- wixelUnassigned?: WixelUnassigned;
4176
- /** Emitted when StudioTwo is attached. */
4177
- studioTwoAssigned?: StudioTwoAssigned;
4178
- /** Emitted when StudioTwo is detached. */
4179
- studioTwoUnassigned?: StudioTwoUnassigned;
4180
- /** Emitted when media from user domain is enabled. */
4181
- userDomainMediaEnabled?: UserDomainMediaEnabled;
4182
- /** Emitted when media from user domain is disabled. */
4183
- userDomainMediaDisabled?: UserDomainMediaDisabled;
4184
- /** Emitted when Editorless is attached. */
4185
- editorlessAssigned?: EditorlessAssigned;
4186
- /** Emitted when Editorless is detached. */
4187
- editorlessUnassigned?: EditorlessUnassigned;
4183
+ externalRefund?: boolean;
4188
4184
  }
4189
- interface Asset {
4185
+ /** Business model of a refund request */
4186
+ interface RefundDetails {
4190
4187
  /**
4191
- * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
4192
- * @maxLength 36
4188
+ * Order line item IDs and quantities that were refunded.
4189
+ * @maxSize 300
4193
4190
  */
4194
- appDefId?: string;
4191
+ items?: RefundItem[];
4192
+ /** Whether the shipping fee was also refunded. */
4193
+ shippingIncluded?: boolean;
4195
4194
  /**
4196
- * An instance id. For legacy reasons may be UUID or a string.
4195
+ * Reason for the refund, provided by customer (optional).
4197
4196
  * @maxLength 200
4198
4197
  */
4199
- instanceId?: string;
4200
- /** An application state. */
4201
- state?: StateWithLiterals;
4202
- }
4203
- declare enum State {
4204
- UNKNOWN = "UNKNOWN",
4205
- ENABLED = "ENABLED",
4206
- DISABLED = "DISABLED",
4207
- PENDING = "PENDING",
4208
- DEMO = "DEMO"
4209
- }
4210
- /** @enumType */
4211
- type StateWithLiterals = State | 'UNKNOWN' | 'ENABLED' | 'DISABLED' | 'PENDING' | 'DEMO';
4212
- interface SiteCreated {
4198
+ reason?: string | null;
4213
4199
  /**
4214
- * A template identifier (empty if not created from a template).
4215
- * @maxLength 36
4200
+ * Line items that were refunded.
4201
+ * @maxSize 300
4216
4202
  */
4217
- originTemplateId?: string;
4203
+ lineItems?: LineItemRefund[];
4218
4204
  /**
4219
- * An account id of the owner.
4220
- * @format GUID
4205
+ * Additional fees that were refunded.
4206
+ * @maxSize 100
4221
4207
  */
4222
- ownerId?: string;
4223
- /** A context in which meta site was created. */
4224
- context?: SiteCreatedContextWithLiterals;
4208
+ additionalFees?: AdditionalFeeRefund[];
4209
+ /** Shipping amount that was refunded. */
4210
+ shipping?: ShippingRefund;
4211
+ }
4212
+ interface RefundItem {
4225
4213
  /**
4226
- * A meta site id from which this site was created.
4227
- *
4228
- * In case of a creation from a template it's a template id.
4229
- * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
4214
+ * Line item ID the refunded line item.
4230
4215
  * @format GUID
4231
4216
  */
4232
- originMetaSiteId?: string | null;
4217
+ lineItemId?: string;
4233
4218
  /**
4234
- * A meta site name (URL slug).
4235
- * @maxLength 20
4236
- */
4237
- siteName?: string;
4238
- /** A namespace. */
4239
- namespace?: NamespaceWithLiterals;
4240
- }
4241
- declare enum SiteCreatedContext {
4242
- /** A valid option, we don't expose all reasons why site might be created. */
4243
- OTHER = "OTHER",
4244
- /** A meta site was created from template. */
4245
- FROM_TEMPLATE = "FROM_TEMPLATE",
4246
- /** A meta site was created by copying of the transfferred meta site. */
4247
- DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
4248
- /** A copy of existing meta site. */
4249
- DUPLICATE = "DUPLICATE",
4250
- /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
4251
- OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
4252
- /** deprecated A meta site was created for Flash editor. */
4253
- FLASH = "FLASH"
4254
- }
4255
- /** @enumType */
4256
- type SiteCreatedContextWithLiterals = SiteCreatedContext | 'OTHER' | 'FROM_TEMPLATE' | 'DUPLICATE_BY_SITE_TRANSFER' | 'DUPLICATE' | 'OLD_SITE_TRANSFER' | 'FLASH';
4257
- declare enum Namespace {
4258
- UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
4259
- /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
4260
- WIX = "WIX",
4261
- /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
4262
- SHOUT_OUT = "SHOUT_OUT",
4263
- /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
4264
- ALBUMS = "ALBUMS",
4265
- /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
4266
- WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
4267
- /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
4268
- HOTELS = "HOTELS",
4269
- /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
4270
- CLUBS = "CLUBS",
4271
- /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
4272
- ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
4273
- /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
4274
- DEV_SITE = "DEV_SITE",
4275
- /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
4276
- LOGOS = "LOGOS",
4277
- /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
4278
- VIDEO_MAKER = "VIDEO_MAKER",
4279
- /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
4280
- PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
4281
- /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
4282
- DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
4219
+ * Line item quantity refunded.
4220
+ * @min 1
4221
+ * @max 100000
4222
+ */
4223
+ quantity?: number;
4224
+ }
4225
+ interface LineItemRefund {
4283
4226
  /**
4284
- * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
4285
- *
4286
- * Meta site with this namespace will *not* be shown in a user's site list by default.
4227
+ * Line item ID.
4228
+ * @format GUID
4229
+ * @immutable
4287
4230
  */
4288
- HTML_DRAFT = "HTML_DRAFT",
4231
+ lineItemId?: string;
4289
4232
  /**
4290
- * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
4291
- * Will be accessible from Site List and will not have a website app.
4292
- * Once the user attaches a site, the site will become a regular wixsite.
4233
+ * Refund quantity.
4234
+ * @min 1
4235
+ * @max 100000
4236
+ * @immutable
4293
4237
  */
4294
- SITELESS_BUSINESS = "SITELESS_BUSINESS",
4295
- /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
4296
- CREATOR_ECONOMY = "CREATOR_ECONOMY",
4297
- /** It is to be used in the Business First efforts. */
4298
- DASHBOARD_FIRST = "DASHBOARD_FIRST",
4299
- /** Bookings business flow with no site. */
4300
- ANYWHERE = "ANYWHERE",
4301
- /** Namespace for Headless Backoffice with no editor */
4302
- HEADLESS = "HEADLESS",
4238
+ quantity?: number;
4239
+ }
4240
+ interface AdditionalFeeRefund {
4303
4241
  /**
4304
- * Namespace for master site that will exist in parent account that will be referenced by subaccounts
4305
- * The site will be used for account level CSM feature for enterprise
4242
+ * Additional fee ID.
4243
+ * @format GUID
4244
+ * @immutable
4306
4245
  */
4307
- ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
4308
- /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
4309
- RISE = "RISE",
4246
+ additionalFeeId?: string;
4310
4247
  /**
4311
- * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
4312
- * There's a blank site behind the scene but it's blank).
4313
- * The Mobile company will be the owner of this namespace.
4248
+ * Refund amount.
4249
+ * @immutable
4314
4250
  */
4315
- BRANDED_FIRST = "BRANDED_FIRST",
4316
- /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
4317
- NOWNIA = "NOWNIA",
4251
+ amount?: Price;
4252
+ }
4253
+ interface ShippingRefund {
4318
4254
  /**
4319
- * UGC Templates are templates that are created by users for personal use and to sale to other users.
4320
- * The Partners company owns this namespace.
4255
+ * Refund amount.
4256
+ * @immutable
4321
4257
  */
4322
- UGC_TEMPLATE = "UGC_TEMPLATE",
4323
- /** Codux Headless Sites */
4324
- CODUX = "CODUX",
4325
- /** Bobb - AI Design Creator. */
4326
- MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
4258
+ amount?: Price;
4259
+ }
4260
+ interface RefundSideEffects {
4261
+ /** Inventory restock details as part of this refund. */
4262
+ restockInfo?: RestockInfo;
4263
+ /** Whether to send a refund confirmation email to the customer. */
4264
+ sendOrderRefundedEmail?: boolean;
4327
4265
  /**
4328
- * Shared Blog Site is a unique single site across Enterprise account,
4329
- * This site will hold all Blog posts related to the Marketing product.
4266
+ * Custom message added to the refund confirmation email.
4267
+ * @minLength 1
4268
+ * @maxLength 1000
4330
4269
  */
4331
- SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE",
4332
- /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
4333
- STANDALONE_FORMS = "STANDALONE_FORMS",
4334
- /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
4335
- STANDALONE_EVENTS = "STANDALONE_EVENTS",
4336
- /** MIMIR - Siteless account for MIMIR Ai Job runner. */
4337
- MIMIR = "MIMIR",
4338
- /** Wix Twins platform. */
4339
- TWINS = "TWINS",
4340
- /** Wix Nano. */
4341
- NANO = "NANO",
4342
- /** Base44 headless sites. */
4343
- BASE44 = "BASE44",
4344
- /** Wix Channels Sites */
4345
- CHANNELS = "CHANNELS"
4270
+ customMessage?: string | null;
4271
+ }
4272
+ interface RestockInfo {
4273
+ /** Restock type. */
4274
+ type?: RestockTypeWithLiterals;
4275
+ /**
4276
+ * Restocked line items and quantities. Only relevant for `{"type": "SOME_ITEMS"}`.
4277
+ * @maxSize 300
4278
+ */
4279
+ items?: RestockItem[];
4280
+ }
4281
+ declare enum RestockType {
4282
+ NO_ITEMS = "NO_ITEMS",
4283
+ ALL_ITEMS = "ALL_ITEMS",
4284
+ SOME_ITEMS = "SOME_ITEMS"
4346
4285
  }
4347
4286
  /** @enumType */
4348
- type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR' | 'TWINS' | 'NANO' | 'BASE44' | 'CHANNELS';
4349
- /** Site transferred to another user. */
4350
- interface SiteTransferred {
4287
+ type RestockTypeWithLiterals = RestockType | 'NO_ITEMS' | 'ALL_ITEMS' | 'SOME_ITEMS';
4288
+ interface RestockItem {
4351
4289
  /**
4352
- * A previous owner id (user that transfers meta site).
4290
+ * ID of the line item being restocked.
4353
4291
  * @format GUID
4354
4292
  */
4355
- oldOwnerId?: string;
4293
+ lineItemId?: string;
4356
4294
  /**
4357
- * A new owner id (user that accepts meta site).
4358
- * @format GUID
4295
+ * Line item quantity being restocked.
4296
+ * @min 1
4297
+ * @max 100000
4359
4298
  */
4360
- newOwnerId?: string;
4299
+ quantity?: number;
4361
4300
  }
4362
- /** Soft deletion of the meta site. Could be restored. */
4363
- interface SiteDeleted {
4364
- /** A deletion context. */
4365
- deleteContext?: DeleteContext;
4301
+ interface TriggerRefundResponse {
4302
+ /** All order's transactions after the refunds were added */
4303
+ orderTransactions?: OrderTransactions;
4304
+ /** Created refund ID */
4305
+ refundId?: string | null;
4306
+ /** Payment ID's that the refund execution had failed for */
4307
+ failedPaymentIds?: ItemMetadata[];
4366
4308
  }
4367
- interface DeleteContext {
4368
- /** When the meta site was deleted. */
4369
- dateDeleted?: Date | null;
4370
- /** A status. */
4371
- deleteStatus?: DeleteStatusWithLiterals;
4309
+ /**
4310
+ * A record of all payments and refunds associated with an order.
4311
+ *
4312
+ * Use order transactions to track payment status, add payment records, process refunds, and monitor chargebacks.
4313
+ */
4314
+ interface OrderTransactions {
4372
4315
  /**
4373
- * A reason (flow).
4374
- * @maxLength 255
4316
+ * Order ID.
4317
+ * @format GUID
4375
4318
  */
4376
- deleteOrigin?: string;
4319
+ orderId?: string;
4377
4320
  /**
4378
- * A service that deleted it.
4379
- * @maxLength 255
4321
+ * Record of payments made to the merchant.
4322
+ * @maxSize 100
4380
4323
  */
4381
- initiatorId?: string | null;
4382
- }
4383
- declare enum DeleteStatus {
4384
- UNKNOWN = "UNKNOWN",
4385
- TRASH = "TRASH",
4386
- DELETED = "DELETED",
4387
- PENDING_PURGE = "PENDING_PURGE",
4388
- PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
4389
- }
4390
- /** @enumType */
4391
- type DeleteStatusWithLiterals = DeleteStatus | 'UNKNOWN' | 'TRASH' | 'DELETED' | 'PENDING_PURGE' | 'PURGED_EXTERNALLY';
4392
- /** Restoration of the meta site. */
4393
- interface SiteUndeleted {
4394
- }
4395
- /** First publish of a meta site. Or subsequent publish after unpublish. */
4396
- interface SitePublished {
4324
+ payments?: Payment[];
4325
+ /**
4326
+ * Record of refunds made to the buyer.
4327
+ * @maxSize 300
4328
+ */
4329
+ refunds?: Refund[];
4397
4330
  }
4398
- interface SiteUnpublished {
4331
+ interface Payment extends PaymentPaymentDetailsOneOf, PaymentReceiptInfoOneOf {
4332
+ /** Regular payment details. */
4333
+ regularPaymentDetails?: RegularPaymentDetails;
4334
+ /** Gift card payment details. */
4335
+ giftcardPaymentDetails?: GiftCardPaymentDetails;
4399
4336
  /**
4400
- * A list of URLs previously associated with the meta site.
4401
- * @maxLength 4000
4402
- * @maxSize 10000
4337
+ * Payment ID.
4338
+ * @format GUID
4339
+ * @readonly
4403
4340
  */
4404
- urls?: string[];
4341
+ _id?: string | null;
4342
+ /** Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided. */
4343
+ _createdDate?: Date | null;
4344
+ /**
4345
+ * Date and time the payment was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
4346
+ * @readonly
4347
+ */
4348
+ _updatedDate?: Date | null;
4349
+ /** Payment amount. */
4350
+ amount?: Price;
4351
+ /**
4352
+ * Whether refunds for this payment are disabled.
4353
+ * + `true`: This payment is not refundable.
4354
+ * + `false`: This payment may be refunded. However, this ultimately depends on the payment provider.
4355
+ */
4356
+ refundDisabled?: boolean;
4405
4357
  }
4406
- interface SiteMarkedAsTemplate {
4358
+ /** @oneof */
4359
+ interface PaymentPaymentDetailsOneOf {
4360
+ /** Regular payment details. */
4361
+ regularPaymentDetails?: RegularPaymentDetails;
4362
+ /** Gift card payment details. */
4363
+ giftcardPaymentDetails?: GiftCardPaymentDetails;
4407
4364
  }
4408
- interface SiteMarkedAsWixSite {
4365
+ /** @oneof */
4366
+ interface PaymentReceiptInfoOneOf {
4409
4367
  }
4410
- /**
4411
- * Represents a service provisioned a site.
4412
- *
4413
- * Note on `origin_instance_id`:
4414
- * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
4415
- * This is because of the following scenario:
4416
- *
4417
- * Imagine you have a template where a third-party application (TPA) includes some stub data,
4418
- * such as a product catalog. When you create a site from this template, you inherit this
4419
- * default product catalog. However, if the template's product catalog is modified,
4420
- * your site will retain the catalog as it was at the time of site creation. This ensures that
4421
- * your site remains consistent with what you initially received and does not include any
4422
- * changes made to the original template afterward.
4423
- * To ensure this, the TPA on the template gets a new instance_id.
4424
- */
4425
- interface ServiceProvisioned {
4368
+ interface RegularPaymentDetails extends RegularPaymentDetailsPaymentMethodDetailsOneOf {
4369
+ /** Credit card details. */
4370
+ creditCardDetails?: CreditCardPaymentMethodDetails;
4426
4371
  /**
4427
- * Either UUID or EmbeddedServiceType.
4428
- * @maxLength 36
4372
+ * Wix Payments order ID.
4373
+ * @maxLength 100
4429
4374
  */
4430
- appDefId?: string;
4375
+ paymentOrderId?: string | null;
4431
4376
  /**
4432
- * Not only UUID. Something here could be something weird.
4433
- * @maxLength 36
4377
+ * Payment gateway's transaction ID.
4378
+ * This field is only returned when the value of `offline_payment` is `false`.
4379
+ * @maxLength 100
4380
+ */
4381
+ gatewayTransactionId?: string | null;
4382
+ /**
4383
+ * Payment method.
4384
+ * Deprecated. Use `paymentMethodName.buyerLanguageName` instead.
4385
+ * Non-exhaustive list of supported values:
4386
+ * + `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`
4387
+ * @maxLength 100
4388
+ * @deprecated Payment method.
4389
+ * Deprecated. Use `paymentMethodName.buyerLanguageName` instead.
4390
+ * Non-exhaustive list of supported values:
4391
+ * + `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`
4392
+ * @replacedBy payment_method_name
4393
+ * @targetRemovalDate 2026-07-01
4434
4394
  */
4435
- instanceId?: string;
4395
+ paymentMethod?: string | null;
4436
4396
  /**
4437
- * An instance id from which this instance is originated.
4438
- * @maxLength 36
4397
+ * Transaction ID in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for offline payments.
4398
+ * @maxLength 100
4439
4399
  */
4440
- originInstanceId?: string;
4400
+ providerTransactionId?: string | null;
4401
+ /** Whether the payment was made offline. For example, when using cash or when marked as paid in the Business Manager. */
4402
+ offlinePayment?: boolean;
4403
+ /** Payment status. */
4404
+ status?: TransactionStatusWithLiterals;
4441
4405
  /**
4442
- * A version.
4443
- * @maxLength 500
4406
+ * Whether there is a payment agreement that allows for future charges.
4407
+ * @immutable
4444
4408
  */
4445
- version?: string | null;
4409
+ savedPaymentMethod?: boolean;
4410
+ /** Authorization details. */
4411
+ authorizationDetails?: AuthorizationDetails;
4446
4412
  /**
4447
- * The origin meta site id
4448
- * @format GUID
4413
+ * Record of chargebacks made by the buyer.
4414
+ * @maxSize 6
4449
4415
  */
4450
- originMetaSiteId?: string | null;
4451
- }
4452
- interface ServiceRemoved {
4416
+ chargebacks?: Chargeback[];
4417
+ /** Platform fee amount associated with this payment. */
4418
+ platformFee?: Price;
4453
4419
  /**
4454
- * Either UUID or EmbeddedServiceType.
4455
- * @maxLength 36
4420
+ * Payment method with buyer and optional owner translations.
4421
+ * Non-exhaustive list of supported values:
4422
+ * + `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`
4456
4423
  */
4457
- appDefId?: string;
4424
+ paymentMethodName?: PaymentMethodName;
4425
+ }
4426
+ /** @oneof */
4427
+ interface RegularPaymentDetailsPaymentMethodDetailsOneOf {
4428
+ /** Credit card details. */
4429
+ creditCardDetails?: CreditCardPaymentMethodDetails;
4430
+ }
4431
+ declare enum TransactionStatus {
4432
+ UNDEFINED = "UNDEFINED",
4433
+ APPROVED = "APPROVED",
4434
+ PENDING = "PENDING",
4435
+ PENDING_MERCHANT = "PENDING_MERCHANT",
4436
+ CANCELED = "CANCELED",
4437
+ DECLINED = "DECLINED",
4438
+ REFUNDED = "REFUNDED",
4439
+ PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
4440
+ AUTHORIZED = "AUTHORIZED",
4441
+ VOIDED = "VOIDED"
4442
+ }
4443
+ /** @enumType */
4444
+ type TransactionStatusWithLiterals = TransactionStatus | 'UNDEFINED' | 'APPROVED' | 'PENDING' | 'PENDING_MERCHANT' | 'CANCELED' | 'DECLINED' | 'REFUNDED' | 'PARTIALLY_REFUNDED' | 'AUTHORIZED' | 'VOIDED';
4445
+ interface CreditCardPaymentMethodDetails {
4458
4446
  /**
4459
- * Not only UUID. Something here could be something weird.
4460
- * @maxLength 36
4447
+ * The last 4 digits of the card number.
4448
+ * @maxLength 4
4461
4449
  */
4462
- instanceId?: string;
4450
+ lastFourDigits?: string | null;
4463
4451
  /**
4464
- * A version.
4465
- * @maxLength 500
4452
+ * Card issuer's brand.
4453
+ * @maxLength 100
4466
4454
  */
4467
- version?: string | null;
4455
+ brand?: string | null;
4468
4456
  }
4469
- /** Rename of the site. Meaning, free public url has been changed as well. */
4470
- interface SiteRenamed {
4457
+ interface AuthorizationDetails {
4471
4458
  /**
4472
- * A new meta site name (URL slug).
4473
- * @maxLength 20
4459
+ * Whether the authorized payment is of a delayed capture.
4460
+ * @readonly
4474
4461
  */
4475
- newSiteName?: string;
4462
+ delayedCapture?: boolean;
4463
+ /** Date and time the payment was authorized in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
4464
+ authorizedDate?: Date | null;
4476
4465
  /**
4477
- * A previous meta site name (URL slug).
4478
- * @maxLength 255
4466
+ * List of captures associated with payment
4467
+ * In case of failed it can be replaced with new one with PENDING or SUCCESS statuses
4468
+ * @maxSize 1
4479
4469
  */
4480
- oldSiteName?: string;
4481
- }
4482
- /**
4483
- * Hard deletion of the meta site.
4484
- *
4485
- * Could not be restored. Therefore it's desirable to cleanup data.
4486
- */
4487
- interface SiteHardDeleted {
4488
- /** A deletion context. */
4489
- deleteContext?: DeleteContext;
4490
- }
4491
- interface NamespaceChanged {
4492
- /** A previous namespace. */
4493
- oldNamespace?: NamespaceWithLiterals;
4494
- /** A new namespace. */
4495
- newNamespace?: NamespaceWithLiterals;
4496
- }
4497
- /** Assigned Studio editor */
4498
- interface StudioAssigned {
4499
- }
4500
- /** Unassigned Studio editor */
4501
- interface StudioUnassigned {
4502
- }
4503
- /**
4504
- * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.
4505
- *
4506
- * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up
4507
- * with sites and its urls, you need to listen to another topic/event. Read about it:
4508
- *
4509
- * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service
4510
- */
4511
- interface SiteUrlChanged {
4470
+ captures?: AuthorizationCapture[];
4471
+ /** Void associated with payment */
4472
+ void?: AuthorizationVoid;
4473
+ /** Scheduled action for this transaction */
4474
+ scheduledAction?: V1ScheduledAction;
4512
4475
  }
4513
- /**
4514
- * Used at the end of the deletion flow for both draft sites and when a user deletes a site.
4515
- * Consumed by other teams to remove relevant data.
4516
- */
4517
- interface SitePurgedExternally {
4476
+ interface AuthorizationCapture {
4518
4477
  /**
4519
- * @maxLength 2048
4520
- * @maxSize 100
4521
- * @deprecated
4522
- * @targetRemovalDate 2025-04-15
4478
+ * Capture ID.
4479
+ * @format GUID
4480
+ * @readonly
4523
4481
  */
4524
- appDefId?: string[];
4525
- }
4526
- /** Assigned Odeditor */
4527
- interface OdeditorAssigned {
4528
- }
4529
- /** Unassigned Odeditor */
4530
- interface OdeditorUnassigned {
4531
- }
4532
- /** Assigned Picasso editor */
4533
- interface PicassoAssigned {
4534
- }
4535
- /** Unassigned Picasso */
4536
- interface PicassoUnassigned {
4537
- }
4538
- /** Assigned Wixel */
4539
- interface WixelAssigned {
4540
- }
4541
- /** Unassigned Wixel */
4542
- interface WixelUnassigned {
4543
- }
4544
- /** Assigned StudioTwo */
4545
- interface StudioTwoAssigned {
4546
- }
4547
- /** Unassigned StudioTwo */
4548
- interface StudioTwoUnassigned {
4549
- }
4550
- /** Media from user domain is enabled. */
4551
- interface UserDomainMediaEnabled {
4552
- }
4553
- /** Media from user domain is disabled. */
4554
- interface UserDomainMediaDisabled {
4555
- }
4556
- /** Assigned Editorless */
4557
- interface EditorlessAssigned {
4558
- }
4559
- /** Unassigned Editorless */
4560
- interface EditorlessUnassigned {
4482
+ _id?: string | null;
4483
+ /** Status of this capture action */
4484
+ status?: AuthorizationCaptureStatusWithLiterals;
4485
+ /**
4486
+ * Amount of this capture
4487
+ * @immutable
4488
+ */
4489
+ amount?: Price;
4490
+ /** Date and time the capture was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
4491
+ _createdDate?: Date | null;
4492
+ /** In case of status is FAILED may contain failure details */
4493
+ failureDetails?: AuthorizationActionFailureDetails;
4561
4494
  }
4562
- interface HasCustomEmailConfigurationsRequest {
4495
+ declare enum AuthorizationCaptureStatus {
4496
+ /** Capture operation still in progress. */
4497
+ PENDING = "PENDING",
4498
+ /** Capture operation succeeded. */
4499
+ SUCCEEDED = "SUCCEEDED",
4500
+ /** Capture operation failed. */
4501
+ FAILED = "FAILED"
4563
4502
  }
4564
- interface HasCustomEmailConfigurationsResponse {
4565
- hasCustomConfigurations?: boolean;
4503
+ /** @enumType */
4504
+ type AuthorizationCaptureStatusWithLiterals = AuthorizationCaptureStatus | 'PENDING' | 'SUCCEEDED' | 'FAILED';
4505
+ interface AuthorizationActionFailureDetails {
4506
+ /** @maxLength 100 */
4507
+ failureCode?: string;
4566
4508
  }
4567
- interface AddToAutomationMigrationPopulationRequest {
4568
- /** When true, sends custom email configurations to automation system via email */
4569
- sendCustomEmailConfigs?: boolean;
4570
- /** Origin of the migration request. Defaults to OPT_IN when UNKNOWN_ORIGIN. */
4571
- origin?: OriginWithLiterals;
4509
+ interface AuthorizationVoid {
4510
+ /** Status of this void action */
4511
+ status?: AuthorizationVoidStatusWithLiterals;
4512
+ /** Date and time the void was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
4513
+ voidedDate?: Date | null;
4514
+ /** In case of status is FAILED may contain failure details */
4515
+ failureDetails?: AuthorizationActionFailureDetails;
4516
+ /** Reason of void action */
4517
+ reason?: ReasonWithLiterals;
4572
4518
  }
4573
- declare enum Origin {
4574
- OPT_IN = "OPT_IN",
4575
- MIGRATION = "MIGRATION"
4519
+ declare enum AuthorizationVoidStatus {
4520
+ /** Void operation still in progress. */
4521
+ PENDING = "PENDING",
4522
+ /** Void operation succeeded. */
4523
+ SUCCEEDED = "SUCCEEDED",
4524
+ /** Void operation failed. */
4525
+ FAILED = "FAILED"
4576
4526
  }
4577
4527
  /** @enumType */
4578
- type OriginWithLiterals = Origin | 'OPT_IN' | 'MIGRATION';
4579
- interface AddToAutomationMigrationPopulationResponse {
4580
- success?: boolean;
4528
+ type AuthorizationVoidStatusWithLiterals = AuthorizationVoidStatus | 'PENDING' | 'SUCCEEDED' | 'FAILED';
4529
+ /** Reason the authorization was voided. */
4530
+ declare enum Reason {
4531
+ /** Authorization was voided by user. */
4532
+ MANUAL = "MANUAL",
4533
+ /** Authorization passed execution date. */
4534
+ SCHEDULED = "SCHEDULED"
4581
4535
  }
4582
- interface IsInAutomationMigrationPopulationRequest {
4536
+ /** @enumType */
4537
+ type ReasonWithLiterals = Reason | 'MANUAL' | 'SCHEDULED';
4538
+ interface V1ScheduledAction {
4539
+ /** Type of the action. */
4540
+ actionType?: ActionTypeWithLiterals;
4541
+ /** The date and time of the action. */
4542
+ executionDate?: Date | null;
4583
4543
  }
4584
- interface IsInAutomationMigrationPopulationResponse {
4585
- inPopulation?: boolean;
4544
+ declare enum ActionType {
4545
+ VOID = "VOID",
4546
+ CAPTURE = "CAPTURE"
4586
4547
  }
4587
- interface PreparePaymentCollectionRequest {
4588
- /**
4589
- * Ecom order ID.
4590
- * @minLength 1
4591
- * @maxLength 100
4592
- */
4593
- ecomOrderId: string;
4594
- /** Amount to collect */
4595
- amount: Price;
4548
+ /** @enumType */
4549
+ type ActionTypeWithLiterals = ActionType | 'VOID' | 'CAPTURE';
4550
+ interface Chargeback {
4596
4551
  /**
4597
- * Optional parameter. When present, payment collection will be performed using given payment gateway order.
4598
- * Existing payment gateway order will be updated with a new amount.
4599
- * When parameter is absent, new payment gateway order will be created and used for payment collection.
4552
+ * Chargeback ID.
4553
+ * @format GUID
4554
+ * @readonly
4555
+ * @immutable
4600
4556
  */
4601
- paymentGatewayOrderId?: string | null;
4557
+ _id?: string;
4602
4558
  /**
4603
- * Whether to delay capture of the payment.
4604
- * Default: false
4605
- * @deprecated Whether to delay capture of the payment.
4606
- * Default: false
4607
- * @replacedBy delayed_capture_settings.scheduled_action
4608
- * @targetRemovalDate 2024-09-30
4559
+ * Date and time the chargeback was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided.
4560
+ * @readonly
4561
+ * @immutable
4609
4562
  */
4610
- delayedCapture?: boolean;
4611
- /** Delayed capture payment settings */
4612
- delayedCaptureSettings?: DelayedCaptureSettings;
4613
- }
4614
- interface RedirectUrls {
4563
+ _createdDate?: Date | null;
4615
4564
  /**
4616
- * URL to redirect buyer in case of approved (successful) transaction
4617
- * @format WEB_URL
4565
+ * Date and time the chargeback was updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided.
4566
+ * @readonly
4618
4567
  */
4619
- successUrl?: string | null;
4568
+ _updatedDate?: Date | null;
4620
4569
  /**
4621
- * URL to redirect buyer in case of buyer canceled the transaction
4622
- * @format WEB_URL
4570
+ * Amount.
4571
+ * @readonly
4572
+ * @immutable
4623
4573
  */
4624
- cancelUrl?: string | null;
4574
+ amount?: Price;
4625
4575
  /**
4626
- * URL to redirect buyer in case of failed/rejected transaction
4627
- * @format WEB_URL
4576
+ * Reversal amount. Present only when status is REVERSED.
4577
+ * @readonly
4628
4578
  */
4629
- errorUrl?: string | null;
4579
+ reversalAmount?: Price;
4630
4580
  /**
4631
- * URL to redirect buyer in case of pending transaction (that might take some time to process)
4632
- * @format WEB_URL
4581
+ * Status.
4582
+ *
4583
+ * Default: `"APPROVED"`.
4633
4584
  */
4634
- pendingUrl?: string | null;
4635
- }
4636
- interface DelayedCaptureSettings {
4637
- /** Specifies the automatic action (void/capture) for authorized transaction after the specified duration */
4638
- scheduledAction?: ScheduledActionWithLiterals;
4639
- /** Delay duration before execution. Optional - if not set, providers default period will be used */
4640
- delayDuration?: Duration;
4641
- }
4642
- declare enum ScheduledAction {
4643
- /** Whether payment will be auto-voided when duration passes */
4644
- VOID = "VOID",
4645
- /** Whether payment will be auto-captured when duration passes */
4646
- CAPTURE = "CAPTURE"
4647
- }
4648
- /** @enumType */
4649
- type ScheduledActionWithLiterals = ScheduledAction | 'VOID' | 'CAPTURE';
4650
- interface Duration {
4585
+ status?: ChargebackStatusWithLiterals;
4651
4586
  /**
4652
- * Amount of units. For example, 30 MINUTES, 1 HOURS, 7 DAYS, etc
4653
- * @min 1
4587
+ * External chargeback ID.
4588
+ * @format GUID
4589
+ * @readonly
4590
+ * @immutable
4654
4591
  */
4655
- count?: number;
4656
- /** Duration unit: MINUTES, HOURS and DAYS */
4657
- unit?: DurationUnitWithLiterals;
4592
+ externalId?: string | null;
4658
4593
  }
4659
- declare enum DurationUnit {
4660
- MINUTES = "MINUTES",
4661
- HOURS = "HOURS",
4662
- DAYS = "DAYS"
4594
+ declare enum ChargebackStatus {
4595
+ /** Chargeback was approved. */
4596
+ APPROVED = "APPROVED",
4597
+ /** Chargeback was reversed. */
4598
+ REVERSED = "REVERSED"
4663
4599
  }
4664
4600
  /** @enumType */
4665
- type DurationUnitWithLiterals = DurationUnit | 'MINUTES' | 'HOURS' | 'DAYS';
4666
- interface PreparePaymentCollectionResponse {
4667
- /** Payment gateway order id which is associated with given payment */
4668
- paymentGatewayOrderId?: string;
4669
- }
4670
- interface GetPaymentCollectabilityStatusRequest {
4601
+ type ChargebackStatusWithLiterals = ChargebackStatus | 'APPROVED' | 'REVERSED';
4602
+ interface PaymentMethodName {
4671
4603
  /**
4672
- * Ecom order ID.
4673
- * @minLength 1
4604
+ * Translated payment method name in buyer language.
4674
4605
  * @maxLength 100
4675
4606
  */
4676
- ecomOrderId: string;
4677
- }
4678
- interface GetPaymentCollectabilityStatusResponse {
4679
- /** Payment collectability status */
4680
- status?: PaymentCollectabilityStatusWithLiterals;
4681
- /** Collectable order amount */
4682
- amount?: Price;
4683
- }
4684
- declare enum PaymentCollectabilityStatus {
4685
- UNKNOWN = "UNKNOWN",
4686
- COLLECTABLE = "COLLECTABLE",
4687
- NONCOLLECTABLE_ORDER_IS_CANCELLED = "NONCOLLECTABLE_ORDER_IS_CANCELLED",
4688
- NONCOLLECTABLE_ORDER_IS_PAID = "NONCOLLECTABLE_ORDER_IS_PAID",
4689
- NONCOLLECTABLE_MISSING_PAYMENT_METHOD = "NONCOLLECTABLE_MISSING_PAYMENT_METHOD",
4690
- NONCOLLECTABLE_ORDER_IS_PENDING = "NONCOLLECTABLE_ORDER_IS_PENDING",
4691
- NONCOLLECTABLE_ORDER_IS_REJECTED = "NONCOLLECTABLE_ORDER_IS_REJECTED",
4692
- NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS = "NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS",
4693
- NONCOLLECTABLE_ORDER_HAS_CHARGEBACKS = "NONCOLLECTABLE_ORDER_HAS_CHARGEBACKS",
4694
- NONCOLLECTABLE_SUBSCRIPTION_CYCLE_ALREADY_PASSED = "NONCOLLECTABLE_SUBSCRIPTION_CYCLE_ALREADY_PASSED",
4695
- NONCOLLECTABLE_ORDER_HAS_UNSUPPORTED_SUBSCRIPTION = "NONCOLLECTABLE_ORDER_HAS_UNSUPPORTED_SUBSCRIPTION"
4696
- }
4697
- /** @enumType */
4698
- type PaymentCollectabilityStatusWithLiterals = PaymentCollectabilityStatus | 'UNKNOWN' | 'COLLECTABLE' | 'NONCOLLECTABLE_ORDER_IS_CANCELLED' | 'NONCOLLECTABLE_ORDER_IS_PAID' | 'NONCOLLECTABLE_MISSING_PAYMENT_METHOD' | 'NONCOLLECTABLE_ORDER_IS_PENDING' | 'NONCOLLECTABLE_ORDER_IS_REJECTED' | 'NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS' | 'NONCOLLECTABLE_ORDER_HAS_CHARGEBACKS' | 'NONCOLLECTABLE_SUBSCRIPTION_CYCLE_ALREADY_PASSED' | 'NONCOLLECTABLE_ORDER_HAS_UNSUPPORTED_SUBSCRIPTION';
4699
- interface RecordManuallyCollectedPaymentRequest {
4607
+ buyerLanguageName?: string | null;
4700
4608
  /**
4701
- * Order ID.
4702
- * @minLength 1
4609
+ * Translated payment method name in site owner language.
4703
4610
  * @maxLength 100
4704
4611
  */
4705
- orderId: string;
4706
- /** Amount to be recorded as approved manual payment for given order */
4707
- amount: Price;
4708
- }
4709
- /**
4710
- * User-defined payment method name.
4711
- * Allows specifying either a predefined type or a custom name.
4712
- */
4713
- interface UserDefinedPaymentMethodName extends UserDefinedPaymentMethodNameKindOneOf {
4714
- /** Predefined payment method. */
4715
- predefined?: PredefinedPaymentMethodWithLiterals;
4612
+ siteLanguageName?: string | null;
4716
4613
  /**
4717
- * Custom payment method name provided by user.
4614
+ * User-provided payment method name.
4718
4615
  *
4719
- * For example, `"Wire transfer"`, `"Money order"`, `"Venmo"` or any other custom name.
4720
- * @minLength 1
4721
- * @maxLength 100
4616
+ * When set, takes precedence over `buyerLanguageName` and `siteLanguageName`.
4722
4617
  */
4723
- custom?: string | null;
4618
+ userDefinedName?: UserDefinedPaymentMethodName;
4724
4619
  }
4725
- /** @oneof */
4726
- interface UserDefinedPaymentMethodNameKindOneOf {
4727
- /** Predefined payment method. */
4728
- predefined?: PredefinedPaymentMethodWithLiterals;
4620
+ interface GiftCardPaymentDetails {
4729
4621
  /**
4730
- * Custom payment method name provided by user.
4731
- *
4732
- * For example, `"Wire transfer"`, `"Money order"`, `"Venmo"` or any other custom name.
4622
+ * Gift card payment ID.
4733
4623
  * @minLength 1
4734
4624
  * @maxLength 100
4735
4625
  */
4736
- custom?: string | null;
4737
- }
4738
- /** Predefined payment method types for offline/manual payments. */
4739
- declare enum PredefinedPaymentMethod {
4740
- /** Cash payment. */
4741
- CASH = "CASH",
4742
- /** Bank transfer. */
4743
- BANK_TRANSFER = "BANK_TRANSFER",
4744
- /** Payment by check. */
4745
- CHECK = "CHECK"
4746
- }
4747
- /** @enumType */
4748
- type PredefinedPaymentMethodWithLiterals = PredefinedPaymentMethod | 'CASH' | 'BANK_TRANSFER' | 'CHECK';
4749
- interface RecordManuallyCollectedPaymentResponse {
4750
- }
4751
- interface MarkOrderAsPaidRequest {
4626
+ giftCardPaymentId?: string;
4752
4627
  /**
4753
- * Ecom order ID.
4754
- * @minLength 1
4755
- * @maxLength 100
4628
+ * ID of the app that created the gift card.
4629
+ * @format GUID
4756
4630
  */
4757
- ecomOrderId: string;
4758
- }
4759
- interface MarkOrderAsPaidResponse {
4760
- /** Updated order. */
4761
- order?: Order;
4762
- }
4763
- interface BulkMarkOrdersAsPaidRequest {
4631
+ appId?: string;
4764
4632
  /**
4765
- * IDs of orders to mark as paid.
4766
- * @minSize 1
4767
- * @maxSize 100
4768
- * @minLength 1
4769
- * @maxLength 100
4633
+ * Whether the gift card is voided.
4634
+ * @readonly
4770
4635
  */
4771
- ecomOrderIds: string[];
4636
+ voided?: boolean;
4772
4637
  }
4773
- interface BulkMarkOrdersAsPaidResponse {
4638
+ interface MembershipPaymentDetails {
4774
4639
  /**
4775
- * Items updated by the bulk action.
4776
- * The Order entity within the results optimistically changes its payment status to paid, however this process is async.
4640
+ * Membership ID.
4641
+ * @minLength 1
4642
+ * @maxLength 100
4777
4643
  */
4778
- results?: BulkOrderResult[];
4779
- /** Bulk action metadata. */
4780
- bulkActionMetadata?: BulkActionMetadata;
4781
- }
4782
- interface BulkOrderResult {
4783
- /** Item metadata. */
4784
- itemMetadata?: ItemMetadata;
4644
+ membershipId?: string;
4785
4645
  /**
4786
- * Updated order.
4787
- *
4788
- * Returned when `returnFullEntity = true`.
4646
+ * ID of the line item this membership applies to.
4647
+ * @minLength 1
4648
+ * @maxLength 100
4789
4649
  */
4790
- item?: Order;
4791
- }
4792
- interface ItemMetadata {
4793
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
4794
- _id?: string | null;
4795
- /** Index of the item within the request array. Allows for correlation between request and response items. */
4796
- originalIndex?: number;
4797
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
4798
- success?: boolean;
4799
- /** Details about the error in case of failure. */
4800
- error?: ApplicationError;
4801
- }
4802
- interface ApplicationError {
4803
- /** Error code. */
4804
- code?: string;
4805
- /** Description of the error. */
4806
- description?: string;
4807
- /** Data related to the error. */
4808
- data?: Record<string, any> | null;
4809
- }
4810
- interface BulkActionMetadata {
4811
- /** Number of items that were successfully processed. */
4812
- totalSuccesses?: number;
4813
- /** Number of items that couldn't be processed. */
4814
- totalFailures?: number;
4815
- /** Number of failures without details because detailed failure threshold was exceeded. */
4816
- undetailedFailures?: number;
4817
- }
4818
- interface GetRefundabilityStatusRequest {
4650
+ lineItemId?: string;
4651
+ /** Payment status. */
4652
+ status?: MembershipPaymentStatusWithLiterals;
4653
+ /** Membership name. */
4654
+ name?: MembershipName;
4819
4655
  /**
4820
- * Order ID.
4656
+ * The transaction ID in the membership system. Can be used to void the transaction.
4821
4657
  * @minLength 1
4822
4658
  * @maxLength 100
4823
- */
4824
- ecomOrderId: string;
4825
- }
4826
- interface GetRefundabilityStatusResponse {
4659
+ */
4660
+ externalTransactionId?: string | null;
4827
4661
  /**
4828
- * Refundability details.
4829
- * @maxSize 300
4662
+ * Whether the membership is voided.
4663
+ * @readonly
4830
4664
  */
4831
- refundabilities?: Refundability[];
4665
+ voided?: boolean;
4832
4666
  /**
4833
- * Whether the order supports refunding per item.
4834
- * @deprecated
4667
+ * ID of the application providing this payment option.
4668
+ * @format GUID
4835
4669
  */
4836
- refundablePerItem?: boolean;
4837
- }
4838
- interface Refundability extends RefundabilityAdditionalRefundabilityInfoOneOf {
4839
- /** Reason why payment is not refundable. */
4840
- nonRefundableReason?: NonRefundableReasonWithLiterals;
4841
- /** Reason why payment is only refundable manually. */
4842
- manuallyRefundableReason?: ManuallyRefundableReasonWithLiterals;
4843
- /** Payment ID. */
4844
- paymentId?: string;
4845
- /** Payment refundability status. */
4846
- refundabilityStatus?: RefundableStatusWithLiterals;
4847
- /** Link to payment provider dashboard. */
4848
- providerLink?: string | null;
4849
- }
4850
- /** @oneof */
4851
- interface RefundabilityAdditionalRefundabilityInfoOneOf {
4852
- /** Reason why payment is not refundable. */
4853
- nonRefundableReason?: NonRefundableReasonWithLiterals;
4854
- /** Reason why payment is only refundable manually. */
4855
- manuallyRefundableReason?: ManuallyRefundableReasonWithLiterals;
4856
- }
4857
- declare enum RefundableStatus {
4858
- NOT_REFUNDABLE = "NOT_REFUNDABLE",
4859
- MANUAL = "MANUAL",
4860
- REFUNDABLE = "REFUNDABLE"
4861
- }
4862
- /** @enumType */
4863
- type RefundableStatusWithLiterals = RefundableStatus | 'NOT_REFUNDABLE' | 'MANUAL' | 'REFUNDABLE';
4864
- declare enum NonRefundableReason {
4865
- NONE = "NONE",
4866
- ALREADY_REFUNDED = "ALREADY_REFUNDED",
4867
- PROVIDER_IS_DOWN = "PROVIDER_IS_DOWN",
4868
- INTERNAL_ERROR = "INTERNAL_ERROR",
4869
- NOT_PAID = "NOT_PAID",
4870
- ACCESS_DENIED = "ACCESS_DENIED",
4871
- ZERO_PRICE = "ZERO_PRICE",
4872
- DISABLED_BY_PROVIDER = "DISABLED_BY_PROVIDER",
4873
- PENDING_REFUND = "PENDING_REFUND",
4874
- FORBIDDEN = "FORBIDDEN",
4875
- TRANSACTION_NOT_FOUND = "TRANSACTION_NOT_FOUND",
4876
- ORDER_IS_PENDING = "ORDER_IS_PENDING",
4877
- ORDER_IS_REJECTED = "ORDER_IS_REJECTED"
4670
+ providerAppId?: string;
4878
4671
  }
4879
- /** @enumType */
4880
- type NonRefundableReasonWithLiterals = NonRefundableReason | 'NONE' | 'ALREADY_REFUNDED' | 'PROVIDER_IS_DOWN' | 'INTERNAL_ERROR' | 'NOT_PAID' | 'ACCESS_DENIED' | 'ZERO_PRICE' | 'DISABLED_BY_PROVIDER' | 'PENDING_REFUND' | 'FORBIDDEN' | 'TRANSACTION_NOT_FOUND' | 'ORDER_IS_PENDING' | 'ORDER_IS_REJECTED';
4881
- declare enum ManuallyRefundableReason {
4882
- EXPIRED = "EXPIRED",
4883
- NOT_SUPPORTED = "NOT_SUPPORTED",
4884
- OFFLINE = "OFFLINE",
4885
- REQUIRES_CARD_READER = "REQUIRES_CARD_READER"
4672
+ declare enum MembershipPaymentStatus {
4673
+ /** Payment was charged. */
4674
+ CHARGED = "CHARGED",
4675
+ /** The attempt to charge the payment failed, for example, due to lack of credits. */
4676
+ CHARGE_FAILED = "CHARGE_FAILED",
4677
+ /** Payment is pending. */
4678
+ CHARGE_PENDING = "CHARGE_PENDING",
4679
+ /** Payment was voided. */
4680
+ VOIDED = "VOIDED"
4886
4681
  }
4887
4682
  /** @enumType */
4888
- type ManuallyRefundableReasonWithLiterals = ManuallyRefundableReason | 'EXPIRED' | 'NOT_SUPPORTED' | 'OFFLINE' | 'REQUIRES_CARD_READER';
4889
- interface CreatePaymentGatewayOrderRequest {
4683
+ type MembershipPaymentStatusWithLiterals = MembershipPaymentStatus | 'CHARGED' | 'CHARGE_FAILED' | 'CHARGE_PENDING' | 'VOIDED';
4684
+ interface WixReceiptInfo {
4890
4685
  /**
4891
- * Ecom order ID.
4686
+ * Receipt ID
4687
+ * @format GUID
4688
+ */
4689
+ receiptId?: string;
4690
+ /**
4691
+ * Display number of receipt
4892
4692
  * @minLength 1
4893
- * @maxLength 100
4693
+ * @maxLength 40
4894
4694
  */
4895
- ecomOrderId: string;
4896
- /** Information about the user who initiated the payment. */
4897
- chargedBy?: ChargedBy;
4695
+ displayNumber?: string | null;
4898
4696
  }
4899
- interface ChargedBy {
4697
+ interface ExternalReceiptInfo {
4900
4698
  /**
4901
- * ID - id of the user who initiated the payment
4699
+ * External receipt ID
4700
+ * @maxLength 100
4701
+ */
4702
+ receiptId?: string | null;
4703
+ /**
4704
+ * ID of the app providing the receipt
4902
4705
  * @format GUID
4903
4706
  */
4904
- _id?: string;
4707
+ appId?: string | null;
4905
4708
  /**
4906
- * Full name - name of the user who initiated the payment
4709
+ * Display number of receipt
4907
4710
  * @minLength 1
4908
- * @maxLength 200
4711
+ * @maxLength 40
4909
4712
  */
4910
- fullName?: string | null;
4713
+ displayNumber?: string | null;
4911
4714
  }
4912
- interface CreatePaymentGatewayOrderResponse {
4913
- /** ID of the order created in the payment gateway */
4914
- paymentGatewayOrderId?: string;
4715
+ interface CashRoundingDetails {
4915
4716
  }
4916
- interface ChargeMembershipsRequest {
4717
+ declare enum PaymentStatus {
4718
+ APPROVED = "APPROVED",
4719
+ PENDING = "PENDING",
4720
+ PENDING_MERCHANT = "PENDING_MERCHANT",
4721
+ CANCELED = "CANCELED",
4722
+ DECLINED = "DECLINED",
4723
+ REFUNDED = "REFUNDED",
4724
+ PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
4725
+ AUTHORIZED = "AUTHORIZED",
4726
+ VOIDED = "VOIDED"
4727
+ }
4728
+ /** @enumType */
4729
+ type PaymentStatusWithLiterals = PaymentStatus | 'APPROVED' | 'PENDING' | 'PENDING_MERCHANT' | 'CANCELED' | 'DECLINED' | 'REFUNDED' | 'PARTIALLY_REFUNDED' | 'AUTHORIZED' | 'VOIDED';
4730
+ interface Refund {
4917
4731
  /**
4918
- * Order ID.
4919
- * @minLength 1
4920
- * @maxLength 100
4732
+ * Refund ID.
4733
+ * @format GUID
4734
+ * @readonly
4921
4735
  */
4922
- ecomOrderId: string;
4736
+ _id?: string;
4923
4737
  /**
4924
- * The member id. Do not attempt to get it from the request context, since in some cases the caller is not a member
4925
- * but a user which is using the membership on behalf of the a member
4926
- * @format GUID
4738
+ * List of transactions.
4739
+ * @maxSize 50
4927
4740
  */
4928
- memberId: string;
4741
+ transactions?: RefundTransaction[];
4742
+ /** Refund business details. */
4743
+ details?: RefundDetails;
4929
4744
  /**
4930
- * List of items to be paid by memberships
4931
- * @minSize 1
4932
- * @maxSize 300
4745
+ * Date and time the refund was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided.
4746
+ * @readonly
4747
+ * @immutable
4933
4748
  */
4934
- membershipCharges?: MembershipChargeItem[];
4935
- }
4936
- interface MembershipChargeItem {
4749
+ _createdDate?: Date | null;
4937
4750
  /**
4938
- * The id of used membership
4939
- * @minLength 1
4940
- * @maxLength 100
4751
+ * Aggregated refund summary.
4752
+ * @readonly
4941
4753
  */
4942
- membershipId?: string;
4754
+ summary?: AggregatedRefundSummary;
4943
4755
  /**
4944
- * ID of the application providing this payment option
4756
+ * ID of the app that initiated this refund.
4945
4757
  * @format GUID
4758
+ * @readonly
4759
+ * @immutable
4946
4760
  */
4947
- appId?: string;
4948
- /** The name of used membership */
4949
- membershipName?: MembershipName;
4950
- /** Additional data about this membership */
4951
- membershipAdditionalData?: Record<string, any> | null;
4952
- /** Catalog and item reference info. */
4953
- catalogReference?: CatalogReference;
4954
- /** Properties of the service. When relevant, contains information such as date and number of participants. */
4955
- serviceProperties?: ServiceProperties;
4761
+ requestingServiceAppId?: string | null;
4762
+ }
4763
+ interface RefundTransaction {
4956
4764
  /**
4957
- * Usually would be the same as catalogReference.catalogItemId
4958
- * For cases when these are not the same, this field would return the actual id of the item in the catalog
4959
- * For example, for Wix bookings, catalogReference.catalogItemId is the booking id, and this value is being set to be the service id
4960
- * @minLength 1
4961
- * @maxLength 36
4765
+ * ID of the payment associated with this refund.
4766
+ * @format GUID
4767
+ * @immutable
4962
4768
  */
4963
- rootCatalogItemId?: string | null;
4769
+ paymentId?: string;
4964
4770
  /**
4965
- * line item id of Checkout/Order line item
4966
- * @minLength 1
4967
- * @maxLength 100
4771
+ * Refund amount.
4772
+ * @immutable
4968
4773
  */
4969
- lineItemId?: string;
4774
+ amount?: Price;
4775
+ /** Refund status. */
4776
+ refundStatus?: RefundStatusWithLiterals;
4777
+ /** Optional details of current refund status. */
4778
+ refundStatusInfo?: RefundStatusInfo;
4779
+ /**
4780
+ * Payment gateway's refund ID.
4781
+ * This field is only returned when the value of `external_refund` is `false`.
4782
+ * @format GUID
4783
+ */
4784
+ gatewayRefundId?: string | null;
4785
+ /** ID of the refund in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for external refunds. */
4786
+ providerRefundId?: string | null;
4787
+ /**
4788
+ * Whether refund was made externally and manually on the payment provider's side.
4789
+ * @immutable
4790
+ */
4791
+ externalRefund?: boolean;
4970
4792
  }
4971
- interface MembershipName {
4793
+ /** Refund transaction status. */
4794
+ declare enum RefundStatus {
4795
+ /** Refund was initiated on payment provider side. PENDING status was assigned by provider. */
4796
+ PENDING = "PENDING",
4797
+ /** Refund transaction succeeded. */
4798
+ SUCCEEDED = "SUCCEEDED",
4799
+ /** Refund transaction failed. */
4800
+ FAILED = "FAILED",
4801
+ /** Refund request acknowledged, and will be executed soon. */
4802
+ SCHEDULED = "SCHEDULED",
4803
+ /** Refund was initiated on payment provider side. */
4804
+ STARTED = "STARTED"
4805
+ }
4806
+ /** @enumType */
4807
+ type RefundStatusWithLiterals = RefundStatus | 'PENDING' | 'SUCCEEDED' | 'FAILED' | 'SCHEDULED' | 'STARTED';
4808
+ interface RefundStatusInfo {
4972
4809
  /**
4973
- * Membership name.
4974
- * @maxLength 100
4810
+ * Reason code for the refund's current status.
4811
+ *
4812
+ * Learn more about [reason codes](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes).
4813
+ * @minLength 1
4814
+ * @maxLength 10
4975
4815
  */
4976
- original?: string;
4816
+ paymentGatewayReasonCode?: string | null;
4977
4817
  /**
4978
- * Translated membership name. Defaults to `original` when not provided.
4979
- * @maxLength 100
4818
+ * Free text explanation of current refund status.
4819
+ * @minLength 1
4820
+ * @maxLength 1000
4980
4821
  */
4981
- translated?: string | null;
4822
+ description?: string | null;
4982
4823
  }
4983
- interface ServiceProperties {
4824
+ interface AggregatedRefundSummary {
4825
+ /** Total amount requested for refund. */
4826
+ requestedRefund?: Price;
4827
+ /** Pending refund amount - the portion of `requestedRefund` that is still pending. */
4828
+ pendingRefund?: Price;
4829
+ /** Refunded amount - the portion of `requestedRefund` that refunded successfully. */
4830
+ refunded?: Price;
4831
+ /** Failed refund amount - the portion of `requestedRefund` that failed. */
4832
+ failedRefundAmount?: Price;
4833
+ /** Whether at least one refund transaction is still in `"PENDING"` status. */
4834
+ pending?: boolean;
4835
+ /** Breakdown of refunded items. Available only after refund is complete. */
4836
+ breakdown?: RefundItemsBreakdown;
4837
+ }
4838
+ interface RefundItemsBreakdown {
4984
4839
  /**
4985
- * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
4986
- * For example, the start time of a class.
4840
+ * Refunded line items and the amount refunded for each.
4841
+ * @maxSize 300
4987
4842
  */
4988
- scheduledDate?: Date | null;
4843
+ lineItems?: LineItemRefundSummary[];
4844
+ }
4845
+ interface LineItemRefundSummary {
4989
4846
  /**
4990
- * The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.
4991
- * @min 1
4992
- * @max 10000
4847
+ * ID of the refunded line item.
4848
+ * @format GUID
4993
4849
  */
4994
- numberOfParticipants?: number | null;
4995
- }
4996
- interface ChargeMembershipsResponse {
4850
+ lineItemId?: string;
4851
+ /** Total refunded amount for the line item. */
4852
+ totalRefundedAmount?: Price;
4997
4853
  }
4998
- interface TriggerRefundRequest {
4854
+ interface CalculateRefundRequest {
4999
4855
  /**
5000
- * The order this refund related to
4856
+ * Order ID
5001
4857
  * @minLength 1
5002
4858
  * @maxLength 100
5003
4859
  */
5004
- ecomOrderId: string;
4860
+ ecomOrderId?: string;
5005
4861
  /**
5006
- * Refund operations information
5007
- * @minSize 1
5008
- * @maxSize 1
4862
+ * Refunded line items and quantity
4863
+ * @maxSize 300
5009
4864
  */
5010
- payments: PaymentRefund[];
5011
- /** Business model of a refund */
5012
- details?: RefundDetails;
5013
- /** Side effect details related to refund */
5014
- sideEffects?: RefundSideEffects;
4865
+ refundItems?: CalculateRefundItemRequest[];
4866
+ /** Should include shipping in refund calculation */
4867
+ refundShipping?: boolean;
5015
4868
  }
5016
- interface PaymentRefund {
4869
+ interface CalculateRefundItemRequest {
5017
4870
  /**
5018
- * Specific payment within the order to refund
4871
+ * ID of the line item being refunded
5019
4872
  * @format GUID
5020
4873
  */
5021
- paymentId?: string;
5022
- /** Refund amount. Not relevant for membership and gift card refunds. */
5023
- amount?: Price;
4874
+ _id?: string;
5024
4875
  /**
5025
- * Whether refund is made externally and manually (on the payment provider's side)
5026
- * When false (default), the payment gateway will be called in order to make an actual refund, and then the payment will be marked as refunded.
5027
- * When true, the payment will only be *marked* as refunded, and no actual refund will be performed.
4876
+ * How much of that line item is being refunded
4877
+ * @min 1
4878
+ * @max 100000
5028
4879
  */
5029
- externalRefund?: boolean;
4880
+ quantity?: number;
5030
4881
  }
5031
- interface RefundSideEffects {
5032
- /** Inventory restock details as part of this refund. */
5033
- restockInfo?: RestockInfo;
5034
- /** Whether to send a refund confirmation email to the customer. */
5035
- sendOrderRefundedEmail?: boolean;
4882
+ interface CalculateRefundResponse {
4883
+ /** Total refundable amount */
4884
+ total?: Price;
4885
+ /** Tax cost of the order */
4886
+ tax?: Price;
4887
+ /** Discount given for this order */
4888
+ discount?: Price;
4889
+ /** Total cost of the order (without tax) */
4890
+ subtotal?: Price;
4891
+ /** Total shipping cost for order */
4892
+ shipping?: Price;
4893
+ /** Previous refund given on that order */
4894
+ previouslyRefundedAmount?: Price;
5036
4895
  /**
5037
- * Custom message added to the refund confirmation email.
5038
- * @minLength 1
5039
- * @maxLength 1000
4896
+ * The refundable items of that order
4897
+ * @maxSize 300
5040
4898
  */
5041
- customMessage?: string | null;
4899
+ items?: CalculateRefundItemResponse[];
5042
4900
  }
5043
- interface RestockInfo {
5044
- /** Restock type. */
5045
- type?: RestockTypeWithLiterals;
4901
+ interface CalculateRefundItemResponse {
5046
4902
  /**
5047
- * Restocked line items and quantities. Only relevant for `{"type": "SOME_ITEMS"}`.
5048
- * @maxSize 300
4903
+ * Line item ID
4904
+ * @format GUID
5049
4905
  */
5050
- items?: RestockItem[];
5051
- }
5052
- declare enum RestockType {
5053
- NO_ITEMS = "NO_ITEMS",
5054
- ALL_ITEMS = "ALL_ITEMS",
5055
- SOME_ITEMS = "SOME_ITEMS"
4906
+ _id?: string;
4907
+ /** Refundable amount for requested quantity of items (price of requested quantity of items without tax and discount) */
4908
+ price?: Price;
5056
4909
  }
5057
- /** @enumType */
5058
- type RestockTypeWithLiterals = RestockType | 'NO_ITEMS' | 'ALL_ITEMS' | 'SOME_ITEMS';
5059
- interface RestockItem {
4910
+ interface VoidAuthorizedPaymentsRequest {
5060
4911
  /**
5061
- * ID of the line item being restocked.
5062
- * @format GUID
4912
+ * Wix eCommerce order ID
4913
+ * @minLength 1
4914
+ * @maxLength 100
5063
4915
  */
5064
- lineItemId?: string;
4916
+ ecomOrderId: string;
5065
4917
  /**
5066
- * Line item quantity being restocked.
5067
- * @min 1
5068
- * @max 100000
4918
+ * Payment IDs
4919
+ * @minSize 1
4920
+ * @maxSize 100
4921
+ * @format GUID
5069
4922
  */
5070
- quantity?: number;
4923
+ paymentIds: string[];
5071
4924
  }
5072
- interface TriggerRefundResponse {
5073
- /** All order's transactions after the refunds were added */
4925
+ interface VoidAuthorizedPaymentsResponse {
4926
+ /** All order's transactions after the void was triggered */
5074
4927
  orderTransactions?: OrderTransactions;
5075
- /** Created refund ID */
5076
- refundId?: string | null;
5077
- /** Payment ID's that the refund execution had failed for */
5078
- failedPaymentIds?: ItemMetadata[];
5079
4928
  }
5080
- /**
5081
- * A record of all payments and refunds associated with an order.
5082
- *
5083
- * Use order transactions to track payment status, add payment records, process refunds, and monitor chargebacks.
5084
- */
5085
- interface OrderTransactions {
4929
+ interface CaptureAuthorizedPaymentsRequest {
5086
4930
  /**
5087
- * Order ID.
5088
- * @format GUID
4931
+ * Wix eCommerce order ID
4932
+ * @minLength 1
4933
+ * @maxLength 100
5089
4934
  */
5090
- orderId?: string;
4935
+ ecomOrderId: string;
5091
4936
  /**
5092
- * Record of payments made to the merchant.
4937
+ * Capture payments information
4938
+ * @minSize 1
5093
4939
  * @maxSize 100
5094
4940
  */
5095
- payments?: Payment[];
5096
- /**
5097
- * Record of refunds made to the buyer.
5098
- * @maxSize 300
5099
- */
5100
- refunds?: Refund[];
4941
+ payments: PaymentCapture[];
5101
4942
  }
5102
- interface Payment extends PaymentPaymentDetailsOneOf, PaymentReceiptInfoOneOf {
5103
- /** Regular payment details. */
5104
- regularPaymentDetails?: RegularPaymentDetails;
5105
- /** Gift card payment details. */
5106
- giftcardPaymentDetails?: GiftCardPaymentDetails;
4943
+ interface PaymentCapture {
5107
4944
  /**
5108
- * Payment ID.
4945
+ * Payment ID
5109
4946
  * @format GUID
5110
- * @readonly
5111
4947
  */
5112
- _id?: string | null;
5113
- /** Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided. */
5114
- _createdDate?: Date | null;
4948
+ paymentId?: string | null;
5115
4949
  /**
5116
- * Date and time the payment was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
5117
- * @readonly
4950
+ * Capture amount.
4951
+ * If not provided - full authorized amount will be captured.
5118
4952
  */
5119
- _updatedDate?: Date | null;
5120
- /** Payment amount. */
5121
4953
  amount?: Price;
5122
- /**
5123
- * Whether refunds for this payment are disabled.
5124
- * + `true`: This payment is not refundable.
5125
- * + `false`: This payment may be refunded. However, this ultimately depends on the payment provider.
5126
- */
5127
- refundDisabled?: boolean;
5128
- }
5129
- /** @oneof */
5130
- interface PaymentPaymentDetailsOneOf {
5131
- /** Regular payment details. */
5132
- regularPaymentDetails?: RegularPaymentDetails;
5133
- /** Gift card payment details. */
5134
- giftcardPaymentDetails?: GiftCardPaymentDetails;
5135
4954
  }
5136
- /** @oneof */
5137
- interface PaymentReceiptInfoOneOf {
4955
+ interface CaptureAuthorizedPaymentsResponse {
4956
+ /** All order's transactions after the capture was triggered */
4957
+ orderTransactions?: OrderTransactions;
5138
4958
  }
5139
- interface RegularPaymentDetails extends RegularPaymentDetailsPaymentMethodDetailsOneOf {
5140
- /** Credit card details. */
5141
- creditCardDetails?: CreditCardPaymentMethodDetails;
5142
- /**
5143
- * Wix Payments order ID.
5144
- * @maxLength 100
5145
- */
5146
- paymentOrderId?: string | null;
4959
+ interface ChargeSavedPaymentMethodRequest {
5147
4960
  /**
5148
- * Payment gateway's transaction ID.
5149
- * This field is only returned when the value of `offline_payment` is `false`.
4961
+ * Ecom Order ID.
4962
+ * @minLength 1
5150
4963
  * @maxLength 100
5151
4964
  */
5152
- gatewayTransactionId?: string | null;
4965
+ ecomOrderId?: string;
4966
+ /** Amount to be charged */
4967
+ amount?: Price;
4968
+ }
4969
+ interface ChargeSavedPaymentMethodResponse {
4970
+ /** Payment gateway's order ID (e.g Wix Payments) */
4971
+ paymentGatewayOrderId?: string;
4972
+ }
4973
+ interface SendBuyerConfirmationEmailRequest {
4974
+ /** @format GUID */
4975
+ orderId?: string;
4976
+ }
4977
+ interface SendBuyerConfirmationEmailResponse {
4978
+ }
4979
+ interface SendBuyerPaymentsReceivedEmailRequest {
5153
4980
  /**
5154
- * Payment method.
5155
- * Deprecated. Use `paymentMethodName.buyerLanguageName` instead.
5156
- * Non-exhaustive list of supported values:
5157
- * + `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`
4981
+ * @minLength 1
5158
4982
  * @maxLength 100
5159
- * @deprecated Payment method.
5160
- * Deprecated. Use `paymentMethodName.buyerLanguageName` instead.
5161
- * Non-exhaustive list of supported values:
5162
- * + `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`
5163
- * @replacedBy payment_method_name
5164
- * @targetRemovalDate 2026-07-01
5165
4983
  */
5166
- paymentMethod?: string | null;
4984
+ orderId?: string;
4985
+ }
4986
+ interface SendBuyerPaymentsReceivedEmailResponse {
4987
+ }
4988
+ interface SendBuyerPickupConfirmationEmailRequest {
5167
4989
  /**
5168
- * Transaction ID in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for offline payments.
4990
+ * @minLength 1
5169
4991
  * @maxLength 100
5170
4992
  */
5171
- providerTransactionId?: string | null;
5172
- /** Whether the payment was made offline. For example, when using cash or when marked as paid in the Business Manager. */
5173
- offlinePayment?: boolean;
5174
- /** Payment status. */
5175
- status?: TransactionStatusWithLiterals;
4993
+ orderId?: string;
4994
+ }
4995
+ interface SendBuyerPickupConfirmationEmailResponse {
4996
+ }
4997
+ interface BulkSendBuyerPickupConfirmationEmailsRequest {
5176
4998
  /**
5177
- * Whether there is a payment agreement that allows for future charges.
5178
- * @immutable
4999
+ * IDs of orders to send pickup emails for.
5000
+ * @minSize 1
5001
+ * @maxSize 300
5179
5002
  */
5180
- savedPaymentMethod?: boolean;
5181
- /** Authorization details. */
5182
- authorizationDetails?: AuthorizationDetails;
5003
+ orderIds?: string[];
5004
+ }
5005
+ interface BulkSendBuyerPickupConfirmationEmailsResponse {
5006
+ }
5007
+ interface SendBuyerShippingConfirmationEmailRequest {
5183
5008
  /**
5184
- * Record of chargebacks made by the buyer.
5185
- * @maxSize 6
5009
+ * @minLength 1
5010
+ * @maxLength 100
5186
5011
  */
5187
- chargebacks?: Chargeback[];
5188
- /** Platform fee amount associated with this payment. */
5189
- platformFee?: Price;
5012
+ orderId?: string;
5013
+ }
5014
+ interface SendBuyerShippingConfirmationEmailResponse {
5015
+ }
5016
+ interface BulkSendBuyerShippingConfirmationEmailsRequest {
5190
5017
  /**
5191
- * Payment method with buyer and optional owner translations.
5192
- * Non-exhaustive list of supported values:
5193
- * + `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`
5018
+ * IDs of orders to send pickup emails for.
5019
+ * @minSize 1
5020
+ * @maxSize 300
5194
5021
  */
5195
- paymentMethodName?: PaymentMethodName;
5196
- }
5197
- /** @oneof */
5198
- interface RegularPaymentDetailsPaymentMethodDetailsOneOf {
5199
- /** Credit card details. */
5200
- creditCardDetails?: CreditCardPaymentMethodDetails;
5022
+ orderIds?: string[];
5201
5023
  }
5202
- declare enum TransactionStatus {
5203
- UNDEFINED = "UNDEFINED",
5204
- APPROVED = "APPROVED",
5205
- PENDING = "PENDING",
5206
- PENDING_MERCHANT = "PENDING_MERCHANT",
5207
- CANCELED = "CANCELED",
5208
- DECLINED = "DECLINED",
5209
- REFUNDED = "REFUNDED",
5210
- PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
5211
- AUTHORIZED = "AUTHORIZED",
5212
- VOIDED = "VOIDED"
5024
+ interface BulkSendBuyerShippingConfirmationEmailsResponse {
5213
5025
  }
5214
- /** @enumType */
5215
- type TransactionStatusWithLiterals = TransactionStatus | 'UNDEFINED' | 'APPROVED' | 'PENDING' | 'PENDING_MERCHANT' | 'CANCELED' | 'DECLINED' | 'REFUNDED' | 'PARTIALLY_REFUNDED' | 'AUTHORIZED' | 'VOIDED';
5216
- interface CreditCardPaymentMethodDetails {
5026
+ interface SendMerchantOrderReceivedNotificationRequest {
5217
5027
  /**
5218
- * The last 4 digits of the card number.
5219
- * @maxLength 4
5028
+ * @minLength 1
5029
+ * @maxLength 100
5220
5030
  */
5221
- lastFourDigits?: string | null;
5031
+ orderId?: string;
5032
+ }
5033
+ interface SendMerchantOrderReceivedNotificationResponse {
5034
+ }
5035
+ interface SendCancelRefundEmailRequest {
5222
5036
  /**
5223
- * Card issuer's brand.
5037
+ * The ID of order that is canceled/refunded
5038
+ * @minLength 1
5224
5039
  * @maxLength 100
5225
5040
  */
5226
- brand?: string | null;
5227
- }
5228
- interface AuthorizationDetails {
5041
+ orderId?: string;
5229
5042
  /**
5230
- * Whether the authorized payment is of a delayed capture.
5231
- * @readonly
5043
+ * Personal note added to the email (optional)
5044
+ * @minLength 1
5045
+ * @maxLength 1000
5232
5046
  */
5233
- delayedCapture?: boolean;
5234
- /** Date and time the payment was authorized in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
5235
- authorizedDate?: Date | null;
5047
+ customMessage?: string | null;
5048
+ /** Refund amount */
5049
+ refundAmount?: Price;
5236
5050
  /**
5237
- * List of captures associated with payment
5238
- * In case of failed it can be replaced with new one with PENDING or SUCCESS statuses
5239
- * @maxSize 1
5051
+ * Refund ID. (Optional)
5052
+ * @format GUID
5240
5053
  */
5241
- captures?: AuthorizationCapture[];
5242
- /** Void associated with payment */
5243
- void?: AuthorizationVoid;
5244
- /** Scheduled action for this transaction */
5245
- scheduledAction?: V1ScheduledAction;
5054
+ refundId?: string | null;
5246
5055
  }
5247
- interface AuthorizationCapture {
5056
+ interface SendCancelRefundEmailResponse {
5057
+ }
5058
+ interface SendRefundEmailRequest {
5248
5059
  /**
5249
- * Capture ID.
5060
+ * The ID of order that is refunded
5250
5061
  * @format GUID
5251
- * @readonly
5252
5062
  */
5253
- _id?: string | null;
5254
- /** Status of this capture action */
5255
- status?: AuthorizationCaptureStatusWithLiterals;
5063
+ orderId?: string;
5256
5064
  /**
5257
- * Amount of this capture
5258
- * @immutable
5065
+ * Refund ID
5066
+ * @format GUID
5259
5067
  */
5260
- amount?: Price;
5261
- /** Date and time the capture was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
5262
- _createdDate?: Date | null;
5263
- /** In case of status is FAILED may contain failure details */
5264
- failureDetails?: AuthorizationActionFailureDetails;
5068
+ refundId?: string;
5069
+ /**
5070
+ * Personal note added to the email (optional)
5071
+ * @minLength 1
5072
+ * @maxLength 1000
5073
+ */
5074
+ customMessage?: string | null;
5265
5075
  }
5266
- declare enum AuthorizationCaptureStatus {
5267
- /** Capture operation still in progress. */
5268
- PENDING = "PENDING",
5269
- /** Capture operation succeeded. */
5270
- SUCCEEDED = "SUCCEEDED",
5271
- /** Capture operation failed. */
5272
- FAILED = "FAILED"
5076
+ interface SendRefundEmailResponse {
5273
5077
  }
5274
- /** @enumType */
5275
- type AuthorizationCaptureStatusWithLiterals = AuthorizationCaptureStatus | 'PENDING' | 'SUCCEEDED' | 'FAILED';
5276
- interface AuthorizationActionFailureDetails {
5277
- /** @maxLength 100 */
5278
- failureCode?: string;
5078
+ interface SendFulfillmentEmailRequest {
5079
+ /** @format GUID */
5080
+ orderId?: string;
5081
+ /** @format GUID */
5082
+ fulfillerId?: string;
5279
5083
  }
5280
- interface AuthorizationVoid {
5281
- /** Status of this void action */
5282
- status?: AuthorizationVoidStatusWithLiterals;
5283
- /** Date and time the void was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
5284
- voidedDate?: Date | null;
5285
- /** In case of status is FAILED may contain failure details */
5286
- failureDetails?: AuthorizationActionFailureDetails;
5287
- /** Reason of void action */
5288
- reason?: ReasonWithLiterals;
5084
+ interface SendFulfillmentEmailResponse {
5289
5085
  }
5290
- declare enum AuthorizationVoidStatus {
5291
- /** Void operation still in progress. */
5292
- PENDING = "PENDING",
5293
- /** Void operation succeeded. */
5294
- SUCCEEDED = "SUCCEEDED",
5295
- /** Void operation failed. */
5296
- FAILED = "FAILED"
5086
+ interface SendMerchantOrderReceivedPushRequest {
5087
+ /**
5088
+ * @minLength 1
5089
+ * @maxLength 100
5090
+ */
5091
+ orderId?: string;
5297
5092
  }
5298
- /** @enumType */
5299
- type AuthorizationVoidStatusWithLiterals = AuthorizationVoidStatus | 'PENDING' | 'SUCCEEDED' | 'FAILED';
5300
- /** Reason the authorization was voided. */
5301
- declare enum Reason {
5302
- /** Authorization was voided by user. */
5303
- MANUAL = "MANUAL",
5304
- /** Authorization passed execution date. */
5305
- SCHEDULED = "SCHEDULED"
5093
+ interface SendMerchantOrderReceivedPushResponse {
5306
5094
  }
5307
- /** @enumType */
5308
- type ReasonWithLiterals = Reason | 'MANUAL' | 'SCHEDULED';
5309
- interface V1ScheduledAction {
5310
- /** Type of the action. */
5311
- actionType?: ActionTypeWithLiterals;
5312
- /** The date and time of the action. */
5313
- executionDate?: Date | null;
5095
+ interface PreviewEmailByTypeRequest {
5096
+ emailType?: PreviewEmailTypeWithLiterals;
5314
5097
  }
5315
- declare enum ActionType {
5316
- VOID = "VOID",
5317
- CAPTURE = "CAPTURE"
5098
+ declare enum PreviewEmailType {
5099
+ ORDER_PLACED = "ORDER_PLACED",
5100
+ DOWNLOAD_LINKS = "DOWNLOAD_LINKS",
5101
+ ORDER_SHIPPED = "ORDER_SHIPPED",
5102
+ ORDER_READY_FOR_PICKUP = "ORDER_READY_FOR_PICKUP"
5318
5103
  }
5319
5104
  /** @enumType */
5320
- type ActionTypeWithLiterals = ActionType | 'VOID' | 'CAPTURE';
5321
- interface Chargeback {
5322
- /**
5323
- * Chargeback ID.
5324
- * @format GUID
5325
- * @readonly
5326
- * @immutable
5327
- */
5328
- _id?: string;
5329
- /**
5330
- * Date and time the chargeback was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided.
5331
- * @readonly
5332
- * @immutable
5333
- */
5334
- _createdDate?: Date | null;
5335
- /**
5336
- * Date and time the chargeback was updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided.
5337
- * @readonly
5338
- */
5339
- _updatedDate?: Date | null;
5340
- /**
5341
- * Amount.
5342
- * @readonly
5343
- * @immutable
5344
- */
5345
- amount?: Price;
5105
+ type PreviewEmailTypeWithLiterals = PreviewEmailType | 'ORDER_PLACED' | 'DOWNLOAD_LINKS' | 'ORDER_SHIPPED' | 'ORDER_READY_FOR_PICKUP';
5106
+ interface PreviewEmailByTypeResponse {
5107
+ emailPreview?: string;
5108
+ }
5109
+ interface PreviewRefundEmailRequest {
5346
5110
  /**
5347
- * Reversal amount. Present only when status is REVERSED.
5348
- * @readonly
5111
+ * @minLength 1
5112
+ * @maxLength 100
5349
5113
  */
5350
- reversalAmount?: Price;
5114
+ orderId?: string;
5115
+ /** Refund amount */
5116
+ refundAmount?: Price;
5117
+ /** Refund business details */
5118
+ details?: RefundDetails;
5351
5119
  /**
5352
- * Status.
5353
- *
5354
- * Default: `"APPROVED"`.
5120
+ * Personal note added to the email (optional)
5121
+ * @minLength 1
5122
+ * @maxLength 1000
5355
5123
  */
5356
- status?: ChargebackStatusWithLiterals;
5124
+ customMessage?: string | null;
5357
5125
  /**
5358
- * External chargeback ID.
5126
+ * Refund ID. (Optional)
5359
5127
  * @format GUID
5360
- * @readonly
5361
- * @immutable
5362
5128
  */
5363
- externalId?: string | null;
5129
+ refundId?: string | null;
5364
5130
  }
5365
- declare enum ChargebackStatus {
5366
- /** Chargeback was approved. */
5367
- APPROVED = "APPROVED",
5368
- /** Chargeback was reversed. */
5369
- REVERSED = "REVERSED"
5131
+ interface PreviewRefundEmailResponse {
5132
+ emailPreview?: string;
5370
5133
  }
5371
- /** @enumType */
5372
- type ChargebackStatusWithLiterals = ChargebackStatus | 'APPROVED' | 'REVERSED';
5373
- interface PaymentMethodName {
5374
- /**
5375
- * Translated payment method name in buyer language.
5376
- * @maxLength 100
5377
- */
5378
- buyerLanguageName?: string | null;
5134
+ interface PreviewCancelEmailRequest {
5379
5135
  /**
5380
- * Translated payment method name in site owner language.
5136
+ * @minLength 1
5381
5137
  * @maxLength 100
5382
5138
  */
5383
- siteLanguageName?: string | null;
5139
+ orderId?: string;
5384
5140
  /**
5385
- * User-provided payment method name.
5386
- *
5387
- * When set, takes precedence over `buyerLanguageName` and `siteLanguageName`.
5141
+ * Personal note added to the email (optional)
5142
+ * @minLength 1
5143
+ * @maxLength 1000
5388
5144
  */
5389
- userDefinedName?: UserDefinedPaymentMethodName;
5145
+ customMessage?: string | null;
5390
5146
  }
5391
- interface GiftCardPaymentDetails {
5147
+ interface PreviewCancelEmailResponse {
5148
+ emailPreview?: string;
5149
+ }
5150
+ interface PreviewCancelRefundEmailRequest {
5392
5151
  /**
5393
- * Gift card payment ID.
5394
5152
  * @minLength 1
5395
5153
  * @maxLength 100
5396
5154
  */
5397
- giftCardPaymentId?: string;
5155
+ orderId?: string;
5398
5156
  /**
5399
- * ID of the app that created the gift card.
5400
- * @format GUID
5157
+ * Personal note added to the email (optional)
5158
+ * @minLength 1
5159
+ * @maxLength 1000
5401
5160
  */
5402
- appId?: string;
5161
+ customMessage?: string | null;
5162
+ /** Refund amount */
5163
+ refundAmount?: Price;
5403
5164
  /**
5404
- * Whether the gift card is voided.
5405
- * @readonly
5165
+ * Refund ID. (Optional)
5166
+ * @format GUID
5406
5167
  */
5407
- voided?: boolean;
5168
+ refundId?: string | null;
5408
5169
  }
5409
- interface MembershipPaymentDetails {
5170
+ interface PreviewCancelRefundEmailResponse {
5171
+ emailPreview?: string;
5172
+ }
5173
+ interface PreviewBuyerPaymentsReceivedEmailRequest {
5174
+ }
5175
+ interface PreviewBuyerPaymentsReceivedEmailResponse {
5176
+ emailPreview?: string;
5177
+ }
5178
+ interface PreviewBuyerConfirmationEmailRequest {
5179
+ }
5180
+ interface PreviewBuyerConfirmationEmailResponse {
5181
+ emailPreview?: string;
5182
+ }
5183
+ interface PreviewBuyerPickupConfirmationEmailRequest {
5184
+ }
5185
+ interface PreviewBuyerPickupConfirmationEmailResponse {
5186
+ emailPreview?: string;
5187
+ }
5188
+ interface PreviewShippingConfirmationEmailRequest {
5189
+ }
5190
+ interface PreviewShippingConfirmationEmailResponse {
5191
+ emailPreview?: string;
5192
+ }
5193
+ interface PreviewResendDownloadLinksEmailRequest {
5194
+ }
5195
+ interface PreviewResendDownloadLinksEmailResponse {
5196
+ emailPreview?: string;
5197
+ }
5198
+ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
5199
+ /** Emitted on a meta site creation. */
5200
+ siteCreated?: SiteCreated;
5201
+ /** Emitted on a meta site transfer completion. */
5202
+ siteTransferred?: SiteTransferred;
5203
+ /** Emitted on a meta site deletion. */
5204
+ siteDeleted?: SiteDeleted;
5205
+ /** Emitted on a meta site restoration. */
5206
+ siteUndeleted?: SiteUndeleted;
5207
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
5208
+ sitePublished?: SitePublished;
5209
+ /** Emitted on a meta site unpublish. */
5210
+ siteUnpublished?: SiteUnpublished;
5211
+ /** Emitted when meta site is marked as template. */
5212
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
5213
+ /** Emitted when meta site is marked as a WixSite. */
5214
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
5215
+ /** Emitted when an application is provisioned (installed). */
5216
+ serviceProvisioned?: ServiceProvisioned;
5217
+ /** Emitted when an application is removed (uninstalled). */
5218
+ serviceRemoved?: ServiceRemoved;
5219
+ /** Emitted when meta site name (URL slug) is changed. */
5220
+ siteRenamedPayload?: SiteRenamed;
5221
+ /** Emitted when meta site was permanently deleted. */
5222
+ hardDeleted?: SiteHardDeleted;
5223
+ /** Emitted on a namespace change. */
5224
+ namespaceChanged?: NamespaceChanged;
5225
+ /** Emitted when Studio is attached. */
5226
+ studioAssigned?: StudioAssigned;
5227
+ /** Emitted when Studio is detached. */
5228
+ studioUnassigned?: StudioUnassigned;
5410
5229
  /**
5411
- * Membership ID.
5412
- * @minLength 1
5413
- * @maxLength 100
5230
+ * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
5231
+ * the actual URL.
5232
+ *
5233
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
5234
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
5414
5235
  */
5415
- membershipId?: string;
5236
+ urlChanged?: SiteUrlChanged;
5237
+ /** Site is marked as PurgedExternally */
5238
+ sitePurgedExternally?: SitePurgedExternally;
5239
+ /** Emitted when Odeditor is attached. */
5240
+ odeditorAssigned?: OdeditorAssigned;
5241
+ /** Emitted when Odeditor is detached. */
5242
+ odeditorUnassigned?: OdeditorUnassigned;
5243
+ /** Emitted when Picasso is attached. */
5244
+ picassoAssigned?: PicassoAssigned;
5245
+ /** Emitted when Picasso is detached. */
5246
+ picassoUnassigned?: PicassoUnassigned;
5247
+ /** Emitted when Wixel is attached. */
5248
+ wixelAssigned?: WixelAssigned;
5249
+ /** Emitted when Wixel is detached. */
5250
+ wixelUnassigned?: WixelUnassigned;
5251
+ /** Emitted when StudioTwo is attached. */
5252
+ studioTwoAssigned?: StudioTwoAssigned;
5253
+ /** Emitted when StudioTwo is detached. */
5254
+ studioTwoUnassigned?: StudioTwoUnassigned;
5255
+ /** Emitted when media from user domain is enabled. */
5256
+ userDomainMediaEnabled?: UserDomainMediaEnabled;
5257
+ /** Emitted when media from user domain is disabled. */
5258
+ userDomainMediaDisabled?: UserDomainMediaDisabled;
5259
+ /** Emitted when Editorless is attached. */
5260
+ editorlessAssigned?: EditorlessAssigned;
5261
+ /** Emitted when Editorless is detached. */
5262
+ editorlessUnassigned?: EditorlessUnassigned;
5416
5263
  /**
5417
- * ID of the line item this membership applies to.
5418
- * @minLength 1
5419
- * @maxLength 100
5264
+ * A meta site id.
5265
+ * @format GUID
5420
5266
  */
5421
- lineItemId?: string;
5422
- /** Payment status. */
5423
- status?: MembershipPaymentStatusWithLiterals;
5424
- /** Membership name. */
5425
- name?: MembershipName;
5267
+ metaSiteId?: string;
5268
+ /** A meta site version. Monotonically increasing. */
5269
+ version?: string;
5270
+ /** A timestamp of the event. */
5271
+ timestamp?: string;
5426
5272
  /**
5427
- * The transaction ID in the membership system. Can be used to void the transaction.
5428
- * @minLength 1
5429
- * @maxLength 100
5273
+ * TODO(meta-site): Change validation once validations are disabled for consumers
5274
+ * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
5275
+ * @maxSize 4000
5430
5276
  */
5431
- externalTransactionId?: string | null;
5277
+ assets?: Asset[];
5278
+ }
5279
+ /** @oneof */
5280
+ interface MetaSiteSpecialEventPayloadOneOf {
5281
+ /** Emitted on a meta site creation. */
5282
+ siteCreated?: SiteCreated;
5283
+ /** Emitted on a meta site transfer completion. */
5284
+ siteTransferred?: SiteTransferred;
5285
+ /** Emitted on a meta site deletion. */
5286
+ siteDeleted?: SiteDeleted;
5287
+ /** Emitted on a meta site restoration. */
5288
+ siteUndeleted?: SiteUndeleted;
5289
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
5290
+ sitePublished?: SitePublished;
5291
+ /** Emitted on a meta site unpublish. */
5292
+ siteUnpublished?: SiteUnpublished;
5293
+ /** Emitted when meta site is marked as template. */
5294
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
5295
+ /** Emitted when meta site is marked as a WixSite. */
5296
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
5297
+ /** Emitted when an application is provisioned (installed). */
5298
+ serviceProvisioned?: ServiceProvisioned;
5299
+ /** Emitted when an application is removed (uninstalled). */
5300
+ serviceRemoved?: ServiceRemoved;
5301
+ /** Emitted when meta site name (URL slug) is changed. */
5302
+ siteRenamedPayload?: SiteRenamed;
5303
+ /** Emitted when meta site was permanently deleted. */
5304
+ hardDeleted?: SiteHardDeleted;
5305
+ /** Emitted on a namespace change. */
5306
+ namespaceChanged?: NamespaceChanged;
5307
+ /** Emitted when Studio is attached. */
5308
+ studioAssigned?: StudioAssigned;
5309
+ /** Emitted when Studio is detached. */
5310
+ studioUnassigned?: StudioUnassigned;
5432
5311
  /**
5433
- * Whether the membership is voided.
5434
- * @readonly
5312
+ * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
5313
+ * the actual URL.
5314
+ *
5315
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
5316
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
5435
5317
  */
5436
- voided?: boolean;
5318
+ urlChanged?: SiteUrlChanged;
5319
+ /** Site is marked as PurgedExternally */
5320
+ sitePurgedExternally?: SitePurgedExternally;
5321
+ /** Emitted when Odeditor is attached. */
5322
+ odeditorAssigned?: OdeditorAssigned;
5323
+ /** Emitted when Odeditor is detached. */
5324
+ odeditorUnassigned?: OdeditorUnassigned;
5325
+ /** Emitted when Picasso is attached. */
5326
+ picassoAssigned?: PicassoAssigned;
5327
+ /** Emitted when Picasso is detached. */
5328
+ picassoUnassigned?: PicassoUnassigned;
5329
+ /** Emitted when Wixel is attached. */
5330
+ wixelAssigned?: WixelAssigned;
5331
+ /** Emitted when Wixel is detached. */
5332
+ wixelUnassigned?: WixelUnassigned;
5333
+ /** Emitted when StudioTwo is attached. */
5334
+ studioTwoAssigned?: StudioTwoAssigned;
5335
+ /** Emitted when StudioTwo is detached. */
5336
+ studioTwoUnassigned?: StudioTwoUnassigned;
5337
+ /** Emitted when media from user domain is enabled. */
5338
+ userDomainMediaEnabled?: UserDomainMediaEnabled;
5339
+ /** Emitted when media from user domain is disabled. */
5340
+ userDomainMediaDisabled?: UserDomainMediaDisabled;
5341
+ /** Emitted when Editorless is attached. */
5342
+ editorlessAssigned?: EditorlessAssigned;
5343
+ /** Emitted when Editorless is detached. */
5344
+ editorlessUnassigned?: EditorlessUnassigned;
5345
+ }
5346
+ interface Asset {
5437
5347
  /**
5438
- * ID of the application providing this payment option.
5439
- * @format GUID
5348
+ * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
5349
+ * @maxLength 36
5440
5350
  */
5441
- providerAppId?: string;
5351
+ appDefId?: string;
5352
+ /**
5353
+ * An instance id. For legacy reasons may be UUID or a string.
5354
+ * @maxLength 200
5355
+ */
5356
+ instanceId?: string;
5357
+ /** An application state. */
5358
+ state?: StateWithLiterals;
5442
5359
  }
5443
- declare enum MembershipPaymentStatus {
5444
- /** Payment was charged. */
5445
- CHARGED = "CHARGED",
5446
- /** The attempt to charge the payment failed, for example, due to lack of credits. */
5447
- CHARGE_FAILED = "CHARGE_FAILED",
5448
- /** Payment is pending. */
5449
- CHARGE_PENDING = "CHARGE_PENDING",
5450
- /** Payment was voided. */
5451
- VOIDED = "VOIDED"
5360
+ declare enum State {
5361
+ UNKNOWN = "UNKNOWN",
5362
+ ENABLED = "ENABLED",
5363
+ DISABLED = "DISABLED",
5364
+ PENDING = "PENDING",
5365
+ DEMO = "DEMO"
5452
5366
  }
5453
5367
  /** @enumType */
5454
- type MembershipPaymentStatusWithLiterals = MembershipPaymentStatus | 'CHARGED' | 'CHARGE_FAILED' | 'CHARGE_PENDING' | 'VOIDED';
5455
- interface WixReceiptInfo {
5456
- /**
5457
- * Receipt ID
5458
- * @format GUID
5459
- */
5460
- receiptId?: string;
5368
+ type StateWithLiterals = State | 'UNKNOWN' | 'ENABLED' | 'DISABLED' | 'PENDING' | 'DEMO';
5369
+ interface SiteCreated {
5461
5370
  /**
5462
- * Display number of receipt
5463
- * @minLength 1
5464
- * @maxLength 40
5371
+ * A template identifier (empty if not created from a template).
5372
+ * @maxLength 36
5465
5373
  */
5466
- displayNumber?: string | null;
5467
- }
5468
- interface ExternalReceiptInfo {
5374
+ originTemplateId?: string;
5469
5375
  /**
5470
- * External receipt ID
5471
- * @maxLength 100
5376
+ * An account id of the owner.
5377
+ * @format GUID
5472
5378
  */
5473
- receiptId?: string | null;
5379
+ ownerId?: string;
5380
+ /** A context in which meta site was created. */
5381
+ context?: SiteCreatedContextWithLiterals;
5474
5382
  /**
5475
- * ID of the app providing the receipt
5383
+ * A meta site id from which this site was created.
5384
+ *
5385
+ * In case of a creation from a template it's a template id.
5386
+ * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
5476
5387
  * @format GUID
5477
5388
  */
5478
- appId?: string | null;
5389
+ originMetaSiteId?: string | null;
5479
5390
  /**
5480
- * Display number of receipt
5481
- * @minLength 1
5482
- * @maxLength 40
5391
+ * A meta site name (URL slug).
5392
+ * @maxLength 20
5483
5393
  */
5484
- displayNumber?: string | null;
5485
- }
5486
- interface CashRoundingDetails {
5394
+ siteName?: string;
5395
+ /** A namespace. */
5396
+ namespace?: NamespaceWithLiterals;
5487
5397
  }
5488
- declare enum PaymentStatus {
5489
- APPROVED = "APPROVED",
5490
- PENDING = "PENDING",
5491
- PENDING_MERCHANT = "PENDING_MERCHANT",
5492
- CANCELED = "CANCELED",
5493
- DECLINED = "DECLINED",
5494
- REFUNDED = "REFUNDED",
5495
- PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
5496
- AUTHORIZED = "AUTHORIZED",
5497
- VOIDED = "VOIDED"
5398
+ declare enum SiteCreatedContext {
5399
+ /** A valid option, we don't expose all reasons why site might be created. */
5400
+ OTHER = "OTHER",
5401
+ /** A meta site was created from template. */
5402
+ FROM_TEMPLATE = "FROM_TEMPLATE",
5403
+ /** A meta site was created by copying of the transfferred meta site. */
5404
+ DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
5405
+ /** A copy of existing meta site. */
5406
+ DUPLICATE = "DUPLICATE",
5407
+ /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
5408
+ OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
5409
+ /** deprecated A meta site was created for Flash editor. */
5410
+ FLASH = "FLASH"
5498
5411
  }
5499
5412
  /** @enumType */
5500
- type PaymentStatusWithLiterals = PaymentStatus | 'APPROVED' | 'PENDING' | 'PENDING_MERCHANT' | 'CANCELED' | 'DECLINED' | 'REFUNDED' | 'PARTIALLY_REFUNDED' | 'AUTHORIZED' | 'VOIDED';
5501
- interface Refund {
5502
- /**
5503
- * Refund ID.
5504
- * @format GUID
5505
- * @readonly
5506
- */
5507
- _id?: string;
5413
+ type SiteCreatedContextWithLiterals = SiteCreatedContext | 'OTHER' | 'FROM_TEMPLATE' | 'DUPLICATE_BY_SITE_TRANSFER' | 'DUPLICATE' | 'OLD_SITE_TRANSFER' | 'FLASH';
5414
+ declare enum Namespace {
5415
+ UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
5416
+ /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
5417
+ WIX = "WIX",
5418
+ /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
5419
+ SHOUT_OUT = "SHOUT_OUT",
5420
+ /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
5421
+ ALBUMS = "ALBUMS",
5422
+ /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
5423
+ WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
5424
+ /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
5425
+ HOTELS = "HOTELS",
5426
+ /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
5427
+ CLUBS = "CLUBS",
5428
+ /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
5429
+ ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
5430
+ /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
5431
+ DEV_SITE = "DEV_SITE",
5432
+ /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
5433
+ LOGOS = "LOGOS",
5434
+ /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
5435
+ VIDEO_MAKER = "VIDEO_MAKER",
5436
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
5437
+ PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
5438
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
5439
+ DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
5508
5440
  /**
5509
- * List of transactions.
5510
- * @maxSize 50
5441
+ * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
5442
+ *
5443
+ * Meta site with this namespace will *not* be shown in a user's site list by default.
5511
5444
  */
5512
- transactions?: RefundTransaction[];
5513
- /** Refund business details. */
5514
- details?: RefundDetails;
5445
+ HTML_DRAFT = "HTML_DRAFT",
5515
5446
  /**
5516
- * Date and time the refund was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided.
5517
- * @readonly
5518
- * @immutable
5447
+ * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
5448
+ * Will be accessible from Site List and will not have a website app.
5449
+ * Once the user attaches a site, the site will become a regular wixsite.
5519
5450
  */
5520
- _createdDate?: Date | null;
5451
+ SITELESS_BUSINESS = "SITELESS_BUSINESS",
5452
+ /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
5453
+ CREATOR_ECONOMY = "CREATOR_ECONOMY",
5454
+ /** It is to be used in the Business First efforts. */
5455
+ DASHBOARD_FIRST = "DASHBOARD_FIRST",
5456
+ /** Bookings business flow with no site. */
5457
+ ANYWHERE = "ANYWHERE",
5458
+ /** Namespace for Headless Backoffice with no editor */
5459
+ HEADLESS = "HEADLESS",
5521
5460
  /**
5522
- * Aggregated refund summary.
5523
- * @readonly
5461
+ * Namespace for master site that will exist in parent account that will be referenced by subaccounts
5462
+ * The site will be used for account level CSM feature for enterprise
5524
5463
  */
5525
- summary?: AggregatedRefundSummary;
5464
+ ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
5465
+ /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
5466
+ RISE = "RISE",
5526
5467
  /**
5527
- * ID of the app that initiated this refund.
5528
- * @format GUID
5529
- * @readonly
5530
- * @immutable
5468
+ * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
5469
+ * There's a blank site behind the scene but it's blank).
5470
+ * The Mobile company will be the owner of this namespace.
5531
5471
  */
5532
- requestingServiceAppId?: string | null;
5533
- }
5534
- interface RefundTransaction {
5472
+ BRANDED_FIRST = "BRANDED_FIRST",
5473
+ /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
5474
+ NOWNIA = "NOWNIA",
5535
5475
  /**
5536
- * ID of the payment associated with this refund.
5537
- * @format GUID
5538
- * @immutable
5476
+ * UGC Templates are templates that are created by users for personal use and to sale to other users.
5477
+ * The Partners company owns this namespace.
5539
5478
  */
5540
- paymentId?: string;
5479
+ UGC_TEMPLATE = "UGC_TEMPLATE",
5480
+ /** Codux Headless Sites */
5481
+ CODUX = "CODUX",
5482
+ /** Bobb - AI Design Creator. */
5483
+ MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
5541
5484
  /**
5542
- * Refund amount.
5543
- * @immutable
5485
+ * Shared Blog Site is a unique single site across Enterprise account,
5486
+ * This site will hold all Blog posts related to the Marketing product.
5544
5487
  */
5545
- amount?: Price;
5546
- /** Refund status. */
5547
- refundStatus?: RefundStatusWithLiterals;
5548
- /** Optional details of current refund status. */
5549
- refundStatusInfo?: RefundStatusInfo;
5488
+ SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE",
5489
+ /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
5490
+ STANDALONE_FORMS = "STANDALONE_FORMS",
5491
+ /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
5492
+ STANDALONE_EVENTS = "STANDALONE_EVENTS",
5493
+ /** MIMIR - Siteless account for MIMIR Ai Job runner. */
5494
+ MIMIR = "MIMIR",
5495
+ /** Wix Twins platform. */
5496
+ TWINS = "TWINS",
5497
+ /** Wix Nano. */
5498
+ NANO = "NANO",
5499
+ /** Base44 headless sites. */
5500
+ BASE44 = "BASE44",
5501
+ /** Wix Channels Sites */
5502
+ CHANNELS = "CHANNELS"
5503
+ }
5504
+ /** @enumType */
5505
+ type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR' | 'TWINS' | 'NANO' | 'BASE44' | 'CHANNELS';
5506
+ /** Site transferred to another user. */
5507
+ interface SiteTransferred {
5550
5508
  /**
5551
- * Payment gateway's refund ID.
5552
- * This field is only returned when the value of `external_refund` is `false`.
5509
+ * A previous owner id (user that transfers meta site).
5553
5510
  * @format GUID
5554
5511
  */
5555
- gatewayRefundId?: string | null;
5556
- /** ID of the refund in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for external refunds. */
5557
- providerRefundId?: string | null;
5512
+ oldOwnerId?: string;
5558
5513
  /**
5559
- * Whether refund was made externally and manually on the payment provider's side.
5560
- * @immutable
5514
+ * A new owner id (user that accepts meta site).
5515
+ * @format GUID
5561
5516
  */
5562
- externalRefund?: boolean;
5517
+ newOwnerId?: string;
5563
5518
  }
5564
- /** Refund transaction status. */
5565
- declare enum RefundStatus {
5566
- /** Refund was initiated on payment provider side. PENDING status was assigned by provider. */
5567
- PENDING = "PENDING",
5568
- /** Refund transaction succeeded. */
5569
- SUCCEEDED = "SUCCEEDED",
5570
- /** Refund transaction failed. */
5571
- FAILED = "FAILED",
5572
- /** Refund request acknowledged, and will be executed soon. */
5573
- SCHEDULED = "SCHEDULED",
5574
- /** Refund was initiated on payment provider side. */
5575
- STARTED = "STARTED"
5519
+ /** Soft deletion of the meta site. Could be restored. */
5520
+ interface SiteDeleted {
5521
+ /** A deletion context. */
5522
+ deleteContext?: DeleteContext;
5576
5523
  }
5577
- /** @enumType */
5578
- type RefundStatusWithLiterals = RefundStatus | 'PENDING' | 'SUCCEEDED' | 'FAILED' | 'SCHEDULED' | 'STARTED';
5579
- interface RefundStatusInfo {
5524
+ interface DeleteContext {
5525
+ /** When the meta site was deleted. */
5526
+ dateDeleted?: Date | null;
5527
+ /** A status. */
5528
+ deleteStatus?: DeleteStatusWithLiterals;
5580
5529
  /**
5581
- * Reason code for the refund's current status.
5582
- *
5583
- * Learn more about [reason codes](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes).
5584
- * @minLength 1
5585
- * @maxLength 10
5530
+ * A reason (flow).
5531
+ * @maxLength 255
5586
5532
  */
5587
- paymentGatewayReasonCode?: string | null;
5533
+ deleteOrigin?: string;
5588
5534
  /**
5589
- * Free text explanation of current refund status.
5590
- * @minLength 1
5591
- * @maxLength 1000
5535
+ * A service that deleted it.
5536
+ * @maxLength 255
5592
5537
  */
5593
- description?: string | null;
5538
+ initiatorId?: string | null;
5594
5539
  }
5595
- interface AggregatedRefundSummary {
5596
- /** Total amount requested for refund. */
5597
- requestedRefund?: Price;
5598
- /** Pending refund amount - the portion of `requestedRefund` that is still pending. */
5599
- pendingRefund?: Price;
5600
- /** Refunded amount - the portion of `requestedRefund` that refunded successfully. */
5601
- refunded?: Price;
5602
- /** Failed refund amount - the portion of `requestedRefund` that failed. */
5603
- failedRefundAmount?: Price;
5604
- /** Whether at least one refund transaction is still in `"PENDING"` status. */
5605
- pending?: boolean;
5606
- /** Breakdown of refunded items. Available only after refund is complete. */
5607
- breakdown?: RefundItemsBreakdown;
5540
+ declare enum DeleteStatus {
5541
+ UNKNOWN = "UNKNOWN",
5542
+ TRASH = "TRASH",
5543
+ DELETED = "DELETED",
5544
+ PENDING_PURGE = "PENDING_PURGE",
5545
+ PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
5608
5546
  }
5609
- interface RefundItemsBreakdown {
5610
- /**
5611
- * Refunded line items and the amount refunded for each.
5612
- * @maxSize 300
5613
- */
5614
- lineItems?: LineItemRefundSummary[];
5547
+ /** @enumType */
5548
+ type DeleteStatusWithLiterals = DeleteStatus | 'UNKNOWN' | 'TRASH' | 'DELETED' | 'PENDING_PURGE' | 'PURGED_EXTERNALLY';
5549
+ /** Restoration of the meta site. */
5550
+ interface SiteUndeleted {
5615
5551
  }
5616
- interface LineItemRefundSummary {
5617
- /**
5618
- * ID of the refunded line item.
5619
- * @format GUID
5620
- */
5621
- lineItemId?: string;
5622
- /** Total refunded amount for the line item. */
5623
- totalRefundedAmount?: Price;
5552
+ /** First publish of a meta site. Or subsequent publish after unpublish. */
5553
+ interface SitePublished {
5624
5554
  }
5625
- interface CalculateRefundRequest {
5555
+ interface SiteUnpublished {
5626
5556
  /**
5627
- * Order ID
5628
- * @minLength 1
5629
- * @maxLength 100
5557
+ * A list of URLs previously associated with the meta site.
5558
+ * @maxLength 4000
5559
+ * @maxSize 10000
5630
5560
  */
5631
- ecomOrderId?: string;
5561
+ urls?: string[];
5562
+ }
5563
+ interface SiteMarkedAsTemplate {
5564
+ }
5565
+ interface SiteMarkedAsWixSite {
5566
+ }
5567
+ /**
5568
+ * Represents a service provisioned a site.
5569
+ *
5570
+ * Note on `origin_instance_id`:
5571
+ * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
5572
+ * This is because of the following scenario:
5573
+ *
5574
+ * Imagine you have a template where a third-party application (TPA) includes some stub data,
5575
+ * such as a product catalog. When you create a site from this template, you inherit this
5576
+ * default product catalog. However, if the template's product catalog is modified,
5577
+ * your site will retain the catalog as it was at the time of site creation. This ensures that
5578
+ * your site remains consistent with what you initially received and does not include any
5579
+ * changes made to the original template afterward.
5580
+ * To ensure this, the TPA on the template gets a new instance_id.
5581
+ */
5582
+ interface ServiceProvisioned {
5632
5583
  /**
5633
- * Refunded line items and quantity
5634
- * @maxSize 300
5584
+ * Either UUID or EmbeddedServiceType.
5585
+ * @maxLength 36
5635
5586
  */
5636
- refundItems?: CalculateRefundItemRequest[];
5637
- /** Should include shipping in refund calculation */
5638
- refundShipping?: boolean;
5639
- }
5640
- interface CalculateRefundItemRequest {
5587
+ appDefId?: string;
5641
5588
  /**
5642
- * ID of the line item being refunded
5643
- * @format GUID
5589
+ * Not only UUID. Something here could be something weird.
5590
+ * @maxLength 36
5644
5591
  */
5645
- _id?: string;
5592
+ instanceId?: string;
5646
5593
  /**
5647
- * How much of that line item is being refunded
5648
- * @min 1
5649
- * @max 100000
5594
+ * An instance id from which this instance is originated.
5595
+ * @maxLength 36
5650
5596
  */
5651
- quantity?: number;
5652
- }
5653
- interface CalculateRefundResponse {
5654
- /** Total refundable amount */
5655
- total?: Price;
5656
- /** Tax cost of the order */
5657
- tax?: Price;
5658
- /** Discount given for this order */
5659
- discount?: Price;
5660
- /** Total cost of the order (without tax) */
5661
- subtotal?: Price;
5662
- /** Total shipping cost for order */
5663
- shipping?: Price;
5664
- /** Previous refund given on that order */
5665
- previouslyRefundedAmount?: Price;
5597
+ originInstanceId?: string;
5666
5598
  /**
5667
- * The refundable items of that order
5668
- * @maxSize 300
5599
+ * A version.
5600
+ * @maxLength 500
5669
5601
  */
5670
- items?: CalculateRefundItemResponse[];
5671
- }
5672
- interface CalculateRefundItemResponse {
5602
+ version?: string | null;
5673
5603
  /**
5674
- * Line item ID
5604
+ * The origin meta site id
5675
5605
  * @format GUID
5676
5606
  */
5677
- _id?: string;
5678
- /** Refundable amount for requested quantity of items (price of requested quantity of items without tax and discount) */
5679
- price?: Price;
5607
+ originMetaSiteId?: string | null;
5680
5608
  }
5681
- interface VoidAuthorizedPaymentsRequest {
5682
- /**
5683
- * Wix eCommerce order ID
5684
- * @minLength 1
5685
- * @maxLength 100
5686
- */
5687
- ecomOrderId: string;
5609
+ interface ServiceRemoved {
5688
5610
  /**
5689
- * Payment IDs
5690
- * @minSize 1
5691
- * @maxSize 100
5692
- * @format GUID
5611
+ * Either UUID or EmbeddedServiceType.
5612
+ * @maxLength 36
5693
5613
  */
5694
- paymentIds: string[];
5695
- }
5696
- interface VoidAuthorizedPaymentsResponse {
5697
- /** All order's transactions after the void was triggered */
5698
- orderTransactions?: OrderTransactions;
5699
- }
5700
- interface CaptureAuthorizedPaymentsRequest {
5614
+ appDefId?: string;
5701
5615
  /**
5702
- * Wix eCommerce order ID
5703
- * @minLength 1
5704
- * @maxLength 100
5616
+ * Not only UUID. Something here could be something weird.
5617
+ * @maxLength 36
5705
5618
  */
5706
- ecomOrderId: string;
5619
+ instanceId?: string;
5707
5620
  /**
5708
- * Capture payments information
5709
- * @minSize 1
5710
- * @maxSize 100
5621
+ * A version.
5622
+ * @maxLength 500
5711
5623
  */
5712
- payments: PaymentCapture[];
5624
+ version?: string | null;
5713
5625
  }
5714
- interface PaymentCapture {
5626
+ /** Rename of the site. Meaning, free public url has been changed as well. */
5627
+ interface SiteRenamed {
5715
5628
  /**
5716
- * Payment ID
5717
- * @format GUID
5629
+ * A new meta site name (URL slug).
5630
+ * @maxLength 20
5718
5631
  */
5719
- paymentId?: string | null;
5632
+ newSiteName?: string;
5720
5633
  /**
5721
- * Capture amount.
5722
- * If not provided - full authorized amount will be captured.
5634
+ * A previous meta site name (URL slug).
5635
+ * @maxLength 255
5723
5636
  */
5724
- amount?: Price;
5637
+ oldSiteName?: string;
5725
5638
  }
5726
- interface CaptureAuthorizedPaymentsResponse {
5727
- /** All order's transactions after the capture was triggered */
5728
- orderTransactions?: OrderTransactions;
5639
+ /**
5640
+ * Hard deletion of the meta site.
5641
+ *
5642
+ * Could not be restored. Therefore it's desirable to cleanup data.
5643
+ */
5644
+ interface SiteHardDeleted {
5645
+ /** A deletion context. */
5646
+ deleteContext?: DeleteContext;
5729
5647
  }
5730
- interface ChargeSavedPaymentMethodRequest {
5648
+ interface NamespaceChanged {
5649
+ /** A previous namespace. */
5650
+ oldNamespace?: NamespaceWithLiterals;
5651
+ /** A new namespace. */
5652
+ newNamespace?: NamespaceWithLiterals;
5653
+ }
5654
+ /** Assigned Studio editor */
5655
+ interface StudioAssigned {
5656
+ }
5657
+ /** Unassigned Studio editor */
5658
+ interface StudioUnassigned {
5659
+ }
5660
+ /**
5661
+ * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.
5662
+ *
5663
+ * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up
5664
+ * with sites and its urls, you need to listen to another topic/event. Read about it:
5665
+ *
5666
+ * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service
5667
+ */
5668
+ interface SiteUrlChanged {
5669
+ }
5670
+ /**
5671
+ * Used at the end of the deletion flow for both draft sites and when a user deletes a site.
5672
+ * Consumed by other teams to remove relevant data.
5673
+ */
5674
+ interface SitePurgedExternally {
5731
5675
  /**
5732
- * Ecom Order ID.
5733
- * @minLength 1
5734
- * @maxLength 100
5676
+ * @maxLength 2048
5677
+ * @maxSize 100
5678
+ * @deprecated
5679
+ * @targetRemovalDate 2025-04-15
5735
5680
  */
5736
- ecomOrderId?: string;
5737
- /** Amount to be charged */
5738
- amount?: Price;
5681
+ appDefId?: string[];
5739
5682
  }
5740
- interface ChargeSavedPaymentMethodResponse {
5741
- /** Payment gateway's order ID (e.g Wix Payments) */
5742
- paymentGatewayOrderId?: string;
5683
+ /** Assigned Odeditor */
5684
+ interface OdeditorAssigned {
5685
+ }
5686
+ /** Unassigned Odeditor */
5687
+ interface OdeditorUnassigned {
5688
+ }
5689
+ /** Assigned Picasso editor */
5690
+ interface PicassoAssigned {
5691
+ }
5692
+ /** Unassigned Picasso */
5693
+ interface PicassoUnassigned {
5694
+ }
5695
+ /** Assigned Wixel */
5696
+ interface WixelAssigned {
5697
+ }
5698
+ /** Unassigned Wixel */
5699
+ interface WixelUnassigned {
5700
+ }
5701
+ /** Assigned StudioTwo */
5702
+ interface StudioTwoAssigned {
5703
+ }
5704
+ /** Unassigned StudioTwo */
5705
+ interface StudioTwoUnassigned {
5706
+ }
5707
+ /** Media from user domain is enabled. */
5708
+ interface UserDomainMediaEnabled {
5709
+ }
5710
+ /** Media from user domain is disabled. */
5711
+ interface UserDomainMediaDisabled {
5712
+ }
5713
+ /** Assigned Editorless */
5714
+ interface EditorlessAssigned {
5715
+ }
5716
+ /** Unassigned Editorless */
5717
+ interface EditorlessUnassigned {
5718
+ }
5719
+ interface HasCustomEmailConfigurationsRequest {
5720
+ }
5721
+ interface HasCustomEmailConfigurationsResponse {
5722
+ hasCustomConfigurations?: boolean;
5723
+ }
5724
+ interface AddToAutomationMigrationPopulationRequest {
5725
+ /** When true, sends custom email configurations to automation system via email */
5726
+ sendCustomEmailConfigs?: boolean;
5727
+ /** Origin of the migration request. Defaults to OPT_IN when UNKNOWN_ORIGIN. */
5728
+ origin?: OriginWithLiterals;
5729
+ }
5730
+ declare enum Origin {
5731
+ OPT_IN = "OPT_IN",
5732
+ MIGRATION = "MIGRATION"
5733
+ }
5734
+ /** @enumType */
5735
+ type OriginWithLiterals = Origin | 'OPT_IN' | 'MIGRATION';
5736
+ interface AddToAutomationMigrationPopulationResponse {
5737
+ success?: boolean;
5738
+ }
5739
+ interface IsInAutomationMigrationPopulationRequest {
5740
+ }
5741
+ interface IsInAutomationMigrationPopulationResponse {
5742
+ inPopulation?: boolean;
5743
5743
  }
5744
5744
  interface DiffmatokyPayload {
5745
5745
  left?: string;
@@ -8704,4 +8704,4 @@ interface BulkUpdateOrderTagsOptions {
8704
8704
  unassignTags?: TagsTags;
8705
8705
  }
8706
8706
 
8707
- export { OrderActivityTypeEnumActivityType as $, type AddActivitiesOptions as A, type BulkUpdateOrdersOptions as B, type CaptureAuthorizedPaymentsResponse as C, DescriptionLineType as D, PaymentOptionType as E, SubscriptionFrequency as F, type GetPaymentCollectabilityStatusResponse as G, AdjustmentType as H, ItemTypePreset as I, JurisdictionType as J, PaymentStatusEnumPaymentStatus as K, FulfillmentStatus as L, type MaskedOrder as M, VatType as N, type Order as O, type Price as P, PickupMethod as Q, OrderStatus as R, type SearchOrdersResponse as S, TaxableAddressType as T, type UpdateOrder as U, type VoidAuthorizedPaymentsResponse as V, WeightUnit as W, DiscountType as X, DiscountReason as Y, LineItemQuantityChangeType as Z, ActivityType as _, type PreparePaymentCollectionOptions as a, type SubscriptionDescription as a$, AttributionSource as a0, ChannelType as a1, AdditionalFeeSource as a2, OrderActionType as a3, SpecificItemsCouponBehavior as a4, ChargeType as a5, DeltaPaymentOptionType as a6, InventoryAction as a7, WebhookIdentityType as a8, VersioningMode as a9, SubdivisionType as aA, SourceType as aB, CustomFieldGroup as aC, ValueType as aD, DepositType as aE, InvoiceStatus as aF, type OrderLineItem as aG, type ProductName as aH, type CatalogReference as aI, type DescriptionLine as aJ, type DescriptionLineValueOneOf as aK, type DescriptionLineDescriptionLineValueOneOf as aL, type DescriptionLineName as aM, type PlainTextValue as aN, type Color as aO, type FocalPoint as aP, type PhysicalProperties as aQ, type Dimensions as aR, type ItemType as aS, type ItemTypeItemTypeDataOneOf as aT, type RestockLocation as aU, type ItemTaxFullDetails as aV, type LineItemTaxInfo as aW, type LineItemTaxBreakdown as aX, type DigitalFile as aY, type SubscriptionInfo as aZ, type SubscriptionTitle as a_, PreviewEmailType as aa, State as ab, SiteCreatedContext as ac, Namespace as ad, DeleteStatus as ae, Origin as af, ScheduledAction as ag, DurationUnit as ah, PaymentCollectabilityStatus as ai, PredefinedPaymentMethod as aj, RefundableStatus as ak, NonRefundableReason as al, ManuallyRefundableReason as am, RestockType as an, TransactionStatus as ao, AuthorizationCaptureStatus as ap, AuthorizationVoidStatus as aq, Reason as ar, ActionType as as, ChargebackStatus as at, MembershipPaymentStatus as au, PaymentStatus as av, RefundStatus as aw, SortOrder as ax, OrderApprovalStrategy as ay, Placement as az, type PreparePaymentCollectionResponse as b, type TranslatedValue as b$, type SubscriptionSettings as b0, type FreeTrialPeriod as b1, type BillingSettings as b2, type BillingAdjustment as b3, type BillingAdjustmentPriceSummary as b4, type PriceDescription as b5, type LocationAndQuantity as b6, type TaxableAddress as b7, type TaxableAddressTaxableAddressDataOneOf as b8, type ExtendedFields as b9, type Coupon as bA, type MerchantDiscount as bB, type MerchantDiscountMerchantDiscountReasonOneOf as bC, type DiscountRule as bD, type DiscountRuleName as bE, type LineItemDiscount as bF, type ItemCombination as bG, type ItemCombinationLineItem as bH, type Activity as bI, type ActivityContentOneOf as bJ, type CustomActivity as bK, type MerchantComment as bL, type OrderRefunded as bM, type OrderCreatedFromExchange as bN, type NewExchangeOrderCreated as bO, type LineItemExchangeData as bP, type DraftOrderChangesApplied as bQ, type OrderChange as bR, type OrderChangeValueOneOf as bS, type LineItemChanges as bT, type LineItemQuantityChange as bU, type LineItemPriceChange as bV, type LineItemProductNameChange as bW, type LineItemDescriptionLineChange as bX, type LineItemModifiersChange as bY, type ManagedLineItem as bZ, type ManagedDiscount as b_, type ModifierGroup as ba, type TranslatableString as bb, type ItemModifier as bc, type BuyerInfo as bd, type BuyerInfoIdOneOf as be, type CurrencyConversionDetails as bf, type PriceSummary as bg, type AddressWithContact as bh, type Address as bi, type StreetAddress as bj, type AddressLocation as bk, type FullAddressContactDetails as bl, type VatId as bm, type V1ShippingInformation as bn, type DeliveryLogistics as bo, type DeliveryLogisticsAddressOneOf as bp, type PickupDetails as bq, type PickupAddress as br, type DeliveryTimeSlot as bs, type ShippingPrice as bt, type ShippingRegion as bu, type TaxSummary as bv, type OrderTaxInfo as bw, type OrderTaxBreakdown as bx, type AppliedDiscount as by, type AppliedDiscountDiscountSourceOneOf as bz, type PreparePaymentCollectionApplicationErrors as c, type PaymentStatusUpdated as c$, type LineItemAmount as c0, type ManagedAdditionalFee as c1, type TotalPriceChange as c2, type ShippingInformationChange as c3, type ShippingInformation as c4, type SavedPaymentMethod as c5, type AuthorizedPaymentCreated as c6, type AuthorizedPaymentCaptured as c7, type AuthorizedPaymentVoided as c8, type RefundInitiated as c9, type CreatedByStringOneOf as cA, type ChannelInfo as cB, type CustomField as cC, type BalanceSummary as cD, type Balance as cE, type CashRounding as cF, type AdditionalFee as cG, type FulfillmentStatusesAggregate as cH, type Tags as cI, type TagList as cJ, type Location as cK, type OrderSettings as cL, type OrderSettingsAllowedActionsOneOf as cM, type OrderSettingsEditableByOneOf as cN, type CustomAllowedActions as cO, type OwnerApps as cP, type FormInfo as cQ, type FormIdentifier as cR, type PlatformFeeSummary as cS, type PlatformFee as cT, type OrderApproved as cU, type OrdersExperiments as cV, type OrderRejectedEventOrderRejected as cW, type OrderItemsRestocked as cX, type V1RestockItem as cY, type OrderImported as cZ, type ImportedOrderDeleted as c_, type RefundedPayment as ca, type RefundedPaymentKindOneOf as cb, type RegularPaymentRefund as cc, type GiftCardPaymentRefund as cd, type MembershipPaymentRefund as ce, type PaymentRefunded as cf, type PaymentRefundFailed as cg, type RefundedAsStoreCredit as ch, type PaymentPending as ci, type PaymentPendingPaymentDetailsOneOf as cj, type RegularPayment as ck, type RegularPaymentPaymentMethodDetailsOneOf as cl, type CreditCardDetails as cm, type PaymentCanceled as cn, type PaymentCanceledPaymentDetailsOneOf as co, type PaymentDeclined as cp, type PaymentDeclinedPaymentDetailsOneOf as cq, type ReceiptCreated as cr, type ReceiptCreatedReceiptInfoOneOf as cs, type WixReceipt as ct, type ExternalReceipt as cu, type ReceiptSent as cv, type ReceiptSentReceiptInfoOneOf as cw, type ChargebackCreated as cx, type ChargebackReversed as cy, type CreatedBy as cz, type VoidAuthorizedPaymentsApplicationErrors as d, type SendCancelRefundEmailResponse as d$, type FulfillmentStatusUpdated as d0, type OrderCanceledEventOrderCanceled as d1, type OrderDeltasCommitted as d2, type CommittedDiffs as d3, type CommittedDiffsShippingUpdateInfoOneOf as d4, type ItemChangedDetails as d5, type OrderLineItemChangedDetails as d6, type LineItemDelta as d7, type LineItemDeltaDeltaOneOf as d8, type AppliedDiscountDelta as d9, type InternalDocumentUpdateOperation as dA, type DeleteByIdsOperation as dB, type DeleteByFilterOperation as dC, type InternalDocumentUpdateByFilterOperation as dD, type InternalUpdateExistingOperation as dE, type VersionedDocumentUpdateOperation as dF, type VersionedDeleteByIdsOperation as dG, type VersionedDocumentId as dH, type TriggerReindexRequest as dI, type TriggerReindexResponse as dJ, type Empty as dK, type TriggerReindexOrderRequest as dL, type SendBuyerConfirmationEmailRequest as dM, type SendBuyerConfirmationEmailResponse as dN, type SendBuyerPaymentsReceivedEmailRequest as dO, type SendBuyerPaymentsReceivedEmailResponse as dP, type SendBuyerPickupConfirmationEmailRequest as dQ, type SendBuyerPickupConfirmationEmailResponse as dR, type BulkSendBuyerPickupConfirmationEmailsRequest as dS, type BulkSendBuyerPickupConfirmationEmailsResponse as dT, type SendBuyerShippingConfirmationEmailRequest as dU, type SendBuyerShippingConfirmationEmailResponse as dV, type BulkSendBuyerShippingConfirmationEmailsRequest as dW, type BulkSendBuyerShippingConfirmationEmailsResponse as dX, type SendMerchantOrderReceivedNotificationRequest as dY, type SendMerchantOrderReceivedNotificationResponse as dZ, type SendCancelRefundEmailRequest as d_, type AppliedDiscountDeltaDeltaOneOf as da, type AdditionalFeeDelta as db, type AdditionalFeeDeltaDeltaOneOf as dc, type DraftOrderCommitSettings as dd, type InventoryUpdateDetails as de, type ImportOrderRequest as df, type ImportOrderResponse as dg, type SetOrderNumberCounterRequest as dh, type SetOrderNumberCounterResponse as di, type BulkDeleteImportedOrdersRequest as dj, type BulkDeleteImportedOrdersResponse as dk, type DomainEvent as dl, type DomainEventBodyOneOf as dm, type EntityCreatedEvent as dn, type RestoreInfo as dp, type EntityUpdatedEvent as dq, type EntityDeletedEvent as dr, type ActionEvent as ds, type MessageEnvelope as dt, type IdentificationData as du, type IdentificationDataIdOneOf as dv, type AccountInfo as dw, type UpdateInternalDocumentsEvent as dx, type UpdateInternalDocumentsEventOperationOneOf as dy, type InternalDocument as dz, type PaymentCapture as e, type HasCustomEmailConfigurationsResponse as e$, type SendRefundEmailRequest as e0, type SendRefundEmailResponse as e1, type SendFulfillmentEmailRequest as e2, type SendFulfillmentEmailResponse as e3, type SendMerchantOrderReceivedPushRequest as e4, type SendMerchantOrderReceivedPushResponse as e5, type PreviewEmailByTypeRequest as e6, type PreviewEmailByTypeResponse as e7, type PreviewRefundEmailRequest as e8, type RefundDetails as e9, type SiteUndeleted as eA, type SitePublished as eB, type SiteUnpublished as eC, type SiteMarkedAsTemplate as eD, type SiteMarkedAsWixSite as eE, type ServiceProvisioned as eF, type ServiceRemoved as eG, type SiteRenamed as eH, type SiteHardDeleted as eI, type NamespaceChanged as eJ, type StudioAssigned as eK, type StudioUnassigned as eL, type SiteUrlChanged as eM, type SitePurgedExternally as eN, type OdeditorAssigned as eO, type OdeditorUnassigned as eP, type PicassoAssigned as eQ, type PicassoUnassigned as eR, type WixelAssigned as eS, type WixelUnassigned as eT, type StudioTwoAssigned as eU, type StudioTwoUnassigned as eV, type UserDomainMediaEnabled as eW, type UserDomainMediaDisabled as eX, type EditorlessAssigned as eY, type EditorlessUnassigned as eZ, type HasCustomEmailConfigurationsRequest as e_, type RefundItem as ea, type LineItemRefund as eb, type AdditionalFeeRefund as ec, type ShippingRefund as ed, type PreviewRefundEmailResponse as ee, type PreviewCancelEmailRequest as ef, type PreviewCancelEmailResponse as eg, type PreviewCancelRefundEmailRequest as eh, type PreviewCancelRefundEmailResponse as ei, type PreviewBuyerPaymentsReceivedEmailRequest as ej, type PreviewBuyerPaymentsReceivedEmailResponse as ek, type PreviewBuyerConfirmationEmailRequest as el, type PreviewBuyerConfirmationEmailResponse as em, type PreviewBuyerPickupConfirmationEmailRequest as en, type PreviewBuyerPickupConfirmationEmailResponse as eo, type PreviewShippingConfirmationEmailRequest as ep, type PreviewShippingConfirmationEmailResponse as eq, type PreviewResendDownloadLinksEmailRequest as er, type PreviewResendDownloadLinksEmailResponse as es, type MetaSiteSpecialEvent as et, type MetaSiteSpecialEventPayloadOneOf as eu, type Asset as ev, type SiteCreated as ew, type SiteTransferred as ex, type SiteDeleted as ey, type DeleteContext as ez, type CaptureAuthorizedPaymentsApplicationErrors as f, type LineItemRefundSummary as f$, type AddToAutomationMigrationPopulationRequest as f0, type AddToAutomationMigrationPopulationResponse as f1, type IsInAutomationMigrationPopulationRequest as f2, type IsInAutomationMigrationPopulationResponse as f3, type PreparePaymentCollectionRequest as f4, type RedirectUrls as f5, type DelayedCaptureSettings as f6, type Duration as f7, type GetPaymentCollectabilityStatusRequest as f8, type RecordManuallyCollectedPaymentRequest as f9, type RestockInfo as fA, type RestockItem as fB, type TriggerRefundResponse as fC, type OrderTransactions as fD, type Payment as fE, type PaymentPaymentDetailsOneOf as fF, type PaymentReceiptInfoOneOf as fG, type RegularPaymentDetails as fH, type RegularPaymentDetailsPaymentMethodDetailsOneOf as fI, type CreditCardPaymentMethodDetails as fJ, type AuthorizationDetails as fK, type AuthorizationCapture as fL, type AuthorizationActionFailureDetails as fM, type AuthorizationVoid as fN, type V1ScheduledAction as fO, type Chargeback as fP, type PaymentMethodName as fQ, type GiftCardPaymentDetails as fR, type MembershipPaymentDetails as fS, type WixReceiptInfo as fT, type ExternalReceiptInfo as fU, type CashRoundingDetails as fV, type Refund as fW, type RefundTransaction as fX, type RefundStatusInfo as fY, type AggregatedRefundSummary as fZ, type RefundItemsBreakdown as f_, type UserDefinedPaymentMethodName as fa, type UserDefinedPaymentMethodNameKindOneOf as fb, type RecordManuallyCollectedPaymentResponse as fc, type MarkOrderAsPaidRequest as fd, type MarkOrderAsPaidResponse as fe, type BulkMarkOrdersAsPaidRequest as ff, type BulkMarkOrdersAsPaidResponse as fg, type BulkOrderResult as fh, type ItemMetadata as fi, type ApplicationError as fj, type BulkActionMetadata as fk, type GetRefundabilityStatusRequest as fl, type GetRefundabilityStatusResponse as fm, type Refundability as fn, type RefundabilityAdditionalRefundabilityInfoOneOf as fo, type CreatePaymentGatewayOrderRequest as fp, type ChargedBy as fq, type CreatePaymentGatewayOrderResponse as fr, type ChargeMembershipsRequest as fs, type MembershipChargeItem as ft, type MembershipName as fu, type ServiceProperties as fv, type ChargeMembershipsResponse as fw, type TriggerRefundRequest as fx, type PaymentRefund as fy, type RefundSideEffects as fz, type GetOrderApplicationErrors as g, type UpdateBillingContactDetailsRequest as g$, type CalculateRefundRequest as g0, type CalculateRefundItemRequest as g1, type CalculateRefundResponse as g2, type CalculateRefundItemResponse as g3, type VoidAuthorizedPaymentsRequest as g4, type CaptureAuthorizedPaymentsRequest as g5, type ChargeSavedPaymentMethodRequest as g6, type ChargeSavedPaymentMethodResponse as g7, type DiffmatokyPayload as g8, type ErrorInformation as g9, type DraftOrderDiffs as gA, type DraftOrderDiffsShippingUpdateInfoOneOf as gB, type DraftOrderDiffsBuyerUpdateInfoOneOf as gC, type DraftOrderDiffsBillingUpdateInfoOneOf as gD, type DraftOrderDiffsRecipientUpdateInfoOneOf as gE, type V1LineItemDelta as gF, type V1LineItemDeltaDeltaOneOf as gG, type CommitDeltasResponse as gH, type ArchiveOrderRequest as gI, type ArchiveOrderResponse as gJ, type BulkArchiveOrdersRequest as gK, type BulkArchiveOrdersResponse as gL, type BulkArchiveOrdersByFilterRequest as gM, type BulkArchiveOrdersByFilterResponse as gN, type UnArchiveOrderRequest as gO, type UnArchiveOrderResponse as gP, type BulkUnArchiveOrdersRequest as gQ, type BulkUnArchiveOrdersResponse as gR, type BulkUnArchiveOrdersByFilterRequest as gS, type BulkUnArchiveOrdersByFilterResponse as gT, type UpdateBuyerInfoRequest as gU, type BuyerInfoUpdate as gV, type UpdateBuyerInfoResponse as gW, type UpdateBuyerEmailRequest as gX, type UpdateBuyerEmailResponse as gY, type UpdateOrderShippingAddressRequest as gZ, type UpdateOrderShippingAddressResponse as g_, type GetOrderRequest as ga, type GetOrderResponse as gb, type InternalQueryOrdersRequest as gc, type PlatformQuery as gd, type PlatformQueryPagingMethodOneOf as ge, type Sorting as gf, type PlatformPaging as gg, type CursorPaging as gh, type InternalQueryOrdersResponse as gi, type PlatformPagingMetadata as gj, type Cursors as gk, type QueryOrderRequest as gl, type QueryOrderResponse as gm, type SearchOrdersRequest as gn, type CursorSearch as go, type CursorSearchPagingMethodOneOf as gp, type CursorPagingMetadata as gq, type CreateOrderRequest as gr, type OrderCreationSettings as gs, type OrderCreationSettingsEditableByOneOf as gt, type OrderCreateNotifications as gu, type CreateOrderResponse as gv, type UpdateOrderRequest as gw, type UpdateOrderResponse as gx, type BulkUpdateOrdersRequest as gy, type CommitDeltasRequest as gz, type OrderSearch as h, type V1BulkMarkOrdersAsPaidRequest as h$, type UpdateBillingContactDetailsResponse as h0, type UpdateOrderLineItemRequest as h1, type UpdateOrderLineItemResponse as h2, type UpdateOrderLineItemsRequest as h3, type MaskedOrderLineItem as h4, type UpdateOrderLineItemsResponse as h5, type AddInternalActivityRequest as h6, type InternalActivity as h7, type InternalActivityContentOneOf as h8, type OrderPlaced as h9, type DeleteActivityRequest as hA, type DeleteActivityResponse as hB, type UpdateLineItemsDescriptionLinesRequest as hC, type LineItemUpdate as hD, type UpdateLineItemsDescriptionLinesResponse as hE, type MarkOrderAsSeenByHumanRequest as hF, type MarkOrderAsSeenByHumanResponse as hG, type CancelOrderRequest as hH, type UpdateOrderStatusRequest as hI, type UpdateOrderStatusResponse as hJ, type MarkAsFulfilledRequest as hK, type MarkAsFulfilledResponse as hL, type BulkMarkAsFulfilledRequest as hM, type BulkMarkAsFulfilledResponse as hN, type BulkMarkAsFulfilledByFilterRequest as hO, type BulkMarkAsFulfilledByFilterResponse as hP, type MarkAsUnfulfilledRequest as hQ, type MarkAsUnfulfilledResponse as hR, type BulkMarkAsUnfulfilledRequest as hS, type BulkMarkAsUnfulfilledResponse as hT, type BulkMarkAsUnfulfilledByFilterRequest as hU, type BulkMarkAsUnfulfilledByFilterResponse as hV, type BulkSetBusinessLocationRequest as hW, type BulkSetBusinessLocationResponse as hX, type BulkSetBusinessLocationResult as hY, type V1MarkOrderAsPaidRequest as hZ, type V1MarkOrderAsPaidResponse as h_, type OrderPaid as ha, type OrderFulfilled as hb, type OrderNotFulfilled as hc, type OrderCanceled as hd, type DownloadLinkSent as he, type TrackingNumberAdded as hf, type TrackingNumberEdited as hg, type TrackingLinkAdded as hh, type ShippingConfirmationEmailSent as hi, type InvoiceAdded as hj, type InvoiceSent as hk, type FulfillerEmailSent as hl, type ShippingAddressEdited as hm, type EmailEdited as hn, type PickupReadyEmailSent as ho, type OrderPartiallyPaid as hp, type OrderPending as hq, type OrderRejected as hr, type AddInternalActivityResponse as hs, type AddActivityRequest as ht, type PublicActivity as hu, type PublicActivityContentOneOf as hv, type AddActivityResponse as hw, type AddActivitiesRequest as hx, type UpdateActivityRequest as hy, type UpdateActivityResponse as hz, type CreateOrderOptions as i, type RecordManuallyCollectedPaymentOptions as i$, type V1BulkMarkOrdersAsPaidResponse as i0, type V1CreatePaymentGatewayOrderRequest as i1, type V1CreatePaymentGatewayOrderResponse as i2, type GetShipmentsRequest as i3, type GetShipmentsResponse as i4, type AggregateOrdersRequest as i5, type AggregateOrdersResponse as i6, type DecrementItemsQuantityRequest as i7, type DecrementData as i8, type DecrementItemsQuantityResponse as i9, type Subdivision as iA, type StandardDetails as iB, type InvoiceDates as iC, type LineItems as iD, type LineItem as iE, type BigDecimalWrapper as iF, type LineItemTax as iG, type Source as iH, type LineItemMetaData as iI, type Locale as iJ, type TotalPrice as iK, type ItemizedFee as iL, type Discount as iM, type DiscountOneDiscountTypeOneOf as iN, type CalculatedTaxes as iO, type CalculatedTax as iP, type Payments as iQ, type InvoicesPayment as iR, type MetaData as iS, type InvoiceDynamicPriceTotals as iT, type CustomFieldValue as iU, type Value as iV, type Deposit as iW, type BaseEventMetadata as iX, type EventMetadata as iY, type AccountInfoMetadata as iZ, type SetOrderNumberCounterOptions as i_, type BulkUpdateOrderTagsRequest as ia, type TagsTags as ib, type TagsTagList as ic, type BulkUpdateOrderTagsResult as id, type SendOrderUpdatedDomainEventRequest as ie, type SendOrderUpdatedDomainEventResponse as ig, type Task as ih, type TaskKey as ii, type TaskAction as ij, type TaskActionActionOneOf as ik, type Complete as il, type Cancel as im, type Reschedule as io, type InvoiceSentEvent as ip, type IdAndVersion as iq, type InvoiceFields as ir, type Customer as is, type Email as it, type QuotesAddress as iu, type AddressDescription as iv, type Phone as iw, type Company as ix, type CommonAddress as iy, type CommonAddressStreetOneOf as iz, type CreateOrderApplicationErrors as j, type SortOrderWithLiterals as j$, type PaymentCollectionMarkOrderAsPaidOptions as j0, type PaymentCollectionCreatePaymentGatewayOrderOptions as j1, type ChargeMembershipsOptions as j2, type TriggerRefundOptions as j3, type OrderSearchSpec as j4, type UpdateOrderLineItemIdentifiers as j5, type UpdateOrderLineItem as j6, type UpdateActivityIdentifiers as j7, type DeleteActivityIdentifiers as j8, type AggregateOrdersOptions as j9, type DeltaPaymentOptionTypeWithLiterals as jA, type InventoryActionWithLiterals as jB, type WebhookIdentityTypeWithLiterals as jC, type VersioningModeWithLiterals as jD, type PreviewEmailTypeWithLiterals as jE, type StateWithLiterals as jF, type SiteCreatedContextWithLiterals as jG, type NamespaceWithLiterals as jH, type DeleteStatusWithLiterals as jI, type OriginWithLiterals as jJ, type ScheduledActionWithLiterals as jK, type DurationUnitWithLiterals as jL, type PaymentCollectabilityStatusWithLiterals as jM, type PredefinedPaymentMethodWithLiterals as jN, type RefundableStatusWithLiterals as jO, type NonRefundableReasonWithLiterals as jP, type ManuallyRefundableReasonWithLiterals as jQ, type RestockTypeWithLiterals as jR, type TransactionStatusWithLiterals as jS, type AuthorizationCaptureStatusWithLiterals as jT, type AuthorizationVoidStatusWithLiterals as jU, type ReasonWithLiterals as jV, type ActionTypeWithLiterals as jW, type ChargebackStatusWithLiterals as jX, type MembershipPaymentStatusWithLiterals as jY, type PaymentStatusWithLiterals as jZ, type RefundStatusWithLiterals as j_, utils as ja, type DescriptionLineTypeWithLiterals as jb, type DimensionsUnitWithLiterals as jc, type ItemTypePresetWithLiterals as jd, type PaymentOptionTypeWithLiterals as je, type JurisdictionTypeWithLiterals as jf, type SubscriptionFrequencyWithLiterals as jg, type AdjustmentTypeWithLiterals as jh, type TaxableAddressTypeWithLiterals as ji, type PaymentStatusEnumPaymentStatusWithLiterals as jj, type FulfillmentStatusWithLiterals as jk, type WeightUnitWithLiterals as jl, type VatTypeWithLiterals as jm, type PickupMethodWithLiterals as jn, type OrderStatusWithLiterals as jo, type DiscountTypeWithLiterals as jp, type DiscountReasonWithLiterals as jq, type LineItemQuantityChangeTypeWithLiterals as jr, type ActivityTypeWithLiterals as js, type OrderActivityTypeEnumActivityTypeWithLiterals as jt, type AttributionSourceWithLiterals as ju, type ChannelTypeWithLiterals as jv, type AdditionalFeeSourceWithLiterals as jw, type OrderActionTypeWithLiterals as jx, type SpecificItemsCouponBehaviorWithLiterals as jy, type ChargeTypeWithLiterals as jz, type UpdateOrderApplicationErrors as k, type OrderApprovalStrategyWithLiterals as k0, type PlacementWithLiterals as k1, type SubdivisionTypeWithLiterals as k2, type SourceTypeWithLiterals as k3, type CustomFieldGroupWithLiterals as k4, type ValueTypeWithLiterals as k5, type DepositTypeWithLiterals as k6, type InvoiceStatusWithLiterals as k7, type RecordManuallyCollectedPaymentApplicationErrors as k8, type PaymentCollectionMarkOrderAsPaidApplicationErrors as k9, type PaymentCollectionCreatePaymentGatewayOrderApplicationErrors as ka, type TriggerRefundApplicationErrors as kb, type UpdateOrderStatusApplicationErrors as kc, type CommonSearchWithEntityContext as kd, onOrderApproved as ke, onOrderCanceled as kf, onOrderCommitted as kg, onOrderCreated as kh, onOrderFulfilled as ki, onOrderPaymentStatusUpdated as kj, onOrderUpdated as kk, preparePaymentCollection as kl, getPaymentCollectabilityStatus as km, voidAuthorizedPayments as kn, captureAuthorizedPayments as ko, getOrder as kp, createOrder as kq, updateOrder as kr, bulkUpdateOrders as ks, addActivities as kt, cancelOrder as ku, bulkUpdateOrderTags as kv, type BulkUpdateOrdersResponse as l, type AddActivitiesResponse as m, type CancelOrderOptions as n, type CancelOrderResponse as o, type CancelOrderApplicationErrors as p, type BulkUpdateOrderTagsOptions as q, type BulkUpdateOrderTagsResponse as r, type OrderApprovedEnvelope as s, type OrderCanceledEnvelope as t, type OrderCommittedEnvelope as u, type OrderCreatedEnvelope as v, type OrderFulfilledEnvelope as w, type OrderPaymentStatusUpdatedEnvelope as x, type OrderUpdatedEnvelope as y, DimensionsUnit as z };
8707
+ export { OrderActivityTypeEnumActivityType as $, type AddActivitiesOptions as A, type BulkUpdateOrdersOptions as B, type CaptureAuthorizedPaymentsResponse as C, DescriptionLineType as D, PaymentOptionType as E, SubscriptionFrequency as F, type GetPaymentCollectabilityStatusResponse as G, AdjustmentType as H, ItemTypePreset as I, JurisdictionType as J, PaymentStatusEnumPaymentStatus as K, FulfillmentStatus as L, type MaskedOrder as M, VatType as N, type Order as O, type Price as P, PickupMethod as Q, OrderStatus as R, type SearchOrdersResponse as S, TaxableAddressType as T, type UpdateOrder as U, type VoidAuthorizedPaymentsResponse as V, WeightUnit as W, DiscountType as X, DiscountReason as Y, LineItemQuantityChangeType as Z, ActivityType as _, type PreparePaymentCollectionOptions as a, type SubscriptionDescription as a$, AttributionSource as a0, ChannelType as a1, AdditionalFeeSource as a2, OrderActionType as a3, SpecificItemsCouponBehavior as a4, ChargeType as a5, DeltaPaymentOptionType as a6, InventoryAction as a7, WebhookIdentityType as a8, VersioningMode as a9, SubdivisionType as aA, SourceType as aB, CustomFieldGroup as aC, ValueType as aD, DepositType as aE, InvoiceStatus as aF, type OrderLineItem as aG, type ProductName as aH, type CatalogReference as aI, type DescriptionLine as aJ, type DescriptionLineValueOneOf as aK, type DescriptionLineDescriptionLineValueOneOf as aL, type DescriptionLineName as aM, type PlainTextValue as aN, type Color as aO, type FocalPoint as aP, type PhysicalProperties as aQ, type Dimensions as aR, type ItemType as aS, type ItemTypeItemTypeDataOneOf as aT, type RestockLocation as aU, type ItemTaxFullDetails as aV, type LineItemTaxInfo as aW, type LineItemTaxBreakdown as aX, type DigitalFile as aY, type SubscriptionInfo as aZ, type SubscriptionTitle as a_, ScheduledAction as aa, DurationUnit as ab, PaymentCollectabilityStatus as ac, PredefinedPaymentMethod as ad, RefundableStatus as ae, NonRefundableReason as af, ManuallyRefundableReason as ag, RestockType as ah, TransactionStatus as ai, AuthorizationCaptureStatus as aj, AuthorizationVoidStatus as ak, Reason as al, ActionType as am, ChargebackStatus as an, MembershipPaymentStatus as ao, PaymentStatus as ap, RefundStatus as aq, PreviewEmailType as ar, State as as, SiteCreatedContext as at, Namespace as au, DeleteStatus as av, Origin as aw, SortOrder as ax, OrderApprovalStrategy as ay, Placement as az, type PreparePaymentCollectionResponse as b, type TranslatedValue as b$, type SubscriptionSettings as b0, type FreeTrialPeriod as b1, type BillingSettings as b2, type BillingAdjustment as b3, type BillingAdjustmentPriceSummary as b4, type PriceDescription as b5, type LocationAndQuantity as b6, type TaxableAddress as b7, type TaxableAddressTaxableAddressDataOneOf as b8, type ExtendedFields as b9, type Coupon as bA, type MerchantDiscount as bB, type MerchantDiscountMerchantDiscountReasonOneOf as bC, type DiscountRule as bD, type DiscountRuleName as bE, type LineItemDiscount as bF, type ItemCombination as bG, type ItemCombinationLineItem as bH, type Activity as bI, type ActivityContentOneOf as bJ, type CustomActivity as bK, type MerchantComment as bL, type OrderRefunded as bM, type OrderCreatedFromExchange as bN, type NewExchangeOrderCreated as bO, type LineItemExchangeData as bP, type DraftOrderChangesApplied as bQ, type OrderChange as bR, type OrderChangeValueOneOf as bS, type LineItemChanges as bT, type LineItemQuantityChange as bU, type LineItemPriceChange as bV, type LineItemProductNameChange as bW, type LineItemDescriptionLineChange as bX, type LineItemModifiersChange as bY, type ManagedLineItem as bZ, type ManagedDiscount as b_, type ModifierGroup as ba, type TranslatableString as bb, type ItemModifier as bc, type BuyerInfo as bd, type BuyerInfoIdOneOf as be, type CurrencyConversionDetails as bf, type PriceSummary as bg, type AddressWithContact as bh, type Address as bi, type StreetAddress as bj, type AddressLocation as bk, type FullAddressContactDetails as bl, type VatId as bm, type V1ShippingInformation as bn, type DeliveryLogistics as bo, type DeliveryLogisticsAddressOneOf as bp, type PickupDetails as bq, type PickupAddress as br, type DeliveryTimeSlot as bs, type ShippingPrice as bt, type ShippingRegion as bu, type TaxSummary as bv, type OrderTaxInfo as bw, type OrderTaxBreakdown as bx, type AppliedDiscount as by, type AppliedDiscountDiscountSourceOneOf as bz, type PreparePaymentCollectionApplicationErrors as c, type PaymentStatusUpdated as c$, type LineItemAmount as c0, type ManagedAdditionalFee as c1, type TotalPriceChange as c2, type ShippingInformationChange as c3, type ShippingInformation as c4, type SavedPaymentMethod as c5, type AuthorizedPaymentCreated as c6, type AuthorizedPaymentCaptured as c7, type AuthorizedPaymentVoided as c8, type RefundInitiated as c9, type CreatedByStringOneOf as cA, type ChannelInfo as cB, type CustomField as cC, type BalanceSummary as cD, type Balance as cE, type CashRounding as cF, type AdditionalFee as cG, type FulfillmentStatusesAggregate as cH, type Tags as cI, type TagList as cJ, type Location as cK, type OrderSettings as cL, type OrderSettingsAllowedActionsOneOf as cM, type OrderSettingsEditableByOneOf as cN, type CustomAllowedActions as cO, type OwnerApps as cP, type FormInfo as cQ, type FormIdentifier as cR, type PlatformFeeSummary as cS, type PlatformFee as cT, type OrderApproved as cU, type OrdersExperiments as cV, type OrderRejectedEventOrderRejected as cW, type OrderItemsRestocked as cX, type V1RestockItem as cY, type OrderImported as cZ, type ImportedOrderDeleted as c_, type RefundedPayment as ca, type RefundedPaymentKindOneOf as cb, type RegularPaymentRefund as cc, type GiftCardPaymentRefund as cd, type MembershipPaymentRefund as ce, type PaymentRefunded as cf, type PaymentRefundFailed as cg, type RefundedAsStoreCredit as ch, type PaymentPending as ci, type PaymentPendingPaymentDetailsOneOf as cj, type RegularPayment as ck, type RegularPaymentPaymentMethodDetailsOneOf as cl, type CreditCardDetails as cm, type PaymentCanceled as cn, type PaymentCanceledPaymentDetailsOneOf as co, type PaymentDeclined as cp, type PaymentDeclinedPaymentDetailsOneOf as cq, type ReceiptCreated as cr, type ReceiptCreatedReceiptInfoOneOf as cs, type WixReceipt as ct, type ExternalReceipt as cu, type ReceiptSent as cv, type ReceiptSentReceiptInfoOneOf as cw, type ChargebackCreated as cx, type ChargebackReversed as cy, type CreatedBy as cz, type VoidAuthorizedPaymentsApplicationErrors as d, type ApplicationError as d$, type FulfillmentStatusUpdated as d0, type OrderCanceledEventOrderCanceled as d1, type OrderDeltasCommitted as d2, type CommittedDiffs as d3, type CommittedDiffsShippingUpdateInfoOneOf as d4, type ItemChangedDetails as d5, type OrderLineItemChangedDetails as d6, type LineItemDelta as d7, type LineItemDeltaDeltaOneOf as d8, type AppliedDiscountDelta as d9, type InternalDocumentUpdateOperation as dA, type DeleteByIdsOperation as dB, type DeleteByFilterOperation as dC, type InternalDocumentUpdateByFilterOperation as dD, type InternalUpdateExistingOperation as dE, type VersionedDocumentUpdateOperation as dF, type VersionedDeleteByIdsOperation as dG, type VersionedDocumentId as dH, type TriggerReindexRequest as dI, type TriggerReindexResponse as dJ, type Empty as dK, type TriggerReindexOrderRequest as dL, type PreparePaymentCollectionRequest as dM, type RedirectUrls as dN, type DelayedCaptureSettings as dO, type Duration as dP, type GetPaymentCollectabilityStatusRequest as dQ, type RecordManuallyCollectedPaymentRequest as dR, type UserDefinedPaymentMethodName as dS, type UserDefinedPaymentMethodNameKindOneOf as dT, type RecordManuallyCollectedPaymentResponse as dU, type MarkOrderAsPaidRequest as dV, type MarkOrderAsPaidResponse as dW, type BulkMarkOrdersAsPaidRequest as dX, type BulkMarkOrdersAsPaidResponse as dY, type BulkOrderResult as dZ, type ItemMetadata as d_, type AppliedDiscountDeltaDeltaOneOf as da, type AdditionalFeeDelta as db, type AdditionalFeeDeltaDeltaOneOf as dc, type DraftOrderCommitSettings as dd, type InventoryUpdateDetails as de, type ImportOrderRequest as df, type ImportOrderResponse as dg, type SetOrderNumberCounterRequest as dh, type SetOrderNumberCounterResponse as di, type BulkDeleteImportedOrdersRequest as dj, type BulkDeleteImportedOrdersResponse as dk, type DomainEvent as dl, type DomainEventBodyOneOf as dm, type EntityCreatedEvent as dn, type RestoreInfo as dp, type EntityUpdatedEvent as dq, type EntityDeletedEvent as dr, type ActionEvent as ds, type MessageEnvelope as dt, type IdentificationData as du, type IdentificationDataIdOneOf as dv, type AccountInfo as dw, type UpdateInternalDocumentsEvent as dx, type UpdateInternalDocumentsEventOperationOneOf as dy, type InternalDocument as dz, type PaymentCapture as e, type BulkSendBuyerPickupConfirmationEmailsRequest as e$, type BulkActionMetadata as e0, type GetRefundabilityStatusRequest as e1, type GetRefundabilityStatusResponse as e2, type Refundability as e3, type RefundabilityAdditionalRefundabilityInfoOneOf as e4, type CreatePaymentGatewayOrderRequest as e5, type ChargedBy as e6, type CreatePaymentGatewayOrderResponse as e7, type ChargeMembershipsRequest as e8, type MembershipChargeItem as e9, type Chargeback as eA, type PaymentMethodName as eB, type GiftCardPaymentDetails as eC, type MembershipPaymentDetails as eD, type WixReceiptInfo as eE, type ExternalReceiptInfo as eF, type CashRoundingDetails as eG, type Refund as eH, type RefundTransaction as eI, type RefundStatusInfo as eJ, type AggregatedRefundSummary as eK, type RefundItemsBreakdown as eL, type LineItemRefundSummary as eM, type CalculateRefundRequest as eN, type CalculateRefundItemRequest as eO, type CalculateRefundResponse as eP, type CalculateRefundItemResponse as eQ, type VoidAuthorizedPaymentsRequest as eR, type CaptureAuthorizedPaymentsRequest as eS, type ChargeSavedPaymentMethodRequest as eT, type ChargeSavedPaymentMethodResponse as eU, type SendBuyerConfirmationEmailRequest as eV, type SendBuyerConfirmationEmailResponse as eW, type SendBuyerPaymentsReceivedEmailRequest as eX, type SendBuyerPaymentsReceivedEmailResponse as eY, type SendBuyerPickupConfirmationEmailRequest as eZ, type SendBuyerPickupConfirmationEmailResponse as e_, type MembershipName as ea, type ServiceProperties as eb, type ChargeMembershipsResponse as ec, type TriggerRefundRequest as ed, type PaymentRefund as ee, type RefundDetails as ef, type RefundItem as eg, type LineItemRefund as eh, type AdditionalFeeRefund as ei, type ShippingRefund as ej, type RefundSideEffects as ek, type RestockInfo as el, type RestockItem as em, type TriggerRefundResponse as en, type OrderTransactions as eo, type Payment as ep, type PaymentPaymentDetailsOneOf as eq, type PaymentReceiptInfoOneOf as er, type RegularPaymentDetails as es, type RegularPaymentDetailsPaymentMethodDetailsOneOf as et, type CreditCardPaymentMethodDetails as eu, type AuthorizationDetails as ev, type AuthorizationCapture as ew, type AuthorizationActionFailureDetails as ex, type AuthorizationVoid as ey, type V1ScheduledAction as ez, type CaptureAuthorizedPaymentsApplicationErrors as f, type UserDomainMediaDisabled as f$, type BulkSendBuyerPickupConfirmationEmailsResponse as f0, type SendBuyerShippingConfirmationEmailRequest as f1, type SendBuyerShippingConfirmationEmailResponse as f2, type BulkSendBuyerShippingConfirmationEmailsRequest as f3, type BulkSendBuyerShippingConfirmationEmailsResponse as f4, type SendMerchantOrderReceivedNotificationRequest as f5, type SendMerchantOrderReceivedNotificationResponse as f6, type SendCancelRefundEmailRequest as f7, type SendCancelRefundEmailResponse as f8, type SendRefundEmailRequest as f9, type SiteCreated as fA, type SiteTransferred as fB, type SiteDeleted as fC, type DeleteContext as fD, type SiteUndeleted as fE, type SitePublished as fF, type SiteUnpublished as fG, type SiteMarkedAsTemplate as fH, type SiteMarkedAsWixSite as fI, type ServiceProvisioned as fJ, type ServiceRemoved as fK, type SiteRenamed as fL, type SiteHardDeleted as fM, type NamespaceChanged as fN, type StudioAssigned as fO, type StudioUnassigned as fP, type SiteUrlChanged as fQ, type SitePurgedExternally as fR, type OdeditorAssigned as fS, type OdeditorUnassigned as fT, type PicassoAssigned as fU, type PicassoUnassigned as fV, type WixelAssigned as fW, type WixelUnassigned as fX, type StudioTwoAssigned as fY, type StudioTwoUnassigned as fZ, type UserDomainMediaEnabled as f_, type SendRefundEmailResponse as fa, type SendFulfillmentEmailRequest as fb, type SendFulfillmentEmailResponse as fc, type SendMerchantOrderReceivedPushRequest as fd, type SendMerchantOrderReceivedPushResponse as fe, type PreviewEmailByTypeRequest as ff, type PreviewEmailByTypeResponse as fg, type PreviewRefundEmailRequest as fh, type PreviewRefundEmailResponse as fi, type PreviewCancelEmailRequest as fj, type PreviewCancelEmailResponse as fk, type PreviewCancelRefundEmailRequest as fl, type PreviewCancelRefundEmailResponse as fm, type PreviewBuyerPaymentsReceivedEmailRequest as fn, type PreviewBuyerPaymentsReceivedEmailResponse as fo, type PreviewBuyerConfirmationEmailRequest as fp, type PreviewBuyerConfirmationEmailResponse as fq, type PreviewBuyerPickupConfirmationEmailRequest as fr, type PreviewBuyerPickupConfirmationEmailResponse as fs, type PreviewShippingConfirmationEmailRequest as ft, type PreviewShippingConfirmationEmailResponse as fu, type PreviewResendDownloadLinksEmailRequest as fv, type PreviewResendDownloadLinksEmailResponse as fw, type MetaSiteSpecialEvent as fx, type MetaSiteSpecialEventPayloadOneOf as fy, type Asset as fz, type GetOrderApplicationErrors as g, type UpdateBillingContactDetailsRequest as g$, type EditorlessAssigned as g0, type EditorlessUnassigned as g1, type HasCustomEmailConfigurationsRequest as g2, type HasCustomEmailConfigurationsResponse as g3, type AddToAutomationMigrationPopulationRequest as g4, type AddToAutomationMigrationPopulationResponse as g5, type IsInAutomationMigrationPopulationRequest as g6, type IsInAutomationMigrationPopulationResponse as g7, type DiffmatokyPayload as g8, type ErrorInformation as g9, type DraftOrderDiffs as gA, type DraftOrderDiffsShippingUpdateInfoOneOf as gB, type DraftOrderDiffsBuyerUpdateInfoOneOf as gC, type DraftOrderDiffsBillingUpdateInfoOneOf as gD, type DraftOrderDiffsRecipientUpdateInfoOneOf as gE, type V1LineItemDelta as gF, type V1LineItemDeltaDeltaOneOf as gG, type CommitDeltasResponse as gH, type ArchiveOrderRequest as gI, type ArchiveOrderResponse as gJ, type BulkArchiveOrdersRequest as gK, type BulkArchiveOrdersResponse as gL, type BulkArchiveOrdersByFilterRequest as gM, type BulkArchiveOrdersByFilterResponse as gN, type UnArchiveOrderRequest as gO, type UnArchiveOrderResponse as gP, type BulkUnArchiveOrdersRequest as gQ, type BulkUnArchiveOrdersResponse as gR, type BulkUnArchiveOrdersByFilterRequest as gS, type BulkUnArchiveOrdersByFilterResponse as gT, type UpdateBuyerInfoRequest as gU, type BuyerInfoUpdate as gV, type UpdateBuyerInfoResponse as gW, type UpdateBuyerEmailRequest as gX, type UpdateBuyerEmailResponse as gY, type UpdateOrderShippingAddressRequest as gZ, type UpdateOrderShippingAddressResponse as g_, type GetOrderRequest as ga, type GetOrderResponse as gb, type InternalQueryOrdersRequest as gc, type PlatformQuery as gd, type PlatformQueryPagingMethodOneOf as ge, type Sorting as gf, type PlatformPaging as gg, type CursorPaging as gh, type InternalQueryOrdersResponse as gi, type PlatformPagingMetadata as gj, type Cursors as gk, type QueryOrderRequest as gl, type QueryOrderResponse as gm, type SearchOrdersRequest as gn, type CursorSearch as go, type CursorSearchPagingMethodOneOf as gp, type CursorPagingMetadata as gq, type CreateOrderRequest as gr, type OrderCreationSettings as gs, type OrderCreationSettingsEditableByOneOf as gt, type OrderCreateNotifications as gu, type CreateOrderResponse as gv, type UpdateOrderRequest as gw, type UpdateOrderResponse as gx, type BulkUpdateOrdersRequest as gy, type CommitDeltasRequest as gz, type OrderSearch as h, type V1BulkMarkOrdersAsPaidRequest as h$, type UpdateBillingContactDetailsResponse as h0, type UpdateOrderLineItemRequest as h1, type UpdateOrderLineItemResponse as h2, type UpdateOrderLineItemsRequest as h3, type MaskedOrderLineItem as h4, type UpdateOrderLineItemsResponse as h5, type AddInternalActivityRequest as h6, type InternalActivity as h7, type InternalActivityContentOneOf as h8, type OrderPlaced as h9, type DeleteActivityRequest as hA, type DeleteActivityResponse as hB, type UpdateLineItemsDescriptionLinesRequest as hC, type LineItemUpdate as hD, type UpdateLineItemsDescriptionLinesResponse as hE, type MarkOrderAsSeenByHumanRequest as hF, type MarkOrderAsSeenByHumanResponse as hG, type CancelOrderRequest as hH, type UpdateOrderStatusRequest as hI, type UpdateOrderStatusResponse as hJ, type MarkAsFulfilledRequest as hK, type MarkAsFulfilledResponse as hL, type BulkMarkAsFulfilledRequest as hM, type BulkMarkAsFulfilledResponse as hN, type BulkMarkAsFulfilledByFilterRequest as hO, type BulkMarkAsFulfilledByFilterResponse as hP, type MarkAsUnfulfilledRequest as hQ, type MarkAsUnfulfilledResponse as hR, type BulkMarkAsUnfulfilledRequest as hS, type BulkMarkAsUnfulfilledResponse as hT, type BulkMarkAsUnfulfilledByFilterRequest as hU, type BulkMarkAsUnfulfilledByFilterResponse as hV, type BulkSetBusinessLocationRequest as hW, type BulkSetBusinessLocationResponse as hX, type BulkSetBusinessLocationResult as hY, type V1MarkOrderAsPaidRequest as hZ, type V1MarkOrderAsPaidResponse as h_, type OrderPaid as ha, type OrderFulfilled as hb, type OrderNotFulfilled as hc, type OrderCanceled as hd, type DownloadLinkSent as he, type TrackingNumberAdded as hf, type TrackingNumberEdited as hg, type TrackingLinkAdded as hh, type ShippingConfirmationEmailSent as hi, type InvoiceAdded as hj, type InvoiceSent as hk, type FulfillerEmailSent as hl, type ShippingAddressEdited as hm, type EmailEdited as hn, type PickupReadyEmailSent as ho, type OrderPartiallyPaid as hp, type OrderPending as hq, type OrderRejected as hr, type AddInternalActivityResponse as hs, type AddActivityRequest as ht, type PublicActivity as hu, type PublicActivityContentOneOf as hv, type AddActivityResponse as hw, type AddActivitiesRequest as hx, type UpdateActivityRequest as hy, type UpdateActivityResponse as hz, type CreateOrderOptions as i, type RecordManuallyCollectedPaymentOptions as i$, type V1BulkMarkOrdersAsPaidResponse as i0, type V1CreatePaymentGatewayOrderRequest as i1, type V1CreatePaymentGatewayOrderResponse as i2, type GetShipmentsRequest as i3, type GetShipmentsResponse as i4, type AggregateOrdersRequest as i5, type AggregateOrdersResponse as i6, type DecrementItemsQuantityRequest as i7, type DecrementData as i8, type DecrementItemsQuantityResponse as i9, type Subdivision as iA, type StandardDetails as iB, type InvoiceDates as iC, type LineItems as iD, type LineItem as iE, type BigDecimalWrapper as iF, type LineItemTax as iG, type Source as iH, type LineItemMetaData as iI, type Locale as iJ, type TotalPrice as iK, type ItemizedFee as iL, type Discount as iM, type DiscountOneDiscountTypeOneOf as iN, type CalculatedTaxes as iO, type CalculatedTax as iP, type Payments as iQ, type InvoicesPayment as iR, type MetaData as iS, type InvoiceDynamicPriceTotals as iT, type CustomFieldValue as iU, type Value as iV, type Deposit as iW, type BaseEventMetadata as iX, type EventMetadata as iY, type AccountInfoMetadata as iZ, type SetOrderNumberCounterOptions as i_, type BulkUpdateOrderTagsRequest as ia, type TagsTags as ib, type TagsTagList as ic, type BulkUpdateOrderTagsResult as id, type SendOrderUpdatedDomainEventRequest as ie, type SendOrderUpdatedDomainEventResponse as ig, type Task as ih, type TaskKey as ii, type TaskAction as ij, type TaskActionActionOneOf as ik, type Complete as il, type Cancel as im, type Reschedule as io, type InvoiceSentEvent as ip, type IdAndVersion as iq, type InvoiceFields as ir, type Customer as is, type Email as it, type QuotesAddress as iu, type AddressDescription as iv, type Phone as iw, type Company as ix, type CommonAddress as iy, type CommonAddressStreetOneOf as iz, type CreateOrderApplicationErrors as j, type SortOrderWithLiterals as j$, type PaymentCollectionMarkOrderAsPaidOptions as j0, type PaymentCollectionCreatePaymentGatewayOrderOptions as j1, type ChargeMembershipsOptions as j2, type TriggerRefundOptions as j3, type OrderSearchSpec as j4, type UpdateOrderLineItemIdentifiers as j5, type UpdateOrderLineItem as j6, type UpdateActivityIdentifiers as j7, type DeleteActivityIdentifiers as j8, type AggregateOrdersOptions as j9, type DeltaPaymentOptionTypeWithLiterals as jA, type InventoryActionWithLiterals as jB, type WebhookIdentityTypeWithLiterals as jC, type VersioningModeWithLiterals as jD, type ScheduledActionWithLiterals as jE, type DurationUnitWithLiterals as jF, type PaymentCollectabilityStatusWithLiterals as jG, type PredefinedPaymentMethodWithLiterals as jH, type RefundableStatusWithLiterals as jI, type NonRefundableReasonWithLiterals as jJ, type ManuallyRefundableReasonWithLiterals as jK, type RestockTypeWithLiterals as jL, type TransactionStatusWithLiterals as jM, type AuthorizationCaptureStatusWithLiterals as jN, type AuthorizationVoidStatusWithLiterals as jO, type ReasonWithLiterals as jP, type ActionTypeWithLiterals as jQ, type ChargebackStatusWithLiterals as jR, type MembershipPaymentStatusWithLiterals as jS, type PaymentStatusWithLiterals as jT, type RefundStatusWithLiterals as jU, type PreviewEmailTypeWithLiterals as jV, type StateWithLiterals as jW, type SiteCreatedContextWithLiterals as jX, type NamespaceWithLiterals as jY, type DeleteStatusWithLiterals as jZ, type OriginWithLiterals as j_, utils as ja, type DescriptionLineTypeWithLiterals as jb, type DimensionsUnitWithLiterals as jc, type ItemTypePresetWithLiterals as jd, type PaymentOptionTypeWithLiterals as je, type JurisdictionTypeWithLiterals as jf, type SubscriptionFrequencyWithLiterals as jg, type AdjustmentTypeWithLiterals as jh, type TaxableAddressTypeWithLiterals as ji, type PaymentStatusEnumPaymentStatusWithLiterals as jj, type FulfillmentStatusWithLiterals as jk, type WeightUnitWithLiterals as jl, type VatTypeWithLiterals as jm, type PickupMethodWithLiterals as jn, type OrderStatusWithLiterals as jo, type DiscountTypeWithLiterals as jp, type DiscountReasonWithLiterals as jq, type LineItemQuantityChangeTypeWithLiterals as jr, type ActivityTypeWithLiterals as js, type OrderActivityTypeEnumActivityTypeWithLiterals as jt, type AttributionSourceWithLiterals as ju, type ChannelTypeWithLiterals as jv, type AdditionalFeeSourceWithLiterals as jw, type OrderActionTypeWithLiterals as jx, type SpecificItemsCouponBehaviorWithLiterals as jy, type ChargeTypeWithLiterals as jz, type UpdateOrderApplicationErrors as k, type OrderApprovalStrategyWithLiterals as k0, type PlacementWithLiterals as k1, type SubdivisionTypeWithLiterals as k2, type SourceTypeWithLiterals as k3, type CustomFieldGroupWithLiterals as k4, type ValueTypeWithLiterals as k5, type DepositTypeWithLiterals as k6, type InvoiceStatusWithLiterals as k7, type RecordManuallyCollectedPaymentApplicationErrors as k8, type PaymentCollectionMarkOrderAsPaidApplicationErrors as k9, type PaymentCollectionCreatePaymentGatewayOrderApplicationErrors as ka, type TriggerRefundApplicationErrors as kb, type UpdateOrderStatusApplicationErrors as kc, type CommonSearchWithEntityContext as kd, onOrderApproved as ke, onOrderCanceled as kf, onOrderCommitted as kg, onOrderCreated as kh, onOrderFulfilled as ki, onOrderPaymentStatusUpdated as kj, onOrderUpdated as kk, preparePaymentCollection as kl, getPaymentCollectabilityStatus as km, voidAuthorizedPayments as kn, captureAuthorizedPayments as ko, getOrder as kp, createOrder as kq, updateOrder as kr, bulkUpdateOrders as ks, addActivities as kt, cancelOrder as ku, bulkUpdateOrderTags as kv, type BulkUpdateOrdersResponse as l, type AddActivitiesResponse as m, type CancelOrderOptions as n, type CancelOrderResponse as o, type CancelOrderApplicationErrors as p, type BulkUpdateOrderTagsOptions as q, type BulkUpdateOrderTagsResponse as r, type OrderApprovedEnvelope as s, type OrderCanceledEnvelope as t, type OrderCommittedEnvelope as u, type OrderCreatedEnvelope as v, type OrderFulfilledEnvelope as w, type OrderPaymentStatusUpdatedEnvelope as x, type OrderUpdatedEnvelope as y, DimensionsUnit as z };