We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b402bb commit 1766a61Copy full SHA for 1766a61
src/Picqer/Financials/Moneybird/Entities/Estimate.php
@@ -161,17 +161,6 @@ public function sendEstimate($deliveryMethodOrOptions = SendInvoiceOptions::METH
161
*/
162
public function changeState(string $state)
163
{
164
- if (! in_array($state, [
165
- 'accepted',
166
- 'rejected',
167
- 'open',
168
- 'late',
169
- 'billed',
170
- 'archived',
171
- ], true)) {
172
- throw new InvalidArgumentException("Expected valid state. Received: '$state'");
173
- }
174
-
175
$response = $this->connection()->patch($this->getEndpoint() . '/' . urlencode($this->id) . '/change_state', json_encode([
176
'state' => $state,
177
]));
0 commit comments