@schematichq/schematic-components 2.34.0 → 2.34.1

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,27 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
5477
5498
  };
5478
5499
  }
5479
5500
 
5501
+ // src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
5502
+ function CheckoutPriceSnapshotDiscountFromJSON(json) {
5503
+ return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
5504
+ }
5505
+ function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
5506
+ if (json == null) {
5507
+ return json;
5508
+ }
5509
+ return {
5510
+ amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
5511
+ couponExternalId: json["coupon_external_id"],
5512
+ couponName: json["coupon_name"],
5513
+ currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
5514
+ customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
5515
+ duration: json["duration"],
5516
+ durationInMonths: json["duration_in_months"] == null ? void 0 : json["duration_in_months"],
5517
+ percentOff: json["percent_off"] == null ? void 0 : json["percent_off"],
5518
+ promoCodeExternalId: json["promo_code_external_id"] == null ? void 0 : json["promo_code_external_id"]
5519
+ };
5520
+ }
5521
+
5480
5522
  // src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
5481
5523
  function CheckoutPriceSnapshotFromJSON(json) {
5482
5524
  return CheckoutPriceSnapshotFromJSONTyped(json, false);
@@ -5488,6 +5530,10 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5488
5530
  return {
5489
5531
  amountOff: json["amount_off"],
5490
5532
  currency: CurrencyFromJSON(json["currency"]),
5533
+ discountAmount: json["discount_amount"],
5534
+ discounts: json["discounts"].map(
5535
+ CheckoutPriceSnapshotDiscountFromJSON
5536
+ ),
5491
5537
  dueNow: json["due_now"],
5492
5538
  isScheduledDowngrade: json["is_scheduled_downgrade"],
5493
5539
  newCharges: json["new_charges"],
@@ -5754,6 +5800,22 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
5754
5800
  };
5755
5801
  }
5756
5802
 
5803
+ // src/api/checkoutexternal/models/Collector.ts
5804
+ function CollectorFromJSON(json) {
5805
+ return CollectorFromJSONTyped(json, false);
5806
+ }
5807
+ function CollectorFromJSONTyped(json, ignoreDiscriminator) {
5808
+ return json;
5809
+ }
5810
+
5811
+ // src/api/checkoutexternal/models/PaymentGating.ts
5812
+ function PaymentGatingFromJSON(json) {
5813
+ return PaymentGatingFromJSONTyped(json, false);
5814
+ }
5815
+ function PaymentGatingFromJSONTyped(json, ignoreDiscriminator) {
5816
+ return json;
5817
+ }
5818
+
5757
5819
  // src/api/checkoutexternal/models/CompanyBillingProfileResponseData.ts
5758
5820
  function CompanyBillingProfileResponseDataFromJSON(json) {
5759
5821
  return CompanyBillingProfileResponseDataFromJSONTyped(json, false);
@@ -5768,16 +5830,22 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
5768
5830
  collectionMethod: BillingCollectionMethodFromJSON(
5769
5831
  json["collection_method"]
5770
5832
  ),
5833
+ collector: json["collector"] == null ? void 0 : CollectorFromJSON(json["collector"]),
5771
5834
  companyId: json["company_id"],
5772
5835
  createdAt: new Date(json["created_at"]),
5836
+ currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
5773
5837
  daysUntilDue: json["days_until_due"] == null ? void 0 : json["days_until_due"],
5774
5838
  environmentId: json["environment_id"],
5839
+ gatingDays: json["gating_days"],
5775
5840
  id: json["id"],
5776
5841
  isDefault: json["is_default"],
5777
5842
  name: json["name"] == null ? void 0 : json["name"],
5843
+ overdraftLimit: json["overdraft_limit"] == null ? void 0 : json["overdraft_limit"],
5844
+ paymentGating: PaymentGatingFromJSON(json["payment_gating"]),
5778
5845
  paymentMethodId: json["payment_method_id"] == null ? void 0 : json["payment_method_id"],
5779
5846
  prorationBehavior: json["proration_behavior"] == null ? void 0 : ProrationBehaviorFromJSON(json["proration_behavior"]),
5780
5847
  providerType: BillingProviderTypeFromJSON(json["provider_type"]),
5848
+ purchaseOrder: json["purchase_order"] == null ? void 0 : json["purchase_order"],
5781
5849
  updatedAt: new Date(json["updated_at"])
5782
5850
  };
