commerce-kit 0.67.2 → 0.69.2

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.
@@ -74,6 +74,7 @@ type APIProductsBrowseResult = Omit<{
74
74
  productId: string;
75
75
  sku: string | null;
76
76
  barcode: string | null;
77
+ location: string | null;
77
78
  width: number | null;
78
79
  height: number | null;
79
80
  depth: number | null;
@@ -173,6 +174,14 @@ type APIProductsBrowseResult = Omit<{
173
174
  description: string | null;
174
175
  cadence: "month" | "week";
175
176
  discountPercent: number;
177
+ recurringDiscountPercent: number | null;
178
+ recurringDiscountAfterCycle: number;
179
+ discountSteps: {
180
+ afterCycle: number;
181
+ percent: number;
182
+ }[] | null;
183
+ giftVariantId: string | null;
184
+ giftOnOrder: number | null;
176
185
  benefits: string | null;
177
186
  };
178
187
  }[];
@@ -277,6 +286,8 @@ type APIProductsBrowseResult = Omit<{
277
286
  } & {
278
287
  nextStockPrice?: string | null;
279
288
  unitsLeftAtCurrentPrice?: number | null;
289
+ } & {
290
+ subscriptionPromotionPrice?: string | null;
280
291
  })[];
281
292
  translations: {
282
293
  locale: string;
@@ -355,6 +366,7 @@ type APIProductsBrowseResult = Omit<{
355
366
  productId: string;
356
367
  sku: string | null;
357
368
  barcode: string | null;
369
+ location: string | null;
358
370
  width: number | null;
359
371
  height: number | null;
360
372
  depth: number | null;
@@ -454,6 +466,14 @@ type APIProductsBrowseResult = Omit<{
454
466
  description: string | null;
455
467
  cadence: "month" | "week";
456
468
  discountPercent: number;
469
+ recurringDiscountPercent: number | null;
470
+ recurringDiscountAfterCycle: number;
471
+ discountSteps: {
472
+ afterCycle: number;
473
+ percent: number;
474
+ }[] | null;
475
+ giftVariantId: string | null;
476
+ giftOnOrder: number | null;
457
477
  benefits: string | null;
458
478
  };
459
479
  }[];
@@ -558,6 +578,8 @@ type APIProductsBrowseResult = Omit<{
558
578
  } & {
559
579
  nextStockPrice?: string | null;
560
580
  unitsLeftAtCurrentPrice?: number | null;
581
+ } & {
582
+ subscriptionPromotionPrice?: string | null;
561
583
  })[];
562
584
  translations: {
563
585
  locale: string;
@@ -636,6 +658,7 @@ type APIProductsBrowseResult = Omit<{
636
658
  productId: string;
637
659
  sku: string | null;
638
660
  barcode: string | null;
661
+ location: string | null;
639
662
  width: number | null;
640
663
  height: number | null;
641
664
  depth: number | null;
@@ -735,6 +758,14 @@ type APIProductsBrowseResult = Omit<{
735
758
  description: string | null;
736
759
  cadence: "month" | "week";
737
760
  discountPercent: number;
761
+ recurringDiscountPercent: number | null;
762
+ recurringDiscountAfterCycle: number;
763
+ discountSteps: {
764
+ afterCycle: number;
765
+ percent: number;
766
+ }[] | null;
767
+ giftVariantId: string | null;
768
+ giftOnOrder: number | null;
738
769
  benefits: string | null;
739
770
  };
740
771
  }[];
@@ -839,6 +870,8 @@ type APIProductsBrowseResult = Omit<{
839
870
  } & {
840
871
  nextStockPrice?: string | null;
841
872
  unitsLeftAtCurrentPrice?: number | null;
873
+ } & {
874
+ subscriptionPromotionPrice?: string | null;
842
875
  })[];
843
876
  translations: {
844
877
  locale: string;
@@ -917,6 +950,7 @@ type APIProductsBrowseResult = Omit<{
917
950
  productId: string;
918
951
  sku: string | null;
919
952
  barcode: string | null;
953
+ location: string | null;
920
954
  width: number | null;
921
955
  height: number | null;
922
956
  depth: number | null;
@@ -1016,6 +1050,14 @@ type APIProductsBrowseResult = Omit<{
1016
1050
  description: string | null;
1017
1051
  cadence: "month" | "week";
1018
1052
  discountPercent: number;
1053
+ recurringDiscountPercent: number | null;
1054
+ recurringDiscountAfterCycle: number;
1055
+ discountSteps: {
1056
+ afterCycle: number;
1057
+ percent: number;
1058
+ }[] | null;
1059
+ giftVariantId: string | null;
1060
+ giftOnOrder: number | null;
1019
1061
  benefits: string | null;
1020
1062
  };
1021
1063
  }[];
@@ -1122,6 +1164,8 @@ type APIProductsBrowseResult = Omit<{
1122
1164
  } & {
1123
1165
  nextStockPrice?: string | null;
1124
1166
  unitsLeftAtCurrentPrice?: number | null;
1167
+ } & {
1168
+ subscriptionPromotionPrice?: string | null;
1125
1169
  })[];
1126
1170
  translations: {
1127
1171
  locale: string;
@@ -1200,6 +1244,7 @@ type APIProductsBrowseResult = Omit<{
1200
1244
  productId: string;
1201
1245
  sku: string | null;
1202
1246
  barcode: string | null;
1247
+ location: string | null;
1203
1248
  width: number | null;
1204
1249
  height: number | null;
1205
1250
  depth: number | null;
@@ -1299,6 +1344,14 @@ type APIProductsBrowseResult = Omit<{
1299
1344
  description: string | null;
1300
1345
  cadence: "month" | "week";
1301
1346
  discountPercent: number;
1347
+ recurringDiscountPercent: number | null;
1348
+ recurringDiscountAfterCycle: number;
1349
+ discountSteps: {
1350
+ afterCycle: number;
1351
+ percent: number;
1352
+ }[] | null;
1353
+ giftVariantId: string | null;
1354
+ giftOnOrder: number | null;
1302
1355
  benefits: string | null;
1303
1356
  };
1304
1357
  }[];
@@ -1405,6 +1458,8 @@ type APIProductsBrowseResult = Omit<{
1405
1458
  } & {
1406
1459
  nextStockPrice?: string | null;
1407
1460
  unitsLeftAtCurrentPrice?: number | null;
1461
+ } & {
1462
+ subscriptionPromotionPrice?: string | null;
1408
1463
  })[];
