| @@ 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. |
|
| @@ 157-164 (lines=8) @@ | ||
| 154 | * |
|
| 155 | * @return Transfers |
|
| 156 | */ |
|
| 157 | public function execute() |
|
| 158 | { |
|
| 159 | $path = sprintf('/%s/%s', MoipResource::VERSION, self::PATH); |
|
| 160 | ||
| 161 | $response = $this->httpRequest($path, Requests::POST, $this); |
|
| 162 | ||
| 163 | return $this->populate($response); |
|
| 164 | } |
|
| 165 | ||
| 166 | /** |
|
| 167 | * Revert Tranfers. |
|
| @@ 173-180 (lines=8) @@ | ||
| 170 | * |
|
| 171 | * @return Transfers |
|
| 172 | */ |
|
| 173 | public function revert($id) |
|
| 174 | { |
|
| 175 | $path = sprintf('/%s/%s/%s/%s', MoipResource::VERSION, self::PATH, $id, 'reverse'); |
|
| 176 | ||
| 177 | $response = $this->httpRequest($path, Requests::POST, $this); |
|
| 178 | ||
| 179 | return $this->populate($response); |
|
| 180 | } |
|
| 181 | ||
| 182 | /** |
|
| 183 | * Get a Transfer. |
|