@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.
@@ -4462,6 +4462,24 @@ function PreviewObjectResponseDataFromJSONTyped(json, ignoreDiscriminator) {
4462
4462
  };
4463
4463
  }
4464
4464
 
4465
+ // src/api/checkoutexternal/models/BillingPlanCreditGrantWarningTierResponseData.ts
4466
+ function BillingPlanCreditGrantWarningTierResponseDataFromJSON(json) {
4467
+ return BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(
4468
+ json,
4469
+ false
4470
+ );
4471
+ }
4472
+ function BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
4473
+ if (json == null) {
4474
+ return json;
4475
+ }
4476
+ return {
4477
+ id: json["id"],
4478
+ key: json["key"],
4479
+ value: json["value"]
4480
+ };
4481
+ }
4482
+
4465
4483
  // src/api/checkoutexternal/models/BillingPlanCreditGrantResponseData.ts
4466
4484
  function BillingPlanCreditGrantResponseDataFromJSON(json) {
4467
4485
  return BillingPlanCreditGrantResponseDataFromJSONTyped(json, false);
@@ -4522,7 +4540,10 @@ function BillingPlanCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminat
4522
4540
  tierMode: json["tier_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tier_mode"]),
4523
4541
  unitPrice: json["unit_price"] == null ? void 0 : json["unit_price"],
4524
4542
  unitPriceDecimal: json["unit_price_decimal"] == null ? void 0 : json["unit_price_decimal"],
4525
- updatedAt: new Date(json["updated_at"])
4543
+ updatedAt: new Date(json["updated_at"]),
4544
+ warningTiers: json["warning_tiers"].map(
4545
+ BillingPlanCreditGrantWarningTierResponseDataFromJSON
4546
+ )
4526
4547
  };
4527
4548
  }
4528
4549
 
@@ -5379,6 +5400,82 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
5379
5400
  };
5380
5401
  }
5381
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
+
5411
+ // src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
5412
+ function CheckoutPriceSnapshotDiscountFromJSON(json) {
5413
+ return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
5414
+ }
5415
+ function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
5416
+ if (json == null) {
5417
+ return json;
5418
+ }
5419
+ return {
5420
+ amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
5421
+ couponExternalId: json["coupon_external_id"],
5422
+ couponName: json["coupon_name"],
5423
+ currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
5424
+ customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
5425
+ duration: json["duration"],
5426
+ durationInMonths: json["duration_in_months"] == null ? void 0 : json["duration_in_months"],
5427
+ percentOff: json["percent_off"] == null ? void 0 : json["percent_off"],
5428
+ promoCodeExternalId: json["promo_code_external_id"] == null ? void 0 : json["promo_code_external_id"]
5429
+ };
5430
+ }
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
+
5382
5479
  // src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
5383
5480
  function CheckoutPriceSnapshotFromJSON(json) {
5384
5481
  return CheckoutPriceSnapshotFromJSONTyped(json, false);
@@ -5390,6 +5487,12 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5390
5487
  return {
5391
5488
  amountOff: json["amount_off"],
5392
5489
  currency: CurrencyFromJSON(json["currency"]),
5490
+ customerBalanceApplied: json["customer_balance_applied"],
5491
+ customerBalanceRemaining: json["customer_balance_remaining"],
5492
+ discountAmount: json["discount_amount"],
5493
+ discounts: json["discounts"].map(
5494
+ CheckoutPriceSnapshotDiscountFromJSON
5495
+ ),
5393
5496
  dueNow: json["due_now"],
5394
5497
  isScheduledDowngrade: json["is_scheduled_downgrade"],
5395
5498
  newCharges: json["new_charges"],
@@ -5402,6 +5505,7 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5402
5505
  pricedAt: new Date(json["priced_at"]),
5403
5506
  promoCodeApplied: json["promo_code_applied"],
5404
5507
  proration: json["proration"],
5508
+ prorationDetail: json["proration_detail"] == null ? void 0 : CheckoutPriceSnapshotProrationFromJSON(json["proration_detail"]),
5405
5509
  scheduledChangeTime: json["scheduled_change_time"] == null ? void 0 : new Date(json["scheduled_change_time"]),
5406
5510
  taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
5407
5511
  totalPerBillingPeriod: json["total_per_billing_period"],
@@ -5656,6 +5760,22 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
5656
5760
  };
5657
5761
  }
5658
5762
 
