@wix/auto_sdk_ecom_checkout 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/ecom-v1-checkout-checkout.context.d.ts +37 -0
  11. package/build/cjs/src/ecom-v1-checkout-checkout.context.js +71 -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 +120 -0
  14. package/build/cjs/src/ecom-v1-checkout-checkout.http.js +1299 -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 +58 -0
  17. package/build/cjs/src/ecom-v1-checkout-checkout.meta.js +332 -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 +346 -0
  21. package/build/cjs/src/ecom-v1-checkout-checkout.public.js.map +1 -0
  22. package/build/cjs/src/ecom-v1-checkout-checkout.types.d.ts +3046 -0
  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/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +3740 -0
  26. package/build/cjs/src/ecom-v1-checkout-checkout.universal.js +1513 -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 +37 -0
  39. package/build/es/src/ecom-v1-checkout-checkout.context.js +37 -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 +120 -0
  42. package/build/es/src/ecom-v1-checkout-checkout.http.js +1280 -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 +58 -0
  45. package/build/es/src/ecom-v1-checkout-checkout.meta.js +290 -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 +295 -0
  49. package/build/es/src/ecom-v1-checkout-checkout.public.js.map +1 -0
  50. package/build/es/src/ecom-v1-checkout-checkout.types.d.ts +3046 -0
  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/es/src/ecom-v1-checkout-checkout.universal.d.ts +3740 -0
  54. package/build/es/src/ecom-v1-checkout-checkout.universal.js +1471 -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 +37 -0
  66. package/build/internal/cjs/src/ecom-v1-checkout-checkout.context.js +71 -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 +120 -0
  69. package/build/internal/cjs/src/ecom-v1-checkout-checkout.http.js +1299 -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 +58 -0
  72. package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.js +332 -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 +210 -0
  75. package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.js +346 -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 +3085 -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 +4005 -0
  81. package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.js +1513 -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 +37 -0
  93. package/build/internal/es/src/ecom-v1-checkout-checkout.context.js +37 -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 +120 -0
  96. package/build/internal/es/src/ecom-v1-checkout-checkout.http.js +1280 -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 +58 -0
  99. package/build/internal/es/src/ecom-v1-checkout-checkout.meta.js +290 -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 +210 -0
  102. package/build/internal/es/src/ecom-v1-checkout-checkout.public.js +295 -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 +3085 -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 +4005 -0
  108. package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js +1471 -0
  109. package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,3085 @@
