MandateService.php 604 B

123456789101112131415161718192021222324
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe\Service;
  4. class MandateService extends \Stripe\Service\AbstractService
  5. {
  6. /**
  7. * Retrieves a Mandate object.
  8. *
  9. * @param string $id
  10. * @param null|array $params
  11. * @param null|array|\Stripe\Util\RequestOptions $opts
  12. *
  13. * @throws \Stripe\Exception\ApiErrorException if the request fails
  14. *
  15. * @return \Stripe\Mandate
  16. */
  17. public function retrieve($id, $params = null, $opts = null)
  18. {
  19. return $this->request('get', $this->buildPath('/v1/mandates/%s', $id), $params, $opts);
  20. }
  21. }