@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.
@@ -4916,6 +4916,24 @@ function PreviewObjectResponseDataFromJSONTyped(json, ignoreDiscriminator) {
4916
4916
  };
4917
4917
  }
4918
4918
 
4919
+ // src/api/checkoutexternal/models/BillingPlanCreditGrantWarningTierResponseData.ts
4920
+ function BillingPlanCreditGrantWarningTierResponseDataFromJSON(json) {
4921
+ return BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(
4922
+ json,
4923
+ false
4924
+ );
4925
+ }
4926
+ function BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
4927
+ if (json == null) {
4928
+ return json;
4929
+ }
4930
+ return {
4931
+ id: json["id"],
4932
+ key: json["key"],
4933
+ value: json["value"]
4934
+ };
4935
+ }
4936
+
4919
4937
  // src/api/checkoutexternal/models/BillingPlanCreditGrantResponseData.ts
4920
4938
  function BillingPlanCreditGrantResponseDataFromJSON(json) {
4921
4939
  return BillingPlanCreditGrantResponseDataFromJSONTyped(json, false);
@@ -4976,7 +4994,10 @@ function BillingPlanCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminat
4976
4994
  tierMode: json["tier_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tier_mode"]),
4977
4995
  unitPrice: json["unit_price"] == null ? void 0 : json["unit_price"],
4978
4996
  unitPriceDecimal: json["unit_price_decimal"] == null ? void 0 : json["unit_price_decimal"],
4979
- updatedAt: new Date(json["updated_at"])
4997
+ updatedAt: new Date(json["updated_at"]),
4998
+ warningTiers: json["warning_tiers"].map(
4999
+ BillingPlanCreditGrantWarningTierResponseDataFromJSON
5000
+ )
4980
5001
  };
4981
5002
  }
4982
5003
 
@@ -5833,6 +5854,27 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
5833
5854
  };
5834
5855
  }
5835
5856
 
5857
+ // src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
5858
+ function CheckoutPriceSnapshotDiscountFromJSON(json) {
5859
+ return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
5860
+ }
5861
+ function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
5862
+ if (json == null) {
5863
+ return json;
5864
+ }
5865
+ return {
5866
+ amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
5867
+ couponExternalId: json["coupon_external_id"],
5868
+ couponName: json["coupon_name"],
5869
+ currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
5870
+ customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
5871
+ duration: json["duration"],
5872
+ durationInMonths: json["duration_in_months"] == null ? void 0 : json["duration_in_months"],
5873
+ percentOff: json["percent_off"] == null ? void 0 : json["percent_off"],
5874
+ promoCodeExternalId: json["promo_code_external_id"] == null ? void 0 : json["promo_code_external_id"]
5875
+ };
5876
+ }
5877
+
5836
5878
  // src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
5837
5879
  function CheckoutPriceSnapshotFromJSON(json) {
5838
5880
  return CheckoutPriceSnapshotFromJSONTyped(json, false);
@@ -5844,6 +5886,10 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5844
5886
  return {
5845
5887
  amountOff: json["amount_off"],
5846
5888
  currency: CurrencyFromJSON(json["currency"]),
5889
+ discountAmount: json["discount_amount"],
5890
+ discounts: json["discounts"].map(
5891
+ CheckoutPriceSnapshotDiscountFromJSON
5892
+ ),
5847
5893
  dueNow: json["due_now"],
5848
5894
  isScheduledDowngrade: json["is_scheduled_downgrade"],
5849
5895
  newCharges: json["new_charges"],
@@ -6110,6 +6156,22 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
6110
6156
  };
6111
6157
  }
6112
6158
 
6159
+ // src/api/checkoutexternal/models/Collector.ts
6160
+ function CollectorFromJSON(json) {
6161
+ return CollectorFromJSONTyped(json, false);
6162
+ }
6163
+ function CollectorFromJSONTyped(json, ignoreDiscriminator) {
6164
+ return json;
6165
+ }
6166
+
6167
+ // src/api/checkoutexternal/models/PaymentGating.ts
6168
+ function PaymentGatingFromJSON(json) {
6169
+ return PaymentGatingFromJSONTyped(json, false);
6170
+ }
6171
+ function PaymentGatingFromJSONTyped(json, ignoreDiscriminator) {
6172
+ return json;
6173
+ }
6174
+
6113
6175
  // src/api/checkoutexternal/models/CompanyBillingProfileResponseData.ts
