M2_Stripe_InvoiceItem

The Membership 2 M2 Stripe InvoiceItem class.

Defined (1)

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

/lib/stripe-php/lib/Stripe/InvoiceItem.php  
  1. class M2_Stripe_InvoiceItem extends M2_Stripe_ApiResource 
  2. /** 
  3. * @param string $id The ID of the invoice item to retrieve. 
  4. * @param string|null $apiKey 
  5. * @return Stripe_InvoiceItem 
  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 array An array of Stripe_InvoiceItems. 
  15. */ 
  16. public static function all($params=null, $apiKey=null) 
  17. $class = get_class(); 
  18. return self::_scopedAll($class, $params, $apiKey); 
  19.  
  20. /** 
  21. * @param array|null $params 
  22. * @param string|null $apiKey 
  23. * @return Stripe_InvoiceItem The created invoice item. 
  24. */ 
  25. public static function create($params=null, $apiKey=null) 
  26. $class = get_class(); 
  27. return self::_scopedCreate($class, $params, $apiKey); 
  28.  
  29. /** 
  30. * @return Stripe_InvoiceItem The saved invoice item. 
  31. */ 
  32. public function save() 
  33. $class = get_class(); 
  34. return self::_scopedSave($class); 
  35.  
  36. /** 
  37. * @return Stripe_InvoiceItem The deleted invoice item. 
  38. */ 
  39. public function delete($params=null) 
  40. $class = get_class(); 
  41. return self::_scopedDelete($class, $params);