5783
5851
  }
@@ -6372,6 +6440,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6372
6440
  companyId: json["company_id"],
6373
6441
  createdAt: new Date(json["created_at"]),
6374
6442
  daysUntilDue: json["days_until_due"],
6443
+ endDate: json["end_date"] == null ? void 0 : new Date(json["end_date"]),
6375
6444
  externalInvoiceId: json["external_invoice_id"] == null ? void 0 : json["external_invoice_id"],
6376
6445
  id: json["id"],
6377
6446
  migrationId: json["migration_id"] == null ? void 0 : json["migration_id"],
@@ -7247,7 +7316,7 @@ function FlagInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7247
7316
  }
7248
7317
  return {
7249
7318
  createdAt: new Date(json["created_at"]),
7250
- defaultValue: json["default_value"],
7319
+ defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
7251
7320
  description: json["description"],
7252
7321
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON(json["feature"]),
7253
7322
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
@@ -7407,6 +7476,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator)
7407
7476
  };
7408
7477
  }
7409
7478
 
7479
+ // src/api/checkoutexternal/models/RenewalPolicy.ts
7480
+ function RenewalPolicyFromJSON(json) {
7481
+ return RenewalPolicyFromJSONTyped(json, false);
7482
+ }
7483
+ function RenewalPolicyFromJSONTyped(json, ignoreDiscriminator) {
7484
+ return json;
7485
+ }
7486
+
7410
7487
  // src/api/checkoutexternal/models/PlanVersionResponseData.ts
