commerce-kit 0.61.0 → 0.64.0

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.
@@ -85,6 +85,12 @@ type APIProductsBrowseResult = Omit<{
85
85
  digital: string[] | null;
86
86
  shippable: boolean;
87
87
  stock: number | null;
88
+ reservedQuantity: number;
89
+ unavailableQuantity: number;
90
+ supplierAliases: {
91
+ taxId: string | null;
92
+ alias: string;
93
+ }[];
88
94
  externalId: string | null;
89
95
  originalPrice: string;
90
96
  product: {
@@ -264,8 +270,13 @@ type APIProductsBrowseResult = Omit<{
264
270
  }[] & ({
265
271
  id: string;
266
272
  price: string;
273
+ stock: number | null;
274
+ calculatedPrice?: string | null;
267
275
  } & {
268
276
  prePromotionPrice: string | null;
277
+ } & {
278
+ nextStockPrice?: string | null;
279
+ unitsLeftAtCurrentPrice?: number | null;
269
280
  })[];
270
281
  translations: {
271
282
  locale: string;
@@ -355,6 +366,12 @@ type APIProductsBrowseResult = Omit<{
355
366
  digital: string[] | null;
356
367
  shippable: boolean;
357
368
  stock: number | null;
369
+ reservedQuantity: number;
370
+ unavailableQuantity: number;
371
+ supplierAliases: {
372
+ taxId: string | null;
373
+ alias: string;
374
+ }[];
358
375
  externalId: string | null;
359
376
  originalPrice: string;
360
377
  product: {
@@ -534,8 +551,13 @@ type APIProductsBrowseResult = Omit<{
534
551
  }[] & ({
535
552
  id: string;
536
553
  price: string;
554
+ stock: number | null;
555
+ calculatedPrice?: string | null;
537
556
  } & {
538
557
  prePromotionPrice: string | null;
558
+ } & {
559
+ nextStockPrice?: string | null;
560
+ unitsLeftAtCurrentPrice?: number | null;
539
561
  })[];
540
562
  translations: {
541
563
  locale: string;
@@ -625,6 +647,12 @@ type APIProductsBrowseResult = Omit<{
625
647
  digital: string[] | null;
626
648
  shippable: boolean;
627
649
  stock: number | null;
650
+ reservedQuantity: number;
651
+ unavailableQuantity: number;
652
+ supplierAliases: {
653
+ taxId: string | null;
654
+ alias: string;
655
+ }[];
628
656
  externalId: string | null;
629
657
  originalPrice: string;
630
658
  product: {
@@ -804,8 +832,13 @@ type APIProductsBrowseResult = Omit<{
804
832
  }[] & ({
805
833
  id: string;
806
834
  price: string;
835
+ stock: number | null;
836
+ calculatedPrice?: string | null;
807
837
  } & {
808
838
  prePromotionPrice: string | null;
839
+ } & {
840
+ nextStockPrice?: string | null;
841
+ unitsLeftAtCurrentPrice?: number | null;
809
842
  })[];
810
843
  translations: {
811
844
  locale: string;
@@ -895,6 +928,12 @@ type APIProductsBrowseResult = Omit<{
895
928
  digital: string[] | null;
896
929
  shippable: boolean;
897
930
  stock: number | null;
931
+ reservedQuantity: number;
932
+ unavailableQuantity: number;
933
+ supplierAliases: {
934
+ taxId: string | null;
935
+ alias: string;
936
+ }[];
898
937
  externalId: string | null;
899
938
  originalPrice: string;
900
939
  product: {
@@ -1074,10 +1113,15 @@ type APIProductsBrowseResult = Omit<{
1074
1113
  }[] & ({
1075
1114
  id: string;
1076
1115
  price: string;
1116
+ stock: number | null;
1117
+ calculatedPrice?: string | null;
1077
1118
  } & {
1078
1119
  price: string;
1079
1120
  } & {
1080
1121
  prePromotionPrice: string | null;
1122
+ } & {
1123
+ nextStockPrice?: string | null;
1124
+ unitsLeftAtCurrentPrice?: number | null;
1081
1125
  })[];
1082
1126
  translations: {
1083
1127
  locale: string;
@@ -1167,6 +1211,12 @@ type APIProductsBrowseResult = Omit<{
1167
1211
  digital: string[] | null;
1168
1212
  shippable: boolean;
1169
1213
  stock: number | null;
1214
+ reservedQuantity: number;
1215
+ unavailableQuantity: number;
1216
+ supplierAliases: {
1217
+ taxId: string | null;
1218
+ alias: string;
1219
+ }[];
1170
1220
  externalId: string | null;
1171
1221
  originalPrice: string;
1172
1222
  product: {
@@ -1346,8 +1396,15 @@ type APIProductsBrowseResult = Omit<{
1346
1396
  }[] & ({
1347
1397
  id: string;
1348
1398
  price: string;
1399
+ stock: number | null;
1400
+ calculatedPrice?: string | null;
1401
+ } & {
1402
+ price: string;
1349
1403
  } & {
1350
1404
  prePromotionPrice: string | null;
1405
+ } & {
1406
+ nextStockPrice?: string | null;
1407
+ unitsLeftAtCurrentPrice?: number | null;
1351
1408
  })[];
1352
1409
  translations: {
1353
1410
  locale: string;
@@ -1447,6 +1504,12 @@ type APIProductsBrowseResult = Omit<{
1447
1504
  digital: string[] | null;
1448
1505
  shippable: boolean;
1449
1506
  stock: number | null;
1507
+ reservedQuantity: number;
1508
+ unavailableQuantity: number;
1509
+ supplierAliases: {
1510
+ taxId: string | null;
1511
+ alias: string;
1512
+ }[];
1450
1513
  externalId: string | null;
1451
1514
  originalPrice: string;
1452
1515
  product: {
@@ -1543,6 +1606,12 @@ type APIProductsBrowseResult = Omit<{
1543
1606
  digital: string[] | null;
1544
1607
  shippable: boolean;
1545
1608
  stock: number | null;
1609
+ reservedQuantity: number;
1610
+ unavailableQuantity: number;
1611
+ supplierAliases: {
1612
+ taxId: string | null;
1613
+ alias: string;
1614
+ }[];
1546
1615
  externalId: string | null;
1547
1616
  originalPrice: string;
1548
1617
  product: {
@@ -1638,6 +1707,12 @@ type APIProductsBrowseResult = Omit<{
1638
1707
  digital: string[] | null;
1639
1708
  shippable: boolean;
1640
1709
  stock: number | null;
1710
+ reservedQuantity: number;
1711
+ unavailableQuantity: number;
1712
+ supplierAliases: {
1713
+ taxId: string | null;
1714
+ alias: string;
1715
+ }[];
1641
1716
  externalId: string | null;
1642
1717
  originalPrice: string;
1643
1718
  product: {
@@ -1738,6 +1813,12 @@ type APIProductsBrowseResult = Omit<{
1738
1813
  digital: string[] | null;
1739
1814
  shippable: boolean;
1740
1815
  stock: number | null;
1816
+ reservedQuantity: number;
1817
+ unavailableQuantity: number;
1818
+ supplierAliases: {
1819
+ taxId: string | null;
1820
+ alias: string;
1821
+ }[];
1741
1822
  externalId: string | null;
1742
1823
  originalPrice: string;
1743
1824
  product: {
@@ -1838,6 +1919,12 @@ type APIProductsBrowseResult = Omit<{
1838
1919
  digital: string[] | null;
1839
1920
  shippable: boolean;
1840
1921
  stock: number | null;
1922
+ reservedQuantity: number;
1923
+ unavailableQuantity: number;
1924
+ supplierAliases: {
1925
+ taxId: string | null;
1926
+ alias: string;
1927
+ }[];
1841
1928
  externalId: string | null;
1842
1929
  originalPrice: string;
1843
1930
  product: {
@@ -1901,7 +1988,7 @@ type APIProductsBrowseResult = Omit<{
1901
1988
  };
1902
1989
  }[];
1903
1990
  };
1904
- }["variant"], "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
1991
+ }["variant"], "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
1905
1992
  } : {
1906
1993
  createdAt: string;
1907
1994
  updatedAt: string;
@@ -1934,6 +2021,12 @@ type APIProductsBrowseResult = Omit<{
1934
2021
  digital: string[] | null;
1935
2022
  shippable: boolean;
1936
2023
  stock: number | null;
2024
+ reservedQuantity: number;
2025
+ unavailableQuantity: number;
2026
+ supplierAliases: {
2027
+ taxId: string | null;
2028
+ alias: string;
2029
+ }[];
1937
2030
  externalId: string | null;
1938
2031
  originalPrice: string;
1939
2032
  product: {
@@ -2115,8 +2208,13 @@ type APIProductsBrowseResult = Omit<{
2115
2208
  } & {
2116
2209
  id: string;
2117
2210
  price: string;
2211
+ stock: number | null;
2212
+ calculatedPrice?: string | null;
2118
2213
  } & {
2119
2214
  prePromotionPrice: string | null;
2215
+ } & {
2216
+ nextStockPrice?: string | null;
2217
+ unitsLeftAtCurrentPrice?: number | null;
2120
2218
  }) | ({
2121
2219
  id: string;
2122
2220
  createdAt: string;
@@ -2167,10 +2265,15 @@ type APIProductsBrowseResult = Omit<{
2167
2265
  } & {
2168
2266
  id: string;
2169
2267
  price: string;
2268
+ stock: number | null;
2269
+ calculatedPrice?: string | null;
2170
2270
  } & {
2171
2271
  price: string;
2172
2272
  } & {
2173
2273
  prePromotionPrice: string | null;
2274
+ } & {
2275
+ nextStockPrice?: string | null;
2276
+ unitsLeftAtCurrentPrice?: number | null;
2174
2277
  }) | ({
2175
2278
  id: string;
2176
2279
  createdAt: string;
@@ -2221,8 +2324,15 @@ type APIProductsBrowseResult = Omit<{
2221
2324
  } & {
2222
2325
  id: string;
2223
2326
  price: string;
2327
+ stock: number | null;
2328
+ calculatedPrice?: string | null;
2329
+ } & {
2330
+ price: string;
2224
2331
  } & {
2225
2332
  prePromotionPrice: string | null;
2333
+ } & {
2334
+ nextStockPrice?: string | null;
2335
+ unitsLeftAtCurrentPrice?: number | null;
2226
2336
  }), "cost">]: K extends "prices" ? Array<(Omit<({
2227
2337
  id: string;
2228
2338
  createdAt: string;
@@ -2273,8 +2383,13 @@ type APIProductsBrowseResult = Omit<{
2273
2383
  } & {
2274
2384
  id: string;
2275
2385
  price: string;
2386
+ stock: number | null;
2387
+ calculatedPrice?: string | null;
2276
2388
  } & {
2277
2389
  prePromotionPrice: string | null;
2390
+ } & {
2391
+ nextStockPrice?: string | null;
2392
+ unitsLeftAtCurrentPrice?: number | null;
2278
2393
  }) | ({
2279
2394
  id: string;
2280
2395
  createdAt: string;
@@ -2325,10 +2440,15 @@ type APIProductsBrowseResult = Omit<{
2325
2440
  } & {
2326
2441
  id: string;
2327
2442
  price: string;
2443
+ stock: number | null;
2444
+ calculatedPrice?: string | null;
2328
2445
  } & {
2329
2446
  price: string;
2330
2447
  } & {
2331
2448
  prePromotionPrice: string | null;
2449
+ } & {
2450
+ nextStockPrice?: string | null;
2451
+ unitsLeftAtCurrentPrice?: number | null;
2332
2452
  }) | ({
2333
2453
  id: string;
2334
2454
  createdAt: string;
@@ -2379,8 +2499,15 @@ type APIProductsBrowseResult = Omit<{
2379
2499
  } & {
2380
2500
  id: string;
2381
2501
  price: string;
2502
+ stock: number | null;
2503
+ calculatedPrice?: string | null;
2504
+ } & {
2505
+ price: string;
2382
2506
  } & {
2383
2507
  prePromotionPrice: string | null;
2508
+ } & {
2509
+ nextStockPrice?: string | null;
2510
+ unitsLeftAtCurrentPrice?: number | null;
2384
2511
  }), "cost">[K] extends readonly (infer TElement)[] ? TElement : never) & {
2385
2512
  /** `price` converted to gross with the owning product's tax rate. */
2386
2513
  priceGross: string;
@@ -2436,8 +2563,13 @@ type APIProductsBrowseResult = Omit<{
2436
2563
  } & {
2437
2564
  id: string;
2438
2565
  price: string;
2566
+ stock: number | null;
2567
+ calculatedPrice?: string | null;
2439
2568
  } & {
2440
2569
  prePromotionPrice: string | null;
2570
+ } & {
2571
+ nextStockPrice?: string | null;
2572
+ unitsLeftAtCurrentPrice?: number | null;
2441
2573
  }) | ({
2442
2574
  id: string;
2443
2575
  createdAt: string;
@@ -2488,10 +2620,15 @@ type APIProductsBrowseResult = Omit<{
2488
2620
  } & {
2489
2621
  id: string;
2490
2622
  price: string;
2623
+ stock: number | null;
2624
+ calculatedPrice?: string | null;
2491
2625
  } & {
2492
2626
  price: string;
2493
2627
  } & {
2494
2628
  prePromotionPrice: string | null;
2629
+ } & {
2630
+ nextStockPrice?: string | null;
2631
+ unitsLeftAtCurrentPrice?: number | null;
2495
2632
  }) | ({
2496
2633
  id: string;
2497
2634
  createdAt: string;
@@ -2542,8 +2679,15 @@ type APIProductsBrowseResult = Omit<{
2542
2679
  } & {
2543
2680
  id: string;
2544
2681
  price: string;
2682
+ stock: number | null;
2683
+ calculatedPrice?: string | null;
2684
+ } & {
2685
+ price: string;
2545
2686
  } & {
2546
2687
  prePromotionPrice: string | null;
2688
+ } & {
2689
+ nextStockPrice?: string | null;
2690
+ unitsLeftAtCurrentPrice?: number | null;
2547
2691
  }), "cost">[K];
2548
2692
  } & {
2549
2693
  /** `price` (the effective net price) converted to gross with the product's tax rate. */
@@ -2599,8 +2743,13 @@ type APIProductsBrowseResult = Omit<{
2599
2743
  } & {
2600
2744
  id: string;
2601
2745
  price: string;
2746
+ stock: number | null;
2747
+ calculatedPrice?: string | null;
2602
2748
  } & {
2603
2749
  prePromotionPrice: string | null;
2750
+ } & {
2751
+ nextStockPrice?: string | null;
2752
+ unitsLeftAtCurrentPrice?: number | null;
2604
2753
  }) | ({
2605
2754
  id: string;
2606
2755
  createdAt: string;
@@ -2651,10 +2800,15 @@ type APIProductsBrowseResult = Omit<{
2651
2800
  } & {
2652
2801
  id: string;
2653
2802
  price: string;
2803
+ stock: number | null;
2804
+ calculatedPrice?: string | null;
2654
2805
  } & {
2655
2806
  price: string;
2656
2807
  } & {
2657
2808
  prePromotionPrice: string | null;
2809
+ } & {
2810
+ nextStockPrice?: string | null;
2811
+ unitsLeftAtCurrentPrice?: number | null;
2658
2812
  }) | ({
2659
2813
  id: string;
2660
2814
  createdAt: string;
@@ -2705,9 +2859,16 @@ type APIProductsBrowseResult = Omit<{
2705
2859
  } & {
2706
2860
  id: string;
2707
2861
  price: string;
2862
+ stock: number | null;
2863
+ calculatedPrice?: string | null;
2864
+ } & {
2865
+ price: string;
2708
2866
  } & {
2709
2867
  prePromotionPrice: string | null;
2710
- }), "cost">, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
2868
+ } & {
2869
+ nextStockPrice?: string | null;
2870
+ unitsLeftAtCurrentPrice?: number | null;
2871
+ }), "cost">, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
2711
2872
  })[];
2712
2873
  translations: {
2713
2874
  locale: string;
@@ -2843,6 +3004,12 @@ type APIProductGetByIdResult = {
2843
3004
  digital: string[] | null;
2844
3005
  shippable: boolean;
2845
3006
  stock: number | null;
3007
+ reservedQuantity: number;
3008
+ unavailableQuantity: number;
3009
+ supplierAliases: {
3010
+ taxId: string | null;
3011
+ alias: string;
3012
+ }[];
2846
3013
  externalId: string | null;
2847
3014
  originalPrice: string;
2848
3015
  product: {
@@ -2939,6 +3106,12 @@ type APIProductGetByIdResult = {
2939
3106
  digital: string[] | null;
2940
3107
  shippable: boolean;
2941
3108
  stock: number | null;
3109
+ reservedQuantity: number;
3110
+ unavailableQuantity: number;
3111
+ supplierAliases: {
3112
+ taxId: string | null;
3113
+ alias: string;
3114
+ }[];
2942
3115
  externalId: string | null;
2943
3116
  originalPrice: string;
2944
3117
  product: {
@@ -3034,6 +3207,12 @@ type APIProductGetByIdResult = {
3034
3207
  digital: string[] | null;
3035
3208
  shippable: boolean;
3036
3209
  stock: number | null;
3210
+ reservedQuantity: number;
3211
+ unavailableQuantity: number;
3212
+ supplierAliases: {
3213
+ taxId: string | null;
3214
+ alias: string;
3215
+ }[];
3037
3216
  externalId: string | null;
3038
3217
  originalPrice: string;
3039
3218
  product: {
@@ -3134,6 +3313,12 @@ type APIProductGetByIdResult = {
3134
3313
  digital: string[] | null;
3135
3314
  shippable: boolean;
3136
3315
  stock: number | null;
3316
+ reservedQuantity: number;
3317
+ unavailableQuantity: number;
3318
+ supplierAliases: {
3319
+ taxId: string | null;
3320
+ alias: string;
3321
+ }[];
3137
3322
  externalId: string | null;
3138
3323
  originalPrice: string;
3139
3324
  product: {
@@ -3234,6 +3419,12 @@ type APIProductGetByIdResult = {
3234
3419
  digital: string[] | null;
3235
3420
  shippable: boolean;
3236
3421
  stock: number | null;
3422
+ reservedQuantity: number;
3423
+ unavailableQuantity: number;
3424
+ supplierAliases: {
3425
+ taxId: string | null;
3426
+ alias: string;
3427
+ }[];
3237
3428
  externalId: string | null;
3238
3429
  originalPrice: string;
3239
3430
  product: {
@@ -3297,7 +3488,7 @@ type APIProductGetByIdResult = {
3297
3488
  };
3298
3489
  }[];
3299
3490
  };
3300
- }["variant"], "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
3491
+ }["variant"], "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
3301
3492
  } : {
3302
3493
  createdAt: string;
3303
3494
  updatedAt: string;
@@ -3330,6 +3521,12 @@ type APIProductGetByIdResult = {
3330
3521
  digital: string[] | null;
3331
3522
  shippable: boolean;
3332
3523
  stock: number | null;
3524
+ reservedQuantity: number;
3525
+ unavailableQuantity: number;
3526
+ supplierAliases: {
3527
+ taxId: string | null;
3528
+ alias: string;
3529
+ }[];
3333
3530
  externalId: string | null;
3334
3531
  originalPrice: string;
3335
3532
  product: {
@@ -3503,6 +3700,12 @@ type APIProductGetByIdResult = {
3503
3700
  digital: string[] | null;
3504
3701
  shippable: boolean;
3505
3702
  stock: number | null;
3703
+ reservedQuantity: number;
3704
+ unavailableQuantity: number;
3705
+ supplierAliases: {
3706
+ taxId: string | null;
3707
+ alias: string;
3708
+ }[];
3506
3709
  externalId: string | null;
3507
3710
  originalPrice: string;
3508
3711
  combinations: {
@@ -3534,8 +3737,13 @@ type APIProductGetByIdResult = {
3534
3737
  } & {
3535
3738
  id: string;
3536
3739
  price: string;
3740
+ stock: number | null;
3741
+ calculatedPrice?: string | null;
3537
3742
  } & {
3538
3743
  prePromotionPrice: string | null;
3744
+ } & {
3745
+ nextStockPrice?: string | null;
3746
+ unitsLeftAtCurrentPrice?: number | null;
3539
3747
  }, "cost"> & {
3540
3748
  omnibusPrice: string | null;
3541
3749
  })]: K extends "prices" ? Array<((Omit<{
@@ -3559,6 +3767,12 @@ type APIProductGetByIdResult = {
3559
3767
  digital: string[] | null;
3560
3768
  shippable: boolean;
3561
3769
  stock: number | null;
3770
+ reservedQuantity: number;
3771
+ unavailableQuantity: number;
3772
+ supplierAliases: {
3773
+ taxId: string | null;
3774
+ alias: string;
3775
+ }[];
3562
3776
  externalId: string | null;
3563
3777
  originalPrice: string;
3564
3778
  combinations: {
@@ -3590,8 +3804,13 @@ type APIProductGetByIdResult = {
3590
3804
  } & {
3591
3805
  id: string;
3592
3806
  price: string;
3807
+ stock: number | null;
3808
+ calculatedPrice?: string | null;
3593
3809
  } & {
3594
3810
  prePromotionPrice: string | null;
3811
+ } & {
3812
+ nextStockPrice?: string | null;
3813
+ unitsLeftAtCurrentPrice?: number | null;
3595
3814
  }, "cost"> & {
3596
3815
  omnibusPrice: string | null;
3597
3816
  })[K] extends readonly (infer TElement)[] ? TElement : never) & {
@@ -3620,6 +3839,12 @@ type APIProductGetByIdResult = {
3620
3839
  digital: string[] | null;
3621
3840
  shippable: boolean;
3622
3841
  stock: number | null;
3842
+ reservedQuantity: number;
3843
+ unavailableQuantity: number;
3844
+ supplierAliases: {
3845
+ taxId: string | null;
3846
+ alias: string;
3847
+ }[];
3623
3848
  externalId: string | null;
3624
3849
  originalPrice: string;
3625
3850
  combinations: {
@@ -3651,8 +3876,13 @@ type APIProductGetByIdResult = {
3651
3876
  } & {
3652
3877
  id: string;
3653
3878
  price: string;
3879
+ stock: number | null;
3880
+ calculatedPrice?: string | null;
3654
3881
  } & {
3655
3882
  prePromotionPrice: string | null;
3883
+ } & {
3884
+ nextStockPrice?: string | null;
3885
+ unitsLeftAtCurrentPrice?: number | null;
3656
3886
  }, "cost"> & {
3657
3887
  omnibusPrice: string | null;
3658
3888
  })[K];
@@ -3681,6 +3911,12 @@ type APIProductGetByIdResult = {
3681
3911
  digital: string[] | null;
3682
3912
  shippable: boolean;
3683
3913
  stock: number | null;
3914
+ reservedQuantity: number;
3915
+ unavailableQuantity: number;
3916
+ supplierAliases: {
3917
+ taxId: string | null;
3918
+ alias: string;
3919
+ }[];
3684
3920
  externalId: string | null;
3685
3921
  originalPrice: string;
3686
3922
  combinations: {
@@ -3712,11 +3948,16 @@ type APIProductGetByIdResult = {
3712
3948
  } & {
3713
3949
  id: string;
3714
3950
  price: string;
3951
+ stock: number | null;
3952
+ calculatedPrice?: string | null;
3715
3953
  } & {
3716
3954
  prePromotionPrice: string | null;
3955
+ } & {
3956
+ nextStockPrice?: string | null;
3957
+ unitsLeftAtCurrentPrice?: number | null;
3717
3958
  }, "cost"> & {
3718
3959
  omnibusPrice: string | null;
3719
- }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
3960
+ }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
3720
3961
  })[];
3721
3962
  variantsTypes: {
3722
3963
  id: string;
@@ -3855,7 +4096,7 @@ type APIProductGetByIdResult = {
3855
4096
  value: string;
3856
4097
  colorValue: string | null;
3857
4098
  }[];
3858
- }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
4099
+ }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
3859
4100
  };
3860
4101
  }[];
3861
4102
  }[];
@@ -3998,7 +4239,7 @@ type APICartGetResult = {
3998
4239
  idempotencyKey?: string;
3999
4240
  } | null;
4000
4241
  coupon: Omit<{
4001
- type: "fixed" | "percentage";
4242
+ type: "fixed" | "percentage" | "free_shipping";
4002
4243
  value: string;
4003
4244
  code: string;
4004
4245
  startDate: string | null;
@@ -4068,7 +4309,7 @@ type APICartGetResult = {
4068
4309
  stripeCustomerId: string | null;
4069
4310
  couponId: string | null;
4070
4311
  coupon: {
4071
- type: "fixed" | "percentage";
4312
+ type: "fixed" | "percentage" | "free_shipping";
4072
4313
  value: string;
4073
4314
  code: string;
4074
4315
  startDate: string | null;
@@ -4103,7 +4344,7 @@ type APICartGetResult = {
4103
4344
  } | null;
4104
4345
  } | {
4105
4346
  coupon: Omit<{
4106
- type: "fixed" | "percentage";
4347
+ type: "fixed" | "percentage" | "free_shipping";
4107
4348
  value: string;
4108
4349
  code: string;
4109
4350
  startDate: string | null;
@@ -4323,6 +4564,8 @@ type APICartGetResult = {
4323
4564
  };
4324
4565
  };
4325
4566
  }[];
4567
+ nextStockPrice?: string | null | undefined;
4568
+ unitsLeftAtCurrentPrice?: number | null | undefined;
4326
4569
  };
4327
4570
  preVolumePricingPrice: string | null;
4328
4571
  setSelections: {
@@ -4363,6 +4606,7 @@ type APICartGetResult = {
4363
4606
  subscriptionPlanId: string | null;
4364
4607
  productVariantId: string;
4365
4608
  cartId: string;
4609
+ lockedUnitPrice: string | null;
4366
4610
  attendees: {
4367
4611
  name: string;
4368
4612
  email: string | null;
@@ -4560,6 +4804,8 @@ type APICartGetResult = {
4560
4804
  };
4561
4805
  };
4562
4806
  }[];
4807
+ nextStockPrice?: string | null | undefined;
4808
+ unitsLeftAtCurrentPrice?: number | null | undefined;
4563
4809
  }]: K extends "prices" ? Array<({
4564
4810
  product: {
4565
4811
  bundleProducts: {
@@ -4737,6 +4983,8 @@ type APICartGetResult = {
4737
4983
  };
4738
4984
  };
4739
4985
  }[];
4986
+ nextStockPrice?: string | null | undefined;
4987
+ unitsLeftAtCurrentPrice?: number | null | undefined;
4740
4988
  }[K] extends readonly (infer TElement)[] ? TElement : never) & {
4741
4989
  /** `price` converted to gross with the owning product's tax rate. */
4742
4990
  priceGross: string;
@@ -4919,6 +5167,8 @@ type APICartGetResult = {
4919
5167
  };
4920
5168
  };
4921
5169
  }[];
5170
+ nextStockPrice?: string | null | undefined;
5171
+ unitsLeftAtCurrentPrice?: number | null | undefined;
4922
5172
  }[K];
4923
5173
  } & {
4924
5174
  /** `price` (the effective net price) converted to gross with the product's tax rate. */
@@ -5101,7 +5351,9 @@ type APICartGetResult = {
5101
5351
  };
5102
5352
  };
5103
5353
  }[];
5104
- }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
5354
+ nextStockPrice?: string | null | undefined;
5355
+ unitsLeftAtCurrentPrice?: number | null | undefined;
5356
+ }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
5105
5357
  };
5106
5358
  })[];
5107
5359
  subtotalNet: number | null;
@@ -5228,7 +5480,7 @@ type APICartCreateResult = {
5228
5480
  idempotencyKey?: string;
5229
5481
  } | null;
5230
5482
  coupon: Omit<{
5231
- type: "fixed" | "percentage";
5483
+ type: "fixed" | "percentage" | "free_shipping";
5232
5484
  value: string;
5233
5485
  code: string;
5234
5486
  startDate: string | null;
@@ -5298,7 +5550,7 @@ type APICartCreateResult = {
5298
5550
  stripeCustomerId: string | null;
5299
5551
  couponId: string | null;
5300
5552
  coupon: {
5301
- type: "fixed" | "percentage";
5553
+ type: "fixed" | "percentage" | "free_shipping";
5302
5554
  value: string;
5303
5555
  code: string;
5304
5556
  startDate: string | null;
@@ -5333,7 +5585,7 @@ type APICartCreateResult = {
5333
5585
  } | null;
5334
5586
  } | {
5335
5587
  coupon: Omit<{
5336
- type: "fixed" | "percentage";
5588
+ type: "fixed" | "percentage" | "free_shipping";
5337
5589
  value: string;
5338
5590
  code: string;
5339
5591
  startDate: string | null;
@@ -5553,6 +5805,8 @@ type APICartCreateResult = {
5553
5805
  };
5554
5806
  };
5555
5807
  }[];
5808
+ nextStockPrice?: string | null | undefined;
5809
+ unitsLeftAtCurrentPrice?: number | null | undefined;
5556
5810
  };
5557
5811
  preVolumePricingPrice: string | null;
5558
5812
  setSelections: {
@@ -5593,6 +5847,7 @@ type APICartCreateResult = {
5593
5847
  subscriptionPlanId: string | null;
5594
5848
  productVariantId: string;
5595
5849
  cartId: string;
5850
+ lockedUnitPrice: string | null;
5596
5851
  attendees: {
5597
5852
  name: string;
5598
5853
  email: string | null;
@@ -5790,6 +6045,8 @@ type APICartCreateResult = {
5790
6045
  };
5791
6046
  };
5792
6047
  }[];
6048
+ nextStockPrice?: string | null | undefined;
6049
+ unitsLeftAtCurrentPrice?: number | null | undefined;
5793
6050
  }]: K extends "prices" ? Array<({
5794
6051
  product: {
5795
6052
  bundleProducts: {
@@ -5967,6 +6224,8 @@ type APICartCreateResult = {
5967
6224
  };
5968
6225
  };
5969
6226
  }[];
6227
+ nextStockPrice?: string | null | undefined;
6228
+ unitsLeftAtCurrentPrice?: number | null | undefined;
5970
6229
  }[K] extends readonly (infer TElement)[] ? TElement : never) & {
5971
6230
  /** `price` converted to gross with the owning product's tax rate. */
5972
6231
  priceGross: string;
@@ -6149,6 +6408,8 @@ type APICartCreateResult = {
6149
6408
  };
6150
6409
  };
6151
6410
  }[];
6411
+ nextStockPrice?: string | null | undefined;
6412
+ unitsLeftAtCurrentPrice?: number | null | undefined;
6152
6413
  }[K];
6153
6414
  } & {
6154
6415
  /** `price` (the effective net price) converted to gross with the product's tax rate. */
@@ -6331,7 +6592,9 @@ type APICartCreateResult = {
6331
6592
  };
6332
6593
  };
6333
6594
  }[];
6334
- }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
6595
+ nextStockPrice?: string | null | undefined;
6596
+ unitsLeftAtCurrentPrice?: number | null | undefined;
6597
+ }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
6335
6598
  };
6336
6599
  })[];
6337
6600
  subtotalNet: number | null;
@@ -6442,7 +6705,7 @@ type APICartRemoveItemResult = {
6442
6705
  idempotencyKey?: string;
6443
6706
  } | null;
6444
6707
  coupon: Omit<{
6445
- type: "fixed" | "percentage";
6708
+ type: "fixed" | "percentage" | "free_shipping";
6446
6709
  value: string;
6447
6710
  code: string;
6448
6711
  startDate: string | null;
@@ -6512,7 +6775,7 @@ type APICartRemoveItemResult = {
6512
6775
  stripeCustomerId: string | null;
6513
6776
  couponId: string | null;
6514
6777
  coupon: {
6515
- type: "fixed" | "percentage";
6778
+ type: "fixed" | "percentage" | "free_shipping";
6516
6779
  value: string;
6517
6780
  code: string;
6518
6781
  startDate: string | null;
@@ -6547,7 +6810,7 @@ type APICartRemoveItemResult = {
6547
6810
  } | null;
6548
6811
  } | {
6549
6812
  coupon: Omit<{
6550
- type: "fixed" | "percentage";
6813
+ type: "fixed" | "percentage" | "free_shipping";
6551
6814
  value: string;
6552
6815
  code: string;
6553
6816
  startDate: string | null;
@@ -6767,6 +7030,8 @@ type APICartRemoveItemResult = {
6767
7030
  };
6768
7031
  };
6769
7032
  }[];
7033
+ nextStockPrice?: string | null | undefined;
7034
+ unitsLeftAtCurrentPrice?: number | null | undefined;
6770
7035
  };
6771
7036
  preVolumePricingPrice: string | null;
6772
7037
  setSelections: {
@@ -6807,6 +7072,7 @@ type APICartRemoveItemResult = {
6807
7072
  subscriptionPlanId: string | null;
6808
7073
  productVariantId: string;
6809
7074
  cartId: string;
7075
+ lockedUnitPrice: string | null;
6810
7076
  attendees: {
6811
7077
  name: string;
6812
7078
  email: string | null;
@@ -7004,6 +7270,8 @@ type APICartRemoveItemResult = {
7004
7270
  };
7005
7271
  };
7006
7272
  }[];
7273
+ nextStockPrice?: string | null | undefined;
7274
+ unitsLeftAtCurrentPrice?: number | null | undefined;
7007
7275
  }]: K extends "prices" ? Array<({
7008
7276
  product: {
7009
7277
  bundleProducts: {
@@ -7181,6 +7449,8 @@ type APICartRemoveItemResult = {
7181
7449
  };
7182
7450
  };
7183
7451
  }[];
7452
+ nextStockPrice?: string | null | undefined;
7453
+ unitsLeftAtCurrentPrice?: number | null | undefined;
7184
7454
  }[K] extends readonly (infer TElement)[] ? TElement : never) & {
7185
7455
  /** `price` converted to gross with the owning product's tax rate. */
7186
7456
  priceGross: string;
@@ -7363,6 +7633,8 @@ type APICartRemoveItemResult = {
7363
7633
  };
7364
7634
  };
7365
7635
  }[];
7636
+ nextStockPrice?: string | null | undefined;
7637
+ unitsLeftAtCurrentPrice?: number | null | undefined;
7366
7638
  }[K];
7367
7639
  } & {
7368
7640
  /** `price` (the effective net price) converted to gross with the product's tax rate. */
@@ -7545,7 +7817,9 @@ type APICartRemoveItemResult = {
7545
7817
  };
7546
7818
  };
7547
7819
  }[];
7548
- }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
7820
+ nextStockPrice?: string | null | undefined;
7821
+ unitsLeftAtCurrentPrice?: number | null | undefined;
7822
+ }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
7549
7823
  };
7550
7824
  })[];
7551
7825
  subtotalNet: number | null;
@@ -7662,7 +7936,7 @@ type APICartCouponApplyResult = {
7662
7936
  idempotencyKey?: string;
7663
7937
  } | null;
7664
7938
  coupon: Omit<{
7665
- type: "fixed" | "percentage";
7939
+ type: "fixed" | "percentage" | "free_shipping";
7666
7940
  value: string;
7667
7941
  code: string;
7668
7942
  startDate: string | null;
@@ -7732,7 +8006,7 @@ type APICartCouponApplyResult = {
7732
8006
  stripeCustomerId: string | null;
7733
8007
  couponId: string | null;
7734
8008
  coupon: {
7735
- type: "fixed" | "percentage";
8009
+ type: "fixed" | "percentage" | "free_shipping";
7736
8010
  value: string;
7737
8011
  code: string;
7738
8012
  startDate: string | null;
@@ -7767,7 +8041,7 @@ type APICartCouponApplyResult = {
7767
8041
  } | null;
7768
8042
  } | {
7769
8043
  coupon: Omit<{
7770
- type: "fixed" | "percentage";
8044
+ type: "fixed" | "percentage" | "free_shipping";
7771
8045
  value: string;
7772
8046
  code: string;
7773
8047
  startDate: string | null;
@@ -7987,6 +8261,8 @@ type APICartCouponApplyResult = {
7987
8261
  };
7988
8262
  };
7989
8263
  }[];
8264
+ nextStockPrice?: string | null | undefined;
8265
+ unitsLeftAtCurrentPrice?: number | null | undefined;
7990
8266
  };
7991
8267
  preVolumePricingPrice: string | null;
7992
8268
  setSelections: {
@@ -8027,6 +8303,7 @@ type APICartCouponApplyResult = {
8027
8303
  subscriptionPlanId: string | null;
8028
8304
  productVariantId: string;
8029
8305
  cartId: string;
8306
+ lockedUnitPrice: string | null;
8030
8307
  attendees: {
8031
8308
  name: string;
8032
8309
  email: string | null;
@@ -8224,6 +8501,8 @@ type APICartCouponApplyResult = {
8224
8501
  };
8225
8502
  };
8226
8503
  }[];
8504
+ nextStockPrice?: string | null | undefined;
8505
+ unitsLeftAtCurrentPrice?: number | null | undefined;
8227
8506
  }]: K extends "prices" ? Array<({
8228
8507
  product: {
8229
8508
  bundleProducts: {
@@ -8401,6 +8680,8 @@ type APICartCouponApplyResult = {
8401
8680
  };
8402
8681
  };
8403
8682
  }[];
8683
+ nextStockPrice?: string | null | undefined;
8684
+ unitsLeftAtCurrentPrice?: number | null | undefined;
8404
8685
  }[K] extends readonly (infer TElement)[] ? TElement : never) & {
8405
8686
  /** `price` converted to gross with the owning product's tax rate. */
8406
8687
  priceGross: string;
@@ -8583,6 +8864,8 @@ type APICartCouponApplyResult = {
8583
8864
  };
8584
8865
  };
8585
8866
  }[];
8867
+ nextStockPrice?: string | null | undefined;
8868
+ unitsLeftAtCurrentPrice?: number | null | undefined;
8586
8869
  }[K];
8587
8870
  } & {
8588
8871
  /** `price` (the effective net price) converted to gross with the product's tax rate. */
@@ -8765,7 +9048,9 @@ type APICartCouponApplyResult = {
8765
9048
  };
8766
9049
  };
8767
9050
  }[];
8768
- }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
9051
+ nextStockPrice?: string | null | undefined;
9052
+ unitsLeftAtCurrentPrice?: number | null | undefined;
9053
+ }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
8769
9054
  };