5763
+ // src/api/checkoutexternal/models/Collector.ts
5764
+ function CollectorFromJSON(json) {
5765
+ return CollectorFromJSONTyped(json, false);
5766
+ }
5767
+ function CollectorFromJSONTyped(json, ignoreDiscriminator) {
5768
+ return json;
5769
+ }
5770
+
5771
+ // src/api/checkoutexternal/models/PaymentGating.ts
5772
+ function PaymentGatingFromJSON(json) {
5773
+ return PaymentGatingFromJSONTyped(json, false);
5774
+ }
5775
+ function PaymentGatingFromJSONTyped(json, ignoreDiscriminator) {
5776
+ return json;
5777
+ }
5778
+
5659
5779
  // src/api/checkoutexternal/models/CompanyBillingProfileResponseData.ts
5660
5780
  function CompanyBillingProfileResponseDataFromJSON(json) {
5661
5781
  return CompanyBillingProfileResponseDataFromJSONTyped(json, false);
@@ -5670,16 +5790,22 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
5670
5790
  collectionMethod: BillingCollectionMethodFromJSON(
5671
5791
  json["collection_method"]
5672
5792
  ),
5793
+ collector: json["collector"] == null ? void 0 : CollectorFromJSON(json["collector"]),
5673
5794
  companyId: json["company_id"],
5674
5795
  createdAt: new Date(json["created_at"]),
5796
+ currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
5675
5797
  daysUntilDue: json["days_until_due"] == null ? void 0 : json["days_until_due"],
5676
5798
  environmentId: json["environment_id"],
5799
+ gatingDays: json["gating_days"],
5677
5800
  id: json["id"],
5678
5801
  isDefault: json["is_default"],
5679
5802
  name: json["name"] == null ? void 0 : json["name"],
5803
+ overdraftLimit: json["overdraft_limit"] == null ? void 0 : json["overdraft_limit"],
5804
+ paymentGating: PaymentGatingFromJSON(json["payment_gating"]),
5680
5805
  paymentMethodId: json["payment_method_id"] == null ? void 0 : json["payment_method_id"],
5681
5806
  prorationBehavior: json["proration_behavior"] == null ? void 0 : ProrationBehaviorFromJSON(json["proration_behavior"]),
5682
5807
  providerType: BillingProviderTypeFromJSON(json["provider_type"]),
5808
+ purchaseOrder: json["purchase_order"] == null ? void 0 : json["purchase_order"],
5683
5809
  updatedAt: new Date(json["updated_at"])
5684
5810
  };
5685
5811
  }
@@ -6274,6 +6400,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6274
6400
  companyId: json["company_id"],
6275
6401
  createdAt: new Date(json["created_at"]),
6276
6402
  daysUntilDue: json["days_until_due"],
6403
+ endDate: json["end_date"] == null ? void 0 : new Date(json["end_date"]),
6277
6404
  externalInvoiceId: json["external_invoice_id"] == null ? void 0 : json["external_invoice_id"],
6278
6405
  id: json["id"],
6279
6406
  migrationId: json["migration_id"] == null ? void 0 : json["migration_id"],
@@ -7149,7 +7276,7 @@ function FlagInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7149
7276
  }
7150
7277
  return {
7151
7278
  createdAt: new Date(json["created_at"]),
7152
- defaultValue: json["default_value"],
7279
+ defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
7153
7280
  description: json["description"],
7154
7281
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON(json["feature"]),
7155
7282
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
@@ -7309,6 +7436,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator)
7309
7436
  };
7310
7437
  }
7311
7438
 
7439
+ // src/api/checkoutexternal/models/RenewalPolicy.ts
7440
+ function RenewalPolicyFromJSON(json) {
7441
+ return RenewalPolicyFromJSONTyped(json, false);
7442
+ }
7443
+ function RenewalPolicyFromJSONTyped(json, ignoreDiscriminator) {
7444
+ return json;
7445
+ }
7446
+
7312
7447
  // src/api/checkoutexternal/models/PlanVersionResponseData.ts
7313
7448
  function PlanVersionResponseDataFromJSON(json) {
7314
7449
  return PlanVersionResponseDataFromJSONTyped(json, false);
@@ -7326,6 +7461,7 @@ function PlanVersionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7326
7461
  name: json["name"],
7327
7462
  originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
7328
7463
  planType: PlanTypeFromJSON(json["plan_type"]),
7464
+ renewalPolicy: RenewalPolicyFromJSON(json["renewal_policy"]),
7329
7465
  status: PlanVersionStatusFromJSON(json["status"]),
7330
7466
  updatedAt: new Date(json["updated_at"]),
7331
7467
  version: json["version"]
@@ -8642,6 +8778,46 @@ function PreviewSubscriptionDiscountResponseDataFromJSONTyped(json, ignoreDiscri
8642
8778
  };
8643
8779
  }
8644
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
+
8645
8821
  // src/api/checkoutexternal/models/PreviewSubscriptionFinanceResponseData.ts
8646
8822
  function PreviewSubscriptionFinanceResponseDataFromJSON(json) {
8647
8823
  return PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, false);
