1 | <?php |
||
21 | class CompletePurchaseResponse extends AbstractResponse |
||
22 | { |
||
23 | /** |
||
24 | * @var CompletePurchaseRequest |
||
25 | */ |
||
26 | public $request; |
||
27 | |||
28 | 4 | public function __construct(RequestInterface $request, $data) |
|
40 | |||
41 | /** |
||
42 | * Whether the payment is successful. |
||
43 | * @return boolean |
||
44 | */ |
||
45 | 1 | public function isSuccessful() |
|
49 | |||
50 | /** |
||
51 | * Whether the payment is test. |
||
52 | * @return boolean |
||
53 | */ |
||
54 | 3 | public function getTestMode() |
|
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | * @return string |
||
62 | */ |
||
63 | 1 | public function getTransactionId() |
|
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | * @return string |
||
71 | */ |
||
72 | 1 | public function getTransactionReference() |
|
76 | |||
77 | /** |
||
78 | * Retruns the transatcion status. |
||
79 | * @return string |
||
80 | */ |
||
81 | 1 | public function getTransactionStatus() |
|
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | * @return string |
||
89 | */ |
||
90 | 1 | public function getAmount() |
|
94 | |||
95 | /** |
||
96 | * Returns the result, injected by [[CompletePurchaseRequest::sendData()]]. |
||
97 | * @return mixed |
||
98 | */ |
||
99 | 4 | public function getResult() |
|
103 | |||
104 | /** |
||
105 | * {@inheritdoc} |
||
106 | * @return string |
||
107 | */ |
||
108 | 1 | public function getFee() |
|
112 | |||
113 | /** |
||
114 | * Returns the currency. |
||
115 | * @return string |
||
116 | */ |
||
117 | 1 | public function getCurrency() |
|
121 | |||
122 | /** |
||
123 | * Returns the payer "name/email". |
||
124 | * @return string |
||
125 | */ |
||
126 | 1 | public function getPayer() |
|
136 | |||
137 | /** |
||
138 | * Returns the payment date. |
||
139 | * @return string |
||
140 | */ |
||
141 | 1 | public function getTime() |
|
145 | } |
||
146 |