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