ReceivedDebitService.php 947 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe\Service\TestHelpers\Treasury;
  4. /**
  5. * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
  6. * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
  7. */
  8. class ReceivedDebitService extends \Stripe\Service\AbstractService
  9. {
  10. /**
  11. * Use this endpoint to simulate a test mode ReceivedDebit initiated by a third
  12. * party. In live mode, you can’t directly create ReceivedDebits initiated by third
  13. * parties.
  14. *
  15. * @param null|array $params
  16. * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
  17. *
  18. * @throws \Stripe\Exception\ApiErrorException if the request fails
  19. *
  20. * @return \Stripe\Treasury\ReceivedDebit
  21. */
  22. public function create($params = null, $opts = null)
  23. {
  24. return $this->request('post', '/v1/test_helpers/treasury/received_debits', $params, $opts);
  25. }
  26. }