@@ -8653,6 +8829,8 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
8653
8829
  return {
8654
8830
  amountOff: json["amount_off"],
8655
8831
  currency: CurrencyFromJSON(json["currency"]),
8832
+ customerBalanceApplied: json["customer_balance_applied"],
8833
+ customerBalanceRemaining: json["customer_balance_remaining"],
8656
8834
  discountAmount: json["discount_amount"],
8657
8835
  discounts: json["discounts"].map(
8658
8836
  PreviewSubscriptionDiscountResponseDataFromJSON
@@ -8665,6 +8843,9 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
8665
8843
  promoCodeApplied: json["promo_code_applied"],
8666
8844
  proration: json["proration"],
8667
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
+ ),
8668
8849
  taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
8669
8850
  taxDisplayName: json["tax_display_name"] == null ? void 0 : json["tax_display_name"],
8670
8851
  taxRequireBillingDetails: json["tax_require_billing_details"],
@@ -8901,6 +9082,11 @@ var CheckoutexternalApi = class extends BaseAPI {
8901
9082
  const queryParameters = {};
8902
9083
  const headerParameters = {};
8903
9084
  headerParameters["Content-Type"] = "application/json";
9085
+ if (requestParameters["xCheckoutSessionID"] != null) {
9086
+ headerParameters["X-Checkout-Session-ID"] = String(
9087
+ requestParameters["xCheckoutSessionID"]
9088
+ );
9089
+ }
8904
9090
  if (this.configuration && this.configuration.apiKey) {
8905
9091
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
8906
9092
  "X-Schematic-Api-Key"
@@ -9134,6 +9320,11 @@ var CheckoutexternalApi = class extends BaseAPI {
9134
9320
  const queryParameters = {};
9135
9321
  const headerParameters = {};
9136
9322
  headerParameters["Content-Type"] = "application/json";
9323
+ if (requestParameters["xCheckoutSessionID"] != null) {
9324
+ headerParameters["X-Checkout-Session-ID"] = String(
9325
+ requestParameters["xCheckoutSessionID"]
9326
+ );
9327
+ }
9137
9328
  if (this.configuration && this.configuration.apiKey) {
9138
9329
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
9139
9330
  "X-Schematic-Api-Key"
@@ -10543,9 +10734,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
10543
10734
 
10544
10735
  // src/api/componentspublic/models/Currency.ts
10545
10736
  function CurrencyFromJSON2(json) {
10546
- return CurrencyFromJSONTyped38(json, false);
10737
+ return CurrencyFromJSONTyped41(json, false);
10547
10738
  }
10548
- function CurrencyFromJSONTyped38(json, ignoreDiscriminator) {
10739
+ function CurrencyFromJSONTyped41(json, ignoreDiscriminator) {
10549
10740
  return json;
10550
10741
  }
10551
10742
 
@@ -10933,14 +11124,6 @@ function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
10933
11124
  return json;
10934
11125
  }
10935
11126
 
10936
- // src/api/componentspublic/models/ChargeType.ts
10937
- function ChargeTypeFromJSON2(json) {
10938
- return ChargeTypeFromJSONTyped7(json, false);
10939
- }
10940
- function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
10941
- return json;
10942
- }
10943
-
10944
11127
  // src/api/componentspublic/models/EntitlementValueType.ts
10945
11128
  function EntitlementValueTypeFromJSON2(json) {
10946
11129
  return EntitlementValueTypeFromJSONTyped10(json, false);
@@ -10949,6 +11132,14 @@ function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
10949
11132
  return json;
10950
11133
  }
10951
11134
 
11135
+ // src/api/componentspublic/models/FeatureType.ts
11136
+ function FeatureTypeFromJSON2(json) {
11137
+ return FeatureTypeFromJSONTyped7(json, false);
11138
+ }
11139
+ function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
11140
+ return json;
11141
+ }
11142
+
10952
11143
  // src/api/componentspublic/models/MetricPeriodMonthReset.ts
10953
11144
  function MetricPeriodMonthResetFromJSON2(json) {
10954
11145
  return MetricPeriodMonthResetFromJSONTyped14(json, false);
@@ -10965,6 +11156,30 @@ function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
10965
11156
  return json;
10966
11157
  }
10967
11158
 
11159
+ // src/api/componentspublic/models/EntitlementPriceBehavior.ts
11160
+ function EntitlementPriceBehaviorFromJSON2(json) {
11161
+ return EntitlementPriceBehaviorFromJSONTyped8(json, false);
11162
+ }
11163
+ function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
11164
+ return json;
11165
+ }
11166
+
11167
+ // src/api/componentspublic/models/ChargeType.ts
11168
+ function ChargeTypeFromJSON2(json) {
11169
+ return ChargeTypeFromJSONTyped7(json, false);
11170
+ }
11171
+ function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
11172
+ return json;
11173
+ }
11174
+
11175
+ // src/api/componentspublic/models/PlanPriceCadence.ts
11176
+ function PlanPriceCadenceFromJSON2(json) {
11177
+ return PlanPriceCadenceFromJSONTyped7(json, false);
11178
+ }
11179
+ function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
11180
+ return json;
11181
+ }
11182
+
10968
11183
  // src/api/componentspublic/models/RuleType.ts
