commerce-kit 0.70.0 → 0.72.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.
Files changed (2) hide show
  1. package/dist/api-types.d.ts +2455 -96
  2. package/package.json +1 -1
@@ -4391,7 +4391,7 @@ type APICartGetResult = {
4391
4391
  externalReference?: string;
4392
4392
  idempotencyKey?: string;
4393
4393
  } | null;
4394
- coupon: Omit<{
4394
+ coupon: Omit<({
4395
4395
  type: "fixed" | "percentage" | "free_shipping";
4396
4396
  value: string;
4397
4397
  code: string;
@@ -4400,6 +4400,46 @@ type APICartGetResult = {
4400
4400
  endDate: string | null;
4401
4401
  minProductCount: number | null;
4402
4402
  maxProductCount: number | null;
4403
+ minSubtotal: string | null;
4404
+ excludeSaleItems: boolean;
4405
+ appliesOnSubscription: boolean;
4406
+ additionalRules: ({
4407
+ productIds: string[];
4408
+ variantIds: string[];
4409
+ collectionIds: string[];
4410
+ categoryIds: string[];
4411
+ brandIds: string[];
4412
+ type: "percentage";
4413
+ value: number;
4414
+ condition: {
4415
+ productIds: string[];
4416
+ variantIds: string[];
4417
+ collectionIds: string[];
4418
+ categoryIds: string[];
4419
+ brandIds: string[];
4420
+ minQuantity: number;
4421
+ } | null;
4422
+ } | {
4423
+ type: "buy_x_get_y";
4424
+ buys: {
4425
+ productIds: string[];
4426
+ variantIds: string[];
4427
+ collectionIds: string[];
4428
+ categoryIds: string[];
4429
+ brandIds: string[];
4430
+ quantity: number;
4431
+ };
4432
+ gets: {
4433
+ productIds: string[];
4434
+ variantIds: string[];
4435
+ collectionIds: string[];
4436
+ categoryIds: string[];
4437
+ brandIds: string[];
4438
+ quantity: number;
4439
+ value: number;
4440
+ };
4441
+ usesPerOrderLimit: number | null;
4442
+ })[];
4403
4443
  products: {
4404
4444
  id: string;
4405
4445
  }[];
@@ -4420,10 +4460,164 @@ type APICartGetResult = {
4420
4460
  updatedAt: string;
4421
4461
  currency: string;
4422
4462
  storeId: string;
4423
- value: string;
4463
+ value: string | null;
4464
+ minSubtotal: string | null;
4424
4465
  couponId: string;
4425
4466
  }[];
4426
- }, "prices"> | null;
4467
+ } & {
4468
+ additionalRules: ({
4469
+ productIds: string[];
4470
+ variantIds: string[];
4471
+ collectionIds: string[];
4472
+ categoryIds: string[];
4473
+ brandIds: string[];
4474
+ type: "percentage";
4475
+ value: number;
4476
+ condition: {
4477
+ productIds: string[];
4478
+ variantIds: string[];
4479
+ collectionIds: string[];
4480
+ categoryIds: string[];
4481
+ brandIds: string[];
4482
+ minQuantity: number;
4483
+ } | null;
4484
+ } | {
4485
+ type: "buy_x_get_y";
4486
+ buys: {
4487
+ productIds: string[];
4488
+ variantIds: string[];
4489
+ collectionIds: string[];
4490
+ categoryIds: string[];
4491
+ brandIds: string[];
4492
+ quantity: number;
4493
+ };
4494
+ gets: {
4495
+ productIds: string[];
4496
+ variantIds: string[];
4497
+ collectionIds: string[];
4498
+ categoryIds: string[];
4499
+ brandIds: string[];
4500
+ quantity: number;
4501
+ value: number;
4502
+ };
4503
+ usesPerOrderLimit: number | null;
4504
+ })[];
4505
+ }) | (Omit<{
4506
+ type: "fixed" | "percentage" | "free_shipping";
4507
+ value: string;
4508
+ code: string;
4509
+ freeShipping: boolean;
4510
+ startDate: string | null;
4511
+ endDate: string | null;
4512
+ minProductCount: number | null;
4513
+ maxProductCount: number | null;
4514
+ minSubtotal: string | null;
4515
+ excludeSaleItems: boolean;
4516
+ appliesOnSubscription: boolean;
4517
+ additionalRules: ({
4518
+ productIds: string[];
4519
+ variantIds: string[];
4520
+ collectionIds: string[];
4521
+ categoryIds: string[];
4522
+ brandIds: string[];
4523
+ type: "percentage";
4524
+ value: number;
4525
+ condition: {
4526
+ productIds: string[];
4527
+ variantIds: string[];
4528
+ collectionIds: string[];
4529
+ categoryIds: string[];
4530
+ brandIds: string[];
4531
+ minQuantity: number;
4532
+ } | null;
4533
+ } | {
4534
+ type: "buy_x_get_y";
4535
+ buys: {
4536
+ productIds: string[];
4537
+ variantIds: string[];
4538
+ collectionIds: string[];
4539
+ categoryIds: string[];
4540
+ brandIds: string[];
4541
+ quantity: number;
4542
+ };
4543
+ gets: {
4544
+ productIds: string[];
4545
+ variantIds: string[];
4546
+ collectionIds: string[];
4547
+ categoryIds: string[];
4548
+ brandIds: string[];
4549
+ quantity: number;
4550
+ value: number;
4551
+ };
4552
+ usesPerOrderLimit: number | null;
4553
+ })[];
4554
+ products: {
4555
+ id: string;
4556
+ }[];
4557
+ brands: {
4558
+ id: string;
4559
+ }[];
4560
+ collections: {
4561
+ id: string;
4562
+ }[];
4563
+ variants: {
4564
+ id: string;
4565
+ }[];
4566
+ categories: {
4567
+ id: string;
4568
+ }[];
4569
+ prices: {
4570
+ createdAt: string;
4571
+ updatedAt: string;
4572
+ currency: string;
4573
+ storeId: string;
4574
+ value: string | null;
4575
+ minSubtotal: string | null;
4576
+ couponId: string;
4577
+ }[];
4578
+ } & {
4579
+ additionalRules: ({
4580
+ productIds: string[];
4581
+ variantIds: string[];
4582
+ collectionIds: string[];
4583
+ categoryIds: string[];
4584
+ brandIds: string[];
4585
+ type: "percentage";
4586
+ value: number;
4587
+ condition: {
4588
+ productIds: string[];
4589
+ variantIds: string[];
4590
+ collectionIds: string[];
4591
+ categoryIds: string[];
4592
+ brandIds: string[];
4593
+ minQuantity: number;
4594
+ } | null;
4595
+ } | {
4596
+ type: "buy_x_get_y";
4597
+ buys: {
4598
+ productIds: string[];
4599
+ variantIds: string[];
4600
+ collectionIds: string[];
4601
+ categoryIds: string[];
4602
+ brandIds: string[];
4603
+ quantity: number;
4604
+ };
4605
+ gets: {
4606
+ productIds: string[];
4607
+ variantIds: string[];
4608
+ collectionIds: string[];
4609
+ categoryIds: string[];
4610
+ brandIds: string[];
4611
+ quantity: number;
4612
+ value: number;
4613
+ };
4614
+ usesPerOrderLimit: number | null;
4615
+ })[];
4616
+ }, "value" | "minSubtotal"> & {
4617
+ value: string;
4618
+ minSubtotal: string | null;
4619
+ unavailableInCurrency?: boolean;
4620
+ }), "prices"> | null;
4427
4621
  billingAddress: {
4428
4622
  id: string;
4429
4623
  name: string | null;
@@ -4457,16 +4651,7 @@ type APICartGetResult = {
4457
4651
  taxId: string | null;
4458
4652
  } | null;
4459
4653
  customer: {
4460
- id: string;
4461
- email: string | null;
4462
- createdAt: string;
4463
- updatedAt: string;
4464
- userId: string | null;
4465
- locale: string | null;
4466
- stripeCustomerId: string | null;
4467
- storeId: string;
4468
- couponId: string | null;
4469
- coupon: {
4654
+ coupon: Omit<({
4470
4655
  type: "fixed" | "percentage" | "free_shipping";
4471
4656
  value: string;
4472
4657
  code: string;
@@ -4475,6 +4660,46 @@ type APICartGetResult = {
4475
4660
  endDate: string | null;
4476
4661
  minProductCount: number | null;
4477
4662
  maxProductCount: number | null;
4663
+ minSubtotal: string | null;
4664
+ excludeSaleItems: boolean;
4665
+ appliesOnSubscription: boolean;
4666
+ additionalRules: ({
4667
+ productIds: string[];
4668
+ variantIds: string[];
4669
+ collectionIds: string[];
4670
+ categoryIds: string[];
4671
+ brandIds: string[];
4672
+ type: "percentage";
4673
+ value: number;
4674
+ condition: {
4675
+ productIds: string[];
4676
+ variantIds: string[];
4677
+ collectionIds: string[];
4678
+ categoryIds: string[];
4679
+ brandIds: string[];
4680
+ minQuantity: number;
4681
+ } | null;
4682
+ } | {
4683
+ type: "buy_x_get_y";
4684
+ buys: {
4685
+ productIds: string[];
4686
+ variantIds: string[];
4687
+ collectionIds: string[];
4688
+ categoryIds: string[];
4689
+ brandIds: string[];
4690
+ quantity: number;
4691
+ };
4692
+ gets: {
4693
+ productIds: string[];
4694
+ variantIds: string[];
4695
+ collectionIds: string[];
4696
+ categoryIds: string[];
4697
+ brandIds: string[];
4698
+ quantity: number;
4699
+ value: number;
4700
+ };
4701
+ usesPerOrderLimit: number | null;
4702
+ })[];
4478
4703
  products: {
4479
4704
  id: string;
4480
4705
  }[];
@@ -4495,17 +4720,49 @@ type APICartGetResult = {
4495
4720
  updatedAt: string;
4496
4721
  currency: string;
4497
4722
  storeId: string;
4498
- value: string;
4723
+ value: string | null;
4724
+ minSubtotal: string | null;
4499
4725
  couponId: string;
4500
4726
  }[];
4501
- } | null;
4502
- user: {
4503
- id: string;
4504
- name: string;
4505
- email: string;
4506
- } | null;
4507
- } | {
4508
- coupon: Omit<{
4727
+ } & {
4728
+ additionalRules: ({
4729
+ productIds: string[];
4730
+ variantIds: string[];
4731
+ collectionIds: string[];
4732
+ categoryIds: string[];
4733
+ brandIds: string[];
4734
+ type: "percentage";
4735
+ value: number;
4736
+ condition: {
4737
+ productIds: string[];
4738
+ variantIds: string[];
4739
+ collectionIds: string[];
4740
+ categoryIds: string[];
4741
+ brandIds: string[];
4742
+ minQuantity: number;
4743
+ } | null;
4744
+ } | {
4745
+ type: "buy_x_get_y";
4746
+ buys: {
4747
+ productIds: string[];
4748
+ variantIds: string[];
4749
+ collectionIds: string[];
4750
+ categoryIds: string[];
4751
+ brandIds: string[];
4752
+ quantity: number;
4753
+ };
4754
+ gets: {
4755
+ productIds: string[];
4756
+ variantIds: string[];
4757
+ collectionIds: string[];
4758
+ categoryIds: string[];
4759
+ brandIds: string[];
4760
+ quantity: number;
4761
+ value: number;
4762
+ };
4763
+ usesPerOrderLimit: number | null;
4764
+ })[];
4765
+ }) | (Omit<{
4509
4766
  type: "fixed" | "percentage" | "free_shipping";
4510
4767
  value: string;
4511
4768
  code: string;
@@ -4514,6 +4771,46 @@ type APICartGetResult = {
4514
4771
  endDate: string | null;
4515
4772
  minProductCount: number | null;
4516
4773
  maxProductCount: number | null;
4774
+ minSubtotal: string | null;
4775
+ excludeSaleItems: boolean;
4776
+ appliesOnSubscription: boolean;
4777
+ additionalRules: ({
4778
+ productIds: string[];
4779
+ variantIds: string[];
4780
+ collectionIds: string[];
4781
+ categoryIds: string[];
4782
+ brandIds: string[];
4783
+ type: "percentage";
4784
+ value: number;
4785
+ condition: {
4786
+ productIds: string[];
4787
+ variantIds: string[];
4788
+ collectionIds: string[];
4789
+ categoryIds: string[];
4790
+ brandIds: string[];
4791
+ minQuantity: number;
4792
+ } | null;
4793
+ } | {
4794
+ type: "buy_x_get_y";
4795
+ buys: {
4796
+ productIds: string[];
4797
+ variantIds: string[];
4798
+ collectionIds: string[];
4799
+ categoryIds: string[];
4800
+ brandIds: string[];
4801
+ quantity: number;
4802
+ };
4803
+ gets: {
4804
+ productIds: string[];
4805
+ variantIds: string[];
4806
+ collectionIds: string[];
4807
+ categoryIds: string[];
4808
+ brandIds: string[];
4809
+ quantity: number;
4810
+ value: number;
4811
+ };
4812
+ usesPerOrderLimit: number | null;
4813
+ })[];
4517
4814
  products: {
4518
4815
  id: string;
4519
4816
  }[];
@@ -4534,10 +4831,69 @@ type APICartGetResult = {
4534
4831
  updatedAt: string;
4535
4832
  currency: string;
4536
4833
  storeId: string;
4537
- value: string;
4834
+ value: string | null;
4835
+ minSubtotal: string | null;
4538
4836
  couponId: string;
4539
4837
  }[];
4540
- }, "prices">;
4838
+ } & {
4839
+ additionalRules: ({
4840
+ productIds: string[];
4841
+ variantIds: string[];
4842
+ collectionIds: string[];
4843
+ categoryIds: string[];
4844
+ brandIds: string[];
4845
+ type: "percentage";
4846
+ value: number;
4847
+ condition: {
4848
+ productIds: string[];
4849
+ variantIds: string[];
4850
+ collectionIds: string[];
4851
+ categoryIds: string[];
4852
+ brandIds: string[];
4853
+ minQuantity: number;
4854
+ } | null;
4855
+ } | {
4856
+ type: "buy_x_get_y";
4857
+ buys: {
4858
+ productIds: string[];
4859
+ variantIds: string[];
4860
+ collectionIds: string[];
4861
+ categoryIds: string[];
4862
+ brandIds: string[];
4863
+ quantity: number;
4864
+ };
4865
+ gets: {
4866
+ productIds: string[];
4867
+ variantIds: string[];
4868
+ collectionIds: string[];
4869
+ categoryIds: string[];
4870
+ brandIds: string[];
4871
+ quantity: number;
4872
+ value: number;
4873
+ };
4874
+ usesPerOrderLimit: number | null;
4875
+ })[];
4876
+ }, "value" | "minSubtotal"> & {
4877
+ value: string;
4878
+ minSubtotal: string | null;
4879
+ unavailableInCurrency?: boolean;
4880
+ }), "prices">;
4881
+ id: string;
4882
+ email: string | null;
4883
+ createdAt: string;
4884
+ updatedAt: string;
4885
+ userId: string | null;
4886
+ locale: string | null;
4887
+ stripeCustomerId: string | null;
4888
+ storeId: string;
4889
+ couponId: string | null;
4890
+ user: {
4891
+ id: string;
4892
+ name: string;
4893
+ email: string;
4894
+ } | null;
4895
+ } | {
4896
+ coupon: null;
4541
4897
  id: string;
4542
4898
  email: string | null;
4543
4899
  createdAt: string;
@@ -5676,7 +6032,7 @@ type APICartCreateResult = {
5676
6032
  externalReference?: string;
5677
6033
  idempotencyKey?: string;
5678
6034
  } | null;
5679
- coupon: Omit<{
6035
+ coupon: Omit<({
5680
6036
  type: "fixed" | "percentage" | "free_shipping";
5681
6037
  value: string;
5682
6038
  code: string;
@@ -5685,6 +6041,46 @@ type APICartCreateResult = {
5685
6041
  endDate: string | null;
5686
6042
  minProductCount: number | null;
5687
6043
  maxProductCount: number | null;
6044
+ minSubtotal: string | null;
6045
+ excludeSaleItems: boolean;
6046
+ appliesOnSubscription: boolean;
6047
+ additionalRules: ({
6048
+ productIds: string[];
6049
+ variantIds: string[];
6050
+ collectionIds: string[];
6051
+ categoryIds: string[];
6052
+ brandIds: string[];
6053
+ type: "percentage";
6054
+ value: number;
6055
+ condition: {
6056
+ productIds: string[];
6057
+ variantIds: string[];
6058
+ collectionIds: string[];
6059
+ categoryIds: string[];
6060
+ brandIds: string[];
6061
+ minQuantity: number;
6062
+ } | null;
6063
+ } | {
6064
+ type: "buy_x_get_y";
6065
+ buys: {
6066
+ productIds: string[];
6067
+ variantIds: string[];
6068
+ collectionIds: string[];
6069
+ categoryIds: string[];
6070
+ brandIds: string[];
6071
+ quantity: number;
6072
+ };
6073
+ gets: {
6074
+ productIds: string[];
6075
+ variantIds: string[];
6076
+ collectionIds: string[];
6077
+ categoryIds: string[];
6078
+ brandIds: string[];
6079
+ quantity: number;
6080
+ value: number;
6081
+ };
6082
+ usesPerOrderLimit: number | null;
6083
+ })[];
5688
6084
  products: {
5689
6085
  id: string;
5690
6086
  }[];
@@ -5705,10 +6101,164 @@ type APICartCreateResult = {
5705
6101
  updatedAt: string;
5706
6102
  currency: string;
5707
6103
  storeId: string;
5708
- value: string;
6104
+ value: string | null;
6105
+ minSubtotal: string | null;
5709
6106
  couponId: string;
5710
6107
  }[];
5711
- }, "prices"> | null;
6108
+ } & {
6109
+ additionalRules: ({
6110
+ productIds: string[];
6111
+ variantIds: string[];
6112
+ collectionIds: string[];
6113
+ categoryIds: string[];
6114
+ brandIds: string[];
6115
+ type: "percentage";
6116
+ value: number;
6117
+ condition: {
6118
+ productIds: string[];
6119
+ variantIds: string[];
6120
+ collectionIds: string[];
6121
+ categoryIds: string[];
6122
+ brandIds: string[];
6123
+ minQuantity: number;
6124
+ } | null;
6125
+ } | {
6126
+ type: "buy_x_get_y";
6127
+ buys: {
6128
+ productIds: string[];
6129
+ variantIds: string[];
6130
+ collectionIds: string[];
6131
+ categoryIds: string[];
6132
+ brandIds: string[];
6133
+ quantity: number;
6134
+ };
6135
+ gets: {
6136
+ productIds: string[];
6137
+ variantIds: string[];
6138
+ collectionIds: string[];
6139
+ categoryIds: string[];
6140
+ brandIds: string[];
6141
+ quantity: number;
6142
+ value: number;
6143
+ };
6144
+ usesPerOrderLimit: number | null;
6145
+ })[];
6146
+ }) | (Omit<{
6147
+ type: "fixed" | "percentage" | "free_shipping";
6148
+ value: string;
6149
+ code: string;
6150
+ freeShipping: boolean;
6151
+ startDate: string | null;
6152
+ endDate: string | null;
6153
+ minProductCount: number | null;
6154
+ maxProductCount: number | null;
6155
+ minSubtotal: string | null;
6156
+ excludeSaleItems: boolean;
6157
+ appliesOnSubscription: boolean;
6158
+ additionalRules: ({
6159
+ productIds: string[];
6160
+ variantIds: string[];
6161
+ collectionIds: string[];
6162
+ categoryIds: string[];
6163
+ brandIds: string[];
6164
+ type: "percentage";
6165
+ value: number;
6166
+ condition: {
6167
+ productIds: string[];
6168
+ variantIds: string[];
6169
+ collectionIds: string[];
6170
+ categoryIds: string[];
6171
+ brandIds: string[];
6172
+ minQuantity: number;
6173
+ } | null;
6174
+ } | {
6175
+ type: "buy_x_get_y";
6176
+ buys: {
6177
+ productIds: string[];
6178
+ variantIds: string[];
6179
+ collectionIds: string[];
6180
+ categoryIds: string[];
6181
+ brandIds: string[];
6182
+ quantity: number;
6183
+ };
6184
+ gets: {
6185
+ productIds: string[];
6186
+ variantIds: string[];
6187
+ collectionIds: string[];
6188
+ categoryIds: string[];
6189
+ brandIds: string[];
6190
+ quantity: number;
6191
+ value: number;
6192
+ };
6193
+ usesPerOrderLimit: number | null;
6194
+ })[];
6195
+ products: {
6196
+ id: string;
6197
+ }[];
6198
+ brands: {
6199
+ id: string;
6200
+ }[];
6201
+ collections: {
6202
+ id: string;
6203
+ }[];
6204
+ variants: {
6205
+ id: string;
6206
+ }[];
6207
+ categories: {
6208
+ id: string;
6209
+ }[];
6210
+ prices: {
6211
+ createdAt: string;
6212
+ updatedAt: string;
6213
+ currency: string;
6214
+ storeId: string;
6215
+ value: string | null;
6216
+ minSubtotal: string | null;
6217
+ couponId: string;
6218
+ }[];
6219
+ } & {
6220
+ additionalRules: ({
6221
+ productIds: string[];
6222
+ variantIds: string[];
6223
+ collectionIds: string[];
6224
+ categoryIds: string[];
6225
+ brandIds: string[];
6226
+ type: "percentage";
6227
+ value: number;
6228
+ condition: {
6229
+ productIds: string[];
6230
+ variantIds: string[];
6231
+ collectionIds: string[];
6232
+ categoryIds: string[];
6233
+ brandIds: string[];
6234
+ minQuantity: number;
6235
+ } | null;
6236
+ } | {
6237
+ type: "buy_x_get_y";
6238
+ buys: {
6239
+ productIds: string[];
6240
+ variantIds: string[];
6241
+ collectionIds: string[];
6242
+ categoryIds: string[];
6243
+ brandIds: string[];
6244
+ quantity: number;
6245
+ };
6246
+ gets: {
6247
+ productIds: string[];
6248
+ variantIds: string[];
6249
+ collectionIds: string[];
6250
+ categoryIds: string[];
6251
+ brandIds: string[];
6252
+ quantity: number;
6253
+ value: number;
6254
+ };
6255
+ usesPerOrderLimit: number | null;
6256
+ })[];
6257
+ }, "value" | "minSubtotal"> & {
6258
+ value: string;
6259
+ minSubtotal: string | null;
6260
+ unavailableInCurrency?: boolean;
6261
+ }), "prices"> | null;
5712
6262
  billingAddress: {
5713
6263
  id: string;
5714
6264
  name: string | null;
@@ -5742,16 +6292,7 @@ type APICartCreateResult = {
5742
6292
  taxId: string | null;
5743
6293
  } | null;
5744
6294
  customer: {
5745
- id: string;
5746
- email: string | null;
5747
- createdAt: string;
5748
- updatedAt: string;
5749
- userId: string | null;
5750
- locale: string | null;
5751
- stripeCustomerId: string | null;
5752
- storeId: string;
5753
- couponId: string | null;
5754
- coupon: {
6295
+ coupon: Omit<({
5755
6296
  type: "fixed" | "percentage" | "free_shipping";
5756
6297
  value: string;
5757
6298
  code: string;
@@ -5760,6 +6301,46 @@ type APICartCreateResult = {
5760
6301
  endDate: string | null;
5761
6302
  minProductCount: number | null;
5762
6303
  maxProductCount: number | null;
6304
+ minSubtotal: string | null;
6305
+ excludeSaleItems: boolean;
6306
+ appliesOnSubscription: boolean;
6307
+ additionalRules: ({
6308
+ productIds: string[];
6309
+ variantIds: string[];
6310
+ collectionIds: string[];
6311
+ categoryIds: string[];
6312
+ brandIds: string[];
6313
+ type: "percentage";
6314
+ value: number;
6315
+ condition: {
6316
+ productIds: string[];
6317
+ variantIds: string[];
6318
+ collectionIds: string[];
6319
+ categoryIds: string[];
6320
+ brandIds: string[];
6321
+ minQuantity: number;
6322
+ } | null;
6323
+ } | {
6324
+ type: "buy_x_get_y";
6325
+ buys: {
6326
+ productIds: string[];
6327
+ variantIds: string[];
6328
+ collectionIds: string[];
6329
+ categoryIds: string[];
6330
+ brandIds: string[];
6331
+ quantity: number;
6332
+ };
6333
+ gets: {
6334
+ productIds: string[];
6335
+ variantIds: string[];
6336
+ collectionIds: string[];
6337
+ categoryIds: string[];
6338
+ brandIds: string[];
6339
+ quantity: number;
6340
+ value: number;
6341
+ };
6342
+ usesPerOrderLimit: number | null;
6343
+ })[];
5763
6344
  products: {
5764
6345
  id: string;
5765
6346
  }[];
@@ -5780,17 +6361,49 @@ type APICartCreateResult = {
5780
6361
  updatedAt: string;
5781
6362
  currency: string;
5782
6363
  storeId: string;
5783
- value: string;
6364
+ value: string | null;
6365
+ minSubtotal: string | null;
5784
6366
  couponId: string;
5785
6367
  }[];
5786
- } | null;
5787
- user: {
5788
- id: string;
5789
- name: string;
5790
- email: string;
5791
- } | null;
5792
- } | {
5793
- coupon: Omit<{
6368
+ } & {
6369
+ additionalRules: ({
6370
+ productIds: string[];
6371
+ variantIds: string[];
6372
+ collectionIds: string[];
6373
+ categoryIds: string[];
6374
+ brandIds: string[];
6375
+ type: "percentage";
6376
+ value: number;
6377
+ condition: {
6378
+ productIds: string[];
6379
+ variantIds: string[];
6380
+ collectionIds: string[];
6381
+ categoryIds: string[];
6382
+ brandIds: string[];
6383
+ minQuantity: number;
6384
+ } | null;
6385
+ } | {
6386
+ type: "buy_x_get_y";
6387
+ buys: {
6388
+ productIds: string[];
6389
+ variantIds: string[];
6390
+ collectionIds: string[];
6391
+ categoryIds: string[];
6392
+ brandIds: string[];
6393
+ quantity: number;
6394
+ };
6395
+ gets: {
6396
+ productIds: string[];
6397
+ variantIds: string[];
6398
+ collectionIds: string[];
6399
+ categoryIds: string[];
6400
+ brandIds: string[];
6401
+ quantity: number;
6402
+ value: number;
6403
+ };
6404
+ usesPerOrderLimit: number | null;
6405
+ })[];
6406
+ }) | (Omit<{
5794
6407
  type: "fixed" | "percentage" | "free_shipping";
5795
6408
  value: string;
5796
6409
  code: string;
@@ -5799,6 +6412,46 @@ type APICartCreateResult = {
5799
6412
  endDate: string | null;
5800
6413
  minProductCount: number | null;
5801
6414
  maxProductCount: number | null;
6415
+ minSubtotal: string | null;
6416
+ excludeSaleItems: boolean;
6417
+ appliesOnSubscription: boolean;
6418
+ additionalRules: ({
6419
+ productIds: string[];
6420
+ variantIds: string[];
6421
+ collectionIds: string[];
6422
+ categoryIds: string[];
6423
+ brandIds: string[];
6424
+ type: "percentage";
6425
+ value: number;
6426
+ condition: {
6427
+ productIds: string[];
6428
+ variantIds: string[];
6429
+ collectionIds: string[];
6430
+ categoryIds: string[];
6431
+ brandIds: string[];
6432
+ minQuantity: number;
6433
+ } | null;
6434
+ } | {
6435
+ type: "buy_x_get_y";
6436
+ buys: {
6437
+ productIds: string[];
6438
+ variantIds: string[];
6439
+ collectionIds: string[];
6440
+ categoryIds: string[];
6441
+ brandIds: string[];
6442
+ quantity: number;
6443
+ };
6444
+ gets: {
6445
+ productIds: string[];
6446
+ variantIds: string[];
6447
+ collectionIds: string[];
6448
+ categoryIds: string[];
6449
+ brandIds: string[];
6450
+ quantity: number;
6451
+ value: number;
6452
+ };
6453
+ usesPerOrderLimit: number | null;
6454
+ })[];
5802
6455
  products: {
5803
6456
  id: string;
5804
6457
  }[];
@@ -5819,10 +6472,69 @@ type APICartCreateResult = {
5819
6472
  updatedAt: string;
5820
6473
  currency: string;
5821
6474
  storeId: string;
5822
- value: string;
6475
+ value: string | null;
6476
+ minSubtotal: string | null;
5823
6477
  couponId: string;
5824
6478
  }[];
5825
- }, "prices">;
6479
+ } & {
6480
+ additionalRules: ({
6481
+ productIds: string[];
6482
+ variantIds: string[];
6483
+ collectionIds: string[];
6484
+ categoryIds: string[];
6485
+ brandIds: string[];
6486
+ type: "percentage";
6487
+ value: number;
6488
+ condition: {
6489
+ productIds: string[];
6490
+ variantIds: string[];
6491
+ collectionIds: string[];
6492
+ categoryIds: string[];
6493
+ brandIds: string[];
6494
+ minQuantity: number;
6495
+ } | null;
6496
+ } | {
6497
+ type: "buy_x_get_y";
6498
+ buys: {
6499
+ productIds: string[];
6500
+ variantIds: string[];
6501
+ collectionIds: string[];
6502
+ categoryIds: string[];
6503
+ brandIds: string[];
6504
+ quantity: number;
6505
+ };
6506
+ gets: {
6507
+ productIds: string[];
6508
+ variantIds: string[];
6509
+ collectionIds: string[];
6510
+ categoryIds: string[];
6511
+ brandIds: string[];
6512
+ quantity: number;
6513
+ value: number;
6514
+ };
6515
+ usesPerOrderLimit: number | null;
6516
+ })[];
6517
+ }, "value" | "minSubtotal"> & {
6518
+ value: string;
6519
+ minSubtotal: string | null;
6520
+ unavailableInCurrency?: boolean;
6521
+ }), "prices">;
6522
+ id: string;
6523
+ email: string | null;
6524
+ createdAt: string;
6525
+ updatedAt: string;
6526
+ userId: string | null;
6527
+ locale: string | null;
6528
+ stripeCustomerId: string | null;
6529
+ storeId: string;
6530
+ couponId: string | null;
6531
+ user: {
6532
+ id: string;
6533
+ name: string;
6534
+ email: string;
6535
+ } | null;
6536
+ } | {
6537
+ coupon: null;
5826
6538
  id: string;
5827
6539
  email: string | null;
5828
6540
  createdAt: string;
@@ -6938,7 +7650,7 @@ type APICartRemoveItemResult = {
6938
7650
  externalReference?: string;
6939
7651
  idempotencyKey?: string;
6940
7652
  } | null;
6941
- coupon: Omit<{
7653
+ coupon: Omit<({
6942
7654
  type: "fixed" | "percentage" | "free_shipping";
6943
7655
  value: string;
6944
7656
  code: string;
@@ -6947,6 +7659,46 @@ type APICartRemoveItemResult = {
6947
7659
  endDate: string | null;
6948
7660
  minProductCount: number | null;
6949
7661
  maxProductCount: number | null;
7662
+ minSubtotal: string | null;
7663
+ excludeSaleItems: boolean;
7664
+ appliesOnSubscription: boolean;
7665
+ additionalRules: ({
7666
+ productIds: string[];
7667
+ variantIds: string[];
7668
+ collectionIds: string[];
7669
+ categoryIds: string[];
7670
+ brandIds: string[];
7671
+ type: "percentage";
7672
+ value: number;
7673
+ condition: {
7674
+ productIds: string[];
7675
+ variantIds: string[];
7676
+ collectionIds: string[];
7677
+ categoryIds: string[];
7678
+ brandIds: string[];
7679
+ minQuantity: number;
7680
+ } | null;
7681
+ } | {
7682
+ type: "buy_x_get_y";
7683
+ buys: {
7684
+ productIds: string[];
7685
+ variantIds: string[];
7686
+ collectionIds: string[];
7687
+ categoryIds: string[];
7688
+ brandIds: string[];
7689
+ quantity: number;
7690
+ };
7691
+ gets: {
7692
+ productIds: string[];
7693
+ variantIds: string[];
7694
+ collectionIds: string[];
7695
+ categoryIds: string[];
7696
+ brandIds: string[];
7697
+ quantity: number;
7698
+ value: number;
7699
+ };
7700
+ usesPerOrderLimit: number | null;
7701
+ })[];
6950
7702
  products: {
6951
7703
  id: string;
6952
7704
  }[];
@@ -6967,10 +7719,164 @@ type APICartRemoveItemResult = {
6967
7719
  updatedAt: string;
6968
7720
  currency: string;
6969
7721
  storeId: string;
6970
- value: string;
7722
+ value: string | null;
7723
+ minSubtotal: string | null;
6971
7724
  couponId: string;
6972
7725
  }[];
6973
- }, "prices"> | null;
7726
+ } & {
7727
+ additionalRules: ({
7728
+ productIds: string[];
7729
+ variantIds: string[];
7730
+ collectionIds: string[];
7731
+ categoryIds: string[];
7732
+ brandIds: string[];
7733
+ type: "percentage";
7734
+ value: number;
7735
+ condition: {
7736
+ productIds: string[];
7737
+ variantIds: string[];
7738
+ collectionIds: string[];
7739
+ categoryIds: string[];
7740
+ brandIds: string[];
7741
+ minQuantity: number;
7742
+ } | null;
7743
+ } | {
7744
+ type: "buy_x_get_y";
7745
+ buys: {
7746
+ productIds: string[];
7747
+ variantIds: string[];
7748
+ collectionIds: string[];
7749
+ categoryIds: string[];
7750
+ brandIds: string[];
7751
+ quantity: number;
7752
+ };
7753
+ gets: {
7754
+ productIds: string[];
7755
+ variantIds: string[];
7756
+ collectionIds: string[];
7757
+ categoryIds: string[];
7758
+ brandIds: string[];
7759
+ quantity: number;
7760
+ value: number;
7761
+ };
7762
+ usesPerOrderLimit: number | null;
7763
+ })[];
7764
+ }) | (Omit<{
7765
+ type: "fixed" | "percentage" | "free_shipping";
7766
+ value: string;
7767
+ code: string;
7768
+ freeShipping: boolean;
7769
+ startDate: string | null;
7770
+ endDate: string | null;
7771
+ minProductCount: number | null;
7772
+ maxProductCount: number | null;
7773
+ minSubtotal: string | null;
7774
+ excludeSaleItems: boolean;
7775
+ appliesOnSubscription: boolean;
7776
+ additionalRules: ({
7777
+ productIds: string[];
7778
+ variantIds: string[];
7779
+ collectionIds: string[];
7780
+ categoryIds: string[];
7781
+ brandIds: string[];
7782
+ type: "percentage";
7783
+ value: number;
7784
+ condition: {
7785
+ productIds: string[];
7786
+ variantIds: string[];
7787
+ collectionIds: string[];
7788
+ categoryIds: string[];
7789
+ brandIds: string[];
7790
+ minQuantity: number;
7791
+ } | null;
7792
+ } | {
7793
+ type: "buy_x_get_y";
7794
+ buys: {
7795
+ productIds: string[];
7796
+ variantIds: string[];
7797
+ collectionIds: string[];
7798
+ categoryIds: string[];
7799
+ brandIds: string[];
7800
+ quantity: number;
7801
+ };
7802
+ gets: {
7803
+ productIds: string[];
7804
+ variantIds: string[];
7805
+ collectionIds: string[];
7806
+ categoryIds: string[];
7807
+ brandIds: string[];
7808
+ quantity: number;
7809
+ value: number;
7810
+ };
7811
+ usesPerOrderLimit: number | null;
7812
+ })[];
7813
+ products: {
7814
+ id: string;
7815
+ }[];
7816
+ brands: {
7817
+ id: string;
7818
+ }[];
7819
+ collections: {
7820
+ id: string;
7821
+ }[];
7822
+ variants: {
7823
+ id: string;
7824
+ }[];
7825
+ categories: {
7826
+ id: string;
7827
+ }[];
7828
+ prices: {
7829
+ createdAt: string;
7830
+ updatedAt: string;
7831
+ currency: string;
7832
+ storeId: string;
7833
+ value: string | null;
7834
+ minSubtotal: string | null;
7835
+ couponId: string;
7836
+ }[];
7837
+ } & {
7838
+ additionalRules: ({
7839
+ productIds: string[];
7840
+ variantIds: string[];
7841
+ collectionIds: string[];
7842
+ categoryIds: string[];
7843
+ brandIds: string[];
7844
+ type: "percentage";
7845
+ value: number;
7846
+ condition: {
7847
+ productIds: string[];
7848
+ variantIds: string[];
7849
+ collectionIds: string[];
7850
+ categoryIds: string[];
7851
+ brandIds: string[];
7852
+ minQuantity: number;
7853
+ } | null;
7854
+ } | {
7855
+ type: "buy_x_get_y";
7856
+ buys: {
7857
+ productIds: string[];
7858
+ variantIds: string[];
7859
+ collectionIds: string[];
7860
+ categoryIds: string[];
7861
+ brandIds: string[];
7862
+ quantity: number;
7863
+ };
7864
+ gets: {
7865
+ productIds: string[];
7866
+ variantIds: string[];
7867
+ collectionIds: string[];
7868
+ categoryIds: string[];
7869
+ brandIds: string[];
7870
+ quantity: number;
7871
+ value: number;
7872
+ };
7873
+ usesPerOrderLimit: number | null;
7874
+ })[];
7875
+ }, "value" | "minSubtotal"> & {
7876
+ value: string;
7877
+ minSubtotal: string | null;
7878
+ unavailableInCurrency?: boolean;
7879
+ }), "prices"> | null;
6974
7880
  billingAddress: {
6975
7881
  id: string;
6976
7882
  name: string | null;
@@ -7004,16 +7910,7 @@ type APICartRemoveItemResult = {
7004
7910
  taxId: string | null;
7005
7911
  } | null;
7006
7912
  customer: {
7007
- id: string;
7008
- email: string | null;
7009
- createdAt: string;
7010
- updatedAt: string;
7011
- userId: string | null;
7012
- locale: string | null;
7013
- stripeCustomerId: string | null;
7014
- storeId: string;
7015
- couponId: string | null;
7016
- coupon: {
7913
+ coupon: Omit<({
7017
7914
  type: "fixed" | "percentage" | "free_shipping";
7018
7915
  value: string;
7019
7916
  code: string;
@@ -7022,6 +7919,46 @@ type APICartRemoveItemResult = {
7022
7919
  endDate: string | null;
7023
7920
  minProductCount: number | null;
7024
7921
  maxProductCount: number | null;
7922
+ minSubtotal: string | null;
7923
+ excludeSaleItems: boolean;
7924
+ appliesOnSubscription: boolean;
7925
+ additionalRules: ({
7926
+ productIds: string[];
7927
+ variantIds: string[];
7928
+ collectionIds: string[];
7929
+ categoryIds: string[];
7930
+ brandIds: string[];
7931
+ type: "percentage";
7932
+ value: number;
7933
+ condition: {
7934
+ productIds: string[];
7935
+ variantIds: string[];
7936
+ collectionIds: string[];
7937
+ categoryIds: string[];
7938
+ brandIds: string[];
7939
+ minQuantity: number;
7940
+ } | null;
7941
+ } | {
7942
+ type: "buy_x_get_y";
7943
+ buys: {
7944
+ productIds: string[];
7945
+ variantIds: string[];
7946
+ collectionIds: string[];
7947
+ categoryIds: string[];
7948
+ brandIds: string[];
7949
+ quantity: number;
7950
+ };
7951
+ gets: {
7952
+ productIds: string[];
7953
+ variantIds: string[];
7954
+ collectionIds: string[];
7955
+ categoryIds: string[];
7956
+ brandIds: string[];
7957
+ quantity: number;
7958
+ value: number;
7959
+ };
7960
+ usesPerOrderLimit: number | null;
7961
+ })[];
7025
7962
  products: {
7026
7963
  id: string;
7027
7964
  }[];
@@ -7042,17 +7979,49 @@ type APICartRemoveItemResult = {
7042
7979
  updatedAt: string;
7043
7980
  currency: string;
7044
7981
  storeId: string;
7045
- value: string;
7982
+ value: string | null;
7983
+ minSubtotal: string | null;
7046
7984
  couponId: string;
7047
7985
  }[];
7048
- } | null;
7049
- user: {
7050
- id: string;
7051
- name: string;
7052
- email: string;
7053
- } | null;
7054
- } | {
7055
- coupon: Omit<{
7986
+ } & {
7987
+ additionalRules: ({
7988
+ productIds: string[];
7989
+ variantIds: string[];
7990
+ collectionIds: string[];
7991
+ categoryIds: string[];
7992
+ brandIds: string[];
7993
+ type: "percentage";
7994
+ value: number;
7995
+ condition: {
7996
+ productIds: string[];
7997
+ variantIds: string[];
7998
+ collectionIds: string[];
7999
+ categoryIds: string[];
8000
+ brandIds: string[];
8001
+ minQuantity: number;
8002
+ } | null;
8003
+ } | {
8004
+ type: "buy_x_get_y";
8005
+ buys: {
8006
+ productIds: string[];
8007
+ variantIds: string[];
8008
+ collectionIds: string[];
8009
+ categoryIds: string[];
8010
+ brandIds: string[];
8011
+ quantity: number;
8012
+ };
8013
+ gets: {
8014
+ productIds: string[];
8015
+ variantIds: string[];
8016
+ collectionIds: string[];
8017
+ categoryIds: string[];
8018
+ brandIds: string[];
8019
+ quantity: number;
8020
+ value: number;
8021
+ };
8022
+ usesPerOrderLimit: number | null;
8023
+ })[];
8024
+ }) | (Omit<{
7056
8025
  type: "fixed" | "percentage" | "free_shipping";
7057
8026
  value: string;
7058
8027
  code: string;
@@ -7061,6 +8030,46 @@ type APICartRemoveItemResult = {
7061
8030
  endDate: string | null;
7062
8031
  minProductCount: number | null;
7063
8032
  maxProductCount: number | null;
8033
+ minSubtotal: string | null;
8034
+ excludeSaleItems: boolean;
8035
+ appliesOnSubscription: boolean;
8036
+ additionalRules: ({
8037
+ productIds: string[];
8038
+ variantIds: string[];
8039
+ collectionIds: string[];
8040
+ categoryIds: string[];
8041
+ brandIds: string[];
8042
+ type: "percentage";
8043
+ value: number;
8044
+ condition: {
8045
+ productIds: string[];
8046
+ variantIds: string[];
8047
+ collectionIds: string[];
8048
+ categoryIds: string[];
8049
+ brandIds: string[];
8050
+ minQuantity: number;
8051
+ } | null;
8052
+ } | {
8053
+ type: "buy_x_get_y";
8054
+ buys: {
8055
+ productIds: string[];
8056
+ variantIds: string[];
8057
+ collectionIds: string[];
8058
+ categoryIds: string[];
8059
+ brandIds: string[];
8060
+ quantity: number;
8061
+ };
8062
+ gets: {
8063
+ productIds: string[];
8064
+ variantIds: string[];
8065
+ collectionIds: string[];
8066
+ categoryIds: string[];
8067
+ brandIds: string[];
8068
+ quantity: number;
8069
+ value: number;
8070
+ };
8071
+ usesPerOrderLimit: number | null;
8072
+ })[];
7064
8073
  products: {
7065
8074
  id: string;
7066
8075
  }[];
@@ -7081,10 +8090,69 @@ type APICartRemoveItemResult = {
7081
8090
  updatedAt: string;
7082
8091
  currency: string;
7083
8092
  storeId: string;
7084
- value: string;
8093
+ value: string | null;
8094
+ minSubtotal: string | null;
7085
8095
  couponId: string;
7086
8096
  }[];
7087
- }, "prices">;
8097
+ } & {
8098
+ additionalRules: ({
8099
+ productIds: string[];
8100
+ variantIds: string[];
8101
+ collectionIds: string[];
8102
+ categoryIds: string[];
8103
+ brandIds: string[];
8104
+ type: "percentage";
8105
+ value: number;
8106
+ condition: {
8107
+ productIds: string[];
8108
+ variantIds: string[];
8109
+ collectionIds: string[];
8110
+ categoryIds: string[];
8111
+ brandIds: string[];
8112
+ minQuantity: number;
8113
+ } | null;
8114
+ } | {
8115
+ type: "buy_x_get_y";
8116
+ buys: {
8117
+ productIds: string[];
8118
+ variantIds: string[];
8119
+ collectionIds: string[];
8120
+ categoryIds: string[];
8121
+ brandIds: string[];
8122
+ quantity: number;
8123
+ };
8124
+ gets: {
8125
+ productIds: string[];
8126
+ variantIds: string[];
8127
+ collectionIds: string[];
8128
+ categoryIds: string[];
8129
+ brandIds: string[];
8130
+ quantity: number;
8131
+ value: number;
8132
+ };
8133
+ usesPerOrderLimit: number | null;
8134
+ })[];
8135
+ }, "value" | "minSubtotal"> & {
8136
+ value: string;
8137
+ minSubtotal: string | null;
8138
+ unavailableInCurrency?: boolean;
8139
+ }), "prices">;
8140
+ id: string;
8141
+ email: string | null;
8142
+ createdAt: string;
8143
+ updatedAt: string;
8144
+ userId: string | null;
8145
+ locale: string | null;
8146
+ stripeCustomerId: string | null;
8147
+ storeId: string;
8148
+ couponId: string | null;
8149
+ user: {
8150
+ id: string;
8151
+ name: string;
8152
+ email: string;
8153
+ } | null;
8154
+ } | {
8155
+ coupon: null;
7088
8156
  id: string;
7089
8157
  email: string | null;
7090
8158
  createdAt: string;
@@ -8207,7 +9275,118 @@ type APICartCouponApplyResult = {
8207
9275
  externalReference?: string;
8208
9276
  idempotencyKey?: string;
8209
9277
  } | null;
8210
- coupon: Omit<{
9278
+ coupon: Omit<({
9279
+ type: "fixed" | "percentage" | "free_shipping";
9280
+ value: string;
9281
+ code: string;
9282
+ freeShipping: boolean;
9283
+ startDate: string | null;
9284
+ endDate: string | null;
9285
+ minProductCount: number | null;
9286
+ maxProductCount: number | null;
9287
+ minSubtotal: string | null;
9288
+ excludeSaleItems: boolean;
9289
+ appliesOnSubscription: boolean;
9290
+ additionalRules: ({
9291
+ productIds: string[];
9292
+ variantIds: string[];
9293
+ collectionIds: string[];
9294
+ categoryIds: string[];
9295
+ brandIds: string[];
9296
+ type: "percentage";
9297
+ value: number;
9298
+ condition: {
9299
+ productIds: string[];
9300
+ variantIds: string[];
9301
+ collectionIds: string[];
9302
+ categoryIds: string[];
9303
+ brandIds: string[];
9304
+ minQuantity: number;
9305
+ } | null;
9306
+ } | {
9307
+ type: "buy_x_get_y";
9308
+ buys: {
9309
+ productIds: string[];
9310
+ variantIds: string[];
9311
+ collectionIds: string[];
9312
+ categoryIds: string[];
9313
+ brandIds: string[];
9314
+ quantity: number;
9315
+ };
9316
+ gets: {
9317
+ productIds: string[];
9318
+ variantIds: string[];
9319
+ collectionIds: string[];
9320
+ categoryIds: string[];
9321
+ brandIds: string[];
9322
+ quantity: number;
9323
+ value: number;
9324
+ };
9325
+ usesPerOrderLimit: number | null;
9326
+ })[];
9327
+ products: {
9328
+ id: string;
9329
+ }[];
9330
+ brands: {
9331
+ id: string;
9332
+ }[];
9333
+ collections: {
9334
+ id: string;
9335
+ }[];
9336
+ variants: {
9337
+ id: string;
9338
+ }[];
9339
+ categories: {
9340
+ id: string;
9341
+ }[];
9342
+ prices: {
9343
+ createdAt: string;
9344
+ updatedAt: string;
9345
+ currency: string;
9346
+ storeId: string;
9347
+ value: string | null;
9348
+ minSubtotal: string | null;
9349
+ couponId: string;
9350
+ }[];
9351
+ } & {
9352
+ additionalRules: ({
9353
+ productIds: string[];
9354
+ variantIds: string[];
9355
+ collectionIds: string[];
9356
+ categoryIds: string[];
9357
+ brandIds: string[];
9358
+ type: "percentage";
9359
+ value: number;
9360
+ condition: {
9361
+ productIds: string[];
9362
+ variantIds: string[];
9363
+ collectionIds: string[];
9364
+ categoryIds: string[];
9365
+ brandIds: string[];
9366
+ minQuantity: number;
9367
+ } | null;
9368
+ } | {
9369
+ type: "buy_x_get_y";
9370
+ buys: {
9371
+ productIds: string[];
9372
+ variantIds: string[];
9373
+ collectionIds: string[];
9374
+ categoryIds: string[];
9375
+ brandIds: string[];
9376
+ quantity: number;
9377
+ };
9378
+ gets: {
9379
+ productIds: string[];
9380
+ variantIds: string[];
9381
+ collectionIds: string[];
9382
+ categoryIds: string[];
9383
+ brandIds: string[];
9384
+ quantity: number;
9385
+ value: number;
9386
+ };
9387
+ usesPerOrderLimit: number | null;
9388
+ })[];
9389
+ }) | (Omit<{
8211
9390
  type: "fixed" | "percentage" | "free_shipping";
8212
9391
  value: string;
8213
9392
  code: string;
@@ -8216,6 +9395,46 @@ type APICartCouponApplyResult = {
8216
9395
  endDate: string | null;
8217
9396
  minProductCount: number | null;
8218
9397
  maxProductCount: number | null;
9398
+ minSubtotal: string | null;
9399
+ excludeSaleItems: boolean;
9400
+ appliesOnSubscription: boolean;
9401
+ additionalRules: ({
9402
+ productIds: string[];
9403
+ variantIds: string[];
9404
+ collectionIds: string[];
9405
+ categoryIds: string[];
9406
+ brandIds: string[];
9407
+ type: "percentage";
9408
+ value: number;
9409
+ condition: {
9410
+ productIds: string[];
9411
+ variantIds: string[];
9412
+ collectionIds: string[];
9413
+ categoryIds: string[];
9414
+ brandIds: string[];
9415
+ minQuantity: number;
9416
+ } | null;
9417
+ } | {
9418
+ type: "buy_x_get_y";
9419
+ buys: {
9420
+ productIds: string[];
9421
+ variantIds: string[];
9422
+ collectionIds: string[];
9423
+ categoryIds: string[];
9424
+ brandIds: string[];
9425
+ quantity: number;
9426
+ };
9427
+ gets: {
9428
+ productIds: string[];
9429
+ variantIds: string[];
9430
+ collectionIds: string[];
9431
+ categoryIds: string[];
9432
+ brandIds: string[];
9433
+ quantity: number;
9434
+ value: number;
9435
+ };
9436
+ usesPerOrderLimit: number | null;
9437
+ })[];
8219
9438
  products: {
8220
9439
  id: string;
8221
9440
  }[];
@@ -8236,10 +9455,53 @@ type APICartCouponApplyResult = {
8236
9455
  updatedAt: string;
8237
9456
  currency: string;
8238
9457
  storeId: string;
8239
- value: string;
9458
+ value: string | null;
9459
+ minSubtotal: string | null;
8240
9460
  couponId: string;
8241
9461
  }[];
8242
- }, "prices"> | null;
9462
+ } & {
9463
+ additionalRules: ({
9464
+ productIds: string[];
9465
+ variantIds: string[];
9466
+ collectionIds: string[];
9467
+ categoryIds: string[];
9468
+ brandIds: string[];
9469
+ type: "percentage";
9470
+ value: number;
9471
+ condition: {
9472
+ productIds: string[];
9473
+ variantIds: string[];
9474
+ collectionIds: string[];
9475
+ categoryIds: string[];
9476
+ brandIds: string[];
9477
+ minQuantity: number;
9478
+ } | null;
9479
+ } | {
9480
+ type: "buy_x_get_y";
9481
+ buys: {
9482
+ productIds: string[];
9483
+ variantIds: string[];
9484
+ collectionIds: string[];
9485
+ categoryIds: string[];
9486
+ brandIds: string[];
9487
+ quantity: number;
9488
+ };
9489
+ gets: {
9490
+ productIds: string[];
9491
+ variantIds: string[];
9492
+ collectionIds: string[];
9493
+ categoryIds: string[];
9494
+ brandIds: string[];
9495
+ quantity: number;
9496
+ value: number;
9497
+ };
9498
+ usesPerOrderLimit: number | null;
9499
+ })[];
9500
+ }, "value" | "minSubtotal"> & {
9501
+ value: string;
9502
+ minSubtotal: string | null;
9503
+ unavailableInCurrency?: boolean;
9504
+ }), "prices"> | null;
8243
9505
  billingAddress: {
8244
9506
  id: string;
8245
9507
  name: string | null;
@@ -8273,16 +9535,7 @@ type APICartCouponApplyResult = {
8273
9535
  taxId: string | null;
8274
9536
  } | null;
8275
9537
  customer: {
8276
- id: string;
8277
- email: string | null;
8278
- createdAt: string;
8279
- updatedAt: string;
8280
- userId: string | null;
8281
- locale: string | null;
8282
- stripeCustomerId: string | null;
8283
- storeId: string;
8284
- couponId: string | null;
8285
- coupon: {
9538
+ coupon: Omit<({
8286
9539
  type: "fixed" | "percentage" | "free_shipping";
8287
9540
  value: string;
8288
9541
  code: string;
@@ -8291,6 +9544,46 @@ type APICartCouponApplyResult = {
8291
9544
  endDate: string | null;
8292
9545
  minProductCount: number | null;
8293
9546
  maxProductCount: number | null;
9547
+ minSubtotal: string | null;
9548
+ excludeSaleItems: boolean;
9549
+ appliesOnSubscription: boolean;
9550
+ additionalRules: ({
9551
+ productIds: string[];
9552
+ variantIds: string[];
9553
+ collectionIds: string[];
9554
+ categoryIds: string[];
9555
+ brandIds: string[];
9556
+ type: "percentage";
9557
+ value: number;
9558
+ condition: {
9559
+ productIds: string[];
9560
+ variantIds: string[];
9561
+ collectionIds: string[];
9562
+ categoryIds: string[];
9563
+ brandIds: string[];
9564
+ minQuantity: number;
9565
+ } | null;
9566
+ } | {
9567
+ type: "buy_x_get_y";
9568
+ buys: {
9569
+ productIds: string[];
9570
+ variantIds: string[];
9571
+ collectionIds: string[];
9572
+ categoryIds: string[];
9573
+ brandIds: string[];
9574
+ quantity: number;
9575
+ };
9576
+ gets: {
9577
+ productIds: string[];
9578
+ variantIds: string[];
9579
+ collectionIds: string[];
9580
+ categoryIds: string[];
9581
+ brandIds: string[];
9582
+ quantity: number;
9583
+ value: number;
9584
+ };
9585
+ usesPerOrderLimit: number | null;
9586
+ })[];
8294
9587
  products: {
8295
9588
  id: string;
8296
9589
  }[];
@@ -8311,17 +9604,49 @@ type APICartCouponApplyResult = {
8311
9604
  updatedAt: string;
8312
9605
  currency: string;
8313
9606
  storeId: string;
8314
- value: string;
9607
+ value: string | null;
9608
+ minSubtotal: string | null;
8315
9609
  couponId: string;
8316
9610
  }[];
8317
- } | null;
8318
- user: {
8319
- id: string;
8320
- name: string;
8321
- email: string;
8322
- } | null;
8323
- } | {
8324
- coupon: Omit<{
9611
+ } & {
9612
+ additionalRules: ({
9613
+ productIds: string[];
9614
+ variantIds: string[];
9615
+ collectionIds: string[];
9616
+ categoryIds: string[];
9617
+ brandIds: string[];
9618
+ type: "percentage";
9619
+ value: number;
9620
+ condition: {
9621
+ productIds: string[];
9622
+ variantIds: string[];
9623
+ collectionIds: string[];
9624
+ categoryIds: string[];
9625
+ brandIds: string[];
9626
+ minQuantity: number;
9627
+ } | null;
9628
+ } | {
9629
+ type: "buy_x_get_y";
9630
+ buys: {
9631
+ productIds: string[];
9632
+ variantIds: string[];
9633
+ collectionIds: string[];
9634
+ categoryIds: string[];
9635
+ brandIds: string[];
9636
+ quantity: number;
9637
+ };
9638
+ gets: {
9639
+ productIds: string[];
9640
+ variantIds: string[];
9641
+ collectionIds: string[];
9642
+ categoryIds: string[];
9643
+ brandIds: string[];
9644
+ quantity: number;
9645
+ value: number;
9646
+ };
9647
+ usesPerOrderLimit: number | null;
9648
+ })[];
9649
+ }) | (Omit<{
8325
9650
  type: "fixed" | "percentage" | "free_shipping";
8326
9651
  value: string;
8327
9652
  code: string;
@@ -8330,6 +9655,46 @@ type APICartCouponApplyResult = {
8330
9655
  endDate: string | null;
8331
9656
  minProductCount: number | null;
8332
9657
  maxProductCount: number | null;
9658
+ minSubtotal: string | null;
9659
+ excludeSaleItems: boolean;
9660
+ appliesOnSubscription: boolean;
9661
+ additionalRules: ({
9662
+ productIds: string[];
9663
+ variantIds: string[];
9664
+ collectionIds: string[];
9665
+ categoryIds: string[];
9666
+ brandIds: string[];
9667
+ type: "percentage";
9668
+ value: number;
9669
+ condition: {
9670
+ productIds: string[];
9671
+ variantIds: string[];
9672
+ collectionIds: string[];
9673
+ categoryIds: string[];
9674
+ brandIds: string[];
9675
+ minQuantity: number;
9676
+ } | null;
9677
+ } | {
9678
+ type: "buy_x_get_y";
9679
+ buys: {
9680
+ productIds: string[];
9681
+ variantIds: string[];
9682
+ collectionIds: string[];
9683
+ categoryIds: string[];
9684
+ brandIds: string[];
9685
+ quantity: number;
9686
+ };
9687
+ gets: {
9688
+ productIds: string[];
9689
+ variantIds: string[];
9690
+ collectionIds: string[];
9691
+ categoryIds: string[];
9692
+ brandIds: string[];
9693
+ quantity: number;
9694
+ value: number;
9695
+ };
9696
+ usesPerOrderLimit: number | null;
9697
+ })[];
8333
9698
  products: {
8334
9699
  id: string;
8335
9700
  }[];
@@ -8350,10 +9715,69 @@ type APICartCouponApplyResult = {
8350
9715
  updatedAt: string;
8351
9716
  currency: string;
8352
9717
  storeId: string;
8353
- value: string;
9718
+ value: string | null;
9719
+ minSubtotal: string | null;
8354
9720
  couponId: string;
8355
9721
  }[];
8356
- }, "prices">;
9722
+ } & {
9723
+ additionalRules: ({
9724
+ productIds: string[];
9725
+ variantIds: string[];
9726
+ collectionIds: string[];
9727
+ categoryIds: string[];
9728
+ brandIds: string[];
9729
+ type: "percentage";
9730
+ value: number;
9731
+ condition: {
9732
+ productIds: string[];
9733
+ variantIds: string[];
9734
+ collectionIds: string[];
9735
+ categoryIds: string[];
9736
+ brandIds: string[];
9737
+ minQuantity: number;
9738
+ } | null;
9739
+ } | {
9740
+ type: "buy_x_get_y";
9741
+ buys: {
9742
+ productIds: string[];
9743
+ variantIds: string[];
9744
+ collectionIds: string[];
9745
+ categoryIds: string[];
9746
+ brandIds: string[];
9747
+ quantity: number;
9748
+ };
9749
+ gets: {
9750
+ productIds: string[];
9751
+ variantIds: string[];
9752
+ collectionIds: string[];
9753
+ categoryIds: string[];
9754
+ brandIds: string[];
9755
+ quantity: number;
9756
+ value: number;
9757
+ };
9758
+ usesPerOrderLimit: number | null;
9759
+ })[];
9760
+ }, "value" | "minSubtotal"> & {
9761
+ value: string;
9762
+ minSubtotal: string | null;
9763
+ unavailableInCurrency?: boolean;
9764
+ }), "prices">;
9765
+ id: string;
9766
+ email: string | null;
9767
+ createdAt: string;
9768
+ updatedAt: string;
9769
+ userId: string | null;
9770
+ locale: string | null;
9771
+ stripeCustomerId: string | null;
9772
+ storeId: string;
9773
+ couponId: string | null;
9774
+ user: {
9775
+ id: string;
9776
+ name: string;
9777
+ email: string;
9778
+ } | null;
9779
+ } | {
9780
+ coupon: null;
8357
9781
  id: string;
8358
9782
  email: string | null;
8359
9783
  createdAt: string;
@@ -9407,6 +10831,52 @@ type APICouponGetByIdResult = {
9407
10831
  currencyAmounts: {
9408
10832
  [k: string]: number;
9409
10833
  };
10834
+ minSubtotal: number | null;
10835
+ currencyMinSubtotals: {
10836
+ [k: string]: number;
10837
+ };
10838
+ excludeSaleItems: boolean;
10839
+ appliesOnSubscription: boolean;
10840
+ additionalRules: ({
10841
+ type: "buyXGetY";
10842
+ buys: {
10843
+ productIds: string[];
10844
+ variantIds: string[];
10845
+ collectionIds: string[];
10846
+ categoryIds: string[];
10847
+ brandIds: string[];
10848
+ quantity: number;
10849
+ };
10850
+ gets: {
10851
+ productIds: string[];
10852
+ variantIds: string[];
10853
+ collectionIds: string[];
10854
+ categoryIds: string[];
10855
+ brandIds: string[];
10856
+ quantity: number;
10857
+ value: number;
10858
+ };
10859
+ usesPerOrderLimit: number | null;
10860
+ } | {
10861
+ condition: {
10862
+ productIds: string[];
10863
+ variantIds: string[];
10864
+ collectionIds: string[];
10865
+ categoryIds: string[];
10866
+ brandIds: string[];
10867
+ minQuantity: number;
10868
+ } | null;
10869
+ productIds: string[];
10870
+ variantIds: string[];
10871
+ collectionIds: string[];
10872
+ categoryIds: string[];
10873
+ brandIds: string[];
10874
+ type: "percentage";
10875
+ value: number;
10876
+ buys?: undefined;
10877
+ gets?: undefined;
10878
+ usesPerOrderLimit?: undefined;
10879
+ })[];
9410
10880
  createdAt: string;
9411
10881
  updatedAt: string;
9412
10882
  };
@@ -9433,12 +10903,53 @@ type APICouponCreateBody = {
9433
10903
  collections: string[];
9434
10904
  categories: string[];
9435
10905
  brands: string[];
10906
+ excludeSaleItems: boolean;
10907
+ appliesOnSubscription: boolean;
10908
+ additionalRules: ({
10909
+ products: string[];
10910
+ variants: string[];
10911
+ collections: string[];
10912
+ categories: string[];
10913
+ brands: string[];
10914
+ type: "percentage";
10915
+ value: number;
10916
+ condition?: {
10917
+ products: string[];
10918
+ variants: string[];
10919
+ collections: string[];
10920
+ categories: string[];
10921
+ brands: string[];
10922
+ minQuantity: number;
10923
+ } | null | undefined;
10924
+ } | {
10925
+ type: "buyXGetY";
10926
+ buys: {
10927
+ products: string[];
10928
+ variants: string[];
10929
+ collections: string[];
10930
+ categories: string[];
10931
+ brands: string[];
10932
+ quantity: number;
10933
+ };
10934
+ gets: {
10935
+ products: string[];
10936
+ variants: string[];
10937
+ collections: string[];
10938
+ categories: string[];
10939
+ brands: string[];
10940
+ quantity: number;
10941
+ value: number;
10942
+ };
10943
+ usesPerOrderLimit: number | null;
10944
+ })[];
9436
10945
  startDate?: string | null | undefined;
9437
10946
  endDate?: string | null | undefined;
9438
10947
  maxUses?: number | null | undefined;
9439
10948
  minProductCount?: number | null | undefined;
9440
10949
  maxProductCount?: number | null | undefined;
9441
10950
  currencyAmounts?: Record<string, number> | undefined;
10951
+ minSubtotal?: number | null | undefined;
10952
+ currencyMinSubtotals?: Record<string, number> | undefined;
9442
10953
  };
9443
10954
  type APICouponCreateResult = {
9444
10955
  id: string;
@@ -9460,6 +10971,52 @@ type APICouponCreateResult = {
9460
10971
  currencyAmounts: {
9461
10972
  [k: string]: number;
9462
10973
  };
10974
+ minSubtotal: number | null;
10975
+ currencyMinSubtotals: {
10976
+ [k: string]: number;
10977
+ };
10978
+ excludeSaleItems: boolean;
10979
+ appliesOnSubscription: boolean;
10980
+ additionalRules: ({
10981
+ type: "buyXGetY";
10982
+ buys: {
10983
+ productIds: string[];
10984
+ variantIds: string[];
10985
+ collectionIds: string[];
10986
+ categoryIds: string[];
10987
+ brandIds: string[];
10988
+ quantity: number;
10989
+ };
10990
+ gets: {
10991
+ productIds: string[];
10992
+ variantIds: string[];
10993
+ collectionIds: string[];
10994
+ categoryIds: string[];
10995
+ brandIds: string[];
10996
+ quantity: number;
10997
+ value: number;
10998
+ };
10999
+ usesPerOrderLimit: number | null;
11000
+ } | {
11001
+ condition: {
11002
+ productIds: string[];
11003
+ variantIds: string[];
11004
+ collectionIds: string[];
11005
+ categoryIds: string[];
11006
+ brandIds: string[];
11007
+ minQuantity: number;
11008
+ } | null;
11009
+ productIds: string[];
11010
+ variantIds: string[];
11011
+ collectionIds: string[];
11012
+ categoryIds: string[];
11013
+ brandIds: string[];
11014
+ type: "percentage";
11015
+ value: number;
11016
+ buys?: undefined;
11017
+ gets?: undefined;
11018
+ usesPerOrderLimit?: undefined;
11019
+ })[];
9463
11020
  createdAt: string;
9464
11021
  updatedAt: string;
9465
11022
  };
@@ -9473,12 +11030,53 @@ type APICouponUpdateBody = {
9473
11030
  collections: string[];
9474
11031
  categories: string[];
9475
11032
  brands: string[];
11033
+ excludeSaleItems: boolean;
11034
+ appliesOnSubscription: boolean;
11035
+ additionalRules: ({
11036
+ products: string[];
11037
+ variants: string[];
11038
+ collections: string[];
11039
+ categories: string[];
11040
+ brands: string[];
11041
+ type: "percentage";
11042
+ value: number;
11043
+ condition?: {
11044
+ products: string[];
11045
+ variants: string[];
11046
+ collections: string[];
11047
+ categories: string[];
11048
+ brands: string[];
11049
+ minQuantity: number;
11050
+ } | null | undefined;
11051
+ } | {
11052
+ type: "buyXGetY";
11053
+ buys: {
11054
+ products: string[];
11055
+ variants: string[];
11056
+ collections: string[];
11057
+ categories: string[];
11058
+ brands: string[];
11059
+ quantity: number;
11060
+ };
11061
+ gets: {
11062
+ products: string[];
11063
+ variants: string[];
11064
+ collections: string[];
11065
+ categories: string[];
11066
+ brands: string[];
11067
+ quantity: number;
11068
+ value: number;
11069
+ };
11070
+ usesPerOrderLimit: number | null;
11071
+ })[];
9476
11072
  startDate?: string | null | undefined;
9477
11073
  endDate?: string | null | undefined;
9478
11074
  maxUses?: number | null | undefined;
9479
11075
  minProductCount?: number | null | undefined;
9480
11076
  maxProductCount?: number | null | undefined;
9481
11077
  currencyAmounts?: Record<string, number> | undefined;
11078
+ minSubtotal?: number | null | undefined;
11079
+ currencyMinSubtotals?: Record<string, number> | undefined;
9482
11080
  };
9483
11081
  type APICouponUpdateResult = {
9484
11082
  id: string;
@@ -9500,6 +11098,52 @@ type APICouponUpdateResult = {
9500
11098
  currencyAmounts: {
9501
11099
  [k: string]: number;
9502
11100
  };
11101
+ minSubtotal: number | null;
11102
+ currencyMinSubtotals: {
11103
+ [k: string]: number;
11104
+ };
11105
+ excludeSaleItems: boolean;
11106
+ appliesOnSubscription: boolean;
11107
+ additionalRules: ({
11108
+ type: "buyXGetY";
11109
+ buys: {
11110
+ productIds: string[];
11111
+ variantIds: string[];
11112
+ collectionIds: string[];
11113
+ categoryIds: string[];
11114
+ brandIds: string[];
11115
+ quantity: number;
11116
+ };
11117
+ gets: {
11118
+ productIds: string[];
11119
+ variantIds: string[];
11120
+ collectionIds: string[];
11121
+ categoryIds: string[];
11122
+ brandIds: string[];
11123
+ quantity: number;
11124
+ value: number;
11125
+ };
11126
+ usesPerOrderLimit: number | null;
11127
+ } | {
11128
+ condition: {
11129
+ productIds: string[];
11130
+ variantIds: string[];
11131
+ collectionIds: string[];
11132
+ categoryIds: string[];
11133
+ brandIds: string[];
11134
+ minQuantity: number;
11135
+ } | null;
11136
+ productIds: string[];
11137
+ variantIds: string[];
11138
+ collectionIds: string[];
11139
+ categoryIds: string[];
11140
+ brandIds: string[];
11141
+ type: "percentage";
11142
+ value: number;
11143
+ buys?: undefined;
11144
+ gets?: undefined;
11145
+ usesPerOrderLimit?: undefined;
11146
+ })[];
9503
11147
  createdAt: string;
9504
11148
  updatedAt: string;
9505
11149
  };
@@ -9664,6 +11308,13 @@ type APIOrdersBrowseResult = Omit<{
9664
11308
  carrier: "dpd";
9665
11309
  name: string;
9666
11310
  service: "dpd";
11311
+ food?: boolean | undefined;
11312
+ } | {
11313
+ carrier: "fedex";
11314
+ name: string;
11315
+ service: "fedex";
11316
+ serviceType: string;
11317
+ serviceName?: string | undefined;
9667
11318
  } | null;
9668
11319
  deliverySlots: unknown;
9669
11320
  shippingTaxRate: {
@@ -10025,6 +11676,47 @@ type APIOrdersBrowseResult = Omit<{
10025
11676
  endDate: string | null;
10026
11677
  minProductCount: number | null;
10027
11678
  maxProductCount: number | null;
11679
+ minSubtotal?: string | null | undefined;
11680
+ excludeSaleItems?: boolean | undefined;
11681
+ appliesOnSubscription?: boolean | undefined;
11682
+ additionalRules?: ({
11683
+ productIds: string[];
11684
+ variantIds: string[];
11685
+ collectionIds: string[];
11686
+ categoryIds: string[];
11687
+ brandIds: string[];
11688
+ type: "percentage";
11689
+ value: number;
11690
+ condition: {
11691
+ productIds: string[];
11692
+ variantIds: string[];
11693
+ collectionIds: string[];
11694
+ categoryIds: string[];
11695
+ brandIds: string[];
11696
+ minQuantity: number;
11697
+ } | null;
11698
+ } | {
11699
+ type: "buy_x_get_y";
11700
+ buys: {
11701
+ productIds: string[];
11702
+ variantIds: string[];
11703
+ collectionIds: string[];
11704
+ categoryIds: string[];
11705
+ brandIds: string[];
11706
+ quantity: number;
11707
+ };
11708
+ gets: {
11709
+ productIds: string[];
11710
+ variantIds: string[];
11711
+ collectionIds: string[];
11712
+ categoryIds: string[];
11713
+ brandIds: string[];
11714
+ quantity: number;
11715
+ value: number;
11716
+ };
11717
+ usesPerOrderLimit: number | null;
11718
+ })[] | undefined;
11719
+ unavailableInCurrency?: boolean | undefined;
10028
11720
  products?: {
10029
11721
  id: string;
10030
11722
  }[] | undefined;
@@ -10106,6 +11798,47 @@ type APIOrdersBrowseResult = Omit<{
10106
11798
  endDate: string | null;
10107
11799
  minProductCount: number | null;
10108
11800
  maxProductCount: number | null;
11801
+ minSubtotal?: string | null | undefined;
11802
+ excludeSaleItems?: boolean | undefined;
11803
+ appliesOnSubscription?: boolean | undefined;
11804
+ additionalRules?: ({
11805
+ productIds: string[];
11806
+ variantIds: string[];
11807
+ collectionIds: string[];
11808
+ categoryIds: string[];
11809
+ brandIds: string[];
11810
+ type: "percentage";
11811
+ value: number;
11812
+ condition: {
11813
+ productIds: string[];
11814
+ variantIds: string[];
11815
+ collectionIds: string[];
11816
+ categoryIds: string[];
11817
+ brandIds: string[];
11818
+ minQuantity: number;
11819
+ } | null;
11820
+ } | {
11821
+ type: "buy_x_get_y";
11822
+ buys: {
11823
+ productIds: string[];
11824
+ variantIds: string[];
11825
+ collectionIds: string[];
11826
+ categoryIds: string[];
11827
+ brandIds: string[];
11828
+ quantity: number;
11829
+ };
11830
+ gets: {
11831
+ productIds: string[];
11832
+ variantIds: string[];
11833
+ collectionIds: string[];
11834
+ categoryIds: string[];
11835
+ brandIds: string[];
11836
+ quantity: number;
11837
+ value: number;
11838
+ };
11839
+ usesPerOrderLimit: number | null;
11840
+ })[] | undefined;
11841
+ unavailableInCurrency?: boolean | undefined;
10109
11842
  products?: {
10110
11843
  id: string;
10111
11844
  }[] | undefined;
@@ -10260,6 +11993,7 @@ type APIOrdersBrowseResult = Omit<{
10260
11993
  } | null;
10261
11994
  locale: string | null;
10262
11995
  externalId: string | null;
11996
+ marketplaceConnectionId: string | null;
10263
11997
  cartId: string | null;
10264
11998
  paymentDeduplicationId: string | null;
10265
11999
  paymentProvider: string | null;
@@ -10358,6 +12092,13 @@ type APIOrdersBrowseResult = Omit<{
10358
12092
  carrier: "dpd";
10359
12093
  name: string;
10360
12094
  service: "dpd";
12095
+ food?: boolean | undefined;
12096
+ } | {
12097
+ carrier: "fedex";
12098
+ name: string;
12099
+ service: "fedex";
12100
+ serviceType: string;
12101
+ serviceName?: string | undefined;
10361
12102
  } | null;
10362
12103
  deliverySlots: unknown;
10363
12104
  shippingTaxRate: {
@@ -10719,6 +12460,47 @@ type APIOrdersBrowseResult = Omit<{
10719
12460
  endDate: string | null;
10720
12461
  minProductCount: number | null;
10721
12462
  maxProductCount: number | null;
12463
+ minSubtotal?: string | null | undefined;
12464
+ excludeSaleItems?: boolean | undefined;
12465
+ appliesOnSubscription?: boolean | undefined;
12466
+ additionalRules?: ({
12467
+ productIds: string[];
12468
+ variantIds: string[];
12469
+ collectionIds: string[];
12470
+ categoryIds: string[];
12471
+ brandIds: string[];
12472
+ type: "percentage";
12473
+ value: number;
12474
+ condition: {
12475
+ productIds: string[];
12476
+ variantIds: string[];
12477
+ collectionIds: string[];
12478
+ categoryIds: string[];
12479
+ brandIds: string[];
12480
+ minQuantity: number;
12481
+ } | null;
12482
+ } | {
12483
+ type: "buy_x_get_y";
12484
+ buys: {
12485
+ productIds: string[];
12486
+ variantIds: string[];
12487
+ collectionIds: string[];
12488
+ categoryIds: string[];
12489
+ brandIds: string[];
12490
+ quantity: number;
12491
+ };
12492
+ gets: {
12493
+ productIds: string[];
12494
+ variantIds: string[];
12495
+ collectionIds: string[];
12496
+ categoryIds: string[];
12497
+ brandIds: string[];
12498
+ quantity: number;
12499
+ value: number;
12500
+ };
12501
+ usesPerOrderLimit: number | null;
12502
+ })[] | undefined;
12503
+ unavailableInCurrency?: boolean | undefined;
10722
12504
  products?: {
10723
12505
  id: string;
10724
12506
  }[] | undefined;
@@ -10800,6 +12582,47 @@ type APIOrdersBrowseResult = Omit<{
10800
12582
  endDate: string | null;
10801
12583
  minProductCount: number | null;
10802
12584
  maxProductCount: number | null;
12585
+ minSubtotal?: string | null | undefined;
12586
+ excludeSaleItems?: boolean | undefined;
12587
+ appliesOnSubscription?: boolean | undefined;
12588
+ additionalRules?: ({
12589
+ productIds: string[];
12590
+ variantIds: string[];
12591
+ collectionIds: string[];
12592
+ categoryIds: string[];
12593
+ brandIds: string[];
12594
+ type: "percentage";
12595
+ value: number;
12596
+ condition: {
12597
+ productIds: string[];
12598
+ variantIds: string[];
12599
+ collectionIds: string[];
12600
+ categoryIds: string[];
12601
+ brandIds: string[];
12602
+ minQuantity: number;
12603
+ } | null;
12604
+ } | {
12605
+ type: "buy_x_get_y";
12606
+ buys: {
12607
+ productIds: string[];
12608
+ variantIds: string[];
12609
+ collectionIds: string[];
12610
+ categoryIds: string[];
12611
+ brandIds: string[];
12612
+ quantity: number;
12613
+ };
12614
+ gets: {
12615
+ productIds: string[];
12616
+ variantIds: string[];
12617
+ collectionIds: string[];
12618
+ categoryIds: string[];
12619
+ brandIds: string[];
12620
+ quantity: number;
12621
+ value: number;
12622
+ };
12623
+ usesPerOrderLimit: number | null;
12624
+ })[] | undefined;
12625
+ unavailableInCurrency?: boolean | undefined;
10803
12626
  products?: {
10804
12627
  id: string;
10805
12628
  }[] | undefined;
@@ -10985,6 +12808,13 @@ type APIOrdersBrowseResult = Omit<{
10985
12808
  carrier: "dpd";
10986
12809
  name: string;
10987
12810
  service: "dpd";
12811
+ food?: boolean | undefined;
12812
+ } | {
12813
+ carrier: "fedex";
12814
+ name: string;
12815
+ service: "fedex";
12816
+ serviceType: string;
12817
+ serviceName?: string | undefined;
10988
12818
  } | null;
10989
12819
  deliverySlots: unknown;
10990
12820
  shippingTaxRate: {
@@ -11346,6 +13176,47 @@ type APIOrdersBrowseResult = Omit<{
11346
13176
  endDate: string | null;
11347
13177
  minProductCount: number | null;
11348
13178
  maxProductCount: number | null;
13179
+ minSubtotal?: string | null | undefined;
13180
+ excludeSaleItems?: boolean | undefined;
13181
+ appliesOnSubscription?: boolean | undefined;
13182
+ additionalRules?: ({
13183
+ productIds: string[];
13184
+ variantIds: string[];
13185
+ collectionIds: string[];
13186
+ categoryIds: string[];
13187
+ brandIds: string[];
13188
+ type: "percentage";
13189
+ value: number;
13190
+ condition: {
13191
+ productIds: string[];
13192
+ variantIds: string[];
13193
+ collectionIds: string[];
13194
+ categoryIds: string[];
13195
+ brandIds: string[];
13196
+ minQuantity: number;
13197
+ } | null;
13198
+ } | {
13199
+ type: "buy_x_get_y";
13200
+ buys: {
13201
+ productIds: string[];
13202
+ variantIds: string[];
13203
+ collectionIds: string[];
13204
+ categoryIds: string[];
13205
+ brandIds: string[];
13206
+ quantity: number;
13207
+ };
13208
+ gets: {
13209
+ productIds: string[];
13210
+ variantIds: string[];
13211
+ collectionIds: string[];
13212
+ categoryIds: string[];
13213
+ brandIds: string[];
13214
+ quantity: number;
13215
+ value: number;
13216
+ };
13217
+ usesPerOrderLimit: number | null;
13218
+ })[] | undefined;
13219
+ unavailableInCurrency?: boolean | undefined;
11349
13220
  products?: {
11350
13221
  id: string;
11351
13222
  }[] | undefined;
@@ -11427,6 +13298,47 @@ type APIOrdersBrowseResult = Omit<{
11427
13298
  endDate: string | null;
11428
13299
  minProductCount: number | null;
11429
13300
  maxProductCount: number | null;
13301
+ minSubtotal?: string | null | undefined;
13302
+ excludeSaleItems?: boolean | undefined;
13303
+ appliesOnSubscription?: boolean | undefined;
13304
+ additionalRules?: ({
13305
+ productIds: string[];
13306
+ variantIds: string[];
13307
+ collectionIds: string[];
13308
+ categoryIds: string[];
13309
+ brandIds: string[];
13310
+ type: "percentage";
13311
+ value: number;
13312
+ condition: {
13313
+ productIds: string[];
13314
+ variantIds: string[];
13315
+ collectionIds: string[];
13316
+ categoryIds: string[];
13317
+ brandIds: string[];
13318
+ minQuantity: number;
13319
+ } | null;
13320
+ } | {
13321
+ type: "buy_x_get_y";
13322
+ buys: {
13323
+ productIds: string[];
13324
+ variantIds: string[];
13325
+ collectionIds: string[];
13326
+ categoryIds: string[];
13327
+ brandIds: string[];
13328
+ quantity: number;
13329
+ };
13330
+ gets: {
13331
+ productIds: string[];
13332
+ variantIds: string[];
13333
+ collectionIds: string[];
13334
+ categoryIds: string[];
13335
+ brandIds: string[];
13336
+ quantity: number;
13337
+ value: number;
13338
+ };
13339
+ usesPerOrderLimit: number | null;
13340
+ })[] | undefined;
13341
+ unavailableInCurrency?: boolean | undefined;
11430
13342
  products?: {
11431
13343
  id: string;
11432
13344
  }[] | undefined;
@@ -11581,6 +13493,7 @@ type APIOrdersBrowseResult = Omit<{
11581
13493
  } | null;
11582
13494
  locale: string | null;
11583
13495
  externalId: string | null;
13496
+ marketplaceConnectionId: string | null;
11584
13497
  cartId: string | null;
11585
13498
  paymentDeduplicationId: string | null;
11586
13499
  paymentProvider: string | null;
@@ -11679,6 +13592,13 @@ type APIOrdersBrowseResult = Omit<{
11679
13592
  carrier: "dpd";
11680
13593
  name: string;
11681
13594
  service: "dpd";
13595
+ food?: boolean | undefined;
13596
+ } | {
13597
+ carrier: "fedex";
13598
+ name: string;
13599
+ service: "fedex";
13600
+ serviceType: string;
13601
+ serviceName?: string | undefined;
11682
13602
  } | null;
11683
13603
  deliverySlots: unknown;
11684
13604
  shippingTaxRate: {
@@ -12040,6 +13960,47 @@ type APIOrdersBrowseResult = Omit<{
12040
13960
  endDate: string | null;
12041
13961
  minProductCount: number | null;
12042
13962
  maxProductCount: number | null;
13963
+ minSubtotal?: string | null | undefined;
13964
+ excludeSaleItems?: boolean | undefined;
13965
+ appliesOnSubscription?: boolean | undefined;
13966
+ additionalRules?: ({
13967
+ productIds: string[];
13968
+ variantIds: string[];
13969
+ collectionIds: string[];
13970
+ categoryIds: string[];
13971
+ brandIds: string[];
13972
+ type: "percentage";
13973
+ value: number;
13974
+ condition: {
13975
+ productIds: string[];
13976
+ variantIds: string[];
13977
+ collectionIds: string[];
13978
+ categoryIds: string[];
13979
+ brandIds: string[];
13980
+ minQuantity: number;
13981
+ } | null;
13982
+ } | {
13983
+ type: "buy_x_get_y";
13984
+ buys: {
13985
+ productIds: string[];
13986
+ variantIds: string[];
13987
+ collectionIds: string[];
13988
+ categoryIds: string[];
13989
+ brandIds: string[];
13990
+ quantity: number;
13991
+ };
13992
+ gets: {
13993
+ productIds: string[];
13994
+ variantIds: string[];
13995
+ collectionIds: string[];
13996
+ categoryIds: string[];
13997
+ brandIds: string[];
13998
+ quantity: number;
13999
+ value: number;
14000
+ };
14001
+ usesPerOrderLimit: number | null;
14002
+ })[] | undefined;
14003
+ unavailableInCurrency?: boolean | undefined;
12043
14004
  products?: {
12044
14005
  id: string;
12045
14006
  }[] | undefined;
@@ -12121,6 +14082,47 @@ type APIOrdersBrowseResult = Omit<{
12121
14082
  endDate: string | null;
12122
14083
  minProductCount: number | null;
12123
14084
  maxProductCount: number | null;
14085
+ minSubtotal?: string | null | undefined;
14086
+ excludeSaleItems?: boolean | undefined;
14087
+ appliesOnSubscription?: boolean | undefined;
14088
+ additionalRules?: ({
14089
+ productIds: string[];
14090
+ variantIds: string[];
14091
+ collectionIds: string[];
14092
+ categoryIds: string[];
14093
+ brandIds: string[];
14094
+ type: "percentage";
14095
+ value: number;
14096
+ condition: {
14097
+ productIds: string[];
14098
+ variantIds: string[];
14099
+ collectionIds: string[];
14100
+ categoryIds: string[];
14101
+ brandIds: string[];
14102
+ minQuantity: number;
14103
+ } | null;
14104
+ } | {
14105
+ type: "buy_x_get_y";
14106
+ buys: {
14107
+ productIds: string[];
14108
+ variantIds: string[];
14109
+ collectionIds: string[];
14110
+ categoryIds: string[];
14111
+ brandIds: string[];
14112
+ quantity: number;
14113
+ };
14114
+ gets: {
14115
+ productIds: string[];
14116
+ variantIds: string[];
14117
+ collectionIds: string[];
14118
+ categoryIds: string[];
14119
+ brandIds: string[];
14120
+ quantity: number;
14121
+ value: number;
14122
+ };
14123
+ usesPerOrderLimit: number | null;
14124
+ })[] | undefined;
14125
+ unavailableInCurrency?: boolean | undefined;
12124
14126
  products?: {
12125
14127
  id: string;
12126
14128
  }[] | undefined;
@@ -12298,6 +14300,13 @@ type APIOrdersBrowseResult = Omit<{
12298
14300
  carrier: "dpd";
12299
14301
  name: string;
12300
14302
  service: "dpd";
14303
+ food?: boolean | undefined;
14304
+ } | {
14305
+ carrier: "fedex";
14306
+ name: string;
14307
+ service: "fedex";
14308
+ serviceType: string;
14309
+ serviceName?: string | undefined;
12301
14310
  } | null;
12302
14311
  deliverySlots: unknown;
12303
14312
  shippingTaxRate: {
@@ -13324,6 +15333,47 @@ type APIOrdersBrowseResult = Omit<{
13324
15333
  endDate: string | null;
13325
15334
  minProductCount: number | null;
13326
15335
  maxProductCount: number | null;
15336
+ minSubtotal?: string | null | undefined;
15337
+ excludeSaleItems?: boolean | undefined;
15338
+ appliesOnSubscription?: boolean | undefined;
15339
+ additionalRules?: ({
15340
+ productIds: string[];
15341
+ variantIds: string[];
15342
+ collectionIds: string[];
15343
+ categoryIds: string[];
15344
+ brandIds: string[];
15345
+ type: "percentage";
15346
+ value: number;
15347
+ condition: {
15348
+ productIds: string[];
15349
+ variantIds: string[];
15350
+ collectionIds: string[];
15351
+ categoryIds: string[];
15352
+ brandIds: string[];
15353
+ minQuantity: number;
15354
+ } | null;
15355
+ } | {
15356
+ type: "buy_x_get_y";
15357
+ buys: {
15358
+ productIds: string[];
15359
+ variantIds: string[];
15360
+ collectionIds: string[];
15361
+ categoryIds: string[];
15362
+ brandIds: string[];
15363
+ quantity: number;
15364
+ };
15365
+ gets: {
15366
+ productIds: string[];
15367
+ variantIds: string[];
15368
+ collectionIds: string[];
15369
+ categoryIds: string[];
15370
+ brandIds: string[];
15371
+ quantity: number;
15372
+ value: number;
15373
+ };
15374
+ usesPerOrderLimit: number | null;
15375
+ })[] | undefined;
15376
+ unavailableInCurrency?: boolean | undefined;
13327
15377
  products?: {
13328
15378
  id: string;
13329
15379
  }[] | undefined;
@@ -13405,6 +15455,47 @@ type APIOrdersBrowseResult = Omit<{
13405
15455
  endDate: string | null;
13406
15456
  minProductCount: number | null;
13407
15457
  maxProductCount: number | null;
15458
+ minSubtotal?: string | null | undefined;
15459
+ excludeSaleItems?: boolean | undefined;
15460
+ appliesOnSubscription?: boolean | undefined;
15461
+ additionalRules?: ({
15462
+ productIds: string[];
15463
+ variantIds: string[];
15464
+ collectionIds: string[];
15465
+ categoryIds: string[];
15466
+ brandIds: string[];
15467
+ type: "percentage";
15468
+ value: number;
15469
+ condition: {
15470
+ productIds: string[];
15471
+ variantIds: string[];
15472
+ collectionIds: string[];
15473
+ categoryIds: string[];
15474
+ brandIds: string[];
15475
+ minQuantity: number;
15476
+ } | null;
15477
+ } | {
15478
+ type: "buy_x_get_y";
15479
+ buys: {
15480
+ productIds: string[];
15481
+ variantIds: string[];
15482
+ collectionIds: string[];
15483
+ categoryIds: string[];
15484
+ brandIds: string[];
15485
+ quantity: number;
15486
+ };
15487
+ gets: {
15488
+ productIds: string[];
15489
+ variantIds: string[];
15490
+ collectionIds: string[];
15491
+ categoryIds: string[];
15492
+ brandIds: string[];
15493
+ quantity: number;
15494
+ value: number;
15495
+ };
15496
+ usesPerOrderLimit: number | null;
15497
+ })[] | undefined;
15498
+ unavailableInCurrency?: boolean | undefined;
13408
15499
  products?: {
13409
15500
  id: string;
13410
15501
  }[] | undefined;
@@ -13620,6 +15711,13 @@ type APIOrderGetByIdResult = Omit<{
13620
15711
  carrier: "dpd";
13621
15712
  name: string;
13622
15713
  service: "dpd";
15714
+ food?: boolean | undefined;
15715
+ } | {
15716
+ carrier: "fedex";
15717
+ name: string;
15718
+ service: "fedex";
15719
+ serviceType: string;
15720
+ serviceName?: string | undefined;
13623
15721
  } | null;
13624
15722
  deliverySlots: unknown;
13625
15723
  shippingTaxRate: {
@@ -13981,6 +16079,47 @@ type APIOrderGetByIdResult = Omit<{
13981
16079
  endDate: string | null;
13982
16080
  minProductCount: number | null;
13983
16081
  maxProductCount: number | null;
16082
+ minSubtotal?: string | null | undefined;
16083
+ excludeSaleItems?: boolean | undefined;
16084
+ appliesOnSubscription?: boolean | undefined;
16085
+ additionalRules?: ({
16086
+ productIds: string[];
16087
+ variantIds: string[];
16088
+ collectionIds: string[];
16089
+ categoryIds: string[];
16090
+ brandIds: string[];
16091
+ type: "percentage";
16092
+ value: number;
16093
+ condition: {
16094
+ productIds: string[];
16095
+ variantIds: string[];
16096
+ collectionIds: string[];
16097
+ categoryIds: string[];
16098
+ brandIds: string[];
16099
+ minQuantity: number;
16100
+ } | null;
16101
+ } | {
16102
+ type: "buy_x_get_y";
16103
+ buys: {
16104
+ productIds: string[];
16105
+ variantIds: string[];
16106
+ collectionIds: string[];
16107
+ categoryIds: string[];
16108
+ brandIds: string[];
16109
+ quantity: number;
16110
+ };
16111
+ gets: {
16112
+ productIds: string[];
16113
+ variantIds: string[];
16114
+ collectionIds: string[];
16115
+ categoryIds: string[];
16116
+ brandIds: string[];
16117
+ quantity: number;
16118
+ value: number;
16119
+ };
16120
+ usesPerOrderLimit: number | null;
16121
+ })[] | undefined;
16122
+ unavailableInCurrency?: boolean | undefined;
13984
16123
  products?: {
13985
16124
  id: string;
13986
16125
  }[] | undefined;
@@ -14062,6 +16201,47 @@ type APIOrderGetByIdResult = Omit<{
14062
16201
  endDate: string | null;
14063
16202
  minProductCount: number | null;
14064
16203
  maxProductCount: number | null;
16204
+ minSubtotal?: string | null | undefined;
16205
+ excludeSaleItems?: boolean | undefined;
16206
+ appliesOnSubscription?: boolean | undefined;
16207
+ additionalRules?: ({
16208
+ productIds: string[];
16209
+ variantIds: string[];
16210
+ collectionIds: string[];
16211
+ categoryIds: string[];
16212
+ brandIds: string[];
16213
+ type: "percentage";
16214
+ value: number;
16215
+ condition: {
16216
+ productIds: string[];
16217
+ variantIds: string[];
16218
+ collectionIds: string[];
16219
+ categoryIds: string[];
16220
+ brandIds: string[];
16221
+ minQuantity: number;
16222
+ } | null;
16223
+ } | {
16224
+ type: "buy_x_get_y";
16225
+ buys: {
16226
+ productIds: string[];
16227
+ variantIds: string[];
16228
+ collectionIds: string[];
16229
+ categoryIds: string[];
16230
+ brandIds: string[];
16231
+ quantity: number;
16232
+ };
16233
+ gets: {
16234
+ productIds: string[];
16235
+ variantIds: string[];
16236
+ collectionIds: string[];
16237
+ categoryIds: string[];
16238
+ brandIds: string[];
16239
+ quantity: number;
16240
+ value: number;
16241
+ };
16242
+ usesPerOrderLimit: number | null;
16243
+ })[] | undefined;
16244
+ unavailableInCurrency?: boolean | undefined;
14065
16245
  products?: {
14066
16246
  id: string;
14067
16247
  }[] | undefined;
@@ -14194,6 +16374,7 @@ type APIOrderGetByIdResult = Omit<{
14194
16374
  poNumber?: string | null | undefined;
14195
16375
  };
14196
16376
  externalShipmentId: string | null;
16377
+ marketplaceConnectionId: string | null;
14197
16378
  paymentDeduplicationId: string | null;
14198
16379
  paymentProvider: string | null;
14199
16380
  ticketCode: string | null;
@@ -14323,6 +16504,13 @@ type APIOrderGetByIdResult = Omit<{
14323
16504
  carrier: "dpd";
14324
16505
  name: string;
14325
16506
  service: "dpd";
16507
+ food?: boolean | undefined;
16508
+ } | {
16509
+ carrier: "fedex";
16510
+ name: string;
16511
+ service: "fedex";
16512
+ serviceType: string;
16513
+ serviceName?: string | undefined;
14326
16514
  } | null;
14327
16515
  deliverySlots: unknown;
14328
16516
  shippingTaxRate: {
@@ -14684,6 +16872,47 @@ type APIOrderGetByIdResult = Omit<{
14684
16872
  endDate: string | null;
14685
16873
  minProductCount: number | null;
14686
16874
  maxProductCount: number | null;
16875
+ minSubtotal?: string | null | undefined;
16876
+ excludeSaleItems?: boolean | undefined;
16877
+ appliesOnSubscription?: boolean | undefined;
16878
+ additionalRules?: ({
16879
+ productIds: string[];
16880
+ variantIds: string[];
16881
+ collectionIds: string[];
16882
+ categoryIds: string[];
16883
+ brandIds: string[];
16884
+ type: "percentage";
16885
+ value: number;
16886
+ condition: {
16887
+ productIds: string[];
16888
+ variantIds: string[];
16889
+ collectionIds: string[];
16890
+ categoryIds: string[];
16891
+ brandIds: string[];
16892
+ minQuantity: number;
16893
+ } | null;
16894
+ } | {
16895
+ type: "buy_x_get_y";
16896
+ buys: {
16897
+ productIds: string[];
16898
+ variantIds: string[];
16899
+ collectionIds: string[];
16900
+ categoryIds: string[];
16901
+ brandIds: string[];
16902
+ quantity: number;
16903
+ };
16904
+ gets: {
16905
+ productIds: string[];
16906
+ variantIds: string[];
16907
+ collectionIds: string[];
16908
+ categoryIds: string[];
16909
+ brandIds: string[];
16910
+ quantity: number;
16911
+ value: number;
16912
+ };
16913
+ usesPerOrderLimit: number | null;
16914
+ })[] | undefined;
16915
+ unavailableInCurrency?: boolean | undefined;
14687
16916
  products?: {
14688
16917
  id: string;
14689
16918
  }[] | undefined;
@@ -14765,6 +16994,47 @@ type APIOrderGetByIdResult = Omit<{
14765
16994
  endDate: string | null;
14766
16995
  minProductCount: number | null;
14767
16996
  maxProductCount: number | null;
16997
+ minSubtotal?: string | null | undefined;
16998
+ excludeSaleItems?: boolean | undefined;
16999
+ appliesOnSubscription?: boolean | undefined;
17000
+ additionalRules?: ({
17001
+ productIds: string[];
17002
+ variantIds: string[];
17003
+ collectionIds: string[];
17004
+ categoryIds: string[];
17005
+ brandIds: string[];
17006
+ type: "percentage";
17007
+ value: number;
17008
+ condition: {
17009
+ productIds: string[];
17010
+ variantIds: string[];
17011
+ collectionIds: string[];
17012
+ categoryIds: string[];
17013
+ brandIds: string[];
17014
+ minQuantity: number;
17015
+ } | null;
17016
+ } | {
17017
+ type: "buy_x_get_y";
17018
+ buys: {
17019
+ productIds: string[];
17020
+ variantIds: string[];
17021
+ collectionIds: string[];
17022
+ categoryIds: string[];
17023
+ brandIds: string[];
17024
+ quantity: number;
17025
+ };
17026
+ gets: {
17027
+ productIds: string[];
17028
+ variantIds: string[];
17029
+ collectionIds: string[];
17030
+ categoryIds: string[];
17031
+ brandIds: string[];
17032
+ quantity: number;
17033
+ value: number;
17034
+ };
17035
+ usesPerOrderLimit: number | null;
17036
+ })[] | undefined;
17037
+ unavailableInCurrency?: boolean | undefined;
14768
17038
  products?: {
14769
17039
  id: string;
14770
17040
  }[] | undefined;
@@ -14938,6 +17208,13 @@ type APIOrderGetByIdResult = Omit<{
14938
17208
  carrier: "dpd";
14939
17209
  name: string;
14940
17210
  service: "dpd";
17211
+ food?: boolean | undefined;
17212
+ } | {
17213
+ carrier: "fedex";
17214
+ name: string;
17215
+ service: "fedex";
17216
+ serviceType: string;
17217
+ serviceName?: string | undefined;
14941
17218
  } | null;
14942
17219
  deliverySlots: unknown;
14943
17220
  shippingTaxRate: {
@@ -15964,6 +18241,47 @@ type APIOrderGetByIdResult = Omit<{
15964
18241
  endDate: string | null;
15965
18242
  minProductCount: number | null;
15966
18243
  maxProductCount: number | null;
18244
+ minSubtotal?: string | null | undefined;
18245
+ excludeSaleItems?: boolean | undefined;
18246
+ appliesOnSubscription?: boolean | undefined;
18247
+ additionalRules?: ({
18248
+ productIds: string[];
18249
+ variantIds: string[];
18250
+ collectionIds: string[];
18251
+ categoryIds: string[];
18252
+ brandIds: string[];
18253
+ type: "percentage";
18254
+ value: number;
18255
+ condition: {
18256
+ productIds: string[];
18257
+ variantIds: string[];
18258
+ collectionIds: string[];
18259
+ categoryIds: string[];
18260
+ brandIds: string[];
18261
+ minQuantity: number;
18262
+ } | null;
18263
+ } | {
18264
+ type: "buy_x_get_y";
18265
+ buys: {
18266
+ productIds: string[];
18267
+ variantIds: string[];
18268
+ collectionIds: string[];
18269
+ categoryIds: string[];
18270
+ brandIds: string[];
18271
+ quantity: number;
18272
+ };
18273
+ gets: {
18274
+ productIds: string[];
18275
+ variantIds: string[];
18276
+ collectionIds: string[];
18277
+ categoryIds: string[];
18278
+ brandIds: string[];
18279
+ quantity: number;
18280
+ value: number;
18281
+ };
18282
+ usesPerOrderLimit: number | null;
18283
+ })[] | undefined;
18284
+ unavailableInCurrency?: boolean | undefined;
15967
18285
  products?: {
15968
18286
  id: string;
15969
18287
  }[] | undefined;
@@ -16045,6 +18363,47 @@ type APIOrderGetByIdResult = Omit<{
16045
18363
  endDate: string | null;
16046
18364
  minProductCount: number | null;
16047
18365
  maxProductCount: number | null;
18366
+ minSubtotal?: string | null | undefined;
18367
+ excludeSaleItems?: boolean | undefined;
18368
+ appliesOnSubscription?: boolean | undefined;
18369
+ additionalRules?: ({
18370
+ productIds: string[];
18371
+ variantIds: string[];
18372
+ collectionIds: string[];
18373
+ categoryIds: string[];
18374
+ brandIds: string[];
18375
+ type: "percentage";
18376
+ value: number;
18377
+ condition: {
18378
+ productIds: string[];
18379
+ variantIds: string[];
18380
+ collectionIds: string[];
18381
+ categoryIds: string[];
18382
+ brandIds: string[];
18383
+ minQuantity: number;
18384
+ } | null;
18385
+ } | {
18386
+ type: "buy_x_get_y";
18387
+ buys: {
18388
+ productIds: string[];
18389
+ variantIds: string[];
18390
+ collectionIds: string[];
18391
+ categoryIds: string[];
18392
+ brandIds: string[];
18393
+ quantity: number;
18394
+ };
18395
+ gets: {
18396
+ productIds: string[];
18397
+ variantIds: string[];
18398
+ collectionIds: string[];
18399
+ categoryIds: string[];
18400
+ brandIds: string[];
18401
+ quantity: number;
18402
+ value: number;
18403
+ };
18404
+ usesPerOrderLimit: number | null;
18405
+ })[] | undefined;
18406
+ unavailableInCurrency?: boolean | undefined;
16048
18407
  products?: {
16049
18408
  id: string;
16050
18409
  }[] | undefined;