@wix/auto_sdk_ecom_checkout 1.0.17 → 1.0.18

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