1 | <?php namespace Arcanedev\Stripe\Resources; |
||
31 | class Product extends StripeResource implements ProductContract |
||
32 | { |
||
33 | /* ------------------------------------------------------------------------------------------------ |
||
34 | | Main Functions |
||
35 | | ------------------------------------------------------------------------------------------------ |
||
36 | */ |
||
37 | /** |
||
38 | * List all Products. |
||
39 | * @link https://stripe.com/docs/api/php#list_products |
||
40 | * |
||
41 | * @param array|null $params |
||
42 | * @param array|string|null $options |
||
43 | * |
||
44 | * @return \Arcanedev\Stripe\Collection|array |
||
45 | */ |
||
46 | 2 | public static function all($params = [], $options = null) |
|
50 | |||
51 | /** |
||
52 | * Retrieve a product. |
||
53 | * @link https://stripe.com/docs/api/php#retrieve_product |
||
54 | * |
||
55 | * @param string $id |
||
56 | * @param array|string|null $options |
||
57 | * |
||
58 | * @return self |
||
59 | */ |
||
60 | 4 | public static function retrieve($id, $options = null) |
|
64 | |||
65 | /** |
||
66 | * Create a Product. |
||
67 | * @link https://stripe.com/docs/api/php#create_product |
||
68 | * |
||
69 | * @param array|null $params |
||
70 | * @param array|string|null $options |
||
71 | * |
||
72 | * @return self |
||
73 | */ |
||
74 | 34 | public static function create($params = [], $options = null) |
|
78 | |||
79 | /** |
||
80 | * Update a Product. |
||
81 | * @link https://stripe.com/docs/api/php#update_product |
||
82 | * |
||
83 | * @param string $id |
||
84 | * @param array|null $params |
||
85 | * @param array|string|null $options |
||
86 | * |
||
87 | * @return self |
||
88 | */ |
||
89 | 2 | public static function update($id, $params = [], $options = null) |
|
93 | |||
94 | /** |
||
95 | * Update/Save a Product. |
||
96 | * @link https://stripe.com/docs/api/php#update_product |
||
97 | * |
||
98 | * @param array|string|null $options |
||
99 | * |
||
100 | * @return self |
||
101 | */ |
||
102 | 2 | public function save($options = null) |
|
106 | |||
107 | /** |
||
108 | * Delete a Product. |
||
109 | * @link https://stripe.com/docs/api/php#delete_product |
||
110 | * |
||
111 | * @param array|null $params |
||
112 | * @param array|string|null $options |
||
113 | * |
||
114 | * @return self |
||
115 | */ |
||
116 | 2 | public function delete($params = [], $options = null) |
|
120 | } |
||
121 |