Accept conditional service calculation with versioned fiscal profile
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
$app=require __DIR__.'/../bootstrap/app.php'; $app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();
|
||||
// Input is a reviewed operation manifest, not credentials. Never accepts rates/results or grants.
|
||||
$options=getopt('',['manifest:','apply']);
|
||||
if(!isset($options['manifest'])) throw new RuntimeException('Usage: service-fiscal-activate.php --manifest=path [--apply]; specific prior authorisation required.');
|
||||
$input=json_decode(file_get_contents($options['manifest']),true,32,JSON_THROW_ON_ERROR);
|
||||
$result=app(\App\Modules\Services\LocalFiscalActivation::class)->execute($input,array_key_exists('apply',$options));
|
||||
echo json_encode($result,JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE).PHP_EOL;
|
||||
Reference in New Issue
Block a user