@schematichq/schematic-components 2.34.0 → 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.
@@ -4560,6 +4560,24 @@ function PreviewObjectResponseDataFromJSONTyped(json, ignoreDiscriminator) {
4560
4560
  };
4561
4561
  }
4562
4562
 
4563
+ // src/api/checkoutexternal/models/BillingPlanCreditGrantWarningTierResponseData.ts
4564
+ function BillingPlanCreditGrantWarningTierResponseDataFromJSON(json) {
4565
+ return BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(
4566
+ json,
4567
+ false
4568
+ );
4569
+ }
4570
+ function BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
4571
+ if (json == null) {
4572
+ return json;
4573
+ }
4574
+ return {
4575
+ id: json["id"],
4576
+ key: json["key"],
4577
+ value: json["value"]
4578
+ };
4579
+ }
4580
+
4563
4581
  // src/api/checkoutexternal/models/BillingPlanCreditGrantResponseData.ts
4564
4582
  function BillingPlanCreditGrantResponseDataFromJSON(json) {
4565
4583
  return BillingPlanCreditGrantResponseDataFromJSONTyped(json, false);
@@ -4620,7 +4638,10 @@ function BillingPlanCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminat
4620
4638
  tierMode: json["tier_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tier_mode"]),
4621
4639
  unitPrice: json["unit_price"] == null ? void 0 : json["unit_price"],
4622
4640
  unitPriceDecimal: json["unit_price_decimal"] == null ? void 0 : json["unit_price_decimal"],
4623
- updatedAt: new Date(json["updated_at"])
4641
+ updatedAt: new Date(json["updated_at"]),
4642
+ warningTiers: json["warning_tiers"].map(
4643
+ BillingPlanCreditGrantWarningTierResponseDataFromJSON
4644
+ )
4624
4645
  };
4625
4646
  }
4626
4647
 
@@ -5477,6 +5498,82 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
5477
5498
  };
5478
5499
  }
5479
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
+
5509
+ // src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
5510
+ function CheckoutPriceSnapshotDiscountFromJSON(json) {
5511
+ return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
5512
+ }
5513
+ function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
5514
+ if (json == null) {
5515
+ return json;
5516
+ }
5517
+ return {
5518
+ amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
5519
+ couponExternalId: json["coupon_external_id"],
5520
+ couponName: json["coupon_name"],
5521
+ currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
5522
+ customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
5523
+ duration: json["duration"],
5524
+ durationInMonths: json["duration_in_months"] == null ? void 0 : json["duration_in_months"],
5525
+ percentOff: json["percent_off"] == null ? void 0 : json["percent_off"],
5526
+ promoCodeExternalId: json["promo_code_external_id"] == null ? void 0 : json["promo_code_external_id"]
5527
+ };
5528
+ }
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
+
5480
5577
  // src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
5481
5578
  function CheckoutPriceSnapshotFromJSON(json) {
5482
5579
  return CheckoutPriceSnapshotFromJSONTyped(json, false);
@@ -5488,6 +5585,12 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5488
5585
  return {
5489
5586
  amountOff: json["amount_off"],
5490
5587
  currency: CurrencyFromJSON(json["currency"]),
5588
+ customerBalanceApplied: json["customer_balance_applied"],
5589
+ customerBalanceRemaining: json["customer_balance_remaining"],
5590
+ discountAmount: json["discount_amount"],
5591
+ discounts: json["discounts"].map(
5592
+ CheckoutPriceSnapshotDiscountFromJSON
5593
+ ),
5491
5594
  dueNow: json["due_now"],
5492
5595
  isScheduledDowngrade: json["is_scheduled_downgrade"],
5493
5596
  newCharges: json["new_charges"],
@@ -5500,6 +5603,7 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5500
5603
  pricedAt: new Date(json["priced_at"]),
5501
5604
  promoCodeApplied: json["promo_code_applied"],
5502
5605
  proration: json["proration"],
5606
+ prorationDetail: json["proration_detail"] == null ? void 0 : CheckoutPriceSnapshotProrationFromJSON(json["proration_detail"]),
5503
5607
  scheduledChangeTime: json["scheduled_change_time"] == null ? void 0 : new Date(json["scheduled_change_time"]),
5504
5608
  taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
5505
5609
  totalPerBillingPeriod: json["total_per_billing_period"],
@@ -5754,6 +5858,22 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
5754
5858
  };
5755
5859
  }
5756
5860
 
