@schematichq/schematic-components 2.31.0 → 2.31.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.
- package/dist/schematic-components-elements.cjs.js +1116 -217
- package/dist/schematic-components-elements.d.ts +304 -0
- package/dist/schematic-components-elements.esm.js +1090 -188
- package/dist/schematic-components.browser.cjs.js +735 -105
- package/dist/schematic-components.browser.esm.js +735 -105
- package/dist/schematic-components.cjs.js +735 -105
- package/dist/schematic-components.d.ts +547 -101
- package/dist/schematic-components.esm.js +735 -105
- package/package.json +9 -9
|
@@ -4071,6 +4071,17 @@ function BillingProductPriceIntervalFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4071
4071
|
return json;
|
|
4072
4072
|
}
|
|
4073
4073
|
|
|
4074
|
+
// src/api/checkoutexternal/models/Currency.ts
|
|
4075
|
+
function CurrencyFromJSON(json) {
|
|
4076
|
+
return CurrencyFromJSONTyped(json, false);
|
|
4077
|
+
}
|
|
4078
|
+
function CurrencyFromJSONTyped(json, ignoreDiscriminator) {
|
|
4079
|
+
return json;
|
|
4080
|
+
}
|
|
4081
|
+
function CurrencyToJSON(value) {
|
|
4082
|
+
return value;
|
|
4083
|
+
}
|
|
4084
|
+
|
|
4074
4085
|
// src/api/checkoutexternal/models/BillingPriceUsageType.ts
|
|
4075
4086
|
function BillingPriceUsageTypeFromJSON(json) {
|
|
4076
4087
|
return BillingPriceUsageTypeFromJSONTyped(json, false);
|
|
@@ -4118,7 +4129,7 @@ function BillingProductPriceResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
4118
4129
|
return {
|
|
4119
4130
|
billingScheme: BillingPriceSchemeFromJSON(json["billing_scheme"]),
|
|
4120
4131
|
createdAt: new Date(json["created_at"]),
|
|
4121
|
-
currency: json["currency"],
|
|
4132
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4122
4133
|
id: json["id"],
|
|
4123
4134
|
interval: BillingProductPriceIntervalFromJSON(json["interval"]),
|
|
4124
4135
|
intervalCount: json["interval_count"],
|
|
@@ -4164,7 +4175,7 @@ function BillingPriceViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4164
4175
|
return {
|
|
4165
4176
|
billingScheme: BillingPriceSchemeFromJSON(json["billing_scheme"]),
|
|
4166
4177
|
createdAt: new Date(json["created_at"]),
|
|
4167
|
-
currency: json["currency"],
|
|
4178
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4168
4179
|
id: json["id"],
|
|
4169
4180
|
interval: BillingProductPriceIntervalFromJSON(json["interval"]),
|
|
4170
4181
|
intervalCount: json["interval_count"],
|
|
@@ -4200,7 +4211,7 @@ function CreditBundleCurrencyPriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4200
4211
|
return json;
|
|
4201
4212
|
}
|
|
4202
4213
|
return {
|
|
4203
|
-
currency: json["currency"],
|
|
4214
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4204
4215
|
price: json["price"] == null ? void 0 : BillingPriceViewFromJSON(json["price"])
|
|
4205
4216
|
};
|
|
4206
4217
|
}
|
|
@@ -4304,7 +4315,7 @@ function BillingPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4304
4315
|
return json;
|
|
4305
4316
|
}
|
|
4306
4317
|
return {
|
|
4307
|
-
currency: json["currency"],
|
|
4318
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4308
4319
|
externalPriceId: json["external_price_id"],
|
|
4309
4320
|
id: json["id"],
|
|
4310
4321
|
interval: BillingProductPriceIntervalFromJSON(json["interval"]),
|
|
@@ -4326,7 +4337,7 @@ function CreditCurrencyPriceResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
4326
4337
|
return json;
|
|
4327
4338
|
}
|
|
4328
4339
|
return {
|
|
4329
|
-
currency: json["currency"],
|
|
4340
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4330
4341
|
price: json["price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["price"])
|
|
4331
4342
|
};
|
|
4332
4343
|
}
|
|
@@ -4410,7 +4421,7 @@ function CreditCurrencyPriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4410
4421
|
return json;
|
|
4411
4422
|
}
|
|
4412
4423
|
return {
|
|
4413
|
-
currency: json["currency"],
|
|
4424
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4414
4425
|
price: json["price"] == null ? void 0 : BillingPriceViewFromJSON(json["price"])
|
|
4415
4426
|
};
|
|
4416
4427
|
}
|
|
@@ -4681,7 +4692,7 @@ function BillingProductForSubscriptionResponseDataFromJSONTyped(json, ignoreDisc
|
|
|
4681
4692
|
billingScheme: BillingPriceSchemeFromJSON(json["billing_scheme"]),
|
|
4682
4693
|
billingThreshold: json["billing_threshold"] == null ? void 0 : json["billing_threshold"],
|
|
4683
4694
|
createdAt: new Date(json["created_at"]),
|
|
4684
|
-
currency: json["currency"],
|
|
4695
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4685
4696
|
environmentId: json["environment_id"],
|
|
4686
4697
|
externalId: json["external_id"],
|
|
4687
4698
|
id: json["id"],
|
|
@@ -4726,7 +4737,7 @@ function BillingSubscriptionDiscountViewFromJSONTyped(json, ignoreDiscriminator)
|
|
|
4726
4737
|
amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
|
|
4727
4738
|
couponId: json["coupon_id"],
|
|
4728
4739
|
couponName: json["coupon_name"],
|
|
4729
|
-
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
4740
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
4730
4741
|
customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
|
|
4731
4742
|
discountExternalId: json["discount_external_id"],
|
|
4732
4743
|
duration: json["duration"],
|
|
@@ -4778,7 +4789,7 @@ function InvoiceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4778
4789
|
collectionMethod: json["collection_method"],
|
|
4779
4790
|
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
4780
4791
|
createdAt: new Date(json["created_at"]),
|
|
4781
|
-
currency: json["currency"],
|
|
4792
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4782
4793
|
customerExternalId: json["customer_external_id"],
|
|
4783
4794
|
dueDate: json["due_date"] == null ? void 0 : new Date(json["due_date"]),
|
|
4784
4795
|
endingBalance: json["ending_balance"],
|
|
@@ -4841,7 +4852,7 @@ function BillingSubscriptionViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4841
4852
|
cancelAtPeriodEnd: json["cancel_at_period_end"],
|
|
4842
4853
|
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
4843
4854
|
createdAt: new Date(json["created_at"]),
|
|
4844
|
-
currency: json["currency"],
|
|
4855
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4845
4856
|
customerExternalId: json["customer_external_id"],
|
|
4846
4857
|
defaultPaymentMethodId: json["default_payment_method_id"] == null ? void 0 : json["default_payment_method_id"],
|
|
4847
4858
|
discounts: json["discounts"].map(
|
|
@@ -4867,6 +4878,71 @@ function BillingSubscriptionViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4867
4878
|
};
|
|
4868
4879
|
}
|
|
4869
4880
|
|
|
4881
|
+
// src/api/checkoutexternal/models/CatalogCreditGrantResponseData.ts
|
|
4882
|
+
function CatalogCreditGrantResponseDataFromJSON(json) {
|
|
4883
|
+
return CatalogCreditGrantResponseDataFromJSONTyped(json, false);
|
|
4884
|
+
}
|
|
4885
|
+
function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4886
|
+
if (json == null) {
|
|
4887
|
+
return json;
|
|
4888
|
+
}
|
|
4889
|
+
return {
|
|
4890
|
+
companyCreditAmount: json["company_credit_amount"],
|
|
4891
|
+
creditAmount: json["credit_amount"],
|
|
4892
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
4893
|
+
creditId: json["credit_id"],
|
|
4894
|
+
creditName: json["credit_name"],
|
|
4895
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
4896
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
4897
|
+
id: json["id"],
|
|
4898
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
4899
|
+
resetCadence: json["reset_cadence"] == null ? void 0 : BillingPlanCreditGrantResetCadenceFromJSON(json["reset_cadence"]),
|
|
4900
|
+
scaling: PlanCreditGrantScalingFromJSON(json["scaling"])
|
|
4901
|
+
};
|
|
4902
|
+
}
|
|
4903
|
+
|
|
4904
|
+
// src/api/checkoutexternal/models/CatalogPriceTierResponseData.ts
|
|
4905
|
+
function CatalogPriceTierResponseDataFromJSON(json) {
|
|
4906
|
+
return CatalogPriceTierResponseDataFromJSONTyped(json, false);
|
|
4907
|
+
}
|
|
4908
|
+
function CatalogPriceTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4909
|
+
if (json == null) {
|
|
4910
|
+
return json;
|
|
4911
|
+
}
|
|
4912
|
+
return {
|
|
4913
|
+
flatPrice: json["flat_price"] == null ? void 0 : json["flat_price"],
|
|
4914
|
+
from: json["from"],
|
|
4915
|
+
perUnitPrice: json["per_unit_price"] == null ? void 0 : json["per_unit_price"],
|
|
4916
|
+
perUnitPriceDecimal: json["per_unit_price_decimal"] == null ? void 0 : json["per_unit_price_decimal"],
|
|
4917
|
+
to: json["to"] == null ? void 0 : json["to"]
|
|
4918
|
+
};
|
|
4919
|
+
}
|
|
4920
|
+
|
|
4921
|
+
// src/api/checkoutexternal/models/CatalogPriceResponseData.ts
|
|
4922
|
+
function CatalogPriceResponseDataFromJSON(json) {
|
|
4923
|
+
return CatalogPriceResponseDataFromJSONTyped(json, false);
|
|
4924
|
+
}
|
|
4925
|
+
function CatalogPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4926
|
+
if (json == null) {
|
|
4927
|
+
return json;
|
|
4928
|
+
}
|
|
4929
|
+
return {
|
|
4930
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4931
|
+
id: json["id"],
|
|
4932
|
+
interval: BillingProductPriceIntervalFromJSON(json["interval"]),
|
|
4933
|
+
intervalCount: json["interval_count"],
|
|
4934
|
+
overageUnitPriceDecimal: json["overage_unit_price_decimal"] == null ? void 0 : json["overage_unit_price_decimal"],
|
|
4935
|
+
packageSize: json["package_size"],
|
|
4936
|
+
price: json["price"],
|
|
4937
|
+
priceDecimal: json["price_decimal"] == null ? void 0 : json["price_decimal"],
|
|
4938
|
+
priceTiers: json["price_tiers"].map(
|
|
4939
|
+
CatalogPriceTierResponseDataFromJSON
|
|
4940
|
+
),
|
|
4941
|
+
scheme: BillingPriceSchemeFromJSON(json["scheme"]),
|
|
4942
|
+
tiersMode: json["tiers_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tiers_mode"])
|
|
4943
|
+
};
|
|
4944
|
+
}
|
|
4945
|
+
|
|
4870
4946
|
// src/api/checkoutexternal/models/UpdatePayInAdvanceRequestBody.ts
|
|
4871
4947
|
function UpdatePayInAdvanceRequestBodyFromJSON(json) {
|
|
4872
4948
|
return UpdatePayInAdvanceRequestBodyFromJSONTyped(json, false);
|
|
@@ -5021,7 +5097,7 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
|
|
|
5021
5097
|
credit_bundles: value["creditBundles"].map(
|
|
5022
5098
|
UpdateCreditBundleRequestBodyToJSON
|
|
5023
5099
|
),
|
|
5024
|
-
currency: value["currency"],
|
|
5100
|
+
currency: CurrencyToJSON(value["currency"]),
|
|
5025
5101
|
custom_field_values: value["customFieldValues"].map(
|
|
5026
5102
|
CheckoutFieldValueToJSON
|
|
5027
5103
|
),
|
|
@@ -5067,7 +5143,7 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5067
5143
|
}
|
|
5068
5144
|
return {
|
|
5069
5145
|
amountOff: json["amount_off"],
|
|
5070
|
-
currency: json["currency"],
|
|
5146
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5071
5147
|
dueNow: json["due_now"],
|
|
5072
5148
|
isScheduledDowngrade: json["is_scheduled_downgrade"],
|
|
5073
5149
|
newCharges: json["new_charges"],
|
|
@@ -5144,11 +5220,11 @@ function CheckoutProblemCodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5144
5220
|
return json;
|
|
5145
5221
|
}
|
|
5146
5222
|
|
|
5147
|
-
// src/api/checkoutexternal/models/
|
|
5148
|
-
function
|
|
5149
|
-
return
|
|
5223
|
+
// src/api/checkoutexternal/models/CheckoutProblemResponseData.ts
|
|
5224
|
+
function CheckoutProblemResponseDataFromJSON(json) {
|
|
5225
|
+
return CheckoutProblemResponseDataFromJSONTyped(json, false);
|
|
5150
5226
|
}
|
|
5151
|
-
function
|
|
5227
|
+
function CheckoutProblemResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5152
5228
|
if (json == null) {
|
|
5153
5229
|
return json;
|
|
5154
5230
|
}
|
|
@@ -5156,7 +5232,7 @@ function ProblemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5156
5232
|
blocking: json["blocking"],
|
|
5157
5233
|
bundleId: json["bundle_id"] == null ? void 0 : json["bundle_id"],
|
|
5158
5234
|
code: CheckoutProblemCodeFromJSON(json["code"]),
|
|
5159
|
-
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
5235
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
5160
5236
|
detail: json["detail"] == null ? void 0 : json["detail"],
|
|
5161
5237
|
featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
|
|
5162
5238
|
fieldId: json["field_id"] == null ? void 0 : json["field_id"],
|
|
@@ -5185,7 +5261,9 @@ function CheckoutDraftResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5185
5261
|
lastActivityAt: new Date(json["last_activity_at"]),
|
|
5186
5262
|
priceSnapshot: json["price_snapshot"] == null ? void 0 : CheckoutPriceSnapshotFromJSON(json["price_snapshot"]),
|
|
5187
5263
|
pricedAt: json["priced_at"] == null ? void 0 : new Date(json["priced_at"]),
|
|
5188
|
-
problems: json["problems"].map(
|
|
5264
|
+
problems: json["problems"].map(
|
|
5265
|
+
CheckoutProblemResponseDataFromJSON
|
|
5266
|
+
),
|
|
5189
5267
|
selections: CheckoutSelectionsResponseDataFromJSON(json["selections"]),
|
|
5190
5268
|
shareToken: json["share_token"] == null ? void 0 : json["share_token"],
|
|
5191
5269
|
status: CheckoutStatusFromJSON(json["status"]),
|
|
@@ -5213,6 +5291,11 @@ function CheckoutFieldWithValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5213
5291
|
};
|
|
5214
5292
|
}
|
|
5215
5293
|
|
|
5294
|
+
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5295
|
+
function CheckoutIntentToJSON(value) {
|
|
5296
|
+
return value;
|
|
5297
|
+
}
|
|
5298
|
+
|
|
5216
5299
|
// src/api/checkoutexternal/models/ScheduledDowngradeConfigBehavior.ts
|
|
5217
5300
|
function ScheduledDowngradeConfigBehaviorFromJSON(json) {
|
|
5218
5301
|
return ScheduledDowngradeConfigBehaviorFromJSONTyped(json, false);
|
|
@@ -5237,7 +5320,7 @@ function CheckoutResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5237
5320
|
confirmPaymentIntentClientSecret: json["confirm_payment_intent_client_secret"] == null ? void 0 : json["confirm_payment_intent_client_secret"],
|
|
5238
5321
|
confirmPaymentIntentId: json["confirm_payment_intent_id"] == null ? void 0 : json["confirm_payment_intent_id"],
|
|
5239
5322
|
createdAt: new Date(json["created_at"]),
|
|
5240
|
-
currency: json["currency"],
|
|
5323
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5241
5324
|
customerExternalId: json["customer_external_id"],
|
|
5242
5325
|
defaultPaymentMethodId: json["default_payment_method_id"] == null ? void 0 : json["default_payment_method_id"],
|
|
5243
5326
|
expiredAt: json["expired_at"] == null ? void 0 : new Date(json["expired_at"]),
|
|
@@ -5357,6 +5440,134 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
5357
5440
|
};
|
|
5358
5441
|
}
|
|
5359
5442
|
|
|
5443
|
+
// src/api/checkoutexternal/models/CompanyCreditGrantResponseData.ts
|
|
5444
|
+
function CompanyCreditGrantResponseDataFromJSON(json) {
|
|
5445
|
+
return CompanyCreditGrantResponseDataFromJSONTyped(json, false);
|
|
5446
|
+
}
|
|
5447
|
+
function CompanyCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5448
|
+
if (json == null) {
|
|
5449
|
+
return json;
|
|
5450
|
+
}
|
|
5451
|
+
return {
|
|
5452
|
+
bundleId: json["bundle_id"] == null ? void 0 : json["bundle_id"],
|
|
5453
|
+
bundleName: json["bundle_name"] == null ? void 0 : json["bundle_name"],
|
|
5454
|
+
createdAt: new Date(json["created_at"]),
|
|
5455
|
+
expiresAt: json["expires_at"] == null ? void 0 : new Date(json["expires_at"]),
|
|
5456
|
+
grantReason: BillingCreditGrantReasonFromJSON(json["grant_reason"]),
|
|
5457
|
+
id: json["id"],
|
|
5458
|
+
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
5459
|
+
planName: json["plan_name"] == null ? void 0 : json["plan_name"],
|
|
5460
|
+
quantity: json["quantity"],
|
|
5461
|
+
quantityRemaining: json["quantity_remaining"],
|
|
5462
|
+
quantityUsed: json["quantity_used"],
|
|
5463
|
+
renewalPeriod: json["renewal_period"] == null ? void 0 : BillingPlanCreditGrantResetCadenceFromJSON(json["renewal_period"]),
|
|
5464
|
+
resetsAt: json["resets_at"] == null ? void 0 : new Date(json["resets_at"]),
|
|
5465
|
+
validFrom: json["valid_from"] == null ? void 0 : new Date(json["valid_from"])
|
|
5466
|
+
};
|
|
5467
|
+
}
|
|
5468
|
+
|
|
5469
|
+
// src/api/checkoutexternal/models/CompanyCreditCompositionResponseData.ts
|
|
5470
|
+
function CompanyCreditCompositionResponseDataFromJSON(json) {
|
|
5471
|
+
return CompanyCreditCompositionResponseDataFromJSONTyped(json, false);
|
|
5472
|
+
}
|
|
5473
|
+
function CompanyCreditCompositionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5474
|
+
if (json == null) {
|
|
5475
|
+
return json;
|
|
5476
|
+
}
|
|
5477
|
+
return {
|
|
5478
|
+
fixedQuantity: json["fixed_quantity"],
|
|
5479
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5480
|
+
licenseName: json["license_name"],
|
|
5481
|
+
licensePluralName: json["license_plural_name"] == null ? void 0 : json["license_plural_name"],
|
|
5482
|
+
licenseQuantity: json["license_quantity"],
|
|
5483
|
+
licenseSingularName: json["license_singular_name"] == null ? void 0 : json["license_singular_name"],
|
|
5484
|
+
perLicenseAmount: json["per_license_amount"],
|
|
5485
|
+
period: json["period"],
|
|
5486
|
+
renewsAt: json["renews_at"] == null ? void 0 : new Date(json["renews_at"]),
|
|
5487
|
+
total: json["total"]
|
|
5488
|
+
};
|
|
5489
|
+
}
|
|
5490
|
+
|
|
5491
|
+
// src/api/checkoutexternal/models/CompanyCreditBalanceResponseData.ts
|
|
5492
|
+
function CompanyCreditBalanceResponseDataFromJSON(json) {
|
|
5493
|
+
return CompanyCreditBalanceResponseDataFromJSONTyped(json, false);
|
|
5494
|
+
}
|
|
5495
|
+
function CompanyCreditBalanceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5496
|
+
if (json == null) {
|
|
5497
|
+
return json;
|
|
5498
|
+
}
|
|
5499
|
+
return {
|
|
5500
|
+
composition: json["composition"] == null ? void 0 : CompanyCreditCompositionResponseDataFromJSON(json["composition"]),
|
|
5501
|
+
creditDescription: json["credit_description"],
|
|
5502
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5503
|
+
creditId: json["credit_id"],
|
|
5504
|
+
creditName: json["credit_name"],
|
|
5505
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5506
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5507
|
+
expiresAt: json["expires_at"] == null ? void 0 : new Date(json["expires_at"]),
|
|
5508
|
+
grants: json["grants"].map(
|
|
5509
|
+
CompanyCreditGrantResponseDataFromJSON
|
|
5510
|
+
),
|
|
5511
|
+
purchasable: json["purchasable"],
|
|
5512
|
+
remaining: json["remaining"],
|
|
5513
|
+
resetsAt: json["resets_at"] == null ? void 0 : new Date(json["resets_at"]),
|
|
5514
|
+
total: json["total"],
|
|
5515
|
+
used: json["used"]
|
|
5516
|
+
};
|
|
5517
|
+
}
|
|
5518
|
+
|
|
5519
|
+
// src/api/checkoutexternal/models/CompanyCreditBalancesResponseData.ts
|
|
5520
|
+
function CompanyCreditBalancesResponseDataFromJSON(json) {
|
|
5521
|
+
return CompanyCreditBalancesResponseDataFromJSONTyped(json, false);
|
|
5522
|
+
}
|
|
5523
|
+
function CompanyCreditBalancesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5524
|
+
if (json == null) {
|
|
5525
|
+
return json;
|
|
5526
|
+
}
|
|
5527
|
+
return {
|
|
5528
|
+
balances: json["balances"].map(
|
|
5529
|
+
CompanyCreditBalanceResponseDataFromJSON
|
|
5530
|
+
),
|
|
5531
|
+
count: json["count"]
|
|
5532
|
+
};
|
|
5533
|
+
}
|
|
5534
|
+
|
|
5535
|
+
// src/api/checkoutexternal/models/CompanyCreditUserUsageRowResponseData.ts
|
|
5536
|
+
function CompanyCreditUserUsageRowResponseDataFromJSON(json) {
|
|
5537
|
+
return CompanyCreditUserUsageRowResponseDataFromJSONTyped(json, false);
|
|
5538
|
+
}
|
|
5539
|
+
function CompanyCreditUserUsageRowResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5540
|
+
if (json == null) {
|
|
5541
|
+
return json;
|
|
5542
|
+
}
|
|
5543
|
+
return {
|
|
5544
|
+
name: json["name"] == null ? void 0 : json["name"],
|
|
5545
|
+
share: json["share"],
|
|
5546
|
+
used: json["used"],
|
|
5547
|
+
userId: json["user_id"]
|
|
5548
|
+
};
|
|
5549
|
+
}
|
|
5550
|
+
|
|
5551
|
+
// src/api/checkoutexternal/models/CompanyCreditUserUsageResponseData.ts
|
|
5552
|
+
function CompanyCreditUserUsageResponseDataFromJSON(json) {
|
|
5553
|
+
return CompanyCreditUserUsageResponseDataFromJSONTyped(json, false);
|
|
5554
|
+
}
|
|
5555
|
+
function CompanyCreditUserUsageResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5556
|
+
if (json == null) {
|
|
5557
|
+
return json;
|
|
5558
|
+
}
|
|
5559
|
+
return {
|
|
5560
|
+
count: json["count"],
|
|
5561
|
+
endTime: json["end_time"] == null ? void 0 : new Date(json["end_time"]),
|
|
5562
|
+
startTime: json["start_time"] == null ? void 0 : new Date(json["start_time"]),
|
|
5563
|
+
total: json["total"],
|
|
5564
|
+
unattributed: json["unattributed"] == null ? void 0 : json["unattributed"],
|
|
5565
|
+
users: json["users"].map(
|
|
5566
|
+
CompanyCreditUserUsageRowResponseDataFromJSON
|
|
5567
|
+
)
|
|
5568
|
+
};
|
|
5569
|
+
}
|
|
5570
|
+
|
|
5360
5571
|
// src/api/checkoutexternal/models/CurrencyBalance.ts
|
|
5361
5572
|
function CurrencyBalanceFromJSON(json) {
|
|
5362
5573
|
return CurrencyBalanceFromJSONTyped(json, false);
|
|
@@ -5367,7 +5578,7 @@ function CurrencyBalanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5367
5578
|
}
|
|
5368
5579
|
return {
|
|
5369
5580
|
balance: json["balance"],
|
|
5370
|
-
currency: json["currency"]
|
|
5581
|
+
currency: CurrencyFromJSON(json["currency"])
|
|
5371
5582
|
};
|
|
5372
5583
|
}
|
|
5373
5584
|
|
|
@@ -5578,7 +5789,7 @@ function ScheduledDowngradeResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
5578
5789
|
return json;
|
|
5579
5790
|
}
|
|
5580
5791
|
return {
|
|
5581
|
-
currency: json["currency"],
|
|
5792
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5582
5793
|
effectiveAfter: new Date(json["effective_after"]),
|
|
5583
5794
|
fromPlanId: json["from_plan_id"],
|
|
5584
5795
|
fromPlanName: json["from_plan_name"],
|
|
@@ -5699,6 +5910,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5699
5910
|
daysUntilDue: json["days_until_due"],
|
|
5700
5911
|
externalInvoiceId: json["external_invoice_id"] == null ? void 0 : json["external_invoice_id"],
|
|
5701
5912
|
id: json["id"],
|
|
5913
|
+
migrationId: json["migration_id"] == null ? void 0 : json["migration_id"],
|
|
5702
5914
|
paidAt: json["paid_at"] == null ? void 0 : new Date(json["paid_at"]),
|
|
5703
5915
|
planBillingSource: PlanBillingSourceFromJSON(json["plan_billing_source"]),
|
|
5704
5916
|
planId: json["plan_id"],
|
|
@@ -5980,7 +6192,7 @@ function CompanyDiscountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5980
6192
|
return {
|
|
5981
6193
|
amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
|
|
5982
6194
|
couponName: json["coupon_name"],
|
|
5983
|
-
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
6195
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
5984
6196
|
customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
|
|
5985
6197
|
duration: json["duration"],
|
|
5986
6198
|
durationInMonths: json["duration_in_months"] == null ? void 0 : json["duration_in_months"],
|
|
@@ -5988,6 +6200,141 @@ function CompanyDiscountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5988
6200
|
};
|
|
5989
6201
|
}
|
|
5990
6202
|
|
|
6203
|
+
// src/api/checkoutexternal/models/FeatureType.ts
|
|
6204
|
+
var FeatureType = {
|
|
6205
|
+
Boolean: "boolean",
|
|
6206
|
+
Event: "event",
|
|
6207
|
+
License: "license",
|
|
6208
|
+
Trait: "trait"
|
|
6209
|
+
};
|
|
6210
|
+
function FeatureTypeFromJSON(json) {
|
|
6211
|
+
return FeatureTypeFromJSONTyped(json, false);
|
|
6212
|
+
}
|
|
6213
|
+
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
6214
|
+
return json;
|
|
6215
|
+
}
|
|
6216
|
+
|
|
6217
|
+
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
6218
|
+
var EntitlementPriceBehavior = {
|
|
6219
|
+
CreditBurndown: "credit_burndown",
|
|
6220
|
+
Overage: "overage",
|
|
6221
|
+
PayAsYouGo: "pay_as_you_go",
|
|
6222
|
+
PayInAdvance: "pay_in_advance",
|
|
6223
|
+
Tier: "tier"
|
|
6224
|
+
};
|
|
6225
|
+
function EntitlementPriceBehaviorFromJSON(json) {
|
|
6226
|
+
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
6227
|
+
}
|
|
6228
|
+
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
6229
|
+
return json;
|
|
6230
|
+
}
|
|
6231
|
+
|
|
6232
|
+
// src/api/checkoutexternal/models/EntitlementType.ts
|
|
6233
|
+
function EntitlementTypeFromJSON(json) {
|
|
6234
|
+
return EntitlementTypeFromJSONTyped(json, false);
|
|
6235
|
+
}
|
|
6236
|
+
function EntitlementTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
6237
|
+
return json;
|
|
6238
|
+
}
|
|
6239
|
+
|
|
6240
|
+
// src/api/checkoutexternal/models/CompanyFeatureUsageResponseData.ts
|
|
6241
|
+
function CompanyFeatureUsageResponseDataFromJSON(json) {
|
|
6242
|
+
return CompanyFeatureUsageResponseDataFromJSONTyped(json, false);
|
|
6243
|
+
}
|
|
6244
|
+
function CompanyFeatureUsageResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6245
|
+
if (json == null) {
|
|
6246
|
+
return json;
|
|
6247
|
+
}
|
|
6248
|
+
return {
|
|
6249
|
+
access: json["access"],
|
|
6250
|
+
allocation: json["allocation"] == null ? void 0 : json["allocation"],
|
|
6251
|
+
companyOverrideId: json["company_override_id"] == null ? void 0 : json["company_override_id"],
|
|
6252
|
+
consumptionRate: json["consumption_rate"] == null ? void 0 : json["consumption_rate"],
|
|
6253
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
6254
|
+
creditId: json["credit_id"] == null ? void 0 : json["credit_id"],
|
|
6255
|
+
creditName: json["credit_name"] == null ? void 0 : json["credit_name"],
|
|
6256
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
6257
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
6258
|
+
currentCost: json["current_cost"] == null ? void 0 : json["current_cost"],
|
|
6259
|
+
entitlementType: EntitlementTypeFromJSON(json["entitlement_type"]),
|
|
6260
|
+
expiresAt: json["expires_at"] == null ? void 0 : new Date(json["expires_at"]),
|
|
6261
|
+
featureDescription: json["feature_description"],
|
|
6262
|
+
featureIcon: json["feature_icon"],
|
|
6263
|
+
featureId: json["feature_id"],
|
|
6264
|
+
featureName: json["feature_name"],
|
|
6265
|
+
featurePluralName: json["feature_plural_name"] == null ? void 0 : json["feature_plural_name"],
|
|
6266
|
+
featureSingularName: json["feature_singular_name"] == null ? void 0 : json["feature_singular_name"],
|
|
6267
|
+
featureType: FeatureTypeFromJSON(json["feature_type"]),
|
|
6268
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
6269
|
+
metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
|
|
6270
|
+
metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
|
|
6271
|
+
perLicenseCreditGrants: json["per_license_credit_grants"].map(CatalogCreditGrantResponseDataFromJSON),
|
|
6272
|
+
planEntitlementId: json["plan_entitlement_id"] == null ? void 0 : json["plan_entitlement_id"],
|
|
6273
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
6274
|
+
priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
|
|
6275
|
+
resetsAt: json["resets_at"] == null ? void 0 : new Date(json["resets_at"]),
|
|
6276
|
+
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
6277
|
+
usage: json["usage"] == null ? void 0 : json["usage"],
|
|
6278
|
+
valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
|
|
6279
|
+
valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
|
|
6280
|
+
valueType: EntitlementValueTypeFromJSON(json["value_type"]),
|
|
6281
|
+
warningThreshold: json["warning_threshold"] == null ? void 0 : json["warning_threshold"]
|
|
6282
|
+
};
|
|
6283
|
+
}
|
|
6284
|
+
|
|
6285
|
+
// src/api/checkoutexternal/models/CompanyFeatureUsageListResponseData.ts
|
|
6286
|
+
function CompanyFeatureUsageListResponseDataFromJSON(json) {
|
|
6287
|
+
return CompanyFeatureUsageListResponseDataFromJSONTyped(json, false);
|
|
6288
|
+
}
|
|
6289
|
+
function CompanyFeatureUsageListResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6290
|
+
if (json == null) {
|
|
6291
|
+
return json;
|
|
6292
|
+
}
|
|
6293
|
+
return {
|
|
6294
|
+
count: json["count"],
|
|
6295
|
+
features: json["features"].map(
|
|
6296
|
+
CompanyFeatureUsageResponseDataFromJSON
|
|
6297
|
+
)
|
|
6298
|
+
};
|
|
6299
|
+
}
|
|
6300
|
+
|
|
6301
|
+
// src/api/checkoutexternal/models/CompanyUserUsageResponseData.ts
|
|
6302
|
+
function CompanyUserUsageResponseDataFromJSON(json) {
|
|
6303
|
+
return CompanyUserUsageResponseDataFromJSONTyped(json, false);
|
|
6304
|
+
}
|
|
6305
|
+
function CompanyUserUsageResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6306
|
+
if (json == null) {
|
|
6307
|
+
return json;
|
|
6308
|
+
}
|
|
6309
|
+
return {
|
|
6310
|
+
lastSeen: new Date(json["last_seen"]),
|
|
6311
|
+
name: json["name"] == null ? void 0 : json["name"],
|
|
6312
|
+
share: json["share"],
|
|
6313
|
+
usage: json["usage"],
|
|
6314
|
+
userId: json["user_id"]
|
|
6315
|
+
};
|
|
6316
|
+
}
|
|
6317
|
+
|
|
6318
|
+
// src/api/checkoutexternal/models/CompanyFeatureUserUsageResponseData.ts
|
|
6319
|
+
function CompanyFeatureUserUsageResponseDataFromJSON(json) {
|
|
6320
|
+
return CompanyFeatureUserUsageResponseDataFromJSONTyped(json, false);
|
|
6321
|
+
}
|
|
6322
|
+
function CompanyFeatureUserUsageResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6323
|
+
if (json == null) {
|
|
6324
|
+
return json;
|
|
6325
|
+
}
|
|
6326
|
+
return {
|
|
6327
|
+
count: json["count"],
|
|
6328
|
+
endTime: new Date(json["end_time"]),
|
|
6329
|
+
startTime: new Date(json["start_time"]),
|
|
6330
|
+
total: json["total"],
|
|
6331
|
+
unattributed: json["unattributed"] == null ? void 0 : json["unattributed"],
|
|
6332
|
+
users: json["users"].map(
|
|
6333
|
+
CompanyUserUsageResponseDataFromJSON
|
|
6334
|
+
)
|
|
6335
|
+
};
|
|
6336
|
+
}
|
|
6337
|
+
|
|
5991
6338
|
// src/api/checkoutexternal/models/CompanyInvoiceResponseData.ts
|
|
5992
6339
|
function CompanyInvoiceResponseDataFromJSON(json) {
|
|
5993
6340
|
return CompanyInvoiceResponseDataFromJSONTyped(json, false);
|
|
@@ -5999,7 +6346,7 @@ function CompanyInvoiceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5999
6346
|
return {
|
|
6000
6347
|
amountDue: json["amount_due"],
|
|
6001
6348
|
createdAt: new Date(json["created_at"]),
|
|
6002
|
-
currency: json["currency"],
|
|
6349
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
6003
6350
|
dueDate: json["due_date"] == null ? void 0 : new Date(json["due_date"]),
|
|
6004
6351
|
id: json["id"],
|
|
6005
6352
|
status: json["status"] == null ? void 0 : InvoiceStatusFromJSON(json["status"]),
|
|
@@ -6041,17 +6388,11 @@ function CompanyOverrideNoteResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
6041
6388
|
};
|
|
6042
6389
|
}
|
|
6043
6390
|
|
|
6044
|
-
// src/api/checkoutexternal/models/
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
Event: "event",
|
|
6048
|
-
License: "license",
|
|
6049
|
-
Trait: "trait"
|
|
6050
|
-
};
|
|
6051
|
-
function FeatureTypeFromJSON(json) {
|
|
6052
|
-
return FeatureTypeFromJSONTyped(json, false);
|
|
6391
|
+
// src/api/checkoutexternal/models/FeatureEventSource.ts
|
|
6392
|
+
function FeatureEventSourceFromJSON(json) {
|
|
6393
|
+
return FeatureEventSourceFromJSONTyped(json, false);
|
|
6053
6394
|
}
|
|
6054
|
-
function
|
|
6395
|
+
function FeatureEventSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
6055
6396
|
return json;
|
|
6056
6397
|
}
|
|
6057
6398
|
|
|
@@ -6074,6 +6415,7 @@ function FeatureResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6074
6415
|
return {
|
|
6075
6416
|
createdAt: new Date(json["created_at"]),
|
|
6076
6417
|
description: json["description"],
|
|
6418
|
+
eventSource: FeatureEventSourceFromJSON(json["event_source"]),
|
|
6077
6419
|
eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
|
|
6078
6420
|
featureType: FeatureTypeFromJSON(json["feature_type"]),
|
|
6079
6421
|
icon: json["icon"],
|
|
@@ -6113,6 +6455,7 @@ function CompanyOverrideResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6113
6455
|
notes: json["notes"].map(
|
|
6114
6456
|
CompanyOverrideNoteResponseDataFromJSON
|
|
6115
6457
|
),
|
|
6458
|
+
quantityRates: json["quantity_rates"] == null ? void 0 : json["quantity_rates"],
|
|
6116
6459
|
ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
|
|
6117
6460
|
ruleIdUsageExceeded: json["rule_id_usage_exceeded"] == null ? void 0 : json["rule_id_usage_exceeded"],
|
|
6118
6461
|
updatedAt: new Date(json["updated_at"]),
|
|
@@ -6198,7 +6541,7 @@ function EstimatedPlanTotalFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6198
6541
|
}
|
|
6199
6542
|
return {
|
|
6200
6543
|
amount: json["amount"],
|
|
6201
|
-
currency: json["currency"],
|
|
6544
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
6202
6545
|
period: PlanPriceCadenceFromJSON(json["period"])
|
|
6203
6546
|
};
|
|
6204
6547
|
}
|
|
@@ -6212,28 +6555,13 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscrimi
|
|
|
6212
6555
|
return json;
|
|
6213
6556
|
}
|
|
6214
6557
|
return {
|
|
6215
|
-
currency: json["currency"],
|
|
6558
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
6216
6559
|
monthlyPrice: json["monthly_price"] == null ? void 0 : BillingPriceViewFromJSON(json["monthly_price"]),
|
|
6217
6560
|
quarterlyPrice: json["quarterly_price"] == null ? void 0 : BillingPriceViewFromJSON(json["quarterly_price"]),
|
|
6218
6561
|
yearlyPrice: json["yearly_price"] == null ? void 0 : BillingPriceViewFromJSON(json["yearly_price"])
|
|
6219
6562
|
};
|
|
6220
6563
|
}
|
|
6221
6564
|
|
|
6222
|
-
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
6223
|
-
var EntitlementPriceBehavior = {
|
|
6224
|
-
CreditBurndown: "credit_burndown",
|
|
6225
|
-
Overage: "overage",
|
|
6226
|
-
PayAsYouGo: "pay_as_you_go",
|
|
6227
|
-
PayInAdvance: "pay_in_advance",
|
|
6228
|
-
Tier: "tier"
|
|
6229
|
-
};
|
|
6230
|
-
function EntitlementPriceBehaviorFromJSON(json) {
|
|
6231
|
-
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
6232
|
-
}
|
|
6233
|
-
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
6234
|
-
return json;
|
|
6235
|
-
}
|
|
6236
|
-
|
|
6237
6565
|
// src/api/checkoutexternal/models/WarningTierResponseData.ts
|
|
6238
6566
|
function WarningTierResponseDataFromJSON(json) {
|
|
6239
6567
|
return WarningTierResponseDataFromJSONTyped(json, false);
|
|
@@ -6319,6 +6647,7 @@ function PlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6319
6647
|
plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON(json["plan"]),
|
|
6320
6648
|
planId: json["plan_id"],
|
|
6321
6649
|
priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
|
|
6650
|
+
quantityRates: json["quantity_rates"] == null ? void 0 : json["quantity_rates"],
|
|
6322
6651
|
ruleId: json["rule_id"],
|
|
6323
6652
|
ruleIdUsageExceeded: json["rule_id_usage_exceeded"] == null ? void 0 : json["rule_id_usage_exceeded"],
|
|
6324
6653
|
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
@@ -6528,6 +6857,7 @@ function FeatureInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6528
6857
|
),
|
|
6529
6858
|
createdAt: new Date(json["created_at"]),
|
|
6530
6859
|
description: json["description"],
|
|
6860
|
+
eventSource: FeatureEventSourceFromJSON(json["event_source"]),
|
|
6531
6861
|
eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
|
|
6532
6862
|
eventSummary: json["event_summary"] == null ? void 0 : EventSummaryResponseDataFromJSON(json["event_summary"]),
|
|
6533
6863
|
featureType: FeatureTypeFromJSON(json["feature_type"]),
|
|
@@ -6650,7 +6980,7 @@ function PlanCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
6650
6980
|
return json;
|
|
6651
6981
|
}
|
|
6652
6982
|
return {
|
|
6653
|
-
currency: json["currency"],
|
|
6983
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
6654
6984
|
monthlyPrice: json["monthly_price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["monthly_price"]),
|
|
6655
6985
|
oneTimePrice: json["one_time_price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["one_time_price"]),
|
|
6656
6986
|
quarterlyPrice: json["quarterly_price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
@@ -6713,14 +7043,6 @@ function CreditGrantDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6713
7043
|
};
|
|
6714
7044
|
}
|
|
6715
7045
|
|
|
6716
|
-
// src/api/checkoutexternal/models/EntitlementType.ts
|
|
6717
|
-
function EntitlementTypeFromJSON(json) {
|
|
6718
|
-
return EntitlementTypeFromJSONTyped(json, false);
|
|
6719
|
-
}
|
|
6720
|
-
function EntitlementTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
6721
|
-
return json;
|
|
6722
|
-
}
|
|
6723
|
-
|
|
6724
7046
|
// src/api/checkoutexternal/models/FeatureUsageResponseData.ts
|
|
6725
7047
|
function FeatureUsageResponseDataFromJSON(json) {
|
|
6726
7048
|
return FeatureUsageResponseDataFromJSONTyped(json, false);
|
|
@@ -6861,7 +7183,7 @@ function CompanySubscriptionResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
6861
7183
|
return {
|
|
6862
7184
|
cancelAt: json["cancel_at"] == null ? void 0 : new Date(json["cancel_at"]),
|
|
6863
7185
|
cancelAtPeriodEnd: json["cancel_at_period_end"],
|
|
6864
|
-
currency: json["currency"],
|
|
7186
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
6865
7187
|
customerExternalId: json["customer_external_id"],
|
|
6866
7188
|
discounts: json["discounts"].map(
|
|
6867
7189
|
BillingSubscriptionDiscountViewFromJSON
|
|
@@ -6892,7 +7214,7 @@ function CompanyUpcomingInvoiceResponseDataFromJSONTyped(json, ignoreDiscriminat
|
|
|
6892
7214
|
}
|
|
6893
7215
|
return {
|
|
6894
7216
|
amountDue: json["amount_due"],
|
|
6895
|
-
currency: json["currency"],
|
|
7217
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
6896
7218
|
customerBalanceApplied: json["customer_balance_applied"],
|
|
6897
7219
|
customerBalanceRemaining: json["customer_balance_remaining"],
|
|
6898
7220
|
discounts: json["discounts"].map(
|
|
@@ -7057,7 +7379,7 @@ function UpcomingInvoiceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7057
7379
|
collectionMethod: json["collection_method"],
|
|
7058
7380
|
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
7059
7381
|
createdAt: new Date(json["created_at"]),
|
|
7060
|
-
currency: json["currency"],
|
|
7382
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
7061
7383
|
customerExternalId: json["customer_external_id"],
|
|
7062
7384
|
dueDate: json["due_date"] == null ? void 0 : new Date(json["due_date"]),
|
|
7063
7385
|
endingBalance: json["ending_balance"],
|
|
@@ -7128,7 +7450,7 @@ function CreditCompanyGrantViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7128
7450
|
creditDescription: json["credit_description"],
|
|
7129
7451
|
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
7130
7452
|
creditName: json["credit_name"],
|
|
7131
|
-
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
7453
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
7132
7454
|
exhaustedAt: json["exhausted_at"] == null ? void 0 : new Date(json["exhausted_at"]),
|
|
7133
7455
|
expiresAt: json["expires_at"] == null ? void 0 : new Date(json["expires_at"]),
|
|
7134
7456
|
expiryType: json["expiry_type"] == null ? void 0 : BillingCreditExpiryTypeFromJSON(json["expiry_type"]),
|
|
@@ -7141,7 +7463,7 @@ function CreditCompanyGrantViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7141
7463
|
planName: json["plan_name"] == null ? void 0 : json["plan_name"],
|
|
7142
7464
|
pluralName: json["plural_name"] == null ? void 0 : json["plural_name"],
|
|
7143
7465
|
postpaidChargeAmount: json["postpaid_charge_amount"] == null ? void 0 : json["postpaid_charge_amount"],
|
|
7144
|
-
postpaidChargeCurrency: json["postpaid_charge_currency"] == null ? void 0 : json["postpaid_charge_currency"],
|
|
7466
|
+
postpaidChargeCurrency: json["postpaid_charge_currency"] == null ? void 0 : CurrencyFromJSON(json["postpaid_charge_currency"]),
|
|
7145
7467
|
postpaidChargedCredits: json["postpaid_charged_credits"] == null ? void 0 : json["postpaid_charged_credits"],
|
|
7146
7468
|
postpaidPeriodEnd: json["postpaid_period_end"] == null ? void 0 : new Date(json["postpaid_period_end"]),
|
|
7147
7469
|
postpaidRate: json["postpaid_rate"] == null ? void 0 : json["postpaid_rate"],
|
|
@@ -7308,10 +7630,11 @@ function CreateCheckoutRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
7308
7630
|
credit_bundles: value["creditBundles"].map(
|
|
7309
7631
|
UpdateCreditBundleRequestBodyToJSON
|
|
7310
7632
|
),
|
|
7311
|
-
currency: value["currency"],
|
|
7633
|
+
currency: CurrencyToJSON(value["currency"]),
|
|
7312
7634
|
custom_field_values: value["customFieldValues"].map(
|
|
7313
7635
|
CheckoutFieldValueToJSON
|
|
7314
7636
|
),
|
|
7637
|
+
intent: CheckoutIntentToJSON(value["intent"]),
|
|
7315
7638
|
new_plan_id: value["newPlanId"],
|
|
7316
7639
|
new_price_id: value["newPriceId"],
|
|
7317
7640
|
opt_in_accepted: value["optInAccepted"],
|
|
@@ -7561,6 +7884,90 @@ function GetCheckoutTaxIDResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7561
7884
|
};
|
|
7562
7885
|
}
|
|
7563
7886
|
|
|
7887
|
+
// src/api/checkoutexternal/models/GetCompanyCreditBalancesResponse.ts
|
|
7888
|
+
function GetCompanyCreditBalancesResponseFromJSON(json) {
|
|
7889
|
+
return GetCompanyCreditBalancesResponseFromJSONTyped(json, false);
|
|
7890
|
+
}
|
|
7891
|
+
function GetCompanyCreditBalancesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7892
|
+
if (json == null) {
|
|
7893
|
+
return json;
|
|
7894
|
+
}
|
|
7895
|
+
return {
|
|
7896
|
+
data: CompanyCreditBalancesResponseDataFromJSON(json["data"]),
|
|
7897
|
+
params: json["params"]
|
|
7898
|
+
};
|
|
7899
|
+
}
|
|
7900
|
+
|
|
7901
|
+
// src/api/checkoutexternal/models/GetCompanyCreditUserUsageParams.ts
|
|
7902
|
+
function GetCompanyCreditUserUsageParamsFromJSON(json) {
|
|
7903
|
+
return GetCompanyCreditUserUsageParamsFromJSONTyped(json, false);
|
|
7904
|
+
}
|
|
7905
|
+
function GetCompanyCreditUserUsageParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
7906
|
+
if (json == null) {
|
|
7907
|
+
return json;
|
|
7908
|
+
}
|
|
7909
|
+
return {
|
|
7910
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
7911
|
+
offset: json["offset"] == null ? void 0 : json["offset"]
|
|
7912
|
+
};
|
|
7913
|
+
}
|
|
7914
|
+
|
|
7915
|
+
// src/api/checkoutexternal/models/GetCompanyCreditUserUsageResponse.ts
|
|
7916
|
+
function GetCompanyCreditUserUsageResponseFromJSON(json) {
|
|
7917
|
+
return GetCompanyCreditUserUsageResponseFromJSONTyped(json, false);
|
|
7918
|
+
}
|
|
7919
|
+
function GetCompanyCreditUserUsageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7920
|
+
if (json == null) {
|
|
7921
|
+
return json;
|
|
7922
|
+
}
|
|
7923
|
+
return {
|
|
7924
|
+
data: CompanyCreditUserUsageResponseDataFromJSON(json["data"]),
|
|
7925
|
+
params: GetCompanyCreditUserUsageParamsFromJSON(json["params"])
|
|
7926
|
+
};
|
|
7927
|
+
}
|
|
7928
|
+
|
|
7929
|
+
// src/api/checkoutexternal/models/GetCompanyFeatureUsageResponse.ts
|
|
7930
|
+
function GetCompanyFeatureUsageResponseFromJSON(json) {
|
|
7931
|
+
return GetCompanyFeatureUsageResponseFromJSONTyped(json, false);
|
|
7932
|
+
}
|
|
7933
|
+
function GetCompanyFeatureUsageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7934
|
+
if (json == null) {
|
|
7935
|
+
return json;
|
|
7936
|
+
}
|
|
7937
|
+
return {
|
|
7938
|
+
data: CompanyFeatureUsageListResponseDataFromJSON(json["data"]),
|
|
7939
|
+
params: json["params"]
|
|
7940
|
+
};
|
|
7941
|
+
}
|
|
7942
|
+
|
|
7943
|
+
// src/api/checkoutexternal/models/GetCompanyFeatureUserUsageParams.ts
|
|
7944
|
+
function GetCompanyFeatureUserUsageParamsFromJSON(json) {
|
|
7945
|
+
return GetCompanyFeatureUserUsageParamsFromJSONTyped(json, false);
|
|
7946
|
+
}
|
|
7947
|
+
function GetCompanyFeatureUserUsageParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
7948
|
+
if (json == null) {
|
|
7949
|
+
return json;
|
|
7950
|
+
}
|
|
7951
|
+
return {
|
|
7952
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
7953
|
+
offset: json["offset"] == null ? void 0 : json["offset"]
|
|
7954
|
+
};
|
|
7955
|
+
}
|
|
7956
|
+
|
|
7957
|
+
// src/api/checkoutexternal/models/GetCompanyFeatureUserUsageResponse.ts
|
|
7958
|
+
function GetCompanyFeatureUserUsageResponseFromJSON(json) {
|
|
7959
|
+
return GetCompanyFeatureUserUsageResponseFromJSONTyped(json, false);
|
|
7960
|
+
}
|
|
7961
|
+
function GetCompanyFeatureUserUsageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7962
|
+
if (json == null) {
|
|
7963
|
+
return json;
|
|
7964
|
+
}
|
|
7965
|
+
return {
|
|
7966
|
+
data: CompanyFeatureUserUsageResponseDataFromJSON(json["data"]),
|
|
7967
|
+
params: GetCompanyFeatureUserUsageParamsFromJSON(json["params"])
|
|
7968
|
+
};
|
|
7969
|
+
}
|
|
7970
|
+
|
|
7564
7971
|
// src/api/checkoutexternal/models/GetCompanyInvoicesParams.ts
|
|
7565
7972
|
function GetCompanyInvoicesParamsFromJSON(json) {
|
|
7566
7973
|
return GetCompanyInvoicesParamsFromJSONTyped(json, false);
|
|
@@ -7843,7 +8250,7 @@ function PreviewSubscriptionDiscountResponseDataFromJSONTyped(json, ignoreDiscri
|
|
|
7843
8250
|
return {
|
|
7844
8251
|
amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
|
|
7845
8252
|
couponName: json["coupon_name"],
|
|
7846
|
-
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
8253
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
7847
8254
|
customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
|
|
7848
8255
|
duration: json["duration"],
|
|
7849
8256
|
durationInMonths: json["duration_in_months"] == null ? void 0 : json["duration_in_months"],
|
|
@@ -7865,7 +8272,7 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
|
|
|
7865
8272
|
}
|
|
7866
8273
|
return {
|
|
7867
8274
|
amountOff: json["amount_off"],
|
|
7868
|
-
currency: json["currency"],
|
|
8275
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
7869
8276
|
discountAmount: json["discount_amount"],
|
|
7870
8277
|
discounts: json["discounts"].map(
|
|
7871
8278
|
PreviewSubscriptionDiscountResponseDataFromJSON
|
|
@@ -7907,6 +8314,9 @@ function PreviewSubscriptionChangeResponseDataFromJSONTyped(json, ignoreDiscrimi
|
|
|
7907
8314
|
paymentMethodRequired: json["payment_method_required"],
|
|
7908
8315
|
percentOff: json["percent_off"],
|
|
7909
8316
|
periodStart: new Date(json["period_start"]),
|
|
8317
|
+
problems: json["problems"].map(
|
|
8318
|
+
CheckoutProblemResponseDataFromJSON
|
|
8319
|
+
),
|
|
7910
8320
|
promoCodeApplied: json["promo_code_applied"],
|
|
7911
8321
|
proration: json["proration"],
|
|
7912
8322
|
scheduledChangeTime: json["scheduled_change_time"] == null ? void 0 : new Date(json["scheduled_change_time"]),
|
|
@@ -8010,10 +8420,11 @@ function UpdateCheckoutRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
8010
8420
|
credit_bundles: value["creditBundles"].map(
|
|
8011
8421
|
UpdateCreditBundleRequestBodyToJSON
|
|
8012
8422
|
),
|
|
8013
|
-
currency: value["currency"],
|
|
8423
|
+
currency: CurrencyToJSON(value["currency"]),
|
|
8014
8424
|
custom_field_values: value["customFieldValues"].map(
|
|
8015
8425
|
CheckoutFieldValueToJSON
|
|
8016
8426
|
),
|
|
8427
|
+
intent: CheckoutIntentToJSON(value["intent"]),
|
|
8017
8428
|
new_plan_id: value["newPlanId"],
|
|
8018
8429
|
new_price_id: value["newPriceId"],
|
|
8019
8430
|
opt_in_accepted: value["optInAccepted"],
|
|
@@ -8454,6 +8865,170 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
8454
8865
|
const response = await this.getCheckoutTaxIDRaw(initOverrides);
|
|
8455
8866
|
return await response.value();
|
|
8456
8867
|
}
|
|
8868
|
+
/**
|
|
8869
|
+
* Get company credit balances
|
|
8870
|
+
*/
|
|
8871
|
+
async getCompanyCreditBalancesRaw(initOverrides) {
|
|
8872
|
+
const queryParameters = {};
|
|
8873
|
+
const headerParameters = {};
|
|
8874
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8875
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
8876
|
+
"X-Schematic-Api-Key"
|
|
8877
|
+
);
|
|
8878
|
+
}
|
|
8879
|
+
const response = await this.request(
|
|
8880
|
+
{
|
|
8881
|
+
path: `/company/credits`,
|
|
8882
|
+
method: "GET",
|
|
8883
|
+
headers: headerParameters,
|
|
8884
|
+
query: queryParameters
|
|
8885
|
+
},
|
|
8886
|
+
initOverrides
|
|
8887
|
+
);
|
|
8888
|
+
return new JSONApiResponse(
|
|
8889
|
+
response,
|
|
8890
|
+
(jsonValue) => GetCompanyCreditBalancesResponseFromJSON(jsonValue)
|
|
8891
|
+
);
|
|
8892
|
+
}
|
|
8893
|
+
/**
|
|
8894
|
+
* Get company credit balances
|
|
8895
|
+
*/
|
|
8896
|
+
async getCompanyCreditBalances(initOverrides) {
|
|
8897
|
+
const response = await this.getCompanyCreditBalancesRaw(initOverrides);
|
|
8898
|
+
return await response.value();
|
|
8899
|
+
}
|
|
8900
|
+
/**
|
|
8901
|
+
* Get company credit user usage
|
|
8902
|
+
*/
|
|
8903
|
+
async getCompanyCreditUserUsageRaw(requestParameters, initOverrides) {
|
|
8904
|
+
if (requestParameters["creditId"] == null) {
|
|
8905
|
+
throw new RequiredError(
|
|
8906
|
+
"creditId",
|
|
8907
|
+
'Required parameter "creditId" was null or undefined when calling getCompanyCreditUserUsage().'
|
|
8908
|
+
);
|
|
8909
|
+
}
|
|
8910
|
+
const queryParameters = {};
|
|
8911
|
+
if (requestParameters["limit"] != null) {
|
|
8912
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
8913
|
+
}
|
|
8914
|
+
if (requestParameters["offset"] != null) {
|
|
8915
|
+
queryParameters["offset"] = requestParameters["offset"];
|
|
8916
|
+
}
|
|
8917
|
+
const headerParameters = {};
|
|
8918
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8919
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
8920
|
+
"X-Schematic-Api-Key"
|
|
8921
|
+
);
|
|
8922
|
+
}
|
|
8923
|
+
const response = await this.request(
|
|
8924
|
+
{
|
|
8925
|
+
path: `/company/credits/{credit_id}/users`.replace(
|
|
8926
|
+
`{${"credit_id"}}`,
|
|
8927
|
+
encodeURIComponent(String(requestParameters["creditId"]))
|
|
8928
|
+
),
|
|
8929
|
+
method: "GET",
|
|
8930
|
+
headers: headerParameters,
|
|
8931
|
+
query: queryParameters
|
|
8932
|
+
},
|
|
8933
|
+
initOverrides
|
|
8934
|
+
);
|
|
8935
|
+
return new JSONApiResponse(
|
|
8936
|
+
response,
|
|
8937
|
+
(jsonValue) => GetCompanyCreditUserUsageResponseFromJSON(jsonValue)
|
|
8938
|
+
);
|
|
8939
|
+
}
|
|
8940
|
+
/**
|
|
8941
|
+
* Get company credit user usage
|
|
8942
|
+
*/
|
|
8943
|
+
async getCompanyCreditUserUsage(requestParameters, initOverrides) {
|
|
8944
|
+
const response = await this.getCompanyCreditUserUsageRaw(
|
|
8945
|
+
requestParameters,
|
|
8946
|
+
initOverrides
|
|
8947
|
+
);
|
|
8948
|
+
return await response.value();
|
|
8949
|
+
}
|
|
8950
|
+
/**
|
|
8951
|
+
* Get company feature usage
|
|
8952
|
+
*/
|
|
8953
|
+
async getCompanyFeatureUsageRaw(initOverrides) {
|
|
8954
|
+
const queryParameters = {};
|
|
8955
|
+
const headerParameters = {};
|
|
8956
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8957
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
8958
|
+
"X-Schematic-Api-Key"
|
|
8959
|
+
);
|
|
8960
|
+
}
|
|
8961
|
+
const response = await this.request(
|
|
8962
|
+
{
|
|
8963
|
+
path: `/company/usage`,
|
|
8964
|
+
method: "GET",
|
|
8965
|
+
headers: headerParameters,
|
|
8966
|
+
query: queryParameters
|
|
8967
|
+
},
|
|
8968
|
+
initOverrides
|
|
8969
|
+
);
|
|
8970
|
+
return new JSONApiResponse(
|
|
8971
|
+
response,
|
|
8972
|
+
(jsonValue) => GetCompanyFeatureUsageResponseFromJSON(jsonValue)
|
|
8973
|
+
);
|
|
8974
|
+
}
|
|
8975
|
+
/**
|
|
8976
|
+
* Get company feature usage
|
|
8977
|
+
*/
|
|
8978
|
+
async getCompanyFeatureUsage(initOverrides) {
|
|
8979
|
+
const response = await this.getCompanyFeatureUsageRaw(initOverrides);
|
|
8980
|
+
return await response.value();
|
|
8981
|
+
}
|
|
8982
|
+
/**
|
|
8983
|
+
* Get company feature user usage
|
|
8984
|
+
*/
|
|
8985
|
+
async getCompanyFeatureUserUsageRaw(requestParameters, initOverrides) {
|
|
8986
|
+
if (requestParameters["featureId"] == null) {
|
|
8987
|
+
throw new RequiredError(
|
|
8988
|
+
"featureId",
|
|
8989
|
+
'Required parameter "featureId" was null or undefined when calling getCompanyFeatureUserUsage().'
|
|
8990
|
+
);
|
|
8991
|
+
}
|
|
8992
|
+
const queryParameters = {};
|
|
8993
|
+
if (requestParameters["limit"] != null) {
|
|
8994
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
8995
|
+
}
|
|
8996
|
+
if (requestParameters["offset"] != null) {
|
|
8997
|
+
queryParameters["offset"] = requestParameters["offset"];
|
|
8998
|
+
}
|
|
8999
|
+
const headerParameters = {};
|
|
9000
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9001
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9002
|
+
"X-Schematic-Api-Key"
|
|
9003
|
+
);
|
|
9004
|
+
}
|
|
9005
|
+
const response = await this.request(
|
|
9006
|
+
{
|
|
9007
|
+
path: `/company/usage/{feature_id}/users`.replace(
|
|
9008
|
+
`{${"feature_id"}}`,
|
|
9009
|
+
encodeURIComponent(String(requestParameters["featureId"]))
|
|
9010
|
+
),
|
|
9011
|
+
method: "GET",
|
|
9012
|
+
headers: headerParameters,
|
|
9013
|
+
query: queryParameters
|
|
9014
|
+
},
|
|
9015
|
+
initOverrides
|
|
9016
|
+
);
|
|
9017
|
+
return new JSONApiResponse(
|
|
9018
|
+
response,
|
|
9019
|
+
(jsonValue) => GetCompanyFeatureUserUsageResponseFromJSON(jsonValue)
|
|
9020
|
+
);
|
|
9021
|
+
}
|
|
9022
|
+
/**
|
|
9023
|
+
* Get company feature user usage
|
|
9024
|
+
*/
|
|
9025
|
+
async getCompanyFeatureUserUsage(requestParameters, initOverrides) {
|
|
9026
|
+
const response = await this.getCompanyFeatureUserUsageRaw(
|
|
9027
|
+
requestParameters,
|
|
9028
|
+
initOverrides
|
|
9029
|
+
);
|
|
9030
|
+
return await response.value();
|
|
9031
|
+
}
|
|
8457
9032
|
/**
|
|
8458
9033
|
* Get company invoices
|
|
8459
9034
|
*/
|
|
@@ -9478,11 +10053,19 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
9478
10053
|
return json;
|
|
9479
10054
|
}
|
|
9480
10055
|
|
|
10056
|
+
// src/api/componentspublic/models/Currency.ts
|
|
10057
|
+
function CurrencyFromJSON2(json) {
|
|
10058
|
+
return CurrencyFromJSONTyped33(json, false);
|
|
10059
|
+
}
|
|
10060
|
+
function CurrencyFromJSONTyped33(json, ignoreDiscriminator) {
|
|
10061
|
+
return json;
|
|
10062
|
+
}
|
|
10063
|
+
|
|
9481
10064
|
// src/api/componentspublic/models/BillingProductPriceInterval.ts
|
|
9482
10065
|
function BillingProductPriceIntervalFromJSON2(json) {
|
|
9483
|
-
return
|
|
10066
|
+
return BillingProductPriceIntervalFromJSONTyped6(json, false);
|
|
9484
10067
|
}
|
|
9485
|
-
function
|
|
10068
|
+
function BillingProductPriceIntervalFromJSONTyped6(json, ignoreDiscriminator) {
|
|
9486
10069
|
return json;
|
|
9487
10070
|
}
|
|
9488
10071
|
|
|
@@ -9496,9 +10079,9 @@ function BillingProviderTypeFromJSONTyped21(json, ignoreDiscriminator) {
|
|
|
9496
10079
|
|
|
9497
10080
|
// src/api/componentspublic/models/BillingPriceScheme.ts
|
|
9498
10081
|
function BillingPriceSchemeFromJSON2(json) {
|
|
9499
|
-
return
|
|
10082
|
+
return BillingPriceSchemeFromJSONTyped7(json, false);
|
|
9500
10083
|
}
|
|
9501
|
-
function
|
|
10084
|
+
function BillingPriceSchemeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
9502
10085
|
return json;
|
|
9503
10086
|
}
|
|
9504
10087
|
|
|
@@ -9511,7 +10094,7 @@ function BillingPriceResponseDataFromJSONTyped10(json, ignoreDiscriminator) {
|
|
|
9511
10094
|
return json;
|
|
9512
10095
|
}
|
|
9513
10096
|
return {
|
|
9514
|
-
currency: json["currency"],
|
|
10097
|
+
currency: CurrencyFromJSON2(json["currency"]),
|
|
9515
10098
|
externalPriceId: json["external_price_id"],
|
|
9516
10099
|
id: json["id"],
|
|
9517
10100
|
interval: BillingProductPriceIntervalFromJSON2(json["interval"]),
|
|
@@ -9533,7 +10116,7 @@ function CreditCurrencyPriceResponseDataFromJSONTyped3(json, ignoreDiscriminator
|
|
|
9533
10116
|
return json;
|
|
9534
10117
|
}
|
|
9535
10118
|
return {
|
|
9536
|
-
currency: json["currency"],
|
|
10119
|
+
currency: CurrencyFromJSON2(json["currency"]),
|
|
9537
10120
|
price: json["price"] == null ? void 0 : BillingPriceResponseDataFromJSON2(json["price"])
|
|
9538
10121
|
};
|
|
9539
10122
|
}
|
|
@@ -9634,9 +10217,9 @@ function BillingPriceUsageTypeFromJSONTyped5(json, ignoreDiscriminator) {
|
|
|
9634
10217
|
|
|
9635
10218
|
// src/api/componentspublic/models/BillingTiersMode.ts
|
|
9636
10219
|
function BillingTiersModeFromJSON2(json) {
|
|
9637
|
-
return
|
|
10220
|
+
return BillingTiersModeFromJSONTyped6(json, false);
|
|
9638
10221
|
}
|
|
9639
|
-
function
|
|
10222
|
+
function BillingTiersModeFromJSONTyped6(json, ignoreDiscriminator) {
|
|
9640
10223
|
return json;
|
|
9641
10224
|
}
|
|
9642
10225
|
|
|
@@ -9651,7 +10234,7 @@ function BillingPriceViewFromJSONTyped11(json, ignoreDiscriminator) {
|
|
|
9651
10234
|
return {
|
|
9652
10235
|
billingScheme: BillingPriceSchemeFromJSON2(json["billing_scheme"]),
|
|
9653
10236
|
createdAt: new Date(json["created_at"]),
|
|
9654
|
-
currency: json["currency"],
|
|
10237
|
+
currency: CurrencyFromJSON2(json["currency"]),
|
|
9655
10238
|
id: json["id"],
|
|
9656
10239
|
interval: BillingProductPriceIntervalFromJSON2(json["interval"]),
|
|
9657
10240
|
intervalCount: json["interval_count"],
|
|
@@ -9687,7 +10270,7 @@ function CreditCurrencyPriceFromJSONTyped3(json, ignoreDiscriminator) {
|
|
|
9687
10270
|
return json;
|
|
9688
10271
|
}
|
|
9689
10272
|
return {
|
|
9690
|
-
currency: json["currency"],
|
|
10273
|
+
currency: CurrencyFromJSON2(json["currency"]),
|
|
9691
10274
|
price: json["price"] == null ? void 0 : BillingPriceViewFromJSON2(json["price"])
|
|
9692
10275
|
};
|
|
9693
10276
|
}
|
|
@@ -9779,9 +10362,9 @@ function BillingPlanCreditGrantBillingModeFromJSONTyped5(json, ignoreDiscriminat
|
|
|
9779
10362
|
|
|
9780
10363
|
// src/api/componentspublic/models/BillingPlanCreditGrantResetCadence.ts
|
|
9781
10364
|
function BillingPlanCreditGrantResetCadenceFromJSON2(json) {
|
|
9782
|
-
return
|
|
10365
|
+
return BillingPlanCreditGrantResetCadenceFromJSONTyped8(json, false);
|
|
9783
10366
|
}
|
|
9784
|
-
function
|
|
10367
|
+
function BillingPlanCreditGrantResetCadenceFromJSONTyped8(json, ignoreDiscriminator) {
|
|
9785
10368
|
return json;
|
|
9786
10369
|
}
|
|
9787
10370
|
|
|
@@ -9803,9 +10386,9 @@ function BillingPlanCreditGrantResetTypeFromJSONTyped5(json, ignoreDiscriminator
|
|
|
9803
10386
|
|
|
9804
10387
|
// src/api/componentspublic/models/PlanCreditGrantScaling.ts
|
|
9805
10388
|
function PlanCreditGrantScalingFromJSON2(json) {
|
|
9806
|
-
return
|
|
10389
|
+
return PlanCreditGrantScalingFromJSONTyped6(json, false);
|
|
9807
10390
|
}
|
|
9808
|
-
function
|
|
10391
|
+
function PlanCreditGrantScalingFromJSONTyped6(json, ignoreDiscriminator) {
|
|
9809
10392
|
return json;
|
|
9810
10393
|
}
|
|
9811
10394
|
|
|
@@ -9872,25 +10455,25 @@ function ChargeTypeFromJSONTyped5(json, ignoreDiscriminator) {
|
|
|
9872
10455
|
|
|
9873
10456
|
// src/api/componentspublic/models/EntitlementValueType.ts
|
|
9874
10457
|
function EntitlementValueTypeFromJSON2(json) {
|
|
9875
|
-
return
|
|
10458
|
+
return EntitlementValueTypeFromJSONTyped8(json, false);
|
|
9876
10459
|
}
|
|
9877
|
-
function
|
|
10460
|
+
function EntitlementValueTypeFromJSONTyped8(json, ignoreDiscriminator) {
|
|
9878
10461
|
return json;
|
|
9879
10462
|
}
|
|
9880
10463
|
|
|
9881
10464
|
// src/api/componentspublic/models/MetricPeriodMonthReset.ts
|
|
9882
10465
|
function MetricPeriodMonthResetFromJSON2(json) {
|
|
9883
|
-
return
|
|
10466
|
+
return MetricPeriodMonthResetFromJSONTyped12(json, false);
|
|
9884
10467
|
}
|
|
9885
|
-
function
|
|
10468
|
+
function MetricPeriodMonthResetFromJSONTyped12(json, ignoreDiscriminator) {
|
|
9886
10469
|
return json;
|
|
9887
10470
|
}
|
|
9888
10471
|
|
|
9889
10472
|
// src/api/componentspublic/models/MetricPeriod.ts
|
|
9890
10473
|
function MetricPeriodFromJSON2(json) {
|
|
9891
|
-
return
|
|
10474
|
+
return MetricPeriodFromJSONTyped12(json, false);
|
|
9892
10475
|
}
|
|
9893
|
-
function
|
|
10476
|
+
function MetricPeriodFromJSONTyped12(json, ignoreDiscriminator) {
|
|
9894
10477
|
return json;
|
|
9895
10478
|
}
|
|
9896
10479
|
|
|
@@ -9989,7 +10572,7 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
|
|
|
9989
10572
|
return json;
|
|
9990
10573
|
}
|
|
9991
10574
|
return {
|
|
9992
|
-
currency: json["currency"],
|
|
10575
|
+
currency: CurrencyFromJSON2(json["currency"]),
|
|
9993
10576
|
monthlyPrice: json["monthly_price"] == null ? void 0 : BillingPriceViewFromJSON2(json["monthly_price"]),
|
|
9994
10577
|
quarterlyPrice: json["quarterly_price"] == null ? void 0 : BillingPriceViewFromJSON2(json["quarterly_price"]),
|
|
9995
10578
|
yearlyPrice: json["yearly_price"] == null ? void 0 : BillingPriceViewFromJSON2(json["yearly_price"])
|
|
@@ -9998,9 +10581,9 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
|
|
|
9998
10581
|
|
|
9999
10582
|
// src/api/componentspublic/models/EntitlementPriceBehavior.ts
|
|
10000
10583
|
function EntitlementPriceBehaviorFromJSON2(json) {
|
|
10001
|
-
return
|
|
10584
|
+
return EntitlementPriceBehaviorFromJSONTyped6(json, false);
|
|
10002
10585
|
}
|
|
10003
|
-
function
|
|
10586
|
+
function EntitlementPriceBehaviorFromJSONTyped6(json, ignoreDiscriminator) {
|
|
10004
10587
|
return json;
|
|
10005
10588
|
}
|
|
10006
10589
|
|
|
@@ -10057,11 +10640,19 @@ function EventSummaryResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
|
|
|
10057
10640
|
};
|
|
10058
10641
|
}
|
|
10059
10642
|
|
|
10643
|
+
// src/api/componentspublic/models/FeatureEventSource.ts
|
|
10644
|
+
function FeatureEventSourceFromJSON2(json) {
|
|
10645
|
+
return FeatureEventSourceFromJSONTyped4(json, false);
|
|
10646
|
+
}
|
|
10647
|
+
function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
|
|
10648
|
+
return json;
|
|
10649
|
+
}
|
|
10650
|
+
|
|
10060
10651
|
// src/api/componentspublic/models/FeatureType.ts
|
|
10061
10652
|
function FeatureTypeFromJSON2(json) {
|
|
10062
|
-
return
|
|
10653
|
+
return FeatureTypeFromJSONTyped5(json, false);
|
|
10063
10654
|
}
|
|
10064
|
-
function
|
|
10655
|
+
function FeatureTypeFromJSONTyped5(json, ignoreDiscriminator) {
|
|
10065
10656
|
return json;
|
|
10066
10657
|
}
|
|
10067
10658
|
|
|
@@ -10210,6 +10801,7 @@ function FeatureResponseDataFromJSONTyped7(json, ignoreDiscriminator) {
|
|
|
10210
10801
|
return {
|
|
10211
10802
|
createdAt: new Date(json["created_at"]),
|
|
10212
10803
|
description: json["description"],
|
|
10804
|
+
eventSource: FeatureEventSourceFromJSON2(json["event_source"]),
|
|
10213
10805
|
eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
|
|
10214
10806
|
featureType: FeatureTypeFromJSON2(json["feature_type"]),
|
|
10215
10807
|
icon: json["icon"],
|
|
@@ -10273,6 +10865,7 @@ function FeatureInPlanResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
|
|
|
10273
10865
|
),
|
|
10274
10866
|
createdAt: new Date(json["created_at"]),
|
|
10275
10867
|
description: json["description"],
|
|
10868
|
+
eventSource: FeatureEventSourceFromJSON2(json["event_source"]),
|
|
10276
10869
|
eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
|
|
10277
10870
|
eventSummary: json["event_summary"] == null ? void 0 : EventSummaryResponseDataFromJSON2(json["event_summary"]),
|
|
10278
10871
|
featureType: FeatureTypeFromJSON2(json["feature_type"]),
|
|
@@ -10394,6 +10987,7 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
|
|
|
10394
10987
|
plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON2(json["plan"]),
|
|
10395
10988
|
planId: json["plan_id"],
|
|
10396
10989
|
priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON2(json["price_behavior"]),
|
|
10990
|
+
quantityRates: json["quantity_rates"] == null ? void 0 : json["quantity_rates"],
|
|
10397
10991
|
ruleId: json["rule_id"],
|
|
10398
10992
|
ruleIdUsageExceeded: json["rule_id_usage_exceeded"] == null ? void 0 : json["rule_id_usage_exceeded"],
|
|
10399
10993
|
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
@@ -10507,7 +11101,7 @@ function PlanCurrencyPricesResponseDataFromJSONTyped5(json, ignoreDiscriminator)
|
|
|
10507
11101
|
return json;
|
|
10508
11102
|
}
|
|
10509
11103
|
return {
|
|
10510
|
-
currency: json["currency"],
|
|
11104
|
+
currency: CurrencyFromJSON2(json["currency"]),
|
|
10511
11105
|
monthlyPrice: json["monthly_price"] == null ? void 0 : BillingPriceResponseDataFromJSON2(json["monthly_price"]),
|
|
10512
11106
|
oneTimePrice: json["one_time_price"] == null ? void 0 : BillingPriceResponseDataFromJSON2(json["one_time_price"]),
|
|
10513
11107
|
quarterlyPrice: json["quarterly_price"] == null ? void 0 : BillingPriceResponseDataFromJSON2(json["quarterly_price"]),
|
|
@@ -13478,6 +14072,7 @@ var en = {
|
|
|
13478
14072
|
"Over plan limit": "Over plan limit",
|
|
13479
14073
|
"Pay-in-advance features require a quantity.": "Pay-in-advance features require a quantity.",
|
|
13480
14074
|
"Error saving custom field values. Please try again.": "Error saving custom field values. Please try again.",
|
|
14075
|
+
"Pay and close": "Pay and close",
|
|
13481
14076
|
"Pay now": "Pay now",
|
|
13482
14077
|
"Payment Details": "Payment Details",
|
|
13483
14078
|
"Payment due": "Payment due {{date}}",
|
|
@@ -13757,6 +14352,8 @@ var it2 = {
|
|
|
13757
14352
|
"Error processing payment. Please try a different payment method.": "Errore durante l'elaborazione del pagamento. Prova con un altro metodo di pagamento.",
|
|
13758
14353
|
"Error retrieving plan details. Please try again in a moment.": "Errore durante il recupero dei dettagli del piano. Riprova tra qualche istante.",
|
|
13759
14354
|
"Error updating payment method. Please try again.": "Errore durante l'aggiornamento del metodo di pagamento. Riprova.",
|
|
14355
|
+
"Estimated at current usage": "Stima in base al tuo utilizzo attuale",
|
|
14356
|
+
"Estimated at current usage with base price": "Stima in base al tuo utilizzo attuale. Prezzo base {{amount}}/{{period}}",
|
|
13760
14357
|
"Estimated bill": "Importo stimato",
|
|
13761
14358
|
"Everything in": "Tutto quanto incluso in {{plan}}, pi\xF9",
|
|
13762
14359
|
"Expired": "Scaduta",
|
|
@@ -13793,6 +14390,7 @@ var it2 = {
|
|
|
13793
14390
|
"Over plan limit": "Oltre il limite del piano",
|
|
13794
14391
|
"Pay-in-advance features require a quantity.": "Le funzionalit\xE0 a pagamento anticipato richiedono una quantit\xE0.",
|
|
13795
14392
|
"Error saving custom field values. Please try again.": "Errore durante il salvataggio dei campi personalizzati. Riprova.",
|
|
14393
|
+
"Pay and close": "Paga e chiudi",
|
|
13796
14394
|
"Pay now": "Paga ora",
|
|
13797
14395
|
"Payment Details": "Dati di pagamento",
|
|
13798
14396
|
"Payment due": "Pagamento entro il {{date}}",
|
|
@@ -16094,7 +16692,7 @@ var reducer = (state, action) => {
|
|
|
16094
16692
|
// src/context/EmbedProvider.tsx
|
|
16095
16693
|
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
16096
16694
|
var getCustomHeaders = (sessionId) => ({
|
|
16097
|
-
"X-Schematic-Components-Version": "2.31.
|
|
16695
|
+
"X-Schematic-Components-Version": "2.31.1",
|
|
16098
16696
|
"X-Schematic-Session-ID": sessionId
|
|
16099
16697
|
});
|
|
16100
16698
|
var normalizeCurrencyFilter = (filter2) => {
|
|
@@ -22898,6 +23496,7 @@ var NoPaymentRequired = ({
|
|
|
22898
23496
|
isSticky = false,
|
|
22899
23497
|
willScheduleDowngrade = false,
|
|
22900
23498
|
isCreditOnlyPurchase = false,
|
|
23499
|
+
isOneTimeOnlyPurchase = false,
|
|
22901
23500
|
onClick
|
|
22902
23501
|
}) => {
|
|
22903
23502
|
const { t: t3 } = useTranslation();
|
|
@@ -22910,7 +23509,7 @@ var NoPaymentRequired = ({
|
|
|
22910
23509
|
$size: isSticky ? "sm" : "md",
|
|
22911
23510
|
$fullWidth: true,
|
|
22912
23511
|
$isLoading: isLoading,
|
|
22913
|
-
children: isCreditOnlyPurchase ? t3("Buy credits") : willScheduleDowngrade ? t3("Schedule downgrade") : t3("Subscribe and close")
|
|
23512
|
+
children: isCreditOnlyPurchase ? t3("Buy credits") : willScheduleDowngrade ? t3("Schedule downgrade") : isOneTimeOnlyPurchase ? t3("Pay and close") : t3("Subscribe and close")
|
|
22914
23513
|
}
|
|
22915
23514
|
);
|
|
22916
23515
|
};
|
|
@@ -22934,7 +23533,8 @@ var CheckoutStageButton = ({
|
|
|
22934
23533
|
willTrialWithoutPaymentMethod,
|
|
22935
23534
|
willScheduleDowngrade,
|
|
22936
23535
|
hasIncompleteRequiredCustomFields = false,
|
|
22937
|
-
isCreditOnlyPurchase = false
|
|
23536
|
+
isCreditOnlyPurchase = false,
|
|
23537
|
+
isOneTimeOnlyPurchase = false
|
|
22938
23538
|
}) => {
|
|
22939
23539
|
const { t: t3 } = useTranslation();
|
|
22940
23540
|
const isDisabled = isLoading || !hasPlan && !isCreditOnlyPurchase || inEditMode || !canCheckout;
|
|
@@ -23003,7 +23603,8 @@ var CheckoutStageButton = ({
|
|
|
23003
23603
|
isLoading,
|
|
23004
23604
|
onClick: checkout,
|
|
23005
23605
|
isSticky,
|
|
23006
|
-
isCreditOnlyPurchase
|
|
23606
|
+
isCreditOnlyPurchase,
|
|
23607
|
+
isOneTimeOnlyPurchase
|
|
23007
23608
|
}
|
|
23008
23609
|
);
|
|
23009
23610
|
}
|
|
@@ -23037,7 +23638,8 @@ var CheckoutStageButton = ({
|
|
|
23037
23638
|
isLoading,
|
|
23038
23639
|
onClick: checkout,
|
|
23039
23640
|
isSticky,
|
|
23040
|
-
isCreditOnlyPurchase
|
|
23641
|
+
isCreditOnlyPurchase,
|
|
23642
|
+
isOneTimeOnlyPurchase
|
|
23041
23643
|
}
|
|
23042
23644
|
);
|
|
23043
23645
|
}
|
|
@@ -23080,7 +23682,8 @@ var CheckoutStageButton = ({
|
|
|
23080
23682
|
isLoading,
|
|
23081
23683
|
onClick: checkout,
|
|
23082
23684
|
isSticky,
|
|
23083
|
-
isCreditOnlyPurchase
|
|
23685
|
+
isCreditOnlyPurchase,
|
|
23686
|
+
isOneTimeOnlyPurchase
|
|
23084
23687
|
}
|
|
23085
23688
|
);
|
|
23086
23689
|
}
|
|
@@ -23123,7 +23726,8 @@ var CheckoutStageButton = ({
|
|
|
23123
23726
|
isLoading,
|
|
23124
23727
|
onClick: checkout,
|
|
23125
23728
|
isSticky,
|
|
23126
|
-
isCreditOnlyPurchase
|
|
23729
|
+
isCreditOnlyPurchase,
|
|
23730
|
+
isOneTimeOnlyPurchase
|
|
23127
23731
|
}
|
|
23128
23732
|
);
|
|
23129
23733
|
}
|
|
@@ -23165,7 +23769,8 @@ var CheckoutStageButton = ({
|
|
|
23165
23769
|
isLoading,
|
|
23166
23770
|
onClick: checkout,
|
|
23167
23771
|
isSticky,
|
|
23168
|
-
isCreditOnlyPurchase
|
|
23772
|
+
isCreditOnlyPurchase,
|
|
23773
|
+
isOneTimeOnlyPurchase
|
|
23169
23774
|
}
|
|
23170
23775
|
);
|
|
23171
23776
|
}
|
|
@@ -23208,7 +23813,8 @@ var CheckoutStageButton = ({
|
|
|
23208
23813
|
isLoading,
|
|
23209
23814
|
onClick: checkout,
|
|
23210
23815
|
isSticky,
|
|
23211
|
-
isCreditOnlyPurchase
|
|
23816
|
+
isCreditOnlyPurchase,
|
|
23817
|
+
isOneTimeOnlyPurchase
|
|
23212
23818
|
}
|
|
23213
23819
|
);
|
|
23214
23820
|
}
|
|
@@ -23251,7 +23857,8 @@ var CheckoutStageButton = ({
|
|
|
23251
23857
|
isLoading,
|
|
23252
23858
|
onClick: checkout,
|
|
23253
23859
|
isSticky,
|
|
23254
|
-
isCreditOnlyPurchase
|
|
23860
|
+
isCreditOnlyPurchase,
|
|
23861
|
+
isOneTimeOnlyPurchase
|
|
23255
23862
|
}
|
|
23256
23863
|
),
|
|
23257
23864
|
optInNotice
|
|
@@ -23774,6 +24381,27 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
23774
24381
|
() => creditBundles.filter((bundle) => bundle.count > 0),
|
|
23775
24382
|
[creditBundles]
|
|
23776
24383
|
);
|
|
24384
|
+
const isOneTimeOnlyPurchase = useMemo22(() => {
|
|
24385
|
+
if (!selectedPlan?.current) {
|
|
24386
|
+
return false;
|
|
24387
|
+
}
|
|
24388
|
+
const currentPeriod = getSubscriptionPeriod(billingSubscription);
|
|
24389
|
+
if (currentPeriod && currentPeriod !== planPeriod) {
|
|
24390
|
+
return false;
|
|
24391
|
+
}
|
|
24392
|
+
if (willAddOnsChange || updatedUsageBasedEntitlements.changed.length) {
|
|
24393
|
+
return false;
|
|
24394
|
+
}
|
|
24395
|
+
return selectedOneTimeAddOns.length > 0 || addedCreditBundles.length > 0;
|
|
24396
|
+
}, [
|
|
24397
|
+
selectedPlan,
|
|
24398
|
+
billingSubscription,
|
|
24399
|
+
planPeriod,
|
|
24400
|
+
willAddOnsChange,
|
|
24401
|
+
updatedUsageBasedEntitlements.changed.length,
|
|
24402
|
+
selectedOneTimeAddOns.length,
|
|
24403
|
+
addedCreditBundles.length
|
|
24404
|
+
]);
|
|
23777
24405
|
const discountApplied = useMemo22(
|
|
23778
24406
|
() => promoCode && (amountOff > 0 || percentOff > 0),
|
|
23779
24407
|
[promoCode, amountOff, percentOff]
|
|
@@ -23966,6 +24594,7 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
23966
24594
|
shouldTrial,
|
|
23967
24595
|
hasIncompleteRequiredCustomFields,
|
|
23968
24596
|
isCreditOnlyPurchase,
|
|
24597
|
+
isOneTimeOnlyPurchase,
|
|
23969
24598
|
checkout: handleCheckout
|
|
23970
24599
|
}
|
|
23971
24600
|
);
|
|
@@ -24010,6 +24639,7 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
24010
24639
|
payInAdvanceEntitlements,
|
|
24011
24640
|
addOnPayInAdvanceEntitlements,
|
|
24012
24641
|
isCreditOnlyPurchase,
|
|
24642
|
+
isOneTimeOnlyPurchase,
|
|
24013
24643
|
hasIncompleteRequiredCustomFields
|
|
24014
24644
|
]);
|
|
24015
24645
|
useLayoutEffect6(() => {
|
|
@@ -26654,7 +27284,7 @@ var MeteredFeatures = forwardRef12(({ className, ...rest }, ref) => {
|
|
|
26654
27284
|
iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)"
|
|
26655
27285
|
}
|
|
26656
27286
|
),
|
|
26657
|
-
props.usageByUser.isVisible && /* @__PURE__ */ jsx58(
|
|
27287
|
+
props.usageByUser.isVisible && hasGrants && /* @__PURE__ */ jsx58(
|
|
26658
27288
|
UsageByUser,
|
|
26659
27289
|
{
|
|
26660
27290
|
source: { kind: "credit", id: credit.id },
|