| Total Complexity | 9 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class OrderResource extends ApiResource |
||
| 8 | { |
||
| 9 | public function update(array $data): ApiResource |
||
| 10 | { |
||
| 11 | return $this->shopify->updateOrder($this->id, $data); |
||
|
|
|||
| 12 | } |
||
| 13 | |||
| 14 | public function delete(): void |
||
| 15 | { |
||
| 16 | $this->shopify->deleteOrder($this->id); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function cancel(): ApiResource |
||
| 20 | { |
||
| 21 | return $this->shopify->cancelOrder($this->id); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function close(): ApiResource |
||
| 25 | { |
||
| 26 | return $this->shopify->closeOrder($this->id); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function open(): ApiResource |
||
| 30 | { |
||
| 31 | return $this->shopify->openOrder($this->id); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getFulfillments(array $params = []): Collection |
||
| 35 | { |
||
| 36 | return $this->shopify->getOrderFulfillments($this->id, $params); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getRefunds(array $params = []): Collection |
||
| 40 | { |
||
| 41 | return $this->shopify->getOrderRefunds($this->id, $params); |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getRisks(array $params = []): Collection |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getTransactions(array $params = []): Collection |
||
| 50 | { |
||
| 51 | return $this->shopify->getOrderTransactions($this->id, $params); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |