failed
* status. The OutboundTransfer must already be in the processing
* state.
*
* @param string $id
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Treasury\OutboundTransfer
*/
public function fail($id, $params = null, $opts = null)
{
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_transfers/%s/fail', $id), $params, $opts);
}
/**
* Transitions a test mode created OutboundTransfer to the posted
* status. The OutboundTransfer must already be in the processing
* state.
*
* @param string $id
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Treasury\OutboundTransfer
*/
public function post($id, $params = null, $opts = null)
{
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_transfers/%s/post', $id), $params, $opts);
}
/**
* Transitions a test mode created OutboundTransfer to the returned
* status. The OutboundTransfer must already be in the processing
* state.
*
* @param string $id
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Treasury\OutboundTransfer
*/
public function returnOutboundTransfer($id, $params = null, $opts = null)
{
return $this->request('post', $this->buildPath('/v1/test_helpers/treasury/outbound_transfers/%s/return', $id), $params, $opts);
}
}