1409
1464
  translations: {
1410
1465
  locale: string;
@@ -1493,6 +1548,7 @@ type APIProductsBrowseResult = Omit<{
1493
1548
  productId: string;
1494
1549
  sku: string | null;
1495
1550
  barcode: string | null;
1551
+ location: string | null;
1496
1552
  width: number | null;
1497
1553
  height: number | null;
1498
1554
  depth: number | null;
@@ -1595,6 +1651,7 @@ type APIProductsBrowseResult = Omit<{
1595
1651
  productId: string;
1596
1652
  sku: string | null;
1597
1653
  barcode: string | null;
1654
+ location: string | null;
1598
1655
  width: number | null;
1599
1656
  height: number | null;
1600
1657
  depth: number | null;
@@ -1696,6 +1753,7 @@ type APIProductsBrowseResult = Omit<{
1696
1753
  productId: string;
1697
1754
  sku: string | null;
1698
1755
  barcode: string | null;
1756
+ location: string | null;
1699
1757
  width: number | null;
1700
1758
  height: number | null;
1701
1759
  depth: number | null;
@@ -1802,6 +1860,7 @@ type APIProductsBrowseResult = Omit<{
1802
1860
  productId: string;
1803
1861
  sku: string | null;
1804
1862
  barcode: string | null;
1863
+ location: string | null;
1805
1864
  width: number | null;
1806
1865
  height: number | null;
1807
1866
  depth: number | null;
@@ -1908,6 +1967,7 @@ type APIProductsBrowseResult = Omit<{
1908
1967
  productId: string;
1909
1968
  sku: string | null;
1910
1969
  barcode: string | null;
1970
+ location: string | null;
1911
1971
  width: number | null;
1912
1972
  height: number | null;
1913
1973
  depth: number | null;
@@ -1988,7 +2048,7 @@ type APIProductsBrowseResult = Omit<{
1988
2048
  };
1989
2049
  }[];
1990
2050
  };
1991
- }["variant"], "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
2051
+ }["variant"], "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice" | "subscriptionPromotionPrice"> as `${K}Gross`]: string | null;
1992
2052
  } : {
1993
2053
  createdAt: string;
1994
2054
  updatedAt: string;
@@ -2010,6 +2070,7 @@ type APIProductsBrowseResult = Omit<{
2010
2070
  productId: string;
2011
2071
  sku: string | null;
2012
2072
  barcode: string | null;
2073
+ location: string | null;
2013
2074
  width: number | null;
2014
2075
  height: number | null;
2015
2076
  depth: number | null;
@@ -2110,6 +2171,14 @@ type APIProductsBrowseResult = Omit<{
2110
2171
  description: string | null;
2111
2172
  cadence: "month" | "week";
2112
2173
  discountPercent: number;
2174
+ recurringDiscountPercent: number | null;
2175
+ recurringDiscountAfterCycle: number;
2176
+ discountSteps: {
2177
+ afterCycle: number;
2178
+ percent: number;
2179
+ }[] | null;
2180
+ giftVariantId: string | null;
2181
+ giftOnOrder: number | null;
2113
2182
  benefits: string | null;
2114
2183
  };
2115
2184
  }[];
@@ -2215,6 +2284,8 @@ type APIProductsBrowseResult = Omit<{
2215
2284
  } & {
2216
2285
  nextStockPrice?: string | null;
2217
2286
  unitsLeftAtCurrentPrice?: number | null;
2287
+ } & {
2288
+ subscriptionPromotionPrice?: string | null;
2218
2289
  }) | ({
2219
2290
  id: string;
2220
2291
  createdAt: string;
@@ -2274,6 +2345,8 @@ type APIProductsBrowseResult = Omit<{
2274
2345
  } & {
2275
2346
  nextStockPrice?: string | null;
2276
2347
  unitsLeftAtCurrentPrice?: number | null;
2348
+ } & {
2349
+ subscriptionPromotionPrice?: string | null;
2277
2350
  }) | ({
2278
2351
  id: string;
2279
2352
  createdAt: string;
@@ -2333,6 +2406,8 @@ type APIProductsBrowseResult = Omit<{
2333
2406
  } & {
2334
2407
  nextStockPrice?: string | null;
2335
2408
  unitsLeftAtCurrentPrice?: number | null;
2409
+ } & {
2410
+ subscriptionPromotionPrice?: string | null;
2336
2411
  }), "cost">]: K extends "prices" ? Array<(Omit<({
2337
2412
  id: string;
2338
2413
  createdAt: string;
@@ -2390,6 +2465,8 @@ type APIProductsBrowseResult = Omit<{
2390
2465
  } & {
2391
2466
  nextStockPrice?: string | null;
2392
2467
  unitsLeftAtCurrentPrice?: number | null;
2468
+ } & {
2469
+ subscriptionPromotionPrice?: string | null;
2393
2470
  }) | ({
2394
2471
  id: string;
2395
2472
  createdAt: string;
@@ -2449,6 +2526,8 @@ type APIProductsBrowseResult = Omit<{
2449
2526
  } & {
2450
2527
  nextStockPrice?: string | null;
2451
2528
  unitsLeftAtCurrentPrice?: number | null;
2529
+ } & {
2530
+ subscriptionPromotionPrice?: string | null;
2452
2531
  }) | ({
2453
2532
  id: string;
2454
2533
  createdAt: string;
@@ -2508,6 +2587,8 @@ type APIProductsBrowseResult = Omit<{
2508
2587
  } & {
2509
2588
  nextStockPrice?: string | null;
2510
2589
  unitsLeftAtCurrentPrice?: number | null;
2590
+ } & {
2591
+ subscriptionPromotionPrice?: string | null;
2511
2592
  }), "cost">[K] extends readonly (infer TElement)[] ? TElement : never) & {
2512
2593
  /** `price` converted to gross with the owning product's tax rate. */
2513
2594
  priceGross: string;
@@ -2570,6 +2651,8 @@ type APIProductsBrowseResult = Omit<{
2570
2651
  } & {
2571
2652
  nextStockPrice?: string | null;
2572
2653
  unitsLeftAtCurrentPrice?: number | null;
2654
+ } & {
2655
+ subscriptionPromotionPrice?: string | null;
2573
2656
  }) | ({
2574
2657
  id: string;
2575
2658
  createdAt: string;
@@ -2629,6 +2712,8 @@ type APIProductsBrowseResult = Omit<{
2629
2712
  } & {
2630
2713
  nextStockPrice?: string | null;
2631
2714
  unitsLeftAtCurrentPrice?: number | null;
2715
+ } & {
2716
+ subscriptionPromotionPrice?: string | null;
2632
2717
  }) | ({
2633
2718
  id: string;
2634
2719
  createdAt: string;
@@ -2688,6 +2773,8 @@ type APIProductsBrowseResult = Omit<{
2688
2773
  } & {
2689
2774
  nextStockPrice?: string | null;
2690
2775
  unitsLeftAtCurrentPrice?: number | null;
2776
+ } & {
2777
+ subscriptionPromotionPrice?: string | null;
2691
2778
  }), "cost">[K];
2692
2779
  } & {
2693
2780
  /** `price` (the effective net price) converted to gross with the product's tax rate. */
@@ -2750,6 +2837,8 @@ type APIProductsBrowseResult = Omit<{
2750
2837
  } & {
2751
2838
  nextStockPrice?: string | null;
2752
2839
  unitsLeftAtCurrentPrice?: number | null;
2840
+ } & {
2841
+ subscriptionPromotionPrice?: string | null;
2753
2842
  }) | ({
2754
2843
  id: string;
2755
2844
  createdAt: string;
@@ -2809,6 +2898,8 @@ type APIProductsBrowseResult = Omit<{
2809
2898
  } & {
2810
2899
  nextStockPrice?: string | null;
2811
2900
  unitsLeftAtCurrentPrice?: number | null;
2901
+ } & {
2902
+ subscriptionPromotionPrice?: string | null;
2812
2903
  }) | ({
2813
2904
  id: string;
2814
2905
  createdAt: string;
@@ -2868,7 +2959,9 @@ type APIProductsBrowseResult = Omit<{
2868
2959
  } & {
2869
2960
  nextStockPrice?: string | null;
2870
2961
  unitsLeftAtCurrentPrice?: number | null;
2871
- }), "cost">, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
2962
+ } & {
2963
+ subscriptionPromotionPrice?: string | null;
2964
+ }), "cost">, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice" | "subscriptionPromotionPrice"> as `${K}Gross`]: string | null;
2872
2965
  })[];
2873
2966
  translations: {
2874
2967
  locale: string;
@@ -3016,6 +3109,7 @@ type APIProductGetByIdResult = {
3016
3109
  productId: string;
3017
3110
  sku: string | null;
3018
3111
  barcode: string | null;
3112
+ location: string | null;
3019
3113
  width: number | null;
3020
3114
  height: number | null;
3021
3115
  depth: number | null;
@@ -3118,6 +3212,7 @@ type APIProductGetByIdResult = {
3118
3212
  productId: string;
3119
3213
  sku: string | null;
3120
3214
  barcode: string | null;
3215
+ location: string | null;
3121
3216
  width: number | null;
3122
3217
  height: number | null;
3123
3218
  depth: number | null;
@@ -3219,6 +3314,7 @@ type APIProductGetByIdResult = {
3219
3314
  productId: string;
3220
3315
  sku: string | null;
3221
3316
  barcode: string | null;
3317
+ location: string | null;
3222
3318
  width: number | null;
3223
3319
  height: number | null;
3224
3320
  depth: number | null;
@@ -3325,6 +3421,7 @@ type APIProductGetByIdResult = {
3325
3421
  productId: string;
3326
3422
  sku: string | null;
3327
3423
  barcode: string | null;
3424
+ location: string | null;
3328
3425
  width: number | null;
3329
3426
  height: number | null;
3330
3427
  depth: number | null;
@@ -3431,6 +3528,7 @@ type APIProductGetByIdResult = {
3431
3528
  productId: string;
3432
3529
  sku: string | null;
3433
3530
  barcode: string | null;
3531
+ location: string | null;
3434
3532
  width: number | null;
3435
3533
  height: number | null;
3436
3534
  depth: number | null;
@@ -3511,7 +3609,7 @@ type APIProductGetByIdResult = {
3511
3609
  };
3512
3610
  }[];
3513
3611
  };
3514
- }["variant"], "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
3612
+ }["variant"], "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice" | "subscriptionPromotionPrice"> as `${K}Gross`]: string | null;
3515
3613
  } : {
3516
3614
  createdAt: string;
3517
3615
  updatedAt: string;
@@ -3533,6 +3631,7 @@ type APIProductGetByIdResult = {
3533
3631
  productId: string;
3534
3632
  sku: string | null;
3535
3633
  barcode: string | null;
3634
+ location: string | null;
3536
3635
  width: number | null;
3537
3636
  height: number | null;
3538
3637
  depth: number | null;
@@ -3640,7 +3739,16 @@ type APIProductGetByIdResult = {
3640
3739
  description: string | null;
3641
3740
  cadence: "month" | "week";
3642
3741
  discountPercent: number;
3742
+ recurringDiscountPercent: number | null;
3743
+ recurringDiscountAfterCycle: number;
3744
+ discountSteps: {
3745
+ afterCycle: number;
3746
+ percent: number;
3747
+ }[] | null;
3748
+ giftVariantId: string | null;
3749
+ giftOnOrder: number | null;
3643
3750
  benefits: string | null;
3751
+ giftName: string | null;
3644
3752
  };
3645
3753
  }[];
3646
3754
  productTaxRate: {
@@ -3687,20 +3795,6 @@ type APIProductGetByIdResult = {
3687
3795
  };
3688
3796
  };
3689
3797
  }[];
3690
- volumePricingTiers: ({
3691
- id: string;
3692
- createdAt: string;
3693
- updatedAt: string;
3694
- storeId: string;
3695
- productId: string | null;
3696
- price: string;
3697
- minQuantity: number;
3698
- maxQuantity: number | null;
3699
- productVariantId: string | null;
3700
- } & {
3701
- /** `price` (net per-unit price at this tier) converted to gross with the product's tax rate. */
3702
- priceGross: string;
3703
- })[];
3704
3798
  variants: ({
3705
3799
  [K in keyof (Omit<{
3706
3800
  id: string;
@@ -3712,6 +3806,7 @@ type APIProductGetByIdResult = {
3712
3806
  productId: string;
3713
3807
  sku: string | null;
3714
3808
  barcode: string | null;
3809
+ location: string | null;
3715
3810
  width: number | null;
3716
3811
  height: number | null;
3717
3812
  depth: number | null;
@@ -3767,6 +3862,8 @@ type APIProductGetByIdResult = {
3767
3862
  } & {
3768
3863
  nextStockPrice?: string | null;
3769
3864
  unitsLeftAtCurrentPrice?: number | null;
3865
+ } & {
3866
+ subscriptionPromotionPrice?: string | null;
3770
3867
  }, "cost"> & {
3771
3868
  omnibusPrice: string | null;
3772
3869
  })]: K extends "prices" ? Array<((Omit<{
@@ -3779,6 +3876,7 @@ type APIProductGetByIdResult = {
3779
3876
  productId: string;
3780
3877
  sku: string | null;
3781
3878
  barcode: string | null;
3879
+ location: string | null;
3782
3880
  width: number | null;
3783
3881
  height: number | null;
3784
3882
  depth: number | null;
@@ -3834,6 +3932,8 @@ type APIProductGetByIdResult = {
3834
3932
  } & {
3835
3933
  nextStockPrice?: string | null;
3836
3934
  unitsLeftAtCurrentPrice?: number | null;
3935
+ } & {
3936
+ subscriptionPromotionPrice?: string | null;
3837
3937
  }, "cost"> & {
3838
3938
  omnibusPrice: string | null;
3839
3939
  })[K] extends readonly (infer TElement)[] ? TElement : never) & {
@@ -3851,6 +3951,7 @@ type APIProductGetByIdResult = {
3851
3951
  productId: string;
3852
3952
  sku: string | null;
3853
3953
  barcode: string | null;
3954
+ location: string | null;
3854
3955
  width: number | null;
3855
3956
  height: number | null;
3856
3957
  depth: number | null;
@@ -3906,6 +4007,8 @@ type APIProductGetByIdResult = {
3906
4007
  } & {
3907
4008
  nextStockPrice?: string | null;
3908
4009
  unitsLeftAtCurrentPrice?: number | null;
4010
+ } & {
4011
+ subscriptionPromotionPrice?: string | null;
3909
4012
  }, "cost"> & {
3910
4013
  omnibusPrice: string | null;
3911
4014
  })[K];
@@ -3923,6 +4026,7 @@ type APIProductGetByIdResult = {
3923
4026
  productId: string;
3924
4027
  sku: string | null;
3925
4028
  barcode: string | null;
4029
+ location: string | null;
3926
4030
  width: number | null;
3927
4031
  height: number | null;
3928
4032
  depth: number | null;
@@ -3978,9 +4082,25 @@ type APIProductGetByIdResult = {
3978
4082
  } & {
3979
4083
  nextStockPrice?: string | null;
3980
4084
  unitsLeftAtCurrentPrice?: number | null;
4085
+ } & {
4086
+ subscriptionPromotionPrice?: string | null;
3981
4087
  }, "cost"> & {
3982
4088
  omnibusPrice: string | null;
3983
- }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
4089
+ }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice" | "subscriptionPromotionPrice"> as `${K}Gross`]: string | null;
4090
+ })[];
4091
+ volumePricingTiers: ({
4092
+ id: string;
4093
+ createdAt: string;
4094
+ updatedAt: string;
4095
+ storeId: string;
4096
+ productId: string | null;
4097
+ price: string;
4098
+ minQuantity: number;
4099
+ maxQuantity: number | null;
4100
+ productVariantId: string | null;
4101
+ } & {
4102
+ /** `price` (net per-unit price at this tier) converted to gross with the product's tax rate. */
4103
+ priceGross: string;
3984
4104
  })[];
3985
4105
  variantsTypes: {
3986
4106
  id: string;
@@ -4119,7 +4239,7 @@ type APIProductGetByIdResult = {
4119
4239
  value: string;
4120
4240
  colorValue: string | null;
4121
4241
  }[];
4122
- }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
4242
+ }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice" | "subscriptionPromotionPrice"> as `${K}Gross`]: string | null;
4123
4243
  };
4124
4244
  }[];
4125
4245
  }[];
@@ -4234,6 +4354,7 @@ type APICartGetResult = {
4234
4354
  }[];
4235
4355
  }, "prices"> | null;
4236
4356
  storeId: string;
4357
+ locale: string | null;
4237
4358
  currency: string | null;
4238
4359
  couponId: string | null;
4239
4360
  customerId: string | null;
@@ -4279,6 +4400,9 @@ type APICartGetResult = {
4279
4400
  collections: {
4280
4401
  id: string;
4281
4402
  }[];
4403
+ variants: {
4404
+ id: string;
4405
+ }[];
4282
4406
  categories: {
4283
4407
  id: string;
4284
4408
  }[];
@@ -4330,6 +4454,7 @@ type APICartGetResult = {
4330
4454
  updatedAt: string;
4331
4455
  userId: string | null;
4332
4456
  storeId: string;
4457
+ locale: string | null;
4333
4458
  stripeCustomerId: string | null;
4334
4459
  couponId: string | null;
4335
4460
  coupon: {
@@ -4349,6 +4474,9 @@ type APICartGetResult = {
4349
4474
  collections: {
4350
4475
  id: string;
4351
4476
  }[];
4477
+ variants: {
4478
+ id: string;
4479
+ }[];
4352
4480
  categories: {
4353
4481
  id: string;
4354
4482
  }[];
@@ -4384,6 +4512,9 @@ type APICartGetResult = {
4384
4512
  collections: {
4385
4513
  id: string;
4386
4514
  }[];
4515
+ variants: {
4516
+ id: string;
4517
+ }[];
4387
4518
  categories: {
4388
4519
  id: string;
4389
4520
  }[];
@@ -4402,6 +4533,7 @@ type APICartGetResult = {
4402
4533
  updatedAt: string;
4403
4534
  userId: string | null;
4404
4535
  storeId: string;
4536
+ locale: string | null;
4405
4537
  stripeCustomerId: string | null;
4406
4538
  couponId: string | null;
4407
4539
  user: {
@@ -4590,6 +4722,7 @@ type APICartGetResult = {
4590
4722
  }[];
4591
4723
  nextStockPrice?: string | null | undefined;
4592
4724
  unitsLeftAtCurrentPrice?: number | null | undefined;
4725
+ subscriptionPromotionPrice?: string | null | undefined;
4593
4726
  };
4594
4727
  preVolumePricingPrice: string | null;
4595
4728
  setSelections: {
@@ -4653,7 +4786,16 @@ type APICartGetResult = {
4653
4786
  description: string | null;
4654
4787
  cadence: "month" | "week";
4655
4788
  discountPercent: number;
4789
+ recurringDiscountPercent: number | null;
4790
+ recurringDiscountAfterCycle: number;
4791
+ discountSteps: {
4792
+ afterCycle: number;
4793
+ percent: number;
4794
+ }[] | null;
4795
+ giftVariantId: string | null;
4796
+ giftOnOrder: number | null;
4656
4797
  benefits: string | null;
4798
+ giftName: string | null;
4657
4799
  } | null;
4658
4800
  }, "productVariant"> & {
4659
4801
  productVariant: {
@@ -4836,6 +4978,7 @@ type APICartGetResult = {
4836
4978
  }[];
4837
4979
  nextStockPrice?: string | null | undefined;
4838
4980
  unitsLeftAtCurrentPrice?: number | null | undefined;
4981
+ subscriptionPromotionPrice?: string | null | undefined;
4839
4982
  }]: K extends "prices" ? Array<({
4840
4983
  product: {
4841
4984
  bundleProducts: {
@@ -5015,6 +5158,7 @@ type APICartGetResult = {
5015
5158
  }[];
5016
5159
  nextStockPrice?: string | null | undefined;
5017
5160
  unitsLeftAtCurrentPrice?: number | null | undefined;
5161
+ subscriptionPromotionPrice?: string | null | undefined;
5018
5162
  }[K] extends readonly (infer TElement)[] ? TElement : never) & {
5019
5163
  /** `price` converted to gross with the owning product's tax rate. */
5020
5164
  priceGross: string;
@@ -5199,6 +5343,7 @@ type APICartGetResult = {
5199
5343
  }[];
5200
5344
  nextStockPrice?: string | null | undefined;
5201
5345
  unitsLeftAtCurrentPrice?: number | null | undefined;
5346
+ subscriptionPromotionPrice?: string | null | undefined;
5202
5347
  }[K];
5203
5348
  } & {
5204
5349
  /** `price` (the effective net price) converted to gross with the product's tax rate. */
@@ -5383,7 +5528,8 @@ type APICartGetResult = {
5383
5528
  }[];
5384
5529
  nextStockPrice?: string | null | undefined;
5385
5530
  unitsLeftAtCurrentPrice?: number | null | undefined;
5386
- }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
5531
+ subscriptionPromotionPrice?: string | null | undefined;
5532
+ }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice" | "subscriptionPromotionPrice"> as `${K}Gross`]: string | null;
5387
5533
  };
5388
5534
  })[];
5389
5535
  subtotalNet: number | null;
@@ -5419,6 +5565,7 @@ type APICartCreateBody = {
5419
5565
  cartId?: string | undefined;
5420
5566
  subscriptionPlanId?: string | null | undefined;
5421
5567
  currency?: string | undefined;
5568
+ locale?: "en-US" | "fr-FR" | "it-IT" | "vi-VN" | "pl-PL" | "es-ES" | "de-DE" | undefined;
5422
5569
  bundleId?: string | undefined;
5423
5570
  selections?: {
5424
5571
  variantId: string;
@@ -5487,6 +5634,7 @@ type APICartCreateResult = {
5487
5634
  }[];
5488
5635
  }, "prices"> | null;
5489
5636
  storeId: string;
5637
+ locale: string | null;
5490
5638
  currency: string | null;
5491
5639
  couponId: string | null;
5492
5640
  customerId: string | null;
@@ -5532,6 +5680,9 @@ type APICartCreateResult = {
5532
5680
  collections: {
5533
5681
  id: string;
5534
5682
  }[];
5683
+ variants: {
5684
+ id: string;
5685
+ }[];
5535
5686
  categories: {
5536
5687
  id: string;
5537
5688
  }[];
@@ -5583,6 +5734,7 @@ type APICartCreateResult = {
5583
5734
  updatedAt: string;
5584
5735
  userId: string | null;
5585
5736
  storeId: string;
5737
+ locale: string | null;
5586
5738
  stripeCustomerId: string | null;
5587
5739
  couponId: string | null;
5588
5740
  coupon: {
@@ -5602,6 +5754,9 @@ type APICartCreateResult = {
5602
5754
  collections: {
5603
5755
  id: string;
5604
5756
  }[];
5757
+ variants: {
5758
+ id: string;
5759
+ }[];
5605
5760
  categories: {
5606
5761
  id: string;
5607
5762
  }[];
@@ -5637,6 +5792,9 @@ type APICartCreateResult = {
5637
5792
  collections: {
5638
5793
  id: string;
5639
5794
  }[];
5795
+ variants: {
5796
+ id: string;
5797
+ }[];
5640
5798
  categories: {
5641
5799
  id: string;
5642
5800
  }[];
@@ -5655,6 +5813,7 @@ type APICartCreateResult = {
5655
5813
  updatedAt: string;
5656
5814
  userId: string | null;
5657
5815
  storeId: string;
5816
+ locale: string | null;
5658
5817
  stripeCustomerId: string | null;
5659
5818
  couponId: string | null;
5660
5819
  user: {
@@ -5843,6 +6002,7 @@ type APICartCreateResult = {
5843
6002
  }[];
5844
6003
  nextStockPrice?: string | null | undefined;
5845
6004
  unitsLeftAtCurrentPrice?: number | null | undefined;
6005
+ subscriptionPromotionPrice?: string | null | undefined;
5846
6006
  };
5847
6007
  preVolumePricingPrice: string | null;
5848
6008
  setSelections: {
@@ -5906,7 +6066,16 @@ type APICartCreateResult = {
5906
6066
  description: string | null;
5907
6067
  cadence: "month" | "week";
5908
6068
  discountPercent: number;
6069
+ recurringDiscountPercent: number | null;
6070
+ recurringDiscountAfterCycle: number;
6071
+ discountSteps: {
6072
+ afterCycle: number;
6073
+ percent: number;
6074
+ }[] | null;
6075
+ giftVariantId: string | null;
6076
+ giftOnOrder: number | null;
5909
6077
  benefits: string | null;
6078
+ giftName: string | null;
5910
6079
  } | null;
5911
6080
  }, "productVariant"> & {
5912
6081
  productVariant: {
@@ -6089,6 +6258,7 @@ type APICartCreateResult = {
6089
6258
  }[];
6090
6259
  nextStockPrice?: string | null | undefined;
6091
6260
  unitsLeftAtCurrentPrice?: number | null | undefined;
6261
+ subscriptionPromotionPrice?: string | null | undefined;
6092
6262
  }]: K extends "prices" ? Array<({
6093
6263
  product: {
6094
6264
  bundleProducts: {
@@ -6268,6 +6438,7 @@ type APICartCreateResult = {
6268
6438
  }[];
6269
6439
  nextStockPrice?: string | null | undefined;
6270
6440
  unitsLeftAtCurrentPrice?: number | null | undefined;
6441
+ subscriptionPromotionPrice?: string | null | undefined;
6271
6442
  }[K] extends readonly (infer TElement)[] ? TElement : never) & {
6272
6443
  /** `price` converted to gross with the owning product's tax rate. */
6273
6444
  priceGross: string;
@@ -6452,6 +6623,7 @@ type APICartCreateResult = {
6452
6623
  }[];
6453
6624
  nextStockPrice?: string | null | undefined;
6454
6625
  unitsLeftAtCurrentPrice?: number | null | undefined;
6626
+ subscriptionPromotionPrice?: string | null | undefined;
6455
6627
  }[K];
6456
6628
  } & {
6457
6629
  /** `price` (the effective net price) converted to gross with the product's tax rate. */
@@ -6636,7 +6808,8 @@ type APICartCreateResult = {
6636
6808
  }[];
6637
6809
  nextStockPrice?: string | null | undefined;
6638
6810
  unitsLeftAtCurrentPrice?: number | null | undefined;
6639
- }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
6811
+ subscriptionPromotionPrice?: string | null | undefined;
6812
+ }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice" | "subscriptionPromotionPrice"> as `${K}Gross`]: string | null;
6640
6813
  };
6641
6814
  })[];
6642
6815
  subtotalNet: number | null;
@@ -6718,6 +6891,7 @@ type APICartRemoveItemResult = {
6718
6891
  }[];
6719
6892
  }, "prices"> | null;
6720
6893
  storeId: string;
6894
+ locale: string | null;
6721
6895
  currency: string | null;
6722
6896
  couponId: string | null;
6723
6897
  customerId: string | null;
@@ -6763,6 +6937,9 @@ type APICartRemoveItemResult = {
6763
6937
  collections: {
6764
6938
  id: string;
6765
6939
  }[];
6940
+ variants: {
6941
+ id: string;
6942
+ }[];
6766
6943
  categories: {
6767
6944
  id: string;
6768
6945
  }[];
@@ -6814,6 +6991,7 @@ type APICartRemoveItemResult = {
6814
6991
  updatedAt: string;
6815
6992
  userId: string | null;
6816
6993
  storeId: string;
6994
+ locale: string | null;
6817
6995
  stripeCustomerId: string | null;
6818
6996
  couponId: string | null;
6819
6997
  coupon: {
@@ -6833,6 +7011,9 @@ type APICartRemoveItemResult = {
6833
7011
  collections: {
6834
7012
  id: string;
6835
7013
  }[];
7014
+ variants: {
7015
+ id: string;
7016
+ }[];
6836
7017
  categories: {
6837
7018
  id: string;
6838
7019
  }[];
@@ -6868,6 +7049,9 @@ type APICartRemoveItemResult = {
6868
7049
  collections: {
6869
7050
  id: string;
6870
7051
  }[];
7052
+ variants: {
7053
+ id: string;
7054
+ }[];
6871
7055
  categories: {
6872
7056
  id: string;
6873
7057
  }[];
@@ -6886,6 +7070,7 @@ type APICartRemoveItemResult = {
6886
7070
  updatedAt: string;
6887
7071
  userId: string | null;
6888
7072
  storeId: string;
7073
+ locale: string | null;
6889
7074
  stripeCustomerId: string | null;
6890
7075
  couponId: string | null;
6891
7076
  user: {
@@ -7074,6 +7259,7 @@ type APICartRemoveItemResult = {
7074
7259
  }[];
7075
7260
  nextStockPrice?: string | null | undefined;
7076
7261
  unitsLeftAtCurrentPrice?: number | null | undefined;
7262
+ subscriptionPromotionPrice?: string | null | undefined;
7077
7263
  };
7078
7264
  preVolumePricingPrice: string | null;
7079
7265
  setSelections: {
@@ -7137,7 +7323,16 @@ type APICartRemoveItemResult = {
7137
7323
  description: string | null;
7138
7324
  cadence: "month" | "week";
7139
7325
  discountPercent: number;
7326
+ recurringDiscountPercent: number | null;
7327
+ recurringDiscountAfterCycle: number;
7328
+ discountSteps: {
7329
+ afterCycle: number;
7330
+ percent: number;
7331
+ }[] | null;
7332
+ giftVariantId: string | null;
7333
+ giftOnOrder: number | null;
7140
7334
  benefits: string | null;
7335
+ giftName: string | null;
7141
7336
  } | null;
7142
7337
  }, "productVariant"> & {
7143
7338
  productVariant: {
@@ -7320,6 +7515,7 @@ type APICartRemoveItemResult = {
7320
7515
  }[];
7321
7516
  nextStockPrice?: string | null | undefined;
7322
7517
  unitsLeftAtCurrentPrice?: number | null | undefined;
7518
+ subscriptionPromotionPrice?: string | null | undefined;
7323
7519
  }]: K extends "prices" ? Array<({
7324
7520
  product: {
7325
7521
  bundleProducts: {
@@ -7499,6 +7695,7 @@ type APICartRemoveItemResult = {
7499
7695
  }[];
7500
7696
  nextStockPrice?: string | null | undefined;
7501
7697
  unitsLeftAtCurrentPrice?: number | null | undefined;
7698
+ subscriptionPromotionPrice?: string | null | undefined;
7502
7699
  }[K] extends readonly (infer TElement)[] ? TElement : never) & {
7503
7700
  /** `price` converted to gross with the owning product's tax rate. */
7504
7701
  priceGross: string;
@@ -7683,6 +7880,7 @@ type APICartRemoveItemResult = {
7683
7880
  }[];
7684
7881
  nextStockPrice?: string | null | undefined;
7685
7882
  unitsLeftAtCurrentPrice?: number | null | undefined;
7883
+ subscriptionPromotionPrice?: string | null | undefined;
7686
7884
  }[K];
7687
7885
  } & {
7688
7886
  /** `price` (the effective net price) converted to gross with the product's tax rate. */
@@ -7867,7 +8065,8 @@ type APICartRemoveItemResult = {
7867
8065
  }[];
7868
8066
  nextStockPrice?: string | null | undefined;
7869
8067
  unitsLeftAtCurrentPrice?: number | null | undefined;
7870
- }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
8068
+ subscriptionPromotionPrice?: string | null | undefined;
8069
+ }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice" | "subscriptionPromotionPrice"> as `${K}Gross`]: string | null;
7871
8070
  };
7872
8071
  })[];
7873
8072
  subtotalNet: number | null;
@@ -7956,6 +8155,7 @@ type APICartCouponApplyResult = {
7956
8155
  }[];
7957
8156
  }, "prices"> | null;
7958
8157
  storeId: string;
8158
+ locale: string | null;
7959
8159
  currency: string | null;
7960
8160
  couponId: string | null;
7961
8161
  customerId: string | null;
@@ -8001,6 +8201,9 @@ type APICartCouponApplyResult = {
8001
8201
  collections: {
8002
8202
  id: string;
8003
8203
  }[];
8204
+ variants: {
8205
+ id: string;
8206
+ }[];
8004
8207
  categories: {
8005
8208
  id: string;
8006
8209
  }[];
@@ -8052,6 +8255,7 @@ type APICartCouponApplyResult = {
8052
8255
  updatedAt: string;
8053
8256
  userId: string | null;
8054
8257
  storeId: string;
8258
+ locale: string | null;
8055
8259
  stripeCustomerId: string | null;
8056
8260
  couponId: string | null;
8057
8261
  coupon: {
@@ -8071,6 +8275,9 @@ type APICartCouponApplyResult = {
8071
8275
  collections: {
8072
8276
  id: string;
8073
8277
  }[];
8278
+ variants: {
8279
+ id: string;
8280
+ }[];
8074
8281
  categories: {
8075
8282
  id: string;
8076
8283
  }[];
@@ -8106,6 +8313,9 @@ type APICartCouponApplyResult = {
8106
8313
  collections: {
8107
8314
  id: string;
8108
8315
  }[];
8316
+ variants: {
8317
+ id: string;
8318
+ }[];
8109
8319
  categories: {
8110
8320
  id: string;
8111
8321
  }[];
@@ -8124,6 +8334,7 @@ type APICartCouponApplyResult = {
8124
8334
  updatedAt: string;
8125
8335
  userId: string | null;
8126
8336
  storeId: string;
8337
+ locale: string | null;
8127
8338
  stripeCustomerId: string | null;
8128
8339
  couponId: string | null;
8129
8340
  user: {
@@ -8312,6 +8523,7 @@ type APICartCouponApplyResult = {
8312
8523
  }[];
8313
8524
  nextStockPrice?: string | null | undefined;
8314
8525
  unitsLeftAtCurrentPrice?: number | null | undefined;
8526
+ subscriptionPromotionPrice?: string | null | undefined;
8315
8527
  };
8316
8528
  preVolumePricingPrice: string | null;
8317
8529
  setSelections: {
@@ -8375,7 +8587,16 @@ type APICartCouponApplyResult = {
8375
8587
  description: string | null;
8376
8588
  cadence: "month" | "week";
8377
8589
  discountPercent: number;
8590
+ recurringDiscountPercent: number | null;
8591
+ recurringDiscountAfterCycle: number;
8592
+ discountSteps: {
8593
+ afterCycle: number;
8594
+ percent: number;
8595
+ }[] | null;
8596
+ giftVariantId: string | null;
8597
+ giftOnOrder: number | null;
8378
8598
  benefits: string | null;
8599
+ giftName: string | null;
8379
8600
  } | null;
8380
8601
  }, "productVariant"> & {
8381
8602
  productVariant: {
@@ -8558,6 +8779,7 @@ type APICartCouponApplyResult = {
8558
8779
  }[];
8559
8780
  nextStockPrice?: string | null | undefined;
8560
8781
  unitsLeftAtCurrentPrice?: number | null | undefined;
8782
+ subscriptionPromotionPrice?: string | null | undefined;
8561
8783
  }]: K extends "prices" ? Array<({
8562
8784
  product: {
8563
8785
  bundleProducts: {
@@ -8737,6 +8959,7 @@ type APICartCouponApplyResult = {
8737
8959
  }[];
8738
8960
  nextStockPrice?: string | null | undefined;
8739
8961
  unitsLeftAtCurrentPrice?: number | null | undefined;
8962
+ subscriptionPromotionPrice?: string | null | undefined;
8740
8963
  }[K] extends readonly (infer TElement)[] ? TElement : never) & {
8741
8964
  /** `price` converted to gross with the owning product's tax rate. */
8742
8965
  priceGross: string;
@@ -8921,6 +9144,7 @@ type APICartCouponApplyResult = {
8921
9144
  }[];
8922
9145
  nextStockPrice?: string | null | undefined;
8923
9146
  unitsLeftAtCurrentPrice?: number | null | undefined;
9147
+ subscriptionPromotionPrice?: string | null | undefined;
8924
9148
  }[K];
8925
9149
  } & {
8926
9150
  /** `price` (the effective net price) converted to gross with the product's tax rate. */
@@ -9105,7 +9329,8 @@ type APICartCouponApplyResult = {
9105
9329
  }[];
9106
9330
  nextStockPrice?: string | null | undefined;
9107
9331
  unitsLeftAtCurrentPrice?: number | null | undefined;
9108
- }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
9332
+ subscriptionPromotionPrice?: string | null | undefined;
9333
+ }, "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice" | "subscriptionPromotionPrice"> as `${K}Gross`]: string | null;
9109
9334
  };
9110
9335
  })[];
9111
9336
  subtotalNet: number | null;
@@ -9147,6 +9372,7 @@ type APICouponGetByIdResult = {
9147
9372
  minProductCount: number | null;
9148
9373
  maxProductCount: number | null;
9149
9374
  productIds: string[];
9375
+ variantIds: string[];
9150
9376
  collectionIds: string[];
9151
9377
  categoryIds: string[];
9152
9378
  brandIds: string[];
@@ -9174,6 +9400,7 @@ type APICouponCreateBody = {
9174
9400
  type: "fixed" | "percentage" | "free_shipping";
9175
9401
  value: number;
9176
9402
  products: string[];
9403
+ variants: string[];
9177
9404
  collections: string[];
9178
9405
  categories: string[];
9179
9406
  brands: string[];
@@ -9196,6 +9423,7 @@ type APICouponCreateResult = {
9196
9423
  minProductCount: number | null;
9197
9424
  maxProductCount: number | null;
9198
9425
  productIds: string[];
9426
+ variantIds: string[];
9199
9427
  collectionIds: string[];
9200
9428
  categoryIds: string[];
9201
9429
  brandIds: string[];
@@ -9210,6 +9438,7 @@ type APICouponUpdateBody = {
9210
9438
  type: "fixed" | "percentage" | "free_shipping";
9211
9439
  value: number;
9212
9440
  products: string[];
9441
+ variants: string[];
9213
9442
  collections: string[];
9214
9443
  categories: string[];
9215
9444
  brands: string[];
@@ -9232,6 +9461,7 @@ type APICouponUpdateResult = {
9232
9461
  minProductCount: number | null;
9233
9462
  maxProductCount: number | null;
9234
9463
  productIds: string[];
9464
+ variantIds: string[];
9235
9465
  collectionIds: string[];
9236
9466
  categoryIds: string[];
9237
9467
  brandIds: string[];
@@ -9651,11 +9881,6 @@ type APIOrdersBrowseResult = Omit<{
9651
9881
  lockedUnitPrice: string | null;
9652
9882
  subscriptionPlanId: string | null;
9653
9883
  subscriptionPlan: {
9654
- id: string;
9655
- name: string;
9656
- cadence: "month" | "week";
9657
- interval: number;
9658
- discountPercent: number;
9659
9884
  description: string | null;
9660
9885
  benefits: string | null;
9661
9886
  active: boolean;
@@ -9663,6 +9888,20 @@ type APIOrdersBrowseResult = Omit<{
9663
9888
  position: number;
9664
9889
  storeId: string;
9665
9890
  updatedAt: string;
9891
+ discountSteps: {
9892
+ afterCycle: number;
9893
+ percent: number;
9894
+ }[] | null;
9895
+ giftVariantId: string | null;
9896
+ giftOnOrder: number | null;
9897
+ giftName: string | null;
9898
+ id: string;
9899
+ name: string;
9900
+ cadence: "month" | "week";
9901
+ interval: number;
9902
+ discountPercent: number;
9903
+ recurringDiscountPercent: number | null;
9904
+ recurringDiscountAfterCycle: number;
9666
9905
  } | null;
9667
9906
  rollingCycle: {
9668
9907
  id: string;
@@ -9751,6 +9990,9 @@ type APIOrdersBrowseResult = Omit<{
9751
9990
  products?: {
9752
9991
  id: string;
9753
9992
  }[] | undefined;
9993
+ variants?: {
9994
+ id: string;
9995
+ }[] | undefined;
9754
9996
  collections?: {
9755
9997
  id: string;
9756
9998
  }[] | undefined;
@@ -9828,6 +10070,9 @@ type APIOrdersBrowseResult = Omit<{
9828
10070
  products?: {
9829
10071
  id: string;
9830
10072
  }[] | undefined;
10073
+ variants?: {
10074
+ id: string;
10075
+ }[] | undefined;
9831
10076
  collections?: {
9832
10077
  id: string;
9833
10078
  }[] | undefined;
@@ -9973,6 +10218,7 @@ type APIOrdersBrowseResult = Omit<{
9973
10218
  clickIdType?: "gclid" | "gbraid" | "wbraid" | "msclkid" | "ttclid" | "fbclid" | undefined;
9974
10219
  };
9975
10220
  } | null;
10221
+ locale: string | null;
9976
10222
  externalId: string | null;
9977
10223
  cartId: string | null;
9978
10224
  paymentDeduplicationId: string | null;
@@ -10315,11 +10561,6 @@ type APIOrdersBrowseResult = Omit<{
10315
10561
  lockedUnitPrice: string | null;
10316
10562
  subscriptionPlanId: string | null;
10317
10563
  subscriptionPlan: {
10318
- id: string;
10319
- name: string;
10320
- cadence: "month" | "week";
10321
- interval: number;
10322
- discountPercent: number;
10323
10564
  description: string | null;
10324
10565
  benefits: string | null;
10325
10566
  active: boolean;
@@ -10327,6 +10568,20 @@ type APIOrdersBrowseResult = Omit<{
10327
10568
  position: number;
10328
10569
  storeId: string;
10329
10570
  updatedAt: string;
10571
+ discountSteps: {
10572
+ afterCycle: number;
10573
+ percent: number;
10574
+ }[] | null;
10575
+ giftVariantId: string | null;
10576
+ giftOnOrder: number | null;
10577
+ giftName: string | null;
10578
+ id: string;
10579
+ name: string;
10580
+ cadence: "month" | "week";
10581
+ interval: number;
10582
+ discountPercent: number;
10583
+ recurringDiscountPercent: number | null;
10584
+ recurringDiscountAfterCycle: number;
10330
10585
  } | null;
10331
10586
  rollingCycle: {
10332
10587
  id: string;
@@ -10415,6 +10670,9 @@ type APIOrdersBrowseResult = Omit<{
10415
10670
  products?: {
10416
10671
  id: string;
10417
10672
  }[] | undefined;
10673
+ variants?: {
10674
+ id: string;
10675
+ }[] | undefined;
10418
10676
  collections?: {
10419
10677
  id: string;
10420
10678
  }[] | undefined;
@@ -10492,6 +10750,9 @@ type APIOrdersBrowseResult = Omit<{
10492
10750
  products?: {
10493
10751
  id: string;
10494
10752
  }[] | undefined;
10753
+ variants?: {
10754
+ id: string;
10755
+ }[] | undefined;
10495
10756
  collections?: {
10496
10757
  id: string;
10497
10758
  }[] | undefined;
@@ -10919,11 +11180,6 @@ type APIOrdersBrowseResult = Omit<{
10919
11180
  lockedUnitPrice: string | null;
10920
11181
  subscriptionPlanId: string | null;
10921
11182
  subscriptionPlan: {
10922
- id: string;
10923
- name: string;
10924
- cadence: "month" | "week";
10925
- interval: number;
10926
- discountPercent: number;
10927
11183
  description: string | null;
10928
11184
  benefits: string | null;
10929
11185
  active: boolean;
@@ -10931,6 +11187,20 @@ type APIOrdersBrowseResult = Omit<{
10931
11187
  position: number;
10932
11188
  storeId: string;
10933
11189
  updatedAt: string;
11190
+ discountSteps: {
11191
+ afterCycle: number;
11192
+ percent: number;
11193
+ }[] | null;
11194
+ giftVariantId: string | null;
11195
+ giftOnOrder: number | null;
11196
+ giftName: string | null;
11197
+ id: string;
11198
+ name: string;
11199
+ cadence: "month" | "week";
11200
+ interval: number;
11201
+ discountPercent: number;
11202
+ recurringDiscountPercent: number | null;
11203
+ recurringDiscountAfterCycle: number;
10934
11204
  } | null;
10935
11205
  rollingCycle: {
10936
11206
  id: string;
@@ -11019,6 +11289,9 @@ type APIOrdersBrowseResult = Omit<{
11019
11289
  products?: {
11020
11290
  id: string;
11021
11291
  }[] | undefined;
11292
+ variants?: {
11293
+ id: string;
11294
+ }[] | undefined;
11022
11295
  collections?: {
11023
11296
  id: string;
11024
11297
  }[] | undefined;
@@ -11096,6 +11369,9 @@ type APIOrdersBrowseResult = Omit<{
11096
11369
  products?: {
11097
11370
  id: string;
11098
11371
  }[] | undefined;
11372
+ variants?: {
11373
+ id: string;
11374
+ }[] | undefined;
11099
11375
  collections?: {
11100
11376
  id: string;
11101
11377
  }[] | undefined;
@@ -11241,6 +11517,7 @@ type APIOrdersBrowseResult = Omit<{
11241
11517
  clickIdType?: "gclid" | "gbraid" | "wbraid" | "msclkid" | "ttclid" | "fbclid" | undefined;
11242
11518
  };
11243
11519
  } | null;
11520
+ locale: string | null;
11244
11521
  externalId: string | null;
11245
11522
  cartId: string | null;
11246
11523
  paymentDeduplicationId: string | null;
@@ -11583,11 +11860,6 @@ type APIOrdersBrowseResult = Omit<{
11583
11860
  lockedUnitPrice: string | null;
11584
11861
  subscriptionPlanId: string | null;
11585
11862
  subscriptionPlan: {
11586
- id: string;
11587
- name: string;
11588
- cadence: "month" | "week";
11589
- interval: number;
11590
- discountPercent: number;
11591
11863
  description: string | null;
11592
11864
  benefits: string | null;
11593
11865
  active: boolean;
@@ -11595,6 +11867,20 @@ type APIOrdersBrowseResult = Omit<{
11595
11867
  position: number;
11596
11868
  storeId: string;
11597
11869
  updatedAt: string;
11870
+ discountSteps: {
11871
+ afterCycle: number;
11872
+ percent: number;
11873
+ }[] | null;
11874
+ giftVariantId: string | null;
11875
+ giftOnOrder: number | null;
11876
+ giftName: string | null;
11877
+ id: string;
11878
+ name: string;
11879
+ cadence: "month" | "week";
11880
+ interval: number;
11881
+ discountPercent: number;
11882
+ recurringDiscountPercent: number | null;
11883
+ recurringDiscountAfterCycle: number;
11598
11884
  } | null;
11599
11885
  rollingCycle: {
11600
11886
  id: string;
@@ -11683,6 +11969,9 @@ type APIOrdersBrowseResult = Omit<{
11683
11969
  products?: {
11684
11970
  id: string;
11685
11971
  }[] | undefined;
11972
+ variants?: {
11973
+ id: string;
11974
+ }[] | undefined;
11686
11975
  collections?: {
11687
11976
  id: string;
11688
11977
  }[] | undefined;
@@ -11760,6 +12049,9 @@ type APIOrdersBrowseResult = Omit<{
11760
12049
  products?: {
11761
12050
  id: string;
11762
12051
  }[] | undefined;
12052
+ variants?: {
12053
+ id: string;
12054
+ }[] | undefined;
11763
12055
  collections?: {
11764
12056
  id: string;
11765
12057
  }[] | undefined;
@@ -12837,18 +13129,13 @@ type APIOrdersBrowseResult = Omit<{
12837
13129
  originalPrice?: string | null | undefined;
12838
13130
  } & {
12839
13131
  originalPrice: string;
12840
- }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
13132
+ }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice" | "subscriptionPromotionPrice"> as `${K}Gross`]: string | null;
12841
13133
  };
12842
13134
  productVariantId: string;
12843
13135
  preVolumePricingPrice: string | null;
12844
13136
  lockedUnitPrice: string | null;
12845
13137
  subscriptionPlanId: string | null;
12846
13138
  subscriptionPlan: {
12847
- id: string;
12848
- name: string;
12849
- cadence: "month" | "week";
12850
- interval: number;
12851
- discountPercent: number;
12852
13139
  description: string | null;
12853
13140
  benefits: string | null;
12854
13141
  active: boolean;
@@ -12856,6 +13143,20 @@ type APIOrdersBrowseResult = Omit<{
12856
13143
  position: number;
12857
13144
  storeId: string;
12858
13145
  updatedAt: string;
13146
+ discountSteps: {
13147
+ afterCycle: number;
13148
+ percent: number;
13149
+ }[] | null;
13150
+ giftVariantId: string | null;
13151
+ giftOnOrder: number | null;
13152
+ giftName: string | null;
13153
+ id: string;
13154
+ name: string;
13155
+ cadence: "month" | "week";
13156
+ interval: number;
13157
+ discountPercent: number;
13158
+ recurringDiscountPercent: number | null;
13159
+ recurringDiscountAfterCycle: number;
12859
13160
  } | null;
12860
13161
  rollingCycle: {
12861
13162
  id: string;
@@ -12944,6 +13245,9 @@ type APIOrdersBrowseResult = Omit<{
12944
13245
  products?: {
12945
13246
  id: string;
12946
13247
  }[] | undefined;
13248
+ variants?: {
13249
+ id: string;
13250
+ }[] | undefined;
12947
13251
  collections?: {
12948
13252
  id: string;
12949
13253
  }[] | undefined;
@@ -13021,6 +13325,9 @@ type APIOrdersBrowseResult = Omit<{
13021
13325
  products?: {
13022
13326
  id: string;
13023
13327
  }[] | undefined;
13328
+ variants?: {
13329
+ id: string;
13330
+ }[] | undefined;
13024
13331
  collections?: {
13025
13332
  id: string;
13026
13333
  }[] | undefined;
@@ -13159,6 +13466,7 @@ type APIOrderGetByIdResult = Omit<{
13159
13466
  updatedAt: string;
13160
13467
  storeId: string;
13161
13468
  status: "completed" | "cancelled" | "paid" | "created" | "processing" | "shipped" | "refunded" | "partially_refunded" | "reserved";
13469
+ locale: string | null;
13162
13470
  environment: "live" | "test";
13163
13471
  source: string | null;
13164
13472
  externalId: string | null;
@@ -13473,11 +13781,6 @@ type APIOrderGetByIdResult = Omit<{
13473
13781
  lockedUnitPrice: string | null;
13474
13782
  subscriptionPlanId: string | null;
13475
13783
  subscriptionPlan: {
13476
- id: string;
13477
- name: string;
13478
- cadence: "month" | "week";
13479
- interval: number;
13480
- discountPercent: number;
13481
13784
  description: string | null;
13482
13785
  benefits: string | null;
13483
13786
  active: boolean;
@@ -13485,6 +13788,20 @@ type APIOrderGetByIdResult = Omit<{
13485
13788
  position: number;
13486
13789
  storeId: string;
13487
13790
  updatedAt: string;
13791
+ discountSteps: {
13792
+ afterCycle: number;
13793
+ percent: number;
13794
+ }[] | null;
13795
+ giftVariantId: string | null;
13796
+ giftOnOrder: number | null;
13797
+ giftName: string | null;
13798
+ id: string;
13799
+ name: string;
13800
+ cadence: "month" | "week";
13801
+ interval: number;
13802
+ discountPercent: number;
13803
+ recurringDiscountPercent: number | null;
13804
+ recurringDiscountAfterCycle: number;
13488
13805
  } | null;
13489
13806
  rollingCycle: {
13490
13807
  id: string;
@@ -13573,6 +13890,9 @@ type APIOrderGetByIdResult = Omit<{
13573
13890
  products?: {
13574
13891
  id: string;
13575
13892
  }[] | undefined;
13893
+ variants?: {
13894
+ id: string;
13895
+ }[] | undefined;
13576
13896
  collections?: {
13577
13897
  id: string;
13578
13898
  }[] | undefined;
@@ -13650,6 +13970,9 @@ type APIOrderGetByIdResult = Omit<{
13650
13970
  products?: {
13651
13971
  id: string;
13652
13972
  }[] | undefined;
13973
+ variants?: {
13974
+ id: string;
13975
+ }[] | undefined;
13653
13976
  collections?: {
13654
13977
  id: string;
13655
13978
  }[] | undefined;
@@ -13839,6 +14162,7 @@ type APIOrderGetByIdResult = Omit<{
13839
14162
  cadence: "month" | "week";
13840
14163
  productVariantId: string;
13841
14164
  originalOrderId: string;
14165
+ stripeSubscriptionItemId: string | null;
13842
14166
  canceledAt: Date | null;
13843
14167
  cancelAt: Date | null;
13844
14168
  cancellationDetails: {
@@ -14147,11 +14471,6 @@ type APIOrderGetByIdResult = Omit<{
14147
14471
  lockedUnitPrice: string | null;
14148
14472
  subscriptionPlanId: string | null;
14149
14473
  subscriptionPlan: {
14150
- id: string;
14151
- name: string;
14152
- cadence: "month" | "week";
14153
- interval: number;
14154
- discountPercent: number;
14155
14474
  description: string | null;
14156
14475
  benefits: string | null;
14157
14476
  active: boolean;
@@ -14159,6 +14478,20 @@ type APIOrderGetByIdResult = Omit<{
14159
14478
  position: number;
14160
14479
  storeId: string;
14161
14480
  updatedAt: string;
14481
+ discountSteps: {
14482
+ afterCycle: number;
14483
+ percent: number;
14484
+ }[] | null;
14485
+ giftVariantId: string | null;
14486
+ giftOnOrder: number | null;
14487
+ giftName: string | null;
14488
+ id: string;
14489
+ name: string;
14490
+ cadence: "month" | "week";
14491
+ interval: number;
14492
+ discountPercent: number;
14493
+ recurringDiscountPercent: number | null;
14494
+ recurringDiscountAfterCycle: number;
14162
14495
  } | null;
14163
14496
  rollingCycle: {
14164
14497
  id: string;
@@ -14247,6 +14580,9 @@ type APIOrderGetByIdResult = Omit<{
14247
14580
  products?: {
14248
14581
  id: string;
14249
14582
  }[] | undefined;
14583
+ variants?: {
14584
+ id: string;
14585
+ }[] | undefined;
14250
14586
  collections?: {
14251
14587
  id: string;
14252
14588
  }[] | undefined;
@@ -14324,6 +14660,9 @@ type APIOrderGetByIdResult = Omit<{
14324
14660
  products?: {
14325
14661
  id: string;
14326
14662
  }[] | undefined;
14663
+ variants?: {
14664
+ id: string;
14665
+ }[] | undefined;
14327
14666
  collections?: {
14328
14667
  id: string;
14329
14668
  }[] | undefined;
@@ -15397,18 +15736,13 @@ type APIOrderGetByIdResult = Omit<{
15397
15736
  originalPrice?: string | null | undefined;
15398
15737
  } & {
15399
15738
  originalPrice: string;
15400
- }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice"> as `${K}Gross`]: string | null;
15739
+ }), "calculatedPrice" | "originalPrice" | "prePromotionPrice" | "nextStockPrice" | "omnibusPrice" | "subscriptionPromotionPrice"> as `${K}Gross`]: string | null;
15401
15740
  };
15402
15741
  productVariantId: string;
15403
15742
  preVolumePricingPrice: string | null;
15404
15743
  lockedUnitPrice: string | null;
15405
15744
  subscriptionPlanId: string | null;
15406
15745
  subscriptionPlan: {
15407
- id: string;
15408
- name: string;
15409
- cadence: "month" | "week";
15410
- interval: number;
15411
- discountPercent: number;
15412
15746
  description: string | null;
15413
15747
  benefits: string | null;
15414
15748
  active: boolean;
@@ -15416,6 +15750,20 @@ type APIOrderGetByIdResult = Omit<{
15416
15750
  position: number;
15417
15751
  storeId: string;
15418
15752
  updatedAt: string;
15753
+ discountSteps: {
15754
+ afterCycle: number;
15755
+ percent: number;
15756
+ }[] | null;
15757
+ giftVariantId: string | null;
15758
+ giftOnOrder: number | null;
15759
+ giftName: string | null;
15760
+ id: string;
15761
+ name: string;
15762
+ cadence: "month" | "week";
15763
+ interval: number;
15764
+ discountPercent: number;
15765
+ recurringDiscountPercent: number | null;
15766
+ recurringDiscountAfterCycle: number;
15419
15767
  } | null;
15420
15768
  rollingCycle: {
15421
15769
  id: string;
@@ -15504,6 +15852,9 @@ type APIOrderGetByIdResult = Omit<{
15504
15852
  products?: {
15505
15853
  id: string;
15506
15854
  }[] | undefined;
15855
+ variants?: {
15856
+ id: string;
15857
+ }[] | undefined;
15507
15858
  collections?: {
15508
15859
  id: string;
15509
15860
  }[] | undefined;
@@ -15581,6 +15932,9 @@ type APIOrderGetByIdResult = Omit<{
15581
15932
  products?: {
15582
15933
  id: string;
15583
15934
  }[] | undefined;
15935
+ variants?: {
15936
+ id: string;
15937
+ }[] | undefined;
15584
15938
  collections?: {
15585
15939
  id: string;
15586
15940
  }[] | undefined;
@@ -16603,6 +16957,7 @@ type APICustomersBrowseResult = {
16603
16957
  id: string;
16604
16958
  email: string | null;
16605
16959
  name: string | null;
16960
+ locale: string | null;
16606
16961
  createdAt: string;
16607
16962
  }>;
16608
16963
  pagination: {
@@ -16621,6 +16976,7 @@ type APICustomerGetByIdResult = {
16621
16976
  id: string;
16622
16977
  email: string | null;
16623
16978
  name: string | null;
16979
+ locale: string | null;
16624
16980
  phone: string | null;
16625
16981
  addresses: Array<{
16626
16982
  id: string;
@@ -16795,9 +17151,10 @@ type APIVariantCreateResult = {
16795
17151
  };
16796
17152
  type APISubscriberCreateBody = {
16797
17153
  email: string;
16798
- name?: string;
16799
- placement?: string;
16800
- marketingConsent?: boolean;
17154
+ name?: string | undefined;
17155
+ placement?: string | undefined;
17156
+ locale?: "en-US" | "fr-FR" | "it-IT" | "vi-VN" | "pl-PL" | "es-ES" | "de-DE" | undefined;
17157
+ marketingConsent?: boolean | undefined;
16801
17158
  };
16802
17159
  type APISubscriberCreateResult = {
16803
17160
  id: string;
@@ -16805,6 +17162,7 @@ type APISubscriberCreateResult = {
16805
17162
  name: string | null;
16806
17163
  source: string;
16807
17164
  placement: string | null;
17165
+ locale: string | null;
16808
17166
  pending: boolean;
16809
17167
  marketingConsentAt: string | null;
16810
17168
  createdAt: string;