6114
6176
  function CompanyBillingProfileResponseDataFromJSON(json) {
6115
6177
  return CompanyBillingProfileResponseDataFromJSONTyped(json, false);
@@ -6124,16 +6186,22 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
6124
6186
  collectionMethod: BillingCollectionMethodFromJSON(
6125
6187
  json["collection_method"]
6126
6188
  ),
6189
+ collector: json["collector"] == null ? void 0 : CollectorFromJSON(json["collector"]),
6127
6190
  companyId: json["company_id"],
6128
6191
  createdAt: new Date(json["created_at"]),
6192
+ currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
6129
6193
  daysUntilDue: json["days_until_due"] == null ? void 0 : json["days_until_due"],
6130
6194
  environmentId: json["environment_id"],
6195
+ gatingDays: json["gating_days"],
6131
6196
  id: json["id"],
6132
6197
  isDefault: json["is_default"],
6133
6198
  name: json["name"] == null ? void 0 : json["name"],
6199
+ overdraftLimit: json["overdraft_limit"] == null ? void 0 : json["overdraft_limit"],
6200
+ paymentGating: PaymentGatingFromJSON(json["payment_gating"]),
6134
6201
  paymentMethodId: json["payment_method_id"] == null ? void 0 : json["payment_method_id"],
6135
6202
  prorationBehavior: json["proration_behavior"] == null ? void 0 : ProrationBehaviorFromJSON(json["proration_behavior"]),
6136
6203
  providerType: BillingProviderTypeFromJSON(json["provider_type"]),
6204
+ purchaseOrder: json["purchase_order"] == null ? void 0 : json["purchase_order"],
6137
6205
  updatedAt: new Date(json["updated_at"])
6138
6206
  };
6139
6207
  }
@@ -6728,6 +6796,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6728
6796
  companyId: json["company_id"],
6729
6797
  createdAt: new Date(json["created_at"]),
6730
6798
  daysUntilDue: json["days_until_due"],
6799
+ endDate: json["end_date"] == null ? void 0 : new Date(json["end_date"]),
6731
6800
  externalInvoiceId: json["external_invoice_id"] == null ? void 0 : json["external_invoice_id"],
6732
6801
  id: json["id"],
6733
6802
  migrationId: json["migration_id"] == null ? void 0 : json["migration_id"],
@@ -7603,7 +7672,7 @@ function FlagInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7603
7672
  }
7604
7673
  return {
7605
7674
  createdAt: new Date(json["created_at"]),
7606
- defaultValue: json["default_value"],
7675
+ defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
7607
7676
  description: json["description"],
7608
7677
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON(json["feature"]),
7609
7678
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
@@ -7763,6 +7832,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator)
7763
7832
  };
7764
7833
  }
7765
7834
 
7835
+ // src/api/checkoutexternal/models/RenewalPolicy.ts
7836
+ function RenewalPolicyFromJSON(json) {
7837
+ return RenewalPolicyFromJSONTyped(json, false);
7838
+ }
7839
+ function RenewalPolicyFromJSONTyped(json, ignoreDiscriminator) {
7840
+ return json;
7841
+ }
7842
+
7766
7843
  // src/api/checkoutexternal/models/PlanVersionResponseData.ts
