@wix/auto_sdk_ecom_orders 1.0.33 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/build/{cjs/src/ecom-v1-order-orders.types.d.ts → ecom-v1-order-orders.universal-UflOyGzD.d.mts} +1109 -637
  2. package/build/{es/src/ecom-v1-order-orders.types.d.ts → ecom-v1-order-orders.universal-UflOyGzD.d.ts} +1109 -637
  3. package/build/index.d.mts +212 -0
  4. package/build/index.d.ts +212 -0
  5. package/build/index.js +3504 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +3401 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{cjs/src/ecom-v1-order-orders.universal.d.ts → internal/ecom-v1-order-orders.universal-DkzM7BQ-.d.mts} +957 -985
  10. package/build/{es/src/ecom-v1-order-orders.universal.d.ts → internal/ecom-v1-order-orders.universal-DkzM7BQ-.d.ts} +957 -985
  11. package/build/internal/index.d.mts +391 -0
  12. package/build/internal/index.d.ts +391 -0
  13. package/build/internal/index.js +3504 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +3401 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +3192 -0
  18. package/build/internal/meta.d.ts +3192 -0
  19. package/build/internal/meta.js +1941 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +1890 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +3192 -0
  24. package/build/meta.d.ts +3192 -0
  25. package/build/meta.js +1941 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +1890 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/ecom-v1-order-orders.context.d.ts +0 -34
  40. package/build/cjs/src/ecom-v1-order-orders.context.js +0 -117
  41. package/build/cjs/src/ecom-v1-order-orders.context.js.map +0 -1
  42. package/build/cjs/src/ecom-v1-order-orders.http.d.ts +0 -200
  43. package/build/cjs/src/ecom-v1-order-orders.http.js +0 -1610
  44. package/build/cjs/src/ecom-v1-order-orders.http.js.map +0 -1
  45. package/build/cjs/src/ecom-v1-order-orders.meta.d.ts +0 -78
  46. package/build/cjs/src/ecom-v1-order-orders.meta.js +0 -503
  47. package/build/cjs/src/ecom-v1-order-orders.meta.js.map +0 -1
  48. package/build/cjs/src/ecom-v1-order-orders.public.d.ts +0 -189
  49. package/build/cjs/src/ecom-v1-order-orders.public.js +0 -382
  50. package/build/cjs/src/ecom-v1-order-orders.public.js.map +0 -1
  51. package/build/cjs/src/ecom-v1-order-orders.types.js +0 -652
  52. package/build/cjs/src/ecom-v1-order-orders.types.js.map +0 -1
  53. package/build/cjs/src/ecom-v1-order-orders.universal.js +0 -2294
  54. package/build/cjs/src/ecom-v1-order-orders.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/ecom-v1-order-orders.context.d.ts +0 -34
  66. package/build/es/src/ecom-v1-order-orders.context.js +0 -62
  67. package/build/es/src/ecom-v1-order-orders.context.js.map +0 -1
  68. package/build/es/src/ecom-v1-order-orders.http.d.ts +0 -200
  69. package/build/es/src/ecom-v1-order-orders.http.js +0 -1582
  70. package/build/es/src/ecom-v1-order-orders.http.js.map +0 -1
  71. package/build/es/src/ecom-v1-order-orders.meta.d.ts +0 -78
  72. package/build/es/src/ecom-v1-order-orders.meta.js +0 -452
  73. package/build/es/src/ecom-v1-order-orders.meta.js.map +0 -1
  74. package/build/es/src/ecom-v1-order-orders.public.d.ts +0 -189
  75. package/build/es/src/ecom-v1-order-orders.public.js +0 -302
  76. package/build/es/src/ecom-v1-order-orders.public.js.map +0 -1
  77. package/build/es/src/ecom-v1-order-orders.types.js +0 -648
  78. package/build/es/src/ecom-v1-order-orders.types.js.map +0 -1
  79. package/build/es/src/ecom-v1-order-orders.universal.js +0 -2242
  80. package/build/es/src/ecom-v1-order-orders.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/ecom-v1-order-orders.context.d.ts +0 -62
  91. package/build/internal/cjs/src/ecom-v1-order-orders.context.js +0 -117
  92. package/build/internal/cjs/src/ecom-v1-order-orders.context.js.map +0 -1
  93. package/build/internal/cjs/src/ecom-v1-order-orders.http.d.ts +0 -200
  94. package/build/internal/cjs/src/ecom-v1-order-orders.http.js +0 -1610
  95. package/build/internal/cjs/src/ecom-v1-order-orders.http.js.map +0 -1
  96. package/build/internal/cjs/src/ecom-v1-order-orders.meta.d.ts +0 -78
  97. package/build/internal/cjs/src/ecom-v1-order-orders.meta.js +0 -503
  98. package/build/internal/cjs/src/ecom-v1-order-orders.meta.js.map +0 -1
  99. package/build/internal/cjs/src/ecom-v1-order-orders.public.d.ts +0 -340
  100. package/build/internal/cjs/src/ecom-v1-order-orders.public.js +0 -382
  101. package/build/internal/cjs/src/ecom-v1-order-orders.public.js.map +0 -1
  102. package/build/internal/cjs/src/ecom-v1-order-orders.types.d.ts +0 -6096
  103. package/build/internal/cjs/src/ecom-v1-order-orders.types.js +0 -652
  104. package/build/internal/cjs/src/ecom-v1-order-orders.types.js.map +0 -1
  105. package/build/internal/cjs/src/ecom-v1-order-orders.universal.d.ts +0 -7750
  106. package/build/internal/cjs/src/ecom-v1-order-orders.universal.js +0 -2294
  107. package/build/internal/cjs/src/ecom-v1-order-orders.universal.js.map +0 -1
  108. package/build/internal/es/index.d.ts +0 -1
  109. package/build/internal/es/index.js +0 -2
  110. package/build/internal/es/index.js.map +0 -1
  111. package/build/internal/es/index.typings.d.ts +0 -1
  112. package/build/internal/es/index.typings.js +0 -2
  113. package/build/internal/es/index.typings.js.map +0 -1
  114. package/build/internal/es/meta.d.ts +0 -1
  115. package/build/internal/es/meta.js +0 -2
  116. package/build/internal/es/meta.js.map +0 -1
  117. package/build/internal/es/src/ecom-v1-order-orders.context.d.ts +0 -62
  118. package/build/internal/es/src/ecom-v1-order-orders.context.js +0 -62
  119. package/build/internal/es/src/ecom-v1-order-orders.context.js.map +0 -1
  120. package/build/internal/es/src/ecom-v1-order-orders.http.d.ts +0 -200
  121. package/build/internal/es/src/ecom-v1-order-orders.http.js +0 -1582
  122. package/build/internal/es/src/ecom-v1-order-orders.http.js.map +0 -1
  123. package/build/internal/es/src/ecom-v1-order-orders.meta.d.ts +0 -78
  124. package/build/internal/es/src/ecom-v1-order-orders.meta.js +0 -452
  125. package/build/internal/es/src/ecom-v1-order-orders.meta.js.map +0 -1
  126. package/build/internal/es/src/ecom-v1-order-orders.public.d.ts +0 -340
  127. package/build/internal/es/src/ecom-v1-order-orders.public.js +0 -302
  128. package/build/internal/es/src/ecom-v1-order-orders.public.js.map +0 -1
  129. package/build/internal/es/src/ecom-v1-order-orders.types.d.ts +0 -6096
  130. package/build/internal/es/src/ecom-v1-order-orders.types.js +0 -648
  131. package/build/internal/es/src/ecom-v1-order-orders.types.js.map +0 -1
  132. package/build/internal/es/src/ecom-v1-order-orders.universal.d.ts +0 -7750
  133. package/build/internal/es/src/ecom-v1-order-orders.universal.js +0 -2242
  134. package/build/internal/es/src/ecom-v1-order-orders.universal.js.map +0 -1
