| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | public function getShippingMethods( |
||
| 49 | $distributor = null, |
||
| 50 | $code = null, |
||
| 51 | $type = null |
||
| 52 | ) { |
||
| 53 | $data = [ |
||
| 54 | 'from' => $distributor, |
||
| 55 | 'to' => $code, |
||
| 56 | 'page' => $type |
||
| 57 | ]; |
||
| 58 | |||
| 59 | $guzzleResponse = $this->client->get('1/shippingmethods', [RequestOptions::QUERY => $data]); |
||
| 60 | |||
| 61 | return $this->deserializeResponse($guzzleResponse, 'array<'.ShippingResponse::class.'>'); |
||
| 62 | } |
||
| 65 |