@schematichq/schematic-components 2.34.1 → 2.35.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.
@@ -5498,6 +5498,14 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
5498
5498
  };
5499
5499
  }
5500
5500
 
5501
+ // src/api/checkoutexternal/models/CheckoutChargeTiming.ts
5502
+ function CheckoutChargeTimingFromJSON(json) {
5503
+ return CheckoutChargeTimingFromJSONTyped(json, false);
5504
+ }
5505
+ function CheckoutChargeTimingFromJSONTyped(json, ignoreDiscriminator) {
5506
+ return json;
5507
+ }
5508
+
5501
5509
  // src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
5502
5510
  function CheckoutPriceSnapshotDiscountFromJSON(json) {
5503
5511
  return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
@@ -5519,6 +5527,53 @@ function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
5519
5527
  };
5520
5528
  }
5521
5529
 
5530
+ // src/api/checkoutexternal/models/ProrationLineKind.ts
5531
+ function ProrationLineKindFromJSON(json) {
5532
+ return ProrationLineKindFromJSONTyped(json, false);
5533
+ }
5534
+ function ProrationLineKindFromJSONTyped(json, ignoreDiscriminator) {
5535
+ return json;
5536
+ }
5537
+
5538
+ // src/api/checkoutexternal/models/CheckoutPriceSnapshotProrationLine.ts
5539
+ function CheckoutPriceSnapshotProrationLineFromJSON(json) {
5540
+ return CheckoutPriceSnapshotProrationLineFromJSONTyped(json, false);
5541
+ }
5542
+ function CheckoutPriceSnapshotProrationLineFromJSONTyped(json, ignoreDiscriminator) {
5543
+ if (json == null) {
5544
+ return json;
5545
+ }
5546
+ return {
5547
+ amount: json["amount"],
5548
+ kind: ProrationLineKindFromJSON(json["kind"]),
5549
+ periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
5550
+ periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
5551
+ planId: json["plan_id"] == null ? void 0 : json["plan_id"],
5552
+ priceId: json["price_id"] == null ? void 0 : json["price_id"],
5553
+ quantity: json["quantity"] == null ? void 0 : json["quantity"]
5554
+ };
5555
+ }
5556
+
5557
+ // src/api/checkoutexternal/models/CheckoutPriceSnapshotProration.ts
5558
+ function CheckoutPriceSnapshotProrationFromJSON(json) {
5559
+ return CheckoutPriceSnapshotProrationFromJSONTyped(json, false);
5560
+ }
5561
+ function CheckoutPriceSnapshotProrationFromJSONTyped(json, ignoreDiscriminator) {
5562
+ if (json == null) {
5563
+ return json;
5564
+ }
5565
+ return {
5566
+ billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
5567
+ charge: json["charge"],
5568
+ credit: json["credit"],
5569
+ lines: json["lines"].map(
5570
+ CheckoutPriceSnapshotProrationLineFromJSON
5571
+ ),
5572
+ timing: CheckoutChargeTimingFromJSON(json["timing"]),
5573
+ total: json["total"]
5574
+ };
5575
+ }
5576
+
5522
5577
  // src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