10969
11184
  function RuleTypeFromJSON2(json) {
10970
11185
  return RuleTypeFromJSONTyped5(json, false);
@@ -11067,14 +11282,6 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
11067
11282
  };
11068
11283
  }
11069
11284
 
11070
- // src/api/componentspublic/models/EntitlementPriceBehavior.ts
11071
- function EntitlementPriceBehaviorFromJSON2(json) {
11072
- return EntitlementPriceBehaviorFromJSONTyped8(json, false);
11073
- }
11074
- function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
11075
- return json;
11076
- }
11077
-
11078
11285
  // src/api/componentspublic/models/EntityType.ts
11079
11286
  function EntityTypeFromJSON2(json) {
11080
11287
  return EntityTypeFromJSONTyped9(json, false);
@@ -11136,14 +11343,6 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
11136
11343
  return json;
11137
11344
  }
11138
11345
 
11139
- // src/api/componentspublic/models/FeatureType.ts
11140
- function FeatureTypeFromJSON2(json) {
11141
- return FeatureTypeFromJSONTyped7(json, false);
11142
- }
11143
- function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
11144
- return json;
11145
- }
11146
-
11147
11346
  // src/api/componentspublic/models/PreviewObject.ts
11148
11347
  function PreviewObjectFromJSON2(json) {
11149
11348
  return PreviewObjectFromJSONTyped3(json, false);
@@ -11324,7 +11523,7 @@ function FlagInPlanResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
11324
11523
  }
11325
11524
  return {
11326
11525
  createdAt: new Date(json["created_at"]),
11327
- defaultValue: json["default_value"],
11526
+ defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
11328
11527
  description: json["description"],
11329
11528
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON2(json["feature"]),
11330
11529
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
@@ -11494,14 +11693,6 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
11494
11693
  };
11495
11694
  }
11496
11695
 
11497
- // src/api/componentspublic/models/PlanPriceCadence.ts
11498
- function PlanPriceCadenceFromJSON2(json) {
11499
- return PlanPriceCadenceFromJSONTyped7(json, false);
11500
- }
11501
- function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
11502
- return json;
11503
- }
11504
-
11505
11696
  // src/api/componentspublic/models/PlanCreditGrantView.ts
11506
11697
  function PlanCreditGrantViewFromJSON2(json) {
11507
11698
  return PlanCreditGrantViewFromJSONTyped3(json, false);
@@ -11597,6 +11788,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped5(json, ignoreDiscriminator)
11597
11788
  };
11598
11789
  }
11599
11790
 
11791
+ // src/api/componentspublic/models/RenewalPolicy.ts
11792
+ function RenewalPolicyFromJSON2(json) {
11793
+ return RenewalPolicyFromJSONTyped3(json, false);
11794
+ }
11795
+ function RenewalPolicyFromJSONTyped3(json, ignoreDiscriminator) {
11796
+ return json;
11797
+ }
11798
+
11600
11799
  // src/api/componentspublic/models/PlanVersionResponseData.ts
11601
11800
  function PlanVersionResponseDataFromJSON2(json) {
11602
11801
  return PlanVersionResponseDataFromJSONTyped5(json, false);
@@ -11614,6 +11813,7 @@ function PlanVersionResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
11614
11813
  name: json["name"],
11615
11814
  originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
11616
11815
  planType: PlanTypeFromJSON2(json["plan_type"]),
11816
+ renewalPolicy: RenewalPolicyFromJSON2(json["renewal_policy"]),
11617
11817
  status: PlanVersionStatusFromJSON2(json["status"]),
11618
11818
  updatedAt: new Date(json["updated_at"]),
11619
11819
  version: json["version"]
@@ -17208,7 +17408,7 @@ var reducer = (state, action) => {
17208
17408
  // src/context/EmbedProvider.tsx
17209
17409
  import { jsx as jsx3, jsxs } from "react/jsx-runtime";
17210
17410
  var getCustomHeaders = (sessionId) => ({
17211
- "X-Schematic-Components-Version": "2.34.0",
17411
+ "X-Schematic-Components-Version": "2.35.0",
17212
17412
  "X-Schematic-Session-ID": sessionId
17213
17413
  });
17214
17414
  var normalizeCurrencyFilter = (filter2) => {