commerce-kit 0.70.0 → 0.71.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.
- package/dist/api-types.d.ts +2407 -96
- package/package.json +1 -1
package/dist/api-types.d.ts
CHANGED
|
@@ -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
|
-
}
|
|
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
|
-
|
|
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
|
-
}
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
|
|
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
|
-
}
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
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
|
-
}
|
|
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,118 @@ type APICartRemoveItemResult = {
|
|
|
6938
7650
|
externalReference?: string;
|
|
6939
7651
|
idempotencyKey?: string;
|
|
6940
7652
|
} | null;
|
|
6941
|
-
coupon: Omit<{
|
|
7653
|
+
coupon: Omit<({
|
|
7654
|
+
type: "fixed" | "percentage" | "free_shipping";
|
|
7655
|
+
value: string;
|
|
7656
|
+
code: string;
|
|
7657
|
+
freeShipping: boolean;
|
|
7658
|
+
startDate: string | null;
|
|
7659
|
+
endDate: string | null;
|
|
7660
|
+
minProductCount: number | null;
|
|
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
|
+
})[];
|
|
7702
|
+
products: {
|
|
7703
|
+
id: string;
|
|
7704
|
+
}[];
|
|
7705
|
+
brands: {
|
|
7706
|
+
id: string;
|
|
7707
|
+
}[];
|
|
7708
|
+
collections: {
|
|
7709
|
+
id: string;
|
|
7710
|
+
}[];
|
|
7711
|
+
variants: {
|
|
7712
|
+
id: string;
|
|
7713
|
+
}[];
|
|
7714
|
+
categories: {
|
|
7715
|
+
id: string;
|
|
7716
|
+
}[];
|
|
7717
|
+
prices: {
|
|
7718
|
+
createdAt: string;
|
|
7719
|
+
updatedAt: string;
|
|
7720
|
+
currency: string;
|
|
7721
|
+
storeId: string;
|
|
7722
|
+
value: string | null;
|
|
7723
|
+
minSubtotal: string | null;
|
|
7724
|
+
couponId: string;
|
|
7725
|
+
}[];
|
|
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<{
|
|
6942
7765
|
type: "fixed" | "percentage" | "free_shipping";
|
|
6943
7766
|
value: string;
|
|
6944
7767
|
code: string;
|
|
@@ -6947,6 +7770,46 @@ type APICartRemoveItemResult = {
|
|
|
6947
7770
|
endDate: string | null;
|
|
6948
7771
|
minProductCount: number | null;
|
|
6949
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
|
+
})[];
|
|
6950
7813
|
products: {
|
|
6951
7814
|
id: string;
|
|
6952
7815
|
}[];
|
|
@@ -6967,10 +7830,53 @@ type APICartRemoveItemResult = {
|
|
|
6967
7830
|
updatedAt: string;
|
|
6968
7831
|
currency: string;
|
|
6969
7832
|
storeId: string;
|
|
6970
|
-
value: string;
|
|
7833
|
+
value: string | null;
|
|
7834
|
+
minSubtotal: string | null;
|
|
6971
7835
|
couponId: string;
|
|
6972
7836
|
}[];
|
|
6973
|
-
}
|
|
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
|
-
|
|
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
|
-
}
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
|
|
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
|
-
}
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
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
|
-
}
|
|
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,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
9664
11308
|
carrier: "dpd";
|
|
9665
11309
|
name: string;
|
|
9666
11310
|
service: "dpd";
|
|
11311
|
+
food?: boolean | undefined;
|
|
9667
11312
|
} | null;
|
|
9668
11313
|
deliverySlots: unknown;
|
|
9669
11314
|
shippingTaxRate: {
|
|
@@ -10025,6 +11670,47 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10025
11670
|
endDate: string | null;
|
|
10026
11671
|
minProductCount: number | null;
|
|
10027
11672
|
maxProductCount: number | null;
|
|
11673
|
+
minSubtotal?: string | null | undefined;
|
|
11674
|
+
excludeSaleItems?: boolean | undefined;
|
|
11675
|
+
appliesOnSubscription?: boolean | undefined;
|
|
11676
|
+
additionalRules?: ({
|
|
11677
|
+
productIds: string[];
|
|
11678
|
+
variantIds: string[];
|
|
11679
|
+
collectionIds: string[];
|
|
11680
|
+
categoryIds: string[];
|
|
11681
|
+
brandIds: string[];
|
|
11682
|
+
type: "percentage";
|
|
11683
|
+
value: number;
|
|
11684
|
+
condition: {
|
|
11685
|
+
productIds: string[];
|
|
11686
|
+
variantIds: string[];
|
|
11687
|
+
collectionIds: string[];
|
|
11688
|
+
categoryIds: string[];
|
|
11689
|
+
brandIds: string[];
|
|
11690
|
+
minQuantity: number;
|
|
11691
|
+
} | null;
|
|
11692
|
+
} | {
|
|
11693
|
+
type: "buy_x_get_y";
|
|
11694
|
+
buys: {
|
|
11695
|
+
productIds: string[];
|
|
11696
|
+
variantIds: string[];
|
|
11697
|
+
collectionIds: string[];
|
|
11698
|
+
categoryIds: string[];
|
|
11699
|
+
brandIds: string[];
|
|
11700
|
+
quantity: number;
|
|
11701
|
+
};
|
|
11702
|
+
gets: {
|
|
11703
|
+
productIds: string[];
|
|
11704
|
+
variantIds: string[];
|
|
11705
|
+
collectionIds: string[];
|
|
11706
|
+
categoryIds: string[];
|
|
11707
|
+
brandIds: string[];
|
|
11708
|
+
quantity: number;
|
|
11709
|
+
value: number;
|
|
11710
|
+
};
|
|
11711
|
+
usesPerOrderLimit: number | null;
|
|
11712
|
+
})[] | undefined;
|
|
11713
|
+
unavailableInCurrency?: boolean | undefined;
|
|
10028
11714
|
products?: {
|
|
10029
11715
|
id: string;
|
|
10030
11716
|
}[] | undefined;
|
|
@@ -10106,6 +11792,47 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10106
11792
|
endDate: string | null;
|
|
10107
11793
|
minProductCount: number | null;
|
|
10108
11794
|
maxProductCount: number | null;
|
|
11795
|
+
minSubtotal?: string | null | undefined;
|
|
11796
|
+
excludeSaleItems?: boolean | undefined;
|
|
11797
|
+
appliesOnSubscription?: boolean | undefined;
|
|
11798
|
+
additionalRules?: ({
|
|
11799
|
+
productIds: string[];
|
|
11800
|
+
variantIds: string[];
|
|
11801
|
+
collectionIds: string[];
|
|
11802
|
+
categoryIds: string[];
|
|
11803
|
+
brandIds: string[];
|
|
11804
|
+
type: "percentage";
|
|
11805
|
+
value: number;
|
|
11806
|
+
condition: {
|
|
11807
|
+
productIds: string[];
|
|
11808
|
+
variantIds: string[];
|
|
11809
|
+
collectionIds: string[];
|
|
11810
|
+
categoryIds: string[];
|
|
11811
|
+
brandIds: string[];
|
|
11812
|
+
minQuantity: number;
|
|
11813
|
+
} | null;
|
|
11814
|
+
} | {
|
|
11815
|
+
type: "buy_x_get_y";
|
|
11816
|
+
buys: {
|
|
11817
|
+
productIds: string[];
|
|
11818
|
+
variantIds: string[];
|
|
11819
|
+
collectionIds: string[];
|
|
11820
|
+
categoryIds: string[];
|
|
11821
|
+
brandIds: string[];
|
|
11822
|
+
quantity: number;
|
|
11823
|
+
};
|
|
11824
|
+
gets: {
|
|
11825
|
+
productIds: string[];
|
|
11826
|
+
variantIds: string[];
|
|
11827
|
+
collectionIds: string[];
|
|
11828
|
+
categoryIds: string[];
|
|
11829
|
+
brandIds: string[];
|
|
11830
|
+
quantity: number;
|
|
11831
|
+
value: number;
|
|
11832
|
+
};
|
|
11833
|
+
usesPerOrderLimit: number | null;
|
|
11834
|
+
})[] | undefined;
|
|
11835
|
+
unavailableInCurrency?: boolean | undefined;
|
|
10109
11836
|
products?: {
|
|
10110
11837
|
id: string;
|
|
10111
11838
|
}[] | undefined;
|
|
@@ -10260,6 +11987,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10260
11987
|
} | null;
|
|
10261
11988
|
locale: string | null;
|
|
10262
11989
|
externalId: string | null;
|
|
11990
|
+
marketplaceConnectionId: string | null;
|
|
10263
11991
|
cartId: string | null;
|
|
10264
11992
|
paymentDeduplicationId: string | null;
|
|
10265
11993
|
paymentProvider: string | null;
|
|
@@ -10358,6 +12086,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10358
12086
|
carrier: "dpd";
|
|
10359
12087
|
name: string;
|
|
10360
12088
|
service: "dpd";
|
|
12089
|
+
food?: boolean | undefined;
|
|
10361
12090
|
} | null;
|
|
10362
12091
|
deliverySlots: unknown;
|
|
10363
12092
|
shippingTaxRate: {
|
|
@@ -10719,6 +12448,47 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10719
12448
|
endDate: string | null;
|
|
10720
12449
|
minProductCount: number | null;
|
|
10721
12450
|
maxProductCount: number | null;
|
|
12451
|
+
minSubtotal?: string | null | undefined;
|
|
12452
|
+
excludeSaleItems?: boolean | undefined;
|
|
12453
|
+
appliesOnSubscription?: boolean | undefined;
|
|
12454
|
+
additionalRules?: ({
|
|
12455
|
+
productIds: string[];
|
|
12456
|
+
variantIds: string[];
|
|
12457
|
+
collectionIds: string[];
|
|
12458
|
+
categoryIds: string[];
|
|
12459
|
+
brandIds: string[];
|
|
12460
|
+
type: "percentage";
|
|
12461
|
+
value: number;
|
|
12462
|
+
condition: {
|
|
12463
|
+
productIds: string[];
|
|
12464
|
+
variantIds: string[];
|
|
12465
|
+
collectionIds: string[];
|
|
12466
|
+
categoryIds: string[];
|
|
12467
|
+
brandIds: string[];
|
|
12468
|
+
minQuantity: number;
|
|
12469
|
+
} | null;
|
|
12470
|
+
} | {
|
|
12471
|
+
type: "buy_x_get_y";
|
|
12472
|
+
buys: {
|
|
12473
|
+
productIds: string[];
|
|
12474
|
+
variantIds: string[];
|
|
12475
|
+
collectionIds: string[];
|
|
12476
|
+
categoryIds: string[];
|
|
12477
|
+
brandIds: string[];
|
|
12478
|
+
quantity: number;
|
|
12479
|
+
};
|
|
12480
|
+
gets: {
|
|
12481
|
+
productIds: string[];
|
|
12482
|
+
variantIds: string[];
|
|
12483
|
+
collectionIds: string[];
|
|
12484
|
+
categoryIds: string[];
|
|
12485
|
+
brandIds: string[];
|
|
12486
|
+
quantity: number;
|
|
12487
|
+
value: number;
|
|
12488
|
+
};
|
|
12489
|
+
usesPerOrderLimit: number | null;
|
|
12490
|
+
})[] | undefined;
|
|
12491
|
+
unavailableInCurrency?: boolean | undefined;
|
|
10722
12492
|
products?: {
|
|
10723
12493
|
id: string;
|
|
10724
12494
|
}[] | undefined;
|
|
@@ -10800,6 +12570,47 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10800
12570
|
endDate: string | null;
|
|
10801
12571
|
minProductCount: number | null;
|
|
10802
12572
|
maxProductCount: number | null;
|
|
12573
|
+
minSubtotal?: string | null | undefined;
|
|
12574
|
+
excludeSaleItems?: boolean | undefined;
|
|
12575
|
+
appliesOnSubscription?: boolean | undefined;
|
|
12576
|
+
additionalRules?: ({
|
|
12577
|
+
productIds: string[];
|
|
12578
|
+
variantIds: string[];
|
|
12579
|
+
collectionIds: string[];
|
|
12580
|
+
categoryIds: string[];
|
|
12581
|
+
brandIds: string[];
|
|
12582
|
+
type: "percentage";
|
|
12583
|
+
value: number;
|
|
12584
|
+
condition: {
|
|
12585
|
+
productIds: string[];
|
|
12586
|
+
variantIds: string[];
|
|
12587
|
+
collectionIds: string[];
|
|
12588
|
+
categoryIds: string[];
|
|
12589
|
+
brandIds: string[];
|
|
12590
|
+
minQuantity: number;
|
|
12591
|
+
} | null;
|
|
12592
|
+
} | {
|
|
12593
|
+
type: "buy_x_get_y";
|
|
12594
|
+
buys: {
|
|
12595
|
+
productIds: string[];
|
|
12596
|
+
variantIds: string[];
|
|
12597
|
+
collectionIds: string[];
|
|
12598
|
+
categoryIds: string[];
|
|
12599
|
+
brandIds: string[];
|
|
12600
|
+
quantity: number;
|
|
12601
|
+
};
|
|
12602
|
+
gets: {
|
|
12603
|
+
productIds: string[];
|
|
12604
|
+
variantIds: string[];
|
|
12605
|
+
collectionIds: string[];
|
|
12606
|
+
categoryIds: string[];
|
|
12607
|
+
brandIds: string[];
|
|
12608
|
+
quantity: number;
|
|
12609
|
+
value: number;
|
|
12610
|
+
};
|
|
12611
|
+
usesPerOrderLimit: number | null;
|
|
12612
|
+
})[] | undefined;
|
|
12613
|
+
unavailableInCurrency?: boolean | undefined;
|
|
10803
12614
|
products?: {
|
|
10804
12615
|
id: string;
|
|
10805
12616
|
}[] | undefined;
|
|
@@ -10985,6 +12796,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
10985
12796
|
carrier: "dpd";
|
|
10986
12797
|
name: string;
|
|
10987
12798
|
service: "dpd";
|
|
12799
|
+
food?: boolean | undefined;
|
|
10988
12800
|
} | null;
|
|
10989
12801
|
deliverySlots: unknown;
|
|
10990
12802
|
shippingTaxRate: {
|
|
@@ -11346,6 +13158,47 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
11346
13158
|
endDate: string | null;
|
|
11347
13159
|
minProductCount: number | null;
|
|
11348
13160
|
maxProductCount: number | null;
|
|
13161
|
+
minSubtotal?: string | null | undefined;
|
|
13162
|
+
excludeSaleItems?: boolean | undefined;
|
|
13163
|
+
appliesOnSubscription?: boolean | undefined;
|
|
13164
|
+
additionalRules?: ({
|
|
13165
|
+
productIds: string[];
|
|
13166
|
+
variantIds: string[];
|
|
13167
|
+
collectionIds: string[];
|
|
13168
|
+
categoryIds: string[];
|
|
13169
|
+
brandIds: string[];
|
|
13170
|
+
type: "percentage";
|
|
13171
|
+
value: number;
|
|
13172
|
+
condition: {
|
|
13173
|
+
productIds: string[];
|
|
13174
|
+
variantIds: string[];
|
|
13175
|
+
collectionIds: string[];
|
|
13176
|
+
categoryIds: string[];
|
|
13177
|
+
brandIds: string[];
|
|
13178
|
+
minQuantity: number;
|
|
13179
|
+
} | null;
|
|
13180
|
+
} | {
|
|
13181
|
+
type: "buy_x_get_y";
|
|
13182
|
+
buys: {
|
|
13183
|
+
productIds: string[];
|
|
13184
|
+
variantIds: string[];
|
|
13185
|
+
collectionIds: string[];
|
|
13186
|
+
categoryIds: string[];
|
|
13187
|
+
brandIds: string[];
|
|
13188
|
+
quantity: number;
|
|
13189
|
+
};
|
|
13190
|
+
gets: {
|
|
13191
|
+
productIds: string[];
|
|
13192
|
+
variantIds: string[];
|
|
13193
|
+
collectionIds: string[];
|
|
13194
|
+
categoryIds: string[];
|
|
13195
|
+
brandIds: string[];
|
|
13196
|
+
quantity: number;
|
|
13197
|
+
value: number;
|
|
13198
|
+
};
|
|
13199
|
+
usesPerOrderLimit: number | null;
|
|
13200
|
+
})[] | undefined;
|
|
13201
|
+
unavailableInCurrency?: boolean | undefined;
|
|
11349
13202
|
products?: {
|
|
11350
13203
|
id: string;
|
|
11351
13204
|
}[] | undefined;
|
|
@@ -11427,6 +13280,47 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
11427
13280
|
endDate: string | null;
|
|
11428
13281
|
minProductCount: number | null;
|
|
11429
13282
|
maxProductCount: number | null;
|
|
13283
|
+
minSubtotal?: string | null | undefined;
|
|
13284
|
+
excludeSaleItems?: boolean | undefined;
|
|
13285
|
+
appliesOnSubscription?: boolean | undefined;
|
|
13286
|
+
additionalRules?: ({
|
|
13287
|
+
productIds: string[];
|
|
13288
|
+
variantIds: string[];
|
|
13289
|
+
collectionIds: string[];
|
|
13290
|
+
categoryIds: string[];
|
|
13291
|
+
brandIds: string[];
|
|
13292
|
+
type: "percentage";
|
|
13293
|
+
value: number;
|
|
13294
|
+
condition: {
|
|
13295
|
+
productIds: string[];
|
|
13296
|
+
variantIds: string[];
|
|
13297
|
+
collectionIds: string[];
|
|
13298
|
+
categoryIds: string[];
|
|
13299
|
+
brandIds: string[];
|
|
13300
|
+
minQuantity: number;
|
|
13301
|
+
} | null;
|
|
13302
|
+
} | {
|
|
13303
|
+
type: "buy_x_get_y";
|
|
13304
|
+
buys: {
|
|
13305
|
+
productIds: string[];
|
|
13306
|
+
variantIds: string[];
|
|
13307
|
+
collectionIds: string[];
|
|
13308
|
+
categoryIds: string[];
|
|
13309
|
+
brandIds: string[];
|
|
13310
|
+
quantity: number;
|
|
13311
|
+
};
|
|
13312
|
+
gets: {
|
|
13313
|
+
productIds: string[];
|
|
13314
|
+
variantIds: string[];
|
|
13315
|
+
collectionIds: string[];
|
|
13316
|
+
categoryIds: string[];
|
|
13317
|
+
brandIds: string[];
|
|
13318
|
+
quantity: number;
|
|
13319
|
+
value: number;
|
|
13320
|
+
};
|
|
13321
|
+
usesPerOrderLimit: number | null;
|
|
13322
|
+
})[] | undefined;
|
|
13323
|
+
unavailableInCurrency?: boolean | undefined;
|
|
11430
13324
|
products?: {
|
|
11431
13325
|
id: string;
|
|
11432
13326
|
}[] | undefined;
|
|
@@ -11581,6 +13475,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
11581
13475
|
} | null;
|
|
11582
13476
|
locale: string | null;
|
|
11583
13477
|
externalId: string | null;
|
|
13478
|
+
marketplaceConnectionId: string | null;
|
|
11584
13479
|
cartId: string | null;
|
|
11585
13480
|
paymentDeduplicationId: string | null;
|
|
11586
13481
|
paymentProvider: string | null;
|
|
@@ -11679,6 +13574,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
11679
13574
|
carrier: "dpd";
|
|
11680
13575
|
name: string;
|
|
11681
13576
|
service: "dpd";
|
|
13577
|
+
food?: boolean | undefined;
|
|
11682
13578
|
} | null;
|
|
11683
13579
|
deliverySlots: unknown;
|
|
11684
13580
|
shippingTaxRate: {
|
|
@@ -12040,6 +13936,47 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
12040
13936
|
endDate: string | null;
|
|
12041
13937
|
minProductCount: number | null;
|
|
12042
13938
|
maxProductCount: number | null;
|
|
13939
|
+
minSubtotal?: string | null | undefined;
|
|
13940
|
+
excludeSaleItems?: boolean | undefined;
|
|
13941
|
+
appliesOnSubscription?: boolean | undefined;
|
|
13942
|
+
additionalRules?: ({
|
|
13943
|
+
productIds: string[];
|
|
13944
|
+
variantIds: string[];
|
|
13945
|
+
collectionIds: string[];
|
|
13946
|
+
categoryIds: string[];
|
|
13947
|
+
brandIds: string[];
|
|
13948
|
+
type: "percentage";
|
|
13949
|
+
value: number;
|
|
13950
|
+
condition: {
|
|
13951
|
+
productIds: string[];
|
|
13952
|
+
variantIds: string[];
|
|
13953
|
+
collectionIds: string[];
|
|
13954
|
+
categoryIds: string[];
|
|
13955
|
+
brandIds: string[];
|
|
13956
|
+
minQuantity: number;
|
|
13957
|
+
} | null;
|
|
13958
|
+
} | {
|
|
13959
|
+
type: "buy_x_get_y";
|
|
13960
|
+
buys: {
|
|
13961
|
+
productIds: string[];
|
|
13962
|
+
variantIds: string[];
|
|
13963
|
+
collectionIds: string[];
|
|
13964
|
+
categoryIds: string[];
|
|
13965
|
+
brandIds: string[];
|
|
13966
|
+
quantity: number;
|
|
13967
|
+
};
|
|
13968
|
+
gets: {
|
|
13969
|
+
productIds: string[];
|
|
13970
|
+
variantIds: string[];
|
|
13971
|
+
collectionIds: string[];
|
|
13972
|
+
categoryIds: string[];
|
|
13973
|
+
brandIds: string[];
|
|
13974
|
+
quantity: number;
|
|
13975
|
+
value: number;
|
|
13976
|
+
};
|
|
13977
|
+
usesPerOrderLimit: number | null;
|
|
13978
|
+
})[] | undefined;
|
|
13979
|
+
unavailableInCurrency?: boolean | undefined;
|
|
12043
13980
|
products?: {
|
|
12044
13981
|
id: string;
|
|
12045
13982
|
}[] | undefined;
|
|
@@ -12121,6 +14058,47 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
12121
14058
|
endDate: string | null;
|
|
12122
14059
|
minProductCount: number | null;
|
|
12123
14060
|
maxProductCount: number | null;
|
|
14061
|
+
minSubtotal?: string | null | undefined;
|
|
14062
|
+
excludeSaleItems?: boolean | undefined;
|
|
14063
|
+
appliesOnSubscription?: boolean | undefined;
|
|
14064
|
+
additionalRules?: ({
|
|
14065
|
+
productIds: string[];
|
|
14066
|
+
variantIds: string[];
|
|
14067
|
+
collectionIds: string[];
|
|
14068
|
+
categoryIds: string[];
|
|
14069
|
+
brandIds: string[];
|
|
14070
|
+
type: "percentage";
|
|
14071
|
+
value: number;
|
|
14072
|
+
condition: {
|
|
14073
|
+
productIds: string[];
|
|
14074
|
+
variantIds: string[];
|
|
14075
|
+
collectionIds: string[];
|
|
14076
|
+
categoryIds: string[];
|
|
14077
|
+
brandIds: string[];
|
|
14078
|
+
minQuantity: number;
|
|
14079
|
+
} | null;
|
|
14080
|
+
} | {
|
|
14081
|
+
type: "buy_x_get_y";
|
|
14082
|
+
buys: {
|
|
14083
|
+
productIds: string[];
|
|
14084
|
+
variantIds: string[];
|
|
14085
|
+
collectionIds: string[];
|
|
14086
|
+
categoryIds: string[];
|
|
14087
|
+
brandIds: string[];
|
|
14088
|
+
quantity: number;
|
|
14089
|
+
};
|
|
14090
|
+
gets: {
|
|
14091
|
+
productIds: string[];
|
|
14092
|
+
variantIds: string[];
|
|
14093
|
+
collectionIds: string[];
|
|
14094
|
+
categoryIds: string[];
|
|
14095
|
+
brandIds: string[];
|
|
14096
|
+
quantity: number;
|
|
14097
|
+
value: number;
|
|
14098
|
+
};
|
|
14099
|
+
usesPerOrderLimit: number | null;
|
|
14100
|
+
})[] | undefined;
|
|
14101
|
+
unavailableInCurrency?: boolean | undefined;
|
|
12124
14102
|
products?: {
|
|
12125
14103
|
id: string;
|
|
12126
14104
|
}[] | undefined;
|
|
@@ -12298,6 +14276,7 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
12298
14276
|
carrier: "dpd";
|
|
12299
14277
|
name: string;
|
|
12300
14278
|
service: "dpd";
|
|
14279
|
+
food?: boolean | undefined;
|
|
12301
14280
|
} | null;
|
|
12302
14281
|
deliverySlots: unknown;
|
|
12303
14282
|
shippingTaxRate: {
|
|
@@ -13324,6 +15303,47 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
13324
15303
|
endDate: string | null;
|
|
13325
15304
|
minProductCount: number | null;
|
|
13326
15305
|
maxProductCount: number | null;
|
|
15306
|
+
minSubtotal?: string | null | undefined;
|
|
15307
|
+
excludeSaleItems?: boolean | undefined;
|
|
15308
|
+
appliesOnSubscription?: boolean | undefined;
|
|
15309
|
+
additionalRules?: ({
|
|
15310
|
+
productIds: string[];
|
|
15311
|
+
variantIds: string[];
|
|
15312
|
+
collectionIds: string[];
|
|
15313
|
+
categoryIds: string[];
|
|
15314
|
+
brandIds: string[];
|
|
15315
|
+
type: "percentage";
|
|
15316
|
+
value: number;
|
|
15317
|
+
condition: {
|
|
15318
|
+
productIds: string[];
|
|
15319
|
+
variantIds: string[];
|
|
15320
|
+
collectionIds: string[];
|
|
15321
|
+
categoryIds: string[];
|
|
15322
|
+
brandIds: string[];
|
|
15323
|
+
minQuantity: number;
|
|
15324
|
+
} | null;
|
|
15325
|
+
} | {
|
|
15326
|
+
type: "buy_x_get_y";
|
|
15327
|
+
buys: {
|
|
15328
|
+
productIds: string[];
|
|
15329
|
+
variantIds: string[];
|
|
15330
|
+
collectionIds: string[];
|
|
15331
|
+
categoryIds: string[];
|
|
15332
|
+
brandIds: string[];
|
|
15333
|
+
quantity: number;
|
|
15334
|
+
};
|
|
15335
|
+
gets: {
|
|
15336
|
+
productIds: string[];
|
|
15337
|
+
variantIds: string[];
|
|
15338
|
+
collectionIds: string[];
|
|
15339
|
+
categoryIds: string[];
|
|
15340
|
+
brandIds: string[];
|
|
15341
|
+
quantity: number;
|
|
15342
|
+
value: number;
|
|
15343
|
+
};
|
|
15344
|
+
usesPerOrderLimit: number | null;
|
|
15345
|
+
})[] | undefined;
|
|
15346
|
+
unavailableInCurrency?: boolean | undefined;
|
|
13327
15347
|
products?: {
|
|
13328
15348
|
id: string;
|
|
13329
15349
|
}[] | undefined;
|
|
@@ -13405,6 +15425,47 @@ type APIOrdersBrowseResult = Omit<{
|
|
|
13405
15425
|
endDate: string | null;
|
|
13406
15426
|
minProductCount: number | null;
|
|
13407
15427
|
maxProductCount: number | null;
|
|
15428
|
+
minSubtotal?: string | null | undefined;
|
|
15429
|
+
excludeSaleItems?: boolean | undefined;
|
|
15430
|
+
appliesOnSubscription?: boolean | undefined;
|
|
15431
|
+
additionalRules?: ({
|
|
15432
|
+
productIds: string[];
|
|
15433
|
+
variantIds: string[];
|
|
15434
|
+
collectionIds: string[];
|
|
15435
|
+
categoryIds: string[];
|
|
15436
|
+
brandIds: string[];
|
|
15437
|
+
type: "percentage";
|
|
15438
|
+
value: number;
|
|
15439
|
+
condition: {
|
|
15440
|
+
productIds: string[];
|
|
15441
|
+
variantIds: string[];
|
|
15442
|
+
collectionIds: string[];
|
|
15443
|
+
categoryIds: string[];
|
|
15444
|
+
brandIds: string[];
|
|
15445
|
+
minQuantity: number;
|
|
15446
|
+
} | null;
|
|
15447
|
+
} | {
|
|
15448
|
+
type: "buy_x_get_y";
|
|
15449
|
+
buys: {
|
|
15450
|
+
productIds: string[];
|
|
15451
|
+
variantIds: string[];
|
|
15452
|
+
collectionIds: string[];
|
|
15453
|
+
categoryIds: string[];
|
|
15454
|
+
brandIds: string[];
|
|
15455
|
+
quantity: number;
|
|
15456
|
+
};
|
|
15457
|
+
gets: {
|
|
15458
|
+
productIds: string[];
|
|
15459
|
+
variantIds: string[];
|
|
15460
|
+
collectionIds: string[];
|
|
15461
|
+
categoryIds: string[];
|
|
15462
|
+
brandIds: string[];
|
|
15463
|
+
quantity: number;
|
|
15464
|
+
value: number;
|
|
15465
|
+
};
|
|
15466
|
+
usesPerOrderLimit: number | null;
|
|
15467
|
+
})[] | undefined;
|
|
15468
|
+
unavailableInCurrency?: boolean | undefined;
|
|
13408
15469
|
products?: {
|
|
13409
15470
|
id: string;
|
|
13410
15471
|
}[] | undefined;
|
|
@@ -13620,6 +15681,7 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
13620
15681
|
carrier: "dpd";
|
|
13621
15682
|
name: string;
|
|
13622
15683
|
service: "dpd";
|
|
15684
|
+
food?: boolean | undefined;
|
|
13623
15685
|
} | null;
|
|
13624
15686
|
deliverySlots: unknown;
|
|
13625
15687
|
shippingTaxRate: {
|
|
@@ -13981,6 +16043,47 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
13981
16043
|
endDate: string | null;
|
|
13982
16044
|
minProductCount: number | null;
|
|
13983
16045
|
maxProductCount: number | null;
|
|
16046
|
+
minSubtotal?: string | null | undefined;
|
|
16047
|
+
excludeSaleItems?: boolean | undefined;
|
|
16048
|
+
appliesOnSubscription?: boolean | undefined;
|
|
16049
|
+
additionalRules?: ({
|
|
16050
|
+
productIds: string[];
|
|
16051
|
+
variantIds: string[];
|
|
16052
|
+
collectionIds: string[];
|
|
16053
|
+
categoryIds: string[];
|
|
16054
|
+
brandIds: string[];
|
|
16055
|
+
type: "percentage";
|
|
16056
|
+
value: number;
|
|
16057
|
+
condition: {
|
|
16058
|
+
productIds: string[];
|
|
16059
|
+
variantIds: string[];
|
|
16060
|
+
collectionIds: string[];
|
|
16061
|
+
categoryIds: string[];
|
|
16062
|
+
brandIds: string[];
|
|
16063
|
+
minQuantity: number;
|
|
16064
|
+
} | null;
|
|
16065
|
+
} | {
|
|
16066
|
+
type: "buy_x_get_y";
|
|
16067
|
+
buys: {
|
|
16068
|
+
productIds: string[];
|
|
16069
|
+
variantIds: string[];
|
|
16070
|
+
collectionIds: string[];
|
|
16071
|
+
categoryIds: string[];
|
|
16072
|
+
brandIds: string[];
|
|
16073
|
+
quantity: number;
|
|
16074
|
+
};
|
|
16075
|
+
gets: {
|
|
16076
|
+
productIds: string[];
|
|
16077
|
+
variantIds: string[];
|
|
16078
|
+
collectionIds: string[];
|
|
16079
|
+
categoryIds: string[];
|
|
16080
|
+
brandIds: string[];
|
|
16081
|
+
quantity: number;
|
|
16082
|
+
value: number;
|
|
16083
|
+
};
|
|
16084
|
+
usesPerOrderLimit: number | null;
|
|
16085
|
+
})[] | undefined;
|
|
16086
|
+
unavailableInCurrency?: boolean | undefined;
|
|
13984
16087
|
products?: {
|
|
13985
16088
|
id: string;
|
|
13986
16089
|
}[] | undefined;
|
|
@@ -14062,6 +16165,47 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
14062
16165
|
endDate: string | null;
|
|
14063
16166
|
minProductCount: number | null;
|
|
14064
16167
|
maxProductCount: number | null;
|
|
16168
|
+
minSubtotal?: string | null | undefined;
|
|
16169
|
+
excludeSaleItems?: boolean | undefined;
|
|
16170
|
+
appliesOnSubscription?: boolean | undefined;
|
|
16171
|
+
additionalRules?: ({
|
|
16172
|
+
productIds: string[];
|
|
16173
|
+
variantIds: string[];
|
|
16174
|
+
collectionIds: string[];
|
|
16175
|
+
categoryIds: string[];
|
|
16176
|
+
brandIds: string[];
|
|
16177
|
+
type: "percentage";
|
|
16178
|
+
value: number;
|
|
16179
|
+
condition: {
|
|
16180
|
+
productIds: string[];
|
|
16181
|
+
variantIds: string[];
|
|
16182
|
+
collectionIds: string[];
|
|
16183
|
+
categoryIds: string[];
|
|
16184
|
+
brandIds: string[];
|
|
16185
|
+
minQuantity: number;
|
|
16186
|
+
} | null;
|
|
16187
|
+
} | {
|
|
16188
|
+
type: "buy_x_get_y";
|
|
16189
|
+
buys: {
|
|
16190
|
+
productIds: string[];
|
|
16191
|
+
variantIds: string[];
|
|
16192
|
+
collectionIds: string[];
|
|
16193
|
+
categoryIds: string[];
|
|
16194
|
+
brandIds: string[];
|
|
16195
|
+
quantity: number;
|
|
16196
|
+
};
|
|
16197
|
+
gets: {
|
|
16198
|
+
productIds: string[];
|
|
16199
|
+
variantIds: string[];
|
|
16200
|
+
collectionIds: string[];
|
|
16201
|
+
categoryIds: string[];
|
|
16202
|
+
brandIds: string[];
|
|
16203
|
+
quantity: number;
|
|
16204
|
+
value: number;
|
|
16205
|
+
};
|
|
16206
|
+
usesPerOrderLimit: number | null;
|
|
16207
|
+
})[] | undefined;
|
|
16208
|
+
unavailableInCurrency?: boolean | undefined;
|
|
14065
16209
|
products?: {
|
|
14066
16210
|
id: string;
|
|
14067
16211
|
}[] | undefined;
|
|
@@ -14194,6 +16338,7 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
14194
16338
|
poNumber?: string | null | undefined;
|
|
14195
16339
|
};
|
|
14196
16340
|
externalShipmentId: string | null;
|
|
16341
|
+
marketplaceConnectionId: string | null;
|
|
14197
16342
|
paymentDeduplicationId: string | null;
|
|
14198
16343
|
paymentProvider: string | null;
|
|
14199
16344
|
ticketCode: string | null;
|
|
@@ -14323,6 +16468,7 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
14323
16468
|
carrier: "dpd";
|
|
14324
16469
|
name: string;
|
|
14325
16470
|
service: "dpd";
|
|
16471
|
+
food?: boolean | undefined;
|
|
14326
16472
|
} | null;
|
|
14327
16473
|
deliverySlots: unknown;
|
|
14328
16474
|
shippingTaxRate: {
|
|
@@ -14684,6 +16830,47 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
14684
16830
|
endDate: string | null;
|
|
14685
16831
|
minProductCount: number | null;
|
|
14686
16832
|
maxProductCount: number | null;
|
|
16833
|
+
minSubtotal?: string | null | undefined;
|
|
16834
|
+
excludeSaleItems?: boolean | undefined;
|
|
16835
|
+
appliesOnSubscription?: boolean | undefined;
|
|
16836
|
+
additionalRules?: ({
|
|
16837
|
+
productIds: string[];
|
|
16838
|
+
variantIds: string[];
|
|
16839
|
+
collectionIds: string[];
|
|
16840
|
+
categoryIds: string[];
|
|
16841
|
+
brandIds: string[];
|
|
16842
|
+
type: "percentage";
|
|
16843
|
+
value: number;
|
|
16844
|
+
condition: {
|
|
16845
|
+
productIds: string[];
|
|
16846
|
+
variantIds: string[];
|
|
16847
|
+
collectionIds: string[];
|
|
16848
|
+
categoryIds: string[];
|
|
16849
|
+
brandIds: string[];
|
|
16850
|
+
minQuantity: number;
|
|
16851
|
+
} | null;
|
|
16852
|
+
} | {
|
|
16853
|
+
type: "buy_x_get_y";
|
|
16854
|
+
buys: {
|
|
16855
|
+
productIds: string[];
|
|
16856
|
+
variantIds: string[];
|
|
16857
|
+
collectionIds: string[];
|
|
16858
|
+
categoryIds: string[];
|
|
16859
|
+
brandIds: string[];
|
|
16860
|
+
quantity: number;
|
|
16861
|
+
};
|
|
16862
|
+
gets: {
|
|
16863
|
+
productIds: string[];
|
|
16864
|
+
variantIds: string[];
|
|
16865
|
+
collectionIds: string[];
|
|
16866
|
+
categoryIds: string[];
|
|
16867
|
+
brandIds: string[];
|
|
16868
|
+
quantity: number;
|
|
16869
|
+
value: number;
|
|
16870
|
+
};
|
|
16871
|
+
usesPerOrderLimit: number | null;
|
|
16872
|
+
})[] | undefined;
|
|
16873
|
+
unavailableInCurrency?: boolean | undefined;
|
|
14687
16874
|
products?: {
|
|
14688
16875
|
id: string;
|
|
14689
16876
|
}[] | undefined;
|
|
@@ -14765,6 +16952,47 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
14765
16952
|
endDate: string | null;
|
|
14766
16953
|
minProductCount: number | null;
|
|
14767
16954
|
maxProductCount: number | null;
|
|
16955
|
+
minSubtotal?: string | null | undefined;
|
|
16956
|
+
excludeSaleItems?: boolean | undefined;
|
|
16957
|
+
appliesOnSubscription?: boolean | undefined;
|
|
16958
|
+
additionalRules?: ({
|
|
16959
|
+
productIds: string[];
|
|
16960
|
+
variantIds: string[];
|
|
16961
|
+
collectionIds: string[];
|
|
16962
|
+
categoryIds: string[];
|
|
16963
|
+
brandIds: string[];
|
|
16964
|
+
type: "percentage";
|
|
16965
|
+
value: number;
|
|
16966
|
+
condition: {
|
|
16967
|
+
productIds: string[];
|
|
16968
|
+
variantIds: string[];
|
|
16969
|
+
collectionIds: string[];
|
|
16970
|
+
categoryIds: string[];
|
|
16971
|
+
brandIds: string[];
|
|
16972
|
+
minQuantity: number;
|
|
16973
|
+
} | null;
|
|
16974
|
+
} | {
|
|
16975
|
+
type: "buy_x_get_y";
|
|
16976
|
+
buys: {
|
|
16977
|
+
productIds: string[];
|
|
16978
|
+
variantIds: string[];
|
|
16979
|
+
collectionIds: string[];
|
|
16980
|
+
categoryIds: string[];
|
|
16981
|
+
brandIds: string[];
|
|
16982
|
+
quantity: number;
|
|
16983
|
+
};
|
|
16984
|
+
gets: {
|
|
16985
|
+
productIds: string[];
|
|
16986
|
+
variantIds: string[];
|
|
16987
|
+
collectionIds: string[];
|
|
16988
|
+
categoryIds: string[];
|
|
16989
|
+
brandIds: string[];
|
|
16990
|
+
quantity: number;
|
|
16991
|
+
value: number;
|
|
16992
|
+
};
|
|
16993
|
+
usesPerOrderLimit: number | null;
|
|
16994
|
+
})[] | undefined;
|
|
16995
|
+
unavailableInCurrency?: boolean | undefined;
|
|
14768
16996
|
products?: {
|
|
14769
16997
|
id: string;
|
|
14770
16998
|
}[] | undefined;
|
|
@@ -14938,6 +17166,7 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
14938
17166
|
carrier: "dpd";
|
|
14939
17167
|
name: string;
|
|
14940
17168
|
service: "dpd";
|
|
17169
|
+
food?: boolean | undefined;
|
|
14941
17170
|
} | null;
|
|
14942
17171
|
deliverySlots: unknown;
|
|
14943
17172
|
shippingTaxRate: {
|
|
@@ -15964,6 +18193,47 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
15964
18193
|
endDate: string | null;
|
|
15965
18194
|
minProductCount: number | null;
|
|
15966
18195
|
maxProductCount: number | null;
|
|
18196
|
+
minSubtotal?: string | null | undefined;
|
|
18197
|
+
excludeSaleItems?: boolean | undefined;
|
|
18198
|
+
appliesOnSubscription?: boolean | undefined;
|
|
18199
|
+
additionalRules?: ({
|
|
18200
|
+
productIds: string[];
|
|
18201
|
+
variantIds: string[];
|
|
18202
|
+
collectionIds: string[];
|
|
18203
|
+
categoryIds: string[];
|
|
18204
|
+
brandIds: string[];
|
|
18205
|
+
type: "percentage";
|
|
18206
|
+
value: number;
|
|
18207
|
+
condition: {
|
|
18208
|
+
productIds: string[];
|
|
18209
|
+
variantIds: string[];
|
|
18210
|
+
collectionIds: string[];
|
|
18211
|
+
categoryIds: string[];
|
|
18212
|
+
brandIds: string[];
|
|
18213
|
+
minQuantity: number;
|
|
18214
|
+
} | null;
|
|
18215
|
+
} | {
|
|
18216
|
+
type: "buy_x_get_y";
|
|
18217
|
+
buys: {
|
|
18218
|
+
productIds: string[];
|
|
18219
|
+
variantIds: string[];
|
|
18220
|
+
collectionIds: string[];
|
|
18221
|
+
categoryIds: string[];
|
|
18222
|
+
brandIds: string[];
|
|
18223
|
+
quantity: number;
|
|
18224
|
+
};
|
|
18225
|
+
gets: {
|
|
18226
|
+
productIds: string[];
|
|
18227
|
+
variantIds: string[];
|
|
18228
|
+
collectionIds: string[];
|
|
18229
|
+
categoryIds: string[];
|
|
18230
|
+
brandIds: string[];
|
|
18231
|
+
quantity: number;
|
|
18232
|
+
value: number;
|
|
18233
|
+
};
|
|
18234
|
+
usesPerOrderLimit: number | null;
|
|
18235
|
+
})[] | undefined;
|
|
18236
|
+
unavailableInCurrency?: boolean | undefined;
|
|
15967
18237
|
products?: {
|
|
15968
18238
|
id: string;
|
|
15969
18239
|
}[] | undefined;
|
|
@@ -16045,6 +18315,47 @@ type APIOrderGetByIdResult = Omit<{
|
|
|
16045
18315
|
endDate: string | null;
|
|
16046
18316
|
minProductCount: number | null;
|
|
16047
18317
|
maxProductCount: number | null;
|
|
18318
|
+
minSubtotal?: string | null | undefined;
|
|
18319
|
+
excludeSaleItems?: boolean | undefined;
|
|
18320
|
+
appliesOnSubscription?: boolean | undefined;
|
|
18321
|
+
additionalRules?: ({
|
|
18322
|
+
productIds: string[];
|
|
18323
|
+
variantIds: string[];
|
|
18324
|
+
collectionIds: string[];
|
|
18325
|
+
categoryIds: string[];
|
|
18326
|
+
brandIds: string[];
|
|
18327
|
+
type: "percentage";
|
|
18328
|
+
value: number;
|
|
18329
|
+
condition: {
|
|
18330
|
+
productIds: string[];
|
|
18331
|
+
variantIds: string[];
|
|
18332
|
+
collectionIds: string[];
|
|
18333
|
+
categoryIds: string[];
|
|
18334
|
+
brandIds: string[];
|
|
18335
|
+
minQuantity: number;
|
|
18336
|
+
} | null;
|
|
18337
|
+
} | {
|
|
18338
|
+
type: "buy_x_get_y";
|
|
18339
|
+
buys: {
|
|
18340
|
+
productIds: string[];
|
|
18341
|
+
variantIds: string[];
|
|
18342
|
+
collectionIds: string[];
|
|
18343
|
+
categoryIds: string[];
|
|
18344
|
+
brandIds: string[];
|
|
18345
|
+
quantity: number;
|
|
18346
|
+
};
|
|
18347
|
+
gets: {
|
|
18348
|
+
productIds: string[];
|
|
18349
|
+
variantIds: string[];
|
|
18350
|
+
collectionIds: string[];
|
|
18351
|
+
categoryIds: string[];
|
|
18352
|
+
brandIds: string[];
|
|
18353
|
+
quantity: number;
|
|
18354
|
+
value: number;
|
|
18355
|
+
};
|
|
18356
|
+
usesPerOrderLimit: number | null;
|
|
18357
|
+
})[] | undefined;
|
|
18358
|
+
unavailableInCurrency?: boolean | undefined;
|
|
16048
18359
|
products?: {
|
|
16049
18360
|
id: string;
|
|
16050
18361
|
}[] | undefined;
|