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