5523
5578
  function CheckoutPriceSnapshotFromJSON(json) {
5524
5579
  return CheckoutPriceSnapshotFromJSONTyped(json, false);
@@ -5530,6 +5585,8 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5530
5585
  return {
5531
5586
  amountOff: json["amount_off"],
5532
5587
  currency: CurrencyFromJSON(json["currency"]),
5588
+ customerBalanceApplied: json["customer_balance_applied"],
5589
+ customerBalanceRemaining: json["customer_balance_remaining"],
5533
5590
  discountAmount: json["discount_amount"],
5534
5591
  discounts: json["discounts"].map(
5535
5592
  CheckoutPriceSnapshotDiscountFromJSON
@@ -5546,6 +5603,7 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5546
5603
  pricedAt: new Date(json["priced_at"]),
5547
5604
  promoCodeApplied: json["promo_code_applied"],
5548
5605
  proration: json["proration"],
5606
+ prorationDetail: json["proration_detail"] == null ? void 0 : CheckoutPriceSnapshotProrationFromJSON(json["proration_detail"]),
5549
5607
  scheduledChangeTime: json["scheduled_change_time"] == null ? void 0 : new Date(json["scheduled_change_time"]),
5550
5608
  taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
5551
5609
  totalPerBillingPeriod: json["total_per_billing_period"],
@@ -8818,6 +8876,46 @@ function PreviewSubscriptionDiscountResponseDataFromJSONTyped(json, ignoreDiscri
8818
8876
  };
8819
8877
  }
8820
8878
 
8879
+ // src/api/checkoutexternal/models/PreviewSubscriptionProrationLineResponseData.ts
8880
+ function PreviewSubscriptionProrationLineResponseDataFromJSON(json) {
8881
+ return PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, false);
8882
+ }
8883
+ function PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, ignoreDiscriminator) {
8884
+ if (json == null) {
8885
+ return json;
8886
+ }
8887
+ return {
8888
+ amount: json["amount"],
8889
+ kind: ProrationLineKindFromJSON(json["kind"]),
8890
+ periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
8891
+ periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
8892
+ planId: json["plan_id"] == null ? void 0 : json["plan_id"],
8893
+ priceId: json["price_id"] == null ? void 0 : json["price_id"],
8894
+ quantity: json["quantity"] == null ? void 0 : json["quantity"]
8895
+ };
8896
+ }
8897
+
8898
+ // src/api/checkoutexternal/models/PreviewSubscriptionProrationResponseData.ts
8899
+ function PreviewSubscriptionProrationResponseDataFromJSON(json) {
8900
+ return PreviewSubscriptionProrationResponseDataFromJSONTyped(json, false);
8901
+ }
8902
+ function PreviewSubscriptionProrationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
8903
+ if (json == null) {
8904
+ return json;
8905
+ }
8906
+ return {
8907
+ billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
8908
+ charge: json["charge"],
8909
+ credit: json["credit"],
8910
+ currency: CurrencyFromJSON(json["currency"]),
8911
+ lines: json["lines"].map(
8912
+ PreviewSubscriptionProrationLineResponseDataFromJSON
8913
+ ),
8914
+ timing: CheckoutChargeTimingFromJSON(json["timing"]),
8915
+ total: json["total"]
8916
+ };
8917
+ }
8918
+
8821
8919
  // src/api/checkoutexternal/models/PreviewSubscriptionFinanceResponseData.ts
8822
8920
  function PreviewSubscriptionFinanceResponseDataFromJSON(json) {
8823
8921
  return PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, false);
