| @@ 109-116 (lines=8) @@ | ||
| 106 | * |
|
| 107 | * @return Transfers |
|
| 108 | */ |
|
| 109 | public function execute() |
|
| 110 | { |
|
| 111 | $path = sprintf('/%s/%s', MoipResource::VERSION, self::PATH); |
|
| 112 | ||
| 113 | $response = $this->httpRequest($path, Requests::POST, $this); |
|
| 114 | ||
| 115 | return $this->populate($response); |
|
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| 119 | * Get MoIP Transfers id. |
|
| @@ 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. |
|