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