@@ -8829,6 +8927,8 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
8829
8927
  return {
8830
8928
  amountOff: json["amount_off"],
8831
8929
  currency: CurrencyFromJSON(json["currency"]),
8930
+ customerBalanceApplied: json["customer_balance_applied"],
8931
+ customerBalanceRemaining: json["customer_balance_remaining"],
8832
8932
  discountAmount: json["discount_amount"],
8833
8933
  discounts: json["discounts"].map(
8834
8934
  PreviewSubscriptionDiscountResponseDataFromJSON
@@ -8841,6 +8941,9 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
8841
8941
  promoCodeApplied: json["promo_code_applied"],
8842
8942
  proration: json["proration"],
8843
8943
  prorationBilledAt: json["proration_billed_at"] == null ? void 0 : new Date(json["proration_billed_at"]),
8944
+ prorationDetail: json["proration_detail"] == null ? void 0 : PreviewSubscriptionProrationResponseDataFromJSON(
8945
+ json["proration_detail"]
8946
+ ),
8844
8947
  taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
8845
8948
  taxDisplayName: json["tax_display_name"] == null ? void 0 : json["tax_display_name"],
8846
8949
  taxRequireBillingDetails: json["tax_require_billing_details"],
@@ -10729,9 +10832,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
10729
10832
 
10730
10833
  // src/api/componentspublic/models/Currency.ts
10731
10834
  function CurrencyFromJSON2(json) {
10732
- return CurrencyFromJSONTyped40(json, false);
10835
+ return CurrencyFromJSONTyped41(json, false);
10733
10836
  }
10734
- function CurrencyFromJSONTyped40(json, ignoreDiscriminator) {
10837
+ function CurrencyFromJSONTyped41(json, ignoreDiscriminator) {
10735
10838
  return json;
10736
10839
  }
10737
10840
 
@@ -17396,7 +17499,7 @@ var reducer = (state, action) => {
17396
17499
  // src/context/EmbedProvider.tsx
17397
17500
  var import_jsx_runtime4 = require("react/jsx-runtime");
17398
17501
  var getCustomHeaders = (sessionId) => ({
17399
- "X-Schematic-Components-Version": "2.34.1",
17502
+ "X-Schematic-Components-Version": "2.35.0",
17400
17503
  "X-Schematic-Session-ID": sessionId
17401
17504
  });
17402
17505
  var normalizeCurrencyFilter = (filter2) => {
@@ -5400,6 +5400,14 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
5400
5400
  };
5401
5401
  }
5402
5402
 
5403
+ // src/api/checkoutexternal/models/CheckoutChargeTiming.ts
5404
+ function CheckoutChargeTimingFromJSON(json) {
5405
+ return CheckoutChargeTimingFromJSONTyped(json, false);
5406
+ }
5407
+ function CheckoutChargeTimingFromJSONTyped(json, ignoreDiscriminator) {
5408
+ return json;
5409
+ }
5410
+
5403
5411
  // src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
5404
5412
  function CheckoutPriceSnapshotDiscountFromJSON(json) {
5405
5413
  return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
@@ -5421,6 +5429,53 @@ function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
5421
5429
  };
5422
5430
  }
5423
5431
 
5432
+ // src/api/checkoutexternal/models/ProrationLineKind.ts
5433
+ function ProrationLineKindFromJSON(json) {
5434
+ return ProrationLineKindFromJSONTyped(json, false);
5435
+ }
5436
+ function ProrationLineKindFromJSONTyped(json, ignoreDiscriminator) {
5437
+ return json;
5438
+ }
5439
+
5440
+ // src/api/checkoutexternal/models/CheckoutPriceSnapshotProrationLine.ts
5441
+ function CheckoutPriceSnapshotProrationLineFromJSON(json) {
5442
+ return CheckoutPriceSnapshotProrationLineFromJSONTyped(json, false);
5443
+ }
5444
+ function CheckoutPriceSnapshotProrationLineFromJSONTyped(json, ignoreDiscriminator) {
5445
+ if (json == null) {
5446
+ return json;
5447
+ }
5448
+ return {
5449
+ amount: json["amount"],
5450
+ kind: ProrationLineKindFromJSON(json["kind"]),
5451
+ periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
5452
+ periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
5453
+ planId: json["plan_id"] == null ? void 0 : json["plan_id"],
5454
+ priceId: json["price_id"] == null ? void 0 : json["price_id"],
5455
+ quantity: json["quantity"] == null ? void 0 : json["quantity"]
5456
+ };
5457
+ }
5458
+
5459
+ // src/api/checkoutexternal/models/CheckoutPriceSnapshotProration.ts
5460
+ function CheckoutPriceSnapshotProrationFromJSON(json) {
5461
+ return CheckoutPriceSnapshotProrationFromJSONTyped(json, false);
5462
+ }
5463
+ function CheckoutPriceSnapshotProrationFromJSONTyped(json, ignoreDiscriminator) {
5464
+ if (json == null) {
5465
+ return json;
5466
+ }
5467
+ return {
5468
+ billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
5469
+ charge: json["charge"],
5470
+ credit: json["credit"],
5471
+ lines: json["lines"].map(
5472
+ CheckoutPriceSnapshotProrationLineFromJSON
5473
+ ),
5474
+ timing: CheckoutChargeTimingFromJSON(json["timing"]),
5475
+ total: json["total"]
5476
+ };
5477
+ }
5478
+
5424
5479
  // src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
5425
5480
  function CheckoutPriceSnapshotFromJSON(json) {
5426
5481
  return CheckoutPriceSnapshotFromJSONTyped(json, false);
@@ -5432,6 +5487,8 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5432
5487
  return {
5433
5488
  amountOff: json["amount_off"],
5434
5489
  currency: CurrencyFromJSON(json["currency"]),
5490
+ customerBalanceApplied: json["customer_balance_applied"],
5491
+ customerBalanceRemaining: json["customer_balance_remaining"],
5435
5492
  discountAmount: json["discount_amount"],
5436
5493
  discounts: json["discounts"].map(
5437
5494
  CheckoutPriceSnapshotDiscountFromJSON
@@ -5448,6 +5505,7 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5448
5505
  pricedAt: new Date(json["priced_at"]),
5449
5506
  promoCodeApplied: json["promo_code_applied"],
5450
5507
  proration: json["proration"],
5508
+ prorationDetail: json["proration_detail"] == null ? void 0 : CheckoutPriceSnapshotProrationFromJSON(json["proration_detail"]),
5451
5509
  scheduledChangeTime: json["scheduled_change_time"] == null ? void 0 : new Date(json["scheduled_change_time"]),
5452
5510
  taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
5453
5511
  totalPerBillingPeriod: json["total_per_billing_period"],
@@ -8720,6 +8778,46 @@ function PreviewSubscriptionDiscountResponseDataFromJSONTyped(json, ignoreDiscri
8720
8778
  };
8721
8779
  }
8722
8780
 
8781
+ // src/api/checkoutexternal/models/PreviewSubscriptionProrationLineResponseData.ts
8782
+ function PreviewSubscriptionProrationLineResponseDataFromJSON(json) {
8783
+ return PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, false);
8784
+ }
8785
+ function PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, ignoreDiscriminator) {
8786
+ if (json == null) {
8787
+ return json;
8788
+ }
8789
+ return {
8790
+ amount: json["amount"],
8791
+ kind: ProrationLineKindFromJSON(json["kind"]),
8792
+ periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
8793
+ periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
8794
+ planId: json["plan_id"] == null ? void 0 : json["plan_id"],
8795
+ priceId: json["price_id"] == null ? void 0 : json["price_id"],
8796
+ quantity: json["quantity"] == null ? void 0 : json["quantity"]
8797
+ };
8798
+ }
8799
+
8800
+ // src/api/checkoutexternal/models/PreviewSubscriptionProrationResponseData.ts
8801
+ function PreviewSubscriptionProrationResponseDataFromJSON(json) {
8802
+ return PreviewSubscriptionProrationResponseDataFromJSONTyped(json, false);
8803
+ }
8804
+ function PreviewSubscriptionProrationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
8805
+ if (json == null) {
8806
+ return json;
8807
+ }
8808
+ return {
8809
+ billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
8810
+ charge: json["charge"],
8811
+ credit: json["credit"],
8812
+ currency: CurrencyFromJSON(json["currency"]),
8813
+ lines: json["lines"].map(
8814
+ PreviewSubscriptionProrationLineResponseDataFromJSON
8815
+ ),
8816
+ timing: CheckoutChargeTimingFromJSON(json["timing"]),
8817
+ total: json["total"]
8818
+ };
8819
+ }
8820
+
8723
8821
  // src/api/checkoutexternal/models/PreviewSubscriptionFinanceResponseData.ts
8724
8822
  function PreviewSubscriptionFinanceResponseDataFromJSON(json) {
8725
8823
  return PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, false);
@@ -8731,6 +8829,8 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
8731
8829
  return {
8732
8830
  amountOff: json["amount_off"],
8733
8831
  currency: CurrencyFromJSON(json["currency"]),
8832
+ customerBalanceApplied: json["customer_balance_applied"],
8833
+ customerBalanceRemaining: json["customer_balance_remaining"],
8734
8834
  discountAmount: json["discount_amount"],
8735
8835
  discounts: json["discounts"].map(
8736
8836
  PreviewSubscriptionDiscountResponseDataFromJSON
@@ -8743,6 +8843,9 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
8743
8843
  promoCodeApplied: json["promo_code_applied"],
8744
8844
  proration: json["proration"],
8745
8845
  prorationBilledAt: json["proration_billed_at"] == null ? void 0 : new Date(json["proration_billed_at"]),
8846
+ prorationDetail: json["proration_detail"] == null ? void 0 : PreviewSubscriptionProrationResponseDataFromJSON(
8847
+ json["proration_detail"]
8848
+ ),
8746
8849
  taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
8747
8850
  taxDisplayName: json["tax_display_name"] == null ? void 0 : json["tax_display_name"],
8748
8851
  taxRequireBillingDetails: json["tax_require_billing_details"],
@@ -10631,9 +10734,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
10631
10734
 
10632
10735
  // src/api/componentspublic/models/Currency.ts
10633
10736
  function CurrencyFromJSON2(json) {
10634
- return CurrencyFromJSONTyped40(json, false);
10737
+ return CurrencyFromJSONTyped41(json, false);
10635
10738
  }
10636
- function CurrencyFromJSONTyped40(json, ignoreDiscriminator) {
10739
+ function CurrencyFromJSONTyped41(json, ignoreDiscriminator) {
10637
10740
  return json;
10638
10741
  }
10639
10742
 
@@ -17305,7 +17408,7 @@ var reducer = (state, action) => {
17305
17408
  // src/context/EmbedProvider.tsx
17306
17409
  import { jsx as jsx3, jsxs } from "react/jsx-runtime";
17307
17410
  var getCustomHeaders = (sessionId) => ({
17308
- "X-Schematic-Components-Version": "2.34.1",
17411
+ "X-Schematic-Components-Version": "2.35.0",
17309
17412
  "X-Schematic-Session-ID": sessionId
17310
17413
  });
17311
17414
  var normalizeCurrencyFilter = (filter2) => {
@@ -5854,6 +5854,14 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
5854
5854
  };
5855
5855
  }
5856
5856
 
5857
+ // src/api/checkoutexternal/models/CheckoutChargeTiming.ts
5858
+ function CheckoutChargeTimingFromJSON(json) {
5859
+ return CheckoutChargeTimingFromJSONTyped(json, false);
5860
+ }
5861
+ function CheckoutChargeTimingFromJSONTyped(json, ignoreDiscriminator) {
5862
+ return json;
5863
+ }
5864
+
5857
5865
  // src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
5858
5866
  function CheckoutPriceSnapshotDiscountFromJSON(json) {
5859
5867
  return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
@@ -5875,6 +5883,53 @@ function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
5875
5883
  };
5876
5884
  }
5877
5885
 
5886
+ // src/api/checkoutexternal/models/ProrationLineKind.ts
5887
+ function ProrationLineKindFromJSON(json) {
5888
+ return ProrationLineKindFromJSONTyped(json, false);
5889
+ }
5890
+ function ProrationLineKindFromJSONTyped(json, ignoreDiscriminator) {
5891
+ return json;
5892
+ }
5893
+
5894
+ // src/api/checkoutexternal/models/CheckoutPriceSnapshotProrationLine.ts
5895
+ function CheckoutPriceSnapshotProrationLineFromJSON(json) {
5896
+ return CheckoutPriceSnapshotProrationLineFromJSONTyped(json, false);
5897
+ }
5898
+ function CheckoutPriceSnapshotProrationLineFromJSONTyped(json, ignoreDiscriminator) {
5899
+ if (json == null) {
5900
+ return json;
5901
+ }
5902
+ return {
5903
+ amount: json["amount"],
5904
+ kind: ProrationLineKindFromJSON(json["kind"]),
5905
+ periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
5906
+ periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
5907
+ planId: json["plan_id"] == null ? void 0 : json["plan_id"],
5908
+ priceId: json["price_id"] == null ? void 0 : json["price_id"],
5909
+ quantity: json["quantity"] == null ? void 0 : json["quantity"]
5910
+ };
5911
+ }
5912
+
5913
+ // src/api/checkoutexternal/models/CheckoutPriceSnapshotProration.ts
5914
+ function CheckoutPriceSnapshotProrationFromJSON(json) {
5915
+ return CheckoutPriceSnapshotProrationFromJSONTyped(json, false);
5916
+ }
5917
+ function CheckoutPriceSnapshotProrationFromJSONTyped(json, ignoreDiscriminator) {
5918
+ if (json == null) {
5919
+ return json;
5920
+ }
5921
+ return {
5922
+ billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
5923
+ charge: json["charge"],
5924
+ credit: json["credit"],
5925
+ lines: json["lines"].map(
5926
+ CheckoutPriceSnapshotProrationLineFromJSON
5927
+ ),
5928
+ timing: CheckoutChargeTimingFromJSON(json["timing"]),
5929
+ total: json["total"]
5930
+ };
5931
+ }
5932
+
5878
5933
  // src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
5879
5934
  function CheckoutPriceSnapshotFromJSON(json) {
5880
5935
  return CheckoutPriceSnapshotFromJSONTyped(json, false);
@@ -5886,6 +5941,8 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5886
5941
  return {
5887
5942
  amountOff: json["amount_off"],
5888
5943
  currency: CurrencyFromJSON(json["currency"]),
5944
+ customerBalanceApplied: json["customer_balance_applied"],
5945
+ customerBalanceRemaining: json["customer_balance_remaining"],
5889
5946
  discountAmount: json["discount_amount"],
5890
5947
  discounts: json["discounts"].map(
5891
5948
  CheckoutPriceSnapshotDiscountFromJSON
@@ -5902,6 +5959,7 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5902
5959
  pricedAt: new Date(json["priced_at"]),
5903
5960
  promoCodeApplied: json["promo_code_applied"],
5904
5961
  proration: json["proration"],
5962
+ prorationDetail: json["proration_detail"] == null ? void 0 : CheckoutPriceSnapshotProrationFromJSON(json["proration_detail"]),
5905
5963
  scheduledChangeTime: json["scheduled_change_time"] == null ? void 0 : new Date(json["scheduled_change_time"]),
5906
5964
  taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
5907
5965
  totalPerBillingPeriod: json["total_per_billing_period"],
@@ -9174,6 +9232,46 @@ function PreviewSubscriptionDiscountResponseDataFromJSONTyped(json, ignoreDiscri
9174
9232
  };
9175
9233
  }
9176
9234
 
9235
+ // src/api/checkoutexternal/models/PreviewSubscriptionProrationLineResponseData.ts
9236
+ function PreviewSubscriptionProrationLineResponseDataFromJSON(json) {
9237
+ return PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, false);
9238
+ }
9239
+ function PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9240
+ if (json == null) {
9241
+ return json;
9242
+ }
9243
+ return {
9244
+ amount: json["amount"],
9245
+ kind: ProrationLineKindFromJSON(json["kind"]),
9246
+ periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
9247
+ periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
9248
+ planId: json["plan_id"] == null ? void 0 : json["plan_id"],
9249
+ priceId: json["price_id"] == null ? void 0 : json["price_id"],
9250
+ quantity: json["quantity"] == null ? void 0 : json["quantity"]
9251
+ };
9252
+ }
9253
+
9254
+ // src/api/checkoutexternal/models/PreviewSubscriptionProrationResponseData.ts
9255
+ function PreviewSubscriptionProrationResponseDataFromJSON(json) {
9256
+ return PreviewSubscriptionProrationResponseDataFromJSONTyped(json, false);
9257
+ }
9258
+ function PreviewSubscriptionProrationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9259
+ if (json == null) {
9260
+ return json;
9261
+ }
9262
+ return {
9263
+ billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
9264
+ charge: json["charge"],
9265
+ credit: json["credit"],
9266
+ currency: CurrencyFromJSON(json["currency"]),
9267
+ lines: json["lines"].map(
9268
+ PreviewSubscriptionProrationLineResponseDataFromJSON
9269
+ ),
9270
+ timing: CheckoutChargeTimingFromJSON(json["timing"]),
9271
+ total: json["total"]
9272
+ };
9273
+ }
9274
+
9177
9275
  // src/api/checkoutexternal/models/PreviewSubscriptionFinanceResponseData.ts
9178
9276
  function PreviewSubscriptionFinanceResponseDataFromJSON(json) {
9179
9277
  return PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, false);
@@ -9185,6 +9283,8 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
9185
9283
  return {
9186
9284
  amountOff: json["amount_off"],
9187
9285
  currency: CurrencyFromJSON(json["currency"]),
9286
+ customerBalanceApplied: json["customer_balance_applied"],
9287
+ customerBalanceRemaining: json["customer_balance_remaining"],
9188
9288
  discountAmount: json["discount_amount"],
9189
9289
  discounts: json["discounts"].map(
9190
9290
  PreviewSubscriptionDiscountResponseDataFromJSON
@@ -9197,6 +9297,9 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
9197
9297
  promoCodeApplied: json["promo_code_applied"],
9198
9298
  proration: json["proration"],
9199
9299
  prorationBilledAt: json["proration_billed_at"] == null ? void 0 : new Date(json["proration_billed_at"]),
9300
+ prorationDetail: json["proration_detail"] == null ? void 0 : PreviewSubscriptionProrationResponseDataFromJSON(
9301
+ json["proration_detail"]
9302
+ ),
9200
9303
  taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
9201
9304
  taxDisplayName: json["tax_display_name"] == null ? void 0 : json["tax_display_name"],
9202
9305
  taxRequireBillingDetails: json["tax_require_billing_details"],
@@ -11085,9 +11188,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
11085
11188
 
11086
11189
  // src/api/componentspublic/models/Currency.ts
11087
11190
  function CurrencyFromJSON2(json) {
11088
- return CurrencyFromJSONTyped40(json, false);
11191
+ return CurrencyFromJSONTyped41(json, false);
11089
11192
  }
11090
- function CurrencyFromJSONTyped40(json, ignoreDiscriminator) {
11193
+ function CurrencyFromJSONTyped41(json, ignoreDiscriminator) {
11091
11194
  return json;
11092
11195
  }
11093
11196
 
@@ -17753,7 +17856,7 @@ var reducer = (state, action) => {
17753
17856
  // src/context/EmbedProvider.tsx
17754
17857
  var import_jsx_runtime4 = require("react/jsx-runtime");
17755
17858
  var getCustomHeaders = (sessionId) => ({
17756
- "X-Schematic-Components-Version": "2.34.1",
17859
+ "X-Schematic-Components-Version": "2.35.0",
17757
17860
  "X-Schematic-Session-ID": sessionId
17758
17861
  });
17759
17862
  var normalizeCurrencyFilter = (filter) => {
@@ -3526,6 +3526,18 @@ declare const CheckoutBundlePurchaseBehavior: {
3526
3526
 
3527
3527
  declare type CheckoutBundlePurchaseBehavior = (typeof CheckoutBundlePurchaseBehavior)[keyof typeof CheckoutBundlePurchaseBehavior];
3528
3528
 
3529
+ /**
3530
+ *
3531
+ * @export
3532
+ */
3533
+ declare const CheckoutChargeTiming: {
3534
+ readonly AtRenewal: "at_renewal";
3535
+ readonly None: "none";
3536
+ readonly Now: "now";
3537
+ };
3538
+
3539
+ declare type CheckoutChargeTiming = (typeof CheckoutChargeTiming)[keyof typeof CheckoutChargeTiming];
3540
+
3529
3541
  export declare const CheckoutDialog: ({ top }: CheckoutDialogProps) => JSX.Element | null;
3530
3542
 
3531
3543
  declare interface CheckoutDialogProps {
@@ -13510,6 +13522,18 @@ declare interface PreviewSubscriptionFinanceResponseData {
13510
13522
  * @memberof PreviewSubscriptionFinanceResponseData
13511
13523
  */
13512
13524
  currency: Currency;
13525
+ /**
13526
+ * What the company's stored credit covers of this invoice, in minor units.
13527
+ * @type {number}
13528
+ * @memberof PreviewSubscriptionFinanceResponseData
13529
+ */
13530
+ customerBalanceApplied: number;
13531
+ /**
13532
+ * Credit left on the company's balance after this invoice, in minor units: what it did not consume, plus what a total below zero adds, which the provider applies to later invoices.
13533
+ * @type {number}
13534
+ * @memberof PreviewSubscriptionFinanceResponseData
13535
+ */
13536
+ customerBalanceRemaining: number;
13513
13537
  /**
13514
13538
  *
13515
13539
  * @type {number}
@@ -13570,6 +13594,12 @@ declare interface PreviewSubscriptionFinanceResponseData {
13570
13594
  * @memberof PreviewSubscriptionFinanceResponseData
13571
13595
  */
13572
13596
  prorationBilledAt?: Date | null;
13597
+ /**
13598
+ * The proration itemized in the cart's terms, by plan and price. Null when the change prorates nothing. upcoming_invoice_line_items stays as the billing provider reported it.
13599
+ * @type {PreviewSubscriptionProrationResponseData}
13600
+ * @memberof PreviewSubscriptionFinanceResponseData
13601
+ */
13602
+ prorationDetail?: PreviewSubscriptionProrationResponseData;
13573
13603
  /**
13574
13604
  *
13575
13605
  * @type {number}
@@ -13608,6 +13638,106 @@ declare interface PreviewSubscriptionFinanceResponseData {
13608
13638
  upcomingInvoiceLineItems: Array<PreviewSubscriptionUpcomingInvoiceLineItems>;
13609
13639
  }
13610
13640
 
13641
+ /**
13642
+ *
13643
+ * @export
13644
+ * @interface PreviewSubscriptionProrationLineResponseData
13645
+ */
13646
+ declare interface PreviewSubscriptionProrationLineResponseData {
13647
+ /**
13648
+ * In minor units of the block's currency; negative on a credit.
13649
+ * @type {number}
13650
+ * @memberof PreviewSubscriptionProrationLineResponseData
13651
+ */
13652
+ amount: number;
13653
+ /**
13654
+ *
13655
+ * @type {ProrationLineKind}
13656
+ * @memberof PreviewSubscriptionProrationLineResponseData
13657
+ */
13658
+ kind: ProrationLineKind;
13659
+ /**
13660
+ *
13661
+ * @type {Date}
13662
+ * @memberof PreviewSubscriptionProrationLineResponseData
13663
+ */
13664
+ periodEnd?: Date | null;
13665
+ /**
13666
+ *
13667
+ * @type {Date}
13668
+ * @memberof PreviewSubscriptionProrationLineResponseData
13669
+ */
13670
+ periodStart?: Date | null;
13671
+ /**
13672
+ * The plan or add-on in the cart the price belongs to. Null for a price the subscription carries outside the cart.
13673
+ * @type {string}
13674
+ * @memberof PreviewSubscriptionProrationLineResponseData
13675
+ */
13676
+ planId?: string | null;
13677
+ /**
13678
+ * The Schematic price. Null when the provider priced something Schematic does not carry.
13679
+ * @type {string}
13680
+ * @memberof PreviewSubscriptionProrationLineResponseData
13681
+ */
13682
+ priceId?: string | null;
13683
+ /**
13684
+ *
13685
+ * @type {number}
13686
+ * @memberof PreviewSubscriptionProrationLineResponseData
13687
+ */
13688
+ quantity?: number | null;
13689
+ }
13690
+
13691
+ /**
13692
+ *
13693
+ * @export
13694
+ * @interface PreviewSubscriptionProrationResponseData
13695
+ */
13696
+ declare interface PreviewSubscriptionProrationResponseData {
13697
+ /**
13698
+ * When the proration is charged: the change for now, the period's end for at_renewal. Null when nothing is charged.
13699
+ * @type {Date}
13700
+ * @memberof PreviewSubscriptionProrationResponseData
13701
+ */
13702
+ billedAt?: Date | null;
13703
+ /**
13704
+ * Sum of the charge lines, in minor units, before tax.
13705
+ * @type {number}
13706
+ * @memberof PreviewSubscriptionProrationResponseData
13707
+ */
13708
+ charge: number;
13709
+ /**
13710
+ * Sum of the credit lines, in minor units, before tax: zero or below.
13711
+ * @type {number}
13712
+ * @memberof PreviewSubscriptionProrationResponseData
13713
+ */
13714
+ credit: number;
13715
+ /**
13716
+ *
13717
+ * @type {Currency}
13718
+ * @memberof PreviewSubscriptionProrationResponseData
13719
+ */
13720
+ currency: Currency;
13721
+ /**
13722
+ *
13723
+ * @type {Array<PreviewSubscriptionProrationLineResponseData>}
13724
+ * @memberof PreviewSubscriptionProrationResponseData
13725
+ */
13726
+ lines: Array<PreviewSubscriptionProrationLineResponseData>;
13727
+ /**
13728
+ * When the proration is charged: now, at_renewal, or none when it nets to nothing.
13729
+ * @type {CheckoutChargeTiming}
13730
+ * @memberof PreviewSubscriptionProrationResponseData
13731
+ */
13732
+ timing: CheckoutChargeTiming;
13733
+ /**
13734
+ * credit plus charge, before tax. Equals proration.
13735
+ * @type {number}
13736
+ * @memberof PreviewSubscriptionProrationResponseData
13737
+ */
13738
+ total: number;
13739
+ }
13740
+
13611
13741
  /**
13612
13742
  * Schematic API
13613
13743
  * Schematic API
@@ -13692,6 +13822,17 @@ declare const ProrationBehavior: {
13692
13822
 
13693
13823
  declare type ProrationBehavior = (typeof ProrationBehavior)[keyof typeof ProrationBehavior];
13694
13824
 
13825
+ /**
13826
+ *
13827
+ * @export
13828
+ */
13829
+ declare const ProrationLineKind: {
13830
+ readonly Charge: "charge";
13831
+ readonly Credit: "credit";
13832
+ };
13833
+
13834
+ declare type ProrationLineKind = (typeof ProrationLineKind)[keyof typeof ProrationLineKind];
13835
+
13695
13836
  /**
13696
13837
  *
13697
13838
  * @export