1 | <?php |
||
10 | class TransactionModificationRequest extends AbstractRequest |
||
11 | { |
||
12 | /** |
||
|
|||
13 | * @var string; |
||
14 | */ |
||
15 | protected $requestName = 'TransactionModificationRequest'; |
||
16 | |||
17 | /** |
||
18 | * Modification Type |
||
19 | * |
||
20 | * @var int; |
||
21 | */ |
||
22 | protected $modificationType; |
||
23 | |||
24 | /** |
||
25 | * Validate and construct the data for the request |
||
26 | * |
||
27 | * @return array |
||
28 | */ |
||
29 | public function getData() |
||
45 | |||
46 | /** |
||
47 | * Returns endpoint for authorize requests |
||
48 | * |
||
49 | * @return string Endpoint URL |
||
50 | */ |
||
51 | protected function getEndpoint() |
||
55 | |||
56 | /** |
||
57 | * Returns the modification type |
||
58 | * |
||
59 | * @return int Modification Type |
||
60 | */ |
||
61 | protected function getModificationType() |
||
65 | |||
66 | /** |
||
67 | * Return the transaction modification response object |
||
68 | * |
||
69 | * @param \SimpleXMLElement $xml Response xml object |
||
70 | * |
||
71 | * @return ResponseInterface |
||
72 | */ |
||
73 | protected function newResponse($xml) |
||
77 | } |
||
78 |