Initial project import
This commit is contained in:
29
node_modules/stripe/esm/resources/TestHelpers/Treasury/OutboundTransfers.js
generated
vendored
Normal file
29
node_modules/stripe/esm/resources/TestHelpers/Treasury/OutboundTransfers.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../../StripeResource.js';
|
||||
export class OutboundTransferResource extends StripeResource {
|
||||
/**
|
||||
* Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/test_helpers/treasury/outbound_transfers/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
|
||||
*/
|
||||
fail(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/test_helpers/treasury/outbound_transfers/${encodeURIComponent(id)}/fail`, params, options);
|
||||
}
|
||||
/**
|
||||
* Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
|
||||
*/
|
||||
post(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/test_helpers/treasury/outbound_transfers/${encodeURIComponent(id)}/post`, params, options);
|
||||
}
|
||||
/**
|
||||
* Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
|
||||
*/
|
||||
returnOutboundTransfer(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/test_helpers/treasury/outbound_transfers/${encodeURIComponent(id)}/return`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=OutboundTransfers.js.map
|
||||
Reference in New Issue
Block a user