@wix/auto_sdk_ecom_orders 1.0.316 → 1.0.317
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/{ecom-v1-order-orders.universal-DXcKuMZ8.d.ts → ecom-v1-order-orders.universal-C1f2gjpe.d.ts} +1686 -1686
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +80 -80
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +80 -80
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1686 -1686
- package/build/cjs/meta.js +80 -80
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{ecom-v1-order-orders.universal-DXcKuMZ8.d.mts → ecom-v1-order-orders.universal-C1f2gjpe.d.mts} +1686 -1686
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +80 -80
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +80 -80
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1686 -1686
- package/build/es/meta.mjs +80 -80
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{ecom-v1-order-orders.universal-BOZydR9Q.d.ts → ecom-v1-order-orders.universal-CQe1Ioz_.d.ts} +1813 -1813
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +1813 -1813
- package/build/internal/es/{ecom-v1-order-orders.universal-BOZydR9Q.d.mts → ecom-v1-order-orders.universal-CQe1Ioz_.d.mts} +1813 -1813
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +1813 -1813
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dY as ImportOrderRequest$1, I as ImportOrderResponse$1, dZ as SetOrderNumberCounterRequest$1, b as SetOrderNumberCounterResponse$1, d_ as BulkDeleteImportedOrdersRequest$1, B as BulkDeleteImportedOrdersResponse$1,
|
|
1
|
+
import { dY as ImportOrderRequest$1, I as ImportOrderResponse$1, dZ as SetOrderNumberCounterRequest$1, b as SetOrderNumberCounterResponse$1, d_ as BulkDeleteImportedOrdersRequest$1, B as BulkDeleteImportedOrdersResponse$1, e2 as PreparePaymentCollectionRequest$1, e as PreparePaymentCollectionResponse$1, e6 as GetPaymentCollectabilityStatusRequest$1, G as GetPaymentCollectabilityStatusResponse$1, e7 as RecordManuallyCollectedPaymentRequest$1, ea as RecordManuallyCollectedPaymentResponse$1, eb as MarkOrderAsPaidRequest$1, ec as MarkOrderAsPaidResponse$1, ed as BulkMarkOrdersAsPaidRequest$1, ee as BulkMarkOrdersAsPaidResponse$1, ej as GetRefundabilityStatusRequest$1, ek as GetRefundabilityStatusResponse$1, en as CreatePaymentGatewayOrderRequest$1, ep as CreatePaymentGatewayOrderResponse$1, eq as ChargeMembershipsRequest$1, et as ChargeMembershipsResponse$1, eu as TriggerRefundRequest$1, eE as TriggerRefundResponse$1, fd as VoidAuthorizedPaymentsRequest$1, V as VoidAuthorizedPaymentsResponse$1, fe as CaptureAuthorizedPaymentsRequest$1, C as CaptureAuthorizedPaymentsResponse$1, gy as GetOrderRequest$1, gz as GetOrderResponse$1, gL as SearchOrdersRequest$1, l as SearchOrdersResponse$1, gP as CreateOrderRequest$1, gT as CreateOrderResponse$1, gU as UpdateOrderRequest$1, gV as UpdateOrderResponse$1, gW as BulkUpdateOrdersRequest$1, q as BulkUpdateOrdersResponse$1, hp as UpdateOrderLineItemRequest$1, hq as UpdateOrderLineItemResponse$1, hR as AddActivityRequest$1, hU as AddActivityResponse$1, hV as AddActivitiesRequest$1, r as AddActivitiesResponse$1, hW as UpdateActivityRequest$1, hX as UpdateActivityResponse$1, hY as DeleteActivityRequest$1, hZ as DeleteActivityResponse$1, i3 as CancelOrderRequest$1, t as CancelOrderResponse$1, i4 as UpdateOrderStatusRequest$1, i5 as UpdateOrderStatusResponse$1, iv as AggregateOrdersRequest$1, iw as AggregateOrdersResponse$1, iA as BulkUpdateOrderTagsRequest$1, w as BulkUpdateOrderTagsResponse$1 } from './ecom-v1-order-orders.universal-C1f2gjpe.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -3939,163 +3939,461 @@ interface BulkDeleteImportedOrdersResponse {
|
|
|
3939
3939
|
*/
|
|
3940
3940
|
jobId?: string;
|
|
3941
3941
|
}
|
|
3942
|
-
interface
|
|
3942
|
+
interface V1TriggerReindexRequest {
|
|
3943
3943
|
/** @format GUID */
|
|
3944
|
-
|
|
3945
|
-
}
|
|
3946
|
-
interface SendBuyerConfirmationEmailResponse {
|
|
3947
|
-
}
|
|
3948
|
-
interface SendBuyerPaymentsReceivedEmailRequest {
|
|
3944
|
+
metasiteId?: string;
|
|
3949
3945
|
/**
|
|
3950
3946
|
* @minLength 1
|
|
3951
3947
|
* @maxLength 100
|
|
3948
|
+
* @maxSize 100
|
|
3952
3949
|
*/
|
|
3953
|
-
|
|
3950
|
+
orderIds?: string[];
|
|
3954
3951
|
}
|
|
3955
|
-
interface
|
|
3952
|
+
interface V1TriggerReindexResponse {
|
|
3956
3953
|
}
|
|
3957
|
-
interface
|
|
3954
|
+
interface V1TriggerReindexOrderRequest {
|
|
3955
|
+
/** @format GUID */
|
|
3956
|
+
metasiteId?: string;
|
|
3958
3957
|
/**
|
|
3959
3958
|
* @minLength 1
|
|
3960
3959
|
* @maxLength 100
|
|
3961
3960
|
*/
|
|
3962
3961
|
orderId?: string;
|
|
3963
3962
|
}
|
|
3964
|
-
interface
|
|
3965
|
-
}
|
|
3966
|
-
interface BulkSendBuyerPickupConfirmationEmailsRequest {
|
|
3967
|
-
/**
|
|
3968
|
-
* IDs of orders to send pickup emails for.
|
|
3969
|
-
* @minSize 1
|
|
3970
|
-
* @maxSize 300
|
|
3971
|
-
*/
|
|
3972
|
-
orderIds?: string[];
|
|
3973
|
-
}
|
|
3974
|
-
interface BulkSendBuyerPickupConfirmationEmailsResponse {
|
|
3975
|
-
}
|
|
3976
|
-
interface SendBuyerShippingConfirmationEmailRequest {
|
|
3963
|
+
interface PreparePaymentCollectionRequest {
|
|
3977
3964
|
/**
|
|
3965
|
+
* Ecom order ID.
|
|
3978
3966
|
* @minLength 1
|
|
3979
3967
|
* @maxLength 100
|
|
3980
3968
|
*/
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
}
|
|
3985
|
-
interface BulkSendBuyerShippingConfirmationEmailsRequest {
|
|
3969
|
+
ecomOrderId: string;
|
|
3970
|
+
/** Amount to collect */
|
|
3971
|
+
amount: Price;
|
|
3986
3972
|
/**
|
|
3987
|
-
*
|
|
3988
|
-
*
|
|
3989
|
-
*
|
|
3973
|
+
* Optional parameter. When present, payment collection will be performed using given payment gateway order.
|
|
3974
|
+
* Existing payment gateway order will be updated with a new amount.
|
|
3975
|
+
* When parameter is absent, new payment gateway order will be created and used for payment collection.
|
|
3990
3976
|
*/
|
|
3991
|
-
|
|
3992
|
-
}
|
|
3993
|
-
interface BulkSendBuyerShippingConfirmationEmailsResponse {
|
|
3994
|
-
}
|
|
3995
|
-
interface SendMerchantOrderReceivedNotificationRequest {
|
|
3977
|
+
paymentGatewayOrderId?: string | null;
|
|
3996
3978
|
/**
|
|
3997
|
-
*
|
|
3998
|
-
*
|
|
3979
|
+
* Whether to delay capture of the payment.
|
|
3980
|
+
* Default: false
|
|
3981
|
+
* @deprecated Whether to delay capture of the payment.
|
|
3982
|
+
* Default: false
|
|
3983
|
+
* @replacedBy delayed_capture_settings.scheduled_action
|
|
3984
|
+
* @targetRemovalDate 2024-09-30
|
|
3999
3985
|
*/
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
3986
|
+
delayedCapture?: boolean;
|
|
3987
|
+
/** Delayed capture payment settings */
|
|
3988
|
+
delayedCaptureSettings?: DelayedCaptureSettings;
|
|
4003
3989
|
}
|
|
4004
|
-
interface
|
|
3990
|
+
interface RedirectUrls {
|
|
4005
3991
|
/**
|
|
4006
|
-
*
|
|
4007
|
-
* @
|
|
4008
|
-
* @maxLength 100
|
|
3992
|
+
* URL to redirect buyer in case of approved (successful) transaction
|
|
3993
|
+
* @format WEB_URL
|
|
4009
3994
|
*/
|
|
4010
|
-
|
|
3995
|
+
successUrl?: string | null;
|
|
4011
3996
|
/**
|
|
4012
|
-
*
|
|
4013
|
-
* @
|
|
4014
|
-
* @maxLength 1000
|
|
3997
|
+
* URL to redirect buyer in case of buyer canceled the transaction
|
|
3998
|
+
* @format WEB_URL
|
|
4015
3999
|
*/
|
|
4016
|
-
|
|
4017
|
-
/** Refund amount */
|
|
4018
|
-
refundAmount?: Price;
|
|
4000
|
+
cancelUrl?: string | null;
|
|
4019
4001
|
/**
|
|
4020
|
-
*
|
|
4021
|
-
* @format
|
|
4002
|
+
* URL to redirect buyer in case of failed/rejected transaction
|
|
4003
|
+
* @format WEB_URL
|
|
4022
4004
|
*/
|
|
4023
|
-
|
|
4024
|
-
}
|
|
4025
|
-
interface SendCancelRefundEmailResponse {
|
|
4026
|
-
}
|
|
4027
|
-
interface SendRefundEmailRequest {
|
|
4005
|
+
errorUrl?: string | null;
|
|
4028
4006
|
/**
|
|
4029
|
-
*
|
|
4030
|
-
* @format
|
|
4007
|
+
* URL to redirect buyer in case of pending transaction (that might take some time to process)
|
|
4008
|
+
* @format WEB_URL
|
|
4031
4009
|
*/
|
|
4032
|
-
|
|
4010
|
+
pendingUrl?: string | null;
|
|
4011
|
+
}
|
|
4012
|
+
interface DelayedCaptureSettings {
|
|
4013
|
+
/** Specifies the automatic action (void/capture) for authorized transaction after the specified duration */
|
|
4014
|
+
scheduledAction?: ScheduledActionWithLiterals;
|
|
4015
|
+
/** Delay duration before execution. Optional - if not set, providers default period will be used */
|
|
4016
|
+
delayDuration?: Duration;
|
|
4017
|
+
}
|
|
4018
|
+
declare enum ScheduledAction {
|
|
4019
|
+
/** Whether payment will be auto-voided when duration passes */
|
|
4020
|
+
VOID = "VOID",
|
|
4021
|
+
/** Whether payment will be auto-captured when duration passes */
|
|
4022
|
+
CAPTURE = "CAPTURE"
|
|
4023
|
+
}
|
|
4024
|
+
/** @enumType */
|
|
4025
|
+
type ScheduledActionWithLiterals = ScheduledAction | 'VOID' | 'CAPTURE';
|
|
4026
|
+
interface Duration {
|
|
4033
4027
|
/**
|
|
4034
|
-
*
|
|
4035
|
-
* @
|
|
4028
|
+
* Amount of units. For example, 30 MINUTES, 1 HOURS, 7 DAYS, etc
|
|
4029
|
+
* @min 1
|
|
4036
4030
|
*/
|
|
4037
|
-
|
|
4031
|
+
count?: number;
|
|
4032
|
+
/** Duration unit: MINUTES, HOURS and DAYS */
|
|
4033
|
+
unit?: DurationUnitWithLiterals;
|
|
4034
|
+
}
|
|
4035
|
+
declare enum DurationUnit {
|
|
4036
|
+
MINUTES = "MINUTES",
|
|
4037
|
+
HOURS = "HOURS",
|
|
4038
|
+
DAYS = "DAYS"
|
|
4039
|
+
}
|
|
4040
|
+
/** @enumType */
|
|
4041
|
+
type DurationUnitWithLiterals = DurationUnit | 'MINUTES' | 'HOURS' | 'DAYS';
|
|
4042
|
+
interface PreparePaymentCollectionResponse {
|
|
4043
|
+
/** Payment gateway order id which is associated with given payment */
|
|
4044
|
+
paymentGatewayOrderId?: string;
|
|
4045
|
+
}
|
|
4046
|
+
interface GetPaymentCollectabilityStatusRequest {
|
|
4038
4047
|
/**
|
|
4039
|
-
*
|
|
4048
|
+
* Ecom order ID.
|
|
4040
4049
|
* @minLength 1
|
|
4041
|
-
* @maxLength
|
|
4050
|
+
* @maxLength 100
|
|
4042
4051
|
*/
|
|
4043
|
-
|
|
4044
|
-
}
|
|
4045
|
-
interface SendRefundEmailResponse {
|
|
4052
|
+
ecomOrderId: string;
|
|
4046
4053
|
}
|
|
4047
|
-
interface
|
|
4048
|
-
/**
|
|
4049
|
-
|
|
4050
|
-
/**
|
|
4051
|
-
|
|
4054
|
+
interface GetPaymentCollectabilityStatusResponse {
|
|
4055
|
+
/** Payment collectability status */
|
|
4056
|
+
status?: PaymentCollectabilityStatusWithLiterals;
|
|
4057
|
+
/** Collectable order amount */
|
|
4058
|
+
amount?: Price;
|
|
4052
4059
|
}
|
|
4053
|
-
|
|
4060
|
+
declare enum PaymentCollectabilityStatus {
|
|
4061
|
+
UNKNOWN = "UNKNOWN",
|
|
4062
|
+
COLLECTABLE = "COLLECTABLE",
|
|
4063
|
+
NONCOLLECTABLE_ORDER_IS_CANCELLED = "NONCOLLECTABLE_ORDER_IS_CANCELLED",
|
|
4064
|
+
NONCOLLECTABLE_ORDER_IS_PAID = "NONCOLLECTABLE_ORDER_IS_PAID",
|
|
4065
|
+
NONCOLLECTABLE_MISSING_PAYMENT_METHOD = "NONCOLLECTABLE_MISSING_PAYMENT_METHOD",
|
|
4066
|
+
NONCOLLECTABLE_ORDER_IS_PENDING = "NONCOLLECTABLE_ORDER_IS_PENDING",
|
|
4067
|
+
NONCOLLECTABLE_ORDER_IS_REJECTED = "NONCOLLECTABLE_ORDER_IS_REJECTED",
|
|
4068
|
+
NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS = "NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS",
|
|
4069
|
+
NONCOLLECTABLE_ORDER_HAS_CHARGEBACKS = "NONCOLLECTABLE_ORDER_HAS_CHARGEBACKS",
|
|
4070
|
+
NONCOLLECTABLE_SUBSCRIPTION_CYCLE_ALREADY_PASSED = "NONCOLLECTABLE_SUBSCRIPTION_CYCLE_ALREADY_PASSED",
|
|
4071
|
+
NONCOLLECTABLE_ORDER_HAS_UNSUPPORTED_SUBSCRIPTION = "NONCOLLECTABLE_ORDER_HAS_UNSUPPORTED_SUBSCRIPTION",
|
|
4072
|
+
NONCOLLECTABLE_CUSTOM_AMOUNT_NOT_SUPPORTED = "NONCOLLECTABLE_CUSTOM_AMOUNT_NOT_SUPPORTED",
|
|
4073
|
+
NONCOLLECTABLE_SUBSCRIPTION_START_DATE_IN_PAST = "NONCOLLECTABLE_SUBSCRIPTION_START_DATE_IN_PAST"
|
|
4054
4074
|
}
|
|
4055
|
-
|
|
4075
|
+
/** @enumType */
|
|
4076
|
+
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' | 'NONCOLLECTABLE_CUSTOM_AMOUNT_NOT_SUPPORTED' | 'NONCOLLECTABLE_SUBSCRIPTION_START_DATE_IN_PAST';
|
|
4077
|
+
interface RecordManuallyCollectedPaymentRequest {
|
|
4056
4078
|
/**
|
|
4079
|
+
* Order ID.
|
|
4057
4080
|
* @minLength 1
|
|
4058
4081
|
* @maxLength 100
|
|
4059
4082
|
*/
|
|
4060
|
-
orderId
|
|
4083
|
+
orderId: string;
|
|
4084
|
+
/** Amount to be recorded as approved manual payment for given order */
|
|
4085
|
+
amount: Price;
|
|
4061
4086
|
}
|
|
4062
|
-
|
|
4087
|
+
/**
|
|
4088
|
+
* User-defined payment method name.
|
|
4089
|
+
* Allows specifying either a predefined type or a custom name.
|
|
4090
|
+
*/
|
|
4091
|
+
interface UserDefinedPaymentMethodName extends UserDefinedPaymentMethodNameKindOneOf {
|
|
4092
|
+
/** Predefined payment method. */
|
|
4093
|
+
predefined?: PredefinedPaymentMethodWithLiterals;
|
|
4094
|
+
/**
|
|
4095
|
+
* Custom payment method name provided by user.
|
|
4096
|
+
*
|
|
4097
|
+
* For example, `"Wire transfer"`, `"Money order"`, `"Venmo"` or any other custom name.
|
|
4098
|
+
* @minLength 1
|
|
4099
|
+
* @maxLength 150
|
|
4100
|
+
*/
|
|
4101
|
+
custom?: string | null;
|
|
4063
4102
|
}
|
|
4064
|
-
|
|
4065
|
-
|
|
4103
|
+
/** @oneof */
|
|
4104
|
+
interface UserDefinedPaymentMethodNameKindOneOf {
|
|
4105
|
+
/** Predefined payment method. */
|
|
4106
|
+
predefined?: PredefinedPaymentMethodWithLiterals;
|
|
4107
|
+
/**
|
|
4108
|
+
* Custom payment method name provided by user.
|
|
4109
|
+
*
|
|
4110
|
+
* For example, `"Wire transfer"`, `"Money order"`, `"Venmo"` or any other custom name.
|
|
4111
|
+
* @minLength 1
|
|
4112
|
+
* @maxLength 150
|
|
4113
|
+
*/
|
|
4114
|
+
custom?: string | null;
|
|
4066
4115
|
}
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4116
|
+
/** Predefined payment method types for offline/manual payments. */
|
|
4117
|
+
declare enum PredefinedPaymentMethod {
|
|
4118
|
+
/** Cash payment. */
|
|
4119
|
+
CASH = "CASH",
|
|
4120
|
+
/** Bank transfer. */
|
|
4121
|
+
BANK_TRANSFER = "BANK_TRANSFER",
|
|
4122
|
+
/** Payment by check. */
|
|
4123
|
+
CHECK = "CHECK"
|
|
4072
4124
|
}
|
|
4073
4125
|
/** @enumType */
|
|
4074
|
-
type
|
|
4075
|
-
interface
|
|
4076
|
-
emailPreview?: string;
|
|
4126
|
+
type PredefinedPaymentMethodWithLiterals = PredefinedPaymentMethod | 'CASH' | 'BANK_TRANSFER' | 'CHECK';
|
|
4127
|
+
interface RecordManuallyCollectedPaymentResponse {
|
|
4077
4128
|
}
|
|
4078
|
-
interface
|
|
4129
|
+
interface MarkOrderAsPaidRequest {
|
|
4079
4130
|
/**
|
|
4131
|
+
* Ecom order ID.
|
|
4080
4132
|
* @minLength 1
|
|
4081
4133
|
* @maxLength 100
|
|
4082
4134
|
*/
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
/**
|
|
4087
|
-
|
|
4135
|
+
ecomOrderId: string;
|
|
4136
|
+
}
|
|
4137
|
+
interface MarkOrderAsPaidResponse {
|
|
4138
|
+
/** Updated order. */
|
|
4139
|
+
order?: Order;
|
|
4140
|
+
}
|
|
4141
|
+
interface BulkMarkOrdersAsPaidRequest {
|
|
4088
4142
|
/**
|
|
4089
|
-
*
|
|
4143
|
+
* IDs of orders to mark as paid.
|
|
4144
|
+
* @minSize 1
|
|
4145
|
+
* @maxSize 100
|
|
4090
4146
|
* @minLength 1
|
|
4091
|
-
* @maxLength
|
|
4147
|
+
* @maxLength 100
|
|
4092
4148
|
*/
|
|
4093
|
-
|
|
4149
|
+
ecomOrderIds: string[];
|
|
4150
|
+
}
|
|
4151
|
+
interface BulkMarkOrdersAsPaidResponse {
|
|
4094
4152
|
/**
|
|
4095
|
-
*
|
|
4096
|
-
*
|
|
4153
|
+
* Items updated by the bulk action.
|
|
4154
|
+
* The Order entity within the results optimistically changes its payment status to paid, however this process is async.
|
|
4097
4155
|
*/
|
|
4098
|
-
|
|
4156
|
+
results?: BulkOrderResult[];
|
|
4157
|
+
/** Bulk action metadata. */
|
|
4158
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4159
|
+
}
|
|
4160
|
+
interface BulkOrderResult {
|
|
4161
|
+
/** Item metadata. */
|
|
4162
|
+
itemMetadata?: ItemMetadata;
|
|
4163
|
+
/**
|
|
4164
|
+
* Updated order.
|
|
4165
|
+
*
|
|
4166
|
+
* Returned when `returnFullEntity = true`.
|
|
4167
|
+
*/
|
|
4168
|
+
item?: Order;
|
|
4169
|
+
}
|
|
4170
|
+
interface ItemMetadata {
|
|
4171
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
4172
|
+
id?: string | null;
|
|
4173
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
4174
|
+
originalIndex?: number;
|
|
4175
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
4176
|
+
success?: boolean;
|
|
4177
|
+
/** Details about the error in case of failure. */
|
|
4178
|
+
error?: ApplicationError;
|
|
4179
|
+
}
|
|
4180
|
+
interface ApplicationError {
|
|
4181
|
+
/** Error code. */
|
|
4182
|
+
code?: string;
|
|
4183
|
+
/** Description of the error. */
|
|
4184
|
+
description?: string;
|
|
4185
|
+
/** Data related to the error. */
|
|
4186
|
+
data?: Record<string, any> | null;
|
|
4187
|
+
}
|
|
4188
|
+
interface BulkActionMetadata {
|
|
4189
|
+
/** Number of items that were successfully processed. */
|
|
4190
|
+
totalSuccesses?: number;
|
|
4191
|
+
/** Number of items that couldn't be processed. */
|
|
4192
|
+
totalFailures?: number;
|
|
4193
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
4194
|
+
undetailedFailures?: number;
|
|
4195
|
+
}
|
|
4196
|
+
interface GetRefundabilityStatusRequest {
|
|
4197
|
+
/**
|
|
4198
|
+
* Order ID.
|
|
4199
|
+
* @minLength 1
|
|
4200
|
+
* @maxLength 100
|
|
4201
|
+
*/
|
|
4202
|
+
ecomOrderId: string;
|
|
4203
|
+
}
|
|
4204
|
+
interface GetRefundabilityStatusResponse {
|
|
4205
|
+
/**
|
|
4206
|
+
* Refundability details.
|
|
4207
|
+
* @maxSize 300
|
|
4208
|
+
*/
|
|
4209
|
+
refundabilities?: Refundability[];
|
|
4210
|
+
/**
|
|
4211
|
+
* Whether the order supports refunding per item.
|
|
4212
|
+
* @deprecated
|
|
4213
|
+
*/
|
|
4214
|
+
refundablePerItem?: boolean;
|
|
4215
|
+
}
|
|
4216
|
+
interface Refundability extends RefundabilityAdditionalRefundabilityInfoOneOf {
|
|
4217
|
+
/** Reason why payment is not refundable. */
|
|
4218
|
+
nonRefundableReason?: NonRefundableReasonWithLiterals;
|
|
4219
|
+
/** Reason why payment is only refundable manually. */
|
|
4220
|
+
manuallyRefundableReason?: ManuallyRefundableReasonWithLiterals;
|
|
4221
|
+
/** Payment ID. */
|
|
4222
|
+
paymentId?: string;
|
|
4223
|
+
/** Payment refundability status. */
|
|
4224
|
+
refundabilityStatus?: RefundableStatusWithLiterals;
|
|
4225
|
+
/** Link to payment provider dashboard. */
|
|
4226
|
+
providerLink?: string | null;
|
|
4227
|
+
}
|
|
4228
|
+
/** @oneof */
|
|
4229
|
+
interface RefundabilityAdditionalRefundabilityInfoOneOf {
|
|
4230
|
+
/** Reason why payment is not refundable. */
|
|
4231
|
+
nonRefundableReason?: NonRefundableReasonWithLiterals;
|
|
4232
|
+
/** Reason why payment is only refundable manually. */
|
|
4233
|
+
manuallyRefundableReason?: ManuallyRefundableReasonWithLiterals;
|
|
4234
|
+
}
|
|
4235
|
+
declare enum RefundableStatus {
|
|
4236
|
+
NOT_REFUNDABLE = "NOT_REFUNDABLE",
|
|
4237
|
+
MANUAL = "MANUAL",
|
|
4238
|
+
REFUNDABLE = "REFUNDABLE"
|
|
4239
|
+
}
|
|
4240
|
+
/** @enumType */
|
|
4241
|
+
type RefundableStatusWithLiterals = RefundableStatus | 'NOT_REFUNDABLE' | 'MANUAL' | 'REFUNDABLE';
|
|
4242
|
+
declare enum NonRefundableReason {
|
|
4243
|
+
NONE = "NONE",
|
|
4244
|
+
ALREADY_REFUNDED = "ALREADY_REFUNDED",
|
|
4245
|
+
PROVIDER_IS_DOWN = "PROVIDER_IS_DOWN",
|
|
4246
|
+
INTERNAL_ERROR = "INTERNAL_ERROR",
|
|
4247
|
+
NOT_PAID = "NOT_PAID",
|
|
4248
|
+
ACCESS_DENIED = "ACCESS_DENIED",
|
|
4249
|
+
ZERO_PRICE = "ZERO_PRICE",
|
|
4250
|
+
DISABLED_BY_PROVIDER = "DISABLED_BY_PROVIDER",
|
|
4251
|
+
PENDING_REFUND = "PENDING_REFUND",
|
|
4252
|
+
FORBIDDEN = "FORBIDDEN",
|
|
4253
|
+
TRANSACTION_NOT_FOUND = "TRANSACTION_NOT_FOUND",
|
|
4254
|
+
ORDER_IS_PENDING = "ORDER_IS_PENDING",
|
|
4255
|
+
ORDER_IS_REJECTED = "ORDER_IS_REJECTED"
|
|
4256
|
+
}
|
|
4257
|
+
/** @enumType */
|
|
4258
|
+
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';
|
|
4259
|
+
declare enum ManuallyRefundableReason {
|
|
4260
|
+
EXPIRED = "EXPIRED",
|
|
4261
|
+
NOT_SUPPORTED = "NOT_SUPPORTED",
|
|
4262
|
+
OFFLINE = "OFFLINE",
|
|
4263
|
+
REQUIRES_CARD_READER = "REQUIRES_CARD_READER"
|
|
4264
|
+
}
|
|
4265
|
+
/** @enumType */
|
|
4266
|
+
type ManuallyRefundableReasonWithLiterals = ManuallyRefundableReason | 'EXPIRED' | 'NOT_SUPPORTED' | 'OFFLINE' | 'REQUIRES_CARD_READER';
|
|
4267
|
+
interface CreatePaymentGatewayOrderRequest {
|
|
4268
|
+
/**
|
|
4269
|
+
* Ecom order ID.
|
|
4270
|
+
* @minLength 1
|
|
4271
|
+
* @maxLength 100
|
|
4272
|
+
*/
|
|
4273
|
+
ecomOrderId: string;
|
|
4274
|
+
/** Information about the user who initiated the payment. */
|
|
4275
|
+
chargedBy?: ChargedBy;
|
|
4276
|
+
}
|
|
4277
|
+
interface ChargedBy {
|
|
4278
|
+
/**
|
|
4279
|
+
* ID - id of the user who initiated the payment
|
|
4280
|
+
* @format GUID
|
|
4281
|
+
*/
|
|
4282
|
+
id?: string;
|
|
4283
|
+
/**
|
|
4284
|
+
* Full name - name of the user who initiated the payment
|
|
4285
|
+
* @minLength 1
|
|
4286
|
+
* @maxLength 200
|
|
4287
|
+
*/
|
|
4288
|
+
fullName?: string | null;
|
|
4289
|
+
}
|
|
4290
|
+
interface CreatePaymentGatewayOrderResponse {
|
|
4291
|
+
/** ID of the order created in the payment gateway */
|
|
4292
|
+
paymentGatewayOrderId?: string;
|
|
4293
|
+
}
|
|
4294
|
+
interface ChargeMembershipsRequest {
|
|
4295
|
+
/**
|
|
4296
|
+
* Order ID.
|
|
4297
|
+
* @minLength 1
|
|
4298
|
+
* @maxLength 100
|
|
4299
|
+
*/
|
|
4300
|
+
ecomOrderId: string;
|
|
4301
|
+
/**
|
|
4302
|
+
* The member id. Do not attempt to get it from the request context, since in some cases the caller is not a member
|
|
4303
|
+
* but a user which is using the membership on behalf of the a member
|
|
4304
|
+
* @format GUID
|
|
4305
|
+
*/
|
|
4306
|
+
memberId: string;
|
|
4307
|
+
/**
|
|
4308
|
+
* List of items to be paid by memberships
|
|
4309
|
+
* @minSize 1
|
|
4310
|
+
* @maxSize 300
|
|
4311
|
+
*/
|
|
4312
|
+
membershipCharges?: MembershipChargeItem[];
|
|
4313
|
+
}
|
|
4314
|
+
interface MembershipChargeItem {
|
|
4315
|
+
/**
|
|
4316
|
+
* The id of used membership
|
|
4317
|
+
* @minLength 1
|
|
4318
|
+
* @maxLength 100
|
|
4319
|
+
*/
|
|
4320
|
+
membershipId?: string;
|
|
4321
|
+
/**
|
|
4322
|
+
* ID of the application providing this payment option
|
|
4323
|
+
* @format GUID
|
|
4324
|
+
*/
|
|
4325
|
+
appId?: string;
|
|
4326
|
+
/** The name of used membership */
|
|
4327
|
+
membershipName?: MembershipName;
|
|
4328
|
+
/** Additional data about this membership */
|
|
4329
|
+
membershipAdditionalData?: Record<string, any> | null;
|
|
4330
|
+
/** Catalog and item reference info. */
|
|
4331
|
+
catalogReference?: CatalogReference;
|
|
4332
|
+
/** Properties of the service. When relevant, contains information such as date and number of participants. */
|
|
4333
|
+
serviceProperties?: ServiceProperties;
|
|
4334
|
+
/**
|
|
4335
|
+
* Usually would be the same as catalogReference.catalogItemId
|
|
4336
|
+
* For cases when these are not the same, this field would return the actual id of the item in the catalog
|
|
4337
|
+
* For example, for Wix bookings, catalogReference.catalogItemId is the booking id, and this value is being set to be the service id
|
|
4338
|
+
* @minLength 1
|
|
4339
|
+
* @maxLength 36
|
|
4340
|
+
*/
|
|
4341
|
+
rootCatalogItemId?: string | null;
|
|
4342
|
+
/**
|
|
4343
|
+
* line item id of Checkout/Order line item
|
|
4344
|
+
* @minLength 1
|
|
4345
|
+
* @maxLength 100
|
|
4346
|
+
*/
|
|
4347
|
+
lineItemId?: string;
|
|
4348
|
+
}
|
|
4349
|
+
interface MembershipName {
|
|
4350
|
+
/**
|
|
4351
|
+
* Membership name in the site's original language.
|
|
4352
|
+
* @maxLength 100
|
|
4353
|
+
*/
|
|
4354
|
+
original?: string;
|
|
4355
|
+
/**
|
|
4356
|
+
* Membership name translated into the buyer's language.
|
|
4357
|
+
*
|
|
4358
|
+
* Default: The value of `original`
|
|
4359
|
+
* @maxLength 100
|
|
4360
|
+
*/
|
|
4361
|
+
translated?: string | null;
|
|
4362
|
+
}
|
|
4363
|
+
interface ChargeMembershipsResponse {
|
|
4364
|
+
}
|
|
4365
|
+
interface TriggerRefundRequest {
|
|
4366
|
+
/**
|
|
4367
|
+
* The order this refund related to
|
|
4368
|
+
* @minLength 1
|
|
4369
|
+
* @maxLength 100
|
|
4370
|
+
*/
|
|
4371
|
+
ecomOrderId: string;
|
|
4372
|
+
/**
|
|
4373
|
+
* Refund operations information
|
|
4374
|
+
* @minSize 1
|
|
4375
|
+
* @maxSize 1
|
|
4376
|
+
*/
|
|
4377
|
+
payments: PaymentRefund[];
|
|
4378
|
+
/** Business model of a refund */
|
|
4379
|
+
details?: RefundDetails;
|
|
4380
|
+
/** Side effect details related to refund */
|
|
4381
|
+
sideEffects?: RefundSideEffects;
|
|
4382
|
+
}
|
|
4383
|
+
interface PaymentRefund {
|
|
4384
|
+
/**
|
|
4385
|
+
* Specific payment within the order to refund
|
|
4386
|
+
* @format GUID
|
|
4387
|
+
*/
|
|
4388
|
+
paymentId?: string;
|
|
4389
|
+
/** Refund amount. Not relevant for membership and gift card refunds. */
|
|
4390
|
+
amount?: Price;
|
|
4391
|
+
/**
|
|
4392
|
+
* Whether refund is made externally and manually (on the payment provider's side)
|
|
4393
|
+
* 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.
|
|
4394
|
+
* When true, the payment will only be *marked* as refunded, and no actual refund will be performed.
|
|
4395
|
+
*/
|
|
4396
|
+
externalRefund?: boolean;
|
|
4099
4397
|
}
|
|
4100
4398
|
/** Business model of a refund request */
|
|
4101
4399
|
interface RefundDetails {
|
|
@@ -4172,1943 +4470,1645 @@ interface ShippingRefund {
|
|
|
4172
4470
|
*/
|
|
4173
4471
|
amount?: Price;
|
|
4174
4472
|
}
|
|
4175
|
-
interface
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4473
|
+
interface RefundSideEffects {
|
|
4474
|
+
/** Inventory restock details as part of this refund. */
|
|
4475
|
+
restockInfo?: RestockInfo;
|
|
4476
|
+
/** Whether to send a refund confirmation email to the customer. */
|
|
4477
|
+
sendOrderRefundedEmail?: boolean;
|
|
4179
4478
|
/**
|
|
4479
|
+
* Custom message added to the refund confirmation email.
|
|
4180
4480
|
* @minLength 1
|
|
4181
|
-
* @maxLength
|
|
4481
|
+
* @maxLength 1000
|
|
4182
4482
|
*/
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
*/
|
|
4189
|
-
customMessage?: string | null;
|
|
4190
|
-
}
|
|
4191
|
-
interface PreviewCancelEmailResponse {
|
|
4192
|
-
emailPreview?: string;
|
|
4193
|
-
}
|
|
4194
|
-
interface PreviewCancelRefundEmailRequest {
|
|
4195
|
-
/**
|
|
4196
|
-
* @minLength 1
|
|
4197
|
-
* @maxLength 100
|
|
4198
|
-
*/
|
|
4199
|
-
orderId?: string;
|
|
4200
|
-
/**
|
|
4201
|
-
* Personal note added to the email (optional)
|
|
4202
|
-
* @minLength 1
|
|
4203
|
-
* @maxLength 1000
|
|
4204
|
-
*/
|
|
4205
|
-
customMessage?: string | null;
|
|
4206
|
-
/** Refund amount */
|
|
4207
|
-
refundAmount?: Price;
|
|
4208
|
-
/**
|
|
4209
|
-
* Refund ID. (Optional)
|
|
4210
|
-
* @format GUID
|
|
4211
|
-
*/
|
|
4212
|
-
refundId?: string | null;
|
|
4213
|
-
}
|
|
4214
|
-
interface PreviewCancelRefundEmailResponse {
|
|
4215
|
-
emailPreview?: string;
|
|
4216
|
-
}
|
|
4217
|
-
interface PreviewBuyerPaymentsReceivedEmailRequest {
|
|
4218
|
-
}
|
|
4219
|
-
interface PreviewBuyerPaymentsReceivedEmailResponse {
|
|
4220
|
-
emailPreview?: string;
|
|
4221
|
-
}
|
|
4222
|
-
interface PreviewBuyerConfirmationEmailRequest {
|
|
4223
|
-
}
|
|
4224
|
-
interface PreviewBuyerConfirmationEmailResponse {
|
|
4225
|
-
emailPreview?: string;
|
|
4226
|
-
}
|
|
4227
|
-
interface PreviewBuyerPickupConfirmationEmailRequest {
|
|
4228
|
-
}
|
|
4229
|
-
interface PreviewBuyerPickupConfirmationEmailResponse {
|
|
4230
|
-
emailPreview?: string;
|
|
4231
|
-
}
|
|
4232
|
-
interface PreviewShippingConfirmationEmailRequest {
|
|
4233
|
-
}
|
|
4234
|
-
interface PreviewShippingConfirmationEmailResponse {
|
|
4235
|
-
emailPreview?: string;
|
|
4236
|
-
}
|
|
4237
|
-
interface PreviewResendDownloadLinksEmailRequest {
|
|
4238
|
-
}
|
|
4239
|
-
interface PreviewResendDownloadLinksEmailResponse {
|
|
4240
|
-
emailPreview?: string;
|
|
4241
|
-
}
|
|
4242
|
-
interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
4243
|
-
/** Emitted on a meta site creation. */
|
|
4244
|
-
siteCreated?: SiteCreated;
|
|
4245
|
-
/** Emitted on a meta site transfer completion. */
|
|
4246
|
-
siteTransferred?: SiteTransferred;
|
|
4247
|
-
/** Emitted on a meta site deletion. */
|
|
4248
|
-
siteDeleted?: SiteDeleted;
|
|
4249
|
-
/** Emitted on a meta site restoration. */
|
|
4250
|
-
siteUndeleted?: SiteUndeleted;
|
|
4251
|
-
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
4252
|
-
sitePublished?: SitePublished;
|
|
4253
|
-
/** Emitted on a meta site unpublish. */
|
|
4254
|
-
siteUnpublished?: SiteUnpublished;
|
|
4255
|
-
/** Emitted when meta site is marked as template. */
|
|
4256
|
-
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
4257
|
-
/** Emitted when meta site is marked as a WixSite. */
|
|
4258
|
-
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
4259
|
-
/** Emitted when an application is provisioned (installed). */
|
|
4260
|
-
serviceProvisioned?: ServiceProvisioned;
|
|
4261
|
-
/** Emitted when an application is removed (uninstalled). */
|
|
4262
|
-
serviceRemoved?: ServiceRemoved;
|
|
4263
|
-
/** Emitted when meta site name (URL slug) is changed. */
|
|
4264
|
-
siteRenamedPayload?: SiteRenamed;
|
|
4265
|
-
/** Emitted when meta site was permanently deleted. */
|
|
4266
|
-
hardDeleted?: SiteHardDeleted;
|
|
4267
|
-
/** Emitted on a namespace change. */
|
|
4268
|
-
namespaceChanged?: NamespaceChanged;
|
|
4269
|
-
/** Emitted when Studio is attached. */
|
|
4270
|
-
studioAssigned?: StudioAssigned;
|
|
4271
|
-
/** Emitted when Studio is detached. */
|
|
4272
|
-
studioUnassigned?: StudioUnassigned;
|
|
4273
|
-
/**
|
|
4274
|
-
* Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
|
|
4275
|
-
* the actual URL.
|
|
4276
|
-
*
|
|
4277
|
-
* See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
|
|
4278
|
-
* See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
|
|
4279
|
-
*/
|
|
4280
|
-
urlChanged?: SiteUrlChanged;
|
|
4281
|
-
/** Site is marked as PurgedExternally */
|
|
4282
|
-
sitePurgedExternally?: SitePurgedExternally;
|
|
4283
|
-
/** Emitted when Odeditor is attached. */
|
|
4284
|
-
odeditorAssigned?: OdeditorAssigned;
|
|
4285
|
-
/** Emitted when Odeditor is detached. */
|
|
4286
|
-
odeditorUnassigned?: OdeditorUnassigned;
|
|
4287
|
-
/** Emitted when Picasso is attached. */
|
|
4288
|
-
picassoAssigned?: PicassoAssigned;
|
|
4289
|
-
/** Emitted when Picasso is detached. */
|
|
4290
|
-
picassoUnassigned?: PicassoUnassigned;
|
|
4291
|
-
/** Emitted when Wixel is attached. */
|
|
4292
|
-
wixelAssigned?: WixelAssigned;
|
|
4293
|
-
/** Emitted when Wixel is detached. */
|
|
4294
|
-
wixelUnassigned?: WixelUnassigned;
|
|
4295
|
-
/** Emitted when StudioTwo is attached. */
|
|
4296
|
-
studioTwoAssigned?: StudioTwoAssigned;
|
|
4297
|
-
/** Emitted when StudioTwo is detached. */
|
|
4298
|
-
studioTwoUnassigned?: StudioTwoUnassigned;
|
|
4299
|
-
/** Emitted when media from user domain is enabled. */
|
|
4300
|
-
userDomainMediaEnabled?: UserDomainMediaEnabled;
|
|
4301
|
-
/** Emitted when media from user domain is disabled. */
|
|
4302
|
-
userDomainMediaDisabled?: UserDomainMediaDisabled;
|
|
4303
|
-
/** Emitted when Editorless is attached. */
|
|
4304
|
-
editorlessAssigned?: EditorlessAssigned;
|
|
4305
|
-
/** Emitted when Editorless is detached. */
|
|
4306
|
-
editorlessUnassigned?: EditorlessUnassigned;
|
|
4307
|
-
/**
|
|
4308
|
-
* A meta site id.
|
|
4309
|
-
* @format GUID
|
|
4310
|
-
*/
|
|
4311
|
-
metaSiteId?: string;
|
|
4312
|
-
/** A meta site version. Monotonically increasing. */
|
|
4313
|
-
version?: string;
|
|
4314
|
-
/** A timestamp of the event. */
|
|
4315
|
-
timestamp?: string;
|
|
4316
|
-
/**
|
|
4317
|
-
* TODO(meta-site): Change validation once validations are disabled for consumers
|
|
4318
|
-
* More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
|
|
4319
|
-
* @maxSize 4000
|
|
4320
|
-
*/
|
|
4321
|
-
assets?: Asset[];
|
|
4322
|
-
}
|
|
4323
|
-
/** @oneof */
|
|
4324
|
-
interface MetaSiteSpecialEventPayloadOneOf {
|
|
4325
|
-
/** Emitted on a meta site creation. */
|
|
4326
|
-
siteCreated?: SiteCreated;
|
|
4327
|
-
/** Emitted on a meta site transfer completion. */
|
|
4328
|
-
siteTransferred?: SiteTransferred;
|
|
4329
|
-
/** Emitted on a meta site deletion. */
|
|
4330
|
-
siteDeleted?: SiteDeleted;
|
|
4331
|
-
/** Emitted on a meta site restoration. */
|
|
4332
|
-
siteUndeleted?: SiteUndeleted;
|
|
4333
|
-
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
4334
|
-
sitePublished?: SitePublished;
|
|
4335
|
-
/** Emitted on a meta site unpublish. */
|
|
4336
|
-
siteUnpublished?: SiteUnpublished;
|
|
4337
|
-
/** Emitted when meta site is marked as template. */
|
|
4338
|
-
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
4339
|
-
/** Emitted when meta site is marked as a WixSite. */
|
|
4340
|
-
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
4341
|
-
/** Emitted when an application is provisioned (installed). */
|
|
4342
|
-
serviceProvisioned?: ServiceProvisioned;
|
|
4343
|
-
/** Emitted when an application is removed (uninstalled). */
|
|
4344
|
-
serviceRemoved?: ServiceRemoved;
|
|
4345
|
-
/** Emitted when meta site name (URL slug) is changed. */
|
|
4346
|
-
siteRenamedPayload?: SiteRenamed;
|
|
4347
|
-
/** Emitted when meta site was permanently deleted. */
|
|
4348
|
-
hardDeleted?: SiteHardDeleted;
|
|
4349
|
-
/** Emitted on a namespace change. */
|
|
4350
|
-
namespaceChanged?: NamespaceChanged;
|
|
4351
|
-
/** Emitted when Studio is attached. */
|
|
4352
|
-
studioAssigned?: StudioAssigned;
|
|
4353
|
-
/** Emitted when Studio is detached. */
|
|
4354
|
-
studioUnassigned?: StudioUnassigned;
|
|
4355
|
-
/**
|
|
4356
|
-
* Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
|
|
4357
|
-
* the actual URL.
|
|
4358
|
-
*
|
|
4359
|
-
* See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
|
|
4360
|
-
* See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
|
|
4361
|
-
*/
|
|
4362
|
-
urlChanged?: SiteUrlChanged;
|
|
4363
|
-
/** Site is marked as PurgedExternally */
|
|
4364
|
-
sitePurgedExternally?: SitePurgedExternally;
|
|
4365
|
-
/** Emitted when Odeditor is attached. */
|
|
4366
|
-
odeditorAssigned?: OdeditorAssigned;
|
|
4367
|
-
/** Emitted when Odeditor is detached. */
|
|
4368
|
-
odeditorUnassigned?: OdeditorUnassigned;
|
|
4369
|
-
/** Emitted when Picasso is attached. */
|
|
4370
|
-
picassoAssigned?: PicassoAssigned;
|
|
4371
|
-
/** Emitted when Picasso is detached. */
|
|
4372
|
-
picassoUnassigned?: PicassoUnassigned;
|
|
4373
|
-
/** Emitted when Wixel is attached. */
|
|
4374
|
-
wixelAssigned?: WixelAssigned;
|
|
4375
|
-
/** Emitted when Wixel is detached. */
|
|
4376
|
-
wixelUnassigned?: WixelUnassigned;
|
|
4377
|
-
/** Emitted when StudioTwo is attached. */
|
|
4378
|
-
studioTwoAssigned?: StudioTwoAssigned;
|
|
4379
|
-
/** Emitted when StudioTwo is detached. */
|
|
4380
|
-
studioTwoUnassigned?: StudioTwoUnassigned;
|
|
4381
|
-
/** Emitted when media from user domain is enabled. */
|
|
4382
|
-
userDomainMediaEnabled?: UserDomainMediaEnabled;
|
|
4383
|
-
/** Emitted when media from user domain is disabled. */
|
|
4384
|
-
userDomainMediaDisabled?: UserDomainMediaDisabled;
|
|
4385
|
-
/** Emitted when Editorless is attached. */
|
|
4386
|
-
editorlessAssigned?: EditorlessAssigned;
|
|
4387
|
-
/** Emitted when Editorless is detached. */
|
|
4388
|
-
editorlessUnassigned?: EditorlessUnassigned;
|
|
4389
|
-
}
|
|
4390
|
-
interface Asset {
|
|
4391
|
-
/**
|
|
4392
|
-
* An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
|
|
4393
|
-
* @maxLength 36
|
|
4394
|
-
*/
|
|
4395
|
-
appDefId?: string;
|
|
4396
|
-
/**
|
|
4397
|
-
* An instance id. For legacy reasons may be UUID or a string.
|
|
4398
|
-
* @maxLength 200
|
|
4399
|
-
*/
|
|
4400
|
-
instanceId?: string;
|
|
4401
|
-
/** An application state. */
|
|
4402
|
-
state?: StateWithLiterals;
|
|
4403
|
-
}
|
|
4404
|
-
declare enum State {
|
|
4405
|
-
UNKNOWN = "UNKNOWN",
|
|
4406
|
-
ENABLED = "ENABLED",
|
|
4407
|
-
DISABLED = "DISABLED",
|
|
4408
|
-
PENDING = "PENDING",
|
|
4409
|
-
DEMO = "DEMO"
|
|
4410
|
-
}
|
|
4411
|
-
/** @enumType */
|
|
4412
|
-
type StateWithLiterals = State | 'UNKNOWN' | 'ENABLED' | 'DISABLED' | 'PENDING' | 'DEMO';
|
|
4413
|
-
interface SiteCreated {
|
|
4414
|
-
/**
|
|
4415
|
-
* A template identifier (empty if not created from a template).
|
|
4416
|
-
* @maxLength 36
|
|
4417
|
-
*/
|
|
4418
|
-
originTemplateId?: string;
|
|
4419
|
-
/**
|
|
4420
|
-
* An account id of the owner.
|
|
4421
|
-
* @format GUID
|
|
4422
|
-
*/
|
|
4423
|
-
ownerId?: string;
|
|
4424
|
-
/** A context in which meta site was created. */
|
|
4425
|
-
context?: SiteCreatedContextWithLiterals;
|
|
4426
|
-
/**
|
|
4427
|
-
* A meta site id from which this site was created.
|
|
4428
|
-
*
|
|
4429
|
-
* In case of a creation from a template it's a template id.
|
|
4430
|
-
* In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
|
|
4431
|
-
* @format GUID
|
|
4432
|
-
*/
|
|
4433
|
-
originMetaSiteId?: string | null;
|
|
4434
|
-
/**
|
|
4435
|
-
* A meta site name (URL slug).
|
|
4436
|
-
* @maxLength 20
|
|
4437
|
-
*/
|
|
4438
|
-
siteName?: string;
|
|
4439
|
-
/** A namespace. */
|
|
4440
|
-
namespace?: NamespaceWithLiterals;
|
|
4441
|
-
}
|
|
4442
|
-
declare enum SiteCreatedContext {
|
|
4443
|
-
/** A valid option, we don't expose all reasons why site might be created. */
|
|
4444
|
-
OTHER = "OTHER",
|
|
4445
|
-
/** A meta site was created from template. */
|
|
4446
|
-
FROM_TEMPLATE = "FROM_TEMPLATE",
|
|
4447
|
-
/** A meta site was created by copying of the transfferred meta site. */
|
|
4448
|
-
DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
|
|
4449
|
-
/** A copy of existing meta site. */
|
|
4450
|
-
DUPLICATE = "DUPLICATE",
|
|
4451
|
-
/** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
|
|
4452
|
-
OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
|
|
4453
|
-
/** deprecated A meta site was created for Flash editor. */
|
|
4454
|
-
FLASH = "FLASH"
|
|
4455
|
-
}
|
|
4456
|
-
/** @enumType */
|
|
4457
|
-
type SiteCreatedContextWithLiterals = SiteCreatedContext | 'OTHER' | 'FROM_TEMPLATE' | 'DUPLICATE_BY_SITE_TRANSFER' | 'DUPLICATE' | 'OLD_SITE_TRANSFER' | 'FLASH';
|
|
4458
|
-
declare enum Namespace {
|
|
4459
|
-
UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
|
|
4460
|
-
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
4461
|
-
WIX = "WIX",
|
|
4462
|
-
/** 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. */
|
|
4463
|
-
SHOUT_OUT = "SHOUT_OUT",
|
|
4464
|
-
/** 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. */
|
|
4465
|
-
ALBUMS = "ALBUMS",
|
|
4466
|
-
/** 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. */
|
|
4467
|
-
WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
|
|
4468
|
-
/** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
4469
|
-
HOTELS = "HOTELS",
|
|
4470
|
-
/** 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. */
|
|
4471
|
-
CLUBS = "CLUBS",
|
|
4472
|
-
/** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
4473
|
-
ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
|
|
4474
|
-
/**
|
|
4475
|
-
* AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default.
|
|
4476
|
-
* Not the dev-center dev site (see Flag.DEV_CENTER_DEV_SITE_FLAG).
|
|
4477
|
-
*/
|
|
4478
|
-
DEV_SITE = "DEV_SITE",
|
|
4479
|
-
/** 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. */
|
|
4480
|
-
LOGOS = "LOGOS",
|
|
4481
|
-
/** 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. */
|
|
4482
|
-
VIDEO_MAKER = "VIDEO_MAKER",
|
|
4483
|
-
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
4484
|
-
PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
|
|
4485
|
-
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
4486
|
-
DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
|
|
4483
|
+
customMessage?: string | null;
|
|
4484
|
+
}
|
|
4485
|
+
interface RestockInfo {
|
|
4486
|
+
/** Restock type. */
|
|
4487
|
+
type?: RestockTypeWithLiterals;
|
|
4487
4488
|
/**
|
|
4488
|
-
*
|
|
4489
|
-
*
|
|
4490
|
-
* Meta site with this namespace will *not* be shown in a user's site list by default.
|
|
4489
|
+
* Restocked line items and quantities. Only relevant for `{"type": "SOME_ITEMS"}`.
|
|
4490
|
+
* @maxSize 300
|
|
4491
4491
|
*/
|
|
4492
|
-
|
|
4492
|
+
items?: RestockItem[];
|
|
4493
|
+
}
|
|
4494
|
+
declare enum RestockType {
|
|
4495
|
+
NO_ITEMS = "NO_ITEMS",
|
|
4496
|
+
ALL_ITEMS = "ALL_ITEMS",
|
|
4497
|
+
SOME_ITEMS = "SOME_ITEMS"
|
|
4498
|
+
}
|
|
4499
|
+
/** @enumType */
|
|
4500
|
+
type RestockTypeWithLiterals = RestockType | 'NO_ITEMS' | 'ALL_ITEMS' | 'SOME_ITEMS';
|
|
4501
|
+
interface RestockItem {
|
|
4493
4502
|
/**
|
|
4494
|
-
*
|
|
4495
|
-
*
|
|
4496
|
-
* Once the user attaches a site, the site will become a regular wixsite.
|
|
4503
|
+
* ID of the line item being restocked.
|
|
4504
|
+
* @format GUID
|
|
4497
4505
|
*/
|
|
4498
|
-
|
|
4499
|
-
/** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
|
|
4500
|
-
CREATOR_ECONOMY = "CREATOR_ECONOMY",
|
|
4501
|
-
/** It is to be used in the Business First efforts. */
|
|
4502
|
-
DASHBOARD_FIRST = "DASHBOARD_FIRST",
|
|
4503
|
-
/** Bookings business flow with no site. */
|
|
4504
|
-
ANYWHERE = "ANYWHERE",
|
|
4505
|
-
/** Namespace for Headless Backoffice with no editor */
|
|
4506
|
-
HEADLESS = "HEADLESS",
|
|
4506
|
+
lineItemId?: string;
|
|
4507
4507
|
/**
|
|
4508
|
-
*
|
|
4509
|
-
*
|
|
4508
|
+
* Line item quantity being restocked.
|
|
4509
|
+
* @min 1
|
|
4510
|
+
* @max 100000
|
|
4510
4511
|
*/
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4512
|
+
quantity?: number;
|
|
4513
|
+
}
|
|
4514
|
+
interface TriggerRefundResponse {
|
|
4515
|
+
/** All order's transactions after the refunds were added */
|
|
4516
|
+
orderTransactions?: OrderTransactions;
|
|
4517
|
+
/** Created refund ID */
|
|
4518
|
+
refundId?: string | null;
|
|
4519
|
+
/** Payment ID's that the refund execution had failed for */
|
|
4520
|
+
failedPaymentIds?: ItemMetadata[];
|
|
4521
|
+
}
|
|
4522
|
+
/**
|
|
4523
|
+
* A record of all payments and refunds associated with an order.
|
|
4524
|
+
*
|
|
4525
|
+
* Use order transactions to track payment status, add payment records, process refunds, and monitor chargebacks.
|
|
4526
|
+
*/
|
|
4527
|
+
interface OrderTransactions {
|
|
4514
4528
|
/**
|
|
4515
|
-
*
|
|
4516
|
-
*
|
|
4517
|
-
* The Mobile company will be the owner of this namespace.
|
|
4529
|
+
* Order ID.
|
|
4530
|
+
* @format GUID
|
|
4518
4531
|
*/
|
|
4519
|
-
|
|
4520
|
-
/** Nownia.com Siteless account management for Ai Scheduling Assistant. */
|
|
4521
|
-
NOWNIA = "NOWNIA",
|
|
4532
|
+
orderId?: string;
|
|
4522
4533
|
/**
|
|
4523
|
-
*
|
|
4524
|
-
*
|
|
4534
|
+
* Record of payments made to the merchant.
|
|
4535
|
+
* @maxSize 100
|
|
4525
4536
|
*/
|
|
4526
|
-
|
|
4527
|
-
/** Codux Headless Sites */
|
|
4528
|
-
CODUX = "CODUX",
|
|
4529
|
-
/** Bobb - AI Design Creator. */
|
|
4530
|
-
MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
|
|
4537
|
+
payments?: Payment[];
|
|
4531
4538
|
/**
|
|
4532
|
-
*
|
|
4533
|
-
*
|
|
4539
|
+
* Record of refunds made to the buyer.
|
|
4540
|
+
* @maxSize 300
|
|
4534
4541
|
*/
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
/**
|
|
4539
|
-
|
|
4540
|
-
/**
|
|
4541
|
-
|
|
4542
|
-
/**
|
|
4543
|
-
|
|
4544
|
-
/** Wix Nano. */
|
|
4545
|
-
NANO = "NANO",
|
|
4546
|
-
/** Base44 headless sites. */
|
|
4547
|
-
BASE44 = "BASE44",
|
|
4548
|
-
/** Wix Channels Sites */
|
|
4549
|
-
CHANNELS = "CHANNELS",
|
|
4550
|
-
/** Nautilus platform. */
|
|
4551
|
-
NAUTILUS = "NAUTILUS",
|
|
4542
|
+
refunds?: Refund[];
|
|
4543
|
+
}
|
|
4544
|
+
interface Payment extends PaymentPaymentDetailsOneOf, PaymentReceiptInfoOneOf, PaymentStatusDetailsOneOf {
|
|
4545
|
+
/** Regular payment details. */
|
|
4546
|
+
regularPaymentDetails?: RegularPaymentDetails;
|
|
4547
|
+
/** Gift card payment details. */
|
|
4548
|
+
giftcardPaymentDetails?: GiftCardPaymentDetails;
|
|
4549
|
+
/** Membership payment details. */
|
|
4550
|
+
membershipPaymentDetails?: MembershipPaymentDetails;
|
|
4552
4551
|
/**
|
|
4553
|
-
*
|
|
4554
|
-
*
|
|
4552
|
+
* Payment ID.
|
|
4553
|
+
* @format GUID
|
|
4554
|
+
* @readonly
|
|
4555
4555
|
*/
|
|
4556
|
-
|
|
4557
|
-
/**
|
|
4558
|
-
|
|
4556
|
+
id?: string | null;
|
|
4557
|
+
/** 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. */
|
|
4558
|
+
createdDate?: Date | null;
|
|
4559
4559
|
/**
|
|
4560
|
-
*
|
|
4561
|
-
*
|
|
4560
|
+
* Date and time the payment was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
|
|
4561
|
+
* @readonly
|
|
4562
4562
|
*/
|
|
4563
|
-
|
|
4563
|
+
updatedDate?: Date | null;
|
|
4564
|
+
/** Payment amount. */
|
|
4565
|
+
amount?: Price;
|
|
4564
4566
|
/**
|
|
4565
|
-
*
|
|
4566
|
-
*
|
|
4567
|
-
*
|
|
4568
|
-
* MetaSites with this namespace will *not* be shown in a user's site list by default.
|
|
4567
|
+
* Whether refunds for this payment are disabled.
|
|
4568
|
+
* + `true`: This payment is not refundable.
|
|
4569
|
+
* + `false`: This payment may be refunded. However, this ultimately depends on the payment provider.
|
|
4569
4570
|
*/
|
|
4570
|
-
|
|
4571
|
+
refundDisabled?: boolean;
|
|
4571
4572
|
/**
|
|
4572
|
-
*
|
|
4573
|
-
*
|
|
4573
|
+
* Whether receipt generation is allowed for this payment.
|
|
4574
|
+
* + `true`: This payment supports receipt generation.
|
|
4575
|
+
* + `false`: This payment doesn't support receipt generation, or a receipt was already generated.
|
|
4576
|
+
* @readonly
|
|
4574
4577
|
*/
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
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' | 'NAUTILUS' | 'SYMPHONY' | 'NAUTILUS_APPS' | 'VIBU' | 'ENTERPRISE_BRAND_KIT' | 'DEV_CENTER_DEV_SITE';
|
|
4579
|
-
/** Site transferred to another user. */
|
|
4580
|
-
interface SiteTransferred {
|
|
4578
|
+
supportReceiptGeneration?: boolean;
|
|
4579
|
+
/** Details about cash rounding applied to this payment, when relevant. */
|
|
4580
|
+
cashRounding?: CashRoundingDetails;
|
|
4581
4581
|
/**
|
|
4582
|
-
*
|
|
4583
|
-
*
|
|
4582
|
+
* Overall payment status.
|
|
4583
|
+
*
|
|
4584
|
+
* Gift card and membership payments support only `APPROVED`, `PENDING`, `CANCELED`, `DECLINED`, and `VOIDED`. The remaining values apply to regular payments.
|
|
4584
4585
|
*/
|
|
4585
|
-
|
|
4586
|
+
status?: PaymentStatusWithLiterals;
|
|
4586
4587
|
/**
|
|
4587
|
-
*
|
|
4588
|
+
* ID linking this payment to the charge request that created it. Matches the `idempotencyKey` sent in the Charge Order request.
|
|
4588
4589
|
* @format GUID
|
|
4589
4590
|
*/
|
|
4590
|
-
|
|
4591
|
-
}
|
|
4592
|
-
/** Soft deletion of the meta site. Could be restored. */
|
|
4593
|
-
interface SiteDeleted {
|
|
4594
|
-
/** A deletion context. */
|
|
4595
|
-
deleteContext?: DeleteContext;
|
|
4596
|
-
}
|
|
4597
|
-
interface DeleteContext {
|
|
4598
|
-
/** When the meta site was deleted. */
|
|
4599
|
-
dateDeleted?: Date | null;
|
|
4600
|
-
/** A status. */
|
|
4601
|
-
deleteStatus?: DeleteStatusWithLiterals;
|
|
4602
|
-
/**
|
|
4603
|
-
* A reason (flow).
|
|
4604
|
-
* @maxLength 255
|
|
4605
|
-
*/
|
|
4606
|
-
deleteOrigin?: string;
|
|
4607
|
-
/**
|
|
4608
|
-
* A service that deleted it.
|
|
4609
|
-
* @maxLength 255
|
|
4610
|
-
*/
|
|
4611
|
-
initiatorId?: string | null;
|
|
4591
|
+
chargeCorrelationId?: string | null;
|
|
4612
4592
|
}
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4593
|
+
/** @oneof */
|
|
4594
|
+
interface PaymentPaymentDetailsOneOf {
|
|
4595
|
+
/** Regular payment details. */
|
|
4596
|
+
regularPaymentDetails?: RegularPaymentDetails;
|
|
4597
|
+
/** Gift card payment details. */
|
|
4598
|
+
giftcardPaymentDetails?: GiftCardPaymentDetails;
|
|
4599
|
+
/** Membership payment details. */
|
|
4600
|
+
membershipPaymentDetails?: MembershipPaymentDetails;
|
|
4619
4601
|
}
|
|
4620
|
-
/** @
|
|
4621
|
-
|
|
4622
|
-
/** Restoration of the meta site. */
|
|
4623
|
-
interface SiteUndeleted {
|
|
4602
|
+
/** @oneof */
|
|
4603
|
+
interface PaymentReceiptInfoOneOf {
|
|
4624
4604
|
}
|
|
4625
|
-
/**
|
|
4626
|
-
interface
|
|
4605
|
+
/** @oneof */
|
|
4606
|
+
interface PaymentStatusDetailsOneOf {
|
|
4627
4607
|
}
|
|
4628
|
-
interface
|
|
4608
|
+
interface RegularPaymentDetails extends RegularPaymentDetailsPaymentMethodDetailsOneOf {
|
|
4609
|
+
/** Credit card details. */
|
|
4610
|
+
creditCardDetails?: CreditCardPaymentMethodDetails;
|
|
4629
4611
|
/**
|
|
4630
|
-
*
|
|
4631
|
-
* @maxLength
|
|
4632
|
-
* @maxSize 10000
|
|
4612
|
+
* Wix Payments order ID.
|
|
4613
|
+
* @maxLength 100
|
|
4633
4614
|
*/
|
|
4634
|
-
|
|
4635
|
-
}
|
|
4636
|
-
interface SiteMarkedAsTemplate {
|
|
4637
|
-
}
|
|
4638
|
-
interface SiteMarkedAsWixSite {
|
|
4639
|
-
}
|
|
4640
|
-
/**
|
|
4641
|
-
* Represents a service provisioned a site.
|
|
4642
|
-
*
|
|
4643
|
-
* Note on `origin_instance_id`:
|
|
4644
|
-
* There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
|
|
4645
|
-
* This is because of the following scenario:
|
|
4646
|
-
*
|
|
4647
|
-
* Imagine you have a template where a third-party application (TPA) includes some stub data,
|
|
4648
|
-
* such as a product catalog. When you create a site from this template, you inherit this
|
|
4649
|
-
* default product catalog. However, if the template's product catalog is modified,
|
|
4650
|
-
* your site will retain the catalog as it was at the time of site creation. This ensures that
|
|
4651
|
-
* your site remains consistent with what you initially received and does not include any
|
|
4652
|
-
* changes made to the original template afterward.
|
|
4653
|
-
* To ensure this, the TPA on the template gets a new instance_id.
|
|
4654
|
-
*/
|
|
4655
|
-
interface ServiceProvisioned {
|
|
4615
|
+
paymentOrderId?: string | null;
|
|
4656
4616
|
/**
|
|
4657
|
-
*
|
|
4658
|
-
*
|
|
4617
|
+
* Payment gateway's transaction ID.
|
|
4618
|
+
* This field is only returned when the value of `offline_payment` is `false`.
|
|
4619
|
+
* @maxLength 100
|
|
4620
|
+
*/
|
|
4621
|
+
gatewayTransactionId?: string | null;
|
|
4622
|
+
/**
|
|
4623
|
+
* Payment method.
|
|
4624
|
+
* Deprecated. Use `paymentMethodName.buyerLanguageName` instead.
|
|
4625
|
+
* Non-exhaustive list of supported values:
|
|
4626
|
+
* + `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`
|
|
4627
|
+
* @maxLength 150
|
|
4628
|
+
* @deprecated Payment method.
|
|
4629
|
+
* Deprecated. Use `paymentMethodName.buyerLanguageName` instead.
|
|
4630
|
+
* Non-exhaustive list of supported values:
|
|
4631
|
+
* + `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`
|
|
4632
|
+
* @replacedBy payment_method_name
|
|
4633
|
+
* @targetRemovalDate 2026-07-01
|
|
4659
4634
|
*/
|
|
4660
|
-
|
|
4635
|
+
paymentMethod?: string | null;
|
|
4661
4636
|
/**
|
|
4662
|
-
*
|
|
4663
|
-
* @maxLength
|
|
4637
|
+
* Transaction ID in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for offline payments.
|
|
4638
|
+
* @maxLength 100
|
|
4664
4639
|
*/
|
|
4665
|
-
|
|
4640
|
+
providerTransactionId?: string | null;
|
|
4641
|
+
/** Whether the payment was made offline. For example, when using cash or when marked as paid in the Business Manager. */
|
|
4642
|
+
offlinePayment?: boolean;
|
|
4666
4643
|
/**
|
|
4667
|
-
*
|
|
4668
|
-
* @
|
|
4644
|
+
* Payment status.
|
|
4645
|
+
* @deprecated Payment status.
|
|
4646
|
+
* @replacedBy payment.status
|
|
4647
|
+
* @targetRemovalDate 2026-11-01
|
|
4669
4648
|
*/
|
|
4670
|
-
|
|
4649
|
+
status?: TransactionStatusWithLiterals;
|
|
4650
|
+
/** Whether there is a payment agreement that allows for future charges. */
|
|
4651
|
+
savedPaymentMethod?: boolean;
|
|
4652
|
+
/** Authorization details. */
|
|
4653
|
+
authorizationDetails?: AuthorizationDetails;
|
|
4671
4654
|
/**
|
|
4672
|
-
*
|
|
4673
|
-
* @
|
|
4655
|
+
* Record of chargebacks made by the buyer.
|
|
4656
|
+
* @maxSize 6
|
|
4674
4657
|
*/
|
|
4675
|
-
|
|
4658
|
+
chargebacks?: Chargeback[];
|
|
4659
|
+
/** Platform fee amount associated with this payment. */
|
|
4660
|
+
platformFee?: Price;
|
|
4676
4661
|
/**
|
|
4677
|
-
*
|
|
4678
|
-
*
|
|
4662
|
+
* Payment method with buyer and optional owner translations.
|
|
4663
|
+
* Non-exhaustive list of supported values:
|
|
4664
|
+
* + `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`
|
|
4679
4665
|
*/
|
|
4680
|
-
|
|
4666
|
+
paymentMethodName?: PaymentMethodName;
|
|
4681
4667
|
}
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4668
|
+
/** @oneof */
|
|
4669
|
+
interface RegularPaymentDetailsPaymentMethodDetailsOneOf {
|
|
4670
|
+
/** Credit card details. */
|
|
4671
|
+
creditCardDetails?: CreditCardPaymentMethodDetails;
|
|
4672
|
+
}
|
|
4673
|
+
declare enum TransactionStatus {
|
|
4674
|
+
UNDEFINED = "UNDEFINED",
|
|
4675
|
+
APPROVED = "APPROVED",
|
|
4676
|
+
PENDING = "PENDING",
|
|
4677
|
+
PENDING_MERCHANT = "PENDING_MERCHANT",
|
|
4678
|
+
CANCELED = "CANCELED",
|
|
4679
|
+
DECLINED = "DECLINED",
|
|
4680
|
+
REFUNDED = "REFUNDED",
|
|
4681
|
+
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
|
|
4682
|
+
AUTHORIZED = "AUTHORIZED",
|
|
4683
|
+
VOIDED = "VOIDED"
|
|
4684
|
+
}
|
|
4685
|
+
/** @enumType */
|
|
4686
|
+
type TransactionStatusWithLiterals = TransactionStatus | 'UNDEFINED' | 'APPROVED' | 'PENDING' | 'PENDING_MERCHANT' | 'CANCELED' | 'DECLINED' | 'REFUNDED' | 'PARTIALLY_REFUNDED' | 'AUTHORIZED' | 'VOIDED';
|
|
4687
|
+
interface CreditCardPaymentMethodDetails {
|
|
4688
4688
|
/**
|
|
4689
|
-
*
|
|
4690
|
-
* @maxLength
|
|
4689
|
+
* The last 4 digits of the card number.
|
|
4690
|
+
* @maxLength 4
|
|
4691
4691
|
*/
|
|
4692
|
-
|
|
4692
|
+
lastFourDigits?: string | null;
|
|
4693
4693
|
/**
|
|
4694
|
-
*
|
|
4695
|
-
* @maxLength
|
|
4694
|
+
* Card issuer's brand.
|
|
4695
|
+
* @maxLength 100
|
|
4696
4696
|
*/
|
|
4697
|
-
|
|
4697
|
+
brand?: string | null;
|
|
4698
4698
|
}
|
|
4699
|
-
|
|
4700
|
-
interface SiteRenamed {
|
|
4699
|
+
interface AuthorizationDetails {
|
|
4701
4700
|
/**
|
|
4702
|
-
*
|
|
4703
|
-
* @
|
|
4701
|
+
* Whether the authorized payment is of a delayed capture.
|
|
4702
|
+
* @readonly
|
|
4704
4703
|
*/
|
|
4705
|
-
|
|
4704
|
+
delayedCapture?: boolean;
|
|
4705
|
+
/** Date and time the payment was authorized in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
|
|
4706
|
+
authorizedDate?: Date | null;
|
|
4706
4707
|
/**
|
|
4707
|
-
*
|
|
4708
|
-
*
|
|
4708
|
+
* List of captures associated with payment
|
|
4709
|
+
* In case of failed it can be replaced with new one with PENDING or SUCCESS statuses
|
|
4710
|
+
* @maxSize 1
|
|
4709
4711
|
*/
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
* Could not be restored. Therefore it's desirable to cleanup data.
|
|
4716
|
-
*/
|
|
4717
|
-
interface SiteHardDeleted {
|
|
4718
|
-
/** A deletion context. */
|
|
4719
|
-
deleteContext?: DeleteContext;
|
|
4720
|
-
}
|
|
4721
|
-
interface NamespaceChanged {
|
|
4722
|
-
/** A previous namespace. */
|
|
4723
|
-
oldNamespace?: NamespaceWithLiterals;
|
|
4724
|
-
/** A new namespace. */
|
|
4725
|
-
newNamespace?: NamespaceWithLiterals;
|
|
4726
|
-
}
|
|
4727
|
-
/** Assigned Studio editor */
|
|
4728
|
-
interface StudioAssigned {
|
|
4729
|
-
}
|
|
4730
|
-
/** Unassigned Studio editor */
|
|
4731
|
-
interface StudioUnassigned {
|
|
4732
|
-
}
|
|
4733
|
-
/**
|
|
4734
|
-
* Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.
|
|
4735
|
-
*
|
|
4736
|
-
* This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up
|
|
4737
|
-
* with sites and its urls, you need to listen to another topic/event. Read about it:
|
|
4738
|
-
*
|
|
4739
|
-
* https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service
|
|
4740
|
-
*/
|
|
4741
|
-
interface SiteUrlChanged {
|
|
4712
|
+
captures?: AuthorizationCapture[];
|
|
4713
|
+
/** Void associated with payment */
|
|
4714
|
+
void?: AuthorizationVoid;
|
|
4715
|
+
/** Scheduled action for this transaction */
|
|
4716
|
+
scheduledAction?: V1ScheduledAction;
|
|
4742
4717
|
}
|
|
4743
|
-
|
|
4744
|
-
* Used at the end of the deletion flow for both draft sites and when a user deletes a site.
|
|
4745
|
-
* Consumed by other teams to remove relevant data.
|
|
4746
|
-
*/
|
|
4747
|
-
interface SitePurgedExternally {
|
|
4718
|
+
interface AuthorizationCapture {
|
|
4748
4719
|
/**
|
|
4749
|
-
*
|
|
4750
|
-
* @
|
|
4751
|
-
* @
|
|
4752
|
-
* @targetRemovalDate 2025-04-15
|
|
4720
|
+
* Capture ID.
|
|
4721
|
+
* @format GUID
|
|
4722
|
+
* @readonly
|
|
4753
4723
|
*/
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
/**
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
interface PicassoUnassigned {
|
|
4767
|
-
}
|
|
4768
|
-
/** Assigned Wixel */
|
|
4769
|
-
interface WixelAssigned {
|
|
4770
|
-
}
|
|
4771
|
-
/** Unassigned Wixel */
|
|
4772
|
-
interface WixelUnassigned {
|
|
4773
|
-
}
|
|
4774
|
-
/** Assigned StudioTwo */
|
|
4775
|
-
interface StudioTwoAssigned {
|
|
4776
|
-
}
|
|
4777
|
-
/** Unassigned StudioTwo */
|
|
4778
|
-
interface StudioTwoUnassigned {
|
|
4779
|
-
}
|
|
4780
|
-
/** Media from user domain is enabled. */
|
|
4781
|
-
interface UserDomainMediaEnabled {
|
|
4782
|
-
}
|
|
4783
|
-
/** Media from user domain is disabled. */
|
|
4784
|
-
interface UserDomainMediaDisabled {
|
|
4785
|
-
}
|
|
4786
|
-
/** Assigned Editorless */
|
|
4787
|
-
interface EditorlessAssigned {
|
|
4788
|
-
}
|
|
4789
|
-
/** Unassigned Editorless */
|
|
4790
|
-
interface EditorlessUnassigned {
|
|
4724
|
+
id?: string | null;
|
|
4725
|
+
/** Status of this capture action */
|
|
4726
|
+
status?: AuthorizationCaptureStatusWithLiterals;
|
|
4727
|
+
/**
|
|
4728
|
+
* Amount of this capture
|
|
4729
|
+
* @immutable
|
|
4730
|
+
*/
|
|
4731
|
+
amount?: Price;
|
|
4732
|
+
/** Date and time the capture was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
|
|
4733
|
+
createdDate?: Date | null;
|
|
4734
|
+
/** In case of status is FAILED may contain failure details */
|
|
4735
|
+
failureDetails?: AuthorizationActionFailureDetails;
|
|
4791
4736
|
}
|
|
4792
|
-
|
|
4737
|
+
declare enum AuthorizationCaptureStatus {
|
|
4738
|
+
/** Capture operation still in progress. */
|
|
4739
|
+
PENDING = "PENDING",
|
|
4740
|
+
/** Capture operation succeeded. */
|
|
4741
|
+
SUCCEEDED = "SUCCEEDED",
|
|
4742
|
+
/** Capture operation failed. */
|
|
4743
|
+
FAILED = "FAILED"
|
|
4793
4744
|
}
|
|
4794
|
-
|
|
4795
|
-
|
|
4745
|
+
/** @enumType */
|
|
4746
|
+
type AuthorizationCaptureStatusWithLiterals = AuthorizationCaptureStatus | 'PENDING' | 'SUCCEEDED' | 'FAILED';
|
|
4747
|
+
interface AuthorizationActionFailureDetails {
|
|
4748
|
+
/** @maxLength 100 */
|
|
4749
|
+
failureCode?: string;
|
|
4796
4750
|
}
|
|
4797
|
-
interface
|
|
4798
|
-
/**
|
|
4799
|
-
|
|
4800
|
-
/**
|
|
4801
|
-
|
|
4751
|
+
interface AuthorizationVoid {
|
|
4752
|
+
/** Status of this void action */
|
|
4753
|
+
status?: AuthorizationVoidStatusWithLiterals;
|
|
4754
|
+
/** Date and time the void was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
|
|
4755
|
+
voidedDate?: Date | null;
|
|
4756
|
+
/** In case of status is FAILED may contain failure details */
|
|
4757
|
+
failureDetails?: AuthorizationActionFailureDetails;
|
|
4758
|
+
/** Reason of void action */
|
|
4759
|
+
reason?: ReasonWithLiterals;
|
|
4802
4760
|
}
|
|
4803
|
-
declare enum
|
|
4804
|
-
|
|
4805
|
-
|
|
4761
|
+
declare enum AuthorizationVoidStatus {
|
|
4762
|
+
/** Void operation still in progress. */
|
|
4763
|
+
PENDING = "PENDING",
|
|
4764
|
+
/** Void operation succeeded. */
|
|
4765
|
+
SUCCEEDED = "SUCCEEDED",
|
|
4766
|
+
/** Void operation failed. */
|
|
4767
|
+
FAILED = "FAILED"
|
|
4806
4768
|
}
|
|
4807
4769
|
/** @enumType */
|
|
4808
|
-
type
|
|
4809
|
-
|
|
4810
|
-
|
|
4770
|
+
type AuthorizationVoidStatusWithLiterals = AuthorizationVoidStatus | 'PENDING' | 'SUCCEEDED' | 'FAILED';
|
|
4771
|
+
/** Reason the authorization was voided. */
|
|
4772
|
+
declare enum Reason {
|
|
4773
|
+
/** Authorization was voided by user. */
|
|
4774
|
+
MANUAL = "MANUAL",
|
|
4775
|
+
/** Authorization passed execution date. */
|
|
4776
|
+
SCHEDULED = "SCHEDULED"
|
|
4811
4777
|
}
|
|
4812
|
-
|
|
4778
|
+
/** @enumType */
|
|
4779
|
+
type ReasonWithLiterals = Reason | 'MANUAL' | 'SCHEDULED';
|
|
4780
|
+
interface V1ScheduledAction {
|
|
4781
|
+
/** Type of the action. */
|
|
4782
|
+
actionType?: ActionTypeWithLiterals;
|
|
4783
|
+
/** The date and time of the action. */
|
|
4784
|
+
executionDate?: Date | null;
|
|
4813
4785
|
}
|
|
4814
|
-
|
|
4815
|
-
|
|
4786
|
+
declare enum ActionType {
|
|
4787
|
+
VOID = "VOID",
|
|
4788
|
+
CAPTURE = "CAPTURE"
|
|
4816
4789
|
}
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
* @minLength 1
|
|
4821
|
-
* @maxLength 100
|
|
4822
|
-
*/
|
|
4823
|
-
ecomOrderId: string;
|
|
4824
|
-
/** Amount to collect */
|
|
4825
|
-
amount: Price;
|
|
4826
|
-
/**
|
|
4827
|
-
* Optional parameter. When present, payment collection will be performed using given payment gateway order.
|
|
4828
|
-
* Existing payment gateway order will be updated with a new amount.
|
|
4829
|
-
* When parameter is absent, new payment gateway order will be created and used for payment collection.
|
|
4830
|
-
*/
|
|
4831
|
-
paymentGatewayOrderId?: string | null;
|
|
4790
|
+
/** @enumType */
|
|
4791
|
+
type ActionTypeWithLiterals = ActionType | 'VOID' | 'CAPTURE';
|
|
4792
|
+
interface Chargeback {
|
|
4832
4793
|
/**
|
|
4833
|
-
*
|
|
4834
|
-
*
|
|
4835
|
-
* @
|
|
4836
|
-
*
|
|
4837
|
-
* @replacedBy delayed_capture_settings.scheduled_action
|
|
4838
|
-
* @targetRemovalDate 2024-09-30
|
|
4794
|
+
* Chargeback ID.
|
|
4795
|
+
* @format GUID
|
|
4796
|
+
* @readonly
|
|
4797
|
+
* @immutable
|
|
4839
4798
|
*/
|
|
4840
|
-
|
|
4841
|
-
/** Delayed capture payment settings */
|
|
4842
|
-
delayedCaptureSettings?: DelayedCaptureSettings;
|
|
4843
|
-
}
|
|
4844
|
-
interface RedirectUrls {
|
|
4799
|
+
id?: string;
|
|
4845
4800
|
/**
|
|
4846
|
-
*
|
|
4847
|
-
* @
|
|
4801
|
+
* 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.
|
|
4802
|
+
* @readonly
|
|
4803
|
+
* @immutable
|
|
4848
4804
|
*/
|
|
4849
|
-
|
|
4805
|
+
createdDate?: Date | null;
|
|
4850
4806
|
/**
|
|
4851
|
-
*
|
|
4852
|
-
* @
|
|
4807
|
+
* 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.
|
|
4808
|
+
* @readonly
|
|
4853
4809
|
*/
|
|
4854
|
-
|
|
4810
|
+
updatedDate?: Date | null;
|
|
4855
4811
|
/**
|
|
4856
|
-
*
|
|
4857
|
-
* @
|
|
4812
|
+
* Amount.
|
|
4813
|
+
* @readonly
|
|
4814
|
+
* @immutable
|
|
4858
4815
|
*/
|
|
4859
|
-
|
|
4816
|
+
amount?: Price;
|
|
4860
4817
|
/**
|
|
4861
|
-
*
|
|
4862
|
-
* @
|
|
4818
|
+
* Reversal amount. Present only when status is REVERSED.
|
|
4819
|
+
* @readonly
|
|
4863
4820
|
*/
|
|
4864
|
-
|
|
4865
|
-
}
|
|
4866
|
-
interface DelayedCaptureSettings {
|
|
4867
|
-
/** Specifies the automatic action (void/capture) for authorized transaction after the specified duration */
|
|
4868
|
-
scheduledAction?: ScheduledActionWithLiterals;
|
|
4869
|
-
/** Delay duration before execution. Optional - if not set, providers default period will be used */
|
|
4870
|
-
delayDuration?: Duration;
|
|
4871
|
-
}
|
|
4872
|
-
declare enum ScheduledAction {
|
|
4873
|
-
/** Whether payment will be auto-voided when duration passes */
|
|
4874
|
-
VOID = "VOID",
|
|
4875
|
-
/** Whether payment will be auto-captured when duration passes */
|
|
4876
|
-
CAPTURE = "CAPTURE"
|
|
4877
|
-
}
|
|
4878
|
-
/** @enumType */
|
|
4879
|
-
type ScheduledActionWithLiterals = ScheduledAction | 'VOID' | 'CAPTURE';
|
|
4880
|
-
interface Duration {
|
|
4821
|
+
reversalAmount?: Price;
|
|
4881
4822
|
/**
|
|
4882
|
-
*
|
|
4883
|
-
*
|
|
4823
|
+
* Status.
|
|
4824
|
+
*
|
|
4825
|
+
* Default: `"APPROVED"`.
|
|
4884
4826
|
*/
|
|
4885
|
-
|
|
4886
|
-
/** Duration unit: MINUTES, HOURS and DAYS */
|
|
4887
|
-
unit?: DurationUnitWithLiterals;
|
|
4888
|
-
}
|
|
4889
|
-
declare enum DurationUnit {
|
|
4890
|
-
MINUTES = "MINUTES",
|
|
4891
|
-
HOURS = "HOURS",
|
|
4892
|
-
DAYS = "DAYS"
|
|
4893
|
-
}
|
|
4894
|
-
/** @enumType */
|
|
4895
|
-
type DurationUnitWithLiterals = DurationUnit | 'MINUTES' | 'HOURS' | 'DAYS';
|
|
4896
|
-
interface PreparePaymentCollectionResponse {
|
|
4897
|
-
/** Payment gateway order id which is associated with given payment */
|
|
4898
|
-
paymentGatewayOrderId?: string;
|
|
4899
|
-
}
|
|
4900
|
-
interface GetPaymentCollectabilityStatusRequest {
|
|
4827
|
+
status?: ChargebackStatusWithLiterals;
|
|
4901
4828
|
/**
|
|
4902
|
-
*
|
|
4903
|
-
* @
|
|
4904
|
-
* @
|
|
4829
|
+
* External chargeback ID.
|
|
4830
|
+
* @format GUID
|
|
4831
|
+
* @readonly
|
|
4832
|
+
* @immutable
|
|
4905
4833
|
*/
|
|
4906
|
-
|
|
4907
|
-
}
|
|
4908
|
-
interface GetPaymentCollectabilityStatusResponse {
|
|
4909
|
-
/** Payment collectability status */
|
|
4910
|
-
status?: PaymentCollectabilityStatusWithLiterals;
|
|
4911
|
-
/** Collectable order amount */
|
|
4912
|
-
amount?: Price;
|
|
4834
|
+
externalId?: string | null;
|
|
4913
4835
|
}
|
|
4914
|
-
declare enum
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
NONCOLLECTABLE_MISSING_PAYMENT_METHOD = "NONCOLLECTABLE_MISSING_PAYMENT_METHOD",
|
|
4920
|
-
NONCOLLECTABLE_ORDER_IS_PENDING = "NONCOLLECTABLE_ORDER_IS_PENDING",
|
|
4921
|
-
NONCOLLECTABLE_ORDER_IS_REJECTED = "NONCOLLECTABLE_ORDER_IS_REJECTED",
|
|
4922
|
-
NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS = "NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS",
|
|
4923
|
-
NONCOLLECTABLE_ORDER_HAS_CHARGEBACKS = "NONCOLLECTABLE_ORDER_HAS_CHARGEBACKS",
|
|
4924
|
-
NONCOLLECTABLE_SUBSCRIPTION_CYCLE_ALREADY_PASSED = "NONCOLLECTABLE_SUBSCRIPTION_CYCLE_ALREADY_PASSED",
|
|
4925
|
-
NONCOLLECTABLE_ORDER_HAS_UNSUPPORTED_SUBSCRIPTION = "NONCOLLECTABLE_ORDER_HAS_UNSUPPORTED_SUBSCRIPTION",
|
|
4926
|
-
NONCOLLECTABLE_CUSTOM_AMOUNT_NOT_SUPPORTED = "NONCOLLECTABLE_CUSTOM_AMOUNT_NOT_SUPPORTED",
|
|
4927
|
-
NONCOLLECTABLE_SUBSCRIPTION_START_DATE_IN_PAST = "NONCOLLECTABLE_SUBSCRIPTION_START_DATE_IN_PAST"
|
|
4836
|
+
declare enum ChargebackStatus {
|
|
4837
|
+
/** Chargeback was approved. */
|
|
4838
|
+
APPROVED = "APPROVED",
|
|
4839
|
+
/** Chargeback was reversed. */
|
|
4840
|
+
REVERSED = "REVERSED"
|
|
4928
4841
|
}
|
|
4929
4842
|
/** @enumType */
|
|
4930
|
-
type
|
|
4931
|
-
interface
|
|
4932
|
-
/**
|
|
4933
|
-
* Order ID.
|
|
4934
|
-
* @minLength 1
|
|
4935
|
-
* @maxLength 100
|
|
4936
|
-
*/
|
|
4937
|
-
orderId: string;
|
|
4938
|
-
/** Amount to be recorded as approved manual payment for given order */
|
|
4939
|
-
amount: Price;
|
|
4940
|
-
}
|
|
4941
|
-
/**
|
|
4942
|
-
* User-defined payment method name.
|
|
4943
|
-
* Allows specifying either a predefined type or a custom name.
|
|
4944
|
-
*/
|
|
4945
|
-
interface UserDefinedPaymentMethodName extends UserDefinedPaymentMethodNameKindOneOf {
|
|
4946
|
-
/** Predefined payment method. */
|
|
4947
|
-
predefined?: PredefinedPaymentMethodWithLiterals;
|
|
4843
|
+
type ChargebackStatusWithLiterals = ChargebackStatus | 'APPROVED' | 'REVERSED';
|
|
4844
|
+
interface PaymentMethodName {
|
|
4948
4845
|
/**
|
|
4949
|
-
*
|
|
4950
|
-
*
|
|
4951
|
-
* For example, `"Wire transfer"`, `"Money order"`, `"Venmo"` or any other custom name.
|
|
4952
|
-
* @minLength 1
|
|
4846
|
+
* Payment method name in the buyer's language. For example, `"Credit/Debit Cards"`.
|
|
4953
4847
|
* @maxLength 150
|
|
4954
4848
|
*/
|
|
4955
|
-
|
|
4956
|
-
}
|
|
4957
|
-
/** @oneof */
|
|
4958
|
-
interface UserDefinedPaymentMethodNameKindOneOf {
|
|
4959
|
-
/** Predefined payment method. */
|
|
4960
|
-
predefined?: PredefinedPaymentMethodWithLiterals;
|
|
4849
|
+
buyerLanguageName?: string | null;
|
|
4961
4850
|
/**
|
|
4962
|
-
*
|
|
4851
|
+
* Payment method name in the site's language. For example, `"Credit/Debit Cards"`.
|
|
4963
4852
|
*
|
|
4964
|
-
*
|
|
4965
|
-
* @minLength 1
|
|
4853
|
+
* When no site-language name is stored, holds the same value as `buyerLanguageName`.
|
|
4966
4854
|
* @maxLength 150
|
|
4967
4855
|
*/
|
|
4968
|
-
|
|
4969
|
-
}
|
|
4970
|
-
/** Predefined payment method types for offline/manual payments. */
|
|
4971
|
-
declare enum PredefinedPaymentMethod {
|
|
4972
|
-
/** Cash payment. */
|
|
4973
|
-
CASH = "CASH",
|
|
4974
|
-
/** Bank transfer. */
|
|
4975
|
-
BANK_TRANSFER = "BANK_TRANSFER",
|
|
4976
|
-
/** Payment by check. */
|
|
4977
|
-
CHECK = "CHECK"
|
|
4978
|
-
}
|
|
4979
|
-
/** @enumType */
|
|
4980
|
-
type PredefinedPaymentMethodWithLiterals = PredefinedPaymentMethod | 'CASH' | 'BANK_TRANSFER' | 'CHECK';
|
|
4981
|
-
interface RecordManuallyCollectedPaymentResponse {
|
|
4982
|
-
}
|
|
4983
|
-
interface MarkOrderAsPaidRequest {
|
|
4856
|
+
siteLanguageName?: string | null;
|
|
4984
4857
|
/**
|
|
4985
|
-
*
|
|
4986
|
-
*
|
|
4987
|
-
*
|
|
4858
|
+
* User-provided payment method name.
|
|
4859
|
+
*
|
|
4860
|
+
* When set, takes precedence over `buyerLanguageName` and `siteLanguageName`.
|
|
4988
4861
|
*/
|
|
4989
|
-
|
|
4990
|
-
}
|
|
4991
|
-
interface MarkOrderAsPaidResponse {
|
|
4992
|
-
/** Updated order. */
|
|
4993
|
-
order?: Order;
|
|
4862
|
+
userDefinedName?: UserDefinedPaymentMethodName;
|
|
4994
4863
|
}
|
|
4995
|
-
interface
|
|
4864
|
+
interface GiftCardPaymentDetails {
|
|
4996
4865
|
/**
|
|
4997
|
-
*
|
|
4998
|
-
* @minSize 1
|
|
4999
|
-
* @maxSize 100
|
|
5000
|
-
* @minLength 1
|
|
4866
|
+
* Gift card payment ID.
|
|
5001
4867
|
* @maxLength 100
|
|
5002
4868
|
*/
|
|
5003
|
-
|
|
5004
|
-
}
|
|
5005
|
-
interface BulkMarkOrdersAsPaidResponse {
|
|
4869
|
+
giftCardPaymentId?: string;
|
|
5006
4870
|
/**
|
|
5007
|
-
*
|
|
5008
|
-
*
|
|
4871
|
+
* ID of the app that created the gift card.
|
|
4872
|
+
* @format GUID
|
|
5009
4873
|
*/
|
|
5010
|
-
|
|
5011
|
-
/** Bulk action metadata. */
|
|
5012
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
5013
|
-
}
|
|
5014
|
-
interface BulkOrderResult {
|
|
5015
|
-
/** Item metadata. */
|
|
5016
|
-
itemMetadata?: ItemMetadata;
|
|
4874
|
+
appId?: string;
|
|
5017
4875
|
/**
|
|
5018
|
-
*
|
|
5019
|
-
*
|
|
5020
|
-
*
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
/**
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
/** Details about the error in case of failure. */
|
|
5032
|
-
error?: ApplicationError;
|
|
5033
|
-
}
|
|
5034
|
-
interface ApplicationError {
|
|
5035
|
-
/** Error code. */
|
|
5036
|
-
code?: string;
|
|
5037
|
-
/** Description of the error. */
|
|
5038
|
-
description?: string;
|
|
5039
|
-
/** Data related to the error. */
|
|
5040
|
-
data?: Record<string, any> | null;
|
|
5041
|
-
}
|
|
5042
|
-
interface BulkActionMetadata {
|
|
5043
|
-
/** Number of items that were successfully processed. */
|
|
5044
|
-
totalSuccesses?: number;
|
|
5045
|
-
/** Number of items that couldn't be processed. */
|
|
5046
|
-
totalFailures?: number;
|
|
5047
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
5048
|
-
undetailedFailures?: number;
|
|
4876
|
+
* Whether the gift card is voided.
|
|
4877
|
+
* @readonly
|
|
4878
|
+
* @deprecated Whether the gift card is voided.
|
|
4879
|
+
* @replacedBy payment.status
|
|
4880
|
+
* @targetRemovalDate 2026-11-01
|
|
4881
|
+
*/
|
|
4882
|
+
voided?: boolean;
|
|
4883
|
+
/**
|
|
4884
|
+
* Gift card code with all but the last four characters masked. For example, `************QXY1`.
|
|
4885
|
+
* @maxLength 30
|
|
4886
|
+
* @immutable
|
|
4887
|
+
*/
|
|
4888
|
+
obfuscatedCode?: string | null;
|
|
5049
4889
|
}
|
|
5050
|
-
interface
|
|
4890
|
+
interface MembershipPaymentDetails {
|
|
5051
4891
|
/**
|
|
5052
|
-
*
|
|
4892
|
+
* Membership ID.
|
|
4893
|
+
* @maxLength 200
|
|
4894
|
+
*/
|
|
4895
|
+
membershipId?: string;
|
|
4896
|
+
/**
|
|
4897
|
+
* ID of the line item this membership applies to.
|
|
5053
4898
|
* @minLength 1
|
|
5054
4899
|
* @maxLength 100
|
|
5055
4900
|
*/
|
|
5056
|
-
|
|
5057
|
-
}
|
|
5058
|
-
interface GetRefundabilityStatusResponse {
|
|
4901
|
+
lineItemId?: string;
|
|
5059
4902
|
/**
|
|
5060
|
-
*
|
|
5061
|
-
* @
|
|
4903
|
+
* Payment status.
|
|
4904
|
+
* @deprecated Payment status.
|
|
4905
|
+
* @replacedBy payment.status
|
|
4906
|
+
* @targetRemovalDate 2026-11-01
|
|
5062
4907
|
*/
|
|
5063
|
-
|
|
4908
|
+
status?: MembershipPaymentStatusWithLiterals;
|
|
4909
|
+
/** Membership name. */
|
|
4910
|
+
name?: MembershipName;
|
|
5064
4911
|
/**
|
|
5065
|
-
*
|
|
5066
|
-
* @
|
|
4912
|
+
* The transaction ID in the membership system. Can be used to void the transaction.
|
|
4913
|
+
* @minLength 1
|
|
4914
|
+
* @maxLength 100
|
|
5067
4915
|
*/
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
/**
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
/**
|
|
5083
|
-
|
|
5084
|
-
/** Reason why payment is not refundable. */
|
|
5085
|
-
nonRefundableReason?: NonRefundableReasonWithLiterals;
|
|
5086
|
-
/** Reason why payment is only refundable manually. */
|
|
5087
|
-
manuallyRefundableReason?: ManuallyRefundableReasonWithLiterals;
|
|
5088
|
-
}
|
|
5089
|
-
declare enum RefundableStatus {
|
|
5090
|
-
NOT_REFUNDABLE = "NOT_REFUNDABLE",
|
|
5091
|
-
MANUAL = "MANUAL",
|
|
5092
|
-
REFUNDABLE = "REFUNDABLE"
|
|
5093
|
-
}
|
|
5094
|
-
/** @enumType */
|
|
5095
|
-
type RefundableStatusWithLiterals = RefundableStatus | 'NOT_REFUNDABLE' | 'MANUAL' | 'REFUNDABLE';
|
|
5096
|
-
declare enum NonRefundableReason {
|
|
5097
|
-
NONE = "NONE",
|
|
5098
|
-
ALREADY_REFUNDED = "ALREADY_REFUNDED",
|
|
5099
|
-
PROVIDER_IS_DOWN = "PROVIDER_IS_DOWN",
|
|
5100
|
-
INTERNAL_ERROR = "INTERNAL_ERROR",
|
|
5101
|
-
NOT_PAID = "NOT_PAID",
|
|
5102
|
-
ACCESS_DENIED = "ACCESS_DENIED",
|
|
5103
|
-
ZERO_PRICE = "ZERO_PRICE",
|
|
5104
|
-
DISABLED_BY_PROVIDER = "DISABLED_BY_PROVIDER",
|
|
5105
|
-
PENDING_REFUND = "PENDING_REFUND",
|
|
5106
|
-
FORBIDDEN = "FORBIDDEN",
|
|
5107
|
-
TRANSACTION_NOT_FOUND = "TRANSACTION_NOT_FOUND",
|
|
5108
|
-
ORDER_IS_PENDING = "ORDER_IS_PENDING",
|
|
5109
|
-
ORDER_IS_REJECTED = "ORDER_IS_REJECTED"
|
|
4916
|
+
externalTransactionId?: string | null;
|
|
4917
|
+
/**
|
|
4918
|
+
* Whether the membership is voided.
|
|
4919
|
+
* @readonly
|
|
4920
|
+
* @deprecated Whether the membership is voided.
|
|
4921
|
+
* @replacedBy payment.status
|
|
4922
|
+
* @targetRemovalDate 2026-11-01
|
|
4923
|
+
*/
|
|
4924
|
+
voided?: boolean;
|
|
4925
|
+
/**
|
|
4926
|
+
* ID of the application providing this payment option.
|
|
4927
|
+
* @format GUID
|
|
4928
|
+
*/
|
|
4929
|
+
providerAppId?: string;
|
|
4930
|
+
/** Details of a membership that does not yet exist, allowing the payment to be held before the membership is created. */
|
|
4931
|
+
futureMembership?: FutureMembershipDetails;
|
|
5110
4932
|
}
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
4933
|
+
declare enum MembershipPaymentStatus {
|
|
4934
|
+
/** Payment was charged. */
|
|
4935
|
+
CHARGED = "CHARGED",
|
|
4936
|
+
/** The attempt to charge the payment failed, for example, due to lack of credits. */
|
|
4937
|
+
CHARGE_FAILED = "CHARGE_FAILED",
|
|
4938
|
+
/** Payment is pending. */
|
|
4939
|
+
CHARGE_PENDING = "CHARGE_PENDING",
|
|
4940
|
+
/** Payment was voided. */
|
|
4941
|
+
VOIDED = "VOIDED"
|
|
5118
4942
|
}
|
|
5119
4943
|
/** @enumType */
|
|
5120
|
-
type
|
|
5121
|
-
interface
|
|
4944
|
+
type MembershipPaymentStatusWithLiterals = MembershipPaymentStatus | 'CHARGED' | 'CHARGE_FAILED' | 'CHARGE_PENDING' | 'VOIDED';
|
|
4945
|
+
interface FutureMembershipDetails {
|
|
5122
4946
|
/**
|
|
5123
|
-
*
|
|
5124
|
-
* @
|
|
5125
|
-
* @maxLength 100
|
|
4947
|
+
* ID of the plan line item in the order from which the membership will be created.
|
|
4948
|
+
* @format GUID
|
|
5126
4949
|
*/
|
|
5127
|
-
|
|
5128
|
-
/**
|
|
5129
|
-
|
|
4950
|
+
lineItemId?: string;
|
|
4951
|
+
/**
|
|
4952
|
+
* ID of the benefit the future membership will grant.
|
|
4953
|
+
* @maxLength 200
|
|
4954
|
+
*/
|
|
4955
|
+
benefitId?: string;
|
|
5130
4956
|
}
|
|
5131
|
-
interface
|
|
4957
|
+
interface WixReceiptInfo {
|
|
5132
4958
|
/**
|
|
5133
|
-
* ID
|
|
4959
|
+
* Receipt ID
|
|
5134
4960
|
* @format GUID
|
|
5135
4961
|
*/
|
|
5136
|
-
|
|
4962
|
+
receiptId?: string;
|
|
5137
4963
|
/**
|
|
5138
|
-
*
|
|
4964
|
+
* Display number of receipt
|
|
5139
4965
|
* @minLength 1
|
|
5140
|
-
* @maxLength
|
|
4966
|
+
* @maxLength 40
|
|
5141
4967
|
*/
|
|
5142
|
-
|
|
5143
|
-
}
|
|
5144
|
-
interface CreatePaymentGatewayOrderResponse {
|
|
5145
|
-
/** ID of the order created in the payment gateway */
|
|
5146
|
-
paymentGatewayOrderId?: string;
|
|
4968
|
+
displayNumber?: string | null;
|
|
5147
4969
|
}
|
|
5148
|
-
interface
|
|
4970
|
+
interface ExternalReceiptInfo {
|
|
5149
4971
|
/**
|
|
5150
|
-
*
|
|
5151
|
-
* @minLength 1
|
|
4972
|
+
* External receipt ID
|
|
5152
4973
|
* @maxLength 100
|
|
5153
4974
|
*/
|
|
5154
|
-
|
|
4975
|
+
receiptId?: string | null;
|
|
5155
4976
|
/**
|
|
5156
|
-
*
|
|
5157
|
-
* but a user which is using the membership on behalf of the a member
|
|
4977
|
+
* ID of the app providing the receipt
|
|
5158
4978
|
* @format GUID
|
|
5159
4979
|
*/
|
|
5160
|
-
|
|
4980
|
+
appId?: string | null;
|
|
5161
4981
|
/**
|
|
5162
|
-
*
|
|
5163
|
-
* @
|
|
5164
|
-
* @
|
|
4982
|
+
* Display number of receipt
|
|
4983
|
+
* @minLength 1
|
|
4984
|
+
* @maxLength 40
|
|
5165
4985
|
*/
|
|
5166
|
-
|
|
4986
|
+
displayNumber?: string | null;
|
|
5167
4987
|
}
|
|
5168
|
-
interface
|
|
4988
|
+
interface CashRoundingDetails {
|
|
5169
4989
|
/**
|
|
5170
|
-
*
|
|
5171
|
-
*
|
|
5172
|
-
*
|
|
4990
|
+
* Payment amount before cash rounding was applied.
|
|
4991
|
+
* When provided, balance and status calculations use this value instead of `amount`
|
|
4992
|
+
* to prevent false overpayment or underpayment due to rounding.
|
|
5173
4993
|
*/
|
|
5174
|
-
|
|
4994
|
+
unroundedAmount?: Price;
|
|
5175
4995
|
/**
|
|
5176
|
-
*
|
|
4996
|
+
* The difference between 'amount' and 'unroundedAmount' (amount minus unroundedAmount).
|
|
4997
|
+
* A positive value indicates the price was rounded up; a negative value indicates a round-down.
|
|
4998
|
+
* @readonly
|
|
4999
|
+
*/
|
|
5000
|
+
roundingAdjustment?: CashRounding;
|
|
5001
|
+
}
|
|
5002
|
+
declare enum PaymentStatus {
|
|
5003
|
+
/** Payment was charged successfully. */
|
|
5004
|
+
APPROVED = "APPROVED",
|
|
5005
|
+
/** Payment is being processed and hasn't been confirmed yet. */
|
|
5006
|
+
PENDING = "PENDING",
|
|
5007
|
+
/** Payment is awaiting confirmation. For an offline payment, the merchant must confirm they received it. For an online payment, the payment provider hasn't confirmed it, which typically means the merchant's provider account setup isn't complete. */
|
|
5008
|
+
PENDING_MERCHANT = "PENDING_MERCHANT",
|
|
5009
|
+
/** Payment was canceled before it was charged. */
|
|
5010
|
+
CANCELED = "CANCELED",
|
|
5011
|
+
/** Payment was declined by the payment provider. */
|
|
5012
|
+
DECLINED = "DECLINED",
|
|
5013
|
+
/** Payment was fully refunded. */
|
|
5014
|
+
REFUNDED = "REFUNDED",
|
|
5015
|
+
/** Part of the payment amount was refunded. */
|
|
5016
|
+
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
|
|
5017
|
+
/** Funds are held on the buyer's payment method but haven't been captured. Capture them with [Capture Authorized Payments](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/order-billing/capture-authorized-payments) or release them with [Void Authorized Payments](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/order-billing/void-authorized-payments). An authorized payment can't be refunded until it's captured. */
|
|
5018
|
+
AUTHORIZED = "AUTHORIZED",
|
|
5019
|
+
/**
|
|
5020
|
+
* Payment was voided, releasing whatever it held or consumed: an authorization on the buyer's payment method, a gift card balance, or membership credits.
|
|
5021
|
+
*
|
|
5022
|
+
* Gift card and membership payments don't support partial refunds, so a full refund of one is reported as `VOIDED` rather than `REFUNDED`.
|
|
5023
|
+
*/
|
|
5024
|
+
VOIDED = "VOIDED"
|
|
5025
|
+
}
|
|
5026
|
+
/** @enumType */
|
|
5027
|
+
type PaymentStatusWithLiterals = PaymentStatus | 'APPROVED' | 'PENDING' | 'PENDING_MERCHANT' | 'CANCELED' | 'DECLINED' | 'REFUNDED' | 'PARTIALLY_REFUNDED' | 'AUTHORIZED' | 'VOIDED';
|
|
5028
|
+
interface CanceledStatusDetails {
|
|
5029
|
+
reason?: CanceledReasonWithLiterals;
|
|
5030
|
+
}
|
|
5031
|
+
declare enum CanceledReason {
|
|
5032
|
+
/** Other payment with the same chargeCorrelationId failed before current payment started. */
|
|
5033
|
+
OTHER_PAYMENT_FAILURE = "OTHER_PAYMENT_FAILURE",
|
|
5034
|
+
/** Payment was not completed by user and expired. */
|
|
5035
|
+
EXPIRED = "EXPIRED"
|
|
5036
|
+
}
|
|
5037
|
+
/** @enumType */
|
|
5038
|
+
type CanceledReasonWithLiterals = CanceledReason | 'OTHER_PAYMENT_FAILURE' | 'EXPIRED';
|
|
5039
|
+
interface DeclinedStatusDetails {
|
|
5040
|
+
reason?: DeclinedReasonWithLiterals;
|
|
5041
|
+
}
|
|
5042
|
+
declare enum DeclinedReason {
|
|
5043
|
+
/** Corresponding charge failed. */
|
|
5044
|
+
CHARGE_FAILED = "CHARGE_FAILED",
|
|
5045
|
+
/** Payment details expired. */
|
|
5046
|
+
EXPIRED = "EXPIRED",
|
|
5047
|
+
/** Insufficient funds. */
|
|
5048
|
+
INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
|
|
5049
|
+
/** Gift card was disabled before charge was attempted. */
|
|
5050
|
+
GIFT_CARD_DISABLED = "GIFT_CARD_DISABLED"
|
|
5051
|
+
}
|
|
5052
|
+
/** @enumType */
|
|
5053
|
+
type DeclinedReasonWithLiterals = DeclinedReason | 'CHARGE_FAILED' | 'EXPIRED' | 'INSUFFICIENT_FUNDS' | 'GIFT_CARD_DISABLED';
|
|
5054
|
+
interface VoidedStatusDetails {
|
|
5055
|
+
reason?: VoidedReasonWithLiterals;
|
|
5056
|
+
}
|
|
5057
|
+
declare enum VoidedReason {
|
|
5058
|
+
/** Payment was voided by merchant request. */
|
|
5059
|
+
MERCHANT_REQUEST = "MERCHANT_REQUEST",
|
|
5060
|
+
/** Other payment with the same chargeCorrelationId failed and caused rollback of all payments with same chargeCorrelationId. */
|
|
5061
|
+
OTHER_PAYMENT_FAILURE = "OTHER_PAYMENT_FAILURE"
|
|
5062
|
+
}
|
|
5063
|
+
/** @enumType */
|
|
5064
|
+
type VoidedReasonWithLiterals = VoidedReason | 'MERCHANT_REQUEST' | 'OTHER_PAYMENT_FAILURE';
|
|
5065
|
+
interface PaymentStatusDetails extends PaymentStatusDetailsStatusDetailsOneOf {
|
|
5066
|
+
}
|
|
5067
|
+
/** @oneof */
|
|
5068
|
+
interface PaymentStatusDetailsStatusDetailsOneOf {
|
|
5069
|
+
}
|
|
5070
|
+
interface Refund {
|
|
5071
|
+
/**
|
|
5072
|
+
* Refund ID.
|
|
5177
5073
|
* @format GUID
|
|
5074
|
+
* @readonly
|
|
5178
5075
|
*/
|
|
5179
|
-
|
|
5180
|
-
/** The name of used membership */
|
|
5181
|
-
membershipName?: MembershipName;
|
|
5182
|
-
/** Additional data about this membership */
|
|
5183
|
-
membershipAdditionalData?: Record<string, any> | null;
|
|
5184
|
-
/** Catalog and item reference info. */
|
|
5185
|
-
catalogReference?: CatalogReference;
|
|
5186
|
-
/** Properties of the service. When relevant, contains information such as date and number of participants. */
|
|
5187
|
-
serviceProperties?: ServiceProperties;
|
|
5076
|
+
id?: string;
|
|
5188
5077
|
/**
|
|
5189
|
-
*
|
|
5190
|
-
*
|
|
5191
|
-
* For example, for Wix bookings, catalogReference.catalogItemId is the booking id, and this value is being set to be the service id
|
|
5192
|
-
* @minLength 1
|
|
5193
|
-
* @maxLength 36
|
|
5078
|
+
* List of transactions.
|
|
5079
|
+
* @maxSize 50
|
|
5194
5080
|
*/
|
|
5195
|
-
|
|
5081
|
+
transactions?: RefundTransaction[];
|
|
5082
|
+
/** Refund business details. */
|
|
5083
|
+
details?: RefundDetails;
|
|
5196
5084
|
/**
|
|
5197
|
-
*
|
|
5198
|
-
* @
|
|
5199
|
-
* @
|
|
5085
|
+
* 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.
|
|
5086
|
+
* @readonly
|
|
5087
|
+
* @immutable
|
|
5200
5088
|
*/
|
|
5201
|
-
|
|
5202
|
-
}
|
|
5203
|
-
interface MembershipName {
|
|
5089
|
+
createdDate?: Date | null;
|
|
5204
5090
|
/**
|
|
5205
|
-
*
|
|
5206
|
-
* @
|
|
5091
|
+
* Aggregated refund summary.
|
|
5092
|
+
* @readonly
|
|
5207
5093
|
*/
|
|
5208
|
-
|
|
5094
|
+
summary?: AggregatedRefundSummary;
|
|
5209
5095
|
/**
|
|
5210
|
-
*
|
|
5211
|
-
*
|
|
5212
|
-
*
|
|
5213
|
-
* @
|
|
5096
|
+
* ID of the app that initiated this refund.
|
|
5097
|
+
* @format GUID
|
|
5098
|
+
* @readonly
|
|
5099
|
+
* @immutable
|
|
5214
5100
|
*/
|
|
5215
|
-
|
|
5216
|
-
}
|
|
5217
|
-
interface ChargeMembershipsResponse {
|
|
5101
|
+
requestingServiceAppId?: string | null;
|
|
5218
5102
|
}
|
|
5219
|
-
interface
|
|
5103
|
+
interface RefundTransaction {
|
|
5220
5104
|
/**
|
|
5221
|
-
*
|
|
5222
|
-
* @
|
|
5223
|
-
* @
|
|
5105
|
+
* ID of the payment associated with this refund.
|
|
5106
|
+
* @format GUID
|
|
5107
|
+
* @immutable
|
|
5224
5108
|
*/
|
|
5225
|
-
|
|
5109
|
+
paymentId?: string;
|
|
5226
5110
|
/**
|
|
5227
|
-
* Refund
|
|
5228
|
-
* @
|
|
5229
|
-
* @maxSize 1
|
|
5111
|
+
* Refund amount.
|
|
5112
|
+
* @immutable
|
|
5230
5113
|
*/
|
|
5231
|
-
|
|
5232
|
-
/**
|
|
5233
|
-
|
|
5234
|
-
/**
|
|
5235
|
-
|
|
5236
|
-
}
|
|
5237
|
-
interface PaymentRefund {
|
|
5114
|
+
amount?: Price;
|
|
5115
|
+
/** Refund status. */
|
|
5116
|
+
refundStatus?: RefundStatusWithLiterals;
|
|
5117
|
+
/** Optional details of current refund status. */
|
|
5118
|
+
refundStatusInfo?: RefundStatusInfo;
|
|
5238
5119
|
/**
|
|
5239
|
-
*
|
|
5120
|
+
* Payment gateway's refund ID.
|
|
5121
|
+
* This field is only returned when the value of `external_refund` is `false`.
|
|
5240
5122
|
* @format GUID
|
|
5241
5123
|
*/
|
|
5242
|
-
|
|
5243
|
-
/**
|
|
5244
|
-
|
|
5124
|
+
gatewayRefundId?: string | null;
|
|
5125
|
+
/** ID of the refund in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for external refunds. */
|
|
5126
|
+
providerRefundId?: string | null;
|
|
5245
5127
|
/**
|
|
5246
|
-
* Whether refund
|
|
5247
|
-
*
|
|
5248
|
-
* When true, the payment will only be *marked* as refunded, and no actual refund will be performed.
|
|
5128
|
+
* Whether refund was made externally and manually on the payment provider's side.
|
|
5129
|
+
* @immutable
|
|
5249
5130
|
*/
|
|
5250
5131
|
externalRefund?: boolean;
|
|
5251
5132
|
}
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5133
|
+
/** Refund transaction status. */
|
|
5134
|
+
declare enum RefundStatus {
|
|
5135
|
+
/** Refund was initiated on payment provider side. PENDING status was assigned by provider. */
|
|
5136
|
+
PENDING = "PENDING",
|
|
5137
|
+
/** Refund transaction succeeded. */
|
|
5138
|
+
SUCCEEDED = "SUCCEEDED",
|
|
5139
|
+
/** Refund transaction failed. */
|
|
5140
|
+
FAILED = "FAILED",
|
|
5141
|
+
/** Refund request acknowledged, and will be executed soon. */
|
|
5142
|
+
SCHEDULED = "SCHEDULED",
|
|
5143
|
+
/** Refund was initiated on payment provider side. */
|
|
5144
|
+
STARTED = "STARTED"
|
|
5145
|
+
}
|
|
5146
|
+
/** @enumType */
|
|
5147
|
+
type RefundStatusWithLiterals = RefundStatus | 'PENDING' | 'SUCCEEDED' | 'FAILED' | 'SCHEDULED' | 'STARTED';
|
|
5148
|
+
interface RefundStatusInfo {
|
|
5257
5149
|
/**
|
|
5258
|
-
*
|
|
5150
|
+
* Reason code for the refund's current status.
|
|
5151
|
+
*
|
|
5152
|
+
* Learn more about [reason codes](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes).
|
|
5153
|
+
* @minLength 1
|
|
5154
|
+
* @maxLength 10
|
|
5155
|
+
*/
|
|
5156
|
+
paymentGatewayReasonCode?: string | null;
|
|
5157
|
+
/**
|
|
5158
|
+
* Free text explanation of current refund status.
|
|
5259
5159
|
* @minLength 1
|
|
5260
5160
|
* @maxLength 1000
|
|
5261
5161
|
*/
|
|
5262
|
-
|
|
5162
|
+
description?: string | null;
|
|
5263
5163
|
}
|
|
5264
|
-
interface
|
|
5265
|
-
/**
|
|
5266
|
-
|
|
5164
|
+
interface AggregatedRefundSummary {
|
|
5165
|
+
/** Total amount requested for refund. */
|
|
5166
|
+
requestedRefund?: Price;
|
|
5167
|
+
/** Pending refund amount - the portion of `requestedRefund` that is still pending. */
|
|
5168
|
+
pendingRefund?: Price;
|
|
5169
|
+
/** Refunded amount - the portion of `requestedRefund` that refunded successfully. */
|
|
5170
|
+
refunded?: Price;
|
|
5171
|
+
/** Failed refund amount - the portion of `requestedRefund` that failed. */
|
|
5172
|
+
failedRefundAmount?: Price;
|
|
5173
|
+
/** Whether at least one refund transaction is still in `"PENDING"` status. */
|
|
5174
|
+
pending?: boolean;
|
|
5175
|
+
/** Breakdown of refunded items. Available only after refund is complete. */
|
|
5176
|
+
breakdown?: RefundItemsBreakdown;
|
|
5177
|
+
}
|
|
5178
|
+
interface RefundItemsBreakdown {
|
|
5267
5179
|
/**
|
|
5268
|
-
*
|
|
5180
|
+
* Refunded line items and the amount refunded for each.
|
|
5269
5181
|
* @maxSize 300
|
|
5270
5182
|
*/
|
|
5271
|
-
|
|
5272
|
-
}
|
|
5273
|
-
declare enum RestockType {
|
|
5274
|
-
NO_ITEMS = "NO_ITEMS",
|
|
5275
|
-
ALL_ITEMS = "ALL_ITEMS",
|
|
5276
|
-
SOME_ITEMS = "SOME_ITEMS"
|
|
5183
|
+
lineItems?: LineItemRefundSummary[];
|
|
5277
5184
|
}
|
|
5278
|
-
|
|
5279
|
-
type RestockTypeWithLiterals = RestockType | 'NO_ITEMS' | 'ALL_ITEMS' | 'SOME_ITEMS';
|
|
5280
|
-
interface RestockItem {
|
|
5185
|
+
interface LineItemRefundSummary {
|
|
5281
5186
|
/**
|
|
5282
|
-
* ID of the line item
|
|
5187
|
+
* ID of the refunded line item.
|
|
5283
5188
|
* @format GUID
|
|
5284
5189
|
*/
|
|
5285
5190
|
lineItemId?: string;
|
|
5286
|
-
/**
|
|
5287
|
-
|
|
5288
|
-
* @min 1
|
|
5289
|
-
* @max 100000
|
|
5290
|
-
*/
|
|
5291
|
-
quantity?: number;
|
|
5292
|
-
}
|
|
5293
|
-
interface TriggerRefundResponse {
|
|
5294
|
-
/** All order's transactions after the refunds were added */
|
|
5295
|
-
orderTransactions?: OrderTransactions;
|
|
5296
|
-
/** Created refund ID */
|
|
5297
|
-
refundId?: string | null;
|
|
5298
|
-
/** Payment ID's that the refund execution had failed for */
|
|
5299
|
-
failedPaymentIds?: ItemMetadata[];
|
|
5191
|
+
/** Total refunded amount for the line item. */
|
|
5192
|
+
totalRefundedAmount?: Price;
|
|
5300
5193
|
}
|
|
5301
|
-
|
|
5302
|
-
* A record of all payments and refunds associated with an order.
|
|
5303
|
-
*
|
|
5304
|
-
* Use order transactions to track payment status, add payment records, process refunds, and monitor chargebacks.
|
|
5305
|
-
*/
|
|
5306
|
-
interface OrderTransactions {
|
|
5307
|
-
/**
|
|
5308
|
-
* Order ID.
|
|
5309
|
-
* @format GUID
|
|
5310
|
-
*/
|
|
5311
|
-
orderId?: string;
|
|
5194
|
+
interface CalculateRefundRequest {
|
|
5312
5195
|
/**
|
|
5313
|
-
*
|
|
5314
|
-
* @
|
|
5196
|
+
* Order ID
|
|
5197
|
+
* @minLength 1
|
|
5198
|
+
* @maxLength 100
|
|
5315
5199
|
*/
|
|
5316
|
-
|
|
5200
|
+
ecomOrderId?: string;
|
|
5317
5201
|
/**
|
|
5318
|
-
*
|
|
5202
|
+
* Refunded line items and quantity
|
|
5319
5203
|
* @maxSize 300
|
|
5320
5204
|
*/
|
|
5321
|
-
|
|
5205
|
+
refundItems?: CalculateRefundItemRequest[];
|
|
5206
|
+
/** Should include shipping in refund calculation */
|
|
5207
|
+
refundShipping?: boolean;
|
|
5322
5208
|
}
|
|
5323
|
-
interface
|
|
5324
|
-
/** Regular payment details. */
|
|
5325
|
-
regularPaymentDetails?: RegularPaymentDetails;
|
|
5326
|
-
/** Gift card payment details. */
|
|
5327
|
-
giftcardPaymentDetails?: GiftCardPaymentDetails;
|
|
5328
|
-
/** Membership payment details. */
|
|
5329
|
-
membershipPaymentDetails?: MembershipPaymentDetails;
|
|
5209
|
+
interface CalculateRefundItemRequest {
|
|
5330
5210
|
/**
|
|
5331
|
-
*
|
|
5211
|
+
* ID of the line item being refunded
|
|
5332
5212
|
* @format GUID
|
|
5333
|
-
* @readonly
|
|
5334
|
-
*/
|
|
5335
|
-
id?: string | null;
|
|
5336
|
-
/** 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. */
|
|
5337
|
-
createdDate?: Date | null;
|
|
5338
|
-
/**
|
|
5339
|
-
* Date and time the payment was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
|
|
5340
|
-
* @readonly
|
|
5341
|
-
*/
|
|
5342
|
-
updatedDate?: Date | null;
|
|
5343
|
-
/** Payment amount. */
|
|
5344
|
-
amount?: Price;
|
|
5345
|
-
/**
|
|
5346
|
-
* Whether refunds for this payment are disabled.
|
|
5347
|
-
* + `true`: This payment is not refundable.
|
|
5348
|
-
* + `false`: This payment may be refunded. However, this ultimately depends on the payment provider.
|
|
5349
5213
|
*/
|
|
5350
|
-
|
|
5351
|
-
/**
|
|
5352
|
-
* Whether receipt generation is allowed for this payment.
|
|
5353
|
-
* + `true`: This payment supports receipt generation.
|
|
5354
|
-
* + `false`: This payment doesn't support receipt generation, or a receipt was already generated.
|
|
5355
|
-
* @readonly
|
|
5356
|
-
*/
|
|
5357
|
-
supportReceiptGeneration?: boolean;
|
|
5358
|
-
/** Details about cash rounding applied to this payment, when relevant. */
|
|
5359
|
-
cashRounding?: CashRoundingDetails;
|
|
5214
|
+
id?: string;
|
|
5360
5215
|
/**
|
|
5361
|
-
*
|
|
5362
|
-
*
|
|
5363
|
-
*
|
|
5216
|
+
* How much of that line item is being refunded
|
|
5217
|
+
* @min 1
|
|
5218
|
+
* @max 100000
|
|
5364
5219
|
*/
|
|
5365
|
-
|
|
5220
|
+
quantity?: number;
|
|
5221
|
+
}
|
|
5222
|
+
interface CalculateRefundResponse {
|
|
5223
|
+
/** Total refundable amount */
|
|
5224
|
+
total?: Price;
|
|
5225
|
+
/** Tax cost of the order */
|
|
5226
|
+
tax?: Price;
|
|
5227
|
+
/** Discount given for this order */
|
|
5228
|
+
discount?: Price;
|
|
5229
|
+
/** Total cost of the order (without tax) */
|
|
5230
|
+
subtotal?: Price;
|
|
5231
|
+
/** Total shipping cost for order */
|
|
5232
|
+
shipping?: Price;
|
|
5233
|
+
/** Previous refund given on that order */
|
|
5234
|
+
previouslyRefundedAmount?: Price;
|
|
5366
5235
|
/**
|
|
5367
|
-
*
|
|
5368
|
-
* @
|
|
5236
|
+
* The refundable items of that order
|
|
5237
|
+
* @maxSize 300
|
|
5369
5238
|
*/
|
|
5370
|
-
|
|
5371
|
-
}
|
|
5372
|
-
/** @oneof */
|
|
5373
|
-
interface PaymentPaymentDetailsOneOf {
|
|
5374
|
-
/** Regular payment details. */
|
|
5375
|
-
regularPaymentDetails?: RegularPaymentDetails;
|
|
5376
|
-
/** Gift card payment details. */
|
|
5377
|
-
giftcardPaymentDetails?: GiftCardPaymentDetails;
|
|
5378
|
-
/** Membership payment details. */
|
|
5379
|
-
membershipPaymentDetails?: MembershipPaymentDetails;
|
|
5380
|
-
}
|
|
5381
|
-
/** @oneof */
|
|
5382
|
-
interface PaymentReceiptInfoOneOf {
|
|
5383
|
-
}
|
|
5384
|
-
/** @oneof */
|
|
5385
|
-
interface PaymentStatusDetailsOneOf {
|
|
5239
|
+
items?: CalculateRefundItemResponse[];
|
|
5386
5240
|
}
|
|
5387
|
-
interface
|
|
5388
|
-
/** Credit card details. */
|
|
5389
|
-
creditCardDetails?: CreditCardPaymentMethodDetails;
|
|
5241
|
+
interface CalculateRefundItemResponse {
|
|
5390
5242
|
/**
|
|
5391
|
-
*
|
|
5392
|
-
* @
|
|
5243
|
+
* Line item ID
|
|
5244
|
+
* @format GUID
|
|
5393
5245
|
*/
|
|
5394
|
-
|
|
5246
|
+
id?: string;
|
|
5247
|
+
/** Refundable amount for requested quantity of items (price of requested quantity of items without tax and discount) */
|
|
5248
|
+
price?: Price;
|
|
5249
|
+
}
|
|
5250
|
+
interface VoidAuthorizedPaymentsRequest {
|
|
5395
5251
|
/**
|
|
5396
|
-
*
|
|
5397
|
-
*
|
|
5252
|
+
* Wix eCommerce order ID
|
|
5253
|
+
* @minLength 1
|
|
5398
5254
|
* @maxLength 100
|
|
5399
5255
|
*/
|
|
5400
|
-
|
|
5256
|
+
ecomOrderId: string;
|
|
5401
5257
|
/**
|
|
5402
|
-
* Payment
|
|
5403
|
-
*
|
|
5404
|
-
*
|
|
5405
|
-
*
|
|
5406
|
-
* @maxLength 150
|
|
5407
|
-
* @deprecated Payment method.
|
|
5408
|
-
* Deprecated. Use `paymentMethodName.buyerLanguageName` instead.
|
|
5409
|
-
* Non-exhaustive list of supported values:
|
|
5410
|
-
* + `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`
|
|
5411
|
-
* @replacedBy payment_method_name
|
|
5412
|
-
* @targetRemovalDate 2026-07-01
|
|
5258
|
+
* Payment IDs
|
|
5259
|
+
* @minSize 1
|
|
5260
|
+
* @maxSize 100
|
|
5261
|
+
* @format GUID
|
|
5413
5262
|
*/
|
|
5414
|
-
|
|
5263
|
+
paymentIds: string[];
|
|
5264
|
+
}
|
|
5265
|
+
interface VoidAuthorizedPaymentsResponse {
|
|
5266
|
+
/** All order's transactions after the void was triggered */
|
|
5267
|
+
orderTransactions?: OrderTransactions;
|
|
5268
|
+
}
|
|
5269
|
+
interface CaptureAuthorizedPaymentsRequest {
|
|
5415
5270
|
/**
|
|
5416
|
-
*
|
|
5271
|
+
* Wix eCommerce order ID
|
|
5272
|
+
* @minLength 1
|
|
5417
5273
|
* @maxLength 100
|
|
5418
5274
|
*/
|
|
5419
|
-
|
|
5420
|
-
/** Whether the payment was made offline. For example, when using cash or when marked as paid in the Business Manager. */
|
|
5421
|
-
offlinePayment?: boolean;
|
|
5275
|
+
ecomOrderId: string;
|
|
5422
5276
|
/**
|
|
5423
|
-
*
|
|
5424
|
-
* @
|
|
5425
|
-
* @
|
|
5426
|
-
* @targetRemovalDate 2026-11-01
|
|
5277
|
+
* Capture payments information
|
|
5278
|
+
* @minSize 1
|
|
5279
|
+
* @maxSize 100
|
|
5427
5280
|
*/
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
/** Authorization details. */
|
|
5432
|
-
authorizationDetails?: AuthorizationDetails;
|
|
5281
|
+
payments: PaymentCapture[];
|
|
5282
|
+
}
|
|
5283
|
+
interface PaymentCapture {
|
|
5433
5284
|
/**
|
|
5434
|
-
*
|
|
5435
|
-
* @
|
|
5285
|
+
* Payment ID
|
|
5286
|
+
* @format GUID
|
|
5436
5287
|
*/
|
|
5437
|
-
|
|
5438
|
-
/** Platform fee amount associated with this payment. */
|
|
5439
|
-
platformFee?: Price;
|
|
5288
|
+
paymentId?: string | null;
|
|
5440
5289
|
/**
|
|
5441
|
-
*
|
|
5442
|
-
*
|
|
5443
|
-
* + `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`
|
|
5290
|
+
* Capture amount.
|
|
5291
|
+
* If not provided - full authorized amount will be captured.
|
|
5444
5292
|
*/
|
|
5445
|
-
|
|
5446
|
-
}
|
|
5447
|
-
/** @oneof */
|
|
5448
|
-
interface RegularPaymentDetailsPaymentMethodDetailsOneOf {
|
|
5449
|
-
/** Credit card details. */
|
|
5450
|
-
creditCardDetails?: CreditCardPaymentMethodDetails;
|
|
5293
|
+
amount?: Price;
|
|
5451
5294
|
}
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
PENDING = "PENDING",
|
|
5456
|
-
PENDING_MERCHANT = "PENDING_MERCHANT",
|
|
5457
|
-
CANCELED = "CANCELED",
|
|
5458
|
-
DECLINED = "DECLINED",
|
|
5459
|
-
REFUNDED = "REFUNDED",
|
|
5460
|
-
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
|
|
5461
|
-
AUTHORIZED = "AUTHORIZED",
|
|
5462
|
-
VOIDED = "VOIDED"
|
|
5295
|
+
interface CaptureAuthorizedPaymentsResponse {
|
|
5296
|
+
/** All order's transactions after the capture was triggered */
|
|
5297
|
+
orderTransactions?: OrderTransactions;
|
|
5463
5298
|
}
|
|
5464
|
-
|
|
5465
|
-
type TransactionStatusWithLiterals = TransactionStatus | 'UNDEFINED' | 'APPROVED' | 'PENDING' | 'PENDING_MERCHANT' | 'CANCELED' | 'DECLINED' | 'REFUNDED' | 'PARTIALLY_REFUNDED' | 'AUTHORIZED' | 'VOIDED';
|
|
5466
|
-
interface CreditCardPaymentMethodDetails {
|
|
5467
|
-
/**
|
|
5468
|
-
* The last 4 digits of the card number.
|
|
5469
|
-
* @maxLength 4
|
|
5470
|
-
*/
|
|
5471
|
-
lastFourDigits?: string | null;
|
|
5299
|
+
interface ChargeSavedPaymentMethodRequest {
|
|
5472
5300
|
/**
|
|
5473
|
-
*
|
|
5301
|
+
* Ecom Order ID.
|
|
5302
|
+
* @minLength 1
|
|
5474
5303
|
* @maxLength 100
|
|
5475
5304
|
*/
|
|
5476
|
-
|
|
5305
|
+
ecomOrderId?: string;
|
|
5306
|
+
/** Amount to be charged */
|
|
5307
|
+
amount?: Price;
|
|
5477
5308
|
}
|
|
5478
|
-
interface
|
|
5479
|
-
/**
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5309
|
+
interface ChargeSavedPaymentMethodResponse {
|
|
5310
|
+
/** Payment gateway's order ID (e.g Wix Payments) */
|
|
5311
|
+
paymentGatewayOrderId?: string;
|
|
5312
|
+
}
|
|
5313
|
+
interface SendBuyerConfirmationEmailRequest {
|
|
5314
|
+
/** @format GUID */
|
|
5315
|
+
orderId?: string;
|
|
5316
|
+
}
|
|
5317
|
+
interface SendBuyerConfirmationEmailResponse {
|
|
5318
|
+
}
|
|
5319
|
+
interface SendBuyerPaymentsReceivedEmailRequest {
|
|
5486
5320
|
/**
|
|
5487
|
-
*
|
|
5488
|
-
*
|
|
5489
|
-
* @maxSize 1
|
|
5321
|
+
* @minLength 1
|
|
5322
|
+
* @maxLength 100
|
|
5490
5323
|
*/
|
|
5491
|
-
|
|
5492
|
-
/** Void associated with payment */
|
|
5493
|
-
void?: AuthorizationVoid;
|
|
5494
|
-
/** Scheduled action for this transaction */
|
|
5495
|
-
scheduledAction?: V1ScheduledAction;
|
|
5324
|
+
orderId?: string;
|
|
5496
5325
|
}
|
|
5497
|
-
interface
|
|
5326
|
+
interface SendBuyerPaymentsReceivedEmailResponse {
|
|
5327
|
+
}
|
|
5328
|
+
interface SendBuyerPickupConfirmationEmailRequest {
|
|
5498
5329
|
/**
|
|
5499
|
-
*
|
|
5500
|
-
* @
|
|
5501
|
-
* @readonly
|
|
5330
|
+
* @minLength 1
|
|
5331
|
+
* @maxLength 100
|
|
5502
5332
|
*/
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5333
|
+
orderId?: string;
|
|
5334
|
+
}
|
|
5335
|
+
interface SendBuyerPickupConfirmationEmailResponse {
|
|
5336
|
+
}
|
|
5337
|
+
interface BulkSendBuyerPickupConfirmationEmailsRequest {
|
|
5506
5338
|
/**
|
|
5507
|
-
*
|
|
5508
|
-
* @
|
|
5339
|
+
* IDs of orders to send pickup emails for.
|
|
5340
|
+
* @minSize 1
|
|
5341
|
+
* @maxSize 300
|
|
5509
5342
|
*/
|
|
5510
|
-
|
|
5511
|
-
/** Date and time the capture was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
|
|
5512
|
-
createdDate?: Date | null;
|
|
5513
|
-
/** In case of status is FAILED may contain failure details */
|
|
5514
|
-
failureDetails?: AuthorizationActionFailureDetails;
|
|
5343
|
+
orderIds?: string[];
|
|
5515
5344
|
}
|
|
5516
|
-
|
|
5517
|
-
/** Capture operation still in progress. */
|
|
5518
|
-
PENDING = "PENDING",
|
|
5519
|
-
/** Capture operation succeeded. */
|
|
5520
|
-
SUCCEEDED = "SUCCEEDED",
|
|
5521
|
-
/** Capture operation failed. */
|
|
5522
|
-
FAILED = "FAILED"
|
|
5345
|
+
interface BulkSendBuyerPickupConfirmationEmailsResponse {
|
|
5523
5346
|
}
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5347
|
+
interface SendBuyerShippingConfirmationEmailRequest {
|
|
5348
|
+
/**
|
|
5349
|
+
* @minLength 1
|
|
5350
|
+
* @maxLength 100
|
|
5351
|
+
*/
|
|
5352
|
+
orderId?: string;
|
|
5529
5353
|
}
|
|
5530
|
-
interface
|
|
5531
|
-
/** Status of this void action */
|
|
5532
|
-
status?: AuthorizationVoidStatusWithLiterals;
|
|
5533
|
-
/** Date and time the void was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
|
|
5534
|
-
voidedDate?: Date | null;
|
|
5535
|
-
/** In case of status is FAILED may contain failure details */
|
|
5536
|
-
failureDetails?: AuthorizationActionFailureDetails;
|
|
5537
|
-
/** Reason of void action */
|
|
5538
|
-
reason?: ReasonWithLiterals;
|
|
5354
|
+
interface SendBuyerShippingConfirmationEmailResponse {
|
|
5539
5355
|
}
|
|
5540
|
-
|
|
5541
|
-
/**
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5356
|
+
interface BulkSendBuyerShippingConfirmationEmailsRequest {
|
|
5357
|
+
/**
|
|
5358
|
+
* IDs of orders to send pickup emails for.
|
|
5359
|
+
* @minSize 1
|
|
5360
|
+
* @maxSize 300
|
|
5361
|
+
*/
|
|
5362
|
+
orderIds?: string[];
|
|
5547
5363
|
}
|
|
5548
|
-
|
|
5549
|
-
type AuthorizationVoidStatusWithLiterals = AuthorizationVoidStatus | 'PENDING' | 'SUCCEEDED' | 'FAILED';
|
|
5550
|
-
/** Reason the authorization was voided. */
|
|
5551
|
-
declare enum Reason {
|
|
5552
|
-
/** Authorization was voided by user. */
|
|
5553
|
-
MANUAL = "MANUAL",
|
|
5554
|
-
/** Authorization passed execution date. */
|
|
5555
|
-
SCHEDULED = "SCHEDULED"
|
|
5364
|
+
interface BulkSendBuyerShippingConfirmationEmailsResponse {
|
|
5556
5365
|
}
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
executionDate?: Date | null;
|
|
5366
|
+
interface SendMerchantOrderReceivedNotificationRequest {
|
|
5367
|
+
/**
|
|
5368
|
+
* @minLength 1
|
|
5369
|
+
* @maxLength 100
|
|
5370
|
+
*/
|
|
5371
|
+
orderId?: string;
|
|
5564
5372
|
}
|
|
5565
|
-
|
|
5566
|
-
VOID = "VOID",
|
|
5567
|
-
CAPTURE = "CAPTURE"
|
|
5373
|
+
interface SendMerchantOrderReceivedNotificationResponse {
|
|
5568
5374
|
}
|
|
5569
|
-
|
|
5570
|
-
type ActionTypeWithLiterals = ActionType | 'VOID' | 'CAPTURE';
|
|
5571
|
-
interface Chargeback {
|
|
5375
|
+
interface SendCancelRefundEmailRequest {
|
|
5572
5376
|
/**
|
|
5573
|
-
*
|
|
5574
|
-
* @
|
|
5575
|
-
* @
|
|
5576
|
-
* @immutable
|
|
5377
|
+
* The ID of order that is canceled/refunded
|
|
5378
|
+
* @minLength 1
|
|
5379
|
+
* @maxLength 100
|
|
5577
5380
|
*/
|
|
5578
|
-
|
|
5381
|
+
orderId?: string;
|
|
5579
5382
|
/**
|
|
5580
|
-
*
|
|
5581
|
-
* @
|
|
5582
|
-
* @
|
|
5383
|
+
* Personal note added to the email (optional)
|
|
5384
|
+
* @minLength 1
|
|
5385
|
+
* @maxLength 1000
|
|
5583
5386
|
*/
|
|
5584
|
-
|
|
5387
|
+
customMessage?: string | null;
|
|
5388
|
+
/** Refund amount */
|
|
5389
|
+
refundAmount?: Price;
|
|
5585
5390
|
/**
|
|
5586
|
-
*
|
|
5587
|
-
* @
|
|
5391
|
+
* Refund ID. (Optional)
|
|
5392
|
+
* @format GUID
|
|
5588
5393
|
*/
|
|
5589
|
-
|
|
5394
|
+
refundId?: string | null;
|
|
5395
|
+
}
|
|
5396
|
+
interface SendCancelRefundEmailResponse {
|
|
5397
|
+
}
|
|
5398
|
+
interface SendRefundEmailRequest {
|
|
5590
5399
|
/**
|
|
5591
|
-
*
|
|
5592
|
-
* @
|
|
5593
|
-
* @immutable
|
|
5400
|
+
* The ID of order that is refunded
|
|
5401
|
+
* @format GUID
|
|
5594
5402
|
*/
|
|
5595
|
-
|
|
5403
|
+
orderId?: string;
|
|
5596
5404
|
/**
|
|
5597
|
-
*
|
|
5598
|
-
* @
|
|
5405
|
+
* Refund ID
|
|
5406
|
+
* @format GUID
|
|
5599
5407
|
*/
|
|
5600
|
-
|
|
5408
|
+
refundId?: string;
|
|
5601
5409
|
/**
|
|
5602
|
-
*
|
|
5603
|
-
*
|
|
5604
|
-
*
|
|
5410
|
+
* Personal note added to the email (optional)
|
|
5411
|
+
* @minLength 1
|
|
5412
|
+
* @maxLength 1000
|
|
5605
5413
|
*/
|
|
5606
|
-
|
|
5414
|
+
customMessage?: string | null;
|
|
5415
|
+
}
|
|
5416
|
+
interface SendRefundEmailResponse {
|
|
5417
|
+
}
|
|
5418
|
+
interface SendFulfillmentEmailRequest {
|
|
5419
|
+
/** @format GUID */
|
|
5420
|
+
orderId?: string;
|
|
5421
|
+
/** @format GUID */
|
|
5422
|
+
fulfillerId?: string;
|
|
5423
|
+
}
|
|
5424
|
+
interface SendFulfillmentEmailResponse {
|
|
5425
|
+
}
|
|
5426
|
+
interface SendMerchantOrderReceivedPushRequest {
|
|
5607
5427
|
/**
|
|
5608
|
-
*
|
|
5609
|
-
* @
|
|
5610
|
-
* @readonly
|
|
5611
|
-
* @immutable
|
|
5428
|
+
* @minLength 1
|
|
5429
|
+
* @maxLength 100
|
|
5612
5430
|
*/
|
|
5613
|
-
|
|
5431
|
+
orderId?: string;
|
|
5614
5432
|
}
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5433
|
+
interface SendMerchantOrderReceivedPushResponse {
|
|
5434
|
+
}
|
|
5435
|
+
interface PreviewEmailByTypeRequest {
|
|
5436
|
+
emailType?: PreviewEmailTypeWithLiterals;
|
|
5437
|
+
}
|
|
5438
|
+
declare enum PreviewEmailType {
|
|
5439
|
+
ORDER_PLACED = "ORDER_PLACED",
|
|
5440
|
+
DOWNLOAD_LINKS = "DOWNLOAD_LINKS",
|
|
5441
|
+
ORDER_SHIPPED = "ORDER_SHIPPED",
|
|
5442
|
+
ORDER_READY_FOR_PICKUP = "ORDER_READY_FOR_PICKUP"
|
|
5620
5443
|
}
|
|
5621
5444
|
/** @enumType */
|
|
5622
|
-
type
|
|
5623
|
-
interface
|
|
5445
|
+
type PreviewEmailTypeWithLiterals = PreviewEmailType | 'ORDER_PLACED' | 'DOWNLOAD_LINKS' | 'ORDER_SHIPPED' | 'ORDER_READY_FOR_PICKUP';
|
|
5446
|
+
interface PreviewEmailByTypeResponse {
|
|
5447
|
+
emailPreview?: string;
|
|
5448
|
+
}
|
|
5449
|
+
interface PreviewRefundEmailRequest {
|
|
5624
5450
|
/**
|
|
5625
|
-
*
|
|
5626
|
-
* @maxLength
|
|
5451
|
+
* @minLength 1
|
|
5452
|
+
* @maxLength 100
|
|
5627
5453
|
*/
|
|
5628
|
-
|
|
5454
|
+
orderId?: string;
|
|
5455
|
+
/** Refund amount */
|
|
5456
|
+
refundAmount?: Price;
|
|
5457
|
+
/** Refund business details */
|
|
5458
|
+
details?: RefundDetails;
|
|
5629
5459
|
/**
|
|
5630
|
-
*
|
|
5631
|
-
*
|
|
5632
|
-
*
|
|
5633
|
-
* @maxLength 150
|
|
5460
|
+
* Personal note added to the email (optional)
|
|
5461
|
+
* @minLength 1
|
|
5462
|
+
* @maxLength 1000
|
|
5634
5463
|
*/
|
|
5635
|
-
|
|
5464
|
+
customMessage?: string | null;
|
|
5636
5465
|
/**
|
|
5637
|
-
*
|
|
5638
|
-
*
|
|
5639
|
-
* When set, takes precedence over `buyerLanguageName` and `siteLanguageName`.
|
|
5466
|
+
* Refund ID. (Optional)
|
|
5467
|
+
* @format GUID
|
|
5640
5468
|
*/
|
|
5641
|
-
|
|
5469
|
+
refundId?: string | null;
|
|
5642
5470
|
}
|
|
5643
|
-
interface
|
|
5471
|
+
interface PreviewRefundEmailResponse {
|
|
5472
|
+
emailPreview?: string;
|
|
5473
|
+
}
|
|
5474
|
+
interface PreviewCancelEmailRequest {
|
|
5644
5475
|
/**
|
|
5645
|
-
*
|
|
5476
|
+
* @minLength 1
|
|
5646
5477
|
* @maxLength 100
|
|
5647
5478
|
*/
|
|
5648
|
-
|
|
5479
|
+
orderId?: string;
|
|
5649
5480
|
/**
|
|
5650
|
-
*
|
|
5651
|
-
* @
|
|
5481
|
+
* Personal note added to the email (optional)
|
|
5482
|
+
* @minLength 1
|
|
5483
|
+
* @maxLength 1000
|
|
5652
5484
|
*/
|
|
5653
|
-
|
|
5485
|
+
customMessage?: string | null;
|
|
5486
|
+
}
|
|
5487
|
+
interface PreviewCancelEmailResponse {
|
|
5488
|
+
emailPreview?: string;
|
|
5489
|
+
}
|
|
5490
|
+
interface PreviewCancelRefundEmailRequest {
|
|
5654
5491
|
/**
|
|
5655
|
-
*
|
|
5656
|
-
* @
|
|
5657
|
-
* @deprecated Whether the gift card is voided.
|
|
5658
|
-
* @replacedBy payment.status
|
|
5659
|
-
* @targetRemovalDate 2026-11-01
|
|
5492
|
+
* @minLength 1
|
|
5493
|
+
* @maxLength 100
|
|
5660
5494
|
*/
|
|
5661
|
-
|
|
5495
|
+
orderId?: string;
|
|
5662
5496
|
/**
|
|
5663
|
-
*
|
|
5664
|
-
* @
|
|
5665
|
-
* @
|
|
5497
|
+
* Personal note added to the email (optional)
|
|
5498
|
+
* @minLength 1
|
|
5499
|
+
* @maxLength 1000
|
|
5666
5500
|
*/
|
|
5667
|
-
|
|
5501
|
+
customMessage?: string | null;
|
|
5502
|
+
/** Refund amount */
|
|
5503
|
+
refundAmount?: Price;
|
|
5504
|
+
/**
|
|
5505
|
+
* Refund ID. (Optional)
|
|
5506
|
+
* @format GUID
|
|
5507
|
+
*/
|
|
5508
|
+
refundId?: string | null;
|
|
5668
5509
|
}
|
|
5669
|
-
interface
|
|
5510
|
+
interface PreviewCancelRefundEmailResponse {
|
|
5511
|
+
emailPreview?: string;
|
|
5512
|
+
}
|
|
5513
|
+
interface PreviewBuyerPaymentsReceivedEmailRequest {
|
|
5514
|
+
}
|
|
5515
|
+
interface PreviewBuyerPaymentsReceivedEmailResponse {
|
|
5516
|
+
emailPreview?: string;
|
|
5517
|
+
}
|
|
5518
|
+
interface PreviewBuyerConfirmationEmailRequest {
|
|
5519
|
+
}
|
|
5520
|
+
interface PreviewBuyerConfirmationEmailResponse {
|
|
5521
|
+
emailPreview?: string;
|
|
5522
|
+
}
|
|
5523
|
+
interface PreviewBuyerPickupConfirmationEmailRequest {
|
|
5524
|
+
}
|
|
5525
|
+
interface PreviewBuyerPickupConfirmationEmailResponse {
|
|
5526
|
+
emailPreview?: string;
|
|
5527
|
+
}
|
|
5528
|
+
interface PreviewShippingConfirmationEmailRequest {
|
|
5529
|
+
}
|
|
5530
|
+
interface PreviewShippingConfirmationEmailResponse {
|
|
5531
|
+
emailPreview?: string;
|
|
5532
|
+
}
|
|
5533
|
+
interface PreviewResendDownloadLinksEmailRequest {
|
|
5534
|
+
}
|
|
5535
|
+
interface PreviewResendDownloadLinksEmailResponse {
|
|
5536
|
+
emailPreview?: string;
|
|
5537
|
+
}
|
|
5538
|
+
interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
5539
|
+
/** Emitted on a meta site creation. */
|
|
5540
|
+
siteCreated?: SiteCreated;
|
|
5541
|
+
/** Emitted on a meta site transfer completion. */
|
|
5542
|
+
siteTransferred?: SiteTransferred;
|
|
5543
|
+
/** Emitted on a meta site deletion. */
|
|
5544
|
+
siteDeleted?: SiteDeleted;
|
|
5545
|
+
/** Emitted on a meta site restoration. */
|
|
5546
|
+
siteUndeleted?: SiteUndeleted;
|
|
5547
|
+
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
5548
|
+
sitePublished?: SitePublished;
|
|
5549
|
+
/** Emitted on a meta site unpublish. */
|
|
5550
|
+
siteUnpublished?: SiteUnpublished;
|
|
5551
|
+
/** Emitted when meta site is marked as template. */
|
|
5552
|
+
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
5553
|
+
/** Emitted when meta site is marked as a WixSite. */
|
|
5554
|
+
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
5555
|
+
/** Emitted when an application is provisioned (installed). */
|
|
5556
|
+
serviceProvisioned?: ServiceProvisioned;
|
|
5557
|
+
/** Emitted when an application is removed (uninstalled). */
|
|
5558
|
+
serviceRemoved?: ServiceRemoved;
|
|
5559
|
+
/** Emitted when meta site name (URL slug) is changed. */
|
|
5560
|
+
siteRenamedPayload?: SiteRenamed;
|
|
5561
|
+
/** Emitted when meta site was permanently deleted. */
|
|
5562
|
+
hardDeleted?: SiteHardDeleted;
|
|
5563
|
+
/** Emitted on a namespace change. */
|
|
5564
|
+
namespaceChanged?: NamespaceChanged;
|
|
5565
|
+
/** Emitted when Studio is attached. */
|
|
5566
|
+
studioAssigned?: StudioAssigned;
|
|
5567
|
+
/** Emitted when Studio is detached. */
|
|
5568
|
+
studioUnassigned?: StudioUnassigned;
|
|
5670
5569
|
/**
|
|
5671
|
-
*
|
|
5672
|
-
*
|
|
5570
|
+
* Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
|
|
5571
|
+
* the actual URL.
|
|
5572
|
+
*
|
|
5573
|
+
* See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
|
|
5574
|
+
* See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
|
|
5673
5575
|
*/
|
|
5674
|
-
|
|
5576
|
+
urlChanged?: SiteUrlChanged;
|
|
5577
|
+
/** Site is marked as PurgedExternally */
|
|
5578
|
+
sitePurgedExternally?: SitePurgedExternally;
|
|
5579
|
+
/** Emitted when Odeditor is attached. */
|
|
5580
|
+
odeditorAssigned?: OdeditorAssigned;
|
|
5581
|
+
/** Emitted when Odeditor is detached. */
|
|
5582
|
+
odeditorUnassigned?: OdeditorUnassigned;
|
|
5583
|
+
/** Emitted when Picasso is attached. */
|
|
5584
|
+
picassoAssigned?: PicassoAssigned;
|
|
5585
|
+
/** Emitted when Picasso is detached. */
|
|
5586
|
+
picassoUnassigned?: PicassoUnassigned;
|
|
5587
|
+
/** Emitted when Wixel is attached. */
|
|
5588
|
+
wixelAssigned?: WixelAssigned;
|
|
5589
|
+
/** Emitted when Wixel is detached. */
|
|
5590
|
+
wixelUnassigned?: WixelUnassigned;
|
|
5591
|
+
/** Emitted when StudioTwo is attached. */
|
|
5592
|
+
studioTwoAssigned?: StudioTwoAssigned;
|
|
5593
|
+
/** Emitted when StudioTwo is detached. */
|
|
5594
|
+
studioTwoUnassigned?: StudioTwoUnassigned;
|
|
5595
|
+
/** Emitted when media from user domain is enabled. */
|
|
5596
|
+
userDomainMediaEnabled?: UserDomainMediaEnabled;
|
|
5597
|
+
/** Emitted when media from user domain is disabled. */
|
|
5598
|
+
userDomainMediaDisabled?: UserDomainMediaDisabled;
|
|
5599
|
+
/** Emitted when Editorless is attached. */
|
|
5600
|
+
editorlessAssigned?: EditorlessAssigned;
|
|
5601
|
+
/** Emitted when Editorless is detached. */
|
|
5602
|
+
editorlessUnassigned?: EditorlessUnassigned;
|
|
5675
5603
|
/**
|
|
5676
|
-
*
|
|
5677
|
-
* @
|
|
5678
|
-
* @maxLength 100
|
|
5604
|
+
* A meta site id.
|
|
5605
|
+
* @format GUID
|
|
5679
5606
|
*/
|
|
5680
|
-
|
|
5607
|
+
metaSiteId?: string;
|
|
5608
|
+
/** A meta site version. Monotonically increasing. */
|
|
5609
|
+
version?: string;
|
|
5610
|
+
/** A timestamp of the event. */
|
|
5611
|
+
timestamp?: string;
|
|
5681
5612
|
/**
|
|
5682
|
-
*
|
|
5683
|
-
*
|
|
5684
|
-
* @
|
|
5685
|
-
* @targetRemovalDate 2026-11-01
|
|
5613
|
+
* TODO(meta-site): Change validation once validations are disabled for consumers
|
|
5614
|
+
* More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
|
|
5615
|
+
* @maxSize 4000
|
|
5686
5616
|
*/
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5617
|
+
assets?: Asset[];
|
|
5618
|
+
}
|
|
5619
|
+
/** @oneof */
|
|
5620
|
+
interface MetaSiteSpecialEventPayloadOneOf {
|
|
5621
|
+
/** Emitted on a meta site creation. */
|
|
5622
|
+
siteCreated?: SiteCreated;
|
|
5623
|
+
/** Emitted on a meta site transfer completion. */
|
|
5624
|
+
siteTransferred?: SiteTransferred;
|
|
5625
|
+
/** Emitted on a meta site deletion. */
|
|
5626
|
+
siteDeleted?: SiteDeleted;
|
|
5627
|
+
/** Emitted on a meta site restoration. */
|
|
5628
|
+
siteUndeleted?: SiteUndeleted;
|
|
5629
|
+
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
5630
|
+
sitePublished?: SitePublished;
|
|
5631
|
+
/** Emitted on a meta site unpublish. */
|
|
5632
|
+
siteUnpublished?: SiteUnpublished;
|
|
5633
|
+
/** Emitted when meta site is marked as template. */
|
|
5634
|
+
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
5635
|
+
/** Emitted when meta site is marked as a WixSite. */
|
|
5636
|
+
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
5637
|
+
/** Emitted when an application is provisioned (installed). */
|
|
5638
|
+
serviceProvisioned?: ServiceProvisioned;
|
|
5639
|
+
/** Emitted when an application is removed (uninstalled). */
|
|
5640
|
+
serviceRemoved?: ServiceRemoved;
|
|
5641
|
+
/** Emitted when meta site name (URL slug) is changed. */
|
|
5642
|
+
siteRenamedPayload?: SiteRenamed;
|
|
5643
|
+
/** Emitted when meta site was permanently deleted. */
|
|
5644
|
+
hardDeleted?: SiteHardDeleted;
|
|
5645
|
+
/** Emitted on a namespace change. */
|
|
5646
|
+
namespaceChanged?: NamespaceChanged;
|
|
5647
|
+
/** Emitted when Studio is attached. */
|
|
5648
|
+
studioAssigned?: StudioAssigned;
|
|
5649
|
+
/** Emitted when Studio is detached. */
|
|
5650
|
+
studioUnassigned?: StudioUnassigned;
|
|
5690
5651
|
/**
|
|
5691
|
-
*
|
|
5692
|
-
*
|
|
5693
|
-
*
|
|
5652
|
+
* Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
|
|
5653
|
+
* the actual URL.
|
|
5654
|
+
*
|
|
5655
|
+
* See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
|
|
5656
|
+
* See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
|
|
5694
5657
|
*/
|
|
5695
|
-
|
|
5658
|
+
urlChanged?: SiteUrlChanged;
|
|
5659
|
+
/** Site is marked as PurgedExternally */
|
|
5660
|
+
sitePurgedExternally?: SitePurgedExternally;
|
|
5661
|
+
/** Emitted when Odeditor is attached. */
|
|
5662
|
+
odeditorAssigned?: OdeditorAssigned;
|
|
5663
|
+
/** Emitted when Odeditor is detached. */
|
|
5664
|
+
odeditorUnassigned?: OdeditorUnassigned;
|
|
5665
|
+
/** Emitted when Picasso is attached. */
|
|
5666
|
+
picassoAssigned?: PicassoAssigned;
|
|
5667
|
+
/** Emitted when Picasso is detached. */
|
|
5668
|
+
picassoUnassigned?: PicassoUnassigned;
|
|
5669
|
+
/** Emitted when Wixel is attached. */
|
|
5670
|
+
wixelAssigned?: WixelAssigned;
|
|
5671
|
+
/** Emitted when Wixel is detached. */
|
|
5672
|
+
wixelUnassigned?: WixelUnassigned;
|
|
5673
|
+
/** Emitted when StudioTwo is attached. */
|
|
5674
|
+
studioTwoAssigned?: StudioTwoAssigned;
|
|
5675
|
+
/** Emitted when StudioTwo is detached. */
|
|
5676
|
+
studioTwoUnassigned?: StudioTwoUnassigned;
|
|
5677
|
+
/** Emitted when media from user domain is enabled. */
|
|
5678
|
+
userDomainMediaEnabled?: UserDomainMediaEnabled;
|
|
5679
|
+
/** Emitted when media from user domain is disabled. */
|
|
5680
|
+
userDomainMediaDisabled?: UserDomainMediaDisabled;
|
|
5681
|
+
/** Emitted when Editorless is attached. */
|
|
5682
|
+
editorlessAssigned?: EditorlessAssigned;
|
|
5683
|
+
/** Emitted when Editorless is detached. */
|
|
5684
|
+
editorlessUnassigned?: EditorlessUnassigned;
|
|
5685
|
+
}
|
|
5686
|
+
interface Asset {
|
|
5696
5687
|
/**
|
|
5697
|
-
*
|
|
5698
|
-
* @
|
|
5699
|
-
* @deprecated Whether the membership is voided.
|
|
5700
|
-
* @replacedBy payment.status
|
|
5701
|
-
* @targetRemovalDate 2026-11-01
|
|
5688
|
+
* An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
|
|
5689
|
+
* @maxLength 36
|
|
5702
5690
|
*/
|
|
5703
|
-
|
|
5691
|
+
appDefId?: string;
|
|
5704
5692
|
/**
|
|
5705
|
-
*
|
|
5706
|
-
* @
|
|
5693
|
+
* An instance id. For legacy reasons may be UUID or a string.
|
|
5694
|
+
* @maxLength 200
|
|
5707
5695
|
*/
|
|
5708
|
-
|
|
5709
|
-
/**
|
|
5710
|
-
|
|
5696
|
+
instanceId?: string;
|
|
5697
|
+
/** An application state. */
|
|
5698
|
+
state?: StateWithLiterals;
|
|
5711
5699
|
}
|
|
5712
|
-
declare enum
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
CHARGE_PENDING = "CHARGE_PENDING",
|
|
5719
|
-
/** Payment was voided. */
|
|
5720
|
-
VOIDED = "VOIDED"
|
|
5700
|
+
declare enum State {
|
|
5701
|
+
UNKNOWN = "UNKNOWN",
|
|
5702
|
+
ENABLED = "ENABLED",
|
|
5703
|
+
DISABLED = "DISABLED",
|
|
5704
|
+
PENDING = "PENDING",
|
|
5705
|
+
DEMO = "DEMO"
|
|
5721
5706
|
}
|
|
5722
5707
|
/** @enumType */
|
|
5723
|
-
type
|
|
5724
|
-
interface
|
|
5708
|
+
type StateWithLiterals = State | 'UNKNOWN' | 'ENABLED' | 'DISABLED' | 'PENDING' | 'DEMO';
|
|
5709
|
+
interface SiteCreated {
|
|
5725
5710
|
/**
|
|
5726
|
-
*
|
|
5727
|
-
* @
|
|
5711
|
+
* A template identifier (empty if not created from a template).
|
|
5712
|
+
* @maxLength 36
|
|
5728
5713
|
*/
|
|
5729
|
-
|
|
5714
|
+
originTemplateId?: string;
|
|
5730
5715
|
/**
|
|
5731
|
-
*
|
|
5732
|
-
* @
|
|
5716
|
+
* An account id of the owner.
|
|
5717
|
+
* @format GUID
|
|
5733
5718
|
*/
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5719
|
+
ownerId?: string;
|
|
5720
|
+
/** A context in which meta site was created. */
|
|
5721
|
+
context?: SiteCreatedContextWithLiterals;
|
|
5737
5722
|
/**
|
|
5738
|
-
*
|
|
5723
|
+
* A meta site id from which this site was created.
|
|
5724
|
+
*
|
|
5725
|
+
* In case of a creation from a template it's a template id.
|
|
5726
|
+
* In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
|
|
5739
5727
|
* @format GUID
|
|
5740
5728
|
*/
|
|
5741
|
-
|
|
5729
|
+
originMetaSiteId?: string | null;
|
|
5742
5730
|
/**
|
|
5743
|
-
*
|
|
5744
|
-
* @
|
|
5745
|
-
* @maxLength 40
|
|
5731
|
+
* A meta site name (URL slug).
|
|
5732
|
+
* @maxLength 20
|
|
5746
5733
|
*/
|
|
5747
|
-
|
|
5734
|
+
siteName?: string;
|
|
5735
|
+
/** A namespace. */
|
|
5736
|
+
namespace?: NamespaceWithLiterals;
|
|
5748
5737
|
}
|
|
5749
|
-
|
|
5738
|
+
declare enum SiteCreatedContext {
|
|
5739
|
+
/** A valid option, we don't expose all reasons why site might be created. */
|
|
5740
|
+
OTHER = "OTHER",
|
|
5741
|
+
/** A meta site was created from template. */
|
|
5742
|
+
FROM_TEMPLATE = "FROM_TEMPLATE",
|
|
5743
|
+
/** A meta site was created by copying of the transfferred meta site. */
|
|
5744
|
+
DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
|
|
5745
|
+
/** A copy of existing meta site. */
|
|
5746
|
+
DUPLICATE = "DUPLICATE",
|
|
5747
|
+
/** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
|
|
5748
|
+
OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
|
|
5749
|
+
/** deprecated A meta site was created for Flash editor. */
|
|
5750
|
+
FLASH = "FLASH"
|
|
5751
|
+
}
|
|
5752
|
+
/** @enumType */
|
|
5753
|
+
type SiteCreatedContextWithLiterals = SiteCreatedContext | 'OTHER' | 'FROM_TEMPLATE' | 'DUPLICATE_BY_SITE_TRANSFER' | 'DUPLICATE' | 'OLD_SITE_TRANSFER' | 'FLASH';
|
|
5754
|
+
declare enum Namespace {
|
|
5755
|
+
UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
|
|
5756
|
+
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
5757
|
+
WIX = "WIX",
|
|
5758
|
+
/** 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. */
|
|
5759
|
+
SHOUT_OUT = "SHOUT_OUT",
|
|
5760
|
+
/** 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. */
|
|
5761
|
+
ALBUMS = "ALBUMS",
|
|
5762
|
+
/** 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. */
|
|
5763
|
+
WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
|
|
5764
|
+
/** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5765
|
+
HOTELS = "HOTELS",
|
|
5766
|
+
/** 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. */
|
|
5767
|
+
CLUBS = "CLUBS",
|
|
5768
|
+
/** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5769
|
+
ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
|
|
5750
5770
|
/**
|
|
5751
|
-
*
|
|
5752
|
-
*
|
|
5771
|
+
* AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default.
|
|
5772
|
+
* Not the dev-center dev site (see Flag.DEV_CENTER_DEV_SITE_FLAG).
|
|
5753
5773
|
*/
|
|
5754
|
-
|
|
5774
|
+
DEV_SITE = "DEV_SITE",
|
|
5775
|
+
/** 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. */
|
|
5776
|
+
LOGOS = "LOGOS",
|
|
5777
|
+
/** 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. */
|
|
5778
|
+
VIDEO_MAKER = "VIDEO_MAKER",
|
|
5779
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5780
|
+
PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
|
|
5781
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5782
|
+
DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
|
|
5755
5783
|
/**
|
|
5756
|
-
*
|
|
5757
|
-
*
|
|
5784
|
+
* A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
|
|
5785
|
+
*
|
|
5786
|
+
* Meta site with this namespace will *not* be shown in a user's site list by default.
|
|
5758
5787
|
*/
|
|
5759
|
-
|
|
5788
|
+
HTML_DRAFT = "HTML_DRAFT",
|
|
5760
5789
|
/**
|
|
5761
|
-
*
|
|
5762
|
-
*
|
|
5763
|
-
*
|
|
5790
|
+
* the user-journey for Fitness users who want to start from managing their business instead of designing their website.
|
|
5791
|
+
* Will be accessible from Site List and will not have a website app.
|
|
5792
|
+
* Once the user attaches a site, the site will become a regular wixsite.
|
|
5764
5793
|
*/
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5794
|
+
SITELESS_BUSINESS = "SITELESS_BUSINESS",
|
|
5795
|
+
/** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
|
|
5796
|
+
CREATOR_ECONOMY = "CREATOR_ECONOMY",
|
|
5797
|
+
/** It is to be used in the Business First efforts. */
|
|
5798
|
+
DASHBOARD_FIRST = "DASHBOARD_FIRST",
|
|
5799
|
+
/** Bookings business flow with no site. */
|
|
5800
|
+
ANYWHERE = "ANYWHERE",
|
|
5801
|
+
/** Namespace for Headless Backoffice with no editor */
|
|
5802
|
+
HEADLESS = "HEADLESS",
|
|
5768
5803
|
/**
|
|
5769
|
-
*
|
|
5770
|
-
*
|
|
5771
|
-
* to prevent false overpayment or underpayment due to rounding.
|
|
5804
|
+
* Namespace for master site that will exist in parent account that will be referenced by subaccounts
|
|
5805
|
+
* The site will be used for account level CSM feature for enterprise
|
|
5772
5806
|
*/
|
|
5773
|
-
|
|
5807
|
+
ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
|
|
5808
|
+
/** Rise.ai Siteless account management for Gift Cards and Store Credit. */
|
|
5809
|
+
RISE = "RISE",
|
|
5774
5810
|
/**
|
|
5775
|
-
*
|
|
5776
|
-
*
|
|
5777
|
-
*
|
|
5811
|
+
* As part of the branded app new funnel, users now can create a meta site that will be branded app first.
|
|
5812
|
+
* There's a blank site behind the scene but it's blank).
|
|
5813
|
+
* The Mobile company will be the owner of this namespace.
|
|
5778
5814
|
*/
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
/** Payment was charged successfully. */
|
|
5783
|
-
APPROVED = "APPROVED",
|
|
5784
|
-
/** Payment is being processed and hasn't been confirmed yet. */
|
|
5785
|
-
PENDING = "PENDING",
|
|
5786
|
-
/** Payment is awaiting confirmation. For an offline payment, the merchant must confirm they received it. For an online payment, the payment provider hasn't confirmed it, which typically means the merchant's provider account setup isn't complete. */
|
|
5787
|
-
PENDING_MERCHANT = "PENDING_MERCHANT",
|
|
5788
|
-
/** Payment was canceled before it was charged. */
|
|
5789
|
-
CANCELED = "CANCELED",
|
|
5790
|
-
/** Payment was declined by the payment provider. */
|
|
5791
|
-
DECLINED = "DECLINED",
|
|
5792
|
-
/** Payment was fully refunded. */
|
|
5793
|
-
REFUNDED = "REFUNDED",
|
|
5794
|
-
/** Part of the payment amount was refunded. */
|
|
5795
|
-
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
|
|
5796
|
-
/** Funds are held on the buyer's payment method but haven't been captured. Capture them with [Capture Authorized Payments](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/order-billing/capture-authorized-payments) or release them with [Void Authorized Payments](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/order-billing/void-authorized-payments). An authorized payment can't be refunded until it's captured. */
|
|
5797
|
-
AUTHORIZED = "AUTHORIZED",
|
|
5815
|
+
BRANDED_FIRST = "BRANDED_FIRST",
|
|
5816
|
+
/** Nownia.com Siteless account management for Ai Scheduling Assistant. */
|
|
5817
|
+
NOWNIA = "NOWNIA",
|
|
5798
5818
|
/**
|
|
5799
|
-
*
|
|
5800
|
-
*
|
|
5801
|
-
* Gift card and membership payments don't support partial refunds, so a full refund of one is reported as `VOIDED` rather than `REFUNDED`.
|
|
5819
|
+
* UGC Templates are templates that are created by users for personal use and to sale to other users.
|
|
5820
|
+
* The Partners company owns this namespace.
|
|
5802
5821
|
*/
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
reason?: CanceledReasonWithLiterals;
|
|
5809
|
-
}
|
|
5810
|
-
declare enum CanceledReason {
|
|
5811
|
-
/** Other payment with the same chargeCorrelationId failed before current payment started. */
|
|
5812
|
-
OTHER_PAYMENT_FAILURE = "OTHER_PAYMENT_FAILURE",
|
|
5813
|
-
/** Payment was not completed by user and expired. */
|
|
5814
|
-
EXPIRED = "EXPIRED"
|
|
5815
|
-
}
|
|
5816
|
-
/** @enumType */
|
|
5817
|
-
type CanceledReasonWithLiterals = CanceledReason | 'OTHER_PAYMENT_FAILURE' | 'EXPIRED';
|
|
5818
|
-
interface DeclinedStatusDetails {
|
|
5819
|
-
reason?: DeclinedReasonWithLiterals;
|
|
5820
|
-
}
|
|
5821
|
-
declare enum DeclinedReason {
|
|
5822
|
-
/** Corresponding charge failed. */
|
|
5823
|
-
CHARGE_FAILED = "CHARGE_FAILED",
|
|
5824
|
-
/** Payment details expired. */
|
|
5825
|
-
EXPIRED = "EXPIRED",
|
|
5826
|
-
/** Insufficient funds. */
|
|
5827
|
-
INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
|
|
5828
|
-
/** Gift card was disabled before charge was attempted. */
|
|
5829
|
-
GIFT_CARD_DISABLED = "GIFT_CARD_DISABLED"
|
|
5830
|
-
}
|
|
5831
|
-
/** @enumType */
|
|
5832
|
-
type DeclinedReasonWithLiterals = DeclinedReason | 'CHARGE_FAILED' | 'EXPIRED' | 'INSUFFICIENT_FUNDS' | 'GIFT_CARD_DISABLED';
|
|
5833
|
-
interface VoidedStatusDetails {
|
|
5834
|
-
reason?: VoidedReasonWithLiterals;
|
|
5835
|
-
}
|
|
5836
|
-
declare enum VoidedReason {
|
|
5837
|
-
/** Payment was voided by merchant request. */
|
|
5838
|
-
MERCHANT_REQUEST = "MERCHANT_REQUEST",
|
|
5839
|
-
/** Other payment with the same chargeCorrelationId failed and caused rollback of all payments with same chargeCorrelationId. */
|
|
5840
|
-
OTHER_PAYMENT_FAILURE = "OTHER_PAYMENT_FAILURE"
|
|
5841
|
-
}
|
|
5842
|
-
/** @enumType */
|
|
5843
|
-
type VoidedReasonWithLiterals = VoidedReason | 'MERCHANT_REQUEST' | 'OTHER_PAYMENT_FAILURE';
|
|
5844
|
-
interface PaymentStatusDetails extends PaymentStatusDetailsStatusDetailsOneOf {
|
|
5845
|
-
}
|
|
5846
|
-
/** @oneof */
|
|
5847
|
-
interface PaymentStatusDetailsStatusDetailsOneOf {
|
|
5848
|
-
}
|
|
5849
|
-
interface Refund {
|
|
5822
|
+
UGC_TEMPLATE = "UGC_TEMPLATE",
|
|
5823
|
+
/** Codux Headless Sites */
|
|
5824
|
+
CODUX = "CODUX",
|
|
5825
|
+
/** Bobb - AI Design Creator. */
|
|
5826
|
+
MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
|
|
5850
5827
|
/**
|
|
5851
|
-
*
|
|
5852
|
-
*
|
|
5853
|
-
* @readonly
|
|
5828
|
+
* Shared Blog Site is a unique single site across Enterprise account,
|
|
5829
|
+
* This site will hold all Blog posts related to the Marketing product.
|
|
5854
5830
|
*/
|
|
5855
|
-
|
|
5831
|
+
SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE",
|
|
5832
|
+
/** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5833
|
+
STANDALONE_FORMS = "STANDALONE_FORMS",
|
|
5834
|
+
/** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
5835
|
+
STANDALONE_EVENTS = "STANDALONE_EVENTS",
|
|
5836
|
+
/** MIMIR - Siteless account for MIMIR Ai Job runner. */
|
|
5837
|
+
MIMIR = "MIMIR",
|
|
5838
|
+
/** Wix Twins platform. */
|
|
5839
|
+
TWINS = "TWINS",
|
|
5840
|
+
/** Wix Nano. */
|
|
5841
|
+
NANO = "NANO",
|
|
5842
|
+
/** Base44 headless sites. */
|
|
5843
|
+
BASE44 = "BASE44",
|
|
5844
|
+
/** Wix Channels Sites */
|
|
5845
|
+
CHANNELS = "CHANNELS",
|
|
5846
|
+
/** Nautilus platform. */
|
|
5847
|
+
NAUTILUS = "NAUTILUS",
|
|
5856
5848
|
/**
|
|
5857
|
-
*
|
|
5858
|
-
*
|
|
5849
|
+
* Symphony — a siteless site representing a project within Symphony (the evolution of Orion).
|
|
5850
|
+
* Holds project data, conversations, assets, and manages collaborators / shared team members for the project.
|
|
5859
5851
|
*/
|
|
5860
|
-
|
|
5861
|
-
/**
|
|
5862
|
-
|
|
5852
|
+
SYMPHONY = "SYMPHONY",
|
|
5853
|
+
/** Nautilus platform app. */
|
|
5854
|
+
NAUTILUS_APPS = "NAUTILUS_APPS",
|
|
5863
5855
|
/**
|
|
5864
|
-
*
|
|
5865
|
-
*
|
|
5866
|
-
* @immutable
|
|
5856
|
+
* Vibu — a siteless site representing a project built with Vibu (the AI app builder).
|
|
5857
|
+
* Holds the project's generated code, conversations, assets, and manages collaborators for the project.
|
|
5867
5858
|
*/
|
|
5868
|
-
|
|
5859
|
+
VIBU = "VIBU",
|
|
5869
5860
|
/**
|
|
5870
|
-
*
|
|
5871
|
-
*
|
|
5861
|
+
* Ghost site for the BrandKit multi-site platform. Each ghost backs a single BrandKit
|
|
5862
|
+
* (an Enterprise account may have several), holding that BrandKit's brand definition
|
|
5863
|
+
* (theme, typography, assets) which is rolled out to the BrandKit's connected sites.
|
|
5864
|
+
* MetaSites with this namespace will *not* be shown in a user's site list by default.
|
|
5872
5865
|
*/
|
|
5873
|
-
|
|
5866
|
+
ENTERPRISE_BRAND_KIT = "ENTERPRISE_BRAND_KIT",
|
|
5874
5867
|
/**
|
|
5875
|
-
*
|
|
5876
|
-
*
|
|
5877
|
-
* @readonly
|
|
5878
|
-
* @immutable
|
|
5868
|
+
* Dev-center development sites (com.wixpress.devcenter.dsm).
|
|
5869
|
+
* DEPRECATED: replaced by Flag.DEV_CENTER_DEV_SITE_FLAG (a dev site is orthogonal to the namespace). Do not use for new sites.
|
|
5879
5870
|
*/
|
|
5880
|
-
|
|
5871
|
+
DEV_CENTER_DEV_SITE = "DEV_CENTER_DEV_SITE"
|
|
5881
5872
|
}
|
|
5882
|
-
|
|
5873
|
+
/** @enumType */
|
|
5874
|
+
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' | 'NAUTILUS' | 'SYMPHONY' | 'NAUTILUS_APPS' | 'VIBU' | 'ENTERPRISE_BRAND_KIT' | 'DEV_CENTER_DEV_SITE';
|
|
5875
|
+
/** Site transferred to another user. */
|
|
5876
|
+
interface SiteTransferred {
|
|
5883
5877
|
/**
|
|
5884
|
-
*
|
|
5878
|
+
* A previous owner id (user that transfers meta site).
|
|
5885
5879
|
* @format GUID
|
|
5886
|
-
* @immutable
|
|
5887
5880
|
*/
|
|
5888
|
-
|
|
5881
|
+
oldOwnerId?: string;
|
|
5889
5882
|
/**
|
|
5890
|
-
*
|
|
5891
|
-
* @
|
|
5883
|
+
* A new owner id (user that accepts meta site).
|
|
5884
|
+
* @format GUID
|
|
5892
5885
|
*/
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5886
|
+
newOwnerId?: string;
|
|
5887
|
+
}
|
|
5888
|
+
/** Soft deletion of the meta site. Could be restored. */
|
|
5889
|
+
interface SiteDeleted {
|
|
5890
|
+
/** A deletion context. */
|
|
5891
|
+
deleteContext?: DeleteContext;
|
|
5892
|
+
}
|
|
5893
|
+
interface DeleteContext {
|
|
5894
|
+
/** When the meta site was deleted. */
|
|
5895
|
+
dateDeleted?: Date | null;
|
|
5896
|
+
/** A status. */
|
|
5897
|
+
deleteStatus?: DeleteStatusWithLiterals;
|
|
5898
5898
|
/**
|
|
5899
|
-
*
|
|
5900
|
-
*
|
|
5901
|
-
* @format GUID
|
|
5899
|
+
* A reason (flow).
|
|
5900
|
+
* @maxLength 255
|
|
5902
5901
|
*/
|
|
5903
|
-
|
|
5904
|
-
/** ID of the refund in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for external refunds. */
|
|
5905
|
-
providerRefundId?: string | null;
|
|
5902
|
+
deleteOrigin?: string;
|
|
5906
5903
|
/**
|
|
5907
|
-
*
|
|
5908
|
-
* @
|
|
5904
|
+
* A service that deleted it.
|
|
5905
|
+
* @maxLength 255
|
|
5909
5906
|
*/
|
|
5910
|
-
|
|
5907
|
+
initiatorId?: string | null;
|
|
5911
5908
|
}
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
/** Refund transaction failed. */
|
|
5919
|
-
FAILED = "FAILED",
|
|
5920
|
-
/** Refund request acknowledged, and will be executed soon. */
|
|
5921
|
-
SCHEDULED = "SCHEDULED",
|
|
5922
|
-
/** Refund was initiated on payment provider side. */
|
|
5923
|
-
STARTED = "STARTED"
|
|
5909
|
+
declare enum DeleteStatus {
|
|
5910
|
+
UNKNOWN = "UNKNOWN",
|
|
5911
|
+
TRASH = "TRASH",
|
|
5912
|
+
DELETED = "DELETED",
|
|
5913
|
+
PENDING_PURGE = "PENDING_PURGE",
|
|
5914
|
+
PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
|
|
5924
5915
|
}
|
|
5925
5916
|
/** @enumType */
|
|
5926
|
-
type
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
*/
|
|
5935
|
-
paymentGatewayReasonCode?: string | null;
|
|
5917
|
+
type DeleteStatusWithLiterals = DeleteStatus | 'UNKNOWN' | 'TRASH' | 'DELETED' | 'PENDING_PURGE' | 'PURGED_EXTERNALLY';
|
|
5918
|
+
/** Restoration of the meta site. */
|
|
5919
|
+
interface SiteUndeleted {
|
|
5920
|
+
}
|
|
5921
|
+
/** First publish of a meta site. Or subsequent publish after unpublish. */
|
|
5922
|
+
interface SitePublished {
|
|
5923
|
+
}
|
|
5924
|
+
interface SiteUnpublished {
|
|
5936
5925
|
/**
|
|
5937
|
-
*
|
|
5938
|
-
* @
|
|
5939
|
-
* @
|
|
5926
|
+
* A list of URLs previously associated with the meta site.
|
|
5927
|
+
* @maxLength 4000
|
|
5928
|
+
* @maxSize 10000
|
|
5940
5929
|
*/
|
|
5941
|
-
|
|
5930
|
+
urls?: string[];
|
|
5942
5931
|
}
|
|
5943
|
-
interface
|
|
5944
|
-
/** Total amount requested for refund. */
|
|
5945
|
-
requestedRefund?: Price;
|
|
5946
|
-
/** Pending refund amount - the portion of `requestedRefund` that is still pending. */
|
|
5947
|
-
pendingRefund?: Price;
|
|
5948
|
-
/** Refunded amount - the portion of `requestedRefund` that refunded successfully. */
|
|
5949
|
-
refunded?: Price;
|
|
5950
|
-
/** Failed refund amount - the portion of `requestedRefund` that failed. */
|
|
5951
|
-
failedRefundAmount?: Price;
|
|
5952
|
-
/** Whether at least one refund transaction is still in `"PENDING"` status. */
|
|
5953
|
-
pending?: boolean;
|
|
5954
|
-
/** Breakdown of refunded items. Available only after refund is complete. */
|
|
5955
|
-
breakdown?: RefundItemsBreakdown;
|
|
5932
|
+
interface SiteMarkedAsTemplate {
|
|
5956
5933
|
}
|
|
5957
|
-
interface
|
|
5934
|
+
interface SiteMarkedAsWixSite {
|
|
5935
|
+
}
|
|
5936
|
+
/**
|
|
5937
|
+
* Represents a service provisioned a site.
|
|
5938
|
+
*
|
|
5939
|
+
* Note on `origin_instance_id`:
|
|
5940
|
+
* There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
|
|
5941
|
+
* This is because of the following scenario:
|
|
5942
|
+
*
|
|
5943
|
+
* Imagine you have a template where a third-party application (TPA) includes some stub data,
|
|
5944
|
+
* such as a product catalog. When you create a site from this template, you inherit this
|
|
5945
|
+
* default product catalog. However, if the template's product catalog is modified,
|
|
5946
|
+
* your site will retain the catalog as it was at the time of site creation. This ensures that
|
|
5947
|
+
* your site remains consistent with what you initially received and does not include any
|
|
5948
|
+
* changes made to the original template afterward.
|
|
5949
|
+
* To ensure this, the TPA on the template gets a new instance_id.
|
|
5950
|
+
*/
|
|
5951
|
+
interface ServiceProvisioned {
|
|
5958
5952
|
/**
|
|
5959
|
-
*
|
|
5960
|
-
* @
|
|
5953
|
+
* Either UUID or EmbeddedServiceType.
|
|
5954
|
+
* @maxLength 36
|
|
5961
5955
|
*/
|
|
5962
|
-
|
|
5963
|
-
}
|
|
5964
|
-
interface LineItemRefundSummary {
|
|
5956
|
+
appDefId?: string;
|
|
5965
5957
|
/**
|
|
5966
|
-
*
|
|
5967
|
-
* @
|
|
5958
|
+
* Not only UUID. Something here could be something weird.
|
|
5959
|
+
* @maxLength 36
|
|
5968
5960
|
*/
|
|
5969
|
-
|
|
5970
|
-
/** Total refunded amount for the line item. */
|
|
5971
|
-
totalRefundedAmount?: Price;
|
|
5972
|
-
}
|
|
5973
|
-
interface CalculateRefundRequest {
|
|
5961
|
+
instanceId?: string;
|
|
5974
5962
|
/**
|
|
5975
|
-
*
|
|
5976
|
-
* @
|
|
5977
|
-
* @maxLength 100
|
|
5963
|
+
* An instance id from which this instance is originated.
|
|
5964
|
+
* @maxLength 36
|
|
5978
5965
|
*/
|
|
5979
|
-
|
|
5966
|
+
originInstanceId?: string;
|
|
5980
5967
|
/**
|
|
5981
|
-
*
|
|
5982
|
-
* @
|
|
5968
|
+
* A version.
|
|
5969
|
+
* @maxLength 500
|
|
5983
5970
|
*/
|
|
5984
|
-
|
|
5985
|
-
/** Should include shipping in refund calculation */
|
|
5986
|
-
refundShipping?: boolean;
|
|
5987
|
-
}
|
|
5988
|
-
interface CalculateRefundItemRequest {
|
|
5971
|
+
version?: string | null;
|
|
5989
5972
|
/**
|
|
5990
|
-
*
|
|
5973
|
+
* The origin meta site id
|
|
5991
5974
|
* @format GUID
|
|
5992
5975
|
*/
|
|
5993
|
-
|
|
5976
|
+
originMetaSiteId?: string | null;
|
|
5977
|
+
}
|
|
5978
|
+
interface ServiceRemoved {
|
|
5994
5979
|
/**
|
|
5995
|
-
*
|
|
5996
|
-
* @
|
|
5997
|
-
* @max 100000
|
|
5980
|
+
* Either UUID or EmbeddedServiceType.
|
|
5981
|
+
* @maxLength 36
|
|
5998
5982
|
*/
|
|
5999
|
-
|
|
6000
|
-
}
|
|
6001
|
-
interface CalculateRefundResponse {
|
|
6002
|
-
/** Total refundable amount */
|
|
6003
|
-
total?: Price;
|
|
6004
|
-
/** Tax cost of the order */
|
|
6005
|
-
tax?: Price;
|
|
6006
|
-
/** Discount given for this order */
|
|
6007
|
-
discount?: Price;
|
|
6008
|
-
/** Total cost of the order (without tax) */
|
|
6009
|
-
subtotal?: Price;
|
|
6010
|
-
/** Total shipping cost for order */
|
|
6011
|
-
shipping?: Price;
|
|
6012
|
-
/** Previous refund given on that order */
|
|
6013
|
-
previouslyRefundedAmount?: Price;
|
|
5983
|
+
appDefId?: string;
|
|
6014
5984
|
/**
|
|
6015
|
-
*
|
|
6016
|
-
* @
|
|
5985
|
+
* Not only UUID. Something here could be something weird.
|
|
5986
|
+
* @maxLength 36
|
|
6017
5987
|
*/
|
|
6018
|
-
|
|
6019
|
-
}
|
|
6020
|
-
interface CalculateRefundItemResponse {
|
|
5988
|
+
instanceId?: string;
|
|
6021
5989
|
/**
|
|
6022
|
-
*
|
|
6023
|
-
* @
|
|
5990
|
+
* A version.
|
|
5991
|
+
* @maxLength 500
|
|
6024
5992
|
*/
|
|
6025
|
-
|
|
6026
|
-
/** Refundable amount for requested quantity of items (price of requested quantity of items without tax and discount) */
|
|
6027
|
-
price?: Price;
|
|
5993
|
+
version?: string | null;
|
|
6028
5994
|
}
|
|
6029
|
-
|
|
5995
|
+
/** Rename of the site. Meaning, free public url has been changed as well. */
|
|
5996
|
+
interface SiteRenamed {
|
|
6030
5997
|
/**
|
|
6031
|
-
*
|
|
6032
|
-
* @
|
|
6033
|
-
* @maxLength 100
|
|
5998
|
+
* A new meta site name (URL slug).
|
|
5999
|
+
* @maxLength 20
|
|
6034
6000
|
*/
|
|
6035
|
-
|
|
6001
|
+
newSiteName?: string;
|
|
6036
6002
|
/**
|
|
6037
|
-
*
|
|
6038
|
-
* @
|
|
6039
|
-
* @maxSize 100
|
|
6040
|
-
* @format GUID
|
|
6003
|
+
* A previous meta site name (URL slug).
|
|
6004
|
+
* @maxLength 255
|
|
6041
6005
|
*/
|
|
6042
|
-
|
|
6006
|
+
oldSiteName?: string;
|
|
6043
6007
|
}
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6008
|
+
/**
|
|
6009
|
+
* Hard deletion of the meta site.
|
|
6010
|
+
*
|
|
6011
|
+
* Could not be restored. Therefore it's desirable to cleanup data.
|
|
6012
|
+
*/
|
|
6013
|
+
interface SiteHardDeleted {
|
|
6014
|
+
/** A deletion context. */
|
|
6015
|
+
deleteContext?: DeleteContext;
|
|
6047
6016
|
}
|
|
6048
|
-
interface
|
|
6049
|
-
/**
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6017
|
+
interface NamespaceChanged {
|
|
6018
|
+
/** A previous namespace. */
|
|
6019
|
+
oldNamespace?: NamespaceWithLiterals;
|
|
6020
|
+
/** A new namespace. */
|
|
6021
|
+
newNamespace?: NamespaceWithLiterals;
|
|
6022
|
+
}
|
|
6023
|
+
/** Assigned Studio editor */
|
|
6024
|
+
interface StudioAssigned {
|
|
6025
|
+
}
|
|
6026
|
+
/** Unassigned Studio editor */
|
|
6027
|
+
interface StudioUnassigned {
|
|
6028
|
+
}
|
|
6029
|
+
/**
|
|
6030
|
+
* Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.
|
|
6031
|
+
*
|
|
6032
|
+
* This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up
|
|
6033
|
+
* with sites and its urls, you need to listen to another topic/event. Read about it:
|
|
6034
|
+
*
|
|
6035
|
+
* https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service
|
|
6036
|
+
*/
|
|
6037
|
+
interface SiteUrlChanged {
|
|
6038
|
+
}
|
|
6039
|
+
/**
|
|
6040
|
+
* Used at the end of the deletion flow for both draft sites and when a user deletes a site.
|
|
6041
|
+
* Consumed by other teams to remove relevant data.
|
|
6042
|
+
*/
|
|
6043
|
+
interface SitePurgedExternally {
|
|
6055
6044
|
/**
|
|
6056
|
-
*
|
|
6057
|
-
* @minSize 1
|
|
6045
|
+
* @maxLength 2048
|
|
6058
6046
|
* @maxSize 100
|
|
6047
|
+
* @deprecated
|
|
6048
|
+
* @targetRemovalDate 2025-04-15
|
|
6059
6049
|
*/
|
|
6060
|
-
|
|
6050
|
+
appDefId?: string[];
|
|
6061
6051
|
}
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
* Payment ID
|
|
6065
|
-
* @format GUID
|
|
6066
|
-
*/
|
|
6067
|
-
paymentId?: string | null;
|
|
6068
|
-
/**
|
|
6069
|
-
* Capture amount.
|
|
6070
|
-
* If not provided - full authorized amount will be captured.
|
|
6071
|
-
*/
|
|
6072
|
-
amount?: Price;
|
|
6052
|
+
/** Assigned Odeditor */
|
|
6053
|
+
interface OdeditorAssigned {
|
|
6073
6054
|
}
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
orderTransactions?: OrderTransactions;
|
|
6055
|
+
/** Unassigned Odeditor */
|
|
6056
|
+
interface OdeditorUnassigned {
|
|
6077
6057
|
}
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
* Ecom Order ID.
|
|
6081
|
-
* @minLength 1
|
|
6082
|
-
* @maxLength 100
|
|
6083
|
-
*/
|
|
6084
|
-
ecomOrderId?: string;
|
|
6085
|
-
/** Amount to be charged */
|
|
6086
|
-
amount?: Price;
|
|
6058
|
+
/** Assigned Picasso editor */
|
|
6059
|
+
interface PicassoAssigned {
|
|
6087
6060
|
}
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
paymentGatewayOrderId?: string;
|
|
6061
|
+
/** Unassigned Picasso */
|
|
6062
|
+
interface PicassoUnassigned {
|
|
6091
6063
|
}
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
metasiteId?: string;
|
|
6095
|
-
/**
|
|
6096
|
-
* @minLength 1
|
|
6097
|
-
* @maxLength 100
|
|
6098
|
-
* @maxSize 100
|
|
6099
|
-
*/
|
|
6100
|
-
orderIds?: string[];
|
|
6064
|
+
/** Assigned Wixel */
|
|
6065
|
+
interface WixelAssigned {
|
|
6101
6066
|
}
|
|
6102
|
-
|
|
6067
|
+
/** Unassigned Wixel */
|
|
6068
|
+
interface WixelUnassigned {
|
|
6103
6069
|
}
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6070
|
+
/** Assigned StudioTwo */
|
|
6071
|
+
interface StudioTwoAssigned {
|
|
6072
|
+
}
|
|
6073
|
+
/** Unassigned StudioTwo */
|
|
6074
|
+
interface StudioTwoUnassigned {
|
|
6075
|
+
}
|
|
6076
|
+
/** Media from user domain is enabled. */
|
|
6077
|
+
interface UserDomainMediaEnabled {
|
|
6078
|
+
}
|
|
6079
|
+
/** Media from user domain is disabled. */
|
|
6080
|
+
interface UserDomainMediaDisabled {
|
|
6081
|
+
}
|
|
6082
|
+
/** Assigned Editorless */
|
|
6083
|
+
interface EditorlessAssigned {
|
|
6084
|
+
}
|
|
6085
|
+
/** Unassigned Editorless */
|
|
6086
|
+
interface EditorlessUnassigned {
|
|
6087
|
+
}
|
|
6088
|
+
interface HasCustomEmailConfigurationsRequest {
|
|
6089
|
+
}
|
|
6090
|
+
interface HasCustomEmailConfigurationsResponse {
|
|
6091
|
+
hasCustomConfigurations?: boolean;
|
|
6092
|
+
}
|
|
6093
|
+
interface AddToAutomationMigrationPopulationRequest {
|
|
6094
|
+
/** When true, sends custom email configurations to automation system via email */
|
|
6095
|
+
sendCustomEmailConfigs?: boolean;
|
|
6096
|
+
/** Origin of the migration request. Defaults to OPT_IN when UNKNOWN_ORIGIN. */
|
|
6097
|
+
origin?: OriginWithLiterals;
|
|
6098
|
+
}
|
|
6099
|
+
declare enum Origin {
|
|
6100
|
+
OPT_IN = "OPT_IN",
|
|
6101
|
+
MIGRATION = "MIGRATION"
|
|
6102
|
+
}
|
|
6103
|
+
/** @enumType */
|
|
6104
|
+
type OriginWithLiterals = Origin | 'OPT_IN' | 'MIGRATION';
|
|
6105
|
+
interface AddToAutomationMigrationPopulationResponse {
|
|
6106
|
+
success?: boolean;
|
|
6107
|
+
}
|
|
6108
|
+
interface IsInAutomationMigrationPopulationRequest {
|
|
6109
|
+
}
|
|
6110
|
+
interface IsInAutomationMigrationPopulationResponse {
|
|
6111
|
+
inPopulation?: boolean;
|
|
6112
6112
|
}
|
|
6113
6113
|
interface DiffmatokyPayload {
|
|
6114
6114
|
left?: string;
|