7767
7844
  function PlanVersionResponseDataFromJSON(json) {
7768
7845
  return PlanVersionResponseDataFromJSONTyped(json, false);
@@ -7780,6 +7857,7 @@ function PlanVersionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7780
7857
  name: json["name"],
7781
7858
  originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
7782
7859
  planType: PlanTypeFromJSON(json["plan_type"]),
7860
+ renewalPolicy: RenewalPolicyFromJSON(json["renewal_policy"]),
7783
7861
  status: PlanVersionStatusFromJSON(json["status"]),
7784
7862
  updatedAt: new Date(json["updated_at"]),
7785
7863
  version: json["version"]
@@ -9355,6 +9433,11 @@ var CheckoutexternalApi = class extends BaseAPI {
9355
9433
  const queryParameters = {};
9356
9434
  const headerParameters = {};
9357
9435
  headerParameters["Content-Type"] = "application/json";
9436
+ if (requestParameters["xCheckoutSessionID"] != null) {
9437
+ headerParameters["X-Checkout-Session-ID"] = String(
9438
+ requestParameters["xCheckoutSessionID"]
9439
+ );
9440
+ }
9358
9441
  if (this.configuration && this.configuration.apiKey) {
9359
9442
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
9360
9443
  "X-Schematic-Api-Key"
@@ -9588,6 +9671,11 @@ var CheckoutexternalApi = class extends BaseAPI {
9588
9671
  const queryParameters = {};
9589
9672
  const headerParameters = {};
9590
9673
  headerParameters["Content-Type"] = "application/json";
9674
+ if (requestParameters["xCheckoutSessionID"] != null) {
9675
+ headerParameters["X-Checkout-Session-ID"] = String(
9676
+ requestParameters["xCheckoutSessionID"]
9677
+ );
9678
+ }
9591
9679
  if (this.configuration && this.configuration.apiKey) {
9592
9680
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
9593
9681
  "X-Schematic-Api-Key"
@@ -10997,9 +11085,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
10997
11085
 
10998
11086
  // src/api/componentspublic/models/Currency.ts
10999
11087
  function CurrencyFromJSON2(json) {
11000
- return CurrencyFromJSONTyped38(json, false);
11088
+ return CurrencyFromJSONTyped40(json, false);
11001
11089
  }
11002
- function CurrencyFromJSONTyped38(json, ignoreDiscriminator) {
11090
+ function CurrencyFromJSONTyped40(json, ignoreDiscriminator) {
11003
11091
  return json;
11004
11092
  }
11005
11093
 
@@ -11387,14 +11475,6 @@ function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
11387
11475
  return json;
11388
11476
  }
11389
11477
 
11390
- // src/api/componentspublic/models/ChargeType.ts
11391
- function ChargeTypeFromJSON2(json) {
11392
- return ChargeTypeFromJSONTyped7(json, false);
11393
- }
11394
- function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
11395
- return json;
11396
- }
11397
-
11398
11478
  // src/api/componentspublic/models/EntitlementValueType.ts
11399
11479
  function EntitlementValueTypeFromJSON2(json) {
11400
11480
  return EntitlementValueTypeFromJSONTyped10(json, false);
@@ -11403,6 +11483,14 @@ function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
11403
11483
  return json;
11404
11484
  }
11405
11485
 
11486
+ // src/api/componentspublic/models/FeatureType.ts
11487
+ function FeatureTypeFromJSON2(json) {
11488
+ return FeatureTypeFromJSONTyped7(json, false);
11489
+ }
11490
+ function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
11491
+ return json;
11492
+ }
11493
+
11406
11494
  // src/api/componentspublic/models/MetricPeriodMonthReset.ts
11407
11495
  function MetricPeriodMonthResetFromJSON2(json) {
11408
11496
  return MetricPeriodMonthResetFromJSONTyped14(json, false);
@@ -11419,6 +11507,30 @@ function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
11419
11507
  return json;
11420
11508
  }
11421
11509
 
11510
+ // src/api/componentspublic/models/EntitlementPriceBehavior.ts
11511
+ function EntitlementPriceBehaviorFromJSON2(json) {
11512
+ return EntitlementPriceBehaviorFromJSONTyped8(json, false);
11513
+ }
11514
+ function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
11515
+ return json;
11516
+ }
11517
+
11518
+ // src/api/componentspublic/models/ChargeType.ts
11519
+ function ChargeTypeFromJSON2(json) {
11520
+ return ChargeTypeFromJSONTyped7(json, false);
11521
+ }
11522
+ function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
11523
+ return json;
11524
+ }
11525
+
11526
+ // src/api/componentspublic/models/PlanPriceCadence.ts
11527
+ function PlanPriceCadenceFromJSON2(json) {
11528
+ return PlanPriceCadenceFromJSONTyped7(json, false);
11529
+ }
11530
+ function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
11531
+ return json;
11532
+ }
11533
+
11422
11534
  // src/api/componentspublic/models/RuleType.ts
