1 | <?php |
||
10 | abstract class BaseRequest extends AbstractRequest |
||
11 | { |
||
12 | protected $endpoint = 'https://ecommerce.userede.com.br/pos_virtual/wskomerci/cap.asmx/'; |
||
13 | protected $endpointTest = 'https://ecommerce.userede.com.br/pos_virtual/wskomerci/cap_teste.asmx/'; |
||
14 | |||
15 | public function getEndpoint($method) |
||
19 | |||
20 | public function getApiKey() |
||
24 | |||
25 | public function setApiKey($value) |
||
29 | |||
30 | public function getTestMode() |
||
34 | |||
35 | public function setTestMode($value) |
||
39 | |||
40 | public function getUsername() |
||
47 | |||
48 | public function setUsername($value) |
||
52 | |||
53 | public function getPassword() |
||
60 | |||
61 | public function setPassword($value) |
||
65 | |||
66 | public function getTransactionReference() |
||
70 | |||
71 | public function setTransactionReference($value) |
||
75 | |||
76 | public function getNumAutor() |
||
80 | |||
81 | public function setNumAutor($value) |
||
85 | |||
86 | public function getDate() |
||
90 | |||
91 | public function getFormattedDate() |
||
95 | |||
96 | public function setDate($value) |
||
100 | |||
101 | /** |
||
102 | * |
||
103 | * @param type $data |
||
104 | * @param string $method |
||
105 | * @return \Omnipay\Common\Message\RequestInterface |
||
106 | */ |
||
107 | protected function prepareSendData($data, $method) |
||
117 | |||
118 | } |
||
119 |