@@ -19,13 +19,13 @@ |
||
19 | 19 | public function getHeaders(): array |
20 | 20 | { |
21 | 21 | return [ |
22 | - 'Accept: application/vnd.bpost.shm-order-' . ApiVersions::V3_5 . '+XML', |
|
22 | + 'Accept: application/vnd.bpost.shm-order-'.ApiVersions::V3_5.'+XML', |
|
23 | 23 | ]; |
24 | 24 | } |
25 | 25 | |
26 | 26 | public function getUrl(): string |
27 | 27 | { |
28 | - return '/orders/' . $this->reference; |
|
28 | + return '/orders/'.$this->reference; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | public function isExpectXml(): bool |
@@ -45,13 +45,13 @@ |
||
45 | 45 | public function getHeaders(): array |
46 | 46 | { |
47 | 47 | return [ |
48 | - 'Content-Type: application/vnd.bpost.shm-orderUpdate-' . ApiVersions::V3 . '+XML', |
|
48 | + 'Content-Type: application/vnd.bpost.shm-orderUpdate-'.ApiVersions::V3.'+XML', |
|
49 | 49 | ]; |
50 | 50 | } |
51 | 51 | |
52 | 52 | public function getUrl(): string |
53 | 53 | { |
54 | - return '/orders/' . $this->reference; |
|
54 | + return '/orders/'.$this->reference; |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | public function isExpectXml(): bool |
@@ -41,14 +41,14 @@ |
||
41 | 41 | $media = $this->asPdf ? 'pdf' : 'image'; |
42 | 42 | |
43 | 43 | return [ |
44 | - 'Accept: application/vnd.bpost.shm-label-' . $media . '-' . ApiVersions::V3_4 . '+XML', |
|
45 | - 'Content-Type: application/vnd.bpost.shm-labelRequest-' . ApiVersions::V3 . '+XML', |
|
44 | + 'Accept: application/vnd.bpost.shm-label-'.$media.'-'.ApiVersions::V3_4.'+XML', |
|
45 | + 'Content-Type: application/vnd.bpost.shm-labelRequest-'.ApiVersions::V3.'+XML', |
|
46 | 46 | ]; |
47 | 47 | } |
48 | 48 | |
49 | 49 | public function getUrl(): string |
50 | 50 | { |
51 | - $url = '/labels/' . $this->labelFormat->getValue(); |
|
51 | + $url = '/labels/'.$this->labelFormat->getValue(); |
|
52 | 52 | |
53 | 53 | if ($this->withReturnLabels) { |
54 | 54 | $url .= '/withReturnLabels'; |
@@ -19,13 +19,13 @@ |
||
19 | 19 | public function getHeaders(): array |
20 | 20 | { |
21 | 21 | return [ |
22 | - 'Accept: application/vnd.bpost.shm-order-' . ApiVersions::V3_3 . '+XML', |
|
22 | + 'Accept: application/vnd.bpost.shm-order-'.ApiVersions::V3_3.'+XML', |
|
23 | 23 | ]; |
24 | 24 | } |
25 | 25 | |
26 | 26 | public function getUrl(): string |
27 | 27 | { |
28 | - return '/orders/' . $this->reference; |
|
28 | + return '/orders/'.$this->reference; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | public function isExpectXml(): bool |
@@ -30,7 +30,7 @@ |
||
30 | 30 | public function getHeaders(): array |
31 | 31 | { |
32 | 32 | return [ |
33 | - 'Content-Type: application/vnd.bpost.shm-order-' . ApiVersions::V5 . '+XML', |
|
33 | + 'Content-Type: application/vnd.bpost.shm-order-'.ApiVersions::V5.'+XML', |
|
34 | 34 | ]; |
35 | 35 | } |
36 | 36 |
@@ -46,15 +46,15 @@ |
||
46 | 46 | $media = $this->asPdf ? 'pdf' : 'image'; |
47 | 47 | |
48 | 48 | return [ |
49 | - 'Accept: application/vnd.bpost.shm-label-' . $media . '-' . ApiVersions::V3 . '+XML', |
|
50 | - 'Content-Type: application/vnd.bpost.shm-labelRequest-' . ApiVersions::V3 . '+XML', |
|
49 | + 'Accept: application/vnd.bpost.shm-label-'.$media.'-'.ApiVersions::V3.'+XML', |
|
50 | + 'Content-Type: application/vnd.bpost.shm-labelRequest-'.ApiVersions::V3.'+XML', |
|
51 | 51 | ]; |
52 | 52 | } |
53 | 53 | |
54 | 54 | |
55 | 55 | public function getUrl(): string |
56 | 56 | { |
57 | - $url = '/labels/' . $this->labelFormat->getValue(); |
|
57 | + $url = '/labels/'.$this->labelFormat->getValue(); |
|
58 | 58 | if ($this->withReturnLabels) { |
59 | 59 | $url .= '/withReturnLabels'; |
60 | 60 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | public function getHeaders(): array |
16 | 16 | { |
17 | 17 | return [ |
18 | - 'Accept: application/vnd.bpost.shm-productConfiguration-' . ApiVersions::V3_1 . '+XML', |
|
18 | + 'Accept: application/vnd.bpost.shm-productConfiguration-'.ApiVersions::V3_1.'+XML', |
|
19 | 19 | ]; |
20 | 20 | } |
21 | 21 |
@@ -30,8 +30,8 @@ |
||
30 | 30 | $media = $this->asPdf ? 'pdf' : 'image'; |
31 | 31 | |
32 | 32 | return [ |
33 | - 'Accept: application/vnd.bpost.shm-label-' . $media . '-' . ApiVersions::V3_4 . '+XML', |
|
34 | - 'Content-Type: application/vnd.bpost.shm-labelRequest-' . ApiVersions::V3 . '+XML', |
|
33 | + 'Accept: application/vnd.bpost.shm-label-'.$media.'-'.ApiVersions::V3_4.'+XML', |
|
34 | + 'Content-Type: application/vnd.bpost.shm-labelRequest-'.ApiVersions::V3.'+XML', |
|
35 | 35 | ]; |
36 | 36 | } |
37 | 37 |
@@ -30,8 +30,8 @@ |
||
30 | 30 | $acceptSuffix = $this->asPdf ? 'pdf' : 'image'; |
31 | 31 | |
32 | 32 | return [ |
33 | - 'Accept: application/vnd.bpost.shm-label-' . $acceptSuffix . '-' . ApiVersions::V3_3 . '+XML', |
|
34 | - 'Content-Type: application/vnd.bpost.shm-labelRequest-' . ApiVersions::V3_3 . '+XML', |
|
33 | + 'Accept: application/vnd.bpost.shm-label-'.$acceptSuffix.'-'.ApiVersions::V3_3.'+XML', |
|
34 | + 'Content-Type: application/vnd.bpost.shm-labelRequest-'.ApiVersions::V3_3.'+XML', |
|
35 | 35 | ]; |
36 | 36 | } |
37 | 37 |