7411
7488
  function PlanVersionResponseDataFromJSON(json) {
7412
7489
  return PlanVersionResponseDataFromJSONTyped(json, false);
@@ -7424,6 +7501,7 @@ function PlanVersionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7424
7501
  name: json["name"],
7425
7502
  originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
7426
7503
  planType: PlanTypeFromJSON(json["plan_type"]),
7504
+ renewalPolicy: RenewalPolicyFromJSON(json["renewal_policy"]),
7427
7505
  status: PlanVersionStatusFromJSON(json["status"]),
7428
7506
  updatedAt: new Date(json["updated_at"]),
7429
7507
  version: json["version"]
@@ -8999,6 +9077,11 @@ var CheckoutexternalApi = class extends BaseAPI {
8999
9077
  const queryParameters = {};
9000
9078
  const headerParameters = {};
9001
9079
  headerParameters["Content-Type"] = "application/json";
9080
+ if (requestParameters["xCheckoutSessionID"] != null) {
9081
+ headerParameters["X-Checkout-Session-ID"] = String(
9082
+ requestParameters["xCheckoutSessionID"]
9083
+ );
9084
+ }
9002
9085
  if (this.configuration && this.configuration.apiKey) {
9003
9086
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
9004
9087
  "X-Schematic-Api-Key"
@@ -9232,6 +9315,11 @@ var CheckoutexternalApi = class extends BaseAPI {
9232
9315
  const queryParameters = {};
9233
9316
  const headerParameters = {};
9234
9317
  headerParameters["Content-Type"] = "application/json";
9318
+ if (requestParameters["xCheckoutSessionID"] != null) {
9319
+ headerParameters["X-Checkout-Session-ID"] = String(
9320
+ requestParameters["xCheckoutSessionID"]
9321
+ );
9322
+ }
9235
9323
  if (this.configuration && this.configuration.apiKey) {
9236
9324
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
9237
9325
  "X-Schematic-Api-Key"
@@ -10641,9 +10729,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
10641
10729
 
10642
10730
  // src/api/componentspublic/models/Currency.ts
10643
10731
  function CurrencyFromJSON2(json) {
10644
- return CurrencyFromJSONTyped38(json, false);
10732
+ return CurrencyFromJSONTyped40(json, false);
10645
10733
  }
10646
- function CurrencyFromJSONTyped38(json, ignoreDiscriminator) {
10734
+ function CurrencyFromJSONTyped40(json, ignoreDiscriminator) {
10647
10735
  return json;
10648
10736
  }
10649
10737
 
@@ -11031,14 +11119,6 @@ function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
11031
11119
  return json;
11032
11120
  }
11033
11121
 
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
11122
  // src/api/componentspublic/models/EntitlementValueType.ts
11043
11123
  function EntitlementValueTypeFromJSON2(json) {
11044
11124
  return EntitlementValueTypeFromJSONTyped10(json, false);
@@ -11047,6 +11127,14 @@ function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
11047
11127
  return json;
11048
11128
  }
11049
11129
 
11130
+ // src/api/componentspublic/models/FeatureType.ts
11131
+ function FeatureTypeFromJSON2(json) {
11132
+ return FeatureTypeFromJSONTyped7(json, false);
11133
+ }
11134
+ function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
11135
+ return json;
11136
+ }
11137
+
11050
11138
  // src/api/componentspublic/models/MetricPeriodMonthReset.ts
11051
11139
  function MetricPeriodMonthResetFromJSON2(json) {
11052
11140
  return MetricPeriodMonthResetFromJSONTyped14(json, false);
@@ -11063,6 +11151,30 @@ function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
11063
11151
  return json;
11064
11152
  }
11065
11153
 
11154
+ // src/api/componentspublic/models/EntitlementPriceBehavior.ts
11155
+ function EntitlementPriceBehaviorFromJSON2(json) {
11156
+ return EntitlementPriceBehaviorFromJSONTyped8(json, false);
11157
+ }
11158
+ function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
11159
+ return json;
11160
+ }
11161
+
11162
+ // src/api/componentspublic/models/ChargeType.ts
11163
+ function ChargeTypeFromJSON2(json) {
11164
+ return ChargeTypeFromJSONTyped7(json, false);
11165
+ }
11166
+ function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
11167
+ return json;
11168
+ }
11169
+
11170
+ // src/api/componentspublic/models/PlanPriceCadence.ts
11171
+ function PlanPriceCadenceFromJSON2(json) {
11172
+ return PlanPriceCadenceFromJSONTyped7(json, false);
11173
+ }
11174
+ function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
11175
+ return json;
11176
+ }
11177
+
11066
11178
  // src/api/componentspublic/models/RuleType.ts
11067
11179
  function RuleTypeFromJSON2(json) {
11068
11180
  return RuleTypeFromJSONTyped5(json, false);
@@ -11165,14 +11277,6 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
11165
11277
  };
11166
11278
  }
11167
11279
 
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
11280
  // src/api/componentspublic/models/EntityType.ts
11177
11281
  function EntityTypeFromJSON2(json) {
11178
11282
  return EntityTypeFromJSONTyped9(json, false);
@@ -11234,14 +11338,6 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
11234
11338
  return json;
11235
11339
  }
11236
11340
 
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
11341
  // src/api/componentspublic/models/PreviewObject.ts
11246
11342
  function PreviewObjectFromJSON2(json) {
11247
11343
  return PreviewObjectFromJSONTyped3(json, false);
@@ -11422,7 +11518,7 @@ function FlagInPlanResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
11422
11518
  }
11423
11519
  return {
11424
11520
  createdAt: new Date(json["created_at"]),
11425
- defaultValue: json["default_value"],
11521
+ defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
11426
11522
  description: json["description"],
11427
11523
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON2(json["feature"]),
11428
11524
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
@@ -11592,14 +11688,6 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
11592
11688
  };
11593
11689
  }
11594
11690
 
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
11691
  // src/api/componentspublic/models/PlanCreditGrantView.ts
