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