@wix/stores 1.0.22 → 1.0.24
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.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/stores-catalog-v1-product-products.universal.d.ts +1 -5
- package/build/cjs/src/stores-catalog-v1-product-products.universal.js.map +1 -1
- package/build/cjs/src/stores-catalog-v1-product.types.d.ts +1 -5
- package/build/cjs/src/stores-v2-orders.http.d.ts +42 -0
- package/build/cjs/src/stores-v2-orders.http.js +351 -0
- package/build/cjs/src/stores-v2-orders.http.js.map +1 -0
- package/build/cjs/src/stores-v2-orders.public.d.ts +12 -0
- package/build/cjs/src/stores-v2-orders.public.js +67 -0
- package/build/cjs/src/stores-v2-orders.public.js.map +1 -0
- package/build/cjs/src/stores-v2-orders.types.d.ts +1075 -0
- package/build/cjs/src/stores-v2-orders.types.js +168 -0
- package/build/cjs/src/stores-v2-orders.types.js.map +1 -0
- package/build/cjs/src/stores-v2-orders.universal.d.ts +1182 -0
- package/build/cjs/src/stores-v2-orders.universal.js +660 -0
- package/build/cjs/src/stores-v2-orders.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/es/index.js.map +1 -1
- package/build/es/src/stores-catalog-v1-product-products.universal.d.ts +1 -5
- package/build/es/src/stores-catalog-v1-product-products.universal.js.map +1 -1
- package/build/es/src/stores-catalog-v1-product.types.d.ts +1 -5
- package/build/es/src/stores-v2-orders.http.d.ts +42 -0
- package/build/es/src/stores-v2-orders.http.js +340 -0
- package/build/es/src/stores-v2-orders.http.js.map +1 -0
- package/build/es/src/stores-v2-orders.public.d.ts +12 -0
- package/build/es/src/stores-v2-orders.public.js +43 -0
- package/build/es/src/stores-v2-orders.public.js.map +1 -0
- package/build/es/src/stores-v2-orders.types.d.ts +1075 -0
- package/build/es/src/stores-v2-orders.types.js +165 -0
- package/build/es/src/stores-v2-orders.types.js.map +1 -0
- package/build/es/src/stores-v2-orders.universal.d.ts +1182 -0
- package/build/es/src/stores-v2-orders.universal.js +630 -0
- package/build/es/src/stores-v2-orders.universal.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,1075 @@
|
|
|
1
|
+
export interface Order {
|
|
2
|
+
/**
|
|
3
|
+
* Order ID (auto-generated upon order creation).
|
|
4
|
+
* @readonly
|
|
5
|
+
*/
|
|
6
|
+
id?: string | null;
|
|
7
|
+
/**
|
|
8
|
+
* Order number displayed in the owner's store (auto-generated).
|
|
9
|
+
* @readonly
|
|
10
|
+
*/
|
|
11
|
+
number?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Order creation date and time.
|
|
14
|
+
* @readonly
|
|
15
|
+
*/
|
|
16
|
+
dateCreated?: Date;
|
|
17
|
+
/** Buyer information. */
|
|
18
|
+
buyerInfo?: BuyerInfo;
|
|
19
|
+
/** 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. */
|
|
20
|
+
currency?: string | null;
|
|
21
|
+
/** Weight unit used in this store. */
|
|
22
|
+
weightUnit?: WeightUnit;
|
|
23
|
+
/** Totals for order's line items. */
|
|
24
|
+
totals?: Totals;
|
|
25
|
+
/** Billing information. */
|
|
26
|
+
billingInfo?: BillingInfo;
|
|
27
|
+
/** Shipping information. */
|
|
28
|
+
shippingInfo?: ShippingInfo;
|
|
29
|
+
/** A note added by the buyer. */
|
|
30
|
+
buyerNote?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Deprecated.
|
|
33
|
+
* @readonly
|
|
34
|
+
*/
|
|
35
|
+
read?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether or not the order was archived.
|
|
38
|
+
* @readonly
|
|
39
|
+
*/
|
|
40
|
+
archived?: boolean;
|
|
41
|
+
/** Current status of the payment. */
|
|
42
|
+
paymentStatus?: PaymentStatus;
|
|
43
|
+
/**
|
|
44
|
+
* Order's current fulfillment status (whether the order received a tracking number or was delivered/picked up).
|
|
45
|
+
* @readonly
|
|
46
|
+
*/
|
|
47
|
+
fulfillmentStatus?: FulfillmentStatus;
|
|
48
|
+
/** Line items ordered. */
|
|
49
|
+
lineItems?: LineItem[];
|
|
50
|
+
/**
|
|
51
|
+
* Log of updates related to the order.
|
|
52
|
+
* @readonly
|
|
53
|
+
*/
|
|
54
|
+
activities?: Activity[];
|
|
55
|
+
/** Invoice information. */
|
|
56
|
+
invoiceInfo?: InvoiceInfo;
|
|
57
|
+
/**
|
|
58
|
+
* Order fulfillment information.
|
|
59
|
+
* @readonly
|
|
60
|
+
*/
|
|
61
|
+
fulfillments?: Fulfillment[];
|
|
62
|
+
/** Discount information. */
|
|
63
|
+
discount?: Discount;
|
|
64
|
+
/** Custom field information. */
|
|
65
|
+
customField?: CustomField;
|
|
66
|
+
/** Shopping cart ID. */
|
|
67
|
+
cartId?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* Language for communication with the buyer. Defaults to the site language.
|
|
70
|
+
* For a site that supports multiple languages, this is the language the buyer selected.
|
|
71
|
+
*/
|
|
72
|
+
buyerLanguage?: string | null;
|
|
73
|
+
/** Information about the sales channel that submitted this order. */
|
|
74
|
+
channelInfo?: ChannelInfo;
|
|
75
|
+
/**
|
|
76
|
+
* Identity of the order's initiator.
|
|
77
|
+
* @readonly
|
|
78
|
+
*/
|
|
79
|
+
enteredBy?: EnteredBy;
|
|
80
|
+
/**
|
|
81
|
+
* Date and time of latest update.
|
|
82
|
+
* @readonly
|
|
83
|
+
*/
|
|
84
|
+
lastUpdated?: Date;
|
|
85
|
+
/** Subscription information. */
|
|
86
|
+
subscriptionInfo?: SubscriptionInfo;
|
|
87
|
+
/**
|
|
88
|
+
* Order’s unique numeric ID.
|
|
89
|
+
* Primarily used for sorting and filtering when crawling all orders.
|
|
90
|
+
* @readonly
|
|
91
|
+
*/
|
|
92
|
+
numericId?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Refund information.
|
|
95
|
+
* @readonly
|
|
96
|
+
*/
|
|
97
|
+
refunds?: Refund[];
|
|
98
|
+
}
|
|
99
|
+
/** Buyer Info */
|
|
100
|
+
export interface BuyerInfo {
|
|
101
|
+
/** Wix customer ID */
|
|
102
|
+
id?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Deprecated (use identityType instead)
|
|
105
|
+
* @readonly
|
|
106
|
+
*/
|
|
107
|
+
type?: IdentityType;
|
|
108
|
+
/** Customer type */
|
|
109
|
+
identityType?: IdentityType;
|
|
110
|
+
/**
|
|
111
|
+
* Customer's first name
|
|
112
|
+
* @readonly
|
|
113
|
+
*/
|
|
114
|
+
firstName?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Customer's last name
|
|
117
|
+
* @readonly
|
|
118
|
+
*/
|
|
119
|
+
lastName?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Customer's phone number
|
|
122
|
+
* @readonly
|
|
123
|
+
*/
|
|
124
|
+
phone?: string | null;
|
|
125
|
+
/**
|
|
126
|
+
* Customer's email address
|
|
127
|
+
* @readonly
|
|
128
|
+
*/
|
|
129
|
+
email?: string;
|
|
130
|
+
}
|
|
131
|
+
export declare enum IdentityType {
|
|
132
|
+
UNSPECIFIED_IDENTITY_TYPE = "UNSPECIFIED_IDENTITY_TYPE",
|
|
133
|
+
/** Site member */
|
|
134
|
+
MEMBER = "MEMBER",
|
|
135
|
+
/** Contact */
|
|
136
|
+
CONTACT = "CONTACT"
|
|
137
|
+
}
|
|
138
|
+
export declare enum WeightUnit {
|
|
139
|
+
/** Weight unit can't be classified, due to an error */
|
|
140
|
+
UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
|
|
141
|
+
/** Kilograms */
|
|
142
|
+
KG = "KG",
|
|
143
|
+
/** Pounds */
|
|
144
|
+
LB = "LB"
|
|
145
|
+
}
|
|
146
|
+
export interface Totals {
|
|
147
|
+
/** Subtotal of all the line items, before tax. */
|
|
148
|
+
subtotal?: string;
|
|
149
|
+
/** Total shipping price, before tax. */
|
|
150
|
+
shipping?: string | null;
|
|
151
|
+
/** Total tax. */
|
|
152
|
+
tax?: string | null;
|
|
153
|
+
/** Total calculated discount value. */
|
|
154
|
+
discount?: string | null;
|
|
155
|
+
/** Total price charged. */
|
|
156
|
+
total?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Total items weight.
|
|
159
|
+
* @readonly
|
|
160
|
+
*/
|
|
161
|
+
weight?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Total number of line items.
|
|
164
|
+
* @readonly
|
|
165
|
+
*/
|
|
166
|
+
quantity?: number;
|
|
167
|
+
/**
|
|
168
|
+
* Total refund.
|
|
169
|
+
* @readonly
|
|
170
|
+
*/
|
|
171
|
+
refund?: string | null;
|
|
172
|
+
/** Total calculated gift card value. */
|
|
173
|
+
giftCard?: string | null;
|
|
174
|
+
}
|
|
175
|
+
export interface BillingInfo {
|
|
176
|
+
/** Payment method used for this order */
|
|
177
|
+
paymentMethod?: string | null;
|
|
178
|
+
/**
|
|
179
|
+
* Deprecated (use paymentProviderTransactionId instead)
|
|
180
|
+
* @readonly
|
|
181
|
+
*/
|
|
182
|
+
externalTransactionId?: string | null;
|
|
183
|
+
/** Transaction ID from payment provider (e.g., PayPal, Square, Stripe) transaction ID */
|
|
184
|
+
paymentProviderTransactionId?: string | null;
|
|
185
|
+
/** Transaction ID from payment gateway (e.g., Wix Payments) */
|
|
186
|
+
paymentGatewayTransactionId?: string | null;
|
|
187
|
+
/** Full billing address */
|
|
188
|
+
address?: Address;
|
|
189
|
+
/**
|
|
190
|
+
* Payment date
|
|
191
|
+
* @readonly
|
|
192
|
+
*/
|
|
193
|
+
paidDate?: Date;
|
|
194
|
+
/** Whether order can be refunded by payment provider (manually or automatic) */
|
|
195
|
+
refundableByPaymentProvider?: boolean | null;
|
|
196
|
+
}
|
|
197
|
+
export interface Address extends AddressAddressLine1OptionsOneOf {
|
|
198
|
+
/** Addressee name */
|
|
199
|
+
fullName?: FullName;
|
|
200
|
+
/** Country code (2 letters) */
|
|
201
|
+
country?: string | null;
|
|
202
|
+
/** State or district */
|
|
203
|
+
subdivision?: string | null;
|
|
204
|
+
/** City name */
|
|
205
|
+
city?: string | null;
|
|
206
|
+
/** ZIP/postal code */
|
|
207
|
+
zipCode?: string | null;
|
|
208
|
+
/** Phone number */
|
|
209
|
+
phone?: string | null;
|
|
210
|
+
/** Company name */
|
|
211
|
+
company?: string | null;
|
|
212
|
+
/** Email address */
|
|
213
|
+
email?: string | null;
|
|
214
|
+
/** address line */
|
|
215
|
+
addressLine2?: string | null;
|
|
216
|
+
/** Tax information (for Brazil only) */
|
|
217
|
+
vatId?: VatId;
|
|
218
|
+
/** Address line 1 (free text) */
|
|
219
|
+
addressLine1?: string;
|
|
220
|
+
/** Address line 1 (street) */
|
|
221
|
+
street?: Street;
|
|
222
|
+
}
|
|
223
|
+
/** @oneof */
|
|
224
|
+
export interface AddressAddressLine1OptionsOneOf {
|
|
225
|
+
/** Address line 1 (free text) */
|
|
226
|
+
addressLine1?: string;
|
|
227
|
+
/** Address line 1 (street) */
|
|
228
|
+
street?: Street;
|
|
229
|
+
}
|
|
230
|
+
export interface FullName {
|
|
231
|
+
/** Customer's first name */
|
|
232
|
+
firstName?: string;
|
|
233
|
+
/** Customer's last name */
|
|
234
|
+
lastName?: string;
|
|
235
|
+
}
|
|
236
|
+
export interface Street {
|
|
237
|
+
/** Street number */
|
|
238
|
+
number?: string;
|
|
239
|
+
/** Street name */
|
|
240
|
+
name?: string;
|
|
241
|
+
}
|
|
242
|
+
export interface VatId {
|
|
243
|
+
/** Customer's tax ID */
|
|
244
|
+
number?: string;
|
|
245
|
+
/** tax type */
|
|
246
|
+
type?: VatType;
|
|
247
|
+
}
|
|
248
|
+
/** Brazilian tax info types */
|
|
249
|
+
export declare enum VatType {
|
|
250
|
+
/** When the tax info type can't be classified, due to an error */
|
|
251
|
+
UNSPECIFIED_TAX_TYPE = "UNSPECIFIED_TAX_TYPE",
|
|
252
|
+
/** CPF - for individual tax payers */
|
|
253
|
+
CPF = "CPF",
|
|
254
|
+
/** CNPJ - for corporations */
|
|
255
|
+
CNPJ = "CNPJ"
|
|
256
|
+
}
|
|
257
|
+
export interface ShippingInfo extends ShippingInfoDetailsOneOf {
|
|
258
|
+
/** Shipping option name. */
|
|
259
|
+
deliveryOption?: string;
|
|
260
|
+
/** Shipping option delivery time. */
|
|
261
|
+
estimatedDeliveryTime?: string | null;
|
|
262
|
+
/** Latest expected delivery date. */
|
|
263
|
+
deliverByDate?: Date;
|
|
264
|
+
/** Shipping region. */
|
|
265
|
+
shippingRegion?: string | null;
|
|
266
|
+
/**
|
|
267
|
+
* Unique code of provided shipping option. For example, `"usps_std_overnight"`.
|
|
268
|
+
* @readonly
|
|
269
|
+
*/
|
|
270
|
+
code?: string | null;
|
|
271
|
+
/** Shipment details (when this object describes shipment). */
|
|
272
|
+
shipmentDetails?: ShipmentDetails;
|
|
273
|
+
/** Pickup details (when this object describes pickup). */
|
|
274
|
+
pickupDetails?: PickupDetails;
|
|
275
|
+
}
|
|
276
|
+
/** @oneof */
|
|
277
|
+
export interface ShippingInfoDetailsOneOf {
|
|
278
|
+
/** Shipment details (when this object describes shipment). */
|
|
279
|
+
shipmentDetails?: ShipmentDetails;
|
|
280
|
+
/** Pickup details (when this object describes pickup). */
|
|
281
|
+
pickupDetails?: PickupDetails;
|
|
282
|
+
}
|
|
283
|
+
export interface ShipmentDetails {
|
|
284
|
+
/** Shipping destination address. */
|
|
285
|
+
address?: Address;
|
|
286
|
+
/**
|
|
287
|
+
* Deprecated (use fulfillments instead).
|
|
288
|
+
* @readonly
|
|
289
|
+
*/
|
|
290
|
+
trackingInfo?: TrackingInfo;
|
|
291
|
+
/** Discount applied for shipping. */
|
|
292
|
+
discount?: string | null;
|
|
293
|
+
/** Tax applied for shipping. */
|
|
294
|
+
tax?: string | null;
|
|
295
|
+
/** Price data. */
|
|
296
|
+
priceData?: ShippingPriceData;
|
|
297
|
+
}
|
|
298
|
+
export interface TrackingInfo {
|
|
299
|
+
/**
|
|
300
|
+
* Tracking number
|
|
301
|
+
* @readonly
|
|
302
|
+
*/
|
|
303
|
+
trackingNumber?: string | null;
|
|
304
|
+
/**
|
|
305
|
+
* Shipping provider
|
|
306
|
+
* @readonly
|
|
307
|
+
*/
|
|
308
|
+
shippingProvider?: string | null;
|
|
309
|
+
/**
|
|
310
|
+
* Tracking link
|
|
311
|
+
* @readonly
|
|
312
|
+
*/
|
|
313
|
+
trackingLink?: string | null;
|
|
314
|
+
}
|
|
315
|
+
export interface ShippingPriceData {
|
|
316
|
+
/** Whether tax is included in the price. */
|
|
317
|
+
taxIncludedInPrice?: boolean;
|
|
318
|
+
/** Shipping price. */
|
|
319
|
+
price?: string | null;
|
|
320
|
+
}
|
|
321
|
+
export interface PickupDetails {
|
|
322
|
+
/** Pickup address. */
|
|
323
|
+
pickupAddress?: PickupAddress;
|
|
324
|
+
/**
|
|
325
|
+
* Deprecated (use billingInfo instead).
|
|
326
|
+
* @readonly
|
|
327
|
+
*/
|
|
328
|
+
buyerDetails?: BuyerDetails;
|
|
329
|
+
/** Store owner's pickup instructions. */
|
|
330
|
+
pickupInstructions?: string | null;
|
|
331
|
+
}
|
|
332
|
+
export interface PickupAddress {
|
|
333
|
+
/** Country code (3 letters) */
|
|
334
|
+
country?: string;
|
|
335
|
+
/** State/District */
|
|
336
|
+
subdivision?: string | null;
|
|
337
|
+
/** Address */
|
|
338
|
+
addressLine1?: string;
|
|
339
|
+
/** City */
|
|
340
|
+
city?: string;
|
|
341
|
+
/** ZIP/postal code */
|
|
342
|
+
zipCode?: string;
|
|
343
|
+
}
|
|
344
|
+
export interface BuyerDetails {
|
|
345
|
+
/** Addressee name */
|
|
346
|
+
fullName?: FullName;
|
|
347
|
+
/** Email address */
|
|
348
|
+
email?: string;
|
|
349
|
+
/** Phone number */
|
|
350
|
+
phone?: string;
|
|
351
|
+
}
|
|
352
|
+
/** This might be extended in the future with pending orders statuses */
|
|
353
|
+
export declare enum PaymentStatus {
|
|
354
|
+
/** Payment status can't be classified, due to an error */
|
|
355
|
+
UNSPECIFIED_PAYMENT_STATUS = "UNSPECIFIED_PAYMENT_STATUS",
|
|
356
|
+
/** Order is pending response from the payment provider */
|
|
357
|
+
PENDING = "PENDING",
|
|
358
|
+
/** Order is marked as not paid, and can be marked as paid later on. This is relevant for POS and offline orders */
|
|
359
|
+
NOT_PAID = "NOT_PAID",
|
|
360
|
+
/** The order is marked as paid */
|
|
361
|
+
PAID = "PAID",
|
|
362
|
+
/** Order was refunded, refund amount less than order total price */
|
|
363
|
+
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
|
|
364
|
+
/** Full order total price was refunded */
|
|
365
|
+
FULLY_REFUNDED = "FULLY_REFUNDED",
|
|
366
|
+
/** At least one payment was received and approved, covering less than total price amount */
|
|
367
|
+
PARTIALLY_PAID = "PARTIALLY_PAID"
|
|
368
|
+
}
|
|
369
|
+
export declare enum FulfillmentStatus {
|
|
370
|
+
/** None of the order items are fulfilled */
|
|
371
|
+
NOT_FULFILLED = "NOT_FULFILLED",
|
|
372
|
+
/**
|
|
373
|
+
* All of the order items are fulfilled
|
|
374
|
+
* Orders without shipping info are fulfilled automatically
|
|
375
|
+
*/
|
|
376
|
+
FULFILLED = "FULFILLED",
|
|
377
|
+
/** Order is canceled */
|
|
378
|
+
CANCELED = "CANCELED",
|
|
379
|
+
/** Some, but not all of the order items are fulfilled */
|
|
380
|
+
PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED"
|
|
381
|
+
}
|
|
382
|
+
export interface LineItem {
|
|
383
|
+
/**
|
|
384
|
+
* Line item ID (auto-generated, stable within this order only)
|
|
385
|
+
* @readonly
|
|
386
|
+
*/
|
|
387
|
+
index?: number | null;
|
|
388
|
+
/** Line item quantity */
|
|
389
|
+
quantity?: number;
|
|
390
|
+
/**
|
|
391
|
+
* Deprecated (use priceData instead)
|
|
392
|
+
* @readonly
|
|
393
|
+
*/
|
|
394
|
+
price?: string | null;
|
|
395
|
+
/** Line item name */
|
|
396
|
+
name?: string | null;
|
|
397
|
+
/** Product name, translated into the customer's language */
|
|
398
|
+
translatedName?: string | null;
|
|
399
|
+
/** Line item product ID (optional for POS orders) */
|
|
400
|
+
productId?: string | null;
|
|
401
|
+
/**
|
|
402
|
+
* Deprecated (use priceData instead)
|
|
403
|
+
* @readonly
|
|
404
|
+
*/
|
|
405
|
+
totalPrice?: string | null;
|
|
406
|
+
/** Line item type (may be extended) */
|
|
407
|
+
lineItemType?: LineItemType;
|
|
408
|
+
/** Line item options ordered */
|
|
409
|
+
options?: OptionSelection[];
|
|
410
|
+
/** Line item custom text field entry */
|
|
411
|
+
customTextFields?: CustomTextFieldSelection[];
|
|
412
|
+
/** Line item weight */
|
|
413
|
+
weight?: string | null;
|
|
414
|
+
/** Primary media for preview of the line item */
|
|
415
|
+
mediaItem?: MediaItem;
|
|
416
|
+
/** Line item SKU */
|
|
417
|
+
sku?: string | null;
|
|
418
|
+
/** Line item notes */
|
|
419
|
+
notes?: string | null;
|
|
420
|
+
/** Line item variantId (from Stores Catalog) */
|
|
421
|
+
variantId?: string | null;
|
|
422
|
+
/** Line item fulfillerId from stores fulfillers. No value equals self fulfilled */
|
|
423
|
+
fulfillerId?: string | null;
|
|
424
|
+
/** Discount applied for this line item */
|
|
425
|
+
discount?: string | null;
|
|
426
|
+
/** Tax applied for this line item */
|
|
427
|
+
tax?: string | null;
|
|
428
|
+
/**
|
|
429
|
+
* Deprecated (use priceData instead)
|
|
430
|
+
* @readonly
|
|
431
|
+
*/
|
|
432
|
+
taxIncludedInPrice?: boolean;
|
|
433
|
+
/** Tax group ID */
|
|
434
|
+
taxGroupId?: string | null;
|
|
435
|
+
/** Price data */
|
|
436
|
+
priceData?: LineItemPriceData;
|
|
437
|
+
}
|
|
438
|
+
export declare enum LineItemType {
|
|
439
|
+
/** Line item type can't be classified, due to an error */
|
|
440
|
+
UNSPECIFIED_LINE_ITEM_TYPE = "UNSPECIFIED_LINE_ITEM_TYPE",
|
|
441
|
+
/** Physical item type */
|
|
442
|
+
PHYSICAL = "PHYSICAL",
|
|
443
|
+
/** Digital item type */
|
|
444
|
+
DIGITAL = "DIGITAL",
|
|
445
|
+
/** Custom item price */
|
|
446
|
+
CUSTOM_AMOUNT_ITEM = "CUSTOM_AMOUNT_ITEM"
|
|
447
|
+
}
|
|
448
|
+
export interface OptionSelection {
|
|
449
|
+
/** Option name */
|
|
450
|
+
option?: string;
|
|
451
|
+
/** Selected choice for this option */
|
|
452
|
+
selection?: string;
|
|
453
|
+
}
|
|
454
|
+
export interface CustomTextFieldSelection {
|
|
455
|
+
/** Custom text field name */
|
|
456
|
+
title?: string;
|
|
457
|
+
/** Custom text field value */
|
|
458
|
+
value?: string;
|
|
459
|
+
}
|
|
460
|
+
export interface MediaItem {
|
|
461
|
+
/**
|
|
462
|
+
* Media type
|
|
463
|
+
* @readonly
|
|
464
|
+
*/
|
|
465
|
+
mediaType?: MediaItemType;
|
|
466
|
+
/**
|
|
467
|
+
* Media URL
|
|
468
|
+
* @readonly
|
|
469
|
+
*/
|
|
470
|
+
url?: string;
|
|
471
|
+
/**
|
|
472
|
+
* Media item width
|
|
473
|
+
* @readonly
|
|
474
|
+
*/
|
|
475
|
+
width?: number;
|
|
476
|
+
/**
|
|
477
|
+
* Media item height
|
|
478
|
+
* @readonly
|
|
479
|
+
*/
|
|
480
|
+
height?: number;
|
|
481
|
+
/** Deprecated */
|
|
482
|
+
mediaId?: string | null;
|
|
483
|
+
/** Media ID (for media items previously saved in Wix Media) */
|
|
484
|
+
id?: string | null;
|
|
485
|
+
/** Media external URL */
|
|
486
|
+
externalImageUrl?: string | null;
|
|
487
|
+
/** Alternative text for presentation when media cannot be displayed */
|
|
488
|
+
altText?: string | null;
|
|
489
|
+
}
|
|
490
|
+
export declare enum MediaItemType {
|
|
491
|
+
/** Media item type can't be classified, due to an error */
|
|
492
|
+
UNSPECIFIED_MEDIA_TYPE_ITEM = "UNSPECIFIED_MEDIA_TYPE_ITEM",
|
|
493
|
+
/** Image item type */
|
|
494
|
+
IMAGE = "IMAGE"
|
|
495
|
+
}
|
|
496
|
+
export interface LineItemPriceData {
|
|
497
|
+
/** Whether tax is included in the price set for this line item */
|
|
498
|
+
taxIncludedInPrice?: boolean;
|
|
499
|
+
/** Line item price */
|
|
500
|
+
price?: string;
|
|
501
|
+
/**
|
|
502
|
+
* Total price charged to the customer (per line item) after computation of quantity and discount
|
|
503
|
+
* @readonly
|
|
504
|
+
*/
|
|
505
|
+
totalPrice?: string | null;
|
|
506
|
+
}
|
|
507
|
+
export interface DigitalFile {
|
|
508
|
+
/** id of the secure file in media */
|
|
509
|
+
fileId?: string;
|
|
510
|
+
}
|
|
511
|
+
export interface Activity {
|
|
512
|
+
/**
|
|
513
|
+
* Activity item type
|
|
514
|
+
* @readonly
|
|
515
|
+
*/
|
|
516
|
+
type?: ActivityType;
|
|
517
|
+
/**
|
|
518
|
+
* Activity item author
|
|
519
|
+
* @readonly
|
|
520
|
+
*/
|
|
521
|
+
author?: string | null;
|
|
522
|
+
/**
|
|
523
|
+
* Comment added to activity item
|
|
524
|
+
* @readonly
|
|
525
|
+
*/
|
|
526
|
+
message?: string | null;
|
|
527
|
+
/**
|
|
528
|
+
* Activity item timestamp
|
|
529
|
+
* @readonly
|
|
530
|
+
*/
|
|
531
|
+
timestamp?: Date;
|
|
532
|
+
}
|
|
533
|
+
export declare enum ActivityType {
|
|
534
|
+
/** Activity item type can't be classified, due to an error */
|
|
535
|
+
UNSPECIFIED_ORDER_HISTORY_ITEM_TYPE = "UNSPECIFIED_ORDER_HISTORY_ITEM_TYPE",
|
|
536
|
+
/** Store owner added a comment */
|
|
537
|
+
MERCHANT_COMMENT = "MERCHANT_COMMENT",
|
|
538
|
+
/** Order placed */
|
|
539
|
+
ORDER_PLACED = "ORDER_PLACED",
|
|
540
|
+
/** Order marked as paid, either by the store owner (for offline orders), or when an online transaction was confirmed */
|
|
541
|
+
ORDER_PAID = "ORDER_PAID",
|
|
542
|
+
/** Order shipping status set as fulfilled */
|
|
543
|
+
ORDER_FULFILLED = "ORDER_FULFILLED",
|
|
544
|
+
/** Order shipping status set as not fulfilled */
|
|
545
|
+
ORDER_NOT_FULFILLED = "ORDER_NOT_FULFILLED",
|
|
546
|
+
/** A download link was sent (relevant for orders with digital line items) */
|
|
547
|
+
DOWNLOAD_LINK_SENT = "DOWNLOAD_LINK_SENT",
|
|
548
|
+
/** An email notification for pickup was sent */
|
|
549
|
+
PICKUP_READY_EMAIL_SENT = "PICKUP_READY_EMAIL_SENT",
|
|
550
|
+
/** Shipping tracking number was set */
|
|
551
|
+
TRACKING_NUMBER_ADDED = "TRACKING_NUMBER_ADDED",
|
|
552
|
+
/** Shipping tracking number was edited */
|
|
553
|
+
TRACKING_NUMBER_EDITED = "TRACKING_NUMBER_EDITED",
|
|
554
|
+
/** Shipping tracking link was set */
|
|
555
|
+
TRACKING_LINK_WAS_SET = "TRACKING_LINK_WAS_SET",
|
|
556
|
+
/** An email confirmation of order shipment was sent */
|
|
557
|
+
SHIPPING_CONFIRMATION_EMAIL_SENT = "SHIPPING_CONFIRMATION_EMAIL_SENT",
|
|
558
|
+
/** Invoice was set in the order */
|
|
559
|
+
INVOICE_WAS_SET = "INVOICE_WAS_SET",
|
|
560
|
+
/** Invoice was removed from the order */
|
|
561
|
+
INVOICE_WAS_REMOVED = "INVOICE_WAS_REMOVED",
|
|
562
|
+
/** Invoice was sent to customer via email */
|
|
563
|
+
INVOICE_WAS_SENT = "INVOICE_WAS_SENT",
|
|
564
|
+
/** Email was sent to fulfiller */
|
|
565
|
+
FULFILLER_EMAIL_SENT = "FULFILLER_EMAIL_SENT",
|
|
566
|
+
/** Shipping address was updated */
|
|
567
|
+
SHIPPING_ADDRESS_EDITED = "SHIPPING_ADDRESS_EDITED",
|
|
568
|
+
/** Order email was updated */
|
|
569
|
+
EMAIL_EDITED = "EMAIL_EDITED",
|
|
570
|
+
/** Order partially paid. During the checkout for orders with deposit items. */
|
|
571
|
+
ORDER_PARTIALLY_PAID = "ORDER_PARTIALLY_PAID"
|
|
572
|
+
}
|
|
573
|
+
export interface InvoiceInfo {
|
|
574
|
+
/** Invoice ID */
|
|
575
|
+
id?: string;
|
|
576
|
+
/** Invoice source */
|
|
577
|
+
source?: InvoiceSource;
|
|
578
|
+
}
|
|
579
|
+
export declare enum InvoiceSource {
|
|
580
|
+
/** Invoice source can't be classified, due to an error */
|
|
581
|
+
UNSPECIFIED_INVOICE_SOURCE = "UNSPECIFIED_INVOICE_SOURCE",
|
|
582
|
+
/** Invoice created using the Invoices API */
|
|
583
|
+
WIX = "WIX"
|
|
584
|
+
}
|
|
585
|
+
export interface Fulfillment {
|
|
586
|
+
/**
|
|
587
|
+
* Fulfillment ID (auto generated upon fulfillment creation).
|
|
588
|
+
* @readonly
|
|
589
|
+
*/
|
|
590
|
+
id?: string | null;
|
|
591
|
+
/**
|
|
592
|
+
* Fulfillment creation date and time.
|
|
593
|
+
* @readonly
|
|
594
|
+
*/
|
|
595
|
+
dateCreated?: Date;
|
|
596
|
+
/** Information about the line items in the fulfilled order. */
|
|
597
|
+
lineItems?: FulfillmentLineItem[];
|
|
598
|
+
/** Tracking information. */
|
|
599
|
+
trackingInfo?: FulfillmentTrackingInfo;
|
|
600
|
+
}
|
|
601
|
+
export interface FulfillmentLineItem {
|
|
602
|
+
/** Line item ID (mirrors the line item index of the order). */
|
|
603
|
+
index?: number;
|
|
604
|
+
/**
|
|
605
|
+
* Line item quantity.
|
|
606
|
+
* On creation, if this parameter isn't passed, the new fulfillment will automatically include all items of this line item that have not already been linked to a fulfillment.
|
|
607
|
+
* If the order does not have the requested quantity of line items available to add to this fulfillment, the fulfillment will not be created and an error will be returned.
|
|
608
|
+
* This property will always have a value when returned.
|
|
609
|
+
*/
|
|
610
|
+
quantity?: number | null;
|
|
611
|
+
}
|
|
612
|
+
export interface FulfillmentTrackingInfo {
|
|
613
|
+
/** Tracking number. */
|
|
614
|
+
trackingNumber?: string;
|
|
615
|
+
/**
|
|
616
|
+
* Shipping provider. Using the following shipping providers will allow for autofilling the tracking link:
|
|
617
|
+
* * `fedex`
|
|
618
|
+
* * `ups`
|
|
619
|
+
* * `usps`
|
|
620
|
+
* * `dhl`
|
|
621
|
+
* * `canadaPost`
|
|
622
|
+
*/
|
|
623
|
+
shippingProvider?: string;
|
|
624
|
+
/** Tracking link - autofilled if using a predefined shipping provider, otherwise provided on creation. */
|
|
625
|
+
trackingLink?: string | null;
|
|
626
|
+
}
|
|
627
|
+
export interface Discount {
|
|
628
|
+
/**
|
|
629
|
+
* Deprecated (use Totals.discount instead)
|
|
630
|
+
* @readonly
|
|
631
|
+
*/
|
|
632
|
+
value?: string;
|
|
633
|
+
/** Applied coupon */
|
|
634
|
+
appliedCoupon?: AppliedCoupon;
|
|
635
|
+
}
|
|
636
|
+
export interface AppliedCoupon {
|
|
637
|
+
/** Coupon ID */
|
|
638
|
+
couponId?: string;
|
|
639
|
+
/** Coupon name */
|
|
640
|
+
name?: string;
|
|
641
|
+
/** Coupon code */
|
|
642
|
+
code?: string;
|
|
643
|
+
}
|
|
644
|
+
/** Custom field */
|
|
645
|
+
export interface CustomField {
|
|
646
|
+
/** Free text that the customer entered in the custom field during the checkout process */
|
|
647
|
+
value?: string;
|
|
648
|
+
/** Title for the custom field */
|
|
649
|
+
title?: string;
|
|
650
|
+
/** The title translated according to the buyer language */
|
|
651
|
+
translatedTitle?: string;
|
|
652
|
+
}
|
|
653
|
+
export interface ChannelInfo {
|
|
654
|
+
/** Sales channel that submitted the order */
|
|
655
|
+
type?: ChannelType;
|
|
656
|
+
/** Reference to an order ID from an external system, as defined in channelInfo (e.g., eBay or Amazon) */
|
|
657
|
+
externalOrderId?: string | null;
|
|
658
|
+
/** URL to the order in the external system, as defined in channelInfo (e.g., eBay or Amazon) */
|
|
659
|
+
externalOrderUrl?: string | null;
|
|
660
|
+
}
|
|
661
|
+
export declare enum ChannelType {
|
|
662
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
663
|
+
WEB = "WEB",
|
|
664
|
+
POS = "POS",
|
|
665
|
+
EBAY = "EBAY",
|
|
666
|
+
AMAZON = "AMAZON",
|
|
667
|
+
OTHER_PLATFORM = "OTHER_PLATFORM",
|
|
668
|
+
WIX_APP_STORE = "WIX_APP_STORE",
|
|
669
|
+
WIX_INVOICES = "WIX_INVOICES",
|
|
670
|
+
BACKOFFICE_MERCHANT = "BACKOFFICE_MERCHANT",
|
|
671
|
+
WISH = "WISH"
|
|
672
|
+
}
|
|
673
|
+
export interface EnteredBy {
|
|
674
|
+
id?: string;
|
|
675
|
+
identityType?: EnteredByIdentityType;
|
|
676
|
+
}
|
|
677
|
+
export declare enum EnteredByIdentityType {
|
|
678
|
+
USER = "USER",
|
|
679
|
+
MEMBER = "MEMBER",
|
|
680
|
+
CONTACT = "CONTACT",
|
|
681
|
+
APP = "APP"
|
|
682
|
+
}
|
|
683
|
+
export interface SubscriptionInfo {
|
|
684
|
+
/** Subscription ID. */
|
|
685
|
+
id?: string | null;
|
|
686
|
+
/** Current cycle number. For example, if the subscription is in the 3rd month of a 4-month subscription, the value will be `3`. */
|
|
687
|
+
cycleNumber?: number;
|
|
688
|
+
/** Subscription settings. */
|
|
689
|
+
subscriptionSettings?: SubscriptionSettings;
|
|
690
|
+
/** Subscription options info. */
|
|
691
|
+
subscriptionOptionInfo?: SubscriptionOptionInfo;
|
|
692
|
+
}
|
|
693
|
+
export interface SubscriptionSettings {
|
|
694
|
+
/** Frequency of recurring payment. */
|
|
695
|
+
frequency?: SubscriptionFrequency;
|
|
696
|
+
/** Whether subscription is renewed automatically at the end of each period. */
|
|
697
|
+
autoRenewal?: boolean;
|
|
698
|
+
/** Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`. */
|
|
699
|
+
billingCycles?: number | null;
|
|
700
|
+
}
|
|
701
|
+
/** Frequency unit of recurring payment */
|
|
702
|
+
export declare enum SubscriptionFrequency {
|
|
703
|
+
UNDEFINED = "UNDEFINED",
|
|
704
|
+
DAY = "DAY",
|
|
705
|
+
WEEK = "WEEK",
|
|
706
|
+
MONTH = "MONTH",
|
|
707
|
+
YEAR = "YEAR"
|
|
708
|
+
}
|
|
709
|
+
export interface SubscriptionOptionInfo {
|
|
710
|
+
/** Subscription option title. */
|
|
711
|
+
title?: string;
|
|
712
|
+
/** Subscription option description. */
|
|
713
|
+
description?: string | null;
|
|
714
|
+
}
|
|
715
|
+
export interface Refund {
|
|
716
|
+
/** Refund created timestamp. */
|
|
717
|
+
dateCreated?: Date;
|
|
718
|
+
/** Refund amount. */
|
|
719
|
+
amount?: string;
|
|
720
|
+
/** Reason for refund, given by user (optional). */
|
|
721
|
+
reason?: string | null;
|
|
722
|
+
/** Payment provider transaction ID. Used to find refund transaction info on the payment provider's side. */
|
|
723
|
+
paymentProviderTransactionId?: string | null;
|
|
724
|
+
/** Refund ID. */
|
|
725
|
+
id?: string;
|
|
726
|
+
/** Whether refund was made externally (on the payment provider's side). */
|
|
727
|
+
externalRefund?: boolean;
|
|
728
|
+
}
|
|
729
|
+
export interface GiftCard {
|
|
730
|
+
transactionId?: string;
|
|
731
|
+
/** giftcard internal ID */
|
|
732
|
+
id?: string;
|
|
733
|
+
/** giftcard provider appid */
|
|
734
|
+
providerId?: string;
|
|
735
|
+
/** giftcard amount */
|
|
736
|
+
amount?: string;
|
|
737
|
+
}
|
|
738
|
+
export interface OrderAddressUpdated {
|
|
739
|
+
/**
|
|
740
|
+
* Updated order data.
|
|
741
|
+
* @readonly
|
|
742
|
+
*/
|
|
743
|
+
order?: Order;
|
|
744
|
+
}
|
|
745
|
+
export interface CreateOrderRequest {
|
|
746
|
+
order: Order;
|
|
747
|
+
}
|
|
748
|
+
export interface AdditionalOrderSettings {
|
|
749
|
+
/** ID of the line item this setting applies to */
|
|
750
|
+
lineItemId?: string | null;
|
|
751
|
+
/** Whether this line item purchase was made as part of a purchase that includes preorder items. */
|
|
752
|
+
preorderRequest?: boolean;
|
|
753
|
+
}
|
|
754
|
+
export interface CreateOrderResponse {
|
|
755
|
+
order?: Order;
|
|
756
|
+
}
|
|
757
|
+
export interface BulkFulfillOrdersRequest {
|
|
758
|
+
filter?: Record<string, any> | null;
|
|
759
|
+
/** when true shipping confirmation email will be sent to the buyer for all orders with shipment delivery */
|
|
760
|
+
sendShippingConfirmationEmail?: boolean;
|
|
761
|
+
/** when true pickup ready email will be sent to the buyer for all orders with pickup delivery */
|
|
762
|
+
sendPickupReadyEmail?: boolean;
|
|
763
|
+
}
|
|
764
|
+
export interface BulkFulfillOrdersResponse {
|
|
765
|
+
}
|
|
766
|
+
export interface BulkMarkOrdersAsPaidRequest {
|
|
767
|
+
filter?: Record<string, any> | null;
|
|
768
|
+
}
|
|
769
|
+
export interface BulkMarkOrdersAsPaidResponse {
|
|
770
|
+
}
|
|
771
|
+
export interface BulkArchiveOrdersRequest {
|
|
772
|
+
filter?: Record<string, any> | null;
|
|
773
|
+
}
|
|
774
|
+
export interface BulkArchiveOrdersResponse {
|
|
775
|
+
}
|
|
776
|
+
export interface BulkUnarchiveOrdersRequest {
|
|
777
|
+
filter?: Record<string, any> | null;
|
|
778
|
+
}
|
|
779
|
+
export interface BulkUnarchiveOrdersResponse {
|
|
780
|
+
}
|
|
781
|
+
export interface AddFulfillerEmailWasSentActivityRequest {
|
|
782
|
+
orderId?: string;
|
|
783
|
+
}
|
|
784
|
+
export interface AddFulfillerEmailWasSentActivityResponse {
|
|
785
|
+
}
|
|
786
|
+
export interface DeclineOrderRequest {
|
|
787
|
+
orderId?: string;
|
|
788
|
+
eventTime?: Date;
|
|
789
|
+
reason?: string | null;
|
|
790
|
+
}
|
|
791
|
+
export interface DeclineOrderResponse {
|
|
792
|
+
}
|
|
793
|
+
export interface UpdateOrderEmailRequest {
|
|
794
|
+
/**
|
|
795
|
+
* Order ID.
|
|
796
|
+
* @readonly
|
|
797
|
+
*/
|
|
798
|
+
orderId: string;
|
|
799
|
+
/** New email address for billing and shipping info. */
|
|
800
|
+
email?: string;
|
|
801
|
+
}
|
|
802
|
+
export interface UpdateOrderEmailResponse {
|
|
803
|
+
/** Updated order data. */
|
|
804
|
+
order?: Order;
|
|
805
|
+
}
|
|
806
|
+
export interface UpdateOrderShippingAddressRequest {
|
|
807
|
+
/**
|
|
808
|
+
* Order ID.
|
|
809
|
+
* @readonly
|
|
810
|
+
*/
|
|
811
|
+
orderId: string;
|
|
812
|
+
/** New order shipping address. */
|
|
813
|
+
shippingAddress?: Address;
|
|
814
|
+
}
|
|
815
|
+
export interface UpdateOrderShippingAddressResponse {
|
|
816
|
+
/** Updated order data. */
|
|
817
|
+
order?: Order;
|
|
818
|
+
}
|
|
819
|
+
export interface DiffmatokyPayload {
|
|
820
|
+
left?: string;
|
|
821
|
+
right?: string;
|
|
822
|
+
compareChannel?: string;
|
|
823
|
+
entityId?: string;
|
|
824
|
+
errorInformation?: ErrorInformation;
|
|
825
|
+
tags?: string[];
|
|
826
|
+
}
|
|
827
|
+
export interface ErrorInformation {
|
|
828
|
+
stackTrace?: string;
|
|
829
|
+
}
|
|
830
|
+
export interface OrderCreated {
|
|
831
|
+
/** Order ID (auto generated upon order creation) */
|
|
832
|
+
orderId?: string;
|
|
833
|
+
/** ID displayed in the owner's store (auto generated) */
|
|
834
|
+
number?: string;
|
|
835
|
+
/** Order creation date */
|
|
836
|
+
dateCreated?: Date;
|
|
837
|
+
/** Customer information */
|
|
838
|
+
buyerInfo?: BuyerInfo;
|
|
839
|
+
/** Currency used for pricing in this store */
|
|
840
|
+
currency?: string;
|
|
841
|
+
/** Weight unit used in this store */
|
|
842
|
+
weightUnit?: WeightUnit;
|
|
843
|
+
/** Totals for order's line items */
|
|
844
|
+
totals?: Totals;
|
|
845
|
+
/** Whether the order was read by the store owner */
|
|
846
|
+
read?: boolean;
|
|
847
|
+
/** Order archive status */
|
|
848
|
+
archived?: boolean;
|
|
849
|
+
/** Order payment status */
|
|
850
|
+
paymentStatus?: PaymentStatus;
|
|
851
|
+
/** Order fulfillment status */
|
|
852
|
+
fulfillmentStatus?: FulfillmentStatus;
|
|
853
|
+
}
|
|
854
|
+
export interface OrdersExperiments {
|
|
855
|
+
epCommitTax?: boolean;
|
|
856
|
+
moveMerchantEmailToEp?: boolean;
|
|
857
|
+
moveBuyerOrderConfirmationEmailToEp?: boolean;
|
|
858
|
+
producedByEpBridge?: boolean;
|
|
859
|
+
}
|
|
860
|
+
export interface OrderPaid {
|
|
861
|
+
/** Paid order data. */
|
|
862
|
+
order?: Order;
|
|
863
|
+
}
|
|
864
|
+
export interface OrderCancelRefundEvent {
|
|
865
|
+
/** @readonly */
|
|
866
|
+
isCancel?: boolean;
|
|
867
|
+
/**
|
|
868
|
+
* date when cancel/refund was issued
|
|
869
|
+
* @readonly
|
|
870
|
+
*/
|
|
871
|
+
issueDate?: Date;
|
|
872
|
+
/** will be defined if order was refunded */
|
|
873
|
+
refund?: Refund;
|
|
874
|
+
orderData?: OrderData;
|
|
875
|
+
}
|
|
876
|
+
export interface OrderData {
|
|
877
|
+
/**
|
|
878
|
+
* Order ID (auto generated upon order creation)
|
|
879
|
+
* @readonly
|
|
880
|
+
*/
|
|
881
|
+
orderId?: string;
|
|
882
|
+
/**
|
|
883
|
+
* means that order paid with cash, such orders might be not paid
|
|
884
|
+
* @readonly
|
|
885
|
+
*/
|
|
886
|
+
isOffline?: boolean;
|
|
887
|
+
/**
|
|
888
|
+
* Order payment status
|
|
889
|
+
* @readonly
|
|
890
|
+
*/
|
|
891
|
+
paymentStatus?: PaymentStatus;
|
|
892
|
+
/** Total price charged when order placed, this value isn't affected by refunds */
|
|
893
|
+
originalTotal?: string;
|
|
894
|
+
/**
|
|
895
|
+
* Order creation date
|
|
896
|
+
* @readonly
|
|
897
|
+
*/
|
|
898
|
+
dateCreated?: Date;
|
|
899
|
+
}
|
|
900
|
+
export interface OrderCanceled {
|
|
901
|
+
/**
|
|
902
|
+
* Canceled order data.
|
|
903
|
+
* @readonly
|
|
904
|
+
*/
|
|
905
|
+
order?: Order;
|
|
906
|
+
}
|
|
907
|
+
export interface OrderRefunded {
|
|
908
|
+
/**
|
|
909
|
+
* Refund ID.
|
|
910
|
+
* @readonly
|
|
911
|
+
*/
|
|
912
|
+
refundId?: string;
|
|
913
|
+
/**
|
|
914
|
+
* Refunded order data.
|
|
915
|
+
* @readonly
|
|
916
|
+
*/
|
|
917
|
+
order?: Order;
|
|
918
|
+
}
|
|
919
|
+
export interface FulfillmentCreated {
|
|
920
|
+
/** Order ID (auto generated upon order creation). */
|
|
921
|
+
orderId?: string;
|
|
922
|
+
/** ID of the newly created fulfillment. */
|
|
923
|
+
fulfillmentId?: string;
|
|
924
|
+
/** Fulfillment creation date and time. */
|
|
925
|
+
dateCreated?: Date;
|
|
926
|
+
/** Buyer information. */
|
|
927
|
+
buyerInfo?: BuyerInfo;
|
|
928
|
+
/** Order fulfillment status. */
|
|
929
|
+
fulfillmentStatus?: FulfillmentStatus;
|
|
930
|
+
/** Fulfillment tracking information. */
|
|
931
|
+
trackingInfo?: FulfillmentTrackingInfo;
|
|
932
|
+
}
|
|
933
|
+
export interface FulfillmentUpdated {
|
|
934
|
+
/** Order ID (auto generated upon order creation). */
|
|
935
|
+
orderId?: string;
|
|
936
|
+
/** ID of the updated fulfillment. */
|
|
937
|
+
fulfillmentId?: string;
|
|
938
|
+
/** Fulfillment tracking information. */
|
|
939
|
+
trackingInfo?: FulfillmentTrackingInfo;
|
|
940
|
+
}
|
|
941
|
+
export interface FulfillmentDeleted {
|
|
942
|
+
/** Order ID (auto generated upon order creation). */
|
|
943
|
+
orderId?: string;
|
|
944
|
+
/** ID of the deleted fulfillment. */
|
|
945
|
+
fulfillmentId?: string;
|
|
946
|
+
/** Order fulfillment status. */
|
|
947
|
+
fulfillmentStatus?: FulfillmentStatus;
|
|
948
|
+
}
|
|
949
|
+
export interface OrderDeclined {
|
|
950
|
+
order?: Order;
|
|
951
|
+
}
|
|
952
|
+
export interface GetOrderRequestV2 {
|
|
953
|
+
/** Requested order ID */
|
|
954
|
+
id: string;
|
|
955
|
+
}
|
|
956
|
+
export interface GetOrderResponseV2 {
|
|
957
|
+
/** Order data */
|
|
958
|
+
order?: Order;
|
|
959
|
+
}
|
|
960
|
+
export interface QueryOrdersRequestV2 {
|
|
961
|
+
/** Query */
|
|
962
|
+
query?: Query;
|
|
963
|
+
}
|
|
964
|
+
export interface Query {
|
|
965
|
+
paging?: Paging;
|
|
966
|
+
/** A filter string */
|
|
967
|
+
filter?: string | null;
|
|
968
|
+
/** A sort string */
|
|
969
|
+
sort?: string | null;
|
|
970
|
+
}
|
|
971
|
+
export interface Paging {
|
|
972
|
+
/** Number of items to load */
|
|
973
|
+
limit?: number | null;
|
|
974
|
+
/** The offset since the beginning of the collection */
|
|
975
|
+
offset?: number | null;
|
|
976
|
+
}
|
|
977
|
+
export interface QueryOrdersResponseV2 {
|
|
978
|
+
/** Order data */
|
|
979
|
+
orders?: Order[];
|
|
980
|
+
/** Paging metadata */
|
|
981
|
+
metadata?: PagingMetadata;
|
|
982
|
+
/** Total results */
|
|
983
|
+
totalResults?: number;
|
|
984
|
+
}
|
|
985
|
+
export interface PagingMetadata {
|
|
986
|
+
/** Requested number of items to load */
|
|
987
|
+
items?: number;
|
|
988
|
+
/** Requested offset since the beginning of the collection */
|
|
989
|
+
offset?: number;
|
|
990
|
+
}
|
|
991
|
+
export interface CreateFulfillmentRequest {
|
|
992
|
+
/** Order ID (to which the fulfillment will be related). */
|
|
993
|
+
orderId: string;
|
|
994
|
+
/** Fulfillment info. */
|
|
995
|
+
fulfillment: Fulfillment;
|
|
996
|
+
}
|
|
997
|
+
export interface CreateFulfillmentResponse {
|
|
998
|
+
/** Fulfillment ID. */
|
|
999
|
+
id?: string;
|
|
1000
|
+
/** Updated order data. */
|
|
1001
|
+
order?: Order;
|
|
1002
|
+
}
|
|
1003
|
+
export interface UpdateFulfillmentRequest {
|
|
1004
|
+
/** Order ID. */
|
|
1005
|
+
orderId: string;
|
|
1006
|
+
/** Fulfillment ID */
|
|
1007
|
+
fulfillmentId: string;
|
|
1008
|
+
/** Updated tracking info. */
|
|
1009
|
+
fulfillmentTrackingInfo?: FulfillmentTrackingInfo;
|
|
1010
|
+
}
|
|
1011
|
+
export interface UpdateFulfillmentResponse {
|
|
1012
|
+
/** Updated order data. */
|
|
1013
|
+
order?: Order;
|
|
1014
|
+
}
|
|
1015
|
+
export interface DeleteFulfillmentRequest {
|
|
1016
|
+
/** Order ID. */
|
|
1017
|
+
orderId: string;
|
|
1018
|
+
/** Fulfillment ID. */
|
|
1019
|
+
fulfillmentId: string;
|
|
1020
|
+
}
|
|
1021
|
+
export interface DeleteFulfillmentResponse {
|
|
1022
|
+
/** Updated order data. */
|
|
1023
|
+
order?: Order;
|
|
1024
|
+
}
|
|
1025
|
+
export interface MarkAsPaidRequest {
|
|
1026
|
+
/** The order id */
|
|
1027
|
+
id?: string;
|
|
1028
|
+
/** The payment info */
|
|
1029
|
+
paymentInfo?: RequestPaymentInfo;
|
|
1030
|
+
}
|
|
1031
|
+
export interface RequestPaymentInfo {
|
|
1032
|
+
/** Payment method used for this order */
|
|
1033
|
+
paymentMethod?: string;
|
|
1034
|
+
/** External transaction ID */
|
|
1035
|
+
externalTransactionId?: string;
|
|
1036
|
+
}
|
|
1037
|
+
export interface MarkAsPaidResponse {
|
|
1038
|
+
}
|
|
1039
|
+
export interface SetShippingFulfillmentRequest {
|
|
1040
|
+
/** The order id */
|
|
1041
|
+
id?: string;
|
|
1042
|
+
/** Shipment fulfillment status */
|
|
1043
|
+
status?: ShipmentFulfillmentStatus;
|
|
1044
|
+
}
|
|
1045
|
+
/** This may be expanded in the future to include partial fulfillments */
|
|
1046
|
+
export declare enum ShipmentFulfillmentStatus {
|
|
1047
|
+
/** Shipment fulfillment status can't be classified, due to an error */
|
|
1048
|
+
UNSPECIFIED_SHIPMENT_FULFILLMENT_STATUS = "UNSPECIFIED_SHIPMENT_FULFILLMENT_STATUS",
|
|
1049
|
+
/** Entire order's shipment is not fulfilled */
|
|
1050
|
+
SHIPMENT_NOT_FULFILLED = "SHIPMENT_NOT_FULFILLED",
|
|
1051
|
+
/** Entire order's shipment is fulfilled */
|
|
1052
|
+
SHIPMENT_FULFILLED = "SHIPMENT_FULFILLED"
|
|
1053
|
+
}
|
|
1054
|
+
export interface SetShippingFulfillmentResponse {
|
|
1055
|
+
}
|
|
1056
|
+
export interface SendFulfillmentConfirmationRequest {
|
|
1057
|
+
/** The order id */
|
|
1058
|
+
id?: string;
|
|
1059
|
+
}
|
|
1060
|
+
export interface SendFulfillmentConfirmationResponse {
|
|
1061
|
+
}
|
|
1062
|
+
export interface MarkAsReadRequest {
|
|
1063
|
+
/** The order id */
|
|
1064
|
+
id?: string;
|
|
1065
|
+
}
|
|
1066
|
+
export interface MarkAsReadResponse {
|
|
1067
|
+
}
|
|
1068
|
+
export interface SetArchiveStatusRequest {
|
|
1069
|
+
/** The order id */
|
|
1070
|
+
id?: string;
|
|
1071
|
+
/** New archive status */
|
|
1072
|
+
archived?: boolean;
|
|
1073
|
+
}
|
|
1074
|
+
export interface SetArchiveStatusResponse {
|
|
1075
|
+
}
|