11604
11692
  function PlanCreditGrantViewFromJSON2(json) {
11605
11693
  return PlanCreditGrantViewFromJSONTyped3(json, false);
@@ -11695,6 +11783,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped5(json, ignoreDiscriminator)
11695
11783
  };
11696
11784
  }
11697
11785
 
11786
+ // src/api/componentspublic/models/RenewalPolicy.ts
11787
+ function RenewalPolicyFromJSON2(json) {
11788
+ return RenewalPolicyFromJSONTyped3(json, false);
11789
+ }
11790
+ function RenewalPolicyFromJSONTyped3(json, ignoreDiscriminator) {
11791
+ return json;
11792
+ }
11793
+
11698
11794
  // src/api/componentspublic/models/PlanVersionResponseData.ts
11699
11795
  function PlanVersionResponseDataFromJSON2(json) {
11700
11796
  return PlanVersionResponseDataFromJSONTyped5(json, false);
@@ -11712,6 +11808,7 @@ function PlanVersionResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
11712
11808
  name: json["name"],
11713
11809
  originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
11714
11810
  planType: PlanTypeFromJSON2(json["plan_type"]),
11811
+ renewalPolicy: RenewalPolicyFromJSON2(json["renewal_policy"]),
11715
11812
  status: PlanVersionStatusFromJSON2(json["status"]),
11716
11813
  updatedAt: new Date(json["updated_at"]),
11717
11814
  version: json["version"]
@@ -17299,7 +17396,7 @@ var reducer = (state, action) => {
17299
17396
  // src/context/EmbedProvider.tsx
17300
17397
  var import_jsx_runtime4 = require("react/jsx-runtime");
17301
17398
  var getCustomHeaders = (sessionId) => ({
17302
- "X-Schematic-Components-Version": "2.34.0",
17399
+ "X-Schematic-Components-Version": "2.34.1",
17303
17400
  "X-Schematic-Session-ID": sessionId
17304
17401
  });
17305
17402
  var normalizeCurrencyFilter = (filter2) => {
@@ -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,27 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
5379
5400
  };
5380
5401
  }
5381
5402
 
5403
+ // src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
5404
+ function CheckoutPriceSnapshotDiscountFromJSON(json) {
5405
+ return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
5406
+ }
5407
+ function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
5408
+ if (json == null) {
5409
+ return json;
5410
+ }
5411
+ return {
5412
+ amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
5413
+ couponExternalId: json["coupon_external_id"],
5414
+ couponName: json["coupon_name"],
5415
+ currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
5416
+ customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
5417
+ duration: json["duration"],
5418
+ durationInMonths: json["duration_in_months"] == null ? void 0 : json["duration_in_months"],
5419
+ percentOff: json["percent_off"] == null ? void 0 : json["percent_off"],
5420
+ promoCodeExternalId: json["promo_code_external_id"] == null ? void 0 : json["promo_code_external_id"]
5421
+ };
5422
+ }
5423
+
5382
5424
  // src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
5383
5425
  function CheckoutPriceSnapshotFromJSON(json) {
5384
5426
  return CheckoutPriceSnapshotFromJSONTyped(json, false);
@@ -5390,6 +5432,10 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5390
5432
  return {
5391
5433
  amountOff: json["amount_off"],
5392
5434
  currency: CurrencyFromJSON(json["currency"]),
5435
+ discountAmount: json["discount_amount"],
5436
+ discounts: json["discounts"].map(
5437
+ CheckoutPriceSnapshotDiscountFromJSON
5438
+ ),
5393
5439
  dueNow: json["due_now"],
5394
5440
  isScheduledDowngrade: json["is_scheduled_downgrade"],
5395
5441
  newCharges: json["new_charges"],
@@ -5656,6 +5702,22 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
5656
5702
  };
5657
5703
  }
5658
5704
 
