mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
add source_type param to stripe.transfers.create (#38896)
This commit is contained in:
committed by
Armando Aguirre
parent
0691e96718
commit
dc4c32d9e2
Vendored
+6
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user