1 | <?php namespace Arcanedev\Stripe\Resources; |
||
30 | class InvoiceItem extends StripeResource implements InvoiceItemContract |
||
31 | { |
||
32 | /* ------------------------------------------------------------------------------------------------ |
||
33 | | Getters & Setters |
||
34 | | ------------------------------------------------------------------------------------------------ |
||
35 | */ |
||
36 | /** |
||
37 | * Get the endpoint URL for the given class. |
||
38 | * |
||
39 | * @param string $class |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | 30 | public static function classUrl($class = '') |
|
47 | |||
48 | /* ------------------------------------------------------------------------------------------------ |
||
49 | | Main Functions |
||
50 | | ------------------------------------------------------------------------------------------------ |
||
51 | */ |
||
52 | /** |
||
53 | * List all Invoice Items. |
||
54 | * @link https://stripe.com/docs/api/php#list_invoiceitems |
||
55 | * |
||
56 | * @param array $params |
||
57 | * @param array|string|null $options |
||
58 | * |
||
59 | * @return \Arcanedev\Stripe\Collection|array |
||
60 | */ |
||
61 | 4 | public static function all($params = [], $options = null) |
|
65 | |||
66 | /** |
||
67 | * Retrieve an Invoice Item. |
||
68 | * @link https://stripe.com/docs/api/php#retrieve_invoiceitem |
||
69 | * |
||
70 | * @param string $id |
||
71 | * @param array|string|null $options |
||
72 | * |
||
73 | * @return self |
||
74 | */ |
||
75 | 2 | public static function retrieve($id, $options = null) |
|
79 | |||
80 | /** |
||
81 | * Create an Invoice Item. |
||
82 | * @link https://stripe.com/docs/api/php#create_invoiceitem |
||
83 | * |
||
84 | * @param array $params |
||
85 | * @param array|string|null $options |
||
86 | * |
||
87 | * @return self|array |
||
88 | */ |
||
89 | 28 | public static function create($params = [], $options = null) |
|
93 | |||
94 | /** |
||
95 | * Update an Invoice Item. |
||
96 | * @link https://stripe.com/docs/api/php#update_invoiceitem |
||
97 | * |
||
98 | * @param string $id |
||
99 | * @param array|null $params |
||
100 | * @param array|string|null $options |
||
101 | * |
||
102 | * @return self |
||
103 | */ |
||
104 | 2 | public static function update($id, $params = [], $options = null) |
|
108 | |||
109 | /** |
||
110 | * Update/Save an Invoice Item. |
||
111 | * @link https://stripe.com/docs/api/php#update_invoiceitem |
||
112 | * |
||
113 | * @param array|string|null $options |
||
114 | * |
||
115 | * @return self |
||
116 | */ |
||
117 | 2 | public function save($options = null) |
|
121 | |||
122 | /** |
||
123 | * Delete an Invoice Item |
||
124 | * @link https://stripe.com/docs/api/php#delete_invoiceitem |
||
125 | * |
||
126 | * @param array $params |
||
127 | * @param array|string|null $options |
||
128 | * |
||
129 | * @return self |
||
130 | */ |
||
131 | 2 | public function delete($params = [], $options = null) |
|
135 | } |
||
136 |