Initial project import
This commit is contained in:
31
node_modules/stripe/esm/resources/Treasury/OutboundPayments.js
generated
vendored
Normal file
31
node_modules/stripe/esm/resources/Treasury/OutboundPayments.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class OutboundPaymentResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of OutboundPayments sent from the specified FinancialAccount.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/treasury/outbound_payments', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates an OutboundPayment.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/treasury/outbound_payments', params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment list.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/treasury/outbound_payments/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Cancel an OutboundPayment.
|
||||
*/
|
||||
cancel(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/treasury/outbound_payments/${encodeURIComponent(id)}/cancel`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=OutboundPayments.js.map
|
||||
Reference in New Issue
Block a user