autumn-js 1.2.22 → 1.2.24
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 +205 -87
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +205 -87
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +205 -87
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +205 -87
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +205 -87
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-S2B2FKPR.mjs → chunk-3XVW22NT.mjs} +164 -66
- package/dist/backend/{chunk-7XMPPAZW.mjs → chunk-5CLWD4RW.mjs} +1 -1
- package/dist/backend/{chunk-7CKSHBDB.mjs → chunk-DICOXILS.mjs} +5 -5
- package/dist/backend/{chunk-DV6G3SKP.mjs → chunk-FBSZ5VUZ.mjs} +1 -1
- package/dist/backend/{chunk-NSHGFU5H.mjs → chunk-GGQPGZC7.mjs} +41 -21
- package/dist/backend/{chunk-XWVGR2CL.mjs → chunk-R6WNMKJW.mjs} +1 -1
- package/dist/backend/{chunk-SZPTE2DZ.mjs → chunk-TOCINHF4.mjs} +7 -7
- package/dist/backend/{chunk-NNB5AJJV.mjs → chunk-UDOV52FM.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 +205 -87
- 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 +205 -87
- 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 +205 -87
- 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 +205 -87
- 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 +41 -21
- 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 +41 -21
- 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 +205 -87
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-J2Y6i14Y.d.mts → routeTypes-DYlzt6nc.d.mts} +226 -80
- package/dist/backend/{routeTypes-HvP8u0wg.d.ts → routeTypes-y1qRo08h.d.ts} +226 -80
- package/dist/better-auth/{chunk-HX6AO7RF.mjs → chunk-FNNGRSHA.mjs} +165 -67
- package/dist/better-auth/{chunk-R35KMMJZ.mjs → chunk-IMYTX3U6.mjs} +1 -1
- package/dist/better-auth/{chunk-X6KOCWP3.mjs → chunk-RIVG4JZM.mjs} +41 -21
- package/dist/better-auth/index.js +205 -87
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +41 -21
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +205 -87
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +205 -87
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +3 -3
- package/dist/react/AutumnContext.d.ts +3 -3
- package/dist/react/chunk-P23DM4IS.mjs +139 -0
- package/dist/react/client/AutumnClient.d.mts +3 -3
- package/dist/react/client/AutumnClient.d.ts +3 -3
- package/dist/react/client/IAutumnClient.d.mts +12 -3
- package/dist/react/client/IAutumnClient.d.ts +12 -3
- package/dist/react/client/index.d.mts +3 -3
- package/dist/react/client/index.d.ts +3 -3
- package/dist/react/{customer-DjlCjlmM.d.mts → customer-BTYGVzNm.d.mts} +1 -1
- package/dist/react/{customer-CzMuZp8W.d.ts → customer-zogPdrbc.d.ts} +1 -1
- package/dist/react/hooks/index.d.mts +3 -3
- package/dist/react/hooks/index.d.ts +3 -3
- package/dist/react/hooks/index.js +69 -16
- package/dist/react/hooks/index.mjs +6 -6
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
- package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useListEvents.d.mts +2 -2
- package/dist/react/hooks/useListEvents.d.ts +2 -2
- package/dist/react/hooks/useListEvents.js +69 -16
- package/dist/react/hooks/useListEvents.mjs +1 -1
- package/dist/react/hooks/useListPlans.d.mts +2 -2
- package/dist/react/hooks/useListPlans.d.ts +2 -2
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/index.d.mts +3 -3
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +69 -16
- package/dist/react/index.mjs +6 -6
- package/dist/react/{params-BUQLwLrI.d.mts → params-BOhsjvhF.d.ts} +131 -20
- package/dist/react/{params-dYykqsvL.d.ts → params-Bl3fAEku.d.mts} +131 -20
- package/dist/react/{plan-DSTBzzTY.d.mts → plan-DYHM9lBi.d.mts} +9 -0
- package/dist/react/{plan-DSTBzzTY.d.ts → plan-DYHM9lBi.d.ts} +9 -0
- package/dist/sdk/index.d.mts +273 -86
- package/dist/sdk/index.d.ts +273 -86
- package/dist/sdk/index.js +196 -66
- package/dist/sdk/index.mjs +165 -67
- package/package.json +1 -1
- package/dist/react/chunk-MC2YYATT.mjs +0 -86
- package/dist/backend/{chunk-S5HPMJ4U.mjs → chunk-55C2WWXQ.mjs} +3 -3
|
@@ -76,10 +76,10 @@ function serverURLFromOptions(options) {
|
|
|
76
76
|
}
|
|
77
77
|
var SDK_METADATA = {
|
|
78
78
|
language: "typescript",
|
|
79
|
-
openapiDocVersion: "2.
|
|
79
|
+
openapiDocVersion: "2.3.0",
|
|
80
80
|
sdkVersion: "0.10.17",
|
|
81
81
|
genVersion: "2.882.0",
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.882.0 2.
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.882.0 2.3.0 @useautumn/sdk"
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
// ../sdk/src/lib/http.ts
|
|
@@ -849,7 +849,7 @@ function dlv(obj, key, def, p, undef) {
|
|
|
849
849
|
// ../sdk/src/lib/env.ts
|
|
850
850
|
var envSchema = z5.object({
|
|
851
851
|
AUTUMN_SECRET_KEY: z5.optional(z5.string()),
|
|
852
|
-
AUTUMN_X_API_VERSION: z5._default(z5.string(), "2.
|
|
852
|
+
AUTUMN_X_API_VERSION: z5._default(z5.string(), "2.3.0"),
|
|
853
853
|
AUTUMN_FAIL_OPEN: z5.pipe(
|
|
854
854
|
z5._default(z5.enum(["true", "false"]), "true"),
|
|
855
855
|
z5.transform((v) => v === "true")
|
|
@@ -1511,6 +1511,10 @@ var AttachDurationType = {
|
|
|
1511
1511
|
Month: "month",
|
|
1512
1512
|
Year: "year"
|
|
1513
1513
|
};
|
|
1514
|
+
var AttachOnEnd = {
|
|
1515
|
+
Bill: "bill",
|
|
1516
|
+
Revert: "revert"
|
|
1517
|
+
};
|
|
1514
1518
|
var AttachProrationBehavior = {
|
|
1515
1519
|
ProrateImmediately: "prorate_immediately",
|
|
1516
1520
|
None: "none"
|
|
@@ -1760,17 +1764,20 @@ var AttachPlanItemFilter$outboundSchema = z10.pipe(
|
|
|
1760
1764
|
})
|
|
1761
1765
|
);
|
|
1762
1766
|
var AttachDurationType$outboundSchema = z10.enum(AttachDurationType);
|
|
1767
|
+
var AttachOnEnd$outboundSchema = z10.enum(AttachOnEnd);
|
|
1763
1768
|
var AttachFreeTrialParams$outboundSchema = z10.pipe(
|
|
1764
1769
|
z10.object({
|
|
1765
1770
|
durationLength: z10.number(),
|
|
1766
1771
|
durationType: z10._default(AttachDurationType$outboundSchema, "month"),
|
|
1767
|
-
cardRequired: z10._default(z10.boolean(), true)
|
|
1772
|
+
cardRequired: z10._default(z10.boolean(), true),
|
|
1773
|
+
onEnd: z10.optional(AttachOnEnd$outboundSchema)
|
|
1768
1774
|
}),
|
|
1769
1775
|
z10.transform((v) => {
|
|
1770
1776
|
return remap(v, {
|
|
1771
1777
|
durationLength: "duration_length",
|
|
1772
1778
|
durationType: "duration_type",
|
|
1773
|
-
cardRequired: "card_required"
|
|
1779
|
+
cardRequired: "card_required",
|
|
1780
|
+
onEnd: "on_end"
|
|
1774
1781
|
});
|
|
1775
1782
|
})
|
|
1776
1783
|
);
|
|
@@ -2225,6 +2232,10 @@ var BillingUpdateDurationType = {
|
|
|
2225
2232
|
Month: "month",
|
|
2226
2233
|
Year: "year"
|
|
2227
2234
|
};
|
|
2235
|
+
var BillingUpdateOnEnd = {
|
|
2236
|
+
Bill: "bill",
|
|
2237
|
+
Revert: "revert"
|
|
2238
|
+
};
|
|
2228
2239
|
var BillingUpdateProrationBehavior = {
|
|
2229
2240
|
ProrateImmediately: "prorate_immediately",
|
|
2230
2241
|
None: "none"
|
|
@@ -2491,17 +2502,20 @@ var BillingUpdatePlanItemFilter$outboundSchema = z12.pipe(
|
|
|
2491
2502
|
})
|
|
2492
2503
|
);
|
|
2493
2504
|
var BillingUpdateDurationType$outboundSchema = z12.enum(BillingUpdateDurationType);
|
|
2505
|
+
var BillingUpdateOnEnd$outboundSchema = z12.enum(BillingUpdateOnEnd);
|
|
2494
2506
|
var BillingUpdateFreeTrialParams$outboundSchema = z12.pipe(
|
|
2495
2507
|
z12.object({
|
|
2496
2508
|
durationLength: z12.number(),
|
|
2497
2509
|
durationType: z12._default(BillingUpdateDurationType$outboundSchema, "month"),
|
|
2498
|
-
cardRequired: z12._default(z12.boolean(), true)
|
|
2510
|
+
cardRequired: z12._default(z12.boolean(), true),
|
|
2511
|
+
onEnd: z12.optional(BillingUpdateOnEnd$outboundSchema)
|
|
2499
2512
|
}),
|
|
2500
2513
|
z12.transform((v) => {
|
|
2501
2514
|
return remap(v, {
|
|
2502
2515
|
durationLength: "duration_length",
|
|
2503
2516
|
durationType: "duration_type",
|
|
2504
|
-
cardRequired: "card_required"
|
|
2517
|
+
cardRequired: "card_required",
|
|
2518
|
+
onEnd: "on_end"
|
|
2505
2519
|
});
|
|
2506
2520
|
})
|
|
2507
2521
|
);
|
|
@@ -2715,6 +2729,10 @@ var FreeTrialDuration2 = {
|
|
|
2715
2729
|
Month: "month",
|
|
2716
2730
|
Year: "year"
|
|
2717
2731
|
};
|
|
2732
|
+
var CheckOnEnd2 = {
|
|
2733
|
+
Bill: "bill",
|
|
2734
|
+
Revert: "revert"
|
|
2735
|
+
};
|
|
2718
2736
|
var ProductScenario2 = {
|
|
2719
2737
|
Scheduled: "scheduled",
|
|
2720
2738
|
Active: "active",
|
|
@@ -2791,6 +2809,10 @@ var FreeTrialDuration1 = {
|
|
|
2791
2809
|
Month: "month",
|
|
2792
2810
|
Year: "year"
|
|
2793
2811
|
};
|
|
2812
|
+
var CheckOnEnd1 = {
|
|
2813
|
+
Bill: "bill",
|
|
2814
|
+
Revert: "revert"
|
|
2815
|
+
};
|
|
2794
2816
|
var ProductScenario1 = {
|
|
2795
2817
|
Scheduled: "scheduled",
|
|
2796
2818
|
Active: "active",
|
|
@@ -2982,18 +3004,21 @@ var CheckItem2$inboundSchema = z13.pipe(
|
|
|
2982
3004
|
})
|
|
2983
3005
|
);
|
|
2984
3006
|
var FreeTrialDuration2$inboundSchema = inboundSchema(FreeTrialDuration2);
|
|
3007
|
+
var CheckOnEnd2$inboundSchema = inboundSchema(CheckOnEnd2);
|
|
2985
3008
|
var CheckFreeTrial2$inboundSchema = z13.pipe(
|
|
2986
3009
|
z13.object({
|
|
2987
3010
|
duration: FreeTrialDuration2$inboundSchema,
|
|
2988
3011
|
length: number2(),
|
|
2989
3012
|
unique_fingerprint: boolean2(),
|
|
2990
3013
|
card_required: boolean2(),
|
|
3014
|
+
on_end: z13.optional(z13.nullable(CheckOnEnd2$inboundSchema)),
|
|
2991
3015
|
trial_available: z13.nullable(z13._default(boolean2(), true))
|
|
2992
3016
|
}),
|
|
2993
3017
|
z13.transform((v) => {
|
|
2994
3018
|
return remap(v, {
|
|
2995
3019
|
"unique_fingerprint": "uniqueFingerprint",
|
|
2996
3020
|
"card_required": "cardRequired",
|
|
3021
|
+
"on_end": "onEnd",
|
|
2997
3022
|
"trial_available": "trialAvailable"
|
|
2998
3023
|
});
|
|
2999
3024
|
})
|
|
@@ -3224,18 +3249,21 @@ var CheckItem1$inboundSchema = z13.pipe(
|
|
|
3224
3249
|
})
|
|
3225
3250
|
);
|
|
3226
3251
|
var FreeTrialDuration1$inboundSchema = inboundSchema(FreeTrialDuration1);
|
|
3252
|
+
var CheckOnEnd1$inboundSchema = inboundSchema(CheckOnEnd1);
|
|
3227
3253
|
var CheckFreeTrial1$inboundSchema = z13.pipe(
|
|
3228
3254
|
z13.object({
|
|
3229
3255
|
duration: FreeTrialDuration1$inboundSchema,
|
|
3230
3256
|
length: number2(),
|
|
3231
3257
|
unique_fingerprint: boolean2(),
|
|
3232
3258
|
card_required: boolean2(),
|
|
3259
|
+
on_end: z13.optional(z13.nullable(CheckOnEnd1$inboundSchema)),
|
|
3233
3260
|
trial_available: z13.nullable(z13._default(boolean2(), true))
|
|
3234
3261
|
}),
|
|
3235
3262
|
z13.transform((v) => {
|
|
3236
3263
|
return remap(v, {
|
|
3237
3264
|
"unique_fingerprint": "uniqueFingerprint",
|
|
3238
3265
|
"card_required": "cardRequired",
|
|
3266
|
+
"on_end": "onEnd",
|
|
3239
3267
|
"trial_available": "trialAvailable"
|
|
3240
3268
|
});
|
|
3241
3269
|
})
|
|
@@ -3599,6 +3627,10 @@ var PlanDurationType = {
|
|
|
3599
3627
|
Month: "month",
|
|
3600
3628
|
Year: "year"
|
|
3601
3629
|
};
|
|
3630
|
+
var OnEnd = {
|
|
3631
|
+
Bill: "bill",
|
|
3632
|
+
Revert: "revert"
|
|
3633
|
+
};
|
|
3602
3634
|
var PlanEnv = {
|
|
3603
3635
|
Sandbox: "sandbox",
|
|
3604
3636
|
Live: "live"
|
|
@@ -3758,17 +3790,20 @@ var Item$inboundSchema = z16.pipe(
|
|
|
3758
3790
|
})
|
|
3759
3791
|
);
|
|
3760
3792
|
var PlanDurationType$inboundSchema = inboundSchema(PlanDurationType);
|
|
3793
|
+
var OnEnd$inboundSchema = inboundSchema(OnEnd);
|
|
3761
3794
|
var FreeTrial$inboundSchema = z16.pipe(
|
|
3762
3795
|
z16.object({
|
|
3763
3796
|
duration_length: number2(),
|
|
3764
3797
|
duration_type: PlanDurationType$inboundSchema,
|
|
3765
|
-
card_required: boolean2()
|
|
3798
|
+
card_required: boolean2(),
|
|
3799
|
+
on_end: z16.optional(z16.nullable(OnEnd$inboundSchema))
|
|
3766
3800
|
}),
|
|
3767
3801
|
z16.transform((v) => {
|
|
3768
3802
|
return remap(v, {
|
|
3769
3803
|
"duration_length": "durationLength",
|
|
3770
3804
|
"duration_type": "durationType",
|
|
3771
|
-
"card_required": "cardRequired"
|
|
3805
|
+
"card_required": "cardRequired",
|
|
3806
|
+
"on_end": "onEnd"
|
|
3772
3807
|
});
|
|
3773
3808
|
})
|
|
3774
3809
|
);
|
|
@@ -4313,6 +4348,10 @@ var CreatePlanDurationTypeRequest = {
|
|
|
4313
4348
|
Month: "month",
|
|
4314
4349
|
Year: "year"
|
|
4315
4350
|
};
|
|
4351
|
+
var CreatePlanOnEndRequest = {
|
|
4352
|
+
Bill: "bill",
|
|
4353
|
+
Revert: "revert"
|
|
4354
|
+
};
|
|
4316
4355
|
var CreatePlanPriceIntervalResponse = {
|
|
4317
4356
|
OneOff: "one_off",
|
|
4318
4357
|
Week: "week",
|
|
@@ -4364,6 +4403,10 @@ var CreatePlanDurationTypeResponse = {
|
|
|
4364
4403
|
Month: "month",
|
|
4365
4404
|
Year: "year"
|
|
4366
4405
|
};
|
|
4406
|
+
var CreatePlanOnEndResponse = {
|
|
4407
|
+
Bill: "bill",
|
|
4408
|
+
Revert: "revert"
|
|
4409
|
+
};
|
|
4367
4410
|
var CreatePlanEnv = {
|
|
4368
4411
|
Sandbox: "sandbox",
|
|
4369
4412
|
Live: "live"
|
|
@@ -4490,6 +4533,7 @@ var CreatePlanPlanItem$outboundSchema = z19.pipe(
|
|
|
4490
4533
|
})
|
|
4491
4534
|
);
|
|
4492
4535
|
var CreatePlanDurationTypeRequest$outboundSchema = z19.enum(CreatePlanDurationTypeRequest);
|
|
4536
|
+
var CreatePlanOnEndRequest$outboundSchema = z19.enum(CreatePlanOnEndRequest);
|
|
4493
4537
|
var FreeTrialRequest$outboundSchema = z19.pipe(
|
|
4494
4538
|
z19.object({
|
|
4495
4539
|
durationLength: z19.number(),
|
|
@@ -4497,13 +4541,15 @@ var FreeTrialRequest$outboundSchema = z19.pipe(
|
|
|
4497
4541
|
CreatePlanDurationTypeRequest$outboundSchema,
|
|
4498
4542
|
"month"
|
|
4499
4543
|
),
|
|
4500
|
-
cardRequired: z19._default(z19.boolean(), true)
|
|
4544
|
+
cardRequired: z19._default(z19.boolean(), true),
|
|
4545
|
+
onEnd: z19.optional(CreatePlanOnEndRequest$outboundSchema)
|
|
4501
4546
|
}),
|
|
4502
4547
|
z19.transform((v) => {
|
|
4503
4548
|
return remap(v, {
|
|
4504
4549
|
durationLength: "duration_length",
|
|
4505
4550
|
durationType: "duration_type",
|
|
4506
|
-
cardRequired: "card_required"
|
|
4551
|
+
cardRequired: "card_required",
|
|
4552
|
+
onEnd: "on_end"
|
|
4507
4553
|
});
|
|
4508
4554
|
})
|
|
4509
4555
|
);
|
|
@@ -4689,17 +4735,20 @@ var CreatePlanItem$inboundSchema = z19.pipe(
|
|
|
4689
4735
|
})
|
|
4690
4736
|
);
|
|
4691
4737
|
var CreatePlanDurationTypeResponse$inboundSchema = inboundSchema(CreatePlanDurationTypeResponse);
|
|
4738
|
+
var CreatePlanOnEndResponse$inboundSchema = inboundSchema(CreatePlanOnEndResponse);
|
|
4692
4739
|
var CreatePlanFreeTrialResponse$inboundSchema = z19.pipe(
|
|
4693
4740
|
z19.object({
|
|
4694
4741
|
duration_length: number2(),
|
|
4695
4742
|
duration_type: CreatePlanDurationTypeResponse$inboundSchema,
|
|
4696
|
-
card_required: boolean2()
|
|
4743
|
+
card_required: boolean2(),
|
|
4744
|
+
on_end: z19.optional(z19.nullable(CreatePlanOnEndResponse$inboundSchema))
|
|
4697
4745
|
}),
|
|
4698
4746
|
z19.transform((v) => {
|
|
4699
4747
|
return remap(v, {
|
|
4700
4748
|
"duration_length": "durationLength",
|
|
4701
4749
|
"duration_type": "durationType",
|
|
4702
|
-
"card_required": "cardRequired"
|
|
4750
|
+
"card_required": "cardRequired",
|
|
4751
|
+
"on_end": "onEnd"
|
|
4703
4752
|
});
|
|
4704
4753
|
})
|
|
4705
4754
|
);
|
|
@@ -6718,6 +6767,10 @@ var GetPlanDurationType = {
|
|
|
6718
6767
|
Month: "month",
|
|
6719
6768
|
Year: "year"
|
|
6720
6769
|
};
|
|
6770
|
+
var GetPlanOnEnd = {
|
|
6771
|
+
Bill: "bill",
|
|
6772
|
+
Revert: "revert"
|
|
6773
|
+
};
|
|
6721
6774
|
var GetPlanEnv = {
|
|
6722
6775
|
Sandbox: "sandbox",
|
|
6723
6776
|
Live: "live"
|
|
@@ -6888,17 +6941,20 @@ var GetPlanItem$inboundSchema = z34.pipe(
|
|
|
6888
6941
|
})
|
|
6889
6942
|
);
|
|
6890
6943
|
var GetPlanDurationType$inboundSchema = inboundSchema(GetPlanDurationType);
|
|
6944
|
+
var GetPlanOnEnd$inboundSchema = inboundSchema(GetPlanOnEnd);
|
|
6891
6945
|
var GetPlanFreeTrial$inboundSchema = z34.pipe(
|
|
6892
6946
|
z34.object({
|
|
6893
6947
|
duration_length: number2(),
|
|
6894
6948
|
duration_type: GetPlanDurationType$inboundSchema,
|
|
6895
|
-
card_required: boolean2()
|
|
6949
|
+
card_required: boolean2(),
|
|
6950
|
+
on_end: z34.optional(z34.nullable(GetPlanOnEnd$inboundSchema))
|
|
6896
6951
|
}),
|
|
6897
6952
|
z34.transform((v) => {
|
|
6898
6953
|
return remap(v, {
|
|
6899
6954
|
"duration_length": "durationLength",
|
|
6900
6955
|
"duration_type": "durationType",
|
|
6901
|
-
"card_required": "cardRequired"
|
|
6956
|
+
"card_required": "cardRequired",
|
|
6957
|
+
"on_end": "onEnd"
|
|
6902
6958
|
});
|
|
6903
6959
|
})
|
|
6904
6960
|
);
|
|
@@ -7045,8 +7101,8 @@ var ListCustomersSubscriptionStatus$outboundSchema = z35.enum(ListCustomersSubsc
|
|
|
7045
7101
|
var ListCustomersProcessor$outboundSchema = z35.enum(ListCustomersProcessor);
|
|
7046
7102
|
var ListCustomersParams$outboundSchema = z35.pipe(
|
|
7047
7103
|
z35.object({
|
|
7048
|
-
|
|
7049
|
-
limit: z35._default(z35.int(),
|
|
7104
|
+
startCursor: z35._default(z35.string(), ""),
|
|
7105
|
+
limit: z35._default(z35.int(), 50),
|
|
7050
7106
|
plans: z35.optional(z35.array(z35.lazy(() => ListCustomersPlan$outboundSchema))),
|
|
7051
7107
|
subscriptionStatus: z35.optional(
|
|
7052
7108
|
ListCustomersSubscriptionStatus$outboundSchema
|
|
@@ -7056,6 +7112,7 @@ var ListCustomersParams$outboundSchema = z35.pipe(
|
|
|
7056
7112
|
}),
|
|
7057
7113
|
z35.transform((v) => {
|
|
7058
7114
|
return remap(v, {
|
|
7115
|
+
startCursor: "start_cursor",
|
|
7059
7116
|
subscriptionStatus: "subscription_status"
|
|
7060
7117
|
});
|
|
7061
7118
|
})
|
|
@@ -7350,18 +7407,11 @@ var ListCustomersList$inboundSchema = z35.pipe(
|
|
|
7350
7407
|
var ListCustomersResponse$inboundSchema = z35.pipe(
|
|
7351
7408
|
z35.object({
|
|
7352
7409
|
list: z35.array(z35.lazy(() => ListCustomersList$inboundSchema)),
|
|
7353
|
-
|
|
7354
|
-
offset: number2(),
|
|
7355
|
-
limit: number2(),
|
|
7356
|
-
total: number2(),
|
|
7357
|
-
total_count: number2(),
|
|
7358
|
-
total_filtered_count: number2()
|
|
7410
|
+
next_cursor: nullable(string4())
|
|
7359
7411
|
}),
|
|
7360
7412
|
z35.transform((v) => {
|
|
7361
7413
|
return remap(v, {
|
|
7362
|
-
"
|
|
7363
|
-
"total_count": "totalCount",
|
|
7364
|
-
"total_filtered_count": "totalFilteredCount"
|
|
7414
|
+
"next_cursor": "nextCursor"
|
|
7365
7415
|
});
|
|
7366
7416
|
})
|
|
7367
7417
|
);
|
|
@@ -7408,8 +7458,8 @@ var ListEntitiesSubscriptionStatus$outboundSchema = z36.enum(ListEntitiesSubscri
|
|
|
7408
7458
|
var ListEntitiesProcessor$outboundSchema = z36.enum(ListEntitiesProcessor);
|
|
7409
7459
|
var ListEntitiesParams$outboundSchema = z36.pipe(
|
|
7410
7460
|
z36.object({
|
|
7411
|
-
|
|
7412
|
-
limit: z36._default(z36.int(),
|
|
7461
|
+
startCursor: z36._default(z36.string(), ""),
|
|
7462
|
+
limit: z36._default(z36.int(), 50),
|
|
7413
7463
|
plans: z36.optional(z36.array(z36.lazy(() => ListEntitiesPlan$outboundSchema))),
|
|
7414
7464
|
subscriptionStatus: z36.optional(
|
|
7415
7465
|
ListEntitiesSubscriptionStatus$outboundSchema
|
|
@@ -7419,6 +7469,7 @@ var ListEntitiesParams$outboundSchema = z36.pipe(
|
|
|
7419
7469
|
}),
|
|
7420
7470
|
z36.transform((v) => {
|
|
7421
7471
|
return remap(v, {
|
|
7472
|
+
startCursor: "start_cursor",
|
|
7422
7473
|
subscriptionStatus: "subscription_status"
|
|
7423
7474
|
});
|
|
7424
7475
|
})
|
|
@@ -7644,18 +7695,11 @@ var ListEntitiesList$inboundSchema = z36.pipe(
|
|
|
7644
7695
|
var ListEntitiesResponse$inboundSchema = z36.pipe(
|
|
7645
7696
|
z36.object({
|
|
7646
7697
|
list: z36.array(z36.lazy(() => ListEntitiesList$inboundSchema)),
|
|
7647
|
-
|
|
7648
|
-
offset: number2(),
|
|
7649
|
-
limit: number2(),
|
|
7650
|
-
total: number2(),
|
|
7651
|
-
total_count: number2(),
|
|
7652
|
-
total_filtered_count: number2()
|
|
7698
|
+
next_cursor: nullable(string4())
|
|
7653
7699
|
}),
|
|
7654
7700
|
z36.transform((v) => {
|
|
7655
7701
|
return remap(v, {
|
|
7656
|
-
"
|
|
7657
|
-
"total_count": "totalCount",
|
|
7658
|
-
"total_filtered_count": "totalFilteredCount"
|
|
7702
|
+
"next_cursor": "nextCursor"
|
|
7659
7703
|
});
|
|
7660
7704
|
})
|
|
7661
7705
|
);
|
|
@@ -7680,8 +7724,8 @@ var ListEventsCustomRange$outboundSchema = z37.object({
|
|
|
7680
7724
|
});
|
|
7681
7725
|
var EventsListParams$outboundSchema = z37.pipe(
|
|
7682
7726
|
z37.object({
|
|
7683
|
-
|
|
7684
|
-
limit: z37._default(z37.int(),
|
|
7727
|
+
startCursor: z37._default(z37.string(), ""),
|
|
7728
|
+
limit: z37._default(z37.int(), 50),
|
|
7685
7729
|
customerId: z37.optional(z37.string()),
|
|
7686
7730
|
entityId: z37.optional(z37.string()),
|
|
7687
7731
|
featureId: z37.optional(smartUnion([z37.string(), z37.array(z37.string())])),
|
|
@@ -7689,6 +7733,7 @@ var EventsListParams$outboundSchema = z37.pipe(
|
|
|
7689
7733
|
}),
|
|
7690
7734
|
z37.transform((v) => {
|
|
7691
7735
|
return remap(v, {
|
|
7736
|
+
startCursor: "start_cursor",
|
|
7692
7737
|
customerId: "customer_id",
|
|
7693
7738
|
entityId: "entity_id",
|
|
7694
7739
|
featureId: "feature_id",
|
|
@@ -7750,14 +7795,11 @@ var ListEventsList$inboundSchema = z37.pipe(
|
|
|
7750
7795
|
var ListEventsResponse$inboundSchema = z37.pipe(
|
|
7751
7796
|
z37.object({
|
|
7752
7797
|
list: z37.array(z37.lazy(() => ListEventsList$inboundSchema)),
|
|
7753
|
-
|
|
7754
|
-
offset: number2(),
|
|
7755
|
-
limit: number2(),
|
|
7756
|
-
total: number2()
|
|
7798
|
+
next_cursor: nullable(string4())
|
|
7757
7799
|
}),
|
|
7758
7800
|
z37.transform((v) => {
|
|
7759
7801
|
return remap(v, {
|
|
7760
|
-
"
|
|
7802
|
+
"next_cursor": "nextCursor"
|
|
7761
7803
|
});
|
|
7762
7804
|
})
|
|
7763
7805
|
);
|
|
@@ -7864,6 +7906,10 @@ var ListPlansDurationType = {
|
|
|
7864
7906
|
Month: "month",
|
|
7865
7907
|
Year: "year"
|
|
7866
7908
|
};
|
|
7909
|
+
var ListPlansOnEnd = {
|
|
7910
|
+
Bill: "bill",
|
|
7911
|
+
Revert: "revert"
|
|
7912
|
+
};
|
|
7867
7913
|
var ListPlansEnv = {
|
|
7868
7914
|
Sandbox: "sandbox",
|
|
7869
7915
|
Live: "live"
|
|
@@ -8037,17 +8083,20 @@ var ListPlansItem$inboundSchema = z39.pipe(
|
|
|
8037
8083
|
})
|
|
8038
8084
|
);
|
|
8039
8085
|
var ListPlansDurationType$inboundSchema = inboundSchema(ListPlansDurationType);
|
|
8086
|
+
var ListPlansOnEnd$inboundSchema = inboundSchema(ListPlansOnEnd);
|
|
8040
8087
|
var ListPlansFreeTrial$inboundSchema = z39.pipe(
|
|
8041
8088
|
z39.object({
|
|
8042
8089
|
duration_length: number2(),
|
|
8043
8090
|
duration_type: ListPlansDurationType$inboundSchema,
|
|
8044
|
-
card_required: boolean2()
|
|
8091
|
+
card_required: boolean2(),
|
|
8092
|
+
on_end: z39.optional(z39.nullable(ListPlansOnEnd$inboundSchema))
|
|
8045
8093
|
}),
|
|
8046
8094
|
z39.transform((v) => {
|
|
8047
8095
|
return remap(v, {
|
|
8048
8096
|
"duration_length": "durationLength",
|
|
8049
8097
|
"duration_type": "durationType",
|
|
8050
|
-
"card_required": "cardRequired"
|
|
8098
|
+
"card_required": "cardRequired",
|
|
8099
|
+
"on_end": "onEnd"
|
|
8051
8100
|
});
|
|
8052
8101
|
})
|
|
8053
8102
|
);
|
|
@@ -8174,6 +8223,10 @@ var MultiAttachDurationType = {
|
|
|
8174
8223
|
Month: "month",
|
|
8175
8224
|
Year: "year"
|
|
8176
8225
|
};
|
|
8226
|
+
var MultiAttachOnEnd = {
|
|
8227
|
+
Bill: "bill",
|
|
8228
|
+
Revert: "revert"
|
|
8229
|
+
};
|
|
8177
8230
|
var MultiAttachRedirectMode = {
|
|
8178
8231
|
Always: "always",
|
|
8179
8232
|
IfRequired: "if_required",
|
|
@@ -8335,17 +8388,20 @@ var MultiAttachPlan$outboundSchema = z40.pipe(
|
|
|
8335
8388
|
})
|
|
8336
8389
|
);
|
|
8337
8390
|
var MultiAttachDurationType$outboundSchema = z40.enum(MultiAttachDurationType);
|
|
8391
|
+
var MultiAttachOnEnd$outboundSchema = z40.enum(MultiAttachOnEnd);
|
|
8338
8392
|
var MultiAttachFreeTrialParams$outboundSchema = z40.pipe(
|
|
8339
8393
|
z40.object({
|
|
8340
8394
|
durationLength: z40.number(),
|
|
8341
8395
|
durationType: z40._default(MultiAttachDurationType$outboundSchema, "month"),
|
|
8342
|
-
cardRequired: z40._default(z40.boolean(), true)
|
|
8396
|
+
cardRequired: z40._default(z40.boolean(), true),
|
|
8397
|
+
onEnd: z40.optional(MultiAttachOnEnd$outboundSchema)
|
|
8343
8398
|
}),
|
|
8344
8399
|
z40.transform((v) => {
|
|
8345
8400
|
return remap(v, {
|
|
8346
8401
|
durationLength: "duration_length",
|
|
8347
8402
|
durationType: "duration_type",
|
|
8348
|
-
cardRequired: "card_required"
|
|
8403
|
+
cardRequired: "card_required",
|
|
8404
|
+
onEnd: "on_end"
|
|
8349
8405
|
});
|
|
8350
8406
|
})
|
|
8351
8407
|
);
|
|
@@ -8673,6 +8729,10 @@ var PreviewAttachDurationType = {
|
|
|
8673
8729
|
Month: "month",
|
|
8674
8730
|
Year: "year"
|
|
8675
8731
|
};
|
|
8732
|
+
var PreviewAttachOnEnd = {
|
|
8733
|
+
Bill: "bill",
|
|
8734
|
+
Revert: "revert"
|
|
8735
|
+
};
|
|
8676
8736
|
var PreviewAttachProrationBehavior = {
|
|
8677
8737
|
ProrateImmediately: "prorate_immediately",
|
|
8678
8738
|
None: "none"
|
|
@@ -8941,17 +9001,20 @@ var PreviewAttachPlanItemFilter$outboundSchema = z42.pipe(
|
|
|
8941
9001
|
})
|
|
8942
9002
|
);
|
|
8943
9003
|
var PreviewAttachDurationType$outboundSchema = z42.enum(PreviewAttachDurationType);
|
|
9004
|
+
var PreviewAttachOnEnd$outboundSchema = z42.enum(PreviewAttachOnEnd);
|
|
8944
9005
|
var PreviewAttachFreeTrialParams$outboundSchema = z42.pipe(
|
|
8945
9006
|
z42.object({
|
|
8946
9007
|
durationLength: z42.number(),
|
|
8947
9008
|
durationType: z42._default(PreviewAttachDurationType$outboundSchema, "month"),
|
|
8948
|
-
cardRequired: z42._default(z42.boolean(), true)
|
|
9009
|
+
cardRequired: z42._default(z42.boolean(), true),
|
|
9010
|
+
onEnd: z42.optional(PreviewAttachOnEnd$outboundSchema)
|
|
8949
9011
|
}),
|
|
8950
9012
|
z42.transform((v) => {
|
|
8951
9013
|
return remap(v, {
|
|
8952
9014
|
durationLength: "duration_length",
|
|
8953
9015
|
durationType: "duration_type",
|
|
8954
|
-
cardRequired: "card_required"
|
|
9016
|
+
cardRequired: "card_required",
|
|
9017
|
+
onEnd: "on_end"
|
|
8955
9018
|
});
|
|
8956
9019
|
})
|
|
8957
9020
|
);
|
|
@@ -9410,6 +9473,10 @@ var PreviewMultiAttachDurationType = {
|
|
|
9410
9473
|
Month: "month",
|
|
9411
9474
|
Year: "year"
|
|
9412
9475
|
};
|
|
9476
|
+
var PreviewMultiAttachOnEnd = {
|
|
9477
|
+
Bill: "bill",
|
|
9478
|
+
Revert: "revert"
|
|
9479
|
+
};
|
|
9413
9480
|
var PreviewMultiAttachRedirectMode = {
|
|
9414
9481
|
Always: "always",
|
|
9415
9482
|
IfRequired: "if_required",
|
|
@@ -9586,6 +9653,7 @@ var PreviewMultiAttachPlan$outboundSchema = z43.pipe(
|
|
|
9586
9653
|
})
|
|
9587
9654
|
);
|
|
9588
9655
|
var PreviewMultiAttachDurationType$outboundSchema = z43.enum(PreviewMultiAttachDurationType);
|
|
9656
|
+
var PreviewMultiAttachOnEnd$outboundSchema = z43.enum(PreviewMultiAttachOnEnd);
|
|
9589
9657
|
var PreviewMultiAttachFreeTrialParams$outboundSchema = z43.pipe(
|
|
9590
9658
|
z43.object({
|
|
9591
9659
|
durationLength: z43.number(),
|
|
@@ -9593,13 +9661,15 @@ var PreviewMultiAttachFreeTrialParams$outboundSchema = z43.pipe(
|
|
|
9593
9661
|
PreviewMultiAttachDurationType$outboundSchema,
|
|
9594
9662
|
"month"
|
|
9595
9663
|
),
|
|
9596
|
-
cardRequired: z43._default(z43.boolean(), true)
|
|
9664
|
+
cardRequired: z43._default(z43.boolean(), true),
|
|
9665
|
+
onEnd: z43.optional(PreviewMultiAttachOnEnd$outboundSchema)
|
|
9597
9666
|
}),
|
|
9598
9667
|
z43.transform((v) => {
|
|
9599
9668
|
return remap(v, {
|
|
9600
9669
|
durationLength: "duration_length",
|
|
9601
9670
|
durationType: "duration_type",
|
|
9602
|
-
cardRequired: "card_required"
|
|
9671
|
+
cardRequired: "card_required",
|
|
9672
|
+
onEnd: "on_end"
|
|
9603
9673
|
});
|
|
9604
9674
|
})
|
|
9605
9675
|
);
|
|
@@ -10109,6 +10179,10 @@ var PreviewUpdateDurationType = {
|
|
|
10109
10179
|
Month: "month",
|
|
10110
10180
|
Year: "year"
|
|
10111
10181
|
};
|
|
10182
|
+
var PreviewUpdateOnEnd = {
|
|
10183
|
+
Bill: "bill",
|
|
10184
|
+
Revert: "revert"
|
|
10185
|
+
};
|
|
10112
10186
|
var PreviewUpdateProrationBehavior = {
|
|
10113
10187
|
ProrateImmediately: "prorate_immediately",
|
|
10114
10188
|
None: "none"
|
|
@@ -10382,17 +10456,20 @@ var PreviewUpdatePlanItemFilter$outboundSchema = z44.pipe(
|
|
|
10382
10456
|
})
|
|
10383
10457
|
);
|
|
10384
10458
|
var PreviewUpdateDurationType$outboundSchema = z44.enum(PreviewUpdateDurationType);
|
|
10459
|
+
var PreviewUpdateOnEnd$outboundSchema = z44.enum(PreviewUpdateOnEnd);
|
|
10385
10460
|
var PreviewUpdateFreeTrialParams$outboundSchema = z44.pipe(
|
|
10386
10461
|
z44.object({
|
|
10387
10462
|
durationLength: z44.number(),
|
|
10388
10463
|
durationType: z44._default(PreviewUpdateDurationType$outboundSchema, "month"),
|
|
10389
|
-
cardRequired: z44._default(z44.boolean(), true)
|
|
10464
|
+
cardRequired: z44._default(z44.boolean(), true),
|
|
10465
|
+
onEnd: z44.optional(PreviewUpdateOnEnd$outboundSchema)
|
|
10390
10466
|
}),
|
|
10391
10467
|
z44.transform((v) => {
|
|
10392
10468
|
return remap(v, {
|
|
10393
10469
|
durationLength: "duration_length",
|
|
10394
10470
|
durationType: "duration_type",
|
|
10395
|
-
cardRequired: "card_required"
|
|
10471
|
+
cardRequired: "card_required",
|
|
10472
|
+
onEnd: "on_end"
|
|
10396
10473
|
});
|
|
10397
10474
|
})
|
|
10398
10475
|
);
|
|
@@ -10885,6 +10962,10 @@ var SetupPaymentDurationType = {
|
|
|
10885
10962
|
Month: "month",
|
|
10886
10963
|
Year: "year"
|
|
10887
10964
|
};
|
|
10965
|
+
var SetupPaymentOnEnd = {
|
|
10966
|
+
Bill: "bill",
|
|
10967
|
+
Revert: "revert"
|
|
10968
|
+
};
|
|
10888
10969
|
var SetupPaymentProrationBehavior = {
|
|
10889
10970
|
ProrateImmediately: "prorate_immediately",
|
|
10890
10971
|
None: "none"
|
|
@@ -11134,17 +11215,20 @@ var SetupPaymentPlanItemFilter$outboundSchema = z46.pipe(
|
|
|
11134
11215
|
})
|
|
11135
11216
|
);
|
|
11136
11217
|
var SetupPaymentDurationType$outboundSchema = z46.enum(SetupPaymentDurationType);
|
|
11218
|
+
var SetupPaymentOnEnd$outboundSchema = z46.enum(SetupPaymentOnEnd);
|
|
11137
11219
|
var SetupPaymentFreeTrialParams$outboundSchema = z46.pipe(
|
|
11138
11220
|
z46.object({
|
|
11139
11221
|
durationLength: z46.number(),
|
|
11140
11222
|
durationType: z46._default(SetupPaymentDurationType$outboundSchema, "month"),
|
|
11141
|
-
cardRequired: z46._default(z46.boolean(), true)
|
|
11223
|
+
cardRequired: z46._default(z46.boolean(), true),
|
|
11224
|
+
onEnd: z46.optional(SetupPaymentOnEnd$outboundSchema)
|
|
11142
11225
|
}),
|
|
11143
11226
|
z46.transform((v) => {
|
|
11144
11227
|
return remap(v, {
|
|
11145
11228
|
durationLength: "duration_length",
|
|
11146
11229
|
durationType: "duration_type",
|
|
11147
|
-
cardRequired: "card_required"
|
|
11230
|
+
cardRequired: "card_required",
|
|
11231
|
+
onEnd: "on_end"
|
|
11148
11232
|
});
|
|
11149
11233
|
})
|
|
11150
11234
|
);
|
|
@@ -12443,6 +12527,10 @@ var UpdatePlanDurationTypeRequest = {
|
|
|
12443
12527
|
Month: "month",
|
|
12444
12528
|
Year: "year"
|
|
12445
12529
|
};
|
|
12530
|
+
var UpdatePlanOnEndRequest = {
|
|
12531
|
+
Bill: "bill",
|
|
12532
|
+
Revert: "revert"
|
|
12533
|
+
};
|
|
12446
12534
|
var UpdatePlanPriceIntervalResponse = {
|
|
12447
12535
|
OneOff: "one_off",
|
|
12448
12536
|
Week: "week",
|
|
@@ -12494,6 +12582,10 @@ var UpdatePlanDurationTypeResponse = {
|
|
|
12494
12582
|
Month: "month",
|
|
12495
12583
|
Year: "year"
|
|
12496
12584
|
};
|
|
12585
|
+
var UpdatePlanOnEndResponse = {
|
|
12586
|
+
Bill: "bill",
|
|
12587
|
+
Revert: "revert"
|
|
12588
|
+
};
|
|
12497
12589
|
var UpdatePlanEnv = {
|
|
12498
12590
|
Sandbox: "sandbox",
|
|
12499
12591
|
Live: "live"
|
|
@@ -12620,6 +12712,7 @@ var UpdatePlanPlanItem$outboundSchema = z52.pipe(
|
|
|
12620
12712
|
})
|
|
12621
12713
|
);
|
|
12622
12714
|
var UpdatePlanDurationTypeRequest$outboundSchema = z52.enum(UpdatePlanDurationTypeRequest);
|
|
12715
|
+
var UpdatePlanOnEndRequest$outboundSchema = z52.enum(UpdatePlanOnEndRequest);
|
|
12623
12716
|
var UpdatePlanFreeTrialParams$outboundSchema = z52.pipe(
|
|
12624
12717
|
z52.object({
|
|
12625
12718
|
durationLength: z52.number(),
|
|
@@ -12627,13 +12720,15 @@ var UpdatePlanFreeTrialParams$outboundSchema = z52.pipe(
|
|
|
12627
12720
|
UpdatePlanDurationTypeRequest$outboundSchema,
|
|
12628
12721
|
"month"
|
|
12629
12722
|
),
|
|
12630
|
-
cardRequired: z52._default(z52.boolean(), true)
|
|
12723
|
+
cardRequired: z52._default(z52.boolean(), true),
|
|
12724
|
+
onEnd: z52.optional(UpdatePlanOnEndRequest$outboundSchema)
|
|
12631
12725
|
}),
|
|
12632
12726
|
z52.transform((v) => {
|
|
12633
12727
|
return remap(v, {
|
|
12634
12728
|
durationLength: "duration_length",
|
|
12635
12729
|
durationType: "duration_type",
|
|
12636
|
-
cardRequired: "card_required"
|
|
12730
|
+
cardRequired: "card_required",
|
|
12731
|
+
onEnd: "on_end"
|
|
12637
12732
|
});
|
|
12638
12733
|
})
|
|
12639
12734
|
);
|
|
@@ -12827,17 +12922,20 @@ var UpdatePlanItem$inboundSchema = z52.pipe(
|
|
|
12827
12922
|
})
|
|
12828
12923
|
);
|
|
12829
12924
|
var UpdatePlanDurationTypeResponse$inboundSchema = inboundSchema(UpdatePlanDurationTypeResponse);
|
|
12925
|
+
var UpdatePlanOnEndResponse$inboundSchema = inboundSchema(UpdatePlanOnEndResponse);
|
|
12830
12926
|
var UpdatePlanFreeTrial$inboundSchema = z52.pipe(
|
|
12831
12927
|
z52.object({
|
|
12832
12928
|
duration_length: number2(),
|
|
12833
12929
|
duration_type: UpdatePlanDurationTypeResponse$inboundSchema,
|
|
12834
|
-
card_required: boolean2()
|
|
12930
|
+
card_required: boolean2(),
|
|
12931
|
+
on_end: z52.optional(z52.nullable(UpdatePlanOnEndResponse$inboundSchema))
|
|
12835
12932
|
}),
|
|
12836
12933
|
z52.transform((v) => {
|
|
12837
12934
|
return remap(v, {
|
|
12838
12935
|
"duration_length": "durationLength",
|
|
12839
12936
|
"duration_type": "durationType",
|
|
12840
|
-
"card_required": "cardRequired"
|
|
12937
|
+
"card_required": "cardRequired",
|
|
12938
|
+
"on_end": "onEnd"
|
|
12841
12939
|
});
|
|
12842
12940
|
})
|
|
12843
12941
|
);
|
|
@@ -14817,7 +14915,7 @@ var Billing = class extends ClientSDK {
|
|
|
14817
14915
|
* @example
|
|
14818
14916
|
* ```typescript
|
|
14819
14917
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14820
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14918
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779218573238,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780428173238,"plans":[{"planId":"pro_plan"}]}] });
|
|
14821
14919
|
* ```
|
|
14822
14920
|
*
|
|
14823
14921
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -15314,14 +15412,14 @@ function customersList(client, request, options) {
|
|
|
15314
15412
|
async function $do19(client, request, options) {
|
|
15315
15413
|
const parsed = safeParse(
|
|
15316
15414
|
request,
|
|
15317
|
-
(value) => z71.parse(
|
|
15415
|
+
(value) => z71.parse(ListCustomersParams$outboundSchema, value),
|
|
15318
15416
|
"Input validation failed"
|
|
15319
15417
|
);
|
|
15320
15418
|
if (!parsed.ok) {
|
|
15321
15419
|
return [parsed, { status: "invalid" }];
|
|
15322
15420
|
}
|
|
15323
15421
|
const payload = parsed.value;
|
|
15324
|
-
const body =
|
|
15422
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
15325
15423
|
const path = pathToFunc("/v1/customers.list")();
|
|
15326
15424
|
const headers = new Headers(compactMap({
|
|
15327
15425
|
"Content-Type": "application/json",
|
|
@@ -15519,7 +15617,7 @@ var Customers = class extends ClientSDK {
|
|
|
15519
15617
|
));
|
|
15520
15618
|
}
|
|
15521
15619
|
/**
|
|
15522
|
-
* Lists customers with pagination and optional filters.
|
|
15620
|
+
* Lists customers with cursor pagination and optional filters. Pass `start_cursor: ""` (or omit) for the first page; use `next_cursor` from a prior response for subsequent pages.
|
|
15523
15621
|
*/
|
|
15524
15622
|
async list(request, options) {
|
|
15525
15623
|
return unwrapAsync(customersList(
|
|
@@ -15796,14 +15894,14 @@ function entitiesList(client, request, options) {
|
|
|
15796
15894
|
async function $do24(client, request, options) {
|
|
15797
15895
|
const parsed = safeParse(
|
|
15798
15896
|
request,
|
|
15799
|
-
(value) => z76.parse(
|
|
15897
|
+
(value) => z76.parse(ListEntitiesParams$outboundSchema, value),
|
|
15800
15898
|
"Input validation failed"
|
|
15801
15899
|
);
|
|
15802
15900
|
if (!parsed.ok) {
|
|
15803
15901
|
return [parsed, { status: "invalid" }];
|
|
15804
15902
|
}
|
|
15805
15903
|
const payload = parsed.value;
|
|
15806
|
-
const body =
|
|
15904
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
15807
15905
|
const path = pathToFunc("/v1/entities.list")();
|
|
15808
15906
|
const headers = new Headers(compactMap({
|
|
15809
15907
|
"Content-Type": "application/json",
|
|
@@ -17920,7 +18018,8 @@ var attachPlanItemFilterOutboundSchema = import_v42.z.object({
|
|
|
17920
18018
|
var attachFreeTrialParamsOutboundSchema = import_v42.z.object({
|
|
17921
18019
|
duration_length: import_v42.z.number(),
|
|
17922
18020
|
duration_type: import_v42.z.string(),
|
|
17923
|
-
card_required: import_v42.z.boolean()
|
|
18021
|
+
card_required: import_v42.z.boolean(),
|
|
18022
|
+
on_end: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
|
|
17924
18023
|
});
|
|
17925
18024
|
var attachCustomizeOutboundSchema = import_v42.z.object({
|
|
17926
18025
|
price: import_v42.z.union([attachBasePriceOutboundSchema, import_v42.z.undefined()]).optional().nullable(),
|
|
@@ -18073,10 +18172,12 @@ var attachPlanItemFilterSchema = import_v42.z.object({
|
|
|
18073
18172
|
interval: import_v42.z.union([attachRemoveItemIntervalSchema, import_v42.z.undefined()]).optional()
|
|
18074
18173
|
});
|
|
18075
18174
|
var attachDurationTypeSchema = closedEnumSchema2;
|
|
18175
|
+
var attachOnEndSchema = closedEnumSchema2;
|
|
18076
18176
|
var attachFreeTrialParamsSchema = import_v42.z.object({
|
|
18077
18177
|
durationLength: import_v42.z.number(),
|
|
18078
18178
|
durationType: import_v42.z.union([attachDurationTypeSchema, import_v42.z.undefined()]).optional(),
|
|
18079
|
-
cardRequired: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
18179
|
+
cardRequired: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
18180
|
+
onEnd: import_v42.z.union([attachOnEndSchema, import_v42.z.undefined()]).optional()
|
|
18080
18181
|
});
|
|
18081
18182
|
var attachCustomizeSchema = import_v42.z.object({
|
|
18082
18183
|
price: import_v42.z.union([attachBasePriceSchema, import_v42.z.undefined()]).optional().nullable(),
|
|
@@ -18284,7 +18385,7 @@ var listEventsCustomRangeSchema = import_v45.z.object({
|
|
|
18284
18385
|
end: import_v45.z.union([import_v45.z.number(), import_v45.z.undefined()]).optional()
|
|
18285
18386
|
});
|
|
18286
18387
|
var eventsListParamsSchema = import_v45.z.object({
|
|
18287
|
-
|
|
18388
|
+
startCursor: import_v45.z.union([import_v45.z.string(), import_v45.z.undefined()]).optional(),
|
|
18288
18389
|
limit: import_v45.z.union([import_v45.z.number(), import_v45.z.undefined()]).optional(),
|
|
18289
18390
|
customerId: import_v45.z.union([import_v45.z.string(), import_v45.z.undefined()]).optional(),
|
|
18290
18391
|
entityId: import_v45.z.union([import_v45.z.string(), import_v45.z.undefined()]).optional(),
|
|
@@ -18300,7 +18401,7 @@ var listEventsCustomRangeOutboundSchema = import_v45.z.object({
|
|
|
18300
18401
|
end: import_v45.z.union([import_v45.z.number(), import_v45.z.undefined()]).optional()
|
|
18301
18402
|
});
|
|
18302
18403
|
var eventsListParamsOutboundSchema = import_v45.z.object({
|
|
18303
|
-
|
|
18404
|
+
start_cursor: import_v45.z.string(),
|
|
18304
18405
|
limit: import_v45.z.number(),
|
|
18305
18406
|
customer_id: import_v45.z.union([import_v45.z.string(), import_v45.z.undefined()]).optional(),
|
|
18306
18407
|
entity_id: import_v45.z.union([import_v45.z.string(), import_v45.z.undefined()]).optional(),
|
|
@@ -18336,10 +18437,7 @@ var listEventsListSchema = import_v45.z.object({
|
|
|
18336
18437
|
});
|
|
18337
18438
|
var listEventsResponseSchema = import_v45.z.object({
|
|
18338
18439
|
list: import_v45.z.array(listEventsListSchema),
|
|
18339
|
-
|
|
18340
|
-
offset: import_v45.z.number(),
|
|
18341
|
-
limit: import_v45.z.number(),
|
|
18342
|
-
total: import_v45.z.number()
|
|
18440
|
+
nextCursor: import_v45.z.string().nullable()
|
|
18343
18441
|
});
|
|
18344
18442
|
|
|
18345
18443
|
// src/generated/listPlansSchemas.ts
|
|
@@ -18429,10 +18527,12 @@ var listPlansItemSchema = import_v46.z.object({
|
|
|
18429
18527
|
rollover: import_v46.z.union([listPlansRolloverSchema, import_v46.z.undefined()]).optional()
|
|
18430
18528
|
});
|
|
18431
18529
|
var listPlansDurationTypeSchema = openEnumSchema3;
|
|
18530
|
+
var listPlansOnEndSchema = openEnumSchema3;
|
|
18432
18531
|
var listPlansFreeTrialSchema = import_v46.z.object({
|
|
18433
18532
|
durationLength: import_v46.z.number(),
|
|
18434
18533
|
durationType: listPlansDurationTypeSchema,
|
|
18435
|
-
cardRequired: import_v46.z.boolean()
|
|
18534
|
+
cardRequired: import_v46.z.boolean(),
|
|
18535
|
+
onEnd: import_v46.z.union([listPlansOnEndSchema, import_v46.z.undefined()]).optional().nullable()
|
|
18436
18536
|
});
|
|
18437
18537
|
var listPlansEnvSchema = openEnumSchema3;
|
|
18438
18538
|
var listPlansStatusSchema = openEnumSchema3;
|
|
@@ -18570,7 +18670,8 @@ var multiAttachPlanOutboundSchema = import_v47.z.object({
|
|
|
18570
18670
|
var multiAttachFreeTrialParamsOutboundSchema = import_v47.z.object({
|
|
18571
18671
|
duration_length: import_v47.z.number(),
|
|
18572
18672
|
duration_type: import_v47.z.string(),
|
|
18573
|
-
card_required: import_v47.z.boolean()
|
|
18673
|
+
card_required: import_v47.z.boolean(),
|
|
18674
|
+
on_end: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
18574
18675
|
});
|
|
18575
18676
|
var multiAttachInvoiceModeOutboundSchema = import_v47.z.object({
|
|
18576
18677
|
enabled: import_v47.z.boolean(),
|
|
@@ -18669,10 +18770,12 @@ var multiAttachPlanSchema = import_v47.z.object({
|
|
|
18669
18770
|
subscriptionId: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
18670
18771
|
});
|
|
18671
18772
|
var multiAttachDurationTypeSchema = closedEnumSchema4;
|
|
18773
|
+
var multiAttachOnEndSchema = closedEnumSchema4;
|
|
18672
18774
|
var multiAttachFreeTrialParamsSchema = import_v47.z.object({
|
|
18673
18775
|
durationLength: import_v47.z.number(),
|
|
18674
18776
|
durationType: import_v47.z.union([multiAttachDurationTypeSchema, import_v47.z.undefined()]).optional(),
|
|
18675
|
-
cardRequired: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional()
|
|
18777
|
+
cardRequired: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
18778
|
+
onEnd: import_v47.z.union([multiAttachOnEndSchema, import_v47.z.undefined()]).optional()
|
|
18676
18779
|
});
|
|
18677
18780
|
var multiAttachRedirectModeSchema = closedEnumSchema4;
|
|
18678
18781
|
var multiAttachThresholdTypeSchema = closedEnumSchema4;
|
|
@@ -18972,7 +19075,8 @@ var previewAttachPlanItemFilterOutboundSchema = import_v49.z.object({
|
|
|
18972
19075
|
var previewAttachFreeTrialParamsOutboundSchema = import_v49.z.object({
|
|
18973
19076
|
duration_length: import_v49.z.number(),
|
|
18974
19077
|
duration_type: import_v49.z.string(),
|
|
18975
|
-
card_required: import_v49.z.boolean()
|
|
19078
|
+
card_required: import_v49.z.boolean(),
|
|
19079
|
+
on_end: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
|
|
18976
19080
|
});
|
|
18977
19081
|
var previewAttachCustomizeOutboundSchema = import_v49.z.object({
|
|
18978
19082
|
price: import_v49.z.union([previewAttachBasePriceOutboundSchema, import_v49.z.undefined()]).optional().nullable(),
|
|
@@ -19129,10 +19233,12 @@ var previewAttachPlanItemFilterSchema = import_v49.z.object({
|
|
|
19129
19233
|
interval: import_v49.z.union([previewAttachRemoveItemIntervalSchema, import_v49.z.undefined()]).optional()
|
|
19130
19234
|
});
|
|
19131
19235
|
var previewAttachDurationTypeSchema = closedEnumSchema5;
|
|
19236
|
+
var previewAttachOnEndSchema = closedEnumSchema5;
|
|
19132
19237
|
var previewAttachFreeTrialParamsSchema = import_v49.z.object({
|
|
19133
19238
|
durationLength: import_v49.z.number(),
|
|
19134
19239
|
durationType: import_v49.z.union([previewAttachDurationTypeSchema, import_v49.z.undefined()]).optional(),
|
|
19135
|
-
cardRequired: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
19240
|
+
cardRequired: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
19241
|
+
onEnd: import_v49.z.union([previewAttachOnEndSchema, import_v49.z.undefined()]).optional()
|
|
19136
19242
|
});
|
|
19137
19243
|
var previewAttachCustomizeSchema = import_v49.z.object({
|
|
19138
19244
|
price: import_v49.z.union([previewAttachBasePriceSchema, import_v49.z.undefined()]).optional().nullable(),
|
|
@@ -19386,7 +19492,8 @@ var previewMultiAttachPlanOutboundSchema = import_v410.z.object({
|
|
|
19386
19492
|
var previewMultiAttachFreeTrialParamsOutboundSchema = import_v410.z.object({
|
|
19387
19493
|
duration_length: import_v410.z.number(),
|
|
19388
19494
|
duration_type: import_v410.z.string(),
|
|
19389
|
-
card_required: import_v410.z.boolean()
|
|
19495
|
+
card_required: import_v410.z.boolean(),
|
|
19496
|
+
on_end: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
19390
19497
|
});
|
|
19391
19498
|
var previewMultiAttachInvoiceModeOutboundSchema = import_v410.z.object({
|
|
19392
19499
|
enabled: import_v410.z.boolean(),
|
|
@@ -19492,10 +19599,12 @@ var previewMultiAttachPlanSchema = import_v410.z.object({
|
|
|
19492
19599
|
subscriptionId: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
19493
19600
|
});
|
|
19494
19601
|
var previewMultiAttachDurationTypeSchema = closedEnumSchema6;
|
|
19602
|
+
var previewMultiAttachOnEndSchema = closedEnumSchema6;
|
|
19495
19603
|
var previewMultiAttachFreeTrialParamsSchema = import_v410.z.object({
|
|
19496
19604
|
durationLength: import_v410.z.number(),
|
|
19497
19605
|
durationType: import_v410.z.union([previewMultiAttachDurationTypeSchema, import_v410.z.undefined()]).optional(),
|
|
19498
|
-
cardRequired: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional()
|
|
19606
|
+
cardRequired: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
19607
|
+
onEnd: import_v410.z.union([previewMultiAttachOnEndSchema, import_v410.z.undefined()]).optional()
|
|
19499
19608
|
});
|
|
19500
19609
|
var previewMultiAttachRedirectModeSchema = closedEnumSchema6;
|
|
19501
19610
|
var previewMultiAttachThresholdTypeSchema = closedEnumSchema6;
|
|
@@ -19797,7 +19906,8 @@ var previewUpdatePlanItemFilterOutboundSchema = import_v411.z.object({
|
|
|
19797
19906
|
var previewUpdateFreeTrialParamsOutboundSchema = import_v411.z.object({
|
|
19798
19907
|
duration_length: import_v411.z.number(),
|
|
19799
19908
|
duration_type: import_v411.z.string(),
|
|
19800
|
-
card_required: import_v411.z.boolean()
|
|
19909
|
+
card_required: import_v411.z.boolean(),
|
|
19910
|
+
on_end: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
|
|
19801
19911
|
});
|
|
19802
19912
|
var previewUpdateCustomizeOutboundSchema = import_v411.z.object({
|
|
19803
19913
|
price: import_v411.z.union([previewUpdateBasePriceOutboundSchema, import_v411.z.undefined()]).optional().nullable(),
|
|
@@ -19935,10 +20045,12 @@ var previewUpdatePlanItemFilterSchema = import_v411.z.object({
|
|
|
19935
20045
|
interval: import_v411.z.union([previewUpdateRemoveItemIntervalSchema, import_v411.z.undefined()]).optional()
|
|
19936
20046
|
});
|
|
19937
20047
|
var previewUpdateDurationTypeSchema = closedEnumSchema7;
|
|
20048
|
+
var previewUpdateOnEndSchema = closedEnumSchema7;
|
|
19938
20049
|
var previewUpdateFreeTrialParamsSchema = import_v411.z.object({
|
|
19939
20050
|
durationLength: import_v411.z.number(),
|
|
19940
20051
|
durationType: import_v411.z.union([previewUpdateDurationTypeSchema, import_v411.z.undefined()]).optional(),
|
|
19941
|
-
cardRequired: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional()
|
|
20052
|
+
cardRequired: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
20053
|
+
onEnd: import_v411.z.union([previewUpdateOnEndSchema, import_v411.z.undefined()]).optional()
|
|
19942
20054
|
});
|
|
19943
20055
|
var previewUpdateCustomizeSchema = import_v411.z.object({
|
|
19944
20056
|
price: import_v411.z.union([previewUpdateBasePriceSchema, import_v411.z.undefined()]).optional().nullable(),
|
|
@@ -20171,7 +20283,8 @@ var setupPaymentPlanItemFilterOutboundSchema = import_v413.z.object({
|
|
|
20171
20283
|
var setupPaymentFreeTrialParamsOutboundSchema = import_v413.z.object({
|
|
20172
20284
|
duration_length: import_v413.z.number(),
|
|
20173
20285
|
duration_type: import_v413.z.string(),
|
|
20174
|
-
card_required: import_v413.z.boolean()
|
|
20286
|
+
card_required: import_v413.z.boolean(),
|
|
20287
|
+
on_end: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
20175
20288
|
});
|
|
20176
20289
|
var setupPaymentCustomizeOutboundSchema = import_v413.z.object({
|
|
20177
20290
|
price: import_v413.z.union([setupPaymentBasePriceOutboundSchema, import_v413.z.undefined()]).optional().nullable(),
|
|
@@ -20314,10 +20427,12 @@ var setupPaymentPlanItemFilterSchema = import_v413.z.object({
|
|
|
20314
20427
|
interval: import_v413.z.union([setupPaymentRemoveItemIntervalSchema, import_v413.z.undefined()]).optional()
|
|
20315
20428
|
});
|
|
20316
20429
|
var setupPaymentDurationTypeSchema = closedEnumSchema8;
|
|
20430
|
+
var setupPaymentOnEndSchema = closedEnumSchema8;
|
|
20317
20431
|
var setupPaymentFreeTrialParamsSchema = import_v413.z.object({
|
|
20318
20432
|
durationLength: import_v413.z.number(),
|
|
20319
20433
|
durationType: import_v413.z.union([setupPaymentDurationTypeSchema, import_v413.z.undefined()]).optional(),
|
|
20320
|
-
cardRequired: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
20434
|
+
cardRequired: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
20435
|
+
onEnd: import_v413.z.union([setupPaymentOnEndSchema, import_v413.z.undefined()]).optional()
|
|
20321
20436
|
});
|
|
20322
20437
|
var setupPaymentCustomizeSchema = import_v413.z.object({
|
|
20323
20438
|
price: import_v413.z.union([setupPaymentBasePriceSchema, import_v413.z.undefined()]).optional().nullable(),
|
|
@@ -20494,7 +20609,8 @@ var billingUpdatePlanItemFilterOutboundSchema = import_v414.z.object({
|
|
|
20494
20609
|
var billingUpdateFreeTrialParamsOutboundSchema = import_v414.z.object({
|
|
20495
20610
|
duration_length: import_v414.z.number(),
|
|
20496
20611
|
duration_type: import_v414.z.string(),
|
|
20497
|
-
card_required: import_v414.z.boolean()
|
|
20612
|
+
card_required: import_v414.z.boolean(),
|
|
20613
|
+
on_end: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
|
|
20498
20614
|
});
|
|
20499
20615
|
var billingUpdateCustomizeOutboundSchema = import_v414.z.object({
|
|
20500
20616
|
price: import_v414.z.union([billingUpdateBasePriceOutboundSchema, import_v414.z.undefined()]).optional().nullable(),
|
|
@@ -20628,10 +20744,12 @@ var billingUpdatePlanItemFilterSchema = import_v414.z.object({
|
|
|
20628
20744
|
interval: import_v414.z.union([billingUpdateRemoveItemIntervalSchema, import_v414.z.undefined()]).optional()
|
|
20629
20745
|
});
|
|
20630
20746
|
var billingUpdateDurationTypeSchema = closedEnumSchema9;
|
|
20747
|
+
var billingUpdateOnEndSchema = closedEnumSchema9;
|
|
20631
20748
|
var billingUpdateFreeTrialParamsSchema = import_v414.z.object({
|
|
20632
20749
|
durationLength: import_v414.z.number(),
|
|
20633
20750
|
durationType: import_v414.z.union([billingUpdateDurationTypeSchema, import_v414.z.undefined()]).optional(),
|
|
20634
|
-
cardRequired: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional()
|
|
20751
|
+
cardRequired: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
20752
|
+
onEnd: import_v414.z.union([billingUpdateOnEndSchema, import_v414.z.undefined()]).optional()
|
|
20635
20753
|
});
|
|
20636
20754
|
var billingUpdateCustomizeSchema = import_v414.z.object({
|
|
20637
20755
|
price: import_v414.z.union([billingUpdateBasePriceSchema, import_v414.z.undefined()]).optional().nullable(),
|