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 | 10 | public function getEndpoint($method) |
|
19 | |||
20 | 16 | public function getApiKey() |
|
24 | |||
25 | 20 | public function setApiKey($value) |
|
29 | |||
30 | 16 | public function getTestMode() |
|
34 | |||
35 | 20 | public function setTestMode($value) |
|
39 | |||
40 | 10 | public function getUsername() |
|
47 | |||
48 | 20 | public function setUsername($value) |
|
52 | |||
53 | 10 | public function getPassword() |
|
60 | |||
61 | 20 | public function setPassword($value) |
|
65 | |||
66 | 6 | public function getTransactionReference() |
|
70 | |||
71 | 6 | public function setTransactionReference($value) |
|
75 | |||
76 | 6 | public function getNumAutor() |
|
80 | |||
81 | 6 | public function setNumAutor($value) |
|
85 | |||
86 | public function getDate() |
||
90 | |||
91 | 5 | public function getFormattedDate() |
|
97 | |||
98 | public function setDate($value) |
||
102 | |||
103 | /** |
||
104 | * |
||
105 | * @param type $data |
||
106 | * @param string $method |
||
107 | * @return \Omnipay\Common\Message\RequestInterface |
||
108 | */ |
||
109 | 10 | protected function prepareSendData($data, $method) |
|
119 | |||
120 | } |
||
121 |