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