File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1099,14 +1099,14 @@ export async function generateModelString(
1099
1099
return customer
1100
1100
}
1101
1101
1102
- async defaultPaymentMethod(): Promise<Stripe.PaymentMethod | {} > {
1102
+ async defaultPaymentMethod(): Promise<Stripe.PaymentMethod | object > {
1103
1103
const customer = await this.retrieveStripeUser()
1104
1104
1105
1105
const defaultPaymentMethodId = customer?.invoice_settings?.default_payment_method as string
1106
1106
1107
1107
if (!defaultPaymentMethodId) {
1108
1108
return {}
1109
- }
1109
+ }
1110
1110
1111
1111
const defaultPaymentMethod = await managePaymentMethod.retrievePaymentMethod(this, defaultPaymentMethodId)
1112
1112
Original file line number Diff line number Diff line change @@ -690,7 +690,7 @@ export class UserModel {
690
690
return customer
691
691
}
692
692
693
- async defaultPaymentMethod ( ) : Promise < Stripe . PaymentMethod | { } > {
693
+ async defaultPaymentMethod ( ) : Promise < Stripe . PaymentMethod | object > {
694
694
const customer = await this . retrieveStripeUser ( )
695
695
696
696
const defaultPaymentMethodId = customer ?. invoice_settings ?. default_payment_method as string
You can’t perform that action at this time.
0 commit comments