@schematichq/schematic-components 2.34.1 → 2.36.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 +8951 -4420
- package/dist/schematic-components-elements.d.ts +1144 -6
- package/dist/schematic-components-elements.esm.js +9010 -4449
- package/dist/schematic-components.browser.cjs.js +108 -4
- package/dist/schematic-components.browser.esm.js +108 -4
- package/dist/schematic-components.cjs.js +108 -4
- package/dist/schematic-components.d.ts +141 -0
- package/dist/schematic-components.esm.js +108 -4
- package/package.json +6 -6
|
@@ -5224,7 +5224,8 @@ function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
5224
5224
|
id: json["id"],
|
|
5225
5225
|
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5226
5226
|
resetCadence: json["reset_cadence"] == null ? void 0 : BillingPlanCreditGrantResetCadenceFromJSON(json["reset_cadence"]),
|
|
5227
|
-
scaling: PlanCreditGrantScalingFromJSON(json["scaling"])
|
|
5227
|
+
scaling: PlanCreditGrantScalingFromJSON(json["scaling"]),
|
|
5228
|
+
visible: json["visible"]
|
|
5228
5229
|
};
|
|
5229
5230
|
}
|
|
5230
5231
|
|
|
@@ -5498,6 +5499,14 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
|
|
|
5498
5499
|
};
|
|
5499
5500
|
}
|
|
5500
5501
|
|
|
5502
|
+
// src/api/checkoutexternal/models/CheckoutChargeTiming.ts
|
|
5503
|
+
function CheckoutChargeTimingFromJSON(json) {
|
|
5504
|
+
return CheckoutChargeTimingFromJSONTyped(json, false);
|
|
5505
|
+
}
|
|
5506
|
+
function CheckoutChargeTimingFromJSONTyped(json, ignoreDiscriminator) {
|
|
5507
|
+
return json;
|
|
5508
|
+
}
|
|
5509
|
+
|
|
5501
5510
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
|
|
5502
5511
|
function CheckoutPriceSnapshotDiscountFromJSON(json) {
|
|
5503
5512
|
return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
|
|
@@ -5519,6 +5528,53 @@ function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5519
5528
|
};
|
|
5520
5529
|
}
|
|
5521
5530
|
|
|
5531
|
+
// src/api/checkoutexternal/models/ProrationLineKind.ts
|
|
5532
|
+
function ProrationLineKindFromJSON(json) {
|
|
5533
|
+
return ProrationLineKindFromJSONTyped(json, false);
|
|
5534
|
+
}
|
|
5535
|
+
function ProrationLineKindFromJSONTyped(json, ignoreDiscriminator) {
|
|
5536
|
+
return json;
|
|
5537
|
+
}
|
|
5538
|
+
|
|
5539
|
+
// src/api/checkoutexternal/models/CheckoutPriceSnapshotProrationLine.ts
|
|
5540
|
+
function CheckoutPriceSnapshotProrationLineFromJSON(json) {
|
|
5541
|
+
return CheckoutPriceSnapshotProrationLineFromJSONTyped(json, false);
|
|
5542
|
+
}
|
|
5543
|
+
function CheckoutPriceSnapshotProrationLineFromJSONTyped(json, ignoreDiscriminator) {
|
|
5544
|
+
if (json == null) {
|
|
5545
|
+
return json;
|
|
5546
|
+
}
|
|
5547
|
+
return {
|
|
5548
|
+
amount: json["amount"],
|
|
5549
|
+
kind: ProrationLineKindFromJSON(json["kind"]),
|
|
5550
|
+
periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
|
|
5551
|
+
periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
|
|
5552
|
+
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
5553
|
+
priceId: json["price_id"] == null ? void 0 : json["price_id"],
|
|
5554
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"]
|
|
5555
|
+
};
|
|
5556
|
+
}
|
|
5557
|
+
|
|
5558
|
+
// src/api/checkoutexternal/models/CheckoutPriceSnapshotProration.ts
|
|
5559
|
+
function CheckoutPriceSnapshotProrationFromJSON(json) {
|
|
5560
|
+
return CheckoutPriceSnapshotProrationFromJSONTyped(json, false);
|
|
5561
|
+
}
|
|
5562
|
+
function CheckoutPriceSnapshotProrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
5563
|
+
if (json == null) {
|
|
5564
|
+
return json;
|
|
5565
|
+
}
|
|
5566
|
+
return {
|
|
5567
|
+
billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
|
|
5568
|
+
charge: json["charge"],
|
|
5569
|
+
credit: json["credit"],
|
|
5570
|
+
lines: json["lines"].map(
|
|
5571
|
+
CheckoutPriceSnapshotProrationLineFromJSON
|
|
5572
|
+
),
|
|
5573
|
+
timing: CheckoutChargeTimingFromJSON(json["timing"]),
|
|
5574
|
+
total: json["total"]
|
|
5575
|
+
};
|
|
5576
|
+
}
|
|
5577
|
+
|
|
5522
5578
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
|
|
5523
5579
|
function CheckoutPriceSnapshotFromJSON(json) {
|
|
5524
5580
|
return CheckoutPriceSnapshotFromJSONTyped(json, false);
|
|
@@ -5530,6 +5586,8 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5530
5586
|
return {
|
|
5531
5587
|
amountOff: json["amount_off"],
|
|
5532
5588
|
currency: CurrencyFromJSON(json["currency"]),
|
|
5589
|
+
customerBalanceApplied: json["customer_balance_applied"],
|
|
5590
|
+
customerBalanceRemaining: json["customer_balance_remaining"],
|
|
5533
5591
|
discountAmount: json["discount_amount"],
|
|
5534
5592
|
discounts: json["discounts"].map(
|
|
5535
5593
|
CheckoutPriceSnapshotDiscountFromJSON
|
|
@@ -5546,6 +5604,7 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5546
5604
|
pricedAt: new Date(json["priced_at"]),
|
|
5547
5605
|
promoCodeApplied: json["promo_code_applied"],
|
|
5548
5606
|
proration: json["proration"],
|
|
5607
|
+
prorationDetail: json["proration_detail"] == null ? void 0 : CheckoutPriceSnapshotProrationFromJSON(json["proration_detail"]),
|
|
5549
5608
|
scheduledChangeTime: json["scheduled_change_time"] == null ? void 0 : new Date(json["scheduled_change_time"]),
|
|
5550
5609
|
taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
|
|
5551
5610
|
totalPerBillingPeriod: json["total_per_billing_period"],
|
|
@@ -8818,6 +8877,46 @@ function PreviewSubscriptionDiscountResponseDataFromJSONTyped(json, ignoreDiscri
|
|
|
8818
8877
|
};
|
|
8819
8878
|
}
|
|
8820
8879
|
|
|
8880
|
+
// src/api/checkoutexternal/models/PreviewSubscriptionProrationLineResponseData.ts
|
|
8881
|
+
function PreviewSubscriptionProrationLineResponseDataFromJSON(json) {
|
|
8882
|
+
return PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, false);
|
|
8883
|
+
}
|
|
8884
|
+
function PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
8885
|
+
if (json == null) {
|
|
8886
|
+
return json;
|
|
8887
|
+
}
|
|
8888
|
+
return {
|
|
8889
|
+
amount: json["amount"],
|
|
8890
|
+
kind: ProrationLineKindFromJSON(json["kind"]),
|
|
8891
|
+
periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
|
|
8892
|
+
periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
|
|
8893
|
+
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
8894
|
+
priceId: json["price_id"] == null ? void 0 : json["price_id"],
|
|
8895
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"]
|
|
8896
|
+
};
|
|
8897
|
+
}
|
|
8898
|
+
|
|
8899
|
+
// src/api/checkoutexternal/models/PreviewSubscriptionProrationResponseData.ts
|
|
8900
|
+
function PreviewSubscriptionProrationResponseDataFromJSON(json) {
|
|
8901
|
+
return PreviewSubscriptionProrationResponseDataFromJSONTyped(json, false);
|
|
8902
|
+
}
|
|
8903
|
+
function PreviewSubscriptionProrationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
8904
|
+
if (json == null) {
|
|
8905
|
+
return json;
|
|
8906
|
+
}
|
|
8907
|
+
return {
|
|
8908
|
+
billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
|
|
8909
|
+
charge: json["charge"],
|
|
8910
|
+
credit: json["credit"],
|
|
8911
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
8912
|
+
lines: json["lines"].map(
|
|
8913
|
+
PreviewSubscriptionProrationLineResponseDataFromJSON
|
|
8914
|
+
),
|
|
8915
|
+
timing: CheckoutChargeTimingFromJSON(json["timing"]),
|
|
8916
|
+
total: json["total"]
|
|
8917
|
+
};
|
|
8918
|
+
}
|
|
8919
|
+
|
|
8821
8920
|
// src/api/checkoutexternal/models/PreviewSubscriptionFinanceResponseData.ts
|
|
8822
8921
|
function PreviewSubscriptionFinanceResponseDataFromJSON(json) {
|
|
8823
8922
|
return PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, false);
|
|
@@ -8829,6 +8928,8 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
|
|
|
8829
8928
|
return {
|
|
8830
8929
|
amountOff: json["amount_off"],
|
|
8831
8930
|
currency: CurrencyFromJSON(json["currency"]),
|
|
8931
|
+
customerBalanceApplied: json["customer_balance_applied"],
|
|
8932
|
+
customerBalanceRemaining: json["customer_balance_remaining"],
|
|
8832
8933
|
discountAmount: json["discount_amount"],
|
|
8833
8934
|
discounts: json["discounts"].map(
|
|
8834
8935
|
PreviewSubscriptionDiscountResponseDataFromJSON
|
|
@@ -8841,6 +8942,9 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
|
|
|
8841
8942
|
promoCodeApplied: json["promo_code_applied"],
|
|
8842
8943
|
proration: json["proration"],
|
|
8843
8944
|
prorationBilledAt: json["proration_billed_at"] == null ? void 0 : new Date(json["proration_billed_at"]),
|
|
8945
|
+
prorationDetail: json["proration_detail"] == null ? void 0 : PreviewSubscriptionProrationResponseDataFromJSON(
|
|
8946
|
+
json["proration_detail"]
|
|
8947
|
+
),
|
|
8844
8948
|
taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
|
|
8845
8949
|
taxDisplayName: json["tax_display_name"] == null ? void 0 : json["tax_display_name"],
|
|
8846
8950
|
taxRequireBillingDetails: json["tax_require_billing_details"],
|
|
@@ -10729,9 +10833,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10729
10833
|
|
|
10730
10834
|
// src/api/componentspublic/models/Currency.ts
|
|
10731
10835
|
function CurrencyFromJSON2(json) {
|
|
10732
|
-
return
|
|
10836
|
+
return CurrencyFromJSONTyped41(json, false);
|
|
10733
10837
|
}
|
|
10734
|
-
function
|
|
10838
|
+
function CurrencyFromJSONTyped41(json, ignoreDiscriminator) {
|
|
10735
10839
|
return json;
|
|
10736
10840
|
}
|
|
10737
10841
|
|
|
@@ -17396,7 +17500,7 @@ var reducer = (state, action) => {
|
|
|
17396
17500
|
// src/context/EmbedProvider.tsx
|
|
17397
17501
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
17398
17502
|
var getCustomHeaders = (sessionId) => ({
|
|
17399
|
-
"X-Schematic-Components-Version": "2.
|
|
17503
|
+
"X-Schematic-Components-Version": "2.36.0",
|
|
17400
17504
|
"X-Schematic-Session-ID": sessionId
|
|
17401
17505
|
});
|
|
17402
17506
|
var normalizeCurrencyFilter = (filter2) => {
|
|
@@ -5126,7 +5126,8 @@ function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
5126
5126
|
id: json["id"],
|
|
5127
5127
|
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5128
5128
|
resetCadence: json["reset_cadence"] == null ? void 0 : BillingPlanCreditGrantResetCadenceFromJSON(json["reset_cadence"]),
|
|
5129
|
-
scaling: PlanCreditGrantScalingFromJSON(json["scaling"])
|
|
5129
|
+
scaling: PlanCreditGrantScalingFromJSON(json["scaling"]),
|
|
5130
|
+
visible: json["visible"]
|
|
5130
5131
|
};
|
|
5131
5132
|
}
|
|
5132
5133
|
|
|
@@ -5400,6 +5401,14 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
|
|
|
5400
5401
|
};
|
|
5401
5402
|
}
|
|
5402
5403
|
|
|
5404
|
+
// src/api/checkoutexternal/models/CheckoutChargeTiming.ts
|
|
5405
|
+
function CheckoutChargeTimingFromJSON(json) {
|
|
5406
|
+
return CheckoutChargeTimingFromJSONTyped(json, false);
|
|
5407
|
+
}
|
|
5408
|
+
function CheckoutChargeTimingFromJSONTyped(json, ignoreDiscriminator) {
|
|
5409
|
+
return json;
|
|
5410
|
+
}
|
|
5411
|
+
|
|
5403
5412
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
|
|
5404
5413
|
function CheckoutPriceSnapshotDiscountFromJSON(json) {
|
|
5405
5414
|
return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
|
|
@@ -5421,6 +5430,53 @@ function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5421
5430
|
};
|
|
5422
5431
|
}
|
|
5423
5432
|
|
|
5433
|
+
// src/api/checkoutexternal/models/ProrationLineKind.ts
|
|
5434
|
+
function ProrationLineKindFromJSON(json) {
|
|
5435
|
+
return ProrationLineKindFromJSONTyped(json, false);
|
|
5436
|
+
}
|
|
5437
|
+
function ProrationLineKindFromJSONTyped(json, ignoreDiscriminator) {
|
|
5438
|
+
return json;
|
|
5439
|
+
}
|
|
5440
|
+
|
|
5441
|
+
// src/api/checkoutexternal/models/CheckoutPriceSnapshotProrationLine.ts
|
|
5442
|
+
function CheckoutPriceSnapshotProrationLineFromJSON(json) {
|
|
5443
|
+
return CheckoutPriceSnapshotProrationLineFromJSONTyped(json, false);
|
|
5444
|
+
}
|
|
5445
|
+
function CheckoutPriceSnapshotProrationLineFromJSONTyped(json, ignoreDiscriminator) {
|
|
5446
|
+
if (json == null) {
|
|
5447
|
+
return json;
|
|
5448
|
+
}
|
|
5449
|
+
return {
|
|
5450
|
+
amount: json["amount"],
|
|
5451
|
+
kind: ProrationLineKindFromJSON(json["kind"]),
|
|
5452
|
+
periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
|
|
5453
|
+
periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
|
|
5454
|
+
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
5455
|
+
priceId: json["price_id"] == null ? void 0 : json["price_id"],
|
|
5456
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"]
|
|
5457
|
+
};
|
|
5458
|
+
}
|
|
5459
|
+
|
|
5460
|
+
// src/api/checkoutexternal/models/CheckoutPriceSnapshotProration.ts
|
|
5461
|
+
function CheckoutPriceSnapshotProrationFromJSON(json) {
|
|
5462
|
+
return CheckoutPriceSnapshotProrationFromJSONTyped(json, false);
|
|
5463
|
+
}
|
|
5464
|
+
function CheckoutPriceSnapshotProrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
5465
|
+
if (json == null) {
|
|
5466
|
+
return json;
|
|
5467
|
+
}
|
|
5468
|
+
return {
|
|
5469
|
+
billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
|
|
5470
|
+
charge: json["charge"],
|
|
5471
|
+
credit: json["credit"],
|
|
5472
|
+
lines: json["lines"].map(
|
|
5473
|
+
CheckoutPriceSnapshotProrationLineFromJSON
|
|
5474
|
+
),
|
|
5475
|
+
timing: CheckoutChargeTimingFromJSON(json["timing"]),
|
|
5476
|
+
total: json["total"]
|
|
5477
|
+
};
|
|
5478
|
+
}
|
|
5479
|
+
|
|
5424
5480
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
|
|
5425
5481
|
function CheckoutPriceSnapshotFromJSON(json) {
|
|
5426
5482
|
return CheckoutPriceSnapshotFromJSONTyped(json, false);
|
|
@@ -5432,6 +5488,8 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5432
5488
|
return {
|
|
5433
5489
|
amountOff: json["amount_off"],
|
|
5434
5490
|
currency: CurrencyFromJSON(json["currency"]),
|
|
5491
|
+
customerBalanceApplied: json["customer_balance_applied"],
|
|
5492
|
+
customerBalanceRemaining: json["customer_balance_remaining"],
|
|
5435
5493
|
discountAmount: json["discount_amount"],
|
|
5436
5494
|
discounts: json["discounts"].map(
|
|
5437
5495
|
CheckoutPriceSnapshotDiscountFromJSON
|
|
@@ -5448,6 +5506,7 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5448
5506
|
pricedAt: new Date(json["priced_at"]),
|
|
5449
5507
|
promoCodeApplied: json["promo_code_applied"],
|
|
5450
5508
|
proration: json["proration"],
|
|
5509
|
+
prorationDetail: json["proration_detail"] == null ? void 0 : CheckoutPriceSnapshotProrationFromJSON(json["proration_detail"]),
|
|
5451
5510
|
scheduledChangeTime: json["scheduled_change_time"] == null ? void 0 : new Date(json["scheduled_change_time"]),
|
|
5452
5511
|
taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
|
|
5453
5512
|
totalPerBillingPeriod: json["total_per_billing_period"],
|
|
@@ -8720,6 +8779,46 @@ function PreviewSubscriptionDiscountResponseDataFromJSONTyped(json, ignoreDiscri
|
|
|
8720
8779
|
};
|
|
8721
8780
|
}
|
|
8722
8781
|
|
|
8782
|
+
// src/api/checkoutexternal/models/PreviewSubscriptionProrationLineResponseData.ts
|
|
8783
|
+
function PreviewSubscriptionProrationLineResponseDataFromJSON(json) {
|
|
8784
|
+
return PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, false);
|
|
8785
|
+
}
|
|
8786
|
+
function PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
8787
|
+
if (json == null) {
|
|
8788
|
+
return json;
|
|
8789
|
+
}
|
|
8790
|
+
return {
|
|
8791
|
+
amount: json["amount"],
|
|
8792
|
+
kind: ProrationLineKindFromJSON(json["kind"]),
|
|
8793
|
+
periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
|
|
8794
|
+
periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
|
|
8795
|
+
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
8796
|
+
priceId: json["price_id"] == null ? void 0 : json["price_id"],
|
|
8797
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"]
|
|
8798
|
+
};
|
|
8799
|
+
}
|
|
8800
|
+
|
|
8801
|
+
// src/api/checkoutexternal/models/PreviewSubscriptionProrationResponseData.ts
|
|
8802
|
+
function PreviewSubscriptionProrationResponseDataFromJSON(json) {
|
|
8803
|
+
return PreviewSubscriptionProrationResponseDataFromJSONTyped(json, false);
|
|
8804
|
+
}
|
|
8805
|
+
function PreviewSubscriptionProrationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
8806
|
+
if (json == null) {
|
|
8807
|
+
return json;
|
|
8808
|
+
}
|
|
8809
|
+
return {
|
|
8810
|
+
billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
|
|
8811
|
+
charge: json["charge"],
|
|
8812
|
+
credit: json["credit"],
|
|
8813
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
8814
|
+
lines: json["lines"].map(
|
|
8815
|
+
PreviewSubscriptionProrationLineResponseDataFromJSON
|
|
8816
|
+
),
|
|
8817
|
+
timing: CheckoutChargeTimingFromJSON(json["timing"]),
|
|
8818
|
+
total: json["total"]
|
|
8819
|
+
};
|
|
8820
|
+
}
|
|
8821
|
+
|
|
8723
8822
|
// src/api/checkoutexternal/models/PreviewSubscriptionFinanceResponseData.ts
|
|
8724
8823
|
function PreviewSubscriptionFinanceResponseDataFromJSON(json) {
|
|
8725
8824
|
return PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, false);
|
|
@@ -8731,6 +8830,8 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
|
|
|
8731
8830
|
return {
|
|
8732
8831
|
amountOff: json["amount_off"],
|
|
8733
8832
|
currency: CurrencyFromJSON(json["currency"]),
|
|
8833
|
+
customerBalanceApplied: json["customer_balance_applied"],
|
|
8834
|
+
customerBalanceRemaining: json["customer_balance_remaining"],
|
|
8734
8835
|
discountAmount: json["discount_amount"],
|
|
8735
8836
|
discounts: json["discounts"].map(
|
|
8736
8837
|
PreviewSubscriptionDiscountResponseDataFromJSON
|
|
@@ -8743,6 +8844,9 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
|
|
|
8743
8844
|
promoCodeApplied: json["promo_code_applied"],
|
|
8744
8845
|
proration: json["proration"],
|
|
8745
8846
|
prorationBilledAt: json["proration_billed_at"] == null ? void 0 : new Date(json["proration_billed_at"]),
|
|
8847
|
+
prorationDetail: json["proration_detail"] == null ? void 0 : PreviewSubscriptionProrationResponseDataFromJSON(
|
|
8848
|
+
json["proration_detail"]
|
|
8849
|
+
),
|
|
8746
8850
|
taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
|
|
8747
8851
|
taxDisplayName: json["tax_display_name"] == null ? void 0 : json["tax_display_name"],
|
|
8748
8852
|
taxRequireBillingDetails: json["tax_require_billing_details"],
|
|
@@ -10631,9 +10735,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10631
10735
|
|
|
10632
10736
|
// src/api/componentspublic/models/Currency.ts
|
|
10633
10737
|
function CurrencyFromJSON2(json) {
|
|
10634
|
-
return
|
|
10738
|
+
return CurrencyFromJSONTyped41(json, false);
|
|
10635
10739
|
}
|
|
10636
|
-
function
|
|
10740
|
+
function CurrencyFromJSONTyped41(json, ignoreDiscriminator) {
|
|
10637
10741
|
return json;
|
|
10638
10742
|
}
|
|
10639
10743
|
|
|
@@ -17305,7 +17409,7 @@ var reducer = (state, action) => {
|
|
|
17305
17409
|
// src/context/EmbedProvider.tsx
|
|
17306
17410
|
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
17307
17411
|
var getCustomHeaders = (sessionId) => ({
|
|
17308
|
-
"X-Schematic-Components-Version": "2.
|
|
17412
|
+
"X-Schematic-Components-Version": "2.36.0",
|
|
17309
17413
|
"X-Schematic-Session-ID": sessionId
|
|
17310
17414
|
});
|
|
17311
17415
|
var normalizeCurrencyFilter = (filter2) => {
|
|
@@ -5580,7 +5580,8 @@ function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
5580
5580
|
id: json["id"],
|
|
5581
5581
|
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5582
5582
|
resetCadence: json["reset_cadence"] == null ? void 0 : BillingPlanCreditGrantResetCadenceFromJSON(json["reset_cadence"]),
|
|
5583
|
-
scaling: PlanCreditGrantScalingFromJSON(json["scaling"])
|
|
5583
|
+
scaling: PlanCreditGrantScalingFromJSON(json["scaling"]),
|
|
5584
|
+
visible: json["visible"]
|
|
5584
5585
|
};
|
|
5585
5586
|
}
|
|
5586
5587
|
|
|
@@ -5854,6 +5855,14 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
|
|
|
5854
5855
|
};
|
|
5855
5856
|
}
|
|
5856
5857
|
|
|
5858
|
+
// src/api/checkoutexternal/models/CheckoutChargeTiming.ts
|
|
5859
|
+
function CheckoutChargeTimingFromJSON(json) {
|
|
5860
|
+
return CheckoutChargeTimingFromJSONTyped(json, false);
|
|
5861
|
+
}
|
|
5862
|
+
function CheckoutChargeTimingFromJSONTyped(json, ignoreDiscriminator) {
|
|
5863
|
+
return json;
|
|
5864
|
+
}
|
|
5865
|
+
|
|
5857
5866
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
|
|
5858
5867
|
function CheckoutPriceSnapshotDiscountFromJSON(json) {
|
|
5859
5868
|
return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
|
|
@@ -5875,6 +5884,53 @@ function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5875
5884
|
};
|
|
5876
5885
|
}
|
|
5877
5886
|
|
|
5887
|
+
// src/api/checkoutexternal/models/ProrationLineKind.ts
|
|
5888
|
+
function ProrationLineKindFromJSON(json) {
|
|
5889
|
+
return ProrationLineKindFromJSONTyped(json, false);
|
|
5890
|
+
}
|
|
5891
|
+
function ProrationLineKindFromJSONTyped(json, ignoreDiscriminator) {
|
|
5892
|
+
return json;
|
|
5893
|
+
}
|
|
5894
|
+
|
|
5895
|
+
// src/api/checkoutexternal/models/CheckoutPriceSnapshotProrationLine.ts
|
|
5896
|
+
function CheckoutPriceSnapshotProrationLineFromJSON(json) {
|
|
5897
|
+
return CheckoutPriceSnapshotProrationLineFromJSONTyped(json, false);
|
|
5898
|
+
}
|
|
5899
|
+
function CheckoutPriceSnapshotProrationLineFromJSONTyped(json, ignoreDiscriminator) {
|
|
5900
|
+
if (json == null) {
|
|
5901
|
+
return json;
|
|
5902
|
+
}
|
|
5903
|
+
return {
|
|
5904
|
+
amount: json["amount"],
|
|
5905
|
+
kind: ProrationLineKindFromJSON(json["kind"]),
|
|
5906
|
+
periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
|
|
5907
|
+
periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
|
|
5908
|
+
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
5909
|
+
priceId: json["price_id"] == null ? void 0 : json["price_id"],
|
|
5910
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"]
|
|
5911
|
+
};
|
|
5912
|
+
}
|
|
5913
|
+
|
|
5914
|
+
// src/api/checkoutexternal/models/CheckoutPriceSnapshotProration.ts
|
|
5915
|
+
function CheckoutPriceSnapshotProrationFromJSON(json) {
|
|
5916
|
+
return CheckoutPriceSnapshotProrationFromJSONTyped(json, false);
|
|
5917
|
+
}
|
|
5918
|
+
function CheckoutPriceSnapshotProrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
5919
|
+
if (json == null) {
|
|
5920
|
+
return json;
|
|
5921
|
+
}
|
|
5922
|
+
return {
|
|
5923
|
+
billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
|
|
5924
|
+
charge: json["charge"],
|
|
5925
|
+
credit: json["credit"],
|
|
5926
|
+
lines: json["lines"].map(
|
|
5927
|
+
CheckoutPriceSnapshotProrationLineFromJSON
|
|
5928
|
+
),
|
|
5929
|
+
timing: CheckoutChargeTimingFromJSON(json["timing"]),
|
|
5930
|
+
total: json["total"]
|
|
5931
|
+
};
|
|
5932
|
+
}
|
|
5933
|
+
|
|
5878
5934
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
|
|
5879
5935
|
function CheckoutPriceSnapshotFromJSON(json) {
|
|
5880
5936
|
return CheckoutPriceSnapshotFromJSONTyped(json, false);
|
|
@@ -5886,6 +5942,8 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5886
5942
|
return {
|
|
5887
5943
|
amountOff: json["amount_off"],
|
|
5888
5944
|
currency: CurrencyFromJSON(json["currency"]),
|
|
5945
|
+
customerBalanceApplied: json["customer_balance_applied"],
|
|
5946
|
+
customerBalanceRemaining: json["customer_balance_remaining"],
|
|
5889
5947
|
discountAmount: json["discount_amount"],
|
|
5890
5948
|
discounts: json["discounts"].map(
|
|
5891
5949
|
CheckoutPriceSnapshotDiscountFromJSON
|
|
@@ -5902,6 +5960,7 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5902
5960
|
pricedAt: new Date(json["priced_at"]),
|
|
5903
5961
|
promoCodeApplied: json["promo_code_applied"],
|
|
5904
5962
|
proration: json["proration"],
|
|
5963
|
+
prorationDetail: json["proration_detail"] == null ? void 0 : CheckoutPriceSnapshotProrationFromJSON(json["proration_detail"]),
|
|
5905
5964
|
scheduledChangeTime: json["scheduled_change_time"] == null ? void 0 : new Date(json["scheduled_change_time"]),
|
|
5906
5965
|
taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
|
|
5907
5966
|
totalPerBillingPeriod: json["total_per_billing_period"],
|
|
@@ -9174,6 +9233,46 @@ function PreviewSubscriptionDiscountResponseDataFromJSONTyped(json, ignoreDiscri
|
|
|
9174
9233
|
};
|
|
9175
9234
|
}
|
|
9176
9235
|
|
|
9236
|
+
// src/api/checkoutexternal/models/PreviewSubscriptionProrationLineResponseData.ts
|
|
9237
|
+
function PreviewSubscriptionProrationLineResponseDataFromJSON(json) {
|
|
9238
|
+
return PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, false);
|
|
9239
|
+
}
|
|
9240
|
+
function PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
9241
|
+
if (json == null) {
|
|
9242
|
+
return json;
|
|
9243
|
+
}
|
|
9244
|
+
return {
|
|
9245
|
+
amount: json["amount"],
|
|
9246
|
+
kind: ProrationLineKindFromJSON(json["kind"]),
|
|
9247
|
+
periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
|
|
9248
|
+
periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
|
|
9249
|
+
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
9250
|
+
priceId: json["price_id"] == null ? void 0 : json["price_id"],
|
|
9251
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"]
|
|
9252
|
+
};
|
|
9253
|
+
}
|
|
9254
|
+
|
|
9255
|
+
// src/api/checkoutexternal/models/PreviewSubscriptionProrationResponseData.ts
|
|
9256
|
+
function PreviewSubscriptionProrationResponseDataFromJSON(json) {
|
|
9257
|
+
return PreviewSubscriptionProrationResponseDataFromJSONTyped(json, false);
|
|
9258
|
+
}
|
|
9259
|
+
function PreviewSubscriptionProrationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
9260
|
+
if (json == null) {
|
|
9261
|
+
return json;
|
|
9262
|
+
}
|
|
9263
|
+
return {
|
|
9264
|
+
billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
|
|
9265
|
+
charge: json["charge"],
|
|
9266
|
+
credit: json["credit"],
|
|
9267
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
9268
|
+
lines: json["lines"].map(
|
|
9269
|
+
PreviewSubscriptionProrationLineResponseDataFromJSON
|
|
9270
|
+
),
|
|
9271
|
+
timing: CheckoutChargeTimingFromJSON(json["timing"]),
|
|
9272
|
+
total: json["total"]
|
|
9273
|
+
};
|
|
9274
|
+
}
|
|
9275
|
+
|
|
9177
9276
|
// src/api/checkoutexternal/models/PreviewSubscriptionFinanceResponseData.ts
|
|
9178
9277
|
function PreviewSubscriptionFinanceResponseDataFromJSON(json) {
|
|
9179
9278
|
return PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, false);
|
|
@@ -9185,6 +9284,8 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
|
|
|
9185
9284
|
return {
|
|
9186
9285
|
amountOff: json["amount_off"],
|
|
9187
9286
|
currency: CurrencyFromJSON(json["currency"]),
|
|
9287
|
+
customerBalanceApplied: json["customer_balance_applied"],
|
|
9288
|
+
customerBalanceRemaining: json["customer_balance_remaining"],
|
|
9188
9289
|
discountAmount: json["discount_amount"],
|
|
9189
9290
|
discounts: json["discounts"].map(
|
|
9190
9291
|
PreviewSubscriptionDiscountResponseDataFromJSON
|
|
@@ -9197,6 +9298,9 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
|
|
|
9197
9298
|
promoCodeApplied: json["promo_code_applied"],
|
|
9198
9299
|
proration: json["proration"],
|
|
9199
9300
|
prorationBilledAt: json["proration_billed_at"] == null ? void 0 : new Date(json["proration_billed_at"]),
|
|
9301
|
+
prorationDetail: json["proration_detail"] == null ? void 0 : PreviewSubscriptionProrationResponseDataFromJSON(
|
|
9302
|
+
json["proration_detail"]
|
|
9303
|
+
),
|
|
9200
9304
|
taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
|
|
9201
9305
|
taxDisplayName: json["tax_display_name"] == null ? void 0 : json["tax_display_name"],
|
|
9202
9306
|
taxRequireBillingDetails: json["tax_require_billing_details"],
|
|
@@ -11085,9 +11189,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
11085
11189
|
|
|
11086
11190
|
// src/api/componentspublic/models/Currency.ts
|
|
11087
11191
|
function CurrencyFromJSON2(json) {
|
|
11088
|
-
return
|
|
11192
|
+
return CurrencyFromJSONTyped41(json, false);
|
|
11089
11193
|
}
|
|
11090
|
-
function
|
|
11194
|
+
function CurrencyFromJSONTyped41(json, ignoreDiscriminator) {
|
|
11091
11195
|
return json;
|
|
11092
11196
|
}
|
|
11093
11197
|
|
|
@@ -17753,7 +17857,7 @@ var reducer = (state, action) => {
|
|
|
17753
17857
|
// src/context/EmbedProvider.tsx
|
|
17754
17858
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
17755
17859
|
var getCustomHeaders = (sessionId) => ({
|
|
17756
|
-
"X-Schematic-Components-Version": "2.
|
|
17860
|
+
"X-Schematic-Components-Version": "2.36.0",
|
|
17757
17861
|
"X-Schematic-Session-ID": sessionId
|
|
17758
17862
|
});
|
|
17759
17863
|
var normalizeCurrencyFilter = (filter) => {
|