5705
+ // src/api/checkoutexternal/models/Collector.ts
5706
+ function CollectorFromJSON(json) {
5707
+ return CollectorFromJSONTyped(json, false);
5708
+ }
5709
+ function CollectorFromJSONTyped(json, ignoreDiscriminator) {
5710
+ return json;
5711
+ }
5712
+
5713
+ // src/api/checkoutexternal/models/PaymentGating.ts
5714
+ function PaymentGatingFromJSON(json) {
5715
+ return PaymentGatingFromJSONTyped(json, false);
5716
+ }
5717
+ function PaymentGatingFromJSONTyped(json, ignoreDiscriminator) {
5718
+ return json;
5719
+ }
5720
+
5659
5721
  // src/api/checkoutexternal/models/CompanyBillingProfileResponseData.ts
5660
5722
  function CompanyBillingProfileResponseDataFromJSON(json) {
5661
5723
  return CompanyBillingProfileResponseDataFromJSONTyped(json, false);
@@ -5670,16 +5732,22 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
5670
5732
  collectionMethod: BillingCollectionMethodFromJSON(
5671
5733
  json["collection_method"]
5672
5734
  ),
5735
+ collector: json["collector"] == null ? void 0 : CollectorFromJSON(json["collector"]),
5673
5736
  companyId: json["company_id"],
5674
5737
  createdAt: new Date(json["created_at"]),
5738
+ currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
5675
5739
  daysUntilDue: json["days_until_due"] == null ? void 0 : json["days_until_due"],
5676
5740
  environmentId: json["environment_id"],
5741
+ gatingDays: json["gating_days"],
5677
5742
  id: json["id"],
5678
5743
  isDefault: json["is_default"],
5679
5744
  name: json["name"] == null ? void 0 : json["name"],
5745
+ overdraftLimit: json["overdraft_limit"] == null ? void 0 : json["overdraft_limit"],
5746
+ paymentGating: PaymentGatingFromJSON(json["payment_gating"]),
5680
5747
  paymentMethodId: json["payment_method_id"] == null ? void 0 : json["payment_method_id"],
5681
5748
  prorationBehavior: json["proration_behavior"] == null ? void 0 : ProrationBehaviorFromJSON(json["proration_behavior"]),
5682
5749
  providerType: BillingProviderTypeFromJSON(json["provider_type"]),
5750
+ purchaseOrder: json["purchase_order"] == null ? void 0 : json["purchase_order"],
5683
5751
  updatedAt: new Date(json["updated_at"])
5684
5752
  };
5685
5753
  }
@@ -6274,6 +6342,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6274
6342
  companyId: json["company_id"],
6275
6343
  createdAt: new Date(json["created_at"]),
6276
6344
  daysUntilDue: json["days_until_due"],
6345
+ endDate: json["end_date"] == null ? void 0 : new Date(json["end_date"]),
6277
6346
  externalInvoiceId: json["external_invoice_id"] == null ? void 0 : json["external_invoice_id"],
6278
6347
  id: json["id"],
6279
6348
  migrationId: json["migration_id"] == null ? void 0 : json["migration_id"],
@@ -7149,7 +7218,7 @@ function FlagInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7149
7218
  }
7150
7219
  return {
7151
7220
  createdAt: new Date(json["created_at"]),
7152
- defaultValue: json["default_value"],
7221
+ defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
7153
7222
  description: json["description"],
7154
7223
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON(json["feature"]),
7155
7224
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
@@ -7309,6 +7378,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator)
7309
7378
  };
7310
7379
  }
7311
7380
 
7381
+ // src/api/checkoutexternal/models/RenewalPolicy.ts
7382
+ function RenewalPolicyFromJSON(json) {
7383
+ return RenewalPolicyFromJSONTyped(json, false);
7384
+ }
7385
+ function RenewalPolicyFromJSONTyped(json, ignoreDiscriminator) {
7386
+ return json;
7387
+ }
7388
+
7312
7389
  // src/api/checkoutexternal/models/PlanVersionResponseData.ts
