@wix/auto_sdk_ecom_checkout-templates 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.context.d.ts +32 -0
  11. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.context.js +61 -0
  12. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.context.js.map +1 -0
  13. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.http.d.ts +67 -0
  14. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.http.js +377 -0
  15. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.http.js.map +1 -0
  16. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.d.ts +29 -0
  17. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.js +161 -0
  18. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.js.map +1 -0
  19. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.public.d.ts +111 -0
  20. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.public.js +268 -0
  21. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.public.js.map +1 -0
  22. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.types.d.ts +2224 -0
  23. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.types.js +259 -0
  24. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.types.js.map +1 -0
  25. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.universal.d.ts +2538 -0
  26. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.universal.js +710 -0
  27. package/build/cjs/src/ecom-v1-checkout-template-checkout-templates.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/ecom-v1-checkout-template-checkout-templates.context.d.ts +32 -0
  39. package/build/es/src/ecom-v1-checkout-template-checkout-templates.context.js +32 -0
  40. package/build/es/src/ecom-v1-checkout-template-checkout-templates.context.js.map +1 -0
  41. package/build/es/src/ecom-v1-checkout-template-checkout-templates.http.d.ts +67 -0
  42. package/build/es/src/ecom-v1-checkout-template-checkout-templates.http.js +367 -0
  43. package/build/es/src/ecom-v1-checkout-template-checkout-templates.http.js.map +1 -0
  44. package/build/es/src/ecom-v1-checkout-template-checkout-templates.meta.d.ts +29 -0
  45. package/build/es/src/ecom-v1-checkout-template-checkout-templates.meta.js +128 -0
  46. package/build/es/src/ecom-v1-checkout-template-checkout-templates.meta.js.map +1 -0
  47. package/build/es/src/ecom-v1-checkout-template-checkout-templates.public.d.ts +111 -0
  48. package/build/es/src/ecom-v1-checkout-template-checkout-templates.public.js +232 -0
  49. package/build/es/src/ecom-v1-checkout-template-checkout-templates.public.js.map +1 -0
  50. package/build/es/src/ecom-v1-checkout-template-checkout-templates.types.d.ts +2224 -0
  51. package/build/es/src/ecom-v1-checkout-template-checkout-templates.types.js +256 -0
  52. package/build/es/src/ecom-v1-checkout-template-checkout-templates.types.js.map +1 -0
  53. package/build/es/src/ecom-v1-checkout-template-checkout-templates.universal.d.ts +2538 -0
  54. package/build/es/src/ecom-v1-checkout-template-checkout-templates.universal.js +677 -0
  55. package/build/es/src/ecom-v1-checkout-template-checkout-templates.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.context.d.ts +32 -0
  66. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.context.js +61 -0
  67. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.context.js.map +1 -0
  68. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.http.d.ts +67 -0
  69. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.http.js +377 -0
  70. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.http.js.map +1 -0
  71. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.d.ts +29 -0
  72. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.js +161 -0
  73. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.meta.js.map +1 -0
  74. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.public.d.ts +111 -0
  75. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.public.js +268 -0
  76. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.public.js.map +1 -0
  77. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.types.d.ts +2243 -0
  78. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.types.js +259 -0
  79. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.types.js.map +1 -0
  80. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.universal.d.ts +2694 -0
  81. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.universal.js +710 -0
  82. package/build/internal/cjs/src/ecom-v1-checkout-template-checkout-templates.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.context.d.ts +32 -0
  93. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.context.js +32 -0
  94. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.context.js.map +1 -0
  95. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.http.d.ts +67 -0
  96. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.http.js +367 -0
  97. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.http.js.map +1 -0
  98. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.meta.d.ts +29 -0
  99. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.meta.js +128 -0
  100. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.meta.js.map +1 -0
  101. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.public.d.ts +111 -0
  102. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.public.js +232 -0
  103. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.public.js.map +1 -0
  104. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.types.d.ts +2243 -0
  105. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.types.js +256 -0
  106. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.types.js.map +1 -0
  107. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.universal.d.ts +2694 -0
  108. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.universal.js +677 -0
  109. package/build/internal/es/src/ecom-v1-checkout-template-checkout-templates.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,2224 @@