5861
+ // src/api/checkoutexternal/models/Collector.ts
5862
+ function CollectorFromJSON(json) {
5863
+ return CollectorFromJSONTyped(json, false);
5864
+ }
5865
+ function CollectorFromJSONTyped(json, ignoreDiscriminator) {
5866
+ return json;
5867
+ }
5868
+
5869
+ // src/api/checkoutexternal/models/PaymentGating.ts
5870
+ function PaymentGatingFromJSON(json) {
5871
+ return PaymentGatingFromJSONTyped(json, false);
5872
+ }
5873
+ function PaymentGatingFromJSONTyped(json, ignoreDiscriminator) {
5874
+ return json;
5875
+ }
5876
+
5757
5877
  // src/api/checkoutexternal/models/CompanyBillingProfileResponseData.ts
5758
5878
  function CompanyBillingProfileResponseDataFromJSON(json) {
5759
5879
  return CompanyBillingProfileResponseDataFromJSONTyped(json, false);
@@ -5768,16 +5888,22 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
5768
5888
  collectionMethod: BillingCollectionMethodFromJSON(
5769
5889
  json["collection_method"]
5770
5890
  ),
5891
+ collector: json["collector"] == null ? void 0 : CollectorFromJSON(json["collector"]),
5771
5892
  companyId: json["company_id"],
5772
5893
  createdAt: new Date(json["created_at"]),
5894
+ currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
5773
5895
  daysUntilDue: json["days_until_due"] == null ? void 0 : json["days_until_due"],
5774
5896
  environmentId: json["environment_id"],
5897
+ gatingDays: json["gating_days"],
5775
5898
  id: json["id"],
5776
5899
  isDefault: json["is_default"],
5777
5900
  name: json["name"] == null ? void 0 : json["name"],
5901
+ overdraftLimit: json["overdraft_limit"] == null ? void 0 : json["overdraft_limit"],
5902
+ paymentGating: PaymentGatingFromJSON(json["payment_gating"]),
5778
5903
  paymentMethodId: json["payment_method_id"] == null ? void 0 : json["payment_method_id"],
5779
5904
  prorationBehavior: json["proration_behavior"] == null ? void 0 : ProrationBehaviorFromJSON(json["proration_behavior"]),
5780
5905
  providerType: BillingProviderTypeFromJSON(json["provider_type"]),
5906
+ purchaseOrder: json["purchase_order"] == null ? void 0 : json["purchase_order"],
5781
5907
  updatedAt: new Date(json["updated_at"])
5782
5908
  };
5783
5909
  }
@@ -6372,6 +6498,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6372
6498
  companyId: json["company_id"],
6373
6499
  createdAt: new Date(json["created_at"]),
6374
6500
  daysUntilDue: json["days_until_due"],
6501
+ endDate: json["end_date"] == null ? void 0 : new Date(json["end_date"]),
6375
6502
  externalInvoiceId: json["external_invoice_id"] == null ? void 0 : json["external_invoice_id"],
6376
6503
  id: json["id"],
6377
6504
  migrationId: json["migration_id"] == null ? void 0 : json["migration_id"],
@@ -7247,7 +7374,7 @@ function FlagInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7247
7374
  }
7248
7375
  return {
7249
7376
  createdAt: new Date(json["created_at"]),
7250
- defaultValue: json["default_value"],
7377
+ defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
7251
7378
  description: json["description"],
7252
7379
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON(json["feature"]),
7253
7380
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
@@ -7407,6 +7534,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator)
7407
7534
  };
7408
7535
  }
7409
7536
 
7537
+ // src/api/checkoutexternal/models/RenewalPolicy.ts
7538
+ function RenewalPolicyFromJSON(json) {
7539
+ return RenewalPolicyFromJSONTyped(json, false);
7540
+ }
7541
+ function RenewalPolicyFromJSONTyped(json, ignoreDiscriminator) {
7542
+ return json;
7543
+ }
7544
+
7410
7545
  // src/api/checkoutexternal/models/PlanVersionResponseData.ts
7411
7546
  function PlanVersionResponseDataFromJSON(json) {
7412
7547
  return PlanVersionResponseDataFromJSONTyped(json, false);
@@ -7424,6 +7559,7 @@ function PlanVersionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7424
7559
  name: json["name"],
7425
7560
  originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
7426
7561
  planType: PlanTypeFromJSON(json["plan_type"]),
7562
+ renewalPolicy: RenewalPolicyFromJSON(json["renewal_policy"]),
7427
7563
  status: PlanVersionStatusFromJSON(json["status"]),
7428
7564
  updatedAt: new Date(json["updated_at"]),
7429
7565
  version: json["version"]
@@ -8740,6 +8876,46 @@ function PreviewSubscriptionDiscountResponseDataFromJSONTyped(json, ignoreDiscri
8740
8876
  };
8741
8877
  }
8742
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
+
8743
8919
  // src/api/checkoutexternal/models/PreviewSubscriptionFinanceResponseData.ts
8744
8920
  function PreviewSubscriptionFinanceResponseDataFromJSON(json) {
8745
8921
  return PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, false);
