Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmichael123 committed Nov 14, 2024
1 parent b8a9915 commit b2fd308
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions storage/framework/core/orm/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ export async function generateModelString(
return customer
}
async updateStripeUser(options: Stripe.CustomerUpdateParams): Promise<Stripe.Response<Stripe.Customer>> {
async updateStripeUser(options: Stripe.CustomerCreateParams): Promise<Stripe.Response<Stripe.Customer>> {
const customer = await manageCustomer.updateStripeCustomer(this, options)
return customer
Expand Down Expand Up @@ -1116,7 +1116,7 @@ export async function generateModelString(
return await this.retrieveStripeUser()
}
async createOrUpdateStripeUser(options: Stripe.CustomerCreateParams | Stripe.CustomerUpdateParams): Promise<Stripe.Response<Stripe.Customer>> {
async createOrUpdateStripeUser(options: Stripe.CustomerCreateParams): Promise<Stripe.Response<Stripe.Customer>> {
const customer = await manageCustomer.createOrUpdateStripeUser(this, options)
return customer
}
Expand Down
4 changes: 2 additions & 2 deletions storage/framework/core/payments/src/billable/Customer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ export interface ManageCustomer {
stripeId: (user: UserModel) => string
hasStripeId: (user: UserModel) => boolean
createStripeCustomer: (user: UserModel, options: Stripe.CustomerCreateParams) => Promise<Stripe.Response<Stripe.Customer>>
updateStripeCustomer: (user: UserModel, options: Stripe.CustomerUpdateParams) => Promise<Stripe.Response<Stripe.Customer>>
updateStripeCustomer: (user: UserModel, options: Stripe.CustomerCreateParams) => Promise<Stripe.Response<Stripe.Customer>>
createOrGetStripeUser: (user: UserModel, options: Stripe.CustomerCreateParams) => Promise<Stripe.Response<Stripe.Customer>>
retrieveStripeUser: (user: UserModel) => Promise<Stripe.Response<Stripe.Customer>>
createOrUpdateStripeUser: (user: UserModel, options: Stripe.CustomerCreateParams | Stripe.CustomerUpdateParams) => Promise<Stripe.Response<Stripe.Customer>>
createOrUpdateStripeUser: (user: UserModel, options: Stripe.CustomerCreateParams) => Promise<Stripe.Response<Stripe.Customer>>
deleteStripeUser: (user: UserModel) => Promise<Stripe.Response<Stripe.DeletedCustomer>>
syncStripeCustomerDetails: (user: UserModel, options: StripeCustomerOptions) => Promise<Stripe.Response<Stripe.Customer>>
}
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/core/payments/src/drivers/stripe.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import process from 'node:process'
import Stripe from 'stripe'

const apiKey = process.env.STRIPE_SECRET_KEY || 'sk_test_QKcCQL409PbuOgDTIyaxrt1f'
const apiKey = process.env.STRIPE_SECRET_KEY || ''

const client = new Stripe(apiKey, {
apiVersion: '2024-09-30.acacia',
Expand Down

0 comments on commit b2fd308

Please sign in to comment.