1
+ export interface CheckoutTemplate {
2
+ /**
3
+ * Checkout template ID.
4
+ * @readonly
5
+ */
6
+ id?: string | null;
7
+ /**
8
+ * Status of the checkout template.
9
+ *
10
+ * When `status` is `INACTIVE` checkouts will not be created with this template `id`. Instead, the endpoint will redirect to the domain site.
11
+ *
12
+ * Default: `ACTIVE`
13
+ */
14
+ status?: Status;
15
+ /** Custom settings to apply to the checkout page created from this template. */
16
+ customization?: CheckoutCustomization;
17
+ /**
18
+ * Catalog line items.
19
+ *
20
+ * Max: 300 items
21
+ */
22
+ lineItems?: V1LineItem[];
23
+ /**
24
+ * Custom line items. Custom line items don't trigger the Catalog service plugin.
25
+ *
26
+ * Max: 300 items
27
+ */
28
+ customLineItems?: CustomLineItem[];
29
+ /**
30
+ * Coupon code.
31
+ *
32
+ * Note that a checkout can only hold one `couponCode` at a time. If an additional `couponCode` is added, it will override the existing `couponCode`.
33
+ * For additional information, see the [Coupons API](https://dev.wix.com/docs/rest/api-reference/coupons/coupons/introduction).
34
+ */
35
+ couponCode?: string | null;
36
+ /**
37
+ * Reference IDs for the app and component providing custom checkout page content.
38
+ *
39
+ * To access and manage custom checkout page content, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
40
+ * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
41
+ */
42
+ customContentReference?: CustomContentReference;
43
+ }
44
+ export declare enum Status {
45
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
46
+ ACTIVE = "ACTIVE",
47
+ INACTIVE = "INACTIVE"
48
+ }
49
+ export interface CheckoutCustomization {
50
+ /** Web client customizations. These customizations only apply to the standard Wix checkout page. */
51
+ webClient?: WebClientCustomization;
52
+ /**
53
+ * Whether to lock the ability to add or remove a gift card.
54
+ *
55
+ * Default: `false`
56
+ */
57
+ lockedGiftCard?: boolean;
58
+ /**
59
+ * Whether to lock the ability to apply or remove a coupon code.
60
+ *
61
+ * Default: `false`
62
+ */
63
+ lockedCoupon?: boolean;
64
+ /**
65
+ * Whether to disable manual payment option for this checkout.
66
+ *
67
+ * Default: `false`
68
+ */
69
+ disabledManualPayment?: boolean;
70
+ }
71
+ export interface WebClientCustomization {
72
+ /**
73
+ * Whether to disable the "Continue shopping" button.
74
+ *
75
+ * Default: `false`
76
+ */
77
+ disabledContinueShoppingButton?: boolean;
78
+ /**
79
+ * Whether to disable policy agreement checkout in the checkout page
80
+ *
81
+ * Default: `false`
82
+ */
83
+ disabledPolicyAgreementCheckbox?: boolean;
84
+ }
85
+ export interface V1LineItem {
86
+ /**
87
+ * Item quantity.
88
+ *
89
+ * Min: `1` <br />
90
+ * Max: `100000`
91
+ */
92
+ quantity?: number;
93
+ /** Catalog and item reference. Holds IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin. */
94
+ catalogReference?: CatalogReference;
95
+ /** Overriding values for catalog item properties. */
96
+ catalogOverrideFields?: CatalogOverrideFields;
97
+ }
98
+ /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
99
+ export interface CatalogReference {
100
+ /** ID of the item within the catalog it belongs to. */
101
+ catalogItemId?: string;
102
+ /**
103
+ * ID of the app providing the catalog.
104
+ *
105
+ * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
106
+ *
107
+ * For items from Wix catalogs, the following values always apply:
108
+ * + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
109
+ * + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
110
+ * + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
111
+ */
112
+ appId?: string;
113
+ /**
114
+ * Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.
115
+ *
116
+ * For products and variants from a Wix Stores catalog, learn more about [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).
117
+ */
118
+ options?: Record<string, any> | null;
119
+ }
120
+ export interface CatalogOverrideFields {
121
+ /** Item name. */
122
+ productName?: ProductName;
123
+ /** Item price **after** discounts. */
124
+ price?: string | null;
125
+ /** Item price **before** discounts. */
126
+ fullPrice?: string | null;
127
+ /** Item description lines. Used when displaying the line item to customers. */
128
+ descriptionLines?: DescriptionLine[];
129
+ /** Physical properties of the item. */
130
+ physicalProperties?: PhysicalProperties;
131
+ /** Item image. */
132
+ image?: Image;
133
+ /** Payment method selected for the item. */
134
+ paymentOption?: PaymentOption;
135
+ /** Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`. */
136
+ depositAmount?: string | null;
137
+ /**
138
+ * Whether to save the payment method on the order.
139
+ *
140
+ * Default: `false`
141
+ */
142
+ savePaymentMethod?: boolean | null;
143
+ }
144
+ export interface ProductName {
145
+ /**
146
+ * __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
147
+ *
148
+ * Min: 1 character.
149
+ * Max: 200 characters.
150
+ */
151
+ original?: string;
152
+ /**
153
+ * Item name translated into the buyer's language.
154
+ *
155
+ * Min: 1 character.
156
+ * Max: 400 characters.
157
+ * Default: Same as `original`.
158
+ */
159
+ translated?: string | null;
160
+ }
161
+ export interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf {
162
+ /** Description line plain text value. */
163
+ plainText?: PlainTextValue;
164
+ /** Description line color value. */
165
+ colorInfo?: Color;
166
+ /** Description line name. */
167
+ name?: DescriptionLineName;
168
+ }
169
+ /** @oneof */
170
+ export interface DescriptionLineValueOneOf {
171
+ /** Description line plain text value. */
172
+ plainText?: PlainTextValue;
173
+ /** Description line color value. */
174
+ colorInfo?: Color;
175
+ }
176
+ /** @oneof */
177
+ export interface DescriptionLineDescriptionLineValueOneOf {
178
+ }
179
+ export interface DescriptionLineName {
180
+ /** Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). */
181
+ original?: string;
182
+ /**
183
+ * Description line name translated into the buyer's language.
184
+ *
185
+ * Default: Same as `original`.
186
+ */
187
+ translated?: string | null;
188
+ }
189
+ export interface PlainTextValue {
190
+ /** Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). */
191
+ original?: string;
192
+ /**
193
+ * Description line plain text value translated into the buyer's language.
194
+ *
195
+ * Default: Same as `original`.
196
+ */
197
+ translated?: string | null;
198
+ }
199
+ export interface Color {
200
+ /** Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). */
201
+ original?: string;
202
+ /**
203
+ * Description line color name translated into the buyer's language.
204
+ *
205
+ * Default: Same as `original`.
206
+ */
207
+ translated?: string | null;
208
+ /** HEX or RGB color code for display. */
209
+ code?: string | null;
210
+ }
211
+ export declare enum DescriptionLineType {
212
+ /** Unrecognized type. */
213
+ UNRECOGNISED = "UNRECOGNISED",
214
+ /** Plain text type. */
215
+ PLAIN_TEXT = "PLAIN_TEXT",
216
+ /** Color type. */
217
+ COLOR = "COLOR"
218
+ }
219
+ export interface PhysicalProperties {
220
+ /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
221
+ weight?: number | null;
222
+ /** Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku). */
223
+ sku?: string | null;
224
+ /** Whether this line item is shippable. */
225
+ shippable?: boolean;
226
+ }
227
+ export interface Image {
228
+ /** WixMedia image ID. */
229
+ id?: string;
230
+ /** Original image height. */
231
+ height?: number;
232
+ /** Original image width. */
233
+ width?: number;
234
+ /** Image alt text. Optional. */
235
+ altText?: string | null;
236
+ /** Image filename. Optional. */
237
+ filename?: string | null;
238
+ }
239
+ export interface PaymentOption {
240
+ /**
241
+ * + `FULL_PAYMENT_ONLINE`: The entire payment for this item happens as part of the checkout.
242
+ * + `FULL_PAYMENT_OFFLINE`: The entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
243
+ * + `MEMBERSHIP`: Payment for this item is done by charging a membership. When selected, `price` is `0`.
244
+ * + `DEPOSIT_ONLINE`: Partial payment to be paid upfront during the checkout. Initial amount to be paid for each line item is specified in `depositAmount`.
245
+ * + `MEMBERSHIP_OFFLINE`: Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`.
246
+ */
247
+ value?: PaymentOptionType;
248
+ }
249
+ /** Type of selected payment option for catalog item */
250
+ export declare enum PaymentOptionType {
251
+ /** The entire payment for this item happens as part of the checkout. */
252
+ FULL_PAYMENT_ONLINE = "FULL_PAYMENT_ONLINE",
253
+ /** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */
254
+ FULL_PAYMENT_OFFLINE = "FULL_PAYMENT_OFFLINE",
255
+ /** Payment for this item is done by charging a membership. When selected, `price` is `0`. */
256
+ MEMBERSHIP = "MEMBERSHIP",
257
+ /** Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`. */
258
+ DEPOSIT_ONLINE = "DEPOSIT_ONLINE",
259
+ /** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */
260
+ MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
261
+ }
262
+ export interface CustomLineItem {
263
+ /**
264
+ * Custom line item quantity.
265
+ *
266
+ * Min: `1`
267
+ * Max: `100000`
268
+ */
269
+ quantity?: number;
270
+ /**
271
+ * Custom line item price.
272
+ *
273
+ * Must be a number or a decimal without symbols.
274
+ */
275
+ price?: string;
276
+ /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
277
+ priceDescription?: PriceDescription;
278
+ /** Custom line item description lines. Used for display purposes for the cart, checkout and order. */
279
+ descriptionLines?: DescriptionLine[];
280
+ /** Custom line item's media. */
281
+ media?: Image;
282
+ /**
283
+ * Custom line item ID. If passed, `id` must be unique.
284
+ *
285
+ * Default: auto-generated ID
286
+ */
287
+ id?: string | null;
288
+ /** Tax group ID for this custom line item. */
289
+ taxGroupId?: string | null;
290
+ /** Name of the item or product. */
291
+ productName?: ProductName;
292
+ /** URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work. */
293
+ url?: PageUrlV2;
294
+ /** Item type. Either a preset type or custom. */
295
+ itemType?: ItemType;
296
+ /** Item price **before** catalog-defined discount. Defaults to `price` when not provided. */
297
+ fullPrice?: string | null;
298
+ /**
299
+ * Item quantity available for purchase. Only return this if inventory is managed.
300
+ * Not returning this field means that the buyer can "infinitely" tick up the number of items in the cart.
301
+ */
302
+ quantityAvailable?: number | null;
303
+ /** Physical properties of the item. */
304
+ physicalProperties?: PhysicalProperties;
305
+ /**
306
+ * Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.
307
+ *
308
+ * + `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout.
309
+ * + `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
310
+ * + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.
311
+ * + `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Amount to be paid is defined by deposit_amount field.
312
+ */
313
+ paymentOption?: PaymentOptionType;
314
+ /**
315
+ * Service properties. When relevant, this contains information such as date and number of participants.
316
+ * Used, among other things, when checking for valid memberships.
317
+ */
318
+ serviceProperties?: ServiceProperties;
319
+ /**
320
+ * In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.
321
+ *
322
+ * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.
323
+ * + In most cases, this field is the same as `catalogReference.catalogItemId`.
324
+ * + Used in membership validation.
325
+ */
326
+ rootCatalogItemId?: string | null;
327
+ /**
328
+ * Partial payment for the given item to be paid upfront during the checkout.
329
+ *
330
+ * Eligible for catalog items with type `DEPOSIT_ONLINE`.
331
+ * When omitted, the item's price will not be split and is expected to be paid in a single installment.
332
+ */
333
+ depositAmount?: string | null;
334
+ /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin. */
335
+ catalogReference?: CatalogReference;
336
+ /**
337
+ * Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.
338
+ * @readonly
339
+ */
340
+ consentRequiredPaymentPolicy?: string | null;
341
+ /**
342
+ * Whether to save the payment method on the order.
343
+ *
344
+ * Default: `false`
345
+ * @readonly
346
+ */
347
+ savePaymentMethod?: boolean;
348
+ }
349
+ export interface PriceDescription {
350
+ /** __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). */
351
+ original?: string;
352
+ /**
353
+ * Price description translated into the buyer's language.
354
+ *
355
+ * Default: Same as `original`.
356
+ */
357
+ translated?: string | null;
358
+ }
359
+ export interface PageUrlV2 {
360
+ /** The relative path for the page within the site. For example, `/product-page/a-product`. */
361
+ relativePath?: string;
362
+ /** The page's full URL. For example, `https://mysite.com/product-page/a-product`. */
363
+ url?: string | null;
364
+ }
365
+ export interface ItemType extends ItemTypeItemTypeDataOneOf {
366
+ /** Preset item type. */
367
+ preset?: ItemTypeItemType;
368
+ /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
369
+ custom?: string;
370
+ }
371
+ /** @oneof */
372
+ export interface ItemTypeItemTypeDataOneOf {
373
+ /** Preset item type. */
374
+ preset?: ItemTypeItemType;
375
+ /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
376
+ custom?: string;
377
+ }
378
+ export declare enum ItemTypeItemType {
379
+ UNRECOGNISED = "UNRECOGNISED",
380
+ PHYSICAL = "PHYSICAL",
381
+ DIGITAL = "DIGITAL",
382
+ GIFT_CARD = "GIFT_CARD",
383
+ SERVICE = "SERVICE"
384
+ }
385
+ export interface SubscriptionOptionInfo {
386
+ /** Subscription option settings. */
387
+ subscriptionSettings?: SubscriptionSettings;
388
+ /** Subscription option title. */
389
+ title?: Title;
390
+ /** Subscription option description. */
391
+ description?: Description;
392
+ }
393
+ export interface SubscriptionSettings {
394
+ /** Frequency of recurring payment. */
395
+ frequency?: SubscriptionFrequency;
396
+ /**
397
+ * Interval of recurring payment.
398
+ *
399
+ * Default: `1`.
400
+ * If SubscriptionFrequency is Day the minimum interval is 7
401
+ */
402
+ interval?: number | null;
403
+ /** Whether subscription is renewed automatically at the end of each period. */
404
+ autoRenewal?: boolean;
405
+ /** Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`. */
406
+ billingCycles?: number | null;
407
+ }
408
+ /** Frequency unit of recurring payment */
409
+ export declare enum SubscriptionFrequency {
410
+ UNDEFINED = "UNDEFINED",
411
+ DAY = "DAY",
412
+ WEEK = "WEEK",
413
+ MONTH = "MONTH",
414
+ YEAR = "YEAR"
415
+ }
416
+ export interface FreeTrialPeriod {
417
+ /** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */
418
+ frequency?: SubscriptionFrequency;
419
+ /** interval of period */
420
+ interval?: number;
421
+ }
422
+ export interface Title {
423
+ /** Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). */
424
+ original?: string;
425
+ /**
426
+ * Subscription option name translated into the buyer's language.
427
+ *
428
+ * Default: Same as `original`.
429
+ */
430
+ translated?: string | null;
431
+ }
432
+ export interface Description {
433
+ /** Subscription option description. */
434
+ original?: string;
435
+ /** Translated subscription option description. */
436
+ translated?: string | null;
437
+ }
438
+ export interface SecuredMedia {
439
+ /** Media ID in Wix Media Manager. */
440
+ id?: string;
441
+ /** Original filename. */
442
+ fileName?: string;
443
+ /** File type. */
444
+ fileType?: FileType;
445
+ }
446
+ export declare enum FileType {
447
+ UNSPECIFIED = "UNSPECIFIED",
448
+ SECURE_PICTURE = "SECURE_PICTURE",
449
+ SECURE_VIDEO = "SECURE_VIDEO",
450
+ SECURE_DOCUMENT = "SECURE_DOCUMENT",
451
+ SECURE_MUSIC = "SECURE_MUSIC",
452
+ SECURE_ARCHIVE = "SECURE_ARCHIVE"
453
+ }
454
+ export interface ServiceProperties {
455
+ /**
456
+ * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
457
+ * For example, the start time of a class.
458
+ */
459
+ scheduledDate?: Date | null;
460
+ /** The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room. */
461
+ numberOfParticipants?: number | null;
462
+ }
463
+ export interface Policy {
464
+ /** Policy title - should be translated */
465
+ title?: string | null;
466
+ /** Policy content - should be translated */
467
+ content?: string;
468
+ }
469
+ export interface ExtendedFields {
470
+ /**
471
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
472
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
473
+ *
474
+ * You can only access fields for which you have the appropriate permissions.
475
+ *
476
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
477
+ */
478
+ namespaces?: Record<string, Record<string, any>>;
479
+ }
480
+ export interface CustomContentReference {
481
+ /**
482
+ * ID of the app providing the content.
483
+ *
484
+ * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
485
+ */
486
+ appId?: string;
487
+ /**
488
+ * ID of the component within the app it belongs to.
489
+ *
490
+ * You can get your component's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
491
+ */
492
+ componentId?: string;
493
+ }
494
+ export interface ExternalReference {
495
+ /**
496
+ * ID of the app associated with the purchase flow.
497
+ * For example, the Wix Pay Links app ID.
498
+ */
499
+ appId?: string;
500
+ /**
501
+ * Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.
502
+ * For example, a Wix Pay Link ID.
503
+ */
504
+ resourceId?: string | null;
505
+ }
506
+ export interface CreateCheckoutTemplateRequest {
507
+ /** Checkout template to create. */
508
+ checkoutTemplate: CheckoutTemplate;
509
+ }
510
+ export interface CreateCheckoutTemplateResponse {
511
+ /** Created checkout template. */
512
+ checkoutTemplate?: CheckoutTemplate;
513
+ }
514
+ export interface GetCheckoutTemplateRequest {
515
+ /** ID of the checkout template to retrieve. */
516
+ checkoutTemplateId: string;
517
+ }
518
+ export interface GetCheckoutTemplateResponse {
519
+ /** Retrieved checkout template. */
520
+ checkoutTemplate?: CheckoutTemplate;
521
+ }
522
+ export interface UpdateCheckoutTemplateRequest {
523
+ /** Checkout template info to update. */
524
+ checkoutTemplate: CheckoutTemplate;
525
+ }
526
+ export interface UpdateCheckoutTemplateResponse {
527
+ /** Updated checkout template. */
528
+ checkoutTemplate?: CheckoutTemplate;
529
+ }
530
+ export interface DeleteCheckoutTemplateRequest {
531
+ /** ID of the checkout template to delete. */
532
+ checkoutTemplateId: string;
533
+ }
534
+ export interface DeleteCheckoutTemplateResponse {
535
+ }
536
+ export interface QueryCheckoutTemplatesRequest {
537
+ /** Query options. */
538
+ query?: CursorQuery;
539
+ }
540
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
541
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
542
+ cursorPaging?: CursorPaging;
543
+ /**
544
+ * Filter object in the following format:
545
+ * `"filter" : {
546
+ * "fieldName1": "value1",
547
+ * "fieldName2":{"$operator":"value2"}
548
+ * }`
549
+ *
550
+ * Example of operators: `$eq`, `$ne`, `$in`, `$startsWith`, `$exists`, `$hasSome`
551
+ */
552
+ filter?: Record<string, any> | null;
553
+ /**
554
+ * Sort object in the following format:
555
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
556
+ */
557
+ sort?: Sorting[];
558
+ }
559
+ /** @oneof */
560
+ export interface CursorQueryPagingMethodOneOf {
561
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
562
+ cursorPaging?: CursorPaging;
563
+ }
564
+ export interface Sorting {
565
+ /** Name of the field to sort by. */
566
+ fieldName?: string;
567
+ /** Sort order. */
568
+ order?: SortOrder;
569
+ }
570
+ export declare enum SortOrder {
571
+ /** Ascending order. */
572
+ ASC = "ASC",
573
+ /** Descending order. */
574
+ DESC = "DESC"
575
+ }
576
+ export interface CursorPaging {
577
+ /** Number of items to load. */
578
+ limit?: number | null;
579
+ /**
580
+ * Pointer to the next or previous page in the list of results. </ br>
581
+ *
582
+ * You can get the relevant cursor token
583
+ * from the `pagingMetadata` object in the previous call's response.
584
+ * Not relevant for the first request.
585
+ */
586
+ cursor?: string | null;
587
+ }
588
+ export interface QueryCheckoutTemplatesResponse {
589
+ /** Retrieved checkout templates. */
590
+ checkoutTemplates?: CheckoutTemplate[];
591
+ /** Paging metadata. */
592
+ pagingMetadata?: CursorPagingMetadata;
593
+ }
594
+ export interface CursorPagingMetadata {
595
+ /** Number of items returned in the response. */
596
+ count?: number | null;
597
+ /** Offset that was requested. */
598
+ cursors?: Cursors;
599
+ /**
600
+ * Indicates if there are more results after the current page.
601
+ * If `true`, another page of results can be retrieved.
602
+ * If `false`, this is the last page.
603
+ */
604
+ hasNext?: boolean | null;
605
+ }
606
+ export interface Cursors {
607
+ /** Cursor pointing to next page in the list of results. */
608
+ next?: string | null;
609
+ /** Cursor pointing to previous page in the list of results. */
610
+ prev?: string | null;
611
+ }
612
+ export interface CreateCheckoutFromTemplateRequest {
613
+ /** ID of the checkout template to use to create a checkout from. */
614
+ checkoutTemplateId: string;
615
+ /** ID of the site associated with the checkout template. */
616
+ siteId: string;
617
+ }
618
+ export interface CreateCheckoutFromTemplateResponse {
619
+ /** ID of the created checkout. */
620
+ checkoutId?: string;
621
+ /** URL of the created checkout page. */
622
+ checkoutUrl?: string;
623
+ /** Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order. */
624
+ purchaseFlowId?: string | null;
625
+ }
626
+ /** Triggered when newly checkout created successfully from checkout template */
627
+ export interface CheckoutTemplateUsed {
628
+ /** checkout template */
629
+ checkoutTemplate?: CheckoutTemplate;
630
+ /** newly created checkout */
631
+ checkout?: Checkout;
632
+ }
633
+ export interface Checkout {
634
+ /**
635
+ * Checkout ID.
636
+ * @readonly
637
+ */
638
+ id?: string | null;
639
+ /**
640
+ * Line items.
641
+ *
642
+ * Max: 300 items
643
+ * @readonly
644
+ */
645
+ lineItems?: LineItem[];
646
+ /** Billing information. */
647
+ billingInfo?: AddressWithContact;
648
+ /** Shipping information. */
649
+ shippingInfo?: ShippingInfo;
650
+ /** [Buyer note](https://support.wix.com/en/article/wix-stores-viewing-buyer-notes) left by the customer. */
651
+ buyerNote?: string | null;
652
+ /** Buyer information. */
653
+ buyerInfo?: BuyerInfo;
654
+ /**
655
+ * All converted prices are displayed in this currency in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
656
+ * @readonly
657
+ */
658
+ conversionCurrency?: string;
659
+ /**
660
+ * Calculated price summary for the checkout.
661
+ * @readonly
662
+ */
663
+ priceSummary?: PriceSummary;
664
+ /**
665
+ * Errors when calculating totals.
666
+ * @readonly
667
+ */
668
+ calculationErrors?: CalculationErrors;
669
+ /**
670
+ * Applied gift card details.
671
+ *
672
+ * >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/wix-stores-setting-up-wix-gift-cards).
673
+ * @readonly
674
+ */
675
+ giftCard?: GiftCard;
676
+ /**
677
+ * Applied discounts.
678
+ * @readonly
679
+ */
680
+ appliedDiscounts?: AppliedDiscount[];
681
+ /** Custom fields. */
682
+ customFields?: CustomField[];
683
+ /**
684
+ * Weight measurement unit - defaults to site's weight unit.
685
+ * @readonly
686
+ */
687
+ weightUnit?: WeightUnit;
688
+ /**
689
+ * Tax summary.
690
+ * @readonly
691
+ */
692
+ taxSummary?: TaxSummary;
693
+ /**
694
+ * The currency used when submitting the order.
695
+ * @readonly
696
+ */
697
+ currency?: string;
698
+ /**
699
+ * Sales channel that submitted the order.
700
+ * @readonly
701
+ */
702
+ channelType?: ChannelType;
703
+ /**
704
+ * Site language in which original values are shown.
705
+ * @readonly
706
+ */
707
+ siteLanguage?: string;
708
+ /**
709
+ * Language for communication with the buyer. Defaults to the site language.
710
+ * For a site that supports multiple languages, this is the language the buyer selected.
711
+ * @readonly
712
+ */
713
+ buyerLanguage?: string;
714
+ /**
715
+ * Whether an order was successfully created from this checkout.
716
+ * For an order to be successful, it must be successfully paid for (unless the total is 0).
717
+ * @readonly
718
+ */
719
+ completed?: boolean;
720
+ /**
721
+ * Whether tax is included in line item prices.
722
+ * @readonly
723
+ */
724
+ taxIncludedInPrice?: boolean;
725
+ /**
726
+ * ID of the checkout's initiator.
727
+ * @readonly
728
+ */
729
+ createdBy?: CreatedBy;
730
+ /**
731
+ * Date and time the checkout was created.
732
+ * @readonly
733
+ */
734
+ createdDate?: Date | null;
735
+ /**
736
+ * Date and time the checkout was updated.
737
+ * @readonly
738
+ */
739
+ updatedDate?: Date | null;
740
+ /**
741
+ * Minimal amount to pay in order to place the order.
742
+ * @readonly
743
+ */
744
+ payNow?: PriceSummary;
745
+ /**
746
+ * Remaining amount for the order to be fully paid.
747
+ * @readonly
748
+ */
749
+ payLater?: PriceSummary;
750
+ /** Memberships to apply when creating the order. */
751
+ membershipOptions?: MembershipOptions;
752
+ /** Additional Fees. */
753
+ additionalFees?: AdditionalFee[];
754
+ /** Cart ID that this checkout was created from. Empty if this checkout wasn't created from a cart. */
755
+ cartId?: string | null;
756
+ /**
757
+ * List of validation violations raised by the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
758
+ * @readonly
759
+ */
760
+ violations?: Violation[];
761
+ /**
762
+ * Custom field data for the checkout object.
763
+ *
764
+ * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
765
+ */
766
+ extendedFields?: ExtendedFields;
767
+ /**
768
+ * Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.
769
+ * @readonly
770
+ */
771
+ purchaseFlowId?: string | null;
772
+ /**
773
+ * Additional settings for customization of the checkout process.
774
+ *
775
+ * > **Notes:**
776
+ * > * Custom settings can only be set when [creating a checkout](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/checkout/create-checkout).
777
+ * > * To access and manage custom checkout page content, your app must have the permission scope named "Manage eCommerce - Admin Permissions". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
778
+ */
779
+ customSettings?: CustomSettings;
780
+ /**
781
+ * Reference IDs for the app and component providing custom checkout page content.
782
+ *
783
+ * To access and manage custom checkout page content, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
784
+ * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
785
+ */
786
+ customContentReference?: CustomContentReference;
787
+ }
788
+ export interface LineItem {
789
+ /**
790
+ * Line item ID.
791
+ * @readonly
792
+ */
793
+ id?: string | null;
794
+ /**
795
+ * Item quantity.
796
+ *
797
+ * Min: `"1"`
798
+ * Max: `"100000"`
799
+ */
800
+ quantity?: number;
801
+ /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin. */
802
+ catalogReference?: CatalogReference;
803
+ /**
804
+ * Item name.
805
+ * + Stores - `product.name`
806
+ * + Bookings - `service.info.name`
807
+ * + Events - `ticket.name`
808
+ * @readonly
809
+ */
810
+ productName?: ProductName;
811
+ /**
812
+ * URL to the item's page on the site.
813
+ * @readonly
814
+ */
815
+ url?: PageUrlV2;
816
+ /**
817
+ * Item price **after** catalog-defined discount and line item discounts.
818
+ * @readonly
819
+ */
820
+ price?: MultiCurrencyPrice;
821
+ /**
822
+ * Total line item price **after** catalog-defined discount and line item discounts.
823
+ * @readonly
824
+ */
825
+ lineItemPrice?: MultiCurrencyPrice;
826
+ /**
827
+ * Item price **before** catalog-defined discount. Defaults to `price` when not provided.
828
+ * @readonly
829
+ */
830
+ fullPrice?: MultiCurrencyPrice;
831
+ /**
832
+ * Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided.
833
+ * @readonly
834
+ */
835
+ priceBeforeDiscounts?: MultiCurrencyPrice;
836
+ /**
837
+ * Total price after all discounts and tax.
838
+ * @readonly
839
+ */
840
+ totalPriceAfterTax?: MultiCurrencyPrice;
841
+ /**
842
+ * Total price after discounts, and before tax.
843
+ * @readonly
844
+ */
845
+ totalPriceBeforeTax?: MultiCurrencyPrice;
846
+ /**
847
+ * Tax details for this line item.
848
+ * @readonly
849
+ */
850
+ taxDetails?: ItemTaxFullDetails;
851
+ /**
852
+ * Discount for this line item's entire quantity.
853
+ * @readonly
854
+ */
855
+ discount?: MultiCurrencyPrice;
856
+ /**
857
+ * Line item description lines. Used for display purposes for the cart, checkout and order.
858
+ * @readonly
859
+ */
860
+ descriptionLines?: DescriptionLine[];
861
+ /**
862
+ * Line item image details.
863
+ * @readonly
864
+ */
865
+ media?: CommonImage;
866
+ /**
867
+ * Item availability details.
868
+ * @readonly
869
+ */
870
+ availability?: ItemAvailabilityInfo;
871
+ /**
872
+ * Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability.
873
+ * @readonly
874
+ */
875
+ physicalProperties?: PhysicalProperties;
876
+ /**
877
+ * Item type. Either a preset type or custom.
878
+ * @readonly
879
+ */
880
+ itemType?: ItemType;
881
+ /**
882
+ * Subscription option information.
883
+ * @readonly
884
+ */
885
+ subscriptionOptionInfo?: SubscriptionOptionInfo;
886
+ /**
887
+ * Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.
888
+ * + `FULL_PAYMENT_ONLINE`: The entire payment for this item happens as part of the checkout.
889
+ * + `FULL_PAYMENT_OFFLINE`: The entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
890
+ * + `MEMBERSHIP`: Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is `0`.
891
+ * + `DEPOSIT_ONLINE`: Partial payment to be paid upfront during the checkout. Initial amount to be paid for each line item is defined by `lineItem.deposit`.
892
+ * + `MEMBERSHIP_OFFLINE`: Payment for this item can only be performed by using a membership and must be manually redeemed in the dashboard by the site owner. When this option is used, `lineItem.price.amount` is `0`.
893
+ * @readonly
894
+ */
895
+ paymentOption?: PaymentOptionType;
896
+ /**
897
+ * Service properties. When relevant, this contains information such as date and number of participants.
898
+ * @readonly
899
+ */
900
+ serviceProperties?: ServiceProperties;
901
+ /**
902
+ * In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.
903
+ * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.
904
+ * + In most cases, this field has the same value as `catalogReference.catalogItemId`.
905
+ * + Used in membership validation.
906
+ * @readonly
907
+ */
908
+ rootCatalogItemId?: string | null;
909
+ /**
910
+ * Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".
911
+ * @readonly
912
+ */
913
+ priceDescription?: PriceDescription;
914
+ /**
915
+ * Partial payment to be paid upfront during the checkout. Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.
916
+ * @readonly
917
+ */
918
+ depositAmount?: MultiCurrencyPrice;
919
+ /**
920
+ * Whether the line item is a custom line item. Custom line items don't trigger the Catalog service plugin.
921
+ * @readonly
922
+ */
923
+ customLineItem?: boolean;
924
+ /**
925
+ * Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.
926
+ * @readonly
927
+ */
928
+ consentRequiredPaymentPolicy?: string | null;
929
+ /**
930
+ * Overriding values for catalog item properties.
931
+ *
932
+ * To override catalog fields, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
933
+ * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
934
+ */
935
+ catalogOverrideFields?: CatalogOverrideFields;
936
+ /**
937
+ * Whether to save the payment method on the order.
938
+ *
939
+ * Default: `false`
940
+ * @readonly
941
+ */
942
+ savePaymentMethod?: boolean;
943
+ }
944
+ export interface MultiCurrencyPrice {
945
+ /** Amount. */
946
+ amount?: string;
947
+ /**
948
+ * Converted amount.
949
+ * @readonly
950
+ */
951
+ convertedAmount?: string;
952
+ /**
953
+ * Amount formatted with currency symbol.
954
+ * @readonly
955
+ */
956
+ formattedAmount?: string;
957
+ /**
958
+ * Converted amount formatted with currency symbol.
959
+ * @readonly
960
+ */
961
+ formattedConvertedAmount?: string;
962
+ }
963
+ export interface ItemTaxFullDetails {
964
+ /** Amount for which tax is calculated. */
965
+ taxableAmount?: MultiCurrencyPrice;
966
+ /** Tax rate %, as a decimal point between 0 and 1. */
967
+ taxRate?: string;
968
+ /** Calculated tax, based on `taxable_amount` and `tax_rate`. */
969
+ totalTax?: MultiCurrencyPrice;
970
+ /**
971
+ * If breakdown exists, the sum of rates in the breakdown must equal `tax_rate`. Deprecated - use 'tax_breakdown' instead.
972
+ * @readonly
973
+ * @deprecated
974
+ */
975
+ rateBreakdown?: TaxRateBreakdown[];
976
+ }
977
+ export interface TaxRateBreakdown {
978
+ /** Name of tax against which the calculation was performed. */
979
+ name?: string;
980
+ /** Rate at which this tax detail was calculated. */
981
+ rate?: string;
982
+ /** Amount of tax for this tax detail. */
983
+ tax?: MultiCurrencyPrice;
984
+ }
985
+ /**
986
+ * TaxBreakdown represents tax information for a line item.
987
+ * It holds the tax amount and the tax rate for each tax authority that apply on the line item.
988
+ */
989
+ export interface TaxBreakdown {
990
+ /** The name of the jurisdiction to which this tax detail applies. For example, "New York" or "Quebec". */
991
+ jurisdiction?: string | null;
992
+ /** The amount of this line item price that was considered nontaxable. (Decimal value) */
993
+ nonTaxableAmount?: MultiCurrencyPrice;
994
+ /** The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.0000 signifies 200% tax. (Decimal value) */
995
+ rate?: string | null;
996
+ /** The amount of tax estimated for this line item. (Decimal value) */
997
+ taxAmount?: MultiCurrencyPrice;
998
+ /** The taxable amount of this line item. */
999
+ taxableAmount?: MultiCurrencyPrice;
1000
+ /** The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc. */
1001
+ taxType?: string | null;
1002
+ /**
1003
+ * The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.
1004
+ * This name should be explicit enough to allow the merchant to understand what tax was calculated.
1005
+ */
1006
+ taxName?: string | null;
1007
+ /** The type of the jurisdiction in which this tax detail applies. */
1008
+ jurisdictionType?: JurisdictionType;
1009
+ }
1010
+ /** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
1011
+ export declare enum JurisdictionType {
1012
+ UNDEFINED = "UNDEFINED",
1013
+ COUNTRY = "COUNTRY",
1014
+ STATE = "STATE",
1015
+ COUNTY = "COUNTY",
1016
+ CITY = "CITY",
1017
+ SPECIAL = "SPECIAL"
1018
+ }
1019
+ export interface CommonImage {
1020
+ /** WixMedia image ID. */
1021
+ id?: string;
1022
+ /** Image URL. */
1023
+ url?: string;
1024
+ /**
1025
+ * Original image height.
1026
+ * @readonly
1027
+ */
1028
+ height?: number;
1029
+ /**
1030
+ * Original image width.
1031
+ * @readonly
1032
+ */
1033
+ width?: number;
1034
+ /** Image alt text. */
1035
+ altText?: string | null;
1036
+ /**
1037
+ * Image filename.
1038
+ * @readonly
1039
+ */
1040
+ filename?: string | null;
1041
+ }
1042
+ export interface FocalPoint {
1043
+ /** X-coordinate of the focal point. */
1044
+ x?: number;
1045
+ /** Y-coordinate of the focal point. */
1046
+ y?: number;
1047
+ /** crop by height */
1048
+ height?: number | null;
1049
+ /** crop by width */
1050
+ width?: number | null;
1051
+ }
1052
+ export interface ItemAvailabilityInfo {
1053
+ /** Item availability status. */
1054
+ status?: ItemAvailabilityStatus;
1055
+ /** Quantity available. */
1056
+ quantityAvailable?: number | null;
1057
+ }
1058
+ export declare enum ItemAvailabilityStatus {
1059
+ AVAILABLE = "AVAILABLE",
1060
+ /** Item does not exist */
1061
+ NOT_FOUND = "NOT_FOUND",
1062
+ /** Item not in stock */
1063
+ NOT_AVAILABLE = "NOT_AVAILABLE",
1064
+ /** Available quantity is less than requested */
1065
+ PARTIALLY_AVAILABLE = "PARTIALLY_AVAILABLE"
1066
+ }
1067
+ export interface Scope {
1068
+ /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
1069
+ namespace?: string;
1070
+ /** Coupon scope's applied group (e.g., event or ticket in Wix Events) */
1071
+ group?: Group;
1072
+ }
1073
+ export interface Group {
1074
+ /** Coupon scope's group (e.g., product or collection in Wix Stores). See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
1075
+ name?: string;
1076
+ /** Item ID (when the coupon scope is limited to just one item). */
1077
+ entityId?: string | null;
1078
+ }
1079
+ export interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {
1080
+ /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */
1081
+ addressType?: TaxableAddressType;
1082
+ }
1083
+ /** @oneof */
1084
+ export interface TaxableAddressTaxableAddressDataOneOf {
1085
+ /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */
1086
+ addressType?: TaxableAddressType;
1087
+ }
1088
+ export declare enum TaxableAddressType {
1089
+ UNKNOWN_TAXABLE_ADDRESS = "UNKNOWN_TAXABLE_ADDRESS",
1090
+ BUSINESS = "BUSINESS",
1091
+ BILLING = "BILLING",
1092
+ SHIPPING = "SHIPPING"
1093
+ }
1094
+ /** Billing Info and shipping details */
1095
+ export interface AddressWithContact {
1096
+ /** Address. */
1097
+ address?: Address;
1098
+ /** Contact details. */
1099
+ contactDetails?: FullAddressContactDetails;
1100
+ }
1101
+ /** Physical address */
1102
+ export interface Address {
1103
+ /** Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format. */
1104
+ country?: string | null;
1105
+ /** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format. */
1106
+ subdivision?: string | null;
1107
+ /** City name. */
1108
+ city?: string | null;
1109
+ /** Postal or zip code. */
1110
+ postalCode?: string | null;
1111
+ /** Street address. */
1112
+ streetAddress?: StreetAddress;
1113
+ /** Main address line (usually street name and number). */
1114
+ addressLine?: string | null;
1115
+ /** Free text providing more detailed address info. Usually contains apt, suite, floor. */
1116
+ addressLine2?: string | null;
1117
+ /**
1118
+ * Country's full name.
1119
+ * @readonly
1120
+ */
1121
+ countryFullname?: string | null;
1122
+ /**
1123
+ * Subdivision full-name.
1124
+ * @readonly
1125
+ */
1126
+ subdivisionFullname?: string | null;
1127
+ }
1128
+ export interface StreetAddress {
1129
+ /** Street number. */
1130
+ number?: string;
1131
+ /** Street name. */
1132
+ name?: string;
1133
+ }
1134
+ export interface AddressLocation {
1135
+ /** Address latitude. */
1136
+ latitude?: number | null;
1137
+ /** Address longitude. */
1138
+ longitude?: number | null;
1139
+ }
1140
+ /** Full contact details for an address */
1141
+ export interface FullAddressContactDetails {
1142
+ /** First name. */
1143
+ firstName?: string | null;
1144
+ /** Last name. */
1145
+ lastName?: string | null;
1146
+ /** Phone number. */
1147
+ phone?: string | null;
1148
+ /** Company name. */
1149
+ company?: string | null;
1150
+ /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
1151
+ vatId?: VatId;
1152
+ }
1153
+ export interface VatId {
1154
+ /** Customer's tax ID. */
1155
+ id?: string;
1156
+ /**
1157
+ * Tax type.
1158
+ *
1159
+ * Supported values:
1160
+ * + `CPF`: for individual tax payers
1161
+ * + `CNPJ`: for corporations
1162
+ */
1163
+ type?: VatType;
1164
+ }
1165
+ /** tax info types */
1166
+ export declare enum VatType {
1167
+ UNSPECIFIED = "UNSPECIFIED",
1168
+ /** CPF - for individual tax payers. */
1169
+ CPF = "CPF",
1170
+ /** CNPJ - for corporations */
1171
+ CNPJ = "CNPJ"
1172
+ }
1173
+ export interface ShippingInfo {
1174
+ /** Shipping address and contact details. */
1175
+ shippingDestination?: AddressWithContact;
1176
+ /** Selected option out of the options allowed for the `region`. */
1177
+ selectedCarrierServiceOption?: SelectedCarrierServiceOption;
1178
+ /**
1179
+ * Shipping region. Based on the address provided.
1180
+ * @readonly
1181
+ */
1182
+ region?: ShippingRegion;
1183
+ /**
1184
+ * All carrier options for this shipping rule.
1185
+ * @readonly
1186
+ */
1187
+ carrierServiceOptions?: CarrierServiceOption[];
1188
+ }
1189
+ export interface SelectedCarrierServiceOption {
1190
+ /** Unique identifier of selected option. For example, "usps_std_overnight". */
1191
+ code?: string;
1192
+ /**
1193
+ * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).
1194
+ * For example, "Standard" or "First-Class Package International".
1195
+ * @readonly
1196
+ */
1197
+ title?: string;
1198
+ /**
1199
+ * Delivery logistics.
1200
+ * @readonly
1201
+ */
1202
+ logistics?: DeliveryLogistics;
1203
+ /**
1204
+ * Shipping costs.
1205
+ * @readonly
1206
+ */
1207
+ cost?: SelectedCarrierServiceOptionPrices;
1208
+ /**
1209
+ * Were we able to find the requested shipping option, or otherwise we fallback to the default one (the first)
1210
+ * @readonly
1211
+ */
1212
+ requestedShippingOption?: boolean;
1213
+ /** Other charges */
1214
+ otherCharges?: SelectedCarrierServiceOptionOtherCharge[];
1215
+ /** This carrier's unique ID */
1216
+ carrierId?: string | null;
1217
+ /** Delivery solution allocations to different delivery carriers and delivery regions */
1218
+ deliveryAllocations?: DeliveryAllocation[];
1219
+ /** If the delivery solution is a partial and doesn't apply to all items. */
1220
+ partial?: boolean | null;
1221
+ }
1222
+ export interface DeliveryLogistics {
1223
+ /** Expected delivery time, in free text. For example, "3-5 business days". */
1224
+ deliveryTime?: string | null;
1225
+ /** Instructions for caller, e.g for pickup: "Please deliver during opening hours, and please don't park in disabled parking spot". */
1226
+ instructions?: string | null;
1227
+ /** Pickup details. */
1228
+ pickupDetails?: PickupDetails;
1229
+ }
1230
+ export interface PickupDetails {
1231
+ /** Pickup address. */
1232
+ address?: Address;
1233
+ /**
1234
+ * Whether the pickup address is that of a business - this may effect tax calculation.
1235
+ * @deprecated
1236
+ */
1237
+ businessLocation?: boolean;
1238
+ /** Pickup method */
1239
+ pickupMethod?: PickupMethod;
1240
+ }
1241
+ export declare enum PickupMethod {
1242
+ UNKNOWN_METHOD = "UNKNOWN_METHOD",
1243
+ STORE_PICKUP = "STORE_PICKUP",
1244
+ PICKUP_POINT = "PICKUP_POINT"
1245
+ }
1246
+ export interface DeliveryTimeSlot {
1247
+ /** starting time of the delivery time slot */
1248
+ from?: Date | null;
1249
+ /** ending time of the delivery time slot */
1250
+ to?: Date | null;
1251
+ }
1252
+ export interface SelectedCarrierServiceOptionPrices {
1253
+ /** Total shipping price, after discount and after tax. */
1254
+ totalPriceAfterTax?: MultiCurrencyPrice;
1255
+ /** Total price of shipping after discounts (when relevant), and before tax. */
1256
+ totalPriceBeforeTax?: MultiCurrencyPrice;
1257
+ /** Tax details. */
1258
+ taxDetails?: ItemTaxFullDetails;
1259
+ /** Shipping discount before tax. */
1260
+ totalDiscount?: MultiCurrencyPrice;
1261
+ /** Shipping price before discount and before tax. */
1262
+ price?: MultiCurrencyPrice;
1263
+ }
1264
+ export interface SelectedCarrierServiceOptionOtherCharge {
1265
+ /** Type of additional cost. */
1266
+ type?: ChargeType;
1267
+ /** Details of the charge, such as 'Full Coverage Insurance of up to 80% of value of shipment'. */
1268
+ details?: string | null;
1269
+ /** Price of added charge. */
1270
+ cost?: SelectedCarrierServiceOptionPrices;
1271
+ }
1272
+ export declare enum ChargeType {
1273
+ HANDLING_FEE = "HANDLING_FEE",
1274
+ INSURANCE = "INSURANCE"
1275
+ }
1276
+ export interface DeliveryAllocation {
1277
+ /** The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers */
1278
+ deliveryCarrier?: Carrier;
1279
+ /** The delivery region that are relevant for this delivery solution. */
1280
+ deliveryRegion?: Region;
1281
+ /** Populated if the delivery solution is a partially supplied by this carrier. */
1282
+ applicableLineItems?: ApplicableLineItems;
1283
+ }
1284
+ export interface Carrier {
1285
+ /** The carrier app id */
1286
+ appId?: string | null;
1287
+ /** Unique code that acts as an ID for a shipping rate. For example, `"usps_std_overnight"`. */
1288
+ code?: string;
1289
+ }
1290
+ export interface Region {
1291
+ /** The delivery region id. */
1292
+ id?: string | null;
1293
+ /** The delivery region name. */
1294
+ name?: string | null;
1295
+ }
1296
+ export interface ApplicableLineItems {
1297
+ /** Line items that the delivery solution is for. */
1298
+ lineItemIds?: string[];
1299
+ }
1300
+ export interface ShippingRegion {
1301
+ /**
1302
+ * Shipping region ID.
1303
+ * @readonly
1304
+ */
1305
+ id?: string;
1306
+ /** Shipping region name. */
1307
+ name?: string;
1308
+ }
1309
+ export interface CarrierServiceOption {
1310
+ /** Carrier ID. */
1311
+ carrierId?: string;
1312
+ /** Shipping options offered by this carrier for this request. */
1313
+ shippingOptions?: ShippingOption[];
1314
+ }
1315
+ export interface ShippingOption {
1316
+ /**
1317
+ * Unique code of provided shipping option like "usps_std_overnight".
1318
+ * For legacy calculators this would be the UUID of the option.
1319
+ */
1320
+ code?: string;
1321
+ /**
1322
+ * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).
1323
+ * For example, "Standard" or "First-Class Package International".
1324
+ */
1325
+ title?: string;
1326
+ /** Delivery logistics. */
1327
+ logistics?: DeliveryLogistics;
1328
+ /** Sipping price information. */
1329
+ cost?: ShippingPrice;
1330
+ /** Delivery solution allocations to different delivery carriers and delivery regions */
1331
+ deliveryAllocations?: DeliveryAllocation[];
1332
+ /** If the delivery solution is a partial and doesn't apply to all items. */
1333
+ partial?: boolean | null;
1334
+ }
1335
+ export interface ShippingPrice {
1336
+ /** Shipping price. */
1337
+ price?: MultiCurrencyPrice;
1338
+ /** Other costs such as insurance, handling & packaging for fragile items, etc. */
1339
+ otherCharges?: OtherCharge[];
1340
+ }
1341
+ export interface OtherCharge {
1342
+ /** Type of additional cost. */
1343
+ type?: ChargeType;
1344
+ /** Price of added cost. */
1345
+ price?: MultiCurrencyPrice;
1346
+ }
1347
+ export interface BuyerInfo extends BuyerInfoIdOneOf {
1348
+ /**
1349
+ * Visitor ID (if site visitor is **not** a member).
1350
+ * @readonly
1351
+ */
1352
+ visitorId?: string;
1353
+ /**
1354
+ * Member ID (if site visitor is a site member).
1355
+ * @readonly
1356
+ */
1357
+ memberId?: string;
1358
+ /**
1359
+ * Contact ID. Auto-created if one does not yet exist. For more information, see [Contacts API](https://dev.wix.com/api/rest/contacts/contacts/introduction).
1360
+ * @readonly
1361
+ */
1362
+ contactId?: string | null;
1363
+ /** Buyer email address. */
1364
+ email?: string | null;
1365
+ }
1366
+ /** @oneof */
1367
+ export interface BuyerInfoIdOneOf {
1368
+ /**
1369
+ * Visitor ID (if site visitor is **not** a member).
1370
+ * @readonly
1371
+ */
1372
+ visitorId?: string;
1373
+ /**
1374
+ * Member ID (if site visitor is a site member).
1375
+ * @readonly
1376
+ */
1377
+ memberId?: string;
1378
+ }
1379
+ export interface PriceSummary {
1380
+ /** Subtotal of all line items, before discounts and before tax. */
1381
+ subtotal?: MultiCurrencyPrice;
1382
+ /** Total shipping price, before discounts and before tax. */
1383
+ shipping?: MultiCurrencyPrice;
1384
+ /** Total tax. */
1385
+ tax?: MultiCurrencyPrice;
1386
+ /** Total calculated discount value. */
1387
+ discount?: MultiCurrencyPrice;
1388
+ /** Total price after discounts, gift cards, and tax. */
1389
+ total?: MultiCurrencyPrice;
1390
+ /** Total additional fees price before tax. */
1391
+ additionalFees?: MultiCurrencyPrice;
1392
+ }
1393
+ export interface CalculationErrors extends CalculationErrorsShippingCalculationErrorOneOf {
1394
+ /** General shipping calculation error. */
1395
+ generalShippingCalculationError?: Details;
1396
+ /** Carrier errors. */
1397
+ carrierErrors?: CarrierErrors;
1398
+ /** Tax calculation error. */
1399
+ taxCalculationError?: Details;
1400
+ /** Coupon calculation error. */
1401
+ couponCalculationError?: Details;
1402
+ /** Gift card calculation error. */
1403
+ giftCardCalculationError?: Details;
1404
+ /** Order validation errors. */
1405
+ orderValidationErrors?: ApplicationError[];
1406
+ /**
1407
+ * Membership payment methods calculation errors
1408
+ * For example, will indicate that a line item that must be paid with membership payment doesn't have one or selected memberships are invalid
1409
+ */
1410
+ membershipError?: Details;
1411
+ /** Discount Rule calculation error. */
1412
+ discountsCalculationError?: Details;
1413
+ }
1414
+ /** @oneof */
1415
+ export interface CalculationErrorsShippingCalculationErrorOneOf {
1416
+ /** General shipping calculation error. */
1417
+ generalShippingCalculationError?: Details;
1418
+ /** Carrier errors. */
1419
+ carrierErrors?: CarrierErrors;
1420
+ }
1421
+ export interface Details extends DetailsKindOneOf {
1422
+ applicationError?: ApplicationError;
1423
+ validationError?: ValidationError;
1424
+ systemError?: SystemError;
1425
+ /**
1426
+ * deprecated in API's - to enable migration from rendering arbitrary tracing to rest response
1427
+ * @deprecated
1428
+ */
1429
+ tracing?: Record<string, string>;
1430
+ }
1431
+ /** @oneof */
1432
+ export interface DetailsKindOneOf {
1433
+ applicationError?: ApplicationError;
1434
+ validationError?: ValidationError;
1435
+ systemError?: SystemError;
1436
+ }
1437
+ export interface ApplicationError {
1438
+ /** Error code. */
1439
+ code?: string;
1440
+ /** Description of the error. */
1441
+ description?: string;
1442
+ /** Data related to the error. */
1443
+ data?: Record<string, any> | null;
1444
+ }
1445
+ /**
1446
+ * example result:
1447
+ * {
1448
+ * "fieldViolations": [
1449
+ * {
1450
+ * "field": "fieldA",
1451
+ * "description": "invalid music note. supported notes: [do,re,mi,fa,sol,la,ti]",
1452
+ * "violatedRule": "OTHER",
1453
+ * "ruleName": "INVALID_NOTE",
1454
+ * "data": {
1455
+ * "value": "FI"
1456
+ * }
1457
+ * },
1458
+ * {
1459
+ * "field": "fieldB",
1460
+ * "description": "field value out of range. supported range: [0-20]",
1461
+ * "violatedRule": "MAX",
1462
+ * "data": {
1463
+ * "threshold": 20
1464
+ * }
1465
+ * },
1466
+ * {
1467
+ * "field": "fieldC",
1468
+ * "description": "invalid phone number. provide a valid phone number of size: [7-12], supported characters: [0-9, +, -, (, )]",
1469
+ * "violatedRule": "FORMAT",
1470
+ * "data": {
1471
+ * "type": "PHONE"
1472
+ * }
1473
+ * }
1474
+ * ]
1475
+ * }
1476
+ */
1477
+ export interface ValidationError {
1478
+ fieldViolations?: FieldViolation[];
1479
+ }
1480
+ export declare enum RuleType {
1481
+ VALIDATION = "VALIDATION",
1482
+ OTHER = "OTHER",
1483
+ MAX = "MAX",
1484
+ MIN = "MIN",
1485
+ MAX_LENGTH = "MAX_LENGTH",
1486
+ MIN_LENGTH = "MIN_LENGTH",
1487
+ MAX_SIZE = "MAX_SIZE",
1488
+ MIN_SIZE = "MIN_SIZE",
1489
+ FORMAT = "FORMAT",
1490
+ DECIMAL_LTE = "DECIMAL_LTE",
1491
+ DECIMAL_GTE = "DECIMAL_GTE",
1492
+ DECIMAL_LT = "DECIMAL_LT",
1493
+ DECIMAL_GT = "DECIMAL_GT",
1494
+ DECIMAL_MAX_SCALE = "DECIMAL_MAX_SCALE",
1495
+ INVALID_ENUM_VALUE = "INVALID_ENUM_VALUE",
1496
+ REQUIRED_FIELD = "REQUIRED_FIELD",
1497
+ FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
1498
+ ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT",
1499
+ EXACT_LENGTH = "EXACT_LENGTH",
1500
+ EXACT_SIZE = "EXACT_SIZE",
1501
+ REQUIRED_ONE_OF_FIELD = "REQUIRED_ONE_OF_FIELD"
1502
+ }
1503
+ export interface FieldViolation {
1504
+ field?: string;
1505
+ description?: string;
1506
+ violatedRule?: RuleType;
1507
+ /** applicable when violated_rule=OTHER */
1508
+ ruleName?: string | null;
1509
+ data?: Record<string, any> | null;
1510
+ }
1511
+ export interface SystemError {
1512
+ /** Error code. */
1513
+ errorCode?: string | null;
1514
+ }
1515
+ export interface CarrierErrors {
1516
+ /** Carrier errors. */
1517
+ errors?: CarrierError[];
1518
+ }
1519
+ export interface CarrierError {
1520
+ /** Carrier ID. */
1521
+ carrierId?: string;
1522
+ /** Error details. */
1523
+ error?: Details;
1524
+ }
1525
+ export interface GiftCard {
1526
+ /**
1527
+ * Gift Card ID.
1528
+ * @deprecated
1529
+ */
1530
+ id?: string;
1531
+ /** Gift card obfuscated code. */
1532
+ obfuscatedCode?: string;
1533
+ /** Gift card value. */
1534
+ amount?: MultiCurrencyPrice;
1535
+ /** App ID of the gift card provider. */
1536
+ appId?: string;
1537
+ /**
1538
+ * External ID in the gift card provider's system.
1539
+ * Used for integration and tracking across different platforms.
1540
+ */
1541
+ externalId?: string | null;
1542
+ }
1543
+ export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
1544
+ /** Coupon details. */
1545
+ coupon?: Coupon;
1546
+ /** Merchant discount. */
1547
+ merchantDiscount?: MerchantDiscount;
1548
+ /** Discount rule */
1549
+ discountRule?: DiscountRule;
1550
+ /** Discount type. */
1551
+ discountType?: DiscountType;
1552
+ /**
1553
+ * IDs of line items the discount applies to.
1554
+ * @deprecated IDs of line items the discount applies to.
1555
+ * @replacedBy line_items_discounts
1556
+ * @targetRemovalDate 2024-06-01
1557
+ */
1558
+ lineItemIds?: string[];
1559
+ }
1560
+ /** @oneof */
1561
+ export interface AppliedDiscountDiscountSourceOneOf {
1562
+ /** Coupon details. */
1563
+ coupon?: Coupon;
1564
+ /** Merchant discount. */
1565
+ merchantDiscount?: MerchantDiscount;
1566
+ /** Discount rule */
1567
+ discountRule?: DiscountRule;
1568
+ }
1569
+ export declare enum DiscountType {
1570
+ GLOBAL = "GLOBAL",
1571
+ SPECIFIC_ITEMS = "SPECIFIC_ITEMS",
1572
+ SHIPPING = "SHIPPING"
1573
+ }
1574
+ /** Coupon */
1575
+ export interface Coupon {
1576
+ /** Coupon ID. */
1577
+ id?: string;
1578
+ /** Coupon code. */
1579
+ code?: string;
1580
+ /** Coupon value. */
1581
+ amount?: MultiCurrencyPrice;
1582
+ /** Coupon name. */
1583
+ name?: string;
1584
+ }
1585
+ export interface MerchantDiscount {
1586
+ /** Discount value. */
1587
+ amount?: MultiCurrencyPrice;
1588
+ /** Discount Percentage. Will be calculated from items price before other discounts. */
1589
+ percentage?: number | null;
1590
+ }
1591
+ export interface DiscountRule {
1592
+ /** Discount rule ID */
1593
+ id?: string;
1594
+ /** Discount rule name */
1595
+ name?: DiscountRuleName;
1596
+ /** Discount value. */
1597
+ amount?: MultiCurrencyPrice;
1598
+ }
1599
+ export interface DiscountRuleName {
1600
+ /** Original discount rule name (in site's default language). */
1601
+ original?: string;
1602
+ /** Translated discount rule name according to buyer language. Defaults to `original` when not provided. */
1603
+ translated?: string | null;
1604
+ }
1605
+ export interface LineItemDiscount {
1606
+ /** ID of line item the discount applies to. */
1607
+ id?: string;
1608
+ /** Discount value. */
1609
+ totalDiscountAmount?: MultiCurrencyPrice;
1610
+ }
1611
+ export interface CustomField {
1612
+ /** Custom field value. */
1613
+ value?: any;
1614
+ /** Custom field title. */
1615
+ title?: string;
1616
+ /** Translated custom field title. */
1617
+ translatedTitle?: string | null;
1618
+ }
1619
+ export declare enum WeightUnit {
1620
+ /** Weight unit can't be classified, due to an error */
1621
+ UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
1622
+ /** Kilograms */
1623
+ KG = "KG",
1624
+ /** Pounds */
1625
+ LB = "LB"
1626
+ }
1627
+ export interface TaxSummary {
1628
+ /**
1629
+ * Amount for which tax is calculated, added from line items.
1630
+ * @readonly
1631
+ */
1632
+ taxableAmount?: MultiCurrencyPrice;
1633
+ /**
1634
+ * Calculated tax, added from line items.
1635
+ * @readonly
1636
+ */
1637
+ totalTax?: MultiCurrencyPrice;
1638
+ /**
1639
+ * Tax calculator that was active when the order was created.
1640
+ * @deprecated
1641
+ */
1642
+ calculationDetails?: TaxCalculationDetails;
1643
+ }
1644
+ export interface TaxCalculationDetails extends TaxCalculationDetailsCalculationDetailsOneOf {
1645
+ /** Reason the manual calculation was used. */
1646
+ manualRateReason?: ManualCalculationReason;
1647
+ /** Details of the fallback rate calculation. */
1648
+ autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;
1649
+ /** Rate calculation type. */
1650
+ rateType?: RateType;
1651
+ }
1652
+ /** @oneof */
1653
+ export interface TaxCalculationDetailsCalculationDetailsOneOf {
1654
+ /** Reason the manual calculation was used. */
1655
+ manualRateReason?: ManualCalculationReason;
1656
+ /** Details of the fallback rate calculation. */
1657
+ autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;
1658
+ }
1659
+ export declare enum RateType {
1660
+ /** no tax being collected for this request due to location of purchase */
1661
+ NO_TAX_COLLECTED = "NO_TAX_COLLECTED",
1662
+ /** manual rate used for calculation */
1663
+ MANUAL_RATE = "MANUAL_RATE",
1664
+ /** autotax rate used for calculation */
1665
+ AUTO_RATE = "AUTO_RATE",
1666
+ /** fallback rate used for calculation */
1667
+ FALLBACK_RATE = "FALLBACK_RATE"
1668
+ }
1669
+ export declare enum ManualCalculationReason {
1670
+ /** user set calculator in Business Manager to be Manual */
1671
+ GLOBAL_SETTING_TO_MANUAL = "GLOBAL_SETTING_TO_MANUAL",
1672
+ /** specific region is on manual even though Global setting is Auto-tax */
1673
+ REGION_SETTING_TO_MANUAL = "REGION_SETTING_TO_MANUAL"
1674
+ }
1675
+ export interface AutoTaxFallbackCalculationDetails {
1676
+ /** reason for fallback */
1677
+ fallbackReason?: FallbackReason;
1678
+ /** invalid request (i.e. address), timeout, internal error, license error, and others will be encoded here */
1679
+ error?: ApplicationError;
1680
+ }
1681
+ export declare enum FallbackReason {
1682
+ /** auto-tax failed to be calculated */
1683
+ AUTO_TAX_FAILED = "AUTO_TAX_FAILED",
1684
+ /** auto-tax was temporarily deactivated on a system-level */
1685
+ AUTO_TAX_DEACTIVATED = "AUTO_TAX_DEACTIVATED"
1686
+ }
1687
+ /**
1688
+ * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
1689
+ * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.
1690
+ */
1691
+ export interface AggregatedTaxBreakdown {
1692
+ /** The name of the tax against which this tax amount was calculated. */
1693
+ taxName?: string;
1694
+ /** The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws. */
1695
+ taxType?: string;
1696
+ /** The name of the jurisdiction in which this tax detail applies. */
1697
+ jurisdiction?: string;
1698
+ /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
1699
+ jurisdictionTypeEnum?: JurisdictionType;
1700
+ /** The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.000 signifies 200% tax. (Decimal value) */
1701
+ rate?: string;
1702
+ /** The sum of all the tax from line items that calculated by the tax identifiers. */
1703
+ aggregatedTaxAmount?: MultiCurrencyPrice;
1704
+ }
1705
+ export declare enum ChannelType {
1706
+ /** Unspecified sales channel. This value is not supported. */
1707
+ UNSPECIFIED = "UNSPECIFIED",
1708
+ /** A web client. */
1709
+ WEB = "WEB",
1710
+ /** [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395). */
1711
+ POS = "POS",
1712
+ /** [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop). */
1713
+ EBAY = "EBAY",
1714
+ /** [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop). */
1715
+ AMAZON = "AMAZON",
1716
+ /** Other sales platform. */
1717
+ OTHER_PLATFORM = "OTHER_PLATFORM",
1718
+ /** [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview). */
1719
+ WIX_APP_STORE = "WIX_APP_STORE",
1720
+ /** Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings) */
1721
+ WIX_INVOICES = "WIX_INVOICES",
1722
+ /** Wix merchant backoffice. */
1723
+ BACKOFFICE_MERCHANT = "BACKOFFICE_MERCHANT",
1724
+ /** Wish sales channel. */
1725
+ WISH = "WISH",
1726
+ /** [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass). */
1727
+ CLASS_PASS = "CLASS_PASS",
1728
+ /** Global-E sales channel. */
1729
+ GLOBAL_E = "GLOBAL_E",
1730
+ /** [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops). */
1731
+ FACEBOOK = "FACEBOOK",
1732
+ /** [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel). */
1733
+ ETSY = "ETSY",
1734
+ /** [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel). */
1735
+ TIKTOK = "TIKTOK",
1736
+ /** [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app). */
1737
+ FAIRE_COM = "FAIRE_COM"
1738
+ }
1739
+ export interface CreatedBy extends CreatedByIdOneOf {
1740
+ /**
1741
+ * User ID - when the order was created by a Wix user on behalf of a buyer.
1742
+ * For example, via POS (point of service).
1743
+ */
1744
+ userId?: string;
1745
+ /** Member ID - when the order was created by a **logged in** site visitor. */
1746
+ memberId?: string;
1747
+ /** Visitor ID - when the order was created by a site visitor that was **not** logged in. */
1748
+ visitorId?: string;
1749
+ /** App ID - when the order was created by an external application or Wix service. */
1750
+ appId?: string;
1751
+ }
1752
+ /** @oneof */
1753
+ export interface CreatedByIdOneOf {
1754
+ /**
1755
+ * User ID - when the order was created by a Wix user on behalf of a buyer.
1756
+ * For example, via POS (point of service).
1757
+ */
1758
+ userId?: string;
1759
+ /** Member ID - when the order was created by a **logged in** site visitor. */
1760
+ memberId?: string;
1761
+ /** Visitor ID - when the order was created by a site visitor that was **not** logged in. */
1762
+ visitorId?: string;
1763
+ /** App ID - when the order was created by an external application or Wix service. */
1764
+ appId?: string;
1765
+ }
1766
+ /** Reserved for internal use. */
1767
+ export interface MembershipOptions {
1768
+ /**
1769
+ * Reserved for internal use.
1770
+ * @readonly
1771
+ */
1772
+ eligibleMemberships?: Membership[];
1773
+ /**
1774
+ * Reserved for internal use.
1775
+ * @readonly
1776
+ */
1777
+ invalidMemberships?: InvalidMembership[];
1778
+ /** Selected membership to apply to this checkout. */
1779
+ selectedMemberships?: SelectedMemberships;
1780
+ }
1781
+ export interface Membership {
1782
+ /** Membership ID. */
1783
+ id?: string;
1784
+ /** ID of the application providing this payment option. */
1785
+ appId?: string;
1786
+ /** The name of this membership. */
1787
+ name?: MembershipName;
1788
+ /** Line item IDs which are "paid" for by this membership. */
1789
+ lineItemIds?: string[];
1790
+ /** Optional - For a membership that has limited credits, information about credit usage. */
1791
+ credits?: MembershipPaymentCredits;
1792
+ /** Optional - TMembership expiry date. */
1793
+ expirationDate?: Date | null;
1794
+ /** Additional data about this membership. */
1795
+ additionalData?: Record<string, any> | null;
1796
+ }
1797
+ export interface MembershipName {
1798
+ /** Membership name. */
1799
+ original?: string;
1800
+ /** Translated membership name. Defaults to `original` when not provided. */
1801
+ translated?: string | null;
1802
+ }
1803
+ export interface MembershipPaymentCredits {
1804
+ /** Membership's total amount of credits. */
1805
+ total?: number;
1806
+ /** Membership's remaining amount of credits. */
1807
+ remaining?: number;
1808
+ }
1809
+ export interface InvalidMembership {
1810
+ /** Membership details. */
1811
+ membership?: Membership;
1812
+ /** Reason why this membership is invalid and cannot be used. */
1813
+ reason?: string;
1814
+ }
1815
+ export interface SelectedMemberships {
1816
+ /** Selected memberships. */
1817
+ memberships?: SelectedMembership[];
1818
+ }
1819
+ export interface SelectedMembership {
1820
+ /** Membership ID. */
1821
+ id?: string;
1822
+ /** ID of the app providing this payment option. */
1823
+ appId?: string;
1824
+ /** IDs of the line items this membership applies to. */
1825
+ lineItemIds?: string[];
1826
+ }
1827
+ export interface AdditionalFee {
1828
+ /** Additional fee's unique code (or ID) for future processing. */
1829
+ code?: string | null;
1830
+ /** Translated additional fee's name. */
1831
+ name?: string;
1832
+ /** Additional fee's price. */
1833
+ price?: MultiCurrencyPrice;
1834
+ /** Tax details. */
1835
+ taxDetails?: ItemTaxFullDetails;
1836
+ /** Provider's app id. */
1837
+ providerAppId?: string | null;
1838
+ /** Additional fee's price before tax. */
1839
+ priceBeforeTax?: MultiCurrencyPrice;
1840
+ /** Additional fee's price after tax. */
1841
+ priceAfterTax?: MultiCurrencyPrice;
1842
+ /**
1843
+ * Optional - Line items associated with this additional fee.
1844
+ * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.
1845
+ */
1846
+ lineItemIds?: string[];
1847
+ /** the source the additional fee was added from */
1848
+ source?: AdditionalFeeSource;
1849
+ }
1850
+ export declare enum AdditionalFeeSource {
1851
+ UNKNOWN_ADDITIONAL_FEE_SOURCE = "UNKNOWN_ADDITIONAL_FEE_SOURCE",
1852
+ /** The additional fee was added by an additional fee service plugin */
1853
+ SERVICE_PLUGIN = "SERVICE_PLUGIN",
1854
+ /** The additional fee was added on the item either via the catalog or on custom line item */
1855
+ ITEM = "ITEM",
1856
+ /** The additional fee was added manually on the request */
1857
+ MANUAL = "MANUAL"
1858
+ }
1859
+ export interface ConversionInfo {
1860
+ /**
1861
+ * The site currency.
1862
+ * @readonly
1863
+ */
1864
+ siteCurrency?: string;
1865
+ /**
1866
+ * The rate used when converting from the site currency to the checkout currency.
1867
+ * @readonly
1868
+ */
1869
+ conversionRate?: string;
1870
+ }
1871
+ export interface Violation {
1872
+ /** Severity of the violation. The violations are shown on the cart and checkout pages. A warning is displayed as yellow, and allows a site visitor to proceed with caution. An error is displayed as red, and doesn't allow a site visitor to proceed with the eCommerce flow. */
1873
+ severity?: Severity;
1874
+ /** Target location on a checkout or cart page where the violation will be displayed. */
1875
+ target?: Target;
1876
+ /** Violation description. Can include rich text. Only HTTP or HTTPS links in the following format are allowed: `<a href="https://www.wix.com">Click me</a>`. */
1877
+ description?: string | null;
1878
+ }
1879
+ export declare enum Severity {
1880
+ /** The user is allowed to move forward in the flow. */
1881
+ WARNING = "WARNING",
1882
+ /**
1883
+ * The user is blocked from moving forward in the flow.
1884
+ * For example, if callerContext is CART - moving to checkout is blocked. if callerContext is CHECKOUT, placing an order is blocked.
1885
+ */
1886
+ ERROR = "ERROR"
1887
+ }
1888
+ export interface Target extends TargetTargetTypeOneOf {
1889
+ /** General (other) violation. */
1890
+ other?: Other;
1891
+ /** Specific line item violation. */
1892
+ lineItem?: TargetLineItem;
1893
+ }
1894
+ /** @oneof */
1895
+ export interface TargetTargetTypeOneOf {
1896
+ /** General (other) violation. */
1897
+ other?: Other;
1898
+ /** Specific line item violation. */
1899
+ lineItem?: TargetLineItem;
1900
+ }
1901
+ /** Available locations on the webpage */
1902
+ export declare enum NameInOther {
1903
+ /** Default location, in case no specific location is specified. */
1904
+ OTHER_DEFAULT = "OTHER_DEFAULT"
1905
+ }
1906
+ /** Available locations on the line item */
1907
+ export declare enum NameInLineItem {
1908
+ /** Default location, in case no specific location is specified. */
1909
+ LINE_ITEM_DEFAULT = "LINE_ITEM_DEFAULT"
1910
+ }
1911
+ export declare enum SuggestedFix {
1912
+ /** No suggested fix is specified. The user should refer to the violation description to resolve the issue. */
1913
+ UNKNOWN_SUGGESTED_FIX = "UNKNOWN_SUGGESTED_FIX",
1914
+ /** The line item should be removed from the cart or checkout to resolve the violation. */
1915
+ REMOVE_LINE_ITEM = "REMOVE_LINE_ITEM"
1916
+ }
1917
+ /** General (other) violation. */
1918
+ export interface Other {
1919
+ /** Location on a checkout or a cart page where a general (other) violation will be displayed. */
1920
+ name?: NameInOther;
1921
+ }
1922
+ /** Specific line item violation. */
1923
+ export interface TargetLineItem {
1924
+ /** Location on a checkout or a cart page where the specific line item violation will be displayed. */
1925
+ name?: NameInLineItem;
1926
+ /** ID of the line item containing the violation. */
1927
+ id?: string | null;
1928
+ }
1929
+ export interface CustomSettings {
1930
+ /**
1931
+ * Whether to restrict the option to add or remove a gift card on the checkout page.
1932
+ *
1933
+ * Default: `false`
1934
+ */
1935
+ lockGiftCard?: boolean;
1936
+ /**
1937
+ * Whether to restrict the option to add or remove a coupon code on the checkout page.
1938
+ *
1939
+ * Default: `false`
1940
+ */
1941
+ lockCouponCode?: boolean;
1942
+ /**
1943
+ * Whether to disable policy agreement checkout in the checkout page
1944
+ *
1945
+ * Default: `false`
1946
+ */
1947
+ disabledPolicyAgreementCheckbox?: boolean;
1948
+ /**
1949
+ * Whether to disable manual payment option for this checkout.
1950
+ *
1951
+ * Default: `false`
1952
+ */
1953
+ disabledManualPayment?: boolean;
1954
+ }
1955
+ export interface CreateAndRedirectToCheckoutRequest {
1956
+ /** ID of the checkout template to use to create a checkout. */
1957
+ checkoutTemplateId: string;
1958
+ /** ID of the site associated with the checkout template. */
1959
+ siteId: string;
1960
+ }
1961
+ export interface RawHttpResponse {
1962
+ body?: Uint8Array;
1963
+ statusCode?: number | null;
1964
+ headers?: HeadersEntry[];
1965
+ }
1966
+ export interface HeadersEntry {
1967
+ key?: string;
1968
+ value?: string;
1969
+ }
1970
+ export interface DomainEvent extends DomainEventBodyOneOf {
1971
+ createdEvent?: EntityCreatedEvent;
1972
+ updatedEvent?: EntityUpdatedEvent;
1973
+ deletedEvent?: EntityDeletedEvent;
1974
+ actionEvent?: ActionEvent;
1975
+ /**
1976
+ * Unique event ID.
1977
+ * Allows clients to ignore duplicate webhooks.
1978
+ */
1979
+ id?: string;
1980
+ /**
1981
+ * Assumes actions are also always typed to an entity_type
1982
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1983
+ */
1984
+ entityFqdn?: string;
1985
+ /**
1986
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1987
+ * This is although the created/updated/deleted notion is duplication of the oneof types
1988
+ * Example: created/updated/deleted/started/completed/email_opened
1989
+ */
1990
+ slug?: string;
1991
+ /** ID of the entity associated with the event. */
1992
+ entityId?: string;
1993
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1994
+ eventTime?: Date | null;
1995
+ /**
1996
+ * Whether the event was triggered as a result of a privacy regulation application
1997
+ * (for example, GDPR).
1998
+ */
1999
+ triggeredByAnonymizeRequest?: boolean | null;
2000
+ /** If present, indicates the action that triggered the event. */
2001
+ originatedFrom?: string | null;
2002
+ /**
2003
+ * A sequence number defining the order of updates to the underlying entity.
2004
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
2005
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
2006
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
2007
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
2008
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
2009
+ */
2010
+ entityEventSequence?: string | null;
2011
+ }
2012
+ /** @oneof */
2013
+ export interface DomainEventBodyOneOf {
2014
+ createdEvent?: EntityCreatedEvent;
2015
+ updatedEvent?: EntityUpdatedEvent;
2016
+ deletedEvent?: EntityDeletedEvent;
2017
+ actionEvent?: ActionEvent;
2018
+ }
2019
+ export interface EntityCreatedEvent {
2020
+ entityAsJson?: string;
2021
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
2022
+ restoreInfo?: RestoreInfo;
2023
+ }
2024
+ export interface RestoreInfo {
2025
+ deletedDate?: Date | null;
2026
+ }
2027
+ export interface EntityUpdatedEvent {
2028
+ /**
2029
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2030
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2031
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2032
+ */
2033
+ currentEntityAsJson?: string;
2034
+ }
2035
+ export interface EntityDeletedEvent {
2036
+ /** Entity that was deleted */
2037
+ deletedEntityAsJson?: string | null;
2038
+ }
2039
+ export interface ActionEvent {
2040
+ bodyAsJson?: string;
2041
+ }
2042
+ export interface MessageEnvelope {
2043
+ /** App instance ID. */
2044
+ instanceId?: string | null;
2045
+ /** Event type. */
2046
+ eventType?: string;
2047
+ /** The identification type and identity data. */
2048
+ identity?: IdentificationData;
2049
+ /** Stringify payload. */
2050
+ data?: string;
2051
+ }
2052
+ export interface IdentificationData extends IdentificationDataIdOneOf {
2053
+ /** ID of a site visitor that has not logged in to the site. */
2054
+ anonymousVisitorId?: string;
2055
+ /** ID of a site visitor that has logged in to the site. */
2056
+ memberId?: string;
2057
+ /** ID of a Wix user (site owner, contributor, etc.). */
2058
+ wixUserId?: string;
2059
+ /** ID of an app. */
2060
+ appId?: string;
2061
+ /** @readonly */
2062
+ identityType?: WebhookIdentityType;
2063
+ }
2064
+ /** @oneof */
2065
+ export interface IdentificationDataIdOneOf {
2066
+ /** ID of a site visitor that has not logged in to the site. */
2067
+ anonymousVisitorId?: string;
2068
+ /** ID of a site visitor that has logged in to the site. */
2069
+ memberId?: string;
2070
+ /** ID of a Wix user (site owner, contributor, etc.). */
2071
+ wixUserId?: string;
2072
+ /** ID of an app. */
2073
+ appId?: string;
2074
+ }
2075
+ export declare enum WebhookIdentityType {
2076
+ UNKNOWN = "UNKNOWN",
2077
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2078
+ MEMBER = "MEMBER",
2079
+ WIX_USER = "WIX_USER",
2080
+ APP = "APP"
2081
+ }
2082
+ interface WebClientCustomizationNonNullableFields {
2083
+ disabledContinueShoppingButton: boolean;
2084
+ disabledPolicyAgreementCheckbox: boolean;
2085
+ }
2086
+ interface CheckoutCustomizationNonNullableFields {
2087
+ webClient?: WebClientCustomizationNonNullableFields;
2088
+ lockedGiftCard: boolean;
2089
+ lockedCoupon: boolean;
2090
+ disabledManualPayment: boolean;
2091
+ }
2092
+ interface CatalogReferenceNonNullableFields {
2093
+ catalogItemId: string;
2094
+ appId: string;
2095
+ }
2096
+ interface ProductNameNonNullableFields {
2097
+ original: string;
2098
+ }
2099
+ interface PlainTextValueNonNullableFields {
2100
+ original: string;
2101
+ }
2102
+ interface ColorNonNullableFields {
2103
+ original: string;
2104
+ }
2105
+ interface DescriptionLineNameNonNullableFields {
2106
+ original: string;
2107
+ }
2108
+ interface DescriptionLineNonNullableFields {
2109
+ plainText?: PlainTextValueNonNullableFields;
2110
+ colorInfo?: ColorNonNullableFields;
2111
+ plainTextValue?: PlainTextValueNonNullableFields;
2112
+ color: string;
2113
+ name?: DescriptionLineNameNonNullableFields;
2114
+ lineType: DescriptionLineType;
2115
+ }
2116
+ interface PhysicalPropertiesNonNullableFields {
2117
+ shippable: boolean;
2118
+ }
2119
+ interface ImageNonNullableFields {
2120
+ id: string;
2121
+ height: number;
2122
+ width: number;
2123
+ }
2124
+ interface PaymentOptionNonNullableFields {
2125
+ value: PaymentOptionType;
2126
+ }
2127
+ interface CatalogOverrideFieldsNonNullableFields {
2128
+ productName?: ProductNameNonNullableFields;
2129
+ descriptionLines: DescriptionLineNonNullableFields[];
2130
+ physicalProperties?: PhysicalPropertiesNonNullableFields;
2131
+ image?: ImageNonNullableFields;
2132
+ paymentOption?: PaymentOptionNonNullableFields;
2133
+ }
2134
+ interface V1LineItemNonNullableFields {
2135
+ quantity: number;
2136
+ catalogReference?: CatalogReferenceNonNullableFields;
2137
+ catalogOverrideFields?: CatalogOverrideFieldsNonNullableFields;
2138
+ }
2139
+ interface PriceDescriptionNonNullableFields {
2140
+ original: string;
2141
+ }
2142
+ interface PageUrlV2NonNullableFields {
2143
+ relativePath: string;
2144
+ }
2145
+ interface ItemTypeNonNullableFields {
2146
+ preset: ItemTypeItemType;
2147
+ custom: string;
2148
+ }
2149
+ interface SubscriptionSettingsNonNullableFields {
2150
+ frequency: SubscriptionFrequency;
2151
+ autoRenewal: boolean;
2152
+ }
2153
+ interface TitleNonNullableFields {
2154
+ original: string;
2155
+ }
2156
+ interface DescriptionNonNullableFields {
2157
+ original: string;
2158
+ }
2159
+ interface SubscriptionOptionInfoNonNullableFields {
2160
+ subscriptionSettings?: SubscriptionSettingsNonNullableFields;
2161
+ title?: TitleNonNullableFields;
2162
+ description?: DescriptionNonNullableFields;
2163
+ }
2164
+ interface SecuredMediaNonNullableFields {
2165
+ id: string;
2166
+ fileName: string;
2167
+ fileType: FileType;
2168
+ }
2169
+ interface CustomLineItemNonNullableFields {
2170
+ quantity: number;
2171
+ price: string;
2172
+ priceDescription?: PriceDescriptionNonNullableFields;
2173
+ descriptionLines: DescriptionLineNonNullableFields[];
2174
+ media?: ImageNonNullableFields;
2175
+ productName?: ProductNameNonNullableFields;
2176
+ url?: PageUrlV2NonNullableFields;
2177
+ itemType?: ItemTypeNonNullableFields;
2178
+ physicalProperties?: PhysicalPropertiesNonNullableFields;
2179
+ subscriptionOptionInfo?: SubscriptionOptionInfoNonNullableFields;
2180
+ digitalFile?: SecuredMediaNonNullableFields;
2181
+ paymentOption: PaymentOptionType;
2182
+ catalogReference?: CatalogReferenceNonNullableFields;
2183
+ savePaymentMethod: boolean;
2184
+ }
2185
+ interface CustomContentReferenceNonNullableFields {
2186
+ appId: string;
2187
+ componentId: string;
2188
+ }
2189
+ interface ExternalReferenceNonNullableFields {
2190
+ appId: string;
2191
+ }
2192
+ interface CheckoutTemplateNonNullableFields {
2193
+ status: Status;
2194
+ customization?: CheckoutCustomizationNonNullableFields;
2195
+ lineItems: V1LineItemNonNullableFields[];
2196
+ customLineItems: CustomLineItemNonNullableFields[];
2197
+ customContentReference?: CustomContentReferenceNonNullableFields;
2198
+ externalReference?: ExternalReferenceNonNullableFields;
2199
+ }
2200
+ export interface CreateCheckoutTemplateResponseNonNullableFields {
2201
+ checkoutTemplate?: CheckoutTemplateNonNullableFields;
2202
+ }
2203
+ export interface GetCheckoutTemplateResponseNonNullableFields {
2204
+ checkoutTemplate?: CheckoutTemplateNonNullableFields;
2205
+ }
2206
+ export interface UpdateCheckoutTemplateResponseNonNullableFields {
2207
+ checkoutTemplate?: CheckoutTemplateNonNullableFields;
2208
+ }
2209
+ export interface QueryCheckoutTemplatesResponseNonNullableFields {
2210
+ checkoutTemplates: CheckoutTemplateNonNullableFields[];
2211
+ }
2212
+ export interface CreateCheckoutFromTemplateResponseNonNullableFields {
2213
+ checkoutId: string;
2214
+ checkoutUrl: string;
2215
+ }
2216
+ interface HeadersEntryNonNullableFields {
2217
+ key: string;
2218
+ value: string;
2219
+ }
2220
+ export interface RawHttpResponseNonNullableFields {
2221
+ body: Uint8Array;
2222
+ headers: HeadersEntryNonNullableFields[];
2223
+ }
2224
+ export {};