1 | <?php |
||
12 | abstract class AbstractRequest extends BaseAbstractRequest |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | 15 | */ |
|
17 | protected $liveEndpoint = 'https://api.zipmoney.com.au/merchant/v1'; |
||
18 | 15 | /** |
|
19 | * @var string |
||
20 | */ |
||
21 | 60 | protected $testEndpoint = 'https://api.sandbox.zipmoney.com.au/merchant/v1'; |
|
22 | |||
23 | 60 | /** |
|
24 | * @return string |
||
25 | */ |
||
26 | 45 | public function getKey() |
|
30 | |||
31 | 60 | /** |
|
32 | * @param $value |
||
33 | 60 | * @return string |
|
34 | */ |
||
35 | public function setKey($value) |
||
39 | 30 | ||
40 | 30 | /** |
|
41 | 30 | * @return string |
|
42 | 10 | */ |
|
43 | public function getApiKey() |
||
47 | 30 | ||
48 | /** |
||
49 | 30 | * @param $value |
|
50 | 30 | * @return string |
|
51 | 30 | */ |
|
52 | public function setApiKey($value) |
||
56 | |||
57 | 30 | /** |
|
58 | * Get Idempotency Key |
||
59 | 30 | * @return string Idempotency Key |
|
60 | */ |
||
61 | 30 | public function getIdempotencyKey() |
|
65 | |||
66 | /** |
||
67 | * Set Idempotency Key |
||
68 | * @param string $value Idempotency Key |
||
69 | */ |
||
70 | public function setIdempotencyKey($value) |
||
74 | |||
75 | /** |
||
76 | 30 | * @param $value |
|
77 | * @return string |
||
78 | 30 | */ |
|
79 | public function setSSLCertificatePath($value) |
||
83 | |||
84 | /** |
||
85 | * @return string |
||
86 | */ |
||
87 | public function getSSLCertificatePath() |
||
91 | |||
92 | /** |
||
93 | * @return array |
||
94 | */ |
||
95 | public function getHeaders() |
||
104 | |||
105 | /** |
||
106 | * @param $data |
||
107 | * @return Response |
||
108 | */ |
||
109 | public function sendData($data) |
||
130 | |||
131 | public function getHttpMethod() |
||
135 | |||
136 | protected function getBaseData() |
||
140 | |||
141 | /** |
||
142 | * @return string |
||
143 | */ |
||
144 | protected function getEndpoint() |
||
148 | |||
149 | /** |
||
150 | * @param $data |
||
151 | * @param array $headers |
||
152 | * @param $status |
||
153 | * @return Response |
||
154 | */ |
||
155 | protected function createResponse($data, $headers = [], $status = 404) |
||
159 | } |
||
160 |
This check looks for function calls that miss required arguments.