From 9226bb28bb5c8bf6e698a40f51ac1646d9c82c8d Mon Sep 17 00:00:00 2001 From: axelfran Date: Wed, 30 Oct 2019 19:16:41 +0100 Subject: [PATCH] Add transfer_group to type definitions for Stripe update charge. Documentation: https://stripe.com/docs/api/charges/update (#39976) --- types/stripe/index.d.ts | 8 ++++++++ types/stripe/stripe-tests.ts | 1 + 2 files changed, 9 insertions(+) diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index 76dd88dd69..729e5bf658 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -2083,6 +2083,14 @@ declare namespace Stripe { * physical goods. */ shipping?: IShippingInformation; + + /** + * A string that identifies this transaction as part of a group. + * See the Connect documentation for details. + * + * Connect only. + */ + transfer_group?: string; } interface IChargeListOptions extends IListOptionsCreated { diff --git a/types/stripe/stripe-tests.ts b/types/stripe/stripe-tests.ts index ac9369b189..26059e3ed4 100644 --- a/types/stripe/stripe-tests.ts +++ b/types/stripe/stripe-tests.ts @@ -174,6 +174,7 @@ stripe.charges.update( 'ch_15fvyXEe31JkLCeQOo0SwFk9', { description: 'Charge for test@example.com', + transfer_group: "Transfer group for this charge", }, (err, charge) => { // asynchronously called