stripe
Version:
Stripe API wrapper
31 lines • 1.07 kB
JavaScript
// File generated from our OpenAPI spec
import { StripeResource } from '../../StripeResource.js';
export class InboundTransferResource extends StripeResource {
/**
* Returns a list of InboundTransfers sent from the specified FinancialAccount.
*/
list(params, options) {
return this._makeRequest('GET', '/v1/treasury/inbound_transfers', params, options, {
methodType: 'list',
});
}
/**
* Creates an InboundTransfer.
*/
create(params, options) {
return this._makeRequest('POST', '/v1/treasury/inbound_transfers', params, options);
}
/**
* Retrieves the details of an existing InboundTransfer.
*/
retrieve(id, params, options) {
return this._makeRequest('GET', `/v1/treasury/inbound_transfers/${id}`, params, options);
}
/**
* Cancels an InboundTransfer.
*/
cancel(id, params, options) {
return this._makeRequest('POST', `/v1/treasury/inbound_transfers/${id}/cancel`, params, options);
}
}
//# sourceMappingURL=InboundTransfers.js.map