autumn-js 1.5.57 → 1.5.58
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 +126 -17
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +126 -17
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +126 -17
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +126 -17
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +126 -17
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-ICBNEGIE.mjs → chunk-ALZ4XHA2.mjs} +3 -3
- package/dist/backend/{chunk-7SQOYJUT.mjs → chunk-BQH4CXRL.mjs} +102 -14
- package/dist/backend/{chunk-2V4JC6LP.mjs → chunk-DXDRTRUK.mjs} +3 -3
- package/dist/backend/{chunk-PN3MALBK.mjs → chunk-NKVGEUV4.mjs} +1 -1
- package/dist/backend/{chunk-NTWPV23W.mjs → chunk-VYQIZEKG.mjs} +1 -1
- package/dist/backend/{chunk-JYZFN5LS.mjs → chunk-X5CPNAW5.mjs} +1 -1
- package/dist/backend/{chunk-WCSE2PKI.mjs → chunk-XCKEZ2HZ.mjs} +28 -7
- package/dist/backend/{chunk-KOCRGAIB.mjs → chunk-Z6LSTSAI.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 +126 -17
- 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 +126 -17
- 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 +126 -17
- package/dist/backend/core/handlers/index.mjs +8 -8
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +126 -17
- 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 +24 -3
- 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 +24 -3
- 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 +5 -5
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +126 -17
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-ZfDHl-Kf.d.ts → routeTypes-ByCDRbTD.d.ts} +187 -19
- package/dist/backend/{routeTypes-DJroxrW_.d.mts → routeTypes-DvzIQ2_O.d.mts} +187 -19
- package/dist/better-auth/{chunk-ATTLN7BZ.mjs → chunk-NRC7N5J5.mjs} +1 -1
- package/dist/better-auth/{chunk-ZL5VXZ74.mjs → chunk-PS5V5ONI.mjs} +103 -15
- package/dist/better-auth/{chunk-DY5B3L7Z.mjs → chunk-UAGSI3S3.mjs} +24 -3
- package/dist/better-auth/index.js +126 -17
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +24 -3
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +126 -17
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +126 -17
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +1 -1
- package/dist/react/AutumnContext.d.ts +1 -1
- package/dist/react/client/AutumnClient.d.mts +1 -1
- package/dist/react/client/AutumnClient.d.ts +1 -1
- package/dist/react/client/IAutumnClient.d.mts +1 -1
- package/dist/react/client/IAutumnClient.d.ts +1 -1
- package/dist/react/client/index.d.mts +1 -1
- package/dist/react/client/index.d.ts +1 -1
- package/dist/react/hooks/index.d.mts +1 -1
- package/dist/react/hooks/index.d.ts +1 -1
- package/dist/react/hooks/index.mjs +9 -9
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useCustomer.d.mts +1 -1
- package/dist/react/hooks/useCustomer.d.ts +1 -1
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/index.d.mts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.mjs +10 -10
- package/dist/react/{params-hjH3tu7I.d.mts → params-CcSOsF6F.d.mts} +137 -9
- package/dist/react/{params-B5b1ETBk.d.ts → params-Dt46Vcks.d.ts} +137 -9
- package/dist/sdk/index.d.mts +216 -21
- package/dist/sdk/index.d.ts +216 -21
- package/dist/sdk/index.js +124 -16
- package/dist/sdk/index.mjs +103 -15
- package/package.json +2 -2
- package/dist/backend/{chunk-OVAKKRI6.mjs → chunk-IXUCY7AU.mjs} +3 -3
|
@@ -76665,6 +76665,11 @@ var AttachPaymentMethodType = {
|
|
|
76665
76665
|
AcssDebit: "acss_debit",
|
|
76666
76666
|
Link: "link"
|
|
76667
76667
|
};
|
|
76668
|
+
var AttachEnablePlan = {
|
|
76669
|
+
OnPayment: "on_payment",
|
|
76670
|
+
OnFinalize: "on_finalize",
|
|
76671
|
+
Immediately: "immediately"
|
|
76672
|
+
};
|
|
76668
76673
|
var AttachProrationBehavior = {
|
|
76669
76674
|
ProrateImmediately: "prorate_immediately",
|
|
76670
76675
|
None: "none",
|
|
@@ -78034,6 +78039,7 @@ var AttachInvoiceMode$outboundSchema = z52.pipe(
|
|
|
78034
78039
|
});
|
|
78035
78040
|
})
|
|
78036
78041
|
);
|
|
78042
|
+
var AttachEnablePlan$outboundSchema = z52.enum(AttachEnablePlan);
|
|
78037
78043
|
var AttachProrationBehavior$outboundSchema = z52.enum(AttachProrationBehavior);
|
|
78038
78044
|
var AttachRedirectMode$outboundSchema = z52.enum(AttachRedirectMode);
|
|
78039
78045
|
var AttachAttachDiscount$outboundSchema = z52.pipe(
|
|
@@ -78290,6 +78296,7 @@ var AttachParams$outboundSchema = z52.pipe(
|
|
|
78290
78296
|
billUpfront: z52.optional(z52.lazy(() => AttachBillUpfront$outboundSchema)),
|
|
78291
78297
|
customize: z52.optional(z52.lazy(() => AttachCustomize$outboundSchema)),
|
|
78292
78298
|
invoiceMode: z52.optional(z52.lazy(() => AttachInvoiceMode$outboundSchema)),
|
|
78299
|
+
enablePlan: z52.optional(AttachEnablePlan$outboundSchema),
|
|
78293
78300
|
prorationBehavior: z52.optional(AttachProrationBehavior$outboundSchema),
|
|
78294
78301
|
redirectMode: z52._default(AttachRedirectMode$outboundSchema, "if_required"),
|
|
78295
78302
|
subscriptionId: z52.optional(z52.string()),
|
|
@@ -78344,6 +78351,7 @@ var AttachParams$outboundSchema = z52.pipe(
|
|
|
78344
78351
|
freeTrial: "free_trial",
|
|
78345
78352
|
billUpfront: "bill_upfront",
|
|
78346
78353
|
invoiceMode: "invoice_mode",
|
|
78354
|
+
enablePlan: "enable_plan",
|
|
78347
78355
|
prorationBehavior: "proration_behavior",
|
|
78348
78356
|
redirectMode: "redirect_mode",
|
|
78349
78357
|
subscriptionId: "subscription_id",
|
|
@@ -79186,6 +79194,11 @@ var BillingUpdatePaymentMethodType = {
|
|
|
79186
79194
|
AcssDebit: "acss_debit",
|
|
79187
79195
|
Link: "link"
|
|
79188
79196
|
};
|
|
79197
|
+
var BillingUpdateEnablePlan = {
|
|
79198
|
+
OnPayment: "on_payment",
|
|
79199
|
+
OnFinalize: "on_finalize",
|
|
79200
|
+
Immediately: "immediately"
|
|
79201
|
+
};
|
|
79189
79202
|
var BillingUpdateProrationBehavior = {
|
|
79190
79203
|
ProrateImmediately: "prorate_immediately",
|
|
79191
79204
|
None: "none",
|
|
@@ -80594,6 +80607,7 @@ var BillingUpdateInvoiceMode$outboundSchema = z57.pipe(
|
|
|
80594
80607
|
});
|
|
80595
80608
|
})
|
|
80596
80609
|
);
|
|
80610
|
+
var BillingUpdateEnablePlan$outboundSchema = z57.enum(BillingUpdateEnablePlan);
|
|
80597
80611
|
var BillingUpdateProrationBehavior$outboundSchema = z57.enum(BillingUpdateProrationBehavior);
|
|
80598
80612
|
var BillingUpdateRedirectMode$outboundSchema = z57.enum(BillingUpdateRedirectMode);
|
|
80599
80613
|
var BillingUpdateAttachDiscount$outboundSchema = z57.pipe(
|
|
@@ -80801,6 +80815,7 @@ var UpdateSubscriptionParams$outboundSchema = z57.pipe(
|
|
|
80801
80815
|
invoiceMode: z57.optional(
|
|
80802
80816
|
z57.lazy(() => BillingUpdateInvoiceMode$outboundSchema)
|
|
80803
80817
|
),
|
|
80818
|
+
enablePlan: z57.optional(BillingUpdateEnablePlan$outboundSchema),
|
|
80804
80819
|
prorationBehavior: z57.optional(
|
|
80805
80820
|
BillingUpdateProrationBehavior$outboundSchema
|
|
80806
80821
|
),
|
|
@@ -80850,6 +80865,7 @@ var UpdateSubscriptionParams$outboundSchema = z57.pipe(
|
|
|
80850
80865
|
freeTrial: "free_trial",
|
|
80851
80866
|
billUpfront: "bill_upfront",
|
|
80852
80867
|
invoiceMode: "invoice_mode",
|
|
80868
|
+
enablePlan: "enable_plan",
|
|
80853
80869
|
prorationBehavior: "proration_behavior",
|
|
80854
80870
|
redirectMode: "redirect_mode",
|
|
80855
80871
|
subscriptionId: "subscription_id",
|
|
@@ -100255,7 +100271,7 @@ var InsertInvoicesResponse$inboundSchema = z107.object({
|
|
|
100255
100271
|
|
|
100256
100272
|
// ../sdk/src/models/issue-credit-note-op.ts
|
|
100257
100273
|
var z108 = __toESM(require("zod/v4-mini"), 1);
|
|
100258
|
-
var
|
|
100274
|
+
var IssueCreditNoteDestination = {
|
|
100259
100275
|
CustomerBalance: "customer_balance",
|
|
100260
100276
|
Refund: "refund",
|
|
100261
100277
|
OutOfBand: "out_of_band"
|
|
@@ -100277,14 +100293,17 @@ var LineRequest$outboundSchema = z108.object({
|
|
|
100277
100293
|
amount: z108.optional(z108.number()),
|
|
100278
100294
|
quantity: z108.optional(z108.number())
|
|
100279
100295
|
});
|
|
100280
|
-
var
|
|
100296
|
+
var IssueCreditNoteDestination$outboundSchema = z108.enum(IssueCreditNoteDestination);
|
|
100281
100297
|
var ReasonRequestBody$outboundSchema = z108.enum(ReasonRequestBody);
|
|
100282
100298
|
var IssueCreditNoteParams$outboundSchema = z108.pipe(
|
|
100283
100299
|
z108.object({
|
|
100284
100300
|
invoiceId: z108.string(),
|
|
100285
100301
|
amount: z108.optional(z108.number()),
|
|
100286
100302
|
lines: z108.optional(z108.array(z108.lazy(() => LineRequest$outboundSchema))),
|
|
100287
|
-
destination: z108._default(
|
|
100303
|
+
destination: z108._default(
|
|
100304
|
+
IssueCreditNoteDestination$outboundSchema,
|
|
100305
|
+
"customer_balance"
|
|
100306
|
+
),
|
|
100288
100307
|
sendEmail: z108._default(z108.boolean(), true),
|
|
100289
100308
|
reason: z108.optional(ReasonRequestBody$outboundSchema),
|
|
100290
100309
|
memo: z108.optional(z108.string()),
|
|
@@ -100822,6 +100841,7 @@ var ListBalanceLedgerParams$outboundSchema = z112.pipe(
|
|
|
100822
100841
|
z112.lazy(() => ListBalanceLedgerRecordedRange$outboundSchema)
|
|
100823
100842
|
),
|
|
100824
100843
|
trackGroupId: z112.optional(z112.string()),
|
|
100844
|
+
splitByFeature: z112.optional(z112.boolean()),
|
|
100825
100845
|
types: z112.optional(z112.array(ListBalanceLedgerTypeRequestBody$outboundSchema)),
|
|
100826
100846
|
tracks: z112._default(Tracks$outboundSchema, "grouped")
|
|
100827
100847
|
}),
|
|
@@ -100833,7 +100853,8 @@ var ListBalanceLedgerParams$outboundSchema = z112.pipe(
|
|
|
100833
100853
|
featureId: "feature_id",
|
|
100834
100854
|
customRange: "custom_range",
|
|
100835
100855
|
recordedRange: "recorded_range",
|
|
100836
|
-
trackGroupId: "track_group_id"
|
|
100856
|
+
trackGroupId: "track_group_id",
|
|
100857
|
+
splitByFeature: "split_by_feature"
|
|
100837
100858
|
});
|
|
100838
100859
|
})
|
|
100839
100860
|
);
|
|
@@ -110445,6 +110466,11 @@ var PreviewAttachPaymentMethodType = {
|
|
|
110445
110466
|
AcssDebit: "acss_debit",
|
|
110446
110467
|
Link: "link"
|
|
110447
110468
|
};
|
|
110469
|
+
var PreviewAttachEnablePlan = {
|
|
110470
|
+
OnPayment: "on_payment",
|
|
110471
|
+
OnFinalize: "on_finalize",
|
|
110472
|
+
Immediately: "immediately"
|
|
110473
|
+
};
|
|
110448
110474
|
var PreviewAttachProrationBehavior = {
|
|
110449
110475
|
ProrateImmediately: "prorate_immediately",
|
|
110450
110476
|
None: "none",
|
|
@@ -110520,6 +110546,11 @@ var PreviewAttachImmediateInvoiceIssueMethod = {
|
|
|
110520
110546
|
Send: "send",
|
|
110521
110547
|
ChargeAutomatically: "charge_automatically"
|
|
110522
110548
|
};
|
|
110549
|
+
var PreviewAttachPlanActivates = {
|
|
110550
|
+
Now: "now",
|
|
110551
|
+
OnFinalize: "on_finalize",
|
|
110552
|
+
OnPayment: "on_payment"
|
|
110553
|
+
};
|
|
110523
110554
|
var PreviewAttachCheckoutType = {
|
|
110524
110555
|
StripeCheckout: "stripe_checkout",
|
|
110525
110556
|
AutumnCheckout: "autumn_checkout"
|
|
@@ -110553,6 +110584,7 @@ var PreviewAttachInvoiceMode$outboundSchema = z135.pipe(
|
|
|
110553
110584
|
});
|
|
110554
110585
|
})
|
|
110555
110586
|
);
|
|
110587
|
+
var PreviewAttachEnablePlan$outboundSchema = z135.enum(PreviewAttachEnablePlan);
|
|
110556
110588
|
var PreviewAttachProrationBehavior$outboundSchema = z135.enum(PreviewAttachProrationBehavior);
|
|
110557
110589
|
var PreviewAttachRedirectMode$outboundSchema = z135.enum(PreviewAttachRedirectMode);
|
|
110558
110590
|
var PreviewAttachAttachDiscount$outboundSchema = z135.pipe(
|
|
@@ -110817,6 +110849,7 @@ var PreviewAttachParams$outboundSchema = z135.pipe(
|
|
|
110817
110849
|
invoiceMode: z135.optional(
|
|
110818
110850
|
z135.lazy(() => PreviewAttachInvoiceMode$outboundSchema)
|
|
110819
110851
|
),
|
|
110852
|
+
enablePlan: z135.optional(PreviewAttachEnablePlan$outboundSchema),
|
|
110820
110853
|
prorationBehavior: z135.optional(
|
|
110821
110854
|
PreviewAttachProrationBehavior$outboundSchema
|
|
110822
110855
|
),
|
|
@@ -110878,6 +110911,7 @@ var PreviewAttachParams$outboundSchema = z135.pipe(
|
|
|
110878
110911
|
freeTrial: "free_trial",
|
|
110879
110912
|
billUpfront: "bill_upfront",
|
|
110880
110913
|
invoiceMode: "invoice_mode",
|
|
110914
|
+
enablePlan: "enable_plan",
|
|
110881
110915
|
prorationBehavior: "proration_behavior",
|
|
110882
110916
|
redirectMode: "redirect_mode",
|
|
110883
110917
|
subscriptionId: "subscription_id",
|
|
@@ -110951,16 +110985,19 @@ var PreviewAttachLineItem$inboundSchema = z135.pipe(
|
|
|
110951
110985
|
);
|
|
110952
110986
|
var PreviewAttachType$inboundSchema = inboundSchema(PreviewAttachType);
|
|
110953
110987
|
var PreviewAttachImmediateInvoiceIssueMethod$inboundSchema = inboundSchema(PreviewAttachImmediateInvoiceIssueMethod);
|
|
110988
|
+
var PreviewAttachPlanActivates$inboundSchema = inboundSchema(PreviewAttachPlanActivates);
|
|
110954
110989
|
var PreviewAttachPreviewImmediateInvoice$inboundSchema = z135.pipe(
|
|
110955
110990
|
z135.object({
|
|
110956
110991
|
type: PreviewAttachType$inboundSchema,
|
|
110957
110992
|
issue_method: nullable(
|
|
110958
110993
|
PreviewAttachImmediateInvoiceIssueMethod$inboundSchema
|
|
110959
|
-
)
|
|
110994
|
+
),
|
|
110995
|
+
plan_activates: PreviewAttachPlanActivates$inboundSchema
|
|
110960
110996
|
}),
|
|
110961
110997
|
z135.transform((v) => {
|
|
110962
110998
|
return remap(v, {
|
|
110963
|
-
"issue_method": "issueMethod"
|
|
110999
|
+
"issue_method": "issueMethod",
|
|
111000
|
+
"plan_activates": "planActivates"
|
|
110964
111001
|
});
|
|
110965
111002
|
})
|
|
110966
111003
|
);
|
|
@@ -111309,6 +111346,11 @@ var PreviewMultiAttachImmediateInvoiceIssueMethod = {
|
|
|
111309
111346
|
Send: "send",
|
|
111310
111347
|
ChargeAutomatically: "charge_automatically"
|
|
111311
111348
|
};
|
|
111349
|
+
var PreviewMultiAttachPlanActivates = {
|
|
111350
|
+
Now: "now",
|
|
111351
|
+
OnFinalize: "on_finalize",
|
|
111352
|
+
OnPayment: "on_payment"
|
|
111353
|
+
};
|
|
111312
111354
|
var PreviewMultiAttachCheckoutType = {
|
|
111313
111355
|
StripeCheckout: "stripe_checkout",
|
|
111314
111356
|
AutumnCheckout: "autumn_checkout"
|
|
@@ -111962,16 +112004,19 @@ var PreviewMultiAttachLineItem$inboundSchema = z136.pipe(
|
|
|
111962
112004
|
);
|
|
111963
112005
|
var PreviewMultiAttachType$inboundSchema = inboundSchema(PreviewMultiAttachType);
|
|
111964
112006
|
var PreviewMultiAttachImmediateInvoiceIssueMethod$inboundSchema = inboundSchema(PreviewMultiAttachImmediateInvoiceIssueMethod);
|
|
112007
|
+
var PreviewMultiAttachPlanActivates$inboundSchema = inboundSchema(PreviewMultiAttachPlanActivates);
|
|
111965
112008
|
var PreviewMultiAttachPreviewImmediateInvoice$inboundSchema = z136.pipe(
|
|
111966
112009
|
z136.object({
|
|
111967
112010
|
type: PreviewMultiAttachType$inboundSchema,
|
|
111968
112011
|
issue_method: nullable(
|
|
111969
112012
|
PreviewMultiAttachImmediateInvoiceIssueMethod$inboundSchema
|
|
111970
|
-
)
|
|
112013
|
+
),
|
|
112014
|
+
plan_activates: PreviewMultiAttachPlanActivates$inboundSchema
|
|
111971
112015
|
}),
|
|
111972
112016
|
z136.transform((v) => {
|
|
111973
112017
|
return remap(v, {
|
|
111974
|
-
"issue_method": "issueMethod"
|
|
112018
|
+
"issue_method": "issueMethod",
|
|
112019
|
+
"plan_activates": "planActivates"
|
|
111975
112020
|
});
|
|
111976
112021
|
})
|
|
111977
112022
|
);
|
|
@@ -112214,6 +112259,11 @@ var PreviewMultiUpdateIssueMethod = {
|
|
|
112214
112259
|
Send: "send",
|
|
112215
112260
|
ChargeAutomatically: "charge_automatically"
|
|
112216
112261
|
};
|
|
112262
|
+
var PreviewMultiUpdatePlanActivates = {
|
|
112263
|
+
Now: "now",
|
|
112264
|
+
OnFinalize: "on_finalize",
|
|
112265
|
+
OnPayment: "on_payment"
|
|
112266
|
+
};
|
|
112217
112267
|
var PreviewMultiUpdateRefundLastPayment$outboundSchema = z137.enum(PreviewMultiUpdateRefundLastPayment);
|
|
112218
112268
|
var PreviewMultiUpdateCancelAction$outboundSchema = z137.enum(PreviewMultiUpdateCancelAction);
|
|
112219
112269
|
var PreviewMultiUpdateProrationBehavior$outboundSchema = z137.enum(PreviewMultiUpdateProrationBehavior);
|
|
@@ -112302,14 +112352,17 @@ var PreviewMultiUpdateLineItem$inboundSchema = z137.pipe(
|
|
|
112302
112352
|
);
|
|
112303
112353
|
var PreviewMultiUpdateType$inboundSchema = inboundSchema(PreviewMultiUpdateType);
|
|
112304
112354
|
var PreviewMultiUpdateIssueMethod$inboundSchema = inboundSchema(PreviewMultiUpdateIssueMethod);
|
|
112355
|
+
var PreviewMultiUpdatePlanActivates$inboundSchema = inboundSchema(PreviewMultiUpdatePlanActivates);
|
|
112305
112356
|
var PreviewMultiUpdatePreviewImmediateInvoice$inboundSchema = z137.pipe(
|
|
112306
112357
|
z137.object({
|
|
112307
112358
|
type: PreviewMultiUpdateType$inboundSchema,
|
|
112308
|
-
issue_method: nullable(PreviewMultiUpdateIssueMethod$inboundSchema)
|
|
112359
|
+
issue_method: nullable(PreviewMultiUpdateIssueMethod$inboundSchema),
|
|
112360
|
+
plan_activates: PreviewMultiUpdatePlanActivates$inboundSchema
|
|
112309
112361
|
}),
|
|
112310
112362
|
z137.transform((v) => {
|
|
112311
112363
|
return remap(v, {
|
|
112312
|
-
"issue_method": "issueMethod"
|
|
112364
|
+
"issue_method": "issueMethod",
|
|
112365
|
+
"plan_activates": "planActivates"
|
|
112313
112366
|
});
|
|
112314
112367
|
})
|
|
112315
112368
|
);
|
|
@@ -114326,6 +114379,11 @@ var PreviewUpdatePaymentMethodType = {
|
|
|
114326
114379
|
AcssDebit: "acss_debit",
|
|
114327
114380
|
Link: "link"
|
|
114328
114381
|
};
|
|
114382
|
+
var PreviewUpdateEnablePlan = {
|
|
114383
|
+
OnPayment: "on_payment",
|
|
114384
|
+
OnFinalize: "on_finalize",
|
|
114385
|
+
Immediately: "immediately"
|
|
114386
|
+
};
|
|
114329
114387
|
var PreviewUpdateProrationBehavior = {
|
|
114330
114388
|
ProrateImmediately: "prorate_immediately",
|
|
114331
114389
|
None: "none",
|
|
@@ -114401,6 +114459,11 @@ var PreviewUpdateImmediateInvoiceIssueMethod = {
|
|
|
114401
114459
|
Send: "send",
|
|
114402
114460
|
ChargeAutomatically: "charge_automatically"
|
|
114403
114461
|
};
|
|
114462
|
+
var PreviewUpdatePlanActivates = {
|
|
114463
|
+
Now: "now",
|
|
114464
|
+
OnFinalize: "on_finalize",
|
|
114465
|
+
OnPayment: "on_payment"
|
|
114466
|
+
};
|
|
114404
114467
|
var Intent = {
|
|
114405
114468
|
UpdatePlan: "update_plan",
|
|
114406
114469
|
UpdateQuantity: "update_quantity",
|
|
@@ -114438,6 +114501,7 @@ var PreviewUpdateInvoiceMode$outboundSchema = z140.pipe(
|
|
|
114438
114501
|
});
|
|
114439
114502
|
})
|
|
114440
114503
|
);
|
|
114504
|
+
var PreviewUpdateEnablePlan$outboundSchema = z140.enum(PreviewUpdateEnablePlan);
|
|
114441
114505
|
var PreviewUpdateProrationBehavior$outboundSchema = z140.enum(PreviewUpdateProrationBehavior);
|
|
114442
114506
|
var PreviewUpdateRedirectMode$outboundSchema = z140.enum(PreviewUpdateRedirectMode);
|
|
114443
114507
|
var PreviewUpdateAttachDiscount$outboundSchema = z140.pipe(
|
|
@@ -114643,6 +114707,7 @@ var PreviewUpdateParams$outboundSchema = z140.pipe(
|
|
|
114643
114707
|
invoiceMode: z140.optional(
|
|
114644
114708
|
z140.lazy(() => PreviewUpdateInvoiceMode$outboundSchema)
|
|
114645
114709
|
),
|
|
114710
|
+
enablePlan: z140.optional(PreviewUpdateEnablePlan$outboundSchema),
|
|
114646
114711
|
prorationBehavior: z140.optional(
|
|
114647
114712
|
PreviewUpdateProrationBehavior$outboundSchema
|
|
114648
114713
|
),
|
|
@@ -114692,6 +114757,7 @@ var PreviewUpdateParams$outboundSchema = z140.pipe(
|
|
|
114692
114757
|
freeTrial: "free_trial",
|
|
114693
114758
|
billUpfront: "bill_upfront",
|
|
114694
114759
|
invoiceMode: "invoice_mode",
|
|
114760
|
+
enablePlan: "enable_plan",
|
|
114695
114761
|
prorationBehavior: "proration_behavior",
|
|
114696
114762
|
redirectMode: "redirect_mode",
|
|
114697
114763
|
subscriptionId: "subscription_id",
|
|
@@ -114756,16 +114822,19 @@ var PreviewUpdateLineItem$inboundSchema = z140.pipe(
|
|
|
114756
114822
|
);
|
|
114757
114823
|
var PreviewUpdateType$inboundSchema = inboundSchema(PreviewUpdateType);
|
|
114758
114824
|
var PreviewUpdateImmediateInvoiceIssueMethod$inboundSchema = inboundSchema(PreviewUpdateImmediateInvoiceIssueMethod);
|
|
114825
|
+
var PreviewUpdatePlanActivates$inboundSchema = inboundSchema(PreviewUpdatePlanActivates);
|
|
114759
114826
|
var PreviewUpdatePreviewImmediateInvoice$inboundSchema = z140.pipe(
|
|
114760
114827
|
z140.object({
|
|
114761
114828
|
type: PreviewUpdateType$inboundSchema,
|
|
114762
114829
|
issue_method: nullable(
|
|
114763
114830
|
PreviewUpdateImmediateInvoiceIssueMethod$inboundSchema
|
|
114764
|
-
)
|
|
114831
|
+
),
|
|
114832
|
+
plan_activates: PreviewUpdatePlanActivates$inboundSchema
|
|
114765
114833
|
}),
|
|
114766
114834
|
z140.transform((v) => {
|
|
114767
114835
|
return remap(v, {
|
|
114768
|
-
"issue_method": "issueMethod"
|
|
114836
|
+
"issue_method": "issueMethod",
|
|
114837
|
+
"plan_activates": "planActivates"
|
|
114769
114838
|
});
|
|
114770
114839
|
})
|
|
114771
114840
|
);
|
|
@@ -115070,6 +115139,11 @@ var ReissueInvoiceIssueMethodRequest = {
|
|
|
115070
115139
|
Finalize: "finalize",
|
|
115071
115140
|
Send: "send"
|
|
115072
115141
|
};
|
|
115142
|
+
var ReissueInvoiceDestination = {
|
|
115143
|
+
CustomerBalance: "customer_balance",
|
|
115144
|
+
Refund: "refund",
|
|
115145
|
+
OutOfBand: "out_of_band"
|
|
115146
|
+
};
|
|
115073
115147
|
var ReissueInvoicePaymentMethodType = {
|
|
115074
115148
|
Card: "card",
|
|
115075
115149
|
CustomerBalance: "customer_balance",
|
|
@@ -115156,6 +115230,7 @@ var ReissueInvoicePreviewIssueMethod = {
|
|
|
115156
115230
|
Send: "send"
|
|
115157
115231
|
};
|
|
115158
115232
|
var ReissueInvoiceIssueMethodRequest$outboundSchema = z144.enum(ReissueInvoiceIssueMethodRequest);
|
|
115233
|
+
var ReissueInvoiceDestination$outboundSchema = z144.enum(ReissueInvoiceDestination);
|
|
115159
115234
|
var CustomField$outboundSchema = z144.object({
|
|
115160
115235
|
name: z144.string(),
|
|
115161
115236
|
value: z144.string()
|
|
@@ -115856,6 +115931,7 @@ var ReissueInvoiceParams$outboundSchema = z144.pipe(
|
|
|
115856
115931
|
netTermsDays: z144.optional(z144.int()),
|
|
115857
115932
|
preview: z144.optional(z144.boolean()),
|
|
115858
115933
|
issueMethod: z144.optional(ReissueInvoiceIssueMethodRequest$outboundSchema),
|
|
115934
|
+
destination: z144.optional(ReissueInvoiceDestination$outboundSchema),
|
|
115859
115935
|
updateCustomerEmail: z144.optional(z144.string()),
|
|
115860
115936
|
invoice: z144.optional(
|
|
115861
115937
|
z144.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
|
|
@@ -116442,6 +116518,11 @@ var SetupPaymentIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
116442
116518
|
SemiAnnual: "semi_annual",
|
|
116443
116519
|
Year: "year"
|
|
116444
116520
|
};
|
|
116521
|
+
var SetupPaymentEnablePlan = {
|
|
116522
|
+
OnPayment: "on_payment",
|
|
116523
|
+
OnFinalize: "on_finalize",
|
|
116524
|
+
Immediately: "immediately"
|
|
116525
|
+
};
|
|
116445
116526
|
var SetupPaymentProrationBehavior = {
|
|
116446
116527
|
ProrateImmediately: "prorate_immediately",
|
|
116447
116528
|
None: "none",
|
|
@@ -117815,6 +117896,7 @@ var SetupPaymentCustomize$outboundSchema = z149.pipe(
|
|
|
117815
117896
|
});
|
|
117816
117897
|
})
|
|
117817
117898
|
);
|
|
117899
|
+
var SetupPaymentEnablePlan$outboundSchema = z149.enum(SetupPaymentEnablePlan);
|
|
117818
117900
|
var SetupPaymentProrationBehavior$outboundSchema = z149.enum(SetupPaymentProrationBehavior);
|
|
117819
117901
|
var SetupPaymentAttachDiscount$outboundSchema = z149.pipe(
|
|
117820
117902
|
z149.object({
|
|
@@ -118076,6 +118158,7 @@ var SetupPaymentParams$outboundSchema = z149.pipe(
|
|
|
118076
118158
|
z149.lazy(() => SetupPaymentBillUpfront$outboundSchema)
|
|
118077
118159
|
),
|
|
118078
118160
|
customize: z149.optional(z149.lazy(() => SetupPaymentCustomize$outboundSchema)),
|
|
118161
|
+
enablePlan: z149.optional(SetupPaymentEnablePlan$outboundSchema),
|
|
118079
118162
|
prorationBehavior: z149.optional(SetupPaymentProrationBehavior$outboundSchema),
|
|
118080
118163
|
subscriptionId: z149.optional(z149.string()),
|
|
118081
118164
|
discounts: z149.optional(
|
|
@@ -118127,6 +118210,7 @@ var SetupPaymentParams$outboundSchema = z149.pipe(
|
|
|
118127
118210
|
featureQuantities: "feature_quantities",
|
|
118128
118211
|
freeTrial: "free_trial",
|
|
118129
118212
|
billUpfront: "bill_upfront",
|
|
118213
|
+
enablePlan: "enable_plan",
|
|
118130
118214
|
prorationBehavior: "proration_behavior",
|
|
118131
118215
|
subscriptionId: "subscription_id",
|
|
118132
118216
|
successUrl: "success_url",
|
|
@@ -130925,6 +131009,7 @@ var Billing = class extends ClientSDK {
|
|
|
130925
131009
|
* @param billUpfront - Charge today for billing periods that haven't started yet. Only the plan's base price is billed upfront; usage, prepaid quantities and seats keep billing every period. (optional)
|
|
130926
131010
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
130927
131011
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. This uses Stripe's send_invoice collection method. (optional)
|
|
131012
|
+
* @param enablePlan - When the plan turns on. 'on_payment' (default) waits until the invoice is paid or checkout completes. 'on_finalize' turns it on once the invoice is finalized, before payment, and needs invoice_mode. 'immediately' turns it on now, even while the invoice is still a draft; voiding or deleting the draft leaves the plan on. Takes precedence over the deprecated enable_plan_immediately flags. (optional)
|
|
130928
131013
|
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' bills the larger of the full-period price difference and the prorated amount (full difference on upgrades, prorated credit on downgrades) now without changing the billing cycle. (optional)
|
|
130929
131014
|
* @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)
|
|
130930
131015
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
@@ -130946,7 +131031,7 @@ var Billing = class extends ClientSDK {
|
|
|
130946
131031
|
* @param licenseQuantities - Seat quantities for the plan's licenses, keyed by license plan. (optional)
|
|
130947
131032
|
* @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)
|
|
130948
131033
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
130949
|
-
* @param enablePlanImmediately - If true, the customer's plan is activated
|
|
131034
|
+
* @param enablePlanImmediately - Deprecated: use enable_plan. If true, the customer's plan is activated before payment: in invoice mode once the invoice is finalized, and with Stripe checkout before the customer completes the hosted form. Ignored when enable_plan is set. (optional)
|
|
130950
131035
|
* @param tax - Tax behavior for this attach. Use automatic_tax to turn automatic tax on or off for this request, or rate_id to apply a fixed tax rate. (optional)
|
|
130951
131036
|
* @param billingDetails - Billing address, tax IDs and tax exemption to save to the customer before billing. Lets an invoice-mode attach supply the address automatic tax needs in the same call. (optional)
|
|
130952
131037
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
@@ -131068,6 +131153,7 @@ var Billing = class extends ClientSDK {
|
|
|
131068
131153
|
* @param billUpfront - Charge today for billing periods that haven't started yet. Only the plan's base price is billed upfront; usage, prepaid quantities and seats keep billing every period. (optional)
|
|
131069
131154
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
131070
131155
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. This uses Stripe's send_invoice collection method. (optional)
|
|
131156
|
+
* @param enablePlan - When the plan turns on. 'on_payment' (default) waits until the invoice is paid or checkout completes. 'on_finalize' turns it on once the invoice is finalized, before payment, and needs invoice_mode. 'immediately' turns it on now, even while the invoice is still a draft; voiding or deleting the draft leaves the plan on. Takes precedence over the deprecated enable_plan_immediately flags. (optional)
|
|
131071
131157
|
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' bills the larger of the full-period price difference and the prorated amount (full difference on upgrades, prorated credit on downgrades) now without changing the billing cycle. (optional)
|
|
131072
131158
|
* @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)
|
|
131073
131159
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
@@ -131089,7 +131175,7 @@ var Billing = class extends ClientSDK {
|
|
|
131089
131175
|
* @param licenseQuantities - Seat quantities for the plan's licenses, keyed by license plan. (optional)
|
|
131090
131176
|
* @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)
|
|
131091
131177
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
131092
|
-
* @param enablePlanImmediately - If true, the customer's plan is activated
|
|
131178
|
+
* @param enablePlanImmediately - Deprecated: use enable_plan. If true, the customer's plan is activated before payment: in invoice mode once the invoice is finalized, and with Stripe checkout before the customer completes the hosted form. Ignored when enable_plan is set. (optional)
|
|
131093
131179
|
* @param tax - Tax behavior for this attach. Use automatic_tax to turn automatic tax on or off for this request, or rate_id to apply a fixed tax rate. (optional)
|
|
131094
131180
|
* @param billingDetails - Billing address, tax IDs and tax exemption to save to the customer before billing. Lets an invoice-mode attach supply the address automatic tax needs in the same call. (optional)
|
|
131095
131181
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
@@ -131174,6 +131260,7 @@ var Billing = class extends ClientSDK {
|
|
|
131174
131260
|
* @param billUpfront - Charge today for billing periods that haven't started yet. Only the plan's base price is billed upfront; usage, prepaid quantities and seats keep billing every period. (optional)
|
|
131175
131261
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
131176
131262
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. This uses Stripe's send_invoice collection method. (optional)
|
|
131263
|
+
* @param enablePlan - When the plan turns on. 'on_payment' (default) waits until the invoice is paid or checkout completes. 'on_finalize' turns it on once the invoice is finalized, before payment, and needs invoice_mode. 'immediately' turns it on now, even while the invoice is still a draft; voiding or deleting the draft leaves the plan on. Takes precedence over the deprecated enable_plan_immediately flags. (optional)
|
|
131177
131264
|
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' bills the larger of the full-period price difference and the prorated amount (full difference on upgrades, prorated credit on downgrades) now without changing the billing cycle. (optional)
|
|
131178
131265
|
* @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)
|
|
131179
131266
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
@@ -131220,6 +131307,7 @@ var Billing = class extends ClientSDK {
|
|
|
131220
131307
|
* @param billUpfront - Charge today for billing periods that haven't started yet. Only the plan's base price is billed upfront; usage, prepaid quantities and seats keep billing every period. (optional)
|
|
131221
131308
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
131222
131309
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. This uses Stripe's send_invoice collection method. (optional)
|
|
131310
|
+
* @param enablePlan - When the plan turns on. 'on_payment' (default) waits until the invoice is paid or checkout completes. 'on_finalize' turns it on once the invoice is finalized, before payment, and needs invoice_mode. 'immediately' turns it on now, even while the invoice is still a draft; voiding or deleting the draft leaves the plan on. Takes precedence over the deprecated enable_plan_immediately flags. (optional)
|
|
131223
131311
|
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' bills the larger of the full-period price difference and the prorated amount (full difference on upgrades, prorated credit on downgrades) now without changing the billing cycle. (optional)
|
|
131224
131312
|
* @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)
|
|
131225
131313
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
@@ -139707,6 +139795,7 @@ var attachInvoiceModeSchema = import_v42.z.object({
|
|
|
139707
139795
|
netTermsDays: import_v42.z.union([import_v42.z.number(), import_v42.z.undefined()]).optional(),
|
|
139708
139796
|
paymentMethodTypes: import_v42.z.union([import_v42.z.array(attachPaymentMethodTypeSchema), import_v42.z.undefined()]).optional()
|
|
139709
139797
|
});
|
|
139798
|
+
var attachEnablePlanSchema = closedEnumSchema2;
|
|
139710
139799
|
var attachProrationBehaviorSchema = closedEnumSchema2;
|
|
139711
139800
|
var attachRedirectModeSchema = closedEnumSchema2;
|
|
139712
139801
|
var attachPlanScheduleSchema = closedEnumSchema2;
|
|
@@ -139774,6 +139863,7 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
139774
139863
|
billUpfront: import_v42.z.union([attachBillUpfrontSchema, import_v42.z.undefined()]).optional(),
|
|
139775
139864
|
customize: import_v42.z.union([attachCustomizeSchema, import_v42.z.undefined()]).optional(),
|
|
139776
139865
|
invoiceMode: import_v42.z.union([attachInvoiceModeSchema, import_v42.z.undefined()]).optional(),
|
|
139866
|
+
enablePlan: import_v42.z.union([attachEnablePlanSchema, import_v42.z.undefined()]).optional(),
|
|
139777
139867
|
prorationBehavior: import_v42.z.union([attachProrationBehaviorSchema, import_v42.z.undefined()]).optional(),
|
|
139778
139868
|
redirectMode: import_v42.z.union([attachRedirectModeSchema, import_v42.z.undefined()]).optional(),
|
|
139779
139869
|
subscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
@@ -140025,6 +140115,7 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
140025
140115
|
bill_upfront: import_v42.z.union([attachBillUpfrontOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
140026
140116
|
customize: import_v42.z.union([attachCustomizeOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
140027
140117
|
invoice_mode: import_v42.z.union([attachInvoiceModeOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
140118
|
+
enable_plan: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
140028
140119
|
proration_behavior: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
140029
140120
|
redirect_mode: import_v42.z.string(),
|
|
140030
140121
|
subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
@@ -142712,6 +142803,7 @@ var previewAttachInvoiceModeSchema = import_v412.z.object({
|
|
|
142712
142803
|
netTermsDays: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
142713
142804
|
paymentMethodTypes: import_v412.z.union([import_v412.z.array(previewAttachPaymentMethodTypeSchema), import_v412.z.undefined()]).optional()
|
|
142714
142805
|
});
|
|
142806
|
+
var previewAttachEnablePlanSchema = closedEnumSchema10;
|
|
142715
142807
|
var previewAttachProrationBehaviorSchema = closedEnumSchema10;
|
|
142716
142808
|
var previewAttachRedirectModeSchema = closedEnumSchema10;
|
|
142717
142809
|
var previewAttachPlanScheduleSchema = closedEnumSchema10;
|
|
@@ -142798,6 +142890,7 @@ var previewAttachParamsSchema = import_v412.z.object({
|
|
|
142798
142890
|
billUpfront: import_v412.z.union([previewAttachBillUpfrontSchema, import_v412.z.undefined()]).optional(),
|
|
142799
142891
|
customize: import_v412.z.union([previewAttachCustomizeSchema, import_v412.z.undefined()]).optional(),
|
|
142800
142892
|
invoiceMode: import_v412.z.union([previewAttachInvoiceModeSchema, import_v412.z.undefined()]).optional(),
|
|
142893
|
+
enablePlan: import_v412.z.union([previewAttachEnablePlanSchema, import_v412.z.undefined()]).optional(),
|
|
142801
142894
|
prorationBehavior: import_v412.z.union([previewAttachProrationBehaviorSchema, import_v412.z.undefined()]).optional(),
|
|
142802
142895
|
redirectMode: import_v412.z.union([previewAttachRedirectModeSchema, import_v412.z.undefined()]).optional(),
|
|
142803
142896
|
subscriptionId: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
@@ -142829,9 +142922,11 @@ var previewAttachParamsSchema = import_v412.z.object({
|
|
|
142829
142922
|
});
|
|
142830
142923
|
var previewAttachTypeSchema = openEnumSchema9;
|
|
142831
142924
|
var previewAttachImmediateInvoiceIssueMethodSchema = openEnumSchema9;
|
|
142925
|
+
var previewAttachPlanActivatesSchema = openEnumSchema9;
|
|
142832
142926
|
var previewAttachPreviewImmediateInvoiceSchema = import_v412.z.object({
|
|
142833
142927
|
type: previewAttachTypeSchema,
|
|
142834
|
-
issueMethod: previewAttachImmediateInvoiceIssueMethodSchema.nullable()
|
|
142928
|
+
issueMethod: previewAttachImmediateInvoiceIssueMethodSchema.nullable(),
|
|
142929
|
+
planActivates: previewAttachPlanActivatesSchema
|
|
142835
142930
|
});
|
|
142836
142931
|
var previewAttachIncomingSchema = import_v412.z.object({
|
|
142837
142932
|
planId: import_v412.z.string(),
|
|
@@ -142889,6 +142984,7 @@ var previewAttachParamsOutboundSchema = import_v412.z.object({
|
|
|
142889
142984
|
bill_upfront: import_v412.z.union([previewAttachBillUpfrontOutboundSchema, import_v412.z.undefined()]).optional(),
|
|
142890
142985
|
customize: import_v412.z.union([previewAttachCustomizeOutboundSchema, import_v412.z.undefined()]).optional(),
|
|
142891
142986
|
invoice_mode: import_v412.z.union([previewAttachInvoiceModeOutboundSchema, import_v412.z.undefined()]).optional(),
|
|
142987
|
+
enable_plan: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
142892
142988
|
proration_behavior: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
142893
142989
|
redirect_mode: import_v412.z.string(),
|
|
142894
142990
|
subscription_id: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
@@ -143530,9 +143626,11 @@ var previewMultiAttachParamsSchema = import_v413.z.object({
|
|
|
143530
143626
|
});
|
|
143531
143627
|
var previewMultiAttachTypeSchema = openEnumSchema10;
|
|
143532
143628
|
var previewMultiAttachImmediateInvoiceIssueMethodSchema = openEnumSchema10;
|
|
143629
|
+
var previewMultiAttachPlanActivatesSchema = openEnumSchema10;
|
|
143533
143630
|
var previewMultiAttachPreviewImmediateInvoiceSchema = import_v413.z.object({
|
|
143534
143631
|
type: previewMultiAttachTypeSchema,
|
|
143535
|
-
issueMethod: previewMultiAttachImmediateInvoiceIssueMethodSchema.nullable()
|
|
143632
|
+
issueMethod: previewMultiAttachImmediateInvoiceIssueMethodSchema.nullable(),
|
|
143633
|
+
planActivates: previewMultiAttachPlanActivatesSchema
|
|
143536
143634
|
});
|
|
143537
143635
|
var previewMultiAttachIncomingSchema = import_v413.z.object({
|
|
143538
143636
|
planId: import_v413.z.string(),
|
|
@@ -143900,6 +143998,7 @@ var previewUpdateInvoiceModeSchema = import_v414.z.object({
|
|
|
143900
143998
|
netTermsDays: import_v414.z.union([import_v414.z.number(), import_v414.z.undefined()]).optional(),
|
|
143901
143999
|
paymentMethodTypes: import_v414.z.union([import_v414.z.array(previewUpdatePaymentMethodTypeSchema), import_v414.z.undefined()]).optional()
|
|
143902
144000
|
});
|
|
144001
|
+
var previewUpdateEnablePlanSchema = closedEnumSchema12;
|
|
143903
144002
|
var previewUpdateProrationBehaviorSchema = closedEnumSchema12;
|
|
143904
144003
|
var previewUpdateRedirectModeSchema = closedEnumSchema12;
|
|
143905
144004
|
var previewUpdateDirectionSchema = closedEnumSchema12;
|
|
@@ -143981,6 +144080,7 @@ var previewUpdateParamsSchema = import_v414.z.object({
|
|
|
143981
144080
|
billUpfront: import_v414.z.union([previewUpdateBillUpfrontSchema, import_v414.z.undefined()]).optional(),
|
|
143982
144081
|
customize: import_v414.z.union([previewUpdateCustomizeSchema, import_v414.z.undefined()]).optional(),
|
|
143983
144082
|
invoiceMode: import_v414.z.union([previewUpdateInvoiceModeSchema, import_v414.z.undefined()]).optional(),
|
|
144083
|
+
enablePlan: import_v414.z.union([previewUpdateEnablePlanSchema, import_v414.z.undefined()]).optional(),
|
|
143984
144084
|
prorationBehavior: import_v414.z.union([previewUpdateProrationBehaviorSchema, import_v414.z.undefined()]).optional(),
|
|
143985
144085
|
redirectMode: import_v414.z.union([previewUpdateRedirectModeSchema, import_v414.z.undefined()]).optional(),
|
|
143986
144086
|
subscriptionId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
@@ -144000,9 +144100,11 @@ var previewUpdateParamsSchema = import_v414.z.object({
|
|
|
144000
144100
|
});
|
|
144001
144101
|
var previewUpdateTypeSchema = openEnumSchema11;
|
|
144002
144102
|
var previewUpdateImmediateInvoiceIssueMethodSchema = openEnumSchema11;
|
|
144103
|
+
var previewUpdatePlanActivatesSchema = openEnumSchema11;
|
|
144003
144104
|
var previewUpdatePreviewImmediateInvoiceSchema = import_v414.z.object({
|
|
144004
144105
|
type: previewUpdateTypeSchema,
|
|
144005
|
-
issueMethod: previewUpdateImmediateInvoiceIssueMethodSchema.nullable()
|
|
144106
|
+
issueMethod: previewUpdateImmediateInvoiceIssueMethodSchema.nullable(),
|
|
144107
|
+
planActivates: previewUpdatePlanActivatesSchema
|
|
144006
144108
|
});
|
|
144007
144109
|
var previewUpdateIncomingSchema = import_v414.z.object({
|
|
144008
144110
|
planId: import_v414.z.string(),
|
|
@@ -144059,6 +144161,7 @@ var previewUpdateParamsOutboundSchema = import_v414.z.object({
|
|
|
144059
144161
|
bill_upfront: import_v414.z.union([previewUpdateBillUpfrontOutboundSchema, import_v414.z.undefined()]).optional(),
|
|
144060
144162
|
customize: import_v414.z.union([previewUpdateCustomizeOutboundSchema, import_v414.z.undefined()]).optional(),
|
|
144061
144163
|
invoice_mode: import_v414.z.union([previewUpdateInvoiceModeOutboundSchema, import_v414.z.undefined()]).optional(),
|
|
144164
|
+
enable_plan: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
144062
144165
|
proration_behavior: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
144063
144166
|
redirect_mode: import_v414.z.string(),
|
|
144064
144167
|
subscription_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
@@ -145478,6 +145581,7 @@ var setupPaymentCustomizeSchema = import_v416.z.object({
|
|
|
145478
145581
|
upsertLicenses: import_v416.z.union([import_v416.z.array(setupPaymentUpsertLicenseSchema), import_v416.z.undefined()]).optional(),
|
|
145479
145582
|
removeLicenses: import_v416.z.union([import_v416.z.array(setupPaymentRemoveLicenseSchema), import_v416.z.undefined()]).optional()
|
|
145480
145583
|
});
|
|
145584
|
+
var setupPaymentEnablePlanSchema = closedEnumSchema13;
|
|
145481
145585
|
var setupPaymentProrationBehaviorSchema = closedEnumSchema13;
|
|
145482
145586
|
var setupPaymentDirectionSchema = closedEnumSchema13;
|
|
145483
145587
|
var setupPaymentPriceRemoveLineIntervalSchema = closedEnumSchema13;
|
|
@@ -145554,6 +145658,7 @@ var setupPaymentParamsSchema = import_v416.z.object({
|
|
|
145554
145658
|
freeTrial: import_v416.z.union([setupPaymentFreeTrialParamsSchema, import_v416.z.undefined()]).optional().nullable(),
|
|
145555
145659
|
billUpfront: import_v416.z.union([setupPaymentBillUpfrontSchema, import_v416.z.undefined()]).optional(),
|
|
145556
145660
|
customize: import_v416.z.union([setupPaymentCustomizeSchema, import_v416.z.undefined()]).optional(),
|
|
145661
|
+
enablePlan: import_v416.z.union([setupPaymentEnablePlanSchema, import_v416.z.undefined()]).optional(),
|
|
145557
145662
|
prorationBehavior: import_v416.z.union([setupPaymentProrationBehaviorSchema, import_v416.z.undefined()]).optional(),
|
|
145558
145663
|
subscriptionId: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
145559
145664
|
discounts: import_v416.z.union([import_v416.z.array(setupPaymentAttachDiscountSchema), import_v416.z.undefined()]).optional(),
|
|
@@ -145799,6 +145904,7 @@ var setupPaymentParamsOutboundSchema = import_v416.z.object({
|
|
|
145799
145904
|
free_trial: import_v416.z.union([setupPaymentFreeTrialParamsOutboundSchema, import_v416.z.undefined()]).optional().nullable(),
|
|
145800
145905
|
bill_upfront: import_v416.z.union([setupPaymentBillUpfrontOutboundSchema, import_v416.z.undefined()]).optional(),
|
|
145801
145906
|
customize: import_v416.z.union([setupPaymentCustomizeOutboundSchema, import_v416.z.undefined()]).optional(),
|
|
145907
|
+
enable_plan: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
145802
145908
|
proration_behavior: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
145803
145909
|
subscription_id: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
145804
145910
|
discounts: import_v416.z.union([import_v416.z.array(setupPaymentAttachDiscountOutboundSchema), import_v416.z.undefined()]).optional(),
|
|
@@ -147187,6 +147293,7 @@ var billingUpdateInvoiceModeSchema = import_v417.z.object({
|
|
|
147187
147293
|
netTermsDays: import_v417.z.union([import_v417.z.number(), import_v417.z.undefined()]).optional(),
|
|
147188
147294
|
paymentMethodTypes: import_v417.z.union([import_v417.z.array(billingUpdatePaymentMethodTypeSchema), import_v417.z.undefined()]).optional()
|
|
147189
147295
|
});
|
|
147296
|
+
var billingUpdateEnablePlanSchema = closedEnumSchema14;
|
|
147190
147297
|
var billingUpdateProrationBehaviorSchema = closedEnumSchema14;
|
|
147191
147298
|
var billingUpdateRedirectModeSchema = closedEnumSchema14;
|
|
147192
147299
|
var billingUpdateDirectionSchema = closedEnumSchema14;
|
|
@@ -147265,6 +147372,7 @@ var updateSubscriptionParamsSchema = import_v417.z.object({
|
|
|
147265
147372
|
billUpfront: import_v417.z.union([billingUpdateBillUpfrontSchema, import_v417.z.undefined()]).optional(),
|
|
147266
147373
|
customize: import_v417.z.union([billingUpdateCustomizeSchema, import_v417.z.undefined()]).optional(),
|
|
147267
147374
|
invoiceMode: import_v417.z.union([billingUpdateInvoiceModeSchema, import_v417.z.undefined()]).optional(),
|
|
147375
|
+
enablePlan: import_v417.z.union([billingUpdateEnablePlanSchema, import_v417.z.undefined()]).optional(),
|
|
147268
147376
|
prorationBehavior: import_v417.z.union([billingUpdateProrationBehaviorSchema, import_v417.z.undefined()]).optional(),
|
|
147269
147377
|
redirectMode: import_v417.z.union([billingUpdateRedirectModeSchema, import_v417.z.undefined()]).optional(),
|
|
147270
147378
|
subscriptionId: import_v417.z.union([import_v417.z.string(), import_v417.z.undefined()]).optional(),
|
|
@@ -147521,6 +147629,7 @@ var updateSubscriptionParamsOutboundSchema = import_v417.z.object({
|
|
|
147521
147629
|
bill_upfront: import_v417.z.union([billingUpdateBillUpfrontOutboundSchema, import_v417.z.undefined()]).optional(),
|
|
147522
147630
|
customize: import_v417.z.union([billingUpdateCustomizeOutboundSchema, import_v417.z.undefined()]).optional(),
|
|
147523
147631
|
invoice_mode: import_v417.z.union([billingUpdateInvoiceModeOutboundSchema, import_v417.z.undefined()]).optional(),
|
|
147632
|
+
enable_plan: import_v417.z.union([import_v417.z.string(), import_v417.z.undefined()]).optional(),
|
|
147524
147633
|
proration_behavior: import_v417.z.union([import_v417.z.string(), import_v417.z.undefined()]).optional(),
|
|
147525
147634
|
redirect_mode: import_v417.z.string(),
|
|
147526
147635
|
subscription_id: import_v417.z.union([import_v417.z.string(), import_v417.z.undefined()]).optional(),
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-NKVGEUV4.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-DXDRTRUK.mjs";
|
|
7
|
+
import "../chunk-ALZ4XHA2.mjs";
|
|
8
8
|
import "../chunk-TSF4YCUO.mjs";
|
|
9
9
|
import "../chunk-UAR3TMWI.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
14
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
10
|
+
import "../chunk-BQH4CXRL.mjs";
|
|
11
|
+
import "../chunk-XCKEZ2HZ.mjs";
|
|
12
|
+
import "../chunk-IXUCY7AU.mjs";
|
|
15
13
|
import "../chunk-OTXV5FY7.mjs";
|
|
14
|
+
import "../chunk-I7CD6EB6.mjs";
|
|
16
15
|
import "../chunk-VZIMT7AO.mjs";
|
|
16
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
17
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
17
18
|
import "../chunk-N7NFYY54.mjs";
|
|
18
|
-
import "../chunk-I7CD6EB6.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
21
21
|
};
|