@@ -8751,6 +8927,8 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
8751
8927
  return {
8752
8928
  amountOff: json["amount_off"],
8753
8929
  currency: CurrencyFromJSON(json["currency"]),
8930
+ customerBalanceApplied: json["customer_balance_applied"],
8931
+ customerBalanceRemaining: json["customer_balance_remaining"],
8754
8932
  discountAmount: json["discount_amount"],
8755
8933
  discounts: json["discounts"].map(
8756
8934
  PreviewSubscriptionDiscountResponseDataFromJSON
@@ -8763,6 +8941,9 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
8763
8941
  promoCodeApplied: json["promo_code_applied"],
8764
8942
  proration: json["proration"],
8765
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
+ ),
8766
8947
  taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
8767
8948
  taxDisplayName: json["tax_display_name"] == null ? void 0 : json["tax_display_name"],
8768
8949
  taxRequireBillingDetails: json["tax_require_billing_details"],
@@ -8999,6 +9180,11 @@ var CheckoutexternalApi = class extends BaseAPI {
8999
9180
  const queryParameters = {};
9000
9181
  const headerParameters = {};
9001
9182
  headerParameters["Content-Type"] = "application/json";
9183
+ if (requestParameters["xCheckoutSessionID"] != null) {
9184
+ headerParameters["X-Checkout-Session-ID"] = String(
9185
+ requestParameters["xCheckoutSessionID"]
9186
+ );
9187
+ }
9002
9188
  if (this.configuration && this.configuration.apiKey) {
9003
9189
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
9004
9190
  "X-Schematic-Api-Key"
@@ -9232,6 +9418,11 @@ var CheckoutexternalApi = class extends BaseAPI {
9232
9418
  const queryParameters = {};
9233
9419
  const headerParameters = {};
9234
9420
  headerParameters["Content-Type"] = "application/json";
9421
+ if (requestParameters["xCheckoutSessionID"] != null) {
9422
+ headerParameters["X-Checkout-Session-ID"] = String(
9423
+ requestParameters["xCheckoutSessionID"]
9424
+ );
9425
+ }
9235
9426
  if (this.configuration && this.configuration.apiKey) {
9236
9427
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
9237
9428
  "X-Schematic-Api-Key"
@@ -10641,9 +10832,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
10641
10832
 
10642
10833
  // src/api/componentspublic/models/Currency.ts
10643
10834
  function CurrencyFromJSON2(json) {
10644
- return CurrencyFromJSONTyped38(json, false);
10835
+ return CurrencyFromJSONTyped41(json, false);
10645
10836
  }
10646
- function CurrencyFromJSONTyped38(json, ignoreDiscriminator) {
10837
+ function CurrencyFromJSONTyped41(json, ignoreDiscriminator) {
10647
10838
  return json;
10648
10839
  }
10649
10840
 
@@ -11031,14 +11222,6 @@ function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
11031
11222
  return json;
11032
11223
  }
11033
11224
 
11034
- // src/api/componentspublic/models/ChargeType.ts
11035
- function ChargeTypeFromJSON2(json) {
11036
- return ChargeTypeFromJSONTyped7(json, false);
11037
- }
11038
- function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
11039
- return json;
11040
- }
11041
-
11042
11225
  // src/api/componentspublic/models/EntitlementValueType.ts
11043
11226
  function EntitlementValueTypeFromJSON2(json) {
11044
11227
  return EntitlementValueTypeFromJSONTyped10(json, false);
@@ -11047,6 +11230,14 @@ function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
11047
11230
  return json;
11048
11231
  }
11049
11232
 
11233
+ // src/api/componentspublic/models/FeatureType.ts
11234
+ function FeatureTypeFromJSON2(json) {
11235
+ return FeatureTypeFromJSONTyped7(json, false);
11236
+ }
11237
+ function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
11238
+ return json;
11239
+ }
11240
+
11050
11241
  // src/api/componentspublic/models/MetricPeriodMonthReset.ts
11051
11242
  function MetricPeriodMonthResetFromJSON2(json) {
11052
11243
  return MetricPeriodMonthResetFromJSONTyped14(json, false);
@@ -11063,6 +11254,30 @@ function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
11063
11254
  return json;
11064
11255
  }
11065
11256
 
11257
+ // src/api/componentspublic/models/EntitlementPriceBehavior.ts
11258
+ function EntitlementPriceBehaviorFromJSON2(json) {
11259
+ return EntitlementPriceBehaviorFromJSONTyped8(json, false);
11260
+ }
11261
+ function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
11262
+ return json;
11263
+ }
11264
+
11265
+ // src/api/componentspublic/models/ChargeType.ts
11266
+ function ChargeTypeFromJSON2(json) {
11267
+ return ChargeTypeFromJSONTyped7(json, false);
11268
+ }
11269
+ function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
11270
+ return json;
11271
+ }
11272
+
11273
+ // src/api/componentspublic/models/PlanPriceCadence.ts
11274
+ function PlanPriceCadenceFromJSON2(json) {
11275
+ return PlanPriceCadenceFromJSONTyped7(json, false);
11276
+ }
11277
+ function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
11278
+ return json;
11279
+ }
11280
+
11066
11281
  // src/api/componentspublic/models/RuleType.ts
