mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
🤖 Merge PR #50135 stripe-v3 StripeOptions apiVersion by @PRR24
This commit is contained in:
1
types/stripe-v3/index.d.ts
vendored
1
types/stripe-v3/index.d.ts
vendored
@@ -143,6 +143,7 @@ declare namespace stripe {
|
||||
|
||||
interface StripeOptions {
|
||||
stripeAccount?: string;
|
||||
apiVersion?: string;
|
||||
betas?: string[];
|
||||
locale?: string;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ describe("Stripe object", () => {
|
||||
const stripeWithBetaOption: stripe.Stripe = Stripe('pk_test_TYooMQauvdEDq54NiTphI7jx', { betas: ['beta-feature'] }); // This looks deprecated
|
||||
const stripeWithLocale: stripe.Stripe = Stripe('pk_test_TYooMQauvdEDq54NiTphI7jx', { locale: 'zh' });
|
||||
const stripeWithAccount: stripe.Stripe = Stripe('pk_test_TYooMQauvdEDq54NiTphI7jx', { stripeAccount: 'acct_24BFMpJ1svR5A89k' });
|
||||
const stripeWithApiVersion: stripe.Stripe = Stripe('pk_test_TYooMQauvdEDq54NiTphI7jx', { apiVersion: '2020-08-27' });
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user