7313
7390
  function PlanVersionResponseDataFromJSON(json) {
7314
7391
  return PlanVersionResponseDataFromJSONTyped(json, false);
@@ -7326,6 +7403,7 @@ function PlanVersionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7326
7403
  name: json["name"],
7327
7404
  originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
7328
7405
  planType: PlanTypeFromJSON(json["plan_type"]),
7406
+ renewalPolicy: RenewalPolicyFromJSON(json["renewal_policy"]),
7329
7407
  status: PlanVersionStatusFromJSON(json["status"]),
7330
7408
  updatedAt: new Date(json["updated_at"]),
7331
7409
  version: json["version"]
@@ -8901,6 +8979,11 @@ var CheckoutexternalApi = class extends BaseAPI {
8901
8979
  const queryParameters = {};
8902
8980
  const headerParameters = {};
8903
8981
  headerParameters["Content-Type"] = "application/json";
8982
+ if (requestParameters["xCheckoutSessionID"] != null) {
8983
+ headerParameters["X-Checkout-Session-ID"] = String(
8984
+ requestParameters["xCheckoutSessionID"]
8985
+ );
8986
+ }
8904
8987
  if (this.configuration && this.configuration.apiKey) {
8905
8988
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
8906
8989
  "X-Schematic-Api-Key"
@@ -9134,6 +9217,11 @@ var CheckoutexternalApi = class extends BaseAPI {
9134
9217
  const queryParameters = {};
9135
9218
  const headerParameters = {};
9136
9219
  headerParameters["Content-Type"] = "application/json";
9220
+ if (requestParameters["xCheckoutSessionID"] != null) {
9221
+ headerParameters["X-Checkout-Session-ID"] = String(
9222
+ requestParameters["xCheckoutSessionID"]
9223
+ );
9224
+ }
9137
9225
  if (this.configuration && this.configuration.apiKey) {
9138
9226
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
9139
9227
  "X-Schematic-Api-Key"
@@ -10543,9 +10631,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
10543
10631
 
10544
10632
  // src/api/componentspublic/models/Currency.ts
10545
10633
  function CurrencyFromJSON2(json) {
10546
- return CurrencyFromJSONTyped38(json, false);
10634
+ return CurrencyFromJSONTyped40(json, false);
10547
10635
  }
10548
- function CurrencyFromJSONTyped38(json, ignoreDiscriminator) {
10636
+ function CurrencyFromJSONTyped40(json, ignoreDiscriminator) {
10549
10637
  return json;
10550
10638
  }
10551
10639
 
@@ -10933,14 +11021,6 @@ function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
10933
11021
  return json;
10934
11022
  }
10935
11023
 
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
11024
  // src/api/componentspublic/models/EntitlementValueType.ts
10945
11025
  function EntitlementValueTypeFromJSON2(json) {
10946
11026
  return EntitlementValueTypeFromJSONTyped10(json, false);
@@ -10949,6 +11029,14 @@ function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
10949
11029
  return json;
10950
11030
  }
10951
11031
 
11032
+ // src/api/componentspublic/models/FeatureType.ts
11033
+ function FeatureTypeFromJSON2(json) {
11034
+ return FeatureTypeFromJSONTyped7(json, false);
11035
+ }
11036
+ function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
11037
+ return json;
11038
+ }
11039
+
10952
11040
  // src/api/componentspublic/models/MetricPeriodMonthReset.ts
10953
11041
  function MetricPeriodMonthResetFromJSON2(json) {
10954
11042
  return MetricPeriodMonthResetFromJSONTyped14(json, false);
@@ -10965,6 +11053,30 @@ function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
10965
11053
  return json;
10966
11054
  }
10967
11055
 
11056
+ // src/api/componentspublic/models/EntitlementPriceBehavior.ts
11057
+ function EntitlementPriceBehaviorFromJSON2(json) {
11058
+ return EntitlementPriceBehaviorFromJSONTyped8(json, false);
11059
+ }
11060
+ function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
11061
+ return json;
11062
+ }
11063
+
11064
+ // src/api/componentspublic/models/ChargeType.ts
11065
+ function ChargeTypeFromJSON2(json) {
11066
+ return ChargeTypeFromJSONTyped7(json, false);
11067
+ }
11068
+ function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
11069
+ return json;
11070
+ }
11071
+
11072
+ // src/api/componentspublic/models/PlanPriceCadence.ts
11073
+ function PlanPriceCadenceFromJSON2(json) {
11074
+ return PlanPriceCadenceFromJSONTyped7(json, false);
11075
+ }
11076
+ function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
11077
+ return json;
11078
+ }
11079
+
10968
11080
  // src/api/componentspublic/models/RuleType.ts
10969
11081
  function RuleTypeFromJSON2(json) {
10970
11082
  return RuleTypeFromJSONTyped5(json, false);
@@ -11067,14 +11179,6 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
11067
11179
  };
11068
11180
  }
