PPPStripeSubscriptionItem

Class SubscriptionItem.

Defined (1)

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

/includes/api/stripe-php/lib/SubscriptionItem.php  
  1. class SubscriptionItem extends ApiResource 
  2. /** 
  3. * This is a special case because the subscription items endpoint has an 
  4. * underscore in it. The parent `className` function strips underscores. 
  5. * @return string The name of the class. 
  6. */ 
  7. public static function className() 
  8. return 'subscription_item'; 
  9.  
  10. /** 
  11. * @param string $id The ID of the subscription item to retrieve. 
  12. * @param array|string|null $opts 
  13. * @return SubscriptionItem 
  14. */ 
  15. public static function retrieve($id, $opts = null) 
  16. return self::_retrieve($id, $opts); 
  17.  
  18. /** 
  19. * @param array|null $params 
  20. * @param array|string|null $opts 
  21. * @return Collection of SubscriptionItems 
  22. */ 
  23. public static function all($params = null, $opts = null) 
  24. return self::_all($params, $opts); 
  25.  
  26. /** 
  27. * @param array|null $params 
  28. * @param array|string|null $opts 
  29. * @return SubscriptionItem The created subscription item. 
  30. */ 
  31. public static function create($params = null, $opts = null) 
  32. return self::_create($params, $opts); 
  33.  
  34. /** 
  35. * @param string $id The ID of the subscription item to update. 
  36. * @param array|null $params 
  37. * @param array|string|null $options 
  38. * @return SubscriptionItem The updated subscription item. 
  39. */ 
  40. public static function update($id, $params = null, $options = null) 
  41. return self::_update($id, $params, $options); 
  42.  
  43. /** 
  44. * @param array|string|null $opts 
  45. * @return SubscriptionItem The saved subscription item. 
  46. */ 
  47. public function save($opts = null) 
  48. return $this->_save($opts); 
  49.  
  50. /** 
  51. * @param array|null $params 
  52. * @param array|string|null $opts 
  53. * @return SubscriptionItem The deleted subscription item. 
  54. */ 
  55. public function delete($params = null, $opts = null) 
  56. return $this->_delete($params, $opts);