| @@ 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. |
|
| @@ 228-235 (lines=8) @@ | ||
| 225 | * |
|
| 226 | * @return Transfers |
|
| 227 | */ |
|
| 228 | public function execute() |
|
| 229 | { |
|
| 230 | $path = sprintf('/%s/%s', MoipResource::VERSION, self::PATH); |
|
| 231 | ||
| 232 | $response = $this->httpRequest($path, Requests::POST, $this); |
|
| 233 | ||
| 234 | return $this->populate($response); |
|
| 235 | } |
|
| 236 | ||
| 237 | /** |
|
| 238 | * Revert Tranfers. |
|
| @@ 244-251 (lines=8) @@ | ||
| 241 | * |
|
| 242 | * @return Transfers |
|
| 243 | */ |
|
| 244 | public function revert($id) |
|
| 245 | { |
|
| 246 | $path = sprintf('/%s/%s/%s/%s', MoipResource::VERSION, self::PATH, $id, 'reverse'); |
|
| 247 | ||
| 248 | $response = $this->httpRequest($path, Requests::POST, $this); |
|
| 249 | ||
| 250 | return $this->populate($response); |
|
| 251 | } |
|
| 252 | ||
| 253 | /** |
|
| 254 | * Get a Transfer. |
|