mirror of
https://github.com/better-auth/better-auth.git
synced 2026-08-01 10:50:40 -05:00
chore: lint (#3437)
This commit is contained in:
@@ -207,7 +207,8 @@ export const stripe = <O extends StripeOptions>(options: O) => {
|
||||
* Return URL
|
||||
*/
|
||||
returnUrl: z
|
||||
.string().meta({
|
||||
.string()
|
||||
.meta({
|
||||
description:
|
||||
'Return URL to redirect back after successful subscription. Eg: "https://example.com/success"',
|
||||
})
|
||||
@@ -216,7 +217,8 @@ export const stripe = <O extends StripeOptions>(options: O) => {
|
||||
* Disable Redirect
|
||||
*/
|
||||
disableRedirect: z
|
||||
.boolean().meta({
|
||||
.boolean()
|
||||
.meta({
|
||||
description:
|
||||
"Disable redirect after successful subscription. Eg: true",
|
||||
})
|
||||
@@ -601,13 +603,15 @@ export const stripe = <O extends StripeOptions>(options: O) => {
|
||||
method: "POST",
|
||||
body: z.object({
|
||||
referenceId: z
|
||||
.string().meta({
|
||||
.string()
|
||||
.meta({
|
||||
description:
|
||||
"Reference id of the subscription to cancel. Eg: '123'",
|
||||
})
|
||||
.optional(),
|
||||
subscriptionId: z
|
||||
.string().meta({
|
||||
.string()
|
||||
.meta({
|
||||
description:
|
||||
"The id of the subscription to cancel. Eg: 'sub_123'",
|
||||
})
|
||||
@@ -743,13 +747,15 @@ export const stripe = <O extends StripeOptions>(options: O) => {
|
||||
method: "POST",
|
||||
body: z.object({
|
||||
referenceId: z
|
||||
.string().meta({
|
||||
.string()
|
||||
.meta({
|
||||
description:
|
||||
"Reference id of the subscription to restore. Eg: '123'",
|
||||
})
|
||||
.optional(),
|
||||
subscriptionId: z
|
||||
.string().meta({
|
||||
.string()
|
||||
.meta({
|
||||
description:
|
||||
"The id of the subscription to restore. Eg: 'sub_123'",
|
||||
})
|
||||
@@ -875,7 +881,8 @@ export const stripe = <O extends StripeOptions>(options: O) => {
|
||||
query: z.optional(
|
||||
z.object({
|
||||
referenceId: z
|
||||
.string().meta({
|
||||
.string()
|
||||
.meta({
|
||||
description:
|
||||
"Reference id of the subscription to list. Eg: '123'",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user