11423
11535
  function RuleTypeFromJSON2(json) {
11424
11536
  return RuleTypeFromJSONTyped5(json, false);
@@ -11521,14 +11633,6 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
11521
11633
  };
11522
11634
  }
11523
11635
 
11524
- // src/api/componentspublic/models/EntitlementPriceBehavior.ts
11525
- function EntitlementPriceBehaviorFromJSON2(json) {
11526
- return EntitlementPriceBehaviorFromJSONTyped8(json, false);
11527
- }
11528
- function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
11529
- return json;
11530
- }
11531
-
11532
11636
  // src/api/componentspublic/models/EntityType.ts
11533
11637
  function EntityTypeFromJSON2(json) {
11534
11638
  return EntityTypeFromJSONTyped9(json, false);
@@ -11590,14 +11694,6 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
11590
11694
  return json;
11591
11695
  }
11592
11696
 
11593
- // src/api/componentspublic/models/FeatureType.ts
11594
- function FeatureTypeFromJSON2(json) {
11595
- return FeatureTypeFromJSONTyped7(json, false);
11596
- }
11597
- function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
11598
- return json;
11599
- }
11600
-
11601
11697
  // src/api/componentspublic/models/PreviewObject.ts
11602
11698
  function PreviewObjectFromJSON2(json) {
11603
11699
  return PreviewObjectFromJSONTyped3(json, false);
@@ -11778,7 +11874,7 @@ function FlagInPlanResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
11778
11874
  }
11779
11875
  return {
11780
11876
  createdAt: new Date(json["created_at"]),
11781
- defaultValue: json["default_value"],
11877
+ defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
11782
11878
  description: json["description"],
11783
11879
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON2(json["feature"]),
11784
11880
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
@@ -11948,14 +12044,6 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
11948
12044
  };
11949
12045
  }
11950
12046
 
11951
- // src/api/componentspublic/models/PlanPriceCadence.ts
11952
- function PlanPriceCadenceFromJSON2(json) {
11953
- return PlanPriceCadenceFromJSONTyped7(json, false);
11954
- }
11955
- function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
11956
- return json;
11957
- }
11958
-
11959
12047
  // src/api/componentspublic/models/PlanCreditGrantView.ts
11960
12048
  function PlanCreditGrantViewFromJSON2(json) {
11961
12049
  return PlanCreditGrantViewFromJSONTyped3(json, false);
@@ -12051,6 +12139,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped5(json, ignoreDiscriminator)
12051
12139
  };
12052
12140
  }
12053
12141
 
12142
+ // src/api/componentspublic/models/RenewalPolicy.ts
12143
+ function RenewalPolicyFromJSON2(json) {
12144
+ return RenewalPolicyFromJSONTyped3(json, false);
12145
+ }
12146
+ function RenewalPolicyFromJSONTyped3(json, ignoreDiscriminator) {
12147
+ return json;
12148
+ }
12149
+
12054
12150
  // src/api/componentspublic/models/PlanVersionResponseData.ts
