Refund.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace Stripe;
  3. class Refund extends ApiResource
  4. {
  5. /**
  6. * @param string $id The ID of the refund to retrieve.
  7. * @param array|string|null $options
  8. *
  9. * @return Refund
  10. */
  11. public static function retrieve($id, $options = null)
  12. {
  13. return self::_retrieve($id, $options);
  14. }
  15. /**
  16. * @param array|null $params
  17. * @param array|string|null $options
  18. *
  19. * @return Collection of Refunds
  20. */
  21. public static function all($params = null, $options = null)
  22. {
  23. return self::_all($params, $options);
  24. }
  25. /**
  26. * @param array|null $params
  27. * @param array|string|null $options
  28. *
  29. * @return Refund The created refund.
  30. */
  31. public static function create($params = null, $options = null)
  32. {
  33. return self::_create($params, $options);
  34. }
  35. /**
  36. * @param array|string|null $opts
  37. *
  38. * @return Refund The saved refund.
  39. */
  40. public function save($opts = null)
  41. {
  42. return $this->_save($opts);
  43. }
  44. }