PPPStripeRecipient

Class Recipient.

Defined (1)

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

/includes/api/stripe-php/lib/Recipient.php  
  1. class Recipient extends ApiResource 
  2. /** 
  3. * @param string $id The ID of the recipient to retrieve. 
  4. * @param array|string|null $opts 
  5. * @return Recipient 
  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 Recipients 
  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 Recipient The created recipient. 
  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 recipient to update. 
  28. * @param array|null $params 
  29. * @param array|string|null $options 
  30. * @return Recipient The updated recipient. 
  31. */ 
  32. public static function update($id, $params = null, $options = null) 
  33. return self::_update($id, $params, $options); 
  34.  
  35. /** 
  36. * @param array|string|null $opts 
  37. * @return Recipient The saved recipient. 
  38. */ 
  39. public function save($opts = null) 
  40. return $this->_save($opts); 
  41.  
  42. /** 
  43. * @param array|null $params 
  44. * @return Recipient The deleted recipient. 
  45. */ 
  46. public function delete($params = null, $opts = null) 
  47. return $this->_delete($params, $opts); 
  48.  
  49.  
  50. /** 
  51. * @param array|null $params 
  52. * @return Collection of the Recipient's Transfers 
  53. */ 
  54. public function transfers($params = null) 
  55. if ($params === null) { 
  56. $params = array(); 
  57. $params['recipient'] = $this->id; 
  58. $transfers = Transfer::all($params, $this->_opts); 
  59. return $transfers;