M2_Stripe_Plan

The Membership 2 M2 Stripe Plan class.

Defined (1)

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

/lib/stripe-php/lib/Stripe/Plan.php  
  1. class M2_Stripe_Plan extends M2_Stripe_ApiResource 
  2. /** 
  3. * @param string $id The ID of the plan to retrieve. 
  4. * @param string|null $apiKey 
  5. * @return Stripe_Plan 
  6. */ 
  7. public static function retrieve($id, $apiKey=null) 
  8. $class = get_class(); 
  9. return self::_scopedRetrieve($class, $id, $apiKey); 
  10.  
  11. /** 
  12. * @param array|null $params 
  13. * @param string|null $apiKey 
  14. * @return Stripe_Plan The created plan. 
  15. */ 
  16. public static function create($params=null, $apiKey=null) 
  17. $class = get_class(); 
  18. return self::_scopedCreate($class, $params, $apiKey); 
  19.  
  20. /** 
  21. * @param array|null $params 
  22. * @return Stripe_Plan The deleted plan. 
  23. */ 
  24. public function delete($params=null) 
  25. $class = get_class(); 
  26. return self::_scopedDelete($class, $params); 
  27.  
  28. /** 
  29. * @return Stripe_Plan The saved plan. 
  30. */ 
  31. public function save() 
  32. $class = get_class(); 
  33. return self::_scopedSave($class); 
  34.  
  35. /** 
  36. * @param array|null $params 
  37. * @param string|null $apiKey 
  38. * @return array An array of Stripe_Plans. 
  39. */ 
  40. public static function all($params=null, $apiKey=null) 
  41. $class = get_class(); 
  42. return self::_scopedAll($class, $params, $apiKey);