@brytdesigns/shopify-ajax-cart-api 1.0.13 → 1.0.15
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/effect/index.d.ts +27 -877
- package/dist/effect/schema.js +2 -2
- package/dist/effect/schema.js.map +1 -1
- package/dist/effect/services/AjaxRequest.js +1 -7
- package/dist/effect/services/AjaxRequest.js.map +1 -1
- package/dist/esm/index.js +3 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/main/effect/schema.js +2 -2
- package/dist/main/effect/schema.js.map +1 -1
- package/dist/main/effect/services/AjaxRequest.js +1 -7
- package/dist/main/effect/services/AjaxRequest.js.map +1 -1
- package/dist/main/index.d.ts +47 -1747
- package/package.json +1 -1
package/dist/main/index.d.ts
CHANGED
|
@@ -256,136 +256,6 @@ declare const add: (input?: ({
|
|
|
256
256
|
readonly value: string | number | boolean | null;
|
|
257
257
|
}[];
|
|
258
258
|
})[];
|
|
259
|
-
} & {
|
|
260
|
-
readonly sections: {
|
|
261
|
-
readonly [x: string]: string | null;
|
|
262
|
-
};
|
|
263
|
-
}> | AjaxClientResponse<{
|
|
264
|
-
readonly items: readonly ({
|
|
265
|
-
readonly key: string;
|
|
266
|
-
readonly title: string;
|
|
267
|
-
readonly url: string;
|
|
268
|
-
readonly price: number;
|
|
269
|
-
readonly id: string | number;
|
|
270
|
-
readonly properties: {
|
|
271
|
-
readonly [x: string]: string | number | boolean | null;
|
|
272
|
-
};
|
|
273
|
-
readonly quantity: number;
|
|
274
|
-
readonly variant_id: string | number;
|
|
275
|
-
readonly original_price: number;
|
|
276
|
-
readonly discounted_price: number;
|
|
277
|
-
readonly line_price: number;
|
|
278
|
-
readonly original_line_price: number;
|
|
279
|
-
readonly total_discount: number;
|
|
280
|
-
readonly discounts: readonly {
|
|
281
|
-
readonly title: string;
|
|
282
|
-
readonly amount: number;
|
|
283
|
-
}[];
|
|
284
|
-
readonly sku: string | null;
|
|
285
|
-
readonly grams: number;
|
|
286
|
-
readonly vendor: string;
|
|
287
|
-
readonly taxable: boolean;
|
|
288
|
-
readonly product_id: string | number;
|
|
289
|
-
readonly product_has_only_default_variant: boolean;
|
|
290
|
-
readonly gift_card: boolean;
|
|
291
|
-
readonly final_line_price: number;
|
|
292
|
-
readonly final_price: number;
|
|
293
|
-
readonly featured_image?: {
|
|
294
|
-
readonly aspect_ratio: number;
|
|
295
|
-
readonly alt: string;
|
|
296
|
-
readonly height: number;
|
|
297
|
-
readonly url: string;
|
|
298
|
-
readonly width: number;
|
|
299
|
-
} | undefined;
|
|
300
|
-
readonly image: string;
|
|
301
|
-
readonly handle: string;
|
|
302
|
-
readonly requires_shipping: boolean;
|
|
303
|
-
readonly product_type: string;
|
|
304
|
-
readonly product_title: string;
|
|
305
|
-
readonly product_description: string;
|
|
306
|
-
readonly variant_title: string | null;
|
|
307
|
-
readonly variant_options: readonly string[];
|
|
308
|
-
readonly options_with_values: readonly {
|
|
309
|
-
readonly value: string;
|
|
310
|
-
readonly name: string;
|
|
311
|
-
}[];
|
|
312
|
-
readonly line_level_discount_allocations: readonly {
|
|
313
|
-
readonly amount: number;
|
|
314
|
-
readonly discount_application: {
|
|
315
|
-
readonly value: number;
|
|
316
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
317
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
318
|
-
readonly title: string;
|
|
319
|
-
readonly total_allocated_amount: number;
|
|
320
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
321
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
322
|
-
readonly description: string | null;
|
|
323
|
-
};
|
|
324
|
-
}[];
|
|
325
|
-
readonly line_level_total_discount: number;
|
|
326
|
-
readonly quantity_rule?: {
|
|
327
|
-
readonly min: number;
|
|
328
|
-
readonly max: number | null;
|
|
329
|
-
readonly increment: number;
|
|
330
|
-
} | undefined;
|
|
331
|
-
readonly has_components: boolean;
|
|
332
|
-
readonly unit_price?: number | undefined;
|
|
333
|
-
readonly unit_price_measurement?: {
|
|
334
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
335
|
-
readonly quantity_unit: string;
|
|
336
|
-
readonly quantity_value: number;
|
|
337
|
-
readonly reference_unit: string;
|
|
338
|
-
readonly reference_value: number;
|
|
339
|
-
} | undefined;
|
|
340
|
-
readonly selling_plan_allocation: {
|
|
341
|
-
readonly price: number;
|
|
342
|
-
readonly price_adjustments: readonly {
|
|
343
|
-
readonly position: number;
|
|
344
|
-
readonly price: number;
|
|
345
|
-
}[];
|
|
346
|
-
readonly compare_at_price: number;
|
|
347
|
-
readonly per_delivery_price: number;
|
|
348
|
-
readonly selling_plan: {
|
|
349
|
-
readonly description: string | null;
|
|
350
|
-
readonly name: string;
|
|
351
|
-
readonly id: string | number;
|
|
352
|
-
readonly options: readonly {
|
|
353
|
-
readonly value: string;
|
|
354
|
-
readonly name: string;
|
|
355
|
-
readonly position: number;
|
|
356
|
-
}[];
|
|
357
|
-
readonly recurring_deliveries: boolean;
|
|
358
|
-
readonly fixed_selling_plan: boolean;
|
|
359
|
-
readonly price_adjustments: readonly {
|
|
360
|
-
readonly value: string | number;
|
|
361
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
362
|
-
readonly position: number;
|
|
363
|
-
readonly order_count: number | null;
|
|
364
|
-
}[];
|
|
365
|
-
};
|
|
366
|
-
} | null;
|
|
367
|
-
} & {
|
|
368
|
-
readonly properties_array: readonly {
|
|
369
|
-
readonly key: string;
|
|
370
|
-
readonly value: string | number | boolean | null;
|
|
371
|
-
}[];
|
|
372
|
-
readonly private_properties: {
|
|
373
|
-
readonly [x: string]: string | number | boolean | null;
|
|
374
|
-
};
|
|
375
|
-
readonly private_properties_array: readonly {
|
|
376
|
-
readonly key: string;
|
|
377
|
-
readonly value: string | number | boolean | null;
|
|
378
|
-
}[];
|
|
379
|
-
readonly public_properties: {
|
|
380
|
-
readonly [x: string]: string | number | boolean | null;
|
|
381
|
-
};
|
|
382
|
-
readonly public_properties_array: readonly {
|
|
383
|
-
readonly key: string;
|
|
384
|
-
readonly value: string | number | boolean | null;
|
|
385
|
-
}[];
|
|
386
|
-
})[];
|
|
387
|
-
} & {
|
|
388
|
-
readonly sections: null;
|
|
389
259
|
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
390
260
|
declare namespace change {
|
|
391
261
|
type Input = ChangeInput;
|
|
@@ -586,11 +456,14 @@ declare const change: (input?: ({
|
|
|
586
456
|
readonly key: string;
|
|
587
457
|
readonly value: string | number | boolean | null;
|
|
588
458
|
}[];
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
459
|
+
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
460
|
+
declare namespace clear {
|
|
461
|
+
type Input = ClearInput;
|
|
462
|
+
}
|
|
463
|
+
declare const clear: (input?: {
|
|
464
|
+
readonly sections?: string | undefined;
|
|
465
|
+
readonly sections_url?: string | undefined;
|
|
466
|
+
} | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
594
467
|
readonly total_discount: number;
|
|
595
468
|
readonly discounts: readonly {
|
|
596
469
|
readonly title: string;
|
|
@@ -764,13 +637,11 @@ declare const change: (input?: ({
|
|
|
764
637
|
readonly key: string;
|
|
765
638
|
readonly value: string | number | boolean | null;
|
|
766
639
|
}[];
|
|
767
|
-
} & {
|
|
768
|
-
readonly sections: null;
|
|
769
640
|
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
770
|
-
declare namespace
|
|
771
|
-
type Input =
|
|
641
|
+
declare namespace get {
|
|
642
|
+
type Input = GetInput;
|
|
772
643
|
}
|
|
773
|
-
declare const
|
|
644
|
+
declare const get: (input?: {
|
|
774
645
|
readonly sections?: string | undefined;
|
|
775
646
|
readonly sections_url?: string | undefined;
|
|
776
647
|
} | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
@@ -947,11 +818,23 @@ declare const clear: (input?: {
|
|
|
947
818
|
readonly key: string;
|
|
948
819
|
readonly value: string | number | boolean | null;
|
|
949
820
|
}[];
|
|
821
|
+
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
822
|
+
declare namespace update {
|
|
823
|
+
type Input = UpdateInput;
|
|
824
|
+
}
|
|
825
|
+
declare const update: (input?: ({
|
|
826
|
+
readonly note?: string | null | undefined;
|
|
827
|
+
readonly attributes?: {
|
|
828
|
+
readonly [x: string]: string | number | boolean | null;
|
|
829
|
+
} | undefined;
|
|
830
|
+
readonly updates?: {
|
|
831
|
+
readonly [x: string]: number;
|
|
832
|
+
} | readonly number[] | undefined;
|
|
833
|
+
readonly discount?: readonly string[] | undefined;
|
|
950
834
|
} & {
|
|
951
|
-
readonly sections
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
}> | AjaxClientResponse<{
|
|
835
|
+
readonly sections?: string | undefined;
|
|
836
|
+
readonly sections_url?: string | undefined;
|
|
837
|
+
}) | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
955
838
|
readonly total_discount: number;
|
|
956
839
|
readonly discounts: readonly {
|
|
957
840
|
readonly title: string;
|
|
@@ -1125,16 +1008,16 @@ declare const clear: (input?: {
|
|
|
1125
1008
|
readonly key: string;
|
|
1126
1009
|
readonly value: string | number | boolean | null;
|
|
1127
1010
|
}[];
|
|
1128
|
-
} & {
|
|
1129
|
-
readonly sections: null;
|
|
1130
1011
|
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
1131
|
-
declare namespace
|
|
1132
|
-
type
|
|
1012
|
+
export declare namespace createAjaxCartClient {
|
|
1013
|
+
type Options = {
|
|
1014
|
+
debug?: boolean;
|
|
1015
|
+
};
|
|
1016
|
+
type RequestOptions = {
|
|
1017
|
+
signal?: AbortSignal;
|
|
1018
|
+
};
|
|
1133
1019
|
}
|
|
1134
|
-
declare const
|
|
1135
|
-
readonly sections?: string | undefined;
|
|
1136
|
-
readonly sections_url?: string | undefined;
|
|
1137
|
-
} | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
1020
|
+
export declare const validateCart: (cart: unknown) => {
|
|
1138
1021
|
readonly total_discount: number;
|
|
1139
1022
|
readonly discounts: readonly {
|
|
1140
1023
|
readonly title: string;
|
|
@@ -1308,1375 +1191,13 @@ declare const get: (input?: {
|
|
|
1308
1191
|
readonly key: string;
|
|
1309
1192
|
readonly value: string | number | boolean | null;
|
|
1310
1193
|
}[];
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
readonly title: string;
|
|
1319
|
-
readonly amount: number;
|
|
1320
|
-
}[];
|
|
1321
|
-
readonly requires_shipping: boolean;
|
|
1322
|
-
readonly token: string;
|
|
1323
|
-
readonly note: string | null;
|
|
1324
|
-
readonly attributes: {
|
|
1325
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1326
|
-
};
|
|
1327
|
-
readonly discount_codes: readonly {
|
|
1328
|
-
readonly code: string;
|
|
1329
|
-
readonly applicable: boolean;
|
|
1330
|
-
}[];
|
|
1331
|
-
readonly original_total_price: number;
|
|
1332
|
-
readonly total_price: number;
|
|
1333
|
-
readonly total_weight: number;
|
|
1334
|
-
readonly item_count: number;
|
|
1335
|
-
readonly items: readonly ({
|
|
1336
|
-
readonly key: string;
|
|
1337
|
-
readonly title: string;
|
|
1338
|
-
readonly url: string;
|
|
1339
|
-
readonly price: number;
|
|
1340
|
-
readonly id: string | number;
|
|
1341
|
-
readonly properties: {
|
|
1342
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1343
|
-
};
|
|
1344
|
-
readonly quantity: number;
|
|
1345
|
-
readonly variant_id: string | number;
|
|
1346
|
-
readonly original_price: number;
|
|
1347
|
-
readonly discounted_price: number;
|
|
1348
|
-
readonly line_price: number;
|
|
1349
|
-
readonly original_line_price: number;
|
|
1350
|
-
readonly total_discount: number;
|
|
1351
|
-
readonly discounts: readonly {
|
|
1352
|
-
readonly title: string;
|
|
1353
|
-
readonly amount: number;
|
|
1354
|
-
}[];
|
|
1355
|
-
readonly sku: string | null;
|
|
1356
|
-
readonly grams: number;
|
|
1357
|
-
readonly vendor: string;
|
|
1358
|
-
readonly taxable: boolean;
|
|
1359
|
-
readonly product_id: string | number;
|
|
1360
|
-
readonly product_has_only_default_variant: boolean;
|
|
1361
|
-
readonly gift_card: boolean;
|
|
1362
|
-
readonly final_line_price: number;
|
|
1363
|
-
readonly final_price: number;
|
|
1364
|
-
readonly featured_image?: {
|
|
1365
|
-
readonly aspect_ratio: number;
|
|
1366
|
-
readonly alt: string;
|
|
1367
|
-
readonly height: number;
|
|
1368
|
-
readonly url: string;
|
|
1369
|
-
readonly width: number;
|
|
1370
|
-
} | undefined;
|
|
1371
|
-
readonly image: string;
|
|
1372
|
-
readonly handle: string;
|
|
1373
|
-
readonly requires_shipping: boolean;
|
|
1374
|
-
readonly product_type: string;
|
|
1375
|
-
readonly product_title: string;
|
|
1376
|
-
readonly product_description: string;
|
|
1377
|
-
readonly variant_title: string | null;
|
|
1378
|
-
readonly variant_options: readonly string[];
|
|
1379
|
-
readonly options_with_values: readonly {
|
|
1380
|
-
readonly value: string;
|
|
1381
|
-
readonly name: string;
|
|
1382
|
-
}[];
|
|
1383
|
-
readonly line_level_discount_allocations: readonly {
|
|
1384
|
-
readonly amount: number;
|
|
1385
|
-
readonly discount_application: {
|
|
1386
|
-
readonly value: number;
|
|
1387
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1388
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
1389
|
-
readonly title: string;
|
|
1390
|
-
readonly total_allocated_amount: number;
|
|
1391
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1392
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
1393
|
-
readonly description: string | null;
|
|
1394
|
-
};
|
|
1395
|
-
}[];
|
|
1396
|
-
readonly line_level_total_discount: number;
|
|
1397
|
-
readonly quantity_rule?: {
|
|
1398
|
-
readonly min: number;
|
|
1399
|
-
readonly max: number | null;
|
|
1400
|
-
readonly increment: number;
|
|
1401
|
-
} | undefined;
|
|
1402
|
-
readonly has_components: boolean;
|
|
1403
|
-
readonly unit_price?: number | undefined;
|
|
1404
|
-
readonly unit_price_measurement?: {
|
|
1405
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
1406
|
-
readonly quantity_unit: string;
|
|
1407
|
-
readonly quantity_value: number;
|
|
1408
|
-
readonly reference_unit: string;
|
|
1409
|
-
readonly reference_value: number;
|
|
1410
|
-
} | undefined;
|
|
1411
|
-
readonly selling_plan_allocation: {
|
|
1412
|
-
readonly price: number;
|
|
1413
|
-
readonly price_adjustments: readonly {
|
|
1414
|
-
readonly position: number;
|
|
1415
|
-
readonly price: number;
|
|
1416
|
-
}[];
|
|
1417
|
-
readonly compare_at_price: number;
|
|
1418
|
-
readonly per_delivery_price: number;
|
|
1419
|
-
readonly selling_plan: {
|
|
1420
|
-
readonly description: string | null;
|
|
1421
|
-
readonly name: string;
|
|
1422
|
-
readonly id: string | number;
|
|
1423
|
-
readonly options: readonly {
|
|
1424
|
-
readonly value: string;
|
|
1425
|
-
readonly name: string;
|
|
1426
|
-
readonly position: number;
|
|
1427
|
-
}[];
|
|
1428
|
-
readonly recurring_deliveries: boolean;
|
|
1429
|
-
readonly fixed_selling_plan: boolean;
|
|
1430
|
-
readonly price_adjustments: readonly {
|
|
1431
|
-
readonly value: string | number;
|
|
1432
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
1433
|
-
readonly position: number;
|
|
1434
|
-
readonly order_count: number | null;
|
|
1435
|
-
}[];
|
|
1436
|
-
};
|
|
1437
|
-
} | null;
|
|
1438
|
-
} & {
|
|
1439
|
-
readonly properties_array: readonly {
|
|
1440
|
-
readonly key: string;
|
|
1441
|
-
readonly value: string | number | boolean | null;
|
|
1442
|
-
}[];
|
|
1443
|
-
readonly private_properties: {
|
|
1444
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1445
|
-
};
|
|
1446
|
-
readonly private_properties_array: readonly {
|
|
1447
|
-
readonly key: string;
|
|
1448
|
-
readonly value: string | number | boolean | null;
|
|
1449
|
-
}[];
|
|
1450
|
-
readonly public_properties: {
|
|
1451
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1452
|
-
};
|
|
1453
|
-
readonly public_properties_array: readonly {
|
|
1454
|
-
readonly key: string;
|
|
1455
|
-
readonly value: string | number | boolean | null;
|
|
1456
|
-
}[];
|
|
1457
|
-
})[];
|
|
1458
|
-
readonly currency: string;
|
|
1459
|
-
readonly items_subtotal_price: number;
|
|
1460
|
-
readonly cart_level_discount_applications: readonly {
|
|
1461
|
-
readonly value: number;
|
|
1462
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1463
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
1464
|
-
readonly title: string;
|
|
1465
|
-
readonly total_allocated_amount: number;
|
|
1466
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1467
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
1468
|
-
readonly description: string | null;
|
|
1469
|
-
}[];
|
|
1470
|
-
} & {
|
|
1471
|
-
readonly attributes_array: readonly {
|
|
1472
|
-
readonly key: string;
|
|
1473
|
-
readonly value: string | number | boolean | null;
|
|
1474
|
-
}[];
|
|
1475
|
-
readonly private_attributes: {
|
|
1476
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1477
|
-
};
|
|
1478
|
-
readonly private_attributes_array: readonly {
|
|
1479
|
-
readonly key: string;
|
|
1480
|
-
readonly value: string | number | boolean | null;
|
|
1481
|
-
}[];
|
|
1482
|
-
readonly public_attributes: {
|
|
1483
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1484
|
-
};
|
|
1485
|
-
readonly public_attributes_array: readonly {
|
|
1486
|
-
readonly key: string;
|
|
1487
|
-
readonly value: string | number | boolean | null;
|
|
1488
|
-
}[];
|
|
1489
|
-
} & {
|
|
1490
|
-
readonly sections: null;
|
|
1491
|
-
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
1492
|
-
declare namespace update {
|
|
1493
|
-
type Input = UpdateInput;
|
|
1494
|
-
}
|
|
1495
|
-
declare const update: (input?: ({
|
|
1496
|
-
readonly note?: string | null | undefined;
|
|
1497
|
-
readonly attributes?: {
|
|
1498
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1499
|
-
} | undefined;
|
|
1500
|
-
readonly updates?: {
|
|
1501
|
-
readonly [x: string]: number;
|
|
1502
|
-
} | readonly number[] | undefined;
|
|
1503
|
-
readonly discount?: readonly string[] | undefined;
|
|
1504
|
-
} & {
|
|
1505
|
-
readonly sections?: string | undefined;
|
|
1506
|
-
readonly sections_url?: string | undefined;
|
|
1507
|
-
}) | undefined) => import("effect/Effect").Effect<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
1508
|
-
readonly total_discount: number;
|
|
1509
|
-
readonly discounts: readonly {
|
|
1510
|
-
readonly title: string;
|
|
1511
|
-
readonly amount: number;
|
|
1512
|
-
}[];
|
|
1513
|
-
readonly requires_shipping: boolean;
|
|
1514
|
-
readonly token: string;
|
|
1515
|
-
readonly note: string | null;
|
|
1516
|
-
readonly attributes: {
|
|
1517
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1518
|
-
};
|
|
1519
|
-
readonly discount_codes: readonly {
|
|
1520
|
-
readonly code: string;
|
|
1521
|
-
readonly applicable: boolean;
|
|
1522
|
-
}[];
|
|
1523
|
-
readonly original_total_price: number;
|
|
1524
|
-
readonly total_price: number;
|
|
1525
|
-
readonly total_weight: number;
|
|
1526
|
-
readonly item_count: number;
|
|
1527
|
-
readonly items: readonly ({
|
|
1528
|
-
readonly key: string;
|
|
1529
|
-
readonly title: string;
|
|
1530
|
-
readonly url: string;
|
|
1531
|
-
readonly price: number;
|
|
1532
|
-
readonly id: string | number;
|
|
1533
|
-
readonly properties: {
|
|
1534
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1535
|
-
};
|
|
1536
|
-
readonly quantity: number;
|
|
1537
|
-
readonly variant_id: string | number;
|
|
1538
|
-
readonly original_price: number;
|
|
1539
|
-
readonly discounted_price: number;
|
|
1540
|
-
readonly line_price: number;
|
|
1541
|
-
readonly original_line_price: number;
|
|
1542
|
-
readonly total_discount: number;
|
|
1543
|
-
readonly discounts: readonly {
|
|
1544
|
-
readonly title: string;
|
|
1545
|
-
readonly amount: number;
|
|
1546
|
-
}[];
|
|
1547
|
-
readonly sku: string | null;
|
|
1548
|
-
readonly grams: number;
|
|
1549
|
-
readonly vendor: string;
|
|
1550
|
-
readonly taxable: boolean;
|
|
1551
|
-
readonly product_id: string | number;
|
|
1552
|
-
readonly product_has_only_default_variant: boolean;
|
|
1553
|
-
readonly gift_card: boolean;
|
|
1554
|
-
readonly final_line_price: number;
|
|
1555
|
-
readonly final_price: number;
|
|
1556
|
-
readonly featured_image?: {
|
|
1557
|
-
readonly aspect_ratio: number;
|
|
1558
|
-
readonly alt: string;
|
|
1559
|
-
readonly height: number;
|
|
1560
|
-
readonly url: string;
|
|
1561
|
-
readonly width: number;
|
|
1562
|
-
} | undefined;
|
|
1563
|
-
readonly image: string;
|
|
1564
|
-
readonly handle: string;
|
|
1565
|
-
readonly requires_shipping: boolean;
|
|
1566
|
-
readonly product_type: string;
|
|
1567
|
-
readonly product_title: string;
|
|
1568
|
-
readonly product_description: string;
|
|
1569
|
-
readonly variant_title: string | null;
|
|
1570
|
-
readonly variant_options: readonly string[];
|
|
1571
|
-
readonly options_with_values: readonly {
|
|
1572
|
-
readonly value: string;
|
|
1573
|
-
readonly name: string;
|
|
1574
|
-
}[];
|
|
1575
|
-
readonly line_level_discount_allocations: readonly {
|
|
1576
|
-
readonly amount: number;
|
|
1577
|
-
readonly discount_application: {
|
|
1578
|
-
readonly value: number;
|
|
1579
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1580
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
1581
|
-
readonly title: string;
|
|
1582
|
-
readonly total_allocated_amount: number;
|
|
1583
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1584
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
1585
|
-
readonly description: string | null;
|
|
1586
|
-
};
|
|
1587
|
-
}[];
|
|
1588
|
-
readonly line_level_total_discount: number;
|
|
1589
|
-
readonly quantity_rule?: {
|
|
1590
|
-
readonly min: number;
|
|
1591
|
-
readonly max: number | null;
|
|
1592
|
-
readonly increment: number;
|
|
1593
|
-
} | undefined;
|
|
1594
|
-
readonly has_components: boolean;
|
|
1595
|
-
readonly unit_price?: number | undefined;
|
|
1596
|
-
readonly unit_price_measurement?: {
|
|
1597
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
1598
|
-
readonly quantity_unit: string;
|
|
1599
|
-
readonly quantity_value: number;
|
|
1600
|
-
readonly reference_unit: string;
|
|
1601
|
-
readonly reference_value: number;
|
|
1602
|
-
} | undefined;
|
|
1603
|
-
readonly selling_plan_allocation: {
|
|
1604
|
-
readonly price: number;
|
|
1605
|
-
readonly price_adjustments: readonly {
|
|
1606
|
-
readonly position: number;
|
|
1607
|
-
readonly price: number;
|
|
1608
|
-
}[];
|
|
1609
|
-
readonly compare_at_price: number;
|
|
1610
|
-
readonly per_delivery_price: number;
|
|
1611
|
-
readonly selling_plan: {
|
|
1612
|
-
readonly description: string | null;
|
|
1613
|
-
readonly name: string;
|
|
1614
|
-
readonly id: string | number;
|
|
1615
|
-
readonly options: readonly {
|
|
1616
|
-
readonly value: string;
|
|
1617
|
-
readonly name: string;
|
|
1618
|
-
readonly position: number;
|
|
1619
|
-
}[];
|
|
1620
|
-
readonly recurring_deliveries: boolean;
|
|
1621
|
-
readonly fixed_selling_plan: boolean;
|
|
1622
|
-
readonly price_adjustments: readonly {
|
|
1623
|
-
readonly value: string | number;
|
|
1624
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
1625
|
-
readonly position: number;
|
|
1626
|
-
readonly order_count: number | null;
|
|
1627
|
-
}[];
|
|
1628
|
-
};
|
|
1629
|
-
} | null;
|
|
1630
|
-
} & {
|
|
1631
|
-
readonly properties_array: readonly {
|
|
1632
|
-
readonly key: string;
|
|
1633
|
-
readonly value: string | number | boolean | null;
|
|
1634
|
-
}[];
|
|
1635
|
-
readonly private_properties: {
|
|
1636
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1637
|
-
};
|
|
1638
|
-
readonly private_properties_array: readonly {
|
|
1639
|
-
readonly key: string;
|
|
1640
|
-
readonly value: string | number | boolean | null;
|
|
1641
|
-
}[];
|
|
1642
|
-
readonly public_properties: {
|
|
1643
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1644
|
-
};
|
|
1645
|
-
readonly public_properties_array: readonly {
|
|
1646
|
-
readonly key: string;
|
|
1647
|
-
readonly value: string | number | boolean | null;
|
|
1648
|
-
}[];
|
|
1649
|
-
})[];
|
|
1650
|
-
readonly currency: string;
|
|
1651
|
-
readonly items_subtotal_price: number;
|
|
1652
|
-
readonly cart_level_discount_applications: readonly {
|
|
1653
|
-
readonly value: number;
|
|
1654
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1655
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
1656
|
-
readonly title: string;
|
|
1657
|
-
readonly total_allocated_amount: number;
|
|
1658
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1659
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
1660
|
-
readonly description: string | null;
|
|
1661
|
-
}[];
|
|
1662
|
-
} & {
|
|
1663
|
-
readonly attributes_array: readonly {
|
|
1664
|
-
readonly key: string;
|
|
1665
|
-
readonly value: string | number | boolean | null;
|
|
1666
|
-
}[];
|
|
1667
|
-
readonly private_attributes: {
|
|
1668
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1669
|
-
};
|
|
1670
|
-
readonly private_attributes_array: readonly {
|
|
1671
|
-
readonly key: string;
|
|
1672
|
-
readonly value: string | number | boolean | null;
|
|
1673
|
-
}[];
|
|
1674
|
-
readonly public_attributes: {
|
|
1675
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1676
|
-
};
|
|
1677
|
-
readonly public_attributes_array: readonly {
|
|
1678
|
-
readonly key: string;
|
|
1679
|
-
readonly value: string | number | boolean | null;
|
|
1680
|
-
}[];
|
|
1681
|
-
} & {
|
|
1682
|
-
readonly sections: {
|
|
1683
|
-
readonly [x: string]: string | null;
|
|
1684
|
-
};
|
|
1685
|
-
}> | AjaxClientResponse<{
|
|
1686
|
-
readonly total_discount: number;
|
|
1687
|
-
readonly discounts: readonly {
|
|
1688
|
-
readonly title: string;
|
|
1689
|
-
readonly amount: number;
|
|
1690
|
-
}[];
|
|
1691
|
-
readonly requires_shipping: boolean;
|
|
1692
|
-
readonly token: string;
|
|
1693
|
-
readonly note: string | null;
|
|
1694
|
-
readonly attributes: {
|
|
1695
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1696
|
-
};
|
|
1697
|
-
readonly discount_codes: readonly {
|
|
1698
|
-
readonly code: string;
|
|
1699
|
-
readonly applicable: boolean;
|
|
1700
|
-
}[];
|
|
1701
|
-
readonly original_total_price: number;
|
|
1702
|
-
readonly total_price: number;
|
|
1703
|
-
readonly total_weight: number;
|
|
1704
|
-
readonly item_count: number;
|
|
1705
|
-
readonly items: readonly ({
|
|
1706
|
-
readonly key: string;
|
|
1707
|
-
readonly title: string;
|
|
1708
|
-
readonly url: string;
|
|
1709
|
-
readonly price: number;
|
|
1710
|
-
readonly id: string | number;
|
|
1711
|
-
readonly properties: {
|
|
1712
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1713
|
-
};
|
|
1714
|
-
readonly quantity: number;
|
|
1715
|
-
readonly variant_id: string | number;
|
|
1716
|
-
readonly original_price: number;
|
|
1717
|
-
readonly discounted_price: number;
|
|
1718
|
-
readonly line_price: number;
|
|
1719
|
-
readonly original_line_price: number;
|
|
1720
|
-
readonly total_discount: number;
|
|
1721
|
-
readonly discounts: readonly {
|
|
1722
|
-
readonly title: string;
|
|
1723
|
-
readonly amount: number;
|
|
1724
|
-
}[];
|
|
1725
|
-
readonly sku: string | null;
|
|
1726
|
-
readonly grams: number;
|
|
1727
|
-
readonly vendor: string;
|
|
1728
|
-
readonly taxable: boolean;
|
|
1729
|
-
readonly product_id: string | number;
|
|
1730
|
-
readonly product_has_only_default_variant: boolean;
|
|
1731
|
-
readonly gift_card: boolean;
|
|
1732
|
-
readonly final_line_price: number;
|
|
1733
|
-
readonly final_price: number;
|
|
1734
|
-
readonly featured_image?: {
|
|
1735
|
-
readonly aspect_ratio: number;
|
|
1736
|
-
readonly alt: string;
|
|
1737
|
-
readonly height: number;
|
|
1738
|
-
readonly url: string;
|
|
1739
|
-
readonly width: number;
|
|
1740
|
-
} | undefined;
|
|
1741
|
-
readonly image: string;
|
|
1742
|
-
readonly handle: string;
|
|
1743
|
-
readonly requires_shipping: boolean;
|
|
1744
|
-
readonly product_type: string;
|
|
1745
|
-
readonly product_title: string;
|
|
1746
|
-
readonly product_description: string;
|
|
1747
|
-
readonly variant_title: string | null;
|
|
1748
|
-
readonly variant_options: readonly string[];
|
|
1749
|
-
readonly options_with_values: readonly {
|
|
1750
|
-
readonly value: string;
|
|
1751
|
-
readonly name: string;
|
|
1752
|
-
}[];
|
|
1753
|
-
readonly line_level_discount_allocations: readonly {
|
|
1754
|
-
readonly amount: number;
|
|
1755
|
-
readonly discount_application: {
|
|
1756
|
-
readonly value: number;
|
|
1757
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1758
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
1759
|
-
readonly title: string;
|
|
1760
|
-
readonly total_allocated_amount: number;
|
|
1761
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1762
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
1763
|
-
readonly description: string | null;
|
|
1764
|
-
};
|
|
1765
|
-
}[];
|
|
1766
|
-
readonly line_level_total_discount: number;
|
|
1767
|
-
readonly quantity_rule?: {
|
|
1768
|
-
readonly min: number;
|
|
1769
|
-
readonly max: number | null;
|
|
1770
|
-
readonly increment: number;
|
|
1771
|
-
} | undefined;
|
|
1772
|
-
readonly has_components: boolean;
|
|
1773
|
-
readonly unit_price?: number | undefined;
|
|
1774
|
-
readonly unit_price_measurement?: {
|
|
1775
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
1776
|
-
readonly quantity_unit: string;
|
|
1777
|
-
readonly quantity_value: number;
|
|
1778
|
-
readonly reference_unit: string;
|
|
1779
|
-
readonly reference_value: number;
|
|
1780
|
-
} | undefined;
|
|
1781
|
-
readonly selling_plan_allocation: {
|
|
1782
|
-
readonly price: number;
|
|
1783
|
-
readonly price_adjustments: readonly {
|
|
1784
|
-
readonly position: number;
|
|
1785
|
-
readonly price: number;
|
|
1786
|
-
}[];
|
|
1787
|
-
readonly compare_at_price: number;
|
|
1788
|
-
readonly per_delivery_price: number;
|
|
1789
|
-
readonly selling_plan: {
|
|
1790
|
-
readonly description: string | null;
|
|
1791
|
-
readonly name: string;
|
|
1792
|
-
readonly id: string | number;
|
|
1793
|
-
readonly options: readonly {
|
|
1794
|
-
readonly value: string;
|
|
1795
|
-
readonly name: string;
|
|
1796
|
-
readonly position: number;
|
|
1797
|
-
}[];
|
|
1798
|
-
readonly recurring_deliveries: boolean;
|
|
1799
|
-
readonly fixed_selling_plan: boolean;
|
|
1800
|
-
readonly price_adjustments: readonly {
|
|
1801
|
-
readonly value: string | number;
|
|
1802
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
1803
|
-
readonly position: number;
|
|
1804
|
-
readonly order_count: number | null;
|
|
1805
|
-
}[];
|
|
1806
|
-
};
|
|
1807
|
-
} | null;
|
|
1808
|
-
} & {
|
|
1809
|
-
readonly properties_array: readonly {
|
|
1810
|
-
readonly key: string;
|
|
1811
|
-
readonly value: string | number | boolean | null;
|
|
1812
|
-
}[];
|
|
1813
|
-
readonly private_properties: {
|
|
1814
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1815
|
-
};
|
|
1816
|
-
readonly private_properties_array: readonly {
|
|
1817
|
-
readonly key: string;
|
|
1818
|
-
readonly value: string | number | boolean | null;
|
|
1819
|
-
}[];
|
|
1820
|
-
readonly public_properties: {
|
|
1821
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1822
|
-
};
|
|
1823
|
-
readonly public_properties_array: readonly {
|
|
1824
|
-
readonly key: string;
|
|
1825
|
-
readonly value: string | number | boolean | null;
|
|
1826
|
-
}[];
|
|
1827
|
-
})[];
|
|
1828
|
-
readonly currency: string;
|
|
1829
|
-
readonly items_subtotal_price: number;
|
|
1830
|
-
readonly cart_level_discount_applications: readonly {
|
|
1831
|
-
readonly value: number;
|
|
1832
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1833
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
1834
|
-
readonly title: string;
|
|
1835
|
-
readonly total_allocated_amount: number;
|
|
1836
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1837
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
1838
|
-
readonly description: string | null;
|
|
1839
|
-
}[];
|
|
1840
|
-
} & {
|
|
1841
|
-
readonly attributes_array: readonly {
|
|
1842
|
-
readonly key: string;
|
|
1843
|
-
readonly value: string | number | boolean | null;
|
|
1844
|
-
}[];
|
|
1845
|
-
readonly private_attributes: {
|
|
1846
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1847
|
-
};
|
|
1848
|
-
readonly private_attributes_array: readonly {
|
|
1849
|
-
readonly key: string;
|
|
1850
|
-
readonly value: string | number | boolean | null;
|
|
1851
|
-
}[];
|
|
1852
|
-
readonly public_attributes: {
|
|
1853
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1854
|
-
};
|
|
1855
|
-
readonly public_attributes_array: readonly {
|
|
1856
|
-
readonly key: string;
|
|
1857
|
-
readonly value: string | number | boolean | null;
|
|
1858
|
-
}[];
|
|
1859
|
-
} & {
|
|
1860
|
-
readonly sections: null;
|
|
1861
|
-
}>, InvalidAjaxMethodError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/ParseResult").ParseError | import("@effect/platform/HttpBody").HttpBodyError, import("@effect/platform/HttpClient").HttpClient>;
|
|
1862
|
-
export declare namespace createAjaxCartClient {
|
|
1863
|
-
type Options = {
|
|
1864
|
-
debug?: boolean;
|
|
1865
|
-
};
|
|
1866
|
-
type RequestOptions = {
|
|
1867
|
-
signal?: AbortSignal;
|
|
1868
|
-
};
|
|
1869
|
-
}
|
|
1870
|
-
export declare const validateCart: (cart: unknown) => {
|
|
1871
|
-
readonly total_discount: number;
|
|
1872
|
-
readonly discounts: readonly {
|
|
1873
|
-
readonly title: string;
|
|
1874
|
-
readonly amount: number;
|
|
1875
|
-
}[];
|
|
1876
|
-
readonly requires_shipping: boolean;
|
|
1877
|
-
readonly token: string;
|
|
1878
|
-
readonly note: string | null;
|
|
1879
|
-
readonly attributes: {
|
|
1880
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1881
|
-
};
|
|
1882
|
-
readonly discount_codes: readonly {
|
|
1883
|
-
readonly code: string;
|
|
1884
|
-
readonly applicable: boolean;
|
|
1885
|
-
}[];
|
|
1886
|
-
readonly original_total_price: number;
|
|
1887
|
-
readonly total_price: number;
|
|
1888
|
-
readonly total_weight: number;
|
|
1889
|
-
readonly item_count: number;
|
|
1890
|
-
readonly items: readonly ({
|
|
1891
|
-
readonly key: string;
|
|
1892
|
-
readonly title: string;
|
|
1893
|
-
readonly url: string;
|
|
1894
|
-
readonly price: number;
|
|
1895
|
-
readonly id: string | number;
|
|
1896
|
-
readonly properties: {
|
|
1897
|
-
readonly [x: string]: string | number | boolean | null;
|
|
1898
|
-
};
|
|
1899
|
-
readonly quantity: number;
|
|
1900
|
-
readonly variant_id: string | number;
|
|
1901
|
-
readonly original_price: number;
|
|
1902
|
-
readonly discounted_price: number;
|
|
1903
|
-
readonly line_price: number;
|
|
1904
|
-
readonly original_line_price: number;
|
|
1905
|
-
readonly total_discount: number;
|
|
1906
|
-
readonly discounts: readonly {
|
|
1907
|
-
readonly title: string;
|
|
1908
|
-
readonly amount: number;
|
|
1909
|
-
}[];
|
|
1910
|
-
readonly sku: string | null;
|
|
1911
|
-
readonly grams: number;
|
|
1912
|
-
readonly vendor: string;
|
|
1913
|
-
readonly taxable: boolean;
|
|
1914
|
-
readonly product_id: string | number;
|
|
1915
|
-
readonly product_has_only_default_variant: boolean;
|
|
1916
|
-
readonly gift_card: boolean;
|
|
1917
|
-
readonly final_line_price: number;
|
|
1918
|
-
readonly final_price: number;
|
|
1919
|
-
readonly featured_image?: {
|
|
1920
|
-
readonly aspect_ratio: number;
|
|
1921
|
-
readonly alt: string;
|
|
1922
|
-
readonly height: number;
|
|
1923
|
-
readonly url: string;
|
|
1924
|
-
readonly width: number;
|
|
1925
|
-
} | undefined;
|
|
1926
|
-
readonly image: string;
|
|
1927
|
-
readonly handle: string;
|
|
1928
|
-
readonly requires_shipping: boolean;
|
|
1929
|
-
readonly product_type: string;
|
|
1930
|
-
readonly product_title: string;
|
|
1931
|
-
readonly product_description: string;
|
|
1932
|
-
readonly variant_title: string | null;
|
|
1933
|
-
readonly variant_options: readonly string[];
|
|
1934
|
-
readonly options_with_values: readonly {
|
|
1935
|
-
readonly value: string;
|
|
1936
|
-
readonly name: string;
|
|
1937
|
-
}[];
|
|
1938
|
-
readonly line_level_discount_allocations: readonly {
|
|
1939
|
-
readonly amount: number;
|
|
1940
|
-
readonly discount_application: {
|
|
1941
|
-
readonly value: number;
|
|
1942
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
1943
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
1944
|
-
readonly title: string;
|
|
1945
|
-
readonly total_allocated_amount: number;
|
|
1946
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
1947
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
1948
|
-
readonly description: string | null;
|
|
1949
|
-
};
|
|
1950
|
-
}[];
|
|
1951
|
-
readonly line_level_total_discount: number;
|
|
1952
|
-
readonly quantity_rule?: {
|
|
1953
|
-
readonly min: number;
|
|
1954
|
-
readonly max: number | null;
|
|
1955
|
-
readonly increment: number;
|
|
1956
|
-
} | undefined;
|
|
1957
|
-
readonly has_components: boolean;
|
|
1958
|
-
readonly unit_price?: number | undefined;
|
|
1959
|
-
readonly unit_price_measurement?: {
|
|
1960
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
1961
|
-
readonly quantity_unit: string;
|
|
1962
|
-
readonly quantity_value: number;
|
|
1963
|
-
readonly reference_unit: string;
|
|
1964
|
-
readonly reference_value: number;
|
|
1965
|
-
} | undefined;
|
|
1966
|
-
readonly selling_plan_allocation: {
|
|
1967
|
-
readonly price: number;
|
|
1968
|
-
readonly price_adjustments: readonly {
|
|
1969
|
-
readonly position: number;
|
|
1970
|
-
readonly price: number;
|
|
1971
|
-
}[];
|
|
1972
|
-
readonly compare_at_price: number;
|
|
1973
|
-
readonly per_delivery_price: number;
|
|
1974
|
-
readonly selling_plan: {
|
|
1975
|
-
readonly description: string | null;
|
|
1976
|
-
readonly name: string;
|
|
1977
|
-
readonly id: string | number;
|
|
1978
|
-
readonly options: readonly {
|
|
1979
|
-
readonly value: string;
|
|
1980
|
-
readonly name: string;
|
|
1981
|
-
readonly position: number;
|
|
1982
|
-
}[];
|
|
1983
|
-
readonly recurring_deliveries: boolean;
|
|
1984
|
-
readonly fixed_selling_plan: boolean;
|
|
1985
|
-
readonly price_adjustments: readonly {
|
|
1986
|
-
readonly value: string | number;
|
|
1987
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
1988
|
-
readonly position: number;
|
|
1989
|
-
readonly order_count: number | null;
|
|
1990
|
-
}[];
|
|
1991
|
-
};
|
|
1992
|
-
} | null;
|
|
1993
|
-
} & {
|
|
1994
|
-
readonly properties_array: readonly {
|
|
1995
|
-
readonly key: string;
|
|
1996
|
-
readonly value: string | number | boolean | null;
|
|
1997
|
-
}[];
|
|
1998
|
-
readonly private_properties: {
|
|
1999
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2000
|
-
};
|
|
2001
|
-
readonly private_properties_array: readonly {
|
|
2002
|
-
readonly key: string;
|
|
2003
|
-
readonly value: string | number | boolean | null;
|
|
2004
|
-
}[];
|
|
2005
|
-
readonly public_properties: {
|
|
2006
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2007
|
-
};
|
|
2008
|
-
readonly public_properties_array: readonly {
|
|
2009
|
-
readonly key: string;
|
|
2010
|
-
readonly value: string | number | boolean | null;
|
|
2011
|
-
}[];
|
|
2012
|
-
})[];
|
|
2013
|
-
readonly currency: string;
|
|
2014
|
-
readonly items_subtotal_price: number;
|
|
2015
|
-
readonly cart_level_discount_applications: readonly {
|
|
2016
|
-
readonly value: number;
|
|
2017
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2018
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
2019
|
-
readonly title: string;
|
|
2020
|
-
readonly total_allocated_amount: number;
|
|
2021
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2022
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
2023
|
-
readonly description: string | null;
|
|
2024
|
-
}[];
|
|
2025
|
-
} & {
|
|
2026
|
-
readonly attributes_array: readonly {
|
|
2027
|
-
readonly key: string;
|
|
2028
|
-
readonly value: string | number | boolean | null;
|
|
2029
|
-
}[];
|
|
2030
|
-
readonly private_attributes: {
|
|
2031
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2032
|
-
};
|
|
2033
|
-
readonly private_attributes_array: readonly {
|
|
2034
|
-
readonly key: string;
|
|
2035
|
-
readonly value: string | number | boolean | null;
|
|
2036
|
-
}[];
|
|
2037
|
-
readonly public_attributes: {
|
|
2038
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2039
|
-
};
|
|
2040
|
-
readonly public_attributes_array: readonly {
|
|
2041
|
-
readonly key: string;
|
|
2042
|
-
readonly value: string | number | boolean | null;
|
|
2043
|
-
}[];
|
|
2044
|
-
};
|
|
2045
|
-
export declare const createAjaxCartApi: ({ debug }: {
|
|
2046
|
-
debug?: boolean | undefined;
|
|
2047
|
-
}) => {
|
|
2048
|
-
add: (input: add.Input, options?: createAjaxCartClient.RequestOptions) => Promise<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
2049
|
-
readonly items: readonly ({
|
|
2050
|
-
readonly key: string;
|
|
2051
|
-
readonly title: string;
|
|
2052
|
-
readonly url: string;
|
|
2053
|
-
readonly price: number;
|
|
2054
|
-
readonly id: string | number;
|
|
2055
|
-
readonly properties: {
|
|
2056
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2057
|
-
};
|
|
2058
|
-
readonly quantity: number;
|
|
2059
|
-
readonly variant_id: string | number;
|
|
2060
|
-
readonly original_price: number;
|
|
2061
|
-
readonly discounted_price: number;
|
|
2062
|
-
readonly line_price: number;
|
|
2063
|
-
readonly original_line_price: number;
|
|
2064
|
-
readonly total_discount: number;
|
|
2065
|
-
readonly discounts: readonly {
|
|
2066
|
-
readonly title: string;
|
|
2067
|
-
readonly amount: number;
|
|
2068
|
-
}[];
|
|
2069
|
-
readonly sku: string | null;
|
|
2070
|
-
readonly grams: number;
|
|
2071
|
-
readonly vendor: string;
|
|
2072
|
-
readonly taxable: boolean;
|
|
2073
|
-
readonly product_id: string | number;
|
|
2074
|
-
readonly product_has_only_default_variant: boolean;
|
|
2075
|
-
readonly gift_card: boolean;
|
|
2076
|
-
readonly final_line_price: number;
|
|
2077
|
-
readonly final_price: number;
|
|
2078
|
-
readonly featured_image?: {
|
|
2079
|
-
readonly aspect_ratio: number;
|
|
2080
|
-
readonly alt: string;
|
|
2081
|
-
readonly height: number;
|
|
2082
|
-
readonly url: string;
|
|
2083
|
-
readonly width: number;
|
|
2084
|
-
} | undefined;
|
|
2085
|
-
readonly image: string;
|
|
2086
|
-
readonly handle: string;
|
|
2087
|
-
readonly requires_shipping: boolean;
|
|
2088
|
-
readonly product_type: string;
|
|
2089
|
-
readonly product_title: string;
|
|
2090
|
-
readonly product_description: string;
|
|
2091
|
-
readonly variant_title: string | null;
|
|
2092
|
-
readonly variant_options: readonly string[];
|
|
2093
|
-
readonly options_with_values: readonly {
|
|
2094
|
-
readonly value: string;
|
|
2095
|
-
readonly name: string;
|
|
2096
|
-
}[];
|
|
2097
|
-
readonly line_level_discount_allocations: readonly {
|
|
2098
|
-
readonly amount: number;
|
|
2099
|
-
readonly discount_application: {
|
|
2100
|
-
readonly value: number;
|
|
2101
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2102
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
2103
|
-
readonly title: string;
|
|
2104
|
-
readonly total_allocated_amount: number;
|
|
2105
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2106
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
2107
|
-
readonly description: string | null;
|
|
2108
|
-
};
|
|
2109
|
-
}[];
|
|
2110
|
-
readonly line_level_total_discount: number;
|
|
2111
|
-
readonly quantity_rule?: {
|
|
2112
|
-
readonly min: number;
|
|
2113
|
-
readonly max: number | null;
|
|
2114
|
-
readonly increment: number;
|
|
2115
|
-
} | undefined;
|
|
2116
|
-
readonly has_components: boolean;
|
|
2117
|
-
readonly unit_price?: number | undefined;
|
|
2118
|
-
readonly unit_price_measurement?: {
|
|
2119
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
2120
|
-
readonly quantity_unit: string;
|
|
2121
|
-
readonly quantity_value: number;
|
|
2122
|
-
readonly reference_unit: string;
|
|
2123
|
-
readonly reference_value: number;
|
|
2124
|
-
} | undefined;
|
|
2125
|
-
readonly selling_plan_allocation: {
|
|
2126
|
-
readonly price: number;
|
|
2127
|
-
readonly price_adjustments: readonly {
|
|
2128
|
-
readonly position: number;
|
|
2129
|
-
readonly price: number;
|
|
2130
|
-
}[];
|
|
2131
|
-
readonly compare_at_price: number;
|
|
2132
|
-
readonly per_delivery_price: number;
|
|
2133
|
-
readonly selling_plan: {
|
|
2134
|
-
readonly description: string | null;
|
|
2135
|
-
readonly name: string;
|
|
2136
|
-
readonly id: string | number;
|
|
2137
|
-
readonly options: readonly {
|
|
2138
|
-
readonly value: string;
|
|
2139
|
-
readonly name: string;
|
|
2140
|
-
readonly position: number;
|
|
2141
|
-
}[];
|
|
2142
|
-
readonly recurring_deliveries: boolean;
|
|
2143
|
-
readonly fixed_selling_plan: boolean;
|
|
2144
|
-
readonly price_adjustments: readonly {
|
|
2145
|
-
readonly value: string | number;
|
|
2146
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
2147
|
-
readonly position: number;
|
|
2148
|
-
readonly order_count: number | null;
|
|
2149
|
-
}[];
|
|
2150
|
-
};
|
|
2151
|
-
} | null;
|
|
2152
|
-
} & {
|
|
2153
|
-
readonly properties_array: readonly {
|
|
2154
|
-
readonly key: string;
|
|
2155
|
-
readonly value: string | number | boolean | null;
|
|
2156
|
-
}[];
|
|
2157
|
-
readonly private_properties: {
|
|
2158
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2159
|
-
};
|
|
2160
|
-
readonly private_properties_array: readonly {
|
|
2161
|
-
readonly key: string;
|
|
2162
|
-
readonly value: string | number | boolean | null;
|
|
2163
|
-
}[];
|
|
2164
|
-
readonly public_properties: {
|
|
2165
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2166
|
-
};
|
|
2167
|
-
readonly public_properties_array: readonly {
|
|
2168
|
-
readonly key: string;
|
|
2169
|
-
readonly value: string | number | boolean | null;
|
|
2170
|
-
}[];
|
|
2171
|
-
})[];
|
|
2172
|
-
} & {
|
|
2173
|
-
readonly sections: {
|
|
2174
|
-
readonly [x: string]: string | null;
|
|
2175
|
-
};
|
|
2176
|
-
}> | AjaxClientResponse<{
|
|
2177
|
-
readonly items: readonly ({
|
|
2178
|
-
readonly key: string;
|
|
2179
|
-
readonly title: string;
|
|
2180
|
-
readonly url: string;
|
|
2181
|
-
readonly price: number;
|
|
2182
|
-
readonly id: string | number;
|
|
2183
|
-
readonly properties: {
|
|
2184
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2185
|
-
};
|
|
2186
|
-
readonly quantity: number;
|
|
2187
|
-
readonly variant_id: string | number;
|
|
2188
|
-
readonly original_price: number;
|
|
2189
|
-
readonly discounted_price: number;
|
|
2190
|
-
readonly line_price: number;
|
|
2191
|
-
readonly original_line_price: number;
|
|
2192
|
-
readonly total_discount: number;
|
|
2193
|
-
readonly discounts: readonly {
|
|
2194
|
-
readonly title: string;
|
|
2195
|
-
readonly amount: number;
|
|
2196
|
-
}[];
|
|
2197
|
-
readonly sku: string | null;
|
|
2198
|
-
readonly grams: number;
|
|
2199
|
-
readonly vendor: string;
|
|
2200
|
-
readonly taxable: boolean;
|
|
2201
|
-
readonly product_id: string | number;
|
|
2202
|
-
readonly product_has_only_default_variant: boolean;
|
|
2203
|
-
readonly gift_card: boolean;
|
|
2204
|
-
readonly final_line_price: number;
|
|
2205
|
-
readonly final_price: number;
|
|
2206
|
-
readonly featured_image?: {
|
|
2207
|
-
readonly aspect_ratio: number;
|
|
2208
|
-
readonly alt: string;
|
|
2209
|
-
readonly height: number;
|
|
2210
|
-
readonly url: string;
|
|
2211
|
-
readonly width: number;
|
|
2212
|
-
} | undefined;
|
|
2213
|
-
readonly image: string;
|
|
2214
|
-
readonly handle: string;
|
|
2215
|
-
readonly requires_shipping: boolean;
|
|
2216
|
-
readonly product_type: string;
|
|
2217
|
-
readonly product_title: string;
|
|
2218
|
-
readonly product_description: string;
|
|
2219
|
-
readonly variant_title: string | null;
|
|
2220
|
-
readonly variant_options: readonly string[];
|
|
2221
|
-
readonly options_with_values: readonly {
|
|
2222
|
-
readonly value: string;
|
|
2223
|
-
readonly name: string;
|
|
2224
|
-
}[];
|
|
2225
|
-
readonly line_level_discount_allocations: readonly {
|
|
2226
|
-
readonly amount: number;
|
|
2227
|
-
readonly discount_application: {
|
|
2228
|
-
readonly value: number;
|
|
2229
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2230
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
2231
|
-
readonly title: string;
|
|
2232
|
-
readonly total_allocated_amount: number;
|
|
2233
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2234
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
2235
|
-
readonly description: string | null;
|
|
2236
|
-
};
|
|
2237
|
-
}[];
|
|
2238
|
-
readonly line_level_total_discount: number;
|
|
2239
|
-
readonly quantity_rule?: {
|
|
2240
|
-
readonly min: number;
|
|
2241
|
-
readonly max: number | null;
|
|
2242
|
-
readonly increment: number;
|
|
2243
|
-
} | undefined;
|
|
2244
|
-
readonly has_components: boolean;
|
|
2245
|
-
readonly unit_price?: number | undefined;
|
|
2246
|
-
readonly unit_price_measurement?: {
|
|
2247
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
2248
|
-
readonly quantity_unit: string;
|
|
2249
|
-
readonly quantity_value: number;
|
|
2250
|
-
readonly reference_unit: string;
|
|
2251
|
-
readonly reference_value: number;
|
|
2252
|
-
} | undefined;
|
|
2253
|
-
readonly selling_plan_allocation: {
|
|
2254
|
-
readonly price: number;
|
|
2255
|
-
readonly price_adjustments: readonly {
|
|
2256
|
-
readonly position: number;
|
|
2257
|
-
readonly price: number;
|
|
2258
|
-
}[];
|
|
2259
|
-
readonly compare_at_price: number;
|
|
2260
|
-
readonly per_delivery_price: number;
|
|
2261
|
-
readonly selling_plan: {
|
|
2262
|
-
readonly description: string | null;
|
|
2263
|
-
readonly name: string;
|
|
2264
|
-
readonly id: string | number;
|
|
2265
|
-
readonly options: readonly {
|
|
2266
|
-
readonly value: string;
|
|
2267
|
-
readonly name: string;
|
|
2268
|
-
readonly position: number;
|
|
2269
|
-
}[];
|
|
2270
|
-
readonly recurring_deliveries: boolean;
|
|
2271
|
-
readonly fixed_selling_plan: boolean;
|
|
2272
|
-
readonly price_adjustments: readonly {
|
|
2273
|
-
readonly value: string | number;
|
|
2274
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
2275
|
-
readonly position: number;
|
|
2276
|
-
readonly order_count: number | null;
|
|
2277
|
-
}[];
|
|
2278
|
-
};
|
|
2279
|
-
} | null;
|
|
2280
|
-
} & {
|
|
2281
|
-
readonly properties_array: readonly {
|
|
2282
|
-
readonly key: string;
|
|
2283
|
-
readonly value: string | number | boolean | null;
|
|
2284
|
-
}[];
|
|
2285
|
-
readonly private_properties: {
|
|
2286
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2287
|
-
};
|
|
2288
|
-
readonly private_properties_array: readonly {
|
|
2289
|
-
readonly key: string;
|
|
2290
|
-
readonly value: string | number | boolean | null;
|
|
2291
|
-
}[];
|
|
2292
|
-
readonly public_properties: {
|
|
2293
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2294
|
-
};
|
|
2295
|
-
readonly public_properties_array: readonly {
|
|
2296
|
-
readonly key: string;
|
|
2297
|
-
readonly value: string | number | boolean | null;
|
|
2298
|
-
}[];
|
|
2299
|
-
})[];
|
|
2300
|
-
} & {
|
|
2301
|
-
readonly sections: null;
|
|
2302
|
-
}>>;
|
|
2303
|
-
change: (input: change.Input, options?: createAjaxCartClient.RequestOptions) => Promise<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
2304
|
-
readonly total_discount: number;
|
|
2305
|
-
readonly discounts: readonly {
|
|
2306
|
-
readonly title: string;
|
|
2307
|
-
readonly amount: number;
|
|
2308
|
-
}[];
|
|
2309
|
-
readonly requires_shipping: boolean;
|
|
2310
|
-
readonly token: string;
|
|
2311
|
-
readonly note: string | null;
|
|
2312
|
-
readonly attributes: {
|
|
2313
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2314
|
-
};
|
|
2315
|
-
readonly discount_codes: readonly {
|
|
2316
|
-
readonly code: string;
|
|
2317
|
-
readonly applicable: boolean;
|
|
2318
|
-
}[];
|
|
2319
|
-
readonly original_total_price: number;
|
|
2320
|
-
readonly total_price: number;
|
|
2321
|
-
readonly total_weight: number;
|
|
2322
|
-
readonly item_count: number;
|
|
2323
|
-
readonly items: readonly ({
|
|
2324
|
-
readonly key: string;
|
|
2325
|
-
readonly title: string;
|
|
2326
|
-
readonly url: string;
|
|
2327
|
-
readonly price: number;
|
|
2328
|
-
readonly id: string | number;
|
|
2329
|
-
readonly properties: {
|
|
2330
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2331
|
-
};
|
|
2332
|
-
readonly quantity: number;
|
|
2333
|
-
readonly variant_id: string | number;
|
|
2334
|
-
readonly original_price: number;
|
|
2335
|
-
readonly discounted_price: number;
|
|
2336
|
-
readonly line_price: number;
|
|
2337
|
-
readonly original_line_price: number;
|
|
2338
|
-
readonly total_discount: number;
|
|
2339
|
-
readonly discounts: readonly {
|
|
2340
|
-
readonly title: string;
|
|
2341
|
-
readonly amount: number;
|
|
2342
|
-
}[];
|
|
2343
|
-
readonly sku: string | null;
|
|
2344
|
-
readonly grams: number;
|
|
2345
|
-
readonly vendor: string;
|
|
2346
|
-
readonly taxable: boolean;
|
|
2347
|
-
readonly product_id: string | number;
|
|
2348
|
-
readonly product_has_only_default_variant: boolean;
|
|
2349
|
-
readonly gift_card: boolean;
|
|
2350
|
-
readonly final_line_price: number;
|
|
2351
|
-
readonly final_price: number;
|
|
2352
|
-
readonly featured_image?: {
|
|
2353
|
-
readonly aspect_ratio: number;
|
|
2354
|
-
readonly alt: string;
|
|
2355
|
-
readonly height: number;
|
|
2356
|
-
readonly url: string;
|
|
2357
|
-
readonly width: number;
|
|
2358
|
-
} | undefined;
|
|
2359
|
-
readonly image: string;
|
|
2360
|
-
readonly handle: string;
|
|
2361
|
-
readonly requires_shipping: boolean;
|
|
2362
|
-
readonly product_type: string;
|
|
2363
|
-
readonly product_title: string;
|
|
2364
|
-
readonly product_description: string;
|
|
2365
|
-
readonly variant_title: string | null;
|
|
2366
|
-
readonly variant_options: readonly string[];
|
|
2367
|
-
readonly options_with_values: readonly {
|
|
2368
|
-
readonly value: string;
|
|
2369
|
-
readonly name: string;
|
|
2370
|
-
}[];
|
|
2371
|
-
readonly line_level_discount_allocations: readonly {
|
|
2372
|
-
readonly amount: number;
|
|
2373
|
-
readonly discount_application: {
|
|
2374
|
-
readonly value: number;
|
|
2375
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2376
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
2377
|
-
readonly title: string;
|
|
2378
|
-
readonly total_allocated_amount: number;
|
|
2379
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2380
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
2381
|
-
readonly description: string | null;
|
|
2382
|
-
};
|
|
2383
|
-
}[];
|
|
2384
|
-
readonly line_level_total_discount: number;
|
|
2385
|
-
readonly quantity_rule?: {
|
|
2386
|
-
readonly min: number;
|
|
2387
|
-
readonly max: number | null;
|
|
2388
|
-
readonly increment: number;
|
|
2389
|
-
} | undefined;
|
|
2390
|
-
readonly has_components: boolean;
|
|
2391
|
-
readonly unit_price?: number | undefined;
|
|
2392
|
-
readonly unit_price_measurement?: {
|
|
2393
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
2394
|
-
readonly quantity_unit: string;
|
|
2395
|
-
readonly quantity_value: number;
|
|
2396
|
-
readonly reference_unit: string;
|
|
2397
|
-
readonly reference_value: number;
|
|
2398
|
-
} | undefined;
|
|
2399
|
-
readonly selling_plan_allocation: {
|
|
2400
|
-
readonly price: number;
|
|
2401
|
-
readonly price_adjustments: readonly {
|
|
2402
|
-
readonly position: number;
|
|
2403
|
-
readonly price: number;
|
|
2404
|
-
}[];
|
|
2405
|
-
readonly compare_at_price: number;
|
|
2406
|
-
readonly per_delivery_price: number;
|
|
2407
|
-
readonly selling_plan: {
|
|
2408
|
-
readonly description: string | null;
|
|
2409
|
-
readonly name: string;
|
|
2410
|
-
readonly id: string | number;
|
|
2411
|
-
readonly options: readonly {
|
|
2412
|
-
readonly value: string;
|
|
2413
|
-
readonly name: string;
|
|
2414
|
-
readonly position: number;
|
|
2415
|
-
}[];
|
|
2416
|
-
readonly recurring_deliveries: boolean;
|
|
2417
|
-
readonly fixed_selling_plan: boolean;
|
|
2418
|
-
readonly price_adjustments: readonly {
|
|
2419
|
-
readonly value: string | number;
|
|
2420
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
2421
|
-
readonly position: number;
|
|
2422
|
-
readonly order_count: number | null;
|
|
2423
|
-
}[];
|
|
2424
|
-
};
|
|
2425
|
-
} | null;
|
|
2426
|
-
} & {
|
|
2427
|
-
readonly properties_array: readonly {
|
|
2428
|
-
readonly key: string;
|
|
2429
|
-
readonly value: string | number | boolean | null;
|
|
2430
|
-
}[];
|
|
2431
|
-
readonly private_properties: {
|
|
2432
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2433
|
-
};
|
|
2434
|
-
readonly private_properties_array: readonly {
|
|
2435
|
-
readonly key: string;
|
|
2436
|
-
readonly value: string | number | boolean | null;
|
|
2437
|
-
}[];
|
|
2438
|
-
readonly public_properties: {
|
|
2439
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2440
|
-
};
|
|
2441
|
-
readonly public_properties_array: readonly {
|
|
2442
|
-
readonly key: string;
|
|
2443
|
-
readonly value: string | number | boolean | null;
|
|
2444
|
-
}[];
|
|
2445
|
-
})[];
|
|
2446
|
-
readonly currency: string;
|
|
2447
|
-
readonly items_subtotal_price: number;
|
|
2448
|
-
readonly cart_level_discount_applications: readonly {
|
|
2449
|
-
readonly value: number;
|
|
2450
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2451
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
2452
|
-
readonly title: string;
|
|
2453
|
-
readonly total_allocated_amount: number;
|
|
2454
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2455
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
2456
|
-
readonly description: string | null;
|
|
2457
|
-
}[];
|
|
2458
|
-
} & {
|
|
2459
|
-
readonly attributes_array: readonly {
|
|
2460
|
-
readonly key: string;
|
|
2461
|
-
readonly value: string | number | boolean | null;
|
|
2462
|
-
}[];
|
|
2463
|
-
readonly private_attributes: {
|
|
2464
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2465
|
-
};
|
|
2466
|
-
readonly private_attributes_array: readonly {
|
|
2467
|
-
readonly key: string;
|
|
2468
|
-
readonly value: string | number | boolean | null;
|
|
2469
|
-
}[];
|
|
2470
|
-
readonly public_attributes: {
|
|
2471
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2472
|
-
};
|
|
2473
|
-
readonly public_attributes_array: readonly {
|
|
2474
|
-
readonly key: string;
|
|
2475
|
-
readonly value: string | number | boolean | null;
|
|
2476
|
-
}[];
|
|
2477
|
-
} & {
|
|
2478
|
-
readonly sections: {
|
|
2479
|
-
readonly [x: string]: string | null;
|
|
2480
|
-
};
|
|
2481
|
-
}> | AjaxClientResponse<{
|
|
2482
|
-
readonly total_discount: number;
|
|
2483
|
-
readonly discounts: readonly {
|
|
2484
|
-
readonly title: string;
|
|
2485
|
-
readonly amount: number;
|
|
2486
|
-
}[];
|
|
2487
|
-
readonly requires_shipping: boolean;
|
|
2488
|
-
readonly token: string;
|
|
2489
|
-
readonly note: string | null;
|
|
2490
|
-
readonly attributes: {
|
|
2491
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2492
|
-
};
|
|
2493
|
-
readonly discount_codes: readonly {
|
|
2494
|
-
readonly code: string;
|
|
2495
|
-
readonly applicable: boolean;
|
|
2496
|
-
}[];
|
|
2497
|
-
readonly original_total_price: number;
|
|
2498
|
-
readonly total_price: number;
|
|
2499
|
-
readonly total_weight: number;
|
|
2500
|
-
readonly item_count: number;
|
|
2501
|
-
readonly items: readonly ({
|
|
2502
|
-
readonly key: string;
|
|
2503
|
-
readonly title: string;
|
|
2504
|
-
readonly url: string;
|
|
2505
|
-
readonly price: number;
|
|
2506
|
-
readonly id: string | number;
|
|
2507
|
-
readonly properties: {
|
|
2508
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2509
|
-
};
|
|
2510
|
-
readonly quantity: number;
|
|
2511
|
-
readonly variant_id: string | number;
|
|
2512
|
-
readonly original_price: number;
|
|
2513
|
-
readonly discounted_price: number;
|
|
2514
|
-
readonly line_price: number;
|
|
2515
|
-
readonly original_line_price: number;
|
|
2516
|
-
readonly total_discount: number;
|
|
2517
|
-
readonly discounts: readonly {
|
|
2518
|
-
readonly title: string;
|
|
2519
|
-
readonly amount: number;
|
|
2520
|
-
}[];
|
|
2521
|
-
readonly sku: string | null;
|
|
2522
|
-
readonly grams: number;
|
|
2523
|
-
readonly vendor: string;
|
|
2524
|
-
readonly taxable: boolean;
|
|
2525
|
-
readonly product_id: string | number;
|
|
2526
|
-
readonly product_has_only_default_variant: boolean;
|
|
2527
|
-
readonly gift_card: boolean;
|
|
2528
|
-
readonly final_line_price: number;
|
|
2529
|
-
readonly final_price: number;
|
|
2530
|
-
readonly featured_image?: {
|
|
2531
|
-
readonly aspect_ratio: number;
|
|
2532
|
-
readonly alt: string;
|
|
2533
|
-
readonly height: number;
|
|
2534
|
-
readonly url: string;
|
|
2535
|
-
readonly width: number;
|
|
2536
|
-
} | undefined;
|
|
2537
|
-
readonly image: string;
|
|
2538
|
-
readonly handle: string;
|
|
2539
|
-
readonly requires_shipping: boolean;
|
|
2540
|
-
readonly product_type: string;
|
|
2541
|
-
readonly product_title: string;
|
|
2542
|
-
readonly product_description: string;
|
|
2543
|
-
readonly variant_title: string | null;
|
|
2544
|
-
readonly variant_options: readonly string[];
|
|
2545
|
-
readonly options_with_values: readonly {
|
|
2546
|
-
readonly value: string;
|
|
2547
|
-
readonly name: string;
|
|
2548
|
-
}[];
|
|
2549
|
-
readonly line_level_discount_allocations: readonly {
|
|
2550
|
-
readonly amount: number;
|
|
2551
|
-
readonly discount_application: {
|
|
2552
|
-
readonly value: number;
|
|
2553
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2554
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
2555
|
-
readonly title: string;
|
|
2556
|
-
readonly total_allocated_amount: number;
|
|
2557
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2558
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
2559
|
-
readonly description: string | null;
|
|
2560
|
-
};
|
|
2561
|
-
}[];
|
|
2562
|
-
readonly line_level_total_discount: number;
|
|
2563
|
-
readonly quantity_rule?: {
|
|
2564
|
-
readonly min: number;
|
|
2565
|
-
readonly max: number | null;
|
|
2566
|
-
readonly increment: number;
|
|
2567
|
-
} | undefined;
|
|
2568
|
-
readonly has_components: boolean;
|
|
2569
|
-
readonly unit_price?: number | undefined;
|
|
2570
|
-
readonly unit_price_measurement?: {
|
|
2571
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
2572
|
-
readonly quantity_unit: string;
|
|
2573
|
-
readonly quantity_value: number;
|
|
2574
|
-
readonly reference_unit: string;
|
|
2575
|
-
readonly reference_value: number;
|
|
2576
|
-
} | undefined;
|
|
2577
|
-
readonly selling_plan_allocation: {
|
|
2578
|
-
readonly price: number;
|
|
2579
|
-
readonly price_adjustments: readonly {
|
|
2580
|
-
readonly position: number;
|
|
2581
|
-
readonly price: number;
|
|
2582
|
-
}[];
|
|
2583
|
-
readonly compare_at_price: number;
|
|
2584
|
-
readonly per_delivery_price: number;
|
|
2585
|
-
readonly selling_plan: {
|
|
2586
|
-
readonly description: string | null;
|
|
2587
|
-
readonly name: string;
|
|
2588
|
-
readonly id: string | number;
|
|
2589
|
-
readonly options: readonly {
|
|
2590
|
-
readonly value: string;
|
|
2591
|
-
readonly name: string;
|
|
2592
|
-
readonly position: number;
|
|
2593
|
-
}[];
|
|
2594
|
-
readonly recurring_deliveries: boolean;
|
|
2595
|
-
readonly fixed_selling_plan: boolean;
|
|
2596
|
-
readonly price_adjustments: readonly {
|
|
2597
|
-
readonly value: string | number;
|
|
2598
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
2599
|
-
readonly position: number;
|
|
2600
|
-
readonly order_count: number | null;
|
|
2601
|
-
}[];
|
|
2602
|
-
};
|
|
2603
|
-
} | null;
|
|
2604
|
-
} & {
|
|
2605
|
-
readonly properties_array: readonly {
|
|
2606
|
-
readonly key: string;
|
|
2607
|
-
readonly value: string | number | boolean | null;
|
|
2608
|
-
}[];
|
|
2609
|
-
readonly private_properties: {
|
|
2610
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2611
|
-
};
|
|
2612
|
-
readonly private_properties_array: readonly {
|
|
2613
|
-
readonly key: string;
|
|
2614
|
-
readonly value: string | number | boolean | null;
|
|
2615
|
-
}[];
|
|
2616
|
-
readonly public_properties: {
|
|
2617
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2618
|
-
};
|
|
2619
|
-
readonly public_properties_array: readonly {
|
|
2620
|
-
readonly key: string;
|
|
2621
|
-
readonly value: string | number | boolean | null;
|
|
2622
|
-
}[];
|
|
2623
|
-
})[];
|
|
2624
|
-
readonly currency: string;
|
|
2625
|
-
readonly items_subtotal_price: number;
|
|
2626
|
-
readonly cart_level_discount_applications: readonly {
|
|
2627
|
-
readonly value: number;
|
|
2628
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2629
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
2630
|
-
readonly title: string;
|
|
2631
|
-
readonly total_allocated_amount: number;
|
|
2632
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2633
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
2634
|
-
readonly description: string | null;
|
|
2635
|
-
}[];
|
|
2636
|
-
} & {
|
|
2637
|
-
readonly attributes_array: readonly {
|
|
2638
|
-
readonly key: string;
|
|
2639
|
-
readonly value: string | number | boolean | null;
|
|
2640
|
-
}[];
|
|
2641
|
-
readonly private_attributes: {
|
|
2642
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2643
|
-
};
|
|
2644
|
-
readonly private_attributes_array: readonly {
|
|
2645
|
-
readonly key: string;
|
|
2646
|
-
readonly value: string | number | boolean | null;
|
|
2647
|
-
}[];
|
|
2648
|
-
readonly public_attributes: {
|
|
2649
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2650
|
-
};
|
|
2651
|
-
readonly public_attributes_array: readonly {
|
|
2652
|
-
readonly key: string;
|
|
2653
|
-
readonly value: string | number | boolean | null;
|
|
2654
|
-
}[];
|
|
2655
|
-
} & {
|
|
2656
|
-
readonly sections: null;
|
|
2657
|
-
}>>;
|
|
2658
|
-
clear: (input: clear.Input, options?: createAjaxCartClient.RequestOptions) => Promise<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
2659
|
-
readonly total_discount: number;
|
|
2660
|
-
readonly discounts: readonly {
|
|
2661
|
-
readonly title: string;
|
|
2662
|
-
readonly amount: number;
|
|
2663
|
-
}[];
|
|
2664
|
-
readonly requires_shipping: boolean;
|
|
2665
|
-
readonly token: string;
|
|
2666
|
-
readonly note: string | null;
|
|
2667
|
-
readonly attributes: {
|
|
2668
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2669
|
-
};
|
|
2670
|
-
readonly discount_codes: readonly {
|
|
2671
|
-
readonly code: string;
|
|
2672
|
-
readonly applicable: boolean;
|
|
2673
|
-
}[];
|
|
2674
|
-
readonly original_total_price: number;
|
|
2675
|
-
readonly total_price: number;
|
|
2676
|
-
readonly total_weight: number;
|
|
2677
|
-
readonly item_count: number;
|
|
2678
|
-
readonly items: readonly ({
|
|
2679
|
-
readonly key: string;
|
|
1194
|
+
};
|
|
1195
|
+
export declare const createAjaxCartApi: ({ debug }: {
|
|
1196
|
+
debug?: boolean | undefined;
|
|
1197
|
+
}) => {
|
|
1198
|
+
add: (input: add.Input, options?: createAjaxCartClient.RequestOptions) => Promise<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
1199
|
+
readonly items: readonly ({
|
|
1200
|
+
readonly key: string;
|
|
2680
1201
|
readonly title: string;
|
|
2681
1202
|
readonly url: string;
|
|
2682
1203
|
readonly price: number;
|
|
@@ -2798,42 +1319,8 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
2798
1319
|
readonly value: string | number | boolean | null;
|
|
2799
1320
|
}[];
|
|
2800
1321
|
})[];
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
readonly cart_level_discount_applications: readonly {
|
|
2804
|
-
readonly value: number;
|
|
2805
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
2806
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
2807
|
-
readonly title: string;
|
|
2808
|
-
readonly total_allocated_amount: number;
|
|
2809
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
2810
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
2811
|
-
readonly description: string | null;
|
|
2812
|
-
}[];
|
|
2813
|
-
} & {
|
|
2814
|
-
readonly attributes_array: readonly {
|
|
2815
|
-
readonly key: string;
|
|
2816
|
-
readonly value: string | number | boolean | null;
|
|
2817
|
-
}[];
|
|
2818
|
-
readonly private_attributes: {
|
|
2819
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2820
|
-
};
|
|
2821
|
-
readonly private_attributes_array: readonly {
|
|
2822
|
-
readonly key: string;
|
|
2823
|
-
readonly value: string | number | boolean | null;
|
|
2824
|
-
}[];
|
|
2825
|
-
readonly public_attributes: {
|
|
2826
|
-
readonly [x: string]: string | number | boolean | null;
|
|
2827
|
-
};
|
|
2828
|
-
readonly public_attributes_array: readonly {
|
|
2829
|
-
readonly key: string;
|
|
2830
|
-
readonly value: string | number | boolean | null;
|
|
2831
|
-
}[];
|
|
2832
|
-
} & {
|
|
2833
|
-
readonly sections: {
|
|
2834
|
-
readonly [x: string]: string | null;
|
|
2835
|
-
};
|
|
2836
|
-
}> | AjaxClientResponse<{
|
|
1322
|
+
}>>;
|
|
1323
|
+
change: (input: change.Input, options?: createAjaxCartClient.RequestOptions) => Promise<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
2837
1324
|
readonly total_discount: number;
|
|
2838
1325
|
readonly discounts: readonly {
|
|
2839
1326
|
readonly title: string;
|
|
@@ -3007,10 +1494,8 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
3007
1494
|
readonly key: string;
|
|
3008
1495
|
readonly value: string | number | boolean | null;
|
|
3009
1496
|
}[];
|
|
3010
|
-
} & {
|
|
3011
|
-
readonly sections: null;
|
|
3012
1497
|
}>>;
|
|
3013
|
-
|
|
1498
|
+
clear: (input: clear.Input, options?: createAjaxCartClient.RequestOptions) => Promise<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
3014
1499
|
readonly total_discount: number;
|
|
3015
1500
|
readonly discounts: readonly {
|
|
3016
1501
|
readonly title: string;
|
|
@@ -3184,11 +1669,8 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
3184
1669
|
readonly key: string;
|
|
3185
1670
|
readonly value: string | number | boolean | null;
|
|
3186
1671
|
}[];
|
|
3187
|
-
}
|
|
3188
|
-
|
|
3189
|
-
readonly [x: string]: string | null;
|
|
3190
|
-
};
|
|
3191
|
-
}> | AjaxClientResponse<{
|
|
1672
|
+
}>>;
|
|
1673
|
+
get: (input: get.Input, options?: createAjaxCartClient.RequestOptions) => Promise<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
3192
1674
|
readonly total_discount: number;
|
|
3193
1675
|
readonly discounts: readonly {
|
|
3194
1676
|
readonly title: string;
|
|
@@ -3362,8 +1844,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
3362
1844
|
readonly key: string;
|
|
3363
1845
|
readonly value: string | number | boolean | null;
|
|
3364
1846
|
}[];
|
|
3365
|
-
} & {
|
|
3366
|
-
readonly sections: null;
|
|
3367
1847
|
}>>;
|
|
3368
1848
|
update: (input: update.Input, options?: createAjaxCartClient.RequestOptions) => Promise<AjaxClientResponse<undefined> | AjaxClientResponse<{
|
|
3369
1849
|
readonly total_discount: number;
|
|
@@ -3539,186 +2019,6 @@ export declare const createAjaxCartApi: ({ debug }: {
|
|
|
3539
2019
|
readonly key: string;
|
|
3540
2020
|
readonly value: string | number | boolean | null;
|
|
3541
2021
|
}[];
|
|
3542
|
-
} & {
|
|
3543
|
-
readonly sections: {
|
|
3544
|
-
readonly [x: string]: string | null;
|
|
3545
|
-
};
|
|
3546
|
-
}> | AjaxClientResponse<{
|
|
3547
|
-
readonly total_discount: number;
|
|
3548
|
-
readonly discounts: readonly {
|
|
3549
|
-
readonly title: string;
|
|
3550
|
-
readonly amount: number;
|
|
3551
|
-
}[];
|
|
3552
|
-
readonly requires_shipping: boolean;
|
|
3553
|
-
readonly token: string;
|
|
3554
|
-
readonly note: string | null;
|
|
3555
|
-
readonly attributes: {
|
|
3556
|
-
readonly [x: string]: string | number | boolean | null;
|
|
3557
|
-
};
|
|
3558
|
-
readonly discount_codes: readonly {
|
|
3559
|
-
readonly code: string;
|
|
3560
|
-
readonly applicable: boolean;
|
|
3561
|
-
}[];
|
|
3562
|
-
readonly original_total_price: number;
|
|
3563
|
-
readonly total_price: number;
|
|
3564
|
-
readonly total_weight: number;
|
|
3565
|
-
readonly item_count: number;
|
|
3566
|
-
readonly items: readonly ({
|
|
3567
|
-
readonly key: string;
|
|
3568
|
-
readonly title: string;
|
|
3569
|
-
readonly url: string;
|
|
3570
|
-
readonly price: number;
|
|
3571
|
-
readonly id: string | number;
|
|
3572
|
-
readonly properties: {
|
|
3573
|
-
readonly [x: string]: string | number | boolean | null;
|
|
3574
|
-
};
|
|
3575
|
-
readonly quantity: number;
|
|
3576
|
-
readonly variant_id: string | number;
|
|
3577
|
-
readonly original_price: number;
|
|
3578
|
-
readonly discounted_price: number;
|
|
3579
|
-
readonly line_price: number;
|
|
3580
|
-
readonly original_line_price: number;
|
|
3581
|
-
readonly total_discount: number;
|
|
3582
|
-
readonly discounts: readonly {
|
|
3583
|
-
readonly title: string;
|
|
3584
|
-
readonly amount: number;
|
|
3585
|
-
}[];
|
|
3586
|
-
readonly sku: string | null;
|
|
3587
|
-
readonly grams: number;
|
|
3588
|
-
readonly vendor: string;
|
|
3589
|
-
readonly taxable: boolean;
|
|
3590
|
-
readonly product_id: string | number;
|
|
3591
|
-
readonly product_has_only_default_variant: boolean;
|
|
3592
|
-
readonly gift_card: boolean;
|
|
3593
|
-
readonly final_line_price: number;
|
|
3594
|
-
readonly final_price: number;
|
|
3595
|
-
readonly featured_image?: {
|
|
3596
|
-
readonly aspect_ratio: number;
|
|
3597
|
-
readonly alt: string;
|
|
3598
|
-
readonly height: number;
|
|
3599
|
-
readonly url: string;
|
|
3600
|
-
readonly width: number;
|
|
3601
|
-
} | undefined;
|
|
3602
|
-
readonly image: string;
|
|
3603
|
-
readonly handle: string;
|
|
3604
|
-
readonly requires_shipping: boolean;
|
|
3605
|
-
readonly product_type: string;
|
|
3606
|
-
readonly product_title: string;
|
|
3607
|
-
readonly product_description: string;
|
|
3608
|
-
readonly variant_title: string | null;
|
|
3609
|
-
readonly variant_options: readonly string[];
|
|
3610
|
-
readonly options_with_values: readonly {
|
|
3611
|
-
readonly value: string;
|
|
3612
|
-
readonly name: string;
|
|
3613
|
-
}[];
|
|
3614
|
-
readonly line_level_discount_allocations: readonly {
|
|
3615
|
-
readonly amount: number;
|
|
3616
|
-
readonly discount_application: {
|
|
3617
|
-
readonly value: number;
|
|
3618
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
3619
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
3620
|
-
readonly title: string;
|
|
3621
|
-
readonly total_allocated_amount: number;
|
|
3622
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
3623
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
3624
|
-
readonly description: string | null;
|
|
3625
|
-
};
|
|
3626
|
-
}[];
|
|
3627
|
-
readonly line_level_total_discount: number;
|
|
3628
|
-
readonly quantity_rule?: {
|
|
3629
|
-
readonly min: number;
|
|
3630
|
-
readonly max: number | null;
|
|
3631
|
-
readonly increment: number;
|
|
3632
|
-
} | undefined;
|
|
3633
|
-
readonly has_components: boolean;
|
|
3634
|
-
readonly unit_price?: number | undefined;
|
|
3635
|
-
readonly unit_price_measurement?: {
|
|
3636
|
-
readonly measured_type: "volume" | "weight" | "dimension";
|
|
3637
|
-
readonly quantity_unit: string;
|
|
3638
|
-
readonly quantity_value: number;
|
|
3639
|
-
readonly reference_unit: string;
|
|
3640
|
-
readonly reference_value: number;
|
|
3641
|
-
} | undefined;
|
|
3642
|
-
readonly selling_plan_allocation: {
|
|
3643
|
-
readonly price: number;
|
|
3644
|
-
readonly price_adjustments: readonly {
|
|
3645
|
-
readonly position: number;
|
|
3646
|
-
readonly price: number;
|
|
3647
|
-
}[];
|
|
3648
|
-
readonly compare_at_price: number;
|
|
3649
|
-
readonly per_delivery_price: number;
|
|
3650
|
-
readonly selling_plan: {
|
|
3651
|
-
readonly description: string | null;
|
|
3652
|
-
readonly name: string;
|
|
3653
|
-
readonly id: string | number;
|
|
3654
|
-
readonly options: readonly {
|
|
3655
|
-
readonly value: string;
|
|
3656
|
-
readonly name: string;
|
|
3657
|
-
readonly position: number;
|
|
3658
|
-
}[];
|
|
3659
|
-
readonly recurring_deliveries: boolean;
|
|
3660
|
-
readonly fixed_selling_plan: boolean;
|
|
3661
|
-
readonly price_adjustments: readonly {
|
|
3662
|
-
readonly value: string | number;
|
|
3663
|
-
readonly value_type: "fixed_amount" | "percentage" | "price";
|
|
3664
|
-
readonly position: number;
|
|
3665
|
-
readonly order_count: number | null;
|
|
3666
|
-
}[];
|
|
3667
|
-
};
|
|
3668
|
-
} | null;
|
|
3669
|
-
} & {
|
|
3670
|
-
readonly properties_array: readonly {
|
|
3671
|
-
readonly key: string;
|
|
3672
|
-
readonly value: string | number | boolean | null;
|
|
3673
|
-
}[];
|
|
3674
|
-
readonly private_properties: {
|
|
3675
|
-
readonly [x: string]: string | number | boolean | null;
|
|
3676
|
-
};
|
|
3677
|
-
readonly private_properties_array: readonly {
|
|
3678
|
-
readonly key: string;
|
|
3679
|
-
readonly value: string | number | boolean | null;
|
|
3680
|
-
}[];
|
|
3681
|
-
readonly public_properties: {
|
|
3682
|
-
readonly [x: string]: string | number | boolean | null;
|
|
3683
|
-
};
|
|
3684
|
-
readonly public_properties_array: readonly {
|
|
3685
|
-
readonly key: string;
|
|
3686
|
-
readonly value: string | number | boolean | null;
|
|
3687
|
-
}[];
|
|
3688
|
-
})[];
|
|
3689
|
-
readonly currency: string;
|
|
3690
|
-
readonly items_subtotal_price: number;
|
|
3691
|
-
readonly cart_level_discount_applications: readonly {
|
|
3692
|
-
readonly value: number;
|
|
3693
|
-
readonly target_selection: "all" | "entitled" | "explicit";
|
|
3694
|
-
readonly target_type: "line_item" | "shipping_line";
|
|
3695
|
-
readonly title: string;
|
|
3696
|
-
readonly total_allocated_amount: number;
|
|
3697
|
-
readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
|
|
3698
|
-
readonly value_type: "fixed_amount" | "percentage";
|
|
3699
|
-
readonly description: string | null;
|
|
3700
|
-
}[];
|
|
3701
|
-
} & {
|
|
3702
|
-
readonly attributes_array: readonly {
|
|
3703
|
-
readonly key: string;
|
|
3704
|
-
readonly value: string | number | boolean | null;
|
|
3705
|
-
}[];
|
|
3706
|
-
readonly private_attributes: {
|
|
3707
|
-
readonly [x: string]: string | number | boolean | null;
|
|
3708
|
-
};
|
|
3709
|
-
readonly private_attributes_array: readonly {
|
|
3710
|
-
readonly key: string;
|
|
3711
|
-
readonly value: string | number | boolean | null;
|
|
3712
|
-
}[];
|
|
3713
|
-
readonly public_attributes: {
|
|
3714
|
-
readonly [x: string]: string | number | boolean | null;
|
|
3715
|
-
};
|
|
3716
|
-
readonly public_attributes_array: readonly {
|
|
3717
|
-
readonly key: string;
|
|
3718
|
-
readonly value: string | number | boolean | null;
|
|
3719
|
-
}[];
|
|
3720
|
-
} & {
|
|
3721
|
-
readonly sections: null;
|
|
3722
2022
|
}>>;
|
|
3723
2023
|
};
|
|
3724
2024
|
|