@ecomiq/core 0.1.0 → 0.1.1
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/dist/index.d.cts +319 -319
- package/dist/index.d.ts +319 -319
- package/dist/models/collections.d.cts +4 -4
- package/dist/models/collections.d.ts +4 -4
- package/dist/models/geo.d.cts +14 -14
- package/dist/models/geo.d.ts +14 -14
- package/dist/models/products.d.cts +130 -130
- package/dist/models/products.d.ts +130 -130
- package/dist/models/search.d.cts +4 -4
- package/dist/models/search.d.ts +4 -4
- package/dist/models/settings.d.cts +512 -512
- package/dist/models/settings.d.ts +512 -512
- package/dist/models/storefront-cart.d.cts +80 -80
- package/dist/models/storefront-cart.d.ts +80 -80
- package/dist/models/storefront-checkout.d.cts +384 -384
- package/dist/models/storefront-checkout.d.ts +384 -384
- package/dist/models/storefront-reviews.d.cts +8 -8
- package/dist/models/storefront-reviews.d.ts +8 -8
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -24,9 +24,9 @@ declare function getProducts(api: Api, params?: ProductsParamsInput): Promise<{
|
|
|
24
24
|
totalPages: number;
|
|
25
25
|
products: {
|
|
26
26
|
status: string;
|
|
27
|
+
name: string;
|
|
27
28
|
id: string;
|
|
28
29
|
slug: string;
|
|
29
|
-
name: string;
|
|
30
30
|
imageUrl: string;
|
|
31
31
|
productType: string;
|
|
32
32
|
price: number;
|
|
@@ -41,27 +41,27 @@ declare function getProducts(api: Api, params?: ProductsParamsInput): Promise<{
|
|
|
41
41
|
tags: string[];
|
|
42
42
|
}[];
|
|
43
43
|
filters: {
|
|
44
|
-
type: "list" | "price_range";
|
|
45
44
|
values: {
|
|
46
45
|
value: string;
|
|
47
|
-
count: number;
|
|
48
46
|
label: string | null;
|
|
47
|
+
count: number;
|
|
49
48
|
selected: boolean;
|
|
50
49
|
}[];
|
|
51
|
-
|
|
52
|
-
label: string;
|
|
50
|
+
type: "list" | "price_range";
|
|
53
51
|
min: number | null;
|
|
54
52
|
max: number | null;
|
|
53
|
+
id: string;
|
|
54
|
+
label: string;
|
|
55
55
|
selectedMin: number | null;
|
|
56
56
|
selectedMax: number | null;
|
|
57
57
|
}[];
|
|
58
58
|
}>;
|
|
59
59
|
declare function getProductBySlug(api: Api, slug: string, params?: ProductDetailParams): Promise<{
|
|
60
60
|
status: string;
|
|
61
|
-
id: string;
|
|
62
|
-
slug: string;
|
|
63
61
|
name: string;
|
|
62
|
+
id: string;
|
|
64
63
|
description: string;
|
|
64
|
+
slug: string;
|
|
65
65
|
imageUrl: string;
|
|
66
66
|
productType: string;
|
|
67
67
|
price: number;
|
|
@@ -78,17 +78,17 @@ declare function getProductBySlug(api: Api, slug: string, params?: ProductDetail
|
|
|
78
78
|
}[];
|
|
79
79
|
categoryId: string | null;
|
|
80
80
|
specifications: {
|
|
81
|
-
key: string;
|
|
82
81
|
value: string;
|
|
83
82
|
name: string;
|
|
83
|
+
key: string;
|
|
84
84
|
}[];
|
|
85
85
|
variants: {
|
|
86
|
+
status: string;
|
|
86
87
|
options: {
|
|
87
|
-
key: string;
|
|
88
88
|
value: string;
|
|
89
89
|
name: string;
|
|
90
|
+
key: string;
|
|
90
91
|
}[];
|
|
91
|
-
status: string;
|
|
92
92
|
id: string | null;
|
|
93
93
|
price: number;
|
|
94
94
|
compareAtPrice: number | null;
|
|
@@ -114,10 +114,10 @@ declare function getProductBySlug(api: Api, slug: string, params?: ProductDetail
|
|
|
114
114
|
requiresShipping: boolean;
|
|
115
115
|
}[];
|
|
116
116
|
sizeGuide: {
|
|
117
|
-
id: string;
|
|
118
|
-
slug: string;
|
|
119
117
|
name: string;
|
|
118
|
+
id: string;
|
|
120
119
|
description: string | null;
|
|
120
|
+
slug: string;
|
|
121
121
|
imageUrl: string | null;
|
|
122
122
|
gender: string;
|
|
123
123
|
measurementType: string;
|
|
@@ -128,12 +128,12 @@ declare function getProductBySlug(api: Api, slug: string, params?: ProductDetail
|
|
|
128
128
|
order: number;
|
|
129
129
|
sizeKey: string;
|
|
130
130
|
measurements: {
|
|
131
|
-
key: string;
|
|
132
131
|
value: number | null;
|
|
133
132
|
name: string;
|
|
134
|
-
description: string | null;
|
|
135
133
|
min: number | null;
|
|
136
134
|
max: number | null;
|
|
135
|
+
description: string | null;
|
|
136
|
+
key: string;
|
|
137
137
|
}[];
|
|
138
138
|
}[];
|
|
139
139
|
} | null;
|
|
@@ -148,9 +148,9 @@ declare function getProductBySlug(api: Api, slug: string, params?: ProductDetail
|
|
|
148
148
|
}>;
|
|
149
149
|
declare function getRelatedProducts(api: Api, params: RelatedProductsParams): Promise<{
|
|
150
150
|
status: string;
|
|
151
|
+
name: string;
|
|
151
152
|
id: string;
|
|
152
153
|
slug: string;
|
|
153
|
-
name: string;
|
|
154
154
|
imageUrl: string;
|
|
155
155
|
productType: string;
|
|
156
156
|
price: number;
|
|
@@ -166,9 +166,9 @@ declare function getRelatedProducts(api: Api, params: RelatedProductsParams): Pr
|
|
|
166
166
|
}[]>;
|
|
167
167
|
|
|
168
168
|
declare function autocompleteProducts(api: Api, params: ProductAutocompleteParams): Promise<{
|
|
169
|
+
name: string;
|
|
169
170
|
id: string;
|
|
170
171
|
slug: string;
|
|
171
|
-
name: string;
|
|
172
172
|
imageUrl: string;
|
|
173
173
|
}[]>;
|
|
174
174
|
|
|
@@ -176,95 +176,95 @@ declare function listProductReviews(api: Api, params: ListProductReviewsParams):
|
|
|
176
176
|
totalCount: number | null;
|
|
177
177
|
data: {
|
|
178
178
|
id: string;
|
|
179
|
+
createdOn: string;
|
|
179
180
|
productId: string;
|
|
180
181
|
isVerifiedPurchase: boolean;
|
|
181
182
|
rating: number;
|
|
182
183
|
title: string | null;
|
|
183
184
|
content: string;
|
|
184
185
|
reviewerName: string | null;
|
|
185
|
-
createdOn: string;
|
|
186
186
|
}[];
|
|
187
187
|
hasNextPage: boolean;
|
|
188
188
|
nextCursor: string | null;
|
|
189
189
|
}>;
|
|
190
190
|
declare function createProductReview(api: Api, params: CreateProductReviewParams): Promise<{
|
|
191
191
|
id: string;
|
|
192
|
+
createdOn: string;
|
|
192
193
|
productId: string;
|
|
193
194
|
isVerifiedPurchase: boolean;
|
|
194
195
|
rating: number;
|
|
195
196
|
title: string | null;
|
|
196
197
|
content: string;
|
|
197
198
|
reviewerName: string | null;
|
|
198
|
-
createdOn: string;
|
|
199
199
|
}>;
|
|
200
200
|
|
|
201
201
|
declare function createCart(api: Api, params: CreateCartParams): Promise<{
|
|
202
202
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
203
|
+
email: string | null;
|
|
203
204
|
id: string;
|
|
204
205
|
phone: string | null;
|
|
206
|
+
items: {
|
|
207
|
+
id: string;
|
|
208
|
+
productId: number;
|
|
209
|
+
quantity: number;
|
|
210
|
+
variantId: number;
|
|
211
|
+
unitPrice: number;
|
|
212
|
+
bundleItems: {
|
|
213
|
+
imageUrl: string | null;
|
|
214
|
+
brand: string | null;
|
|
215
|
+
productId: number;
|
|
216
|
+
sku: string | null;
|
|
217
|
+
quantity: number;
|
|
218
|
+
variantId: number;
|
|
219
|
+
productName: string;
|
|
220
|
+
variantName: string | null;
|
|
221
|
+
}[];
|
|
222
|
+
title: string;
|
|
223
|
+
variantLabel: string | null;
|
|
224
|
+
productHandle: string | null;
|
|
225
|
+
thumbnail: string | null;
|
|
226
|
+
variantSku: string | null;
|
|
227
|
+
compareAtUnitPrice: number | null;
|
|
228
|
+
}[];
|
|
205
229
|
cartNumber: string;
|
|
206
|
-
email: string | null;
|
|
207
230
|
firstName: string | null;
|
|
208
231
|
lastName: string | null;
|
|
209
232
|
currencyCode: string;
|
|
210
233
|
completedAt: string | null;
|
|
211
234
|
shippingAddress: {
|
|
212
235
|
name: string | null;
|
|
236
|
+
company: string | null;
|
|
237
|
+
phone: string | null;
|
|
213
238
|
address1: string;
|
|
214
239
|
city: string;
|
|
215
240
|
countryCode: string;
|
|
216
|
-
company: string | null;
|
|
217
241
|
address2: string | null;
|
|
218
242
|
province: string | null;
|
|
219
243
|
postalCode: string | null;
|
|
220
244
|
district: string | null;
|
|
221
|
-
phone: string | null;
|
|
222
245
|
latitude: number | null;
|
|
223
246
|
longitude: number | null;
|
|
224
247
|
} | null;
|
|
225
248
|
billingAddress: {
|
|
226
249
|
name: string | null;
|
|
250
|
+
company: string | null;
|
|
251
|
+
phone: string | null;
|
|
227
252
|
address1: string;
|
|
228
253
|
city: string;
|
|
229
254
|
countryCode: string;
|
|
230
|
-
company: string | null;
|
|
231
255
|
address2: string | null;
|
|
232
256
|
province: string | null;
|
|
233
257
|
postalCode: string | null;
|
|
234
258
|
district: string | null;
|
|
235
|
-
phone: string | null;
|
|
236
259
|
latitude: number | null;
|
|
237
260
|
longitude: number | null;
|
|
238
261
|
} | null;
|
|
239
262
|
promotionCodes: string[];
|
|
240
|
-
items: {
|
|
241
|
-
id: string;
|
|
242
|
-
productId: number;
|
|
243
|
-
quantity: number;
|
|
244
|
-
variantId: number;
|
|
245
|
-
unitPrice: number;
|
|
246
|
-
bundleItems: {
|
|
247
|
-
imageUrl: string | null;
|
|
248
|
-
brand: string | null;
|
|
249
|
-
productId: number;
|
|
250
|
-
sku: string | null;
|
|
251
|
-
quantity: number;
|
|
252
|
-
variantId: number;
|
|
253
|
-
productName: string;
|
|
254
|
-
variantName: string | null;
|
|
255
|
-
}[];
|
|
256
|
-
title: string;
|
|
257
|
-
variantLabel: string | null;
|
|
258
|
-
productHandle: string | null;
|
|
259
|
-
thumbnail: string | null;
|
|
260
|
-
variantSku: string | null;
|
|
261
|
-
compareAtUnitPrice: number | null;
|
|
262
|
-
}[];
|
|
263
263
|
shippingMethods: {
|
|
264
|
-
id: string;
|
|
265
264
|
name: string;
|
|
266
|
-
|
|
265
|
+
id: string;
|
|
267
266
|
sellerId: string | null;
|
|
267
|
+
description: string | null;
|
|
268
268
|
locationId: string | null;
|
|
269
269
|
shippingMethodId: string | null;
|
|
270
270
|
rateId: string | null;
|
|
@@ -288,71 +288,71 @@ declare function createCart(api: Api, params: CreateCartParams): Promise<{
|
|
|
288
288
|
}>;
|
|
289
289
|
declare function getCart(api: Api, params: GetCartParams): Promise<{
|
|
290
290
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
291
|
+
email: string | null;
|
|
291
292
|
id: string;
|
|
292
293
|
phone: string | null;
|
|
294
|
+
items: {
|
|
295
|
+
id: string;
|
|
296
|
+
productId: number;
|
|
297
|
+
quantity: number;
|
|
298
|
+
variantId: number;
|
|
299
|
+
unitPrice: number;
|
|
300
|
+
bundleItems: {
|
|
301
|
+
imageUrl: string | null;
|
|
302
|
+
brand: string | null;
|
|
303
|
+
productId: number;
|
|
304
|
+
sku: string | null;
|
|
305
|
+
quantity: number;
|
|
306
|
+
variantId: number;
|
|
307
|
+
productName: string;
|
|
308
|
+
variantName: string | null;
|
|
309
|
+
}[];
|
|
310
|
+
title: string;
|
|
311
|
+
variantLabel: string | null;
|
|
312
|
+
productHandle: string | null;
|
|
313
|
+
thumbnail: string | null;
|
|
314
|
+
variantSku: string | null;
|
|
315
|
+
compareAtUnitPrice: number | null;
|
|
316
|
+
}[];
|
|
293
317
|
cartNumber: string;
|
|
294
|
-
email: string | null;
|
|
295
318
|
firstName: string | null;
|
|
296
319
|
lastName: string | null;
|
|
297
320
|
currencyCode: string;
|
|
298
321
|
completedAt: string | null;
|
|
299
322
|
shippingAddress: {
|
|
300
323
|
name: string | null;
|
|
324
|
+
company: string | null;
|
|
325
|
+
phone: string | null;
|
|
301
326
|
address1: string;
|
|
302
327
|
city: string;
|
|
303
328
|
countryCode: string;
|
|
304
|
-
company: string | null;
|
|
305
329
|
address2: string | null;
|
|
306
330
|
province: string | null;
|
|
307
331
|
postalCode: string | null;
|
|
308
332
|
district: string | null;
|
|
309
|
-
phone: string | null;
|
|
310
333
|
latitude: number | null;
|
|
311
334
|
longitude: number | null;
|
|
312
335
|
} | null;
|
|
313
336
|
billingAddress: {
|
|
314
337
|
name: string | null;
|
|
338
|
+
company: string | null;
|
|
339
|
+
phone: string | null;
|
|
315
340
|
address1: string;
|
|
316
341
|
city: string;
|
|
317
342
|
countryCode: string;
|
|
318
|
-
company: string | null;
|
|
319
343
|
address2: string | null;
|
|
320
344
|
province: string | null;
|
|
321
345
|
postalCode: string | null;
|
|
322
346
|
district: string | null;
|
|
323
|
-
phone: string | null;
|
|
324
347
|
latitude: number | null;
|
|
325
348
|
longitude: number | null;
|
|
326
349
|
} | null;
|
|
327
350
|
promotionCodes: string[];
|
|
328
|
-
items: {
|
|
329
|
-
id: string;
|
|
330
|
-
productId: number;
|
|
331
|
-
quantity: number;
|
|
332
|
-
variantId: number;
|
|
333
|
-
unitPrice: number;
|
|
334
|
-
bundleItems: {
|
|
335
|
-
imageUrl: string | null;
|
|
336
|
-
brand: string | null;
|
|
337
|
-
productId: number;
|
|
338
|
-
sku: string | null;
|
|
339
|
-
quantity: number;
|
|
340
|
-
variantId: number;
|
|
341
|
-
productName: string;
|
|
342
|
-
variantName: string | null;
|
|
343
|
-
}[];
|
|
344
|
-
title: string;
|
|
345
|
-
variantLabel: string | null;
|
|
346
|
-
productHandle: string | null;
|
|
347
|
-
thumbnail: string | null;
|
|
348
|
-
variantSku: string | null;
|
|
349
|
-
compareAtUnitPrice: number | null;
|
|
350
|
-
}[];
|
|
351
351
|
shippingMethods: {
|
|
352
|
-
id: string;
|
|
353
352
|
name: string;
|
|
354
|
-
|
|
353
|
+
id: string;
|
|
355
354
|
sellerId: string | null;
|
|
355
|
+
description: string | null;
|
|
356
356
|
locationId: string | null;
|
|
357
357
|
shippingMethodId: string | null;
|
|
358
358
|
rateId: string | null;
|
|
@@ -376,71 +376,71 @@ declare function getCart(api: Api, params: GetCartParams): Promise<{
|
|
|
376
376
|
}>;
|
|
377
377
|
declare function addCartItem(api: Api, params: AddCartItemParams): Promise<{
|
|
378
378
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
379
|
+
email: string | null;
|
|
379
380
|
id: string;
|
|
380
381
|
phone: string | null;
|
|
382
|
+
items: {
|
|
383
|
+
id: string;
|
|
384
|
+
productId: number;
|
|
385
|
+
quantity: number;
|
|
386
|
+
variantId: number;
|
|
387
|
+
unitPrice: number;
|
|
388
|
+
bundleItems: {
|
|
389
|
+
imageUrl: string | null;
|
|
390
|
+
brand: string | null;
|
|
391
|
+
productId: number;
|
|
392
|
+
sku: string | null;
|
|
393
|
+
quantity: number;
|
|
394
|
+
variantId: number;
|
|
395
|
+
productName: string;
|
|
396
|
+
variantName: string | null;
|
|
397
|
+
}[];
|
|
398
|
+
title: string;
|
|
399
|
+
variantLabel: string | null;
|
|
400
|
+
productHandle: string | null;
|
|
401
|
+
thumbnail: string | null;
|
|
402
|
+
variantSku: string | null;
|
|
403
|
+
compareAtUnitPrice: number | null;
|
|
404
|
+
}[];
|
|
381
405
|
cartNumber: string;
|
|
382
|
-
email: string | null;
|
|
383
406
|
firstName: string | null;
|
|
384
407
|
lastName: string | null;
|
|
385
408
|
currencyCode: string;
|
|
386
409
|
completedAt: string | null;
|
|
387
410
|
shippingAddress: {
|
|
388
411
|
name: string | null;
|
|
412
|
+
company: string | null;
|
|
413
|
+
phone: string | null;
|
|
389
414
|
address1: string;
|
|
390
415
|
city: string;
|
|
391
416
|
countryCode: string;
|
|
392
|
-
company: string | null;
|
|
393
417
|
address2: string | null;
|
|
394
418
|
province: string | null;
|
|
395
419
|
postalCode: string | null;
|
|
396
420
|
district: string | null;
|
|
397
|
-
phone: string | null;
|
|
398
421
|
latitude: number | null;
|
|
399
422
|
longitude: number | null;
|
|
400
423
|
} | null;
|
|
401
424
|
billingAddress: {
|
|
402
425
|
name: string | null;
|
|
426
|
+
company: string | null;
|
|
427
|
+
phone: string | null;
|
|
403
428
|
address1: string;
|
|
404
429
|
city: string;
|
|
405
430
|
countryCode: string;
|
|
406
|
-
company: string | null;
|
|
407
431
|
address2: string | null;
|
|
408
432
|
province: string | null;
|
|
409
433
|
postalCode: string | null;
|
|
410
434
|
district: string | null;
|
|
411
|
-
phone: string | null;
|
|
412
435
|
latitude: number | null;
|
|
413
436
|
longitude: number | null;
|
|
414
437
|
} | null;
|
|
415
438
|
promotionCodes: string[];
|
|
416
|
-
items: {
|
|
417
|
-
id: string;
|
|
418
|
-
productId: number;
|
|
419
|
-
quantity: number;
|
|
420
|
-
variantId: number;
|
|
421
|
-
unitPrice: number;
|
|
422
|
-
bundleItems: {
|
|
423
|
-
imageUrl: string | null;
|
|
424
|
-
brand: string | null;
|
|
425
|
-
productId: number;
|
|
426
|
-
sku: string | null;
|
|
427
|
-
quantity: number;
|
|
428
|
-
variantId: number;
|
|
429
|
-
productName: string;
|
|
430
|
-
variantName: string | null;
|
|
431
|
-
}[];
|
|
432
|
-
title: string;
|
|
433
|
-
variantLabel: string | null;
|
|
434
|
-
productHandle: string | null;
|
|
435
|
-
thumbnail: string | null;
|
|
436
|
-
variantSku: string | null;
|
|
437
|
-
compareAtUnitPrice: number | null;
|
|
438
|
-
}[];
|
|
439
439
|
shippingMethods: {
|
|
440
|
-
id: string;
|
|
441
440
|
name: string;
|
|
442
|
-
|
|
441
|
+
id: string;
|
|
443
442
|
sellerId: string | null;
|
|
443
|
+
description: string | null;
|
|
444
444
|
locationId: string | null;
|
|
445
445
|
shippingMethodId: string | null;
|
|
446
446
|
rateId: string | null;
|
|
@@ -464,71 +464,71 @@ declare function addCartItem(api: Api, params: AddCartItemParams): Promise<{
|
|
|
464
464
|
}>;
|
|
465
465
|
declare function updateCartItemQuantity(api: Api, params: UpdateCartItemQuantityParams): Promise<{
|
|
466
466
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
467
|
+
email: string | null;
|
|
467
468
|
id: string;
|
|
468
469
|
phone: string | null;
|
|
470
|
+
items: {
|
|
471
|
+
id: string;
|
|
472
|
+
productId: number;
|
|
473
|
+
quantity: number;
|
|
474
|
+
variantId: number;
|
|
475
|
+
unitPrice: number;
|
|
476
|
+
bundleItems: {
|
|
477
|
+
imageUrl: string | null;
|
|
478
|
+
brand: string | null;
|
|
479
|
+
productId: number;
|
|
480
|
+
sku: string | null;
|
|
481
|
+
quantity: number;
|
|
482
|
+
variantId: number;
|
|
483
|
+
productName: string;
|
|
484
|
+
variantName: string | null;
|
|
485
|
+
}[];
|
|
486
|
+
title: string;
|
|
487
|
+
variantLabel: string | null;
|
|
488
|
+
productHandle: string | null;
|
|
489
|
+
thumbnail: string | null;
|
|
490
|
+
variantSku: string | null;
|
|
491
|
+
compareAtUnitPrice: number | null;
|
|
492
|
+
}[];
|
|
469
493
|
cartNumber: string;
|
|
470
|
-
email: string | null;
|
|
471
494
|
firstName: string | null;
|
|
472
495
|
lastName: string | null;
|
|
473
496
|
currencyCode: string;
|
|
474
497
|
completedAt: string | null;
|
|
475
498
|
shippingAddress: {
|
|
476
499
|
name: string | null;
|
|
500
|
+
company: string | null;
|
|
501
|
+
phone: string | null;
|
|
477
502
|
address1: string;
|
|
478
503
|
city: string;
|
|
479
504
|
countryCode: string;
|
|
480
|
-
company: string | null;
|
|
481
505
|
address2: string | null;
|
|
482
506
|
province: string | null;
|
|
483
507
|
postalCode: string | null;
|
|
484
508
|
district: string | null;
|
|
485
|
-
phone: string | null;
|
|
486
509
|
latitude: number | null;
|
|
487
510
|
longitude: number | null;
|
|
488
511
|
} | null;
|
|
489
512
|
billingAddress: {
|
|
490
513
|
name: string | null;
|
|
514
|
+
company: string | null;
|
|
515
|
+
phone: string | null;
|
|
491
516
|
address1: string;
|
|
492
517
|
city: string;
|
|
493
518
|
countryCode: string;
|
|
494
|
-
company: string | null;
|
|
495
519
|
address2: string | null;
|
|
496
520
|
province: string | null;
|
|
497
521
|
postalCode: string | null;
|
|
498
522
|
district: string | null;
|
|
499
|
-
phone: string | null;
|
|
500
523
|
latitude: number | null;
|
|
501
524
|
longitude: number | null;
|
|
502
525
|
} | null;
|
|
503
526
|
promotionCodes: string[];
|
|
504
|
-
|
|
527
|
+
shippingMethods: {
|
|
528
|
+
name: string;
|
|
505
529
|
id: string;
|
|
506
|
-
productId: number;
|
|
507
|
-
quantity: number;
|
|
508
|
-
variantId: number;
|
|
509
|
-
unitPrice: number;
|
|
510
|
-
bundleItems: {
|
|
511
|
-
imageUrl: string | null;
|
|
512
|
-
brand: string | null;
|
|
513
|
-
productId: number;
|
|
514
|
-
sku: string | null;
|
|
515
|
-
quantity: number;
|
|
516
|
-
variantId: number;
|
|
517
|
-
productName: string;
|
|
518
|
-
variantName: string | null;
|
|
519
|
-
}[];
|
|
520
|
-
title: string;
|
|
521
|
-
variantLabel: string | null;
|
|
522
|
-
productHandle: string | null;
|
|
523
|
-
thumbnail: string | null;
|
|
524
|
-
variantSku: string | null;
|
|
525
|
-
compareAtUnitPrice: number | null;
|
|
526
|
-
}[];
|
|
527
|
-
shippingMethods: {
|
|
528
|
-
id: string;
|
|
529
|
-
name: string;
|
|
530
|
-
description: string | null;
|
|
531
530
|
sellerId: string | null;
|
|
531
|
+
description: string | null;
|
|
532
532
|
locationId: string | null;
|
|
533
533
|
shippingMethodId: string | null;
|
|
534
534
|
rateId: string | null;
|
|
@@ -552,71 +552,71 @@ declare function updateCartItemQuantity(api: Api, params: UpdateCartItemQuantity
|
|
|
552
552
|
}>;
|
|
553
553
|
declare function removeCartItem(api: Api, params: RemoveCartItemParams): Promise<{
|
|
554
554
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
555
|
+
email: string | null;
|
|
555
556
|
id: string;
|
|
556
557
|
phone: string | null;
|
|
558
|
+
items: {
|
|
559
|
+
id: string;
|
|
560
|
+
productId: number;
|
|
561
|
+
quantity: number;
|
|
562
|
+
variantId: number;
|
|
563
|
+
unitPrice: number;
|
|
564
|
+
bundleItems: {
|
|
565
|
+
imageUrl: string | null;
|
|
566
|
+
brand: string | null;
|
|
567
|
+
productId: number;
|
|
568
|
+
sku: string | null;
|
|
569
|
+
quantity: number;
|
|
570
|
+
variantId: number;
|
|
571
|
+
productName: string;
|
|
572
|
+
variantName: string | null;
|
|
573
|
+
}[];
|
|
574
|
+
title: string;
|
|
575
|
+
variantLabel: string | null;
|
|
576
|
+
productHandle: string | null;
|
|
577
|
+
thumbnail: string | null;
|
|
578
|
+
variantSku: string | null;
|
|
579
|
+
compareAtUnitPrice: number | null;
|
|
580
|
+
}[];
|
|
557
581
|
cartNumber: string;
|
|
558
|
-
email: string | null;
|
|
559
582
|
firstName: string | null;
|
|
560
583
|
lastName: string | null;
|
|
561
584
|
currencyCode: string;
|
|
562
585
|
completedAt: string | null;
|
|
563
586
|
shippingAddress: {
|
|
564
587
|
name: string | null;
|
|
588
|
+
company: string | null;
|
|
589
|
+
phone: string | null;
|
|
565
590
|
address1: string;
|
|
566
591
|
city: string;
|
|
567
592
|
countryCode: string;
|
|
568
|
-
company: string | null;
|
|
569
593
|
address2: string | null;
|
|
570
594
|
province: string | null;
|
|
571
595
|
postalCode: string | null;
|
|
572
596
|
district: string | null;
|
|
573
|
-
phone: string | null;
|
|
574
597
|
latitude: number | null;
|
|
575
598
|
longitude: number | null;
|
|
576
599
|
} | null;
|
|
577
600
|
billingAddress: {
|
|
578
601
|
name: string | null;
|
|
602
|
+
company: string | null;
|
|
603
|
+
phone: string | null;
|
|
579
604
|
address1: string;
|
|
580
605
|
city: string;
|
|
581
606
|
countryCode: string;
|
|
582
|
-
company: string | null;
|
|
583
607
|
address2: string | null;
|
|
584
608
|
province: string | null;
|
|
585
609
|
postalCode: string | null;
|
|
586
610
|
district: string | null;
|
|
587
|
-
phone: string | null;
|
|
588
611
|
latitude: number | null;
|
|
589
612
|
longitude: number | null;
|
|
590
613
|
} | null;
|
|
591
614
|
promotionCodes: string[];
|
|
592
|
-
items: {
|
|
593
|
-
id: string;
|
|
594
|
-
productId: number;
|
|
595
|
-
quantity: number;
|
|
596
|
-
variantId: number;
|
|
597
|
-
unitPrice: number;
|
|
598
|
-
bundleItems: {
|
|
599
|
-
imageUrl: string | null;
|
|
600
|
-
brand: string | null;
|
|
601
|
-
productId: number;
|
|
602
|
-
sku: string | null;
|
|
603
|
-
quantity: number;
|
|
604
|
-
variantId: number;
|
|
605
|
-
productName: string;
|
|
606
|
-
variantName: string | null;
|
|
607
|
-
}[];
|
|
608
|
-
title: string;
|
|
609
|
-
variantLabel: string | null;
|
|
610
|
-
productHandle: string | null;
|
|
611
|
-
thumbnail: string | null;
|
|
612
|
-
variantSku: string | null;
|
|
613
|
-
compareAtUnitPrice: number | null;
|
|
614
|
-
}[];
|
|
615
615
|
shippingMethods: {
|
|
616
|
-
id: string;
|
|
617
616
|
name: string;
|
|
618
|
-
|
|
617
|
+
id: string;
|
|
619
618
|
sellerId: string | null;
|
|
619
|
+
description: string | null;
|
|
620
620
|
locationId: string | null;
|
|
621
621
|
shippingMethodId: string | null;
|
|
622
622
|
rateId: string | null;
|
|
@@ -646,71 +646,71 @@ declare function getShippingOptions(api: Api, params: GetShippingOptionsParams):
|
|
|
646
646
|
/** PUT /v1/carts/{id}/shipping-method */
|
|
647
647
|
declare function putCartShippingMethod(api: Api, params: PutShippingMethodParams): Promise<{
|
|
648
648
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
649
|
+
email: string | null;
|
|
649
650
|
id: string;
|
|
650
651
|
phone: string | null;
|
|
652
|
+
items: {
|
|
653
|
+
id: string;
|
|
654
|
+
productId: number;
|
|
655
|
+
quantity: number;
|
|
656
|
+
variantId: number;
|
|
657
|
+
unitPrice: number;
|
|
658
|
+
bundleItems: {
|
|
659
|
+
imageUrl: string | null;
|
|
660
|
+
brand: string | null;
|
|
661
|
+
productId: number;
|
|
662
|
+
sku: string | null;
|
|
663
|
+
quantity: number;
|
|
664
|
+
variantId: number;
|
|
665
|
+
productName: string;
|
|
666
|
+
variantName: string | null;
|
|
667
|
+
}[];
|
|
668
|
+
title: string;
|
|
669
|
+
variantLabel: string | null;
|
|
670
|
+
productHandle: string | null;
|
|
671
|
+
thumbnail: string | null;
|
|
672
|
+
variantSku: string | null;
|
|
673
|
+
compareAtUnitPrice: number | null;
|
|
674
|
+
}[];
|
|
651
675
|
cartNumber: string;
|
|
652
|
-
email: string | null;
|
|
653
676
|
firstName: string | null;
|
|
654
677
|
lastName: string | null;
|
|
655
678
|
currencyCode: string;
|
|
656
679
|
completedAt: string | null;
|
|
657
680
|
shippingAddress: {
|
|
658
681
|
name: string | null;
|
|
682
|
+
company: string | null;
|
|
683
|
+
phone: string | null;
|
|
659
684
|
address1: string;
|
|
660
685
|
city: string;
|
|
661
686
|
countryCode: string;
|
|
662
|
-
company: string | null;
|
|
663
687
|
address2: string | null;
|
|
664
688
|
province: string | null;
|
|
665
689
|
postalCode: string | null;
|
|
666
690
|
district: string | null;
|
|
667
|
-
phone: string | null;
|
|
668
691
|
latitude: number | null;
|
|
669
692
|
longitude: number | null;
|
|
670
693
|
} | null;
|
|
671
694
|
billingAddress: {
|
|
672
695
|
name: string | null;
|
|
696
|
+
company: string | null;
|
|
697
|
+
phone: string | null;
|
|
673
698
|
address1: string;
|
|
674
699
|
city: string;
|
|
675
700
|
countryCode: string;
|
|
676
|
-
company: string | null;
|
|
677
701
|
address2: string | null;
|
|
678
702
|
province: string | null;
|
|
679
703
|
postalCode: string | null;
|
|
680
704
|
district: string | null;
|
|
681
|
-
phone: string | null;
|
|
682
705
|
latitude: number | null;
|
|
683
706
|
longitude: number | null;
|
|
684
707
|
} | null;
|
|
685
708
|
promotionCodes: string[];
|
|
686
|
-
items: {
|
|
687
|
-
id: string;
|
|
688
|
-
productId: number;
|
|
689
|
-
quantity: number;
|
|
690
|
-
variantId: number;
|
|
691
|
-
unitPrice: number;
|
|
692
|
-
bundleItems: {
|
|
693
|
-
imageUrl: string | null;
|
|
694
|
-
brand: string | null;
|
|
695
|
-
productId: number;
|
|
696
|
-
sku: string | null;
|
|
697
|
-
quantity: number;
|
|
698
|
-
variantId: number;
|
|
699
|
-
productName: string;
|
|
700
|
-
variantName: string | null;
|
|
701
|
-
}[];
|
|
702
|
-
title: string;
|
|
703
|
-
variantLabel: string | null;
|
|
704
|
-
productHandle: string | null;
|
|
705
|
-
thumbnail: string | null;
|
|
706
|
-
variantSku: string | null;
|
|
707
|
-
compareAtUnitPrice: number | null;
|
|
708
|
-
}[];
|
|
709
709
|
shippingMethods: {
|
|
710
|
-
id: string;
|
|
711
710
|
name: string;
|
|
712
|
-
|
|
711
|
+
id: string;
|
|
713
712
|
sellerId: string | null;
|
|
713
|
+
description: string | null;
|
|
714
714
|
locationId: string | null;
|
|
715
715
|
shippingMethodId: string | null;
|
|
716
716
|
rateId: string | null;
|
|
@@ -735,71 +735,71 @@ declare function putCartShippingMethod(api: Api, params: PutShippingMethodParams
|
|
|
735
735
|
/** PATCH /v1/carts/{id}/buyer */
|
|
736
736
|
declare function patchCartBuyer(api: Api, params: CartBuyerParams): Promise<{
|
|
737
737
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
738
|
+
email: string | null;
|
|
738
739
|
id: string;
|
|
739
740
|
phone: string | null;
|
|
741
|
+
items: {
|
|
742
|
+
id: string;
|
|
743
|
+
productId: number;
|
|
744
|
+
quantity: number;
|
|
745
|
+
variantId: number;
|
|
746
|
+
unitPrice: number;
|
|
747
|
+
bundleItems: {
|
|
748
|
+
imageUrl: string | null;
|
|
749
|
+
brand: string | null;
|
|
750
|
+
productId: number;
|
|
751
|
+
sku: string | null;
|
|
752
|
+
quantity: number;
|
|
753
|
+
variantId: number;
|
|
754
|
+
productName: string;
|
|
755
|
+
variantName: string | null;
|
|
756
|
+
}[];
|
|
757
|
+
title: string;
|
|
758
|
+
variantLabel: string | null;
|
|
759
|
+
productHandle: string | null;
|
|
760
|
+
thumbnail: string | null;
|
|
761
|
+
variantSku: string | null;
|
|
762
|
+
compareAtUnitPrice: number | null;
|
|
763
|
+
}[];
|
|
740
764
|
cartNumber: string;
|
|
741
|
-
email: string | null;
|
|
742
765
|
firstName: string | null;
|
|
743
766
|
lastName: string | null;
|
|
744
767
|
currencyCode: string;
|
|
745
768
|
completedAt: string | null;
|
|
746
769
|
shippingAddress: {
|
|
747
770
|
name: string | null;
|
|
771
|
+
company: string | null;
|
|
772
|
+
phone: string | null;
|
|
748
773
|
address1: string;
|
|
749
774
|
city: string;
|
|
750
775
|
countryCode: string;
|
|
751
|
-
company: string | null;
|
|
752
776
|
address2: string | null;
|
|
753
777
|
province: string | null;
|
|
754
778
|
postalCode: string | null;
|
|
755
779
|
district: string | null;
|
|
756
|
-
phone: string | null;
|
|
757
780
|
latitude: number | null;
|
|
758
781
|
longitude: number | null;
|
|
759
782
|
} | null;
|
|
760
783
|
billingAddress: {
|
|
761
784
|
name: string | null;
|
|
785
|
+
company: string | null;
|
|
786
|
+
phone: string | null;
|
|
762
787
|
address1: string;
|
|
763
788
|
city: string;
|
|
764
789
|
countryCode: string;
|
|
765
|
-
company: string | null;
|
|
766
790
|
address2: string | null;
|
|
767
791
|
province: string | null;
|
|
768
792
|
postalCode: string | null;
|
|
769
793
|
district: string | null;
|
|
770
|
-
phone: string | null;
|
|
771
794
|
latitude: number | null;
|
|
772
795
|
longitude: number | null;
|
|
773
796
|
} | null;
|
|
774
797
|
promotionCodes: string[];
|
|
775
|
-
items: {
|
|
776
|
-
id: string;
|
|
777
|
-
productId: number;
|
|
778
|
-
quantity: number;
|
|
779
|
-
variantId: number;
|
|
780
|
-
unitPrice: number;
|
|
781
|
-
bundleItems: {
|
|
782
|
-
imageUrl: string | null;
|
|
783
|
-
brand: string | null;
|
|
784
|
-
productId: number;
|
|
785
|
-
sku: string | null;
|
|
786
|
-
quantity: number;
|
|
787
|
-
variantId: number;
|
|
788
|
-
productName: string;
|
|
789
|
-
variantName: string | null;
|
|
790
|
-
}[];
|
|
791
|
-
title: string;
|
|
792
|
-
variantLabel: string | null;
|
|
793
|
-
productHandle: string | null;
|
|
794
|
-
thumbnail: string | null;
|
|
795
|
-
variantSku: string | null;
|
|
796
|
-
compareAtUnitPrice: number | null;
|
|
797
|
-
}[];
|
|
798
798
|
shippingMethods: {
|
|
799
|
-
id: string;
|
|
800
799
|
name: string;
|
|
801
|
-
|
|
800
|
+
id: string;
|
|
802
801
|
sellerId: string | null;
|
|
802
|
+
description: string | null;
|
|
803
803
|
locationId: string | null;
|
|
804
804
|
shippingMethodId: string | null;
|
|
805
805
|
rateId: string | null;
|
|
@@ -824,71 +824,71 @@ declare function patchCartBuyer(api: Api, params: CartBuyerParams): Promise<{
|
|
|
824
824
|
/** PATCH /v1/carts/{id}/addresses */
|
|
825
825
|
declare function patchCartAddresses(api: Api, params: CartAddressesParams): Promise<{
|
|
826
826
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
827
|
+
email: string | null;
|
|
827
828
|
id: string;
|
|
828
829
|
phone: string | null;
|
|
830
|
+
items: {
|
|
831
|
+
id: string;
|
|
832
|
+
productId: number;
|
|
833
|
+
quantity: number;
|
|
834
|
+
variantId: number;
|
|
835
|
+
unitPrice: number;
|
|
836
|
+
bundleItems: {
|
|
837
|
+
imageUrl: string | null;
|
|
838
|
+
brand: string | null;
|
|
839
|
+
productId: number;
|
|
840
|
+
sku: string | null;
|
|
841
|
+
quantity: number;
|
|
842
|
+
variantId: number;
|
|
843
|
+
productName: string;
|
|
844
|
+
variantName: string | null;
|
|
845
|
+
}[];
|
|
846
|
+
title: string;
|
|
847
|
+
variantLabel: string | null;
|
|
848
|
+
productHandle: string | null;
|
|
849
|
+
thumbnail: string | null;
|
|
850
|
+
variantSku: string | null;
|
|
851
|
+
compareAtUnitPrice: number | null;
|
|
852
|
+
}[];
|
|
829
853
|
cartNumber: string;
|
|
830
|
-
email: string | null;
|
|
831
854
|
firstName: string | null;
|
|
832
855
|
lastName: string | null;
|
|
833
856
|
currencyCode: string;
|
|
834
857
|
completedAt: string | null;
|
|
835
858
|
shippingAddress: {
|
|
836
859
|
name: string | null;
|
|
860
|
+
company: string | null;
|
|
861
|
+
phone: string | null;
|
|
837
862
|
address1: string;
|
|
838
863
|
city: string;
|
|
839
864
|
countryCode: string;
|
|
840
|
-
company: string | null;
|
|
841
865
|
address2: string | null;
|
|
842
866
|
province: string | null;
|
|
843
867
|
postalCode: string | null;
|
|
844
868
|
district: string | null;
|
|
845
|
-
phone: string | null;
|
|
846
869
|
latitude: number | null;
|
|
847
870
|
longitude: number | null;
|
|
848
871
|
} | null;
|
|
849
872
|
billingAddress: {
|
|
850
873
|
name: string | null;
|
|
874
|
+
company: string | null;
|
|
875
|
+
phone: string | null;
|
|
851
876
|
address1: string;
|
|
852
877
|
city: string;
|
|
853
878
|
countryCode: string;
|
|
854
|
-
company: string | null;
|
|
855
879
|
address2: string | null;
|
|
856
880
|
province: string | null;
|
|
857
881
|
postalCode: string | null;
|
|
858
882
|
district: string | null;
|
|
859
|
-
phone: string | null;
|
|
860
883
|
latitude: number | null;
|
|
861
884
|
longitude: number | null;
|
|
862
885
|
} | null;
|
|
863
886
|
promotionCodes: string[];
|
|
864
|
-
items: {
|
|
865
|
-
id: string;
|
|
866
|
-
productId: number;
|
|
867
|
-
quantity: number;
|
|
868
|
-
variantId: number;
|
|
869
|
-
unitPrice: number;
|
|
870
|
-
bundleItems: {
|
|
871
|
-
imageUrl: string | null;
|
|
872
|
-
brand: string | null;
|
|
873
|
-
productId: number;
|
|
874
|
-
sku: string | null;
|
|
875
|
-
quantity: number;
|
|
876
|
-
variantId: number;
|
|
877
|
-
productName: string;
|
|
878
|
-
variantName: string | null;
|
|
879
|
-
}[];
|
|
880
|
-
title: string;
|
|
881
|
-
variantLabel: string | null;
|
|
882
|
-
productHandle: string | null;
|
|
883
|
-
thumbnail: string | null;
|
|
884
|
-
variantSku: string | null;
|
|
885
|
-
compareAtUnitPrice: number | null;
|
|
886
|
-
}[];
|
|
887
887
|
shippingMethods: {
|
|
888
|
-
id: string;
|
|
889
888
|
name: string;
|
|
890
|
-
|
|
889
|
+
id: string;
|
|
891
890
|
sellerId: string | null;
|
|
891
|
+
description: string | null;
|
|
892
892
|
locationId: string | null;
|
|
893
893
|
shippingMethodId: string | null;
|
|
894
894
|
rateId: string | null;
|
|
@@ -917,71 +917,71 @@ declare function uploadPaymentReceipt(api: Api, params: UploadPaymentReceiptPara
|
|
|
917
917
|
/** POST /v1/carts/{id}/promotion-codes */
|
|
918
918
|
declare function addCartPromotionCode(api: Api, params: CartPromotionCodeParams): Promise<{
|
|
919
919
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
920
|
+
email: string | null;
|
|
920
921
|
id: string;
|
|
921
922
|
phone: string | null;
|
|
923
|
+
items: {
|
|
924
|
+
id: string;
|
|
925
|
+
productId: number;
|
|
926
|
+
quantity: number;
|
|
927
|
+
variantId: number;
|
|
928
|
+
unitPrice: number;
|
|
929
|
+
bundleItems: {
|
|
930
|
+
imageUrl: string | null;
|
|
931
|
+
brand: string | null;
|
|
932
|
+
productId: number;
|
|
933
|
+
sku: string | null;
|
|
934
|
+
quantity: number;
|
|
935
|
+
variantId: number;
|
|
936
|
+
productName: string;
|
|
937
|
+
variantName: string | null;
|
|
938
|
+
}[];
|
|
939
|
+
title: string;
|
|
940
|
+
variantLabel: string | null;
|
|
941
|
+
productHandle: string | null;
|
|
942
|
+
thumbnail: string | null;
|
|
943
|
+
variantSku: string | null;
|
|
944
|
+
compareAtUnitPrice: number | null;
|
|
945
|
+
}[];
|
|
922
946
|
cartNumber: string;
|
|
923
|
-
email: string | null;
|
|
924
947
|
firstName: string | null;
|
|
925
948
|
lastName: string | null;
|
|
926
949
|
currencyCode: string;
|
|
927
950
|
completedAt: string | null;
|
|
928
951
|
shippingAddress: {
|
|
929
952
|
name: string | null;
|
|
953
|
+
company: string | null;
|
|
954
|
+
phone: string | null;
|
|
930
955
|
address1: string;
|
|
931
956
|
city: string;
|
|
932
957
|
countryCode: string;
|
|
933
|
-
company: string | null;
|
|
934
958
|
address2: string | null;
|
|
935
959
|
province: string | null;
|
|
936
960
|
postalCode: string | null;
|
|
937
961
|
district: string | null;
|
|
938
|
-
phone: string | null;
|
|
939
962
|
latitude: number | null;
|
|
940
963
|
longitude: number | null;
|
|
941
964
|
} | null;
|
|
942
965
|
billingAddress: {
|
|
943
966
|
name: string | null;
|
|
967
|
+
company: string | null;
|
|
968
|
+
phone: string | null;
|
|
944
969
|
address1: string;
|
|
945
970
|
city: string;
|
|
946
971
|
countryCode: string;
|
|
947
|
-
company: string | null;
|
|
948
972
|
address2: string | null;
|
|
949
973
|
province: string | null;
|
|
950
974
|
postalCode: string | null;
|
|
951
975
|
district: string | null;
|
|
952
|
-
phone: string | null;
|
|
953
976
|
latitude: number | null;
|
|
954
977
|
longitude: number | null;
|
|
955
978
|
} | null;
|
|
956
979
|
promotionCodes: string[];
|
|
957
|
-
items: {
|
|
958
|
-
id: string;
|
|
959
|
-
productId: number;
|
|
960
|
-
quantity: number;
|
|
961
|
-
variantId: number;
|
|
962
|
-
unitPrice: number;
|
|
963
|
-
bundleItems: {
|
|
964
|
-
imageUrl: string | null;
|
|
965
|
-
brand: string | null;
|
|
966
|
-
productId: number;
|
|
967
|
-
sku: string | null;
|
|
968
|
-
quantity: number;
|
|
969
|
-
variantId: number;
|
|
970
|
-
productName: string;
|
|
971
|
-
variantName: string | null;
|
|
972
|
-
}[];
|
|
973
|
-
title: string;
|
|
974
|
-
variantLabel: string | null;
|
|
975
|
-
productHandle: string | null;
|
|
976
|
-
thumbnail: string | null;
|
|
977
|
-
variantSku: string | null;
|
|
978
|
-
compareAtUnitPrice: number | null;
|
|
979
|
-
}[];
|
|
980
980
|
shippingMethods: {
|
|
981
|
-
id: string;
|
|
982
981
|
name: string;
|
|
983
|
-
|
|
982
|
+
id: string;
|
|
984
983
|
sellerId: string | null;
|
|
984
|
+
description: string | null;
|
|
985
985
|
locationId: string | null;
|
|
986
986
|
shippingMethodId: string | null;
|
|
987
987
|
rateId: string | null;
|
|
@@ -1006,71 +1006,71 @@ declare function addCartPromotionCode(api: Api, params: CartPromotionCodeParams)
|
|
|
1006
1006
|
/** DELETE /v1/carts/{id}/promotion-codes/{code} */
|
|
1007
1007
|
declare function removeCartPromotionCode(api: Api, params: CartPromotionCodeParams): Promise<{
|
|
1008
1008
|
status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
|
|
1009
|
+
email: string | null;
|
|
1009
1010
|
id: string;
|
|
1010
1011
|
phone: string | null;
|
|
1012
|
+
items: {
|
|
1013
|
+
id: string;
|
|
1014
|
+
productId: number;
|
|
1015
|
+
quantity: number;
|
|
1016
|
+
variantId: number;
|
|
1017
|
+
unitPrice: number;
|
|
1018
|
+
bundleItems: {
|
|
1019
|
+
imageUrl: string | null;
|
|
1020
|
+
brand: string | null;
|
|
1021
|
+
productId: number;
|
|
1022
|
+
sku: string | null;
|
|
1023
|
+
quantity: number;
|
|
1024
|
+
variantId: number;
|
|
1025
|
+
productName: string;
|
|
1026
|
+
variantName: string | null;
|
|
1027
|
+
}[];
|
|
1028
|
+
title: string;
|
|
1029
|
+
variantLabel: string | null;
|
|
1030
|
+
productHandle: string | null;
|
|
1031
|
+
thumbnail: string | null;
|
|
1032
|
+
variantSku: string | null;
|
|
1033
|
+
compareAtUnitPrice: number | null;
|
|
1034
|
+
}[];
|
|
1011
1035
|
cartNumber: string;
|
|
1012
|
-
email: string | null;
|
|
1013
1036
|
firstName: string | null;
|
|
1014
1037
|
lastName: string | null;
|
|
1015
1038
|
currencyCode: string;
|
|
1016
1039
|
completedAt: string | null;
|
|
1017
1040
|
shippingAddress: {
|
|
1018
1041
|
name: string | null;
|
|
1042
|
+
company: string | null;
|
|
1043
|
+
phone: string | null;
|
|
1019
1044
|
address1: string;
|
|
1020
1045
|
city: string;
|
|
1021
1046
|
countryCode: string;
|
|
1022
|
-
company: string | null;
|
|
1023
1047
|
address2: string | null;
|
|
1024
1048
|
province: string | null;
|
|
1025
1049
|
postalCode: string | null;
|
|
1026
1050
|
district: string | null;
|
|
1027
|
-
phone: string | null;
|
|
1028
1051
|
latitude: number | null;
|
|
1029
1052
|
longitude: number | null;
|
|
1030
1053
|
} | null;
|
|
1031
1054
|
billingAddress: {
|
|
1032
1055
|
name: string | null;
|
|
1056
|
+
company: string | null;
|
|
1057
|
+
phone: string | null;
|
|
1033
1058
|
address1: string;
|
|
1034
1059
|
city: string;
|
|
1035
1060
|
countryCode: string;
|
|
1036
|
-
company: string | null;
|
|
1037
1061
|
address2: string | null;
|
|
1038
1062
|
province: string | null;
|
|
1039
1063
|
postalCode: string | null;
|
|
1040
1064
|
district: string | null;
|
|
1041
|
-
phone: string | null;
|
|
1042
1065
|
latitude: number | null;
|
|
1043
1066
|
longitude: number | null;
|
|
1044
1067
|
} | null;
|
|
1045
1068
|
promotionCodes: string[];
|
|
1046
|
-
items: {
|
|
1047
|
-
id: string;
|
|
1048
|
-
productId: number;
|
|
1049
|
-
quantity: number;
|
|
1050
|
-
variantId: number;
|
|
1051
|
-
unitPrice: number;
|
|
1052
|
-
bundleItems: {
|
|
1053
|
-
imageUrl: string | null;
|
|
1054
|
-
brand: string | null;
|
|
1055
|
-
productId: number;
|
|
1056
|
-
sku: string | null;
|
|
1057
|
-
quantity: number;
|
|
1058
|
-
variantId: number;
|
|
1059
|
-
productName: string;
|
|
1060
|
-
variantName: string | null;
|
|
1061
|
-
}[];
|
|
1062
|
-
title: string;
|
|
1063
|
-
variantLabel: string | null;
|
|
1064
|
-
productHandle: string | null;
|
|
1065
|
-
thumbnail: string | null;
|
|
1066
|
-
variantSku: string | null;
|
|
1067
|
-
compareAtUnitPrice: number | null;
|
|
1068
|
-
}[];
|
|
1069
1069
|
shippingMethods: {
|
|
1070
|
-
id: string;
|
|
1071
1070
|
name: string;
|
|
1072
|
-
|
|
1071
|
+
id: string;
|
|
1073
1072
|
sellerId: string | null;
|
|
1073
|
+
description: string | null;
|
|
1074
1074
|
locationId: string | null;
|
|
1075
1075
|
shippingMethodId: string | null;
|
|
1076
1076
|
rateId: string | null;
|