PPPStripeTransfer

Class Transfer.

Defined (1)

The class is defined in the following location(s).

/includes/api/stripe-php/lib/Transfer.php  
  1. class Transfer extends ApiResource 
  2. /** 
  3. * @param string $id The ID of the transfer to retrieve. 
  4. * @param array|string|null $opts 
  5. * @return Transfer 
  6. */ 
  7. public static function retrieve($id, $opts = null) 
  8. return self::_retrieve($id, $opts); 
  9.  
  10. /** 
  11. * @param array|null $params 
  12. * @param array|string|null $opts 
  13. * @return Collection of Transfers 
  14. */ 
  15. public static function all($params = null, $opts = null) 
  16. return self::_all($params, $opts); 
  17.  
  18. /** 
  19. * @param array|null $params 
  20. * @param array|string|null $opts 
  21. * @return Transfer The created transfer. 
  22. */ 
  23. public static function create($params = null, $opts = null) 
  24. return self::_create($params, $opts); 
  25.  
  26. /** 
  27. * @param string $id The ID of the transfer to update. 
  28. * @param array|null $params 
  29. * @param array|string|null $options 
  30. * @return Transfer The updated transfer. 
  31. */ 
  32. public static function update($id, $params = null, $options = null) 
  33. return self::_update($id, $params, $options); 
  34.  
  35. /** 
  36. * @return TransferReversal The created transfer reversal. 
  37. */ 
  38. public function reverse($params = null, $opts = null) 
  39. $url = $this->instanceUrl() . '/reversals'; 
  40. list($response, $opts) = $this->_request('post', $url, $params, $opts); 
  41. $this->refreshFrom($response, $opts); 
  42. return $this; 
  43.  
  44. /** 
  45. * @return Transfer The canceled transfer. 
  46. */ 
  47. public function cancel() 
  48. $url = $this->instanceUrl() . '/cancel'; 
  49. list($response, $opts) = $this->_request('post', $url); 
  50. $this->refreshFrom($response, $opts); 
  51. return $this; 
  52.  
  53. /** 
  54. * @param array|string|null $opts 
  55. * @return Transfer The saved transfer. 
  56. */ 
  57. public function save($opts = null) 
  58. return $this->_save($opts);