PPPStripeInvoiceItem

Class InvoiceItem.

Defined (1)

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

/includes/api/stripe-php/lib/InvoiceItem.php  
  1. class InvoiceItem extends ApiResource 
  2. /** 
  3. * @param string $id The ID of the invoice item to retrieve. 
  4. * @param array|string|null $opts 
  5. * @return InvoiceItem 
  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 InvoiceItems 
  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 InvoiceItem The created invoice item. 
  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 invoice item to update. 
  28. * @param array|null $params 
  29. * @param array|string|null $options 
  30. * @return InvoiceItem The updated invoice item. 
  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 InvoiceItem The saved invoice item. 
  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 InvoiceItem The deleted invoice item. 
  46. */ 
  47. public function delete($params = null, $opts = null) 
  48. return $this->_delete($params, $opts);