File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1078,7 +1078,7 @@ export async function generateModelString(
1078
1078
return customer
1079
1079
}
1080
1080
1081
- async updateStripeUser(options: Stripe.CustomerUpdateParams ): Promise<Stripe.Response<Stripe.Customer>> {
1081
+ async updateStripeUser(options: Stripe.CustomerCreateParams ): Promise<Stripe.Response<Stripe.Customer>> {
1082
1082
const customer = await manageCustomer.updateStripeCustomer(this, options)
1083
1083
1084
1084
return customer
@@ -1116,7 +1116,7 @@ export async function generateModelString(
1116
1116
return await this.retrieveStripeUser()
1117
1117
}
1118
1118
1119
- async createOrUpdateStripeUser(options: Stripe.CustomerCreateParams | Stripe.CustomerUpdateParams ): Promise<Stripe.Response<Stripe.Customer>> {
1119
+ async createOrUpdateStripeUser(options: Stripe.CustomerCreateParams): Promise<Stripe.Response<Stripe.Customer>> {
1120
1120
const customer = await manageCustomer.createOrUpdateStripeUser(this, options)
1121
1121
return customer
1122
1122
}
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ export interface ManageCustomer {
7
7
stripeId : ( user : UserModel ) => string
8
8
hasStripeId : ( user : UserModel ) => boolean
9
9
createStripeCustomer : ( user : UserModel , options : Stripe . CustomerCreateParams ) => Promise < Stripe . Response < Stripe . Customer > >
10
- updateStripeCustomer : ( user : UserModel , options : Stripe . CustomerUpdateParams ) => Promise < Stripe . Response < Stripe . Customer > >
10
+ updateStripeCustomer : ( user : UserModel , options : Stripe . CustomerCreateParams ) => Promise < Stripe . Response < Stripe . Customer > >
11
11
createOrGetStripeUser : ( user : UserModel , options : Stripe . CustomerCreateParams ) => Promise < Stripe . Response < Stripe . Customer > >
12
12
retrieveStripeUser : ( user : UserModel ) => Promise < Stripe . Response < Stripe . Customer > >
13
- createOrUpdateStripeUser : ( user : UserModel , options : Stripe . CustomerCreateParams | Stripe . CustomerUpdateParams ) => Promise < Stripe . Response < Stripe . Customer > >
13
+ createOrUpdateStripeUser : ( user : UserModel , options : Stripe . CustomerCreateParams ) => Promise < Stripe . Response < Stripe . Customer > >
14
14
deleteStripeUser : ( user : UserModel ) => Promise < Stripe . Response < Stripe . DeletedCustomer > >
15
15
syncStripeCustomerDetails : ( user : UserModel , options : StripeCustomerOptions ) => Promise < Stripe . Response < Stripe . Customer > >
16
16
}
Original file line number Diff line number Diff line change 1
1
import process from 'node:process'
2
2
import Stripe from 'stripe'
3
3
4
- const apiKey = process . env . STRIPE_SECRET_KEY || 'sk_test_QKcCQL409PbuOgDTIyaxrt1f '
4
+ const apiKey = process . env . STRIPE_SECRET_KEY || ''
5
5
6
6
const client = new Stripe ( apiKey , {
7
7
apiVersion : '2024-09-30.acacia' ,
You can’t perform that action at this time.
0 commit comments