@@ 147-153 (lines=7) @@ | ||
144 | * |
|
145 | * @throws \Billogram\Exception |
|
146 | */ |
|
147 | public function manualRegister(string $invoiceId, float $amount) |
|
148 | { |
|
149 | $params = ['amount' => $amount]; |
|
150 | $response = $this->httpPost('/billogram/'.$invoiceId.'/command/payment', $params); |
|
151 | ||
152 | return $this->handleResponse($response, Model::class); |
|
153 | } |
|
154 | ||
155 | /** |
|
156 | * @param string $invoiceId |
|
@@ 237-243 (lines=7) @@ | ||
234 | * |
|
235 | * @throws \Billogram\Exception |
|
236 | */ |
|
237 | public function addMessage(string $invoiceId, string $message) |
|
238 | { |
|
239 | $params = ['message' => $message]; |
|
240 | $response = $this->httpPost('/billogram/'.$invoiceId.'/command/message', $params); |
|
241 | ||
242 | return $this->handleResponse($response, Model::class); |
|
243 | } |
|
244 | } |
|
245 |