added missing paymentIntents.cancel(…) signatures

This commit is contained in:
Jonas Keisel
2019-03-07 11:25:14 +01:00
parent aa73bbb298
commit d6748925aa
2 changed files with 11 additions and 0 deletions
+9
View File
@@ -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 {
+2
View File
@@ -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) => {});