RefundService.php 841 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe\Service\TestHelpers;
  4. /**
  5. * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
  6. * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
  7. */
  8. class RefundService extends \Stripe\Service\AbstractService
  9. {
  10. /**
  11. * Expire a refund with a status of <code>requires_action</code>.
  12. *
  13. * @param string $id
  14. * @param null|array $params
  15. * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
  16. *
  17. * @throws \Stripe\Exception\ApiErrorException if the request fails
  18. *
  19. * @return \Stripe\Refund
  20. */
  21. public function expire($id, $params = null, $opts = null)
  22. {
  23. return $this->request('post', $this->buildPath('/v1/test_helpers/refunds/%s/expire', $id), $params, $opts);
  24. }
  25. }