11069
11181
 
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
11182
  // src/api/componentspublic/models/EntityType.ts
11079
11183
  function EntityTypeFromJSON2(json) {
11080
11184
  return EntityTypeFromJSONTyped9(json, false);
@@ -11136,14 +11240,6 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
11136
11240
  return json;
11137
11241
  }
11138
11242
 
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
11243
  // src/api/componentspublic/models/PreviewObject.ts
11148
11244
  function PreviewObjectFromJSON2(json) {
11149
11245
  return PreviewObjectFromJSONTyped3(json, false);
@@ -11324,7 +11420,7 @@ function FlagInPlanResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
11324
11420
  }
11325
11421
  return {
11326
11422
  createdAt: new Date(json["created_at"]),
11327
- defaultValue: json["default_value"],
11423
+ defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
11328
11424
  description: json["description"],
11329
11425
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON2(json["feature"]),
11330
11426
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
@@ -11494,14 +11590,6 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
11494
11590
  };
11495
11591
  }
11496
11592
 
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
11593
  // src/api/componentspublic/models/PlanCreditGrantView.ts
11506
11594
  function PlanCreditGrantViewFromJSON2(json) {
11507
11595
  return PlanCreditGrantViewFromJSONTyped3(json, false);
@@ -11597,6 +11685,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped5(json, ignoreDiscriminator)
11597
11685
  };
11598
11686
  }
11599
11687
 
11688
+ // src/api/componentspublic/models/RenewalPolicy.ts
11689
+ function RenewalPolicyFromJSON2(json) {
11690
+ return RenewalPolicyFromJSONTyped3(json, false);
11691
+ }
11692
+ function RenewalPolicyFromJSONTyped3(json, ignoreDiscriminator) {
11693
+ return json;
11694
+ }
11695
+
11600
11696
  // src/api/componentspublic/models/PlanVersionResponseData.ts
11601
11697
  function PlanVersionResponseDataFromJSON2(json) {
11602
11698
  return PlanVersionResponseDataFromJSONTyped5(json, false);
@@ -11614,6 +11710,7 @@ function PlanVersionResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
11614
11710
  name: json["name"],
11615
11711
  originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
11616
11712
  planType: PlanTypeFromJSON2(json["plan_type"]),
11713
+ renewalPolicy: RenewalPolicyFromJSON2(json["renewal_policy"]),
11617
11714
  status: PlanVersionStatusFromJSON2(json["status"]),
11618
11715
  updatedAt: new Date(json["updated_at"]),
11619
11716
  version: json["version"]
@@ -17208,7 +17305,7 @@ var reducer = (state, action) => {
17208
17305
  // src/context/EmbedProvider.tsx
17209
17306
  import { jsx as jsx3, jsxs } from "react/jsx-runtime";
17210
17307
  var getCustomHeaders = (sessionId) => ({
17211
- "X-Schematic-Components-Version": "2.34.0",
17308
+ "X-Schematic-Components-Version": "2.34.1",
17212
17309
  "X-Schematic-Session-ID": sessionId
17213
17310
  });
17214
17311
  var normalizeCurrencyFilter = (filter2) => {