1
+ export interface Checkout {
2
+ /**
3
+ * Checkout ID.
4
+ * @readonly
5
+ */
6
+ id?: string | null;
7
+ /**
8
+ * Line items.
9
+ *
10
+ * Max: 300 items
11
+ * @readonly
12
+ */
13
+ lineItems?: LineItem[];
14
+ /** Billing information. */
15
+ billingInfo?: AddressWithContact;
16
+ /** Shipping information. */
17
+ shippingInfo?: ShippingInfo;
18
+ /** [Buyer note](https://support.wix.com/en/article/wix-stores-viewing-buyer-notes) left by the customer. */
19
+ buyerNote?: string | null;
20
+ /** Buyer information. */
21
+ buyerInfo?: BuyerInfo;
22
+ /**
23
+ * All converted prices are displayed in this currency in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
24
+ * @readonly
25
+ */
26
+ conversionCurrency?: string;
27
+ /**
28
+ * Calculated price summary for the checkout.
29
+ * @readonly
30
+ */
31
+ priceSummary?: PriceSummary;
32
+ /**
33
+ * Errors when calculating totals.
34
+ * @readonly
35
+ */
36
+ calculationErrors?: CalculationErrors;
37
+ /**
38
+ * Applied gift card details.
39
+ *
40
+ * >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/wix-stores-setting-up-wix-gift-cards).
41
+ * @readonly
42
+ */
43
+ giftCard?: GiftCard;
44
+ /**
45
+ * Applied discounts.
46
+ * @readonly
47
+ */
48
+ appliedDiscounts?: AppliedDiscount[];
49
+ /** Custom fields. */
50
+ customFields?: CustomField[];
51
+ /**
52
+ * Weight measurement unit - defaults to site's weight unit.
53
+ * @readonly
54
+ */
55
+ weightUnit?: WeightUnit;
56
+ /**
57
+ * Tax summary.
58
+ * @readonly
59
+ */
60
+ taxSummary?: TaxSummary;
61
+ /**
62
+ * The currency used when submitting the order.
63
+ * @readonly
64
+ */
65
+ currency?: string;
66
+ /**
67
+ * Sales channel that submitted the order.
68
+ * @readonly
69
+ */
70
+ channelType?: ChannelType;
71
+ /**
72
+ * Site language in which original values are shown.
73
+ * @readonly
74
+ */
75
+ siteLanguage?: string;
76
+ /**
77
+ * Language for communication with the buyer. Defaults to the site language.
78
+ * For a site that supports multiple languages, this is the language the buyer selected.
79
+ * @readonly
80
+ */
81
+ buyerLanguage?: string;
82
+ /**
83
+ * Whether an order was successfully created from this checkout.
84
+ * For an order to be successful, it must be successfully paid for (unless the total is 0).
85
+ * @readonly
86
+ */
87
+ completed?: boolean;
88
+ /**
89
+ * Whether tax is included in line item prices.
90
+ * @readonly
91
+ */
92
+ taxIncludedInPrice?: boolean;
93
+ /**
94
+ * ID of the checkout's initiator.
95
+ * @readonly
96
+ */
97
+ createdBy?: CreatedBy;
98
+ /**
99
+ * Date and time the checkout was created.
100
+ * @readonly
101
+ */
102
+ createdDate?: Date | null;
103
+ /**
104
+ * Date and time the checkout was updated.
105
+ * @readonly
106
+ */
107
+ updatedDate?: Date | null;
108
+ /**
109
+ * Minimal amount to pay in order to place the order.
110
+ * @readonly
111
+ */
112
+ payNow?: PriceSummary;
113
+ /**
114
+ * Remaining amount for the order to be fully paid.
115
+ * @readonly
116
+ */
117
+ payLater?: PriceSummary;
118
+ /** Memberships to apply when creating the order. */
119
+ membershipOptions?: MembershipOptions;
120
+ /** Additional Fees. */
121
+ additionalFees?: AdditionalFee[];
122
+ /** Cart ID that this checkout was created from. Empty if this checkout wasn't created from a cart. */
123
+ cartId?: string | null;
124
+ /**
125
+ * List of validation violations raised by the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
126
+ * @readonly
127
+ */
128
+ violations?: Violation[];
129
+ /**
130
+ * Custom field data for the checkout object.
131
+ *
132
+ * [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.
133
+ */
134
+ extendedFields?: ExtendedFields;
135
+ /**
136
+ * Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.
137
+ * @readonly
138
+ */
139
+ purchaseFlowId?: string | null;
140
+ /**
141
+ * Additional settings for customization of the checkout process.
142
+ *
143
+ * > **Notes:**
144
+ * > * Custom settings can only be set when [creating a checkout](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/checkout/create-checkout).
145
+ * > * 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).
146
+ */
147
+ customSettings?: CustomSettings;
148
+ /**
149
+ * Reference IDs for the app and component providing custom checkout page content.
150
+ *
151
+ * To access and manage custom checkout page content, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
152
+ * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
153
+ */
154
+ customContentReference?: CustomContentReference;
155
+ }
156
+ export interface LineItem {
157
+ /**
158
+ * Line item ID.
159
+ * @readonly
160
+ */
161
+ id?: string | null;
162
+ /**
163
+ * Item quantity.
164
+ *
165
+ * Min: `"1"`
166
+ * Max: `"100000"`
167
+ */
168
+ quantity?: number;
169
+ /** 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. */
170
+ catalogReference?: CatalogReference;
171
+ /**
172
+ * Item name.
173
+ * + Stores - `product.name`
174
+ * + Bookings - `service.info.name`
175
+ * + Events - `ticket.name`
176
+ * @readonly
177
+ */
178
+ productName?: ProductName;
179
+ /**
180
+ * URL to the item's page on the site.
181
+ * @readonly
182
+ */
183
+ url?: PageUrlV2;
184
+ /**
185
+ * Item price **after** catalog-defined discount and line item discounts.
186
+ * @readonly
187
+ */
188
+ price?: MultiCurrencyPrice;
189
+ /**
190
+ * Total line item price **after** catalog-defined discount and line item discounts.
191
+ * @readonly
192
+ */
193
+ lineItemPrice?: MultiCurrencyPrice;
194
+ /**
195
+ * Item price **before** catalog-defined discount. Defaults to `price` when not provided.
196
+ * @readonly
197
+ */
198
+ fullPrice?: MultiCurrencyPrice;
199
+ /**
200
+ * Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided.
201
+ * @readonly
202
+ */
203
+ priceBeforeDiscounts?: MultiCurrencyPrice;
204
+ /**
205
+ * Total price after all discounts and tax.
206
+ * @readonly
207
+ */
208
+ totalPriceAfterTax?: MultiCurrencyPrice;
209
+ /**
210
+ * Total price after discounts, and before tax.
211
+ * @readonly
212
+ */
213
+ totalPriceBeforeTax?: MultiCurrencyPrice;
214
+ /**
215
+ * Tax details for this line item.
216
+ * @readonly
217
+ */
218
+ taxDetails?: ItemTaxFullDetails;
219
+ /**
220
+ * Discount for this line item's entire quantity.
221
+ * @readonly
222
+ */
223
+ discount?: MultiCurrencyPrice;
224
+ /**
225
+ * Line item description lines. Used for display purposes for the cart, checkout and order.
226
+ * @readonly
227
+ */
228
+ descriptionLines?: DescriptionLine[];
229
+ /**
230
+ * Line item image details.
231
+ * @readonly
232
+ */
233
+ media?: CommonImage;
234
+ /**
235
+ * Item availability details.
236
+ * @readonly
237
+ */
238
+ availability?: ItemAvailabilityInfo;
239
+ /**
240
+ * Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability.
241
+ * @readonly
242
+ */
243
+ physicalProperties?: PhysicalProperties;
244
+ /**
245
+ * Item type. Either a preset type or custom.
246
+ * @readonly
247
+ */
248
+ itemType?: ItemType;
249
+ /**
250
+ * Subscription option information.
251
+ * @readonly
252
+ */
253
+ subscriptionOptionInfo?: SubscriptionOptionInfo;
254
+ /**
255
+ * Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.
256
+ * + `FULL_PAYMENT_ONLINE`: The entire payment for this item happens as part of the checkout.
257
+ * + `FULL_PAYMENT_OFFLINE`: The entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
258
+ * + `MEMBERSHIP`: Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is `0`.
259
+ * + `DEPOSIT_ONLINE`: Partial payment to be paid upfront during the checkout. Initial amount to be paid for each line item is defined by `lineItem.deposit`.
260
+ * + `MEMBERSHIP_OFFLINE`: Payment for this item can only be performed by using a membership and must be manually redeemed in the dashboard by the site owner. When this option is used, `lineItem.price.amount` is `0`.
261
+ * @readonly
262
+ */
263
+ paymentOption?: PaymentOptionType;
264
+ /**
265
+ * Service properties. When relevant, this contains information such as date and number of participants.
266
+ * @readonly
267
+ */
268
+ serviceProperties?: ServiceProperties;
269
+ /**
270
+ * In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.
271
+ * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.
272
+ * + In most cases, this field has the same value as `catalogReference.catalogItemId`.
273
+ * + Used in membership validation.
274
+ * @readonly
275
+ */
276
+ rootCatalogItemId?: string | null;
277
+ /**
278
+ * Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".
279
+ * @readonly
280
+ */
281
+ priceDescription?: PriceDescription;
282
+ /**
283
+ * Partial payment to be paid upfront during the checkout. Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.
284
+ * @readonly
285
+ */
286
+ depositAmount?: MultiCurrencyPrice;
287
+ /**
288
+ * Whether the line item is a custom line item. Custom line items don't trigger the Catalog service plugin.
289
+ * @readonly
290
+ */
291
+ customLineItem?: boolean;
292
+ /**
293
+ * Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.
294
+ * @readonly
295
+ */
296
+ consentRequiredPaymentPolicy?: string | null;
297
+ /**
298
+ * Overriding values for catalog item properties.
299
+ *
300
+ * To override catalog fields, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
301
+ * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
302
+ */
303
+ catalogOverrideFields?: CatalogOverrideFields;
304
+ /**
305
+ * Whether to save the payment method on the order.
306
+ *
307
+ * Default: `false`
308
+ * @readonly
309
+ */
310
+ savePaymentMethod?: boolean;
311
+ }
312
+ /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
313
+ export interface CatalogReference {
314
+ /** ID of the item within the catalog it belongs to. */
315
+ catalogItemId?: string;
316
+ /**
317
+ * ID of the app providing the catalog.
318
+ *
319
+ * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
320
+ *
321
+ * For items from Wix catalogs, the following values always apply:
322
+ * + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
323
+ * + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
324
+ * + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
325
+ */
326
+ appId?: string;
327
+ /**
328
+ * 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.
329
+ *
330
+ * For products and variants from a Wix Stores catalog, learn more about [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).
331
+ */
332
+ options?: Record<string, any> | null;
333
+ }
334
+ export interface ProductName {
335
+ /**
336
+ * __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).
337
+ *
338
+ * Min: 1 character.
339
+ * Max: 200 characters.
340
+ */
341
+ original?: string;
342
+ /**
343
+ * Item name translated into the buyer's language.
344
+ *
345
+ * Min: 1 character.
346
+ * Max: 400 characters.
347
+ * Default: Same as `original`.
348
+ */
349
+ translated?: string | null;
350
+ }
351
+ export interface PageUrlV2 {
352
+ /** The relative path for the page within the site. For example, `/product-page/a-product`. */
353
+ relativePath?: string;
354
+ /** The page's full URL. For example, `https://mysite.com/product-page/a-product`. */
355
+ url?: string | null;
356
+ }
357
+ export interface MultiCurrencyPrice {
358
+ /** Amount. */
359
+ amount?: string;
360
+ /**
361
+ * Converted amount.
362
+ * @readonly
363
+ */
364
+ convertedAmount?: string;
365
+ /**
366
+ * Amount formatted with currency symbol.
367
+ * @readonly
368
+ */
369
+ formattedAmount?: string;
370
+ /**
371
+ * Converted amount formatted with currency symbol.
372
+ * @readonly
373
+ */
374
+ formattedConvertedAmount?: string;
375
+ }
376
+ export interface ItemTaxFullDetails {
377
+ /** Amount for which tax is calculated. */
378
+ taxableAmount?: MultiCurrencyPrice;
379
+ /** Tax rate %, as a decimal point between 0 and 1. */
380
+ taxRate?: string;
381
+ /** Calculated tax, based on `taxable_amount` and `tax_rate`. */
382
+ totalTax?: MultiCurrencyPrice;
383
+ /**
384
+ * If breakdown exists, the sum of rates in the breakdown must equal `tax_rate`. Deprecated - use 'tax_breakdown' instead.
385
+ * @readonly
386
+ * @deprecated
387
+ */
388
+ rateBreakdown?: TaxRateBreakdown[];
389
+ }
390
+ export interface TaxRateBreakdown {
391
+ /** Name of tax against which the calculation was performed. */
392
+ name?: string;
393
+ /** Rate at which this tax detail was calculated. */
394
+ rate?: string;
395
+ /** Amount of tax for this tax detail. */
396
+ tax?: MultiCurrencyPrice;
397
+ }
398
+ /**
399
+ * TaxBreakdown represents tax information for a line item.
400
+ * It holds the tax amount and the tax rate for each tax authority that apply on the line item.
401
+ */
402
+ export interface TaxBreakdown {
403
+ /** The name of the jurisdiction to which this tax detail applies. For example, "New York" or "Quebec". */
404
+ jurisdiction?: string | null;
405
+ /** The amount of this line item price that was considered nontaxable. (Decimal value) */
406
+ nonTaxableAmount?: MultiCurrencyPrice;
407
+ /** The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.0000 signifies 200% tax. (Decimal value) */
408
+ rate?: string | null;
409
+ /** The amount of tax estimated for this line item. (Decimal value) */
410
+ taxAmount?: MultiCurrencyPrice;
411
+ /** The taxable amount of this line item. */
412
+ taxableAmount?: MultiCurrencyPrice;
413
+ /** The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc. */
414
+ taxType?: string | null;
415
+ /**
416
+ * The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.
417
+ * This name should be explicit enough to allow the merchant to understand what tax was calculated.
418
+ */
419
+ taxName?: string | null;
420
+ /** The type of the jurisdiction in which this tax detail applies. */
421
+ jurisdictionType?: JurisdictionType;
422
+ }
423
+ /** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
424
+ export declare enum JurisdictionType {
425
+ UNDEFINED = "UNDEFINED",
426
+ COUNTRY = "COUNTRY",
427
+ STATE = "STATE",
428
+ COUNTY = "COUNTY",
429
+ CITY = "CITY",
430
+ SPECIAL = "SPECIAL"
431
+ }
432
+ export interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf {
433
+ /** Description line plain text value. */
434
+ plainText?: PlainTextValue;
435
+ /** Description line color value. */
436
+ colorInfo?: Color;
437
+ /** Description line name. */
438
+ name?: DescriptionLineName;
439
+ }
440
+ /** @oneof */
441
+ export interface DescriptionLineValueOneOf {
442
+ /** Description line plain text value. */
443
+ plainText?: PlainTextValue;
444
+ /** Description line color value. */
445
+ colorInfo?: Color;
446
+ }
447
+ /** @oneof */
448
+ export interface DescriptionLineDescriptionLineValueOneOf {
449
+ }
450
+ export interface DescriptionLineName {
451
+ /** 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). */
452
+ original?: string;
453
+ /**
454
+ * Description line name translated into the buyer's language.
455
+ *
456
+ * Default: Same as `original`.
457
+ */
458
+ translated?: string | null;
459
+ }
460
+ export interface PlainTextValue {
461
+ /** 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). */
462
+ original?: string;
463
+ /**
464
+ * Description line plain text value translated into the buyer's language.
465
+ *
466
+ * Default: Same as `original`.
467
+ */
468
+ translated?: string | null;
469
+ }
470
+ export interface Color {
471
+ /** 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). */
472
+ original?: string;
473
+ /**
474
+ * Description line color name translated into the buyer's language.
475
+ *
476
+ * Default: Same as `original`.
477
+ */
478
+ translated?: string | null;
479
+ /** HEX or RGB color code for display. */
480
+ code?: string | null;
481
+ }
482
+ export declare enum DescriptionLineType {
483
+ /** Unrecognized type. */
484
+ UNRECOGNISED = "UNRECOGNISED",
485
+ /** Plain text type. */
486
+ PLAIN_TEXT = "PLAIN_TEXT",
487
+ /** Color type. */
488
+ COLOR = "COLOR"
489
+ }
490
+ export interface CommonImage {
491
+ /** WixMedia image ID. */
492
+ id?: string;
493
+ /** Image URL. */
494
+ url?: string;
495
+ /**
496
+ * Original image height.
497
+ * @readonly
498
+ */
499
+ height?: number;
500
+ /**
501
+ * Original image width.
502
+ * @readonly
503
+ */
504
+ width?: number;
505
+ /** Image alt text. */
506
+ altText?: string | null;
507
+ /**
508
+ * Image filename.
509
+ * @readonly
510
+ */
511
+ filename?: string | null;
512
+ }
513
+ export interface FocalPoint {
514
+ /** X-coordinate of the focal point. */
515
+ x?: number;
516
+ /** Y-coordinate of the focal point. */
517
+ y?: number;
518
+ /** crop by height */
519
+ height?: number | null;
520
+ /** crop by width */
521
+ width?: number | null;
522
+ }
523
+ export interface ItemAvailabilityInfo {
524
+ /** Item availability status. */
525
+ status?: ItemAvailabilityStatus;
526
+ /** Quantity available. */
527
+ quantityAvailable?: number | null;
528
+ }
529
+ export declare enum ItemAvailabilityStatus {
530
+ AVAILABLE = "AVAILABLE",
531
+ /** Item does not exist */
532
+ NOT_FOUND = "NOT_FOUND",
533
+ /** Item not in stock */
534
+ NOT_AVAILABLE = "NOT_AVAILABLE",
535
+ /** Available quantity is less than requested */
536
+ PARTIALLY_AVAILABLE = "PARTIALLY_AVAILABLE"
537
+ }
538
+ export interface PhysicalProperties {
539
+ /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
540
+ weight?: number | null;
541
+ /** Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku). */
542
+ sku?: string | null;
543
+ /** Whether this line item is shippable. */
544
+ shippable?: boolean;
545
+ }
546
+ export interface Scope {
547
+ /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
548
+ namespace?: string;
549
+ /** Coupon scope's applied group (e.g., event or ticket in Wix Events) */
550
+ group?: Group;
551
+ }
552
+ export interface Group {
553
+ /** Coupon scope's group (e.g., product or collection in Wix Stores). See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
554
+ name?: string;
555
+ /** Item ID (when the coupon scope is limited to just one item). */
556
+ entityId?: string | null;
557
+ }
558
+ export interface ItemType extends ItemTypeItemTypeDataOneOf {
559
+ /** Preset item type. */
560
+ preset?: ItemTypeItemType;
561
+ /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
562
+ custom?: string;
563
+ }
564
+ /** @oneof */
565
+ export interface ItemTypeItemTypeDataOneOf {
566
+ /** Preset item type. */
567
+ preset?: ItemTypeItemType;
568
+ /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
569
+ custom?: string;
570
+ }
571
+ export declare enum ItemTypeItemType {
572
+ UNRECOGNISED = "UNRECOGNISED",
573
+ PHYSICAL = "PHYSICAL",
574
+ DIGITAL = "DIGITAL",
575
+ GIFT_CARD = "GIFT_CARD",
576
+ SERVICE = "SERVICE"
577
+ }
578
+ export interface SubscriptionOptionInfo {
579
+ /** Subscription option settings. */
580
+ subscriptionSettings?: SubscriptionSettings;
581
+ /** Subscription option title. */
582
+ title?: Title;
583
+ /** Subscription option description. */
584
+ description?: Description;
585
+ }
586
+ export interface SubscriptionSettings {
587
+ /** Frequency of recurring payment. */
588
+ frequency?: SubscriptionFrequency;
589
+ /**
590
+ * Interval of recurring payment.
591
+ *
592
+ * Default: `1`.
593
+ * If SubscriptionFrequency is Day the minimum interval is 7
594
+ */
595
+ interval?: number | null;
596
+ /** Whether subscription is renewed automatically at the end of each period. */
597
+ autoRenewal?: boolean;
598
+ /** Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`. */
599
+ billingCycles?: number | null;
600
+ }
601
+ /** Frequency unit of recurring payment */
602
+ export declare enum SubscriptionFrequency {
603
+ UNDEFINED = "UNDEFINED",
604
+ DAY = "DAY",
605
+ WEEK = "WEEK",
606
+ MONTH = "MONTH",
607
+ YEAR = "YEAR"
608
+ }
609
+ export interface FreeTrialPeriod {
610
+ /** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */
611
+ frequency?: SubscriptionFrequency;
612
+ /** interval of period */
613
+ interval?: number;
614
+ }
615
+ export interface Title {
616
+ /** 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). */
617
+ original?: string;
618
+ /**
619
+ * Subscription option name translated into the buyer's language.
620
+ *
621
+ * Default: Same as `original`.
622
+ */
623
+ translated?: string | null;
624
+ }
625
+ export interface Description {
626
+ /** Subscription option description. */
627
+ original?: string;
628
+ /** Translated subscription option description. */
629
+ translated?: string | null;
630
+ }
631
+ export interface SecuredMedia {
632
+ /** Media ID in Wix Media Manager. */
633
+ id?: string;
634
+ /** Original filename. */
635
+ fileName?: string;
636
+ /** File type. */
637
+ fileType?: FileType;
638
+ }
639
+ export declare enum FileType {
640
+ UNSPECIFIED = "UNSPECIFIED",
641
+ SECURE_PICTURE = "SECURE_PICTURE",
642
+ SECURE_VIDEO = "SECURE_VIDEO",
643
+ SECURE_DOCUMENT = "SECURE_DOCUMENT",
644
+ SECURE_MUSIC = "SECURE_MUSIC",
645
+ SECURE_ARCHIVE = "SECURE_ARCHIVE"
646
+ }
647
+ /** Type of selected payment option for catalog item */
648
+ export declare enum PaymentOptionType {
649
+ /** The entire payment for this item happens as part of the checkout. */
650
+ FULL_PAYMENT_ONLINE = "FULL_PAYMENT_ONLINE",
651
+ /** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */
652
+ FULL_PAYMENT_OFFLINE = "FULL_PAYMENT_OFFLINE",
653
+ /** Payment for this item is done by charging a membership. When selected, `price` is `0`. */
654
+ MEMBERSHIP = "MEMBERSHIP",
655
+ /** Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`. */
656
+ DEPOSIT_ONLINE = "DEPOSIT_ONLINE",
657
+ /** 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`. */
658
+ MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
659
+ }
660
+ export interface ServiceProperties {
661
+ /**
662
+ * 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.
663
+ * For example, the start time of a class.
664
+ */
665
+ scheduledDate?: Date | null;
666
+ /** 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. */
667
+ numberOfParticipants?: number | null;
668
+ }
669
+ export interface PriceDescription {
670
+ /** __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). */
671
+ original?: string;
672
+ /**
673
+ * Price description translated into the buyer's language.
674
+ *
675
+ * Default: Same as `original`.
676
+ */
677
+ translated?: string | null;
678
+ }
679
+ export interface CatalogOverrideFields {
680
+ /** Item name. */
681
+ productName?: ProductName;
682
+ /** Item price **after** discounts. */
683
+ price?: string | null;
684
+ /** Item price **before** discounts. */
685
+ fullPrice?: string | null;
686
+ /** Item description lines. Used when displaying the line item to customers. */
687
+ descriptionLines?: DescriptionLine[];
688
+ /** Physical properties of the item. */
689
+ physicalProperties?: PhysicalProperties;
690
+ /** Item image. */
691
+ image?: Image;
692
+ /** Payment method selected for the item. */
693
+ paymentOption?: PaymentOption;
694
+ /** Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`. */
695
+ depositAmount?: string | null;
696
+ /**
697
+ * Whether to save the payment method on the order.
698
+ *
699
+ * Default: `false`
700
+ */
701
+ savePaymentMethod?: boolean | null;
702
+ }
703
+ export interface Image {
704
+ /** WixMedia image ID. */
705
+ id?: string;
706
+ /** Original image height. */
707
+ height?: number;
708
+ /** Original image width. */
709
+ width?: number;
710
+ /** Image alt text. Optional. */
711
+ altText?: string | null;
712
+ /** Image filename. Optional. */
713
+ filename?: string | null;
714
+ }
715
+ export interface PaymentOption {
716
+ /**
717
+ * + `FULL_PAYMENT_ONLINE`: The entire payment for this item happens as part of the checkout.
718
+ * + `FULL_PAYMENT_OFFLINE`: The entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
719
+ * + `MEMBERSHIP`: Payment for this item is done by charging a membership. When selected, `price` is `0`.
720
+ * + `DEPOSIT_ONLINE`: Partial payment to be paid upfront during the checkout. Initial amount to be paid for each line item is specified in `depositAmount`.
721
+ * + `MEMBERSHIP_OFFLINE`: Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`.
722
+ */
723
+ value?: PaymentOptionType;
724
+ }
725
+ export interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {
726
+ /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */
727
+ addressType?: TaxableAddressType;
728
+ }
729
+ /** @oneof */
730
+ export interface TaxableAddressTaxableAddressDataOneOf {
731
+ /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */
732
+ addressType?: TaxableAddressType;
733
+ }
734
+ export declare enum TaxableAddressType {
735
+ UNKNOWN_TAXABLE_ADDRESS = "UNKNOWN_TAXABLE_ADDRESS",
736
+ BUSINESS = "BUSINESS",
737
+ BILLING = "BILLING",
738
+ SHIPPING = "SHIPPING"
739
+ }
740
+ export interface ExtendedFields {
741
+ /**
742
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
743
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
744
+ *
745
+ * You can only access fields for which you have the appropriate permissions.
746
+ *
747
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
748
+ */
749
+ namespaces?: Record<string, Record<string, any>>;
750
+ }
751
+ export interface Policy {
752
+ /** Policy title - should be translated */
753
+ title?: string | null;
754
+ /** Policy content - should be translated */
755
+ content?: string;
756
+ }
757
+ /** Billing Info and shipping details */
758
+ export interface AddressWithContact {
759
+ /** Address. */
760
+ address?: ApiAddress;
761
+ /** Contact details. */
762
+ contactDetails?: FullAddressContactDetails;
763
+ }
764
+ /** Physical address */
765
+ export interface ApiAddress {
766
+ /** Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format. */
767
+ country?: string | null;
768
+ /** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format. */
769
+ subdivision?: string | null;
770
+ /** City name. */
771
+ city?: string | null;
772
+ /** Postal or zip code. */
773
+ postalCode?: string | null;
774
+ /** Street address. */
775
+ streetAddress?: StreetAddress;
776
+ /** Main address line (usually street name and number). */
777
+ addressLine?: string | null;
778
+ /** Free text providing more detailed address info. Usually contains apt, suite, floor. */
779
+ addressLine2?: string | null;
780
+ /**
781
+ * Country's full name.
782
+ * @readonly
783
+ */
784
+ countryFullname?: string | null;
785
+ /**
786
+ * Subdivision full-name.
787
+ * @readonly
788
+ */
789
+ subdivisionFullname?: string | null;
790
+ }
791
+ export interface StreetAddress {
792
+ /** Street number. */
793
+ number?: string;
794
+ /** Street name. */
795
+ name?: string;
796
+ }
797
+ export interface AddressLocation {
798
+ /** Address latitude. */
799
+ latitude?: number | null;
800
+ /** Address longitude. */
801
+ longitude?: number | null;
802
+ }
803
+ /** Full contact details for an address */
804
+ export interface FullAddressContactDetails {
805
+ /** First name. */
806
+ firstName?: string | null;
807
+ /** Last name. */
808
+ lastName?: string | null;
809
+ /** Phone number. */
810
+ phone?: string | null;
811
+ /** Company name. */
812
+ company?: string | null;
813
+ /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
814
+ vatId?: CommonVatId;
815
+ }
816
+ export interface CommonVatId {
817
+ /** Customer's tax ID. */
818
+ id?: string;
819
+ /**
820
+ * Tax type.
821
+ *
822
+ * Supported values:
823
+ * + `CPF`: for individual tax payers
824
+ * + `CNPJ`: for corporations
825
+ */
826
+ type?: CommonVatType;
827
+ }
828
+ /** tax info types */
829
+ export declare enum CommonVatType {
830
+ UNSPECIFIED = "UNSPECIFIED",
831
+ /** CPF - for individual tax payers. */
832
+ CPF = "CPF",
833
+ /** CNPJ - for corporations */
834
+ CNPJ = "CNPJ"
835
+ }
836
+ export interface ShippingInfo {
837
+ /** Shipping address and contact details. */
838
+ shippingDestination?: AddressWithContact;
839
+ /** Selected option out of the options allowed for the `region`. */
840
+ selectedCarrierServiceOption?: SelectedCarrierServiceOption;
841
+ /**
842
+ * Shipping region. Based on the address provided.
843
+ * @readonly
844
+ */
845
+ region?: ShippingRegion;
846
+ /**
847
+ * All carrier options for this shipping rule.
848
+ * @readonly
849
+ */
850
+ carrierServiceOptions?: CarrierServiceOption[];
851
+ }
852
+ export interface SelectedCarrierServiceOption {
853
+ /** Unique identifier of selected option. For example, "usps_std_overnight". */
854
+ code?: string;
855
+ /**
856
+ * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).
857
+ * For example, "Standard" or "First-Class Package International".
858
+ * @readonly
859
+ */
860
+ title?: string;
861
+ /**
862
+ * Delivery logistics.
863
+ * @readonly
864
+ */
865
+ logistics?: DeliveryLogistics;
866
+ /**
867
+ * Shipping costs.
868
+ * @readonly
869
+ */
870
+ cost?: SelectedCarrierServiceOptionPrices;
871
+ /**
872
+ * Were we able to find the requested shipping option, or otherwise we fallback to the default one (the first)
873
+ * @readonly
874
+ */
875
+ requestedShippingOption?: boolean;
876
+ /** Other charges */
877
+ otherCharges?: SelectedCarrierServiceOptionOtherCharge[];
878
+ /** This carrier's unique ID */
879
+ carrierId?: string | null;
880
+ /** Delivery solution allocations to different delivery carriers and delivery regions */
881
+ deliveryAllocations?: DeliveryAllocation[];
882
+ /** If the delivery solution is a partial and doesn't apply to all items. */
883
+ partial?: boolean | null;
884
+ }
885
+ export interface DeliveryLogistics {
886
+ /** Expected delivery time, in free text. For example, "3-5 business days". */
887
+ deliveryTime?: string | null;
888
+ /** Instructions for caller, e.g for pickup: "Please deliver during opening hours, and please don't park in disabled parking spot". */
889
+ instructions?: string | null;
890
+ /** Pickup details. */
891
+ pickupDetails?: PickupDetails;
892
+ }
893
+ export interface PickupDetails {
894
+ /** Pickup address. */
895
+ address?: ApiAddress;
896
+ /**
897
+ * Whether the pickup address is that of a business - this may effect tax calculation.
898
+ * @deprecated
899
+ */
900
+ businessLocation?: boolean;
901
+ /** Pickup method */
902
+ pickupMethod?: PickupMethod;
903
+ }
904
+ export declare enum PickupMethod {
905
+ UNKNOWN_METHOD = "UNKNOWN_METHOD",
906
+ STORE_PICKUP = "STORE_PICKUP",
907
+ PICKUP_POINT = "PICKUP_POINT"
908
+ }
909
+ export interface DeliveryTimeSlot {
910
+ /** starting time of the delivery time slot */
911
+ from?: Date | null;
912
+ /** ending time of the delivery time slot */
913
+ to?: Date | null;
914
+ }
915
+ export interface SelectedCarrierServiceOptionPrices {
916
+ /** Total shipping price, after discount and after tax. */
917
+ totalPriceAfterTax?: MultiCurrencyPrice;
918
+ /** Total price of shipping after discounts (when relevant), and before tax. */
919
+ totalPriceBeforeTax?: MultiCurrencyPrice;
920
+ /** Tax details. */
921
+ taxDetails?: ItemTaxFullDetails;
922
+ /** Shipping discount before tax. */
923
+ totalDiscount?: MultiCurrencyPrice;
924
+ /** Shipping price before discount and before tax. */
925
+ price?: MultiCurrencyPrice;
926
+ }
927
+ export interface SelectedCarrierServiceOptionOtherCharge {
928
+ /** Type of additional cost. */
929
+ type?: ChargeType;
930
+ /** Details of the charge, such as 'Full Coverage Insurance of up to 80% of value of shipment'. */
931
+ details?: string | null;
932
+ /** Price of added charge. */
933
+ cost?: SelectedCarrierServiceOptionPrices;
934
+ }
935
+ export declare enum ChargeType {
936
+ HANDLING_FEE = "HANDLING_FEE",
937
+ INSURANCE = "INSURANCE"
938
+ }
939
+ export interface DeliveryAllocation {
940
+ /** The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers */
941
+ deliveryCarrier?: Carrier;
942
+ /** The delivery region that are relevant for this delivery solution. */
943
+ deliveryRegion?: Region;
944
+ /** Populated if the delivery solution is a partially supplied by this carrier. */
945
+ applicableLineItems?: ApplicableLineItems;
946
+ }
947
+ export interface Carrier {
948
+ /** The carrier app id */
949
+ appId?: string | null;
950
+ /** Unique code that acts as an ID for a shipping rate. For example, `"usps_std_overnight"`. */
951
+ code?: string;
952
+ }
953
+ export interface Region {
954
+ /** The delivery region id. */
955
+ id?: string | null;
956
+ /** The delivery region name. */
957
+ name?: string | null;
958
+ }
959
+ export interface ApplicableLineItems {
960
+ /** Line items that the delivery solution is for. */
961
+ lineItemIds?: string[];
962
+ }
963
+ export interface ShippingRegion {
964
+ /**
965
+ * Shipping region ID.
966
+ * @readonly
967
+ */
968
+ id?: string;
969
+ /** Shipping region name. */
970
+ name?: string;
971
+ }
972
+ export interface CarrierServiceOption {
973
+ /** Carrier ID. */
974
+ carrierId?: string;
975
+ /** Shipping options offered by this carrier for this request. */
976
+ shippingOptions?: ShippingOption[];
977
+ }
978
+ export interface ShippingOption {
979
+ /**
980
+ * Unique code of provided shipping option like "usps_std_overnight".
981
+ * For legacy calculators this would be the UUID of the option.
982
+ */
983
+ code?: string;
984
+ /**
985
+ * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).
986
+ * For example, "Standard" or "First-Class Package International".
987
+ */
988
+ title?: string;
989
+ /** Delivery logistics. */
990
+ logistics?: DeliveryLogistics;
991
+ /** Sipping price information. */
992
+ cost?: ShippingPrice;
993
+ /** Delivery solution allocations to different delivery carriers and delivery regions */
994
+ deliveryAllocations?: DeliveryAllocation[];
995
+ /** If the delivery solution is a partial and doesn't apply to all items. */
996
+ partial?: boolean | null;
997
+ }
998
+ export interface ShippingPrice {
999
+ /** Shipping price. */
1000
+ price?: MultiCurrencyPrice;
1001
+ /** Other costs such as insurance, handling & packaging for fragile items, etc. */
1002
+ otherCharges?: OtherCharge[];
1003
+ }
1004
+ export interface OtherCharge {
1005
+ /** Type of additional cost. */
1006
+ type?: ChargeType;
1007
+ /** Price of added cost. */
1008
+ price?: MultiCurrencyPrice;
1009
+ }
1010
+ export interface BuyerInfo extends BuyerInfoIdOneOf {
1011
+ /**
1012
+ * Visitor ID (if site visitor is **not** a member).
1013
+ * @readonly
1014
+ */
1015
+ visitorId?: string;
1016
+ /**
1017
+ * Member ID (if site visitor is a site member).
1018
+ * @readonly
1019
+ */
1020
+ memberId?: string;
1021
+ /**
1022
+ * Contact ID. Auto-created if one does not yet exist. For more information, see [Contacts API](https://dev.wix.com/api/rest/contacts/contacts/introduction).
1023
+ * @readonly
1024
+ */
1025
+ contactId?: string | null;
1026
+ /** Buyer email address. */
1027
+ email?: string | null;
1028
+ }
1029
+ /** @oneof */
1030
+ export interface BuyerInfoIdOneOf {
1031
+ /**
1032
+ * Visitor ID (if site visitor is **not** a member).
1033
+ * @readonly
1034
+ */
1035
+ visitorId?: string;
1036
+ /**
1037
+ * Member ID (if site visitor is a site member).
1038
+ * @readonly
1039
+ */
1040
+ memberId?: string;
1041
+ }
1042
+ export interface PriceSummary {
1043
+ /** Subtotal of all line items, before discounts and before tax. */
1044
+ subtotal?: MultiCurrencyPrice;
1045
+ /** Total shipping price, before discounts and before tax. */
1046
+ shipping?: MultiCurrencyPrice;
1047
+ /** Total tax. */
1048
+ tax?: MultiCurrencyPrice;
1049
+ /** Total calculated discount value. */
1050
+ discount?: MultiCurrencyPrice;
1051
+ /** Total price after discounts, gift cards, and tax. */
1052
+ total?: MultiCurrencyPrice;
1053
+ /** Total additional fees price before tax. */
1054
+ additionalFees?: MultiCurrencyPrice;
1055
+ }
1056
+ export interface CalculationErrors extends CalculationErrorsShippingCalculationErrorOneOf {
1057
+ /** General shipping calculation error. */
1058
+ generalShippingCalculationError?: Details;
1059
+ /** Carrier errors. */
1060
+ carrierErrors?: CarrierErrors;
1061
+ /** Tax calculation error. */
1062
+ taxCalculationError?: Details;
1063
+ /** Coupon calculation error. */
1064
+ couponCalculationError?: Details;
1065
+ /** Gift card calculation error. */
1066
+ giftCardCalculationError?: Details;
1067
+ /** Order validation errors. */
1068
+ orderValidationErrors?: ApplicationError[];
1069
+ /**
1070
+ * Membership payment methods calculation errors
1071
+ * For example, will indicate that a line item that must be paid with membership payment doesn't have one or selected memberships are invalid
1072
+ */
1073
+ membershipError?: Details;
1074
+ /** Discount Rule calculation error. */
1075
+ discountsCalculationError?: Details;
1076
+ }
1077
+ /** @oneof */
1078
+ export interface CalculationErrorsShippingCalculationErrorOneOf {
1079
+ /** General shipping calculation error. */
1080
+ generalShippingCalculationError?: Details;
1081
+ /** Carrier errors. */
1082
+ carrierErrors?: CarrierErrors;
1083
+ }
1084
+ export interface Details extends DetailsKindOneOf {
1085
+ applicationError?: ApplicationError;
1086
+ validationError?: ValidationError;
1087
+ systemError?: SystemError;
1088
+ /**
1089
+ * deprecated in API's - to enable migration from rendering arbitrary tracing to rest response
1090
+ * @deprecated
1091
+ */
1092
+ tracing?: Record<string, string>;
1093
+ }
1094
+ /** @oneof */
1095
+ export interface DetailsKindOneOf {
1096
+ applicationError?: ApplicationError;
1097
+ validationError?: ValidationError;
1098
+ systemError?: SystemError;
1099
+ }
1100
+ export interface ApplicationError {
1101
+ /** Error code. */
1102
+ code?: string;
1103
+ /** Description of the error. */
1104
+ description?: string;
1105
+ /** Data related to the error. */
1106
+ data?: Record<string, any> | null;
1107
+ }
1108
+ /**
1109
+ * example result:
1110
+ * {
1111
+ * "fieldViolations": [
1112
+ * {
1113
+ * "field": "fieldA",
1114
+ * "description": "invalid music note. supported notes: [do,re,mi,fa,sol,la,ti]",
1115
+ * "violatedRule": "OTHER",
1116
+ * "ruleName": "INVALID_NOTE",
1117
+ * "data": {
1118
+ * "value": "FI"
1119
+ * }
1120
+ * },
1121
+ * {
1122
+ * "field": "fieldB",
1123
+ * "description": "field value out of range. supported range: [0-20]",
1124
+ * "violatedRule": "MAX",
1125
+ * "data": {
1126
+ * "threshold": 20
1127
+ * }
1128
+ * },
1129
+ * {
1130
+ * "field": "fieldC",
1131
+ * "description": "invalid phone number. provide a valid phone number of size: [7-12], supported characters: [0-9, +, -, (, )]",
1132
+ * "violatedRule": "FORMAT",
1133
+ * "data": {
1134
+ * "type": "PHONE"
1135
+ * }
1136
+ * }
1137
+ * ]
1138
+ * }
1139
+ */
1140
+ export interface ValidationError {
1141
+ fieldViolations?: FieldViolation[];
1142
+ }
1143
+ export declare enum RuleType {
1144
+ VALIDATION = "VALIDATION",
1145
+ OTHER = "OTHER",
1146
+ MAX = "MAX",
1147
+ MIN = "MIN",
1148
+ MAX_LENGTH = "MAX_LENGTH",
1149
+ MIN_LENGTH = "MIN_LENGTH",
1150
+ MAX_SIZE = "MAX_SIZE",
1151
+ MIN_SIZE = "MIN_SIZE",
1152
+ FORMAT = "FORMAT",
1153
+ DECIMAL_LTE = "DECIMAL_LTE",
1154
+ DECIMAL_GTE = "DECIMAL_GTE",
1155
+ DECIMAL_LT = "DECIMAL_LT",
1156
+ DECIMAL_GT = "DECIMAL_GT",
1157
+ DECIMAL_MAX_SCALE = "DECIMAL_MAX_SCALE",
1158
+ INVALID_ENUM_VALUE = "INVALID_ENUM_VALUE",
1159
+ REQUIRED_FIELD = "REQUIRED_FIELD",
1160
+ FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
1161
+ ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT",
1162
+ EXACT_LENGTH = "EXACT_LENGTH",
1163
+ EXACT_SIZE = "EXACT_SIZE",
1164
+ REQUIRED_ONE_OF_FIELD = "REQUIRED_ONE_OF_FIELD"
1165
+ }
1166
+ export interface FieldViolation {
1167
+ field?: string;
1168
+ description?: string;
1169
+ violatedRule?: RuleType;
1170
+ /** applicable when violated_rule=OTHER */
1171
+ ruleName?: string | null;
1172
+ data?: Record<string, any> | null;
1173
+ }
1174
+ export interface SystemError {
1175
+ /** Error code. */
1176
+ errorCode?: string | null;
1177
+ }
1178
+ export interface CarrierErrors {
1179
+ /** Carrier errors. */
1180
+ errors?: CarrierError[];
1181
+ }
1182
+ export interface CarrierError {
1183
+ /** Carrier ID. */
1184
+ carrierId?: string;
1185
+ /** Error details. */
1186
+ error?: Details;
1187
+ }
1188
+ export interface GiftCard {
1189
+ /**
1190
+ * Gift Card ID.
1191
+ * @deprecated
1192
+ */
1193
+ id?: string;
1194
+ /** Gift card obfuscated code. */
1195
+ obfuscatedCode?: string;
1196
+ /** Gift card value. */
1197
+ amount?: MultiCurrencyPrice;
1198
+ /** App ID of the gift card provider. */
1199
+ appId?: string;
1200
+ /**
1201
+ * External ID in the gift card provider's system.
1202
+ * Used for integration and tracking across different platforms.
1203
+ */
1204
+ externalId?: string | null;
1205
+ }
1206
+ export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
1207
+ /** Coupon details. */
1208
+ coupon?: Coupon;
1209
+ /** Merchant discount. */
1210
+ merchantDiscount?: MerchantDiscount;
1211
+ /** Discount rule */
1212
+ discountRule?: DiscountRule;
1213
+ /** Discount type. */
1214
+ discountType?: DiscountType;
1215
+ /**
1216
+ * IDs of line items the discount applies to.
1217
+ * @deprecated IDs of line items the discount applies to.
1218
+ * @replacedBy line_items_discounts
1219
+ * @targetRemovalDate 2024-06-01
1220
+ */
1221
+ lineItemIds?: string[];
1222
+ }
1223
+ /** @oneof */
1224
+ export interface AppliedDiscountDiscountSourceOneOf {
1225
+ /** Coupon details. */
1226
+ coupon?: Coupon;
1227
+ /** Merchant discount. */
1228
+ merchantDiscount?: MerchantDiscount;
1229
+ /** Discount rule */
1230
+ discountRule?: DiscountRule;
1231
+ }
1232
+ export declare enum DiscountType {
1233
+ GLOBAL = "GLOBAL",
1234
+ SPECIFIC_ITEMS = "SPECIFIC_ITEMS",
1235
+ SHIPPING = "SHIPPING"
1236
+ }
1237
+ /** Coupon */
1238
+ export interface Coupon {
1239
+ /** Coupon ID. */
1240
+ id?: string;
1241
+ /** Coupon code. */
1242
+ code?: string;
1243
+ /** Coupon value. */
1244
+ amount?: MultiCurrencyPrice;
1245
+ /** Coupon name. */
1246
+ name?: string;
1247
+ }
1248
+ export interface MerchantDiscount {
1249
+ /** Discount value. */
1250
+ amount?: MultiCurrencyPrice;
1251
+ /** Discount Percentage. Will be calculated from items price before other discounts. */
1252
+ percentage?: number | null;
1253
+ }
1254
+ export interface DiscountRule {
1255
+ /** Discount rule ID */
1256
+ id?: string;
1257
+ /** Discount rule name */
1258
+ name?: DiscountRuleName;
1259
+ /** Discount value. */
1260
+ amount?: MultiCurrencyPrice;
1261
+ }
1262
+ export interface DiscountRuleName {
1263
+ /** Original discount rule name (in site's default language). */
1264
+ original?: string;
1265
+ /** Translated discount rule name according to buyer language. Defaults to `original` when not provided. */
1266
+ translated?: string | null;
1267
+ }
1268
+ export interface LineItemDiscount {
1269
+ /** ID of line item the discount applies to. */
1270
+ id?: string;
1271
+ /** Discount value. */
1272
+ totalDiscountAmount?: MultiCurrencyPrice;
1273
+ }
1274
+ export interface CustomField {
1275
+ /** Custom field value. */
1276
+ value?: any;
1277
+ /** Custom field title. */
1278
+ title?: string;
1279
+ /** Translated custom field title. */
1280
+ translatedTitle?: string | null;
1281
+ }
1282
+ export declare enum WeightUnit {
1283
+ /** Weight unit can't be classified, due to an error */
1284
+ UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
1285
+ /** Kilograms */
1286
+ KG = "KG",
1287
+ /** Pounds */
1288
+ LB = "LB"
1289
+ }
1290
+ export interface TaxSummary {
1291
+ /**
1292
+ * Amount for which tax is calculated, added from line items.
1293
+ * @readonly
1294
+ */
1295
+ taxableAmount?: MultiCurrencyPrice;
1296
+ /**
1297
+ * Calculated tax, added from line items.
1298
+ * @readonly
1299
+ */
1300
+ totalTax?: MultiCurrencyPrice;
1301
+ /**
1302
+ * Tax calculator that was active when the order was created.
1303
+ * @deprecated
1304
+ */
1305
+ calculationDetails?: TaxCalculationDetails;
1306
+ }
1307
+ export interface TaxCalculationDetails extends TaxCalculationDetailsCalculationDetailsOneOf {
1308
+ /** Reason the manual calculation was used. */
1309
+ manualRateReason?: ManualCalculationReason;
1310
+ /** Details of the fallback rate calculation. */
1311
+ autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;
1312
+ /** Rate calculation type. */
1313
+ rateType?: RateType;
1314
+ }
1315
+ /** @oneof */
1316
+ export interface TaxCalculationDetailsCalculationDetailsOneOf {
1317
+ /** Reason the manual calculation was used. */
1318
+ manualRateReason?: ManualCalculationReason;
1319
+ /** Details of the fallback rate calculation. */
1320
+ autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;
1321
+ }
1322
+ export declare enum RateType {
1323
+ /** no tax being collected for this request due to location of purchase */
1324
+ NO_TAX_COLLECTED = "NO_TAX_COLLECTED",
1325
+ /** manual rate used for calculation */
1326
+ MANUAL_RATE = "MANUAL_RATE",
1327
+ /** autotax rate used for calculation */
1328
+ AUTO_RATE = "AUTO_RATE",
1329
+ /** fallback rate used for calculation */
1330
+ FALLBACK_RATE = "FALLBACK_RATE"
1331
+ }
1332
+ export declare enum ManualCalculationReason {
1333
+ /** user set calculator in Business Manager to be Manual */
1334
+ GLOBAL_SETTING_TO_MANUAL = "GLOBAL_SETTING_TO_MANUAL",
1335
+ /** specific region is on manual even though Global setting is Auto-tax */
1336
+ REGION_SETTING_TO_MANUAL = "REGION_SETTING_TO_MANUAL"
1337
+ }
1338
+ export interface AutoTaxFallbackCalculationDetails {
1339
+ /** reason for fallback */
1340
+ fallbackReason?: FallbackReason;
1341
+ /** invalid request (i.e. address), timeout, internal error, license error, and others will be encoded here */
1342
+ error?: ApplicationError;
1343
+ }
1344
+ export declare enum FallbackReason {
1345
+ /** auto-tax failed to be calculated */
1346
+ AUTO_TAX_FAILED = "AUTO_TAX_FAILED",
1347
+ /** auto-tax was temporarily deactivated on a system-level */
1348
+ AUTO_TAX_DEACTIVATED = "AUTO_TAX_DEACTIVATED"
1349
+ }
1350
+ /**
1351
+ * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
1352
+ * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.
1353
+ */
1354
+ export interface AggregatedTaxBreakdown {
1355
+ /** The name of the tax against which this tax amount was calculated. */
1356
+ taxName?: string;
1357
+ /** The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws. */
1358
+ taxType?: string;
1359
+ /** The name of the jurisdiction in which this tax detail applies. */
1360
+ jurisdiction?: string;
1361
+ /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
1362
+ jurisdictionTypeEnum?: JurisdictionType;
1363
+ /** The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.000 signifies 200% tax. (Decimal value) */
1364
+ rate?: string;
1365
+ /** The sum of all the tax from line items that calculated by the tax identifiers. */
1366
+ aggregatedTaxAmount?: MultiCurrencyPrice;
1367
+ }
1368
+ export declare enum ChannelType {
1369
+ /** Unspecified sales channel. This value is not supported. */
1370
+ UNSPECIFIED = "UNSPECIFIED",
1371
+ /** A web client. */
1372
+ WEB = "WEB",
1373
+ /** [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395). */
1374
+ POS = "POS",
1375
+ /** [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop). */
1376
+ EBAY = "EBAY",
1377
+ /** [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop). */
1378
+ AMAZON = "AMAZON",
1379
+ /** Other sales platform. */
1380
+ OTHER_PLATFORM = "OTHER_PLATFORM",
1381
+ /** [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview). */
1382
+ WIX_APP_STORE = "WIX_APP_STORE",
1383
+ /** 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) */
1384
+ WIX_INVOICES = "WIX_INVOICES",
1385
+ /** Wix merchant backoffice. */
1386
+ BACKOFFICE_MERCHANT = "BACKOFFICE_MERCHANT",
1387
+ /** Wish sales channel. */
1388
+ WISH = "WISH",
1389
+ /** [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass). */
1390
+ CLASS_PASS = "CLASS_PASS",
1391
+ /** Global-E sales channel. */
1392
+ GLOBAL_E = "GLOBAL_E",
1393
+ /** [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops). */
1394
+ FACEBOOK = "FACEBOOK",
1395
+ /** [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel). */
1396
+ ETSY = "ETSY",
1397
+ /** [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel). */
1398
+ TIKTOK = "TIKTOK",
1399
+ /** [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app). */
1400
+ FAIRE_COM = "FAIRE_COM"
1401
+ }
1402
+ export interface CreatedBy extends CreatedByIdOneOf {
1403
+ /**
1404
+ * User ID - when the order was created by a Wix user on behalf of a buyer.
1405
+ * For example, via POS (point of service).
1406
+ */
1407
+ userId?: string;
1408
+ /** Member ID - when the order was created by a **logged in** site visitor. */
1409
+ memberId?: string;
1410
+ /** Visitor ID - when the order was created by a site visitor that was **not** logged in. */
1411
+ visitorId?: string;
1412
+ /** App ID - when the order was created by an external application or Wix service. */
1413
+ appId?: string;
1414
+ }
1415
+ /** @oneof */
1416
+ export interface CreatedByIdOneOf {
1417
+ /**
1418
+ * User ID - when the order was created by a Wix user on behalf of a buyer.
1419
+ * For example, via POS (point of service).
1420
+ */
1421
+ userId?: string;
1422
+ /** Member ID - when the order was created by a **logged in** site visitor. */
1423
+ memberId?: string;
1424
+ /** Visitor ID - when the order was created by a site visitor that was **not** logged in. */
1425
+ visitorId?: string;
1426
+ /** App ID - when the order was created by an external application or Wix service. */
1427
+ appId?: string;
1428
+ }
1429
+ /** Reserved for internal use. */
1430
+ export interface MembershipOptions {
1431
+ /**
1432
+ * Reserved for internal use.
1433
+ * @readonly
1434
+ */
1435
+ eligibleMemberships?: Membership[];
1436
+ /**
1437
+ * Reserved for internal use.
1438
+ * @readonly
1439
+ */
1440
+ invalidMemberships?: InvalidMembership[];
1441
+ /** Selected membership to apply to this checkout. */
1442
+ selectedMemberships?: SelectedMemberships;
1443
+ }
1444
+ export interface Membership {
1445
+ /** Membership ID. */
1446
+ id?: string;
1447
+ /** ID of the application providing this payment option. */
1448
+ appId?: string;
1449
+ /** The name of this membership. */
1450
+ name?: MembershipName;
1451
+ /** Line item IDs which are "paid" for by this membership. */
1452
+ lineItemIds?: string[];
1453
+ /** Optional - For a membership that has limited credits, information about credit usage. */
1454
+ credits?: MembershipPaymentCredits;
1455
+ /** Optional - TMembership expiry date. */
1456
+ expirationDate?: Date | null;
1457
+ /** Additional data about this membership. */
1458
+ additionalData?: Record<string, any> | null;
1459
+ }
1460
+ export interface MembershipName {
1461
+ /** Membership name. */
1462
+ original?: string;
1463
+ /** Translated membership name. Defaults to `original` when not provided. */
1464
+ translated?: string | null;
1465
+ }
1466
+ export interface MembershipPaymentCredits {
1467
+ /** Membership's total amount of credits. */
1468
+ total?: number;
1469
+ /** Membership's remaining amount of credits. */
1470
+ remaining?: number;
1471
+ }
1472
+ export interface InvalidMembership {
1473
+ /** Membership details. */
1474
+ membership?: Membership;
1475
+ /** Reason why this membership is invalid and cannot be used. */
1476
+ reason?: string;
1477
+ }
1478
+ export interface SelectedMemberships {
1479
+ /** Selected memberships. */
1480
+ memberships?: SelectedMembership[];
1481
+ }
1482
+ export interface SelectedMembership {
1483
+ /** Membership ID. */
1484
+ id?: string;
1485
+ /** ID of the app providing this payment option. */
1486
+ appId?: string;
1487
+ /** IDs of the line items this membership applies to. */
1488
+ lineItemIds?: string[];
1489
+ }
1490
+ export interface AdditionalFee {
1491
+ /** Additional fee's unique code (or ID) for future processing. */
1492
+ code?: string | null;
1493
+ /** Translated additional fee's name. */
1494
+ name?: string;
1495
+ /** Additional fee's price. */
1496
+ price?: MultiCurrencyPrice;
1497
+ /** Tax details. */
1498
+ taxDetails?: ItemTaxFullDetails;
1499
+ /** Provider's app id. */
1500
+ providerAppId?: string | null;
1501
+ /** Additional fee's price before tax. */
1502
+ priceBeforeTax?: MultiCurrencyPrice;
1503
+ /** Additional fee's price after tax. */
1504
+ priceAfterTax?: MultiCurrencyPrice;
1505
+ /**
1506
+ * Optional - Line items associated with this additional fee.
1507
+ * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.
1508
+ */
1509
+ lineItemIds?: string[];
1510
+ /** the source the additional fee was added from */
1511
+ source?: AdditionalFeeSource;
1512
+ }
1513
+ export declare enum AdditionalFeeSource {
1514
+ UNKNOWN_ADDITIONAL_FEE_SOURCE = "UNKNOWN_ADDITIONAL_FEE_SOURCE",
1515
+ /** The additional fee was added by an additional fee service plugin */
1516
+ SERVICE_PLUGIN = "SERVICE_PLUGIN",
1517
+ /** The additional fee was added on the item either via the catalog or on custom line item */
1518
+ ITEM = "ITEM",
1519
+ /** The additional fee was added manually on the request */
1520
+ MANUAL = "MANUAL"
1521
+ }
1522
+ export interface ConversionInfo {
1523
+ /**
1524
+ * The site currency.
1525
+ * @readonly
1526
+ */
1527
+ siteCurrency?: string;
1528
+ /**
1529
+ * The rate used when converting from the site currency to the checkout currency.
1530
+ * @readonly
1531
+ */
1532
+ conversionRate?: string;
1533
+ }
1534
+ export interface Violation {
1535
+ /** 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. */
1536
+ severity?: Severity;
1537
+ /** Target location on a checkout or cart page where the violation will be displayed. */
1538
+ target?: Target;
1539
+ /** 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>`. */
1540
+ description?: string | null;
1541
+ }
1542
+ export declare enum Severity {
1543
+ /** The user is allowed to move forward in the flow. */
1544
+ WARNING = "WARNING",
1545
+ /**
1546
+ * The user is blocked from moving forward in the flow.
1547
+ * For example, if callerContext is CART - moving to checkout is blocked. if callerContext is CHECKOUT, placing an order is blocked.
1548
+ */
1549
+ ERROR = "ERROR"
1550
+ }
1551
+ export interface Target extends TargetTargetTypeOneOf {
1552
+ /** General (other) violation. */
1553
+ other?: Other;
1554
+ /** Specific line item violation. */
1555
+ lineItem?: TargetLineItem;
1556
+ }
1557
+ /** @oneof */
1558
+ export interface TargetTargetTypeOneOf {
1559
+ /** General (other) violation. */
1560
+ other?: Other;
1561
+ /** Specific line item violation. */
1562
+ lineItem?: TargetLineItem;
1563
+ }
1564
+ /** Available locations on the webpage */
1565
+ export declare enum NameInOther {
1566
+ /** Default location, in case no specific location is specified. */
1567
+ OTHER_DEFAULT = "OTHER_DEFAULT"
1568
+ }
1569
+ /** Available locations on the line item */
1570
+ export declare enum NameInLineItem {
1571
+ /** Default location, in case no specific location is specified. */
1572
+ LINE_ITEM_DEFAULT = "LINE_ITEM_DEFAULT"
1573
+ }
1574
+ export declare enum SuggestedFix {
1575
+ /** No suggested fix is specified. The user should refer to the violation description to resolve the issue. */
1576
+ UNKNOWN_SUGGESTED_FIX = "UNKNOWN_SUGGESTED_FIX",
1577
+ /** The line item should be removed from the cart or checkout to resolve the violation. */
1578
+ REMOVE_LINE_ITEM = "REMOVE_LINE_ITEM"
1579
+ }
1580
+ /** General (other) violation. */
1581
+ export interface Other {
1582
+ /** Location on a checkout or a cart page where a general (other) violation will be displayed. */
1583
+ name?: NameInOther;
1584
+ }
1585
+ /** Specific line item violation. */
1586
+ export interface TargetLineItem {
1587
+ /** Location on a checkout or a cart page where the specific line item violation will be displayed. */
1588
+ name?: NameInLineItem;
1589
+ /** ID of the line item containing the violation. */
1590
+ id?: string | null;
1591
+ }
1592
+ export interface CustomSettings {
1593
+ /**
1594
+ * Whether to restrict the option to add or remove a gift card on the checkout page.
1595
+ *
1596
+ * Default: `false`
1597
+ */
1598
+ lockGiftCard?: boolean;
1599
+ /**
1600
+ * Whether to restrict the option to add or remove a coupon code on the checkout page.
1601
+ *
1602
+ * Default: `false`
1603
+ */
1604
+ lockCouponCode?: boolean;
1605
+ /**
1606
+ * Whether to disable policy agreement checkout in the checkout page
1607
+ *
1608
+ * Default: `false`
1609
+ */
1610
+ disabledPolicyAgreementCheckbox?: boolean;
1611
+ /**
1612
+ * Whether to disable manual payment option for this checkout.
1613
+ *
1614
+ * Default: `false`
1615
+ */
1616
+ disabledManualPayment?: boolean;
1617
+ }
1618
+ export interface CustomContentReference {
1619
+ /**
1620
+ * ID of the app providing the content.
1621
+ *
1622
+ * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
1623
+ */
1624
+ appId?: string;
1625
+ /**
1626
+ * ID of the component within the app it belongs to.
1627
+ *
1628
+ * You can get your component's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
1629
+ */
1630
+ componentId?: string;
1631
+ }
1632
+ export interface ExternalReference {
1633
+ /**
1634
+ * ID of the app associated with the purchase flow.
1635
+ * For example, the Wix Pay Links app ID.
1636
+ */
1637
+ appId?: string;
1638
+ /**
1639
+ * Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.
1640
+ * For example, a Wix Pay Link ID.
1641
+ */
1642
+ resourceId?: string | null;
1643
+ }
1644
+ export interface UpdatedCheckoutMessage {
1645
+ /** Previous checkout. */
1646
+ oldCheckout?: Checkout;
1647
+ /** Updated checkout. */
1648
+ updatedCheckout?: Checkout;
1649
+ }
1650
+ export interface CreateCheckoutRequest {
1651
+ /** Checkout information. */
1652
+ checkoutInfo?: Checkout;
1653
+ /** Coupon code. */
1654
+ couponCode?: string | null;
1655
+ /** Catalog line items to add to the checkout. */
1656
+ lineItems?: LineItem[];
1657
+ /**
1658
+ * Custom line items to add to the checkout. Custom line items don't trigger the Catalog service plugin.
1659
+ *
1660
+ * To access and manage custom line items, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
1661
+ * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
1662
+ */
1663
+ customLineItems?: CustomLineItem[];
1664
+ /**
1665
+ * Sales channel that submitted the order.
1666
+ * + `"UNSPECIFIED"`: Unspecified sales channel. This value is not supported.
1667
+ * + `"WEB"`: A web client.
1668
+ * + `"POS"`: [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395)
1669
+ * + `"EBAY"`: [eBay](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop)
1670
+ * + `"AMAZON"`: [Amazon](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop)
1671
+ * + `"WISH"`: [Wish](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-a-wish-shop)
1672
+ * + `"WIX_INVOICES"`: 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)
1673
+ * + `"WIX_APP_STORE"`: [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview)
1674
+ * + `"BACKOFFICE_MERCHANT"`: Wix merchant backoffice
1675
+ * + `"OTHER_PLATFORM"`: Other sales platform.
1676
+ */
1677
+ channelType: ChannelType;
1678
+ /**
1679
+ * Gift card code.
1680
+ *
1681
+ * The checkout can only hold 1 `giftCardCode` at a time. If an additional `giftCardCode` is added, it will override the existing `giftCardCode`.
1682
+ *
1683
+ * >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/wix-stores-setting-up-wix-gift-cards).
1684
+ */
1685
+ giftCardCode?: string | null;
1686
+ /**
1687
+ * `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.
1688
+ *
1689
+ * This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the [Abandoned Checkout API](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/abandoned-checkout/introduction)
1690
+ * to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a
1691
+ * standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.
1692
+ */
1693
+ overrideCheckoutUrl?: string | null;
1694
+ }
1695
+ export interface CustomLineItem {
1696
+ /**
1697
+ * Custom line item quantity.
1698
+ *
1699
+ * Min: `1`
1700
+ * Max: `100000`
1701
+ */
1702
+ quantity?: number;
1703
+ /**
1704
+ * Custom line item price.
1705
+ *
1706
+ * Must be a number or a decimal without symbols.
1707
+ */
1708
+ price?: string;
1709
+ /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
1710
+ priceDescription?: PriceDescription;
1711
+ /** Custom line item description lines. Used for display purposes for the cart, checkout and order. */
1712
+ descriptionLines?: DescriptionLine[];
1713
+ /** Custom line item's media. */
1714
+ media?: Image;
1715
+ /**
1716
+ * Custom line item ID. If passed, `id` must be unique.
1717
+ *
1718
+ * Default: auto-generated ID
1719
+ */
1720
+ id?: string | null;
1721
+ /** Tax group ID for this custom line item. */
1722
+ taxGroupId?: string | null;
1723
+ /** Name of the item or product. */
1724
+ productName?: ProductName;
1725
+ /** 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. */
1726
+ url?: PageUrlV2;
1727
+ /** Item type. Either a preset type or custom. */
1728
+ itemType?: ItemType;
1729
+ /** Item price **before** catalog-defined discount. Defaults to `price` when not provided. */
1730
+ fullPrice?: string | null;
1731
+ /**
1732
+ * Item quantity available for purchase. Only return this if inventory is managed.
1733
+ * Not returning this field means that the buyer can "infinitely" tick up the number of items in the cart.
1734
+ */
1735
+ quantityAvailable?: number | null;
1736
+ /** Physical properties of the item. */
1737
+ physicalProperties?: PhysicalProperties;
1738
+ /**
1739
+ * Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.
1740
+ *
1741
+ * + `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout.
1742
+ * + `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
1743
+ * + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.
1744
+ * + `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.
1745
+ */
1746
+ paymentOption?: PaymentOptionType;
1747
+ /**
1748
+ * Service properties. When relevant, this contains information such as date and number of participants.
1749
+ * Used, among other things, when checking for valid memberships.
1750
+ */
1751
+ serviceProperties?: ServiceProperties;
1752
+ /**
1753
+ * In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.
1754
+ *
1755
+ * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.
1756
+ * + In most cases, this field is the same as `catalogReference.catalogItemId`.
1757
+ * + Used in membership validation.
1758
+ */
1759
+ rootCatalogItemId?: string | null;
1760
+ /**
1761
+ * Partial payment for the given item to be paid upfront during the checkout.
1762
+ *
1763
+ * Eligible for catalog items with type `DEPOSIT_ONLINE`.
1764
+ * When omitted, the item's price will not be split and is expected to be paid in a single installment.
1765
+ */
1766
+ depositAmount?: string | null;
1767
+ /** 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. */
1768
+ catalogReference?: CatalogReference;
1769
+ /**
1770
+ * Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.
1771
+ * @readonly
1772
+ */
1773
+ consentRequiredPaymentPolicy?: string | null;
1774
+ /**
1775
+ * Whether to save the payment method on the order.
1776
+ *
1777
+ * Default: `false`
1778
+ * @readonly
1779
+ */
1780
+ savePaymentMethod?: boolean;
1781
+ }
1782
+ export interface MerchantDiscountInput {
1783
+ /** Discount amount. */
1784
+ amount?: string;
1785
+ /** IDs of line items the discount applies to. */
1786
+ lineItemIds?: string[];
1787
+ }
1788
+ export interface CreateCheckoutResponse {
1789
+ /** Newly created checkout. */
1790
+ checkout?: Checkout;
1791
+ }
1792
+ export interface ShippingCalculationErrorData extends ShippingCalculationErrorDataShippingCalculationErrorOneOf {
1793
+ generalShippingCalculationError?: Details;
1794
+ carrierErrors?: CarrierErrors;
1795
+ }
1796
+ /** @oneof */
1797
+ export interface ShippingCalculationErrorDataShippingCalculationErrorOneOf {
1798
+ generalShippingCalculationError?: Details;
1799
+ carrierErrors?: CarrierErrors;
1800
+ }
1801
+ export interface GetCheckoutRequest {
1802
+ /** Checkout ID. */
1803
+ id: string;
1804
+ }
1805
+ export interface GetCheckoutResponse {
1806
+ /** The requested checkout. */
1807
+ checkout?: Checkout;
1808
+ }
1809
+ export interface GetCheckoutWithAllExtendedFieldsRequest {
1810
+ /** Checkout ID. */
1811
+ id?: string;
1812
+ }
1813
+ export interface GetCheckoutWithAllExtendedFieldsResponse {
1814
+ /** The requested checkout. */
1815
+ checkout?: Checkout;
1816
+ }
1817
+ export interface GetCheckoutByCartIdRequest {
1818
+ /** Cart ID. */
1819
+ id: string;
1820
+ }
1821
+ export interface GetCheckoutByCartIdResponse {
1822
+ /** The requested checkout. */
1823
+ checkout?: Checkout;
1824
+ }
1825
+ export interface GetWixCheckoutURLRequest {
1826
+ /** Checkout ID. */
1827
+ id: string;
1828
+ }
1829
+ export interface GetWixCheckoutURLResponse {
1830
+ /** Checkout URL. */
1831
+ checkoutUrl?: string;
1832
+ }
1833
+ export interface GetCheckoutURLRequest {
1834
+ /** Checkout ID. */
1835
+ id: string;
1836
+ }
1837
+ export interface GetCheckoutURLResponse {
1838
+ /** Checkout URL. */
1839
+ checkoutUrl?: string;
1840
+ }
1841
+ export interface UpdateCheckoutRequest {
1842
+ /** Checkout information. */
1843
+ checkout: Checkout;
1844
+ /**
1845
+ * Coupon code.
1846
+ *
1847
+ * The checkout can only hold 1 `couponCode` at a time. If an additional `couponCode` is added, it will override the existing `couponCode`.
1848
+ */
1849
+ couponCode?: string | null;
1850
+ /** Gift card code. */
1851
+ giftCardCode?: string | null;
1852
+ /**
1853
+ * `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.
1854
+ *
1855
+ * This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the [Abandoned Checkout API](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/abandoned-checkout/introduction)
1856
+ * to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a
1857
+ * standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.
1858
+ */
1859
+ overrideCheckoutUrl?: string | null;
1860
+ /** Catalog line items. */
1861
+ lineItems?: LineItem[];
1862
+ /**
1863
+ * Custom line items. Custom line items don't trigger the Catalog service plugin.
1864
+ *
1865
+ * To access and manage custom line items, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
1866
+ * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
1867
+ */
1868
+ customLineItems?: CustomLineItem[];
1869
+ }
1870
+ export interface UpdateCheckoutResponse {
1871
+ /** Updated checkout. */
1872
+ checkout?: Checkout;
1873
+ }
1874
+ export interface RemoveCouponRequest {
1875
+ /** ID of the checkout to remove the coupon from. */
1876
+ id: string;
1877
+ }
1878
+ export interface RemoveCouponResponse {
1879
+ /** Updated checkout after removal of coupon. */
1880
+ checkout?: Checkout;
1881
+ }
1882
+ export interface RemoveGiftCardRequest {
1883
+ /** ID of the checkout to remove the gift card from. */
1884
+ id: string;
1885
+ }
1886
+ export interface RemoveGiftCardResponse {
1887
+ /** Updated checkout after removal of gift card. */
1888
+ checkout?: Checkout;
1889
+ }
1890
+ export interface RemoveOverrideCheckoutUrlRequest {
1891
+ /** ID of the checkout to remove the override checkout url from. */
1892
+ id: string;
1893
+ }
1894
+ export interface RemoveOverrideCheckoutUrlResponse {
1895
+ /** Updated checkout after removal of override checkout url. */
1896
+ checkout?: Checkout;
1897
+ }
1898
+ export interface AddToCheckoutRequest {
1899
+ /** Checkout ID. */
1900
+ id: string;
1901
+ /** Catalog line items. */
1902
+ lineItems?: LineItem[];
1903
+ /**
1904
+ * Custom line items. Custom line items don't trigger the Catalog service plugin.
1905
+ *
1906
+ * To access and manage custom line items, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
1907
+ * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
1908
+ */
1909
+ customLineItems?: CustomLineItem[];
1910
+ }
1911
+ export interface AddToCheckoutResponse {
1912
+ /** Updated checkout. */
1913
+ checkout?: Checkout;
1914
+ }
1915
+ export interface RemoveLineItemsRequest {
1916
+ /** ID of the checkout to remove line items from. */
1917
+ id: string;
1918
+ /** IDs of the line items to remove from the checkout. */
1919
+ lineItemIds: string[];
1920
+ }
1921
+ export interface RemoveLineItemsResponse {
1922
+ /** Updated checkout after removal of line items. */
1923
+ checkout?: Checkout;
1924
+ }
1925
+ export interface CreateOrderRequest {
1926
+ /** Checkout ID. */
1927
+ id: string;
1928
+ /** Indicates the payment method should be saved on the order */
1929
+ savePaymentMethod?: boolean;
1930
+ /** Indicates whether to authorize the payment and delay the capture */
1931
+ delayCapture?: boolean;
1932
+ }
1933
+ export interface CreateOrderResponse extends CreateOrderResponseIdOneOf {
1934
+ /** ID of newly created order. */
1935
+ orderId?: string;
1936
+ /** ID of newly created subscription. Learn more about your site's [Subscriptions](https://support.wix.com/en/article/wix-stores-managing-product-subscriptions). */
1937
+ subscriptionId?: string;
1938
+ /**
1939
+ * Payment gateway order ID.
1940
+ *
1941
+ * 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.
1942
+ * `paymentGatewayOrderId` will be returned if money needs to be charged.
1943
+ *
1944
+ * In some cases, money cannot be charged:
1945
+ * + 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.
1946
+ * + If the total price is not 0, but the payment is covered by alternative payment methods, such as a gift card.
1947
+ */
1948
+ paymentGatewayOrderId?: string | null;
1949
+ }
1950
+ /** @oneof */
1951
+ export interface CreateOrderResponseIdOneOf {
1952
+ /** ID of newly created order. */
1953
+ orderId?: string;
1954
+ /** ID of newly created subscription. Learn more about your site's [Subscriptions](https://support.wix.com/en/article/wix-stores-managing-product-subscriptions). */
1955
+ subscriptionId?: string;
1956
+ }
1957
+ export interface PaymentErrorResponseData {
1958
+ paymentResponseToken?: string | null;
1959
+ transactionStatus?: string;
1960
+ failureDetails?: string | null;
1961
+ }
1962
+ export interface DoublePaymentErrorData extends DoublePaymentErrorDataIdOneOf {
1963
+ orderId?: string;
1964
+ subscriptionId?: string;
1965
+ }
1966
+ /** @oneof */
1967
+ export interface DoublePaymentErrorDataIdOneOf {
1968
+ orderId?: string;
1969
+ subscriptionId?: string;
1970
+ }
1971
+ export interface RedeemErrorData {
1972
+ reason?: string;
1973
+ }
1974
+ export interface ViolationsList {
1975
+ /** Violations risen by ValidationsSPI implementers. */
1976
+ violations?: Violation[];
1977
+ }
1978
+ export interface CreateOrderAndChargeRequest {
1979
+ /** Checkout ID. */
1980
+ id: string;
1981
+ /** Payment token. */
1982
+ paymentToken?: string | null;
1983
+ /** Indicates the payment method should be saved on the order */
1984
+ savePaymentMethod?: boolean;
1985
+ /** Indicates whether to authorize the payment and delay the capture */
1986
+ delayCapture?: boolean;
1987
+ }
1988
+ export interface CreateOrderAndChargeResponse extends CreateOrderAndChargeResponseIdOneOf {
1989
+ /** ID of newly created order. */
1990
+ orderId?: string;
1991
+ /** ID of newly created subscription. */
1992
+ subscriptionId?: string;
1993
+ /** Payment response token. */
1994
+ paymentResponseToken?: string | null;
1995
+ /**
1996
+ * The payment gateway is cashier.
1997
+ * payment_gateway_order_id will be returned given that money was charged.
1998
+ * In some cases, money will not be charged:
1999
+ * If the total price is 0 - For example, could be a free item or a an item with 100% discount
2000
+ * If the total price is not 0, but the payment is covered by alternative payment methods such as gift card
2001
+ */
2002
+ paymentGatewayOrderId?: string | null;
2003
+ }
2004
+ /** @oneof */
2005
+ export interface CreateOrderAndChargeResponseIdOneOf {
2006
+ /** ID of newly created order. */
2007
+ orderId?: string;
2008
+ /** ID of newly created subscription. */
2009
+ subscriptionId?: string;
2010
+ }
2011
+ export interface MarkCheckoutAsCompletedRequest {
2012
+ /** Checkout ID. */
2013
+ id: string;
2014
+ }
2015
+ export interface MarkCheckoutAsCompletedResponse {
2016
+ }
2017
+ /** Triggered when buyer successfully completed checkout flow */
2018
+ export interface CheckoutMarkedAsCompleted {
2019
+ checkout?: Checkout;
2020
+ }
2021
+ export interface UpdateLineItemsQuantityRequest {
2022
+ /** Checkout ID. */
2023
+ id: string;
2024
+ /** Line item info to update. */
2025
+ lineItems: LineItemQuantityUpdate[];
2026
+ }
2027
+ export interface LineItemQuantityUpdate {
2028
+ /** ID of the line item to update. */
2029
+ id?: string;
2030
+ /**
2031
+ * New total amount of the line item,
2032
+ * not the amount to add to the current `quantity`.
2033
+ *
2034
+ * Min: `1`
2035
+ *
2036
+ * Max: `100000`
2037
+ */
2038
+ quantity?: number;
2039
+ }
2040
+ export interface UpdateLineItemsQuantityResponse {
2041
+ /** Updated checkout. */
2042
+ checkout?: Checkout;
2043
+ }
2044
+ export interface GetCheckoutPaymentSettingsRequest {
2045
+ /** Checkout ID. */
2046
+ id: string;
2047
+ }
2048
+ export interface GetCheckoutPaymentSettingsResponse {
2049
+ blockedPaymentOptions?: GetCheckoutPaymentSettingsResponsePaymentOption[];
2050
+ }
2051
+ export declare enum GetCheckoutPaymentSettingsResponsePaymentOption {
2052
+ UNKNOWN_PAYMENT_OPTION = "UNKNOWN_PAYMENT_OPTION",
2053
+ MANUAL = "MANUAL"
2054
+ }
2055
+ export interface DeleteCheckoutRequest {
2056
+ /** ID of the checkout to delete. */
2057
+ id?: string;
2058
+ }
2059
+ export interface DeleteCheckoutResponse {
2060
+ }
2061
+ export interface SubscriptionCreated {
2062
+ subscription?: Subscription;
2063
+ }
2064
+ export interface Subscription {
2065
+ /**
2066
+ * Subscription id (auto-generated upon subscription creation)
2067
+ * @readonly
2068
+ */
2069
+ id?: string;
2070
+ /** id of subscription in external system */
2071
+ externalId?: string | null;
2072
+ /**
2073
+ * Subscription creation date
2074
+ * @readonly
2075
+ */
2076
+ dateCreated?: Date | null;
2077
+ /** The id of the cart this order was created from */
2078
+ cartId?: string | null;
2079
+ /** The id of the checkout this subscriptions was created from */
2080
+ checkoutId?: string | null;
2081
+ /** member or contact */
2082
+ buyerInfo?: V1BuyerInfo;
2083
+ /** Line items ordered */
2084
+ lineItems?: V1LineItem[];
2085
+ /** Totals for subscription's line items */
2086
+ totals?: Totals;
2087
+ /** site settings at the moment when subscription created */
2088
+ storeSettings?: StoreSettings;
2089
+ /** Full billing address */
2090
+ billingAddress?: Address;
2091
+ /** Delivery information */
2092
+ shippingInfo?: V1ShippingInfo;
2093
+ /** Coupon that was applied to subscription */
2094
+ appliedCoupon?: AppliedCoupon;
2095
+ /** Message from the customer (e.g., customization request) */
2096
+ buyerNote?: string | null;
2097
+ /** Custom field */
2098
+ customField?: V1CustomField;
2099
+ /** Information about subscription option from which subscription was created */
2100
+ subscriptionOptionInfo?: V1SubscriptionOptionInfo;
2101
+ /** Sales channel that submitted this subscription */
2102
+ channelInfo?: ChannelInfo;
2103
+ /** defines when subscriber will be charged: for frequency=MONTH, billingCycles=6, interval=2 payment will be done every 2 month during one year */
2104
+ subscriptionSettings?: V1SubscriptionSettings;
2105
+ /**
2106
+ * information about first subscription payment
2107
+ * @readonly
2108
+ */
2109
+ billingInfo?: BillingInfo;
2110
+ }
2111
+ /** Buyer Info */
2112
+ export interface V1BuyerInfo {
2113
+ /** Wix customer ID */
2114
+ id?: string;
2115
+ /** Customer type */
2116
+ identityType?: IdentityType;
2117
+ }
2118
+ export declare enum IdentityType {
2119
+ UNSPECIFIED_IDENTITY_TYPE = "UNSPECIFIED_IDENTITY_TYPE",
2120
+ /** Site member */
2121
+ MEMBER = "MEMBER",
2122
+ /** Contact */
2123
+ CONTACT = "CONTACT"
2124
+ }
2125
+ export interface V1LineItem {
2126
+ /** Line item ID (auto-generated) */
2127
+ index?: number;
2128
+ /** Line item quantity */
2129
+ quantity?: number;
2130
+ /** Line item variantId (from Stores Catalog) */
2131
+ variantId?: string | null;
2132
+ /** Line item options ordered */
2133
+ options?: OptionSelection[];
2134
+ /** Line item custom text field selections */
2135
+ customTextFields?: CustomTextFieldSelection[];
2136
+ /** Charges details */
2137
+ chargeDetails?: ChargeDetails;
2138
+ /** Product details */
2139
+ productDetails?: ProductDetails;
2140
+ }
2141
+ export interface OptionSelection {
2142
+ /** Option name */
2143
+ option?: string;
2144
+ /** Selected choice for this option */
2145
+ selection?: string;
2146
+ }
2147
+ export interface CustomTextFieldSelection {
2148
+ /** Custom text field name */
2149
+ title?: string;
2150
+ /** Custom text field value */
2151
+ value?: string;
2152
+ }
2153
+ export interface ChargeDetails {
2154
+ /** price of line item (depends on subscription option) */
2155
+ price?: number;
2156
+ /** Total price charged to the customer (for this line items) after computation of quantity and discount */
2157
+ totalPrice?: number | null;
2158
+ /** Discount applied for this line item */
2159
+ discount?: number | null;
2160
+ /** Tax applied for this line item */
2161
+ tax?: number | null;
2162
+ /** Is tax applied for this line item */
2163
+ taxIncludedInPrice?: boolean;
2164
+ /** Tax rate %, as a decimal point >= 0 */
2165
+ taxRate?: string | null;
2166
+ }
2167
+ export interface ProductDetails {
2168
+ /** Line item product ID (optional for POS orders) */
2169
+ productId?: string | null;
2170
+ /** Line item name */
2171
+ name?: string;
2172
+ /** Line item name translated to buyer's language */
2173
+ translatedName?: string | null;
2174
+ /** Line item type (may be extended) */
2175
+ lineItemType?: LineItemType;
2176
+ /** Line item primary media for preview */
2177
+ mediaItem?: MediaItem;
2178
+ /** Line item SKU */
2179
+ sku?: string | null;
2180
+ /** Line item weight */
2181
+ weight?: number | null;
2182
+ /** Line item notes */
2183
+ notes?: string | null;
2184
+ /** Line item fulfillerId from stores fulfillers. No value means self fulfilled */
2185
+ fulfillerId?: string | null;
2186
+ /** Tax group id */
2187
+ taxGroupId?: string | null;
2188
+ /** App id from the catalog reference */
2189
+ appId?: string | null;
2190
+ }
2191
+ export declare enum LineItemType {
2192
+ /** Line item type can't be classified, due to an error */
2193
+ UNSPECIFIED_LINE_ITEM_TYPE = "UNSPECIFIED_LINE_ITEM_TYPE",
2194
+ /** Physical item type */
2195
+ PHYSICAL = "PHYSICAL",
2196
+ /** Digital item type */
2197
+ DIGITAL = "DIGITAL",
2198
+ /** Custom item price */
2199
+ CUSTOM_AMOUNT_ITEM = "CUSTOM_AMOUNT_ITEM"
2200
+ }
2201
+ export interface MediaItem {
2202
+ /**
2203
+ * Media type
2204
+ * @readonly
2205
+ */
2206
+ mediaType?: MediaItemType;
2207
+ /**
2208
+ * Media URL
2209
+ * @readonly
2210
+ */
2211
+ url?: string;
2212
+ /**
2213
+ * Media item width
2214
+ * @readonly
2215
+ */
2216
+ width?: number;
2217
+ /**
2218
+ * Media item height
2219
+ * @readonly
2220
+ */
2221
+ height?: number;
2222
+ /** Media ID (for media items previously saved in Wix Media) */
2223
+ id?: string | null;
2224
+ /** Media external URL */
2225
+ externalImageUrl?: string | null;
2226
+ /** Alternative text for presentation when media cannot be displayed */
2227
+ altText?: string | null;
2228
+ }
2229
+ export declare enum MediaItemType {
2230
+ /** Media item type can't be classified, due to an error */
2231
+ UNSPECIFIED_MEDIA_TYPE_ITEM = "UNSPECIFIED_MEDIA_TYPE_ITEM",
2232
+ /** Image item type */
2233
+ IMAGE = "IMAGE"
2234
+ }
2235
+ export interface Totals {
2236
+ /** Subtotal of all line items, before tax */
2237
+ subtotal?: number;
2238
+ /** Total shipping price, including tax */
2239
+ shipping?: number;
2240
+ /** Total tax */
2241
+ tax?: number;
2242
+ /** Total calculated discount value */
2243
+ discount?: number;
2244
+ /** Total price */
2245
+ total?: number;
2246
+ /** Total weight */
2247
+ weight?: number | null;
2248
+ /**
2249
+ * Total line items quantity
2250
+ * @readonly
2251
+ */
2252
+ quantity?: number;
2253
+ }
2254
+ export interface StoreSettings {
2255
+ /** Currency used for pricing in this store */
2256
+ currency?: string | null;
2257
+ /** Weight unit used in this store */
2258
+ weightUnit?: WeightUnit;
2259
+ /**
2260
+ * The language to be used when communicating with the buyer
2261
+ * For a site that support multiple languages, this would be the language the buyer selected
2262
+ * Otherwise this would be the site language
2263
+ */
2264
+ buyerLanguage?: string | null;
2265
+ }
2266
+ export interface Address extends AddressAddressLine1OptionsOneOf {
2267
+ /** Address line 1 (free text) */
2268
+ addressLine1?: string;
2269
+ /** Address line 1 (street) */
2270
+ street?: Street;
2271
+ /** Addressee name */
2272
+ fullName?: FullName;
2273
+ /** Country code (2 letters) */
2274
+ country?: string | null;
2275
+ /** State or district */
2276
+ subdivision?: string | null;
2277
+ /** City name */
2278
+ city?: string | null;
2279
+ /** ZIP/postal code */
2280
+ zipCode?: string | null;
2281
+ /** Phone number */
2282
+ phone?: string | null;
2283
+ /** Company name */
2284
+ company?: string | null;
2285
+ /** Email address */
2286
+ email?: string | null;
2287
+ /** address line */
2288
+ addressLine2?: string | null;
2289
+ /** Tax information (for Brazil only) */
2290
+ vatId?: VatId;
2291
+ }
2292
+ /** @oneof */
2293
+ export interface AddressAddressLine1OptionsOneOf {
2294
+ /** Address line 1 (free text) */
2295
+ addressLine1?: string;
2296
+ /** Address line 1 (street) */
2297
+ street?: Street;
2298
+ }
2299
+ export interface FullName {
2300
+ /** Customer's first name */
2301
+ firstName?: string;
2302
+ /** Customer's last name */
2303
+ lastName?: string;
2304
+ }
2305
+ export interface Street {
2306
+ /** Street number */
2307
+ number?: string;
2308
+ /** Street name */
2309
+ name?: string;
2310
+ }
2311
+ export interface VatId {
2312
+ /** Customer's tax ID. */
2313
+ number?: string;
2314
+ /**
2315
+ * Tax type.
2316
+ * + `CPF`: For individual tax payers.
2317
+ * + `CNPJ`: For corporations.
2318
+ */
2319
+ type?: VatType;
2320
+ }
2321
+ /** Brazilian tax info types */
2322
+ export declare enum VatType {
2323
+ /** When the tax info type can't be classified, due to an error */
2324
+ UNSPECIFIED_TAX_TYPE = "UNSPECIFIED_TAX_TYPE",
2325
+ /** CPF - for individual tax payers */
2326
+ CPF = "CPF",
2327
+ /** CNPJ - for corporations */
2328
+ CNPJ = "CNPJ"
2329
+ }
2330
+ export interface V1ShippingInfo extends V1ShippingInfoDetailsOneOf {
2331
+ /** Shipment details (when this object describes shipment) */
2332
+ shipmentDetails?: ShipmentDetails;
2333
+ /** Pickup details (when this object describes pickup) */
2334
+ pickupDetails?: V1PickupDetails;
2335
+ /** Delivery option name */
2336
+ deliveryOption?: string;
2337
+ /** Delivery option delivery time */
2338
+ estimatedDeliveryTime?: string | null;
2339
+ }
2340
+ /** @oneof */
2341
+ export interface V1ShippingInfoDetailsOneOf {
2342
+ /** Shipment details (when this object describes shipment) */
2343
+ shipmentDetails?: ShipmentDetails;
2344
+ /** Pickup details (when this object describes pickup) */
2345
+ pickupDetails?: V1PickupDetails;
2346
+ }
2347
+ export interface ShipmentDetails {
2348
+ /** Shipping destination address */
2349
+ address?: Address;
2350
+ /** Discount applied for shipping */
2351
+ discount?: number | null;
2352
+ /** Tax applied for shipping */
2353
+ tax?: number | null;
2354
+ /** Whether tax is included in the price */
2355
+ taxIncludedInPrice?: boolean;
2356
+ /** Tax rate % for shipping, as a decimal point >= 0 */
2357
+ taxRate?: string | null;
2358
+ }
2359
+ export interface V1PickupDetails {
2360
+ /** Pickup address */
2361
+ address?: PickupAddress;
2362
+ /** Store owner's pickup instructions */
2363
+ pickupInstructions?: string | null;
2364
+ }
2365
+ export interface PickupAddress {
2366
+ /** Country code (2 letters) */
2367
+ country?: string;
2368
+ /** State/District */
2369
+ subdivision?: string | null;
2370
+ /** Address */
2371
+ addressLine?: string;
2372
+ /** City */
2373
+ city?: string;
2374
+ /** ZIP/postal code */
2375
+ zipCode?: string;
2376
+ }
2377
+ export interface AppliedCoupon {
2378
+ /** Coupon ID */
2379
+ couponId?: string;
2380
+ /** Coupon name */
2381
+ name?: string;
2382
+ /** Coupon code */
2383
+ code?: string;
2384
+ }
2385
+ /** Custom field */
2386
+ export interface V1CustomField {
2387
+ /** Free text that the customer entered in the custom field during the checkout process */
2388
+ value?: string;
2389
+ /** Title for the custom field */
2390
+ title?: string;
2391
+ /** The title translated according to the buyer language */
2392
+ translatedTitle?: string;
2393
+ }
2394
+ export interface V1SubscriptionOptionInfo {
2395
+ id?: string | null;
2396
+ title?: string;
2397
+ description?: string | null;
2398
+ discount?: Discount;
2399
+ }
2400
+ export interface Discount {
2401
+ /** Discount type. */
2402
+ type?: DiscountDiscountType;
2403
+ /** Discount value. */
2404
+ value?: number;
2405
+ }
2406
+ export declare enum DiscountDiscountType {
2407
+ UNDEFINED = "UNDEFINED",
2408
+ /** No discount */
2409
+ AMOUNT = "AMOUNT",
2410
+ PERCENT = "PERCENT"
2411
+ }
2412
+ export interface ChannelInfo {
2413
+ /** Sales channel that submitted the subscription */
2414
+ type?: ChannelInfoChannelType;
2415
+ }
2416
+ export declare enum ChannelInfoChannelType {
2417
+ UNSPECIFIED = "UNSPECIFIED",
2418
+ WEB = "WEB",
2419
+ OTHER_PLATFORM = "OTHER_PLATFORM",
2420
+ WIX_APP_STORE = "WIX_APP_STORE"
2421
+ }
2422
+ export interface V1SubscriptionSettings {
2423
+ /** Frequency of recurring payment. */
2424
+ frequency?: SubscriptionFrequency;
2425
+ /** Whether subscription is renewed automatically at the end of each period. */
2426
+ autoRenewal?: boolean;
2427
+ /** Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`. */
2428
+ billingCycles?: number | null;
2429
+ }
2430
+ export interface BillingInfo {
2431
+ /** Payment method used for this order */
2432
+ paymentMethod?: string | null;
2433
+ /** Transaction ID from payment gateway (e.g., Wix Payments) */
2434
+ paymentGatewayTransactionId?: string | null;
2435
+ /** Order ID from payment gateway (e.g., Wix Payments) */
2436
+ paymentGatewayOrderId?: string | null;
2437
+ }
2438
+ export interface Empty {
2439
+ }
2440
+ export interface DomainEvent extends DomainEventBodyOneOf {
2441
+ createdEvent?: EntityCreatedEvent;
2442
+ updatedEvent?: EntityUpdatedEvent;
2443
+ deletedEvent?: EntityDeletedEvent;
2444
+ actionEvent?: ActionEvent;
2445
+ /**
2446
+ * Unique event ID.
2447
+ * Allows clients to ignore duplicate webhooks.
2448
+ */
2449
+ id?: string;
2450
+ /**
2451
+ * Assumes actions are also always typed to an entity_type
2452
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2453
+ */
2454
+ entityFqdn?: string;
2455
+ /**
2456
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
2457
+ * This is although the created/updated/deleted notion is duplication of the oneof types
2458
+ * Example: created/updated/deleted/started/completed/email_opened
2459
+ */
2460
+ slug?: string;
2461
+ /** ID of the entity associated with the event. */
2462
+ entityId?: string;
2463
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2464
+ eventTime?: Date | null;
2465
+ /**
2466
+ * Whether the event was triggered as a result of a privacy regulation application
2467
+ * (for example, GDPR).
2468
+ */
2469
+ triggeredByAnonymizeRequest?: boolean | null;
2470
+ /** If present, indicates the action that triggered the event. */
2471
+ originatedFrom?: string | null;
2472
+ /**
2473
+ * A sequence number defining the order of updates to the underlying entity.
2474
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
2475
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
2476
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
2477
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
2478
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
2479
+ */
2480
+ entityEventSequence?: string | null;
2481
+ }
2482
+ /** @oneof */
2483
+ export interface DomainEventBodyOneOf {
2484
+ createdEvent?: EntityCreatedEvent;
2485
+ updatedEvent?: EntityUpdatedEvent;
2486
+ deletedEvent?: EntityDeletedEvent;
2487
+ actionEvent?: ActionEvent;
2488
+ }
2489
+ export interface EntityCreatedEvent {
2490
+ entityAsJson?: string;
2491
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
2492
+ restoreInfo?: RestoreInfo;
2493
+ }
2494
+ export interface RestoreInfo {
2495
+ deletedDate?: Date | null;
2496
+ }
2497
+ export interface EntityUpdatedEvent {
2498
+ /**
2499
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2500
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2501
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2502
+ */
2503
+ currentEntityAsJson?: string;
2504
+ }
2505
+ export interface EntityDeletedEvent {
2506
+ /** Entity that was deleted */
2507
+ deletedEntityAsJson?: string | null;
2508
+ }
2509
+ export interface ActionEvent {
2510
+ bodyAsJson?: string;
2511
+ }
2512
+ export interface MessageEnvelope {
2513
+ /** App instance ID. */
2514
+ instanceId?: string | null;
2515
+ /** Event type. */
2516
+ eventType?: string;
2517
+ /** The identification type and identity data. */
2518
+ identity?: IdentificationData;
2519
+ /** Stringify payload. */
2520
+ data?: string;
2521
+ }
2522
+ export interface IdentificationData extends IdentificationDataIdOneOf {
2523
+ /** ID of a site visitor that has not logged in to the site. */
2524
+ anonymousVisitorId?: string;
2525
+ /** ID of a site visitor that has logged in to the site. */
2526
+ memberId?: string;
2527
+ /** ID of a Wix user (site owner, contributor, etc.). */
2528
+ wixUserId?: string;
2529
+ /** ID of an app. */
2530
+ appId?: string;
2531
+ /** @readonly */
2532
+ identityType?: WebhookIdentityType;
2533
+ }
2534
+ /** @oneof */
2535
+ export interface IdentificationDataIdOneOf {
2536
+ /** ID of a site visitor that has not logged in to the site. */
2537
+ anonymousVisitorId?: string;
2538
+ /** ID of a site visitor that has logged in to the site. */
2539
+ memberId?: string;
2540
+ /** ID of a Wix user (site owner, contributor, etc.). */
2541
+ wixUserId?: string;
2542
+ /** ID of an app. */
2543
+ appId?: string;
2544
+ }
2545
+ export declare enum WebhookIdentityType {
2546
+ UNKNOWN = "UNKNOWN",
2547
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2548
+ MEMBER = "MEMBER",
2549
+ WIX_USER = "WIX_USER",
2550
+ APP = "APP"
2551
+ }
2552
+ interface CatalogReferenceNonNullableFields {
2553
+ catalogItemId: string;
2554
+ appId: string;
2555
+ }
2556
+ interface ProductNameNonNullableFields {
2557
+ original: string;
2558
+ }
2559
+ interface PageUrlV2NonNullableFields {
2560
+ relativePath: string;
2561
+ }
2562
+ interface MultiCurrencyPriceNonNullableFields {
2563
+ amount: string;
2564
+ convertedAmount: string;
2565
+ formattedAmount: string;
2566
+ formattedConvertedAmount: string;
2567
+ }
2568
+ interface TaxRateBreakdownNonNullableFields {
2569
+ name: string;
2570
+ rate: string;
2571
+ tax?: MultiCurrencyPriceNonNullableFields;
2572
+ exemptAmount?: MultiCurrencyPriceNonNullableFields;
2573
+ exemptionIds: number[];
2574
+ taxableAmount?: MultiCurrencyPriceNonNullableFields;
2575
+ }
2576
+ interface TaxBreakdownNonNullableFields {
2577
+ nonTaxableAmount?: MultiCurrencyPriceNonNullableFields;
2578
+ taxAmount?: MultiCurrencyPriceNonNullableFields;
2579
+ taxableAmount?: MultiCurrencyPriceNonNullableFields;
2580
+ jurisdictionType: JurisdictionType;
2581
+ }
2582
+ interface ItemTaxFullDetailsNonNullableFields {
2583
+ taxableAmount?: MultiCurrencyPriceNonNullableFields;
2584
+ taxRate: string;
2585
+ totalTax?: MultiCurrencyPriceNonNullableFields;
2586
+ rateBreakdown: TaxRateBreakdownNonNullableFields[];
2587
+ exemptAmount?: MultiCurrencyPriceNonNullableFields;
2588
+ taxBreakdown: TaxBreakdownNonNullableFields[];
2589
+ }
2590
+ interface PlainTextValueNonNullableFields {
2591
+ original: string;
2592
+ }
2593
+ interface ColorNonNullableFields {
2594
+ original: string;
2595
+ }
2596
+ interface DescriptionLineNameNonNullableFields {
2597
+ original: string;
2598
+ }
2599
+ interface DescriptionLineNonNullableFields {
2600
+ plainText?: PlainTextValueNonNullableFields;
2601
+ colorInfo?: ColorNonNullableFields;
2602
+ plainTextValue?: PlainTextValueNonNullableFields;
2603
+ color: string;
2604
+ name?: DescriptionLineNameNonNullableFields;
2605
+ lineType: DescriptionLineType;
2606
+ }
2607
+ interface FocalPointNonNullableFields {
2608
+ x: number;
2609
+ y: number;
2610
+ }
2611
+ interface CommonImageNonNullableFields {
2612
+ id: string;
2613
+ url: string;
2614
+ height: number;
2615
+ width: number;
2616
+ focalPoint?: FocalPointNonNullableFields;
2617
+ }
2618
+ interface ItemAvailabilityInfoNonNullableFields {
2619
+ status: ItemAvailabilityStatus;
2620
+ }
2621
+ interface PhysicalPropertiesNonNullableFields {
2622
+ shippable: boolean;
2623
+ }
2624
+ interface GroupNonNullableFields {
2625
+ name: string;
2626
+ }
2627
+ interface ScopeNonNullableFields {
2628
+ namespace: string;
2629
+ group?: GroupNonNullableFields;
2630
+ }
2631
+ interface ItemTypeNonNullableFields {
2632
+ preset: ItemTypeItemType;
2633
+ custom: string;
2634
+ }
2635
+ interface FreeTrialPeriodNonNullableFields {
2636
+ frequency: SubscriptionFrequency;
2637
+ interval: number;
2638
+ }
2639
+ interface SubscriptionSettingsNonNullableFields {
2640
+ frequency: SubscriptionFrequency;
2641
+ autoRenewal: boolean;
2642
+ /** @internal */
2643
+ enableCustomerCancellation: boolean;
2644
+ /** @internal */
2645
+ freeTrialPeriod?: FreeTrialPeriodNonNullableFields;
2646
+ }
2647
+ interface TitleNonNullableFields {
2648
+ original: string;
2649
+ }
2650
+ interface DescriptionNonNullableFields {
2651
+ original: string;
2652
+ }
2653
+ interface SubscriptionOptionInfoNonNullableFields {
2654
+ subscriptionSettings?: SubscriptionSettingsNonNullableFields;
2655
+ title?: TitleNonNullableFields;
2656
+ description?: DescriptionNonNullableFields;
2657
+ }
2658
+ interface SecuredMediaNonNullableFields {
2659
+ id: string;
2660
+ fileName: string;
2661
+ fileType: FileType;
2662
+ }
2663
+ interface PriceDescriptionNonNullableFields {
2664
+ original: string;
2665
+ }
2666
+ interface ImageNonNullableFields {
2667
+ id: string;
2668
+ height: number;
2669
+ width: number;
2670
+ }
2671
+ interface PaymentOptionNonNullableFields {
2672
+ value: PaymentOptionType;
2673
+ }
2674
+ interface CatalogOverrideFieldsNonNullableFields {
2675
+ productName?: ProductNameNonNullableFields;
2676
+ descriptionLines: DescriptionLineNonNullableFields[];
2677
+ physicalProperties?: PhysicalPropertiesNonNullableFields;
2678
+ image?: ImageNonNullableFields;
2679
+ paymentOption?: PaymentOptionNonNullableFields;
2680
+ }
2681
+ interface TaxableAddressNonNullableFields {
2682
+ addressType: TaxableAddressType;
2683
+ }
2684
+ interface PolicyNonNullableFields {
2685
+ content: string;
2686
+ }
2687
+ interface LineItemNonNullableFields {
2688
+ quantity: number;
2689
+ catalogReference?: CatalogReferenceNonNullableFields;
2690
+ productName?: ProductNameNonNullableFields;
2691
+ url?: PageUrlV2NonNullableFields;
2692
+ price?: MultiCurrencyPriceNonNullableFields;
2693
+ lineItemPrice?: MultiCurrencyPriceNonNullableFields;
2694
+ fullPrice?: MultiCurrencyPriceNonNullableFields;
2695
+ priceBeforeDiscounts?: MultiCurrencyPriceNonNullableFields;
2696
+ totalPriceAfterTax?: MultiCurrencyPriceNonNullableFields;
2697
+ totalPriceBeforeTax?: MultiCurrencyPriceNonNullableFields;
2698
+ taxDetails?: ItemTaxFullDetailsNonNullableFields;
2699
+ discount?: MultiCurrencyPriceNonNullableFields;
2700
+ descriptionLines: DescriptionLineNonNullableFields[];
2701
+ media?: CommonImageNonNullableFields;
2702
+ availability?: ItemAvailabilityInfoNonNullableFields;
2703
+ physicalProperties?: PhysicalPropertiesNonNullableFields;
2704
+ /** @internal */
2705
+ couponScopes: ScopeNonNullableFields[];
2706
+ itemType?: ItemTypeNonNullableFields;
2707
+ subscriptionOptionInfo?: SubscriptionOptionInfoNonNullableFields;
2708
+ digitalFile?: SecuredMediaNonNullableFields;
2709
+ paymentOption: PaymentOptionType;
2710
+ priceDescription?: PriceDescriptionNonNullableFields;
2711
+ depositAmount?: MultiCurrencyPriceNonNullableFields;
2712
+ customLineItem: boolean;
2713
+ catalogOverrideFields?: CatalogOverrideFieldsNonNullableFields;
2714
+ /** @internal */
2715
+ priceUndetermined: boolean;
2716
+ /** @internal */
2717
+ fixedQuantity: boolean;
2718
+ savePaymentMethod: boolean;
2719
+ /** @internal */
2720
+ taxableAddress?: TaxableAddressNonNullableFields;
2721
+ /** @internal */
2722
+ policies: PolicyNonNullableFields[];
2723
+ /** @internal */
2724
+ membersOnly: boolean;
2725
+ }
2726
+ interface StreetAddressNonNullableFields {
2727
+ number: string;
2728
+ name: string;
2729
+ apt: string;
2730
+ }
2731
+ interface ApiAddressNonNullableFields {
2732
+ streetAddress?: StreetAddressNonNullableFields;
2733
+ }
2734
+ interface CommonVatIdNonNullableFields {
2735
+ id: string;
2736
+ type: CommonVatType;
2737
+ }
2738
+ interface FullAddressContactDetailsNonNullableFields {
2739
+ vatId?: CommonVatIdNonNullableFields;
2740
+ }
2741
+ interface AddressWithContactNonNullableFields {
2742
+ address?: ApiAddressNonNullableFields;
2743
+ contactDetails?: FullAddressContactDetailsNonNullableFields;
2744
+ }
2745
+ interface PickupDetailsNonNullableFields {
2746
+ address?: ApiAddressNonNullableFields;
2747
+ businessLocation: boolean;
2748
+ pickupMethod: PickupMethod;
2749
+ }
2750
+ interface DeliveryLogisticsNonNullableFields {
2751
+ pickupDetails?: PickupDetailsNonNullableFields;
2752
+ }
2753
+ interface SelectedCarrierServiceOptionPricesNonNullableFields {
2754
+ totalPriceAfterTax?: MultiCurrencyPriceNonNullableFields;
2755
+ totalPriceBeforeTax?: MultiCurrencyPriceNonNullableFields;
2756
+ taxDetails?: ItemTaxFullDetailsNonNullableFields;
2757
+ totalDiscount?: MultiCurrencyPriceNonNullableFields;
2758
+ price?: MultiCurrencyPriceNonNullableFields;
2759
+ }
2760
+ interface SelectedCarrierServiceOptionOtherChargeNonNullableFields {
2761
+ type: ChargeType;
2762
+ cost?: SelectedCarrierServiceOptionPricesNonNullableFields;
2763
+ }
2764
+ interface CarrierNonNullableFields {
2765
+ code: string;
2766
+ }
2767
+ interface ApplicableLineItemsNonNullableFields {
2768
+ lineItemIds: string[];
2769
+ }
2770
+ interface DeliveryAllocationNonNullableFields {
2771
+ deliveryCarrier?: CarrierNonNullableFields;
2772
+ applicableLineItems?: ApplicableLineItemsNonNullableFields;
2773
+ }
2774
+ interface SelectedCarrierServiceOptionNonNullableFields {
2775
+ code: string;
2776
+ title: string;
2777
+ logistics?: DeliveryLogisticsNonNullableFields;
2778
+ cost?: SelectedCarrierServiceOptionPricesNonNullableFields;
2779
+ requestedShippingOption: boolean;
2780
+ otherCharges: SelectedCarrierServiceOptionOtherChargeNonNullableFields[];
2781
+ deliveryAllocations: DeliveryAllocationNonNullableFields[];
2782
+ }
2783
+ interface ShippingRegionNonNullableFields {
2784
+ id: string;
2785
+ name: string;
2786
+ }
2787
+ interface OtherChargeNonNullableFields {
2788
+ type: ChargeType;
2789
+ price?: MultiCurrencyPriceNonNullableFields;
2790
+ }
2791
+ interface ShippingPriceNonNullableFields {
2792
+ price?: MultiCurrencyPriceNonNullableFields;
2793
+ otherCharges: OtherChargeNonNullableFields[];
2794
+ }
2795
+ interface ShippingOptionNonNullableFields {
2796
+ code: string;
2797
+ title: string;
2798
+ logistics?: DeliveryLogisticsNonNullableFields;
2799
+ cost?: ShippingPriceNonNullableFields;
2800
+ deliveryAllocations: DeliveryAllocationNonNullableFields[];
2801
+ }
2802
+ interface CarrierServiceOptionNonNullableFields {
2803
+ carrierId: string;
2804
+ shippingOptions: ShippingOptionNonNullableFields[];
2805
+ }
2806
+ interface ShippingInfoNonNullableFields {
2807
+ shippingDestination?: AddressWithContactNonNullableFields;
2808
+ selectedCarrierServiceOption?: SelectedCarrierServiceOptionNonNullableFields;
2809
+ region?: ShippingRegionNonNullableFields;
2810
+ carrierServiceOptions: CarrierServiceOptionNonNullableFields[];
2811
+ }
2812
+ interface BuyerInfoNonNullableFields {
2813
+ visitorId: string;
2814
+ memberId: string;
2815
+ openAccess: boolean;
2816
+ }
2817
+ interface PriceSummaryNonNullableFields {
2818
+ subtotal?: MultiCurrencyPriceNonNullableFields;
2819
+ shipping?: MultiCurrencyPriceNonNullableFields;
2820
+ tax?: MultiCurrencyPriceNonNullableFields;
2821
+ discount?: MultiCurrencyPriceNonNullableFields;
2822
+ total?: MultiCurrencyPriceNonNullableFields;
2823
+ additionalFees?: MultiCurrencyPriceNonNullableFields;
2824
+ }
2825
+ interface ApplicationErrorNonNullableFields {
2826
+ code: string;
2827
+ description: string;
2828
+ }
2829
+ interface FieldViolationNonNullableFields {
2830
+ field: string;
2831
+ description: string;
2832
+ violatedRule: RuleType;
2833
+ }
2834
+ interface ValidationErrorNonNullableFields {
2835
+ fieldViolations: FieldViolationNonNullableFields[];
2836
+ }
2837
+ interface DetailsNonNullableFields {
2838
+ applicationError?: ApplicationErrorNonNullableFields;
2839
+ validationError?: ValidationErrorNonNullableFields;
2840
+ }
2841
+ interface CarrierErrorNonNullableFields {
2842
+ carrierId: string;
2843
+ error?: DetailsNonNullableFields;
2844
+ }
2845
+ interface CarrierErrorsNonNullableFields {
2846
+ errors: CarrierErrorNonNullableFields[];
2847
+ }
2848
+ interface CalculationErrorsNonNullableFields {
2849
+ generalShippingCalculationError?: DetailsNonNullableFields;
2850
+ carrierErrors?: CarrierErrorsNonNullableFields;
2851
+ taxCalculationError?: DetailsNonNullableFields;
2852
+ couponCalculationError?: DetailsNonNullableFields;
2853
+ giftCardCalculationError?: DetailsNonNullableFields;
2854
+ orderValidationErrors: ApplicationErrorNonNullableFields[];
2855
+ membershipError?: DetailsNonNullableFields;
2856
+ discountsCalculationError?: DetailsNonNullableFields;
2857
+ }
2858
+ interface GiftCardNonNullableFields {
2859
+ id: string;
2860
+ obfuscatedCode: string;
2861
+ amount?: MultiCurrencyPriceNonNullableFields;
2862
+ appId: string;
2863
+ }
2864
+ interface CouponNonNullableFields {
2865
+ id: string;
2866
+ code: string;
2867
+ amount?: MultiCurrencyPriceNonNullableFields;
2868
+ name: string;
2869
+ couponType: string;
2870
+ }
2871
+ interface MerchantDiscountNonNullableFields {
2872
+ amount?: MultiCurrencyPriceNonNullableFields;
2873
+ }
2874
+ interface DiscountRuleNameNonNullableFields {
2875
+ original: string;
2876
+ }
2877
+ interface DiscountRuleNonNullableFields {
2878
+ id: string;
2879
+ name?: DiscountRuleNameNonNullableFields;
2880
+ amount?: MultiCurrencyPriceNonNullableFields;
2881
+ }
2882
+ interface LineItemDiscountNonNullableFields {
2883
+ id: string;
2884
+ totalDiscountAmount?: MultiCurrencyPriceNonNullableFields;
2885
+ }
2886
+ interface AppliedDiscountNonNullableFields {
2887
+ coupon?: CouponNonNullableFields;
2888
+ merchantDiscount?: MerchantDiscountNonNullableFields;
2889
+ discountRule?: DiscountRuleNonNullableFields;
2890
+ discountType: DiscountType;
2891
+ lineItemIds: string[];
2892
+ lineItemDiscounts: LineItemDiscountNonNullableFields[];
2893
+ }
2894
+ interface CustomFieldNonNullableFields {
2895
+ title: string;
2896
+ }
2897
+ interface AutoTaxFallbackCalculationDetailsNonNullableFields {
2898
+ fallbackReason: FallbackReason;
2899
+ error?: ApplicationErrorNonNullableFields;
2900
+ }
2901
+ interface TaxCalculationDetailsNonNullableFields {
2902
+ manualRateReason: ManualCalculationReason;
2903
+ autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetailsNonNullableFields;
2904
+ rateType: RateType;
2905
+ }
2906
+ interface AggregatedTaxBreakdownNonNullableFields {
2907
+ taxName: string;
2908
+ taxType: string;
2909
+ jurisdiction: string;
2910
+ jurisdictionTypeEnum: JurisdictionType;
2911
+ rate: string;
2912
+ aggregatedTaxAmount?: MultiCurrencyPriceNonNullableFields;
2913
+ aggregatedTaxableAmount?: MultiCurrencyPriceNonNullableFields;
2914
+ }
2915
+ interface TaxSummaryNonNullableFields {
2916
+ taxableAmount?: MultiCurrencyPriceNonNullableFields;
2917
+ totalTax?: MultiCurrencyPriceNonNullableFields;
2918
+ manualTaxRate: string;
2919
+ calculationDetails?: TaxCalculationDetailsNonNullableFields;
2920
+ totalExempt?: MultiCurrencyPriceNonNullableFields;
2921
+ aggregatedTaxBreakdown: AggregatedTaxBreakdownNonNullableFields[];
2922
+ }
2923
+ interface CreatedByNonNullableFields {
2924
+ userId: string;
2925
+ memberId: string;
2926
+ visitorId: string;
2927
+ appId: string;
2928
+ }
2929
+ interface MembershipNameNonNullableFields {
2930
+ original: string;
2931
+ }
2932
+ interface MembershipPaymentCreditsNonNullableFields {
2933
+ total: number;
2934
+ remaining: number;
2935
+ }
2936
+ interface MembershipNonNullableFields {
2937
+ id: string;
2938
+ appId: string;
2939
+ name?: MembershipNameNonNullableFields;
2940
+ lineItemIds: string[];
2941
+ credits?: MembershipPaymentCreditsNonNullableFields;
2942
+ }
2943
+ interface InvalidMembershipNonNullableFields {
2944
+ membership?: MembershipNonNullableFields;
2945
+ reason: string;
2946
+ }
2947
+ interface SelectedMembershipNonNullableFields {
2948
+ id: string;
2949
+ appId: string;
2950
+ lineItemIds: string[];
2951
+ }
2952
+ interface SelectedMembershipsNonNullableFields {
2953
+ memberships: SelectedMembershipNonNullableFields[];
2954
+ }
2955
+ interface MembershipOptionsNonNullableFields {
2956
+ eligibleMemberships: MembershipNonNullableFields[];
2957
+ invalidMemberships: InvalidMembershipNonNullableFields[];
2958
+ selectedMemberships?: SelectedMembershipsNonNullableFields;
2959
+ }
2960
+ interface AdditionalFeeNonNullableFields {
2961
+ name: string;
2962
+ price?: MultiCurrencyPriceNonNullableFields;
2963
+ taxDetails?: ItemTaxFullDetailsNonNullableFields;
2964
+ priceBeforeTax?: MultiCurrencyPriceNonNullableFields;
2965
+ priceAfterTax?: MultiCurrencyPriceNonNullableFields;
2966
+ lineItemIds: string[];
2967
+ source: AdditionalFeeSource;
2968
+ }
2969
+ interface ConversionInfoNonNullableFields {
2970
+ siteCurrency: string;
2971
+ conversionRate: string;
2972
+ }
2973
+ interface OtherNonNullableFields {
2974
+ name: NameInOther;
2975
+ }
2976
+ interface TargetLineItemNonNullableFields {
2977
+ name: NameInLineItem;
2978
+ /** @internal */
2979
+ suggestedFix: SuggestedFix;
2980
+ }
2981
+ interface TargetNonNullableFields {
2982
+ other?: OtherNonNullableFields;
2983
+ lineItem?: TargetLineItemNonNullableFields;
2984
+ }
2985
+ interface ViolationNonNullableFields {
2986
+ severity: Severity;
2987
+ target?: TargetNonNullableFields;
2988
+ }
2989
+ interface CustomSettingsNonNullableFields {
2990
+ lockGiftCard: boolean;
2991
+ lockCouponCode: boolean;
2992
+ disabledPolicyAgreementCheckbox: boolean;
2993
+ disabledManualPayment: boolean;
2994
+ }
2995
+ interface CustomContentReferenceNonNullableFields {
2996
+ appId: string;
2997
+ componentId: string;
2998
+ }
2999
+ interface ExternalReferenceNonNullableFields {
3000
+ appId: string;
3001
+ }
3002
+ interface CheckoutNonNullableFields {
3003
+ lineItems: LineItemNonNullableFields[];
3004
+ billingInfo?: AddressWithContactNonNullableFields;
3005
+ shippingInfo?: ShippingInfoNonNullableFields;
3006
+ buyerInfo?: BuyerInfoNonNullableFields;
3007
+ conversionCurrency: string;
3008
+ priceSummary?: PriceSummaryNonNullableFields;
3009
+ calculationErrors?: CalculationErrorsNonNullableFields;
3010
+ giftCard?: GiftCardNonNullableFields;
3011
+ appliedDiscounts: AppliedDiscountNonNullableFields[];
3012
+ customFields: CustomFieldNonNullableFields[];
3013
+ weightUnit: WeightUnit;
3014
+ taxSummary?: TaxSummaryNonNullableFields;
3015
+ currency: string;
3016
+ channelType: ChannelType;
3017
+ siteLanguage: string;
3018
+ buyerLanguage: string;
3019
+ completed: boolean;
3020
+ taxIncludedInPrice: boolean;
3021
+ createdBy?: CreatedByNonNullableFields;
3022
+ payNow?: PriceSummaryNonNullableFields;
3023
+ payLater?: PriceSummaryNonNullableFields;
3024
+ membershipOptions?: MembershipOptionsNonNullableFields;
3025
+ additionalFees: AdditionalFeeNonNullableFields[];
3026
+ conversionInfo?: ConversionInfoNonNullableFields;
3027
+ payNowTotalAfterGiftCard?: MultiCurrencyPriceNonNullableFields;
3028
+ violations: ViolationNonNullableFields[];
3029
+ totalAfterGiftCard?: MultiCurrencyPriceNonNullableFields;
3030
+ customSettings?: CustomSettingsNonNullableFields;
3031
+ customContentReference?: CustomContentReferenceNonNullableFields;
3032
+ externalReference?: ExternalReferenceNonNullableFields;
3033
+ /** @internal */
3034
+ payAfterFreeTrial?: PriceSummaryNonNullableFields;
3035
+ /** @internal */
3036
+ paymentRequired: boolean;
3037
+ }
3038
+ export interface CreateCheckoutResponseNonNullableFields {
3039
+ checkout?: CheckoutNonNullableFields;
3040
+ }
3041
+ export interface GetCheckoutResponseNonNullableFields {
3042
+ checkout?: CheckoutNonNullableFields;
3043
+ }
3044
+ export interface GetCheckoutByCartIdResponseNonNullableFields {
3045
+ checkout?: CheckoutNonNullableFields;
3046
+ }
3047
+ export interface GetWixCheckoutURLResponseNonNullableFields {
3048
+ checkoutUrl: string;
3049
+ }
3050
+ export interface GetCheckoutURLResponseNonNullableFields {
3051
+ checkoutUrl: string;
3052
+ }
3053
+ export interface UpdateCheckoutResponseNonNullableFields {
3054
+ checkout?: CheckoutNonNullableFields;
3055
+ }
3056
+ export interface RemoveCouponResponseNonNullableFields {
3057
+ checkout?: CheckoutNonNullableFields;
3058
+ }
3059
+ export interface RemoveGiftCardResponseNonNullableFields {
3060
+ checkout?: CheckoutNonNullableFields;
3061
+ }
3062
+ export interface RemoveOverrideCheckoutUrlResponseNonNullableFields {
3063
+ checkout?: CheckoutNonNullableFields;
3064
+ }
3065
+ export interface AddToCheckoutResponseNonNullableFields {
3066
+ checkout?: CheckoutNonNullableFields;
3067
+ }
3068
+ export interface RemoveLineItemsResponseNonNullableFields {
3069
+ checkout?: CheckoutNonNullableFields;
3070
+ }
3071
+ export interface CreateOrderResponseNonNullableFields {
3072
+ orderId: string;
3073
+ subscriptionId: string;
3074
+ }
3075
+ export interface CreateOrderAndChargeResponseNonNullableFields {
3076
+ orderId: string;
3077
+ subscriptionId: string;
3078
+ }
3079
+ export interface UpdateLineItemsQuantityResponseNonNullableFields {
3080
+ checkout?: CheckoutNonNullableFields;
3081
+ }
3082
+ export interface GetCheckoutPaymentSettingsResponseNonNullableFields {
3083
+ blockedPaymentOptions: GetCheckoutPaymentSettingsResponsePaymentOption[];
3084
+ }
3085
+ export {};