12055
12151
  function PlanVersionResponseDataFromJSON2(json) {
12056
12152
  return PlanVersionResponseDataFromJSONTyped5(json, false);
@@ -12068,6 +12164,7 @@ function PlanVersionResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
12068
12164
  name: json["name"],
12069
12165
  originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
12070
12166
  planType: PlanTypeFromJSON2(json["plan_type"]),
12167
+ renewalPolicy: RenewalPolicyFromJSON2(json["renewal_policy"]),
12071
12168
  status: PlanVersionStatusFromJSON2(json["status"]),
12072
12169
  updatedAt: new Date(json["updated_at"]),
12073
12170
  version: json["version"]
@@ -17656,7 +17753,7 @@ var reducer = (state, action) => {
17656
17753
  // src/context/EmbedProvider.tsx
17657
17754
  var import_jsx_runtime4 = require("react/jsx-runtime");
17658
17755
  var getCustomHeaders = (sessionId) => ({
17659
- "X-Schematic-Components-Version": "2.34.0",
17756
+ "X-Schematic-Components-Version": "2.34.1",
17660
17757
  "X-Schematic-Session-ID": sessionId
17661
17758
  });
17662
17759
  var normalizeCurrencyFilter = (filter) => {
@@ -1414,6 +1414,49 @@ declare interface BillingPlanCreditGrantResponseData {
1414
1414
  * @memberof BillingPlanCreditGrantResponseData
1415
1415
  */
1416
1416
  updatedAt: Date;
1417
+ /**
1418
+ * Usage-warning thresholds, in credits remaining in the company's balance, highest first. Schematic sends a credit.usage_warning_reached webhook when the balance drops to each one. Empty when none are set.
1419
+ * @type {Array<BillingPlanCreditGrantWarningTierResponseData>}
1420
+ * @memberof BillingPlanCreditGrantResponseData
1421
+ */
1422
+ warningTiers: Array<BillingPlanCreditGrantWarningTierResponseData>;
1423
+ }
1424
+
1425
+ /**
1426
+ * Schematic API
1427
+ * Schematic API
1428
+ *
1429
+ * The version of the OpenAPI document: 0.1
1430
+ *
1431
+ *
1432
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1433
+ * https://openapi-generator.tech
1434
+ * Do not edit the class manually.
1435
+ */
1436
+ /**
1437
+ *
1438
+ * @export
1439
+ * @interface BillingPlanCreditGrantWarningTierResponseData
1440
+ */
1441
+ declare interface BillingPlanCreditGrantWarningTierResponseData {
1442
+ /**
1443
+ *
1444
+ * @type {string}
1445
+ * @memberof BillingPlanCreditGrantWarningTierResponseData
1446
+ */
1447
+ id: string;
1448
+ /**
1449
+ *
1450
+ * @type {string}
1451
+ * @memberof BillingPlanCreditGrantWarningTierResponseData
1452
+ */
1453
+ key: string;
1454
+ /**
1455
+ * Credits remaining in the company's balance at which this warning is reached.
1456
+ * @type {number}
1457
+ * @memberof BillingPlanCreditGrantWarningTierResponseData
1458
+ */
1459
+ value: number;
1417
1460
  }
1418
1461
 
1419
1462
  /**
@@ -3612,6 +3655,7 @@ declare const CheckoutProblemCode: {
3612
3655
  readonly BillingStartDateNeedsRenewalDate: "billing_start_date_needs_renewal_date";
3613
3656
  readonly BillingStartDateNotBeforeRenewalDate: "billing_start_date_not_before_renewal_date";
3614
3657
  readonly BillingStartDateTooFarInPast: "billing_start_date_too_far_in_past";
3658
+ readonly CheckoutSuperseded: "checkout_superseded";
3615
3659
  readonly CreditBundleIncompatible: "credit_bundle_incompatible";
3616
3660
  readonly CreditBundleUnavailable: "credit_bundle_unavailable";
3617
3661
  readonly CreditBundlesActivateOnPayment: "credit_bundles_activate_on_payment";
@@ -3619,6 +3663,9 @@ declare const CheckoutProblemCode: {
3619
3663
  readonly CustomFieldRequired: "custom_field_required";
3620
3664
  readonly DiscountIneligible: "discount_ineligible";
3621
3665
  readonly DowngradeNotPermitted: "downgrade_not_permitted";
3666
+ readonly EndDateMustBeFuture: "end_date_must_be_future";
3667
+ readonly EndDateNeedsNewSubscription: "end_date_needs_new_subscription";
3668
+ readonly EndDateNotAfterRenewalDate: "end_date_not_after_renewal_date";
3622
3669
  readonly FreeFirstPeriodActivatesOnPayment: "free_first_period_activates_on_payment";
3623
3670
  readonly InvoiceEmailRequired: "invoice_email_required";
3624
3671
  readonly InvoicedSubscriptionConflictsWithTrial: "invoiced_subscription_conflicts_with_trial";
@@ -4056,6 +4103,18 @@ declare interface CheckoutUnsubscribeResponse {
4056
4103
  params: object;
4057
4104
  }
4058
4105
 
4106
+ /**
4107
+ *
4108
+ * @export
4109
+ */
4110
+ declare const Collector: {
4111
+ readonly External: "external";
4112
+ readonly StripeInvoice: "stripe_invoice";
4113
+ readonly StripePayments: "stripe_payments";
4114
+ };
4115
+
4116
+ declare type Collector = (typeof Collector)[keyof typeof Collector];
4117
+
4059
4118
  export declare const Column: ForwardRefExoticComponent<Omit<ColumnProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
4060
4119
 
4061
4120
  export declare interface ColumnProps extends React.HTMLProps<HTMLDivElement> {
@@ -4086,6 +4145,12 @@ declare interface CompanyBillingProfileResponseData {
4086
4145
  * @memberof CompanyBillingProfileResponseData
4087
4146
  */
4088
4147
  collectionMethod: BillingCollectionMethod;
4148
+ /**
4149
+ *
4150
+ * @type {Collector}
4151
+ * @memberof CompanyBillingProfileResponseData
4152
+ */
4153
+ collector?: Collector | null;
4089
4154
  /**
4090
4155
  *
4091
4156
  * @type {string}
@@ -4098,6 +4163,12 @@ declare interface CompanyBillingProfileResponseData {
4098
4163
  * @memberof CompanyBillingProfileResponseData
4099
4164
  */
4100
4165
  createdAt: Date;
4166
+ /**
4167
+ *
4168
+ * @type {Currency}
4169
+ * @memberof CompanyBillingProfileResponseData
4170
+ */
4171
+ currency?: Currency | null;
4101
4172
  /**
4102
4173
  *
4103
4174
  * @type {number}
@@ -4110,6 +4181,12 @@ declare interface CompanyBillingProfileResponseData {
4110
4181
  * @memberof CompanyBillingProfileResponseData
4111
4182
  */
4112
4183
  environmentId: string;
4184
+ /**
4185
+ *
4186
+ * @type {number}
4187
+ * @memberof CompanyBillingProfileResponseData
4188
+ */
4189
+ gatingDays: number;
4113
4190
  /**
4114
4191
  *
4115
4192
  * @type {string}
@@ -4128,6 +4205,18 @@ declare interface CompanyBillingProfileResponseData {
4128
4205
  * @memberof CompanyBillingProfileResponseData
4129
4206
  */
4130
4207
  name?: string | null;
4208
+ /**
4209
+ *
4210
+ * @type {number}
4211
+ * @memberof CompanyBillingProfileResponseData
4212
+ */
4213
+ overdraftLimit?: number | null;
4214
+ /**
4215
+ *
4216
+ * @type {PaymentGating}
4217
+ * @memberof CompanyBillingProfileResponseData
4218
+ */
4219
+ paymentGating: PaymentGating;
4131
4220
  /**
4132
4221
  *
4133
4222
  * @type {string}
@@ -4146,6 +4235,12 @@ declare interface CompanyBillingProfileResponseData {
4146
4235
  * @memberof CompanyBillingProfileResponseData
4147
4236
  */
4148
4237
  providerType: BillingProviderType;
4238
+ /**
4239
+ *
4240
+ * @type {string}
4241
+ * @memberof CompanyBillingProfileResponseData
4242
+ */
4243
+ purchaseOrder?: string | null;
4149
4244
  /**
4150
4245
  *
4151
4246
  * @type {Date}
@@ -7194,6 +7289,12 @@ declare interface CustomPlanBillingResponseData {
7194
7289
  * @memberof CustomPlanBillingResponseData
7195
7290
  */
7196
7291
  daysUntilDue: number;
7292
+ /**
7293
+ * When a custom plan that doesn't renew ends: the renewal the subscription stops on and the company moves to the default plan. Null for a plan that renews.
7294
+ * @type {Date}
7295
+ * @memberof CustomPlanBillingResponseData
7296
+ */
7297
+ endDate?: Date | null;
7197
7298
  /**
7198
7299
  *
7199
7300
  * @type {string}
@@ -8248,6 +8349,7 @@ export declare interface EntitlementProps {
8248
8349
  */
8249
8350
  declare const EntitlementType: {
8250
8351
  readonly CompanyOverride: "company_override";
8352
+ readonly PlanCreditGrant: "plan_credit_grant";
8251
8353
  readonly PlanEntitlement: "plan_entitlement";
8252
8354
  readonly Unknown: "unknown";
8253
8355
  };
@@ -9721,11 +9823,12 @@ declare interface FlagInPlanResponseData {
9721
9823
  */
9722
9824
  createdAt: Date;
9723
9825
  /**
9724
- *
9826
+ * Deprecated. The value a check returns in the requesting environment when no other rule matches: its default rule, or the flag's seed value while it has none. Read the default rule instead
9725
9827
  * @type {boolean}
9726
9828
  * @memberof FlagInPlanResponseData
9829
+ * @deprecated
9727
9830
  */
9728
- defaultValue: boolean;
9831
+ defaultValue?: boolean | null;
9729
9832
  /**
9730
9833
  *
9731
9834
  * @type {string}
@@ -9807,11 +9910,12 @@ declare interface FlagInPlanResponseData_2 {
9807
9910
  */
9808
9911
  createdAt: Date;
9809
9912
  /**
9810
- *
9913
+ * Deprecated. The value a check returns in the requesting environment when no other rule matches: its default rule, or the flag's seed value while it has none. Read the default rule instead
9811
9914
  * @type {boolean}
9812
9915
  * @memberof FlagInPlanResponseData
9916
+ * @deprecated
9813
9917
  */
9814
- defaultValue: boolean;
9918
+ defaultValue?: boolean | null;
9815
9919
  /**
9816
9920
  *
9817
9921
  * @type {string}
@@ -10617,6 +10721,17 @@ style?: CSSProperties | CSSPropertiesWithVars | (CSSProperties & {
10617
10721
  }) | undefined;
10618
10722
  }> & string;
10619
10723
 
10724
+ /**
10725
+ *
10726
+ * @export
10727
+ */
10728
+ declare const PaymentGating: {
10729
+ readonly KeepServing: "keep_serving";
10730
+ readonly RevokeAfter: "revoke_after";
10731
+ };
10732
+
10733
+ declare type PaymentGating = (typeof PaymentGating)[keyof typeof PaymentGating];
10734
+
10620
10735
  export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & DeepPartial<DesignProps_5> & HTMLAttributes<HTMLDivElement> & {
10621
10736
  portal?: HTMLElement | null;
10622
10737
  allowEdit?: boolean;
@@ -12601,6 +12716,12 @@ declare interface PlanVersionResponseData {
12601
12716
  * @memberof PlanVersionResponseData
12602
12717
  */
12603
12718
  planType: PlanType;
12719
+ /**
12720
+ *
12721
+ * @type {RenewalPolicy}
12722
+ * @memberof PlanVersionResponseData
12723
+ */
12724
+ renewalPolicy: RenewalPolicy;
12604
12725
  /**
12605
12726
  *
12606
12727
  * @type {PlanVersionStatus}
@@ -12675,6 +12796,12 @@ declare interface PlanVersionResponseData_2 {
12675
12796
  * @memberof PlanVersionResponseData
12676
12797
  */
12677
12798
  planType: PlanType_2;
12799
+ /**
12800
+ *
12801
+ * @type {RenewalPolicy}
12802
+ * @memberof PlanVersionResponseData
12803
+ */
12804
+ renewalPolicy: RenewalPolicy_2;
12678
12805
  /**
12679
12806
  *
12680
12807
  * @type {PlanVersionStatus}
@@ -13657,6 +13784,30 @@ export declare interface RehydrateParams {
13657
13784
  includeAddOnIds?: string[];
13658
13785
  }
13659
13786
 
13787
+ /**
13788
+ *
13789
+ * @export
13790
+ */
13791
+ declare const RenewalPolicy: {
13792
+ readonly AutoRenew: "auto_renew";
13793
+ readonly ExpireToDefault: "expire_to_default";
13794
+ readonly HoldWithGrace: "hold_with_grace";
13795
+ };
13796
+
13797
+ declare type RenewalPolicy = (typeof RenewalPolicy)[keyof typeof RenewalPolicy];
13798
+
13799
+ /**
13800
+ *
13801
+ * @export
13802
+ */
13803
+ declare const RenewalPolicy_2: {
13804
+ readonly AutoRenew: "auto_renew";
13805
+ readonly ExpireToDefault: "expire_to_default";
13806
+ readonly HoldWithGrace: "hold_with_grace";
13807
+ };
13808
+
13809
+ declare type RenewalPolicy_2 = (typeof RenewalPolicy_2)[keyof typeof RenewalPolicy_2];
13810
+
13660
13811
  declare interface RequestContext {
13661
13812
  fetch: FetchAPI;
13662
13813
  url: string;