add source_type param to stripe.transfers.create (#38896)

This commit is contained in:
Marty Alcala
2019-10-08 14:24:21 -07:00
committed by Armando Aguirre
parent 0691e96718
commit dc4c32d9e2
2 changed files with 19 additions and 0 deletions
+6
View File
@@ -7424,6 +7424,12 @@ declare namespace Stripe {
*/
source_transaction?: string;
/**
* The source balance to use for this transfer. One of bank_account
* or card. For most users, this will default to card.
*/
source_type?: SourceTypes;
/**
* A string that identifies this transaction as part of a group.
* See the Connect documentation for details.
+13
View File
@@ -995,6 +995,19 @@ stripe.customers.listTaxIds('cus_FhdWgak8aeNfht', (err, taxIds) => {
//#region Transfers tests
// ##################################################################################
stripe.transfers.create(
{ amount: 100, currency: 'USD', destination: 'acct_17wV8KBoqMA9o2xk', source_type: 'bank_account' },
(err, reversal) => {
// asynchronously called
},
);
stripe.transfers
.create({ amount: 100, currency: 'USD', destination: 'acct_17wV8KBoqMA9o2xk', source_type: 'bank_account' })
.then(reversal => {
// asynchronously called
});
//#endregion
//#region Transfers Reversals tests