8770
9055
  })[];
8771
9056
  subtotalNet: number | null;
@@ -8798,7 +9083,7 @@ type APICartCouponRemoveResult = {
8798
9083
  type APICouponGetByIdResult = {
8799
9084
  id: string;
8800
9085
  code: string;
8801
- type: "fixed" | "percentage";
9086
+ type: "fixed" | "percentage" | "free_shipping";
8802
9087
  value: number;
8803
9088
  timesRedeemed: number;
8804
9089
  maxUses: number | null;
@@ -8831,7 +9116,7 @@ type APICouponsBrowseQueryParams = {
8831
9116
  };
8832
9117
  type APICouponCreateBody = {
8833
9118
  code: string;
8834
- type: "fixed" | "percentage";
9119
+ type: "fixed" | "percentage" | "free_shipping";
8835
9120
  value: number;
8836
9121
  products: string[];
8837
9122
  collections: string[];
@@ -8847,7 +9132,7 @@ type APICouponCreateBody = {
8847
9132
  type APICouponCreateResult = {
8848
9133
  id: string;
8849
9134
  code: string;
8850
- type: "fixed" | "percentage";
9135
+ type: "fixed" | "percentage" | "free_shipping";
8851
9136
  value: number;
8852
9137
  timesRedeemed: number;
8853
9138
  maxUses: number | null;
@@ -8867,7 +9152,7 @@ type APICouponCreateResult = {
8867
9152
  };
8868
9153
  type APICouponUpdateBody = {
8869
9154
  code: string;
8870
- type: "fixed" | "percentage";
9155
+ type: "fixed" | "percentage" | "free_shipping";
8871
9156
  value: number;
8872
9157
  products: string[];
8873
9158
  collections: string[];
@@ -8883,7 +9168,7 @@ type APICouponUpdateBody = {
8883
9168
  type APICouponUpdateResult = {
8884
9169
  id: string;
8885
9170
  code: string;
8886
- type: "fixed" | "percentage";
9171
+ type: "fixed" | "percentage" | "free_shipping";
8887
9172
  value: number;
8888
9173
  timesRedeemed: number;
8889
9174
  maxUses: number | null;
@@ -9077,6 +9362,7 @@ type APIOrdersBrowseResult = Omit<{
9077
9362
  createdAt: string;
9078
9363
  updatedAt: string;
9079
9364
  countries: string[] | null;
9365
+ custom?: boolean | undefined;
9080
9366
  } | null;
9081
9367
  createdAt: string;
9082
9368
  lineItems: {
@@ -9138,6 +9424,7 @@ type APIOrdersBrowseResult = Omit<{
9138
9424
  updatedAt: string;
9139
9425
  } | null;
9140
9426
  flags: {
9427
+ lotTracking?: boolean | null | undefined;
9141
9428
  gold?: boolean | null | undefined;
9142
9429
  event?: {
9143
9430
  enabled: boolean;
@@ -9157,6 +9444,7 @@ type APIOrdersBrowseResult = Omit<{
9157
9444
  type: "TEXT";
9158
9445
  description: string;
9159
9446
  } | null | undefined;
9447
+ introducedBefore20241213?: boolean | null | undefined;
9160
9448
  } | null | undefined;
9161
9449
  } | null;
9162
9450
  type: "set" | "product" | "bundle";
@@ -9304,6 +9592,7 @@ type APIOrdersBrowseResult = Omit<{
9304
9592
  };
9305
9593
  productVariantId: string;
9306
9594
  preVolumePricingPrice: string | null;
9595
+ lockedUnitPrice: string | null;
9307
9596
  subscriptionPlanId: string | null;
9308
9597
  subscriptionPlan: {
9309
9598
  id: string;
@@ -9376,17 +9665,39 @@ type APIOrdersBrowseResult = Omit<{
9376
9665
  }[];
9377
9666
  };
9378
9667
  }[];
9668
+ custom?: {
9669
+ name: string;
9670
+ taxable: boolean;
9671
+ } | null | undefined;
9672
+ discount?: {
9673
+ originalUnitPrice: string;
9674
+ type: "fixed" | "percentage";
9675
+ value: string;
9676
+ reason: string | null;
9677
+ } | null | undefined;
9379
9678
  }[];
9380
9679
  updatedAt: string;
9381
9680
  couponId: string | null;
9382
9681
  coupon: {
9383
- type: "fixed" | "percentage";
9682
+ type: "fixed" | "percentage" | "free_shipping";
9384
9683
  value: string;
9385
9684
  code: string;
9386
9685
  startDate: string | null;
9387
9686
  endDate: string | null;
9388
9687
  minProductCount: number | null;
9389
9688
  maxProductCount: number | null;
9689
+ products?: {
9690
+ id: string;
9691
+ }[] | undefined;
9692
+ collections?: {
9693
+ id: string;
9694
+ }[] | undefined;
9695
+ categories?: {
9696
+ id: string;
9697
+ }[] | undefined;
9698
+ brands?: {
9699
+ id: string;
9700
+ }[] | undefined;
9390
9701
  } | null;
9391
9702
  billingAddress: {
9392
9703
  id: string;
@@ -9445,13 +9756,25 @@ type APIOrdersBrowseResult = Omit<{
9445
9756
  } | null;
9446
9757
  couponId: string | null;
9447
9758
  coupon: {
9448
- type: "fixed" | "percentage";
9759
+ type: "fixed" | "percentage" | "free_shipping";
9449
9760
  value: string;
9450
9761
  code: string;
9451
9762
  startDate: string | null;
9452
9763
  endDate: string | null;
9453
9764
  minProductCount: number | null;
9454
9765
  maxProductCount: number | null;
9766
+ products?: {
9767
+ id: string;
9768
+ }[] | undefined;
9769
+ collections?: {
9770
+ id: string;
9771
+ }[] | undefined;
9772
+ categories?: {
9773
+ id: string;
9774
+ }[] | undefined;
9775
+ brands?: {
9776
+ id: string;
9777
+ }[] | undefined;
9455
9778
  } | null;
9456
9779
  } | null;
9457
9780
  addonData: {
@@ -9478,10 +9801,28 @@ type APIOrdersBrowseResult = Omit<{
9478
9801
  } | null;
9479
9802
  inventory: {
9480
9803
  committedAt: string;
9804
+ mode: "legacy" | "warehouse";
9481
9805
  lines: {
9482
9806
  variantId: string;
9807
+ lineItemId: string | null;
9483
9808
  quantity: number;
9484
9809
  }[];
9810
+ dispatchException?: boolean | undefined;
9811
+ dispatchedLines?: {
9812
+ variantId: string;
9813
+ lineItemId: string | null;
9814
+ quantity: number;
9815
+ }[] | undefined;
9816
+ refundedBeforeDispatch?: {
9817
+ variantId: string;
9818
+ lineItemId: string;
9819
+ quantity: number;
9820
+ }[] | undefined;
9821
+ returnedAfterDispatch?: {
9822
+ variantId: string;
9823
+ lineItemId: string;
9824
+ quantity: number;
9825
+ }[] | undefined;
9485
9826
  } | null;
9486
9827
  reservation: {
9487
9828
  expiredAt: string | null;
@@ -9520,6 +9861,7 @@ type APIOrdersBrowseResult = Omit<{
9520
9861
  }[] | null | undefined;
9521
9862
  } | null;
9522
9863
  currency: string | null;
9864
+ taxBehavior: "inclusive" | "exclusive" | null;
9523
9865
  checkoutConsents: {
9524
9866
  id: string;
9525
9867
  content: unknown;
@@ -9527,6 +9869,25 @@ type APIOrdersBrowseResult = Omit<{
9527
9869
  accepted: boolean;
9528
9870
  type: "general" | "newsletter";
9529
9871
  }[] | null;
9872
+ orderDiscount?: {
9873
+ type: "fixed" | "percentage";
9874
+ value: string;
9875
+ reason: string | null;
9876
+ } | null | undefined;
9877
+ taxExempt?: boolean | undefined;
9878
+ paymentTerms?: {
9879
+ type: "receipt";
9880
+ } | {
9881
+ type: "fulfillment";
9882
+ } | {
9883
+ type: "net";
9884
+ netDays: number;
9885
+ } | {
9886
+ type: "fixed";
9887
+ dueAt: string;
9888
+ } | null | undefined;
9889
+ note?: string | null | undefined;
9890
+ poNumber?: string | null | undefined;
9530
9891
  };
9531
9892
  externalShipmentId: string | null;
9532
9893
  status: "completed" | "cancelled" | "paid" | "created" | "processing" | "shipped" | "refunded" | "partially_refunded" | "reserved";
@@ -9554,7 +9915,46 @@ type APIOrdersBrowseResult = Omit<{
9554
9915
  ticketCode: string | null;
9555
9916
  shareToken: string | null;
9556
9917
  reservationExpiresAt: string | null;
9918
+ paymentDueAt: string | null;
9557
9919
  activeSubscriptionId: string | null;
9920
+ dispatchedAt: string | null;
9921
+ inventoryDispatchSnapshot: {
9922
+ $schema: "https://yns.store/schemas/delivery-note/v1.json";
9923
+ kind: "delivery_note";
9924
+ version: 1;
9925
+ document: {
9926
+ id: string;
9927
+ issuedAt: string;
9928
+ dispatchedAt: string;
9929
+ invoiceNumber?: string | undefined;
9930
+ orderReference?: string | undefined;
9931
+ };
9932
+ supplier: {
9933
+ name: string;
9934
+ taxId?: string | undefined;
9935
+ storeUrl?: string | undefined;
9936
+ };
9937
+ recipient: {
9938
+ name: string;
9939
+ taxId?: string | undefined;
9940
+ };
9941
+ lines: {
9942
+ id: string;
9943
+ description: string;
9944
+ quantity: number;
9945
+ unit: string;
9946
+ sku?: string | undefined;
9947
+ gtin?: string | undefined;
9948
+ lots?: {
9949
+ number: string;
9950
+ quantity: number;
9951
+ expiresAt?: string | null | undefined;
9952
+ bestBeforeAt?: string | null | undefined;
9953
+ serialNumbers?: string[] | undefined;
9954
+ }[] | undefined;
9955
+ serialNumbers?: string[] | undefined;
9956
+ }[];
9957
+ } | null;
9558
9958
  packedAt: string | null;
9559
9959
  packedBy: string | null;
9560
9960
  tags: string[];
@@ -9616,6 +10016,7 @@ type APIOrdersBrowseResult = Omit<{
9616
10016
  createdAt: string;
9617
10017
  updatedAt: string;
9618
10018
  countries: string[] | null;
10019
+ custom?: boolean | undefined;
9619
10020
  } | null;
9620
10021
  createdAt: string;
9621
10022
  lineItems: {
@@ -9677,6 +10078,7 @@ type APIOrdersBrowseResult = Omit<{
9677
10078
  updatedAt: string;
9678
10079
  } | null;
9679
10080
  flags: {
10081
+ lotTracking?: boolean | null | undefined;
9680
10082
  gold?: boolean | null | undefined;
9681
10083
  event?: {
9682
10084
  enabled: boolean;
@@ -9696,6 +10098,7 @@ type APIOrdersBrowseResult = Omit<{
9696
10098
  type: "TEXT";
9697
10099
  description: string;
9698
10100
  } | null | undefined;
10101
+ introducedBefore20241213?: boolean | null | undefined;
9699
10102
  } | null | undefined;
9700
10103
  } | null;
9701
10104
  type: "set" | "product" | "bundle";
@@ -9843,6 +10246,7 @@ type APIOrdersBrowseResult = Omit<{
9843
10246
  };
9844
10247
  productVariantId: string;
9845
10248
  preVolumePricingPrice: string | null;
10249
+ lockedUnitPrice: string | null;
9846
10250
  subscriptionPlanId: string | null;
9847
10251
  subscriptionPlan: {
9848
10252
  id: string;
@@ -9915,17 +10319,39 @@ type APIOrdersBrowseResult = Omit<{
9915
10319
  }[];
9916
10320
  };
9917
10321
  }[];
10322
+ custom?: {
10323
+ name: string;
10324
+ taxable: boolean;
10325
+ } | null | undefined;
10326
+ discount?: {
10327
+ originalUnitPrice: string;
10328
+ type: "fixed" | "percentage";
10329
+ value: string;
10330
+ reason: string | null;
10331
+ } | null | undefined;
9918
10332
  }[];
9919
10333
  updatedAt: string;
9920
10334
  couponId: string | null;
9921
10335
  coupon: {
9922
- type: "fixed" | "percentage";
10336
+ type: "fixed" | "percentage" | "free_shipping";
9923
10337
  value: string;
9924
10338
  code: string;
9925
10339
  startDate: string | null;
9926
10340
  endDate: string | null;
9927
10341
  minProductCount: number | null;
9928
10342
  maxProductCount: number | null;
10343
+ products?: {
10344
+ id: string;
10345
+ }[] | undefined;
10346
+ collections?: {
10347
+ id: string;
10348
+ }[] | undefined;
10349
+ categories?: {
10350
+ id: string;
10351
+ }[] | undefined;
10352
+ brands?: {
10353
+ id: string;
10354
+ }[] | undefined;
9929
10355
  } | null;
9930
10356
  billingAddress: {
9931
10357
  id: string;
@@ -9984,13 +10410,25 @@ type APIOrdersBrowseResult = Omit<{
9984
10410
  } | null;
9985
10411
  couponId: string | null;
9986
10412
  coupon: {
9987
- type: "fixed" | "percentage";
10413
+ type: "fixed" | "percentage" | "free_shipping";
9988
10414
  value: string;
9989
10415
  code: string;
9990
10416
  startDate: string | null;
9991
10417
  endDate: string | null;
9992
10418
  minProductCount: number | null;
9993
10419
  maxProductCount: number | null;
10420
+ products?: {
10421
+ id: string;
10422
+ }[] | undefined;
10423
+ collections?: {
10424
+ id: string;
10425
+ }[] | undefined;
10426
+ categories?: {
10427
+ id: string;
10428
+ }[] | undefined;
10429
+ brands?: {
10430
+ id: string;
10431
+ }[] | undefined;
9994
10432
  } | null;
9995
10433
  } | null;
9996
10434
  addonData: {
@@ -10017,10 +10455,28 @@ type APIOrdersBrowseResult = Omit<{
10017
10455
  } | null;
10018
10456
  inventory: {
10019
10457
  committedAt: string;
10458
+ mode: "legacy" | "warehouse";
10020
10459
  lines: {
10021
10460
  variantId: string;
10461
+ lineItemId: string | null;
10022
10462
  quantity: number;
10023
10463
  }[];
10464
+ dispatchException?: boolean | undefined;
10465
+ dispatchedLines?: {
10466
+ variantId: string;
10467
+ lineItemId: string | null;
10468
+ quantity: number;
10469
+ }[] | undefined;
10470
+ refundedBeforeDispatch?: {
10471
+ variantId: string;
10472
+ lineItemId: string;
10473
+ quantity: number;
10474
+ }[] | undefined;
10475
+ returnedAfterDispatch?: {
10476
+ variantId: string;
10477
+ lineItemId: string;
10478
+ quantity: number;
10479
+ }[] | undefined;
10024
10480
  } | null;
10025
10481
  reservation: {
10026
10482
  expiredAt: string | null;
@@ -10059,6 +10515,7 @@ type APIOrdersBrowseResult = Omit<{
10059
10515
  }[] | null | undefined;
10060
10516
  } | null;
10061
10517
  currency: string | null;
10518
+ taxBehavior: "inclusive" | "exclusive" | null;
10062
10519
  checkoutConsents: {
10063
10520
  id: string;
10064
10521
  content: unknown;
@@ -10066,6 +10523,25 @@ type APIOrdersBrowseResult = Omit<{
10066
10523
  accepted: boolean;
10067
10524
  type: "general" | "newsletter";
10068
10525
  }[] | null;
10526
+ orderDiscount?: {
10527
+ type: "fixed" | "percentage";
10528
+ value: string;
10529
+ reason: string | null;
10530
+ } | null | undefined;
10531
+ taxExempt?: boolean | undefined;
10532
+ paymentTerms?: {
10533
+ type: "receipt";
10534
+ } | {
10535
+ type: "fulfillment";
10536
+ } | {
10537
+ type: "net";
10538
+ netDays: number;
10539
+ } | {
10540
+ type: "fixed";
10541
+ dueAt: string;
10542
+ } | null | undefined;
10543
+ note?: string | null | undefined;
10544
+ poNumber?: string | null | undefined;
10069
10545
  };
10070
10546
  })[];
10071
10547
  meta: {
@@ -10136,6 +10612,7 @@ type APIOrdersBrowseResult = Omit<{
10136
10612
  createdAt: string;
10137
10613
  updatedAt: string;
10138
10614
  countries: string[] | null;
10615
+ custom?: boolean | undefined;
10139
10616
  } | null;
10140
10617
  createdAt: string;
10141
10618
  lineItems: {
@@ -10197,6 +10674,7 @@ type APIOrdersBrowseResult = Omit<{
10197
10674
  updatedAt: string;
10198
10675
  } | null;
10199
10676
  flags: {
10677
+ lotTracking?: boolean | null | undefined;
10200
10678
  gold?: boolean | null | undefined;
10201
10679
  event?: {
10202
10680
  enabled: boolean;
@@ -10216,6 +10694,7 @@ type APIOrdersBrowseResult = Omit<{
10216
10694
  type: "TEXT";
10217
10695
  description: string;
10218
10696
  } | null | undefined;
10697
+ introducedBefore20241213?: boolean | null | undefined;
10219
10698
  } | null | undefined;
10220
10699
  } | null;
10221
10700
  type: "set" | "product" | "bundle";
@@ -10363,6 +10842,7 @@ type APIOrdersBrowseResult = Omit<{
10363
10842
  };
10364
10843
  productVariantId: string;
10365
10844
  preVolumePricingPrice: string | null;
10845
+ lockedUnitPrice: string | null;
10366
10846
  subscriptionPlanId: string | null;
10367
10847
  subscriptionPlan: {
10368
10848
  id: string;
@@ -10435,17 +10915,39 @@ type APIOrdersBrowseResult = Omit<{
10435
10915
  }[];
10436
10916
  };
10437
10917
  }[];
10918
+ custom?: {
10919
+ name: string;
10920
+ taxable: boolean;
10921
+ } | null | undefined;
10922
+ discount?: {
10923
+ originalUnitPrice: string;
10924
+ type: "fixed" | "percentage";
10925
+ value: string;
10926
+ reason: string | null;
10927
+ } | null | undefined;
10438
10928
  }[];
10439
10929
  updatedAt: string;
10440
10930
  couponId: string | null;
10441
10931
  coupon: {
10442
- type: "fixed" | "percentage";
10932
+ type: "fixed" | "percentage" | "free_shipping";
10443
10933
  value: string;
10444
10934
  code: string;
10445
10935
  startDate: string | null;
10446
10936
  endDate: string | null;
10447
10937
  minProductCount: number | null;
10448
10938
  maxProductCount: number | null;
10939
+ products?: {
10940
+ id: string;
10941
+ }[] | undefined;
10942
+ collections?: {
10943
+ id: string;
10944
+ }[] | undefined;
10945
+ categories?: {
10946
+ id: string;
10947
+ }[] | undefined;
10948
+ brands?: {
10949
+ id: string;
10950
+ }[] | undefined;
10449
10951
  } | null;
10450
10952
  billingAddress: {
10451
10953
  id: string;
@@ -10504,13 +11006,25 @@ type APIOrdersBrowseResult = Omit<{
10504
11006
  } | null;
10505
11007
  couponId: string | null;
10506
11008
  coupon: {
10507
- type: "fixed" | "percentage";
11009
+ type: "fixed" | "percentage" | "free_shipping";
10508
11010
  value: string;
10509
11011
  code: string;
10510
11012
  startDate: string | null;
10511
11013
  endDate: string | null;
10512
11014
  minProductCount: number | null;
10513
11015
  maxProductCount: number | null;
11016
+ products?: {
11017
+ id: string;
11018
+ }[] | undefined;
11019
+ collections?: {
11020
+ id: string;
11021
+ }[] | undefined;
11022
+ categories?: {
11023
+ id: string;
11024
+ }[] | undefined;
11025
+ brands?: {
11026
+ id: string;
11027
+ }[] | undefined;
10514
11028
  } | null;
10515
11029
  } | null;
10516
11030
  addonData: {
@@ -10537,10 +11051,28 @@ type APIOrdersBrowseResult = Omit<{
10537
11051
  } | null;
10538
11052
  inventory: {
10539
11053
  committedAt: string;
11054
+ mode: "legacy" | "warehouse";
10540
11055
  lines: {
10541
11056
  variantId: string;
11057
+ lineItemId: string | null;
10542
11058
  quantity: number;
10543
11059
  }[];
11060
+ dispatchException?: boolean | undefined;
11061
+ dispatchedLines?: {
11062
+ variantId: string;
11063
+ lineItemId: string | null;
11064
+ quantity: number;
11065
+ }[] | undefined;
11066
+ refundedBeforeDispatch?: {
11067
+ variantId: string;
11068
+ lineItemId: string;
11069
+ quantity: number;
11070
+ }[] | undefined;
11071
+ returnedAfterDispatch?: {
11072
+ variantId: string;
11073
+ lineItemId: string;
11074
+ quantity: number;
11075
+ }[] | undefined;
10544
11076
  } | null;
10545
11077
  reservation: {
10546
11078
  expiredAt: string | null;
@@ -10579,6 +11111,7 @@ type APIOrdersBrowseResult = Omit<{
10579
11111
  }[] | null | undefined;
10580
11112
  } | null;
10581
11113
  currency: string | null;
11114
+ taxBehavior: "inclusive" | "exclusive" | null;
10582
11115
  checkoutConsents: {
10583
11116
  id: string;
10584
11117
  content: unknown;
@@ -10586,6 +11119,25 @@ type APIOrdersBrowseResult = Omit<{
10586
11119
  accepted: boolean;
10587
11120
  type: "general" | "newsletter";
10588
11121
  }[] | null;
11122
+ orderDiscount?: {
11123
+ type: "fixed" | "percentage";
11124
+ value: string;
11125
+ reason: string | null;
11126
+ } | null | undefined;
11127
+ taxExempt?: boolean | undefined;
11128
+ paymentTerms?: {
11129
+ type: "receipt";
11130
+ } | {
11131
+ type: "fulfillment";
11132
+ } | {
11133
+ type: "net";
11134
+ netDays: number;
11135
+ } | {
11136
+ type: "fixed";
11137
+ dueAt: string;
11138
+ } | null | undefined;
11139
+ note?: string | null | undefined;
11140
+ poNumber?: string | null | undefined;
10589
11141
  };
10590
11142
  externalShipmentId: string | null;
10591
11143
  status: "completed" | "cancelled" | "paid" | "created" | "processing" | "shipped" | "refunded" | "partially_refunded" | "reserved";
@@ -10613,7 +11165,46 @@ type APIOrdersBrowseResult = Omit<{
10613
11165
  ticketCode: string | null;
10614
11166
  shareToken: string | null;
10615
11167
  reservationExpiresAt: string | null;
11168
+ paymentDueAt: string | null;
10616
11169
  activeSubscriptionId: string | null;
11170
+ dispatchedAt: string | null;
11171
+ inventoryDispatchSnapshot: {
11172
+ $schema: "https://yns.store/schemas/delivery-note/v1.json";
11173
+ kind: "delivery_note";
11174
+ version: 1;
11175
+ document: {
11176
+ id: string;
11177
+ issuedAt: string;
11178
+ dispatchedAt: string;
11179
+ invoiceNumber?: string | undefined;
11180
+ orderReference?: string | undefined;
11181
+ };
11182
+ supplier: {
11183
+ name: string;
11184
+ taxId?: string | undefined;
11185
+ storeUrl?: string | undefined;
11186
+ };
11187
+ recipient: {
11188
+ name: string;
11189
+ taxId?: string | undefined;
11190
+ };
11191
+ lines: {
11192
+ id: string;
11193
+ description: string;
11194
+ quantity: number;
11195
+ unit: string;
11196
+ sku?: string | undefined;
11197
+ gtin?: string | undefined;
11198
+ lots?: {
11199
+ number: string;
11200
+ quantity: number;
11201
+ expiresAt?: string | null | undefined;
11202
+ bestBeforeAt?: string | null | undefined;
11203
+ serialNumbers?: string[] | undefined;
11204
+ }[] | undefined;
11205
+ serialNumbers?: string[] | undefined;
11206
+ }[];
11207
+ } | null;
10617
11208
  packedAt: string | null;
10618
11209
  packedBy: string | null;
10619
11210
  tags: string[];
@@ -10675,6 +11266,7 @@ type APIOrdersBrowseResult = Omit<{
10675
11266
  createdAt: string;
10676
11267
  updatedAt: string;
10677
11268
  countries: string[] | null;
11269
+ custom?: boolean | undefined;
10678
11270
  } | null;
10679
11271
  createdAt: string;
10680
11272
  lineItems: {
@@ -10736,6 +11328,7 @@ type APIOrdersBrowseResult = Omit<{
10736
11328
  updatedAt: string;
10737
11329
  } | null;
10738
11330
  flags: {
11331
+ lotTracking?: boolean | null | undefined;
10739
11332
  gold?: boolean | null | undefined;
10740
11333
  event?: {
10741
11334
  enabled: boolean;
@@ -10755,6 +11348,7 @@ type APIOrdersBrowseResult = Omit<{
10755
11348
  type: "TEXT";
10756
11349
  description: string;
10757
11350
  } | null | undefined;
11351
+ introducedBefore20241213?: boolean | null | undefined;
10758
11352
  } | null | undefined;
10759
11353
  } | null;
10760
11354
  type: "set" | "product" | "bundle";
@@ -10902,6 +11496,7 @@ type APIOrdersBrowseResult = Omit<{
10902
11496
  };
10903
11497
  productVariantId: string;
10904
11498
  preVolumePricingPrice: string | null;
11499
+ lockedUnitPrice: string | null;
10905
11500
  subscriptionPlanId: string | null;
10906
11501
  subscriptionPlan: {
10907
11502
  id: string;
@@ -10974,17 +11569,39 @@ type APIOrdersBrowseResult = Omit<{
10974
11569
  }[];
10975
11570
  };
10976
11571
  }[];
11572
+ custom?: {
11573
+ name: string;
11574
+ taxable: boolean;
11575
+ } | null | undefined;
11576
+ discount?: {
11577
+ originalUnitPrice: string;
11578
+ type: "fixed" | "percentage";
11579
+ value: string;
11580
+ reason: string | null;
11581
+ } | null | undefined;
10977
11582
  }[];
10978
11583
  updatedAt: string;
10979
11584
  couponId: string | null;
10980
11585
  coupon: {
10981
- type: "fixed" | "percentage";
11586
+ type: "fixed" | "percentage" | "free_shipping";
10982
11587
  value: string;
10983
11588
  code: string;
10984
11589
  startDate: string | null;
10985
11590
  endDate: string | null;
10986
11591
  minProductCount: number | null;
10987
11592
  maxProductCount: number | null;
11593
+ products?: {
11594
+ id: string;
11595
+ }[] | undefined;
11596
+ collections?: {
11597
+ id: string;
11598
+ }[] | undefined;
11599
+ categories?: {
11600
+ id: string;
11601
+ }[] | undefined;
11602
+ brands?: {
11603
+ id: string;
11604
+ }[] | undefined;
10988
11605
  } | null;
10989
11606
  billingAddress: {
10990
11607
  id: string;
@@ -11043,13 +11660,25 @@ type APIOrdersBrowseResult = Omit<{
11043
11660
  } | null;
11044
11661
  couponId: string | null;
11045
11662
  coupon: {
11046
- type: "fixed" | "percentage";
11663
+ type: "fixed" | "percentage" | "free_shipping";
11047
11664
  value: string;
11048
11665
  code: string;
11049
11666
  startDate: string | null;
11050
11667
  endDate: string | null;
11051
11668
  minProductCount: number | null;
11052
11669
  maxProductCount: number | null;
11670
+ products?: {
11671
+ id: string;
11672
+ }[] | undefined;
11673
+ collections?: {
11674
+ id: string;
11675
+ }[] | undefined;
11676
+ categories?: {
11677
+ id: string;
11678
+ }[] | undefined;
11679
+ brands?: {
11680
+ id: string;
11681
+ }[] | undefined;
11053
11682
  } | null;
11054
11683
  } | null;
11055
11684
  addonData: {
@@ -11076,10 +11705,28 @@ type APIOrdersBrowseResult = Omit<{
11076
11705
  } | null;
11077
11706
  inventory: {
11078
11707
  committedAt: string;
11708
+ mode: "legacy" | "warehouse";
11079
11709
  lines: {
11080
11710
  variantId: string;
11711
+ lineItemId: string | null;
11081
11712
  quantity: number;
11082
11713
  }[];
11714
+ dispatchException?: boolean | undefined;
11715
+ dispatchedLines?: {
11716
+ variantId: string;
11717
+ lineItemId: string | null;
11718
+ quantity: number;
11719
+ }[] | undefined;
11720
+ refundedBeforeDispatch?: {
11721
+ variantId: string;
11722
+ lineItemId: string;
11723
+ quantity: number;
11724
+ }[] | undefined;
11725
+ returnedAfterDispatch?: {
11726
+ variantId: string;
11727
+ lineItemId: string;
11728
+ quantity: number;
11729
+ }[] | undefined;
11083
11730
  } | null;
11084
11731
  reservation: {
11085
11732
  expiredAt: string | null;
@@ -11118,6 +11765,7 @@ type APIOrdersBrowseResult = Omit<{
11118
11765
  }[] | null | undefined;
11119
11766
  } | null;
11120
11767
  currency: string | null;
11768
+ taxBehavior: "inclusive" | "exclusive" | null;
11121
11769
  checkoutConsents: {
11122
11770
  id: string;
11123
11771
  content: unknown;
@@ -11125,6 +11773,25 @@ type APIOrdersBrowseResult = Omit<{
11125
11773
  accepted: boolean;
11126
11774
  type: "general" | "newsletter";
11127
11775
  }[] | null;
11776
+ orderDiscount?: {
11777
+ type: "fixed" | "percentage";
11778
+ value: string;
11779
+ reason: string | null;
11780
+ } | null | undefined;
11781
+ taxExempt?: boolean | undefined;
11782
+ paymentTerms?: {
11783
+ type: "receipt";
11784
+ } | {
11785
+ type: "fulfillment";
11786
+ } | {
11787
+ type: "net";
11788
+ netDays: number;
11789
+ } | {
11790
+ type: "fixed";
11791
+ dueAt: string;
11792
+ } | null | undefined;
11793
+ note?: string | null | undefined;
11794
+ poNumber?: string | null | undefined;
11128
11795
  };
11129
11796
  })[];
11130
11797
  meta: {
@@ -11187,6 +11854,7 @@ type APIOrdersBrowseResult = Omit<{
11187
11854
  createdAt: string;
11188
11855
  updatedAt: string;
11189
11856
  countries: string[] | null;
11857
+ custom?: boolean | undefined;
11190
11858
  } & {
11191
11859
  priceGross: string;
11192
11860
  }) | null;
@@ -11251,6 +11919,7 @@ type APIOrdersBrowseResult = Omit<{
11251
11919
  updatedAt: string;
11252
11920
  } | null;
11253
11921
  flags: {
11922
+ lotTracking?: boolean | null | undefined;
11254
11923
  gold?: boolean | null | undefined;
11255
11924
  event?: {
11256
11925
  enabled: boolean;
@@ -11270,6 +11939,7 @@ type APIOrdersBrowseResult = Omit<{
11270
11939
  type: "TEXT";
11271
11940
  description: string;
11272
11941
  } | null | undefined;
11942
+ introducedBefore20241213?: boolean | null | undefined;
11273
11943
  } | null | undefined;
11274
11944
  } | null;
11275
11945
  type: "set" | "product" | "bundle";
@@ -11466,6 +12136,7 @@ type APIOrdersBrowseResult = Omit<{
11466
12136
  updatedAt: string;
11467
12137
  } | null;
11468
12138
  flags: {
12139
+ lotTracking?: boolean | null | undefined;
11469
12140
  gold?: boolean | null | undefined;
11470
12141
  event?: {
11471
12142
  enabled: boolean;
@@ -11485,6 +12156,7 @@ type APIOrdersBrowseResult = Omit<{
11485
12156
  type: "TEXT";
11486
12157
  description: string;
11487
12158
  } | null | undefined;
12159
+ introducedBefore20241213?: boolean | null | undefined;
11488
12160
  } | null | undefined;
11489
12161
  } | null;
11490
12162
  type: "set" | "product" | "bundle";
@@ -11686,6 +12358,7 @@ type APIOrdersBrowseResult = Omit<{
11686
12358
  updatedAt: string;
11687
12359
  } | null;
11688
12360
  flags: {
12361
+ lotTracking?: boolean | null | undefined;
11689
12362
  gold?: boolean | null | undefined;
11690
12363
  event?: {
11691
12364
  enabled: boolean;
@@ -11705,6 +12378,7 @@ type APIOrdersBrowseResult = Omit<{
11705
12378
  type: "TEXT";
11706
12379
  description: string;
11707
12380
  } | null | undefined;
12381
+ introducedBefore20241213?: boolean | null | undefined;
11708
12382
  } | null | undefined;
11709
12383
  } | null;
11710
12384
  type: "set" | "product" | "bundle";
@@ -11906,6 +12580,7 @@ type APIOrdersBrowseResult = Omit<{
11906
12580
  updatedAt: string;
11907
12581
  } | null;
11908
12582
  flags: {
12583
+ lotTracking?: boolean | null | undefined;
11909
12584
  gold?: boolean | null | undefined;
11910
12585
  event?: {
11911
12586
  enabled: boolean;
@@ -11925,6 +12600,7 @@ type APIOrdersBrowseResult = Omit<{
11925
12600
  type: "TEXT";
11926
12601
  description: string;
11927
12602
  } | null | undefined;
12603
+ introducedBefore20241213?: boolean | null | undefined;
11928
12604
  } | null | undefined;
11929
12605
  } | null;
11930
12606
  type: "set" | "product" | "bundle";
@@ -12069,10 +12745,11 @@ type APIOrdersBrowseResult = Omit<{
12069
12745
  originalPrice?: string | null | undefined;
12070
12746
  } & {
12071
12747
  originalPrice: string;
12072
- }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
12748
+ }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
12073
12749
  };
12074
12750
  productVariantId: string;
12075
12751
  preVolumePricingPrice: string | null;
12752
+ lockedUnitPrice: string | null;
12076
12753
  subscriptionPlanId: string | null;
12077
12754
  subscriptionPlan: {
12078
12755
  id: string;
@@ -12145,17 +12822,39 @@ type APIOrdersBrowseResult = Omit<{
12145
12822
  }[];
12146
12823
  };
12147
12824
  }[];
12825
+ custom?: {
12826
+ name: string;
12827
+ taxable: boolean;
12828
+ } | null | undefined;
12829
+ discount?: {
12830
+ originalUnitPrice: string;
12831
+ type: "fixed" | "percentage";
12832
+ value: string;
12833
+ reason: string | null;
12834
+ } | null | undefined;
12148
12835
  }[];
12149
12836
  updatedAt: string;
12150
12837
  couponId: string | null;
12151
12838
  coupon: {
12152
- type: "fixed" | "percentage";
12839
+ type: "fixed" | "percentage" | "free_shipping";
12153
12840
  value: string;
12154
12841
  code: string;
12155
12842
  startDate: string | null;
12156
12843
  endDate: string | null;
12157
12844
  minProductCount: number | null;
12158
12845
  maxProductCount: number | null;
12846
+ products?: {
12847
+ id: string;
12848
+ }[] | undefined;
12849
+ collections?: {
12850
+ id: string;
12851
+ }[] | undefined;
12852
+ categories?: {
12853
+ id: string;
12854
+ }[] | undefined;
12855
+ brands?: {
12856
+ id: string;
12857
+ }[] | undefined;
12159
12858
  } | null;
12160
12859
  billingAddress: {
12161
12860
  id: string;
@@ -12214,13 +12913,25 @@ type APIOrdersBrowseResult = Omit<{
12214
12913
  } | null;
12215
12914
  couponId: string | null;
12216
12915
  coupon: {
12217
- type: "fixed" | "percentage";
12916
+ type: "fixed" | "percentage" | "free_shipping";
12218
12917
  value: string;
12219
12918
  code: string;
12220
12919
  startDate: string | null;
12221
12920
  endDate: string | null;
12222
12921
  minProductCount: number | null;
12223
12922
  maxProductCount: number | null;
12923
+ products?: {
12924
+ id: string;
12925
+ }[] | undefined;
12926
+ collections?: {
12927
+ id: string;
12928
+ }[] | undefined;
12929
+ categories?: {
12930
+ id: string;
12931
+ }[] | undefined;
12932
+ brands?: {
12933
+ id: string;
12934
+ }[] | undefined;
12224
12935
  } | null;
12225
12936
  } | null;
12226
12937
  addonData: {
@@ -12247,10 +12958,28 @@ type APIOrdersBrowseResult = Omit<{
12247
12958
  } | null;
12248
12959
  inventory: {
12249
12960
  committedAt: string;
12961
+ mode: "legacy" | "warehouse";
12250
12962
  lines: {
12251
12963
  variantId: string;
12964
+ lineItemId: string | null;
12252
12965
  quantity: number;
12253
12966
  }[];
12967
+ dispatchException?: boolean | undefined;
12968
+ dispatchedLines?: {
12969
+ variantId: string;
12970
+ lineItemId: string | null;
12971
+ quantity: number;
12972
+ }[] | undefined;
12973
+ refundedBeforeDispatch?: {
12974
+ variantId: string;
12975
+ lineItemId: string;
12976
+ quantity: number;
12977
+ }[] | undefined;
12978
+ returnedAfterDispatch?: {
12979
+ variantId: string;
12980
+ lineItemId: string;
12981
+ quantity: number;
12982
+ }[] | undefined;
12254
12983
  } | null;
12255
12984
  reservation: {
12256
12985
  expiredAt: string | null;
@@ -12289,6 +13018,7 @@ type APIOrdersBrowseResult = Omit<{
12289
13018
  }[] | null | undefined;
12290
13019
  } | null;
12291
13020
  currency: string | null;
13021
+ taxBehavior: "inclusive" | "exclusive" | null;
12292
13022
  checkoutConsents: {
12293
13023
  id: string;
12294
13024
  content: unknown;
@@ -12296,6 +13026,25 @@ type APIOrdersBrowseResult = Omit<{
12296
13026
  accepted: boolean;
12297
13027
  type: "general" | "newsletter";
12298
13028
  }[] | null;
13029
+ orderDiscount?: {
13030
+ type: "fixed" | "percentage";
13031
+ value: string;
13032
+ reason: string | null;
13033
+ } | null | undefined;
13034
+ taxExempt?: boolean | undefined;
13035
+ paymentTerms?: {
13036
+ type: "receipt";
13037
+ } | {
13038
+ type: "fulfillment";
13039
+ } | {
13040
+ type: "net";
13041
+ netDays: number;
13042
+ } | {
13043
+ type: "fixed";
13044
+ dueAt: string;
13045
+ } | null | undefined;
13046
+ note?: string | null | undefined;
13047
+ poNumber?: string | null | undefined;
12299
13048
  };
12300
13049
  shipment: APIShipment | null;
12301
13050
  }>;
@@ -12388,6 +13137,7 @@ type APIOrderGetByIdResult = Omit<{
12388
13137
  createdAt: string;
12389
13138
  updatedAt: string;
12390
13139
  countries: string[] | null;
13140
+ custom?: boolean | undefined;
12391
13141
  } | null;
12392
13142
  createdAt: string;
12393
13143
  lineItems: {
@@ -12449,6 +13199,7 @@ type APIOrderGetByIdResult = Omit<{
12449
13199
  updatedAt: string;
12450
13200
  } | null;
12451
13201
  flags: {
13202
+ lotTracking?: boolean | null | undefined;
12452
13203
  gold?: boolean | null | undefined;
12453
13204
  event?: {
12454
13205
  enabled: boolean;
@@ -12468,6 +13219,7 @@ type APIOrderGetByIdResult = Omit<{
12468
13219
  type: "TEXT";
12469
13220
  description: string;
12470
13221
  } | null | undefined;
13222
+ introducedBefore20241213?: boolean | null | undefined;
12471
13223
  } | null | undefined;
12472
13224
  } | null;
12473
13225
  type: "set" | "product" | "bundle";
@@ -12615,6 +13367,7 @@ type APIOrderGetByIdResult = Omit<{
12615
13367
  };
12616
13368
  productVariantId: string;
12617
13369
  preVolumePricingPrice: string | null;
13370
+ lockedUnitPrice: string | null;
12618
13371
  subscriptionPlanId: string | null;
12619
13372
  subscriptionPlan: {
12620
13373
  id: string;
@@ -12687,17 +13440,39 @@ type APIOrderGetByIdResult = Omit<{
12687
13440
  }[];
12688
13441
  };
12689
13442
  }[];
13443
+ custom?: {
13444
+ name: string;
13445
+ taxable: boolean;
13446
+ } | null | undefined;
13447
+ discount?: {
13448
+ originalUnitPrice: string;
13449
+ type: "fixed" | "percentage";
13450
+ value: string;
13451
+ reason: string | null;
13452
+ } | null | undefined;
12690
13453
  }[];
12691
13454
  updatedAt: string;
12692
13455
  couponId: string | null;
12693
13456
  coupon: {
12694
- type: "fixed" | "percentage";
13457
+ type: "fixed" | "percentage" | "free_shipping";
12695
13458
  value: string;
12696
13459
  code: string;
12697
13460
  startDate: string | null;
12698
13461
  endDate: string | null;
12699
13462
  minProductCount: number | null;
12700
13463
  maxProductCount: number | null;
13464
+ products?: {
13465
+ id: string;
13466
+ }[] | undefined;
13467
+ collections?: {
13468
+ id: string;
13469
+ }[] | undefined;
13470
+ categories?: {
13471
+ id: string;
13472
+ }[] | undefined;
13473
+ brands?: {
13474
+ id: string;
13475
+ }[] | undefined;
12701
13476
  } | null;
12702
13477
  billingAddress: {
12703
13478
  id: string;
@@ -12756,13 +13531,25 @@ type APIOrderGetByIdResult = Omit<{
12756
13531
  } | null;
12757
13532
  couponId: string | null;
12758
13533
  coupon: {
12759
- type: "fixed" | "percentage";
13534
+ type: "fixed" | "percentage" | "free_shipping";
12760
13535
  value: string;
12761
13536
  code: string;
12762
13537
  startDate: string | null;
12763
13538
  endDate: string | null;
12764
13539
  minProductCount: number | null;
12765
13540
  maxProductCount: number | null;
13541
+ products?: {
13542
+ id: string;
13543
+ }[] | undefined;
13544
+ collections?: {
13545
+ id: string;
13546
+ }[] | undefined;
13547
+ categories?: {
13548
+ id: string;
13549
+ }[] | undefined;
13550
+ brands?: {
13551
+ id: string;
13552
+ }[] | undefined;
12766
13553
  } | null;
12767
13554
  } | null;
12768
13555
  addonData: {
@@ -12789,10 +13576,28 @@ type APIOrderGetByIdResult = Omit<{
12789
13576
  } | null;
12790
13577
  inventory: {
12791
13578
  committedAt: string;
13579
+ mode: "legacy" | "warehouse";
12792
13580
  lines: {
12793
13581
  variantId: string;
13582
+ lineItemId: string | null;
12794
13583
  quantity: number;
12795
13584
  }[];
13585
+ dispatchException?: boolean | undefined;
13586
+ dispatchedLines?: {
13587
+ variantId: string;
13588
+ lineItemId: string | null;
13589
+ quantity: number;
13590
+ }[] | undefined;
13591
+ refundedBeforeDispatch?: {
13592
+ variantId: string;
13593
+ lineItemId: string;
13594
+ quantity: number;
13595
+ }[] | undefined;
13596
+ returnedAfterDispatch?: {
13597
+ variantId: string;
13598
+ lineItemId: string;
13599
+ quantity: number;
13600
+ }[] | undefined;
12796
13601
  } | null;
12797
13602
  reservation: {
12798
13603
  expiredAt: string | null;
@@ -12831,6 +13636,7 @@ type APIOrderGetByIdResult = Omit<{
12831
13636
  }[] | null | undefined;
12832
13637
  } | null;
12833
13638
  currency: string | null;
13639
+ taxBehavior: "inclusive" | "exclusive" | null;
12834
13640
  checkoutConsents: {
12835
13641
  id: string;
12836
13642
  content: unknown;
@@ -12838,6 +13644,25 @@ type APIOrderGetByIdResult = Omit<{
12838
13644
  accepted: boolean;
12839
13645
  type: "general" | "newsletter";
12840
13646
  }[] | null;
13647
+ orderDiscount?: {
13648
+ type: "fixed" | "percentage";
13649
+ value: string;
13650
+ reason: string | null;
13651
+ } | null | undefined;
13652
+ taxExempt?: boolean | undefined;
13653
+ paymentTerms?: {
13654
+ type: "receipt";
13655
+ } | {
13656
+ type: "fulfillment";
13657
+ } | {
13658
+ type: "net";
13659
+ netDays: number;
13660
+ } | {
13661
+ type: "fixed";
13662
+ dueAt: string;
13663
+ } | null | undefined;
13664
+ note?: string | null | undefined;
13665
+ poNumber?: string | null | undefined;
12841
13666
  };
12842
13667
  externalShipmentId: string | null;
12843
13668
  paymentDeduplicationId: string | null;
@@ -12845,7 +13670,46 @@ type APIOrderGetByIdResult = Omit<{
12845
13670
  ticketCode: string | null;
12846
13671
  shareToken: string | null;
12847
13672
  reservationExpiresAt: string | null;
13673
+ paymentDueAt: string | null;
12848
13674
  activeSubscriptionId: string | null;
13675
+ dispatchedAt: string | null;
13676
+ inventoryDispatchSnapshot: {
13677
+ $schema: "https://yns.store/schemas/delivery-note/v1.json";
13678
+ kind: "delivery_note";
13679
+ version: 1;
13680
+ document: {
13681
+ id: string;
13682
+ issuedAt: string;
13683
+ dispatchedAt: string;
13684
+ invoiceNumber?: string | undefined;
13685
+ orderReference?: string | undefined;
13686
+ };
13687
+ supplier: {
13688
+ name: string;
13689
+ taxId?: string | undefined;
13690
+ storeUrl?: string | undefined;
13691
+ };
13692
+ recipient: {
13693
+ name: string;
13694
+ taxId?: string | undefined;
13695
+ };
13696
+ lines: {
13697
+ id: string;
13698
+ description: string;
13699
+ quantity: number;
13700
+ unit: string;
13701
+ sku?: string | undefined;
13702
+ gtin?: string | undefined;
13703
+ lots?: {
13704
+ number: string;
13705
+ quantity: number;
13706
+ expiresAt?: string | null | undefined;
13707
+ bestBeforeAt?: string | null | undefined;
13708
+ serialNumbers?: string[] | undefined;
13709
+ }[] | undefined;
13710
+ serialNumbers?: string[] | undefined;
13711
+ }[];
13712
+ } | null;
12849
13713
  packedAt: string | null;
12850
13714
  packedBy: string | null;
12851
13715
  tags: string[];
@@ -12939,6 +13803,7 @@ type APIOrderGetByIdResult = Omit<{
12939
13803
  createdAt: string;
12940
13804
  updatedAt: string;
12941
13805
  countries: string[] | null;
13806
+ custom?: boolean | undefined;
12942
13807
  } | null;
12943
13808
  createdAt: string;
12944
13809
  lineItems: {
@@ -13000,6 +13865,7 @@ type APIOrderGetByIdResult = Omit<{
13000
13865
  updatedAt: string;
13001
13866
  } | null;
13002
13867
  flags: {
13868
+ lotTracking?: boolean | null | undefined;
13003
13869
  gold?: boolean | null | undefined;
13004
13870
  event?: {
13005
13871
  enabled: boolean;
@@ -13019,6 +13885,7 @@ type APIOrderGetByIdResult = Omit<{
13019
13885
  type: "TEXT";
13020
13886
  description: string;
13021
13887
  } | null | undefined;
13888
+ introducedBefore20241213?: boolean | null | undefined;
13022
13889
  } | null | undefined;
13023
13890
  } | null;
13024
13891
  type: "set" | "product" | "bundle";
@@ -13166,6 +14033,7 @@ type APIOrderGetByIdResult = Omit<{
13166
14033
  };
13167
14034
  productVariantId: string;
13168
14035
  preVolumePricingPrice: string | null;
14036
+ lockedUnitPrice: string | null;
13169
14037
  subscriptionPlanId: string | null;
13170
14038
  subscriptionPlan: {
13171
14039
  id: string;
@@ -13238,17 +14106,39 @@ type APIOrderGetByIdResult = Omit<{
13238
14106
  }[];
13239
14107
  };
13240
14108
  }[];
14109
+ custom?: {
14110
+ name: string;
14111
+ taxable: boolean;
14112
+ } | null | undefined;
14113
+ discount?: {
14114
+ originalUnitPrice: string;
14115
+ type: "fixed" | "percentage";
14116
+ value: string;
14117
+ reason: string | null;
14118
+ } | null | undefined;
13241
14119
  }[];
13242
14120
  updatedAt: string;
13243
14121
  couponId: string | null;
13244
14122
  coupon: {
13245
- type: "fixed" | "percentage";
14123
+ type: "fixed" | "percentage" | "free_shipping";
13246
14124
  value: string;
13247
14125
  code: string;
13248
14126
  startDate: string | null;
13249
14127
  endDate: string | null;
13250
14128
  minProductCount: number | null;
13251
14129
  maxProductCount: number | null;
14130
+ products?: {
14131
+ id: string;
14132
+ }[] | undefined;
14133
+ collections?: {
14134
+ id: string;
14135
+ }[] | undefined;
14136
+ categories?: {
14137
+ id: string;
14138
+ }[] | undefined;
14139
+ brands?: {
14140
+ id: string;
14141
+ }[] | undefined;
13252
14142
  } | null;
13253
14143
  billingAddress: {
13254
14144
  id: string;
@@ -13307,13 +14197,25 @@ type APIOrderGetByIdResult = Omit<{
13307
14197
  } | null;
13308
14198
  couponId: string | null;
13309
14199
  coupon: {
13310
- type: "fixed" | "percentage";
14200
+ type: "fixed" | "percentage" | "free_shipping";
13311
14201
  value: string;
13312
14202
  code: string;
13313
14203
  startDate: string | null;
13314
14204
  endDate: string | null;
13315
14205
  minProductCount: number | null;
13316
14206
  maxProductCount: number | null;
14207
+ products?: {
14208
+ id: string;
14209
+ }[] | undefined;
14210
+ collections?: {
14211
+ id: string;
14212
+ }[] | undefined;
14213
+ categories?: {
14214
+ id: string;
14215
+ }[] | undefined;
14216
+ brands?: {
14217
+ id: string;
14218
+ }[] | undefined;
13317
14219
  } | null;
13318
14220
  } | null;
13319
14221
  addonData: {
@@ -13340,10 +14242,28 @@ type APIOrderGetByIdResult = Omit<{
13340
14242
  } | null;
13341
14243
  inventory: {
13342
14244
  committedAt: string;
14245
+ mode: "legacy" | "warehouse";
13343
14246
  lines: {
13344
14247
  variantId: string;
14248
+ lineItemId: string | null;
13345
14249
  quantity: number;
13346
14250
  }[];
14251
+ dispatchException?: boolean | undefined;
14252
+ dispatchedLines?: {
14253
+ variantId: string;
14254
+ lineItemId: string | null;
14255
+ quantity: number;
14256
+ }[] | undefined;
14257
+ refundedBeforeDispatch?: {
14258
+ variantId: string;
14259
+ lineItemId: string;
14260
+ quantity: number;
14261
+ }[] | undefined;
14262
+ returnedAfterDispatch?: {
14263
+ variantId: string;
14264
+ lineItemId: string;
14265
+ quantity: number;
14266
+ }[] | undefined;
13347
14267
  } | null;
13348
14268
  reservation: {
13349
14269
  expiredAt: string | null;
@@ -13382,6 +14302,7 @@ type APIOrderGetByIdResult = Omit<{
13382
14302
  }[] | null | undefined;
13383
14303
  } | null;
13384
14304
  currency: string | null;
14305
+ taxBehavior: "inclusive" | "exclusive" | null;
13385
14306
  checkoutConsents: {
13386
14307
  id: string;
13387
14308
  content: unknown;
@@ -13389,6 +14310,25 @@ type APIOrderGetByIdResult = Omit<{
13389
14310
  accepted: boolean;
13390
14311
  type: "general" | "newsletter";
13391
14312
  }[] | null;
14313
+ orderDiscount?: {
14314
+ type: "fixed" | "percentage";
14315
+ value: string;
14316
+ reason: string | null;
14317
+ } | null | undefined;
14318
+ taxExempt?: boolean | undefined;
14319
+ paymentTerms?: {
14320
+ type: "receipt";
14321
+ } | {
14322
+ type: "fulfillment";
14323
+ } | {
14324
+ type: "net";
14325
+ netDays: number;
14326
+ } | {
14327
+ type: "fixed";
14328
+ dueAt: string;
14329
+ } | null | undefined;
14330
+ note?: string | null | undefined;
14331
+ poNumber?: string | null | undefined;
13392
14332
  };
13393
14333
  }, "attribution" | "orderData"> & {
13394
14334
  orderData: {
@@ -13447,6 +14387,7 @@ type APIOrderGetByIdResult = Omit<{
13447
14387
  createdAt: string;
13448
14388
  updatedAt: string;
13449
14389
  countries: string[] | null;
14390
+ custom?: boolean | undefined;
13450
14391
  } & {
13451
14392
  priceGross: string;
13452
14393
  }) | null;
@@ -13511,6 +14452,7 @@ type APIOrderGetByIdResult = Omit<{
13511
14452
  updatedAt: string;
13512
14453
  } | null;
13513
14454
  flags: {
14455
+ lotTracking?: boolean | null | undefined;
13514
14456
  gold?: boolean | null | undefined;
13515
14457
  event?: {
13516
14458
  enabled: boolean;
@@ -13530,6 +14472,7 @@ type APIOrderGetByIdResult = Omit<{
13530
14472
  type: "TEXT";
13531
14473
  description: string;
13532
14474
  } | null | undefined;
14475
+ introducedBefore20241213?: boolean | null | undefined;
13533
14476
  } | null | undefined;
13534
14477
  } | null;
13535
14478
  type: "set" | "product" | "bundle";
@@ -13726,6 +14669,7 @@ type APIOrderGetByIdResult = Omit<{
13726
14669
  updatedAt: string;
13727
14670
  } | null;
13728
14671
  flags: {
14672
+ lotTracking?: boolean | null | undefined;
13729
14673
  gold?: boolean | null | undefined;
13730
14674
  event?: {
13731
14675
  enabled: boolean;
@@ -13745,6 +14689,7 @@ type APIOrderGetByIdResult = Omit<{
13745
14689
  type: "TEXT";
13746
14690
  description: string;
13747
14691
  } | null | undefined;
14692
+ introducedBefore20241213?: boolean | null | undefined;
13748
14693
  } | null | undefined;
13749
14694
  } | null;
13750
14695
  type: "set" | "product" | "bundle";
@@ -13946,6 +14891,7 @@ type APIOrderGetByIdResult = Omit<{
13946
14891
  updatedAt: string;
13947
14892
  } | null;
13948
14893
  flags: {
14894
+ lotTracking?: boolean | null | undefined;
13949
14895
  gold?: boolean | null | undefined;
13950
14896
  event?: {
13951
14897
  enabled: boolean;
@@ -13965,6 +14911,7 @@ type APIOrderGetByIdResult = Omit<{
13965
14911
  type: "TEXT";
13966
14912
  description: string;
13967
14913
  } | null | undefined;
14914
+ introducedBefore20241213?: boolean | null | undefined;
13968
14915
  } | null | undefined;
13969
14916
  } | null;
13970
14917
  type: "set" | "product" | "bundle";
@@ -14166,6 +15113,7 @@ type APIOrderGetByIdResult = Omit<{
14166
15113
  updatedAt: string;
14167
15114
  } | null;
14168
15115
  flags: {
15116
+ lotTracking?: boolean | null | undefined;
14169
15117
  gold?: boolean | null | undefined;
14170
15118
  event?: {
14171
15119
  enabled: boolean;
@@ -14185,6 +15133,7 @@ type APIOrderGetByIdResult = Omit<{
14185
15133
  type: "TEXT";
14186
15134
  description: string;
14187
15135
  } | null | undefined;
15136
+ introducedBefore20241213?: boolean | null | undefined;
14188
15137
  } | null | undefined;
14189
15138
  } | null;
14190
15139
  type: "set" | "product" | "bundle";
@@ -14329,10 +15278,11 @@ type APIOrderGetByIdResult = Omit<{
14329
15278
  originalPrice?: string | null | undefined;
14330
15279
  } & {
14331
15280
  originalPrice: string;
14332
- }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
15281
+ }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
14333
15282
  };
14334
15283
  productVariantId: string;
14335
15284
  preVolumePricingPrice: string | null;
15285
+ lockedUnitPrice: string | null;
14336
15286
  subscriptionPlanId: string | null;
14337
15287
  subscriptionPlan: {
14338
15288
  id: string;
@@ -14405,17 +15355,39 @@ type APIOrderGetByIdResult = Omit<{
14405
15355
  }[];
14406
15356
  };
14407
15357
  }[];
15358
+ custom?: {
15359
+ name: string;
15360
+ taxable: boolean;
15361
+ } | null | undefined;
15362
+ discount?: {
15363
+ originalUnitPrice: string;
15364
+ type: "fixed" | "percentage";
15365
+ value: string;
15366
+ reason: string | null;
15367
+ } | null | undefined;
14408
15368
  }[];
