stripe
Version:
Stripe API wrapper
29 lines • 1.49 kB
JavaScript
// File generated from our OpenAPI spec
import { StripeResource } from '../../../StripeResource.js';
export class OutboundPaymentResource extends StripeResource {
/**
* Updates a test mode created OutboundPayment with tracking details. The OutboundPayment 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_payments/${id}`, params, options);
}
/**
* Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
*/
fail(id, params, options) {
return this._makeRequest('POST', `/v1/test_helpers/treasury/outbound_payments/${id}/fail`, params, options);
}
/**
* Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
*/
post(id, params, options) {
return this._makeRequest('POST', `/v1/test_helpers/treasury/outbound_payments/${id}/post`, params, options);
}
/**
* Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
*/
returnOutboundPayment(id, params, options) {
return this._makeRequest('POST', `/v1/test_helpers/treasury/outbound_payments/${id}/return`, params, options);
}
}
//# sourceMappingURL=OutboundPayments.js.map