commerce-kit 0.60.0 → 0.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/api-types.d.ts +84 -84
  2. package/package.json +1 -1
@@ -22,7 +22,6 @@ type APIProductsBrowseResult = Omit<{
22
22
  images: string[];
23
23
  badge: unknown;
24
24
  subscriptionMode: "optional" | "only" | "rolling";
25
- subscriptionAddonDiscountPercent: number | null;
26
25
  bundleDiscountPercentage: string | null;
27
26
  bundlePriceMode: "fixed" | "amount" | "percent";
28
27
  bundleFixedPriceAmount: string | null;
@@ -293,7 +292,6 @@ type APIProductsBrowseResult = Omit<{
293
292
  images: string[];
294
293
  badge: unknown;
295
294
  subscriptionMode: "optional" | "only" | "rolling";
296
- subscriptionAddonDiscountPercent: number | null;
297
295
  bundleDiscountPercentage: string | null;
298
296
  bundlePriceMode: "fixed" | "amount" | "percent";
299
297
  bundleFixedPriceAmount: string | null;
@@ -564,7 +562,6 @@ type APIProductsBrowseResult = Omit<{
564
562
  images: string[];
565
563
  badge: unknown;
566
564
  subscriptionMode: "optional" | "only" | "rolling";
567
- subscriptionAddonDiscountPercent: number | null;
568
565
  bundleDiscountPercentage: string | null;
569
566
  bundlePriceMode: "fixed" | "amount" | "percent";
570
567
  bundleFixedPriceAmount: string | null;
@@ -835,7 +832,6 @@ type APIProductsBrowseResult = Omit<{
835
832
  images: string[];
836
833
  badge: unknown;
837
834
  subscriptionMode: "optional" | "only" | "rolling";
838
- subscriptionAddonDiscountPercent: number | null;
839
835
  bundleDiscountPercentage: string | null;
840
836
  bundlePriceMode: "fixed" | "amount" | "percent";
841
837
  bundleFixedPriceAmount: string | null;
@@ -1108,7 +1104,6 @@ type APIProductsBrowseResult = Omit<{
1108
1104
  images: string[];
1109
1105
  badge: unknown;
1110
1106
  subscriptionMode: "optional" | "only" | "rolling";
1111
- subscriptionAddonDiscountPercent: number | null;
1112
1107
  bundleDiscountPercentage: string | null;
1113
1108
  bundlePriceMode: "fixed" | "amount" | "percent";
1114
1109
  bundleFixedPriceAmount: string | null;
@@ -1388,7 +1383,6 @@ type APIProductsBrowseResult = Omit<{
1388
1383
  images: string[];
1389
1384
  badge: unknown;
1390
1385
  subscriptionMode: "optional" | "only" | "rolling";
1391
- subscriptionAddonDiscountPercent: number | null;
1392
1386
  bundleDiscountPercentage: string | null;
1393
1387
  bundlePriceMode: "fixed" | "amount" | "percent";
1394
1388
  bundleFixedPriceAmount: string | null;
@@ -2785,7 +2779,6 @@ type APIProductGetByIdResult = {
2785
2779
  images: string[];
2786
2780
  badge: unknown;
2787
2781
  subscriptionMode: "optional" | "only" | "rolling";
2788
- subscriptionAddonDiscountPercent: number | null;
2789
2782
  bundleDiscountPercentage: string | null;
2790
2783
  bundlePriceMode: "fixed" | "amount" | "percent";
2791
2784
  bundleFixedPriceAmount: string | null;
@@ -3869,6 +3862,50 @@ type APIProductGetByIdResult = {
3869
3862
  };
3870
3863
  bundleFixedPriceAmountGross: string | null;
3871
3864
  bundleAmountOffAmountGross: string | null;
3865
+ subscriptionCycles?: {
3866
+ current: {
3867
+ id: string;
3868
+ productId: string;
3869
+ title: string;
3870
+ description: string | null;
3871
+ image: string | null;
3872
+ startsAt: string;
3873
+ endsAt: string;
3874
+ status: "published" | "draft";
3875
+ items: {
3876
+ productVariantId: string;
3877
+ productId: string;
3878
+ name: string;
3879
+ variantLabel: string | null;
3880
+ sku: string | null;
3881
+ image: string | null;
3882
+ quantity: number;
3883
+ }[];
3884
+ createdAt: string;
3885
+ updatedAt: string;
3886
+ } | null;
3887
+ upcoming: {
3888
+ id: string;
3889
+ productId: string;
3890
+ title: string;
3891
+ description: string | null;
3892
+ image: string | null;
3893
+ startsAt: string;
3894
+ endsAt: string;
3895
+ status: "published" | "draft";
3896
+ items: {
3897
+ productVariantId: string;
3898
+ productId: string;
3899
+ name: string;
3900
+ variantLabel: string | null;
3901
+ sku: string | null;
3902
+ image: string | null;
3903
+ quantity: number;
3904
+ }[];
3905
+ createdAt: string;
3906
+ updatedAt: string;
3907
+ } | null;
3908
+ };
3872
3909
  };
3873
3910
  type APIProductGetByIdParams = {
3874
3911
  idOrSlug: string;
@@ -4181,7 +4218,6 @@ type APICartGetResult = {
4181
4218
  images: string[];
4182
4219
  badge: unknown;
4183
4220
  subscriptionMode: "optional" | "only" | "rolling";
4184
- subscriptionAddonDiscountPercent: number | null;
4185
4221
  bundleDiscountPercentage: string | null;
4186
4222
  bundlePriceMode: "fixed" | "amount" | "percent";
4187
4223
  bundleFixedPriceAmount: string | null;
@@ -4419,7 +4455,6 @@ type APICartGetResult = {
4419
4455
  images: string[];
4420
4456
  badge: unknown;
4421
4457
  subscriptionMode: "optional" | "only" | "rolling";
4422
- subscriptionAddonDiscountPercent: number | null;
4423
4458
  bundleDiscountPercentage: string | null;
4424
4459
  bundlePriceMode: "fixed" | "amount" | "percent";
4425
4460
  bundleFixedPriceAmount: string | null;
@@ -4597,7 +4632,6 @@ type APICartGetResult = {
4597
4632
  images: string[];
4598
4633
  badge: unknown;
4599
4634
  subscriptionMode: "optional" | "only" | "rolling";
4600
- subscriptionAddonDiscountPercent: number | null;
4601
4635
  bundleDiscountPercentage: string | null;
4602
4636
  bundlePriceMode: "fixed" | "amount" | "percent";
4603
4637
  bundleFixedPriceAmount: string | null;
@@ -4780,7 +4814,6 @@ type APICartGetResult = {
4780
4814
  images: string[];
4781
4815
  badge: unknown;
4782
4816
  subscriptionMode: "optional" | "only" | "rolling";
4783
- subscriptionAddonDiscountPercent: number | null;
4784
4817
  bundleDiscountPercentage: string | null;
4785
4818
  bundlePriceMode: "fixed" | "amount" | "percent";
4786
4819
  bundleFixedPriceAmount: string | null;
@@ -4963,7 +4996,6 @@ type APICartGetResult = {
4963
4996
  images: string[];
4964
4997
  badge: unknown;
4965
4998
  subscriptionMode: "optional" | "only" | "rolling";
4966
- subscriptionAddonDiscountPercent: number | null;
4967
4999
  bundleDiscountPercentage: string | null;
4968
5000
  bundlePriceMode: "fixed" | "amount" | "percent";
4969
5001
  bundleFixedPriceAmount: string | null;
@@ -5416,7 +5448,6 @@ type APICartCreateResult = {
5416
5448
  images: string[];
5417
5449
  badge: unknown;
5418
5450
  subscriptionMode: "optional" | "only" | "rolling";
5419
- subscriptionAddonDiscountPercent: number | null;
5420
5451
  bundleDiscountPercentage: string | null;
5421
5452
  bundlePriceMode: "fixed" | "amount" | "percent";
5422
5453
  bundleFixedPriceAmount: string | null;
@@ -5654,7 +5685,6 @@ type APICartCreateResult = {
5654
5685
  images: string[];
5655
5686
  badge: unknown;
5656
5687
  subscriptionMode: "optional" | "only" | "rolling";
5657
- subscriptionAddonDiscountPercent: number | null;
5658
5688
  bundleDiscountPercentage: string | null;
5659
5689
  bundlePriceMode: "fixed" | "amount" | "percent";
5660
5690
  bundleFixedPriceAmount: string | null;
@@ -5832,7 +5862,6 @@ type APICartCreateResult = {
5832
5862
  images: string[];
5833
5863
  badge: unknown;
5834
5864
  subscriptionMode: "optional" | "only" | "rolling";
5835
- subscriptionAddonDiscountPercent: number | null;
5836
5865
  bundleDiscountPercentage: string | null;
5837
5866
  bundlePriceMode: "fixed" | "amount" | "percent";
5838
5867
  bundleFixedPriceAmount: string | null;
@@ -6015,7 +6044,6 @@ type APICartCreateResult = {
6015
6044
  images: string[];
6016
6045
  badge: unknown;
6017
6046
  subscriptionMode: "optional" | "only" | "rolling";
6018
- subscriptionAddonDiscountPercent: number | null;
6019
6047
  bundleDiscountPercentage: string | null;
6020
6048
  bundlePriceMode: "fixed" | "amount" | "percent";
6021
6049
  bundleFixedPriceAmount: string | null;
@@ -6198,7 +6226,6 @@ type APICartCreateResult = {
6198
6226
  images: string[];
6199
6227
  badge: unknown;
6200
6228
  subscriptionMode: "optional" | "only" | "rolling";
6201
- subscriptionAddonDiscountPercent: number | null;
6202
6229
  bundleDiscountPercentage: string | null;
6203
6230
  bundlePriceMode: "fixed" | "amount" | "percent";
6204
6231
  bundleFixedPriceAmount: string | null;
@@ -6635,7 +6662,6 @@ type APICartRemoveItemResult = {
6635
6662
  images: string[];
6636
6663
  badge: unknown;
6637
6664
  subscriptionMode: "optional" | "only" | "rolling";
6638
- subscriptionAddonDiscountPercent: number | null;
6639
6665
  bundleDiscountPercentage: string | null;
6640
6666
  bundlePriceMode: "fixed" | "amount" | "percent";
6641
6667
  bundleFixedPriceAmount: string | null;
@@ -6873,7 +6899,6 @@ type APICartRemoveItemResult = {
6873
6899
  images: string[];
6874
6900
  badge: unknown;
6875
6901
  subscriptionMode: "optional" | "only" | "rolling";
6876
- subscriptionAddonDiscountPercent: number | null;
6877
6902
  bundleDiscountPercentage: string | null;
6878
6903
  bundlePriceMode: "fixed" | "amount" | "percent";
6879
6904
  bundleFixedPriceAmount: string | null;
@@ -7051,7 +7076,6 @@ type APICartRemoveItemResult = {
7051
7076
  images: string[];
7052
7077
  badge: unknown;
7053
7078
  subscriptionMode: "optional" | "only" | "rolling";
7054
- subscriptionAddonDiscountPercent: number | null;
7055
7079
  bundleDiscountPercentage: string | null;
7056
7080
  bundlePriceMode: "fixed" | "amount" | "percent";
7057
7081
  bundleFixedPriceAmount: string | null;
@@ -7234,7 +7258,6 @@ type APICartRemoveItemResult = {
7234
7258
  images: string[];
7235
7259
  badge: unknown;
7236
7260
  subscriptionMode: "optional" | "only" | "rolling";
7237
- subscriptionAddonDiscountPercent: number | null;
7238
7261
  bundleDiscountPercentage: string | null;
7239
7262
  bundlePriceMode: "fixed" | "amount" | "percent";
7240
7263
  bundleFixedPriceAmount: string | null;
@@ -7417,7 +7440,6 @@ type APICartRemoveItemResult = {
7417
7440
  images: string[];
7418
7441
  badge: unknown;
7419
7442
  subscriptionMode: "optional" | "only" | "rolling";
7420
- subscriptionAddonDiscountPercent: number | null;
7421
7443
  bundleDiscountPercentage: string | null;
7422
7444
  bundlePriceMode: "fixed" | "amount" | "percent";
7423
7445
  bundleFixedPriceAmount: string | null;
@@ -7860,7 +7882,6 @@ type APICartCouponApplyResult = {
7860
7882
  images: string[];
7861
7883
  badge: unknown;
7862
7884
  subscriptionMode: "optional" | "only" | "rolling";
7863
- subscriptionAddonDiscountPercent: number | null;
7864
7885
  bundleDiscountPercentage: string | null;
7865
7886
  bundlePriceMode: "fixed" | "amount" | "percent";
7866
7887
  bundleFixedPriceAmount: string | null;
@@ -8098,7 +8119,6 @@ type APICartCouponApplyResult = {
8098
8119
  images: string[];
8099
8120
  badge: unknown;
8100
8121
  subscriptionMode: "optional" | "only" | "rolling";
8101
- subscriptionAddonDiscountPercent: number | null;
8102
8122
  bundleDiscountPercentage: string | null;
8103
8123
  bundlePriceMode: "fixed" | "amount" | "percent";
8104
8124
  bundleFixedPriceAmount: string | null;
@@ -8276,7 +8296,6 @@ type APICartCouponApplyResult = {
8276
8296
  images: string[];
8277
8297
  badge: unknown;
8278
8298
  subscriptionMode: "optional" | "only" | "rolling";
8279
- subscriptionAddonDiscountPercent: number | null;
8280
8299
  bundleDiscountPercentage: string | null;
8281
8300
  bundlePriceMode: "fixed" | "amount" | "percent";
8282
8301
  bundleFixedPriceAmount: string | null;
@@ -8459,7 +8478,6 @@ type APICartCouponApplyResult = {
8459
8478
  images: string[];
8460
8479
  badge: unknown;
8461
8480
  subscriptionMode: "optional" | "only" | "rolling";
8462
- subscriptionAddonDiscountPercent: number | null;
8463
8481
  bundleDiscountPercentage: string | null;
8464
8482
  bundlePriceMode: "fixed" | "amount" | "percent";
8465
8483
  bundleFixedPriceAmount: string | null;
@@ -8642,7 +8660,6 @@ type APICartCouponApplyResult = {
8642
8660
  images: string[];
8643
8661
  badge: unknown;
8644
8662
  subscriptionMode: "optional" | "only" | "rolling";
8645
- subscriptionAddonDiscountPercent: number | null;
8646
8663
  bundleDiscountPercentage: string | null;
8647
8664
  bundlePriceMode: "fixed" | "amount" | "percent";
8648
8665
  bundleFixedPriceAmount: string | null;
@@ -9144,7 +9161,6 @@ type APIOrdersBrowseResult = Omit<{
9144
9161
  } | null;
9145
9162
  type: "set" | "product" | "bundle";
9146
9163
  subscriptionMode: "optional" | "only" | "rolling";
9147
- subscriptionAddonDiscountPercent: number | null;
9148
9164
  bundleDiscountPercentage: string | null;
9149
9165
  bundlePriceMode: "fixed" | "amount" | "percent";
9150
9166
  bundleFixedPriceAmount: string | null;
@@ -9317,11 +9333,6 @@ type APIOrdersBrowseResult = Omit<{
9317
9333
  quantity: number;
9318
9334
  }[];
9319
9335
  } | null;
9320
- subscriptionAddon: {
9321
- addonId: string;
9322
- discountPercent: number;
9323
- listPrice: string;
9324
- } | null;
9325
9336
  slotId: string | null;
9326
9337
  attendees: {
9327
9338
  name: string;
@@ -9413,6 +9424,11 @@ type APIOrdersBrowseResult = Omit<{
9413
9424
  shippingAddressId: string | null;
9414
9425
  stripePaymentIntentId: string | null;
9415
9426
  checkoutSessionId: string | null;
9427
+ stripeInvoice: {
9428
+ id: string;
9429
+ amountPaid: number;
9430
+ currency: string;
9431
+ } | null;
9416
9432
  customerId: string | null;
9417
9433
  customer: {
9418
9434
  id: string;
@@ -9684,7 +9700,6 @@ type APIOrdersBrowseResult = Omit<{
9684
9700
  } | null;
9685
9701
  type: "set" | "product" | "bundle";
9686
9702
  subscriptionMode: "optional" | "only" | "rolling";
9687
- subscriptionAddonDiscountPercent: number | null;
9688
9703
  bundleDiscountPercentage: string | null;
9689
9704
  bundlePriceMode: "fixed" | "amount" | "percent";
9690
9705
  bundleFixedPriceAmount: string | null;
@@ -9857,11 +9872,6 @@ type APIOrdersBrowseResult = Omit<{
9857
9872
  quantity: number;
9858
9873
  }[];
9859
9874
  } | null;
9860
- subscriptionAddon: {
9861
- addonId: string;
9862
- discountPercent: number;
9863
- listPrice: string;
9864
- } | null;
9865
9875
  slotId: string | null;
9866
9876
  attendees: {
9867
9877
  name: string;
@@ -9953,6 +9963,11 @@ type APIOrdersBrowseResult = Omit<{
9953
9963
  shippingAddressId: string | null;
9954
9964
  stripePaymentIntentId: string | null;
9955
9965
  checkoutSessionId: string | null;
9966
+ stripeInvoice: {
9967
+ id: string;
9968
+ amountPaid: number;
9969
+ currency: string;
9970
+ } | null;
9956
9971
  customerId: string | null;
9957
9972
  customer: {
9958
9973
  id: string;
@@ -10205,7 +10220,6 @@ type APIOrdersBrowseResult = Omit<{
10205
10220
  } | null;
10206
10221
  type: "set" | "product" | "bundle";
10207
10222
  subscriptionMode: "optional" | "only" | "rolling";
10208
- subscriptionAddonDiscountPercent: number | null;
10209
10223
  bundleDiscountPercentage: string | null;
10210
10224
  bundlePriceMode: "fixed" | "amount" | "percent";
10211
10225
  bundleFixedPriceAmount: string | null;
@@ -10378,11 +10392,6 @@ type APIOrdersBrowseResult = Omit<{
10378
10392
  quantity: number;
10379
10393
  }[];
10380
10394
  } | null;
10381
- subscriptionAddon: {
10382
- addonId: string;
10383
- discountPercent: number;
10384
- listPrice: string;
10385
- } | null;
10386
10395
  slotId: string | null;
10387
10396
  attendees: {
10388
10397
  name: string;
@@ -10474,6 +10483,11 @@ type APIOrdersBrowseResult = Omit<{
10474
10483
  shippingAddressId: string | null;
10475
10484
  stripePaymentIntentId: string | null;
10476
10485
  checkoutSessionId: string | null;
10486
+ stripeInvoice: {
10487
+ id: string;
10488
+ amountPaid: number;
10489
+ currency: string;
10490
+ } | null;
10477
10491
  customerId: string | null;
10478
10492
  customer: {
10479
10493
  id: string;
@@ -10745,7 +10759,6 @@ type APIOrdersBrowseResult = Omit<{
10745
10759
  } | null;
10746
10760
  type: "set" | "product" | "bundle";
10747
10761
  subscriptionMode: "optional" | "only" | "rolling";
10748
- subscriptionAddonDiscountPercent: number | null;
10749
10762
  bundleDiscountPercentage: string | null;
10750
10763
  bundlePriceMode: "fixed" | "amount" | "percent";
10751
10764
  bundleFixedPriceAmount: string | null;
@@ -10918,11 +10931,6 @@ type APIOrdersBrowseResult = Omit<{
10918
10931
  quantity: number;
10919
10932
  }[];
10920
10933
  } | null;
10921
- subscriptionAddon: {
10922
- addonId: string;
10923
- discountPercent: number;
10924
- listPrice: string;
10925
- } | null;
10926
10934
  slotId: string | null;
10927
10935
  attendees: {
10928
10936
  name: string;
@@ -11014,6 +11022,11 @@ type APIOrdersBrowseResult = Omit<{
11014
11022
  shippingAddressId: string | null;
11015
11023
  stripePaymentIntentId: string | null;
11016
11024
  checkoutSessionId: string | null;
11025
+ stripeInvoice: {
11026
+ id: string;
11027
+ amountPaid: number;
11028
+ currency: string;
11029
+ } | null;
11017
11030
  customerId: string | null;
11018
11031
  customer: {
11019
11032
  id: string;
@@ -11261,7 +11274,6 @@ type APIOrdersBrowseResult = Omit<{
11261
11274
  } | null;
11262
11275
  type: "set" | "product" | "bundle";
11263
11276
  subscriptionMode: "optional" | "only" | "rolling";
11264
- subscriptionAddonDiscountPercent: number | null;
11265
11277
  bundleDiscountPercentage: string | null;
11266
11278
  bundlePriceMode: "fixed" | "amount" | "percent";
11267
11279
  bundleFixedPriceAmount: string | null;
@@ -11477,7 +11489,6 @@ type APIOrdersBrowseResult = Omit<{
11477
11489
  } | null;
11478
11490
  type: "set" | "product" | "bundle";
11479
11491
  subscriptionMode: "optional" | "only" | "rolling";
11480
- subscriptionAddonDiscountPercent: number | null;
11481
11492
  bundleDiscountPercentage: string | null;
11482
11493
  bundlePriceMode: "fixed" | "amount" | "percent";
11483
11494
  bundleFixedPriceAmount: string | null;
@@ -11698,7 +11709,6 @@ type APIOrdersBrowseResult = Omit<{
11698
11709
  } | null;
11699
11710
  type: "set" | "product" | "bundle";
11700
11711
  subscriptionMode: "optional" | "only" | "rolling";
11701
- subscriptionAddonDiscountPercent: number | null;
11702
11712
  bundleDiscountPercentage: string | null;
11703
11713
  bundlePriceMode: "fixed" | "amount" | "percent";
11704
11714
  bundleFixedPriceAmount: string | null;
@@ -11919,7 +11929,6 @@ type APIOrdersBrowseResult = Omit<{
11919
11929
  } | null;
11920
11930
  type: "set" | "product" | "bundle";
11921
11931
  subscriptionMode: "optional" | "only" | "rolling";
11922
- subscriptionAddonDiscountPercent: number | null;
11923
11932
  bundleDiscountPercentage: string | null;
11924
11933
  bundlePriceMode: "fixed" | "amount" | "percent";
11925
11934
  bundleFixedPriceAmount: string | null;
@@ -12093,11 +12102,6 @@ type APIOrdersBrowseResult = Omit<{
12093
12102
  quantity: number;
12094
12103
  }[];
12095
12104
  } | null;
12096
- subscriptionAddon: {
12097
- addonId: string;
12098
- discountPercent: number;
12099
- listPrice: string;
12100
- } | null;
12101
12105
  slotId: string | null;
12102
12106
  attendees: {
12103
12107
  name: string;
@@ -12189,6 +12193,11 @@ type APIOrdersBrowseResult = Omit<{
12189
12193
  shippingAddressId: string | null;
12190
12194
  stripePaymentIntentId: string | null;
12191
12195
  checkoutSessionId: string | null;
12196
+ stripeInvoice: {
12197
+ id: string;
12198
+ amountPaid: number;
12199
+ currency: string;
12200
+ } | null;
12192
12201
  customerId: string | null;
12193
12202
  customer: {
12194
12203
  id: string;
@@ -12463,7 +12472,6 @@ type APIOrderGetByIdResult = Omit<{
12463
12472
  } | null;
12464
12473
  type: "set" | "product" | "bundle";
12465
12474
  subscriptionMode: "optional" | "only" | "rolling";
12466
- subscriptionAddonDiscountPercent: number | null;
12467
12475
  bundleDiscountPercentage: string | null;
12468
12476
  bundlePriceMode: "fixed" | "amount" | "percent";
12469
12477
  bundleFixedPriceAmount: string | null;
@@ -12636,11 +12644,6 @@ type APIOrderGetByIdResult = Omit<{
12636
12644
  quantity: number;
12637
12645
  }[];
12638
12646
  } | null;
12639
- subscriptionAddon: {
12640
- addonId: string;
12641
- discountPercent: number;
12642
- listPrice: string;
12643
- } | null;
12644
12647
  slotId: string | null;
12645
12648
  attendees: {
12646
12649
  name: string;
@@ -12732,6 +12735,11 @@ type APIOrderGetByIdResult = Omit<{
12732
12735
  shippingAddressId: string | null;
12733
12736
  stripePaymentIntentId: string | null;
12734
12737
  checkoutSessionId: string | null;
12738
+ stripeInvoice: {
12739
+ id: string;
12740
+ amountPaid: number;
12741
+ currency: string;
12742
+ } | null;
12735
12743
  customerId: string | null;
12736
12744
  customer: {
12737
12745
  id: string;
@@ -13015,7 +13023,6 @@ type APIOrderGetByIdResult = Omit<{
13015
13023
  } | null;
13016
13024
  type: "set" | "product" | "bundle";
13017
13025
  subscriptionMode: "optional" | "only" | "rolling";
13018
- subscriptionAddonDiscountPercent: number | null;
13019
13026
  bundleDiscountPercentage: string | null;
13020
13027
  bundlePriceMode: "fixed" | "amount" | "percent";
13021
13028
  bundleFixedPriceAmount: string | null;
@@ -13188,11 +13195,6 @@ type APIOrderGetByIdResult = Omit<{
13188
13195
  quantity: number;
13189
13196
  }[];
13190
13197
  } | null;
13191
- subscriptionAddon: {
13192
- addonId: string;
13193
- discountPercent: number;
13194
- listPrice: string;
13195
- } | null;
13196
13198
  slotId: string | null;
13197
13199
  attendees: {
13198
13200
  name: string;
@@ -13284,6 +13286,11 @@ type APIOrderGetByIdResult = Omit<{
13284
13286
  shippingAddressId: string | null;
13285
13287
  stripePaymentIntentId: string | null;
13286
13288
  checkoutSessionId: string | null;
13289
+ stripeInvoice: {
13290
+ id: string;
13291
+ amountPaid: number;
13292
+ currency: string;
13293
+ } | null;
13287
13294
  customerId: string | null;
13288
13295
  customer: {
13289
13296
  id: string;
@@ -13527,7 +13534,6 @@ type APIOrderGetByIdResult = Omit<{
13527
13534
  } | null;
13528
13535
  type: "set" | "product" | "bundle";
13529
13536
  subscriptionMode: "optional" | "only" | "rolling";
13530
- subscriptionAddonDiscountPercent: number | null;
13531
13537
  bundleDiscountPercentage: string | null;
13532
13538
  bundlePriceMode: "fixed" | "amount" | "percent";
13533
13539
  bundleFixedPriceAmount: string | null;
@@ -13743,7 +13749,6 @@ type APIOrderGetByIdResult = Omit<{
13743
13749
  } | null;
13744
13750
  type: "set" | "product" | "bundle";
13745
13751
  subscriptionMode: "optional" | "only" | "rolling";
13746
- subscriptionAddonDiscountPercent: number | null;
13747
13752
  bundleDiscountPercentage: string | null;
13748
13753
  bundlePriceMode: "fixed" | "amount" | "percent";
13749
13754
  bundleFixedPriceAmount: string | null;
@@ -13964,7 +13969,6 @@ type APIOrderGetByIdResult = Omit<{
13964
13969
  } | null;
13965
13970
  type: "set" | "product" | "bundle";
13966
13971
  subscriptionMode: "optional" | "only" | "rolling";
13967
- subscriptionAddonDiscountPercent: number | null;
13968
13972
  bundleDiscountPercentage: string | null;
13969
13973
  bundlePriceMode: "fixed" | "amount" | "percent";
13970
13974
  bundleFixedPriceAmount: string | null;
@@ -14185,7 +14189,6 @@ type APIOrderGetByIdResult = Omit<{
14185
14189
  } | null;
14186
14190
  type: "set" | "product" | "bundle";
14187
14191
  subscriptionMode: "optional" | "only" | "rolling";
14188
- subscriptionAddonDiscountPercent: number | null;
14189
14192
  bundleDiscountPercentage: string | null;
14190
14193
  bundlePriceMode: "fixed" | "amount" | "percent";
14191
14194
  bundleFixedPriceAmount: string | null;
@@ -14359,11 +14362,6 @@ type APIOrderGetByIdResult = Omit<{
14359
14362
  quantity: number;
14360
14363
  }[];
14361
14364
  } | null;
14362
- subscriptionAddon: {
14363
- addonId: string;
14364
- discountPercent: number;
14365
- listPrice: string;
14366
- } | null;
14367
14365
  slotId: string | null;
14368
14366
  attendees: {
14369
14367
  name: string;
@@ -14455,6 +14453,11 @@ type APIOrderGetByIdResult = Omit<{
14455
14453
  shippingAddressId: string | null;
14456
14454
  stripePaymentIntentId: string | null;
14457
14455
  checkoutSessionId: string | null;
14456
+ stripeInvoice: {
14457
+ id: string;
14458
+ amountPaid: number;
14459
+ currency: string;
14460
+ } | null;
14458
14461
  customerId: string | null;
14459
14462
  customer: {
14460
14463
  id: string;
@@ -14868,7 +14871,6 @@ type APICollectionGetByIdResult = ({
14868
14871
  images: string[];
14869
14872
  badge: unknown;
14870
14873
  subscriptionMode: "optional" | "only" | "rolling";
14871
- subscriptionAddonDiscountPercent: number | null;
14872
14874
  bundleDiscountPercentage: string | null;
14873
14875
  bundlePriceMode: "fixed" | "amount" | "percent";
14874
14876
  bundleFixedPriceAmount: string | null;
@@ -14933,7 +14935,6 @@ type APICollectionGetByIdResult = ({
14933
14935
  images: string[];
14934
14936
  badge: unknown;
14935
14937
  subscriptionMode: "optional" | "only" | "rolling";
14936
- subscriptionAddonDiscountPercent: number | null;
14937
14938
  bundleDiscountPercentage: string | null;
14938
14939
  bundlePriceMode: "fixed" | "amount" | "percent";
14939
14940
  bundleFixedPriceAmount: string | null;
@@ -15948,7 +15949,6 @@ type APICollectionUpdateResult = {
15948
15949
  images: string[];
15949
15950
  badge: unknown;
15950
15951
  subscriptionMode: "optional" | "only" | "rolling";
15951
- subscriptionAddonDiscountPercent: number | null;
15952
15952
  bundleDiscountPercentage: string | null;
15953
15953
  bundlePriceMode: "fixed" | "amount" | "percent";
15954
15954
  bundleFixedPriceAmount: string | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "commerce-kit",
4
- "version": "0.60.0",
4
+ "version": "0.61.0",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-only",
7
7
  "keywords": [