autumn-js 1.2.14 → 1.2.16
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 +247 -89
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +247 -89
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +247 -89
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +247 -89
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +247 -89
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-GE5VY4YO.mjs → chunk-ABOQKDIG.mjs} +332 -202
- package/dist/backend/{chunk-ZOOAE7OJ.mjs → chunk-GTVFXOTM.mjs} +1 -1
- package/dist/backend/{chunk-MANTLPDT.mjs → chunk-IQS3LQVP.mjs} +36 -8
- package/dist/backend/{chunk-5XWZK7Q6.mjs → chunk-QNURHAGS.mjs} +7 -7
- package/dist/backend/{chunk-BVJU43R5.mjs → chunk-QPYQTB7W.mjs} +1 -1
- package/dist/backend/{chunk-QAFNIIBW.mjs → chunk-TASYBJUL.mjs} +5 -5
- package/dist/backend/{chunk-JDJMZQCY.mjs → chunk-TMUPY2NS.mjs} +1 -1
- package/dist/backend/{chunk-N2OJ347N.mjs → chunk-YJ4LLLBH.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 +247 -89
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- 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/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +247 -89
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- 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 +247 -89
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +247 -89
- package/dist/backend/core/index.mjs +10 -10
- 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 +36 -8
- package/dist/backend/core/routes/index.mjs +2 -2
- 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 +36 -8
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- 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/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +247 -89
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-bGaZQm24.d.ts → routeTypes-Brk2vv_t.d.ts} +210 -28
- package/dist/backend/{routeTypes-B-X-zb1q.d.mts → routeTypes-DlD9uMGt.d.mts} +210 -28
- package/dist/better-auth/{chunk-DNNKTBFL.mjs → chunk-IIKKDFNB.mjs} +212 -82
- package/dist/better-auth/{chunk-4OWECHZC.mjs → chunk-L6XX4ONM.mjs} +1 -1
- package/dist/better-auth/{chunk-JIFD4TSN.mjs → chunk-ZO3KGM5W.mjs} +36 -8
- package/dist/better-auth/index.js +247 -89
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +36 -8
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +247 -89
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +247 -89
- 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/AutumnProvider.js +15 -15
- package/dist/react/AutumnProvider.mjs +2 -2
- package/dist/react/{chunk-7IDH4OMG.mjs → chunk-26CKSAPZ.mjs} +1 -1
- package/dist/react/{chunk-NSFHAUTD.mjs → chunk-CHU7CIWP.mjs} +1 -1
- package/dist/react/{chunk-YQFYWH7J.mjs → chunk-G7FTQLT7.mjs} +1 -1
- package/dist/react/{chunk-BDG6JHEW.mjs → chunk-HSQUB3BZ.mjs} +1 -1
- package/dist/react/{chunk-DEZBJQEG.mjs → chunk-KB72KQKN.mjs} +1 -1
- package/dist/react/{chunk-J6SLKTKE.mjs → chunk-MC2YYATT.mjs} +1 -1
- package/dist/react/{chunk-FWWIAOPU.mjs → chunk-OXQG65ZT.mjs} +1 -1
- package/dist/react/{chunk-E5ZHOMZ4.mjs → chunk-XJZH5NMZ.mjs} +23 -23
- package/dist/react/{chunk-HVBDZARN.mjs → chunk-ZGPE4R6H.mjs} +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-DB8vL_m7.d.mts → customer-BDxW2bu6.d.mts} +35 -9
- package/dist/react/{customer-CaGJEN5J.d.ts → customer-BPUObmME.d.ts} +35 -9
- package/dist/react/hooks/index.d.mts +2 -2
- package/dist/react/hooks/index.d.ts +2 -2
- package/dist/react/hooks/index.js +16 -16
- package/dist/react/hooks/index.mjs +8 -8
- 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/internal/useCustomerActions.js +1 -1
- package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useAggregateEvents.js +16 -16
- package/dist/react/hooks/useAggregateEvents.mjs +2 -2
- package/dist/react/hooks/useCustomer.d.mts +2 -2
- package/dist/react/hooks/useCustomer.d.ts +2 -2
- package/dist/react/hooks/useCustomer.js +16 -16
- package/dist/react/hooks/useCustomer.mjs +3 -3
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useEntity.js +16 -16
- package/dist/react/hooks/useEntity.mjs +2 -2
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListEvents.js +16 -16
- package/dist/react/hooks/useListEvents.mjs +2 -2
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useListPlans.js +16 -16
- package/dist/react/hooks/useListPlans.mjs +2 -2
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/hooks/useReferrals.js +16 -16
- package/dist/react/hooks/useReferrals.mjs +2 -2
- package/dist/react/index.d.mts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +22 -22
- package/dist/react/index.mjs +9 -9
- package/dist/react/{params-CTiHT2EX.d.ts → params-D4cEukOJ.d.ts} +100 -0
- package/dist/react/{params-ZvrBzzFE.d.mts → params-DzbSUS8O.d.mts} +100 -0
- package/dist/sdk/index.d.mts +273 -40
- package/dist/sdk/index.d.ts +273 -40
- package/dist/sdk/index.js +3161 -2941
- package/dist/sdk/index.mjs +3123 -2929
- package/package.json +142 -142
- package/dist/backend/{chunk-S5HPMJ4U.mjs → chunk-55C2WWXQ.mjs} +3 -3
|
@@ -78,8 +78,8 @@ var SDK_METADATA = {
|
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "2.2.0",
|
|
80
80
|
sdkVersion: "0.10.17",
|
|
81
|
-
genVersion: "2.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.
|
|
81
|
+
genVersion: "2.869.25",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.869.25 2.2.0 @useautumn/sdk"
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
// ../sdk/src/lib/http.ts
|
|
@@ -1001,8 +1001,8 @@ function applyBearer(state, spec) {
|
|
|
1001
1001
|
state.headers[spec.fieldName] = value;
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
|
-
function resolveGlobalSecurity(security
|
|
1005
|
-
|
|
1004
|
+
function resolveGlobalSecurity(security) {
|
|
1005
|
+
return resolveSecurity(
|
|
1006
1006
|
[
|
|
1007
1007
|
{
|
|
1008
1008
|
fieldName: "Authorization",
|
|
@@ -1010,16 +1010,7 @@ function resolveGlobalSecurity(security, allowedFields) {
|
|
|
1010
1010
|
value: security?.secretKey ?? env().AUTUMN_SECRET_KEY
|
|
1011
1011
|
}
|
|
1012
1012
|
]
|
|
1013
|
-
|
|
1014
|
-
if (allowedFields) {
|
|
1015
|
-
inputs = allowedFields.map((i) => {
|
|
1016
|
-
if (i < 0 || i >= inputs.length) {
|
|
1017
|
-
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
1018
|
-
}
|
|
1019
|
-
return inputs[i];
|
|
1020
|
-
});
|
|
1021
|
-
}
|
|
1022
|
-
return resolveSecurity(...inputs);
|
|
1013
|
+
);
|
|
1023
1014
|
}
|
|
1024
1015
|
async function extractSecurity(sec) {
|
|
1025
1016
|
if (sec == null) {
|
|
@@ -1709,7 +1700,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1709
1700
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1710
1701
|
),
|
|
1711
1702
|
metadata: z10.optional(z10.record(z10.string(), z10.string())),
|
|
1712
|
-
noBillingChanges: z10.optional(z10.boolean())
|
|
1703
|
+
noBillingChanges: z10.optional(z10.boolean()),
|
|
1704
|
+
enablePlanImmediately: z10.optional(z10.boolean())
|
|
1713
1705
|
}),
|
|
1714
1706
|
z10.transform((v) => {
|
|
1715
1707
|
return remap(v, {
|
|
@@ -1730,7 +1722,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1730
1722
|
processorSubscriptionId: "processor_subscription_id",
|
|
1731
1723
|
carryOverBalances: "carry_over_balances",
|
|
1732
1724
|
carryOverUsages: "carry_over_usages",
|
|
1733
|
-
noBillingChanges: "no_billing_changes"
|
|
1725
|
+
noBillingChanges: "no_billing_changes",
|
|
1726
|
+
enablePlanImmediately: "enable_plan_immediately"
|
|
1734
1727
|
});
|
|
1735
1728
|
})
|
|
1736
1729
|
);
|
|
@@ -4413,7 +4406,13 @@ var CustomerEnv = {
|
|
|
4413
4406
|
Sandbox: "sandbox",
|
|
4414
4407
|
Live: "live"
|
|
4415
4408
|
};
|
|
4416
|
-
var
|
|
4409
|
+
var CustomerInterval2 = {
|
|
4410
|
+
Hour: "hour",
|
|
4411
|
+
Day: "day",
|
|
4412
|
+
Week: "week",
|
|
4413
|
+
Month: "month"
|
|
4414
|
+
};
|
|
4415
|
+
var CustomerInterval1 = {
|
|
4417
4416
|
Hour: "hour",
|
|
4418
4417
|
Day: "day",
|
|
4419
4418
|
Week: "week",
|
|
@@ -4450,10 +4449,26 @@ var CustomerDurationType = {
|
|
|
4450
4449
|
Forever: "forever"
|
|
4451
4450
|
};
|
|
4452
4451
|
var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
|
|
4453
|
-
var
|
|
4454
|
-
var
|
|
4452
|
+
var CustomerInterval2$inboundSchema = inboundSchema(CustomerInterval2);
|
|
4453
|
+
var CustomerPurchaseLimit2$inboundSchema = z21.pipe(
|
|
4455
4454
|
z21.object({
|
|
4456
|
-
interval:
|
|
4455
|
+
interval: nullable(CustomerInterval2$inboundSchema),
|
|
4456
|
+
interval_count: nullable(number2()),
|
|
4457
|
+
limit: nullable(number2()),
|
|
4458
|
+
count: number2(),
|
|
4459
|
+
next_reset_at: number2()
|
|
4460
|
+
}),
|
|
4461
|
+
z21.transform((v) => {
|
|
4462
|
+
return remap(v, {
|
|
4463
|
+
"interval_count": "intervalCount",
|
|
4464
|
+
"next_reset_at": "nextResetAt"
|
|
4465
|
+
});
|
|
4466
|
+
})
|
|
4467
|
+
);
|
|
4468
|
+
var CustomerInterval1$inboundSchema = inboundSchema(CustomerInterval1);
|
|
4469
|
+
var CustomerPurchaseLimit1$inboundSchema = z21.pipe(
|
|
4470
|
+
z21.object({
|
|
4471
|
+
interval: CustomerInterval1$inboundSchema,
|
|
4457
4472
|
interval_count: z21._default(number2(), 1),
|
|
4458
4473
|
limit: number2()
|
|
4459
4474
|
}),
|
|
@@ -4463,15 +4478,20 @@ var CustomerPurchaseLimit$inboundSchema = z21.pipe(
|
|
|
4463
4478
|
});
|
|
4464
4479
|
})
|
|
4465
4480
|
);
|
|
4481
|
+
var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
4482
|
+
z21.lazy(() => CustomerPurchaseLimit2$inboundSchema),
|
|
4483
|
+
z21.lazy(() => CustomerPurchaseLimit1$inboundSchema)
|
|
4484
|
+
]);
|
|
4466
4485
|
var CustomerAutoTopup$inboundSchema = z21.pipe(
|
|
4467
4486
|
z21.object({
|
|
4468
4487
|
feature_id: string4(),
|
|
4469
4488
|
enabled: z21._default(boolean2(), false),
|
|
4470
4489
|
threshold: number2(),
|
|
4471
4490
|
quantity: number2(),
|
|
4472
|
-
purchase_limit: optional2(
|
|
4473
|
-
z21.lazy(() =>
|
|
4474
|
-
|
|
4491
|
+
purchase_limit: optional2(smartUnion([
|
|
4492
|
+
z21.lazy(() => CustomerPurchaseLimit2$inboundSchema),
|
|
4493
|
+
z21.lazy(() => CustomerPurchaseLimit1$inboundSchema)
|
|
4494
|
+
])),
|
|
4475
4495
|
invoice_mode: optional2(boolean2())
|
|
4476
4496
|
}),
|
|
4477
4497
|
z21.transform((v) => {
|
|
@@ -5729,7 +5749,13 @@ var ListCustomersEnv = {
|
|
|
5729
5749
|
Sandbox: "sandbox",
|
|
5730
5750
|
Live: "live"
|
|
5731
5751
|
};
|
|
5732
|
-
var
|
|
5752
|
+
var ListCustomersInterval2 = {
|
|
5753
|
+
Hour: "hour",
|
|
5754
|
+
Day: "day",
|
|
5755
|
+
Week: "week",
|
|
5756
|
+
Month: "month"
|
|
5757
|
+
};
|
|
5758
|
+
var ListCustomersInterval1 = {
|
|
5733
5759
|
Hour: "hour",
|
|
5734
5760
|
Day: "day",
|
|
5735
5761
|
Week: "week",
|
|
@@ -5774,10 +5800,26 @@ var ListCustomersParams$outboundSchema = z32.pipe(
|
|
|
5774
5800
|
})
|
|
5775
5801
|
);
|
|
5776
5802
|
var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
|
|
5777
|
-
var
|
|
5778
|
-
var
|
|
5803
|
+
var ListCustomersInterval2$inboundSchema = inboundSchema(ListCustomersInterval2);
|
|
5804
|
+
var ListCustomersPurchaseLimit2$inboundSchema = z32.pipe(
|
|
5805
|
+
z32.object({
|
|
5806
|
+
interval: nullable(ListCustomersInterval2$inboundSchema),
|
|
5807
|
+
interval_count: nullable(number2()),
|
|
5808
|
+
limit: nullable(number2()),
|
|
5809
|
+
count: number2(),
|
|
5810
|
+
next_reset_at: number2()
|
|
5811
|
+
}),
|
|
5812
|
+
z32.transform((v) => {
|
|
5813
|
+
return remap(v, {
|
|
5814
|
+
"interval_count": "intervalCount",
|
|
5815
|
+
"next_reset_at": "nextResetAt"
|
|
5816
|
+
});
|
|
5817
|
+
})
|
|
5818
|
+
);
|
|
5819
|
+
var ListCustomersInterval1$inboundSchema = inboundSchema(ListCustomersInterval1);
|
|
5820
|
+
var ListCustomersPurchaseLimit1$inboundSchema = z32.pipe(
|
|
5779
5821
|
z32.object({
|
|
5780
|
-
interval:
|
|
5822
|
+
interval: ListCustomersInterval1$inboundSchema,
|
|
5781
5823
|
interval_count: z32._default(number2(), 1),
|
|
5782
5824
|
limit: number2()
|
|
5783
5825
|
}),
|
|
@@ -5787,15 +5829,20 @@ var ListCustomersPurchaseLimit$inboundSchema = z32.pipe(
|
|
|
5787
5829
|
});
|
|
5788
5830
|
})
|
|
5789
5831
|
);
|
|
5832
|
+
var ListCustomersPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
5833
|
+
z32.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
|
|
5834
|
+
z32.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
|
|
5835
|
+
]);
|
|
5790
5836
|
var ListCustomersAutoTopup$inboundSchema = z32.pipe(
|
|
5791
5837
|
z32.object({
|
|
5792
5838
|
feature_id: string4(),
|
|
5793
5839
|
enabled: z32._default(boolean2(), false),
|
|
5794
5840
|
threshold: number2(),
|
|
5795
5841
|
quantity: number2(),
|
|
5796
|
-
purchase_limit: optional2(
|
|
5797
|
-
z32.lazy(() =>
|
|
5798
|
-
|
|
5842
|
+
purchase_limit: optional2(smartUnion([
|
|
5843
|
+
z32.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
|
|
5844
|
+
z32.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
|
|
5845
|
+
])),
|
|
5799
5846
|
invoice_mode: optional2(boolean2())
|
|
5800
5847
|
}),
|
|
5801
5848
|
z32.transform((v) => {
|
|
@@ -6794,6 +6841,7 @@ var MultiAttachParams$outboundSchema = z36.pipe(
|
|
|
6794
6841
|
"if_required"
|
|
6795
6842
|
),
|
|
6796
6843
|
newBillingSubscription: z36.optional(z36.boolean()),
|
|
6844
|
+
enablePlanImmediately: z36.optional(z36.boolean()),
|
|
6797
6845
|
customerData: z36.optional(CustomerData$outboundSchema),
|
|
6798
6846
|
entityData: z36.optional(z36.lazy(() => MultiAttachEntityData$outboundSchema))
|
|
6799
6847
|
}),
|
|
@@ -6807,6 +6855,7 @@ var MultiAttachParams$outboundSchema = z36.pipe(
|
|
|
6807
6855
|
checkoutSessionParams: "checkout_session_params",
|
|
6808
6856
|
redirectMode: "redirect_mode",
|
|
6809
6857
|
newBillingSubscription: "new_billing_subscription",
|
|
6858
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
6810
6859
|
customerData: "customer_data",
|
|
6811
6860
|
entityData: "entity_data"
|
|
6812
6861
|
});
|
|
@@ -6956,6 +7005,10 @@ var PreviewAttachCheckoutType = {
|
|
|
6956
7005
|
StripeCheckout: "stripe_checkout",
|
|
6957
7006
|
AutumnCheckout: "autumn_checkout"
|
|
6958
7007
|
};
|
|
7008
|
+
var PreviewAttachStatus = {
|
|
7009
|
+
Complete: "complete",
|
|
7010
|
+
Incomplete: "incomplete"
|
|
7011
|
+
};
|
|
6959
7012
|
var PreviewAttachFeatureQuantityRequest$outboundSchema = z38.pipe(
|
|
6960
7013
|
z38.object({
|
|
6961
7014
|
featureId: z38.string(),
|
|
@@ -7202,7 +7255,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
7202
7255
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
7203
7256
|
),
|
|
7204
7257
|
metadata: z38.optional(z38.record(z38.string(), z38.string())),
|
|
7205
|
-
noBillingChanges: z38.optional(z38.boolean())
|
|
7258
|
+
noBillingChanges: z38.optional(z38.boolean()),
|
|
7259
|
+
enablePlanImmediately: z38.optional(z38.boolean())
|
|
7206
7260
|
}),
|
|
7207
7261
|
z38.transform((v) => {
|
|
7208
7262
|
return remap(v, {
|
|
@@ -7223,7 +7277,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
7223
7277
|
processorSubscriptionId: "processor_subscription_id",
|
|
7224
7278
|
carryOverBalances: "carry_over_balances",
|
|
7225
7279
|
carryOverUsages: "carry_over_usages",
|
|
7226
|
-
noBillingChanges: "no_billing_changes"
|
|
7280
|
+
noBillingChanges: "no_billing_changes",
|
|
7281
|
+
enablePlanImmediately: "enable_plan_immediately"
|
|
7227
7282
|
});
|
|
7228
7283
|
})
|
|
7229
7284
|
);
|
|
@@ -7421,6 +7476,22 @@ var PreviewAttachOutgoing$inboundSchema = z38.pipe(
|
|
|
7421
7476
|
})
|
|
7422
7477
|
);
|
|
7423
7478
|
var PreviewAttachCheckoutType$inboundSchema = inboundSchema(PreviewAttachCheckoutType);
|
|
7479
|
+
var PreviewAttachStatus$inboundSchema = inboundSchema(PreviewAttachStatus);
|
|
7480
|
+
var PreviewAttachTax$inboundSchema = z38.pipe(
|
|
7481
|
+
z38.object({
|
|
7482
|
+
total: number2(),
|
|
7483
|
+
amount_inclusive: number2(),
|
|
7484
|
+
amount_exclusive: number2(),
|
|
7485
|
+
currency: string4(),
|
|
7486
|
+
status: PreviewAttachStatus$inboundSchema
|
|
7487
|
+
}),
|
|
7488
|
+
z38.transform((v) => {
|
|
7489
|
+
return remap(v, {
|
|
7490
|
+
"amount_inclusive": "amountInclusive",
|
|
7491
|
+
"amount_exclusive": "amountExclusive"
|
|
7492
|
+
});
|
|
7493
|
+
})
|
|
7494
|
+
);
|
|
7424
7495
|
var PreviewAttachResponse$inboundSchema = z38.pipe(
|
|
7425
7496
|
z38.object({
|
|
7426
7497
|
customer_id: string4(),
|
|
@@ -7435,7 +7506,8 @@ var PreviewAttachResponse$inboundSchema = z38.pipe(
|
|
|
7435
7506
|
incoming: z38.array(z38.lazy(() => PreviewAttachIncoming$inboundSchema)),
|
|
7436
7507
|
outgoing: z38.array(z38.lazy(() => PreviewAttachOutgoing$inboundSchema)),
|
|
7437
7508
|
redirect_to_checkout: boolean2(),
|
|
7438
|
-
checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema)
|
|
7509
|
+
checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema),
|
|
7510
|
+
tax: optional2(z38.lazy(() => PreviewAttachTax$inboundSchema))
|
|
7439
7511
|
}),
|
|
7440
7512
|
z38.transform((v) => {
|
|
7441
7513
|
return remap(v, {
|
|
@@ -7522,6 +7594,10 @@ var PreviewMultiAttachCheckoutType = {
|
|
|
7522
7594
|
StripeCheckout: "stripe_checkout",
|
|
7523
7595
|
AutumnCheckout: "autumn_checkout"
|
|
7524
7596
|
};
|
|
7597
|
+
var PreviewMultiAttachStatus = {
|
|
7598
|
+
Complete: "complete",
|
|
7599
|
+
Incomplete: "incomplete"
|
|
7600
|
+
};
|
|
7525
7601
|
var PreviewMultiAttachPriceInterval$outboundSchema = z39.enum(PreviewMultiAttachPriceInterval);
|
|
7526
7602
|
var PreviewMultiAttachBasePrice$outboundSchema = z39.pipe(
|
|
7527
7603
|
z39.object({
|
|
@@ -7819,6 +7895,7 @@ var PreviewMultiAttachParams$outboundSchema = z39.pipe(
|
|
|
7819
7895
|
"if_required"
|
|
7820
7896
|
),
|
|
7821
7897
|
newBillingSubscription: z39.optional(z39.boolean()),
|
|
7898
|
+
enablePlanImmediately: z39.optional(z39.boolean()),
|
|
7822
7899
|
customerData: z39.optional(CustomerData$outboundSchema),
|
|
7823
7900
|
entityData: z39.optional(
|
|
7824
7901
|
z39.lazy(() => PreviewMultiAttachEntityData$outboundSchema)
|
|
@@ -7834,6 +7911,7 @@ var PreviewMultiAttachParams$outboundSchema = z39.pipe(
|
|
|
7834
7911
|
checkoutSessionParams: "checkout_session_params",
|
|
7835
7912
|
redirectMode: "redirect_mode",
|
|
7836
7913
|
newBillingSubscription: "new_billing_subscription",
|
|
7914
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
7837
7915
|
customerData: "customer_data",
|
|
7838
7916
|
entityData: "entity_data"
|
|
7839
7917
|
});
|
|
@@ -8033,6 +8111,22 @@ var PreviewMultiAttachOutgoing$inboundSchema = z39.pipe(
|
|
|
8033
8111
|
})
|
|
8034
8112
|
);
|
|
8035
8113
|
var PreviewMultiAttachCheckoutType$inboundSchema = inboundSchema(PreviewMultiAttachCheckoutType);
|
|
8114
|
+
var PreviewMultiAttachStatus$inboundSchema = inboundSchema(PreviewMultiAttachStatus);
|
|
8115
|
+
var PreviewMultiAttachTax$inboundSchema = z39.pipe(
|
|
8116
|
+
z39.object({
|
|
8117
|
+
total: number2(),
|
|
8118
|
+
amount_inclusive: number2(),
|
|
8119
|
+
amount_exclusive: number2(),
|
|
8120
|
+
currency: string4(),
|
|
8121
|
+
status: PreviewMultiAttachStatus$inboundSchema
|
|
8122
|
+
}),
|
|
8123
|
+
z39.transform((v) => {
|
|
8124
|
+
return remap(v, {
|
|
8125
|
+
"amount_inclusive": "amountInclusive",
|
|
8126
|
+
"amount_exclusive": "amountExclusive"
|
|
8127
|
+
});
|
|
8128
|
+
})
|
|
8129
|
+
);
|
|
8036
8130
|
var PreviewMultiAttachResponse$inboundSchema = z39.pipe(
|
|
8037
8131
|
z39.object({
|
|
8038
8132
|
customer_id: string4(),
|
|
@@ -8047,7 +8141,8 @@ var PreviewMultiAttachResponse$inboundSchema = z39.pipe(
|
|
|
8047
8141
|
incoming: z39.array(z39.lazy(() => PreviewMultiAttachIncoming$inboundSchema)),
|
|
8048
8142
|
outgoing: z39.array(z39.lazy(() => PreviewMultiAttachOutgoing$inboundSchema)),
|
|
8049
8143
|
redirect_to_checkout: boolean2(),
|
|
8050
|
-
checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema)
|
|
8144
|
+
checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema),
|
|
8145
|
+
tax: optional2(z39.lazy(() => PreviewMultiAttachTax$inboundSchema))
|
|
8051
8146
|
}),
|
|
8052
8147
|
z39.transform((v) => {
|
|
8053
8148
|
return remap(v, {
|
|
@@ -8901,7 +8996,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8901
8996
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8902
8997
|
),
|
|
8903
8998
|
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
8904
|
-
noBillingChanges: z42.optional(z42.boolean())
|
|
8999
|
+
noBillingChanges: z42.optional(z42.boolean()),
|
|
9000
|
+
enablePlanImmediately: z42.optional(z42.boolean())
|
|
8905
9001
|
}),
|
|
8906
9002
|
z42.transform((v) => {
|
|
8907
9003
|
return remap(v, {
|
|
@@ -8918,7 +9014,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8918
9014
|
processorSubscriptionId: "processor_subscription_id",
|
|
8919
9015
|
carryOverBalances: "carry_over_balances",
|
|
8920
9016
|
carryOverUsages: "carry_over_usages",
|
|
8921
|
-
noBillingChanges: "no_billing_changes"
|
|
9017
|
+
noBillingChanges: "no_billing_changes",
|
|
9018
|
+
enablePlanImmediately: "enable_plan_immediately"
|
|
8922
9019
|
});
|
|
8923
9020
|
})
|
|
8924
9021
|
);
|
|
@@ -9070,7 +9167,13 @@ var UpdateCustomerEnv = {
|
|
|
9070
9167
|
Sandbox: "sandbox",
|
|
9071
9168
|
Live: "live"
|
|
9072
9169
|
};
|
|
9073
|
-
var
|
|
9170
|
+
var UpdateCustomerIntervalResponse2 = {
|
|
9171
|
+
Hour: "hour",
|
|
9172
|
+
Day: "day",
|
|
9173
|
+
Week: "week",
|
|
9174
|
+
Month: "month"
|
|
9175
|
+
};
|
|
9176
|
+
var UpdateCustomerIntervalResponse1 = {
|
|
9074
9177
|
Hour: "hour",
|
|
9075
9178
|
Day: "day",
|
|
9076
9179
|
Week: "week",
|
|
@@ -9227,10 +9330,26 @@ var UpdateCustomerParams$outboundSchema = z45.pipe(
|
|
|
9227
9330
|
})
|
|
9228
9331
|
);
|
|
9229
9332
|
var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
|
|
9230
|
-
var
|
|
9231
|
-
var
|
|
9333
|
+
var UpdateCustomerIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse2);
|
|
9334
|
+
var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z45.pipe(
|
|
9232
9335
|
z45.object({
|
|
9233
|
-
interval:
|
|
9336
|
+
interval: nullable(UpdateCustomerIntervalResponse2$inboundSchema),
|
|
9337
|
+
interval_count: nullable(number2()),
|
|
9338
|
+
limit: nullable(number2()),
|
|
9339
|
+
count: number2(),
|
|
9340
|
+
next_reset_at: number2()
|
|
9341
|
+
}),
|
|
9342
|
+
z45.transform((v) => {
|
|
9343
|
+
return remap(v, {
|
|
9344
|
+
"interval_count": "intervalCount",
|
|
9345
|
+
"next_reset_at": "nextResetAt"
|
|
9346
|
+
});
|
|
9347
|
+
})
|
|
9348
|
+
);
|
|
9349
|
+
var UpdateCustomerIntervalResponse1$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse1);
|
|
9350
|
+
var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z45.pipe(
|
|
9351
|
+
z45.object({
|
|
9352
|
+
interval: UpdateCustomerIntervalResponse1$inboundSchema,
|
|
9234
9353
|
interval_count: z45._default(number2(), 1),
|
|
9235
9354
|
limit: number2()
|
|
9236
9355
|
}),
|
|
@@ -9240,15 +9359,20 @@ var UpdateCustomerPurchaseLimitResponse$inboundSchema = z45.pipe(
|
|
|
9240
9359
|
});
|
|
9241
9360
|
})
|
|
9242
9361
|
);
|
|
9362
|
+
var UpdateCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
9363
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
|
|
9364
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
|
|
9365
|
+
]);
|
|
9243
9366
|
var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
|
|
9244
9367
|
z45.object({
|
|
9245
9368
|
feature_id: string4(),
|
|
9246
9369
|
enabled: z45._default(boolean2(), false),
|
|
9247
9370
|
threshold: number2(),
|
|
9248
9371
|
quantity: number2(),
|
|
9249
|
-
purchase_limit: optional2(
|
|
9250
|
-
z45.lazy(() =>
|
|
9251
|
-
|
|
9372
|
+
purchase_limit: optional2(smartUnion([
|
|
9373
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
|
|
9374
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
|
|
9375
|
+
])),
|
|
9252
9376
|
invoice_mode: optional2(boolean2())
|
|
9253
9377
|
}),
|
|
9254
9378
|
z45.transform((v) => {
|
|
@@ -10482,7 +10606,7 @@ async function $do(client, request, options) {
|
|
|
10482
10606
|
const req = requestRes.value;
|
|
10483
10607
|
const doResult = await client._do(req, {
|
|
10484
10608
|
context,
|
|
10485
|
-
|
|
10609
|
+
errorCodes: ["4XX", "5XX"],
|
|
10486
10610
|
retryConfig: context.retryConfig,
|
|
10487
10611
|
retryCodes: context.retryCodes
|
|
10488
10612
|
});
|
|
@@ -10561,7 +10685,7 @@ async function $do2(client, request, options) {
|
|
|
10561
10685
|
const req = requestRes.value;
|
|
10562
10686
|
const doResult = await client._do(req, {
|
|
10563
10687
|
context,
|
|
10564
|
-
|
|
10688
|
+
errorCodes: ["4XX", "5XX"],
|
|
10565
10689
|
retryConfig: context.retryConfig,
|
|
10566
10690
|
retryCodes: context.retryCodes
|
|
10567
10691
|
});
|
|
@@ -11051,7 +11175,7 @@ var ClientSDK = class {
|
|
|
11051
11175
|
return OK(new Request(input.url, input.options));
|
|
11052
11176
|
}
|
|
11053
11177
|
async _do(request, options) {
|
|
11054
|
-
const { context,
|
|
11178
|
+
const { context, errorCodes } = options;
|
|
11055
11179
|
return retry(
|
|
11056
11180
|
async () => {
|
|
11057
11181
|
const req = await this.#hooks.beforeRequest(context, request.clone());
|
|
@@ -11060,7 +11184,7 @@ var ClientSDK = class {
|
|
|
11060
11184
|
);
|
|
11061
11185
|
let response = await this.#httpClient.request(req);
|
|
11062
11186
|
try {
|
|
11063
|
-
if (
|
|
11187
|
+
if (matchStatusCode(response, errorCodes)) {
|
|
11064
11188
|
const result = await this.#hooks.afterError(
|
|
11065
11189
|
context,
|
|
11066
11190
|
response,
|
|
@@ -11164,6 +11288,8 @@ async function logResponse(logger, res, req) {
|
|
|
11164
11288
|
logger.log(await res.clone().json());
|
|
11165
11289
|
break;
|
|
11166
11290
|
case (matchContentType(res, "application/jsonl") || jsonlLikeContentTypeRE.test(ct)):
|
|
11291
|
+
logger.log(await res.clone().text());
|
|
11292
|
+
break;
|
|
11167
11293
|
case matchContentType(res, "text/event-stream"):
|
|
11168
11294
|
logger.log(`<${contentType}>`);
|
|
11169
11295
|
break;
|
|
@@ -11245,7 +11371,7 @@ async function $do3(client, request, options) {
|
|
|
11245
11371
|
const req = requestRes.value;
|
|
11246
11372
|
const doResult = await client._do(req, {
|
|
11247
11373
|
context,
|
|
11248
|
-
|
|
11374
|
+
errorCodes: ["4XX", "5XX"],
|
|
11249
11375
|
retryConfig: context.retryConfig,
|
|
11250
11376
|
retryCodes: context.retryCodes
|
|
11251
11377
|
});
|
|
@@ -11323,7 +11449,7 @@ async function $do4(client, request, options) {
|
|
|
11323
11449
|
const req = requestRes.value;
|
|
11324
11450
|
const doResult = await client._do(req, {
|
|
11325
11451
|
context,
|
|
11326
|
-
|
|
11452
|
+
errorCodes: ["4XX", "5XX"],
|
|
11327
11453
|
retryConfig: context.retryConfig,
|
|
11328
11454
|
retryCodes: context.retryCodes
|
|
11329
11455
|
});
|
|
@@ -11401,7 +11527,7 @@ async function $do5(client, request, options) {
|
|
|
11401
11527
|
const req = requestRes.value;
|
|
11402
11528
|
const doResult = await client._do(req, {
|
|
11403
11529
|
context,
|
|
11404
|
-
|
|
11530
|
+
errorCodes: ["4XX", "5XX"],
|
|
11405
11531
|
retryConfig: context.retryConfig,
|
|
11406
11532
|
retryCodes: context.retryCodes
|
|
11407
11533
|
});
|
|
@@ -11480,7 +11606,7 @@ async function $do6(client, request, options) {
|
|
|
11480
11606
|
const req = requestRes.value;
|
|
11481
11607
|
const doResult = await client._do(req, {
|
|
11482
11608
|
context,
|
|
11483
|
-
|
|
11609
|
+
errorCodes: ["4XX", "5XX"],
|
|
11484
11610
|
retryConfig: context.retryConfig,
|
|
11485
11611
|
retryCodes: context.retryCodes
|
|
11486
11612
|
});
|
|
@@ -11602,7 +11728,7 @@ async function $do7(client, request, options) {
|
|
|
11602
11728
|
const req = requestRes.value;
|
|
11603
11729
|
const doResult = await client._do(req, {
|
|
11604
11730
|
context,
|
|
11605
|
-
|
|
11731
|
+
errorCodes: ["4XX", "5XX"],
|
|
11606
11732
|
retryConfig: context.retryConfig,
|
|
11607
11733
|
retryCodes: context.retryCodes
|
|
11608
11734
|
});
|
|
@@ -11680,7 +11806,7 @@ async function $do8(client, request, options) {
|
|
|
11680
11806
|
const req = requestRes.value;
|
|
11681
11807
|
const doResult = await client._do(req, {
|
|
11682
11808
|
context,
|
|
11683
|
-
|
|
11809
|
+
errorCodes: ["4XX", "5XX"],
|
|
11684
11810
|
retryConfig: context.retryConfig,
|
|
11685
11811
|
retryCodes: context.retryCodes
|
|
11686
11812
|
});
|
|
@@ -11758,7 +11884,7 @@ async function $do9(client, request, options) {
|
|
|
11758
11884
|
const req = requestRes.value;
|
|
11759
11885
|
const doResult = await client._do(req, {
|
|
11760
11886
|
context,
|
|
11761
|
-
|
|
11887
|
+
errorCodes: ["4XX", "5XX"],
|
|
11762
11888
|
retryConfig: context.retryConfig,
|
|
11763
11889
|
retryCodes: context.retryCodes
|
|
11764
11890
|
});
|
|
@@ -11836,7 +11962,7 @@ async function $do10(client, request, options) {
|
|
|
11836
11962
|
const req = requestRes.value;
|
|
11837
11963
|
const doResult = await client._do(req, {
|
|
11838
11964
|
context,
|
|
11839
|
-
|
|
11965
|
+
errorCodes: ["4XX", "5XX"],
|
|
11840
11966
|
retryConfig: context.retryConfig,
|
|
11841
11967
|
retryCodes: context.retryCodes
|
|
11842
11968
|
});
|
|
@@ -11914,7 +12040,7 @@ async function $do11(client, request, options) {
|
|
|
11914
12040
|
const req = requestRes.value;
|
|
11915
12041
|
const doResult = await client._do(req, {
|
|
11916
12042
|
context,
|
|
11917
|
-
|
|
12043
|
+
errorCodes: ["4XX", "5XX"],
|
|
11918
12044
|
retryConfig: context.retryConfig,
|
|
11919
12045
|
retryCodes: context.retryCodes
|
|
11920
12046
|
});
|
|
@@ -11992,7 +12118,7 @@ async function $do12(client, request, options) {
|
|
|
11992
12118
|
const req = requestRes.value;
|
|
11993
12119
|
const doResult = await client._do(req, {
|
|
11994
12120
|
context,
|
|
11995
|
-
|
|
12121
|
+
errorCodes: ["4XX", "5XX"],
|
|
11996
12122
|
retryConfig: context.retryConfig,
|
|
11997
12123
|
retryCodes: context.retryCodes
|
|
11998
12124
|
});
|
|
@@ -12070,7 +12196,7 @@ async function $do13(client, request, options) {
|
|
|
12070
12196
|
const req = requestRes.value;
|
|
12071
12197
|
const doResult = await client._do(req, {
|
|
12072
12198
|
context,
|
|
12073
|
-
|
|
12199
|
+
errorCodes: ["4XX", "5XX"],
|
|
12074
12200
|
retryConfig: context.retryConfig,
|
|
12075
12201
|
retryCodes: context.retryCodes
|
|
12076
12202
|
});
|
|
@@ -12148,7 +12274,7 @@ async function $do14(client, request, options) {
|
|
|
12148
12274
|
const req = requestRes.value;
|
|
12149
12275
|
const doResult = await client._do(req, {
|
|
12150
12276
|
context,
|
|
12151
|
-
|
|
12277
|
+
errorCodes: ["4XX", "5XX"],
|
|
12152
12278
|
retryConfig: context.retryConfig,
|
|
12153
12279
|
retryCodes: context.retryCodes
|
|
12154
12280
|
});
|
|
@@ -12214,6 +12340,7 @@ var Billing = class extends ClientSDK {
|
|
|
12214
12340
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
12215
12341
|
* @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
|
|
12216
12342
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
12343
|
+
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. (optional)
|
|
12217
12344
|
*
|
|
12218
12345
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
12219
12346
|
*/
|
|
@@ -12257,6 +12384,7 @@ var Billing = class extends ClientSDK {
|
|
|
12257
12384
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
12258
12385
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
12259
12386
|
* @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
|
|
12387
|
+
* @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
|
|
12260
12388
|
*
|
|
12261
12389
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
12262
12390
|
*/
|
|
@@ -12300,6 +12428,7 @@ var Billing = class extends ClientSDK {
|
|
|
12300
12428
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
12301
12429
|
* @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
|
|
12302
12430
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
12431
|
+
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. (optional)
|
|
12303
12432
|
*
|
|
12304
12433
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
12305
12434
|
*/
|
|
@@ -12331,6 +12460,7 @@ var Billing = class extends ClientSDK {
|
|
|
12331
12460
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
12332
12461
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
12333
12462
|
* @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
|
|
12463
|
+
* @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
|
|
12334
12464
|
*
|
|
12335
12465
|
* @returns A preview response with line items, totals, and effective dates for the proposed multi-plan attachment.
|
|
12336
12466
|
*/
|
|
@@ -12506,7 +12636,7 @@ async function $do15(client, request, options) {
|
|
|
12506
12636
|
const req = requestRes.value;
|
|
12507
12637
|
const doResult = await client._do(req, {
|
|
12508
12638
|
context,
|
|
12509
|
-
|
|
12639
|
+
errorCodes: ["4XX", "5XX"],
|
|
12510
12640
|
retryConfig: context.retryConfig,
|
|
12511
12641
|
retryCodes: context.retryCodes
|
|
12512
12642
|
});
|
|
@@ -12584,7 +12714,7 @@ async function $do16(client, request, options) {
|
|
|
12584
12714
|
const req = requestRes.value;
|
|
12585
12715
|
const doResult = await client._do(req, {
|
|
12586
12716
|
context,
|
|
12587
|
-
|
|
12717
|
+
errorCodes: ["4XX", "5XX"],
|
|
12588
12718
|
retryConfig: context.retryConfig,
|
|
12589
12719
|
retryCodes: context.retryCodes
|
|
12590
12720
|
});
|
|
@@ -12662,7 +12792,7 @@ async function $do17(client, request, options) {
|
|
|
12662
12792
|
const req = requestRes.value;
|
|
12663
12793
|
const doResult = await client._do(req, {
|
|
12664
12794
|
context,
|
|
12665
|
-
|
|
12795
|
+
errorCodes: ["4XX", "5XX"],
|
|
12666
12796
|
retryConfig: context.retryConfig,
|
|
12667
12797
|
retryCodes: context.retryCodes
|
|
12668
12798
|
});
|
|
@@ -12740,7 +12870,7 @@ async function $do18(client, request, options) {
|
|
|
12740
12870
|
const req = requestRes.value;
|
|
12741
12871
|
const doResult = await client._do(req, {
|
|
12742
12872
|
context,
|
|
12743
|
-
|
|
12873
|
+
errorCodes: ["4XX", "5XX"],
|
|
12744
12874
|
retryConfig: context.retryConfig,
|
|
12745
12875
|
retryCodes: context.retryCodes
|
|
12746
12876
|
});
|
|
@@ -12883,7 +13013,7 @@ async function $do19(client, request, options) {
|
|
|
12883
13013
|
const req = requestRes.value;
|
|
12884
13014
|
const doResult = await client._do(req, {
|
|
12885
13015
|
context,
|
|
12886
|
-
|
|
13016
|
+
errorCodes: ["4XX", "5XX"],
|
|
12887
13017
|
retryConfig: context.retryConfig,
|
|
12888
13018
|
retryCodes: context.retryCodes
|
|
12889
13019
|
});
|
|
@@ -12961,7 +13091,7 @@ async function $do20(client, request, options) {
|
|
|
12961
13091
|
const req = requestRes.value;
|
|
12962
13092
|
const doResult = await client._do(req, {
|
|
12963
13093
|
context,
|
|
12964
|
-
|
|
13094
|
+
errorCodes: ["4XX", "5XX"],
|
|
12965
13095
|
retryConfig: context.retryConfig,
|
|
12966
13096
|
retryCodes: context.retryCodes
|
|
12967
13097
|
});
|
|
@@ -13039,7 +13169,7 @@ async function $do21(client, request, options) {
|
|
|
13039
13169
|
const req = requestRes.value;
|
|
13040
13170
|
const doResult = await client._do(req, {
|
|
13041
13171
|
context,
|
|
13042
|
-
|
|
13172
|
+
errorCodes: ["4XX", "5XX"],
|
|
13043
13173
|
retryConfig: context.retryConfig,
|
|
13044
13174
|
retryCodes: context.retryCodes
|
|
13045
13175
|
});
|
|
@@ -13117,7 +13247,7 @@ async function $do22(client, request, options) {
|
|
|
13117
13247
|
const req = requestRes.value;
|
|
13118
13248
|
const doResult = await client._do(req, {
|
|
13119
13249
|
context,
|
|
13120
|
-
|
|
13250
|
+
errorCodes: ["4XX", "5XX"],
|
|
13121
13251
|
retryConfig: context.retryConfig,
|
|
13122
13252
|
retryCodes: context.retryCodes
|
|
13123
13253
|
});
|
|
@@ -13308,7 +13438,7 @@ async function $do23(client, request, options) {
|
|
|
13308
13438
|
const req = requestRes.value;
|
|
13309
13439
|
const doResult = await client._do(req, {
|
|
13310
13440
|
context,
|
|
13311
|
-
|
|
13441
|
+
errorCodes: ["4XX", "5XX"],
|
|
13312
13442
|
retryConfig: context.retryConfig,
|
|
13313
13443
|
retryCodes: context.retryCodes
|
|
13314
13444
|
});
|
|
@@ -13386,7 +13516,7 @@ async function $do24(client, request, options) {
|
|
|
13386
13516
|
const req = requestRes.value;
|
|
13387
13517
|
const doResult = await client._do(req, {
|
|
13388
13518
|
context,
|
|
13389
|
-
|
|
13519
|
+
errorCodes: ["4XX", "5XX"],
|
|
13390
13520
|
retryConfig: context.retryConfig,
|
|
13391
13521
|
retryCodes: context.retryCodes
|
|
13392
13522
|
});
|
|
@@ -13488,7 +13618,7 @@ async function $do25(client, request, options) {
|
|
|
13488
13618
|
const req = requestRes.value;
|
|
13489
13619
|
const doResult = await client._do(req, {
|
|
13490
13620
|
context,
|
|
13491
|
-
|
|
13621
|
+
errorCodes: ["4XX", "5XX"],
|
|
13492
13622
|
retryConfig: context.retryConfig,
|
|
13493
13623
|
retryCodes: context.retryCodes
|
|
13494
13624
|
});
|
|
@@ -13566,7 +13696,7 @@ async function $do26(client, request, options) {
|
|
|
13566
13696
|
const req = requestRes.value;
|
|
13567
13697
|
const doResult = await client._do(req, {
|
|
13568
13698
|
context,
|
|
13569
|
-
|
|
13699
|
+
errorCodes: ["4XX", "5XX"],
|
|
13570
13700
|
retryConfig: context.retryConfig,
|
|
13571
13701
|
retryCodes: context.retryCodes
|
|
13572
13702
|
});
|
|
@@ -13644,7 +13774,7 @@ async function $do27(client, request, options) {
|
|
|
13644
13774
|
const req = requestRes.value;
|
|
13645
13775
|
const doResult = await client._do(req, {
|
|
13646
13776
|
context,
|
|
13647
|
-
|
|
13777
|
+
errorCodes: ["4XX", "5XX"],
|
|
13648
13778
|
retryConfig: context.retryConfig,
|
|
13649
13779
|
retryCodes: context.retryCodes
|
|
13650
13780
|
});
|
|
@@ -13709,7 +13839,7 @@ async function $do28(client, _request, options) {
|
|
|
13709
13839
|
const req = requestRes.value;
|
|
13710
13840
|
const doResult = await client._do(req, {
|
|
13711
13841
|
context,
|
|
13712
|
-
|
|
13842
|
+
errorCodes: ["4XX", "5XX"],
|
|
13713
13843
|
retryConfig: context.retryConfig,
|
|
13714
13844
|
retryCodes: context.retryCodes
|
|
13715
13845
|
});
|
|
@@ -13787,7 +13917,7 @@ async function $do29(client, request, options) {
|
|
|
13787
13917
|
const req = requestRes.value;
|
|
13788
13918
|
const doResult = await client._do(req, {
|
|
13789
13919
|
context,
|
|
13790
|
-
|
|
13920
|
+
errorCodes: ["4XX", "5XX"],
|
|
13791
13921
|
retryConfig: context.retryConfig,
|
|
13792
13922
|
retryCodes: context.retryCodes
|
|
13793
13923
|
});
|
|
@@ -14001,7 +14131,7 @@ async function $do30(client, request, options) {
|
|
|
14001
14131
|
const req = requestRes.value;
|
|
14002
14132
|
const doResult = await client._do(req, {
|
|
14003
14133
|
context,
|
|
14004
|
-
|
|
14134
|
+
errorCodes: ["4XX", "5XX"],
|
|
14005
14135
|
retryConfig: context.retryConfig,
|
|
14006
14136
|
retryCodes: context.retryCodes
|
|
14007
14137
|
});
|
|
@@ -14079,7 +14209,7 @@ async function $do31(client, request, options) {
|
|
|
14079
14209
|
const req = requestRes.value;
|
|
14080
14210
|
const doResult = await client._do(req, {
|
|
14081
14211
|
context,
|
|
14082
|
-
|
|
14212
|
+
errorCodes: ["4XX", "5XX"],
|
|
14083
14213
|
retryConfig: context.retryConfig,
|
|
14084
14214
|
retryCodes: context.retryCodes
|
|
14085
14215
|
});
|
|
@@ -14157,7 +14287,7 @@ async function $do32(client, request, options) {
|
|
|
14157
14287
|
const req = requestRes.value;
|
|
14158
14288
|
const doResult = await client._do(req, {
|
|
14159
14289
|
context,
|
|
14160
|
-
|
|
14290
|
+
errorCodes: ["4XX", "5XX"],
|
|
14161
14291
|
retryConfig: context.retryConfig,
|
|
14162
14292
|
retryCodes: context.retryCodes
|
|
14163
14293
|
});
|
|
@@ -14235,7 +14365,7 @@ async function $do33(client, request, options) {
|
|
|
14235
14365
|
const req = requestRes.value;
|
|
14236
14366
|
const doResult = await client._do(req, {
|
|
14237
14367
|
context,
|
|
14238
|
-
|
|
14368
|
+
errorCodes: ["4XX", "5XX"],
|
|
14239
14369
|
retryConfig: context.retryConfig,
|
|
14240
14370
|
retryCodes: context.retryCodes
|
|
14241
14371
|
});
|
|
@@ -14313,7 +14443,7 @@ async function $do34(client, request, options) {
|
|
|
14313
14443
|
const req = requestRes.value;
|
|
14314
14444
|
const doResult = await client._do(req, {
|
|
14315
14445
|
context,
|
|
14316
|
-
|
|
14446
|
+
errorCodes: ["4XX", "5XX"],
|
|
14317
14447
|
retryConfig: context.retryConfig,
|
|
14318
14448
|
retryCodes: context.retryCodes
|
|
14319
14449
|
});
|
|
@@ -14623,7 +14753,7 @@ async function $do35(client, request, options) {
|
|
|
14623
14753
|
const req = requestRes.value;
|
|
14624
14754
|
const doResult = await client._do(req, {
|
|
14625
14755
|
context,
|
|
14626
|
-
|
|
14756
|
+
errorCodes: ["4XX", "5XX"],
|
|
14627
14757
|
retryConfig: context.retryConfig,
|
|
14628
14758
|
retryCodes: context.retryCodes
|
|
14629
14759
|
});
|
|
@@ -14701,7 +14831,7 @@ async function $do36(client, request, options) {
|
|
|
14701
14831
|
const req = requestRes.value;
|
|
14702
14832
|
const doResult = await client._do(req, {
|
|
14703
14833
|
context,
|
|
14704
|
-
|
|
14834
|
+
errorCodes: ["4XX", "5XX"],
|
|
14705
14835
|
retryConfig: context.retryConfig,
|
|
14706
14836
|
retryCodes: context.retryCodes
|
|
14707
14837
|
});
|
|
@@ -15083,7 +15213,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
15083
15213
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
15084
15214
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
15085
15215
|
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
15086
|
-
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
15216
|
+
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
15217
|
+
enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
15087
15218
|
});
|
|
15088
15219
|
var closedEnumSchema2 = import_v42.z.any();
|
|
15089
15220
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -15169,7 +15300,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
15169
15300
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
15170
15301
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
15171
15302
|
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
15172
|
-
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
15303
|
+
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
15304
|
+
enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
15173
15305
|
});
|
|
15174
15306
|
var attachCodeSchema = openEnumSchema;
|
|
15175
15307
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -15740,6 +15872,7 @@ var multiAttachParamsSchema = import_v47.z.object({
|
|
|
15740
15872
|
checkoutSessionParams: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
|
|
15741
15873
|
redirectMode: import_v47.z.union([multiAttachRedirectModeSchema, import_v47.z.undefined()]).optional(),
|
|
15742
15874
|
newBillingSubscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15875
|
+
enablePlanImmediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15743
15876
|
customerData: import_v47.z.union([customerDataSchema, import_v47.z.undefined()]).optional(),
|
|
15744
15877
|
entityData: import_v47.z.union([multiAttachEntityDataSchema, import_v47.z.undefined()]).optional()
|
|
15745
15878
|
});
|
|
@@ -15766,6 +15899,7 @@ var multiAttachParamsOutboundSchema = import_v47.z.object({
|
|
|
15766
15899
|
checkout_session_params: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
|
|
15767
15900
|
redirect_mode: import_v47.z.string(),
|
|
15768
15901
|
new_billing_subscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15902
|
+
enable_plan_immediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15769
15903
|
customer_data: import_v47.z.union([customerDataOutboundSchema, import_v47.z.undefined()]).optional(),
|
|
15770
15904
|
entity_data: import_v47.z.union([multiAttachEntityDataOutboundSchema, import_v47.z.undefined()]).optional()
|
|
15771
15905
|
});
|
|
@@ -15999,7 +16133,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15999
16133
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
16000
16134
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
16001
16135
|
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
16002
|
-
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
16136
|
+
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
16137
|
+
enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
16003
16138
|
});
|
|
16004
16139
|
var closedEnumSchema5 = import_v49.z.any();
|
|
16005
16140
|
var planSchema = import_v49.z.any();
|
|
@@ -16086,7 +16221,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
16086
16221
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
16087
16222
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
16088
16223
|
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
16089
|
-
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
16224
|
+
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
16225
|
+
enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
16090
16226
|
});
|
|
16091
16227
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
16092
16228
|
planId: import_v49.z.string(),
|
|
@@ -16105,6 +16241,14 @@ var previewAttachOutgoingSchema = import_v49.z.object({
|
|
|
16105
16241
|
expiresAt: import_v49.z.number().nullable()
|
|
16106
16242
|
});
|
|
16107
16243
|
var previewAttachCheckoutTypeSchema = openEnumSchema4;
|
|
16244
|
+
var previewAttachStatusSchema = openEnumSchema4;
|
|
16245
|
+
var previewAttachTaxSchema = import_v49.z.object({
|
|
16246
|
+
total: import_v49.z.number(),
|
|
16247
|
+
amountInclusive: import_v49.z.number(),
|
|
16248
|
+
amountExclusive: import_v49.z.number(),
|
|
16249
|
+
currency: import_v49.z.string(),
|
|
16250
|
+
status: previewAttachStatusSchema
|
|
16251
|
+
});
|
|
16108
16252
|
var previewAttachResponseSchema = import_v49.z.object({
|
|
16109
16253
|
customerId: import_v49.z.string(),
|
|
16110
16254
|
lineItems: import_v49.z.array(previewAttachLineItemSchema),
|
|
@@ -16116,7 +16260,8 @@ var previewAttachResponseSchema = import_v49.z.object({
|
|
|
16116
16260
|
incoming: import_v49.z.array(previewAttachIncomingSchema),
|
|
16117
16261
|
outgoing: import_v49.z.array(previewAttachOutgoingSchema),
|
|
16118
16262
|
redirectToCheckout: import_v49.z.boolean(),
|
|
16119
|
-
checkoutType: previewAttachCheckoutTypeSchema.nullable()
|
|
16263
|
+
checkoutType: previewAttachCheckoutTypeSchema.nullable(),
|
|
16264
|
+
tax: import_v49.z.union([previewAttachTaxSchema, import_v49.z.undefined()]).optional()
|
|
16120
16265
|
});
|
|
16121
16266
|
|
|
16122
16267
|
// src/generated/previewMultiAttachSchemas.ts
|
|
@@ -16430,6 +16575,7 @@ var previewMultiAttachParamsSchema = import_v410.z.object({
|
|
|
16430
16575
|
checkoutSessionParams: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
|
|
16431
16576
|
redirectMode: import_v410.z.union([previewMultiAttachRedirectModeSchema, import_v410.z.undefined()]).optional(),
|
|
16432
16577
|
newBillingSubscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16578
|
+
enablePlanImmediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16433
16579
|
customerData: import_v410.z.union([customerDataSchema2, import_v410.z.undefined()]).optional(),
|
|
16434
16580
|
entityData: import_v410.z.union([previewMultiAttachEntityDataSchema, import_v410.z.undefined()]).optional()
|
|
16435
16581
|
});
|
|
@@ -16450,6 +16596,14 @@ var previewMultiAttachOutgoingSchema = import_v410.z.object({
|
|
|
16450
16596
|
expiresAt: import_v410.z.number().nullable()
|
|
16451
16597
|
});
|
|
16452
16598
|
var previewMultiAttachCheckoutTypeSchema = openEnumSchema5;
|
|
16599
|
+
var previewMultiAttachStatusSchema = openEnumSchema5;
|
|
16600
|
+
var previewMultiAttachTaxSchema = import_v410.z.object({
|
|
16601
|
+
total: import_v410.z.number(),
|
|
16602
|
+
amountInclusive: import_v410.z.number(),
|
|
16603
|
+
amountExclusive: import_v410.z.number(),
|
|
16604
|
+
currency: import_v410.z.string(),
|
|
16605
|
+
status: previewMultiAttachStatusSchema
|
|
16606
|
+
});
|
|
16453
16607
|
var previewMultiAttachResponseSchema = import_v410.z.object({
|
|
16454
16608
|
customerId: import_v410.z.string(),
|
|
16455
16609
|
lineItems: import_v410.z.array(previewMultiAttachLineItemSchema),
|
|
@@ -16461,7 +16615,8 @@ var previewMultiAttachResponseSchema = import_v410.z.object({
|
|
|
16461
16615
|
incoming: import_v410.z.array(previewMultiAttachIncomingSchema),
|
|
16462
16616
|
outgoing: import_v410.z.array(previewMultiAttachOutgoingSchema),
|
|
16463
16617
|
redirectToCheckout: import_v410.z.boolean(),
|
|
16464
|
-
checkoutType: previewMultiAttachCheckoutTypeSchema.nullable()
|
|
16618
|
+
checkoutType: previewMultiAttachCheckoutTypeSchema.nullable(),
|
|
16619
|
+
tax: import_v410.z.union([previewMultiAttachTaxSchema, import_v410.z.undefined()]).optional()
|
|
16465
16620
|
});
|
|
16466
16621
|
var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
|
|
16467
16622
|
customer_id: import_v410.z.string(),
|
|
@@ -16477,6 +16632,7 @@ var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
|
|
|
16477
16632
|
checkout_session_params: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
|
|
16478
16633
|
redirect_mode: import_v410.z.string(),
|
|
16479
16634
|
new_billing_subscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16635
|
+
enable_plan_immediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16480
16636
|
customer_data: import_v410.z.union([customerDataOutboundSchema2, import_v410.z.undefined()]).optional(),
|
|
16481
16637
|
entity_data: import_v410.z.union([previewMultiAttachEntityDataOutboundSchema, import_v410.z.undefined()]).optional()
|
|
16482
16638
|
});
|
|
@@ -16926,7 +17082,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16926
17082
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16927
17083
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16928
17084
|
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16929
|
-
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
17085
|
+
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
17086
|
+
enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16930
17087
|
});
|
|
16931
17088
|
var closedEnumSchema8 = import_v413.z.any();
|
|
16932
17089
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -17005,7 +17162,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
17005
17162
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
17006
17163
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
17007
17164
|
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
17008
|
-
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
17165
|
+
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
17166
|
+
enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
17009
17167
|
});
|
|
17010
17168
|
|
|
17011
17169
|
// src/generated/updateSubscriptionSchemas.ts
|