Comando para resetear Toku
This commit is contained in:
@ -248,6 +248,19 @@ class Toku extends Ideal\Service
|
||||
}
|
||||
return $queues;
|
||||
}
|
||||
public function reset(array $skips = []): array
|
||||
{
|
||||
$output = [];
|
||||
try {
|
||||
$output['invoice'] = $this->invoice->reset($skips['invoice'] ?? []);
|
||||
$output['subscription'] = $this->subscription->reset($skips['subscription'] ?? []);
|
||||
$output['customer'] = $this->customer->reset($skips['customer'] ?? []);
|
||||
} catch (InvalidResult $exception) {
|
||||
$this->logger->warning($exception);
|
||||
return [];
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $request
|
||||
|
Reference in New Issue
Block a user