14409
15369
  updatedAt: string;
14410
15370
  couponId: string | null;
14411
15371
  coupon: {
14412
- type: "fixed" | "percentage";
15372
+ type: "fixed" | "percentage" | "free_shipping";
14413
15373
  value: string;
14414
15374
  code: string;
14415
15375
  startDate: string | null;
14416
15376
  endDate: string | null;
14417
15377
  minProductCount: number | null;
14418
15378
  maxProductCount: number | null;
15379
+ products?: {
15380
+ id: string;
15381
+ }[] | undefined;
15382
+ collections?: {
15383
+ id: string;
15384
+ }[] | undefined;
15385
+ categories?: {
15386
+ id: string;
15387
+ }[] | undefined;
15388
+ brands?: {
15389
+ id: string;
15390
+ }[] | undefined;
14419
15391
  } | null;
14420
15392
  billingAddress: {
14421
15393
  id: string;
@@ -14474,13 +15446,25 @@ type APIOrderGetByIdResult = Omit<{
14474
15446
  } | null;
14475
15447
  couponId: string | null;
14476
15448
  coupon: {
14477
- type: "fixed" | "percentage";
15449
+ type: "fixed" | "percentage" | "free_shipping";
14478
15450
  value: string;
14479
15451
  code: string;
14480
15452
  startDate: string | null;
14481
15453
  endDate: string | null;
14482
15454
  minProductCount: number | null;
14483
15455
  maxProductCount: number | null;
15456
+ products?: {
15457
+ id: string;
15458
+ }[] | undefined;
15459
+ collections?: {
15460
+ id: string;
15461
+ }[] | undefined;
15462
+ categories?: {
15463
+ id: string;
15464
+ }[] | undefined;
15465
+ brands?: {
15466
+ id: string;
15467
+ }[] | undefined;
14484
15468
  } | null;
14485
15469
  } | null;