11067
11282
  function RuleTypeFromJSON2(json) {
11068
11283
  return RuleTypeFromJSONTyped5(json, false);
@@ -11165,14 +11380,6 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
11165
11380
  };
11166
11381
  }
11167
11382
 
11168
- // src/api/componentspublic/models/EntitlementPriceBehavior.ts
11169
- function EntitlementPriceBehaviorFromJSON2(json) {
11170
- return EntitlementPriceBehaviorFromJSONTyped8(json, false);
11171
- }
11172
- function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
11173
- return json;
11174
- }
11175
-
11176
11383
  // src/api/componentspublic/models/EntityType.ts
11177
11384
  function EntityTypeFromJSON2(json) {
11178
11385
  return EntityTypeFromJSONTyped9(json, false);
@@ -11234,14 +11441,6 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
11234
11441
  return json;
11235
11442
  }
11236
11443
 
11237
- // src/api/componentspublic/models/FeatureType.ts
11238
- function FeatureTypeFromJSON2(json) {
11239
- return FeatureTypeFromJSONTyped7(json, false);
11240
- }
11241
- function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
11242
- return json;
11243
- }
11244
-
11245
11444
  // src/api/componentspublic/models/PreviewObject.ts
11246
11445
  function PreviewObjectFromJSON2(json) {
11247
11446
  return PreviewObjectFromJSONTyped3(json, false);
@@ -11422,7 +11621,7 @@ function FlagInPlanResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
11422
11621
  }
11423
11622
  return {
11424
11623
  createdAt: new Date(json["created_at"]),
11425
- defaultValue: json["default_value"],
11624
+ defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
11426
11625
  description: json["description"],
11427
11626
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON2(json["feature"]),
11428
11627
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
@@ -11592,14 +11791,6 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
11592
11791
  };
11593
11792
  }
11594
11793
 
11595
- // src/api/componentspublic/models/PlanPriceCadence.ts
11596
- function PlanPriceCadenceFromJSON2(json) {
11597
- return PlanPriceCadenceFromJSONTyped7(json, false);
11598
- }
11599
- function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
11600
- return json;
11601
- }
11602
-
11603
11794
  // src/api/componentspublic/models/PlanCreditGrantView.ts
11604
11795
  function PlanCreditGrantViewFromJSON2(json) {
11605
11796
  return PlanCreditGrantViewFromJSONTyped3(json, false);
@@ -11695,6 +11886,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped5(json, ignoreDiscriminator)
11695
11886
  };
11696
11887
  }
11697
11888
 
11889
+ // src/api/componentspublic/models/RenewalPolicy.ts
11890
+ function RenewalPolicyFromJSON2(json) {
11891
+ return RenewalPolicyFromJSONTyped3(json, false);
11892
+ }
11893
+ function RenewalPolicyFromJSONTyped3(json, ignoreDiscriminator) {
11894
+ return json;
11895
+ }
11896
+
11698
11897
  // src/api/componentspublic/models/PlanVersionResponseData.ts
11699
11898
  function PlanVersionResponseDataFromJSON2(json) {
11700
11899
  return PlanVersionResponseDataFromJSONTyped5(json, false);
@@ -11712,6 +11911,7 @@ function PlanVersionResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
11712
11911
  name: json["name"],
11713
11912
  originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
11714
11913
  planType: PlanTypeFromJSON2(json["plan_type"]),
11914
+ renewalPolicy: RenewalPolicyFromJSON2(json["renewal_policy"]),
11715
11915
  status: PlanVersionStatusFromJSON2(json["status"]),
11716
11916
  updatedAt: new Date(json["updated_at"]),
11717
11917
  version: json["version"]
@@ -17299,7 +17499,7 @@ var reducer = (state, action) => {
17299
17499
  // src/context/EmbedProvider.tsx
17300
17500
  var import_jsx_runtime4 = require("react/jsx-runtime");
17301
17501
  var getCustomHeaders = (sessionId) => ({
17302
- "X-Schematic-Components-Version": "2.34.0",
17502
+ "X-Schematic-Components-Version": "2.35.0",
17303
17503
  "X-Schematic-Session-ID": sessionId
17304
17504
  });
17305
17505
  var normalizeCurrencyFilter = (filter2) => {