@@ 88-97 (lines=10) @@ | ||
85 | * |
|
86 | * @throws \Billogram\Exception |
|
87 | */ |
|
88 | public function send(string $invoiceId, $method = null) |
|
89 | { |
|
90 | $params = []; |
|
91 | if (null !== $method) { |
|
92 | $params = ['method' => $method]; |
|
93 | } |
|
94 | $response = $this->httpPost('/billogram/'.$invoiceId.'/command/send', $params); |
|
95 | ||
96 | return $this->handleResponse($response, Model::class); |
|
97 | } |
|
98 | ||
99 | /** |
|
100 | * @param string $invoiceId |
|
@@ 109-119 (lines=11) @@ | ||
106 | * |
|
107 | * @throws \Billogram\Exception |
|
108 | */ |
|
109 | public function resend(string $invoiceId, $method = null) |
|
110 | { |
|
111 | $params = []; |
|
112 | if (null !== $method) { |
|
113 | $params = ['method' => $method]; |
|
114 | } |
|
115 | ||
116 | $response = $this->httpPost('/billogram/'.$invoiceId.'/command/resend', $params); |
|
117 | ||
118 | return $this->handleResponse($response, Model::class); |
|
119 | } |
|
120 | ||
121 | /** |
|
122 | * @param string $invoiceId |