@@ -0,0 +1,3192 @@
1
+ import { cc as PreparePaymentCollectionRequest$1, b as PreparePaymentCollectionResponse$1, cg as GetPaymentCollectabilityStatusRequest$1, G as GetPaymentCollectabilityStatusResponse$1, ch as RecordManuallyCollectedPaymentRequest$1, ci as RecordManuallyCollectedPaymentResponse$1, cj as MarkOrderAsPaidRequest$1, ck as MarkOrderAsPaidResponse$1, cm as BulkMarkOrdersAsPaidRequest$1, cn as BulkMarkOrdersAsPaidResponse$1, cs as GetRefundabilityStatusRequest$1, ct as GetRefundabilityStatusResponse$1, cw as CreatePaymentGatewayOrderRequest$1, cy as CreatePaymentGatewayOrderResponse$1, cz as ChargeMembershipsRequest$1, cD as ChargeMembershipsResponse$1, cE as TriggerRefundRequest$1, cO as TriggerRefundResponse$1, dd as VoidAuthorizedPaymentsRequest$1, V as VoidAuthorizedPaymentsResponse$1, de as CaptureAuthorizedPaymentsRequest$1, C as CaptureAuthorizedPaymentsResponse$1, eN as GetOrderRequest$1, eO as GetOrderResponse$1, eS as SearchOrdersRequest$1, d as SearchOrdersResponse$1, eW as CreateOrderRequest$1, eZ as CreateOrderResponse$1, e_ as UpdateOrderRequest$1, e$ as UpdateOrderResponse$1, f0 as BulkUpdateOrdersRequest$1, f as BulkUpdateOrdersResponse$1, f1 as CommitDeltasRequest$1, fh as CommitDeltasResponse$1, fI as UpdateOrderLineItemRequest$1, fJ as UpdateOrderLineItemResponse$1, g8 as AddActivityRequest$1, gb as AddActivityResponse$1, ge as UpdateActivityRequest$1, gf as UpdateActivityResponse$1, gg as DeleteActivityRequest$1, gh as DeleteActivityResponse$1, gn as CancelOrderRequest$1, h as CancelOrderResponse$1, gp as UpdateOrderStatusRequest$1, gq as UpdateOrderStatusResponse$1, gP as AggregateOrdersRequest$1, gQ as AggregateOrdersResponse$1, gU as BulkUpdateOrderTagsRequest$1, j as BulkUpdateOrderTagsResponse$1 } from './ecom-v1-order-orders.universal-UflOyGzD.js';
2
+
3
+ interface Order {
4
+ /**
5
+ * Order ID.
6
+ * @format GUID
7
+ * @readonly
8
+ */
9
+ id?: string | null;
10
+ /**
11
+ * Order number displayed in the site owner's dashboard (auto-generated).
12
+ * @readonly
13
+ */
14
+ number?: string;
15
+ /**
16
+ * Date and time the order was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
17
+ * @readonly
18
+ * @immutable
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
+ * @minSize 1
29
+ * @maxSize 300
30
+ * @readonly
31
+ */
32
+ lineItems?: OrderLineItem[];
33
+ /** Buyer information. */
34
+ buyerInfo?: BuyerInfo;
35
+ /** Order payment status. */
36
+ paymentStatus?: PaymentStatus;
37
+ /**
38
+ * Order fulfillment status.
39
+ * @readonly
40
+ */
41
+ fulfillmentStatus?: FulfillmentStatus;
42
+ /**
43
+ * Language for communication with the buyer. Defaults to the site language.
44
+ * For a site that supports multiple languages, this is the language the buyer selected.
45
+ */
46
+ buyerLanguage?: string | null;
47
+ /** Weight measurement unit - defaults to site's weight unit. */
48
+ weightUnit?: WeightUnit;
49
+ /**
50
+ * 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.
51
+ * @format CURRENCY
52
+ */
53
+ currency?: string | null;
54
+ /** Multi-currency information of the order. */
55
+ currencyConversionDetails?: CurrencyConversionDetails;
56
+ /**
57
+ * Whether tax is included in line item prices.
58
+ * @immutable
59
+ */
60
+ taxIncludedInPrices?: boolean;
61
+ /**
62
+ * Site language in which original values are shown.
63
+ * @readonly
64
+ * @immutable
65
+ */
66
+ siteLanguage?: string | null;
67
+ /**
68
+ * Order price summary.
69
+ * @readonly
70
+ */
71
+ priceSummary?: PriceSummary;
72
+ /** Billing address and contact details. */
73
+ billingInfo?: AddressWithContact;
74
+ /** Shipping info and selected shipping option details. */
75
+ shippingInfo?: V1ShippingInformation;
76
+ /**
77
+ * [Buyer note](https://support.wix.com/en/article/wix-stores-viewing-buyer-notes) left by the customer.
78
+ * @maxLength 1000
79
+ */
80
+ buyerNote?: string | null;
81
+ /** Order status. */
82
+ status?: OrderStatus;
83
+ /** Whether order is archived. */
84
+ archived?: boolean | null;
85
+ /**
86
+ * Tax summary.
87
+ * Deprecated. Use `taxInfo` instead.
88
+ * This field will be removed on September 30, 2024.
89
+ * @deprecated Tax summary.
90
+ * Deprecated. Use `taxInfo` instead.
91
+ * This field will be removed on September 30, 2024.
92
+ * @replacedBy tax_info
93
+ * @targetRemovalDate 2024-09-30
94
+ */
95
+ taxSummary?: TaxSummary;
96
+ /** Tax information. */
97
+ taxInfo?: OrderTaxInfo;
98
+ /**
99
+ * Applied discounts.
100
+ * @maxSize 320
101
+ */
102
+ appliedDiscounts?: AppliedDiscount[];
103
+ /**
104
+ * Order activities.
105
+ * @readonly
106
+ * @maxSize 1000
107
+ */
108
+ activities?: Activity[];
109
+ /** Order attribution source. */
110
+ attributionSource?: AttributionSource;
111
+ /**
112
+ * ID of the order's initiator.
113
+ * @readonly
114
+ */
115
+ createdBy?: CreatedBy;
116
+ /** Information about the sales channel that submitted this order. */
117
+ channelInfo?: ChannelInfo;
118
+ /** Whether a human has seen the order. Set when an order is clicked on in the dashboard. */
119
+ seenByAHuman?: boolean | null;
120
+ /**
121
+ * Checkout ID.
122
+ * @format GUID
123
+ */
124
+ checkoutId?: string | null;
125
+ /** Custom fields. */
126
+ customFields?: CustomField[];
127
+ /**
128
+ * Balance summary.
129
+ * @readonly
130
+ */
131
+ balanceSummary?: BalanceSummary;
132
+ /**
133
+ * Additional fees applied to the order.
134
+ * @maxSize 100
135
+ */
136
+ additionalFees?: AdditionalFee[];
137
+ /**
138
+ * Custom field data for the order object.
139
+ *
140
+ * [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.
141
+ */
142
+ extendedFields?: ExtendedFields;
143
+ /**
144
+ * Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.
145
+ * @format GUID
146
+ */
147
+ purchaseFlowId?: string | null;
148
+ /**
149
+ * Order recipient address and contact details.
150
+ *
151
+ * This field may differ from the address in `shippingInfo.logistics` when:
152
+ * + The chosen shipping option is pickup point or store pickup.
153
+ * + No shipping option is selected.
154
+ */
155
+ recipientInfo?: AddressWithContact;
156
+ /**
157
+ * Order tags.
158
+ *
159
+ * [Tags](https://dev.wix.com/docs/rest/business-management/tags/introduction) are labels attached to entities, allowing for flexible categorization and data management.
160
+ */
161
+ tags?: Tags;
162
+ /**
163
+ * Date and time the order was originally purchased in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
164
+ * Used for migration from external systems.
165
+ * @immutable
166
+ */
167
+ purchasedDate?: Date | null;
168
+ /** Order Location */
169
+ businessLocation?: Location;
170
+ }
171
+ interface OrderLineItem {
172
+ /**
173
+ * Line item ID.
174
+ * @immutable
175
+ */
176
+ id?: string;
177
+ /**
178
+ * Item name.
179
+ * + Stores - `product.name`
180
+ * + Bookings - `service.info.name`
181
+ * + Events - `ticket.name`
182
+ */
183
+ productName?: ProductName;
184
+ /**
185
+ * References to the line item's origin catalog.
186
+ * This field may be empty in the case of a custom line item.
187
+ */
188
+ catalogReference?: CatalogReference;
189
+ /**
190
+ * Line item quantity.
191
+ * @min 1
192
+ * @max 100000
193
+ */
194
+ quantity?: number;
195
+ /**
196
+ * Total discount for this line item's entire quantity.
197
+ * @readonly
198
+ */
199
+ totalDiscount?: Price;
200
+ /**
201
+ * Line item description lines. Used for display purposes for the cart, checkout and order.
202
+ * @maxSize 20
203
+ */
204
+ descriptionLines?: DescriptionLine[];
205
+ /** Line item image. */
206
+ image?: Image;
207
+ /** Physical properties of the item. When relevant, contains information such as SKU and item weight. */
208
+ physicalProperties?: PhysicalProperties;
209
+ /** Item type. Either a preset type or custom. */
210
+ itemType?: ItemType;
211
+ /**
212
+ * Fulfiller ID. Field is empty when the line item is self-fulfilled.
213
+ * 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).
214
+ * @format GUID
215
+ */
216
+ fulfillerId?: string | null;
217
+ /**
218
+ * Number of items that were refunded.
219
+ * @max 100000
220
+ */
221
+ refundQuantity?: number | null;
222
+ /**
223
+ * Number of items restocked.
224
+ * @max 100000
225
+ */
226
+ restockQuantity?: number | null;
227
+ /** Line item price after line item discounts for display purposes. */
228
+ price?: Price;
229
+ /**
230
+ * Line item price before line item discounts for display purposes. Defaults to `price` when not provided.
231
+ * @readonly
232
+ */
233
+ priceBeforeDiscounts?: Price;
234
+ /**
235
+ * Total price after discounts, and before tax.
236
+ * @readonly
237
+ */
238
+ totalPriceBeforeTax?: Price;
239
+ /**
240
+ * Total price after all discounts and tax.
241
+ * @readonly
242
+ */
243
+ totalPriceAfterTax?: Price;
244
+ /**
245
+ * Type of selected payment option for current item.
246
+ *
247
+ * Default: `FULL_PAYMENT_ONLINE`
248
+ */
249
+ paymentOption?: PaymentOptionType;
250
+ /**
251
+ * Deprecated. Use `taxInfo` instead.
252
+ * This field will be removed on September 30, 2024.
253
+ * Tax details for this line item.
254
+ * @deprecated Deprecated. Use `taxInfo` instead.
255
+ * This field will be removed on September 30, 2024.
256
+ * Tax details for this line item.
257
+ * @replacedBy tax_info
258
+ * @targetRemovalDate 2024-09-30
259
+ */
260
+ taxDetails?: ItemTaxFullDetails;
261
+ /** Represents all the relevant tax details for a specific line item. */
262
+ taxInfo?: LineItemTaxInfo;
263
+ /** Digital file identifier, relevant only for items with type DIGITAL. */
264
+ digitalFile?: DigitalFile;
265
+ /** Subscription info. */
266
+ subscriptionInfo?: SubscriptionInfo;
267
+ /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
268
+ priceDescription?: PriceDescription;
269
+ /**
270
+ * Item's price amount to be charged during checkout. Relevant for items with a `paymentOption` value of `"DEPOSIT_ONLINE"`.
271
+ * @readonly
272
+ */
273
+ depositAmount?: Price;
274
+ /**
275
+ * Line item locations.
276
+ *
277
+ * The location's total quantity must not exceed the line item quantity.
278
+ * @maxSize 5
279
+ */
280
+ locations?: LocationAndQuantity[];
281
+ /**
282
+ * Custom extended fields for the line item object.
283
+ *
284
+ * [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.
285
+ */
286
+ extendedFields?: ExtendedFields;
287
+ }
288
+ interface ProductName {
289
+ /**
290
+ * __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).
291
+ *
292
+ * Min: 1 character.
293
+ * Max: 200 characters.
294
+ * @minLength 1
295
+ * @maxLength 200
296
+ */
297
+ original?: string;
298
+ /**
299
+ * Item name translated into the buyer's language.
300
+ *
301
+ * Min: 1 character.
302
+ * Max: 400 characters.
303
+ * Default: Same as `original`.
304
+ * @minLength 1
305
+ * @maxLength 400
306
+ */
307
+ translated?: string | null;
308
+ }
309
+ /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
310
+ interface CatalogReference {
311
+ /**
312
+ * ID of the item within the catalog it belongs to.
313
+ * @minLength 1
314
+ * @maxLength 36
315
+ */
316
+ catalogItemId?: string;
317
+ /**
318
+ * ID of the app providing the catalog.
319
+ *
320
+ * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
321
+ *
322
+ * For items from Wix catalogs, the following values always apply:
323
+ * + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
324
+ * + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
325
+ * + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
326
+ * @minLength 1
327
+ */
328
+ appId?: string;
329
+ /**
330
+ * 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.
331
+ *
332
+ * For products and variants from a Wix Stores catalog, learn more about eCommerce integration ([SDK](https://dev.wix.com/docs/sdk/backend-modules/stores/catalog-v3/e-commerce-integration) | [REST](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration)).
333
+ */
334
+ options?: Record<string, any> | null;
335
+ }
336
+ interface Price {
337
+ /**
338
+ * Amount.
339
+ * @decimalValue options { gte:0, lte:1000000000000000 }
340
+ */
341
+ amount?: string;
342
+ /**
343
+ * Amount formatted with currency symbol.
344
+ * @readonly
345
+ */
346
+ formattedAmount?: string;
347
+ }
348
+ interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf {
349
+ /** Description line plain text value. */
350
+ plainText?: PlainTextValue;
351
+ /** Description line color value. */
352
+ colorInfo?: Color;
353
+ /** Description line name. */
354
+ name?: DescriptionLineName;
355
+ }
356
+ /** @oneof */
357
+ interface DescriptionLineValueOneOf {
358
+ /** Description line plain text value. */
359
+ plainText?: PlainTextValue;
360
+ /** Description line color value. */
361
+ colorInfo?: Color;
362
+ }
363
+ /** @oneof */
364
+ interface DescriptionLineDescriptionLineValueOneOf {
365
+ }
366
+ interface DescriptionLineName {
367
+ /**
368
+ * 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).
369
+ * @maxLength 100
370
+ */
371
+ original?: string;
372
+ /**
373
+ * Description line name translated into the buyer's language.
374
+ *
375
+ * Default: Same as `original`.
376
+ * @maxLength 200
377
+ */
378
+ translated?: string | null;
379
+ }
380
+ interface PlainTextValue {
381
+ /**
382
+ * 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).
383
+ * @maxLength 600
384
+ */
385
+ original?: string;
386
+ /**
387
+ * Description line plain text value translated into the buyer's language.
388
+ *
389
+ * Default: Same as `original`.
390
+ * @maxLength 600
391
+ */
392
+ translated?: string | null;
393
+ }
394
+ interface Color {
395
+ /**
396
+ * 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).
397
+ * @maxLength 500
398
+ */
399
+ original?: string;
400
+ /**
401
+ * Description line color name translated into the buyer's language.
402
+ *
403
+ * Default: Same as `original`.
404
+ * @maxLength 500
405
+ */
406
+ translated?: string | null;
407
+ /** HEX or RGB color code for display. */
408
+ code?: string | null;
409
+ }
410
+ interface Image {
411
+ /** WixMedia image ID. */
412
+ id?: string;
413
+ /** Image URL. */
414
+ url?: string;
415
+ /**
416
+ * Original image height.
417
+ * @readonly
418
+ */
419
+ height?: number;
420
+ /**
421
+ * Original image width.
422
+ * @readonly
423
+ */
424
+ width?: number;
425
+ /** Image alt text. */
426
+ altText?: string | null;
427
+ /**
428
+ * Image filename.
429
+ * @readonly
430
+ */
431
+ filename?: string | null;
432
+ }
433
+ interface PhysicalProperties {
434
+ /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
435
+ weight?: number | null;
436
+ /**
437
+ * Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).
438
+ * @maxLength 40
439
+ */
440
+ sku?: string | null;
441
+ /** Whether this line item is shippable. */
442
+ shippable?: boolean;
443
+ }
444
+ interface ItemType extends ItemTypeItemTypeDataOneOf {
445
+ /** Preset item type. */
446
+ preset?: ItemTypeItemType;
447
+ /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
448
+ custom?: string;
449
+ }
450
+ /** @oneof */
451
+ interface ItemTypeItemTypeDataOneOf {
452
+ /** Preset item type. */
453
+ preset?: ItemTypeItemType;
454
+ /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
455
+ custom?: string;
456
+ }
457
+ declare enum ItemTypeItemType {
458
+ UNRECOGNISED = "UNRECOGNISED",
459
+ PHYSICAL = "PHYSICAL",
460
+ DIGITAL = "DIGITAL",
461
+ GIFT_CARD = "GIFT_CARD",
462
+ SERVICE = "SERVICE"
463
+ }
464
+ /** Type of selected payment option for catalog item */
465
+ declare enum PaymentOptionType {
466
+ /** The entire payment for this item happens as part of the checkout. */
467
+ FULL_PAYMENT_ONLINE = "FULL_PAYMENT_ONLINE",
468
+ /** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */
469
+ FULL_PAYMENT_OFFLINE = "FULL_PAYMENT_OFFLINE",
470
+ /** Payment for this item is done by charging a membership. When selected, `price` is `0`. */
471
+ MEMBERSHIP = "MEMBERSHIP",
472
+ /** Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`. */
473
+ DEPOSIT_ONLINE = "DEPOSIT_ONLINE",
474
+ /** 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`. */
475
+ MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
476
+ }
477
+ interface ItemTaxFullDetails {
478
+ /** Taxable amount of this line item. */
479
+ taxableAmount?: Price;
480
+ /**
481
+ * Tax rate percentage, as a decimal numeral between 0 and 1. For example, `"0.13"`.
482
+ * @decimalValue options { gte:0, maxScale:6 }
483
+ */
484
+ taxRate?: string;
485
+ /** The calculated tax, based on the `taxableAmount` and `taxRate`. */
486
+ totalTax?: Price;
487
+ }
488
+ interface LineItemTaxInfo {
489
+ /** Calculated tax, based on `taxable_amount` and `tax_rate`. */
490
+ taxAmount?: Price;
491
+ /** Amount for which tax is calculated. */
492
+ taxableAmount?: Price;
493
+ /**
494
+ * Tax rate %, as a decimal point.
495
+ * @format DECIMAL_VALUE
496
+ * @decimalValue options { gte:0, maxScale:6 }
497
+ */
498
+ taxRate?: string | null;
499
+ /**
500
+ * Tax group ID.
501
+ * @format GUID
502
+ */
503
+ taxGroupId?: string | null;
504
+ /** Indicates whether the price already includes tax. */
505
+ taxIncludedInPrice?: boolean;
506
+ /**
507
+ * Tax information for a line item.
508
+ * @maxSize 7
509
+ */
510
+ taxBreakdown?: LineItemTaxBreakdown[];
511
+ }
512
+ /**
513
+ * TaxBreakdown represents tax information for a line item.
514
+ * It holds the tax amount and the tax rate for each tax authority that apply on the line item.
515
+ */
516
+ interface LineItemTaxBreakdown {
517
+ /**
518
+ * Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec".
519
+ * @maxLength 200
520
+ */
521
+ jurisdiction?: string | null;
522
+ /**
523
+ * Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000.
524
+ * @format DECIMAL_VALUE
525
+ * @decimalValue options { gte:0, maxScale:6 }
526
+ */
527
+ rate?: string | null;
528
+ /** Amount of tax calculated for this line item. */
529
+ taxAmount?: Price;
530
+ /**
531
+ * The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc.
532
+ * @maxLength 200
533
+ */
534
+ taxType?: string | null;
535
+ /**
536
+ * The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.
537
+ * This name should be explicit enough to allow the merchant to understand what tax was calculated.
538
+ * @maxLength 200
539
+ */
540
+ taxName?: string | null;
541
+ /** Type of jurisdiction that taxes were calculated for. */
542
+ jurisdictionType?: JurisdictionType;
543
+ /** Non-taxable amount of the line item price. */
544
+ nonTaxableAmount?: Price;
545
+ /** Taxable amount of the line item price. */
546
+ taxableAmount?: Price;
547
+ }
548
+ /** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
549
+ declare enum JurisdictionType {
550
+ UNDEFINED = "UNDEFINED",
551
+ COUNTRY = "COUNTRY",
552
+ STATE = "STATE",
553
+ COUNTY = "COUNTY",
554
+ CITY = "CITY",
555
+ SPECIAL = "SPECIAL"
556
+ }
557
+ interface DigitalFile {
558
+ /**
559
+ * ID of the secure file in media.
560
+ * @minLength 1
561
+ * @maxLength 100
562
+ */
563
+ fileId?: string;
564
+ /**
565
+ * Link will exist after the digital links have been generated on the order.
566
+ * @format WEB_URL
567
+ * @minLength 1
568
+ * @maxLength 2000
569
+ */
570
+ link?: string | null;
571
+ /**
572
+ * Link expiration time and date.
573
+ * @readonly
574
+ */
575
+ expirationDate?: Date | null;
576
+ }
577
+ interface SubscriptionInfo {
578
+ /**
579
+ * Subscription ID.
580
+ * @format GUID
581
+ */
582
+ id?: string | null;
583
+ /**
584
+ * Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`.
585
+ * @min 1
586
+ */
587
+ cycleNumber?: number;
588
+ /**
589
+ * Subscription option title. For example, `"Monthly coffee Subscription"`.
590
+ * @maxLength 20
591
+ * @deprecated Subscription option title. For example, `"Monthly coffee Subscription"`.
592
+ * @replacedBy title
593
+ * @targetRemovalDate 2025-10-01
594
+ */
595
+ subscriptionOptionTitle?: string;
596
+ /**
597
+ * Subscription option description. For example, `"1kg of selected coffee, once a month"`.
598
+ * @maxLength 60
599
+ * @deprecated Subscription option description. For example, `"1kg of selected coffee, once a month"`.
600
+ * @replacedBy description
601
+ * @targetRemovalDate 2025-10-01
602
+ */
603
+ subscriptionOptionDescription?: string | null;
604
+ /**
605
+ * Subscription detailed information.
606
+ * @immutable
607
+ */
608
+ subscriptionSettings?: SubscriptionSettings;
609
+ }
610
+ interface SubscriptionSettings {
611
+ /** Frequency of recurring payment. */
612
+ frequency?: SubscriptionFrequency;
613
+ /**
614
+ * Interval of recurring payment.
615
+ * @min 1
616
+ * @max 50
617
+ */
618
+ interval?: number | null;
619
+ /** Whether subscription is renewed automatically at the end of each period. */
620
+ autoRenewal?: boolean;
621
+ /**
622
+ * Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.
623
+ * @min 1
624
+ */
625
+ billingCycles?: number | null;
626
+ }
627
+ /** Frequency unit of recurring payment */
628
+ declare enum SubscriptionFrequency {
629
+ UNDEFINED = "UNDEFINED",
630
+ DAY = "DAY",
631
+ WEEK = "WEEK",
632
+ MONTH = "MONTH",
633
+ YEAR = "YEAR"
634
+ }
635
+ interface PriceDescription {
636
+ /**
637
+ * __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).
638
+ * @minLength 1
639
+ * @maxLength 100
640
+ */
641
+ original?: string;
642
+ /**
643
+ * Price description translated into the buyer's language.
644
+ *
645
+ * Default: Same as `original`.
646
+ * @minLength 1
647
+ * @maxLength 100
648
+ */
649
+ translated?: string | null;
650
+ }
651
+ interface LocationAndQuantity {
652
+ /**
653
+ * Location id in the associated owner app.
654
+ * @format GUID
655
+ */
656
+ id?: string;
657
+ /**
658
+ * Location owner app, if not provided then the site business info locations will be used.
659
+ * @format GUID
660
+ * @deprecated Location owner app, if not provided then the site business info locations will be used.
661
+ * @targetRemovalDate 2025-03-01
662
+ */
663
+ appId?: string | null;
664
+ /**
665
+ * Quantity for specific location.
666
+ * @min 1
667
+ * @max 100000
668
+ */
669
+ quantity?: number;
670
+ /**
671
+ * Location name.
672
+ * @maxLength 500
673
+ * @readonly
674
+ */
675
+ name?: string | null;
676
+ }
677
+ interface ExtendedFields {
678
+ /**
679
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
680
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
681
+ *
682
+ * You can only access fields for which you have the appropriate permissions.
683
+ *
684
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
685
+ */
686
+ namespaces?: Record<string, Record<string, any>>;
687
+ }
688
+ /** Buyer Info */
689
+ interface BuyerInfo extends BuyerInfoIdOneOf {
690
+ /**
691
+ * Visitor ID (if site visitor is not a member).
692
+ * @format GUID
693
+ */
694
+ visitorId?: string;
695
+ /**
696
+ * Member ID (if site visitor is a site member).
697
+ * @format GUID
698
+ */
699
+ memberId?: string;
700
+ /**
701
+ * 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).
702
+ * @format GUID
703
+ */
704
+ contactId?: string | null;
705
+ /**
706
+ * Buyer email address.
707
+ * @format EMAIL
708
+ */
709
+ email?: string | null;
710
+ }
711
+ /** @oneof */
712
+ interface BuyerInfoIdOneOf {
713
+ /**
714
+ * Visitor ID (if site visitor is not a member).
715
+ * @format GUID
716
+ */
717
+ visitorId?: string;
718
+ /**
719
+ * Member ID (if site visitor is a site member).
720
+ * @format GUID
721
+ */
722
+ memberId?: string;
723
+ }
724
+ declare enum PaymentStatus {
725
+ UNSPECIFIED = "UNSPECIFIED",
726
+ /**
727
+ * `NOT_PAID` can apply to an order made online, but not yet paid. In such cases `order.status` will be `INITIALIZED`.
728
+ * This status also applies when an offline order needs to be manually marked as paid. In such cases `order.status` will be `APPROVED`.
729
+ */
730
+ NOT_PAID = "NOT_PAID",
731
+ /** All required payments associated with this order are paid. */
732
+ PAID = "PAID",
733
+ /** Order partially refunded, but the refunded amount is less than the order's total price. See `order.balanceSummary` for more details. */
734
+ PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
735
+ /** Order fully refunded. Refund amount equals total price. See `order.balanceSummary` for more details. */
736
+ FULLY_REFUNDED = "FULLY_REFUNDED",
737
+ /**
738
+ * All payments pending.
739
+ *
740
+ * 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.
741
+ * Learn more about [pending orders](https://support.wix.com/en/article/pending-orders).
742
+ */
743
+ PENDING = "PENDING",
744
+ /** At least one payment received and approved, but it covers less than the order's total price. See `order.balanceSummary` for more details. */
745
+ PARTIALLY_PAID = "PARTIALLY_PAID",
746
+ /**
747
+ * Payment received, but not yet confirmed by the payment provider.
748
+ *
749
+ * In most cases, when a payment provider is holding payment it's because setup hasn't been successfully completed by the merchant/site owner.
750
+ * 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.
751
+ * @documentationMaturity preview
752
+ */
753
+ PENDING_MERCHANT = "PENDING_MERCHANT",
754
+ /**
755
+ * One or more payments canceled.
756
+ * @documentationMaturity preview
757
+ */
758
+ CANCELED = "CANCELED",
759
+ /**
760
+ * One or more payments declined.
761
+ * @documentationMaturity preview
762
+ */
763
+ DECLINED = "DECLINED"
764
+ }
765
+ declare enum FulfillmentStatus {
766
+ /** None of the order items are fulfilled or the order was manually marked as unfulfilled. */
767
+ NOT_FULFILLED = "NOT_FULFILLED",
768
+ /**
769
+ * All of the order items are fulfilled or the order was manually marked as fulfilled.
770
+ * Orders without shipping info are fulfilled automatically.
771
+ */
772
+ FULFILLED = "FULFILLED",
773
+ /** Some, but not all, of the order items are fulfilled. */
774
+ PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED"
775
+ }
776
+ declare enum WeightUnit {
777
+ /** Weight unit can't be classified due to an error. */
778
+ UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
779
+ /** Kilograms. */
780
+ KG = "KG",
781
+ /** Pounds. */
782
+ LB = "LB"
783
+ }
784
+ interface CurrencyConversionDetails {
785
+ /**
786
+ * Original currency used to calculate the pricing before conversion to payment currency set on the order [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.
787
+ * @readonly
788
+ * @immutable
789
+ * @format CURRENCY
790
+ */
791
+ originalCurrency?: string | null;
792
+ /**
793
+ * The rate used when converting from the original currency to the payment currency.
794
+ * @readonly
795
+ * @immutable
796
+ * @decimalValue options { gt:0, lte:1000000000000000 }
797
+ */
798
+ conversionRate?: string | null;
799
+ }
800
+ interface PriceSummary {
801
+ /** Subtotal of all the line items, before discounts and before tax. */
802
+ subtotal?: Price;
803
+ /** Total shipping price, before discounts and before tax. */
804
+ shipping?: Price;
805
+ /** Total tax on this order. */
806
+ tax?: Price;
807
+ /** Total calculated discount value. */
808
+ discount?: Price;
809
+ /** Order’s total price after discounts and tax. */
810
+ total?: Price;
811
+ /** Total price of additional fees before tax. */
812
+ totalAdditionalFees?: Price;
813
+ }
814
+ /** Billing Info and shipping details */
815
+ interface AddressWithContact {
816
+ /** Address. */
817
+ address?: Address;
818
+ /** Contact details. */
819
+ contactDetails?: FullAddressContactDetails;
820
+ }
821
+ /** Physical address */
822
+ interface Address {
823
+ /**
824
+ * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
825
+ * @format COUNTRY
826
+ */
827
+ country?: string | null;
828
+ /**
829
+ * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
830
+ * @maxLength 50
831
+ */
832
+ subdivision?: string | null;
833
+ /**
834
+ * City name.
835
+ * @maxLength 50
836
+ */
837
+ city?: string | null;
838
+ /**
839
+ * Postal or zip code.
840
+ * @maxLength 50
841
+ */
842
+ postalCode?: string | null;
843
+ /** Street address. */
844
+ streetAddress?: StreetAddress;
845
+ /**
846
+ * Main address line (usually street name and number).
847
+ * @maxLength 150
848
+ */
849
+ addressLine?: string | null;
850
+ /**
851
+ * Free text providing more detailed address info. Usually contains apt, suite, floor.
852
+ * @maxLength 100
853
+ */
854
+ addressLine2?: string | null;
855
+ /**
856
+ * Country's full name.
857
+ * @readonly
858
+ */
859
+ countryFullname?: string | null;
860
+ /**
861
+ * Subdivision full-name.
862
+ * @readonly
863
+ */
864
+ subdivisionFullname?: string | null;
865
+ }
866
+ interface StreetAddress {
867
+ /** Street number. */
868
+ number?: string;
869
+ /** Street name. */
870
+ name?: string;
871
+ }
872
+ /** Full contact details for an address */
873
+ interface FullAddressContactDetails {
874
+ /**
875
+ * First name.
876
+ * @maxLength 100
877
+ */
878
+ firstName?: string | null;
879
+ /**
880
+ * Last name.
881
+ * @maxLength 100
882
+ */
883
+ lastName?: string | null;
884
+ /**
885
+ * Phone number.
886
+ * @format PHONE
887
+ */
888
+ phone?: string | null;
889
+ /**
890
+ * Company name.
891
+ * @maxLength 1000
892
+ */
893
+ company?: string | null;
894
+ /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
895
+ vatId?: VatId;
896
+ }
897
+ interface VatId {
898
+ /** Customer's tax ID. */
899
+ id?: string;
900
+ /**
901
+ * Tax type.
902
+ *
903
+ * Supported values:
904
+ * + `CPF`: for individual tax payers
905
+ * + `CNPJ`: for corporations
906
+ */
907
+ type?: VatType;
908
+ }
909
+ /** tax info types */
910
+ declare enum VatType {
911
+ UNSPECIFIED = "UNSPECIFIED",
912
+ /** CPF - for individual tax payers. */
913
+ CPF = "CPF",
914
+ /** CNPJ - for corporations */
915
+ CNPJ = "CNPJ"
916
+ }
917
+ interface V1ShippingInformation {
918
+ /**
919
+ * App Def Id of external provider which was a source of shipping info
920
+ * @minLength 1
921
+ * @maxLength 100
922
+ */
923
+ carrierId?: string | null;
924
+ /**
925
+ * Unique code (or ID) of selected shipping option. For example, `"usps_std_overnight"`.
926
+ * @minLength 1
927
+ * @maxLength 100
928
+ */
929
+ code?: string | null;
930
+ /**
931
+ * Shipping option title.
932
+ * For example, `"USPS Standard Overnight Delivery"`, `"Standard"` or `"First-Class Package International"`.
933
+ * @maxLength 250
934
+ */
935
+ title?: string;
936
+ /** Shipping logistics. */
937
+ logistics?: DeliveryLogistics;
938
+ /** Shipping costs. */
939
+ cost?: ShippingPrice;
940
+ /** Shipping region. */
941
+ region?: ShippingRegion;
942
+ }
943
+ interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {
944
+ /** Shipping address and contact details. */
945
+ shippingDestination?: AddressWithContact;
946
+ /** Pickup details. */
947
+ pickupDetails?: PickupDetails;
948
+ /**
949
+ * Expected delivery time in free text. For example, `"3-5 business days"`.
950
+ * @maxLength 500
951
+ */
952
+ deliveryTime?: string | null;
953
+ /**
954
+ * Instructions for carrier. For example, `"Please knock on the door. If unanswered, please call contact number. Thanks."`.
955
+ * @maxLength 1000
956
+ */
957
+ instructions?: string | null;
958
+ /**
959
+ * Deprecated - Latest expected delivery date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
960
+ * @deprecated
961
+ */
962
+ deliverByDate?: Date | null;
963
+ /** Expected delivery time. */
964
+ deliveryTimeSlot?: DeliveryTimeSlot;
965
+ }
966
+ /** @oneof */
967
+ interface DeliveryLogisticsAddressOneOf {
968
+ /** Shipping address and contact details. */
969
+ shippingDestination?: AddressWithContact;
970
+ /** Pickup details. */
971
+ pickupDetails?: PickupDetails;
972
+ }
973
+ interface PickupDetails {
974
+ /** Pickup address. */
975
+ address?: PickupAddress;
976
+ /** Pickup method */
977
+ pickupMethod?: PickupMethod;
978
+ }
979
+ /** Physical address */
980
+ interface PickupAddress {
981
+ /**
982
+ * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
983
+ * @format COUNTRY
984
+ */
985
+ country?: string | null;
986
+ /**
987
+ * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
988
+ * @maxLength 50
989
+ */
990
+ subdivision?: string | null;
991
+ /**
992
+ * City name.
993
+ * @maxLength 1000
994
+ */
995
+ city?: string | null;
996
+ /**
997
+ * Postal or zip code.
998
+ * @maxLength 1000
999
+ */
1000
+ postalCode?: string | null;
1001
+ /** Street address object, with number, name, and apartment number in separate fields. */
1002
+ streetAddress?: StreetAddress;
1003
+ /**
1004
+ * Main address line (usually street name and number).
1005
+ * @maxLength 1000
1006
+ */
1007
+ addressLine?: string | null;
1008
+ /**
1009
+ * Free text providing more detailed address info. Usually contains apt, suite, floor.
1010
+ * @maxLength 1000
1011
+ */
1012
+ addressLine2?: string | null;
1013
+ /**
1014
+ * Country's full name.
1015
+ * @readonly
1016
+ */
1017
+ countryFullname?: string | null;
1018
+ /**
1019
+ * Subdivision full-name.
1020
+ * @readonly
1021
+ */
1022
+ subdivisionFullname?: string | null;
1023
+ }
1024
+ declare enum PickupMethod {
1025
+ UNKNOWN_METHOD = "UNKNOWN_METHOD",
1026
+ STORE_PICKUP = "STORE_PICKUP",
1027
+ PICKUP_POINT = "PICKUP_POINT"
1028
+ }
1029
+ interface DeliveryTimeSlot {
1030
+ /** Delivery slot starting time. */
1031
+ from?: Date | null;
1032
+ /** Delivery slot ending time. */
1033
+ to?: Date | null;
1034
+ }
1035
+ interface ShippingPrice {
1036
+ /** Shipping price for display purposes. */
1037
+ price?: Price;
1038
+ /**
1039
+ * Total price of shipping after discounts (when relevant), and before tax.
1040
+ * @readonly
1041
+ */
1042
+ totalPriceBeforeTax?: Price;
1043
+ /**
1044
+ * Shipping price after all discounts (if any exist), and after tax.
1045
+ * @readonly
1046
+ */
1047
+ totalPriceAfterTax?: Price;
1048
+ /** Tax details. */
1049
+ taxDetails?: ItemTaxFullDetails;
1050
+ /**
1051
+ * Shipping discount before tax.
1052
+ * @readonly
1053
+ */
1054
+ discount?: Price;
1055
+ }
1056
+ interface ShippingRegion {
1057
+ /**
1058
+ * Name of shipping region. For example, `"Metropolitan London"`, or `"Outer Melbourne suburbs"`.
1059
+ * @maxLength 100
1060
+ */
1061
+ name?: string | null;
1062
+ }
1063
+ declare enum OrderStatus {
1064
+ /** Order created, but not yet approved or canceled. */
1065
+ INITIALIZED = "INITIALIZED",
1066
+ /**
1067
+ * Order approved.
1068
+ *
1069
+ * This happens when either an online payment is received **or** when `order.priceSummary.total = 0` (a zero-total order).
1070
+ * Offline orders (cash payment) are automatically approved.
1071
+ */
1072
+ APPROVED = "APPROVED",
1073
+ /** Order canceled by the user. */
1074
+ CANCELED = "CANCELED",
1075
+ /**
1076
+ * Order pending.
1077
+ * @documentationMaturity preview
1078
+ */
1079
+ PENDING = "PENDING",
1080
+ /**
1081
+ * Order rejected.
1082
+ *
1083
+ * This happens when pending payments fail.
1084
+ * @documentationMaturity preview
1085
+ */
1086
+ REJECTED = "REJECTED"
1087
+ }
1088
+ interface TaxSummary {
1089
+ /**
1090
+ * Total tax.
1091
+ * @readonly
1092
+ */
1093
+ totalTax?: Price;
1094
+ }
1095
+ interface OrderTaxInfo {
1096
+ /** Calculated tax, added from line items. */
1097
+ totalTax?: Price;
1098
+ /**
1099
+ * 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.
1100
+ * @maxSize 50
1101
+ */
1102
+ taxBreakdown?: OrderTaxBreakdown[];
1103
+ /**
1104
+ * Whether the order is exempt from tax calculations.
1105
+ *
1106
+ * Default: `false`
1107
+ * @readonly
1108
+ */
1109
+ taxExempt?: boolean | null;
1110
+ }
1111
+ /**
1112
+ * 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.
1113
+ * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.
1114
+ */
1115
+ interface OrderTaxBreakdown {
1116
+ /**
1117
+ * The name of the tax against which this tax amount was calculated.
1118
+ * @maxLength 200
1119
+ */
1120
+ taxName?: string;
1121
+ /**
1122
+ * The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws.
1123
+ * @maxLength 200
1124
+ */
1125
+ taxType?: string;
1126
+ /**
1127
+ * The name of the jurisdiction in which this tax detail applies.
1128
+ * @maxLength 200
1129
+ */
1130
+ jurisdiction?: string;
1131
+ /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
1132
+ jurisdictionType?: JurisdictionType;
1133
+ /**
1134
+ * The rate at which this tax detail was calculated.
1135
+ * @format DECIMAL_VALUE
1136
+ * @decimalValue options { gte:0, maxScale:6 }
1137
+ */
1138
+ rate?: string;
1139
+ /** The sum of all the tax from line items that calculated by the tax identifiers. */
1140
+ aggregatedTaxAmount?: Price;
1141
+ }
1142
+ interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
1143
+ /** Applied coupon info. */
1144
+ coupon?: Coupon;
1145
+ /** Merchant discount. */
1146
+ merchantDiscount?: MerchantDiscount;
1147
+ /** Automatic Discount */
1148
+ discountRule?: DiscountRule;
1149
+ /**
1150
+ * Discount type.
1151
+ * * `"GLOBAL"` - discount applies to entire order.
1152
+ * * `"SPECIFIC-ITEMS"` - discount applies to specific items.
1153
+ * * `"SHIPPING"` - discount applies to shipping. For example, free shipping.
1154
+ */
1155
+ discountType?: DiscountType;
1156
+ /**
1157
+ * IDs of line items discount applies to.
1158
+ * Deprecated. Use `line_item_discounts` instead.
1159
+ * @format GUID
1160
+ * @maxSize 1
1161
+ * @deprecated IDs of line items discount applies to.
1162
+ * Deprecated. Use `line_item_discounts` instead.
1163
+ * @replacedBy line_item_discounts
1164
+ * @targetRemovalDate 2024-10-30
1165
+ */
1166
+ lineItemIds?: string[];
1167
+ /**
1168
+ * Discount id.
1169
+ * @format GUID
1170
+ * @immutable
1171
+ */
1172
+ id?: string | null;
1173
+ }
1174
+ /** @oneof */
1175
+ interface AppliedDiscountDiscountSourceOneOf {
1176
+ /** Applied coupon info. */
1177
+ coupon?: Coupon;
1178
+ /** Merchant discount. */
1179
+ merchantDiscount?: MerchantDiscount;
1180
+ /** Automatic Discount */
1181
+ discountRule?: DiscountRule;
1182
+ }
1183
+ declare enum DiscountType {
1184
+ GLOBAL = "GLOBAL",
1185
+ SPECIFIC_ITEMS = "SPECIFIC_ITEMS",
1186
+ SHIPPING = "SHIPPING"
1187
+ }
1188
+ /** Coupon */
1189
+ interface Coupon {
1190
+ /** Coupon ID. */
1191
+ id?: string;
1192
+ /** Coupon code. */
1193
+ code?: string;
1194
+ /** Coupon name. */
1195
+ name?: string;
1196
+ /** Coupon value. */
1197
+ amount?: Price;
1198
+ }
1199
+ interface MerchantDiscount extends MerchantDiscountMerchantDiscountReasonOneOf {
1200
+ /**
1201
+ * Pre-defined discount reason (optional).
1202
+ * * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
1203
+ */
1204
+ discountReason?: DiscountReason;
1205
+ /**
1206
+ * Discount description as free text (optional).
1207
+ * @maxLength 200
1208
+ */
1209
+ description?: string | null;
1210
+ /** Discount amount. */
1211
+ amount?: Price;
1212
+ }
1213
+ /** @oneof */
1214
+ interface MerchantDiscountMerchantDiscountReasonOneOf {
1215
+ /**
1216
+ * Pre-defined discount reason (optional).
1217
+ * * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
1218
+ */
1219
+ discountReason?: DiscountReason;
1220
+ /**
1221
+ * Discount description as free text (optional).
1222
+ * @maxLength 200
1223
+ */
1224
+ description?: string | null;
1225
+ }
1226
+ declare enum DiscountReason {
1227
+ UNSPECIFIED = "UNSPECIFIED",
1228
+ EXCHANGED_ITEMS = "EXCHANGED_ITEMS",
1229
+ BILLING_ADJUSTMENT = "BILLING_ADJUSTMENT"
1230
+ }
1231
+ interface DiscountRule {
1232
+ /**
1233
+ * Discount rule ID
1234
+ * @format GUID
1235
+ */
1236
+ id?: string;
1237
+ /** Discount rule name */
1238
+ name?: DiscountRuleName;
1239
+ /** Discount value. */
1240
+ amount?: Price;
1241
+ }
1242
+ interface DiscountRuleName {
1243
+ /**
1244
+ * Original discount rule name (in site's default language).
1245
+ * @minLength 1
1246
+ * @maxLength 256
1247
+ */
1248
+ original?: string;
1249
+ /**
1250
+ * Translated discount rule name according to buyer language. Defaults to `original` when not provided.
1251
+ * @minLength 1
1252
+ * @maxLength 500
1253
+ */
1254
+ translated?: string | null;
1255
+ }
1256
+ interface Activity extends ActivityContentOneOf {
1257
+ /** Custom activity details (optional). `activity.type` must be `CUSTOM_ACTIVITY`. */
1258
+ customActivity?: CustomActivity;
1259
+ /** Merchant comment details (optional). `activity.type` must be `MERCHANT_COMMENT`. */
1260
+ merchantComment?: MerchantComment;
1261
+ /** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */
1262
+ orderRefunded?: OrderRefunded;
1263
+ /**
1264
+ * Activity ID.
1265
+ * @format GUID
1266
+ * @readonly
1267
+ */
1268
+ id?: string | null;
1269
+ /**
1270
+ * Activity author's email.
1271
+ * @format EMAIL
1272
+ * @readonly
1273
+ */
1274
+ authorEmail?: string | null;
1275
+ /**
1276
+ * Activity creation date and time.
1277
+ * @readonly
1278
+ */
1279
+ createdDate?: Date | null;
1280
+ /** Activity type. */
1281
+ type?: ActivityType;
1282
+ }
1283
+ /** @oneof */
1284
+ interface ActivityContentOneOf {
1285
+ /** Custom activity details (optional). `activity.type` must be `CUSTOM_ACTIVITY`. */
1286
+ customActivity?: CustomActivity;
1287
+ /** Merchant comment details (optional). `activity.type` must be `MERCHANT_COMMENT`. */
1288
+ merchantComment?: MerchantComment;
1289
+ /** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */
1290
+ orderRefunded?: OrderRefunded;
1291
+ }
1292
+ interface CustomActivity {
1293
+ /**
1294
+ * ID of the app that created the custom activity.
1295
+ * @format GUID
1296
+ */
1297
+ appId?: string;
1298
+ /**
1299
+ * Custom activity type. For example, `"Ticket number set"`.
1300
+ * @maxLength 100
1301
+ */
1302
+ type?: string;
1303
+ /** Additional data in key-value form. For example, `{ "Ticket number": "123456" }`. */
1304
+ additionalData?: Record<string, string>;
1305
+ }
1306
+ /** Store owner added a comment */
1307
+ interface MerchantComment {
1308
+ /**
1309
+ * Merchant comment message.
1310
+ * @minLength 1
1311
+ * @maxLength 5000
1312
+ */
1313
+ message?: string;
1314
+ }
1315
+ interface OrderRefunded {
1316
+ /** Whether order was refunded manually. For example, via payment provider or using cash. */
1317
+ manual?: boolean;
1318
+ /** Refund amount. */
1319
+ amount?: Price;
1320
+ /**
1321
+ * Reason for refund.
1322
+ * @maxLength 200
1323
+ */
1324
+ reason?: string;
1325
+ }
1326
+ declare enum ActivityType {
1327
+ ORDER_REFUNDED = "ORDER_REFUNDED",
1328
+ ORDER_PLACED = "ORDER_PLACED",
1329
+ ORDER_PAID = "ORDER_PAID",
1330
+ ORDER_FULFILLED = "ORDER_FULFILLED",
1331
+ ORDER_NOT_FULFILLED = "ORDER_NOT_FULFILLED",
1332
+ ORDER_CANCELED = "ORDER_CANCELED",
1333
+ DOWNLOAD_LINK_SENT = "DOWNLOAD_LINK_SENT",
1334
+ TRACKING_NUMBER_ADDED = "TRACKING_NUMBER_ADDED",
1335
+ TRACKING_NUMBER_EDITED = "TRACKING_NUMBER_EDITED",
1336
+ TRACKING_LINK_ADDED = "TRACKING_LINK_ADDED",
1337
+ SHIPPING_CONFIRMATION_EMAIL_SENT = "SHIPPING_CONFIRMATION_EMAIL_SENT",
1338
+ INVOICE_ADDED = "INVOICE_ADDED",
1339
+ INVOICE_REMOVED = "INVOICE_REMOVED",
1340
+ INVOICE_SENT = "INVOICE_SENT",
1341
+ FULFILLER_EMAIL_SENT = "FULFILLER_EMAIL_SENT",
1342
+ SHIPPING_ADDRESS_EDITED = "SHIPPING_ADDRESS_EDITED",
1343
+ EMAIL_EDITED = "EMAIL_EDITED",
1344
+ PICKUP_READY_EMAIL_SENT = "PICKUP_READY_EMAIL_SENT",
1345
+ CUSTOM_ACTIVITY = "CUSTOM_ACTIVITY",
1346
+ MERCHANT_COMMENT = "MERCHANT_COMMENT",
1347
+ ORDER_CREATED_FROM_EXCHANGE = "ORDER_CREATED_FROM_EXCHANGE",
1348
+ NEW_EXCHANGE_ORDER_CREATED = "NEW_EXCHANGE_ORDER_CREATED",
1349
+ ORDER_PARTIALLY_PAID = "ORDER_PARTIALLY_PAID",
1350
+ DRAFT_ORDER_CHANGES_APPLIED = "DRAFT_ORDER_CHANGES_APPLIED",
1351
+ SAVED_PAYMENT_METHOD = "SAVED_PAYMENT_METHOD",
1352
+ /** @documentationMaturity preview */
1353
+ PAYMENT_PENDING = "PAYMENT_PENDING",
1354
+ /** @documentationMaturity preview */
1355
+ PAYMENT_CANCELED = "PAYMENT_CANCELED",
1356
+ /** @documentationMaturity preview */
1357
+ PAYMENT_DECLINED = "PAYMENT_DECLINED",
1358
+ /** @documentationMaturity preview */
1359
+ ORDER_PENDING = "ORDER_PENDING",
1360
+ /** @documentationMaturity preview */
1361
+ ORDER_REJECTED = "ORDER_REJECTED"
1362
+ }
1363
+ declare enum AttributionSource {
1364
+ UNSPECIFIED = "UNSPECIFIED",
1365
+ FACEBOOK_ADS = "FACEBOOK_ADS"
1366
+ }
1367
+ interface CreatedBy extends CreatedByStringOneOf {
1368
+ /**
1369
+ * User ID - when the order was created by a Wix user on behalf of a buyer.
1370
+ * For example, via POS (point of service).
1371
+ * @format GUID
1372
+ */
1373
+ userId?: string;
1374
+ /**
1375
+ * Member ID - when the order was created by a **logged in** site visitor.
1376
+ * @format GUID
1377
+ */
1378
+ memberId?: string;
1379
+ /**
1380
+ * Visitor ID - when the order was created by a site visitor that was **not** logged in.
1381
+ * @format GUID
1382
+ */
1383
+ visitorId?: string;
1384
+ /**
1385
+ * App ID - when the order was created by an external application.
1386
+ * @format GUID
1387
+ */
1388
+ appId?: string;
1389
+ }
1390
+ /** @oneof */
1391
+ interface CreatedByStringOneOf {
1392
+ /**
1393
+ * User ID - when the order was created by a Wix user on behalf of a buyer.
1394
+ * For example, via POS (point of service).
1395
+ * @format GUID
1396
+ */
1397
+ userId?: string;
1398
+ /**
1399
+ * Member ID - when the order was created by a **logged in** site visitor.
1400
+ * @format GUID
1401
+ */
1402
+ memberId?: string;
1403
+ /**
1404
+ * Visitor ID - when the order was created by a site visitor that was **not** logged in.
1405
+ * @format GUID
1406
+ */
1407
+ visitorId?: string;
1408
+ /**
1409
+ * App ID - when the order was created by an external application.
1410
+ * @format GUID
1411
+ */
1412
+ appId?: string;
1413
+ }
1414
+ interface ChannelInfo {
1415
+ /** Sales channel that submitted the order. */
1416
+ type?: ChannelType;
1417
+ /**
1418
+ * Reference to an order ID from an external system.
1419
+ * @maxLength 100
1420
+ */
1421
+ externalOrderId?: string | null;
1422
+ /**
1423
+ * URL to the order in the external system.
1424
+ * @maxLength 300
1425
+ */
1426
+ externalOrderUrl?: string | null;
1427
+ }
1428
+ declare enum ChannelType {
1429
+ /** Unspecified sales channel. This value is not supported. */
1430
+ UNSPECIFIED = "UNSPECIFIED",
1431
+ /** A web client. */
1432
+ WEB = "WEB",
1433
+ /** [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395). */
1434
+ POS = "POS",
1435
+ /** [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop). */
1436
+ EBAY = "EBAY",
1437
+ /** [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop). */
1438
+ AMAZON = "AMAZON",
1439
+ /** Other sales platform. */
1440
+ OTHER_PLATFORM = "OTHER_PLATFORM",
1441
+ /** [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview). */
1442
+ WIX_APP_STORE = "WIX_APP_STORE",
1443
+ /** 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) */
1444
+ WIX_INVOICES = "WIX_INVOICES",
1445
+ /** Wix merchant backoffice. */
1446
+ BACKOFFICE_MERCHANT = "BACKOFFICE_MERCHANT",
1447
+ /** Wish sales channel. */
1448
+ WISH = "WISH",
1449
+ /** [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass). */
1450
+ CLASS_PASS = "CLASS_PASS",
1451
+ /** Global-E sales channel. */
1452
+ GLOBAL_E = "GLOBAL_E",
1453
+ /** [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops). */
1454
+ FACEBOOK = "FACEBOOK",
1455
+ /** [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel). */
1456
+ ETSY = "ETSY",
1457
+ /** [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel). */
1458
+ TIKTOK = "TIKTOK",
1459
+ /** [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app). */
1460
+ FAIRE_COM = "FAIRE_COM"
1461
+ }
1462
+ interface CustomField {
1463
+ /** Custom field value. */
1464
+ value?: any;
1465
+ /**
1466
+ * Custom field title.
1467
+ * @minLength 1
1468
+ * @maxLength 500
1469
+ */
1470
+ title?: string;
1471
+ /**
1472
+ * Translated custom field title.
1473
+ * @minLength 1
1474
+ * @maxLength 500
1475
+ */
1476
+ translatedTitle?: string | null;
1477
+ }
1478
+ interface BalanceSummary {
1479
+ /**
1480
+ * Current amount left to pay.
1481
+ * @readonly
1482
+ */
1483
+ balance?: Balance;
1484
+ /**
1485
+ * Sum of all approved and successful payments.
1486
+ *
1487
+ * The value includes payments that have subsequently been fully or partially refunded.
1488
+ * @readonly
1489
+ */
1490
+ paid?: Price;
1491
+ /**
1492
+ * Sum of all successfully refunded payments.
1493
+ * @readonly
1494
+ */
1495
+ refunded?: Price;
1496
+ /**
1497
+ * Sum of all authorized payments.
1498
+ * @readonly
1499
+ */
1500
+ authorized?: Price;
1501
+ /**
1502
+ * Sum of all pending transactions.
1503
+ * @readonly
1504
+ */
1505
+ pending?: Price;
1506
+ }
1507
+ /**
1508
+ * Order balance. Reflects amount left to be paid on order and is calculated dynamically. Can be negative per balance definition.
1509
+ * `amount` field depends on order payment status:
1510
+ * + UNSPECIFIED, NOT_PAID: price_summary.total_price
1511
+ * + PARTIALLY_PAID : price_summary.total_price - pay_now.total_price
1512
+ * + PENDING, REFUNDED, PARTIALLY_REFUNDED, PAID : 0
1513
+ */
1514
+ interface Balance {
1515
+ /**
1516
+ * Balance amount.
1517
+ *
1518
+ * 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.
1519
+ * @decimalValue options { }
1520
+ * @readonly
1521
+ */
1522
+ amount?: string;
1523
+ /**
1524
+ * Amount formatted with currency symbol.
1525
+ * @readonly
1526
+ */
1527
+ formattedAmount?: string;
1528
+ }
1529
+ interface AdditionalFee {
1530
+ /**
1531
+ * Additional fee's unique code for future processing.
1532
+ * @minLength 1
1533
+ * @maxLength 100
1534
+ */
1535
+ code?: string | null;
1536
+ /**
1537
+ * Name of additional fee.
1538
+ * @minLength 1
1539
+ * @maxLength 50
1540
+ */
1541
+ name?: string;
1542
+ /** Additional fee's price. */
1543
+ price?: Price;
1544
+ /** Tax details. */
1545
+ taxDetails?: ItemTaxFullDetails;
1546
+ /**
1547
+ * SPI implementer's `appId`.
1548
+ * @format GUID
1549
+ */
1550
+ providerAppId?: string | null;
1551
+ /** Additional fee's price before tax. */
1552
+ priceBeforeTax?: Price;
1553
+ /** Additional fee's price after tax. */
1554
+ priceAfterTax?: Price;
1555
+ /**
1556
+ * Additional fee's id.
1557
+ * @format GUID
1558
+ * @immutable
1559
+ */
1560
+ id?: string;
1561
+ /**
1562
+ * Optional - Line items associated with this additional fee.
1563
+ * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.
1564
+ * @format GUID
1565
+ */
1566
+ lineItemIds?: string[];
1567
+ }
1568
+ /**
1569
+ * Common object for tags.
1570
+ * Should be use as in this example:
1571
+ * message Foo {
1572
+ * string id = 1;
1573
+ * ...
1574
+ * Tags tags = 5
1575
+ * }
1576
+ *
1577
+ * example of taggable entity
1578
+ * {
1579
+ * id: "123"
1580
+ * tags: {
1581
+ * tags: {
1582
+ * tag_ids:["11","22"]
1583
+ * },
1584
+ * private_tags: {
1585
+ * tag_ids: ["33", "44"]
1586
+ * }
1587
+ * }
1588
+ * }
1589
+ */
1590
+ interface Tags {
1591
+ /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */
1592
+ privateTags?: TagList;
1593
+ /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
1594
+ tags?: TagList;
1595
+ }
1596
+ interface TagList {
1597
+ /**
1598
+ * List of tag IDs
1599
+ * @maxSize 100
1600
+ * @maxLength 5
1601
+ */
1602
+ tagIds?: string[];
1603
+ }
1604
+ interface Location {
1605
+ /**
1606
+ * Location ID.
1607
+ * Learn more about the [Wix Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
1608
+ * @format GUID
1609
+ */
1610
+ id?: string;
1611
+ /**
1612
+ * Location name.
1613
+ * @minLength 1
1614
+ * @maxLength 500
1615
+ * @readonly
1616
+ */
1617
+ name?: string;
1618
+ }
1619
+ interface PreparePaymentCollectionRequest {
1620
+ /**
1621
+ * Ecom order ID.
1622
+ * @minLength 1
1623
+ * @maxLength 100
1624
+ */
1625
+ ecomOrderId: string;
1626
+ /** Amount to collect */
1627
+ amount: Price;
1628
+ /**
1629
+ * Optional parameter. When present, payment collection will be performed using given payment gateway order.
1630
+ * Existing payment gateway order will be updated with a new amount.
1631
+ * When parameter is absent, new payment gateway order will be created and used for payment collection.
1632
+ */
1633
+ paymentGatewayOrderId?: string | null;
1634
+ /**
1635
+ * Whether to delay capture of the payment.
1636
+ * Default: false
1637
+ * @deprecated Whether to delay capture of the payment.
1638
+ * Default: false
1639
+ * @replacedBy delayed_capture_settings.scheduled_action
1640
+ * @targetRemovalDate 2024-09-30
1641
+ */
1642
+ delayedCapture?: boolean;
1643
+ /** Delayed capture payment settings */
1644
+ delayedCaptureSettings?: DelayedCaptureSettings;
1645
+ }
1646
+ interface DelayedCaptureSettings {
1647
+ /** Specifies the automatic action (void/capture) for authorized transaction after the specified duration */
1648
+ scheduledAction?: ScheduledAction;
1649
+ /** Delay duration before execution. Optional - if not set, providers default period will be used */
1650
+ delayDuration?: Duration;
1651
+ }
1652
+ declare enum ScheduledAction {
1653
+ UNSPECIFIED = "UNSPECIFIED",
1654
+ /** Whether payment will be auto-voided when duration passes */
1655
+ VOID = "VOID",
1656
+ /** Whether payment will be auto-captured when duration passes */
1657
+ CAPTURE = "CAPTURE"
1658
+ }
1659
+ interface Duration {
1660
+ /**
1661
+ * Amount of units. For example, 30 MINUTES, 1 HOURS, 7 DAYS, etc
1662
+ * @min 1
1663
+ */
1664
+ count?: number;
1665
+ /** Duration unit: MINUTES, HOURS and DAYS */
1666
+ unit?: DurationUnit;
1667
+ }
1668
+ declare enum DurationUnit {
1669
+ UNKNOWN_DURATION_UNIT = "UNKNOWN_DURATION_UNIT",
1670
+ MINUTES = "MINUTES",
1671
+ HOURS = "HOURS",
1672
+ DAYS = "DAYS"
1673
+ }
1674
+ interface PreparePaymentCollectionResponse {
1675
+ /** Payment gateway order id which is associated with given payment */
1676
+ paymentGatewayOrderId?: string;
1677
+ }
1678
+ interface GetPaymentCollectabilityStatusRequest {
1679
+ /**
1680
+ * Ecom order ID.
1681
+ * @minLength 1
1682
+ * @maxLength 100
1683
+ */
1684
+ ecomOrderId: string;
1685
+ }
1686
+ interface GetPaymentCollectabilityStatusResponse {
1687
+ /** Payment collectability status */
1688
+ status?: PaymentCollectabilityStatus;
1689
+ /** Collectable order amount */
1690
+ amount?: Price;
1691
+ }
1692
+ declare enum PaymentCollectabilityStatus {
1693
+ UNKNOWN = "UNKNOWN",
1694
+ COLLECTABLE = "COLLECTABLE",
1695
+ NONCOLLECTABLE_ORDER_IS_CANCELLED = "NONCOLLECTABLE_ORDER_IS_CANCELLED",
1696
+ NONCOLLECTABLE_ORDER_IS_PAID = "NONCOLLECTABLE_ORDER_IS_PAID",
1697
+ NONCOLLECTABLE_MISSING_PAYMENT_METHOD = "NONCOLLECTABLE_MISSING_PAYMENT_METHOD",
1698
+ NONCOLLECTABLE_ORDER_IS_PENDING = "NONCOLLECTABLE_ORDER_IS_PENDING",
1699
+ NONCOLLECTABLE_ORDER_IS_REJECTED = "NONCOLLECTABLE_ORDER_IS_REJECTED",
1700
+ NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS = "NONCOLLECTABLE_ORDER_HAS_SUBSCRIPTIONS"
1701
+ }
1702
+ interface RecordManuallyCollectedPaymentRequest {
1703
+ /**
1704
+ * Order ID.
1705
+ * @minLength 1
1706
+ * @maxLength 100
1707
+ */
1708
+ orderId: string;
1709
+ /** Amount to be recorded as approved manual payment for given order */
1710
+ amount: Price;
1711
+ }
1712
+ interface RecordManuallyCollectedPaymentResponse {
1713
+ }
1714
+ interface MarkOrderAsPaidRequest {
1715
+ /**
1716
+ * Ecom order ID.
1717
+ * @minLength 1
1718
+ * @maxLength 100
1719
+ */
1720
+ ecomOrderId: string;
1721
+ }
1722
+ interface MarkOrderAsPaidResponse {
1723
+ /** Updated order. */
1724
+ order?: Order;
1725
+ }
1726
+ interface BulkMarkOrdersAsPaidRequest {
1727
+ /**
1728
+ * IDs of orders to mark as paid.
1729
+ * @minSize 1
1730
+ * @maxSize 100
1731
+ * @minLength 1
1732
+ * @maxLength 100
1733
+ */
1734
+ ecomOrderIds: string[];
1735
+ }
1736
+ interface BulkMarkOrdersAsPaidResponse {
1737
+ /**
1738
+ * Items updated by the bulk action.
1739
+ * The Order entity within the results optimistically changes its payment status to paid, however this process is async.
1740
+ */
1741
+ results?: BulkOrderResult[];
1742
+ /** Bulk action metadata. */
1743
+ bulkActionMetadata?: BulkActionMetadata;
1744
+ }
1745
+ interface BulkOrderResult {
1746
+ /** Item metadata. */
1747
+ itemMetadata?: ItemMetadata;
1748
+ /**
1749
+ * Updated order.
1750
+ *
1751
+ * Returned when `returnFullEntity = true`.
1752
+ */
1753
+ item?: Order;
1754
+ }
1755
+ interface ItemMetadata {
1756
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
1757
+ id?: string | null;
1758
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
1759
+ originalIndex?: number;
1760
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
1761
+ success?: boolean;
1762
+ /** Details about the error in case of failure. */
1763
+ error?: ApplicationError;
1764
+ }
1765
+ interface ApplicationError {
1766
+ /** Error code. */
1767
+ code?: string;
1768
+ /** Description of the error. */
1769
+ description?: string;
1770
+ /** Data related to the error. */
1771
+ data?: Record<string, any> | null;
1772
+ }
1773
+ interface BulkActionMetadata {
1774
+ /** Number of items that were successfully processed. */
1775
+ totalSuccesses?: number;
1776
+ /** Number of items that couldn't be processed. */
1777
+ totalFailures?: number;
1778
+ /** Number of failures without details because detailed failure threshold was exceeded. */
1779
+ undetailedFailures?: number;
1780
+ }
1781
+ interface GetRefundabilityStatusRequest {
1782
+ /**
1783
+ * Order ID.
1784
+ * @minLength 1
1785
+ * @maxLength 100
1786
+ */
1787
+ ecomOrderId: string;
1788
+ }
1789
+ interface GetRefundabilityStatusResponse {
1790
+ /**
1791
+ * Refundability details.
1792
+ * @maxSize 300
1793
+ */
1794
+ refundabilities?: Refundability[];
1795
+ /**
1796
+ * Whether the order supports refunding per item.
1797
+ * @deprecated
1798
+ */
1799
+ refundablePerItem?: boolean;
1800
+ }
1801
+ interface Refundability extends RefundabilityAdditionalRefundabilityInfoOneOf {
1802
+ /** Reason why payment is not refundable. */
1803
+ nonRefundableReason?: NonRefundableReason;
1804
+ /** Reason why payment is only refundable manually. */
1805
+ manuallyRefundableReason?: ManuallyRefundableReason;
1806
+ /** Payment ID. */
1807
+ paymentId?: string;
1808
+ /** Payment refundability status. */
1809
+ refundabilityStatus?: RefundableStatus;
1810
+ /** Link to payment provider dashboard. */
1811
+ providerLink?: string | null;
1812
+ }
1813
+ /** @oneof */
1814
+ interface RefundabilityAdditionalRefundabilityInfoOneOf {
1815
+ /** Reason why payment is not refundable. */
1816
+ nonRefundableReason?: NonRefundableReason;
1817
+ /** Reason why payment is only refundable manually. */
1818
+ manuallyRefundableReason?: ManuallyRefundableReason;
1819
+ }
1820
+ declare enum RefundableStatus {
1821
+ NOT_REFUNDABLE = "NOT_REFUNDABLE",
1822
+ MANUAL = "MANUAL",
1823
+ REFUNDABLE = "REFUNDABLE"
1824
+ }
1825
+ declare enum NonRefundableReason {
1826
+ NONE = "NONE",
1827
+ ALREADY_REFUNDED = "ALREADY_REFUNDED",
1828
+ PROVIDER_IS_DOWN = "PROVIDER_IS_DOWN",
1829
+ INTERNAL_ERROR = "INTERNAL_ERROR",
1830
+ NOT_PAID = "NOT_PAID",
1831
+ ACCESS_DENIED = "ACCESS_DENIED",
1832
+ ZERO_PRICE = "ZERO_PRICE",
1833
+ DISABLED_BY_PROVIDER = "DISABLED_BY_PROVIDER",
1834
+ PENDING_REFUND = "PENDING_REFUND",
1835
+ FORBIDDEN = "FORBIDDEN",
1836
+ TRANSACTION_NOT_FOUND = "TRANSACTION_NOT_FOUND",
1837
+ ORDER_IS_PENDING = "ORDER_IS_PENDING",
1838
+ ORDER_IS_REJECTED = "ORDER_IS_REJECTED"
1839
+ }
1840
+ declare enum ManuallyRefundableReason {
1841
+ EXPIRED = "EXPIRED",
1842
+ NOT_SUPPORTED = "NOT_SUPPORTED",
1843
+ OFFLINE = "OFFLINE",
1844
+ REQUIRES_CARD_READER = "REQUIRES_CARD_READER"
1845
+ }
1846
+ interface CreatePaymentGatewayOrderRequest {
1847
+ /**
1848
+ * Ecom order ID.
1849
+ * @minLength 1
1850
+ * @maxLength 100
1851
+ */
1852
+ ecomOrderId: string;
1853
+ /** Information about the user who initiated the payment. */
1854
+ chargedBy?: ChargedBy;
1855
+ }
1856
+ interface ChargedBy {
1857
+ /**
1858
+ * ID - id of the user who initiated the payment
1859
+ * @format GUID
1860
+ */
1861
+ id?: string;
1862
+ /**
1863
+ * Full name - name of the user who initiated the payment
1864
+ * @minLength 1
1865
+ * @maxLength 200
1866
+ */
1867
+ fullName?: string | null;
1868
+ }
1869
+ interface CreatePaymentGatewayOrderResponse {
1870
+ /** ID of the order created in the payment gateway */
1871
+ paymentGatewayOrderId?: string;
1872
+ }
1873
+ interface ChargeMembershipsRequest {
1874
+ /**
1875
+ * Order ID.
1876
+ * @minLength 1
1877
+ * @maxLength 100
1878
+ */
1879
+ ecomOrderId: string;
1880
+ /**
1881
+ * The member id. Do not attempt to get it from the request context, since in some cases the caller is not a member
1882
+ * but a user which is using the membership on behalf of the a member
1883
+ * @format GUID
1884
+ */
1885
+ memberId: string;
1886
+ /**
1887
+ * List of items to be paid by memberships
1888
+ * @minSize 1
1889
+ * @maxSize 300
1890
+ */
1891
+ membershipCharges?: MembershipChargeItem[];
1892
+ }
1893
+ interface MembershipChargeItem {
1894
+ /**
1895
+ * The id of used membership
1896
+ * @minLength 1
1897
+ * @maxLength 100
1898
+ */
1899
+ membershipId?: string;
1900
+ /**
1901
+ * ID of the application providing this payment option
1902
+ * @format GUID
1903
+ */
1904
+ appId?: string;
1905
+ /** The name of used membership */
1906
+ membershipName?: MembershipName;
1907
+ /** Additional data about this membership */
1908
+ membershipAdditionalData?: Record<string, any> | null;
1909
+ /** Catalog and item reference info. */
1910
+ catalogReference?: CatalogReference;
1911
+ /** Properties of the service. When relevant, contains information such as date and number of participants. */
1912
+ serviceProperties?: ServiceProperties;
1913
+ /**
1914
+ * Usually would be the same as catalogReference.catalogItemId
1915
+ * For cases when these are not the same, this field would return the actual id of the item in the catalog
1916
+ * For example, for Wix bookings, catalogReference.catalogItemId is the booking id, and this value is being set to be the service id
1917
+ * @minLength 1
1918
+ * @maxLength 36
1919
+ */
1920
+ rootCatalogItemId?: string | null;
1921
+ /**
1922
+ * line item id of Checkout/Order line item
1923
+ * @minLength 1
1924
+ * @maxLength 100
1925
+ */
1926
+ lineItemId?: string;
1927
+ }
1928
+ interface MembershipName {
1929
+ /**
1930
+ * Membership name.
1931
+ * @maxLength 100
1932
+ */
1933
+ original?: string;
1934
+ /**
1935
+ * Translated membership name. Defaults to `original` when not provided.
1936
+ * @maxLength 100
1937
+ */
1938
+ translated?: string | null;
1939
+ }
1940
+ interface ServiceProperties {
1941
+ /**
1942
+ * 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.
1943
+ * For example, the start time of a class.
1944
+ */
1945
+ scheduledDate?: Date | null;
1946
+ /**
1947
+ * 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.
1948
+ * @min 1
1949
+ * @max 10000
1950
+ */
1951
+ numberOfParticipants?: number | null;
1952
+ }
1953
+ interface ChargeMembershipsResponse {
1954
+ }
1955
+ interface TriggerRefundRequest {
1956
+ /**
1957
+ * The order this refund related to
1958
+ * @minLength 1
1959
+ * @maxLength 100
1960
+ */
1961
+ ecomOrderId: string;
1962
+ /**
1963
+ * Refund operations information
1964
+ * @minSize 1
1965
+ * @maxSize 1
1966
+ */
1967
+ payments: PaymentRefund[];
1968
+ /** Business model of a refund */
1969
+ details?: RefundDetails;
1970
+ /** Side effect details related to refund */
1971
+ sideEffects?: RefundSideEffects;
1972
+ }
1973
+ interface PaymentRefund {
1974
+ /**
1975
+ * Specific payment within the order to refund
1976
+ * @format GUID
1977
+ */
1978
+ paymentId?: string;
1979
+ /** Refund amount. Not relevant for membership and gift card refunds. */
1980
+ amount?: Price;
1981
+ /**
1982
+ * Whether refund is made externally and manually (on the payment provider's side)
1983
+ * When false (default), the payment gateway will be called in order to make an actual refund, and then the payment will be marked as refunded.
1984
+ * When true, the payment will only be *marked* as refunded, and no actual refund will be performed.
1985
+ */
1986
+ externalRefund?: boolean;
1987
+ }
1988
+ /** Business model of a refund request */
1989
+ interface RefundDetails {
1990
+ /**
1991
+ * Order line item IDs and quantities that were refunded.
1992
+ * @maxSize 300
1993
+ */
1994
+ items?: RefundItem[];
1995
+ /** Whether the shipping fee was also refunded. */
1996
+ shippingIncluded?: boolean;
1997
+ /**
1998
+ * Reason for the refund, provided by customer (optional).
1999
+ * @maxLength 200
2000
+ */
2001
+ reason?: string | null;
2002
+ /**
2003
+ * Line items that were refunded.
2004
+ * @maxSize 300
2005
+ */
2006
+ lineItems?: LineItemRefund[];
2007
+ /**
2008
+ * Additional fees that were refunded.
2009
+ * @maxSize 100
2010
+ */
2011
+ additionalFees?: AdditionalFeeRefund[];
2012
+ /** Shipping amount that was refunded. */
2013
+ shipping?: ShippingRefund;
2014
+ }
2015
+ interface RefundItem {
2016
+ /**
2017
+ * Line item ID the refunded line item.
2018
+ * @format GUID
2019
+ */
2020
+ lineItemId?: string;
2021
+ /**
2022
+ * Line item quantity refunded.
2023
+ * @min 1
2024
+ * @max 100000
2025
+ */
2026
+ quantity?: number;
2027
+ }
2028
+ interface LineItemRefund {
2029
+ /**
2030
+ * Line item ID.
2031
+ * @format GUID
2032
+ * @immutable
2033
+ */
2034
+ lineItemId?: string;
2035
+ /**
2036
+ * Refund quantity.
2037
+ * @min 1
2038
+ * @max 100000
2039
+ * @immutable
2040
+ */
2041
+ quantity?: number;
2042
+ }
2043
+ interface AdditionalFeeRefund {
2044
+ /**
2045
+ * Additional fee ID.
2046
+ * @format GUID
2047
+ * @immutable
2048
+ */
2049
+ additionalFeeId?: string;
2050
+ /**
2051
+ * Refund amount.
2052
+ * @immutable
2053
+ */
2054
+ amount?: Price;
2055
+ }
2056
+ interface ShippingRefund {
2057
+ /**
2058
+ * Refund amount.
2059
+ * @immutable
2060
+ */
2061
+ amount?: Price;
2062
+ }
2063
+ interface RefundSideEffects {
2064
+ /** Inventory restock details as part of this refund. */
2065
+ restockInfo?: RestockInfo;
2066
+ /** Whether to send a refund confirmation email to the customer. */
2067
+ sendOrderRefundedEmail?: boolean;
2068
+ /**
2069
+ * Custom message added to the refund confirmation email.
2070
+ * @minLength 1
2071
+ * @maxLength 1000
2072
+ */
2073
+ customMessage?: string | null;
2074
+ }
2075
+ interface RestockInfo {
2076
+ /** Restock type. */
2077
+ type?: RestockType;
2078
+ /**
2079
+ * Restocked line items and quantities. Only relevant for `{"type": "SOME_ITEMS"}`.
2080
+ * @maxSize 300
2081
+ */
2082
+ items?: RestockItem[];
2083
+ }
2084
+ declare enum RestockType {
2085
+ NO_ITEMS = "NO_ITEMS",
2086
+ ALL_ITEMS = "ALL_ITEMS",
2087
+ SOME_ITEMS = "SOME_ITEMS"
2088
+ }
2089
+ interface RestockItem {
2090
+ /**
2091
+ * ID of the line item being restocked.
2092
+ * @format GUID
2093
+ */
2094
+ lineItemId?: string;
2095
+ /**
2096
+ * Line item quantity being restocked.
2097
+ * @min 1
2098
+ * @max 100000
2099
+ */
2100
+ quantity?: number;
2101
+ }
2102
+ interface TriggerRefundResponse {
2103
+ /** All order's transactions after the refunds were added */
2104
+ orderTransactions?: OrderTransactions;
2105
+ /** Created refund ID */
2106
+ refundId?: string | null;
2107
+ /** Payment ID's that the refund execution had failed for */
2108
+ failedPaymentIds?: ItemMetadata[];
2109
+ }
2110
+ interface OrderTransactions {
2111
+ /**
2112
+ * Order ID.
2113
+ * @format GUID
2114
+ */
2115
+ orderId?: string;
2116
+ /**
2117
+ * Record of payments made to the merchant.
2118
+ * @maxSize 100
2119
+ */
2120
+ payments?: Payment[];
2121
+ /**
2122
+ * Record of refunds made to the buyer.
2123
+ * @maxSize 300
2124
+ */
2125
+ refunds?: Refund[];
2126
+ }
2127
+ interface Payment extends PaymentPaymentDetailsOneOf, PaymentReceiptInfoOneOf {
2128
+ /** Regular payment details. */
2129
+ regularPaymentDetails?: RegularPaymentDetails;
2130
+ /** Gift card payment details. */
2131
+ giftcardPaymentDetails?: GiftCardPaymentDetails;
2132
+ /**
2133
+ * Payment ID.
2134
+ * @format GUID
2135
+ * @readonly
2136
+ */
2137
+ id?: string | null;
2138
+ /** Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided. */
2139
+ createdDate?: Date | null;
2140
+ /**
2141
+ * Date and time the payment was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
2142
+ * @readonly
2143
+ */
2144
+ updatedDate?: Date | null;
2145
+ /** Payment amount. */
2146
+ amount?: Price;
2147
+ /**
2148
+ * Whether refunds for this payment are disabled.
2149
+ * + `true`: This payment is not refundable.
2150
+ * + `false`: This payment may be refunded. However, this ultimately depends on the payment provider.
2151
+ */
2152
+ refundDisabled?: boolean;
2153
+ }
2154
+ /** @oneof */
2155
+ interface PaymentPaymentDetailsOneOf {
2156
+ /** Regular payment details. */
2157
+ regularPaymentDetails?: RegularPaymentDetails;
2158
+ /** Gift card payment details. */
2159
+ giftcardPaymentDetails?: GiftCardPaymentDetails;
2160
+ }
2161
+ /** @oneof */
2162
+ interface PaymentReceiptInfoOneOf {
2163
+ }
2164
+ interface RegularPaymentDetails extends RegularPaymentDetailsPaymentMethodDetailsOneOf {
2165
+ /** Whether regular card used */
2166
+ creditCardDetails?: CreditCardPaymentMethodDetails;
2167
+ /**
2168
+ * Wix Payments order ID.
2169
+ * @maxLength 100
2170
+ */
2171
+ paymentOrderId?: string | null;
2172
+ /**
2173
+ * Payment gateway's transaction ID.
2174
+ * This field is only returned when the value of `offline_payment` is `false`.
2175
+ * @maxLength 100
2176
+ */
2177
+ gatewayTransactionId?: string | null;
2178
+ /**
2179
+ * Payment method. Non-exhaustive list of supported values:
2180
+ * + `CreditCard`, `Alipay`, `AstropayCash`, `AstropayDBT`, `AstropayMBT`, `Bitcoin`, `BitPay`, `Cash`, `ConvenienceStore`, `EPay`, `Fake`, `Giropay`, `IDeal`, `InPerson`, `Klarna`, `MercadoPago`, `Netpay`, `NordeaSolo`, `Offline`, `PagSeguro`, `PayEasy`, `PayPal`, `Paysafecard`, `Paysafecash`, `PointOfSale`, `Poli`, `Privat24`, `Przelewy24`, `RapidTransfer`, `Sepa`, `Skrill`, `Sofort`, `Trustly`, `Neteller`, `Unionpay`, `UniPay`, `Yandex`
2181
+ * @maxLength 100
2182
+ */
2183
+ paymentMethod?: string | null;
2184
+ /**
2185
+ * Transaction ID in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for offline payments.
2186
+ * @maxLength 100
2187
+ */
2188
+ providerTransactionId?: string | null;
2189
+ /** Whether the payment was made offline. For example, when using cash or when marked as paid in the Business Manager. */
2190
+ offlinePayment?: boolean;
2191
+ /** Payment status. */
2192
+ status?: TransactionStatus;
2193
+ /**
2194
+ * Whether there is a payment agreement that allows for future charges.
2195
+ * @immutable
2196
+ */
2197
+ savedPaymentMethod?: boolean;
2198
+ /** Authorization details. */
2199
+ authorizationDetails?: AuthorizationDetails;
2200
+ }
2201
+ /** @oneof */
2202
+ interface RegularPaymentDetailsPaymentMethodDetailsOneOf {
2203
+ /** Whether regular card used */
2204
+ creditCardDetails?: CreditCardPaymentMethodDetails;
2205
+ }
2206
+ declare enum TransactionStatus {
2207
+ UNDEFINED = "UNDEFINED",
2208
+ APPROVED = "APPROVED",
2209
+ PENDING = "PENDING",
2210
+ PENDING_MERCHANT = "PENDING_MERCHANT",
2211
+ CANCELED = "CANCELED",
2212
+ DECLINED = "DECLINED",
2213
+ REFUNDED = "REFUNDED",
2214
+ PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
2215
+ AUTHORIZED = "AUTHORIZED",
2216
+ VOIDED = "VOIDED"
2217
+ }
2218
+ interface CreditCardPaymentMethodDetails {
2219
+ /**
2220
+ * The last 4 digits of the card number.
2221
+ * @maxLength 4
2222
+ */
2223
+ lastFourDigits?: string | null;
2224
+ /**
2225
+ * Card issuer's brand.
2226
+ * @maxLength 100
2227
+ */
2228
+ brand?: string | null;
2229
+ }
2230
+ interface AuthorizationDetails {
2231
+ /**
2232
+ * Whether the authorized payment is of a delayed capture.
2233
+ * @readonly
2234
+ */
2235
+ delayedCapture?: boolean;
2236
+ /** Date and time the payment was authorized in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
2237
+ authorizedDate?: Date | null;
2238
+ /**
2239
+ * List of captures associated with payment
2240
+ * In case of failed it can be replaced with new one with PENDING or SUCCESS statuses
2241
+ * @maxSize 1
2242
+ */
2243
+ captures?: AuthorizationCapture[];
2244
+ /** Void associated with payment */
2245
+ void?: AuthorizationVoid;
2246
+ /** Scheduled action for this transaction */
2247
+ scheduledAction?: V1ScheduledAction;
2248
+ }
2249
+ interface AuthorizationCapture {
2250
+ /**
2251
+ * Capture ID.
2252
+ * @format GUID
2253
+ * @readonly
2254
+ */
2255
+ id?: string | null;
2256
+ /** Status of this capture action */
2257
+ status?: AuthorizationCaptureStatus;
2258
+ /**
2259
+ * Amount of this capture
2260
+ * @immutable
2261
+ */
2262
+ amount?: Price;
2263
+ /** Date and time the capture was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
2264
+ createdDate?: Date | null;
2265
+ /** In case of status is FAILED may contain failure details */
2266
+ failureDetails?: AuthorizationActionFailureDetails;
2267
+ }
2268
+ declare enum AuthorizationCaptureStatus {
2269
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
2270
+ /** Capture operation still in progress. */
2271
+ PENDING = "PENDING",
2272
+ /** Capture operation succeeded. */
2273
+ SUCCEEDED = "SUCCEEDED",
2274
+ /** Capture operation failed. */
2275
+ FAILED = "FAILED"
2276
+ }
2277
+ interface AuthorizationActionFailureDetails {
2278
+ /** @maxLength 100 */
2279
+ failureCode?: string;
2280
+ }
2281
+ interface AuthorizationVoid {
2282
+ /** Status of this void action */
2283
+ status?: AuthorizationVoidStatus;
2284
+ /** Date and time the void was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
2285
+ voidedDate?: Date | null;
2286
+ /** In case of status is FAILED may contain failure details */
2287
+ failureDetails?: AuthorizationActionFailureDetails;
2288
+ /** Reason of void action */
2289
+ reason?: Reason;
2290
+ }
2291
+ declare enum AuthorizationVoidStatus {
2292
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
2293
+ /** Void operation still in progress. */
2294
+ PENDING = "PENDING",
2295
+ /** Void operation succeeded. */
2296
+ SUCCEEDED = "SUCCEEDED",
2297
+ /** Void operation failed. */
2298
+ FAILED = "FAILED"
2299
+ }
2300
+ /** Reason the authorization was voided. */
2301
+ declare enum Reason {
2302
+ UNKNOWN_REASON = "UNKNOWN_REASON",
2303
+ /** Authorization was voided by user. */
2304
+ MANUAL = "MANUAL",
2305
+ /** Authorization passed execution date. */
2306
+ SCHEDULED = "SCHEDULED"
2307
+ }
2308
+ interface V1ScheduledAction {
2309
+ /** Type of the action. */
2310
+ actionType?: ActionType;
2311
+ /** The date and time of the action. */
2312
+ executionDate?: Date | null;
2313
+ }
2314
+ declare enum ActionType {
2315
+ UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
2316
+ VOID = "VOID",
2317
+ CAPTURE = "CAPTURE"
2318
+ }
2319
+ interface GiftCardPaymentDetails {
2320
+ /**
2321
+ * Gift card payment ID.
2322
+ * @minLength 1
2323
+ * @maxLength 100
2324
+ */
2325
+ giftCardPaymentId?: string;
2326
+ /**
2327
+ * ID of the app that created the gift card.
2328
+ * @format GUID
2329
+ */
2330
+ appId?: string;
2331
+ /**
2332
+ * Whether the gift card is voided.
2333
+ * @readonly
2334
+ */
2335
+ voided?: boolean;
2336
+ }
2337
+ interface Refund {
2338
+ /**
2339
+ * Refund ID.
2340
+ * @format GUID
2341
+ * @readonly
2342
+ */
2343
+ id?: string;
2344
+ /**
2345
+ * List of transactions.
2346
+ * @maxSize 50
2347
+ */
2348
+ transactions?: RefundTransaction[];
2349
+ /** Refund business details. */
2350
+ details?: RefundDetails;
2351
+ /**
2352
+ * Date and time the refund was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided.
2353
+ * @readonly
2354
+ * @immutable
2355
+ */
2356
+ createdDate?: Date | null;
2357
+ /**
2358
+ * Aggregated refund summary.
2359
+ * @readonly
2360
+ */
2361
+ summary?: AggregatedRefundSummary;
2362
+ /**
2363
+ * ID of the app that initiated this refund.
2364
+ * @format GUID
2365
+ * @readonly
2366
+ * @immutable
2367
+ */
2368
+ requestingServiceAppId?: string | null;
2369
+ }
2370
+ interface RefundTransaction {
2371
+ /**
2372
+ * ID of the payment associated with this refund.
2373
+ * @format GUID
2374
+ * @immutable
2375
+ */
2376
+ paymentId?: string;
2377
+ /**
2378
+ * Refund amount.
2379
+ * @immutable
2380
+ */
2381
+ amount?: Price;
2382
+ /** Refund status. */
2383
+ refundStatus?: RefundStatus;
2384
+ /** Optional details of current refund status. */
2385
+ refundStatusInfo?: RefundStatusInfo;
2386
+ /**
2387
+ * Payment gateway's refund ID.
2388
+ * This field is only returned when the value of `external_refund` is `false`.
2389
+ * @format GUID
2390
+ */
2391
+ gatewayRefundId?: string | null;
2392
+ /** ID of the refund in the payment provider's system. For example, at PayPal, Square, Stripe, etc. Not returned for external refunds. */
2393
+ providerRefundId?: string | null;
2394
+ /**
2395
+ * Whether refund was made externally and manually on the payment provider's side.
2396
+ * @immutable
2397
+ */
2398
+ externalRefund?: boolean;
2399
+ }
2400
+ /** Refund transaction status. */
2401
+ declare enum RefundStatus {
2402
+ /** Refund was initiated on payment provider side. PENDING status was assigned by provider. */
2403
+ PENDING = "PENDING",
2404
+ /** Refund transaction succeeded. */
2405
+ SUCCEEDED = "SUCCEEDED",
2406
+ /** Refund transaction failed. */
2407
+ FAILED = "FAILED",
2408
+ /** Refund request acknowledged, and will be executed soon. */
2409
+ SCHEDULED = "SCHEDULED",
2410
+ /** Refund was initiated on payment provider side. */
2411
+ STARTED = "STARTED"
2412
+ }
2413
+ interface RefundStatusInfo {
2414
+ /**
2415
+ * Reason code for the refund's current status.
2416
+ *
2417
+ * Learn more about [reason codes](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes).
2418
+ * @minLength 1
2419
+ * @maxLength 10
2420
+ */
2421
+ paymentGatewayReasonCode?: string | null;
2422
+ /**
2423
+ * Free text explanation of current refund status.
2424
+ * @minLength 1
2425
+ * @maxLength 1000
2426
+ */
2427
+ description?: string | null;
2428
+ }
2429
+ interface AggregatedRefundSummary {
2430
+ /** Total amount requested for refund. */
2431
+ requestedRefund?: Price;
2432
+ /** Pending refund amount - the portion of `requestedRefund` that is still pending. */
2433
+ pendingRefund?: Price;
2434
+ /** Refunded amount - the portion of `requestedRefund` that refunded successfully. */
2435
+ refunded?: Price;
2436
+ /** Failed refund amount - the portion of `requestedRefund` that failed. */
2437
+ failedRefundAmount?: Price;
2438
+ /** Whether at least one refund transaction is still in `"PENDING"` status. */
2439
+ pending?: boolean;
2440
+ /** Breakdown of refunded items. Available only after refund is complete. */
2441
+ breakdown?: RefundItemsBreakdown;
2442
+ }
2443
+ interface RefundItemsBreakdown {
2444
+ /**
2445
+ * Refunded line items and the amount refunded for each.
2446
+ * @maxSize 300
2447
+ */
2448
+ lineItems?: LineItemRefundSummary[];
2449
+ }
2450
+ interface LineItemRefundSummary {
2451
+ /**
2452
+ * ID of the refunded line item.
2453
+ * @format GUID
2454
+ */
2455
+ lineItemId?: string;
2456
+ /** Total refunded amount for the line item. */
2457
+ totalRefundedAmount?: Price;
2458
+ }
2459
+ interface VoidAuthorizedPaymentsRequest {
2460
+ /**
2461
+ * Wix eCommerce order ID
2462
+ * @minLength 1
2463
+ * @maxLength 100
2464
+ */
2465
+ ecomOrderId: string;
2466
+ /**
2467
+ * Payment IDs
2468
+ * @minSize 1
2469
+ * @maxSize 100
2470
+ * @format GUID
2471
+ */
2472
+ paymentIds: string[];
2473
+ }
2474
+ interface VoidAuthorizedPaymentsResponse {
2475
+ /** All order's transactions after the void was triggered */
2476
+ orderTransactions?: OrderTransactions;
2477
+ }
2478
+ interface CaptureAuthorizedPaymentsRequest {
2479
+ /**
2480
+ * Wix eCommerce order ID
2481
+ * @minLength 1
2482
+ * @maxLength 100
2483
+ */
2484
+ ecomOrderId: string;
2485
+ /**
2486
+ * Capture payments information
2487
+ * @minSize 1
2488
+ * @maxSize 100
2489
+ */
2490
+ payments: PaymentCapture[];
2491
+ }
2492
+ interface PaymentCapture {
2493
+ /**
2494
+ * Payment ID
2495
+ * @format GUID
2496
+ */
2497
+ paymentId?: string | null;
2498
+ /**
2499
+ * Capture amount.
2500
+ * If not provided - full authorized amount will be captured.
2501
+ */
2502
+ amount?: Price;
2503
+ }
2504
+ interface CaptureAuthorizedPaymentsResponse {
2505
+ /** All order's transactions after the capture was triggered */
2506
+ orderTransactions?: OrderTransactions;
2507
+ }
2508
+ interface Sorting {
2509
+ /**
2510
+ * Name of the field to sort by.
2511
+ * @maxLength 512
2512
+ */
2513
+ fieldName?: string;
2514
+ /** Sort order. */
2515
+ order?: SortOrder;
2516
+ }
2517
+ declare enum SortOrder {
2518
+ ASC = "ASC",
2519
+ DESC = "DESC"
2520
+ }
2521
+ interface CursorPaging {
2522
+ /**
2523
+ * Maximum number of items to return in the results.
2524
+ * @max 100
2525
+ */
2526
+ limit?: number | null;
2527
+ /**
2528
+ * Pointer to the next or previous page in the list of results.
2529
+ *
2530
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
2531
+ * Not relevant for the first request.
2532
+ * @maxLength 16000
2533
+ */
2534
+ cursor?: string | null;
2535
+ }
2536
+ interface Cursors {
2537
+ /**
2538
+ * Cursor string pointing to the next page in the list of results.
2539
+ * @maxLength 16000
2540
+ */
2541
+ next?: string | null;
2542
+ /**
2543
+ * Cursor pointing to the previous page in the list of results.
2544
+ * @maxLength 16000
2545
+ */
2546
+ prev?: string | null;
2547
+ }
2548
+ interface GetOrderRequest {
2549
+ /**
2550
+ * ID of the order to retrieve.
2551
+ * @minLength 1
2552
+ * @maxLength 100
2553
+ */
2554
+ id: string;
2555
+ }
2556
+ interface GetOrderResponse {
2557
+ /** The requested order. */
2558
+ order?: Order;
2559
+ }
2560
+ interface SearchOrdersRequest {
2561
+ /** Search options. */
2562
+ search?: CursorSearch;
2563
+ }
2564
+ interface CursorSearch extends CursorSearchPagingMethodOneOf {
2565
+ /**
2566
+ * Cursor paging options.
2567
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
2568
+ */
2569
+ cursorPaging?: CursorPaging;
2570
+ /**
2571
+ * Filter object.
2572
+ *
2573
+ * For example, the following `filter` object will only return orders with payment statuses of paid and/or partially paid:
2574
+ *
2575
+ * `"filter": {"paymentStatus": {"$in": ["PAID", "PARTIALLY_PAID"]}}`
2576
+ *
2577
+ * Learn more about the [filter format](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
2578
+ */
2579
+ filter?: Record<string, any> | null;
2580
+ /**
2581
+ * Array of sort objects that specify the order in which results should be sorted.
2582
+ *
2583
+ * For example, the following `sort` array will sort by `createdDate` in descending order:
2584
+ *
2585
+ * `"sort": [{"fieldName": "createdDate", "order":"DESC"}]`.
2586
+ *
2587
+ * Learn more about the [sort format](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
2588
+ * @maxSize 4
2589
+ */
2590
+ sort?: Sorting[];
2591
+ }
2592
+ /** @oneof */
2593
+ interface CursorSearchPagingMethodOneOf {
2594
+ /**
2595
+ * Cursor paging options.
2596
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
2597
+ */
2598
+ cursorPaging?: CursorPaging;
2599
+ }
2600
+ interface SearchOrdersResponse {
2601
+ /** List of orders. */
2602
+ orders?: Order[];
2603
+ /** Details on the paged set of results returned. */
2604
+ metadata?: CursorPagingMetadata;
2605
+ }
2606
+ interface CursorPagingMetadata {
2607
+ /** Number of items returned in current page. */
2608
+ count?: number | null;
2609
+ /** Cursor strings that point to the next page, previous page, or both. */
2610
+ cursors?: Cursors;
2611
+ /**
2612
+ * Whether there are more pages to retrieve following the current page.
2613
+ *
2614
+ * + `true`: Another page of results can be retrieved.
2615
+ * + `false`: This is the last page.
2616
+ */
2617
+ hasNext?: boolean | null;
2618
+ }
2619
+ interface CreateOrderRequest {
2620
+ /** Order info. */
2621
+ order: Order;
2622
+ /** Determine order lifecycle */
2623
+ settings?: OrderCreationSettings;
2624
+ }
2625
+ interface OrderCreationSettings {
2626
+ /**
2627
+ * Condition for the order to be approved.
2628
+ * Default: `DEFAULT`
2629
+ */
2630
+ orderApprovalStrategy?: OrderApprovalStrategy;
2631
+ /** Notification settings to be applied on order creation */
2632
+ notifications?: OrderCreateNotifications;
2633
+ }
2634
+ declare enum OrderApprovalStrategy {
2635
+ /** Order is automatically approved when `order.priceSummary.total = 0`, **or** after receiving payment. */
2636
+ DEFAULT = "DEFAULT",
2637
+ /** Order is automatically approved **only** after receiving payment. */
2638
+ PAYMENT_RECEIVED = "PAYMENT_RECEIVED",
2639
+ /** Order is automatically approved when payment method is saved for it. */
2640
+ PAYMENT_METHOD_SAVED = "PAYMENT_METHOD_SAVED"
2641
+ }
2642
+ interface OrderCreateNotifications {
2643
+ /**
2644
+ * Whether to send notification to the buyer.
2645
+ *
2646
+ * Default: `true`
2647
+ */
2648
+ sendNotificationToBuyer?: boolean | null;
2649
+ /**
2650
+ * Whether to send notifications to the business.
2651
+ *
2652
+ * Default: `true`
2653
+ */
2654
+ sendNotificationsToBusiness?: boolean | null;
2655
+ }
2656
+ interface CreateOrderResponse {
2657
+ /** Newly created order. */
2658
+ order?: Order;
2659
+ }
2660
+ interface UpdateOrderRequest {
2661
+ /** Order to be updated. */
2662
+ order: Order;
2663
+ }
2664
+ interface UpdateOrderResponse {
2665
+ /** Newly created order. */
2666
+ order?: Order;
2667
+ }
2668
+ interface BulkUpdateOrdersRequest {
2669
+ /**
2670
+ * Orders to update.
2671
+ * @minSize 1
2672
+ * @maxSize 100
2673
+ */
2674
+ orders: MaskedOrder[];
2675
+ /**
2676
+ * Whether to return the full order entities.
2677
+ *
2678
+ * Default: `false`
2679
+ */
2680
+ returnEntity?: boolean;
2681
+ }
2682
+ interface MaskedOrder {
2683
+ /** Order to be updated. */
2684
+ order?: Order;
2685
+ }
2686
+ interface BulkUpdateOrdersResponse {
2687
+ /**
2688
+ * Bulk action results.
2689
+ * @minSize 1
2690
+ * @maxSize 100
2691
+ */
2692
+ results?: BulkOrderResult[];
2693
+ /** Bulk action metadata. */
2694
+ bulkActionMetadata?: BulkActionMetadata;
2695
+ }
2696
+ interface CommitDeltasRequest {
2697
+ /** Order id to be updated */
2698
+ id: string;
2699
+ /**
2700
+ * Draft order Id representing this change.
2701
+ * Use this ID to get this specific draft content. call .../v1/draft-orders/{draft_order_id}/get
2702
+ * @format GUID
2703
+ */
2704
+ draftOrderId?: string;
2705
+ /** Draft order changes to be applied */
2706
+ changes: DraftOrderDiffs;
2707
+ /** Side-effects to happen after order is updated */
2708
+ commitSettings?: DraftOrderCommitSettings;
2709
+ /**
2710
+ * Reason for edit, given by user (optional).
2711
+ * @maxLength 200
2712
+ */
2713
+ reason?: string | null;
2714
+ }
2715
+ interface DraftOrderDiffs extends DraftOrderDiffsShippingUpdateInfoOneOf, DraftOrderDiffsBuyerUpdateInfoOneOf, DraftOrderDiffsBillingUpdateInfoOneOf, DraftOrderDiffsRecipientUpdateInfoOneOf {
2716
+ /** Shipping info and selected shipping option details. */
2717
+ changedShippingInfo?: V1ShippingInformation;
2718
+ /** Remove existing shipping info. */
2719
+ shippingInfoRemoved?: boolean;
2720
+ /**
2721
+ * Added/updated/removed order line items.
2722
+ * @maxSize 300
2723
+ */
2724
+ lineItems?: V1LineItemDelta[];
2725
+ /**
2726
+ * Added/updated/removed discounts.
2727
+ * @maxSize 320
2728
+ */
2729
+ appliedDiscounts?: AppliedDiscountDelta[];
2730
+ /**
2731
+ * Added/updated/removed additional fee.
2732
+ * @maxSize 100
2733
+ */
2734
+ additionalFees?: AdditionalFeeDelta[];
2735
+ /**
2736
+ * Deprecated. Use `taxInfo` instead.
2737
+ * This field will be removed on September 30, 2024.
2738
+ * Updated Tax summary. overwrites existing tax summary.
2739
+ * @deprecated Deprecated. Use `taxInfo` instead.
2740
+ * This field will be removed on September 30, 2024.
2741
+ * Updated Tax summary. overwrites existing tax summary.
2742
+ * @replacedBy tax_info
2743
+ * @targetRemovalDate 2024-09-30
2744
+ */
2745
+ taxSummary?: TaxSummary;
2746
+ /**
2747
+ * Updated order price summary. overwrites existing price summary.
2748
+ * balance will be updated automatically.
2749
+ */
2750
+ priceSummary?: PriceSummary;
2751
+ }
2752
+ /** @oneof */
2753
+ interface DraftOrderDiffsShippingUpdateInfoOneOf {
2754
+ /** Shipping info and selected shipping option details. */
2755
+ changedShippingInfo?: V1ShippingInformation;
2756
+ /** Remove existing shipping info. */
2757
+ shippingInfoRemoved?: boolean;
2758
+ }
2759
+ /** @oneof */
2760
+ interface DraftOrderDiffsBuyerUpdateInfoOneOf {
2761
+ }
2762
+ /** @oneof */
2763
+ interface DraftOrderDiffsBillingUpdateInfoOneOf {
2764
+ }
2765
+ /** @oneof */
2766
+ interface DraftOrderDiffsRecipientUpdateInfoOneOf {
2767
+ }
2768
+ interface V1LineItemDelta extends V1LineItemDeltaDeltaOneOf {
2769
+ /** The line item was added. */
2770
+ lineItemAdded?: boolean;
2771
+ /** The line item was modified. */
2772
+ changedDetails?: ItemChangedDetails;
2773
+ /** The line item was added. */
2774
+ lineItemRemoved?: boolean;
2775
+ /**
2776
+ * Line item ID.
2777
+ * @format GUID
2778
+ */
2779
+ lineItemId?: string;
2780
+ lineItem?: OrderLineItemChangedDetails;
2781
+ }
2782
+ /** @oneof */
2783
+ interface V1LineItemDeltaDeltaOneOf {
2784
+ /** The line item was added. */
2785
+ lineItemAdded?: boolean;
2786
+ /** The line item was modified. */
2787
+ changedDetails?: ItemChangedDetails;
2788
+ /** The line item was added. */
2789
+ lineItemRemoved?: boolean;
2790
+ }
2791
+ interface OrderLineItemChangedDetails {
2792
+ /**
2793
+ * Item name.
2794
+ * + Stores - `product.name`
2795
+ * + Bookings - `service.info.name`
2796
+ * + Events - `ticket.name`
2797
+ */
2798
+ productName?: ProductName;
2799
+ /**
2800
+ * References to the line item's origin catalog.
2801
+ * This field may be empty in the case of a custom line item.
2802
+ */
2803
+ catalogReference?: CatalogReference;
2804
+ /**
2805
+ * Line item quantity.
2806
+ * @min 1
2807
+ * @max 100000
2808
+ */
2809
+ quantity?: number;
2810
+ /** Total discount for this line item's entire quantity. */
2811
+ totalDiscount?: Price;
2812
+ /**
2813
+ * Line item description lines. Used for display purposes for the cart, checkout and order.
2814
+ * @maxSize 20
2815
+ */
2816
+ descriptionLines?: DescriptionLine[];
2817
+ /** Line item image. */
2818
+ image?: Image;
2819
+ /** Physical properties of the item. When relevant, contains information such as SKU and item weight. */
2820
+ physicalProperties?: PhysicalProperties;
2821
+ /** Item type. Either a preset type or custom. */
2822
+ itemType?: ItemType;
2823
+ /**
2824
+ * Fulfiller ID. Field is empty when the line item is self-fulfilled.
2825
+ * To get fulfillment information, pass this order's ID to [List Fulfillments For Single Order](https://bo.wix.com/wix-docs/rest/ecommerce/order-fulfillments/list-fulfillments-for-single-order).
2826
+ * @format GUID
2827
+ */
2828
+ fulfillerId?: string | null;
2829
+ /** Line item price after line item discounts for display purposes. */
2830
+ price?: Price;
2831
+ /** Line item price before line item discounts for display purposes. Defaults to `price` when not provided. */
2832
+ priceBeforeDiscounts?: Price;
2833
+ /** Total price after all discounts and tax. */
2834
+ totalPriceAfterTax?: Price;
2835
+ /**
2836
+ * Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.
2837
+ * + `FULL_PAYMENT_OFFLINE` - The entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
2838
+ * + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.
2839
+ */
2840
+ paymentOption?: DeltaPaymentOptionType;
2841
+ /**
2842
+ * Deprecated. Use `taxInfo` instead.
2843
+ * This field will be removed on September 30, 2024.
2844
+ * Tax details for this line item.
2845
+ * @deprecated Deprecated. Use `taxInfo` instead.
2846
+ * This field will be removed on September 30, 2024.
2847
+ * Tax details for this line item.
2848
+ * @replacedBy tax_info
2849
+ * @targetRemovalDate 2024-09-30
2850
+ */
2851
+ taxDetails?: ItemTaxFullDetails;
2852
+ /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
2853
+ priceDescription?: PriceDescription;
2854
+ /** Total price **after** catalog-defined discount and line item discounts. */
2855
+ lineItemPrice?: Price;
2856
+ /** Total price after all discounts excluding tax. */
2857
+ totalPriceBeforeTax?: Price;
2858
+ /**
2859
+ * Line item locations.
2860
+ *
2861
+ * The location's total quantity must not exceed the line item quantity.
2862
+ * @maxSize 5
2863
+ */
2864
+ locations?: LocationAndQuantity[];
2865
+ /** Subscription info. */
2866
+ subscriptionInfo?: SubscriptionInfo;
2867
+ }
2868
+ /** Type of selected payment option for catalog item */
2869
+ declare enum DeltaPaymentOptionType {
2870
+ /** Irrelevant */
2871
+ UNKNOWN_PAYMENT_OPTION = "UNKNOWN_PAYMENT_OPTION",
2872
+ /** The entire payment for the given item will happen after checkout. */
2873
+ FULL_PAYMENT_OFFLINE = "FULL_PAYMENT_OFFLINE",
2874
+ /**
2875
+ * Payment for this item can only be done using a membership and must be manually redeemed in the dashboard by the site owner.
2876
+ * Note: when this option is used, the price will be 0.
2877
+ */
2878
+ MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
2879
+ }
2880
+ interface ItemChangedDetails {
2881
+ /**
2882
+ * The quantity before the change.
2883
+ * @min 1
2884
+ * @max 1000000
2885
+ */
2886
+ quantityBeforeChange?: number | null;
2887
+ /** The price before the change. */
2888
+ priceBeforeChange?: Price;
2889
+ /** The price description before the change */
2890
+ priceDescriptionBeforeChange?: PriceDescription;
2891
+ }
2892
+ interface AppliedDiscountDelta extends AppliedDiscountDeltaDeltaOneOf {
2893
+ editedDiscount?: AppliedDiscount;
2894
+ discountRemoved?: boolean;
2895
+ /**
2896
+ * Discount id.
2897
+ * @format GUID
2898
+ */
2899
+ discountId?: string;
2900
+ }
2901
+ /** @oneof */
2902
+ interface AppliedDiscountDeltaDeltaOneOf {
2903
+ editedDiscount?: AppliedDiscount;
2904
+ discountRemoved?: boolean;
2905
+ }
2906
+ interface AdditionalFeeDelta extends AdditionalFeeDeltaDeltaOneOf {
2907
+ editedAdditionalFee?: AdditionalFee;
2908
+ additionalFeeRemoved?: boolean;
2909
+ /**
2910
+ * Additional fee id.
2911
+ * @format GUID
2912
+ */
2913
+ additionalFeeId?: string;
2914
+ }
2915
+ /** @oneof */
2916
+ interface AdditionalFeeDeltaDeltaOneOf {
2917
+ editedAdditionalFee?: AdditionalFee;
2918
+ additionalFeeRemoved?: boolean;
2919
+ }
2920
+ interface DraftOrderCommitSettings {
2921
+ /** If false, do not send notifications to buyer. Default is true. */
2922
+ sendNotificationsToBuyer?: boolean | null;
2923
+ /** If false, do not send notifications to business. Default is true. */
2924
+ sendNotificationsToBusiness?: boolean | null;
2925
+ /** If false, do not add activities to the order. Default is true. */
2926
+ addActivitiesToOrder?: boolean | null;
2927
+ /** If false, do not send mails to custom fulfillers in case of a change of shippable items fulfilled by custom fulfillers. Default is true. */
2928
+ sendNotificationsToCustomFulfillers?: boolean | null;
2929
+ /**
2930
+ * Inventory changes to be applied. Either to restock, or decrease.
2931
+ * @maxSize 300
2932
+ */
2933
+ inventoryUpdates?: InventoryUpdateDetails[];
2934
+ }
2935
+ interface InventoryUpdateDetails {
2936
+ /** Action to be applied - decrease or restock */
2937
+ actionType?: InventoryAction;
2938
+ /** Order line item id */
2939
+ lineItemId?: string;
2940
+ /** The amount to be increased or restocked */
2941
+ quantityChange?: number;
2942
+ }
2943
+ declare enum InventoryAction {
2944
+ /** Restock inventory */
2945
+ RESTOCK = "RESTOCK",
2946
+ /** Decrease inventory. Without failing on negative inventory. */
2947
+ DECREASE = "DECREASE"
2948
+ }
2949
+ interface CommitDeltasResponse {
2950
+ /** Order after deltas are applied */
2951
+ order?: Order;
2952
+ }
2953
+ interface UpdateOrderLineItemRequest {
2954
+ /**
2955
+ * Order ID
2956
+ * @minLength 1
2957
+ * @maxLength 100
2958
+ */
2959
+ id: string;
2960
+ /** Order line item to update */
2961
+ lineItem: OrderLineItem;
2962
+ }
2963
+ interface UpdateOrderLineItemResponse {
2964
+ /** Updated order data */
2965
+ order?: Order;
2966
+ }
2967
+ interface AddActivityRequest {
2968
+ /**
2969
+ * Order ID.
2970
+ * @minLength 1
2971
+ * @maxLength 100
2972
+ */
2973
+ id: string;
2974
+ /** Activity info. */
2975
+ activity: PublicActivity;
2976
+ }
2977
+ interface PublicActivity extends PublicActivityContentOneOf {
2978
+ /** Custom activity details. */
2979
+ customActivity?: CustomActivity;
2980
+ /** Merchant commment. */
2981
+ merchantComment?: MerchantComment;
2982
+ }
2983
+ /** @oneof */
2984
+ interface PublicActivityContentOneOf {
2985
+ /** Custom activity details. */
2986
+ customActivity?: CustomActivity;
2987
+ /** Merchant commment. */
2988
+ merchantComment?: MerchantComment;
2989
+ }
2990
+ interface AddActivityResponse {
2991
+ /** Updated order. */
2992
+ order?: Order;
2993
+ /**
2994
+ * ID of the added activity.
2995
+ * Use this ID to either [update](https://bo.wix.com/wix-docs/rest/ecommerce/orders/update-activity) or [delete](https://bo.wix.com/wix-docs/rest/ecommerce/orders/delete-activity) the activity.
2996
+ * @format GUID
2997
+ */
2998
+ activityId?: string;
2999
+ }
3000
+ interface UpdateActivityRequest {
3001
+ /**
3002
+ * Order ID.
3003
+ * @minLength 1
3004
+ * @maxLength 100
3005
+ */
3006
+ id: string;
3007
+ /**
3008
+ * ID of the activity to update.
3009
+ * @format GUID
3010
+ */
3011
+ activityId: string;
3012
+ /** Activity info. */
3013
+ activity: PublicActivity;
3014
+ }
3015
+ interface UpdateActivityResponse {
3016
+ /** Updated order. */
3017
+ order?: Order;
3018
+ }
3019
+ interface DeleteActivityRequest {
3020
+ /**
3021
+ * Order ID.
3022
+ * @minLength 1
3023
+ * @maxLength 100
3024
+ */
3025
+ id: string;
3026
+ /**
3027
+ * ID of the activity to delete.
3028
+ * @format GUID
3029
+ */
3030
+ activityId: string;
3031
+ }
3032
+ interface DeleteActivityResponse {
3033
+ /** Updated order. */
3034
+ order?: Order;
3035
+ }
3036
+ interface CancelOrderRequest {
3037
+ /**
3038
+ * Order ID.
3039
+ * @minLength 1
3040
+ * @maxLength 100
3041
+ */
3042
+ id: string;
3043
+ /** Whether to send an order canceled email to the buyer. */
3044
+ sendOrderCanceledEmail?: boolean;
3045
+ /**
3046
+ * Custom note to be added to the email (optional).
3047
+ * @minLength 1
3048
+ * @maxLength 1000
3049
+ */
3050
+ customMessage?: string | null;
3051
+ /** Whether to restock all items in the order. This will only apply to products in the Wix Stores inventory. */
3052
+ restockAllItems?: boolean;
3053
+ }
3054
+ interface CancelOrderResponse {
3055
+ /** Canceled order. */
3056
+ order?: Order;
3057
+ }
3058
+ interface UpdateOrderStatusRequest {
3059
+ /**
3060
+ * Order ID.
3061
+ * @format GUID
3062
+ */
3063
+ orderId: string;
3064
+ /** New order status. */
3065
+ status: OrderStatus;
3066
+ }
3067
+ interface UpdateOrderStatusResponse {
3068
+ /** Updated order. */
3069
+ order?: Order;
3070
+ }
3071
+ interface AggregateOrdersRequest {
3072
+ /** Filter applied to original data */
3073
+ filter?: Record<string, any> | null;
3074
+ /** This is an object defining aggregation itself */
3075
+ aggregation: Record<string, any> | null;
3076
+ /**
3077
+ * Optional custom separator string that can be used to override default separator value '|'
3078
+ * for hierarchical responses of multifaceted aggregation requests like:
3079
+ * '{"aggregation": {"example_request_key": {"$count" : ["deliveryMethod", "shippingRegion"]}}}'
3080
+ * with example response for default '|' separator like:
3081
+ * '{"aggregates" :{"example_request_key": {"(Mail|Region 1)": 5, "(Pickup|Region 2)": 10}}}'
3082
+ * @minLength 1
3083
+ * @maxLength 100
3084
+ */
3085
+ hierarchySeparatorOverride?: string | null;
3086
+ }
3087
+ interface AggregateOrdersResponse {
3088
+ aggregates?: Record<string, any> | null;
3089
+ }
3090
+ interface BulkUpdateOrderTagsRequest {
3091
+ /**
3092
+ * IDs of orders to update tags for.
3093
+ * @minSize 1
3094
+ * @maxSize 100
3095
+ * @format GUID
3096
+ */
3097
+ orderIds: string[];
3098
+ /** Tags to be added to orders */
3099
+ assignTags?: Tags;
3100
+ /** Tags to be removed from orders */
3101
+ unassignTags?: Tags;
3102
+ }
3103
+ interface BulkUpdateOrderTagsResponse {
3104
+ /**
3105
+ * @minSize 1
3106
+ * @maxSize 100
3107
+ */
3108
+ results?: BulkUpdateOrderTagsResult[];
3109
+ bulkActionMetadata?: BulkActionMetadata;
3110
+ }
3111
+ interface BulkUpdateOrderTagsResult {
3112
+ itemMetadata?: ItemMetadata;
3113
+ }
3114
+
3115
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
3116
+ getUrl: (context: any) => string;
3117
+ httpMethod: K;
3118
+ path: string;
3119
+ pathParams: M;
3120
+ __requestType: T;
3121
+ __originalRequestType: S;
3122
+ __responseType: Q;
3123
+ __originalResponseType: R;
3124
+ };
3125
+ declare function preparePaymentCollection(): __PublicMethodMetaInfo<'POST', {
3126
+ ecomOrderId: string;
3127
+ }, PreparePaymentCollectionRequest$1, PreparePaymentCollectionRequest, PreparePaymentCollectionResponse$1, PreparePaymentCollectionResponse>;
3128
+ declare function getPaymentCollectabilityStatus(): __PublicMethodMetaInfo<'GET', {
3129
+ ecomOrderId: string;
3130
+ }, GetPaymentCollectabilityStatusRequest$1, GetPaymentCollectabilityStatusRequest, GetPaymentCollectabilityStatusResponse$1, GetPaymentCollectabilityStatusResponse>;
3131
+ declare function recordManuallyCollectedPayment(): __PublicMethodMetaInfo<'POST', {
3132
+ orderId: string;
3133
+ }, RecordManuallyCollectedPaymentRequest$1, RecordManuallyCollectedPaymentRequest, RecordManuallyCollectedPaymentResponse$1, RecordManuallyCollectedPaymentResponse>;
3134
+ declare function paymentCollectionMarkOrderAsPaid(): __PublicMethodMetaInfo<'POST', {
3135
+ ecomOrderId: string;
3136
+ }, MarkOrderAsPaidRequest$1, MarkOrderAsPaidRequest, MarkOrderAsPaidResponse$1, MarkOrderAsPaidResponse>;
3137
+ declare function paymentCollectionBulkMarkOrdersAsPaid(): __PublicMethodMetaInfo<'POST', {}, BulkMarkOrdersAsPaidRequest$1, BulkMarkOrdersAsPaidRequest, BulkMarkOrdersAsPaidResponse$1, BulkMarkOrdersAsPaidResponse>;
3138
+ declare function getRefundabilityStatus(): __PublicMethodMetaInfo<'GET', {
3139
+ ecomOrderId: string;
3140
+ }, GetRefundabilityStatusRequest$1, GetRefundabilityStatusRequest, GetRefundabilityStatusResponse$1, GetRefundabilityStatusResponse>;
3141
+ declare function paymentCollectionCreatePaymentGatewayOrder(): __PublicMethodMetaInfo<'POST', {
3142
+ ecomOrderId: string;
3143
+ }, CreatePaymentGatewayOrderRequest$1, CreatePaymentGatewayOrderRequest, CreatePaymentGatewayOrderResponse$1, CreatePaymentGatewayOrderResponse>;
3144
+ declare function chargeMemberships(): __PublicMethodMetaInfo<'POST', {
3145
+ ecomOrderId: string;
3146
+ }, ChargeMembershipsRequest$1, ChargeMembershipsRequest, ChargeMembershipsResponse$1, ChargeMembershipsResponse>;
3147
+ declare function triggerRefund(): __PublicMethodMetaInfo<'POST', {
3148
+ ecomOrderId: string;
3149
+ }, TriggerRefundRequest$1, TriggerRefundRequest, TriggerRefundResponse$1, TriggerRefundResponse>;
3150
+ declare function voidAuthorizedPayments(): __PublicMethodMetaInfo<'POST', {
3151
+ ecomOrderId: string;
3152
+ }, VoidAuthorizedPaymentsRequest$1, VoidAuthorizedPaymentsRequest, VoidAuthorizedPaymentsResponse$1, VoidAuthorizedPaymentsResponse>;
3153
+ declare function captureAuthorizedPayments(): __PublicMethodMetaInfo<'POST', {
3154
+ ecomOrderId: string;
3155
+ }, CaptureAuthorizedPaymentsRequest$1, CaptureAuthorizedPaymentsRequest, CaptureAuthorizedPaymentsResponse$1, CaptureAuthorizedPaymentsResponse>;
3156
+ declare function getOrder(): __PublicMethodMetaInfo<'GET', {
3157
+ id: string;
3158
+ }, GetOrderRequest$1, GetOrderRequest, GetOrderResponse$1, GetOrderResponse>;
3159
+ declare function searchOrders(): __PublicMethodMetaInfo<'POST', {}, SearchOrdersRequest$1, SearchOrdersRequest, SearchOrdersResponse$1, SearchOrdersResponse>;
3160
+ declare function createOrder(): __PublicMethodMetaInfo<'POST', {}, CreateOrderRequest$1, CreateOrderRequest, CreateOrderResponse$1, CreateOrderResponse>;
3161
+ declare function updateOrder(): __PublicMethodMetaInfo<'PATCH', {
3162
+ orderId: string;
3163
+ }, UpdateOrderRequest$1, UpdateOrderRequest, UpdateOrderResponse$1, UpdateOrderResponse>;
3164
+ declare function bulkUpdateOrders(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateOrdersRequest$1, BulkUpdateOrdersRequest, BulkUpdateOrdersResponse$1, BulkUpdateOrdersResponse>;
3165
+ declare function commitDeltas(): __PublicMethodMetaInfo<'POST', {
3166
+ id: string;
3167
+ }, CommitDeltasRequest$1, CommitDeltasRequest, CommitDeltasResponse$1, CommitDeltasResponse>;
3168
+ declare function updateOrderLineItem(): __PublicMethodMetaInfo<'PATCH', {
3169
+ id: string;
3170
+ lineItemId: string;
3171
+ }, UpdateOrderLineItemRequest$1, UpdateOrderLineItemRequest, UpdateOrderLineItemResponse$1, UpdateOrderLineItemResponse>;
3172
+ declare function addActivity(): __PublicMethodMetaInfo<'POST', {
3173
+ id: string;
3174
+ }, AddActivityRequest$1, AddActivityRequest, AddActivityResponse$1, AddActivityResponse>;
3175
+ declare function updateActivity(): __PublicMethodMetaInfo<'PATCH', {
3176
+ id: string;
3177
+ activityId: string;
3178
+ }, UpdateActivityRequest$1, UpdateActivityRequest, UpdateActivityResponse$1, UpdateActivityResponse>;
3179
+ declare function deleteActivity(): __PublicMethodMetaInfo<'DELETE', {
3180
+ id: string;
3181
+ activityId: string;
3182
+ }, DeleteActivityRequest$1, DeleteActivityRequest, DeleteActivityResponse$1, DeleteActivityResponse>;
3183
+ declare function cancelOrder(): __PublicMethodMetaInfo<'POST', {
3184
+ id: string;
3185
+ }, CancelOrderRequest$1, CancelOrderRequest, CancelOrderResponse$1, CancelOrderResponse>;
3186
+ declare function updateOrderStatus(): __PublicMethodMetaInfo<'POST', {
3187
+ orderId: string;
3188
+ }, UpdateOrderStatusRequest$1, UpdateOrderStatusRequest, UpdateOrderStatusResponse$1, UpdateOrderStatusResponse>;
3189
+ declare function aggregateOrders(): __PublicMethodMetaInfo<'POST', {}, AggregateOrdersRequest$1, AggregateOrdersRequest, AggregateOrdersResponse$1, AggregateOrdersResponse>;
3190
+ declare function bulkUpdateOrderTags(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateOrderTagsRequest$1, BulkUpdateOrderTagsRequest, BulkUpdateOrderTagsResponse$1, BulkUpdateOrderTagsResponse>;
3191
+
3192
+ export { type __PublicMethodMetaInfo, addActivity, aggregateOrders, bulkUpdateOrderTags, bulkUpdateOrders, cancelOrder, captureAuthorizedPayments, chargeMemberships, commitDeltas, createOrder, deleteActivity, getOrder, getPaymentCollectabilityStatus, getRefundabilityStatus, paymentCollectionBulkMarkOrdersAsPaid, paymentCollectionCreatePaymentGatewayOrder, paymentCollectionMarkOrderAsPaid, preparePaymentCollection, recordManuallyCollectedPayment, searchOrders, triggerRefund, updateActivity, updateOrder, updateOrderLineItem, updateOrderStatus, voidAuthorizedPayments };