PPPStripePlan

Class Plan.

Defined (1)

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

/includes/api/stripe-php/lib/Plan.php  
  1. class Plan extends ApiResource 
  2. /** 
  3. * @param string $id The ID of the plan to retrieve. 
  4. * @param array|string|null $opts 
  5. * @return Plan 
  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 Plan The created plan. 
  14. */ 
  15. public static function create($params = null, $opts = null) 
  16. return self::_create($params, $opts); 
  17.  
  18. /** 
  19. * @param string $id The ID of the plan to update. 
  20. * @param array|null $params 
  21. * @param array|string|null $options 
  22. * @return Plan The updated plan. 
  23. */ 
  24. public static function update($id, $params = null, $options = null) 
  25. return self::_update($id, $params, $options); 
  26.  
  27. /** 
  28. * @param array|null $params 
  29. * @param array|string|null $opts 
  30. * @return Plan The deleted plan. 
  31. */ 
  32. public function delete($params = null, $opts = null) 
  33. return $this->_delete($params, $opts); 
  34.  
  35. /** 
  36. * @param array|string|null $opts 
  37. * @return Plan The saved plan. 
  38. */ 
  39. public function save($opts = null) 
  40. return $this->_save($opts); 
  41.  
  42. /** 
  43. * @param array|null $params 
  44. * @param array|string|null $opts 
  45. * @return Collection of Plans 
  46. */ 
  47. public static function all($params = null, $opts = null) 
  48. return self::_all($params, $opts);