14486
15470
  addonData: {
@@ -14507,10 +15491,28 @@ type APIOrderGetByIdResult = Omit<{
14507
15491
  } | null;
14508
15492
  inventory: {
14509
15493
  committedAt: string;
15494
+ mode: "legacy" | "warehouse";
14510
15495
  lines: {
14511
15496
  variantId: string;
15497
+ lineItemId: string | null;
14512
15498
  quantity: number;
14513
15499
  }[];
15500
+ dispatchException?: boolean | undefined;
15501
+ dispatchedLines?: {
15502
+ variantId: string;
15503
+ lineItemId: string | null;
15504
+ quantity: number;
15505
+ }[] | undefined;
15506
+ refundedBeforeDispatch?: {
15507
+ variantId: string;
15508
+ lineItemId: string;
15509
+ quantity: number;
15510
+ }[] | undefined;
15511
+ returnedAfterDispatch?: {
15512
+ variantId: string;
15513
+ lineItemId: string;
15514
+ quantity: number;
15515
+ }[] | undefined;
14514
15516
  } | null;
14515
15517
  reservation: {
14516
15518
  expiredAt: string | null;
@@ -14549,6 +15551,7 @@ type APIOrderGetByIdResult = Omit<{
14549
15551
  }[] | null | undefined;
14550
15552
  } | null;
14551
15553
  currency: string | null;
15554
+ taxBehavior: "inclusive" | "exclusive" | null;
14552
15555
  checkoutConsents: {
14553
15556
  id: string;
14554
15557
  content: unknown;
@@ -14556,6 +15559,25 @@ type APIOrderGetByIdResult = Omit<{
14556
15559
  accepted: boolean;
14557
15560
  type: "general" | "newsletter";
14558
15561
  }[] | null;
15562
+ orderDiscount?: {
15563
+ type: "fixed" | "percentage";
15564
+ value: string;
15565
+ reason: string | null;
15566
+ } | null | undefined;
15567
+ taxExempt?: boolean | undefined;
15568
+ paymentTerms?: {
15569
+ type: "receipt";
15570
+ } | {
15571
+ type: "fulfillment";
15572
+ } | {
15573
+ type: "net";
15574
+ netDays: number;
15575
+ } | {
15576
+ type: "fixed";
15577
+ dueAt: string;
15578
+ } | null | undefined;
15579
+ note?: string | null | undefined;
15580
+ poNumber?: string | null | undefined;
14559
15581
  };
14560
15582
  trackingNumber: string | null;
14561
15583
  shipments: APIShipment[];
@@ -15042,6 +16064,7 @@ type APIMeStore = {
15042
16064
  showHeader?: boolean | null | undefined;
15043
16065
  showPolicyLinks?: boolean | null | undefined;
15044
16066
  hideExpressWallets?: boolean | null | undefined;
16067
+ couponNote?: string | null | undefined;
15045
16068
  fontFamily?: "default" | "roboto" | "poppins" | "inter" | "merriweather" | "montserrat" | "nunito" | "inconsolata" | "ibmPlexSans" | "cardo" | "spaceMono" | "buenard" | "titanOne" | "bartok" | "robotoSlab" | "playwritePl" | "jetBrainsMono" | null | undefined;
15046
16069
  colors?: {
15047
16070
  buttonBackground?: string | null | undefined;
@@ -15086,14 +16109,17 @@ type APIMeStore = {
15086
16109
  withdrawalButton: boolean;
15087
16110
  events: boolean;
15088
16111
  storeChat: boolean;
16112
+ warehouse: boolean;
15089
16113
  serialNumbers: boolean;
15090
16114
  wholesale: boolean;
16115
+ stockPricing: boolean;
15091
16116
  } | null;
15092
- defaultLanguage: "en-US" | "fr-FR" | "it-IT" | "pl-PL" | "es-ES" | "de-DE" | null | undefined;
16117
+ defaultLanguage: "en-US" | "fr-FR" | "it-IT" | "vi-VN" | "pl-PL" | "es-ES" | "de-DE" | null | undefined;
15093
16118
  enabledLanguages: {
15094
16119
  "en-US": boolean;
15095
16120
  "fr-FR": boolean;
15096
16121
  "it-IT": boolean;
16122
+ "vi-VN": boolean;
15097
16123
  "pl-PL": boolean;
15098
16124
  "es-ES": boolean;
15099
16125
  "de-DE": boolean;
@@ -15172,6 +16198,7 @@ type APIPostGetByIdResult = {
15172
16198
  storeId: string;
15173
16199
  slug: string;
15174
16200
  active: boolean;
16201
+ publishedAt: string | null;
15175
16202
  content: JSONContent;
15176
16203
  title: string;
15177
16204
  seo: {
@@ -15181,7 +16208,6 @@ type APIPostGetByIdResult = {
15181
16208
  } | null;
15182
16209
  tag: string | null;
15183
16210
  filters: unknown;
15184
- publishedAt: string | null;
15185
16211
  } | null | undefined;
15186
16212
  type APIPostGetByIdParams = {
15187
16213
  idOrSlug: string;
@@ -15209,6 +16235,7 @@ type APIPostCreateResult = {
15209
16235
  storeId: string;
15210
16236
  slug: string;
15211
16237
  active: boolean;
16238
+ publishedAt: string | null;
15212
16239
  content: JSONContent;
15213
16240
  title: string;
15214
16241
  seo: {
@@ -15218,7 +16245,6 @@ type APIPostCreateResult = {
15218
16245
  } | null;
15219
16246
  tag: string | null;
15220
16247
  filters: unknown;
15221
- publishedAt: string | null;
15222
16248
  } | null | undefined;
15223
16249
  type APIPostUpdateBody = {
15224
16250
  title?: string;
@@ -15243,6 +16269,7 @@ type APIPostUpdateResult = {
15243
16269
  storeId: string;
15244
16270
  slug: string;
15245
16271
  active: boolean;
16272
+ publishedAt: string | null;
15246
16273
  content: JSONContent;
15247
16274
  title: string;
15248
16275
  seo: {
@@ -15252,7 +16279,6 @@ type APIPostUpdateResult = {
15252
16279
  } | null;
15253
16280
  tag: string | null;
15254
16281
  filters: unknown;
15255
- publishedAt: string | null;
15256
16282
  } | null | undefined;
15257
16283
  type APIPostDeleteResult = {
15258
16284
  message: string;
@@ -15768,7 +16794,7 @@ type APILegalPagesBrowseResult = {
15768
16794
  contentHtml: string | null;
15769
16795
  contentJson: JSONContent;
15770
16796
  href: string;
15771
- locale: "en-US" | "fr-FR" | "it-IT" | "pl-PL" | "es-ES" | "de-DE";
16797
+ locale: "en-US" | "fr-FR" | "it-IT" | "vi-VN" | "pl-PL" | "es-ES" | "de-DE";
15772
16798
  isFallback: boolean;
15773
16799
  createdAt: string;
15774
16800
  updatedAt: string;
@@ -15784,7 +16810,7 @@ type APILegalPageGetByPathResult = {
15784
16810
  contentHtml: string | null;
15785
16811
  contentJson: JSONContent;
15786
16812
  href: string;
15787
- locale: "en-US" | "fr-FR" | "it-IT" | "pl-PL" | "es-ES" | "de-DE";
16813
+ locale: "en-US" | "fr-FR" | "it-IT" | "vi-VN" | "pl-PL" | "es-ES" | "de-DE";
15788
16814
  isFallback: boolean;
15789
16815
  createdAt: string;
15790
16816
  updatedAt: string;
@@ -15808,7 +16834,7 @@ type APILegalPageCreateResult = {
15808
16834
  contentHtml: string | null;
15809
16835
  contentJson: JSONContent;
15810
16836
  href: string;
15811
- locale: "en-US" | "fr-FR" | "it-IT" | "pl-PL" | "es-ES" | "de-DE";
16837
+ locale: "en-US" | "fr-FR" | "it-IT" | "vi-VN" | "pl-PL" | "es-ES" | "de-DE";
15812
16838
  isFallback: boolean;
15813
16839
  createdAt: string;
15814
16840
  updatedAt: string;
@@ -15828,7 +16854,7 @@ type APILegalPageUpdateResult = {
15828
16854
  contentHtml: string | null;
15829
16855
  contentJson: JSONContent;
15830
16856
  href: string;
15831
- locale: "en-US" | "fr-FR" | "it-IT" | "pl-PL" | "es-ES" | "de-DE";
16857
+ locale: "en-US" | "fr-FR" | "it-IT" | "vi-VN" | "pl-PL" | "es-ES" | "de-DE";
15832
16858
  isFallback: boolean;
15833
16859
  createdAt: string;
15834
16860
  updatedAt: string;
@@ -16575,11 +17601,11 @@ type APIOrderRefundGetResult = {
16575
17601
  quantity: number;
16576
17602
  amount: string;
16577
17603
  }[] | null;
17604
+ reason: "other" | "requested_by_customer" | "damaged_or_defective" | "duplicate" | "fraudulent" | "order_error";
16578
17605
  orderId: string;
16579
17606
  stripeRefundId: string | null;
16580
17607
  provider: string | null;
16581
17608
  externalRefundId: string | null;
16582
- reason: "other" | "requested_by_customer" | "damaged_or_defective" | "duplicate" | "fraudulent" | "order_error";
16583
17609
  reasonNote: string | null;
16584
17610
  refundType: "full" | "partial";
16585
17611
  refundApplicationFee: boolean;
@@ -16598,6 +17624,7 @@ type APIProductBatchBody = {
16598
17624
  summary?: string | undefined;
16599
17625
  cost?: number | null | undefined;
16600
17626
  category_name?: string | undefined;
17627
+ brand_name?: string | undefined;
16601
17628
  sku?: string | undefined;
16602
17629
  barcode?: string | null | undefined;
16603
17630
  description?: string | null | undefined;