@@ 95-102 (lines=8) @@ | ||
92 | * |
|
93 | * @return Payment |
|
94 | */ |
|
95 | public function release() |
|
96 | { |
|
97 | $path = sprintf('/%s/%s/%s/%s', MoipResource::VERSION, self::PATH, $this->getId(), 'release'); |
|
98 | ||
99 | $response = $this->httpRequest($path, Requests::POST, []); |
|
100 | ||
101 | return $this->populate($response); |
|
102 | } |
|
103 | ||
104 | /** |
|
105 | * Mount escrow structure. |
@@ 191-198 (lines=8) @@ | ||
188 | * |
|
189 | * @return Transfers |
|
190 | */ |
|
191 | public function execute() |
|
192 | { |
|
193 | $path = sprintf('/%s/%s', MoipResource::VERSION, self::PATH); |
|
194 | ||
195 | $response = $this->httpRequest($path, Requests::POST, $this); |
|
196 | ||
197 | return $this->populate($response); |
|
198 | } |
|
199 | ||
200 | /** |
|
201 | * Revert Tranfers. |
|
@@ 207-214 (lines=8) @@ | ||
204 | * |
|
205 | * @return Transfers |
|
206 | */ |
|
207 | public function revert($id) |
|
208 | { |
|
209 | $path = sprintf('/%s/%s/%s/%s', MoipResource::VERSION, self::PATH, $id, 'reverse'); |
|
210 | ||
211 | $response = $this->httpRequest($path, Requests::POST, $this); |
|
212 | ||
213 | return $this->populate($response); |
|
214 | } |
|
215 | ||
216 | /** |
|
217 | * Get a Transfer. |