@schematichq/schematic-components 2.31.0 → 2.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schematic-components-elements.cjs.js +2070 -278
- package/dist/schematic-components-elements.d.ts +516 -0
- package/dist/schematic-components-elements.esm.js +2046 -248
- 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 +10 -10
|
@@ -4044,6 +4044,17 @@ function BillingProductPriceIntervalFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4044
4044
|
return json;
|
|
4045
4045
|
}
|
|
4046
4046
|
|
|
4047
|
+
// src/api/checkoutexternal/models/Currency.ts
|
|
4048
|
+
function CurrencyFromJSON(json) {
|
|
4049
|
+
return CurrencyFromJSONTyped(json, false);
|
|
4050
|
+
}
|
|
4051
|
+
function CurrencyFromJSONTyped(json, ignoreDiscriminator) {
|
|
4052
|
+
return json;
|
|
4053
|
+
}
|
|
4054
|
+
function CurrencyToJSON(value) {
|
|
4055
|
+
return value;
|
|
4056
|
+
}
|
|
4057
|
+
|
|
4047
4058
|
// src/api/checkoutexternal/models/BillingPriceUsageType.ts
|
|
4048
4059
|
function BillingPriceUsageTypeFromJSON(json) {
|
|
4049
4060
|
return BillingPriceUsageTypeFromJSONTyped(json, false);
|
|
@@ -4091,7 +4102,7 @@ function BillingProductPriceResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
4091
4102
|
return {
|
|
4092
4103
|
billingScheme: BillingPriceSchemeFromJSON(json["billing_scheme"]),
|
|
4093
4104
|
createdAt: new Date(json["created_at"]),
|
|
4094
|
-
currency: json["currency"],
|
|
4105
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4095
4106
|
id: json["id"],
|
|
4096
4107
|
interval: BillingProductPriceIntervalFromJSON(json["interval"]),
|
|
4097
4108
|
intervalCount: json["interval_count"],
|
|
@@ -4137,7 +4148,7 @@ function BillingPriceViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4137
4148
|
return {
|
|
4138
4149
|
billingScheme: BillingPriceSchemeFromJSON(json["billing_scheme"]),
|
|
4139
4150
|
createdAt: new Date(json["created_at"]),
|
|
4140
|
-
currency: json["currency"],
|
|
4151
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4141
4152
|
id: json["id"],
|
|
4142
4153
|
interval: BillingProductPriceIntervalFromJSON(json["interval"]),
|
|
4143
4154
|
intervalCount: json["interval_count"],
|
|
@@ -4173,7 +4184,7 @@ function CreditBundleCurrencyPriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4173
4184
|
return json;
|
|
4174
4185
|
}
|
|
4175
4186
|
return {
|
|
4176
|
-
currency: json["currency"],
|
|
4187
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4177
4188
|
price: json["price"] == null ? void 0 : BillingPriceViewFromJSON(json["price"])
|
|
4178
4189
|
};
|
|
4179
4190
|
}
|
|
@@ -4277,7 +4288,7 @@ function BillingPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4277
4288
|
return json;
|
|
4278
4289
|
}
|
|
4279
4290
|
return {
|
|
4280
|
-
currency: json["currency"],
|
|
4291
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4281
4292
|
externalPriceId: json["external_price_id"],
|
|
4282
4293
|
id: json["id"],
|
|
4283
4294
|
interval: BillingProductPriceIntervalFromJSON(json["interval"]),
|
|
@@ -4299,7 +4310,7 @@ function CreditCurrencyPriceResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
4299
4310
|
return json;
|
|
4300
4311
|
}
|
|
4301
4312
|
return {
|
|
4302
|
-
currency: json["currency"],
|
|
4313
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4303
4314
|
price: json["price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["price"])
|
|
4304
4315
|
};
|
|
4305
4316
|
}
|
|
@@ -4383,7 +4394,7 @@ function CreditCurrencyPriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4383
4394
|
return json;
|
|
4384
4395
|
}
|
|
4385
4396
|
return {
|
|
4386
|
-
currency: json["currency"],
|
|
4397
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4387
4398
|
price: json["price"] == null ? void 0 : BillingPriceViewFromJSON(json["price"])
|
|
4388
4399
|
};
|
|
4389
4400
|
}
|
|
@@ -4654,7 +4665,7 @@ function BillingProductForSubscriptionResponseDataFromJSONTyped(json, ignoreDisc
|
|
|
4654
4665
|
billingScheme: BillingPriceSchemeFromJSON(json["billing_scheme"]),
|
|
4655
4666
|
billingThreshold: json["billing_threshold"] == null ? void 0 : json["billing_threshold"],
|
|
4656
4667
|
createdAt: new Date(json["created_at"]),
|
|
4657
|
-
currency: json["currency"],
|
|
4668
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4658
4669
|
environmentId: json["environment_id"],
|
|
4659
4670
|
externalId: json["external_id"],
|
|
4660
4671
|
id: json["id"],
|
|
@@ -4699,7 +4710,7 @@ function BillingSubscriptionDiscountViewFromJSONTyped(json, ignoreDiscriminator)
|
|
|
4699
4710
|
amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
|
|
4700
4711
|
couponId: json["coupon_id"],
|
|
4701
4712
|
couponName: json["coupon_name"],
|
|
4702
|
-
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
4713
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
4703
4714
|
customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
|
|
4704
4715
|
discountExternalId: json["discount_external_id"],
|
|
4705
4716
|
duration: json["duration"],
|
|
@@ -4751,7 +4762,7 @@ function InvoiceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4751
4762
|
collectionMethod: json["collection_method"],
|
|
4752
4763
|
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
4753
4764
|
createdAt: new Date(json["created_at"]),
|
|
4754
|
-
currency: json["currency"],
|
|
4765
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4755
4766
|
customerExternalId: json["customer_external_id"],
|
|
4756
4767
|
dueDate: json["due_date"] == null ? void 0 : new Date(json["due_date"]),
|
|
4757
4768
|
endingBalance: json["ending_balance"],
|
|
@@ -4814,7 +4825,7 @@ function BillingSubscriptionViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4814
4825
|
cancelAtPeriodEnd: json["cancel_at_period_end"],
|
|
4815
4826
|
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
4816
4827
|
createdAt: new Date(json["created_at"]),
|
|
4817
|
-
currency: json["currency"],
|
|
4828
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4818
4829
|
customerExternalId: json["customer_external_id"],
|
|
4819
4830
|
defaultPaymentMethodId: json["default_payment_method_id"] == null ? void 0 : json["default_payment_method_id"],
|
|
4820
4831
|
discounts: json["discounts"].map(
|
|
@@ -4840,6 +4851,71 @@ function BillingSubscriptionViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4840
4851
|
};
|
|
4841
4852
|
}
|
|
4842
4853
|
|
|
4854
|
+
// src/api/checkoutexternal/models/CatalogCreditGrantResponseData.ts
|
|
4855
|
+
function CatalogCreditGrantResponseDataFromJSON(json) {
|
|
4856
|
+
return CatalogCreditGrantResponseDataFromJSONTyped(json, false);
|
|
4857
|
+
}
|
|
4858
|
+
function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4859
|
+
if (json == null) {
|
|
4860
|
+
return json;
|
|
4861
|
+
}
|
|
4862
|
+
return {
|
|
4863
|
+
companyCreditAmount: json["company_credit_amount"],
|
|
4864
|
+
creditAmount: json["credit_amount"],
|
|
4865
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
4866
|
+
creditId: json["credit_id"],
|
|
4867
|
+
creditName: json["credit_name"],
|
|
4868
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
4869
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
4870
|
+
id: json["id"],
|
|
4871
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
4872
|
+
resetCadence: json["reset_cadence"] == null ? void 0 : BillingPlanCreditGrantResetCadenceFromJSON(json["reset_cadence"]),
|
|
4873
|
+
scaling: PlanCreditGrantScalingFromJSON(json["scaling"])
|
|
4874
|
+
};
|
|
4875
|
+
}
|
|
4876
|
+
|
|
4877
|
+
// src/api/checkoutexternal/models/CatalogPriceTierResponseData.ts
|
|
4878
|
+
function CatalogPriceTierResponseDataFromJSON(json) {
|
|
4879
|
+
return CatalogPriceTierResponseDataFromJSONTyped(json, false);
|
|
4880
|
+
}
|
|
4881
|
+
function CatalogPriceTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4882
|
+
if (json == null) {
|
|
4883
|
+
return json;
|
|
4884
|
+
}
|
|
4885
|
+
return {
|
|
4886
|
+
flatPrice: json["flat_price"] == null ? void 0 : json["flat_price"],
|
|
4887
|
+
from: json["from"],
|
|
4888
|
+
perUnitPrice: json["per_unit_price"] == null ? void 0 : json["per_unit_price"],
|
|
4889
|
+
perUnitPriceDecimal: json["per_unit_price_decimal"] == null ? void 0 : json["per_unit_price_decimal"],
|
|
4890
|
+
to: json["to"] == null ? void 0 : json["to"]
|
|
4891
|
+
};
|
|
4892
|
+
}
|
|
4893
|
+
|
|
4894
|
+
// src/api/checkoutexternal/models/CatalogPriceResponseData.ts
|
|
4895
|
+
function CatalogPriceResponseDataFromJSON(json) {
|
|
4896
|
+
return CatalogPriceResponseDataFromJSONTyped(json, false);
|
|
4897
|
+
}
|
|
4898
|
+
function CatalogPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4899
|
+
if (json == null) {
|
|
4900
|
+
return json;
|
|
4901
|
+
}
|
|
4902
|
+
return {
|
|
4903
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4904
|
+
id: json["id"],
|
|
4905
|
+
interval: BillingProductPriceIntervalFromJSON(json["interval"]),
|
|
4906
|
+
intervalCount: json["interval_count"],
|
|
4907
|
+
overageUnitPriceDecimal: json["overage_unit_price_decimal"] == null ? void 0 : json["overage_unit_price_decimal"],
|
|
4908
|
+
packageSize: json["package_size"],
|
|
4909
|
+
price: json["price"],
|
|
4910
|
+
priceDecimal: json["price_decimal"] == null ? void 0 : json["price_decimal"],
|
|
4911
|
+
priceTiers: json["price_tiers"].map(
|
|
4912
|
+
CatalogPriceTierResponseDataFromJSON
|
|
4913
|
+
),
|
|
4914
|
+
scheme: BillingPriceSchemeFromJSON(json["scheme"]),
|
|
4915
|
+
tiersMode: json["tiers_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tiers_mode"])
|
|
4916
|
+
};
|
|
4917
|
+
}
|
|
4918
|
+
|
|
4843
4919
|
// src/api/checkoutexternal/models/UpdatePayInAdvanceRequestBody.ts
|
|
4844
4920
|
function UpdatePayInAdvanceRequestBodyFromJSON(json) {
|
|
4845
4921
|
return UpdatePayInAdvanceRequestBodyFromJSONTyped(json, false);
|
|
@@ -4994,7 +5070,7 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
|
|
|
4994
5070
|
credit_bundles: value["creditBundles"].map(
|
|
4995
5071
|
UpdateCreditBundleRequestBodyToJSON
|
|
4996
5072
|
),
|
|
4997
|
-
currency: value["currency"],
|
|
5073
|
+
currency: CurrencyToJSON(value["currency"]),
|
|
4998
5074
|
custom_field_values: value["customFieldValues"].map(
|
|
4999
5075
|
CheckoutFieldValueToJSON
|
|
5000
5076
|
),
|
|
@@ -5040,7 +5116,7 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5040
5116
|
}
|
|
5041
5117
|
return {
|
|
5042
5118
|
amountOff: json["amount_off"],
|
|
5043
|
-
currency: json["currency"],
|
|
5119
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5044
5120
|
dueNow: json["due_now"],
|
|
5045
5121
|
isScheduledDowngrade: json["is_scheduled_downgrade"],
|
|
5046
5122
|
newCharges: json["new_charges"],
|
|
@@ -5117,11 +5193,11 @@ function CheckoutProblemCodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5117
5193
|
return json;
|
|
5118
5194
|
}
|
|
5119
5195
|
|
|
5120
|
-
// src/api/checkoutexternal/models/
|
|
5121
|
-
function
|
|
5122
|
-
return
|
|
5196
|
+
// src/api/checkoutexternal/models/CheckoutProblemResponseData.ts
|
|
5197
|
+
function CheckoutProblemResponseDataFromJSON(json) {
|
|
5198
|
+
return CheckoutProblemResponseDataFromJSONTyped(json, false);
|
|
5123
5199
|
}
|
|
5124
|
-
function
|
|
5200
|
+
function CheckoutProblemResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5125
5201
|
if (json == null) {
|
|
5126
5202
|
return json;
|
|
5127
5203
|
}
|
|
@@ -5129,7 +5205,7 @@ function ProblemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5129
5205
|
blocking: json["blocking"],
|
|
5130
5206
|
bundleId: json["bundle_id"] == null ? void 0 : json["bundle_id"],
|
|
5131
5207
|
code: CheckoutProblemCodeFromJSON(json["code"]),
|
|
5132
|
-
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
5208
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
5133
5209
|
detail: json["detail"] == null ? void 0 : json["detail"],
|
|
5134
5210
|
featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
|
|
5135
5211
|
fieldId: json["field_id"] == null ? void 0 : json["field_id"],
|
|
@@ -5158,7 +5234,9 @@ function CheckoutDraftResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5158
5234
|
lastActivityAt: new Date(json["last_activity_at"]),
|
|
5159
5235
|
priceSnapshot: json["price_snapshot"] == null ? void 0 : CheckoutPriceSnapshotFromJSON(json["price_snapshot"]),
|
|
5160
5236
|
pricedAt: json["priced_at"] == null ? void 0 : new Date(json["priced_at"]),
|
|
5161
|
-
problems: json["problems"].map(
|
|
5237
|
+
problems: json["problems"].map(
|
|
5238
|
+
CheckoutProblemResponseDataFromJSON
|
|
5239
|
+
),
|
|
5162
5240
|
selections: CheckoutSelectionsResponseDataFromJSON(json["selections"]),
|
|
5163
5241
|
shareToken: json["share_token"] == null ? void 0 : json["share_token"],
|
|
5164
5242
|
status: CheckoutStatusFromJSON(json["status"]),
|
|
@@ -5186,6 +5264,11 @@ function CheckoutFieldWithValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5186
5264
|
};
|
|
5187
5265
|
}
|
|
5188
5266
|
|
|
5267
|
+
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5268
|
+
function CheckoutIntentToJSON(value) {
|
|
5269
|
+
return value;
|
|
5270
|
+
}
|
|
5271
|
+
|
|
5189
5272
|
// src/api/checkoutexternal/models/ScheduledDowngradeConfigBehavior.ts
|
|
5190
5273
|
function ScheduledDowngradeConfigBehaviorFromJSON(json) {
|
|
5191
5274
|
return ScheduledDowngradeConfigBehaviorFromJSONTyped(json, false);
|
|
@@ -5210,7 +5293,7 @@ function CheckoutResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5210
5293
|
confirmPaymentIntentClientSecret: json["confirm_payment_intent_client_secret"] == null ? void 0 : json["confirm_payment_intent_client_secret"],
|
|
5211
5294
|
confirmPaymentIntentId: json["confirm_payment_intent_id"] == null ? void 0 : json["confirm_payment_intent_id"],
|
|
5212
5295
|
createdAt: new Date(json["created_at"]),
|
|
5213
|
-
currency: json["currency"],
|
|
5296
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5214
5297
|
customerExternalId: json["customer_external_id"],
|
|
5215
5298
|
defaultPaymentMethodId: json["default_payment_method_id"] == null ? void 0 : json["default_payment_method_id"],
|
|
5216
5299
|
expiredAt: json["expired_at"] == null ? void 0 : new Date(json["expired_at"]),
|
|
@@ -5330,6 +5413,134 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
5330
5413
|
};
|
|
5331
5414
|
}
|
|
5332
5415
|
|
|
5416
|
+
// src/api/checkoutexternal/models/CompanyCreditGrantResponseData.ts
|
|
5417
|
+
function CompanyCreditGrantResponseDataFromJSON(json) {
|
|
5418
|
+
return CompanyCreditGrantResponseDataFromJSONTyped(json, false);
|
|
5419
|
+
}
|
|
5420
|
+
function CompanyCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5421
|
+
if (json == null) {
|
|
5422
|
+
return json;
|
|
5423
|
+
}
|
|
5424
|
+
return {
|
|
5425
|
+
bundleId: json["bundle_id"] == null ? void 0 : json["bundle_id"],
|
|
5426
|
+
bundleName: json["bundle_name"] == null ? void 0 : json["bundle_name"],
|
|
5427
|
+
createdAt: new Date(json["created_at"]),
|
|
5428
|
+
expiresAt: json["expires_at"] == null ? void 0 : new Date(json["expires_at"]),
|
|
5429
|
+
grantReason: BillingCreditGrantReasonFromJSON(json["grant_reason"]),
|
|
5430
|
+
id: json["id"],
|
|
5431
|
+
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
5432
|
+
planName: json["plan_name"] == null ? void 0 : json["plan_name"],
|
|
5433
|
+
quantity: json["quantity"],
|
|
5434
|
+
quantityRemaining: json["quantity_remaining"],
|
|
5435
|
+
quantityUsed: json["quantity_used"],
|
|
5436
|
+
renewalPeriod: json["renewal_period"] == null ? void 0 : BillingPlanCreditGrantResetCadenceFromJSON(json["renewal_period"]),
|
|
5437
|
+
resetsAt: json["resets_at"] == null ? void 0 : new Date(json["resets_at"]),
|
|
5438
|
+
validFrom: json["valid_from"] == null ? void 0 : new Date(json["valid_from"])
|
|
5439
|
+
};
|
|
5440
|
+
}
|
|
5441
|
+
|
|
5442
|
+
// src/api/checkoutexternal/models/CompanyCreditCompositionResponseData.ts
|
|
5443
|
+
function CompanyCreditCompositionResponseDataFromJSON(json) {
|
|
5444
|
+
return CompanyCreditCompositionResponseDataFromJSONTyped(json, false);
|
|
5445
|
+
}
|
|
5446
|
+
function CompanyCreditCompositionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5447
|
+
if (json == null) {
|
|
5448
|
+
return json;
|
|
5449
|
+
}
|
|
5450
|
+
return {
|
|
5451
|
+
fixedQuantity: json["fixed_quantity"],
|
|
5452
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5453
|
+
licenseName: json["license_name"],
|
|
5454
|
+
licensePluralName: json["license_plural_name"] == null ? void 0 : json["license_plural_name"],
|
|
5455
|
+
licenseQuantity: json["license_quantity"],
|
|
5456
|
+
licenseSingularName: json["license_singular_name"] == null ? void 0 : json["license_singular_name"],
|
|
5457
|
+
perLicenseAmount: json["per_license_amount"],
|
|
5458
|
+
period: json["period"],
|
|
5459
|
+
renewsAt: json["renews_at"] == null ? void 0 : new Date(json["renews_at"]),
|
|
5460
|
+
total: json["total"]
|
|
5461
|
+
};
|
|
5462
|
+
}
|
|
5463
|
+
|
|
5464
|
+
// src/api/checkoutexternal/models/CompanyCreditBalanceResponseData.ts
|
|
5465
|
+
function CompanyCreditBalanceResponseDataFromJSON(json) {
|
|
5466
|
+
return CompanyCreditBalanceResponseDataFromJSONTyped(json, false);
|
|
5467
|
+
}
|
|
5468
|
+
function CompanyCreditBalanceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5469
|
+
if (json == null) {
|
|
5470
|
+
return json;
|
|
5471
|
+
}
|
|
5472
|
+
return {
|
|
5473
|
+
composition: json["composition"] == null ? void 0 : CompanyCreditCompositionResponseDataFromJSON(json["composition"]),
|
|
5474
|
+
creditDescription: json["credit_description"],
|
|
5475
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5476
|
+
creditId: json["credit_id"],
|
|
5477
|
+
creditName: json["credit_name"],
|
|
5478
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5479
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5480
|
+
expiresAt: json["expires_at"] == null ? void 0 : new Date(json["expires_at"]),
|
|
5481
|
+
grants: json["grants"].map(
|
|
5482
|
+
CompanyCreditGrantResponseDataFromJSON
|
|
5483
|
+
),
|
|
5484
|
+
purchasable: json["purchasable"],
|
|
5485
|
+
remaining: json["remaining"],
|
|
5486
|
+
resetsAt: json["resets_at"] == null ? void 0 : new Date(json["resets_at"]),
|
|
5487
|
+
total: json["total"],
|
|
5488
|
+
used: json["used"]
|
|
5489
|
+
};
|
|
5490
|
+
}
|
|
5491
|
+
|
|
5492
|
+
// src/api/checkoutexternal/models/CompanyCreditBalancesResponseData.ts
|
|
5493
|
+
function CompanyCreditBalancesResponseDataFromJSON(json) {
|
|
5494
|
+
return CompanyCreditBalancesResponseDataFromJSONTyped(json, false);
|
|
5495
|
+
}
|
|
5496
|
+
function CompanyCreditBalancesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5497
|
+
if (json == null) {
|
|
5498
|
+
return json;
|
|
5499
|
+
}
|
|
5500
|
+
return {
|
|
5501
|
+
balances: json["balances"].map(
|
|
5502
|
+
CompanyCreditBalanceResponseDataFromJSON
|
|
5503
|
+
),
|
|
5504
|
+
count: json["count"]
|
|
5505
|
+
};
|
|
5506
|
+
}
|
|
5507
|
+
|
|
5508
|
+
// src/api/checkoutexternal/models/CompanyCreditUserUsageRowResponseData.ts
|
|
5509
|
+
function CompanyCreditUserUsageRowResponseDataFromJSON(json) {
|
|
5510
|
+
return CompanyCreditUserUsageRowResponseDataFromJSONTyped(json, false);
|
|
5511
|
+
}
|
|
5512
|
+
function CompanyCreditUserUsageRowResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5513
|
+
if (json == null) {
|
|
5514
|
+
return json;
|
|
5515
|
+
}
|
|
5516
|
+
return {
|
|
5517
|
+
name: json["name"] == null ? void 0 : json["name"],
|
|
5518
|
+
share: json["share"],
|
|
5519
|
+
used: json["used"],
|
|
5520
|
+
userId: json["user_id"]
|
|
5521
|
+
};
|
|
5522
|
+
}
|
|
5523
|
+
|
|
5524
|
+
// src/api/checkoutexternal/models/CompanyCreditUserUsageResponseData.ts
|
|
5525
|
+
function CompanyCreditUserUsageResponseDataFromJSON(json) {
|
|
5526
|
+
return CompanyCreditUserUsageResponseDataFromJSONTyped(json, false);
|
|
5527
|
+
}
|
|
5528
|
+
function CompanyCreditUserUsageResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5529
|
+
if (json == null) {
|
|
5530
|
+
return json;
|
|
5531
|
+
}
|
|
5532
|
+
return {
|
|
5533
|
+
count: json["count"],
|
|
5534
|
+
endTime: json["end_time"] == null ? void 0 : new Date(json["end_time"]),
|
|
5535
|
+
startTime: json["start_time"] == null ? void 0 : new Date(json["start_time"]),
|
|
5536
|
+
total: json["total"],
|
|
5537
|
+
unattributed: json["unattributed"] == null ? void 0 : json["unattributed"],
|
|
5538
|
+
users: json["users"].map(
|
|
5539
|
+
CompanyCreditUserUsageRowResponseDataFromJSON
|
|
5540
|
+
)
|
|
5541
|
+
};
|
|
5542
|
+
}
|
|
5543
|
+
|
|
5333
5544
|
// src/api/checkoutexternal/models/CurrencyBalance.ts
|
|
5334
5545
|
function CurrencyBalanceFromJSON(json) {
|
|
5335
5546
|
return CurrencyBalanceFromJSONTyped(json, false);
|
|
@@ -5340,7 +5551,7 @@ function CurrencyBalanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5340
5551
|
}
|
|
5341
5552
|
return {
|
|
5342
5553
|
balance: json["balance"],
|
|
5343
|
-
currency: json["currency"]
|
|
5554
|
+
currency: CurrencyFromJSON(json["currency"])
|
|
5344
5555
|
};
|
|
5345
5556
|
}
|
|
5346
5557
|
|
|
@@ -5551,7 +5762,7 @@ function ScheduledDowngradeResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
5551
5762
|
return json;
|
|
5552
5763
|
}
|
|
5553
5764
|
return {
|
|
5554
|
-
currency: json["currency"],
|
|
5765
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5555
5766
|
effectiveAfter: new Date(json["effective_after"]),
|
|
5556
5767
|
fromPlanId: json["from_plan_id"],
|
|
5557
5768
|
fromPlanName: json["from_plan_name"],
|
|
@@ -5672,6 +5883,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5672
5883
|
daysUntilDue: json["days_until_due"],
|
|
5673
5884
|
externalInvoiceId: json["external_invoice_id"] == null ? void 0 : json["external_invoice_id"],
|
|
5674
5885
|
id: json["id"],
|
|
5886
|
+
migrationId: json["migration_id"] == null ? void 0 : json["migration_id"],
|
|
5675
5887
|
paidAt: json["paid_at"] == null ? void 0 : new Date(json["paid_at"]),
|
|
5676
5888
|
planBillingSource: PlanBillingSourceFromJSON(json["plan_billing_source"]),
|
|
5677
5889
|
planId: json["plan_id"],
|
|
@@ -5953,7 +6165,7 @@ function CompanyDiscountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5953
6165
|
return {
|
|
5954
6166
|
amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
|
|
5955
6167
|
couponName: json["coupon_name"],
|
|
5956
|
-
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
6168
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
5957
6169
|
customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
|
|
5958
6170
|
duration: json["duration"],
|
|
5959
6171
|
durationInMonths: json["duration_in_months"] == null ? void 0 : json["duration_in_months"],
|
|
@@ -5961,6 +6173,141 @@ function CompanyDiscountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5961
6173
|
};
|
|
5962
6174
|
}
|
|
5963
6175
|
|
|
6176
|
+
// src/api/checkoutexternal/models/FeatureType.ts
|
|
6177
|
+
var FeatureType = {
|
|
6178
|
+
Boolean: "boolean",
|
|
6179
|
+
Event: "event",
|
|
6180
|
+
License: "license",
|
|
6181
|
+
Trait: "trait"
|
|
6182
|
+
};
|
|
6183
|
+
function FeatureTypeFromJSON(json) {
|
|
6184
|
+
return FeatureTypeFromJSONTyped(json, false);
|
|
6185
|
+
}
|
|
6186
|
+
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
6187
|
+
return json;
|
|
6188
|
+
}
|
|
6189
|
+
|
|
6190
|
+
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
6191
|
+
var EntitlementPriceBehavior = {
|
|
6192
|
+
CreditBurndown: "credit_burndown",
|
|
6193
|
+
Overage: "overage",
|
|
6194
|
+
PayAsYouGo: "pay_as_you_go",
|
|
6195
|
+
PayInAdvance: "pay_in_advance",
|
|
6196
|
+
Tier: "tier"
|
|
6197
|
+
};
|
|
6198
|
+
function EntitlementPriceBehaviorFromJSON(json) {
|
|
6199
|
+
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
6200
|
+
}
|
|
6201
|
+
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
6202
|
+
return json;
|
|
6203
|
+
}
|
|
6204
|
+
|
|
6205
|
+
// src/api/checkoutexternal/models/EntitlementType.ts
|
|
6206
|
+
function EntitlementTypeFromJSON(json) {
|
|
6207
|
+
return EntitlementTypeFromJSONTyped(json, false);
|
|
6208
|
+
}
|
|
6209
|
+
function EntitlementTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
6210
|
+
return json;
|
|
6211
|
+
}
|
|
6212
|
+
|
|
6213
|
+
// src/api/checkoutexternal/models/CompanyFeatureUsageResponseData.ts
|
|
6214
|
+
function CompanyFeatureUsageResponseDataFromJSON(json) {
|
|
6215
|
+
return CompanyFeatureUsageResponseDataFromJSONTyped(json, false);
|
|
6216
|
+
}
|
|
6217
|
+
function CompanyFeatureUsageResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6218
|
+
if (json == null) {
|
|
6219
|
+
return json;
|
|
6220
|
+
}
|
|
6221
|
+
return {
|
|
6222
|
+
access: json["access"],
|
|
6223
|
+
allocation: json["allocation"] == null ? void 0 : json["allocation"],
|
|
6224
|
+
companyOverrideId: json["company_override_id"] == null ? void 0 : json["company_override_id"],
|
|
6225
|
+
consumptionRate: json["consumption_rate"] == null ? void 0 : json["consumption_rate"],
|
|
6226
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
6227
|
+
creditId: json["credit_id"] == null ? void 0 : json["credit_id"],
|
|
6228
|
+
creditName: json["credit_name"] == null ? void 0 : json["credit_name"],
|
|
6229
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
6230
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
6231
|
+
currentCost: json["current_cost"] == null ? void 0 : json["current_cost"],
|
|
6232
|
+
entitlementType: EntitlementTypeFromJSON(json["entitlement_type"]),
|
|
6233
|
+
expiresAt: json["expires_at"] == null ? void 0 : new Date(json["expires_at"]),
|
|
6234
|
+
featureDescription: json["feature_description"],
|
|
6235
|
+
featureIcon: json["feature_icon"],
|
|
6236
|
+
featureId: json["feature_id"],
|
|
6237
|
+
featureName: json["feature_name"],
|
|
6238
|
+
featurePluralName: json["feature_plural_name"] == null ? void 0 : json["feature_plural_name"],
|
|
6239
|
+
featureSingularName: json["feature_singular_name"] == null ? void 0 : json["feature_singular_name"],
|
|
6240
|
+
featureType: FeatureTypeFromJSON(json["feature_type"]),
|
|
6241
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
6242
|
+
metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
|
|
6243
|
+
metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
|
|
6244
|
+
perLicenseCreditGrants: json["per_license_credit_grants"].map(CatalogCreditGrantResponseDataFromJSON),
|
|
6245
|
+
planEntitlementId: json["plan_entitlement_id"] == null ? void 0 : json["plan_entitlement_id"],
|
|
6246
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
6247
|
+
priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
|
|
6248
|
+
resetsAt: json["resets_at"] == null ? void 0 : new Date(json["resets_at"]),
|
|
6249
|
+
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
6250
|
+
usage: json["usage"] == null ? void 0 : json["usage"],
|
|
6251
|
+
valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
|
|
6252
|
+
valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
|
|
6253
|
+
valueType: EntitlementValueTypeFromJSON(json["value_type"]),
|
|
6254
|
+
warningThreshold: json["warning_threshold"] == null ? void 0 : json["warning_threshold"]
|
|
6255
|
+
};
|
|
6256
|
+
}
|
|
6257
|
+
|
|
6258
|
+
// src/api/checkoutexternal/models/CompanyFeatureUsageListResponseData.ts
|
|
6259
|
+
function CompanyFeatureUsageListResponseDataFromJSON(json) {
|
|
6260
|
+
return CompanyFeatureUsageListResponseDataFromJSONTyped(json, false);
|
|
6261
|
+
}
|
|
6262
|
+
function CompanyFeatureUsageListResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6263
|
+
if (json == null) {
|
|
6264
|
+
return json;
|
|
6265
|
+
}
|
|
6266
|
+
return {
|
|
6267
|
+
count: json["count"],
|
|
6268
|
+
features: json["features"].map(
|
|
6269
|
+
CompanyFeatureUsageResponseDataFromJSON
|
|
6270
|
+
)
|
|
6271
|
+
};
|
|
6272
|
+
}
|
|
6273
|
+
|
|
6274
|
+
// src/api/checkoutexternal/models/CompanyUserUsageResponseData.ts
|
|
6275
|
+
function CompanyUserUsageResponseDataFromJSON(json) {
|
|
6276
|
+
return CompanyUserUsageResponseDataFromJSONTyped(json, false);
|
|
6277
|
+
}
|
|
6278
|
+
function CompanyUserUsageResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6279
|
+
if (json == null) {
|
|
6280
|
+
return json;
|
|
6281
|
+
}
|
|
6282
|
+
return {
|
|
6283
|
+
lastSeen: new Date(json["last_seen"]),
|
|
6284
|
+
name: json["name"] == null ? void 0 : json["name"],
|
|
6285
|
+
share: json["share"],
|
|
6286
|
+
usage: json["usage"],
|
|
6287
|
+
userId: json["user_id"]
|
|
6288
|
+
};
|
|
6289
|
+
}
|
|
6290
|
+
|
|
6291
|
+
// src/api/checkoutexternal/models/CompanyFeatureUserUsageResponseData.ts
|
|
6292
|
+
function CompanyFeatureUserUsageResponseDataFromJSON(json) {
|
|
6293
|
+
return CompanyFeatureUserUsageResponseDataFromJSONTyped(json, false);
|
|
6294
|
+
}
|
|
6295
|
+
function CompanyFeatureUserUsageResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6296
|
+
if (json == null) {
|
|
6297
|
+
return json;
|
|
6298
|
+
}
|
|
6299
|
+
return {
|
|
6300
|
+
count: json["count"],
|
|
6301
|
+
endTime: new Date(json["end_time"]),
|
|
6302
|
+
startTime: new Date(json["start_time"]),
|
|
6303
|
+
total: json["total"],
|
|
6304
|
+
unattributed: json["unattributed"] == null ? void 0 : json["unattributed"],
|
|
6305
|
+
users: json["users"].map(
|
|
6306
|
+
CompanyUserUsageResponseDataFromJSON
|
|
6307
|
+
)
|
|
6308
|
+
};
|
|
6309
|
+
}
|
|
6310
|
+
|
|
5964
6311
|
// src/api/checkoutexternal/models/CompanyInvoiceResponseData.ts
|
|
5965
6312
|
function CompanyInvoiceResponseDataFromJSON(json) {
|
|
5966
6313
|
return CompanyInvoiceResponseDataFromJSONTyped(json, false);
|
|
@@ -5972,7 +6319,7 @@ function CompanyInvoiceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5972
6319
|
return {
|
|
5973
6320
|
amountDue: json["amount_due"],
|
|
5974
6321
|
createdAt: new Date(json["created_at"]),
|
|
5975
|
-
currency: json["currency"],
|
|
6322
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5976
6323
|
dueDate: json["due_date"] == null ? void 0 : new Date(json["due_date"]),
|
|
5977
6324
|
id: json["id"],
|
|
5978
6325
|
status: json["status"] == null ? void 0 : InvoiceStatusFromJSON(json["status"]),
|
|
@@ -6014,17 +6361,11 @@ function CompanyOverrideNoteResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
6014
6361
|
};
|
|
6015
6362
|
}
|
|
6016
6363
|
|
|
6017
|
-
// src/api/checkoutexternal/models/
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
Event: "event",
|
|
6021
|
-
License: "license",
|
|
6022
|
-
Trait: "trait"
|
|
6023
|
-
};
|
|
6024
|
-
function FeatureTypeFromJSON(json) {
|
|
6025
|
-
return FeatureTypeFromJSONTyped(json, false);
|
|
6364
|
+
// src/api/checkoutexternal/models/FeatureEventSource.ts
|
|
6365
|
+
function FeatureEventSourceFromJSON(json) {
|
|
6366
|
+
return FeatureEventSourceFromJSONTyped(json, false);
|
|
6026
6367
|
}
|
|
6027
|
-
function
|
|
6368
|
+
function FeatureEventSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
6028
6369
|
return json;
|
|
6029
6370
|
}
|
|
6030
6371
|
|
|
@@ -6047,6 +6388,7 @@ function FeatureResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6047
6388
|
return {
|
|
6048
6389
|
createdAt: new Date(json["created_at"]),
|
|
6049
6390
|
description: json["description"],
|
|
6391
|
+
eventSource: FeatureEventSourceFromJSON(json["event_source"]),
|
|
6050
6392
|
eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
|
|
6051
6393
|
featureType: FeatureTypeFromJSON(json["feature_type"]),
|
|
6052
6394
|
icon: json["icon"],
|
|
@@ -6086,6 +6428,7 @@ function CompanyOverrideResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6086
6428
|
notes: json["notes"].map(
|
|
6087
6429
|
CompanyOverrideNoteResponseDataFromJSON
|
|
6088
6430
|
),
|
|
6431
|
+
quantityRates: json["quantity_rates"] == null ? void 0 : json["quantity_rates"],
|
|
6089
6432
|
ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
|
|
6090
6433
|
ruleIdUsageExceeded: json["rule_id_usage_exceeded"] == null ? void 0 : json["rule_id_usage_exceeded"],
|
|
6091
6434
|
updatedAt: new Date(json["updated_at"]),
|
|
@@ -6171,7 +6514,7 @@ function EstimatedPlanTotalFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6171
6514
|
}
|
|
6172
6515
|
return {
|
|
6173
6516
|
amount: json["amount"],
|
|
6174
|
-
currency: json["currency"],
|
|
6517
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
6175
6518
|
period: PlanPriceCadenceFromJSON(json["period"])
|
|
6176
6519
|
};
|
|
6177
6520
|
}
|
|
@@ -6185,28 +6528,13 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscrimi
|
|
|
6185
6528
|
return json;
|
|
6186
6529
|
}
|
|
6187
6530
|
return {
|
|
6188
|
-
currency: json["currency"],
|
|
6531
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
6189
6532
|
monthlyPrice: json["monthly_price"] == null ? void 0 : BillingPriceViewFromJSON(json["monthly_price"]),
|
|
6190
6533
|
quarterlyPrice: json["quarterly_price"] == null ? void 0 : BillingPriceViewFromJSON(json["quarterly_price"]),
|
|
6191
6534
|
yearlyPrice: json["yearly_price"] == null ? void 0 : BillingPriceViewFromJSON(json["yearly_price"])
|
|
6192
6535
|
};
|
|
6193
6536
|
}
|
|
6194
6537
|
|
|
6195
|
-
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
6196
|
-
var EntitlementPriceBehavior = {
|
|
6197
|
-
CreditBurndown: "credit_burndown",
|
|
6198
|
-
Overage: "overage",
|
|
6199
|
-
PayAsYouGo: "pay_as_you_go",
|
|
6200
|
-
PayInAdvance: "pay_in_advance",
|
|
6201
|
-
Tier: "tier"
|
|
6202
|
-
};
|
|
6203
|
-
function EntitlementPriceBehaviorFromJSON(json) {
|
|
6204
|
-
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
6205
|
-
}
|
|
6206
|
-
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
6207
|
-
return json;
|
|
6208
|
-
}
|
|
6209
|
-
|
|
6210
6538
|
// src/api/checkoutexternal/models/WarningTierResponseData.ts
|
|
6211
6539
|
function WarningTierResponseDataFromJSON(json) {
|
|
6212
6540
|
return WarningTierResponseDataFromJSONTyped(json, false);
|
|
@@ -6292,6 +6620,7 @@ function PlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6292
6620
|
plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON(json["plan"]),
|
|
6293
6621
|
planId: json["plan_id"],
|
|
6294
6622
|
priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
|
|
6623
|
+
quantityRates: json["quantity_rates"] == null ? void 0 : json["quantity_rates"],
|
|
6295
6624
|
ruleId: json["rule_id"],
|
|
6296
6625
|
ruleIdUsageExceeded: json["rule_id_usage_exceeded"] == null ? void 0 : json["rule_id_usage_exceeded"],
|
|
6297
6626
|
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
@@ -6501,6 +6830,7 @@ function FeatureInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6501
6830
|
),
|
|
6502
6831
|
createdAt: new Date(json["created_at"]),
|
|
6503
6832
|
description: json["description"],
|
|
6833
|
+
eventSource: FeatureEventSourceFromJSON(json["event_source"]),
|
|
6504
6834
|
eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
|
|
6505
6835
|
eventSummary: json["event_summary"] == null ? void 0 : EventSummaryResponseDataFromJSON(json["event_summary"]),
|
|
6506
6836
|
featureType: FeatureTypeFromJSON(json["feature_type"]),
|
|
@@ -6623,7 +6953,7 @@ function PlanCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
6623
6953
|
return json;
|
|
6624
6954
|
}
|
|
6625
6955
|
return {
|
|
6626
|
-
currency: json["currency"],
|
|
6956
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
6627
6957
|
monthlyPrice: json["monthly_price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["monthly_price"]),
|
|
6628
6958
|
oneTimePrice: json["one_time_price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["one_time_price"]),
|
|
6629
6959
|
quarterlyPrice: json["quarterly_price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
@@ -6686,14 +7016,6 @@ function CreditGrantDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6686
7016
|
};
|
|
6687
7017
|
}
|
|
6688
7018
|
|
|
6689
|
-
// src/api/checkoutexternal/models/EntitlementType.ts
|
|
6690
|
-
function EntitlementTypeFromJSON(json) {
|
|
6691
|
-
return EntitlementTypeFromJSONTyped(json, false);
|
|
6692
|
-
}
|
|
6693
|
-
function EntitlementTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
6694
|
-
return json;
|
|
6695
|
-
}
|
|
6696
|
-
|
|
6697
7019
|
// src/api/checkoutexternal/models/FeatureUsageResponseData.ts
|
|
6698
7020
|
function FeatureUsageResponseDataFromJSON(json) {
|
|
6699
7021
|
return FeatureUsageResponseDataFromJSONTyped(json, false);
|
|
@@ -6834,7 +7156,7 @@ function CompanySubscriptionResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
6834
7156
|
return {
|
|
6835
7157
|
cancelAt: json["cancel_at"] == null ? void 0 : new Date(json["cancel_at"]),
|
|
6836
7158
|
cancelAtPeriodEnd: json["cancel_at_period_end"],
|
|
6837
|
-
currency: json["currency"],
|
|
7159
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
6838
7160
|
customerExternalId: json["customer_external_id"],
|
|
6839
7161
|
discounts: json["discounts"].map(
|
|
6840
7162
|
BillingSubscriptionDiscountViewFromJSON
|
|
@@ -6865,7 +7187,7 @@ function CompanyUpcomingInvoiceResponseDataFromJSONTyped(json, ignoreDiscriminat
|
|
|
6865
7187
|
}
|
|
6866
7188
|
return {
|
|
6867
7189
|
amountDue: json["amount_due"],
|
|
6868
|
-
currency: json["currency"],
|
|
7190
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
6869
7191
|
customerBalanceApplied: json["customer_balance_applied"],
|
|
6870
7192
|
customerBalanceRemaining: json["customer_balance_remaining"],
|
|
6871
7193
|
discounts: json["discounts"].map(
|
|
@@ -7030,7 +7352,7 @@ function UpcomingInvoiceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7030
7352
|
collectionMethod: json["collection_method"],
|
|
7031
7353
|
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
7032
7354
|
createdAt: new Date(json["created_at"]),
|
|
7033
|
-
currency: json["currency"],
|
|
7355
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
7034
7356
|
customerExternalId: json["customer_external_id"],
|
|
7035
7357
|
dueDate: json["due_date"] == null ? void 0 : new Date(json["due_date"]),
|
|
7036
7358
|
endingBalance: json["ending_balance"],
|
|
@@ -7101,7 +7423,7 @@ function CreditCompanyGrantViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7101
7423
|
creditDescription: json["credit_description"],
|
|
7102
7424
|
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
7103
7425
|
creditName: json["credit_name"],
|
|
7104
|
-
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
7426
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
7105
7427
|
exhaustedAt: json["exhausted_at"] == null ? void 0 : new Date(json["exhausted_at"]),
|
|
7106
7428
|
expiresAt: json["expires_at"] == null ? void 0 : new Date(json["expires_at"]),
|
|
7107
7429
|
expiryType: json["expiry_type"] == null ? void 0 : BillingCreditExpiryTypeFromJSON(json["expiry_type"]),
|
|
@@ -7114,7 +7436,7 @@ function CreditCompanyGrantViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7114
7436
|
planName: json["plan_name"] == null ? void 0 : json["plan_name"],
|
|
7115
7437
|
pluralName: json["plural_name"] == null ? void 0 : json["plural_name"],
|
|
7116
7438
|
postpaidChargeAmount: json["postpaid_charge_amount"] == null ? void 0 : json["postpaid_charge_amount"],
|
|
7117
|
-
postpaidChargeCurrency: json["postpaid_charge_currency"] == null ? void 0 : json["postpaid_charge_currency"],
|
|
7439
|
+
postpaidChargeCurrency: json["postpaid_charge_currency"] == null ? void 0 : CurrencyFromJSON(json["postpaid_charge_currency"]),
|
|
7118
7440
|
postpaidChargedCredits: json["postpaid_charged_credits"] == null ? void 0 : json["postpaid_charged_credits"],
|
|
7119
7441
|
postpaidPeriodEnd: json["postpaid_period_end"] == null ? void 0 : new Date(json["postpaid_period_end"]),
|
|
7120
7442
|
postpaidRate: json["postpaid_rate"] == null ? void 0 : json["postpaid_rate"],
|
|
@@ -7281,10 +7603,11 @@ function CreateCheckoutRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
7281
7603
|
credit_bundles: value["creditBundles"].map(
|
|
7282
7604
|
UpdateCreditBundleRequestBodyToJSON
|
|
7283
7605
|
),
|
|
7284
|
-
currency: value["currency"],
|
|
7606
|
+
currency: CurrencyToJSON(value["currency"]),
|
|
7285
7607
|
custom_field_values: value["customFieldValues"].map(
|
|
7286
7608
|
CheckoutFieldValueToJSON
|
|
7287
7609
|
),
|
|
7610
|
+
intent: CheckoutIntentToJSON(value["intent"]),
|
|
7288
7611
|
new_plan_id: value["newPlanId"],
|
|
7289
7612
|
new_price_id: value["newPriceId"],
|
|
7290
7613
|
opt_in_accepted: value["optInAccepted"],
|
|
@@ -7534,6 +7857,90 @@ function GetCheckoutTaxIDResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7534
7857
|
};
|
|
7535
7858
|
}
|
|
7536
7859
|
|
|
7860
|
+
// src/api/checkoutexternal/models/GetCompanyCreditBalancesResponse.ts
|
|
7861
|
+
function GetCompanyCreditBalancesResponseFromJSON(json) {
|
|
7862
|
+
return GetCompanyCreditBalancesResponseFromJSONTyped(json, false);
|
|
7863
|
+
}
|
|
7864
|
+
function GetCompanyCreditBalancesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7865
|
+
if (json == null) {
|
|
7866
|
+
return json;
|
|
7867
|
+
}
|
|
7868
|
+
return {
|
|
7869
|
+
data: CompanyCreditBalancesResponseDataFromJSON(json["data"]),
|
|
7870
|
+
params: json["params"]
|
|
7871
|
+
};
|
|
7872
|
+
}
|
|
7873
|
+
|
|
7874
|
+
// src/api/checkoutexternal/models/GetCompanyCreditUserUsageParams.ts
|
|
7875
|
+
function GetCompanyCreditUserUsageParamsFromJSON(json) {
|
|
7876
|
+
return GetCompanyCreditUserUsageParamsFromJSONTyped(json, false);
|
|
7877
|
+
}
|
|
7878
|
+
function GetCompanyCreditUserUsageParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
7879
|
+
if (json == null) {
|
|
7880
|
+
return json;
|
|
7881
|
+
}
|
|
7882
|
+
return {
|
|
7883
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
7884
|
+
offset: json["offset"] == null ? void 0 : json["offset"]
|
|
7885
|
+
};
|
|
7886
|
+
}
|
|
7887
|
+
|
|
7888
|
+
// src/api/checkoutexternal/models/GetCompanyCreditUserUsageResponse.ts
|
|
7889
|
+
function GetCompanyCreditUserUsageResponseFromJSON(json) {
|
|
7890
|
+
return GetCompanyCreditUserUsageResponseFromJSONTyped(json, false);
|
|
7891
|
+
}
|
|
7892
|
+
function GetCompanyCreditUserUsageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7893
|
+
if (json == null) {
|
|
7894
|
+
return json;
|
|
7895
|
+
}
|
|
7896
|
+
return {
|
|
7897
|
+
data: CompanyCreditUserUsageResponseDataFromJSON(json["data"]),
|
|
7898
|
+
params: GetCompanyCreditUserUsageParamsFromJSON(json["params"])
|
|
7899
|
+
};
|
|
7900
|
+
}
|
|
7901
|
+
|
|
7902
|
+
// src/api/checkoutexternal/models/GetCompanyFeatureUsageResponse.ts
|
|
7903
|
+
function GetCompanyFeatureUsageResponseFromJSON(json) {
|
|
7904
|
+
return GetCompanyFeatureUsageResponseFromJSONTyped(json, false);
|
|
7905
|
+
}
|
|
7906
|
+
function GetCompanyFeatureUsageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7907
|
+
if (json == null) {
|
|
7908
|
+
return json;
|
|
7909
|
+
}
|
|
7910
|
+
return {
|
|
7911
|
+
data: CompanyFeatureUsageListResponseDataFromJSON(json["data"]),
|
|
7912
|
+
params: json["params"]
|
|
7913
|
+
};
|
|
7914
|
+
}
|
|
7915
|
+
|
|
7916
|
+
// src/api/checkoutexternal/models/GetCompanyFeatureUserUsageParams.ts
|
|
7917
|
+
function GetCompanyFeatureUserUsageParamsFromJSON(json) {
|
|
7918
|
+
return GetCompanyFeatureUserUsageParamsFromJSONTyped(json, false);
|
|
7919
|
+
}
|
|
7920
|
+
function GetCompanyFeatureUserUsageParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
7921
|
+
if (json == null) {
|
|
7922
|
+
return json;
|
|
7923
|
+
}
|
|
7924
|
+
return {
|
|
7925
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
7926
|
+
offset: json["offset"] == null ? void 0 : json["offset"]
|
|
7927
|
+
};
|
|
7928
|
+
}
|
|
7929
|
+
|
|
7930
|
+
// src/api/checkoutexternal/models/GetCompanyFeatureUserUsageResponse.ts
|
|
7931
|
+
function GetCompanyFeatureUserUsageResponseFromJSON(json) {
|
|
7932
|
+
return GetCompanyFeatureUserUsageResponseFromJSONTyped(json, false);
|
|
7933
|
+
}
|
|
7934
|
+
function GetCompanyFeatureUserUsageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7935
|
+
if (json == null) {
|
|
7936
|
+
return json;
|
|
7937
|
+
}
|
|
7938
|
+
return {
|
|
7939
|
+
data: CompanyFeatureUserUsageResponseDataFromJSON(json["data"]),
|
|
7940
|
+
params: GetCompanyFeatureUserUsageParamsFromJSON(json["params"])
|
|
7941
|
+
};
|
|
7942
|
+
}
|
|
7943
|
+
|
|
7537
7944
|
// src/api/checkoutexternal/models/GetCompanyInvoicesParams.ts
|
|
7538
7945
|
function GetCompanyInvoicesParamsFromJSON(json) {
|
|
7539
7946
|
return GetCompanyInvoicesParamsFromJSONTyped(json, false);
|
|
@@ -7816,7 +8223,7 @@ function PreviewSubscriptionDiscountResponseDataFromJSONTyped(json, ignoreDiscri
|
|
|
7816
8223
|
return {
|
|
7817
8224
|
amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
|
|
7818
8225
|
couponName: json["coupon_name"],
|
|
7819
|
-
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
8226
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
7820
8227
|
customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
|
|
7821
8228
|
duration: json["duration"],
|
|
7822
8229
|
durationInMonths: json["duration_in_months"] == null ? void 0 : json["duration_in_months"],
|
|
@@ -7838,7 +8245,7 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
|
|
|
7838
8245
|
}
|
|
7839
8246
|
return {
|
|
7840
8247
|
amountOff: json["amount_off"],
|
|
7841
|
-
currency: json["currency"],
|
|
8248
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
7842
8249
|
discountAmount: json["discount_amount"],
|
|
7843
8250
|
discounts: json["discounts"].map(
|
|
7844
8251
|
PreviewSubscriptionDiscountResponseDataFromJSON
|
|
@@ -7880,6 +8287,9 @@ function PreviewSubscriptionChangeResponseDataFromJSONTyped(json, ignoreDiscrimi
|
|
|
7880
8287
|
paymentMethodRequired: json["payment_method_required"],
|
|
7881
8288
|
percentOff: json["percent_off"],
|
|
7882
8289
|
periodStart: new Date(json["period_start"]),
|
|
8290
|
+
problems: json["problems"].map(
|
|
8291
|
+
CheckoutProblemResponseDataFromJSON
|
|
8292
|
+
),
|
|
7883
8293
|
promoCodeApplied: json["promo_code_applied"],
|
|
7884
8294
|
proration: json["proration"],
|
|
7885
8295
|
scheduledChangeTime: json["scheduled_change_time"] == null ? void 0 : new Date(json["scheduled_change_time"]),
|
|
@@ -7983,10 +8393,11 @@ function UpdateCheckoutRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
7983
8393
|
credit_bundles: value["creditBundles"].map(
|
|
7984
8394
|
UpdateCreditBundleRequestBodyToJSON
|
|
7985
8395
|
),
|
|
7986
|
-
currency: value["currency"],
|
|
8396
|
+
currency: CurrencyToJSON(value["currency"]),
|
|
7987
8397
|
custom_field_values: value["customFieldValues"].map(
|
|
7988
8398
|
CheckoutFieldValueToJSON
|
|
7989
8399
|
),
|
|
8400
|
+
intent: CheckoutIntentToJSON(value["intent"]),
|
|
7990
8401
|
new_plan_id: value["newPlanId"],
|
|
7991
8402
|
new_price_id: value["newPriceId"],
|
|
7992
8403
|
opt_in_accepted: value["optInAccepted"],
|
|
@@ -8427,6 +8838,170 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
8427
8838
|
const response = await this.getCheckoutTaxIDRaw(initOverrides);
|
|
8428
8839
|
return await response.value();
|
|
8429
8840
|
}
|
|
8841
|
+
/**
|
|
8842
|
+
* Get company credit balances
|
|
8843
|
+
*/
|
|
8844
|
+
async getCompanyCreditBalancesRaw(initOverrides) {
|
|
8845
|
+
const queryParameters = {};
|
|
8846
|
+
const headerParameters = {};
|
|
8847
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8848
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
8849
|
+
"X-Schematic-Api-Key"
|
|
8850
|
+
);
|
|
8851
|
+
}
|
|
8852
|
+
const response = await this.request(
|
|
8853
|
+
{
|
|
8854
|
+
path: `/company/credits`,
|
|
8855
|
+
method: "GET",
|
|
8856
|
+
headers: headerParameters,
|
|
8857
|
+
query: queryParameters
|
|
8858
|
+
},
|
|
8859
|
+
initOverrides
|
|
8860
|
+
);
|
|
8861
|
+
return new JSONApiResponse(
|
|
8862
|
+
response,
|
|
8863
|
+
(jsonValue) => GetCompanyCreditBalancesResponseFromJSON(jsonValue)
|
|
8864
|
+
);
|
|
8865
|
+
}
|
|
8866
|
+
/**
|
|
8867
|
+
* Get company credit balances
|
|
8868
|
+
*/
|
|
8869
|
+
async getCompanyCreditBalances(initOverrides) {
|
|
8870
|
+
const response = await this.getCompanyCreditBalancesRaw(initOverrides);
|
|
8871
|
+
return await response.value();
|
|
8872
|
+
}
|
|
8873
|
+
/**
|
|
8874
|
+
* Get company credit user usage
|
|
8875
|
+
*/
|
|
8876
|
+
async getCompanyCreditUserUsageRaw(requestParameters, initOverrides) {
|
|
8877
|
+
if (requestParameters["creditId"] == null) {
|
|
8878
|
+
throw new RequiredError(
|
|
8879
|
+
"creditId",
|
|
8880
|
+
'Required parameter "creditId" was null or undefined when calling getCompanyCreditUserUsage().'
|
|
8881
|
+
);
|
|
8882
|
+
}
|
|
8883
|
+
const queryParameters = {};
|
|
8884
|
+
if (requestParameters["limit"] != null) {
|
|
8885
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
8886
|
+
}
|
|
8887
|
+
if (requestParameters["offset"] != null) {
|
|
8888
|
+
queryParameters["offset"] = requestParameters["offset"];
|
|
8889
|
+
}
|
|
8890
|
+
const headerParameters = {};
|
|
8891
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8892
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
8893
|
+
"X-Schematic-Api-Key"
|
|
8894
|
+
);
|
|
8895
|
+
}
|
|
8896
|
+
const response = await this.request(
|
|
8897
|
+
{
|
|
8898
|
+
path: `/company/credits/{credit_id}/users`.replace(
|
|
8899
|
+
`{${"credit_id"}}`,
|
|
8900
|
+
encodeURIComponent(String(requestParameters["creditId"]))
|
|
8901
|
+
),
|
|
8902
|
+
method: "GET",
|
|
8903
|
+
headers: headerParameters,
|
|
8904
|
+
query: queryParameters
|
|
8905
|
+
},
|
|
8906
|
+
initOverrides
|
|
8907
|
+
);
|
|
8908
|
+
return new JSONApiResponse(
|
|
8909
|
+
response,
|
|
8910
|
+
(jsonValue) => GetCompanyCreditUserUsageResponseFromJSON(jsonValue)
|
|
8911
|
+
);
|
|
8912
|
+
}
|
|
8913
|
+
/**
|
|
8914
|
+
* Get company credit user usage
|
|
8915
|
+
*/
|
|
8916
|
+
async getCompanyCreditUserUsage(requestParameters, initOverrides) {
|
|
8917
|
+
const response = await this.getCompanyCreditUserUsageRaw(
|
|
8918
|
+
requestParameters,
|
|
8919
|
+
initOverrides
|
|
8920
|
+
);
|
|
8921
|
+
return await response.value();
|
|
8922
|
+
}
|
|
8923
|
+
/**
|
|
8924
|
+
* Get company feature usage
|
|
8925
|
+
*/
|
|
8926
|
+
async getCompanyFeatureUsageRaw(initOverrides) {
|
|
8927
|
+
const queryParameters = {};
|
|
8928
|
+
const headerParameters = {};
|
|
8929
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8930
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
8931
|
+
"X-Schematic-Api-Key"
|
|
8932
|
+
);
|
|
8933
|
+
}
|
|
8934
|
+
const response = await this.request(
|
|
8935
|
+
{
|
|
8936
|
+
path: `/company/usage`,
|
|
8937
|
+
method: "GET",
|
|
8938
|
+
headers: headerParameters,
|
|
8939
|
+
query: queryParameters
|
|
8940
|
+
},
|
|
8941
|
+
initOverrides
|
|
8942
|
+
);
|
|
8943
|
+
return new JSONApiResponse(
|
|
8944
|
+
response,
|
|
8945
|
+
(jsonValue) => GetCompanyFeatureUsageResponseFromJSON(jsonValue)
|
|
8946
|
+
);
|
|
8947
|
+
}
|
|
8948
|
+
/**
|
|
8949
|
+
* Get company feature usage
|
|
8950
|
+
*/
|
|
8951
|
+
async getCompanyFeatureUsage(initOverrides) {
|
|
8952
|
+
const response = await this.getCompanyFeatureUsageRaw(initOverrides);
|
|
8953
|
+
return await response.value();
|
|
8954
|
+
}
|
|
8955
|
+
/**
|
|
8956
|
+
* Get company feature user usage
|
|
8957
|
+
*/
|
|
8958
|
+
async getCompanyFeatureUserUsageRaw(requestParameters, initOverrides) {
|
|
8959
|
+
if (requestParameters["featureId"] == null) {
|
|
8960
|
+
throw new RequiredError(
|
|
8961
|
+
"featureId",
|
|
8962
|
+
'Required parameter "featureId" was null or undefined when calling getCompanyFeatureUserUsage().'
|
|
8963
|
+
);
|
|
8964
|
+
}
|
|
8965
|
+
const queryParameters = {};
|
|
8966
|
+
if (requestParameters["limit"] != null) {
|
|
8967
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
8968
|
+
}
|
|
8969
|
+
if (requestParameters["offset"] != null) {
|
|
8970
|
+
queryParameters["offset"] = requestParameters["offset"];
|
|
8971
|
+
}
|
|
8972
|
+
const headerParameters = {};
|
|
8973
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
8974
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
8975
|
+
"X-Schematic-Api-Key"
|
|
8976
|
+
);
|
|
8977
|
+
}
|
|
8978
|
+
const response = await this.request(
|
|
8979
|
+
{
|
|
8980
|
+
path: `/company/usage/{feature_id}/users`.replace(
|
|
8981
|
+
`{${"feature_id"}}`,
|
|
8982
|
+
encodeURIComponent(String(requestParameters["featureId"]))
|
|
8983
|
+
),
|
|
8984
|
+
method: "GET",
|
|
8985
|
+
headers: headerParameters,
|
|
8986
|
+
query: queryParameters
|
|
8987
|
+
},
|
|
8988
|
+
initOverrides
|
|
8989
|
+
);
|
|
8990
|
+
return new JSONApiResponse(
|
|
8991
|
+
response,
|
|
8992
|
+
(jsonValue) => GetCompanyFeatureUserUsageResponseFromJSON(jsonValue)
|
|
8993
|
+
);
|
|
8994
|
+
}
|
|
8995
|
+
/**
|
|
8996
|
+
* Get company feature user usage
|
|
8997
|
+
*/
|
|
8998
|
+
async getCompanyFeatureUserUsage(requestParameters, initOverrides) {
|
|
8999
|
+
const response = await this.getCompanyFeatureUserUsageRaw(
|
|
9000
|
+
requestParameters,
|
|
9001
|
+
initOverrides
|
|
9002
|
+
);
|
|
9003
|
+
return await response.value();
|
|
9004
|
+
}
|
|
8430
9005
|
/**
|
|
8431
9006
|
* Get company invoices
|
|
8432
9007
|
*/
|
|
@@ -9451,11 +10026,19 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
9451
10026
|
return json;
|
|
9452
10027
|
}
|
|
9453
10028
|
|
|
10029
|
+
// src/api/componentspublic/models/Currency.ts
|
|
10030
|
+
function CurrencyFromJSON2(json) {
|
|
10031
|
+
return CurrencyFromJSONTyped33(json, false);
|
|
10032
|
+
}
|
|
10033
|
+
function CurrencyFromJSONTyped33(json, ignoreDiscriminator) {
|
|
10034
|
+
return json;
|
|
10035
|
+
}
|
|
10036
|
+
|
|
9454
10037
|
// src/api/componentspublic/models/BillingProductPriceInterval.ts
|
|
9455
10038
|
function BillingProductPriceIntervalFromJSON2(json) {
|
|
9456
|
-
return
|
|
10039
|
+
return BillingProductPriceIntervalFromJSONTyped6(json, false);
|
|
9457
10040
|
}
|
|
9458
|
-
function
|
|
10041
|
+
function BillingProductPriceIntervalFromJSONTyped6(json, ignoreDiscriminator) {
|
|
9459
10042
|
return json;
|
|
9460
10043
|
}
|
|
9461
10044
|
|
|
@@ -9469,9 +10052,9 @@ function BillingProviderTypeFromJSONTyped21(json, ignoreDiscriminator) {
|
|
|
9469
10052
|
|
|
9470
10053
|
// src/api/componentspublic/models/BillingPriceScheme.ts
|
|
9471
10054
|
function BillingPriceSchemeFromJSON2(json) {
|
|
9472
|
-
return
|
|
10055
|
+
return BillingPriceSchemeFromJSONTyped7(json, false);
|
|
9473
10056
|
}
|
|
9474
|
-
function
|
|
10057
|
+
function BillingPriceSchemeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
9475
10058
|
return json;
|
|
9476
10059
|
}
|
|
9477
10060
|
|
|
@@ -9484,7 +10067,7 @@ function BillingPriceResponseDataFromJSONTyped10(json, ignoreDiscriminator) {
|
|
|
9484
10067
|
return json;
|
|
9485
10068
|
}
|
|
9486
10069
|
return {
|
|
9487
|
-
currency: json["currency"],
|
|
10070
|
+
currency: CurrencyFromJSON2(json["currency"]),
|
|
9488
10071
|
externalPriceId: json["external_price_id"],
|
|
9489
10072
|
id: json["id"],
|
|
9490
10073
|
interval: BillingProductPriceIntervalFromJSON2(json["interval"]),
|
|
@@ -9506,7 +10089,7 @@ function CreditCurrencyPriceResponseDataFromJSONTyped3(json, ignoreDiscriminator
|
|
|
9506
10089
|
return json;
|
|
9507
10090
|
}
|
|
9508
10091
|
return {
|
|
9509
|
-
currency: json["currency"],
|
|
10092
|
+
currency: CurrencyFromJSON2(json["currency"]),
|
|
9510
10093
|
price: json["price"] == null ? void 0 : BillingPriceResponseDataFromJSON2(json["price"])
|
|
9511
10094
|
};
|
|
9512
10095
|
}
|
|
@@ -9607,9 +10190,9 @@ function BillingPriceUsageTypeFromJSONTyped5(json, ignoreDiscriminator) {
|
|
|
9607
10190
|
|
|
9608
10191
|
// src/api/componentspublic/models/BillingTiersMode.ts
|
|
9609
10192
|
function BillingTiersModeFromJSON2(json) {
|
|
9610
|
-
return
|
|
10193
|
+
return BillingTiersModeFromJSONTyped6(json, false);
|
|
9611
10194
|
}
|
|
9612
|
-
function
|
|
10195
|
+
function BillingTiersModeFromJSONTyped6(json, ignoreDiscriminator) {
|
|
9613
10196
|
return json;
|
|
9614
10197
|
}
|
|
9615
10198
|
|
|
@@ -9624,7 +10207,7 @@ function BillingPriceViewFromJSONTyped11(json, ignoreDiscriminator) {
|
|
|
9624
10207
|
return {
|
|
9625
10208
|
billingScheme: BillingPriceSchemeFromJSON2(json["billing_scheme"]),
|
|
9626
10209
|
createdAt: new Date(json["created_at"]),
|
|
9627
|
-
currency: json["currency"],
|
|
10210
|
+
currency: CurrencyFromJSON2(json["currency"]),
|
|
9628
10211
|
id: json["id"],
|
|
9629
10212
|
interval: BillingProductPriceIntervalFromJSON2(json["interval"]),
|
|
9630
10213
|
intervalCount: json["interval_count"],
|
|
@@ -9660,7 +10243,7 @@ function CreditCurrencyPriceFromJSONTyped3(json, ignoreDiscriminator) {
|
|
|
9660
10243
|
return json;
|
|
9661
10244
|
}
|
|
9662
10245
|
return {
|
|
9663
|
-
currency: json["currency"],
|
|
10246
|
+
currency: CurrencyFromJSON2(json["currency"]),
|
|
9664
10247
|
price: json["price"] == null ? void 0 : BillingPriceViewFromJSON2(json["price"])
|
|
9665
10248
|
};
|
|
9666
10249
|
}
|
|
@@ -9752,9 +10335,9 @@ function BillingPlanCreditGrantBillingModeFromJSONTyped5(json, ignoreDiscriminat
|
|
|
9752
10335
|
|
|
9753
10336
|
// src/api/componentspublic/models/BillingPlanCreditGrantResetCadence.ts
|
|
9754
10337
|
function BillingPlanCreditGrantResetCadenceFromJSON2(json) {
|
|
9755
|
-
return
|
|
10338
|
+
return BillingPlanCreditGrantResetCadenceFromJSONTyped8(json, false);
|
|
9756
10339
|
}
|
|
9757
|
-
function
|
|
10340
|
+
function BillingPlanCreditGrantResetCadenceFromJSONTyped8(json, ignoreDiscriminator) {
|
|
9758
10341
|
return json;
|
|
9759
10342
|
}
|
|
9760
10343
|
|
|
@@ -9776,9 +10359,9 @@ function BillingPlanCreditGrantResetTypeFromJSONTyped5(json, ignoreDiscriminator
|
|
|
9776
10359
|
|
|
9777
10360
|
// src/api/componentspublic/models/PlanCreditGrantScaling.ts
|
|
9778
10361
|
function PlanCreditGrantScalingFromJSON2(json) {
|
|
9779
|
-
return
|
|
10362
|
+
return PlanCreditGrantScalingFromJSONTyped6(json, false);
|
|
9780
10363
|
}
|
|
9781
|
-
function
|
|
10364
|
+
function PlanCreditGrantScalingFromJSONTyped6(json, ignoreDiscriminator) {
|
|
9782
10365
|
return json;
|
|
9783
10366
|
}
|
|
9784
10367
|
|
|
@@ -9845,25 +10428,25 @@ function ChargeTypeFromJSONTyped5(json, ignoreDiscriminator) {
|
|
|
9845
10428
|
|
|
9846
10429
|
// src/api/componentspublic/models/EntitlementValueType.ts
|
|
9847
10430
|
function EntitlementValueTypeFromJSON2(json) {
|
|
9848
|
-
return
|
|
10431
|
+
return EntitlementValueTypeFromJSONTyped8(json, false);
|
|
9849
10432
|
}
|
|
9850
|
-
function
|
|
10433
|
+
function EntitlementValueTypeFromJSONTyped8(json, ignoreDiscriminator) {
|
|
9851
10434
|
return json;
|
|
9852
10435
|
}
|
|
9853
10436
|
|
|
9854
10437
|
// src/api/componentspublic/models/MetricPeriodMonthReset.ts
|
|
9855
10438
|
function MetricPeriodMonthResetFromJSON2(json) {
|
|
9856
|
-
return
|
|
10439
|
+
return MetricPeriodMonthResetFromJSONTyped12(json, false);
|
|
9857
10440
|
}
|
|
9858
|
-
function
|
|
10441
|
+
function MetricPeriodMonthResetFromJSONTyped12(json, ignoreDiscriminator) {
|
|
9859
10442
|
return json;
|
|
9860
10443
|
}
|
|
9861
10444
|
|
|
9862
10445
|
// src/api/componentspublic/models/MetricPeriod.ts
|
|
9863
10446
|
function MetricPeriodFromJSON2(json) {
|
|
9864
|
-
return
|
|
10447
|
+
return MetricPeriodFromJSONTyped12(json, false);
|
|
9865
10448
|
}
|
|
9866
|
-
function
|
|
10449
|
+
function MetricPeriodFromJSONTyped12(json, ignoreDiscriminator) {
|
|
9867
10450
|
return json;
|
|
9868
10451
|
}
|
|
9869
10452
|
|
|
@@ -9962,7 +10545,7 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
|
|
|
9962
10545
|
return json;
|
|
9963
10546
|
}
|
|
9964
10547
|
return {
|
|
9965
|
-
currency: json["currency"],
|
|
10548
|
+
currency: CurrencyFromJSON2(json["currency"]),
|
|
9966
10549
|
monthlyPrice: json["monthly_price"] == null ? void 0 : BillingPriceViewFromJSON2(json["monthly_price"]),
|
|
9967
10550
|
quarterlyPrice: json["quarterly_price"] == null ? void 0 : BillingPriceViewFromJSON2(json["quarterly_price"]),
|
|
9968
10551
|
yearlyPrice: json["yearly_price"] == null ? void 0 : BillingPriceViewFromJSON2(json["yearly_price"])
|
|
@@ -9971,9 +10554,9 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
|
|
|
9971
10554
|
|
|
9972
10555
|
// src/api/componentspublic/models/EntitlementPriceBehavior.ts
|
|
9973
10556
|
function EntitlementPriceBehaviorFromJSON2(json) {
|
|
9974
|
-
return
|
|
10557
|
+
return EntitlementPriceBehaviorFromJSONTyped6(json, false);
|
|
9975
10558
|
}
|
|
9976
|
-
function
|
|
10559
|
+
function EntitlementPriceBehaviorFromJSONTyped6(json, ignoreDiscriminator) {
|
|
9977
10560
|
return json;
|
|
9978
10561
|
}
|
|
9979
10562
|
|
|
@@ -10030,11 +10613,19 @@ function EventSummaryResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
|
|
|
10030
10613
|
};
|
|
10031
10614
|
}
|
|
10032
10615
|
|
|
10616
|
+
// src/api/componentspublic/models/FeatureEventSource.ts
|
|
10617
|
+
function FeatureEventSourceFromJSON2(json) {
|
|
10618
|
+
return FeatureEventSourceFromJSONTyped4(json, false);
|
|
10619
|
+
}
|
|
10620
|
+
function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
|
|
10621
|
+
return json;
|
|
10622
|
+
}
|
|
10623
|
+
|
|
10033
10624
|
// src/api/componentspublic/models/FeatureType.ts
|
|
10034
10625
|
function FeatureTypeFromJSON2(json) {
|
|
10035
|
-
return
|
|
10626
|
+
return FeatureTypeFromJSONTyped5(json, false);
|
|
10036
10627
|
}
|
|
10037
|
-
function
|
|
10628
|
+
function FeatureTypeFromJSONTyped5(json, ignoreDiscriminator) {
|
|
10038
10629
|
return json;
|
|
10039
10630
|
}
|
|
10040
10631
|
|
|
@@ -10183,6 +10774,7 @@ function FeatureResponseDataFromJSONTyped7(json, ignoreDiscriminator) {
|
|
|
10183
10774
|
return {
|
|
10184
10775
|
createdAt: new Date(json["created_at"]),
|
|
10185
10776
|
description: json["description"],
|
|
10777
|
+
eventSource: FeatureEventSourceFromJSON2(json["event_source"]),
|
|
10186
10778
|
eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
|
|
10187
10779
|
featureType: FeatureTypeFromJSON2(json["feature_type"]),
|
|
10188
10780
|
icon: json["icon"],
|
|
@@ -10246,6 +10838,7 @@ function FeatureInPlanResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
|
|
|
10246
10838
|
),
|
|
10247
10839
|
createdAt: new Date(json["created_at"]),
|
|
10248
10840
|
description: json["description"],
|
|
10841
|
+
eventSource: FeatureEventSourceFromJSON2(json["event_source"]),
|
|
10249
10842
|
eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
|
|
10250
10843
|
eventSummary: json["event_summary"] == null ? void 0 : EventSummaryResponseDataFromJSON2(json["event_summary"]),
|
|
10251
10844
|
featureType: FeatureTypeFromJSON2(json["feature_type"]),
|
|
@@ -10367,6 +10960,7 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
|
|
|
10367
10960
|
plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON2(json["plan"]),
|
|
10368
10961
|
planId: json["plan_id"],
|
|
10369
10962
|
priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON2(json["price_behavior"]),
|
|
10963
|
+
quantityRates: json["quantity_rates"] == null ? void 0 : json["quantity_rates"],
|
|
10370
10964
|
ruleId: json["rule_id"],
|
|
10371
10965
|
ruleIdUsageExceeded: json["rule_id_usage_exceeded"] == null ? void 0 : json["rule_id_usage_exceeded"],
|
|
10372
10966
|
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
@@ -10480,7 +11074,7 @@ function PlanCurrencyPricesResponseDataFromJSONTyped5(json, ignoreDiscriminator)
|
|
|
10480
11074
|
return json;
|
|
10481
11075
|
}
|
|
10482
11076
|
return {
|
|
10483
|
-
currency: json["currency"],
|
|
11077
|
+
currency: CurrencyFromJSON2(json["currency"]),
|
|
10484
11078
|
monthlyPrice: json["monthly_price"] == null ? void 0 : BillingPriceResponseDataFromJSON2(json["monthly_price"]),
|
|
10485
11079
|
oneTimePrice: json["one_time_price"] == null ? void 0 : BillingPriceResponseDataFromJSON2(json["one_time_price"]),
|
|
10486
11080
|
quarterlyPrice: json["quarterly_price"] == null ? void 0 : BillingPriceResponseDataFromJSON2(json["quarterly_price"]),
|
|
@@ -13444,6 +14038,7 @@ var en = {
|
|
|
13444
14038
|
"Over plan limit": "Over plan limit",
|
|
13445
14039
|
"Pay-in-advance features require a quantity.": "Pay-in-advance features require a quantity.",
|
|
13446
14040
|
"Error saving custom field values. Please try again.": "Error saving custom field values. Please try again.",
|
|
14041
|
+
"Pay and close": "Pay and close",
|
|
13447
14042
|
"Pay now": "Pay now",
|
|
13448
14043
|
"Payment Details": "Payment Details",
|
|
13449
14044
|
"Payment due": "Payment due {{date}}",
|
|
@@ -13723,6 +14318,8 @@ var it2 = {
|
|
|
13723
14318
|
"Error processing payment. Please try a different payment method.": "Errore durante l'elaborazione del pagamento. Prova con un altro metodo di pagamento.",
|
|
13724
14319
|
"Error retrieving plan details. Please try again in a moment.": "Errore durante il recupero dei dettagli del piano. Riprova tra qualche istante.",
|
|
13725
14320
|
"Error updating payment method. Please try again.": "Errore durante l'aggiornamento del metodo di pagamento. Riprova.",
|
|
14321
|
+
"Estimated at current usage": "Stima in base al tuo utilizzo attuale",
|
|
14322
|
+
"Estimated at current usage with base price": "Stima in base al tuo utilizzo attuale. Prezzo base {{amount}}/{{period}}",
|
|
13726
14323
|
"Estimated bill": "Importo stimato",
|
|
13727
14324
|
"Everything in": "Tutto quanto incluso in {{plan}}, pi\xF9",
|
|
13728
14325
|
"Expired": "Scaduta",
|
|
@@ -13759,6 +14356,7 @@ var it2 = {
|
|
|
13759
14356
|
"Over plan limit": "Oltre il limite del piano",
|
|
13760
14357
|
"Pay-in-advance features require a quantity.": "Le funzionalit\xE0 a pagamento anticipato richiedono una quantit\xE0.",
|
|
13761
14358
|
"Error saving custom field values. Please try again.": "Errore durante il salvataggio dei campi personalizzati. Riprova.",
|
|
14359
|
+
"Pay and close": "Paga e chiudi",
|
|
13762
14360
|
"Pay now": "Paga ora",
|
|
13763
14361
|
"Payment Details": "Dati di pagamento",
|
|
13764
14362
|
"Payment due": "Pagamento entro il {{date}}",
|
|
@@ -16060,7 +16658,7 @@ var reducer = (state, action) => {
|
|
|
16060
16658
|
// src/context/EmbedProvider.tsx
|
|
16061
16659
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
16062
16660
|
var getCustomHeaders = (sessionId) => ({
|
|
16063
|
-
"X-Schematic-Components-Version": "2.
|
|
16661
|
+
"X-Schematic-Components-Version": "2.32.0",
|
|
16064
16662
|
"X-Schematic-Session-ID": sessionId
|
|
16065
16663
|
});
|
|
16066
16664
|
var normalizeCurrencyFilter = (filter2) => {
|
|
@@ -22833,6 +23431,7 @@ var NoPaymentRequired = ({
|
|
|
22833
23431
|
isSticky = false,
|
|
22834
23432
|
willScheduleDowngrade = false,
|
|
22835
23433
|
isCreditOnlyPurchase = false,
|
|
23434
|
+
isOneTimeOnlyPurchase = false,
|
|
22836
23435
|
onClick
|
|
22837
23436
|
}) => {
|
|
22838
23437
|
const { t: t3 } = useTranslation();
|
|
@@ -22845,7 +23444,7 @@ var NoPaymentRequired = ({
|
|
|
22845
23444
|
$size: isSticky ? "sm" : "md",
|
|
22846
23445
|
$fullWidth: true,
|
|
22847
23446
|
$isLoading: isLoading,
|
|
22848
|
-
children: isCreditOnlyPurchase ? t3("Buy credits") : willScheduleDowngrade ? t3("Schedule downgrade") : t3("Subscribe and close")
|
|
23447
|
+
children: isCreditOnlyPurchase ? t3("Buy credits") : willScheduleDowngrade ? t3("Schedule downgrade") : isOneTimeOnlyPurchase ? t3("Pay and close") : t3("Subscribe and close")
|
|
22849
23448
|
}
|
|
22850
23449
|
);
|
|
22851
23450
|
};
|
|
@@ -22869,7 +23468,8 @@ var CheckoutStageButton = ({
|
|
|
22869
23468
|
willTrialWithoutPaymentMethod,
|
|
22870
23469
|
willScheduleDowngrade,
|
|
22871
23470
|
hasIncompleteRequiredCustomFields = false,
|
|
22872
|
-
isCreditOnlyPurchase = false
|
|
23471
|
+
isCreditOnlyPurchase = false,
|
|
23472
|
+
isOneTimeOnlyPurchase = false
|
|
22873
23473
|
}) => {
|
|
22874
23474
|
const { t: t3 } = useTranslation();
|
|
22875
23475
|
const isDisabled = isLoading || !hasPlan && !isCreditOnlyPurchase || inEditMode || !canCheckout;
|
|
@@ -22938,7 +23538,8 @@ var CheckoutStageButton = ({
|
|
|
22938
23538
|
isLoading,
|
|
22939
23539
|
onClick: checkout,
|
|
22940
23540
|
isSticky,
|
|
22941
|
-
isCreditOnlyPurchase
|
|
23541
|
+
isCreditOnlyPurchase,
|
|
23542
|
+
isOneTimeOnlyPurchase
|
|
22942
23543
|
}
|
|
22943
23544
|
);
|
|
22944
23545
|
}
|
|
@@ -22972,7 +23573,8 @@ var CheckoutStageButton = ({
|
|
|
22972
23573
|
isLoading,
|
|
22973
23574
|
onClick: checkout,
|
|
22974
23575
|
isSticky,
|
|
22975
|
-
isCreditOnlyPurchase
|
|
23576
|
+
isCreditOnlyPurchase,
|
|
23577
|
+
isOneTimeOnlyPurchase
|
|
22976
23578
|
}
|
|
22977
23579
|
);
|
|
22978
23580
|
}
|
|
@@ -23015,7 +23617,8 @@ var CheckoutStageButton = ({
|
|
|
23015
23617
|
isLoading,
|
|
23016
23618
|
onClick: checkout,
|
|
23017
23619
|
isSticky,
|
|
23018
|
-
isCreditOnlyPurchase
|
|
23620
|
+
isCreditOnlyPurchase,
|
|
23621
|
+
isOneTimeOnlyPurchase
|
|
23019
23622
|
}
|
|
23020
23623
|
);
|
|
23021
23624
|
}
|
|
@@ -23058,7 +23661,8 @@ var CheckoutStageButton = ({
|
|
|
23058
23661
|
isLoading,
|
|
23059
23662
|
onClick: checkout,
|
|
23060
23663
|
isSticky,
|
|
23061
|
-
isCreditOnlyPurchase
|
|
23664
|
+
isCreditOnlyPurchase,
|
|
23665
|
+
isOneTimeOnlyPurchase
|
|
23062
23666
|
}
|
|
23063
23667
|
);
|
|
23064
23668
|
}
|
|
@@ -23100,7 +23704,8 @@ var CheckoutStageButton = ({
|
|
|
23100
23704
|
isLoading,
|
|
23101
23705
|
onClick: checkout,
|
|
23102
23706
|
isSticky,
|
|
23103
|
-
isCreditOnlyPurchase
|
|
23707
|
+
isCreditOnlyPurchase,
|
|
23708
|
+
isOneTimeOnlyPurchase
|
|
23104
23709
|
}
|
|
23105
23710
|
);
|
|
23106
23711
|
}
|
|
@@ -23143,7 +23748,8 @@ var CheckoutStageButton = ({
|
|
|
23143
23748
|
isLoading,
|
|
23144
23749
|
onClick: checkout,
|
|
23145
23750
|
isSticky,
|
|
23146
|
-
isCreditOnlyPurchase
|
|
23751
|
+
isCreditOnlyPurchase,
|
|
23752
|
+
isOneTimeOnlyPurchase
|
|
23147
23753
|
}
|
|
23148
23754
|
);
|
|
23149
23755
|
}
|
|
@@ -23186,7 +23792,8 @@ var CheckoutStageButton = ({
|
|
|
23186
23792
|
isLoading,
|
|
23187
23793
|
onClick: checkout,
|
|
23188
23794
|
isSticky,
|
|
23189
|
-
isCreditOnlyPurchase
|
|
23795
|
+
isCreditOnlyPurchase,
|
|
23796
|
+
isOneTimeOnlyPurchase
|
|
23190
23797
|
}
|
|
23191
23798
|
),
|
|
23192
23799
|
optInNotice
|
|
@@ -23709,6 +24316,27 @@ var SubscriptionSidebar = (0, import_react38.forwardRef)(
|
|
|
23709
24316
|
() => creditBundles.filter((bundle) => bundle.count > 0),
|
|
23710
24317
|
[creditBundles]
|
|
23711
24318
|
);
|
|
24319
|
+
const isOneTimeOnlyPurchase = (0, import_react38.useMemo)(() => {
|
|
24320
|
+
if (!selectedPlan?.current) {
|
|
24321
|
+
return false;
|
|
24322
|
+
}
|
|
24323
|
+
const currentPeriod = getSubscriptionPeriod(billingSubscription);
|
|
24324
|
+
if (currentPeriod && currentPeriod !== planPeriod) {
|
|
24325
|
+
return false;
|
|
24326
|
+
}
|
|
24327
|
+
if (willAddOnsChange || updatedUsageBasedEntitlements.changed.length) {
|
|
24328
|
+
return false;
|
|
24329
|
+
}
|
|
24330
|
+
return selectedOneTimeAddOns.length > 0 || addedCreditBundles.length > 0;
|
|
24331
|
+
}, [
|
|
24332
|
+
selectedPlan,
|
|
24333
|
+
billingSubscription,
|
|
24334
|
+
planPeriod,
|
|
24335
|
+
willAddOnsChange,
|
|
24336
|
+
updatedUsageBasedEntitlements.changed.length,
|
|
24337
|
+
selectedOneTimeAddOns.length,
|
|
24338
|
+
addedCreditBundles.length
|
|
24339
|
+
]);
|
|
23712
24340
|
const discountApplied = (0, import_react38.useMemo)(
|
|
23713
24341
|
() => promoCode && (amountOff > 0 || percentOff > 0),
|
|
23714
24342
|
[promoCode, amountOff, percentOff]
|
|
@@ -23901,6 +24529,7 @@ var SubscriptionSidebar = (0, import_react38.forwardRef)(
|
|
|
23901
24529
|
shouldTrial,
|
|
23902
24530
|
hasIncompleteRequiredCustomFields,
|
|
23903
24531
|
isCreditOnlyPurchase,
|
|
24532
|
+
isOneTimeOnlyPurchase,
|
|
23904
24533
|
checkout: handleCheckout
|
|
23905
24534
|
}
|
|
23906
24535
|
);
|
|
@@ -23945,6 +24574,7 @@ var SubscriptionSidebar = (0, import_react38.forwardRef)(
|
|
|
23945
24574
|
payInAdvanceEntitlements,
|
|
23946
24575
|
addOnPayInAdvanceEntitlements,
|
|
23947
24576
|
isCreditOnlyPurchase,
|
|
24577
|
+
isOneTimeOnlyPurchase,
|
|
23948
24578
|
hasIncompleteRequiredCustomFields
|
|
23949
24579
|
]);
|
|
23950
24580
|
(0, import_react38.useLayoutEffect)(() => {
|
|
@@ -26589,7 +27219,7 @@ var MeteredFeatures = (0, import_react47.forwardRef)(({ className, ...rest }, re
|
|
|
26589
27219
|
iconColor: isLightBackground ? "hsla(0, 0%, 0%, 0.8)" : "hsla(0, 0%, 100%, 0.4)"
|
|
26590
27220
|
}
|
|
26591
27221
|
),
|
|
26592
|
-
props.usageByUser.isVisible && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
27222
|
+
props.usageByUser.isVisible && hasGrants && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
26593
27223
|
UsageByUser,
|
|
26594
27224
|
{
|
|
26595
27225
|
source: { kind: "credit", id: credit.id },
|