autumn-js 1.2.18 → 1.2.19
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/backend/adapters/express.js +1991 -356
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.js +1991 -356
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.js +1991 -356
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.js +1991 -356
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.js +1991 -356
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{chunk-6WR6HKUV.mjs → chunk-3TCAUBKX.mjs} +1 -1
- package/dist/backend/{chunk-6S2YNVJE.mjs → chunk-ATDRCSQT.mjs} +2 -2
- package/dist/backend/{chunk-PMLDNA5X.mjs → chunk-IJ2K62QI.mjs} +725 -190
- package/dist/backend/{chunk-5T2WF5EN.mjs → chunk-JAP7IT2U.mjs} +1 -1
- package/dist/backend/{chunk-WRTBT4DB.mjs → chunk-T5RLLZJB.mjs} +1263 -163
- package/dist/backend/{chunk-YTRHKBER.mjs → chunk-USOCI4FE.mjs} +2 -2
- package/dist/backend/{chunk-TLJECTWI.mjs → chunk-VZ5YXSHU.mjs} +1 -1
- package/dist/backend/{chunk-A5IIMQV2.mjs → chunk-XBCWZIUH.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +1991 -356
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +1991 -356
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +1991 -356
- package/dist/backend/core/handlers/index.mjs +4 -4
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +1991 -356
- package/dist/backend/core/index.mjs +4 -4
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.js +725 -190
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +725 -190
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +1991 -356
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-BxMqFvb8.d.mts → routeTypes-BCnBLtb9.d.mts} +1765 -171
- package/dist/backend/{routeTypes-bmsgACly.d.ts → routeTypes-gNxrwRsV.d.ts} +1765 -171
- package/dist/better-auth/{chunk-IB4UIPUR.mjs → chunk-4QQUN4SQ.mjs} +1 -1
- package/dist/better-auth/{chunk-YRXTPF7H.mjs → chunk-VAQYB57J.mjs} +1264 -164
- package/dist/better-auth/{chunk-NRY264WP.mjs → chunk-XXPUYN7Z.mjs} +725 -190
- package/dist/better-auth/index.js +1993 -358
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +725 -190
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +1991 -356
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +1993 -358
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +2 -2
- package/dist/react/AutumnContext.d.ts +2 -2
- package/dist/react/client/AutumnClient.d.mts +2 -2
- package/dist/react/client/AutumnClient.d.ts +2 -2
- package/dist/react/client/IAutumnClient.d.mts +2 -2
- package/dist/react/client/IAutumnClient.d.ts +2 -2
- package/dist/react/client/index.d.mts +2 -2
- package/dist/react/client/index.d.ts +2 -2
- package/dist/react/{customer-Cq-PTA7q.d.mts → customer-BgMiezZt.d.mts} +67 -0
- package/dist/react/{customer-CqehceT7.d.ts → customer-SSq4WO45.d.ts} +67 -0
- package/dist/react/hooks/index.d.mts +2 -2
- package/dist/react/hooks/index.d.ts +2 -2
- package/dist/react/hooks/index.mjs +5 -5
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useCustomer.d.mts +2 -2
- package/dist/react/hooks/useCustomer.d.ts +2 -2
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/index.d.mts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.mjs +5 -5
- package/dist/react/{params-D8UHkUv_.d.mts → params--mMxYT5w.d.mts} +1530 -206
- package/dist/react/{params-CurSVxfT.d.ts → params-DVrQcAu7.d.ts} +1530 -206
- package/dist/sdk/index.d.mts +2722 -582
- package/dist/sdk/index.d.ts +2722 -582
- package/dist/sdk/index.js +5061 -3395
- package/dist/sdk/index.mjs +4719 -3265
- package/package.json +1 -1
|
@@ -1406,7 +1406,7 @@ var AttachPriceInterval = {
|
|
|
1406
1406
|
SemiAnnual: "semi_annual",
|
|
1407
1407
|
Year: "year"
|
|
1408
1408
|
};
|
|
1409
|
-
var
|
|
1409
|
+
var AttachItemResetInterval = {
|
|
1410
1410
|
OneOff: "one_off",
|
|
1411
1411
|
Minute: "minute",
|
|
1412
1412
|
Hour: "hour",
|
|
@@ -1417,7 +1417,7 @@ var AttachResetInterval = {
|
|
|
1417
1417
|
SemiAnnual: "semi_annual",
|
|
1418
1418
|
Year: "year"
|
|
1419
1419
|
};
|
|
1420
|
-
var
|
|
1420
|
+
var AttachItemTierBehavior = {
|
|
1421
1421
|
Graduated: "graduated",
|
|
1422
1422
|
Volume: "volume"
|
|
1423
1423
|
};
|
|
@@ -1429,27 +1429,83 @@ var AttachItemPriceInterval = {
|
|
|
1429
1429
|
SemiAnnual: "semi_annual",
|
|
1430
1430
|
Year: "year"
|
|
1431
1431
|
};
|
|
1432
|
-
var
|
|
1432
|
+
var AttachItemBillingMethod = {
|
|
1433
1433
|
Prepaid: "prepaid",
|
|
1434
1434
|
UsageBased: "usage_based"
|
|
1435
1435
|
};
|
|
1436
|
-
var
|
|
1436
|
+
var AttachItemOnIncrease = {
|
|
1437
1437
|
BillImmediately: "bill_immediately",
|
|
1438
1438
|
ProrateImmediately: "prorate_immediately",
|
|
1439
1439
|
ProrateNextCycle: "prorate_next_cycle",
|
|
1440
1440
|
BillNextCycle: "bill_next_cycle"
|
|
1441
1441
|
};
|
|
1442
|
-
var
|
|
1442
|
+
var AttachItemOnDecrease = {
|
|
1443
1443
|
Prorate: "prorate",
|
|
1444
1444
|
ProrateImmediately: "prorate_immediately",
|
|
1445
1445
|
ProrateNextCycle: "prorate_next_cycle",
|
|
1446
1446
|
None: "none",
|
|
1447
1447
|
NoProrations: "no_prorations"
|
|
1448
1448
|
};
|
|
1449
|
-
var
|
|
1449
|
+
var AttachItemExpiryDurationType = {
|
|
1450
1450
|
Month: "month",
|
|
1451
1451
|
Forever: "forever"
|
|
1452
1452
|
};
|
|
1453
|
+
var AttachAddItemResetInterval = {
|
|
1454
|
+
OneOff: "one_off",
|
|
1455
|
+
Minute: "minute",
|
|
1456
|
+
Hour: "hour",
|
|
1457
|
+
Day: "day",
|
|
1458
|
+
Week: "week",
|
|
1459
|
+
Month: "month",
|
|
1460
|
+
Quarter: "quarter",
|
|
1461
|
+
SemiAnnual: "semi_annual",
|
|
1462
|
+
Year: "year"
|
|
1463
|
+
};
|
|
1464
|
+
var AttachAddItemTierBehavior = {
|
|
1465
|
+
Graduated: "graduated",
|
|
1466
|
+
Volume: "volume"
|
|
1467
|
+
};
|
|
1468
|
+
var AttachAddItemPriceInterval = {
|
|
1469
|
+
OneOff: "one_off",
|
|
1470
|
+
Week: "week",
|
|
1471
|
+
Month: "month",
|
|
1472
|
+
Quarter: "quarter",
|
|
1473
|
+
SemiAnnual: "semi_annual",
|
|
1474
|
+
Year: "year"
|
|
1475
|
+
};
|
|
1476
|
+
var AttachAddItemBillingMethod = {
|
|
1477
|
+
Prepaid: "prepaid",
|
|
1478
|
+
UsageBased: "usage_based"
|
|
1479
|
+
};
|
|
1480
|
+
var AttachAddItemOnIncrease = {
|
|
1481
|
+
BillImmediately: "bill_immediately",
|
|
1482
|
+
ProrateImmediately: "prorate_immediately",
|
|
1483
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
1484
|
+
BillNextCycle: "bill_next_cycle"
|
|
1485
|
+
};
|
|
1486
|
+
var AttachAddItemOnDecrease = {
|
|
1487
|
+
Prorate: "prorate",
|
|
1488
|
+
ProrateImmediately: "prorate_immediately",
|
|
1489
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
1490
|
+
None: "none",
|
|
1491
|
+
NoProrations: "no_prorations"
|
|
1492
|
+
};
|
|
1493
|
+
var AttachAddItemExpiryDurationType = {
|
|
1494
|
+
Month: "month",
|
|
1495
|
+
Forever: "forever"
|
|
1496
|
+
};
|
|
1497
|
+
var AttachRemoveItemBillingMethod = {
|
|
1498
|
+
Prepaid: "prepaid",
|
|
1499
|
+
UsageBased: "usage_based"
|
|
1500
|
+
};
|
|
1501
|
+
var AttachRemoveItemInterval = {
|
|
1502
|
+
OneOff: "one_off",
|
|
1503
|
+
Week: "week",
|
|
1504
|
+
Month: "month",
|
|
1505
|
+
Quarter: "quarter",
|
|
1506
|
+
SemiAnnual: "semi_annual",
|
|
1507
|
+
Year: "year"
|
|
1508
|
+
};
|
|
1453
1509
|
var AttachDurationType = {
|
|
1454
1510
|
Day: "day",
|
|
1455
1511
|
Month: "month",
|
|
@@ -1498,10 +1554,10 @@ var AttachBasePrice$outboundSchema = z10.pipe(
|
|
|
1498
1554
|
});
|
|
1499
1555
|
})
|
|
1500
1556
|
);
|
|
1501
|
-
var
|
|
1502
|
-
var
|
|
1557
|
+
var AttachItemResetInterval$outboundSchema = z10.enum(AttachItemResetInterval);
|
|
1558
|
+
var AttachItemReset$outboundSchema = z10.pipe(
|
|
1503
1559
|
z10.object({
|
|
1504
|
-
interval:
|
|
1560
|
+
interval: AttachItemResetInterval$outboundSchema,
|
|
1505
1561
|
intervalCount: z10.optional(z10.number())
|
|
1506
1562
|
}),
|
|
1507
1563
|
z10.transform((v) => {
|
|
@@ -1510,8 +1566,8 @@ var AttachReset$outboundSchema = z10.pipe(
|
|
|
1510
1566
|
});
|
|
1511
1567
|
})
|
|
1512
1568
|
);
|
|
1513
|
-
var
|
|
1514
|
-
var
|
|
1569
|
+
var AttachItemTo$outboundSchema = smartUnion([z10.number(), z10.string()]);
|
|
1570
|
+
var AttachItemTier$outboundSchema = z10.pipe(
|
|
1515
1571
|
z10.object({
|
|
1516
1572
|
to: smartUnion([z10.number(), z10.string()]),
|
|
1517
1573
|
amount: z10.optional(z10.number()),
|
|
@@ -1523,18 +1579,18 @@ var AttachTier$outboundSchema = z10.pipe(
|
|
|
1523
1579
|
});
|
|
1524
1580
|
})
|
|
1525
1581
|
);
|
|
1526
|
-
var
|
|
1582
|
+
var AttachItemTierBehavior$outboundSchema = z10.enum(AttachItemTierBehavior);
|
|
1527
1583
|
var AttachItemPriceInterval$outboundSchema = z10.enum(AttachItemPriceInterval);
|
|
1528
|
-
var
|
|
1529
|
-
var
|
|
1584
|
+
var AttachItemBillingMethod$outboundSchema = z10.enum(AttachItemBillingMethod);
|
|
1585
|
+
var AttachItemPrice$outboundSchema = z10.pipe(
|
|
1530
1586
|
z10.object({
|
|
1531
1587
|
amount: z10.optional(z10.number()),
|
|
1532
|
-
tiers: z10.optional(z10.array(z10.lazy(() =>
|
|
1533
|
-
tierBehavior: z10.optional(
|
|
1588
|
+
tiers: z10.optional(z10.array(z10.lazy(() => AttachItemTier$outboundSchema))),
|
|
1589
|
+
tierBehavior: z10.optional(AttachItemTierBehavior$outboundSchema),
|
|
1534
1590
|
interval: AttachItemPriceInterval$outboundSchema,
|
|
1535
1591
|
intervalCount: z10._default(z10.number(), 1),
|
|
1536
1592
|
billingUnits: z10._default(z10.number(), 1),
|
|
1537
|
-
billingMethod:
|
|
1593
|
+
billingMethod: AttachItemBillingMethod$outboundSchema,
|
|
1538
1594
|
maxPurchase: z10.optional(z10.number())
|
|
1539
1595
|
}),
|
|
1540
1596
|
z10.transform((v) => {
|
|
@@ -1547,12 +1603,12 @@ var AttachPrice$outboundSchema = z10.pipe(
|
|
|
1547
1603
|
});
|
|
1548
1604
|
})
|
|
1549
1605
|
);
|
|
1550
|
-
var
|
|
1551
|
-
var
|
|
1552
|
-
var
|
|
1606
|
+
var AttachItemOnIncrease$outboundSchema = z10.enum(AttachItemOnIncrease);
|
|
1607
|
+
var AttachItemOnDecrease$outboundSchema = z10.enum(AttachItemOnDecrease);
|
|
1608
|
+
var AttachItemProration$outboundSchema = z10.pipe(
|
|
1553
1609
|
z10.object({
|
|
1554
|
-
onIncrease:
|
|
1555
|
-
onDecrease:
|
|
1610
|
+
onIncrease: AttachItemOnIncrease$outboundSchema,
|
|
1611
|
+
onDecrease: AttachItemOnDecrease$outboundSchema
|
|
1556
1612
|
}),
|
|
1557
1613
|
z10.transform((v) => {
|
|
1558
1614
|
return remap(v, {
|
|
@@ -1561,12 +1617,12 @@ var AttachProration$outboundSchema = z10.pipe(
|
|
|
1561
1617
|
});
|
|
1562
1618
|
})
|
|
1563
1619
|
);
|
|
1564
|
-
var
|
|
1565
|
-
var
|
|
1620
|
+
var AttachItemExpiryDurationType$outboundSchema = z10.enum(AttachItemExpiryDurationType);
|
|
1621
|
+
var AttachItemRollover$outboundSchema = z10.pipe(
|
|
1566
1622
|
z10.object({
|
|
1567
1623
|
max: z10.optional(z10.number()),
|
|
1568
1624
|
maxPercentage: z10.optional(z10.number()),
|
|
1569
|
-
expiryDurationType:
|
|
1625
|
+
expiryDurationType: AttachItemExpiryDurationType$outboundSchema,
|
|
1570
1626
|
expiryDurationLength: z10.optional(z10.number())
|
|
1571
1627
|
}),
|
|
1572
1628
|
z10.transform((v) => {
|
|
@@ -1577,15 +1633,15 @@ var AttachRollover$outboundSchema = z10.pipe(
|
|
|
1577
1633
|
});
|
|
1578
1634
|
})
|
|
1579
1635
|
);
|
|
1580
|
-
var
|
|
1636
|
+
var AttachItemPlanItem$outboundSchema = z10.pipe(
|
|
1581
1637
|
z10.object({
|
|
1582
1638
|
featureId: z10.string(),
|
|
1583
1639
|
included: z10.optional(z10.number()),
|
|
1584
1640
|
unlimited: z10.optional(z10.boolean()),
|
|
1585
|
-
reset: z10.optional(z10.lazy(() =>
|
|
1586
|
-
price: z10.optional(z10.lazy(() =>
|
|
1587
|
-
proration: z10.optional(z10.lazy(() =>
|
|
1588
|
-
rollover: z10.optional(z10.lazy(() =>
|
|
1641
|
+
reset: z10.optional(z10.lazy(() => AttachItemReset$outboundSchema)),
|
|
1642
|
+
price: z10.optional(z10.lazy(() => AttachItemPrice$outboundSchema)),
|
|
1643
|
+
proration: z10.optional(z10.lazy(() => AttachItemProration$outboundSchema)),
|
|
1644
|
+
rollover: z10.optional(z10.lazy(() => AttachItemRollover$outboundSchema))
|
|
1589
1645
|
}),
|
|
1590
1646
|
z10.transform((v) => {
|
|
1591
1647
|
return remap(v, {
|
|
@@ -1593,6 +1649,116 @@ var AttachPlanItem$outboundSchema = z10.pipe(
|
|
|
1593
1649
|
});
|
|
1594
1650
|
})
|
|
1595
1651
|
);
|
|
1652
|
+
var AttachAddItemResetInterval$outboundSchema = z10.enum(AttachAddItemResetInterval);
|
|
1653
|
+
var AttachAddItemReset$outboundSchema = z10.pipe(
|
|
1654
|
+
z10.object({
|
|
1655
|
+
interval: AttachAddItemResetInterval$outboundSchema,
|
|
1656
|
+
intervalCount: z10.optional(z10.number())
|
|
1657
|
+
}),
|
|
1658
|
+
z10.transform((v) => {
|
|
1659
|
+
return remap(v, {
|
|
1660
|
+
intervalCount: "interval_count"
|
|
1661
|
+
});
|
|
1662
|
+
})
|
|
1663
|
+
);
|
|
1664
|
+
var AttachAddItemTo$outboundSchema = smartUnion([z10.number(), z10.string()]);
|
|
1665
|
+
var AttachAddItemTier$outboundSchema = z10.pipe(
|
|
1666
|
+
z10.object({
|
|
1667
|
+
to: smartUnion([z10.number(), z10.string()]),
|
|
1668
|
+
amount: z10.optional(z10.number()),
|
|
1669
|
+
flatAmount: z10.optional(z10.number())
|
|
1670
|
+
}),
|
|
1671
|
+
z10.transform((v) => {
|
|
1672
|
+
return remap(v, {
|
|
1673
|
+
flatAmount: "flat_amount"
|
|
1674
|
+
});
|
|
1675
|
+
})
|
|
1676
|
+
);
|
|
1677
|
+
var AttachAddItemTierBehavior$outboundSchema = z10.enum(AttachAddItemTierBehavior);
|
|
1678
|
+
var AttachAddItemPriceInterval$outboundSchema = z10.enum(AttachAddItemPriceInterval);
|
|
1679
|
+
var AttachAddItemBillingMethod$outboundSchema = z10.enum(AttachAddItemBillingMethod);
|
|
1680
|
+
var AttachAddItemPrice$outboundSchema = z10.pipe(
|
|
1681
|
+
z10.object({
|
|
1682
|
+
amount: z10.optional(z10.number()),
|
|
1683
|
+
tiers: z10.optional(z10.array(z10.lazy(() => AttachAddItemTier$outboundSchema))),
|
|
1684
|
+
tierBehavior: z10.optional(AttachAddItemTierBehavior$outboundSchema),
|
|
1685
|
+
interval: AttachAddItemPriceInterval$outboundSchema,
|
|
1686
|
+
intervalCount: z10._default(z10.number(), 1),
|
|
1687
|
+
billingUnits: z10._default(z10.number(), 1),
|
|
1688
|
+
billingMethod: AttachAddItemBillingMethod$outboundSchema,
|
|
1689
|
+
maxPurchase: z10.optional(z10.number())
|
|
1690
|
+
}),
|
|
1691
|
+
z10.transform((v) => {
|
|
1692
|
+
return remap(v, {
|
|
1693
|
+
tierBehavior: "tier_behavior",
|
|
1694
|
+
intervalCount: "interval_count",
|
|
1695
|
+
billingUnits: "billing_units",
|
|
1696
|
+
billingMethod: "billing_method",
|
|
1697
|
+
maxPurchase: "max_purchase"
|
|
1698
|
+
});
|
|
1699
|
+
})
|
|
1700
|
+
);
|
|
1701
|
+
var AttachAddItemOnIncrease$outboundSchema = z10.enum(AttachAddItemOnIncrease);
|
|
1702
|
+
var AttachAddItemOnDecrease$outboundSchema = z10.enum(AttachAddItemOnDecrease);
|
|
1703
|
+
var AttachAddItemProration$outboundSchema = z10.pipe(
|
|
1704
|
+
z10.object({
|
|
1705
|
+
onIncrease: AttachAddItemOnIncrease$outboundSchema,
|
|
1706
|
+
onDecrease: AttachAddItemOnDecrease$outboundSchema
|
|
1707
|
+
}),
|
|
1708
|
+
z10.transform((v) => {
|
|
1709
|
+
return remap(v, {
|
|
1710
|
+
onIncrease: "on_increase",
|
|
1711
|
+
onDecrease: "on_decrease"
|
|
1712
|
+
});
|
|
1713
|
+
})
|
|
1714
|
+
);
|
|
1715
|
+
var AttachAddItemExpiryDurationType$outboundSchema = z10.enum(AttachAddItemExpiryDurationType);
|
|
1716
|
+
var AttachAddItemRollover$outboundSchema = z10.pipe(
|
|
1717
|
+
z10.object({
|
|
1718
|
+
max: z10.optional(z10.number()),
|
|
1719
|
+
maxPercentage: z10.optional(z10.number()),
|
|
1720
|
+
expiryDurationType: AttachAddItemExpiryDurationType$outboundSchema,
|
|
1721
|
+
expiryDurationLength: z10.optional(z10.number())
|
|
1722
|
+
}),
|
|
1723
|
+
z10.transform((v) => {
|
|
1724
|
+
return remap(v, {
|
|
1725
|
+
maxPercentage: "max_percentage",
|
|
1726
|
+
expiryDurationType: "expiry_duration_type",
|
|
1727
|
+
expiryDurationLength: "expiry_duration_length"
|
|
1728
|
+
});
|
|
1729
|
+
})
|
|
1730
|
+
);
|
|
1731
|
+
var AttachAddItemPlanItem$outboundSchema = z10.pipe(
|
|
1732
|
+
z10.object({
|
|
1733
|
+
featureId: z10.string(),
|
|
1734
|
+
included: z10.optional(z10.number()),
|
|
1735
|
+
unlimited: z10.optional(z10.boolean()),
|
|
1736
|
+
reset: z10.optional(z10.lazy(() => AttachAddItemReset$outboundSchema)),
|
|
1737
|
+
price: z10.optional(z10.lazy(() => AttachAddItemPrice$outboundSchema)),
|
|
1738
|
+
proration: z10.optional(z10.lazy(() => AttachAddItemProration$outboundSchema)),
|
|
1739
|
+
rollover: z10.optional(z10.lazy(() => AttachAddItemRollover$outboundSchema))
|
|
1740
|
+
}),
|
|
1741
|
+
z10.transform((v) => {
|
|
1742
|
+
return remap(v, {
|
|
1743
|
+
featureId: "feature_id"
|
|
1744
|
+
});
|
|
1745
|
+
})
|
|
1746
|
+
);
|
|
1747
|
+
var AttachRemoveItemBillingMethod$outboundSchema = z10.enum(AttachRemoveItemBillingMethod);
|
|
1748
|
+
var AttachRemoveItemInterval$outboundSchema = z10.enum(AttachRemoveItemInterval);
|
|
1749
|
+
var AttachPlanItemFilter$outboundSchema = z10.pipe(
|
|
1750
|
+
z10.object({
|
|
1751
|
+
featureId: z10.optional(z10.string()),
|
|
1752
|
+
billingMethod: z10.optional(AttachRemoveItemBillingMethod$outboundSchema),
|
|
1753
|
+
interval: z10.optional(AttachRemoveItemInterval$outboundSchema)
|
|
1754
|
+
}),
|
|
1755
|
+
z10.transform((v) => {
|
|
1756
|
+
return remap(v, {
|
|
1757
|
+
featureId: "feature_id",
|
|
1758
|
+
billingMethod: "billing_method"
|
|
1759
|
+
});
|
|
1760
|
+
})
|
|
1761
|
+
);
|
|
1596
1762
|
var AttachDurationType$outboundSchema = z10.enum(AttachDurationType);
|
|
1597
1763
|
var AttachFreeTrialParams$outboundSchema = z10.pipe(
|
|
1598
1764
|
z10.object({
|
|
@@ -1611,13 +1777,21 @@ var AttachFreeTrialParams$outboundSchema = z10.pipe(
|
|
|
1611
1777
|
var AttachCustomize$outboundSchema = z10.pipe(
|
|
1612
1778
|
z10.object({
|
|
1613
1779
|
price: z10.optional(z10.nullable(z10.lazy(() => AttachBasePrice$outboundSchema))),
|
|
1614
|
-
items: z10.optional(z10.array(z10.lazy(() =>
|
|
1780
|
+
items: z10.optional(z10.array(z10.lazy(() => AttachItemPlanItem$outboundSchema))),
|
|
1781
|
+
addItems: z10.optional(
|
|
1782
|
+
z10.array(z10.lazy(() => AttachAddItemPlanItem$outboundSchema))
|
|
1783
|
+
),
|
|
1784
|
+
removeItems: z10.optional(
|
|
1785
|
+
z10.array(z10.lazy(() => AttachPlanItemFilter$outboundSchema))
|
|
1786
|
+
),
|
|
1615
1787
|
freeTrial: z10.optional(
|
|
1616
1788
|
z10.nullable(z10.lazy(() => AttachFreeTrialParams$outboundSchema))
|
|
1617
1789
|
)
|
|
1618
1790
|
}),
|
|
1619
1791
|
z10.transform((v) => {
|
|
1620
1792
|
return remap(v, {
|
|
1793
|
+
addItems: "add_items",
|
|
1794
|
+
removeItems: "remove_items",
|
|
1621
1795
|
freeTrial: "free_trial"
|
|
1622
1796
|
});
|
|
1623
1797
|
})
|
|
@@ -1697,6 +1871,7 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1697
1871
|
billingCycleAnchor: z10.optional(z10.literal("now")),
|
|
1698
1872
|
planSchedule: z10.optional(AttachPlanSchedule$outboundSchema),
|
|
1699
1873
|
startsAt: z10.optional(z10.int()),
|
|
1874
|
+
endsAt: z10.optional(z10.int()),
|
|
1700
1875
|
checkoutSessionParams: z10.optional(z10.record(z10.string(), z10.any())),
|
|
1701
1876
|
customLineItems: z10.optional(
|
|
1702
1877
|
z10.array(z10.lazy(() => AttachCustomLineItem$outboundSchema))
|
|
@@ -1727,6 +1902,7 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1727
1902
|
billingCycleAnchor: "billing_cycle_anchor",
|
|
1728
1903
|
planSchedule: "plan_schedule",
|
|
1729
1904
|
startsAt: "starts_at",
|
|
1905
|
+
endsAt: "ends_at",
|
|
1730
1906
|
checkoutSessionParams: "checkout_session_params",
|
|
1731
1907
|
customLineItems: "custom_line_items",
|
|
1732
1908
|
processorSubscriptionId: "processor_subscription_id",
|
|
@@ -1944,7 +2120,7 @@ var BillingUpdatePriceInterval = {
|
|
|
1944
2120
|
SemiAnnual: "semi_annual",
|
|
1945
2121
|
Year: "year"
|
|
1946
2122
|
};
|
|
1947
|
-
var
|
|
2123
|
+
var BillingUpdateItemResetInterval = {
|
|
1948
2124
|
OneOff: "one_off",
|
|
1949
2125
|
Minute: "minute",
|
|
1950
2126
|
Hour: "hour",
|
|
@@ -1955,7 +2131,7 @@ var BillingUpdateResetInterval = {
|
|
|
1955
2131
|
SemiAnnual: "semi_annual",
|
|
1956
2132
|
Year: "year"
|
|
1957
2133
|
};
|
|
1958
|
-
var
|
|
2134
|
+
var BillingUpdateItemTierBehavior = {
|
|
1959
2135
|
Graduated: "graduated",
|
|
1960
2136
|
Volume: "volume"
|
|
1961
2137
|
};
|
|
@@ -1967,27 +2143,83 @@ var BillingUpdateItemPriceInterval = {
|
|
|
1967
2143
|
SemiAnnual: "semi_annual",
|
|
1968
2144
|
Year: "year"
|
|
1969
2145
|
};
|
|
1970
|
-
var
|
|
2146
|
+
var BillingUpdateItemBillingMethod = {
|
|
1971
2147
|
Prepaid: "prepaid",
|
|
1972
2148
|
UsageBased: "usage_based"
|
|
1973
2149
|
};
|
|
1974
|
-
var
|
|
2150
|
+
var BillingUpdateItemOnIncrease = {
|
|
1975
2151
|
BillImmediately: "bill_immediately",
|
|
1976
2152
|
ProrateImmediately: "prorate_immediately",
|
|
1977
2153
|
ProrateNextCycle: "prorate_next_cycle",
|
|
1978
2154
|
BillNextCycle: "bill_next_cycle"
|
|
1979
2155
|
};
|
|
1980
|
-
var
|
|
2156
|
+
var BillingUpdateItemOnDecrease = {
|
|
1981
2157
|
Prorate: "prorate",
|
|
1982
2158
|
ProrateImmediately: "prorate_immediately",
|
|
1983
2159
|
ProrateNextCycle: "prorate_next_cycle",
|
|
1984
2160
|
None: "none",
|
|
1985
2161
|
NoProrations: "no_prorations"
|
|
1986
2162
|
};
|
|
1987
|
-
var
|
|
2163
|
+
var BillingUpdateItemExpiryDurationType = {
|
|
1988
2164
|
Month: "month",
|
|
1989
2165
|
Forever: "forever"
|
|
1990
2166
|
};
|
|
2167
|
+
var BillingUpdateAddItemResetInterval = {
|
|
2168
|
+
OneOff: "one_off",
|
|
2169
|
+
Minute: "minute",
|
|
2170
|
+
Hour: "hour",
|
|
2171
|
+
Day: "day",
|
|
2172
|
+
Week: "week",
|
|
2173
|
+
Month: "month",
|
|
2174
|
+
Quarter: "quarter",
|
|
2175
|
+
SemiAnnual: "semi_annual",
|
|
2176
|
+
Year: "year"
|
|
2177
|
+
};
|
|
2178
|
+
var BillingUpdateAddItemTierBehavior = {
|
|
2179
|
+
Graduated: "graduated",
|
|
2180
|
+
Volume: "volume"
|
|
2181
|
+
};
|
|
2182
|
+
var BillingUpdateAddItemPriceInterval = {
|
|
2183
|
+
OneOff: "one_off",
|
|
2184
|
+
Week: "week",
|
|
2185
|
+
Month: "month",
|
|
2186
|
+
Quarter: "quarter",
|
|
2187
|
+
SemiAnnual: "semi_annual",
|
|
2188
|
+
Year: "year"
|
|
2189
|
+
};
|
|
2190
|
+
var BillingUpdateAddItemBillingMethod = {
|
|
2191
|
+
Prepaid: "prepaid",
|
|
2192
|
+
UsageBased: "usage_based"
|
|
2193
|
+
};
|
|
2194
|
+
var BillingUpdateAddItemOnIncrease = {
|
|
2195
|
+
BillImmediately: "bill_immediately",
|
|
2196
|
+
ProrateImmediately: "prorate_immediately",
|
|
2197
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
2198
|
+
BillNextCycle: "bill_next_cycle"
|
|
2199
|
+
};
|
|
2200
|
+
var BillingUpdateAddItemOnDecrease = {
|
|
2201
|
+
Prorate: "prorate",
|
|
2202
|
+
ProrateImmediately: "prorate_immediately",
|
|
2203
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
2204
|
+
None: "none",
|
|
2205
|
+
NoProrations: "no_prorations"
|
|
2206
|
+
};
|
|
2207
|
+
var BillingUpdateAddItemExpiryDurationType = {
|
|
2208
|
+
Month: "month",
|
|
2209
|
+
Forever: "forever"
|
|
2210
|
+
};
|
|
2211
|
+
var BillingUpdateRemoveItemBillingMethod = {
|
|
2212
|
+
Prepaid: "prepaid",
|
|
2213
|
+
UsageBased: "usage_based"
|
|
2214
|
+
};
|
|
2215
|
+
var BillingUpdateRemoveItemInterval = {
|
|
2216
|
+
OneOff: "one_off",
|
|
2217
|
+
Week: "week",
|
|
2218
|
+
Month: "month",
|
|
2219
|
+
Quarter: "quarter",
|
|
2220
|
+
SemiAnnual: "semi_annual",
|
|
2221
|
+
Year: "year"
|
|
2222
|
+
};
|
|
1991
2223
|
var BillingUpdateDurationType = {
|
|
1992
2224
|
Day: "day",
|
|
1993
2225
|
Month: "month",
|
|
@@ -2037,10 +2269,10 @@ var BillingUpdateBasePrice$outboundSchema = z12.pipe(
|
|
|
2037
2269
|
});
|
|
2038
2270
|
})
|
|
2039
2271
|
);
|
|
2040
|
-
var
|
|
2041
|
-
var
|
|
2272
|
+
var BillingUpdateItemResetInterval$outboundSchema = z12.enum(BillingUpdateItemResetInterval);
|
|
2273
|
+
var BillingUpdateItemReset$outboundSchema = z12.pipe(
|
|
2042
2274
|
z12.object({
|
|
2043
|
-
interval:
|
|
2275
|
+
interval: BillingUpdateItemResetInterval$outboundSchema,
|
|
2044
2276
|
intervalCount: z12.optional(z12.number())
|
|
2045
2277
|
}),
|
|
2046
2278
|
z12.transform((v) => {
|
|
@@ -2049,8 +2281,8 @@ var BillingUpdateReset$outboundSchema = z12.pipe(
|
|
|
2049
2281
|
});
|
|
2050
2282
|
})
|
|
2051
2283
|
);
|
|
2052
|
-
var
|
|
2053
|
-
var
|
|
2284
|
+
var BillingUpdateItemTo$outboundSchema = smartUnion([z12.number(), z12.string()]);
|
|
2285
|
+
var BillingUpdateItemTier$outboundSchema = z12.pipe(
|
|
2054
2286
|
z12.object({
|
|
2055
2287
|
to: smartUnion([z12.number(), z12.string()]),
|
|
2056
2288
|
amount: z12.optional(z12.number()),
|
|
@@ -2062,18 +2294,121 @@ var BillingUpdateTier$outboundSchema = z12.pipe(
|
|
|
2062
2294
|
});
|
|
2063
2295
|
})
|
|
2064
2296
|
);
|
|
2065
|
-
var
|
|
2297
|
+
var BillingUpdateItemTierBehavior$outboundSchema = z12.enum(BillingUpdateItemTierBehavior);
|
|
2066
2298
|
var BillingUpdateItemPriceInterval$outboundSchema = z12.enum(BillingUpdateItemPriceInterval);
|
|
2067
|
-
var
|
|
2068
|
-
var
|
|
2299
|
+
var BillingUpdateItemBillingMethod$outboundSchema = z12.enum(BillingUpdateItemBillingMethod);
|
|
2300
|
+
var BillingUpdateItemPrice$outboundSchema = z12.pipe(
|
|
2069
2301
|
z12.object({
|
|
2070
2302
|
amount: z12.optional(z12.number()),
|
|
2071
|
-
tiers: z12.optional(
|
|
2072
|
-
|
|
2303
|
+
tiers: z12.optional(
|
|
2304
|
+
z12.array(z12.lazy(() => BillingUpdateItemTier$outboundSchema))
|
|
2305
|
+
),
|
|
2306
|
+
tierBehavior: z12.optional(BillingUpdateItemTierBehavior$outboundSchema),
|
|
2073
2307
|
interval: BillingUpdateItemPriceInterval$outboundSchema,
|
|
2074
2308
|
intervalCount: z12._default(z12.number(), 1),
|
|
2075
2309
|
billingUnits: z12._default(z12.number(), 1),
|
|
2076
|
-
billingMethod:
|
|
2310
|
+
billingMethod: BillingUpdateItemBillingMethod$outboundSchema,
|
|
2311
|
+
maxPurchase: z12.optional(z12.number())
|
|
2312
|
+
}),
|
|
2313
|
+
z12.transform((v) => {
|
|
2314
|
+
return remap(v, {
|
|
2315
|
+
tierBehavior: "tier_behavior",
|
|
2316
|
+
intervalCount: "interval_count",
|
|
2317
|
+
billingUnits: "billing_units",
|
|
2318
|
+
billingMethod: "billing_method",
|
|
2319
|
+
maxPurchase: "max_purchase"
|
|
2320
|
+
});
|
|
2321
|
+
})
|
|
2322
|
+
);
|
|
2323
|
+
var BillingUpdateItemOnIncrease$outboundSchema = z12.enum(BillingUpdateItemOnIncrease);
|
|
2324
|
+
var BillingUpdateItemOnDecrease$outboundSchema = z12.enum(BillingUpdateItemOnDecrease);
|
|
2325
|
+
var BillingUpdateItemProration$outboundSchema = z12.pipe(
|
|
2326
|
+
z12.object({
|
|
2327
|
+
onIncrease: BillingUpdateItemOnIncrease$outboundSchema,
|
|
2328
|
+
onDecrease: BillingUpdateItemOnDecrease$outboundSchema
|
|
2329
|
+
}),
|
|
2330
|
+
z12.transform((v) => {
|
|
2331
|
+
return remap(v, {
|
|
2332
|
+
onIncrease: "on_increase",
|
|
2333
|
+
onDecrease: "on_decrease"
|
|
2334
|
+
});
|
|
2335
|
+
})
|
|
2336
|
+
);
|
|
2337
|
+
var BillingUpdateItemExpiryDurationType$outboundSchema = z12.enum(BillingUpdateItemExpiryDurationType);
|
|
2338
|
+
var BillingUpdateItemRollover$outboundSchema = z12.pipe(
|
|
2339
|
+
z12.object({
|
|
2340
|
+
max: z12.optional(z12.number()),
|
|
2341
|
+
maxPercentage: z12.optional(z12.number()),
|
|
2342
|
+
expiryDurationType: BillingUpdateItemExpiryDurationType$outboundSchema,
|
|
2343
|
+
expiryDurationLength: z12.optional(z12.number())
|
|
2344
|
+
}),
|
|
2345
|
+
z12.transform((v) => {
|
|
2346
|
+
return remap(v, {
|
|
2347
|
+
maxPercentage: "max_percentage",
|
|
2348
|
+
expiryDurationType: "expiry_duration_type",
|
|
2349
|
+
expiryDurationLength: "expiry_duration_length"
|
|
2350
|
+
});
|
|
2351
|
+
})
|
|
2352
|
+
);
|
|
2353
|
+
var BillingUpdateItemPlanItem$outboundSchema = z12.pipe(
|
|
2354
|
+
z12.object({
|
|
2355
|
+
featureId: z12.string(),
|
|
2356
|
+
included: z12.optional(z12.number()),
|
|
2357
|
+
unlimited: z12.optional(z12.boolean()),
|
|
2358
|
+
reset: z12.optional(z12.lazy(() => BillingUpdateItemReset$outboundSchema)),
|
|
2359
|
+
price: z12.optional(z12.lazy(() => BillingUpdateItemPrice$outboundSchema)),
|
|
2360
|
+
proration: z12.optional(
|
|
2361
|
+
z12.lazy(() => BillingUpdateItemProration$outboundSchema)
|
|
2362
|
+
),
|
|
2363
|
+
rollover: z12.optional(
|
|
2364
|
+
z12.lazy(() => BillingUpdateItemRollover$outboundSchema)
|
|
2365
|
+
)
|
|
2366
|
+
}),
|
|
2367
|
+
z12.transform((v) => {
|
|
2368
|
+
return remap(v, {
|
|
2369
|
+
featureId: "feature_id"
|
|
2370
|
+
});
|
|
2371
|
+
})
|
|
2372
|
+
);
|
|
2373
|
+
var BillingUpdateAddItemResetInterval$outboundSchema = z12.enum(BillingUpdateAddItemResetInterval);
|
|
2374
|
+
var BillingUpdateAddItemReset$outboundSchema = z12.pipe(
|
|
2375
|
+
z12.object({
|
|
2376
|
+
interval: BillingUpdateAddItemResetInterval$outboundSchema,
|
|
2377
|
+
intervalCount: z12.optional(z12.number())
|
|
2378
|
+
}),
|
|
2379
|
+
z12.transform((v) => {
|
|
2380
|
+
return remap(v, {
|
|
2381
|
+
intervalCount: "interval_count"
|
|
2382
|
+
});
|
|
2383
|
+
})
|
|
2384
|
+
);
|
|
2385
|
+
var BillingUpdateAddItemTo$outboundSchema = smartUnion([z12.number(), z12.string()]);
|
|
2386
|
+
var BillingUpdateAddItemTier$outboundSchema = z12.pipe(
|
|
2387
|
+
z12.object({
|
|
2388
|
+
to: smartUnion([z12.number(), z12.string()]),
|
|
2389
|
+
amount: z12.optional(z12.number()),
|
|
2390
|
+
flatAmount: z12.optional(z12.number())
|
|
2391
|
+
}),
|
|
2392
|
+
z12.transform((v) => {
|
|
2393
|
+
return remap(v, {
|
|
2394
|
+
flatAmount: "flat_amount"
|
|
2395
|
+
});
|
|
2396
|
+
})
|
|
2397
|
+
);
|
|
2398
|
+
var BillingUpdateAddItemTierBehavior$outboundSchema = z12.enum(BillingUpdateAddItemTierBehavior);
|
|
2399
|
+
var BillingUpdateAddItemPriceInterval$outboundSchema = z12.enum(BillingUpdateAddItemPriceInterval);
|
|
2400
|
+
var BillingUpdateAddItemBillingMethod$outboundSchema = z12.enum(BillingUpdateAddItemBillingMethod);
|
|
2401
|
+
var BillingUpdateAddItemPrice$outboundSchema = z12.pipe(
|
|
2402
|
+
z12.object({
|
|
2403
|
+
amount: z12.optional(z12.number()),
|
|
2404
|
+
tiers: z12.optional(
|
|
2405
|
+
z12.array(z12.lazy(() => BillingUpdateAddItemTier$outboundSchema))
|
|
2406
|
+
),
|
|
2407
|
+
tierBehavior: z12.optional(BillingUpdateAddItemTierBehavior$outboundSchema),
|
|
2408
|
+
interval: BillingUpdateAddItemPriceInterval$outboundSchema,
|
|
2409
|
+
intervalCount: z12._default(z12.number(), 1),
|
|
2410
|
+
billingUnits: z12._default(z12.number(), 1),
|
|
2411
|
+
billingMethod: BillingUpdateAddItemBillingMethod$outboundSchema,
|
|
2077
2412
|
maxPurchase: z12.optional(z12.number())
|
|
2078
2413
|
}),
|
|
2079
2414
|
z12.transform((v) => {
|
|
@@ -2086,12 +2421,12 @@ var BillingUpdatePrice$outboundSchema = z12.pipe(
|
|
|
2086
2421
|
});
|
|
2087
2422
|
})
|
|
2088
2423
|
);
|
|
2089
|
-
var
|
|
2090
|
-
var
|
|
2091
|
-
var
|
|
2424
|
+
var BillingUpdateAddItemOnIncrease$outboundSchema = z12.enum(BillingUpdateAddItemOnIncrease);
|
|
2425
|
+
var BillingUpdateAddItemOnDecrease$outboundSchema = z12.enum(BillingUpdateAddItemOnDecrease);
|
|
2426
|
+
var BillingUpdateAddItemProration$outboundSchema = z12.pipe(
|
|
2092
2427
|
z12.object({
|
|
2093
|
-
onIncrease:
|
|
2094
|
-
onDecrease:
|
|
2428
|
+
onIncrease: BillingUpdateAddItemOnIncrease$outboundSchema,
|
|
2429
|
+
onDecrease: BillingUpdateAddItemOnDecrease$outboundSchema
|
|
2095
2430
|
}),
|
|
2096
2431
|
z12.transform((v) => {
|
|
2097
2432
|
return remap(v, {
|
|
@@ -2100,12 +2435,14 @@ var BillingUpdateProration$outboundSchema = z12.pipe(
|
|
|
2100
2435
|
});
|
|
2101
2436
|
})
|
|
2102
2437
|
);
|
|
2103
|
-
var
|
|
2104
|
-
|
|
2438
|
+
var BillingUpdateAddItemExpiryDurationType$outboundSchema = z12.enum(
|
|
2439
|
+
BillingUpdateAddItemExpiryDurationType
|
|
2440
|
+
);
|
|
2441
|
+
var BillingUpdateAddItemRollover$outboundSchema = z12.pipe(
|
|
2105
2442
|
z12.object({
|
|
2106
2443
|
max: z12.optional(z12.number()),
|
|
2107
2444
|
maxPercentage: z12.optional(z12.number()),
|
|
2108
|
-
expiryDurationType:
|
|
2445
|
+
expiryDurationType: BillingUpdateAddItemExpiryDurationType$outboundSchema,
|
|
2109
2446
|
expiryDurationLength: z12.optional(z12.number())
|
|
2110
2447
|
}),
|
|
2111
2448
|
z12.transform((v) => {
|
|
@@ -2116,15 +2453,19 @@ var BillingUpdateRollover$outboundSchema = z12.pipe(
|
|
|
2116
2453
|
});
|
|
2117
2454
|
})
|
|
2118
2455
|
);
|
|
2119
|
-
var
|
|
2456
|
+
var BillingUpdateAddItemPlanItem$outboundSchema = z12.pipe(
|
|
2120
2457
|
z12.object({
|
|
2121
2458
|
featureId: z12.string(),
|
|
2122
2459
|
included: z12.optional(z12.number()),
|
|
2123
2460
|
unlimited: z12.optional(z12.boolean()),
|
|
2124
|
-
reset: z12.optional(z12.lazy(() =>
|
|
2125
|
-
price: z12.optional(z12.lazy(() =>
|
|
2126
|
-
proration: z12.optional(
|
|
2127
|
-
|
|
2461
|
+
reset: z12.optional(z12.lazy(() => BillingUpdateAddItemReset$outboundSchema)),
|
|
2462
|
+
price: z12.optional(z12.lazy(() => BillingUpdateAddItemPrice$outboundSchema)),
|
|
2463
|
+
proration: z12.optional(
|
|
2464
|
+
z12.lazy(() => BillingUpdateAddItemProration$outboundSchema)
|
|
2465
|
+
),
|
|
2466
|
+
rollover: z12.optional(
|
|
2467
|
+
z12.lazy(() => BillingUpdateAddItemRollover$outboundSchema)
|
|
2468
|
+
)
|
|
2128
2469
|
}),
|
|
2129
2470
|
z12.transform((v) => {
|
|
2130
2471
|
return remap(v, {
|
|
@@ -2132,6 +2473,23 @@ var BillingUpdatePlanItem$outboundSchema = z12.pipe(
|
|
|
2132
2473
|
});
|
|
2133
2474
|
})
|
|
2134
2475
|
);
|
|
2476
|
+
var BillingUpdateRemoveItemBillingMethod$outboundSchema = z12.enum(BillingUpdateRemoveItemBillingMethod);
|
|
2477
|
+
var BillingUpdateRemoveItemInterval$outboundSchema = z12.enum(BillingUpdateRemoveItemInterval);
|
|
2478
|
+
var BillingUpdatePlanItemFilter$outboundSchema = z12.pipe(
|
|
2479
|
+
z12.object({
|
|
2480
|
+
featureId: z12.optional(z12.string()),
|
|
2481
|
+
billingMethod: z12.optional(
|
|
2482
|
+
BillingUpdateRemoveItemBillingMethod$outboundSchema
|
|
2483
|
+
),
|
|
2484
|
+
interval: z12.optional(BillingUpdateRemoveItemInterval$outboundSchema)
|
|
2485
|
+
}),
|
|
2486
|
+
z12.transform((v) => {
|
|
2487
|
+
return remap(v, {
|
|
2488
|
+
featureId: "feature_id",
|
|
2489
|
+
billingMethod: "billing_method"
|
|
2490
|
+
});
|
|
2491
|
+
})
|
|
2492
|
+
);
|
|
2135
2493
|
var BillingUpdateDurationType$outboundSchema = z12.enum(BillingUpdateDurationType);
|
|
2136
2494
|
var BillingUpdateFreeTrialParams$outboundSchema = z12.pipe(
|
|
2137
2495
|
z12.object({
|
|
@@ -2153,7 +2511,13 @@ var BillingUpdateCustomize$outboundSchema = z12.pipe(
|
|
|
2153
2511
|
z12.nullable(z12.lazy(() => BillingUpdateBasePrice$outboundSchema))
|
|
2154
2512
|
),
|
|
2155
2513
|
items: z12.optional(
|
|
2156
|
-
z12.array(z12.lazy(() =>
|
|
2514
|
+
z12.array(z12.lazy(() => BillingUpdateItemPlanItem$outboundSchema))
|
|
2515
|
+
),
|
|
2516
|
+
addItems: z12.optional(
|
|
2517
|
+
z12.array(z12.lazy(() => BillingUpdateAddItemPlanItem$outboundSchema))
|
|
2518
|
+
),
|
|
2519
|
+
removeItems: z12.optional(
|
|
2520
|
+
z12.array(z12.lazy(() => BillingUpdatePlanItemFilter$outboundSchema))
|
|
2157
2521
|
),
|
|
2158
2522
|
freeTrial: z12.optional(
|
|
2159
2523
|
z12.nullable(z12.lazy(() => BillingUpdateFreeTrialParams$outboundSchema))
|
|
@@ -2161,6 +2525,8 @@ var BillingUpdateCustomize$outboundSchema = z12.pipe(
|
|
|
2161
2525
|
}),
|
|
2162
2526
|
z12.transform((v) => {
|
|
2163
2527
|
return remap(v, {
|
|
2528
|
+
addItems: "add_items",
|
|
2529
|
+
removeItems: "remove_items",
|
|
2164
2530
|
freeTrial: "free_trial"
|
|
2165
2531
|
});
|
|
2166
2532
|
})
|
|
@@ -2700,6 +3066,9 @@ var CheckResponseBody2$inboundSchema = z13.pipe(
|
|
|
2700
3066
|
entity_id: z13.optional(z13.nullable(string4())),
|
|
2701
3067
|
required_balance: optional3(number2()),
|
|
2702
3068
|
balance: nullable(Balance$inboundSchema),
|
|
3069
|
+
balances: optional3(
|
|
3070
|
+
z13.record(z13.string(), nullable(Balance$inboundSchema))
|
|
3071
|
+
),
|
|
2703
3072
|
flag: nullable(z13.lazy(() => Flag2$inboundSchema)),
|
|
2704
3073
|
preview: optional3(z13.lazy(() => Preview2$inboundSchema))
|
|
2705
3074
|
}),
|
|
@@ -2939,6 +3308,9 @@ var CheckResponseBody1$inboundSchema = z13.pipe(
|
|
|
2939
3308
|
entity_id: z13.optional(z13.nullable(string4())),
|
|
2940
3309
|
required_balance: optional3(number2()),
|
|
2941
3310
|
balance: nullable(Balance$inboundSchema),
|
|
3311
|
+
balances: optional3(
|
|
3312
|
+
z13.record(z13.string(), nullable(Balance$inboundSchema))
|
|
3313
|
+
),
|
|
2942
3314
|
flag: nullable(z13.lazy(() => Flag1$inboundSchema)),
|
|
2943
3315
|
preview: optional3(z13.lazy(() => Preview1$inboundSchema))
|
|
2944
3316
|
}),
|
|
@@ -3487,6 +3859,10 @@ var CreateEntityThresholdTypeResponse = {
|
|
|
3487
3859
|
Remaining: "remaining",
|
|
3488
3860
|
RemainingPercentage: "remaining_percentage"
|
|
3489
3861
|
};
|
|
3862
|
+
var CreateEntityProcessorType = {
|
|
3863
|
+
Stripe: "stripe",
|
|
3864
|
+
Revenuecat: "revenuecat"
|
|
3865
|
+
};
|
|
3490
3866
|
var CreateEntitySpendLimitRequest$outboundSchema = z17.pipe(
|
|
3491
3867
|
z17.object({
|
|
3492
3868
|
featureId: z17.optional(z17.string()),
|
|
@@ -3731,10 +4107,15 @@ var CreateEntityBillingControlsResponse$inboundSchema = z17.pipe(
|
|
|
3731
4107
|
});
|
|
3732
4108
|
})
|
|
3733
4109
|
);
|
|
4110
|
+
var CreateEntityProcessorType$inboundSchema = inboundSchema(CreateEntityProcessorType);
|
|
3734
4111
|
var CreateEntityInvoice$inboundSchema = z17.pipe(
|
|
3735
4112
|
z17.object({
|
|
3736
4113
|
plan_ids: z17.array(string4()),
|
|
3737
4114
|
stripe_id: string4(),
|
|
4115
|
+
processor_type: z17._default(
|
|
4116
|
+
CreateEntityProcessorType$inboundSchema,
|
|
4117
|
+
"stripe"
|
|
4118
|
+
),
|
|
3738
4119
|
status: string4(),
|
|
3739
4120
|
total: number2(),
|
|
3740
4121
|
currency: string4(),
|
|
@@ -3745,6 +4126,7 @@ var CreateEntityInvoice$inboundSchema = z17.pipe(
|
|
|
3745
4126
|
return remap(v, {
|
|
3746
4127
|
"plan_ids": "planIds",
|
|
3747
4128
|
"stripe_id": "stripeId",
|
|
4129
|
+
"processor_type": "processorType",
|
|
3748
4130
|
"created_at": "createdAt",
|
|
3749
4131
|
"hosted_invoice_url": "hostedInvoiceUrl"
|
|
3750
4132
|
});
|
|
@@ -4800,6 +5182,10 @@ var CustomerFlagsType = {
|
|
|
4800
5182
|
Metered: "metered",
|
|
4801
5183
|
CreditSystem: "credit_system"
|
|
4802
5184
|
};
|
|
5185
|
+
var ProcessorType = {
|
|
5186
|
+
Stripe: "stripe",
|
|
5187
|
+
Revenuecat: "revenuecat"
|
|
5188
|
+
};
|
|
4803
5189
|
var CustomerEntityEnv = {
|
|
4804
5190
|
Sandbox: "sandbox",
|
|
4805
5191
|
Live: "live"
|
|
@@ -5045,10 +5431,35 @@ var CustomerConfig$inboundSchema = z23.pipe(
|
|
|
5045
5431
|
});
|
|
5046
5432
|
})
|
|
5047
5433
|
);
|
|
5434
|
+
var Stripe$inboundSchema = z23.object({
|
|
5435
|
+
id: string4()
|
|
5436
|
+
});
|
|
5437
|
+
var Vercel$inboundSchema = z23.pipe(
|
|
5438
|
+
z23.object({
|
|
5439
|
+
installation_id: string4(),
|
|
5440
|
+
account_id: string4()
|
|
5441
|
+
}),
|
|
5442
|
+
z23.transform((v) => {
|
|
5443
|
+
return remap(v, {
|
|
5444
|
+
"installation_id": "installationId",
|
|
5445
|
+
"account_id": "accountId"
|
|
5446
|
+
});
|
|
5447
|
+
})
|
|
5448
|
+
);
|
|
5449
|
+
var Revenuecat$inboundSchema = z23.object({
|
|
5450
|
+
id: nullable(string4())
|
|
5451
|
+
});
|
|
5452
|
+
var Processors$inboundSchema = z23.object({
|
|
5453
|
+
stripe: optional3(z23.lazy(() => Stripe$inboundSchema)),
|
|
5454
|
+
vercel: optional3(z23.lazy(() => Vercel$inboundSchema)),
|
|
5455
|
+
revenuecat: optional3(z23.lazy(() => Revenuecat$inboundSchema))
|
|
5456
|
+
});
|
|
5457
|
+
var ProcessorType$inboundSchema = inboundSchema(ProcessorType);
|
|
5048
5458
|
var Invoice$inboundSchema = z23.pipe(
|
|
5049
5459
|
z23.object({
|
|
5050
5460
|
plan_ids: z23.array(string4()),
|
|
5051
5461
|
stripe_id: string4(),
|
|
5462
|
+
processor_type: z23._default(ProcessorType$inboundSchema, "stripe"),
|
|
5052
5463
|
status: string4(),
|
|
5053
5464
|
total: number2(),
|
|
5054
5465
|
currency: string4(),
|
|
@@ -5059,6 +5470,7 @@ var Invoice$inboundSchema = z23.pipe(
|
|
|
5059
5470
|
return remap(v, {
|
|
5060
5471
|
"plan_ids": "planIds",
|
|
5061
5472
|
"stripe_id": "stripeId",
|
|
5473
|
+
"processor_type": "processorType",
|
|
5062
5474
|
"created_at": "createdAt",
|
|
5063
5475
|
"hosted_invoice_url": "hostedInvoiceUrl"
|
|
5064
5476
|
});
|
|
@@ -5161,6 +5573,7 @@ var Customer$inboundSchema = z23.pipe(
|
|
|
5161
5573
|
balances: z23.record(z23.string(), Balance$inboundSchema),
|
|
5162
5574
|
flags: z23.record(z23.string(), z23.lazy(() => Flags$inboundSchema)),
|
|
5163
5575
|
config: optional3(z23.lazy(() => CustomerConfig$inboundSchema)),
|
|
5576
|
+
processors: optional3(z23.lazy(() => Processors$inboundSchema)),
|
|
5164
5577
|
invoices: optional3(z23.array(z23.lazy(() => Invoice$inboundSchema))),
|
|
5165
5578
|
entities: optional3(z23.array(z23.lazy(() => Entity$inboundSchema))),
|
|
5166
5579
|
trials_used: optional3(
|
|
@@ -5356,6 +5769,10 @@ var GetCustomerFlagsType = {
|
|
|
5356
5769
|
Metered: "metered",
|
|
5357
5770
|
CreditSystem: "credit_system"
|
|
5358
5771
|
};
|
|
5772
|
+
var GetCustomerProcessorType = {
|
|
5773
|
+
Stripe: "stripe",
|
|
5774
|
+
Revenuecat: "revenuecat"
|
|
5775
|
+
};
|
|
5359
5776
|
var GetCustomerEntityEnv = {
|
|
5360
5777
|
Sandbox: "sandbox",
|
|
5361
5778
|
Live: "live"
|
|
@@ -5612,10 +6029,38 @@ var GetCustomerConfig$inboundSchema = z30.pipe(
|
|
|
5612
6029
|
});
|
|
5613
6030
|
})
|
|
5614
6031
|
);
|
|
6032
|
+
var GetCustomerStripe$inboundSchema = z30.object({
|
|
6033
|
+
id: string4()
|
|
6034
|
+
});
|
|
6035
|
+
var GetCustomerVercel$inboundSchema = z30.pipe(
|
|
6036
|
+
z30.object({
|
|
6037
|
+
installation_id: string4(),
|
|
6038
|
+
account_id: string4()
|
|
6039
|
+
}),
|
|
6040
|
+
z30.transform((v) => {
|
|
6041
|
+
return remap(v, {
|
|
6042
|
+
"installation_id": "installationId",
|
|
6043
|
+
"account_id": "accountId"
|
|
6044
|
+
});
|
|
6045
|
+
})
|
|
6046
|
+
);
|
|
6047
|
+
var GetCustomerRevenuecat$inboundSchema = z30.object({
|
|
6048
|
+
id: nullable(string4())
|
|
6049
|
+
});
|
|
6050
|
+
var GetCustomerProcessors$inboundSchema = z30.object({
|
|
6051
|
+
stripe: optional3(z30.lazy(() => GetCustomerStripe$inboundSchema)),
|
|
6052
|
+
vercel: optional3(z30.lazy(() => GetCustomerVercel$inboundSchema)),
|
|
6053
|
+
revenuecat: optional3(z30.lazy(() => GetCustomerRevenuecat$inboundSchema))
|
|
6054
|
+
});
|
|
6055
|
+
var GetCustomerProcessorType$inboundSchema = inboundSchema(GetCustomerProcessorType);
|
|
5615
6056
|
var GetCustomerInvoice$inboundSchema = z30.pipe(
|
|
5616
6057
|
z30.object({
|
|
5617
6058
|
plan_ids: z30.array(string4()),
|
|
5618
6059
|
stripe_id: string4(),
|
|
6060
|
+
processor_type: z30._default(
|
|
6061
|
+
GetCustomerProcessorType$inboundSchema,
|
|
6062
|
+
"stripe"
|
|
6063
|
+
),
|
|
5619
6064
|
status: string4(),
|
|
5620
6065
|
total: number2(),
|
|
5621
6066
|
currency: string4(),
|
|
@@ -5626,6 +6071,7 @@ var GetCustomerInvoice$inboundSchema = z30.pipe(
|
|
|
5626
6071
|
return remap(v, {
|
|
5627
6072
|
"plan_ids": "planIds",
|
|
5628
6073
|
"stripe_id": "stripeId",
|
|
6074
|
+
"processor_type": "processorType",
|
|
5629
6075
|
"created_at": "createdAt",
|
|
5630
6076
|
"hosted_invoice_url": "hostedInvoiceUrl"
|
|
5631
6077
|
});
|
|
@@ -5728,6 +6174,9 @@ var GetCustomerResponse$inboundSchema = z30.pipe(
|
|
|
5728
6174
|
balances: z30.record(z30.string(), Balance$inboundSchema),
|
|
5729
6175
|
flags: z30.record(z30.string(), z30.lazy(() => GetCustomerFlags$inboundSchema)),
|
|
5730
6176
|
config: optional3(z30.lazy(() => GetCustomerConfig$inboundSchema)),
|
|
6177
|
+
processors: optional3(
|
|
6178
|
+
z30.lazy(() => GetCustomerProcessors$inboundSchema)
|
|
6179
|
+
),
|
|
5731
6180
|
invoices: optional3(
|
|
5732
6181
|
z30.array(z30.lazy(() => GetCustomerInvoice$inboundSchema))
|
|
5733
6182
|
),
|
|
@@ -5778,6 +6227,10 @@ var GetEntityThresholdType = {
|
|
|
5778
6227
|
Remaining: "remaining",
|
|
5779
6228
|
RemainingPercentage: "remaining_percentage"
|
|
5780
6229
|
};
|
|
6230
|
+
var GetEntityProcessorType = {
|
|
6231
|
+
Stripe: "stripe",
|
|
6232
|
+
Revenuecat: "revenuecat"
|
|
6233
|
+
};
|
|
5781
6234
|
var GetEntityParams$outboundSchema = z31.pipe(
|
|
5782
6235
|
z31.object({
|
|
5783
6236
|
customerId: z31.optional(z31.string()),
|
|
@@ -5953,10 +6406,12 @@ var GetEntityBillingControls$inboundSchema = z31.pipe(
|
|
|
5953
6406
|
});
|
|
5954
6407
|
})
|
|
5955
6408
|
);
|
|
6409
|
+
var GetEntityProcessorType$inboundSchema = inboundSchema(GetEntityProcessorType);
|
|
5956
6410
|
var GetEntityInvoice$inboundSchema = z31.pipe(
|
|
5957
6411
|
z31.object({
|
|
5958
6412
|
plan_ids: z31.array(string4()),
|
|
5959
6413
|
stripe_id: string4(),
|
|
6414
|
+
processor_type: z31._default(GetEntityProcessorType$inboundSchema, "stripe"),
|
|
5960
6415
|
status: string4(),
|
|
5961
6416
|
total: number2(),
|
|
5962
6417
|
currency: string4(),
|
|
@@ -5967,6 +6422,7 @@ var GetEntityInvoice$inboundSchema = z31.pipe(
|
|
|
5967
6422
|
return remap(v, {
|
|
5968
6423
|
"plan_ids": "planIds",
|
|
5969
6424
|
"stripe_id": "stripeId",
|
|
6425
|
+
"processor_type": "processorType",
|
|
5970
6426
|
"created_at": "createdAt",
|
|
5971
6427
|
"hosted_invoice_url": "hostedInvoiceUrl"
|
|
5972
6428
|
});
|
|
@@ -6830,6 +7286,31 @@ var ListCustomersConfig$inboundSchema = z35.pipe(
|
|
|
6830
7286
|
});
|
|
6831
7287
|
})
|
|
6832
7288
|
);
|
|
7289
|
+
var ListCustomersStripe$inboundSchema = z35.object({
|
|
7290
|
+
id: string4()
|
|
7291
|
+
});
|
|
7292
|
+
var ListCustomersVercel$inboundSchema = z35.pipe(
|
|
7293
|
+
z35.object({
|
|
7294
|
+
installation_id: string4(),
|
|
7295
|
+
account_id: string4()
|
|
7296
|
+
}),
|
|
7297
|
+
z35.transform((v) => {
|
|
7298
|
+
return remap(v, {
|
|
7299
|
+
"installation_id": "installationId",
|
|
7300
|
+
"account_id": "accountId"
|
|
7301
|
+
});
|
|
7302
|
+
})
|
|
7303
|
+
);
|
|
7304
|
+
var ListCustomersRevenuecat$inboundSchema = z35.object({
|
|
7305
|
+
id: nullable(string4())
|
|
7306
|
+
});
|
|
7307
|
+
var ListCustomersProcessors$inboundSchema = z35.object({
|
|
7308
|
+
stripe: optional3(z35.lazy(() => ListCustomersStripe$inboundSchema)),
|
|
7309
|
+
vercel: optional3(z35.lazy(() => ListCustomersVercel$inboundSchema)),
|
|
7310
|
+
revenuecat: optional3(
|
|
7311
|
+
z35.lazy(() => ListCustomersRevenuecat$inboundSchema)
|
|
7312
|
+
)
|
|
7313
|
+
});
|
|
6833
7314
|
var ListCustomersList$inboundSchema = z35.pipe(
|
|
6834
7315
|
z35.object({
|
|
6835
7316
|
id: nullable(string4()),
|
|
@@ -6848,7 +7329,10 @@ var ListCustomersList$inboundSchema = z35.pipe(
|
|
|
6848
7329
|
purchases: z35.array(z35.lazy(() => ListCustomersPurchase$inboundSchema)),
|
|
6849
7330
|
balances: z35.record(z35.string(), Balance$inboundSchema),
|
|
6850
7331
|
flags: z35.record(z35.string(), z35.lazy(() => ListCustomersFlags$inboundSchema)),
|
|
6851
|
-
config: optional3(z35.lazy(() => ListCustomersConfig$inboundSchema))
|
|
7332
|
+
config: optional3(z35.lazy(() => ListCustomersConfig$inboundSchema)),
|
|
7333
|
+
processors: optional3(
|
|
7334
|
+
z35.lazy(() => ListCustomersProcessors$inboundSchema)
|
|
7335
|
+
)
|
|
6852
7336
|
}),
|
|
6853
7337
|
z35.transform((v) => {
|
|
6854
7338
|
return remap(v, {
|
|
@@ -7740,7 +8224,7 @@ var PreviewAttachPriceInterval = {
|
|
|
7740
8224
|
SemiAnnual: "semi_annual",
|
|
7741
8225
|
Year: "year"
|
|
7742
8226
|
};
|
|
7743
|
-
var
|
|
8227
|
+
var PreviewAttachItemResetInterval = {
|
|
7744
8228
|
OneOff: "one_off",
|
|
7745
8229
|
Minute: "minute",
|
|
7746
8230
|
Hour: "hour",
|
|
@@ -7751,7 +8235,7 @@ var PreviewAttachResetInterval = {
|
|
|
7751
8235
|
SemiAnnual: "semi_annual",
|
|
7752
8236
|
Year: "year"
|
|
7753
8237
|
};
|
|
7754
|
-
var
|
|
8238
|
+
var PreviewAttachItemTierBehavior = {
|
|
7755
8239
|
Graduated: "graduated",
|
|
7756
8240
|
Volume: "volume"
|
|
7757
8241
|
};
|
|
@@ -7763,27 +8247,83 @@ var PreviewAttachItemPriceInterval = {
|
|
|
7763
8247
|
SemiAnnual: "semi_annual",
|
|
7764
8248
|
Year: "year"
|
|
7765
8249
|
};
|
|
7766
|
-
var
|
|
8250
|
+
var PreviewAttachItemBillingMethod = {
|
|
8251
|
+
Prepaid: "prepaid",
|
|
8252
|
+
UsageBased: "usage_based"
|
|
8253
|
+
};
|
|
8254
|
+
var PreviewAttachItemOnIncrease = {
|
|
8255
|
+
BillImmediately: "bill_immediately",
|
|
8256
|
+
ProrateImmediately: "prorate_immediately",
|
|
8257
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
8258
|
+
BillNextCycle: "bill_next_cycle"
|
|
8259
|
+
};
|
|
8260
|
+
var PreviewAttachItemOnDecrease = {
|
|
8261
|
+
Prorate: "prorate",
|
|
8262
|
+
ProrateImmediately: "prorate_immediately",
|
|
8263
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
8264
|
+
None: "none",
|
|
8265
|
+
NoProrations: "no_prorations"
|
|
8266
|
+
};
|
|
8267
|
+
var PreviewAttachItemExpiryDurationType = {
|
|
8268
|
+
Month: "month",
|
|
8269
|
+
Forever: "forever"
|
|
8270
|
+
};
|
|
8271
|
+
var PreviewAttachAddItemResetInterval = {
|
|
8272
|
+
OneOff: "one_off",
|
|
8273
|
+
Minute: "minute",
|
|
8274
|
+
Hour: "hour",
|
|
8275
|
+
Day: "day",
|
|
8276
|
+
Week: "week",
|
|
8277
|
+
Month: "month",
|
|
8278
|
+
Quarter: "quarter",
|
|
8279
|
+
SemiAnnual: "semi_annual",
|
|
8280
|
+
Year: "year"
|
|
8281
|
+
};
|
|
8282
|
+
var PreviewAttachAddItemTierBehavior = {
|
|
8283
|
+
Graduated: "graduated",
|
|
8284
|
+
Volume: "volume"
|
|
8285
|
+
};
|
|
8286
|
+
var PreviewAttachAddItemPriceInterval = {
|
|
8287
|
+
OneOff: "one_off",
|
|
8288
|
+
Week: "week",
|
|
8289
|
+
Month: "month",
|
|
8290
|
+
Quarter: "quarter",
|
|
8291
|
+
SemiAnnual: "semi_annual",
|
|
8292
|
+
Year: "year"
|
|
8293
|
+
};
|
|
8294
|
+
var PreviewAttachAddItemBillingMethod = {
|
|
7767
8295
|
Prepaid: "prepaid",
|
|
7768
8296
|
UsageBased: "usage_based"
|
|
7769
8297
|
};
|
|
7770
|
-
var
|
|
8298
|
+
var PreviewAttachAddItemOnIncrease = {
|
|
7771
8299
|
BillImmediately: "bill_immediately",
|
|
7772
8300
|
ProrateImmediately: "prorate_immediately",
|
|
7773
8301
|
ProrateNextCycle: "prorate_next_cycle",
|
|
7774
8302
|
BillNextCycle: "bill_next_cycle"
|
|
7775
8303
|
};
|
|
7776
|
-
var
|
|
8304
|
+
var PreviewAttachAddItemOnDecrease = {
|
|
7777
8305
|
Prorate: "prorate",
|
|
7778
8306
|
ProrateImmediately: "prorate_immediately",
|
|
7779
8307
|
ProrateNextCycle: "prorate_next_cycle",
|
|
7780
8308
|
None: "none",
|
|
7781
8309
|
NoProrations: "no_prorations"
|
|
7782
8310
|
};
|
|
7783
|
-
var
|
|
8311
|
+
var PreviewAttachAddItemExpiryDurationType = {
|
|
7784
8312
|
Month: "month",
|
|
7785
8313
|
Forever: "forever"
|
|
7786
8314
|
};
|
|
8315
|
+
var PreviewAttachRemoveItemBillingMethod = {
|
|
8316
|
+
Prepaid: "prepaid",
|
|
8317
|
+
UsageBased: "usage_based"
|
|
8318
|
+
};
|
|
8319
|
+
var PreviewAttachRemoveItemInterval = {
|
|
8320
|
+
OneOff: "one_off",
|
|
8321
|
+
Week: "week",
|
|
8322
|
+
Month: "month",
|
|
8323
|
+
Quarter: "quarter",
|
|
8324
|
+
SemiAnnual: "semi_annual",
|
|
8325
|
+
Year: "year"
|
|
8326
|
+
};
|
|
7787
8327
|
var PreviewAttachDurationType = {
|
|
7788
8328
|
Day: "day",
|
|
7789
8329
|
Month: "month",
|
|
@@ -7835,10 +8375,10 @@ var PreviewAttachBasePrice$outboundSchema = z41.pipe(
|
|
|
7835
8375
|
});
|
|
7836
8376
|
})
|
|
7837
8377
|
);
|
|
7838
|
-
var
|
|
7839
|
-
var
|
|
8378
|
+
var PreviewAttachItemResetInterval$outboundSchema = z41.enum(PreviewAttachItemResetInterval);
|
|
8379
|
+
var PreviewAttachItemReset$outboundSchema = z41.pipe(
|
|
7840
8380
|
z41.object({
|
|
7841
|
-
interval:
|
|
8381
|
+
interval: PreviewAttachItemResetInterval$outboundSchema,
|
|
7842
8382
|
intervalCount: z41.optional(z41.number())
|
|
7843
8383
|
}),
|
|
7844
8384
|
z41.transform((v) => {
|
|
@@ -7847,8 +8387,8 @@ var PreviewAttachReset$outboundSchema = z41.pipe(
|
|
|
7847
8387
|
});
|
|
7848
8388
|
})
|
|
7849
8389
|
);
|
|
7850
|
-
var
|
|
7851
|
-
var
|
|
8390
|
+
var PreviewAttachItemTo$outboundSchema = smartUnion([z41.number(), z41.string()]);
|
|
8391
|
+
var PreviewAttachItemTier$outboundSchema = z41.pipe(
|
|
7852
8392
|
z41.object({
|
|
7853
8393
|
to: smartUnion([z41.number(), z41.string()]),
|
|
7854
8394
|
amount: z41.optional(z41.number()),
|
|
@@ -7860,18 +8400,20 @@ var PreviewAttachTier$outboundSchema = z41.pipe(
|
|
|
7860
8400
|
});
|
|
7861
8401
|
})
|
|
7862
8402
|
);
|
|
7863
|
-
var
|
|
8403
|
+
var PreviewAttachItemTierBehavior$outboundSchema = z41.enum(PreviewAttachItemTierBehavior);
|
|
7864
8404
|
var PreviewAttachItemPriceInterval$outboundSchema = z41.enum(PreviewAttachItemPriceInterval);
|
|
7865
|
-
var
|
|
7866
|
-
var
|
|
8405
|
+
var PreviewAttachItemBillingMethod$outboundSchema = z41.enum(PreviewAttachItemBillingMethod);
|
|
8406
|
+
var PreviewAttachItemPrice$outboundSchema = z41.pipe(
|
|
7867
8407
|
z41.object({
|
|
7868
8408
|
amount: z41.optional(z41.number()),
|
|
7869
|
-
tiers: z41.optional(
|
|
7870
|
-
|
|
8409
|
+
tiers: z41.optional(
|
|
8410
|
+
z41.array(z41.lazy(() => PreviewAttachItemTier$outboundSchema))
|
|
8411
|
+
),
|
|
8412
|
+
tierBehavior: z41.optional(PreviewAttachItemTierBehavior$outboundSchema),
|
|
7871
8413
|
interval: PreviewAttachItemPriceInterval$outboundSchema,
|
|
7872
8414
|
intervalCount: z41._default(z41.number(), 1),
|
|
7873
8415
|
billingUnits: z41._default(z41.number(), 1),
|
|
7874
|
-
billingMethod:
|
|
8416
|
+
billingMethod: PreviewAttachItemBillingMethod$outboundSchema,
|
|
7875
8417
|
maxPurchase: z41.optional(z41.number())
|
|
7876
8418
|
}),
|
|
7877
8419
|
z41.transform((v) => {
|
|
@@ -7884,12 +8426,12 @@ var PreviewAttachPrice$outboundSchema = z41.pipe(
|
|
|
7884
8426
|
});
|
|
7885
8427
|
})
|
|
7886
8428
|
);
|
|
7887
|
-
var
|
|
7888
|
-
var
|
|
7889
|
-
var
|
|
8429
|
+
var PreviewAttachItemOnIncrease$outboundSchema = z41.enum(PreviewAttachItemOnIncrease);
|
|
8430
|
+
var PreviewAttachItemOnDecrease$outboundSchema = z41.enum(PreviewAttachItemOnDecrease);
|
|
8431
|
+
var PreviewAttachItemProration$outboundSchema = z41.pipe(
|
|
7890
8432
|
z41.object({
|
|
7891
|
-
onIncrease:
|
|
7892
|
-
onDecrease:
|
|
8433
|
+
onIncrease: PreviewAttachItemOnIncrease$outboundSchema,
|
|
8434
|
+
onDecrease: PreviewAttachItemOnDecrease$outboundSchema
|
|
7893
8435
|
}),
|
|
7894
8436
|
z41.transform((v) => {
|
|
7895
8437
|
return remap(v, {
|
|
@@ -7898,12 +8440,12 @@ var PreviewAttachProration$outboundSchema = z41.pipe(
|
|
|
7898
8440
|
});
|
|
7899
8441
|
})
|
|
7900
8442
|
);
|
|
7901
|
-
var
|
|
7902
|
-
var
|
|
8443
|
+
var PreviewAttachItemExpiryDurationType$outboundSchema = z41.enum(PreviewAttachItemExpiryDurationType);
|
|
8444
|
+
var PreviewAttachItemRollover$outboundSchema = z41.pipe(
|
|
7903
8445
|
z41.object({
|
|
7904
8446
|
max: z41.optional(z41.number()),
|
|
7905
8447
|
maxPercentage: z41.optional(z41.number()),
|
|
7906
|
-
expiryDurationType:
|
|
8448
|
+
expiryDurationType: PreviewAttachItemExpiryDurationType$outboundSchema,
|
|
7907
8449
|
expiryDurationLength: z41.optional(z41.number())
|
|
7908
8450
|
}),
|
|
7909
8451
|
z41.transform((v) => {
|
|
@@ -7914,15 +8456,19 @@ var PreviewAttachRollover$outboundSchema = z41.pipe(
|
|
|
7914
8456
|
});
|
|
7915
8457
|
})
|
|
7916
8458
|
);
|
|
7917
|
-
var
|
|
8459
|
+
var PreviewAttachItemPlanItem$outboundSchema = z41.pipe(
|
|
7918
8460
|
z41.object({
|
|
7919
8461
|
featureId: z41.string(),
|
|
7920
8462
|
included: z41.optional(z41.number()),
|
|
7921
8463
|
unlimited: z41.optional(z41.boolean()),
|
|
7922
|
-
reset: z41.optional(z41.lazy(() =>
|
|
7923
|
-
price: z41.optional(z41.lazy(() =>
|
|
7924
|
-
proration: z41.optional(
|
|
7925
|
-
|
|
8464
|
+
reset: z41.optional(z41.lazy(() => PreviewAttachItemReset$outboundSchema)),
|
|
8465
|
+
price: z41.optional(z41.lazy(() => PreviewAttachItemPrice$outboundSchema)),
|
|
8466
|
+
proration: z41.optional(
|
|
8467
|
+
z41.lazy(() => PreviewAttachItemProration$outboundSchema)
|
|
8468
|
+
),
|
|
8469
|
+
rollover: z41.optional(
|
|
8470
|
+
z41.lazy(() => PreviewAttachItemRollover$outboundSchema)
|
|
8471
|
+
)
|
|
7926
8472
|
}),
|
|
7927
8473
|
z41.transform((v) => {
|
|
7928
8474
|
return remap(v, {
|
|
@@ -7930,6 +8476,126 @@ var PreviewAttachPlanItem$outboundSchema = z41.pipe(
|
|
|
7930
8476
|
});
|
|
7931
8477
|
})
|
|
7932
8478
|
);
|
|
8479
|
+
var PreviewAttachAddItemResetInterval$outboundSchema = z41.enum(PreviewAttachAddItemResetInterval);
|
|
8480
|
+
var PreviewAttachAddItemReset$outboundSchema = z41.pipe(
|
|
8481
|
+
z41.object({
|
|
8482
|
+
interval: PreviewAttachAddItemResetInterval$outboundSchema,
|
|
8483
|
+
intervalCount: z41.optional(z41.number())
|
|
8484
|
+
}),
|
|
8485
|
+
z41.transform((v) => {
|
|
8486
|
+
return remap(v, {
|
|
8487
|
+
intervalCount: "interval_count"
|
|
8488
|
+
});
|
|
8489
|
+
})
|
|
8490
|
+
);
|
|
8491
|
+
var PreviewAttachAddItemTo$outboundSchema = smartUnion([z41.number(), z41.string()]);
|
|
8492
|
+
var PreviewAttachAddItemTier$outboundSchema = z41.pipe(
|
|
8493
|
+
z41.object({
|
|
8494
|
+
to: smartUnion([z41.number(), z41.string()]),
|
|
8495
|
+
amount: z41.optional(z41.number()),
|
|
8496
|
+
flatAmount: z41.optional(z41.number())
|
|
8497
|
+
}),
|
|
8498
|
+
z41.transform((v) => {
|
|
8499
|
+
return remap(v, {
|
|
8500
|
+
flatAmount: "flat_amount"
|
|
8501
|
+
});
|
|
8502
|
+
})
|
|
8503
|
+
);
|
|
8504
|
+
var PreviewAttachAddItemTierBehavior$outboundSchema = z41.enum(PreviewAttachAddItemTierBehavior);
|
|
8505
|
+
var PreviewAttachAddItemPriceInterval$outboundSchema = z41.enum(PreviewAttachAddItemPriceInterval);
|
|
8506
|
+
var PreviewAttachAddItemBillingMethod$outboundSchema = z41.enum(PreviewAttachAddItemBillingMethod);
|
|
8507
|
+
var PreviewAttachAddItemPrice$outboundSchema = z41.pipe(
|
|
8508
|
+
z41.object({
|
|
8509
|
+
amount: z41.optional(z41.number()),
|
|
8510
|
+
tiers: z41.optional(
|
|
8511
|
+
z41.array(z41.lazy(() => PreviewAttachAddItemTier$outboundSchema))
|
|
8512
|
+
),
|
|
8513
|
+
tierBehavior: z41.optional(PreviewAttachAddItemTierBehavior$outboundSchema),
|
|
8514
|
+
interval: PreviewAttachAddItemPriceInterval$outboundSchema,
|
|
8515
|
+
intervalCount: z41._default(z41.number(), 1),
|
|
8516
|
+
billingUnits: z41._default(z41.number(), 1),
|
|
8517
|
+
billingMethod: PreviewAttachAddItemBillingMethod$outboundSchema,
|
|
8518
|
+
maxPurchase: z41.optional(z41.number())
|
|
8519
|
+
}),
|
|
8520
|
+
z41.transform((v) => {
|
|
8521
|
+
return remap(v, {
|
|
8522
|
+
tierBehavior: "tier_behavior",
|
|
8523
|
+
intervalCount: "interval_count",
|
|
8524
|
+
billingUnits: "billing_units",
|
|
8525
|
+
billingMethod: "billing_method",
|
|
8526
|
+
maxPurchase: "max_purchase"
|
|
8527
|
+
});
|
|
8528
|
+
})
|
|
8529
|
+
);
|
|
8530
|
+
var PreviewAttachAddItemOnIncrease$outboundSchema = z41.enum(PreviewAttachAddItemOnIncrease);
|
|
8531
|
+
var PreviewAttachAddItemOnDecrease$outboundSchema = z41.enum(PreviewAttachAddItemOnDecrease);
|
|
8532
|
+
var PreviewAttachAddItemProration$outboundSchema = z41.pipe(
|
|
8533
|
+
z41.object({
|
|
8534
|
+
onIncrease: PreviewAttachAddItemOnIncrease$outboundSchema,
|
|
8535
|
+
onDecrease: PreviewAttachAddItemOnDecrease$outboundSchema
|
|
8536
|
+
}),
|
|
8537
|
+
z41.transform((v) => {
|
|
8538
|
+
return remap(v, {
|
|
8539
|
+
onIncrease: "on_increase",
|
|
8540
|
+
onDecrease: "on_decrease"
|
|
8541
|
+
});
|
|
8542
|
+
})
|
|
8543
|
+
);
|
|
8544
|
+
var PreviewAttachAddItemExpiryDurationType$outboundSchema = z41.enum(
|
|
8545
|
+
PreviewAttachAddItemExpiryDurationType
|
|
8546
|
+
);
|
|
8547
|
+
var PreviewAttachAddItemRollover$outboundSchema = z41.pipe(
|
|
8548
|
+
z41.object({
|
|
8549
|
+
max: z41.optional(z41.number()),
|
|
8550
|
+
maxPercentage: z41.optional(z41.number()),
|
|
8551
|
+
expiryDurationType: PreviewAttachAddItemExpiryDurationType$outboundSchema,
|
|
8552
|
+
expiryDurationLength: z41.optional(z41.number())
|
|
8553
|
+
}),
|
|
8554
|
+
z41.transform((v) => {
|
|
8555
|
+
return remap(v, {
|
|
8556
|
+
maxPercentage: "max_percentage",
|
|
8557
|
+
expiryDurationType: "expiry_duration_type",
|
|
8558
|
+
expiryDurationLength: "expiry_duration_length"
|
|
8559
|
+
});
|
|
8560
|
+
})
|
|
8561
|
+
);
|
|
8562
|
+
var PreviewAttachAddItemPlanItem$outboundSchema = z41.pipe(
|
|
8563
|
+
z41.object({
|
|
8564
|
+
featureId: z41.string(),
|
|
8565
|
+
included: z41.optional(z41.number()),
|
|
8566
|
+
unlimited: z41.optional(z41.boolean()),
|
|
8567
|
+
reset: z41.optional(z41.lazy(() => PreviewAttachAddItemReset$outboundSchema)),
|
|
8568
|
+
price: z41.optional(z41.lazy(() => PreviewAttachAddItemPrice$outboundSchema)),
|
|
8569
|
+
proration: z41.optional(
|
|
8570
|
+
z41.lazy(() => PreviewAttachAddItemProration$outboundSchema)
|
|
8571
|
+
),
|
|
8572
|
+
rollover: z41.optional(
|
|
8573
|
+
z41.lazy(() => PreviewAttachAddItemRollover$outboundSchema)
|
|
8574
|
+
)
|
|
8575
|
+
}),
|
|
8576
|
+
z41.transform((v) => {
|
|
8577
|
+
return remap(v, {
|
|
8578
|
+
featureId: "feature_id"
|
|
8579
|
+
});
|
|
8580
|
+
})
|
|
8581
|
+
);
|
|
8582
|
+
var PreviewAttachRemoveItemBillingMethod$outboundSchema = z41.enum(PreviewAttachRemoveItemBillingMethod);
|
|
8583
|
+
var PreviewAttachRemoveItemInterval$outboundSchema = z41.enum(PreviewAttachRemoveItemInterval);
|
|
8584
|
+
var PreviewAttachPlanItemFilter$outboundSchema = z41.pipe(
|
|
8585
|
+
z41.object({
|
|
8586
|
+
featureId: z41.optional(z41.string()),
|
|
8587
|
+
billingMethod: z41.optional(
|
|
8588
|
+
PreviewAttachRemoveItemBillingMethod$outboundSchema
|
|
8589
|
+
),
|
|
8590
|
+
interval: z41.optional(PreviewAttachRemoveItemInterval$outboundSchema)
|
|
8591
|
+
}),
|
|
8592
|
+
z41.transform((v) => {
|
|
8593
|
+
return remap(v, {
|
|
8594
|
+
featureId: "feature_id",
|
|
8595
|
+
billingMethod: "billing_method"
|
|
8596
|
+
});
|
|
8597
|
+
})
|
|
8598
|
+
);
|
|
7933
8599
|
var PreviewAttachDurationType$outboundSchema = z41.enum(PreviewAttachDurationType);
|
|
7934
8600
|
var PreviewAttachFreeTrialParams$outboundSchema = z41.pipe(
|
|
7935
8601
|
z41.object({
|
|
@@ -7951,7 +8617,13 @@ var PreviewAttachCustomize$outboundSchema = z41.pipe(
|
|
|
7951
8617
|
z41.nullable(z41.lazy(() => PreviewAttachBasePrice$outboundSchema))
|
|
7952
8618
|
),
|
|
7953
8619
|
items: z41.optional(
|
|
7954
|
-
z41.array(z41.lazy(() =>
|
|
8620
|
+
z41.array(z41.lazy(() => PreviewAttachItemPlanItem$outboundSchema))
|
|
8621
|
+
),
|
|
8622
|
+
addItems: z41.optional(
|
|
8623
|
+
z41.array(z41.lazy(() => PreviewAttachAddItemPlanItem$outboundSchema))
|
|
8624
|
+
),
|
|
8625
|
+
removeItems: z41.optional(
|
|
8626
|
+
z41.array(z41.lazy(() => PreviewAttachPlanItemFilter$outboundSchema))
|
|
7955
8627
|
),
|
|
7956
8628
|
freeTrial: z41.optional(
|
|
7957
8629
|
z41.nullable(z41.lazy(() => PreviewAttachFreeTrialParams$outboundSchema))
|
|
@@ -7959,6 +8631,8 @@ var PreviewAttachCustomize$outboundSchema = z41.pipe(
|
|
|
7959
8631
|
}),
|
|
7960
8632
|
z41.transform((v) => {
|
|
7961
8633
|
return remap(v, {
|
|
8634
|
+
addItems: "add_items",
|
|
8635
|
+
removeItems: "remove_items",
|
|
7962
8636
|
freeTrial: "free_trial"
|
|
7963
8637
|
});
|
|
7964
8638
|
})
|
|
@@ -8045,6 +8719,7 @@ var PreviewAttachParams$outboundSchema = z41.pipe(
|
|
|
8045
8719
|
billingCycleAnchor: z41.optional(z41.literal("now")),
|
|
8046
8720
|
planSchedule: z41.optional(PreviewAttachPlanSchedule$outboundSchema),
|
|
8047
8721
|
startsAt: z41.optional(z41.int()),
|
|
8722
|
+
endsAt: z41.optional(z41.int()),
|
|
8048
8723
|
checkoutSessionParams: z41.optional(z41.record(z41.string(), z41.any())),
|
|
8049
8724
|
customLineItems: z41.optional(
|
|
8050
8725
|
z41.array(z41.lazy(() => PreviewAttachCustomLineItem$outboundSchema))
|
|
@@ -8075,6 +8750,7 @@ var PreviewAttachParams$outboundSchema = z41.pipe(
|
|
|
8075
8750
|
billingCycleAnchor: "billing_cycle_anchor",
|
|
8076
8751
|
planSchedule: "plan_schedule",
|
|
8077
8752
|
startsAt: "starts_at",
|
|
8753
|
+
endsAt: "ends_at",
|
|
8078
8754
|
checkoutSessionParams: "checkout_session_params",
|
|
8079
8755
|
customLineItems: "custom_line_items",
|
|
8080
8756
|
processorSubscriptionId: "processor_subscription_id",
|
|
@@ -8980,11 +9656,55 @@ var PreviewUpdatePriceInterval = {
|
|
|
8980
9656
|
OneOff: "one_off",
|
|
8981
9657
|
Week: "week",
|
|
8982
9658
|
Month: "month",
|
|
8983
|
-
Quarter: "quarter",
|
|
8984
|
-
SemiAnnual: "semi_annual",
|
|
8985
|
-
Year: "year"
|
|
9659
|
+
Quarter: "quarter",
|
|
9660
|
+
SemiAnnual: "semi_annual",
|
|
9661
|
+
Year: "year"
|
|
9662
|
+
};
|
|
9663
|
+
var PreviewUpdateItemResetInterval = {
|
|
9664
|
+
OneOff: "one_off",
|
|
9665
|
+
Minute: "minute",
|
|
9666
|
+
Hour: "hour",
|
|
9667
|
+
Day: "day",
|
|
9668
|
+
Week: "week",
|
|
9669
|
+
Month: "month",
|
|
9670
|
+
Quarter: "quarter",
|
|
9671
|
+
SemiAnnual: "semi_annual",
|
|
9672
|
+
Year: "year"
|
|
9673
|
+
};
|
|
9674
|
+
var PreviewUpdateItemTierBehavior = {
|
|
9675
|
+
Graduated: "graduated",
|
|
9676
|
+
Volume: "volume"
|
|
9677
|
+
};
|
|
9678
|
+
var PreviewUpdateItemPriceInterval = {
|
|
9679
|
+
OneOff: "one_off",
|
|
9680
|
+
Week: "week",
|
|
9681
|
+
Month: "month",
|
|
9682
|
+
Quarter: "quarter",
|
|
9683
|
+
SemiAnnual: "semi_annual",
|
|
9684
|
+
Year: "year"
|
|
9685
|
+
};
|
|
9686
|
+
var PreviewUpdateItemBillingMethod = {
|
|
9687
|
+
Prepaid: "prepaid",
|
|
9688
|
+
UsageBased: "usage_based"
|
|
9689
|
+
};
|
|
9690
|
+
var PreviewUpdateItemOnIncrease = {
|
|
9691
|
+
BillImmediately: "bill_immediately",
|
|
9692
|
+
ProrateImmediately: "prorate_immediately",
|
|
9693
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
9694
|
+
BillNextCycle: "bill_next_cycle"
|
|
9695
|
+
};
|
|
9696
|
+
var PreviewUpdateItemOnDecrease = {
|
|
9697
|
+
Prorate: "prorate",
|
|
9698
|
+
ProrateImmediately: "prorate_immediately",
|
|
9699
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
9700
|
+
None: "none",
|
|
9701
|
+
NoProrations: "no_prorations"
|
|
9702
|
+
};
|
|
9703
|
+
var PreviewUpdateItemExpiryDurationType = {
|
|
9704
|
+
Month: "month",
|
|
9705
|
+
Forever: "forever"
|
|
8986
9706
|
};
|
|
8987
|
-
var
|
|
9707
|
+
var PreviewUpdateAddItemResetInterval = {
|
|
8988
9708
|
OneOff: "one_off",
|
|
8989
9709
|
Minute: "minute",
|
|
8990
9710
|
Hour: "hour",
|
|
@@ -8995,11 +9715,11 @@ var PreviewUpdateResetInterval = {
|
|
|
8995
9715
|
SemiAnnual: "semi_annual",
|
|
8996
9716
|
Year: "year"
|
|
8997
9717
|
};
|
|
8998
|
-
var
|
|
9718
|
+
var PreviewUpdateAddItemTierBehavior = {
|
|
8999
9719
|
Graduated: "graduated",
|
|
9000
9720
|
Volume: "volume"
|
|
9001
9721
|
};
|
|
9002
|
-
var
|
|
9722
|
+
var PreviewUpdateAddItemPriceInterval = {
|
|
9003
9723
|
OneOff: "one_off",
|
|
9004
9724
|
Week: "week",
|
|
9005
9725
|
Month: "month",
|
|
@@ -9007,27 +9727,39 @@ var PreviewUpdateItemPriceInterval = {
|
|
|
9007
9727
|
SemiAnnual: "semi_annual",
|
|
9008
9728
|
Year: "year"
|
|
9009
9729
|
};
|
|
9010
|
-
var
|
|
9730
|
+
var PreviewUpdateAddItemBillingMethod = {
|
|
9011
9731
|
Prepaid: "prepaid",
|
|
9012
9732
|
UsageBased: "usage_based"
|
|
9013
9733
|
};
|
|
9014
|
-
var
|
|
9734
|
+
var PreviewUpdateAddItemOnIncrease = {
|
|
9015
9735
|
BillImmediately: "bill_immediately",
|
|
9016
9736
|
ProrateImmediately: "prorate_immediately",
|
|
9017
9737
|
ProrateNextCycle: "prorate_next_cycle",
|
|
9018
9738
|
BillNextCycle: "bill_next_cycle"
|
|
9019
9739
|
};
|
|
9020
|
-
var
|
|
9740
|
+
var PreviewUpdateAddItemOnDecrease = {
|
|
9021
9741
|
Prorate: "prorate",
|
|
9022
9742
|
ProrateImmediately: "prorate_immediately",
|
|
9023
9743
|
ProrateNextCycle: "prorate_next_cycle",
|
|
9024
9744
|
None: "none",
|
|
9025
9745
|
NoProrations: "no_prorations"
|
|
9026
9746
|
};
|
|
9027
|
-
var
|
|
9747
|
+
var PreviewUpdateAddItemExpiryDurationType = {
|
|
9028
9748
|
Month: "month",
|
|
9029
9749
|
Forever: "forever"
|
|
9030
9750
|
};
|
|
9751
|
+
var PreviewUpdateRemoveItemBillingMethod = {
|
|
9752
|
+
Prepaid: "prepaid",
|
|
9753
|
+
UsageBased: "usage_based"
|
|
9754
|
+
};
|
|
9755
|
+
var PreviewUpdateRemoveItemInterval = {
|
|
9756
|
+
OneOff: "one_off",
|
|
9757
|
+
Week: "week",
|
|
9758
|
+
Month: "month",
|
|
9759
|
+
Quarter: "quarter",
|
|
9760
|
+
SemiAnnual: "semi_annual",
|
|
9761
|
+
Year: "year"
|
|
9762
|
+
};
|
|
9031
9763
|
var PreviewUpdateDurationType = {
|
|
9032
9764
|
Day: "day",
|
|
9033
9765
|
Month: "month",
|
|
@@ -9084,10 +9816,10 @@ var PreviewUpdateBasePrice$outboundSchema = z43.pipe(
|
|
|
9084
9816
|
});
|
|
9085
9817
|
})
|
|
9086
9818
|
);
|
|
9087
|
-
var
|
|
9088
|
-
var
|
|
9819
|
+
var PreviewUpdateItemResetInterval$outboundSchema = z43.enum(PreviewUpdateItemResetInterval);
|
|
9820
|
+
var PreviewUpdateItemReset$outboundSchema = z43.pipe(
|
|
9089
9821
|
z43.object({
|
|
9090
|
-
interval:
|
|
9822
|
+
interval: PreviewUpdateItemResetInterval$outboundSchema,
|
|
9091
9823
|
intervalCount: z43.optional(z43.number())
|
|
9092
9824
|
}),
|
|
9093
9825
|
z43.transform((v) => {
|
|
@@ -9096,8 +9828,8 @@ var PreviewUpdateReset$outboundSchema = z43.pipe(
|
|
|
9096
9828
|
});
|
|
9097
9829
|
})
|
|
9098
9830
|
);
|
|
9099
|
-
var
|
|
9100
|
-
var
|
|
9831
|
+
var PreviewUpdateItemTo$outboundSchema = smartUnion([z43.number(), z43.string()]);
|
|
9832
|
+
var PreviewUpdateItemTier$outboundSchema = z43.pipe(
|
|
9101
9833
|
z43.object({
|
|
9102
9834
|
to: smartUnion([z43.number(), z43.string()]),
|
|
9103
9835
|
amount: z43.optional(z43.number()),
|
|
@@ -9109,18 +9841,121 @@ var PreviewUpdateTier$outboundSchema = z43.pipe(
|
|
|
9109
9841
|
});
|
|
9110
9842
|
})
|
|
9111
9843
|
);
|
|
9112
|
-
var
|
|
9844
|
+
var PreviewUpdateItemTierBehavior$outboundSchema = z43.enum(PreviewUpdateItemTierBehavior);
|
|
9113
9845
|
var PreviewUpdateItemPriceInterval$outboundSchema = z43.enum(PreviewUpdateItemPriceInterval);
|
|
9114
|
-
var
|
|
9115
|
-
var
|
|
9846
|
+
var PreviewUpdateItemBillingMethod$outboundSchema = z43.enum(PreviewUpdateItemBillingMethod);
|
|
9847
|
+
var PreviewUpdateItemPrice$outboundSchema = z43.pipe(
|
|
9116
9848
|
z43.object({
|
|
9117
9849
|
amount: z43.optional(z43.number()),
|
|
9118
|
-
tiers: z43.optional(
|
|
9119
|
-
|
|
9850
|
+
tiers: z43.optional(
|
|
9851
|
+
z43.array(z43.lazy(() => PreviewUpdateItemTier$outboundSchema))
|
|
9852
|
+
),
|
|
9853
|
+
tierBehavior: z43.optional(PreviewUpdateItemTierBehavior$outboundSchema),
|
|
9120
9854
|
interval: PreviewUpdateItemPriceInterval$outboundSchema,
|
|
9121
9855
|
intervalCount: z43._default(z43.number(), 1),
|
|
9122
9856
|
billingUnits: z43._default(z43.number(), 1),
|
|
9123
|
-
billingMethod:
|
|
9857
|
+
billingMethod: PreviewUpdateItemBillingMethod$outboundSchema,
|
|
9858
|
+
maxPurchase: z43.optional(z43.number())
|
|
9859
|
+
}),
|
|
9860
|
+
z43.transform((v) => {
|
|
9861
|
+
return remap(v, {
|
|
9862
|
+
tierBehavior: "tier_behavior",
|
|
9863
|
+
intervalCount: "interval_count",
|
|
9864
|
+
billingUnits: "billing_units",
|
|
9865
|
+
billingMethod: "billing_method",
|
|
9866
|
+
maxPurchase: "max_purchase"
|
|
9867
|
+
});
|
|
9868
|
+
})
|
|
9869
|
+
);
|
|
9870
|
+
var PreviewUpdateItemOnIncrease$outboundSchema = z43.enum(PreviewUpdateItemOnIncrease);
|
|
9871
|
+
var PreviewUpdateItemOnDecrease$outboundSchema = z43.enum(PreviewUpdateItemOnDecrease);
|
|
9872
|
+
var PreviewUpdateItemProration$outboundSchema = z43.pipe(
|
|
9873
|
+
z43.object({
|
|
9874
|
+
onIncrease: PreviewUpdateItemOnIncrease$outboundSchema,
|
|
9875
|
+
onDecrease: PreviewUpdateItemOnDecrease$outboundSchema
|
|
9876
|
+
}),
|
|
9877
|
+
z43.transform((v) => {
|
|
9878
|
+
return remap(v, {
|
|
9879
|
+
onIncrease: "on_increase",
|
|
9880
|
+
onDecrease: "on_decrease"
|
|
9881
|
+
});
|
|
9882
|
+
})
|
|
9883
|
+
);
|
|
9884
|
+
var PreviewUpdateItemExpiryDurationType$outboundSchema = z43.enum(PreviewUpdateItemExpiryDurationType);
|
|
9885
|
+
var PreviewUpdateItemRollover$outboundSchema = z43.pipe(
|
|
9886
|
+
z43.object({
|
|
9887
|
+
max: z43.optional(z43.number()),
|
|
9888
|
+
maxPercentage: z43.optional(z43.number()),
|
|
9889
|
+
expiryDurationType: PreviewUpdateItemExpiryDurationType$outboundSchema,
|
|
9890
|
+
expiryDurationLength: z43.optional(z43.number())
|
|
9891
|
+
}),
|
|
9892
|
+
z43.transform((v) => {
|
|
9893
|
+
return remap(v, {
|
|
9894
|
+
maxPercentage: "max_percentage",
|
|
9895
|
+
expiryDurationType: "expiry_duration_type",
|
|
9896
|
+
expiryDurationLength: "expiry_duration_length"
|
|
9897
|
+
});
|
|
9898
|
+
})
|
|
9899
|
+
);
|
|
9900
|
+
var PreviewUpdateItemPlanItem$outboundSchema = z43.pipe(
|
|
9901
|
+
z43.object({
|
|
9902
|
+
featureId: z43.string(),
|
|
9903
|
+
included: z43.optional(z43.number()),
|
|
9904
|
+
unlimited: z43.optional(z43.boolean()),
|
|
9905
|
+
reset: z43.optional(z43.lazy(() => PreviewUpdateItemReset$outboundSchema)),
|
|
9906
|
+
price: z43.optional(z43.lazy(() => PreviewUpdateItemPrice$outboundSchema)),
|
|
9907
|
+
proration: z43.optional(
|
|
9908
|
+
z43.lazy(() => PreviewUpdateItemProration$outboundSchema)
|
|
9909
|
+
),
|
|
9910
|
+
rollover: z43.optional(
|
|
9911
|
+
z43.lazy(() => PreviewUpdateItemRollover$outboundSchema)
|
|
9912
|
+
)
|
|
9913
|
+
}),
|
|
9914
|
+
z43.transform((v) => {
|
|
9915
|
+
return remap(v, {
|
|
9916
|
+
featureId: "feature_id"
|
|
9917
|
+
});
|
|
9918
|
+
})
|
|
9919
|
+
);
|
|
9920
|
+
var PreviewUpdateAddItemResetInterval$outboundSchema = z43.enum(PreviewUpdateAddItemResetInterval);
|
|
9921
|
+
var PreviewUpdateAddItemReset$outboundSchema = z43.pipe(
|
|
9922
|
+
z43.object({
|
|
9923
|
+
interval: PreviewUpdateAddItemResetInterval$outboundSchema,
|
|
9924
|
+
intervalCount: z43.optional(z43.number())
|
|
9925
|
+
}),
|
|
9926
|
+
z43.transform((v) => {
|
|
9927
|
+
return remap(v, {
|
|
9928
|
+
intervalCount: "interval_count"
|
|
9929
|
+
});
|
|
9930
|
+
})
|
|
9931
|
+
);
|
|
9932
|
+
var PreviewUpdateAddItemTo$outboundSchema = smartUnion([z43.number(), z43.string()]);
|
|
9933
|
+
var PreviewUpdateAddItemTier$outboundSchema = z43.pipe(
|
|
9934
|
+
z43.object({
|
|
9935
|
+
to: smartUnion([z43.number(), z43.string()]),
|
|
9936
|
+
amount: z43.optional(z43.number()),
|
|
9937
|
+
flatAmount: z43.optional(z43.number())
|
|
9938
|
+
}),
|
|
9939
|
+
z43.transform((v) => {
|
|
9940
|
+
return remap(v, {
|
|
9941
|
+
flatAmount: "flat_amount"
|
|
9942
|
+
});
|
|
9943
|
+
})
|
|
9944
|
+
);
|
|
9945
|
+
var PreviewUpdateAddItemTierBehavior$outboundSchema = z43.enum(PreviewUpdateAddItemTierBehavior);
|
|
9946
|
+
var PreviewUpdateAddItemPriceInterval$outboundSchema = z43.enum(PreviewUpdateAddItemPriceInterval);
|
|
9947
|
+
var PreviewUpdateAddItemBillingMethod$outboundSchema = z43.enum(PreviewUpdateAddItemBillingMethod);
|
|
9948
|
+
var PreviewUpdateAddItemPrice$outboundSchema = z43.pipe(
|
|
9949
|
+
z43.object({
|
|
9950
|
+
amount: z43.optional(z43.number()),
|
|
9951
|
+
tiers: z43.optional(
|
|
9952
|
+
z43.array(z43.lazy(() => PreviewUpdateAddItemTier$outboundSchema))
|
|
9953
|
+
),
|
|
9954
|
+
tierBehavior: z43.optional(PreviewUpdateAddItemTierBehavior$outboundSchema),
|
|
9955
|
+
interval: PreviewUpdateAddItemPriceInterval$outboundSchema,
|
|
9956
|
+
intervalCount: z43._default(z43.number(), 1),
|
|
9957
|
+
billingUnits: z43._default(z43.number(), 1),
|
|
9958
|
+
billingMethod: PreviewUpdateAddItemBillingMethod$outboundSchema,
|
|
9124
9959
|
maxPurchase: z43.optional(z43.number())
|
|
9125
9960
|
}),
|
|
9126
9961
|
z43.transform((v) => {
|
|
@@ -9133,12 +9968,12 @@ var PreviewUpdatePrice$outboundSchema = z43.pipe(
|
|
|
9133
9968
|
});
|
|
9134
9969
|
})
|
|
9135
9970
|
);
|
|
9136
|
-
var
|
|
9137
|
-
var
|
|
9138
|
-
var
|
|
9971
|
+
var PreviewUpdateAddItemOnIncrease$outboundSchema = z43.enum(PreviewUpdateAddItemOnIncrease);
|
|
9972
|
+
var PreviewUpdateAddItemOnDecrease$outboundSchema = z43.enum(PreviewUpdateAddItemOnDecrease);
|
|
9973
|
+
var PreviewUpdateAddItemProration$outboundSchema = z43.pipe(
|
|
9139
9974
|
z43.object({
|
|
9140
|
-
onIncrease:
|
|
9141
|
-
onDecrease:
|
|
9975
|
+
onIncrease: PreviewUpdateAddItemOnIncrease$outboundSchema,
|
|
9976
|
+
onDecrease: PreviewUpdateAddItemOnDecrease$outboundSchema
|
|
9142
9977
|
}),
|
|
9143
9978
|
z43.transform((v) => {
|
|
9144
9979
|
return remap(v, {
|
|
@@ -9147,12 +9982,14 @@ var PreviewUpdateProration$outboundSchema = z43.pipe(
|
|
|
9147
9982
|
});
|
|
9148
9983
|
})
|
|
9149
9984
|
);
|
|
9150
|
-
var
|
|
9151
|
-
|
|
9985
|
+
var PreviewUpdateAddItemExpiryDurationType$outboundSchema = z43.enum(
|
|
9986
|
+
PreviewUpdateAddItemExpiryDurationType
|
|
9987
|
+
);
|
|
9988
|
+
var PreviewUpdateAddItemRollover$outboundSchema = z43.pipe(
|
|
9152
9989
|
z43.object({
|
|
9153
9990
|
max: z43.optional(z43.number()),
|
|
9154
9991
|
maxPercentage: z43.optional(z43.number()),
|
|
9155
|
-
expiryDurationType:
|
|
9992
|
+
expiryDurationType: PreviewUpdateAddItemExpiryDurationType$outboundSchema,
|
|
9156
9993
|
expiryDurationLength: z43.optional(z43.number())
|
|
9157
9994
|
}),
|
|
9158
9995
|
z43.transform((v) => {
|
|
@@ -9163,15 +10000,19 @@ var PreviewUpdateRollover$outboundSchema = z43.pipe(
|
|
|
9163
10000
|
});
|
|
9164
10001
|
})
|
|
9165
10002
|
);
|
|
9166
|
-
var
|
|
10003
|
+
var PreviewUpdateAddItemPlanItem$outboundSchema = z43.pipe(
|
|
9167
10004
|
z43.object({
|
|
9168
10005
|
featureId: z43.string(),
|
|
9169
10006
|
included: z43.optional(z43.number()),
|
|
9170
10007
|
unlimited: z43.optional(z43.boolean()),
|
|
9171
|
-
reset: z43.optional(z43.lazy(() =>
|
|
9172
|
-
price: z43.optional(z43.lazy(() =>
|
|
9173
|
-
proration: z43.optional(
|
|
9174
|
-
|
|
10008
|
+
reset: z43.optional(z43.lazy(() => PreviewUpdateAddItemReset$outboundSchema)),
|
|
10009
|
+
price: z43.optional(z43.lazy(() => PreviewUpdateAddItemPrice$outboundSchema)),
|
|
10010
|
+
proration: z43.optional(
|
|
10011
|
+
z43.lazy(() => PreviewUpdateAddItemProration$outboundSchema)
|
|
10012
|
+
),
|
|
10013
|
+
rollover: z43.optional(
|
|
10014
|
+
z43.lazy(() => PreviewUpdateAddItemRollover$outboundSchema)
|
|
10015
|
+
)
|
|
9175
10016
|
}),
|
|
9176
10017
|
z43.transform((v) => {
|
|
9177
10018
|
return remap(v, {
|
|
@@ -9179,6 +10020,23 @@ var PreviewUpdatePlanItem$outboundSchema = z43.pipe(
|
|
|
9179
10020
|
});
|
|
9180
10021
|
})
|
|
9181
10022
|
);
|
|
10023
|
+
var PreviewUpdateRemoveItemBillingMethod$outboundSchema = z43.enum(PreviewUpdateRemoveItemBillingMethod);
|
|
10024
|
+
var PreviewUpdateRemoveItemInterval$outboundSchema = z43.enum(PreviewUpdateRemoveItemInterval);
|
|
10025
|
+
var PreviewUpdatePlanItemFilter$outboundSchema = z43.pipe(
|
|
10026
|
+
z43.object({
|
|
10027
|
+
featureId: z43.optional(z43.string()),
|
|
10028
|
+
billingMethod: z43.optional(
|
|
10029
|
+
PreviewUpdateRemoveItemBillingMethod$outboundSchema
|
|
10030
|
+
),
|
|
10031
|
+
interval: z43.optional(PreviewUpdateRemoveItemInterval$outboundSchema)
|
|
10032
|
+
}),
|
|
10033
|
+
z43.transform((v) => {
|
|
10034
|
+
return remap(v, {
|
|
10035
|
+
featureId: "feature_id",
|
|
10036
|
+
billingMethod: "billing_method"
|
|
10037
|
+
});
|
|
10038
|
+
})
|
|
10039
|
+
);
|
|
9182
10040
|
var PreviewUpdateDurationType$outboundSchema = z43.enum(PreviewUpdateDurationType);
|
|
9183
10041
|
var PreviewUpdateFreeTrialParams$outboundSchema = z43.pipe(
|
|
9184
10042
|
z43.object({
|
|
@@ -9200,7 +10058,13 @@ var PreviewUpdateCustomize$outboundSchema = z43.pipe(
|
|
|
9200
10058
|
z43.nullable(z43.lazy(() => PreviewUpdateBasePrice$outboundSchema))
|
|
9201
10059
|
),
|
|
9202
10060
|
items: z43.optional(
|
|
9203
|
-
z43.array(z43.lazy(() =>
|
|
10061
|
+
z43.array(z43.lazy(() => PreviewUpdateItemPlanItem$outboundSchema))
|
|
10062
|
+
),
|
|
10063
|
+
addItems: z43.optional(
|
|
10064
|
+
z43.array(z43.lazy(() => PreviewUpdateAddItemPlanItem$outboundSchema))
|
|
10065
|
+
),
|
|
10066
|
+
removeItems: z43.optional(
|
|
10067
|
+
z43.array(z43.lazy(() => PreviewUpdatePlanItemFilter$outboundSchema))
|
|
9204
10068
|
),
|
|
9205
10069
|
freeTrial: z43.optional(
|
|
9206
10070
|
z43.nullable(z43.lazy(() => PreviewUpdateFreeTrialParams$outboundSchema))
|
|
@@ -9208,6 +10072,8 @@ var PreviewUpdateCustomize$outboundSchema = z43.pipe(
|
|
|
9208
10072
|
}),
|
|
9209
10073
|
z43.transform((v) => {
|
|
9210
10074
|
return remap(v, {
|
|
10075
|
+
addItems: "add_items",
|
|
10076
|
+
removeItems: "remove_items",
|
|
9211
10077
|
freeTrial: "free_trial"
|
|
9212
10078
|
});
|
|
9213
10079
|
})
|
|
@@ -9570,7 +10436,7 @@ var SetupPaymentPriceInterval = {
|
|
|
9570
10436
|
SemiAnnual: "semi_annual",
|
|
9571
10437
|
Year: "year"
|
|
9572
10438
|
};
|
|
9573
|
-
var
|
|
10439
|
+
var SetupPaymentItemResetInterval = {
|
|
9574
10440
|
OneOff: "one_off",
|
|
9575
10441
|
Minute: "minute",
|
|
9576
10442
|
Hour: "hour",
|
|
@@ -9581,7 +10447,7 @@ var SetupPaymentResetInterval = {
|
|
|
9581
10447
|
SemiAnnual: "semi_annual",
|
|
9582
10448
|
Year: "year"
|
|
9583
10449
|
};
|
|
9584
|
-
var
|
|
10450
|
+
var SetupPaymentItemTierBehavior = {
|
|
9585
10451
|
Graduated: "graduated",
|
|
9586
10452
|
Volume: "volume"
|
|
9587
10453
|
};
|
|
@@ -9593,27 +10459,83 @@ var SetupPaymentItemPriceInterval = {
|
|
|
9593
10459
|
SemiAnnual: "semi_annual",
|
|
9594
10460
|
Year: "year"
|
|
9595
10461
|
};
|
|
9596
|
-
var
|
|
10462
|
+
var SetupPaymentItemBillingMethod = {
|
|
10463
|
+
Prepaid: "prepaid",
|
|
10464
|
+
UsageBased: "usage_based"
|
|
10465
|
+
};
|
|
10466
|
+
var SetupPaymentItemOnIncrease = {
|
|
10467
|
+
BillImmediately: "bill_immediately",
|
|
10468
|
+
ProrateImmediately: "prorate_immediately",
|
|
10469
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
10470
|
+
BillNextCycle: "bill_next_cycle"
|
|
10471
|
+
};
|
|
10472
|
+
var SetupPaymentItemOnDecrease = {
|
|
10473
|
+
Prorate: "prorate",
|
|
10474
|
+
ProrateImmediately: "prorate_immediately",
|
|
10475
|
+
ProrateNextCycle: "prorate_next_cycle",
|
|
10476
|
+
None: "none",
|
|
10477
|
+
NoProrations: "no_prorations"
|
|
10478
|
+
};
|
|
10479
|
+
var SetupPaymentItemExpiryDurationType = {
|
|
10480
|
+
Month: "month",
|
|
10481
|
+
Forever: "forever"
|
|
10482
|
+
};
|
|
10483
|
+
var SetupPaymentAddItemResetInterval = {
|
|
10484
|
+
OneOff: "one_off",
|
|
10485
|
+
Minute: "minute",
|
|
10486
|
+
Hour: "hour",
|
|
10487
|
+
Day: "day",
|
|
10488
|
+
Week: "week",
|
|
10489
|
+
Month: "month",
|
|
10490
|
+
Quarter: "quarter",
|
|
10491
|
+
SemiAnnual: "semi_annual",
|
|
10492
|
+
Year: "year"
|
|
10493
|
+
};
|
|
10494
|
+
var SetupPaymentAddItemTierBehavior = {
|
|
10495
|
+
Graduated: "graduated",
|
|
10496
|
+
Volume: "volume"
|
|
10497
|
+
};
|
|
10498
|
+
var SetupPaymentAddItemPriceInterval = {
|
|
10499
|
+
OneOff: "one_off",
|
|
10500
|
+
Week: "week",
|
|
10501
|
+
Month: "month",
|
|
10502
|
+
Quarter: "quarter",
|
|
10503
|
+
SemiAnnual: "semi_annual",
|
|
10504
|
+
Year: "year"
|
|
10505
|
+
};
|
|
10506
|
+
var SetupPaymentAddItemBillingMethod = {
|
|
9597
10507
|
Prepaid: "prepaid",
|
|
9598
10508
|
UsageBased: "usage_based"
|
|
9599
10509
|
};
|
|
9600
|
-
var
|
|
10510
|
+
var SetupPaymentAddItemOnIncrease = {
|
|
9601
10511
|
BillImmediately: "bill_immediately",
|
|
9602
10512
|
ProrateImmediately: "prorate_immediately",
|
|
9603
10513
|
ProrateNextCycle: "prorate_next_cycle",
|
|
9604
10514
|
BillNextCycle: "bill_next_cycle"
|
|
9605
10515
|
};
|
|
9606
|
-
var
|
|
10516
|
+
var SetupPaymentAddItemOnDecrease = {
|
|
9607
10517
|
Prorate: "prorate",
|
|
9608
10518
|
ProrateImmediately: "prorate_immediately",
|
|
9609
10519
|
ProrateNextCycle: "prorate_next_cycle",
|
|
9610
10520
|
None: "none",
|
|
9611
10521
|
NoProrations: "no_prorations"
|
|
9612
10522
|
};
|
|
9613
|
-
var
|
|
10523
|
+
var SetupPaymentAddItemExpiryDurationType = {
|
|
9614
10524
|
Month: "month",
|
|
9615
10525
|
Forever: "forever"
|
|
9616
10526
|
};
|
|
10527
|
+
var SetupPaymentRemoveItemBillingMethod = {
|
|
10528
|
+
Prepaid: "prepaid",
|
|
10529
|
+
UsageBased: "usage_based"
|
|
10530
|
+
};
|
|
10531
|
+
var SetupPaymentRemoveItemInterval = {
|
|
10532
|
+
OneOff: "one_off",
|
|
10533
|
+
Week: "week",
|
|
10534
|
+
Month: "month",
|
|
10535
|
+
Quarter: "quarter",
|
|
10536
|
+
SemiAnnual: "semi_annual",
|
|
10537
|
+
Year: "year"
|
|
10538
|
+
};
|
|
9617
10539
|
var SetupPaymentDurationType = {
|
|
9618
10540
|
Day: "day",
|
|
9619
10541
|
Month: "month",
|
|
@@ -9648,10 +10570,10 @@ var SetupPaymentBasePrice$outboundSchema = z45.pipe(
|
|
|
9648
10570
|
});
|
|
9649
10571
|
})
|
|
9650
10572
|
);
|
|
9651
|
-
var
|
|
9652
|
-
var
|
|
10573
|
+
var SetupPaymentItemResetInterval$outboundSchema = z45.enum(SetupPaymentItemResetInterval);
|
|
10574
|
+
var SetupPaymentItemReset$outboundSchema = z45.pipe(
|
|
9653
10575
|
z45.object({
|
|
9654
|
-
interval:
|
|
10576
|
+
interval: SetupPaymentItemResetInterval$outboundSchema,
|
|
9655
10577
|
intervalCount: z45.optional(z45.number())
|
|
9656
10578
|
}),
|
|
9657
10579
|
z45.transform((v) => {
|
|
@@ -9660,8 +10582,8 @@ var SetupPaymentReset$outboundSchema = z45.pipe(
|
|
|
9660
10582
|
});
|
|
9661
10583
|
})
|
|
9662
10584
|
);
|
|
9663
|
-
var
|
|
9664
|
-
var
|
|
10585
|
+
var SetupPaymentItemTo$outboundSchema = smartUnion([z45.number(), z45.string()]);
|
|
10586
|
+
var SetupPaymentItemTier$outboundSchema = z45.pipe(
|
|
9665
10587
|
z45.object({
|
|
9666
10588
|
to: smartUnion([z45.number(), z45.string()]),
|
|
9667
10589
|
amount: z45.optional(z45.number()),
|
|
@@ -9673,18 +10595,119 @@ var SetupPaymentTier$outboundSchema = z45.pipe(
|
|
|
9673
10595
|
});
|
|
9674
10596
|
})
|
|
9675
10597
|
);
|
|
9676
|
-
var
|
|
10598
|
+
var SetupPaymentItemTierBehavior$outboundSchema = z45.enum(SetupPaymentItemTierBehavior);
|
|
9677
10599
|
var SetupPaymentItemPriceInterval$outboundSchema = z45.enum(SetupPaymentItemPriceInterval);
|
|
9678
|
-
var
|
|
9679
|
-
var
|
|
10600
|
+
var SetupPaymentItemBillingMethod$outboundSchema = z45.enum(SetupPaymentItemBillingMethod);
|
|
10601
|
+
var SetupPaymentItemPrice$outboundSchema = z45.pipe(
|
|
9680
10602
|
z45.object({
|
|
9681
10603
|
amount: z45.optional(z45.number()),
|
|
9682
|
-
tiers: z45.optional(
|
|
9683
|
-
|
|
10604
|
+
tiers: z45.optional(
|
|
10605
|
+
z45.array(z45.lazy(() => SetupPaymentItemTier$outboundSchema))
|
|
10606
|
+
),
|
|
10607
|
+
tierBehavior: z45.optional(SetupPaymentItemTierBehavior$outboundSchema),
|
|
9684
10608
|
interval: SetupPaymentItemPriceInterval$outboundSchema,
|
|
9685
10609
|
intervalCount: z45._default(z45.number(), 1),
|
|
9686
10610
|
billingUnits: z45._default(z45.number(), 1),
|
|
9687
|
-
billingMethod:
|
|
10611
|
+
billingMethod: SetupPaymentItemBillingMethod$outboundSchema,
|
|
10612
|
+
maxPurchase: z45.optional(z45.number())
|
|
10613
|
+
}),
|
|
10614
|
+
z45.transform((v) => {
|
|
10615
|
+
return remap(v, {
|
|
10616
|
+
tierBehavior: "tier_behavior",
|
|
10617
|
+
intervalCount: "interval_count",
|
|
10618
|
+
billingUnits: "billing_units",
|
|
10619
|
+
billingMethod: "billing_method",
|
|
10620
|
+
maxPurchase: "max_purchase"
|
|
10621
|
+
});
|
|
10622
|
+
})
|
|
10623
|
+
);
|
|
10624
|
+
var SetupPaymentItemOnIncrease$outboundSchema = z45.enum(SetupPaymentItemOnIncrease);
|
|
10625
|
+
var SetupPaymentItemOnDecrease$outboundSchema = z45.enum(SetupPaymentItemOnDecrease);
|
|
10626
|
+
var SetupPaymentItemProration$outboundSchema = z45.pipe(
|
|
10627
|
+
z45.object({
|
|
10628
|
+
onIncrease: SetupPaymentItemOnIncrease$outboundSchema,
|
|
10629
|
+
onDecrease: SetupPaymentItemOnDecrease$outboundSchema
|
|
10630
|
+
}),
|
|
10631
|
+
z45.transform((v) => {
|
|
10632
|
+
return remap(v, {
|
|
10633
|
+
onIncrease: "on_increase",
|
|
10634
|
+
onDecrease: "on_decrease"
|
|
10635
|
+
});
|
|
10636
|
+
})
|
|
10637
|
+
);
|
|
10638
|
+
var SetupPaymentItemExpiryDurationType$outboundSchema = z45.enum(SetupPaymentItemExpiryDurationType);
|
|
10639
|
+
var SetupPaymentItemRollover$outboundSchema = z45.pipe(
|
|
10640
|
+
z45.object({
|
|
10641
|
+
max: z45.optional(z45.number()),
|
|
10642
|
+
maxPercentage: z45.optional(z45.number()),
|
|
10643
|
+
expiryDurationType: SetupPaymentItemExpiryDurationType$outboundSchema,
|
|
10644
|
+
expiryDurationLength: z45.optional(z45.number())
|
|
10645
|
+
}),
|
|
10646
|
+
z45.transform((v) => {
|
|
10647
|
+
return remap(v, {
|
|
10648
|
+
maxPercentage: "max_percentage",
|
|
10649
|
+
expiryDurationType: "expiry_duration_type",
|
|
10650
|
+
expiryDurationLength: "expiry_duration_length"
|
|
10651
|
+
});
|
|
10652
|
+
})
|
|
10653
|
+
);
|
|
10654
|
+
var SetupPaymentItemPlanItem$outboundSchema = z45.pipe(
|
|
10655
|
+
z45.object({
|
|
10656
|
+
featureId: z45.string(),
|
|
10657
|
+
included: z45.optional(z45.number()),
|
|
10658
|
+
unlimited: z45.optional(z45.boolean()),
|
|
10659
|
+
reset: z45.optional(z45.lazy(() => SetupPaymentItemReset$outboundSchema)),
|
|
10660
|
+
price: z45.optional(z45.lazy(() => SetupPaymentItemPrice$outboundSchema)),
|
|
10661
|
+
proration: z45.optional(
|
|
10662
|
+
z45.lazy(() => SetupPaymentItemProration$outboundSchema)
|
|
10663
|
+
),
|
|
10664
|
+
rollover: z45.optional(z45.lazy(() => SetupPaymentItemRollover$outboundSchema))
|
|
10665
|
+
}),
|
|
10666
|
+
z45.transform((v) => {
|
|
10667
|
+
return remap(v, {
|
|
10668
|
+
featureId: "feature_id"
|
|
10669
|
+
});
|
|
10670
|
+
})
|
|
10671
|
+
);
|
|
10672
|
+
var SetupPaymentAddItemResetInterval$outboundSchema = z45.enum(SetupPaymentAddItemResetInterval);
|
|
10673
|
+
var SetupPaymentAddItemReset$outboundSchema = z45.pipe(
|
|
10674
|
+
z45.object({
|
|
10675
|
+
interval: SetupPaymentAddItemResetInterval$outboundSchema,
|
|
10676
|
+
intervalCount: z45.optional(z45.number())
|
|
10677
|
+
}),
|
|
10678
|
+
z45.transform((v) => {
|
|
10679
|
+
return remap(v, {
|
|
10680
|
+
intervalCount: "interval_count"
|
|
10681
|
+
});
|
|
10682
|
+
})
|
|
10683
|
+
);
|
|
10684
|
+
var SetupPaymentAddItemTo$outboundSchema = smartUnion([z45.number(), z45.string()]);
|
|
10685
|
+
var SetupPaymentAddItemTier$outboundSchema = z45.pipe(
|
|
10686
|
+
z45.object({
|
|
10687
|
+
to: smartUnion([z45.number(), z45.string()]),
|
|
10688
|
+
amount: z45.optional(z45.number()),
|
|
10689
|
+
flatAmount: z45.optional(z45.number())
|
|
10690
|
+
}),
|
|
10691
|
+
z45.transform((v) => {
|
|
10692
|
+
return remap(v, {
|
|
10693
|
+
flatAmount: "flat_amount"
|
|
10694
|
+
});
|
|
10695
|
+
})
|
|
10696
|
+
);
|
|
10697
|
+
var SetupPaymentAddItemTierBehavior$outboundSchema = z45.enum(SetupPaymentAddItemTierBehavior);
|
|
10698
|
+
var SetupPaymentAddItemPriceInterval$outboundSchema = z45.enum(SetupPaymentAddItemPriceInterval);
|
|
10699
|
+
var SetupPaymentAddItemBillingMethod$outboundSchema = z45.enum(SetupPaymentAddItemBillingMethod);
|
|
10700
|
+
var SetupPaymentAddItemPrice$outboundSchema = z45.pipe(
|
|
10701
|
+
z45.object({
|
|
10702
|
+
amount: z45.optional(z45.number()),
|
|
10703
|
+
tiers: z45.optional(
|
|
10704
|
+
z45.array(z45.lazy(() => SetupPaymentAddItemTier$outboundSchema))
|
|
10705
|
+
),
|
|
10706
|
+
tierBehavior: z45.optional(SetupPaymentAddItemTierBehavior$outboundSchema),
|
|
10707
|
+
interval: SetupPaymentAddItemPriceInterval$outboundSchema,
|
|
10708
|
+
intervalCount: z45._default(z45.number(), 1),
|
|
10709
|
+
billingUnits: z45._default(z45.number(), 1),
|
|
10710
|
+
billingMethod: SetupPaymentAddItemBillingMethod$outboundSchema,
|
|
9688
10711
|
maxPurchase: z45.optional(z45.number())
|
|
9689
10712
|
}),
|
|
9690
10713
|
z45.transform((v) => {
|
|
@@ -9697,12 +10720,12 @@ var SetupPaymentPrice$outboundSchema = z45.pipe(
|
|
|
9697
10720
|
});
|
|
9698
10721
|
})
|
|
9699
10722
|
);
|
|
9700
|
-
var
|
|
9701
|
-
var
|
|
9702
|
-
var
|
|
10723
|
+
var SetupPaymentAddItemOnIncrease$outboundSchema = z45.enum(SetupPaymentAddItemOnIncrease);
|
|
10724
|
+
var SetupPaymentAddItemOnDecrease$outboundSchema = z45.enum(SetupPaymentAddItemOnDecrease);
|
|
10725
|
+
var SetupPaymentAddItemProration$outboundSchema = z45.pipe(
|
|
9703
10726
|
z45.object({
|
|
9704
|
-
onIncrease:
|
|
9705
|
-
onDecrease:
|
|
10727
|
+
onIncrease: SetupPaymentAddItemOnIncrease$outboundSchema,
|
|
10728
|
+
onDecrease: SetupPaymentAddItemOnDecrease$outboundSchema
|
|
9706
10729
|
}),
|
|
9707
10730
|
z45.transform((v) => {
|
|
9708
10731
|
return remap(v, {
|
|
@@ -9711,12 +10734,14 @@ var SetupPaymentProration$outboundSchema = z45.pipe(
|
|
|
9711
10734
|
});
|
|
9712
10735
|
})
|
|
9713
10736
|
);
|
|
9714
|
-
var
|
|
9715
|
-
|
|
10737
|
+
var SetupPaymentAddItemExpiryDurationType$outboundSchema = z45.enum(
|
|
10738
|
+
SetupPaymentAddItemExpiryDurationType
|
|
10739
|
+
);
|
|
10740
|
+
var SetupPaymentAddItemRollover$outboundSchema = z45.pipe(
|
|
9716
10741
|
z45.object({
|
|
9717
10742
|
max: z45.optional(z45.number()),
|
|
9718
10743
|
maxPercentage: z45.optional(z45.number()),
|
|
9719
|
-
expiryDurationType:
|
|
10744
|
+
expiryDurationType: SetupPaymentAddItemExpiryDurationType$outboundSchema,
|
|
9720
10745
|
expiryDurationLength: z45.optional(z45.number())
|
|
9721
10746
|
}),
|
|
9722
10747
|
z45.transform((v) => {
|
|
@@ -9727,15 +10752,19 @@ var SetupPaymentRollover$outboundSchema = z45.pipe(
|
|
|
9727
10752
|
});
|
|
9728
10753
|
})
|
|
9729
10754
|
);
|
|
9730
|
-
var
|
|
10755
|
+
var SetupPaymentAddItemPlanItem$outboundSchema = z45.pipe(
|
|
9731
10756
|
z45.object({
|
|
9732
10757
|
featureId: z45.string(),
|
|
9733
10758
|
included: z45.optional(z45.number()),
|
|
9734
10759
|
unlimited: z45.optional(z45.boolean()),
|
|
9735
|
-
reset: z45.optional(z45.lazy(() =>
|
|
9736
|
-
price: z45.optional(z45.lazy(() =>
|
|
9737
|
-
proration: z45.optional(
|
|
9738
|
-
|
|
10760
|
+
reset: z45.optional(z45.lazy(() => SetupPaymentAddItemReset$outboundSchema)),
|
|
10761
|
+
price: z45.optional(z45.lazy(() => SetupPaymentAddItemPrice$outboundSchema)),
|
|
10762
|
+
proration: z45.optional(
|
|
10763
|
+
z45.lazy(() => SetupPaymentAddItemProration$outboundSchema)
|
|
10764
|
+
),
|
|
10765
|
+
rollover: z45.optional(
|
|
10766
|
+
z45.lazy(() => SetupPaymentAddItemRollover$outboundSchema)
|
|
10767
|
+
)
|
|
9739
10768
|
}),
|
|
9740
10769
|
z45.transform((v) => {
|
|
9741
10770
|
return remap(v, {
|
|
@@ -9743,6 +10772,23 @@ var SetupPaymentPlanItem$outboundSchema = z45.pipe(
|
|
|
9743
10772
|
});
|
|
9744
10773
|
})
|
|
9745
10774
|
);
|
|
10775
|
+
var SetupPaymentRemoveItemBillingMethod$outboundSchema = z45.enum(SetupPaymentRemoveItemBillingMethod);
|
|
10776
|
+
var SetupPaymentRemoveItemInterval$outboundSchema = z45.enum(SetupPaymentRemoveItemInterval);
|
|
10777
|
+
var SetupPaymentPlanItemFilter$outboundSchema = z45.pipe(
|
|
10778
|
+
z45.object({
|
|
10779
|
+
featureId: z45.optional(z45.string()),
|
|
10780
|
+
billingMethod: z45.optional(
|
|
10781
|
+
SetupPaymentRemoveItemBillingMethod$outboundSchema
|
|
10782
|
+
),
|
|
10783
|
+
interval: z45.optional(SetupPaymentRemoveItemInterval$outboundSchema)
|
|
10784
|
+
}),
|
|
10785
|
+
z45.transform((v) => {
|
|
10786
|
+
return remap(v, {
|
|
10787
|
+
featureId: "feature_id",
|
|
10788
|
+
billingMethod: "billing_method"
|
|
10789
|
+
});
|
|
10790
|
+
})
|
|
10791
|
+
);
|
|
9746
10792
|
var SetupPaymentDurationType$outboundSchema = z45.enum(SetupPaymentDurationType);
|
|
9747
10793
|
var SetupPaymentFreeTrialParams$outboundSchema = z45.pipe(
|
|
9748
10794
|
z45.object({
|
|
@@ -9764,7 +10810,13 @@ var SetupPaymentCustomize$outboundSchema = z45.pipe(
|
|
|
9764
10810
|
z45.nullable(z45.lazy(() => SetupPaymentBasePrice$outboundSchema))
|
|
9765
10811
|
),
|
|
9766
10812
|
items: z45.optional(
|
|
9767
|
-
z45.array(z45.lazy(() =>
|
|
10813
|
+
z45.array(z45.lazy(() => SetupPaymentItemPlanItem$outboundSchema))
|
|
10814
|
+
),
|
|
10815
|
+
addItems: z45.optional(
|
|
10816
|
+
z45.array(z45.lazy(() => SetupPaymentAddItemPlanItem$outboundSchema))
|
|
10817
|
+
),
|
|
10818
|
+
removeItems: z45.optional(
|
|
10819
|
+
z45.array(z45.lazy(() => SetupPaymentPlanItemFilter$outboundSchema))
|
|
9768
10820
|
),
|
|
9769
10821
|
freeTrial: z45.optional(
|
|
9770
10822
|
z45.nullable(z45.lazy(() => SetupPaymentFreeTrialParams$outboundSchema))
|
|
@@ -9772,6 +10824,8 @@ var SetupPaymentCustomize$outboundSchema = z45.pipe(
|
|
|
9772
10824
|
}),
|
|
9773
10825
|
z45.transform((v) => {
|
|
9774
10826
|
return remap(v, {
|
|
10827
|
+
addItems: "add_items",
|
|
10828
|
+
removeItems: "remove_items",
|
|
9775
10829
|
freeTrial: "free_trial"
|
|
9776
10830
|
});
|
|
9777
10831
|
})
|
|
@@ -9833,6 +10887,7 @@ var SetupPaymentParams$outboundSchema = z45.pipe(
|
|
|
9833
10887
|
successUrl: z45.optional(z45.string()),
|
|
9834
10888
|
billingCycleAnchor: z45.optional(z45.literal("now")),
|
|
9835
10889
|
startsAt: z45.optional(z45.int()),
|
|
10890
|
+
endsAt: z45.optional(z45.int()),
|
|
9836
10891
|
checkoutSessionParams: z45.optional(z45.record(z45.string(), z45.any())),
|
|
9837
10892
|
customLineItems: z45.optional(
|
|
9838
10893
|
z45.array(z45.lazy(() => SetupPaymentCustomLineItem$outboundSchema))
|
|
@@ -9859,6 +10914,7 @@ var SetupPaymentParams$outboundSchema = z45.pipe(
|
|
|
9859
10914
|
successUrl: "success_url",
|
|
9860
10915
|
billingCycleAnchor: "billing_cycle_anchor",
|
|
9861
10916
|
startsAt: "starts_at",
|
|
10917
|
+
endsAt: "ends_at",
|
|
9862
10918
|
checkoutSessionParams: "checkout_session_params",
|
|
9863
10919
|
customLineItems: "custom_line_items",
|
|
9864
10920
|
processorSubscriptionId: "processor_subscription_id",
|
|
@@ -9924,7 +10980,9 @@ var TrackResponseBody2$inboundSchema = z46.pipe(
|
|
|
9924
10980
|
event_name: optional3(string4()),
|
|
9925
10981
|
value: number2(),
|
|
9926
10982
|
balance: nullable(Balance$inboundSchema),
|
|
9927
|
-
balances: optional3(
|
|
10983
|
+
balances: optional3(
|
|
10984
|
+
z46.record(z46.string(), nullable(Balance$inboundSchema))
|
|
10985
|
+
)
|
|
9928
10986
|
}),
|
|
9929
10987
|
z46.transform((v) => {
|
|
9930
10988
|
return remap(v, {
|
|
@@ -9941,7 +10999,9 @@ var TrackResponseBody1$inboundSchema = z46.pipe(
|
|
|
9941
10999
|
event_name: optional3(string4()),
|
|
9942
11000
|
value: number2(),
|
|
9943
11001
|
balance: nullable(Balance$inboundSchema),
|
|
9944
|
-
balances: optional3(
|
|
11002
|
+
balances: optional3(
|
|
11003
|
+
z46.record(z46.string(), nullable(Balance$inboundSchema))
|
|
11004
|
+
)
|
|
9945
11005
|
}),
|
|
9946
11006
|
z46.transform((v) => {
|
|
9947
11007
|
return remap(v, {
|
|
@@ -10399,16 +11459,41 @@ var UpdateCustomerFlags$inboundSchema = z48.pipe(
|
|
|
10399
11459
|
});
|
|
10400
11460
|
})
|
|
10401
11461
|
);
|
|
10402
|
-
var UpdateCustomerConfigResponse$inboundSchema = z48.pipe(
|
|
11462
|
+
var UpdateCustomerConfigResponse$inboundSchema = z48.pipe(
|
|
11463
|
+
z48.object({
|
|
11464
|
+
disable_pooled_balance: optional3(boolean2())
|
|
11465
|
+
}),
|
|
11466
|
+
z48.transform((v) => {
|
|
11467
|
+
return remap(v, {
|
|
11468
|
+
"disable_pooled_balance": "disablePooledBalance"
|
|
11469
|
+
});
|
|
11470
|
+
})
|
|
11471
|
+
);
|
|
11472
|
+
var UpdateCustomerStripe$inboundSchema = z48.object({
|
|
11473
|
+
id: string4()
|
|
11474
|
+
});
|
|
11475
|
+
var UpdateCustomerVercel$inboundSchema = z48.pipe(
|
|
10403
11476
|
z48.object({
|
|
10404
|
-
|
|
11477
|
+
installation_id: string4(),
|
|
11478
|
+
account_id: string4()
|
|
10405
11479
|
}),
|
|
10406
11480
|
z48.transform((v) => {
|
|
10407
11481
|
return remap(v, {
|
|
10408
|
-
"
|
|
11482
|
+
"installation_id": "installationId",
|
|
11483
|
+
"account_id": "accountId"
|
|
10409
11484
|
});
|
|
10410
11485
|
})
|
|
10411
11486
|
);
|
|
11487
|
+
var UpdateCustomerRevenuecat$inboundSchema = z48.object({
|
|
11488
|
+
id: nullable(string4())
|
|
11489
|
+
});
|
|
11490
|
+
var UpdateCustomerProcessors$inboundSchema = z48.object({
|
|
11491
|
+
stripe: optional3(z48.lazy(() => UpdateCustomerStripe$inboundSchema)),
|
|
11492
|
+
vercel: optional3(z48.lazy(() => UpdateCustomerVercel$inboundSchema)),
|
|
11493
|
+
revenuecat: optional3(
|
|
11494
|
+
z48.lazy(() => UpdateCustomerRevenuecat$inboundSchema)
|
|
11495
|
+
)
|
|
11496
|
+
});
|
|
10412
11497
|
var UpdateCustomerResponse$inboundSchema = z48.pipe(
|
|
10413
11498
|
z48.object({
|
|
10414
11499
|
id: nullable(string4()),
|
|
@@ -10434,6 +11519,9 @@ var UpdateCustomerResponse$inboundSchema = z48.pipe(
|
|
|
10434
11519
|
),
|
|
10435
11520
|
config: optional3(
|
|
10436
11521
|
z48.lazy(() => UpdateCustomerConfigResponse$inboundSchema)
|
|
11522
|
+
),
|
|
11523
|
+
processors: optional3(
|
|
11524
|
+
z48.lazy(() => UpdateCustomerProcessors$inboundSchema)
|
|
10437
11525
|
)
|
|
10438
11526
|
}),
|
|
10439
11527
|
z48.transform((v) => {
|
|
@@ -10473,6 +11561,10 @@ var UpdateEntityThresholdTypeResponse = {
|
|
|
10473
11561
|
Remaining: "remaining",
|
|
10474
11562
|
RemainingPercentage: "remaining_percentage"
|
|
10475
11563
|
};
|
|
11564
|
+
var UpdateEntityProcessorType = {
|
|
11565
|
+
Stripe: "stripe",
|
|
11566
|
+
Revenuecat: "revenuecat"
|
|
11567
|
+
};
|
|
10476
11568
|
var UpdateEntitySpendLimitRequest$outboundSchema = z49.pipe(
|
|
10477
11569
|
z49.object({
|
|
10478
11570
|
featureId: z49.optional(z49.string()),
|
|
@@ -10712,10 +11804,15 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z49.pipe(
|
|
|
10712
11804
|
});
|
|
10713
11805
|
})
|
|
10714
11806
|
);
|
|
11807
|
+
var UpdateEntityProcessorType$inboundSchema = inboundSchema(UpdateEntityProcessorType);
|
|
10715
11808
|
var UpdateEntityInvoice$inboundSchema = z49.pipe(
|
|
10716
11809
|
z49.object({
|
|
10717
11810
|
plan_ids: z49.array(string4()),
|
|
10718
11811
|
stripe_id: string4(),
|
|
11812
|
+
processor_type: z49._default(
|
|
11813
|
+
UpdateEntityProcessorType$inboundSchema,
|
|
11814
|
+
"stripe"
|
|
11815
|
+
),
|
|
10719
11816
|
status: string4(),
|
|
10720
11817
|
total: number2(),
|
|
10721
11818
|
currency: string4(),
|
|
@@ -10726,6 +11823,7 @@ var UpdateEntityInvoice$inboundSchema = z49.pipe(
|
|
|
10726
11823
|
return remap(v, {
|
|
10727
11824
|
"plan_ids": "planIds",
|
|
10728
11825
|
"stripe_id": "stripeId",
|
|
11826
|
+
"processor_type": "processorType",
|
|
10729
11827
|
"created_at": "createdAt",
|
|
10730
11828
|
"hosted_invoice_url": "hostedInvoiceUrl"
|
|
10731
11829
|
});
|
|
@@ -13260,6 +14358,7 @@ var Billing = class extends ClientSDK {
|
|
|
13260
14358
|
* @param billingCycleAnchor - Reset the billing cycle anchor immediately with 'now'. (optional)
|
|
13261
14359
|
* @param planSchedule - When the plan change should take effect. 'immediate' applies now, 'end_of_cycle' schedules for the end of the current billing cycle. By default, upgrades are immediate and downgrades are scheduled. (optional)
|
|
13262
14360
|
* @param startsAt - Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription. (optional)
|
|
14361
|
+
* @param endsAt - Unix timestamp in milliseconds for when the attached plan should end. (optional)
|
|
13263
14362
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
13264
14363
|
* @param customLineItems - Custom line items that override the auto-generated proration invoice. Only valid for immediate plan changes (eg. upgrades or one off plans). (optional)
|
|
13265
14364
|
* @param processorSubscriptionId - The processor subscription ID to link. Use this to attach an existing Stripe subscription instead of creating a new one. (optional)
|
|
@@ -13286,7 +14385,7 @@ var Billing = class extends ClientSDK {
|
|
|
13286
14385
|
* @example
|
|
13287
14386
|
* ```typescript
|
|
13288
14387
|
* // Schedule a transition from a trial plan to a paid plan
|
|
13289
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14388
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1778177242707,"plans":[{"planId":"trial_plan"}]},{"startsAt":1779386842707,"plans":[{"planId":"pro_plan"}]}] });
|
|
13290
14389
|
* ```
|
|
13291
14390
|
*
|
|
13292
14391
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -13380,6 +14479,7 @@ var Billing = class extends ClientSDK {
|
|
|
13380
14479
|
* @param billingCycleAnchor - Reset the billing cycle anchor immediately with 'now'. (optional)
|
|
13381
14480
|
* @param planSchedule - When the plan change should take effect. 'immediate' applies now, 'end_of_cycle' schedules for the end of the current billing cycle. By default, upgrades are immediate and downgrades are scheduled. (optional)
|
|
13382
14481
|
* @param startsAt - Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription. (optional)
|
|
14482
|
+
* @param endsAt - Unix timestamp in milliseconds for when the attached plan should end. (optional)
|
|
13383
14483
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
13384
14484
|
* @param customLineItems - Custom line items that override the auto-generated proration invoice. Only valid for immediate plan changes (eg. upgrades or one off plans). (optional)
|
|
13385
14485
|
* @param processorSubscriptionId - The processor subscription ID to link. Use this to attach an existing Stripe subscription instead of creating a new one. (optional)
|
|
@@ -16141,8 +17241,14 @@ var attachFeatureQuantitySchema = import_v42.z.object({
|
|
|
16141
17241
|
quantity: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
16142
17242
|
adjustable: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
16143
17243
|
});
|
|
16144
|
-
var
|
|
16145
|
-
var
|
|
17244
|
+
var attachItemToSchema = import_v42.z.union([import_v42.z.number(), import_v42.z.string()]);
|
|
17245
|
+
var attachItemTierSchema = import_v42.z.object({
|
|
17246
|
+
to: import_v42.z.union([import_v42.z.number(), import_v42.z.string()]),
|
|
17247
|
+
amount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
17248
|
+
flatAmount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
17249
|
+
});
|
|
17250
|
+
var attachAddItemToSchema = import_v42.z.union([import_v42.z.number(), import_v42.z.string()]);
|
|
17251
|
+
var attachAddItemTierSchema = import_v42.z.object({
|
|
16146
17252
|
to: import_v42.z.union([import_v42.z.number(), import_v42.z.string()]),
|
|
16147
17253
|
amount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
16148
17254
|
flatAmount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
@@ -16185,19 +17291,58 @@ var attachBasePriceOutboundSchema = import_v42.z.object({
|
|
|
16185
17291
|
interval: import_v42.z.string(),
|
|
16186
17292
|
interval_count: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
16187
17293
|
});
|
|
16188
|
-
var
|
|
17294
|
+
var attachItemResetOutboundSchema = import_v42.z.object({
|
|
17295
|
+
interval: import_v42.z.string(),
|
|
17296
|
+
interval_count: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
17297
|
+
});
|
|
17298
|
+
var attachItemToOutboundSchema = import_v42.z.union([import_v42.z.number(), import_v42.z.string()]);
|
|
17299
|
+
var attachItemTierOutboundSchema = import_v42.z.object({
|
|
17300
|
+
to: import_v42.z.union([import_v42.z.number(), import_v42.z.string()]),
|
|
17301
|
+
amount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
17302
|
+
flat_amount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
17303
|
+
});
|
|
17304
|
+
var attachItemPriceOutboundSchema = import_v42.z.object({
|
|
17305
|
+
amount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
17306
|
+
tiers: import_v42.z.union([import_v42.z.array(attachItemTierOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
17307
|
+
tier_behavior: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
17308
|
+
interval: import_v42.z.string(),
|
|
17309
|
+
interval_count: import_v42.z.number(),
|
|
17310
|
+
billing_units: import_v42.z.number(),
|
|
17311
|
+
billing_method: import_v42.z.string(),
|
|
17312
|
+
max_purchase: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
17313
|
+
});
|
|
17314
|
+
var attachItemProrationOutboundSchema = import_v42.z.object({
|
|
17315
|
+
on_increase: import_v42.z.string(),
|
|
17316
|
+
on_decrease: import_v42.z.string()
|
|
17317
|
+
});
|
|
17318
|
+
var attachItemRolloverOutboundSchema = import_v42.z.object({
|
|
17319
|
+
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
17320
|
+
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
17321
|
+
expiry_duration_type: import_v42.z.string(),
|
|
17322
|
+
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
17323
|
+
});
|
|
17324
|
+
var attachItemPlanItemOutboundSchema = import_v42.z.object({
|
|
17325
|
+
feature_id: import_v42.z.string(),
|
|
17326
|
+
included: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
17327
|
+
unlimited: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
17328
|
+
reset: import_v42.z.union([attachItemResetOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
17329
|
+
price: import_v42.z.union([attachItemPriceOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
17330
|
+
proration: import_v42.z.union([attachItemProrationOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
17331
|
+
rollover: import_v42.z.union([attachItemRolloverOutboundSchema, import_v42.z.undefined()]).optional()
|
|
17332
|
+
});
|
|
17333
|
+
var attachAddItemResetOutboundSchema = import_v42.z.object({
|
|
16189
17334
|
interval: import_v42.z.string(),
|
|
16190
17335
|
interval_count: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
16191
17336
|
});
|
|
16192
|
-
var
|
|
16193
|
-
var
|
|
17337
|
+
var attachAddItemToOutboundSchema = import_v42.z.union([import_v42.z.number(), import_v42.z.string()]);
|
|
17338
|
+
var attachAddItemTierOutboundSchema = import_v42.z.object({
|
|
16194
17339
|
to: import_v42.z.union([import_v42.z.number(), import_v42.z.string()]),
|
|
16195
17340
|
amount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
16196
17341
|
flat_amount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
16197
17342
|
});
|
|
16198
|
-
var
|
|
17343
|
+
var attachAddItemPriceOutboundSchema = import_v42.z.object({
|
|
16199
17344
|
amount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
16200
|
-
tiers: import_v42.z.union([import_v42.z.array(
|
|
17345
|
+
tiers: import_v42.z.union([import_v42.z.array(attachAddItemTierOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
16201
17346
|
tier_behavior: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
16202
17347
|
interval: import_v42.z.string(),
|
|
16203
17348
|
interval_count: import_v42.z.number(),
|
|
@@ -16205,24 +17350,29 @@ var attachPriceOutboundSchema = import_v42.z.object({
|
|
|
16205
17350
|
billing_method: import_v42.z.string(),
|
|
16206
17351
|
max_purchase: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
16207
17352
|
});
|
|
16208
|
-
var
|
|
17353
|
+
var attachAddItemProrationOutboundSchema = import_v42.z.object({
|
|
16209
17354
|
on_increase: import_v42.z.string(),
|
|
16210
17355
|
on_decrease: import_v42.z.string()
|
|
16211
17356
|
});
|
|
16212
|
-
var
|
|
17357
|
+
var attachAddItemRolloverOutboundSchema = import_v42.z.object({
|
|
16213
17358
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
16214
17359
|
max_percentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
16215
17360
|
expiry_duration_type: import_v42.z.string(),
|
|
16216
17361
|
expiry_duration_length: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
16217
17362
|
});
|
|
16218
|
-
var
|
|
17363
|
+
var attachAddItemPlanItemOutboundSchema = import_v42.z.object({
|
|
16219
17364
|
feature_id: import_v42.z.string(),
|
|
16220
17365
|
included: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
16221
17366
|
unlimited: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
16222
|
-
reset: import_v42.z.union([
|
|
16223
|
-
price: import_v42.z.union([
|
|
16224
|
-
proration: import_v42.z.union([
|
|
16225
|
-
rollover: import_v42.z.union([
|
|
17367
|
+
reset: import_v42.z.union([attachAddItemResetOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
17368
|
+
price: import_v42.z.union([attachAddItemPriceOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
17369
|
+
proration: import_v42.z.union([attachAddItemProrationOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
17370
|
+
rollover: import_v42.z.union([attachAddItemRolloverOutboundSchema, import_v42.z.undefined()]).optional()
|
|
17371
|
+
});
|
|
17372
|
+
var attachPlanItemFilterOutboundSchema = import_v42.z.object({
|
|
17373
|
+
feature_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
17374
|
+
billing_method: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
17375
|
+
interval: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
|
|
16226
17376
|
});
|
|
16227
17377
|
var attachFreeTrialParamsOutboundSchema = import_v42.z.object({
|
|
16228
17378
|
duration_length: import_v42.z.number(),
|
|
@@ -16231,7 +17381,9 @@ var attachFreeTrialParamsOutboundSchema = import_v42.z.object({
|
|
|
16231
17381
|
});
|
|
16232
17382
|
var attachCustomizeOutboundSchema = import_v42.z.object({
|
|
16233
17383
|
price: import_v42.z.union([attachBasePriceOutboundSchema, import_v42.z.undefined()]).optional().nullable(),
|
|
16234
|
-
items: import_v42.z.union([import_v42.z.array(
|
|
17384
|
+
items: import_v42.z.union([import_v42.z.array(attachItemPlanItemOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
17385
|
+
add_items: import_v42.z.union([import_v42.z.array(attachAddItemPlanItemOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
17386
|
+
remove_items: import_v42.z.union([import_v42.z.array(attachPlanItemFilterOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
16235
17387
|
free_trial: import_v42.z.union([attachFreeTrialParamsOutboundSchema, import_v42.z.undefined()]).optional().nullable()
|
|
16236
17388
|
});
|
|
16237
17389
|
var attachInvoiceModeOutboundSchema = import_v42.z.object({
|
|
@@ -16272,6 +17424,7 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
16272
17424
|
billing_cycle_anchor: import_v42.z.union([import_v42.z.literal("now"), import_v42.z.undefined()]).optional(),
|
|
16273
17425
|
plan_schedule: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
16274
17426
|
starts_at: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
17427
|
+
ends_at: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
16275
17428
|
checkout_session_params: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.any()), import_v42.z.undefined()]).optional(),
|
|
16276
17429
|
custom_line_items: import_v42.z.union([import_v42.z.array(attachCustomLineItemOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
16277
17430
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
@@ -16289,45 +17442,92 @@ var attachBasePriceSchema = import_v42.z.object({
|
|
|
16289
17442
|
interval: attachPriceIntervalSchema,
|
|
16290
17443
|
intervalCount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
16291
17444
|
});
|
|
16292
|
-
var
|
|
16293
|
-
var
|
|
16294
|
-
interval:
|
|
17445
|
+
var attachItemResetIntervalSchema = closedEnumSchema2;
|
|
17446
|
+
var attachItemResetSchema = import_v42.z.object({
|
|
17447
|
+
interval: attachItemResetIntervalSchema,
|
|
16295
17448
|
intervalCount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
16296
17449
|
});
|
|
16297
|
-
var
|
|
17450
|
+
var attachItemTierBehaviorSchema = closedEnumSchema2;
|
|
16298
17451
|
var attachItemPriceIntervalSchema = closedEnumSchema2;
|
|
16299
|
-
var
|
|
16300
|
-
var
|
|
17452
|
+
var attachItemBillingMethodSchema = closedEnumSchema2;
|
|
17453
|
+
var attachItemPriceSchema = import_v42.z.object({
|
|
16301
17454
|
amount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
16302
|
-
tiers: import_v42.z.union([import_v42.z.array(
|
|
16303
|
-
tierBehavior: import_v42.z.union([
|
|
17455
|
+
tiers: import_v42.z.union([import_v42.z.array(attachItemTierSchema), import_v42.z.undefined()]).optional(),
|
|
17456
|
+
tierBehavior: import_v42.z.union([attachItemTierBehaviorSchema, import_v42.z.undefined()]).optional(),
|
|
16304
17457
|
interval: attachItemPriceIntervalSchema,
|
|
16305
17458
|
intervalCount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
16306
17459
|
billingUnits: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
16307
|
-
billingMethod:
|
|
17460
|
+
billingMethod: attachItemBillingMethodSchema,
|
|
17461
|
+
maxPurchase: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
17462
|
+
});
|
|
17463
|
+
var attachItemOnIncreaseSchema = closedEnumSchema2;
|
|
17464
|
+
var attachItemOnDecreaseSchema = closedEnumSchema2;
|
|
17465
|
+
var attachItemProrationSchema = import_v42.z.object({
|
|
17466
|
+
onIncrease: attachItemOnIncreaseSchema,
|
|
17467
|
+
onDecrease: attachItemOnDecreaseSchema
|
|
17468
|
+
});
|
|
17469
|
+
var attachItemExpiryDurationTypeSchema = closedEnumSchema2;
|
|
17470
|
+
var attachItemRolloverSchema = import_v42.z.object({
|
|
17471
|
+
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
17472
|
+
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
17473
|
+
expiryDurationType: attachItemExpiryDurationTypeSchema,
|
|
17474
|
+
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
17475
|
+
});
|
|
17476
|
+
var attachItemPlanItemSchema = import_v42.z.object({
|
|
17477
|
+
featureId: import_v42.z.string(),
|
|
17478
|
+
included: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
17479
|
+
unlimited: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
17480
|
+
reset: import_v42.z.union([attachItemResetSchema, import_v42.z.undefined()]).optional(),
|
|
17481
|
+
price: import_v42.z.union([attachItemPriceSchema, import_v42.z.undefined()]).optional(),
|
|
17482
|
+
proration: import_v42.z.union([attachItemProrationSchema, import_v42.z.undefined()]).optional(),
|
|
17483
|
+
rollover: import_v42.z.union([attachItemRolloverSchema, import_v42.z.undefined()]).optional()
|
|
17484
|
+
});
|
|
17485
|
+
var attachAddItemResetIntervalSchema = closedEnumSchema2;
|
|
17486
|
+
var attachAddItemResetSchema = import_v42.z.object({
|
|
17487
|
+
interval: attachAddItemResetIntervalSchema,
|
|
17488
|
+
intervalCount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
17489
|
+
});
|
|
17490
|
+
var attachAddItemTierBehaviorSchema = closedEnumSchema2;
|
|
17491
|
+
var attachAddItemPriceIntervalSchema = closedEnumSchema2;
|
|
17492
|
+
var attachAddItemBillingMethodSchema = closedEnumSchema2;
|
|
17493
|
+
var attachAddItemPriceSchema = import_v42.z.object({
|
|
17494
|
+
amount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
17495
|
+
tiers: import_v42.z.union([import_v42.z.array(attachAddItemTierSchema), import_v42.z.undefined()]).optional(),
|
|
17496
|
+
tierBehavior: import_v42.z.union([attachAddItemTierBehaviorSchema, import_v42.z.undefined()]).optional(),
|
|
17497
|
+
interval: attachAddItemPriceIntervalSchema,
|
|
17498
|
+
intervalCount: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
17499
|
+
billingUnits: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
17500
|
+
billingMethod: attachAddItemBillingMethodSchema,
|
|
16308
17501
|
maxPurchase: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
16309
17502
|
});
|
|
16310
|
-
var
|
|
16311
|
-
var
|
|
16312
|
-
var
|
|
16313
|
-
onIncrease:
|
|
16314
|
-
onDecrease:
|
|
17503
|
+
var attachAddItemOnIncreaseSchema = closedEnumSchema2;
|
|
17504
|
+
var attachAddItemOnDecreaseSchema = closedEnumSchema2;
|
|
17505
|
+
var attachAddItemProrationSchema = import_v42.z.object({
|
|
17506
|
+
onIncrease: attachAddItemOnIncreaseSchema,
|
|
17507
|
+
onDecrease: attachAddItemOnDecreaseSchema
|
|
16315
17508
|
});
|
|
16316
|
-
var
|
|
16317
|
-
var
|
|
17509
|
+
var attachAddItemExpiryDurationTypeSchema = closedEnumSchema2;
|
|
17510
|
+
var attachAddItemRolloverSchema = import_v42.z.object({
|
|
16318
17511
|
max: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
16319
17512
|
maxPercentage: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
16320
|
-
expiryDurationType:
|
|
17513
|
+
expiryDurationType: attachAddItemExpiryDurationTypeSchema,
|
|
16321
17514
|
expiryDurationLength: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional()
|
|
16322
17515
|
});
|
|
16323
|
-
var
|
|
17516
|
+
var attachAddItemPlanItemSchema = import_v42.z.object({
|
|
16324
17517
|
featureId: import_v42.z.string(),
|
|
16325
17518
|
included: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
16326
17519
|
unlimited: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
16327
|
-
reset: import_v42.z.union([
|
|
16328
|
-
price: import_v42.z.union([
|
|
16329
|
-
proration: import_v42.z.union([
|
|
16330
|
-
rollover: import_v42.z.union([
|
|
17520
|
+
reset: import_v42.z.union([attachAddItemResetSchema, import_v42.z.undefined()]).optional(),
|
|
17521
|
+
price: import_v42.z.union([attachAddItemPriceSchema, import_v42.z.undefined()]).optional(),
|
|
17522
|
+
proration: import_v42.z.union([attachAddItemProrationSchema, import_v42.z.undefined()]).optional(),
|
|
17523
|
+
rollover: import_v42.z.union([attachAddItemRolloverSchema, import_v42.z.undefined()]).optional()
|
|
17524
|
+
});
|
|
17525
|
+
var attachRemoveItemBillingMethodSchema = closedEnumSchema2;
|
|
17526
|
+
var attachRemoveItemIntervalSchema = closedEnumSchema2;
|
|
17527
|
+
var attachPlanItemFilterSchema = import_v42.z.object({
|
|
17528
|
+
featureId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
17529
|
+
billingMethod: import_v42.z.union([attachRemoveItemBillingMethodSchema, import_v42.z.undefined()]).optional(),
|
|
17530
|
+
interval: import_v42.z.union([attachRemoveItemIntervalSchema, import_v42.z.undefined()]).optional()
|
|
16331
17531
|
});
|
|
16332
17532
|
var attachDurationTypeSchema = closedEnumSchema2;
|
|
16333
17533
|
var attachFreeTrialParamsSchema = import_v42.z.object({
|
|
@@ -16337,7 +17537,9 @@ var attachFreeTrialParamsSchema = import_v42.z.object({
|
|
|
16337
17537
|
});
|
|
16338
17538
|
var attachCustomizeSchema = import_v42.z.object({
|
|
16339
17539
|
price: import_v42.z.union([attachBasePriceSchema, import_v42.z.undefined()]).optional().nullable(),
|
|
16340
|
-
items: import_v42.z.union([import_v42.z.array(
|
|
17540
|
+
items: import_v42.z.union([import_v42.z.array(attachItemPlanItemSchema), import_v42.z.undefined()]).optional(),
|
|
17541
|
+
addItems: import_v42.z.union([import_v42.z.array(attachAddItemPlanItemSchema), import_v42.z.undefined()]).optional(),
|
|
17542
|
+
removeItems: import_v42.z.union([import_v42.z.array(attachPlanItemFilterSchema), import_v42.z.undefined()]).optional(),
|
|
16341
17543
|
freeTrial: import_v42.z.union([attachFreeTrialParamsSchema, import_v42.z.undefined()]).optional().nullable()
|
|
16342
17544
|
});
|
|
16343
17545
|
var attachProrationBehaviorSchema = closedEnumSchema2;
|
|
@@ -16360,6 +17562,7 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
16360
17562
|
billingCycleAnchor: import_v42.z.union([import_v42.z.literal("now"), import_v42.z.undefined()]).optional(),
|
|
16361
17563
|
planSchedule: import_v42.z.union([attachPlanScheduleSchema, import_v42.z.undefined()]).optional(),
|
|
16362
17564
|
startsAt: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
17565
|
+
endsAt: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
16363
17566
|
checkoutSessionParams: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.any()), import_v42.z.undefined()]).optional(),
|
|
16364
17567
|
customLineItems: import_v42.z.union([import_v42.z.array(attachCustomLineItemSchema), import_v42.z.undefined()]).optional(),
|
|
16365
17568
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
@@ -17001,8 +18204,14 @@ var previewAttachFeatureQuantityRequestSchema = import_v49.z.object({
|
|
|
17001
18204
|
quantity: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
17002
18205
|
adjustable: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
17003
18206
|
});
|
|
17004
|
-
var
|
|
17005
|
-
var
|
|
18207
|
+
var previewAttachItemToSchema = import_v49.z.union([import_v49.z.number(), import_v49.z.string()]);
|
|
18208
|
+
var previewAttachItemTierSchema = import_v49.z.object({
|
|
18209
|
+
to: import_v49.z.union([import_v49.z.number(), import_v49.z.string()]),
|
|
18210
|
+
amount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
18211
|
+
flatAmount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
18212
|
+
});
|
|
18213
|
+
var previewAttachAddItemToSchema = import_v49.z.union([import_v49.z.number(), import_v49.z.string()]);
|
|
18214
|
+
var previewAttachAddItemTierSchema = import_v49.z.object({
|
|
17006
18215
|
to: import_v49.z.union([import_v49.z.number(), import_v49.z.string()]),
|
|
17007
18216
|
amount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
17008
18217
|
flatAmount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
@@ -17109,19 +18318,64 @@ var previewAttachBasePriceOutboundSchema = import_v49.z.object({
|
|
|
17109
18318
|
interval: import_v49.z.string(),
|
|
17110
18319
|
interval_count: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
17111
18320
|
});
|
|
17112
|
-
var
|
|
18321
|
+
var previewAttachItemResetOutboundSchema = import_v49.z.object({
|
|
17113
18322
|
interval: import_v49.z.string(),
|
|
17114
18323
|
interval_count: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
17115
18324
|
});
|
|
17116
|
-
var
|
|
17117
|
-
|
|
18325
|
+
var previewAttachItemToOutboundSchema = import_v49.z.union([
|
|
18326
|
+
import_v49.z.number(),
|
|
18327
|
+
import_v49.z.string()
|
|
18328
|
+
]);
|
|
18329
|
+
var previewAttachItemTierOutboundSchema = import_v49.z.object({
|
|
18330
|
+
to: import_v49.z.union([import_v49.z.number(), import_v49.z.string()]),
|
|
18331
|
+
amount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
18332
|
+
flat_amount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
18333
|
+
});
|
|
18334
|
+
var previewAttachItemPriceOutboundSchema = import_v49.z.object({
|
|
18335
|
+
amount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
18336
|
+
tiers: import_v49.z.union([import_v49.z.array(previewAttachItemTierOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
18337
|
+
tier_behavior: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
18338
|
+
interval: import_v49.z.string(),
|
|
18339
|
+
interval_count: import_v49.z.number(),
|
|
18340
|
+
billing_units: import_v49.z.number(),
|
|
18341
|
+
billing_method: import_v49.z.string(),
|
|
18342
|
+
max_purchase: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
18343
|
+
});
|
|
18344
|
+
var previewAttachItemProrationOutboundSchema = import_v49.z.object({
|
|
18345
|
+
on_increase: import_v49.z.string(),
|
|
18346
|
+
on_decrease: import_v49.z.string()
|
|
18347
|
+
});
|
|
18348
|
+
var previewAttachItemRolloverOutboundSchema = import_v49.z.object({
|
|
18349
|
+
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
18350
|
+
max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
18351
|
+
expiry_duration_type: import_v49.z.string(),
|
|
18352
|
+
expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
18353
|
+
});
|
|
18354
|
+
var previewAttachItemPlanItemOutboundSchema = import_v49.z.object({
|
|
18355
|
+
feature_id: import_v49.z.string(),
|
|
18356
|
+
included: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
18357
|
+
unlimited: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
18358
|
+
reset: import_v49.z.union([previewAttachItemResetOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
18359
|
+
price: import_v49.z.union([previewAttachItemPriceOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
18360
|
+
proration: import_v49.z.union([previewAttachItemProrationOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
18361
|
+
rollover: import_v49.z.union([previewAttachItemRolloverOutboundSchema, import_v49.z.undefined()]).optional()
|
|
18362
|
+
});
|
|
18363
|
+
var previewAttachAddItemResetOutboundSchema = import_v49.z.object({
|
|
18364
|
+
interval: import_v49.z.string(),
|
|
18365
|
+
interval_count: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
18366
|
+
});
|
|
18367
|
+
var previewAttachAddItemToOutboundSchema = import_v49.z.union([
|
|
18368
|
+
import_v49.z.number(),
|
|
18369
|
+
import_v49.z.string()
|
|
18370
|
+
]);
|
|
18371
|
+
var previewAttachAddItemTierOutboundSchema = import_v49.z.object({
|
|
17118
18372
|
to: import_v49.z.union([import_v49.z.number(), import_v49.z.string()]),
|
|
17119
18373
|
amount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
17120
18374
|
flat_amount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
17121
18375
|
});
|
|
17122
|
-
var
|
|
18376
|
+
var previewAttachAddItemPriceOutboundSchema = import_v49.z.object({
|
|
17123
18377
|
amount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
17124
|
-
tiers: import_v49.z.union([import_v49.z.array(
|
|
18378
|
+
tiers: import_v49.z.union([import_v49.z.array(previewAttachAddItemTierOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
17125
18379
|
tier_behavior: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
17126
18380
|
interval: import_v49.z.string(),
|
|
17127
18381
|
interval_count: import_v49.z.number(),
|
|
@@ -17129,24 +18383,29 @@ var previewAttachPriceOutboundSchema = import_v49.z.object({
|
|
|
17129
18383
|
billing_method: import_v49.z.string(),
|
|
17130
18384
|
max_purchase: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
17131
18385
|
});
|
|
17132
|
-
var
|
|
18386
|
+
var previewAttachAddItemProrationOutboundSchema = import_v49.z.object({
|
|
17133
18387
|
on_increase: import_v49.z.string(),
|
|
17134
18388
|
on_decrease: import_v49.z.string()
|
|
17135
18389
|
});
|
|
17136
|
-
var
|
|
18390
|
+
var previewAttachAddItemRolloverOutboundSchema = import_v49.z.object({
|
|
17137
18391
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
17138
18392
|
max_percentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
17139
18393
|
expiry_duration_type: import_v49.z.string(),
|
|
17140
18394
|
expiry_duration_length: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
17141
18395
|
});
|
|
17142
|
-
var
|
|
18396
|
+
var previewAttachAddItemPlanItemOutboundSchema = import_v49.z.object({
|
|
17143
18397
|
feature_id: import_v49.z.string(),
|
|
17144
18398
|
included: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
17145
18399
|
unlimited: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
17146
|
-
reset: import_v49.z.union([
|
|
17147
|
-
price: import_v49.z.union([
|
|
17148
|
-
proration: import_v49.z.union([
|
|
17149
|
-
rollover: import_v49.z.union([
|
|
18400
|
+
reset: import_v49.z.union([previewAttachAddItemResetOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
18401
|
+
price: import_v49.z.union([previewAttachAddItemPriceOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
18402
|
+
proration: import_v49.z.union([previewAttachAddItemProrationOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
18403
|
+
rollover: import_v49.z.union([previewAttachAddItemRolloverOutboundSchema, import_v49.z.undefined()]).optional()
|
|
18404
|
+
});
|
|
18405
|
+
var previewAttachPlanItemFilterOutboundSchema = import_v49.z.object({
|
|
18406
|
+
feature_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
18407
|
+
billing_method: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
18408
|
+
interval: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
|
|
17150
18409
|
});
|
|
17151
18410
|
var previewAttachFreeTrialParamsOutboundSchema = import_v49.z.object({
|
|
17152
18411
|
duration_length: import_v49.z.number(),
|
|
@@ -17155,7 +18414,9 @@ var previewAttachFreeTrialParamsOutboundSchema = import_v49.z.object({
|
|
|
17155
18414
|
});
|
|
17156
18415
|
var previewAttachCustomizeOutboundSchema = import_v49.z.object({
|
|
17157
18416
|
price: import_v49.z.union([previewAttachBasePriceOutboundSchema, import_v49.z.undefined()]).optional().nullable(),
|
|
17158
|
-
items: import_v49.z.union([import_v49.z.array(
|
|
18417
|
+
items: import_v49.z.union([import_v49.z.array(previewAttachItemPlanItemOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
18418
|
+
add_items: import_v49.z.union([import_v49.z.array(previewAttachAddItemPlanItemOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
18419
|
+
remove_items: import_v49.z.union([import_v49.z.array(previewAttachPlanItemFilterOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
17159
18420
|
free_trial: import_v49.z.union([previewAttachFreeTrialParamsOutboundSchema, import_v49.z.undefined()]).optional().nullable()
|
|
17160
18421
|
});
|
|
17161
18422
|
var previewAttachInvoiceModeOutboundSchema = import_v49.z.object({
|
|
@@ -17199,6 +18460,7 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
17199
18460
|
billing_cycle_anchor: import_v49.z.union([import_v49.z.literal("now"), import_v49.z.undefined()]).optional(),
|
|
17200
18461
|
plan_schedule: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
17201
18462
|
starts_at: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
18463
|
+
ends_at: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
17202
18464
|
checkout_session_params: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.any()), import_v49.z.undefined()]).optional(),
|
|
17203
18465
|
custom_line_items: import_v49.z.union([import_v49.z.array(previewAttachCustomLineItemOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
17204
18466
|
processor_subscription_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
@@ -17217,45 +18479,92 @@ var previewAttachBasePriceSchema = import_v49.z.object({
|
|
|
17217
18479
|
interval: previewAttachPriceIntervalSchema,
|
|
17218
18480
|
intervalCount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
17219
18481
|
});
|
|
17220
|
-
var
|
|
17221
|
-
var
|
|
17222
|
-
interval:
|
|
18482
|
+
var previewAttachItemResetIntervalSchema = closedEnumSchema5;
|
|
18483
|
+
var previewAttachItemResetSchema = import_v49.z.object({
|
|
18484
|
+
interval: previewAttachItemResetIntervalSchema,
|
|
17223
18485
|
intervalCount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
17224
18486
|
});
|
|
17225
|
-
var
|
|
18487
|
+
var previewAttachItemTierBehaviorSchema = closedEnumSchema5;
|
|
17226
18488
|
var previewAttachItemPriceIntervalSchema = closedEnumSchema5;
|
|
17227
|
-
var
|
|
17228
|
-
var
|
|
18489
|
+
var previewAttachItemBillingMethodSchema = closedEnumSchema5;
|
|
18490
|
+
var previewAttachItemPriceSchema = import_v49.z.object({
|
|
17229
18491
|
amount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
17230
|
-
tiers: import_v49.z.union([import_v49.z.array(
|
|
17231
|
-
tierBehavior: import_v49.z.union([
|
|
18492
|
+
tiers: import_v49.z.union([import_v49.z.array(previewAttachItemTierSchema), import_v49.z.undefined()]).optional(),
|
|
18493
|
+
tierBehavior: import_v49.z.union([previewAttachItemTierBehaviorSchema, import_v49.z.undefined()]).optional(),
|
|
17232
18494
|
interval: previewAttachItemPriceIntervalSchema,
|
|
17233
18495
|
intervalCount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
17234
18496
|
billingUnits: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
17235
|
-
billingMethod:
|
|
18497
|
+
billingMethod: previewAttachItemBillingMethodSchema,
|
|
18498
|
+
maxPurchase: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
18499
|
+
});
|
|
18500
|
+
var previewAttachItemOnIncreaseSchema = closedEnumSchema5;
|
|
18501
|
+
var previewAttachItemOnDecreaseSchema = closedEnumSchema5;
|
|
18502
|
+
var previewAttachItemProrationSchema = import_v49.z.object({
|
|
18503
|
+
onIncrease: previewAttachItemOnIncreaseSchema,
|
|
18504
|
+
onDecrease: previewAttachItemOnDecreaseSchema
|
|
18505
|
+
});
|
|
18506
|
+
var previewAttachItemExpiryDurationTypeSchema = closedEnumSchema5;
|
|
18507
|
+
var previewAttachItemRolloverSchema = import_v49.z.object({
|
|
18508
|
+
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
18509
|
+
maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
18510
|
+
expiryDurationType: previewAttachItemExpiryDurationTypeSchema,
|
|
18511
|
+
expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
18512
|
+
});
|
|
18513
|
+
var previewAttachItemPlanItemSchema = import_v49.z.object({
|
|
18514
|
+
featureId: import_v49.z.string(),
|
|
18515
|
+
included: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
18516
|
+
unlimited: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
18517
|
+
reset: import_v49.z.union([previewAttachItemResetSchema, import_v49.z.undefined()]).optional(),
|
|
18518
|
+
price: import_v49.z.union([previewAttachItemPriceSchema, import_v49.z.undefined()]).optional(),
|
|
18519
|
+
proration: import_v49.z.union([previewAttachItemProrationSchema, import_v49.z.undefined()]).optional(),
|
|
18520
|
+
rollover: import_v49.z.union([previewAttachItemRolloverSchema, import_v49.z.undefined()]).optional()
|
|
18521
|
+
});
|
|
18522
|
+
var previewAttachAddItemResetIntervalSchema = closedEnumSchema5;
|
|
18523
|
+
var previewAttachAddItemResetSchema = import_v49.z.object({
|
|
18524
|
+
interval: previewAttachAddItemResetIntervalSchema,
|
|
18525
|
+
intervalCount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
18526
|
+
});
|
|
18527
|
+
var previewAttachAddItemTierBehaviorSchema = closedEnumSchema5;
|
|
18528
|
+
var previewAttachAddItemPriceIntervalSchema = closedEnumSchema5;
|
|
18529
|
+
var previewAttachAddItemBillingMethodSchema = closedEnumSchema5;
|
|
18530
|
+
var previewAttachAddItemPriceSchema = import_v49.z.object({
|
|
18531
|
+
amount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
18532
|
+
tiers: import_v49.z.union([import_v49.z.array(previewAttachAddItemTierSchema), import_v49.z.undefined()]).optional(),
|
|
18533
|
+
tierBehavior: import_v49.z.union([previewAttachAddItemTierBehaviorSchema, import_v49.z.undefined()]).optional(),
|
|
18534
|
+
interval: previewAttachAddItemPriceIntervalSchema,
|
|
18535
|
+
intervalCount: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
18536
|
+
billingUnits: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
18537
|
+
billingMethod: previewAttachAddItemBillingMethodSchema,
|
|
17236
18538
|
maxPurchase: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
17237
18539
|
});
|
|
17238
|
-
var
|
|
17239
|
-
var
|
|
17240
|
-
var
|
|
17241
|
-
onIncrease:
|
|
17242
|
-
onDecrease:
|
|
18540
|
+
var previewAttachAddItemOnIncreaseSchema = closedEnumSchema5;
|
|
18541
|
+
var previewAttachAddItemOnDecreaseSchema = closedEnumSchema5;
|
|
18542
|
+
var previewAttachAddItemProrationSchema = import_v49.z.object({
|
|
18543
|
+
onIncrease: previewAttachAddItemOnIncreaseSchema,
|
|
18544
|
+
onDecrease: previewAttachAddItemOnDecreaseSchema
|
|
17243
18545
|
});
|
|
17244
|
-
var
|
|
17245
|
-
var
|
|
18546
|
+
var previewAttachAddItemExpiryDurationTypeSchema = closedEnumSchema5;
|
|
18547
|
+
var previewAttachAddItemRolloverSchema = import_v49.z.object({
|
|
17246
18548
|
max: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
17247
18549
|
maxPercentage: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
17248
|
-
expiryDurationType:
|
|
18550
|
+
expiryDurationType: previewAttachAddItemExpiryDurationTypeSchema,
|
|
17249
18551
|
expiryDurationLength: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional()
|
|
17250
18552
|
});
|
|
17251
|
-
var
|
|
18553
|
+
var previewAttachAddItemPlanItemSchema = import_v49.z.object({
|
|
17252
18554
|
featureId: import_v49.z.string(),
|
|
17253
18555
|
included: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
17254
18556
|
unlimited: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
17255
|
-
reset: import_v49.z.union([
|
|
17256
|
-
price: import_v49.z.union([
|
|
17257
|
-
proration: import_v49.z.union([
|
|
17258
|
-
rollover: import_v49.z.union([
|
|
18557
|
+
reset: import_v49.z.union([previewAttachAddItemResetSchema, import_v49.z.undefined()]).optional(),
|
|
18558
|
+
price: import_v49.z.union([previewAttachAddItemPriceSchema, import_v49.z.undefined()]).optional(),
|
|
18559
|
+
proration: import_v49.z.union([previewAttachAddItemProrationSchema, import_v49.z.undefined()]).optional(),
|
|
18560
|
+
rollover: import_v49.z.union([previewAttachAddItemRolloverSchema, import_v49.z.undefined()]).optional()
|
|
18561
|
+
});
|
|
18562
|
+
var previewAttachRemoveItemBillingMethodSchema = closedEnumSchema5;
|
|
18563
|
+
var previewAttachRemoveItemIntervalSchema = closedEnumSchema5;
|
|
18564
|
+
var previewAttachPlanItemFilterSchema = import_v49.z.object({
|
|
18565
|
+
featureId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
18566
|
+
billingMethod: import_v49.z.union([previewAttachRemoveItemBillingMethodSchema, import_v49.z.undefined()]).optional(),
|
|
18567
|
+
interval: import_v49.z.union([previewAttachRemoveItemIntervalSchema, import_v49.z.undefined()]).optional()
|
|
17259
18568
|
});
|
|
17260
18569
|
var previewAttachDurationTypeSchema = closedEnumSchema5;
|
|
17261
18570
|
var previewAttachFreeTrialParamsSchema = import_v49.z.object({
|
|
@@ -17265,7 +18574,9 @@ var previewAttachFreeTrialParamsSchema = import_v49.z.object({
|
|
|
17265
18574
|
});
|
|
17266
18575
|
var previewAttachCustomizeSchema = import_v49.z.object({
|
|
17267
18576
|
price: import_v49.z.union([previewAttachBasePriceSchema, import_v49.z.undefined()]).optional().nullable(),
|
|
17268
|
-
items: import_v49.z.union([import_v49.z.array(
|
|
18577
|
+
items: import_v49.z.union([import_v49.z.array(previewAttachItemPlanItemSchema), import_v49.z.undefined()]).optional(),
|
|
18578
|
+
addItems: import_v49.z.union([import_v49.z.array(previewAttachAddItemPlanItemSchema), import_v49.z.undefined()]).optional(),
|
|
18579
|
+
removeItems: import_v49.z.union([import_v49.z.array(previewAttachPlanItemFilterSchema), import_v49.z.undefined()]).optional(),
|
|
17269
18580
|
freeTrial: import_v49.z.union([previewAttachFreeTrialParamsSchema, import_v49.z.undefined()]).optional().nullable()
|
|
17270
18581
|
});
|
|
17271
18582
|
var previewAttachProrationBehaviorSchema = closedEnumSchema5;
|
|
@@ -17288,6 +18599,7 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
17288
18599
|
billingCycleAnchor: import_v49.z.union([import_v49.z.literal("now"), import_v49.z.undefined()]).optional(),
|
|
17289
18600
|
planSchedule: import_v49.z.union([previewAttachPlanScheduleSchema, import_v49.z.undefined()]).optional(),
|
|
17290
18601
|
startsAt: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
18602
|
+
endsAt: import_v49.z.union([import_v49.z.number(), import_v49.z.undefined()]).optional(),
|
|
17291
18603
|
checkoutSessionParams: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.any()), import_v49.z.undefined()]).optional(),
|
|
17292
18604
|
customLineItems: import_v49.z.union([import_v49.z.array(previewAttachCustomLineItemSchema), import_v49.z.undefined()]).optional(),
|
|
17293
18605
|
processorSubscriptionId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
@@ -17726,8 +19038,14 @@ var previewUpdateFeatureQuantityRequestSchema = import_v411.z.object({
|
|
|
17726
19038
|
quantity: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
17727
19039
|
adjustable: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional()
|
|
17728
19040
|
});
|
|
17729
|
-
var
|
|
17730
|
-
var
|
|
19041
|
+
var previewUpdateItemToSchema = import_v411.z.union([import_v411.z.number(), import_v411.z.string()]);
|
|
19042
|
+
var previewUpdateItemTierSchema = import_v411.z.object({
|
|
19043
|
+
to: import_v411.z.union([import_v411.z.number(), import_v411.z.string()]),
|
|
19044
|
+
amount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
19045
|
+
flatAmount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
19046
|
+
});
|
|
19047
|
+
var previewUpdateAddItemToSchema = import_v411.z.union([import_v411.z.number(), import_v411.z.string()]);
|
|
19048
|
+
var previewUpdateAddItemTierSchema = import_v411.z.object({
|
|
17731
19049
|
to: import_v411.z.union([import_v411.z.number(), import_v411.z.string()]),
|
|
17732
19050
|
amount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
17733
19051
|
flatAmount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
@@ -17825,19 +19143,64 @@ var previewUpdateBasePriceOutboundSchema = import_v411.z.object({
|
|
|
17825
19143
|
interval: import_v411.z.string(),
|
|
17826
19144
|
interval_count: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
17827
19145
|
});
|
|
17828
|
-
var
|
|
19146
|
+
var previewUpdateItemResetOutboundSchema = import_v411.z.object({
|
|
19147
|
+
interval: import_v411.z.string(),
|
|
19148
|
+
interval_count: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
19149
|
+
});
|
|
19150
|
+
var previewUpdateItemToOutboundSchema = import_v411.z.union([
|
|
19151
|
+
import_v411.z.number(),
|
|
19152
|
+
import_v411.z.string()
|
|
19153
|
+
]);
|
|
19154
|
+
var previewUpdateItemTierOutboundSchema = import_v411.z.object({
|
|
19155
|
+
to: import_v411.z.union([import_v411.z.number(), import_v411.z.string()]),
|
|
19156
|
+
amount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
19157
|
+
flat_amount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
19158
|
+
});
|
|
19159
|
+
var previewUpdateItemPriceOutboundSchema = import_v411.z.object({
|
|
19160
|
+
amount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
19161
|
+
tiers: import_v411.z.union([import_v411.z.array(previewUpdateItemTierOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
19162
|
+
tier_behavior: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
19163
|
+
interval: import_v411.z.string(),
|
|
19164
|
+
interval_count: import_v411.z.number(),
|
|
19165
|
+
billing_units: import_v411.z.number(),
|
|
19166
|
+
billing_method: import_v411.z.string(),
|
|
19167
|
+
max_purchase: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
19168
|
+
});
|
|
19169
|
+
var previewUpdateItemProrationOutboundSchema = import_v411.z.object({
|
|
19170
|
+
on_increase: import_v411.z.string(),
|
|
19171
|
+
on_decrease: import_v411.z.string()
|
|
19172
|
+
});
|
|
19173
|
+
var previewUpdateItemRolloverOutboundSchema = import_v411.z.object({
|
|
19174
|
+
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
19175
|
+
max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
19176
|
+
expiry_duration_type: import_v411.z.string(),
|
|
19177
|
+
expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
19178
|
+
});
|
|
19179
|
+
var previewUpdateItemPlanItemOutboundSchema = import_v411.z.object({
|
|
19180
|
+
feature_id: import_v411.z.string(),
|
|
19181
|
+
included: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
19182
|
+
unlimited: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
19183
|
+
reset: import_v411.z.union([previewUpdateItemResetOutboundSchema, import_v411.z.undefined()]).optional(),
|
|
19184
|
+
price: import_v411.z.union([previewUpdateItemPriceOutboundSchema, import_v411.z.undefined()]).optional(),
|
|
19185
|
+
proration: import_v411.z.union([previewUpdateItemProrationOutboundSchema, import_v411.z.undefined()]).optional(),
|
|
19186
|
+
rollover: import_v411.z.union([previewUpdateItemRolloverOutboundSchema, import_v411.z.undefined()]).optional()
|
|
19187
|
+
});
|
|
19188
|
+
var previewUpdateAddItemResetOutboundSchema = import_v411.z.object({
|
|
17829
19189
|
interval: import_v411.z.string(),
|
|
17830
19190
|
interval_count: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
17831
19191
|
});
|
|
17832
|
-
var
|
|
17833
|
-
|
|
19192
|
+
var previewUpdateAddItemToOutboundSchema = import_v411.z.union([
|
|
19193
|
+
import_v411.z.number(),
|
|
19194
|
+
import_v411.z.string()
|
|
19195
|
+
]);
|
|
19196
|
+
var previewUpdateAddItemTierOutboundSchema = import_v411.z.object({
|
|
17834
19197
|
to: import_v411.z.union([import_v411.z.number(), import_v411.z.string()]),
|
|
17835
19198
|
amount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
17836
19199
|
flat_amount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
17837
19200
|
});
|
|
17838
|
-
var
|
|
19201
|
+
var previewUpdateAddItemPriceOutboundSchema = import_v411.z.object({
|
|
17839
19202
|
amount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
17840
|
-
tiers: import_v411.z.union([import_v411.z.array(
|
|
19203
|
+
tiers: import_v411.z.union([import_v411.z.array(previewUpdateAddItemTierOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
17841
19204
|
tier_behavior: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
17842
19205
|
interval: import_v411.z.string(),
|
|
17843
19206
|
interval_count: import_v411.z.number(),
|
|
@@ -17845,24 +19208,29 @@ var previewUpdatePriceOutboundSchema = import_v411.z.object({
|
|
|
17845
19208
|
billing_method: import_v411.z.string(),
|
|
17846
19209
|
max_purchase: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
17847
19210
|
});
|
|
17848
|
-
var
|
|
19211
|
+
var previewUpdateAddItemProrationOutboundSchema = import_v411.z.object({
|
|
17849
19212
|
on_increase: import_v411.z.string(),
|
|
17850
19213
|
on_decrease: import_v411.z.string()
|
|
17851
19214
|
});
|
|
17852
|
-
var
|
|
19215
|
+
var previewUpdateAddItemRolloverOutboundSchema = import_v411.z.object({
|
|
17853
19216
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
17854
19217
|
max_percentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
17855
19218
|
expiry_duration_type: import_v411.z.string(),
|
|
17856
19219
|
expiry_duration_length: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
17857
19220
|
});
|
|
17858
|
-
var
|
|
19221
|
+
var previewUpdateAddItemPlanItemOutboundSchema = import_v411.z.object({
|
|
17859
19222
|
feature_id: import_v411.z.string(),
|
|
17860
19223
|
included: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
17861
19224
|
unlimited: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
17862
|
-
reset: import_v411.z.union([
|
|
17863
|
-
price: import_v411.z.union([
|
|
17864
|
-
proration: import_v411.z.union([
|
|
17865
|
-
rollover: import_v411.z.union([
|
|
19225
|
+
reset: import_v411.z.union([previewUpdateAddItemResetOutboundSchema, import_v411.z.undefined()]).optional(),
|
|
19226
|
+
price: import_v411.z.union([previewUpdateAddItemPriceOutboundSchema, import_v411.z.undefined()]).optional(),
|
|
19227
|
+
proration: import_v411.z.union([previewUpdateAddItemProrationOutboundSchema, import_v411.z.undefined()]).optional(),
|
|
19228
|
+
rollover: import_v411.z.union([previewUpdateAddItemRolloverOutboundSchema, import_v411.z.undefined()]).optional()
|
|
19229
|
+
});
|
|
19230
|
+
var previewUpdatePlanItemFilterOutboundSchema = import_v411.z.object({
|
|
19231
|
+
feature_id: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
19232
|
+
billing_method: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
19233
|
+
interval: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
|
|
17866
19234
|
});
|
|
17867
19235
|
var previewUpdateFreeTrialParamsOutboundSchema = import_v411.z.object({
|
|
17868
19236
|
duration_length: import_v411.z.number(),
|
|
@@ -17871,7 +19239,9 @@ var previewUpdateFreeTrialParamsOutboundSchema = import_v411.z.object({
|
|
|
17871
19239
|
});
|
|
17872
19240
|
var previewUpdateCustomizeOutboundSchema = import_v411.z.object({
|
|
17873
19241
|
price: import_v411.z.union([previewUpdateBasePriceOutboundSchema, import_v411.z.undefined()]).optional().nullable(),
|
|
17874
|
-
items: import_v411.z.union([import_v411.z.array(
|
|
19242
|
+
items: import_v411.z.union([import_v411.z.array(previewUpdateItemPlanItemOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
19243
|
+
add_items: import_v411.z.union([import_v411.z.array(previewUpdateAddItemPlanItemOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
19244
|
+
remove_items: import_v411.z.union([import_v411.z.array(previewUpdatePlanItemFilterOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
17875
19245
|
free_trial: import_v411.z.union([previewUpdateFreeTrialParamsOutboundSchema, import_v411.z.undefined()]).optional().nullable()
|
|
17876
19246
|
});
|
|
17877
19247
|
var previewUpdateInvoiceModeOutboundSchema = import_v411.z.object({
|
|
@@ -17915,45 +19285,92 @@ var previewUpdateBasePriceSchema = import_v411.z.object({
|
|
|
17915
19285
|
interval: previewUpdatePriceIntervalSchema,
|
|
17916
19286
|
intervalCount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
17917
19287
|
});
|
|
17918
|
-
var
|
|
17919
|
-
var
|
|
17920
|
-
interval:
|
|
19288
|
+
var previewUpdateItemResetIntervalSchema = closedEnumSchema7;
|
|
19289
|
+
var previewUpdateItemResetSchema = import_v411.z.object({
|
|
19290
|
+
interval: previewUpdateItemResetIntervalSchema,
|
|
17921
19291
|
intervalCount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
17922
19292
|
});
|
|
17923
|
-
var
|
|
19293
|
+
var previewUpdateItemTierBehaviorSchema = closedEnumSchema7;
|
|
17924
19294
|
var previewUpdateItemPriceIntervalSchema = closedEnumSchema7;
|
|
17925
|
-
var
|
|
17926
|
-
var
|
|
19295
|
+
var previewUpdateItemBillingMethodSchema = closedEnumSchema7;
|
|
19296
|
+
var previewUpdateItemPriceSchema = import_v411.z.object({
|
|
17927
19297
|
amount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
17928
|
-
tiers: import_v411.z.union([import_v411.z.array(
|
|
17929
|
-
tierBehavior: import_v411.z.union([
|
|
19298
|
+
tiers: import_v411.z.union([import_v411.z.array(previewUpdateItemTierSchema), import_v411.z.undefined()]).optional(),
|
|
19299
|
+
tierBehavior: import_v411.z.union([previewUpdateItemTierBehaviorSchema, import_v411.z.undefined()]).optional(),
|
|
17930
19300
|
interval: previewUpdateItemPriceIntervalSchema,
|
|
17931
19301
|
intervalCount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
17932
19302
|
billingUnits: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
17933
|
-
billingMethod:
|
|
19303
|
+
billingMethod: previewUpdateItemBillingMethodSchema,
|
|
19304
|
+
maxPurchase: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
19305
|
+
});
|
|
19306
|
+
var previewUpdateItemOnIncreaseSchema = closedEnumSchema7;
|
|
19307
|
+
var previewUpdateItemOnDecreaseSchema = closedEnumSchema7;
|
|
19308
|
+
var previewUpdateItemProrationSchema = import_v411.z.object({
|
|
19309
|
+
onIncrease: previewUpdateItemOnIncreaseSchema,
|
|
19310
|
+
onDecrease: previewUpdateItemOnDecreaseSchema
|
|
19311
|
+
});
|
|
19312
|
+
var previewUpdateItemExpiryDurationTypeSchema = closedEnumSchema7;
|
|
19313
|
+
var previewUpdateItemRolloverSchema = import_v411.z.object({
|
|
19314
|
+
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
19315
|
+
maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
19316
|
+
expiryDurationType: previewUpdateItemExpiryDurationTypeSchema,
|
|
19317
|
+
expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
19318
|
+
});
|
|
19319
|
+
var previewUpdateItemPlanItemSchema = import_v411.z.object({
|
|
19320
|
+
featureId: import_v411.z.string(),
|
|
19321
|
+
included: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
19322
|
+
unlimited: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
19323
|
+
reset: import_v411.z.union([previewUpdateItemResetSchema, import_v411.z.undefined()]).optional(),
|
|
19324
|
+
price: import_v411.z.union([previewUpdateItemPriceSchema, import_v411.z.undefined()]).optional(),
|
|
19325
|
+
proration: import_v411.z.union([previewUpdateItemProrationSchema, import_v411.z.undefined()]).optional(),
|
|
19326
|
+
rollover: import_v411.z.union([previewUpdateItemRolloverSchema, import_v411.z.undefined()]).optional()
|
|
19327
|
+
});
|
|
19328
|
+
var previewUpdateAddItemResetIntervalSchema = closedEnumSchema7;
|
|
19329
|
+
var previewUpdateAddItemResetSchema = import_v411.z.object({
|
|
19330
|
+
interval: previewUpdateAddItemResetIntervalSchema,
|
|
19331
|
+
intervalCount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
19332
|
+
});
|
|
19333
|
+
var previewUpdateAddItemTierBehaviorSchema = closedEnumSchema7;
|
|
19334
|
+
var previewUpdateAddItemPriceIntervalSchema = closedEnumSchema7;
|
|
19335
|
+
var previewUpdateAddItemBillingMethodSchema = closedEnumSchema7;
|
|
19336
|
+
var previewUpdateAddItemPriceSchema = import_v411.z.object({
|
|
19337
|
+
amount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
19338
|
+
tiers: import_v411.z.union([import_v411.z.array(previewUpdateAddItemTierSchema), import_v411.z.undefined()]).optional(),
|
|
19339
|
+
tierBehavior: import_v411.z.union([previewUpdateAddItemTierBehaviorSchema, import_v411.z.undefined()]).optional(),
|
|
19340
|
+
interval: previewUpdateAddItemPriceIntervalSchema,
|
|
19341
|
+
intervalCount: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
19342
|
+
billingUnits: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
19343
|
+
billingMethod: previewUpdateAddItemBillingMethodSchema,
|
|
17934
19344
|
maxPurchase: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
17935
19345
|
});
|
|
17936
|
-
var
|
|
17937
|
-
var
|
|
17938
|
-
var
|
|
17939
|
-
onIncrease:
|
|
17940
|
-
onDecrease:
|
|
19346
|
+
var previewUpdateAddItemOnIncreaseSchema = closedEnumSchema7;
|
|
19347
|
+
var previewUpdateAddItemOnDecreaseSchema = closedEnumSchema7;
|
|
19348
|
+
var previewUpdateAddItemProrationSchema = import_v411.z.object({
|
|
19349
|
+
onIncrease: previewUpdateAddItemOnIncreaseSchema,
|
|
19350
|
+
onDecrease: previewUpdateAddItemOnDecreaseSchema
|
|
17941
19351
|
});
|
|
17942
|
-
var
|
|
17943
|
-
var
|
|
19352
|
+
var previewUpdateAddItemExpiryDurationTypeSchema = closedEnumSchema7;
|
|
19353
|
+
var previewUpdateAddItemRolloverSchema = import_v411.z.object({
|
|
17944
19354
|
max: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
17945
19355
|
maxPercentage: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
17946
|
-
expiryDurationType:
|
|
19356
|
+
expiryDurationType: previewUpdateAddItemExpiryDurationTypeSchema,
|
|
17947
19357
|
expiryDurationLength: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional()
|
|
17948
19358
|
});
|
|
17949
|
-
var
|
|
19359
|
+
var previewUpdateAddItemPlanItemSchema = import_v411.z.object({
|
|
17950
19360
|
featureId: import_v411.z.string(),
|
|
17951
19361
|
included: import_v411.z.union([import_v411.z.number(), import_v411.z.undefined()]).optional(),
|
|
17952
19362
|
unlimited: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
17953
|
-
reset: import_v411.z.union([
|
|
17954
|
-
price: import_v411.z.union([
|
|
17955
|
-
proration: import_v411.z.union([
|
|
17956
|
-
rollover: import_v411.z.union([
|
|
19363
|
+
reset: import_v411.z.union([previewUpdateAddItemResetSchema, import_v411.z.undefined()]).optional(),
|
|
19364
|
+
price: import_v411.z.union([previewUpdateAddItemPriceSchema, import_v411.z.undefined()]).optional(),
|
|
19365
|
+
proration: import_v411.z.union([previewUpdateAddItemProrationSchema, import_v411.z.undefined()]).optional(),
|
|
19366
|
+
rollover: import_v411.z.union([previewUpdateAddItemRolloverSchema, import_v411.z.undefined()]).optional()
|
|
19367
|
+
});
|
|
19368
|
+
var previewUpdateRemoveItemBillingMethodSchema = closedEnumSchema7;
|
|
19369
|
+
var previewUpdateRemoveItemIntervalSchema = closedEnumSchema7;
|
|
19370
|
+
var previewUpdatePlanItemFilterSchema = import_v411.z.object({
|
|
19371
|
+
featureId: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
19372
|
+
billingMethod: import_v411.z.union([previewUpdateRemoveItemBillingMethodSchema, import_v411.z.undefined()]).optional(),
|
|
19373
|
+
interval: import_v411.z.union([previewUpdateRemoveItemIntervalSchema, import_v411.z.undefined()]).optional()
|
|
17957
19374
|
});
|
|
17958
19375
|
var previewUpdateDurationTypeSchema = closedEnumSchema7;
|
|
17959
19376
|
var previewUpdateFreeTrialParamsSchema = import_v411.z.object({
|
|
@@ -17963,7 +19380,9 @@ var previewUpdateFreeTrialParamsSchema = import_v411.z.object({
|
|
|
17963
19380
|
});
|
|
17964
19381
|
var previewUpdateCustomizeSchema = import_v411.z.object({
|
|
17965
19382
|
price: import_v411.z.union([previewUpdateBasePriceSchema, import_v411.z.undefined()]).optional().nullable(),
|
|
17966
|
-
items: import_v411.z.union([import_v411.z.array(
|
|
19383
|
+
items: import_v411.z.union([import_v411.z.array(previewUpdateItemPlanItemSchema), import_v411.z.undefined()]).optional(),
|
|
19384
|
+
addItems: import_v411.z.union([import_v411.z.array(previewUpdateAddItemPlanItemSchema), import_v411.z.undefined()]).optional(),
|
|
19385
|
+
removeItems: import_v411.z.union([import_v411.z.array(previewUpdatePlanItemFilterSchema), import_v411.z.undefined()]).optional(),
|
|
17967
19386
|
freeTrial: import_v411.z.union([previewUpdateFreeTrialParamsSchema, import_v411.z.undefined()]).optional().nullable()
|
|
17968
19387
|
});
|
|
17969
19388
|
var previewUpdateProrationBehaviorSchema = closedEnumSchema7;
|
|
@@ -18055,8 +19474,14 @@ var setupPaymentFeatureQuantitySchema = import_v413.z.object({
|
|
|
18055
19474
|
quantity: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
18056
19475
|
adjustable: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
18057
19476
|
});
|
|
18058
|
-
var
|
|
18059
|
-
var
|
|
19477
|
+
var setupPaymentItemToSchema = import_v413.z.union([import_v413.z.number(), import_v413.z.string()]);
|
|
19478
|
+
var setupPaymentItemTierSchema = import_v413.z.object({
|
|
19479
|
+
to: import_v413.z.union([import_v413.z.number(), import_v413.z.string()]),
|
|
19480
|
+
amount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
19481
|
+
flatAmount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
19482
|
+
});
|
|
19483
|
+
var setupPaymentAddItemToSchema = import_v413.z.union([import_v413.z.number(), import_v413.z.string()]);
|
|
19484
|
+
var setupPaymentAddItemTierSchema = import_v413.z.object({
|
|
18060
19485
|
to: import_v413.z.union([import_v413.z.number(), import_v413.z.string()]),
|
|
18061
19486
|
amount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
18062
19487
|
flatAmount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
@@ -18092,19 +19517,64 @@ var setupPaymentBasePriceOutboundSchema = import_v413.z.object({
|
|
|
18092
19517
|
interval: import_v413.z.string(),
|
|
18093
19518
|
interval_count: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
18094
19519
|
});
|
|
18095
|
-
var
|
|
19520
|
+
var setupPaymentItemResetOutboundSchema = import_v413.z.object({
|
|
19521
|
+
interval: import_v413.z.string(),
|
|
19522
|
+
interval_count: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
19523
|
+
});
|
|
19524
|
+
var setupPaymentItemToOutboundSchema = import_v413.z.union([
|
|
19525
|
+
import_v413.z.number(),
|
|
19526
|
+
import_v413.z.string()
|
|
19527
|
+
]);
|
|
19528
|
+
var setupPaymentItemTierOutboundSchema = import_v413.z.object({
|
|
19529
|
+
to: import_v413.z.union([import_v413.z.number(), import_v413.z.string()]),
|
|
19530
|
+
amount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
19531
|
+
flat_amount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
19532
|
+
});
|
|
19533
|
+
var setupPaymentItemPriceOutboundSchema = import_v413.z.object({
|
|
19534
|
+
amount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
19535
|
+
tiers: import_v413.z.union([import_v413.z.array(setupPaymentItemTierOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
19536
|
+
tier_behavior: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
19537
|
+
interval: import_v413.z.string(),
|
|
19538
|
+
interval_count: import_v413.z.number(),
|
|
19539
|
+
billing_units: import_v413.z.number(),
|
|
19540
|
+
billing_method: import_v413.z.string(),
|
|
19541
|
+
max_purchase: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
19542
|
+
});
|
|
19543
|
+
var setupPaymentItemProrationOutboundSchema = import_v413.z.object({
|
|
19544
|
+
on_increase: import_v413.z.string(),
|
|
19545
|
+
on_decrease: import_v413.z.string()
|
|
19546
|
+
});
|
|
19547
|
+
var setupPaymentItemRolloverOutboundSchema = import_v413.z.object({
|
|
19548
|
+
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
19549
|
+
max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
19550
|
+
expiry_duration_type: import_v413.z.string(),
|
|
19551
|
+
expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
19552
|
+
});
|
|
19553
|
+
var setupPaymentItemPlanItemOutboundSchema = import_v413.z.object({
|
|
19554
|
+
feature_id: import_v413.z.string(),
|
|
19555
|
+
included: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
19556
|
+
unlimited: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
19557
|
+
reset: import_v413.z.union([setupPaymentItemResetOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
19558
|
+
price: import_v413.z.union([setupPaymentItemPriceOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
19559
|
+
proration: import_v413.z.union([setupPaymentItemProrationOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
19560
|
+
rollover: import_v413.z.union([setupPaymentItemRolloverOutboundSchema, import_v413.z.undefined()]).optional()
|
|
19561
|
+
});
|
|
19562
|
+
var setupPaymentAddItemResetOutboundSchema = import_v413.z.object({
|
|
18096
19563
|
interval: import_v413.z.string(),
|
|
18097
19564
|
interval_count: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
18098
19565
|
});
|
|
18099
|
-
var
|
|
18100
|
-
|
|
19566
|
+
var setupPaymentAddItemToOutboundSchema = import_v413.z.union([
|
|
19567
|
+
import_v413.z.number(),
|
|
19568
|
+
import_v413.z.string()
|
|
19569
|
+
]);
|
|
19570
|
+
var setupPaymentAddItemTierOutboundSchema = import_v413.z.object({
|
|
18101
19571
|
to: import_v413.z.union([import_v413.z.number(), import_v413.z.string()]),
|
|
18102
19572
|
amount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
18103
19573
|
flat_amount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
18104
19574
|
});
|
|
18105
|
-
var
|
|
19575
|
+
var setupPaymentAddItemPriceOutboundSchema = import_v413.z.object({
|
|
18106
19576
|
amount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
18107
|
-
tiers: import_v413.z.union([import_v413.z.array(
|
|
19577
|
+
tiers: import_v413.z.union([import_v413.z.array(setupPaymentAddItemTierOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
18108
19578
|
tier_behavior: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
18109
19579
|
interval: import_v413.z.string(),
|
|
18110
19580
|
interval_count: import_v413.z.number(),
|
|
@@ -18112,24 +19582,29 @@ var setupPaymentPriceOutboundSchema = import_v413.z.object({
|
|
|
18112
19582
|
billing_method: import_v413.z.string(),
|
|
18113
19583
|
max_purchase: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
18114
19584
|
});
|
|
18115
|
-
var
|
|
19585
|
+
var setupPaymentAddItemProrationOutboundSchema = import_v413.z.object({
|
|
18116
19586
|
on_increase: import_v413.z.string(),
|
|
18117
19587
|
on_decrease: import_v413.z.string()
|
|
18118
19588
|
});
|
|
18119
|
-
var
|
|
19589
|
+
var setupPaymentAddItemRolloverOutboundSchema = import_v413.z.object({
|
|
18120
19590
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
18121
19591
|
max_percentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
18122
19592
|
expiry_duration_type: import_v413.z.string(),
|
|
18123
19593
|
expiry_duration_length: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
18124
19594
|
});
|
|
18125
|
-
var
|
|
19595
|
+
var setupPaymentAddItemPlanItemOutboundSchema = import_v413.z.object({
|
|
18126
19596
|
feature_id: import_v413.z.string(),
|
|
18127
19597
|
included: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
18128
19598
|
unlimited: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
18129
|
-
reset: import_v413.z.union([
|
|
18130
|
-
price: import_v413.z.union([
|
|
18131
|
-
proration: import_v413.z.union([
|
|
18132
|
-
rollover: import_v413.z.union([
|
|
19599
|
+
reset: import_v413.z.union([setupPaymentAddItemResetOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
19600
|
+
price: import_v413.z.union([setupPaymentAddItemPriceOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
19601
|
+
proration: import_v413.z.union([setupPaymentAddItemProrationOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
19602
|
+
rollover: import_v413.z.union([setupPaymentAddItemRolloverOutboundSchema, import_v413.z.undefined()]).optional()
|
|
19603
|
+
});
|
|
19604
|
+
var setupPaymentPlanItemFilterOutboundSchema = import_v413.z.object({
|
|
19605
|
+
feature_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
19606
|
+
billing_method: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
19607
|
+
interval: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
18133
19608
|
});
|
|
18134
19609
|
var setupPaymentFreeTrialParamsOutboundSchema = import_v413.z.object({
|
|
18135
19610
|
duration_length: import_v413.z.number(),
|
|
@@ -18138,7 +19613,9 @@ var setupPaymentFreeTrialParamsOutboundSchema = import_v413.z.object({
|
|
|
18138
19613
|
});
|
|
18139
19614
|
var setupPaymentCustomizeOutboundSchema = import_v413.z.object({
|
|
18140
19615
|
price: import_v413.z.union([setupPaymentBasePriceOutboundSchema, import_v413.z.undefined()]).optional().nullable(),
|
|
18141
|
-
items: import_v413.z.union([import_v413.z.array(
|
|
19616
|
+
items: import_v413.z.union([import_v413.z.array(setupPaymentItemPlanItemOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
19617
|
+
add_items: import_v413.z.union([import_v413.z.array(setupPaymentAddItemPlanItemOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
19618
|
+
remove_items: import_v413.z.union([import_v413.z.array(setupPaymentPlanItemFilterOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
18142
19619
|
free_trial: import_v413.z.union([setupPaymentFreeTrialParamsOutboundSchema, import_v413.z.undefined()]).optional().nullable()
|
|
18143
19620
|
});
|
|
18144
19621
|
var setupPaymentAttachDiscountOutboundSchema = import_v413.z.object({
|
|
@@ -18170,6 +19647,7 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
18170
19647
|
success_url: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
18171
19648
|
billing_cycle_anchor: import_v413.z.union([import_v413.z.literal("now"), import_v413.z.undefined()]).optional(),
|
|
18172
19649
|
starts_at: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
19650
|
+
ends_at: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
18173
19651
|
checkout_session_params: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.any()), import_v413.z.undefined()]).optional(),
|
|
18174
19652
|
custom_line_items: import_v413.z.union([import_v413.z.array(setupPaymentCustomLineItemOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
18175
19653
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
@@ -18186,45 +19664,92 @@ var setupPaymentBasePriceSchema = import_v413.z.object({
|
|
|
18186
19664
|
interval: setupPaymentPriceIntervalSchema,
|
|
18187
19665
|
intervalCount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
18188
19666
|
});
|
|
18189
|
-
var
|
|
18190
|
-
var
|
|
18191
|
-
interval:
|
|
19667
|
+
var setupPaymentItemResetIntervalSchema = closedEnumSchema8;
|
|
19668
|
+
var setupPaymentItemResetSchema = import_v413.z.object({
|
|
19669
|
+
interval: setupPaymentItemResetIntervalSchema,
|
|
18192
19670
|
intervalCount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
18193
19671
|
});
|
|
18194
|
-
var
|
|
19672
|
+
var setupPaymentItemTierBehaviorSchema = closedEnumSchema8;
|
|
18195
19673
|
var setupPaymentItemPriceIntervalSchema = closedEnumSchema8;
|
|
18196
|
-
var
|
|
18197
|
-
var
|
|
19674
|
+
var setupPaymentItemBillingMethodSchema = closedEnumSchema8;
|
|
19675
|
+
var setupPaymentItemPriceSchema = import_v413.z.object({
|
|
18198
19676
|
amount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
18199
|
-
tiers: import_v413.z.union([import_v413.z.array(
|
|
18200
|
-
tierBehavior: import_v413.z.union([
|
|
19677
|
+
tiers: import_v413.z.union([import_v413.z.array(setupPaymentItemTierSchema), import_v413.z.undefined()]).optional(),
|
|
19678
|
+
tierBehavior: import_v413.z.union([setupPaymentItemTierBehaviorSchema, import_v413.z.undefined()]).optional(),
|
|
18201
19679
|
interval: setupPaymentItemPriceIntervalSchema,
|
|
18202
19680
|
intervalCount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
18203
19681
|
billingUnits: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
18204
|
-
billingMethod:
|
|
19682
|
+
billingMethod: setupPaymentItemBillingMethodSchema,
|
|
18205
19683
|
maxPurchase: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
18206
19684
|
});
|
|
18207
|
-
var
|
|
18208
|
-
var
|
|
18209
|
-
var
|
|
18210
|
-
onIncrease:
|
|
18211
|
-
onDecrease:
|
|
19685
|
+
var setupPaymentItemOnIncreaseSchema = closedEnumSchema8;
|
|
19686
|
+
var setupPaymentItemOnDecreaseSchema = closedEnumSchema8;
|
|
19687
|
+
var setupPaymentItemProrationSchema = import_v413.z.object({
|
|
19688
|
+
onIncrease: setupPaymentItemOnIncreaseSchema,
|
|
19689
|
+
onDecrease: setupPaymentItemOnDecreaseSchema
|
|
18212
19690
|
});
|
|
18213
|
-
var
|
|
18214
|
-
var
|
|
19691
|
+
var setupPaymentItemExpiryDurationTypeSchema = closedEnumSchema8;
|
|
19692
|
+
var setupPaymentItemRolloverSchema = import_v413.z.object({
|
|
18215
19693
|
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
18216
19694
|
maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
18217
|
-
expiryDurationType:
|
|
19695
|
+
expiryDurationType: setupPaymentItemExpiryDurationTypeSchema,
|
|
18218
19696
|
expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
18219
19697
|
});
|
|
18220
|
-
var
|
|
19698
|
+
var setupPaymentItemPlanItemSchema = import_v413.z.object({
|
|
18221
19699
|
featureId: import_v413.z.string(),
|
|
18222
19700
|
included: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
18223
19701
|
unlimited: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
18224
|
-
reset: import_v413.z.union([
|
|
18225
|
-
price: import_v413.z.union([
|
|
18226
|
-
proration: import_v413.z.union([
|
|
18227
|
-
rollover: import_v413.z.union([
|
|
19702
|
+
reset: import_v413.z.union([setupPaymentItemResetSchema, import_v413.z.undefined()]).optional(),
|
|
19703
|
+
price: import_v413.z.union([setupPaymentItemPriceSchema, import_v413.z.undefined()]).optional(),
|
|
19704
|
+
proration: import_v413.z.union([setupPaymentItemProrationSchema, import_v413.z.undefined()]).optional(),
|
|
19705
|
+
rollover: import_v413.z.union([setupPaymentItemRolloverSchema, import_v413.z.undefined()]).optional()
|
|
19706
|
+
});
|
|
19707
|
+
var setupPaymentAddItemResetIntervalSchema = closedEnumSchema8;
|
|
19708
|
+
var setupPaymentAddItemResetSchema = import_v413.z.object({
|
|
19709
|
+
interval: setupPaymentAddItemResetIntervalSchema,
|
|
19710
|
+
intervalCount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
19711
|
+
});
|
|
19712
|
+
var setupPaymentAddItemTierBehaviorSchema = closedEnumSchema8;
|
|
19713
|
+
var setupPaymentAddItemPriceIntervalSchema = closedEnumSchema8;
|
|
19714
|
+
var setupPaymentAddItemBillingMethodSchema = closedEnumSchema8;
|
|
19715
|
+
var setupPaymentAddItemPriceSchema = import_v413.z.object({
|
|
19716
|
+
amount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
19717
|
+
tiers: import_v413.z.union([import_v413.z.array(setupPaymentAddItemTierSchema), import_v413.z.undefined()]).optional(),
|
|
19718
|
+
tierBehavior: import_v413.z.union([setupPaymentAddItemTierBehaviorSchema, import_v413.z.undefined()]).optional(),
|
|
19719
|
+
interval: setupPaymentAddItemPriceIntervalSchema,
|
|
19720
|
+
intervalCount: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
19721
|
+
billingUnits: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
19722
|
+
billingMethod: setupPaymentAddItemBillingMethodSchema,
|
|
19723
|
+
maxPurchase: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
19724
|
+
});
|
|
19725
|
+
var setupPaymentAddItemOnIncreaseSchema = closedEnumSchema8;
|
|
19726
|
+
var setupPaymentAddItemOnDecreaseSchema = closedEnumSchema8;
|
|
19727
|
+
var setupPaymentAddItemProrationSchema = import_v413.z.object({
|
|
19728
|
+
onIncrease: setupPaymentAddItemOnIncreaseSchema,
|
|
19729
|
+
onDecrease: setupPaymentAddItemOnDecreaseSchema
|
|
19730
|
+
});
|
|
19731
|
+
var setupPaymentAddItemExpiryDurationTypeSchema = closedEnumSchema8;
|
|
19732
|
+
var setupPaymentAddItemRolloverSchema = import_v413.z.object({
|
|
19733
|
+
max: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
19734
|
+
maxPercentage: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
19735
|
+
expiryDurationType: setupPaymentAddItemExpiryDurationTypeSchema,
|
|
19736
|
+
expiryDurationLength: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional()
|
|
19737
|
+
});
|
|
19738
|
+
var setupPaymentAddItemPlanItemSchema = import_v413.z.object({
|
|
19739
|
+
featureId: import_v413.z.string(),
|
|
19740
|
+
included: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
19741
|
+
unlimited: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
19742
|
+
reset: import_v413.z.union([setupPaymentAddItemResetSchema, import_v413.z.undefined()]).optional(),
|
|
19743
|
+
price: import_v413.z.union([setupPaymentAddItemPriceSchema, import_v413.z.undefined()]).optional(),
|
|
19744
|
+
proration: import_v413.z.union([setupPaymentAddItemProrationSchema, import_v413.z.undefined()]).optional(),
|
|
19745
|
+
rollover: import_v413.z.union([setupPaymentAddItemRolloverSchema, import_v413.z.undefined()]).optional()
|
|
19746
|
+
});
|
|
19747
|
+
var setupPaymentRemoveItemBillingMethodSchema = closedEnumSchema8;
|
|
19748
|
+
var setupPaymentRemoveItemIntervalSchema = closedEnumSchema8;
|
|
19749
|
+
var setupPaymentPlanItemFilterSchema = import_v413.z.object({
|
|
19750
|
+
featureId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
19751
|
+
billingMethod: import_v413.z.union([setupPaymentRemoveItemBillingMethodSchema, import_v413.z.undefined()]).optional(),
|
|
19752
|
+
interval: import_v413.z.union([setupPaymentRemoveItemIntervalSchema, import_v413.z.undefined()]).optional()
|
|
18228
19753
|
});
|
|
18229
19754
|
var setupPaymentDurationTypeSchema = closedEnumSchema8;
|
|
18230
19755
|
var setupPaymentFreeTrialParamsSchema = import_v413.z.object({
|
|
@@ -18234,7 +19759,9 @@ var setupPaymentFreeTrialParamsSchema = import_v413.z.object({
|
|
|
18234
19759
|
});
|
|
18235
19760
|
var setupPaymentCustomizeSchema = import_v413.z.object({
|
|
18236
19761
|
price: import_v413.z.union([setupPaymentBasePriceSchema, import_v413.z.undefined()]).optional().nullable(),
|
|
18237
|
-
items: import_v413.z.union([import_v413.z.array(
|
|
19762
|
+
items: import_v413.z.union([import_v413.z.array(setupPaymentItemPlanItemSchema), import_v413.z.undefined()]).optional(),
|
|
19763
|
+
addItems: import_v413.z.union([import_v413.z.array(setupPaymentAddItemPlanItemSchema), import_v413.z.undefined()]).optional(),
|
|
19764
|
+
removeItems: import_v413.z.union([import_v413.z.array(setupPaymentPlanItemFilterSchema), import_v413.z.undefined()]).optional(),
|
|
18238
19765
|
freeTrial: import_v413.z.union([setupPaymentFreeTrialParamsSchema, import_v413.z.undefined()]).optional().nullable()
|
|
18239
19766
|
});
|
|
18240
19767
|
var setupPaymentProrationBehaviorSchema = closedEnumSchema8;
|
|
@@ -18251,6 +19778,7 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
18251
19778
|
successUrl: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
18252
19779
|
billingCycleAnchor: import_v413.z.union([import_v413.z.literal("now"), import_v413.z.undefined()]).optional(),
|
|
18253
19780
|
startsAt: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
19781
|
+
endsAt: import_v413.z.union([import_v413.z.number(), import_v413.z.undefined()]).optional(),
|
|
18254
19782
|
checkoutSessionParams: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.any()), import_v413.z.undefined()]).optional(),
|
|
18255
19783
|
customLineItems: import_v413.z.union([import_v413.z.array(setupPaymentCustomLineItemSchema), import_v413.z.undefined()]).optional(),
|
|
18256
19784
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
@@ -18271,8 +19799,14 @@ var billingUpdateFeatureQuantitySchema = import_v414.z.object({
|
|
|
18271
19799
|
quantity: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
18272
19800
|
adjustable: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional()
|
|
18273
19801
|
});
|
|
18274
|
-
var
|
|
18275
|
-
var
|
|
19802
|
+
var billingUpdateItemToSchema = import_v414.z.union([import_v414.z.number(), import_v414.z.string()]);
|
|
19803
|
+
var billingUpdateItemTierSchema = import_v414.z.object({
|
|
19804
|
+
to: import_v414.z.union([import_v414.z.number(), import_v414.z.string()]),
|
|
19805
|
+
amount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
19806
|
+
flatAmount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
19807
|
+
});
|
|
19808
|
+
var billingUpdateAddItemToSchema = import_v414.z.union([import_v414.z.number(), import_v414.z.string()]);
|
|
19809
|
+
var billingUpdateAddItemTierSchema = import_v414.z.object({
|
|
18276
19810
|
to: import_v414.z.union([import_v414.z.number(), import_v414.z.string()]),
|
|
18277
19811
|
amount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
18278
19812
|
flatAmount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
@@ -18306,19 +19840,64 @@ var billingUpdateBasePriceOutboundSchema = import_v414.z.object({
|
|
|
18306
19840
|
interval: import_v414.z.string(),
|
|
18307
19841
|
interval_count: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
18308
19842
|
});
|
|
18309
|
-
var
|
|
19843
|
+
var billingUpdateItemResetOutboundSchema = import_v414.z.object({
|
|
19844
|
+
interval: import_v414.z.string(),
|
|
19845
|
+
interval_count: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
19846
|
+
});
|
|
19847
|
+
var billingUpdateItemToOutboundSchema = import_v414.z.union([
|
|
19848
|
+
import_v414.z.number(),
|
|
19849
|
+
import_v414.z.string()
|
|
19850
|
+
]);
|
|
19851
|
+
var billingUpdateItemTierOutboundSchema = import_v414.z.object({
|
|
19852
|
+
to: import_v414.z.union([import_v414.z.number(), import_v414.z.string()]),
|
|
19853
|
+
amount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
19854
|
+
flat_amount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
19855
|
+
});
|
|
19856
|
+
var billingUpdateItemPriceOutboundSchema = import_v414.z.object({
|
|
19857
|
+
amount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
19858
|
+
tiers: import_v414.z.union([import_v414.z.array(billingUpdateItemTierOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
19859
|
+
tier_behavior: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
19860
|
+
interval: import_v414.z.string(),
|
|
19861
|
+
interval_count: import_v414.z.number(),
|
|
19862
|
+
billing_units: import_v414.z.number(),
|
|
19863
|
+
billing_method: import_v414.z.string(),
|
|
19864
|
+
max_purchase: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
19865
|
+
});
|
|
19866
|
+
var billingUpdateItemProrationOutboundSchema = import_v414.z.object({
|
|
19867
|
+
on_increase: import_v414.z.string(),
|
|
19868
|
+
on_decrease: import_v414.z.string()
|
|
19869
|
+
});
|
|
19870
|
+
var billingUpdateItemRolloverOutboundSchema = import_v414.z.object({
|
|
19871
|
+
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
19872
|
+
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
19873
|
+
expiry_duration_type: import_v414.z.string(),
|
|
19874
|
+
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
19875
|
+
});
|
|
19876
|
+
var billingUpdateItemPlanItemOutboundSchema = import_v414.z.object({
|
|
19877
|
+
feature_id: import_v414.z.string(),
|
|
19878
|
+
included: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
19879
|
+
unlimited: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
19880
|
+
reset: import_v414.z.union([billingUpdateItemResetOutboundSchema, import_v414.z.undefined()]).optional(),
|
|
19881
|
+
price: import_v414.z.union([billingUpdateItemPriceOutboundSchema, import_v414.z.undefined()]).optional(),
|
|
19882
|
+
proration: import_v414.z.union([billingUpdateItemProrationOutboundSchema, import_v414.z.undefined()]).optional(),
|
|
19883
|
+
rollover: import_v414.z.union([billingUpdateItemRolloverOutboundSchema, import_v414.z.undefined()]).optional()
|
|
19884
|
+
});
|
|
19885
|
+
var billingUpdateAddItemResetOutboundSchema = import_v414.z.object({
|
|
18310
19886
|
interval: import_v414.z.string(),
|
|
18311
19887
|
interval_count: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
18312
19888
|
});
|
|
18313
|
-
var
|
|
18314
|
-
|
|
19889
|
+
var billingUpdateAddItemToOutboundSchema = import_v414.z.union([
|
|
19890
|
+
import_v414.z.number(),
|
|
19891
|
+
import_v414.z.string()
|
|
19892
|
+
]);
|
|
19893
|
+
var billingUpdateAddItemTierOutboundSchema = import_v414.z.object({
|
|
18315
19894
|
to: import_v414.z.union([import_v414.z.number(), import_v414.z.string()]),
|
|
18316
19895
|
amount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
18317
19896
|
flat_amount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
18318
19897
|
});
|
|
18319
|
-
var
|
|
19898
|
+
var billingUpdateAddItemPriceOutboundSchema = import_v414.z.object({
|
|
18320
19899
|
amount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
18321
|
-
tiers: import_v414.z.union([import_v414.z.array(
|
|
19900
|
+
tiers: import_v414.z.union([import_v414.z.array(billingUpdateAddItemTierOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
18322
19901
|
tier_behavior: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
18323
19902
|
interval: import_v414.z.string(),
|
|
18324
19903
|
interval_count: import_v414.z.number(),
|
|
@@ -18326,24 +19905,29 @@ var billingUpdatePriceOutboundSchema = import_v414.z.object({
|
|
|
18326
19905
|
billing_method: import_v414.z.string(),
|
|
18327
19906
|
max_purchase: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
18328
19907
|
});
|
|
18329
|
-
var
|
|
19908
|
+
var billingUpdateAddItemProrationOutboundSchema = import_v414.z.object({
|
|
18330
19909
|
on_increase: import_v414.z.string(),
|
|
18331
19910
|
on_decrease: import_v414.z.string()
|
|
18332
19911
|
});
|
|
18333
|
-
var
|
|
19912
|
+
var billingUpdateAddItemRolloverOutboundSchema = import_v414.z.object({
|
|
18334
19913
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
18335
19914
|
max_percentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
18336
19915
|
expiry_duration_type: import_v414.z.string(),
|
|
18337
19916
|
expiry_duration_length: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
18338
19917
|
});
|
|
18339
|
-
var
|
|
19918
|
+
var billingUpdateAddItemPlanItemOutboundSchema = import_v414.z.object({
|
|
18340
19919
|
feature_id: import_v414.z.string(),
|
|
18341
19920
|
included: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
18342
19921
|
unlimited: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
18343
|
-
reset: import_v414.z.union([
|
|
18344
|
-
price: import_v414.z.union([
|
|
18345
|
-
proration: import_v414.z.union([
|
|
18346
|
-
rollover: import_v414.z.union([
|
|
19922
|
+
reset: import_v414.z.union([billingUpdateAddItemResetOutboundSchema, import_v414.z.undefined()]).optional(),
|
|
19923
|
+
price: import_v414.z.union([billingUpdateAddItemPriceOutboundSchema, import_v414.z.undefined()]).optional(),
|
|
19924
|
+
proration: import_v414.z.union([billingUpdateAddItemProrationOutboundSchema, import_v414.z.undefined()]).optional(),
|
|
19925
|
+
rollover: import_v414.z.union([billingUpdateAddItemRolloverOutboundSchema, import_v414.z.undefined()]).optional()
|
|
19926
|
+
});
|
|
19927
|
+
var billingUpdatePlanItemFilterOutboundSchema = import_v414.z.object({
|
|
19928
|
+
feature_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
19929
|
+
billing_method: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
19930
|
+
interval: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
|
|
18347
19931
|
});
|
|
18348
19932
|
var billingUpdateFreeTrialParamsOutboundSchema = import_v414.z.object({
|
|
18349
19933
|
duration_length: import_v414.z.number(),
|
|
@@ -18352,7 +19936,9 @@ var billingUpdateFreeTrialParamsOutboundSchema = import_v414.z.object({
|
|
|
18352
19936
|
});
|
|
18353
19937
|
var billingUpdateCustomizeOutboundSchema = import_v414.z.object({
|
|
18354
19938
|
price: import_v414.z.union([billingUpdateBasePriceOutboundSchema, import_v414.z.undefined()]).optional().nullable(),
|
|
18355
|
-
items: import_v414.z.union([import_v414.z.array(
|
|
19939
|
+
items: import_v414.z.union([import_v414.z.array(billingUpdateItemPlanItemOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
19940
|
+
add_items: import_v414.z.union([import_v414.z.array(billingUpdateAddItemPlanItemOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
19941
|
+
remove_items: import_v414.z.union([import_v414.z.array(billingUpdatePlanItemFilterOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
18356
19942
|
free_trial: import_v414.z.union([billingUpdateFreeTrialParamsOutboundSchema, import_v414.z.undefined()]).optional().nullable()
|
|
18357
19943
|
});
|
|
18358
19944
|
var billingUpdateInvoiceModeOutboundSchema = import_v414.z.object({
|
|
@@ -18392,45 +19978,92 @@ var billingUpdateBasePriceSchema = import_v414.z.object({
|
|
|
18392
19978
|
interval: billingUpdatePriceIntervalSchema,
|
|
18393
19979
|
intervalCount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
18394
19980
|
});
|
|
18395
|
-
var
|
|
18396
|
-
var
|
|
18397
|
-
interval:
|
|
19981
|
+
var billingUpdateItemResetIntervalSchema = closedEnumSchema9;
|
|
19982
|
+
var billingUpdateItemResetSchema = import_v414.z.object({
|
|
19983
|
+
interval: billingUpdateItemResetIntervalSchema,
|
|
18398
19984
|
intervalCount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
18399
19985
|
});
|
|
18400
|
-
var
|
|
19986
|
+
var billingUpdateItemTierBehaviorSchema = closedEnumSchema9;
|
|
18401
19987
|
var billingUpdateItemPriceIntervalSchema = closedEnumSchema9;
|
|
18402
|
-
var
|
|
18403
|
-
var
|
|
19988
|
+
var billingUpdateItemBillingMethodSchema = closedEnumSchema9;
|
|
19989
|
+
var billingUpdateItemPriceSchema = import_v414.z.object({
|
|
18404
19990
|
amount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
18405
|
-
tiers: import_v414.z.union([import_v414.z.array(
|
|
18406
|
-
tierBehavior: import_v414.z.union([
|
|
19991
|
+
tiers: import_v414.z.union([import_v414.z.array(billingUpdateItemTierSchema), import_v414.z.undefined()]).optional(),
|
|
19992
|
+
tierBehavior: import_v414.z.union([billingUpdateItemTierBehaviorSchema, import_v414.z.undefined()]).optional(),
|
|
18407
19993
|
interval: billingUpdateItemPriceIntervalSchema,
|
|
18408
19994
|
intervalCount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
18409
19995
|
billingUnits: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
18410
|
-
billingMethod:
|
|
19996
|
+
billingMethod: billingUpdateItemBillingMethodSchema,
|
|
19997
|
+
maxPurchase: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
19998
|
+
});
|
|
19999
|
+
var billingUpdateItemOnIncreaseSchema = closedEnumSchema9;
|
|
20000
|
+
var billingUpdateItemOnDecreaseSchema = closedEnumSchema9;
|
|
20001
|
+
var billingUpdateItemProrationSchema = import_v414.z.object({
|
|
20002
|
+
onIncrease: billingUpdateItemOnIncreaseSchema,
|
|
20003
|
+
onDecrease: billingUpdateItemOnDecreaseSchema
|
|
20004
|
+
});
|
|
20005
|
+
var billingUpdateItemExpiryDurationTypeSchema = closedEnumSchema9;
|
|
20006
|
+
var billingUpdateItemRolloverSchema = import_v414.z.object({
|
|
20007
|
+
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
20008
|
+
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
20009
|
+
expiryDurationType: billingUpdateItemExpiryDurationTypeSchema,
|
|
20010
|
+
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
20011
|
+
});
|
|
20012
|
+
var billingUpdateItemPlanItemSchema = import_v414.z.object({
|
|
20013
|
+
featureId: import_v414.z.string(),
|
|
20014
|
+
included: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
20015
|
+
unlimited: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
20016
|
+
reset: import_v414.z.union([billingUpdateItemResetSchema, import_v414.z.undefined()]).optional(),
|
|
20017
|
+
price: import_v414.z.union([billingUpdateItemPriceSchema, import_v414.z.undefined()]).optional(),
|
|
20018
|
+
proration: import_v414.z.union([billingUpdateItemProrationSchema, import_v414.z.undefined()]).optional(),
|
|
20019
|
+
rollover: import_v414.z.union([billingUpdateItemRolloverSchema, import_v414.z.undefined()]).optional()
|
|
20020
|
+
});
|
|
20021
|
+
var billingUpdateAddItemResetIntervalSchema = closedEnumSchema9;
|
|
20022
|
+
var billingUpdateAddItemResetSchema = import_v414.z.object({
|
|
20023
|
+
interval: billingUpdateAddItemResetIntervalSchema,
|
|
20024
|
+
intervalCount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
20025
|
+
});
|
|
20026
|
+
var billingUpdateAddItemTierBehaviorSchema = closedEnumSchema9;
|
|
20027
|
+
var billingUpdateAddItemPriceIntervalSchema = closedEnumSchema9;
|
|
20028
|
+
var billingUpdateAddItemBillingMethodSchema = closedEnumSchema9;
|
|
20029
|
+
var billingUpdateAddItemPriceSchema = import_v414.z.object({
|
|
20030
|
+
amount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
20031
|
+
tiers: import_v414.z.union([import_v414.z.array(billingUpdateAddItemTierSchema), import_v414.z.undefined()]).optional(),
|
|
20032
|
+
tierBehavior: import_v414.z.union([billingUpdateAddItemTierBehaviorSchema, import_v414.z.undefined()]).optional(),
|
|
20033
|
+
interval: billingUpdateAddItemPriceIntervalSchema,
|
|
20034
|
+
intervalCount: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
20035
|
+
billingUnits: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
20036
|
+
billingMethod: billingUpdateAddItemBillingMethodSchema,
|
|
18411
20037
|
maxPurchase: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
18412
20038
|
});
|
|
18413
|
-
var
|
|
18414
|
-
var
|
|
18415
|
-
var
|
|
18416
|
-
onIncrease:
|
|
18417
|
-
onDecrease:
|
|
20039
|
+
var billingUpdateAddItemOnIncreaseSchema = closedEnumSchema9;
|
|
20040
|
+
var billingUpdateAddItemOnDecreaseSchema = closedEnumSchema9;
|
|
20041
|
+
var billingUpdateAddItemProrationSchema = import_v414.z.object({
|
|
20042
|
+
onIncrease: billingUpdateAddItemOnIncreaseSchema,
|
|
20043
|
+
onDecrease: billingUpdateAddItemOnDecreaseSchema
|
|
18418
20044
|
});
|
|
18419
|
-
var
|
|
18420
|
-
var
|
|
20045
|
+
var billingUpdateAddItemExpiryDurationTypeSchema = closedEnumSchema9;
|
|
20046
|
+
var billingUpdateAddItemRolloverSchema = import_v414.z.object({
|
|
18421
20047
|
max: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
18422
20048
|
maxPercentage: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
18423
|
-
expiryDurationType:
|
|
20049
|
+
expiryDurationType: billingUpdateAddItemExpiryDurationTypeSchema,
|
|
18424
20050
|
expiryDurationLength: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional()
|
|
18425
20051
|
});
|
|
18426
|
-
var
|
|
20052
|
+
var billingUpdateAddItemPlanItemSchema = import_v414.z.object({
|
|
18427
20053
|
featureId: import_v414.z.string(),
|
|
18428
20054
|
included: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
18429
20055
|
unlimited: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
18430
|
-
reset: import_v414.z.union([
|
|
18431
|
-
price: import_v414.z.union([
|
|
18432
|
-
proration: import_v414.z.union([
|
|
18433
|
-
rollover: import_v414.z.union([
|
|
20056
|
+
reset: import_v414.z.union([billingUpdateAddItemResetSchema, import_v414.z.undefined()]).optional(),
|
|
20057
|
+
price: import_v414.z.union([billingUpdateAddItemPriceSchema, import_v414.z.undefined()]).optional(),
|
|
20058
|
+
proration: import_v414.z.union([billingUpdateAddItemProrationSchema, import_v414.z.undefined()]).optional(),
|
|
20059
|
+
rollover: import_v414.z.union([billingUpdateAddItemRolloverSchema, import_v414.z.undefined()]).optional()
|
|
20060
|
+
});
|
|
20061
|
+
var billingUpdateRemoveItemBillingMethodSchema = closedEnumSchema9;
|
|
20062
|
+
var billingUpdateRemoveItemIntervalSchema = closedEnumSchema9;
|
|
20063
|
+
var billingUpdatePlanItemFilterSchema = import_v414.z.object({
|
|
20064
|
+
featureId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
20065
|
+
billingMethod: import_v414.z.union([billingUpdateRemoveItemBillingMethodSchema, import_v414.z.undefined()]).optional(),
|
|
20066
|
+
interval: import_v414.z.union([billingUpdateRemoveItemIntervalSchema, import_v414.z.undefined()]).optional()
|
|
18434
20067
|
});
|
|
18435
20068
|
var billingUpdateDurationTypeSchema = closedEnumSchema9;
|
|
18436
20069
|
var billingUpdateFreeTrialParamsSchema = import_v414.z.object({
|
|
@@ -18440,7 +20073,9 @@ var billingUpdateFreeTrialParamsSchema = import_v414.z.object({
|
|
|
18440
20073
|
});
|
|
18441
20074
|
var billingUpdateCustomizeSchema = import_v414.z.object({
|
|
18442
20075
|
price: import_v414.z.union([billingUpdateBasePriceSchema, import_v414.z.undefined()]).optional().nullable(),
|
|
18443
|
-
items: import_v414.z.union([import_v414.z.array(
|
|
20076
|
+
items: import_v414.z.union([import_v414.z.array(billingUpdateItemPlanItemSchema), import_v414.z.undefined()]).optional(),
|
|
20077
|
+
addItems: import_v414.z.union([import_v414.z.array(billingUpdateAddItemPlanItemSchema), import_v414.z.undefined()]).optional(),
|
|
20078
|
+
removeItems: import_v414.z.union([import_v414.z.array(billingUpdatePlanItemFilterSchema), import_v414.z.undefined()]).optional(),
|
|
18444
20079
|
freeTrial: import_v414.z.union([billingUpdateFreeTrialParamsSchema, import_v414.z.undefined()]).optional().nullable()
|
|
18445
20080
|
});
|
|
18446
20081
|
var billingUpdateProrationBehaviorSchema = closedEnumSchema9;
|