1 | <?php |
||
19 | abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest |
||
20 | { |
||
21 | /** |
||
22 | * AbstractRequest constructor. |
||
23 | * |
||
24 | * @param \SoapClient $httpClient |
||
25 | * @param HttpRequest $httpRequest |
||
26 | */ |
||
27 | 33 | public function __construct(\SoapClient $httpClient, HttpRequest $httpRequest) |
|
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | 12 | public function getMerchantId() |
|
41 | |||
42 | /** |
||
43 | * @param string $merchantId |
||
44 | * |
||
45 | * @return $this |
||
46 | */ |
||
47 | 33 | public function setMerchantId($merchantId) |
|
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | 12 | public function getAccessKey() |
|
59 | |||
60 | /** |
||
61 | * @param string $accessKey |
||
62 | * |
||
63 | * @return $this |
||
64 | */ |
||
65 | 33 | public function setAccessKey($accessKey) |
|
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | 18 | public function getContractNumber() |
|
77 | |||
78 | /** |
||
79 | * @param string $contractNumber |
||
80 | * |
||
81 | * @return $this |
||
82 | */ |
||
83 | 33 | public function setContractNumber($contractNumber) |
|
84 | { |
||
85 | 33 | return $this->setParameter('contractNumber', $contractNumber); |
|
86 | 2 | } |
|
87 | |||
88 | /** |
||
89 | * @return string |
||
90 | */ |
||
91 | 12 | public function getProxyHost() |
|
95 | |||
96 | /** |
||
97 | * @param string $proxyHost |
||
98 | * |
||
99 | * @return $this |
||
100 | */ |
||
101 | 33 | public function setProxyHost($proxyHost) |
|
105 | |||
106 | /** |
||
107 | * @return string |
||
108 | */ |
||
109 | 12 | public function getProxyPort() |
|
113 | |||
114 | /** |
||
115 | * @param string $proxyPort |
||
116 | * |
||
117 | * @return $this |
||
118 | */ |
||
119 | 33 | public function setProxyPort($proxyPort) |
|
123 | |||
124 | /** |
||
125 | * @return string |
||
126 | */ |
||
127 | 12 | public function getProxyLogin() |
|
131 | |||
132 | /** |
||
133 | * @param string $proxyLogin |
||
134 | * |
||
135 | * @return $this |
||
136 | */ |
||
137 | 33 | public function setProxyLogin($proxyLogin) |
|
141 | |||
142 | /** |
||
143 | * @return string |
||
144 | */ |
||
145 | 12 | public function getProxyPassword() |
|
149 | |||
150 | /** |
||
151 | * @param string $proxyPassword |
||
152 | * |
||
153 | * @return $this |
||
154 | */ |
||
155 | 33 | public function setProxyPassword($proxyPassword) |
|
159 | |||
160 | public function getMethod() |
||
164 | |||
165 | 6 | protected function getBaseData() |
|
175 | |||
176 | 9 | public function sendData($data) |
|
182 | |||
183 | /** |
||
184 | * Get the response from request. |
||
185 | * |
||
186 | * @param \stdClass $data |
||
187 | * |
||
188 | * @return AbstractResponse |
||
189 | */ |
||
190 | abstract protected function createResponse($data); |
||
191 | } |
||
192 |