mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
added missing paymentIntents.cancel(…) signatures
This commit is contained in:
Vendored
+9
@@ -7337,6 +7337,11 @@ declare namespace Stripe {
|
||||
options: HeaderOptions,
|
||||
response?: IResponseFn<paymentIntents.IPaymentIntent>,
|
||||
): Promise<paymentIntents.IPaymentIntent>;
|
||||
cancel(
|
||||
paymentIntentId: string,
|
||||
options: HeaderOptions,
|
||||
response?: IResponseFn<paymentIntents.IPaymentIntent>,
|
||||
): Promise<paymentIntents.IPaymentIntent>;
|
||||
cancel(
|
||||
paymentIntentId: string,
|
||||
data: {
|
||||
@@ -7344,6 +7349,10 @@ declare namespace Stripe {
|
||||
},
|
||||
response?: IResponseFn<paymentIntents.IPaymentIntent>,
|
||||
): Promise<paymentIntents.IPaymentIntent>;
|
||||
cancel(
|
||||
paymentIntentId: string,
|
||||
response?: IResponseFn<paymentIntents.IPaymentIntent>,
|
||||
): Promise<paymentIntents.IPaymentIntent>;
|
||||
}
|
||||
|
||||
class Payouts extends StripeResource {
|
||||
|
||||
@@ -1057,6 +1057,8 @@ stripe.paymentIntents.confirm("pi_Aabcxyz01aDfoo", {}).then((intent) => {});
|
||||
stripe.paymentIntents.capture("pi_Aabcxyz01aDfoo", {}, (err, intent) => {});
|
||||
stripe.paymentIntents.capture("pi_Aabcxyz01aDfoo", {}).then((intent) => {});
|
||||
|
||||
stripe.paymentIntents.cancel("pi_Aabcxyz01aDfoo", (err, intent) => {});
|
||||
stripe.paymentIntents.cancel("pi_Aabcxyz01aDfoo").then((intent) => {});
|
||||
stripe.paymentIntents.cancel("pi_Aabcxyz01aDfoo", {}, (err, intent) => {});
|
||||
stripe.paymentIntents.cancel("pi_Aabcxyz01aDfoo", {}).then((intent) => {});
|
||||
stripe.paymentIntents.cancel("pi_Aabcxyz01aDfoo", { cancellation_reason: 'duplicate' }, (err, intent) => {});
|
||||
|
||||
Reference in New Issue
Block a user