Skip to content

Commit

Permalink
Adding missing TermOption types (#474)
Browse files Browse the repository at this point in the history
valid types added to test
  • Loading branch information
brendanm-stripe authored Jul 28, 2023
1 parent 09b88a4 commit f9ff3d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/types/src/valid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ const paymentElement: StripePaymentElement = elements.create('payment', {
bancontact: 'never',
auBecsDebit: 'never',
usBankAccount: 'never',
cashapp: 'auto',
applePay: 'always',
googlePay: 'never',
paypal: 'never',
},
business: {
name: '',
Expand Down
6 changes: 5 additions & 1 deletion types/stripe-js/elements/payment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,16 @@ export interface FieldsOption {
export type TermOption = 'auto' | 'always' | 'never';

export interface TermsOption {
applePay?: TermOption;
auBecsDebit?: TermOption;
bancontact?: TermOption;
card?: TermOption;
cashapp?: TermOption;
googlePay?: TermOption;
ideal?: TermOption;
paypal?: TermOption;
sepaDebit?: TermOption;
sofort?: TermOption;
auBecsDebit?: TermOption;
usBankAccount?: TermOption;
}

Expand Down

0 comments on commit f9ff3d9

Please sign in to comment.