Merge pull request #8193 from turbo124/v5-develop

Append entity name to the start of documents
This commit is contained in:
David Bomba 2023-01-22 19:02:04 +11:00 committed by GitHub
commit a5a58c567b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
121 changed files with 960 additions and 648 deletions

View File

@ -90,22 +90,22 @@ jobs:
run: | run: |
cp .env.ci .env cp .env.ci .env
# - name: Get Composer Cache Directory - name: Get Composer Cache Directory
# id: composer-cache id: composer-cache
# run: | run: |
# echo "::set-output name=dir::$(composer config cache-files-dir)" echo "::set-output name=dir::$(composer config cache-files-dir)"
# - uses: actions/cache@v2 - uses: actions/cache@v2
# with:
# path: ${{ steps.composer-cache.outputs.dir }}
# key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
# restore-keys: |
# ${{ runner.os }}-${{ matrix.php }}-composer-
- name: Cache dependencies actions/cache@v3
uses: actions/cache@v3
with: with:
path: ~/.composer/cache/files path: ${{ steps.composer-cache.outputs.dir }}
key: dependencies-${{ matrix.dependency-version }}-laravel-${{ matrix.laravel }}-php-${{ matrix.php-versions }}-composer-${{ hashFiles('composer.json') }} key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.php }}-composer-
# - name: Cache dependencies actions/cache@v3
# uses: actions/cache@v3
# with:
# path: ~/.composer/cache/files
# key: dependencies-${{ matrix.dependency-version }}-laravel-${{ matrix.laravel }}-php-${{ matrix.php-versions }}-composer-${{ hashFiles('composer.json') }}
- name: Install composer dependencies - name: Install composer dependencies
run: | run: |
@ -126,11 +126,6 @@ jobs:
run: | run: |
php artisan migrate:fresh --seed --force && php artisan db:seed --force php artisan migrate:fresh --seed --force && php artisan db:seed --force
# - name: Prepare JS/CSS assets
# run: |
# npm i
# npm run production
- name: Run Testsuite - name: Run Testsuite
run: | run: |
cat .env cat .env
@ -140,5 +135,4 @@ jobs:
DB_PORT: ${{ job.services.mysql.ports[3306] }} DB_PORT: ${{ job.services.mysql.ports[3306] }}
PHP_CS_FIXER_IGNORE_ENV: true PHP_CS_FIXER_IGNORE_ENV: true
CI_NODE_TOTAL: ${{ matrix.ci_node_total }} CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
# Use the index from matrix as an environment variable
CI_NODE_INDEX: ${{ matrix.ci_node_index }} CI_NODE_INDEX: ${{ matrix.ci_node_index }}

View File

@ -1 +1 @@
5.5.58 5.5.59

View File

@ -67,7 +67,6 @@ class AccountController extends BaseController
* tags={"signup"}, * tags={"signup"},
* summary="Attempts a new account signup", * summary="Attempts a new account signup",
* description="Attempts a new account signup and returns a CompanyUser object on success", * description="Attempts a new account signup and returns a CompanyUser object on success",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter( * @OA\Parameter(
* name="token_name", * name="token_name",

View File

@ -46,7 +46,6 @@ class ActivityController extends BaseController
* tags={"actvities"}, * tags={"actvities"},
* summary="Gets a list of actvities", * summary="Gets a list of actvities",
* description="Lists all activities", * description="Lists all activities",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -92,6 +91,10 @@ class ActivityController extends BaseController
->take($default_activities); ->take($default_activities);
if ($request->has('react')) { if ($request->has('react')) {
if(!auth()->user()->isAdmin())
return response()->json(['data' => []], 200);
$system = ctrans('texts.system'); $system = ctrans('texts.system');
$data = $activities->cursor()->map(function ($activity) use ($system) { $data = $activities->cursor()->map(function ($activity) use ($system) {
@ -131,7 +134,6 @@ class ActivityController extends BaseController
* tags={"actvities"}, * tags={"actvities"},
* summary="Gets a PDF for the given activity", * summary="Gets a PDF for the given activity",
* description="Gets a PDF for the given activity", * description="Gets a PDF for the given activity",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter( * @OA\Parameter(

View File

@ -249,7 +249,6 @@ class LoginController extends BaseController
* tags={"refresh"}, * tags={"refresh"},
* summary="Refreshes the dataset", * summary="Refreshes the dataset",
* description="Refreshes the dataset", * description="Refreshes the dataset",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -127,7 +127,6 @@ class YodleeController extends BaseController
* tags={"yodlee"}, * tags={"yodlee"},
* summary="Processing webhooks from Yodlee", * summary="Processing webhooks from Yodlee",
* description="Notifies the system when a data point can be refreshed", * description="Notifies the system when a data point can be refreshed",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -15,6 +15,7 @@ use App\Factory\BankIntegrationFactory;
use App\Filters\BankIntegrationFilters; use App\Filters\BankIntegrationFilters;
use App\Helpers\Bank\Yodlee\Yodlee; use App\Helpers\Bank\Yodlee\Yodlee;
use App\Http\Requests\BankIntegration\AdminBankIntegrationRequest; use App\Http\Requests\BankIntegration\AdminBankIntegrationRequest;
use App\Http\Requests\BankIntegration\BulkBankIntegrationRequest;
use App\Http\Requests\BankIntegration\CreateBankIntegrationRequest; use App\Http\Requests\BankIntegration\CreateBankIntegrationRequest;
use App\Http\Requests\BankIntegration\DestroyBankIntegrationRequest; use App\Http\Requests\BankIntegration\DestroyBankIntegrationRequest;
use App\Http\Requests\BankIntegration\EditBankIntegrationRequest; use App\Http\Requests\BankIntegration\EditBankIntegrationRequest;
@ -54,7 +55,6 @@ class BankIntegrationController extends BaseController
* tags={"bank_integrations"}, * tags={"bank_integrations"},
* summary="Gets a list of bank_integrations", * summary="Gets a list of bank_integrations",
* description="Lists all bank integrations", * description="Lists all bank integrations",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -115,7 +115,6 @@ class BankIntegrationController extends BaseController
* tags={"bank_integrations"}, * tags={"bank_integrations"},
* summary="Shows a bank_integration", * summary="Shows a bank_integration",
* description="Displays a bank_integration by id", * description="Displays a bank_integration by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -171,7 +170,6 @@ class BankIntegrationController extends BaseController
* tags={"bank_integrations"}, * tags={"bank_integrations"},
* summary="Shows a bank_integration for editing", * summary="Shows a bank_integration for editing",
* description="Displays a bank_integration by id", * description="Displays a bank_integration by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -227,7 +225,6 @@ class BankIntegrationController extends BaseController
* tags={"bank_integrations"}, * tags={"bank_integrations"},
* summary="Updates a bank_integration", * summary="Updates a bank_integration",
* description="Handles the updating of a bank_integration by id", * description="Handles the updating of a bank_integration by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -286,7 +283,6 @@ class BankIntegrationController extends BaseController
* tags={"bank_integrations"}, * tags={"bank_integrations"},
* summary="Gets a new blank bank_integration object", * summary="Gets a new blank bank_integration object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -332,7 +328,6 @@ class BankIntegrationController extends BaseController
* tags={"bank_integrations"}, * tags={"bank_integrations"},
* summary="Adds a bank_integration", * summary="Adds a bank_integration",
* description="Adds an bank_integration to a company", * description="Adds an bank_integration to a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -380,7 +375,6 @@ class BankIntegrationController extends BaseController
* tags={"bank_integrations"}, * tags={"bank_integrations"},
* summary="Deletes a bank_integration", * summary="Deletes a bank_integration",
* description="Handles the deletion of a bank_integration by id", * description="Handles the deletion of a bank_integration by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -434,7 +428,6 @@ class BankIntegrationController extends BaseController
* tags={"bank_integrations"}, * tags={"bank_integrations"},
* summary="Performs bulk actions on an array of bank_integrations", * summary="Performs bulk actions on an array of bank_integrations",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -473,21 +466,16 @@ class BankIntegrationController extends BaseController
* ), * ),
* ) * )
*/ */
public function bulk() public function bulk(BulkBankIntegrationRequest $request)
{ {
$action = request()->input('action'); $action = request()->input('action');
if(!in_array($action, ['archive', 'restore', 'delete']))
return response()->json(['message' => 'Unsupported action.'], 400);
$ids = request()->input('ids'); $ids = request()->input('ids');
$bank_integrations = BankIntegration::withTrashed()->whereIn('id', $this->transformKeys($ids))->company()->get(); $bank_integrations = BankIntegration::withTrashed()->whereIn('id', $this->transformKeys($ids))->company()->get();
$bank_integrations->each(function ($bank_integration, $key) use ($action) { $bank_integrations->each(function ($bank_integration, $key) use ($action) {
if (auth()->user()->can('edit', $bank_integration)) {
$this->bank_integration_repo->{$action}($bank_integration); $this->bank_integration_repo->{$action}($bank_integration);
}
}); });
/* Need to understand which permission are required for the given bulk action ie. view / edit */ /* Need to understand which permission are required for the given bulk action ie. view / edit */
@ -507,7 +495,6 @@ class BankIntegrationController extends BaseController
* tags={"bank_integrations"}, * tags={"bank_integrations"},
* summary="Gets the list of accounts from the remote server", * summary="Gets the list of accounts from the remote server",
* description="Adds an bank_integration to a company", * description="Adds an bank_integration to a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -599,7 +586,6 @@ class BankIntegrationController extends BaseController
* tags={"bank_integrations"}, * tags={"bank_integrations"},
* summary="Removes an account from the integration", * summary="Removes an account from the integration",
* description="Removes an account from the integration", * description="Removes an account from the integration",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -633,7 +619,7 @@ class BankIntegrationController extends BaseController
if(!$bank_account_id) if(!$bank_account_id)
return response()->json(['message' => 'Not yet authenticated with Bank Integration service'], 400); return response()->json(['message' => 'Not yet authenticated with Bank Integration service'], 400);
$bi = BankIntegration::withTrashed()->where('bank_account_id', $acc_id)->where('company_id', auth()->user()->company()->id)->firstOrFail(); $bi = BankIntegration::withTrashed()->where('bank_account_id', $acc_id)->company()->firstOrFail();
$yodlee = new Yodlee($bank_account_id); $yodlee = new Yodlee($bank_account_id);
$res = $yodlee->deleteAccount($acc_id); $res = $yodlee->deleteAccount($acc_id);
@ -657,7 +643,6 @@ class BankIntegrationController extends BaseController
* tags={"bank_integrations"}, * tags={"bank_integrations"},
* summary="Retrieve transactions for a account", * summary="Retrieve transactions for a account",
* description="Retrieve transactions for a account", * description="Retrieve transactions for a account",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -15,6 +15,7 @@ use App\Factory\BankTransactionFactory;
use App\Filters\BankTransactionFilters; use App\Filters\BankTransactionFilters;
use App\Helpers\Bank\Yodlee\Yodlee; use App\Helpers\Bank\Yodlee\Yodlee;
use App\Http\Requests\BankTransaction\AdminBankTransactionRequest; use App\Http\Requests\BankTransaction\AdminBankTransactionRequest;
use App\Http\Requests\BankTransaction\BulkBankTransactionRequest;
use App\Http\Requests\BankTransaction\CreateBankTransactionRequest; use App\Http\Requests\BankTransaction\CreateBankTransactionRequest;
use App\Http\Requests\BankTransaction\DestroyBankTransactionRequest; use App\Http\Requests\BankTransaction\DestroyBankTransactionRequest;
use App\Http\Requests\BankTransaction\EditBankTransactionRequest; use App\Http\Requests\BankTransaction\EditBankTransactionRequest;
@ -58,7 +59,6 @@ class BankTransactionController extends BaseController
* tags={"bank_transactions"}, * tags={"bank_transactions"},
* summary="Gets a list of bank_transactions", * summary="Gets a list of bank_transactions",
* description="Lists all bank integrations", * description="Lists all bank integrations",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -119,7 +119,6 @@ class BankTransactionController extends BaseController
* tags={"bank_transactions"}, * tags={"bank_transactions"},
* summary="Shows a bank_transaction", * summary="Shows a bank_transaction",
* description="Displays a bank_transaction by id", * description="Displays a bank_transaction by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -175,7 +174,6 @@ class BankTransactionController extends BaseController
* tags={"bank_transactions"}, * tags={"bank_transactions"},
* summary="Shows a bank_transaction for editing", * summary="Shows a bank_transaction for editing",
* description="Displays a bank_transaction by id", * description="Displays a bank_transaction by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -231,7 +229,6 @@ class BankTransactionController extends BaseController
* tags={"bank_transactions"}, * tags={"bank_transactions"},
* summary="Updates a bank_transaction", * summary="Updates a bank_transaction",
* description="Handles the updating of a bank_transaction by id", * description="Handles the updating of a bank_transaction by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -290,7 +287,6 @@ class BankTransactionController extends BaseController
* tags={"bank_transactions"}, * tags={"bank_transactions"},
* summary="Gets a new blank bank_transaction object", * summary="Gets a new blank bank_transaction object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -336,7 +332,6 @@ class BankTransactionController extends BaseController
* tags={"bank_transactions"}, * tags={"bank_transactions"},
* summary="Adds a bank_transaction", * summary="Adds a bank_transaction",
* description="Adds an bank_transaction to a company", * description="Adds an bank_transaction to a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -384,7 +379,6 @@ class BankTransactionController extends BaseController
* tags={"bank_transactions"}, * tags={"bank_transactions"},
* summary="Deletes a bank_transaction", * summary="Deletes a bank_transaction",
* description="Handles the deletion of a bank_transaction by id", * description="Handles the deletion of a bank_transaction by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -438,7 +432,6 @@ class BankTransactionController extends BaseController
* tags={"bank_transactions"}, * tags={"bank_transactions"},
* summary="Performs bulk actions on an array of bank_transations", * summary="Performs bulk actions on an array of bank_transations",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -477,12 +470,9 @@ class BankTransactionController extends BaseController
* ), * ),
* ) * )
*/ */
public function bulk() public function bulk(BulkBankTransactionRequest $request)
{ {
$action = request()->input('action'); $action = $request->input('action');
if(!in_array($action, ['archive', 'restore', 'delete', 'convert_matched']))
return response()->json(['message' => 'Unsupported action.'], 400);
$ids = request()->input('ids'); $ids = request()->input('ids');
@ -490,19 +480,14 @@ class BankTransactionController extends BaseController
if($action == 'convert_matched') //catch this action if($action == 'convert_matched') //catch this action
{ {
if(auth()->user()->isAdmin())
{
$this->bank_transaction_repo->convert_matched($bank_transactions); $this->bank_transaction_repo->convert_matched($bank_transactions);
}
else
return;
} }
else { else {
$bank_transactions->each(function ($bank_transaction, $key) use ($action) { $bank_transactions->each(function ($bank_transaction, $key) use ($action) {
if (auth()->user()->can('edit', $bank_transaction)) {
$this->bank_transaction_repo->{$action}($bank_transaction); $this->bank_transaction_repo->{$action}($bank_transaction);
}
}); });
} }
@ -523,7 +508,6 @@ class BankTransactionController extends BaseController
* tags={"bank_transactions"}, * tags={"bank_transactions"},
* summary="Performs match actions on an array of bank_transactions", * summary="Performs match actions on an array of bank_transactions",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),

View File

@ -16,6 +16,7 @@ use App\Factory\BankTransactionRuleFactory;
use App\Filters\BankTransactionFilters; use App\Filters\BankTransactionFilters;
use App\Filters\BankTransactionRuleFilters; use App\Filters\BankTransactionRuleFilters;
use App\Helpers\Bank\Yodlee\Yodlee; use App\Helpers\Bank\Yodlee\Yodlee;
use App\Http\Requests\BankTransactionRule\BulkBankTransactionRuleRequest;
use App\Http\Requests\BankTransactionRule\CreateBankTransactionRuleRequest; use App\Http\Requests\BankTransactionRule\CreateBankTransactionRuleRequest;
use App\Http\Requests\BankTransactionRule\DestroyBankTransactionRuleRequest; use App\Http\Requests\BankTransactionRule\DestroyBankTransactionRuleRequest;
use App\Http\Requests\BankTransactionRule\EditBankTransactionRuleRequest; use App\Http\Requests\BankTransactionRule\EditBankTransactionRuleRequest;
@ -61,7 +62,6 @@ class BankTransactionRuleController extends BaseController
* tags={"bank_transaction_rules"}, * tags={"bank_transaction_rules"},
* summary="Gets a list of bank_transaction_rules", * summary="Gets a list of bank_transaction_rules",
* description="Lists all bank transaction rules", * description="Lists all bank transaction rules",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -122,7 +122,6 @@ class BankTransactionRuleController extends BaseController
* tags={"bank_transaction_rules"}, * tags={"bank_transaction_rules"},
* summary="Shows a bank_transaction", * summary="Shows a bank_transaction",
* description="Displays a bank_transaction by id", * description="Displays a bank_transaction by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -178,7 +177,6 @@ class BankTransactionRuleController extends BaseController
* tags={"bank_transaction_rules"}, * tags={"bank_transaction_rules"},
* summary="Shows a bank_transaction for editing", * summary="Shows a bank_transaction for editing",
* description="Displays a bank_transaction by id", * description="Displays a bank_transaction by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -234,7 +232,6 @@ class BankTransactionRuleController extends BaseController
* tags={"bank_transaction_rules"}, * tags={"bank_transaction_rules"},
* summary="Updates a bank_transaction Rule", * summary="Updates a bank_transaction Rule",
* description="Handles the updating of a bank_transaction rule by id", * description="Handles the updating of a bank_transaction rule by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -293,7 +290,6 @@ class BankTransactionRuleController extends BaseController
* tags={"bank_transaction_rules"}, * tags={"bank_transaction_rules"},
* summary="Gets a new blank bank_transaction rule object", * summary="Gets a new blank bank_transaction rule object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -339,7 +335,6 @@ class BankTransactionRuleController extends BaseController
* tags={"bank_transaction_rules"}, * tags={"bank_transaction_rules"},
* summary="Adds a bank_transaction rule", * summary="Adds a bank_transaction rule",
* description="Adds an bank_transaction to a company", * description="Adds an bank_transaction to a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -387,7 +382,6 @@ class BankTransactionRuleController extends BaseController
* tags={"bank_transaction_rules"}, * tags={"bank_transaction_rules"},
* summary="Deletes a bank_transaction rule", * summary="Deletes a bank_transaction rule",
* description="Handles the deletion of a bank_transaction rule by id", * description="Handles the deletion of a bank_transaction rule by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -441,7 +435,6 @@ class BankTransactionRuleController extends BaseController
* tags={"bank_transaction_rules"}, * tags={"bank_transaction_rules"},
* summary="Performs bulk actions on an array of bank_transation rules", * summary="Performs bulk actions on an array of bank_transation rules",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -480,25 +473,21 @@ class BankTransactionRuleController extends BaseController
* ), * ),
* ) * )
*/ */
public function bulk() public function bulk(BulkBankTransactionRuleRequest $request)
{ {
$action = request()->input('action'); $action = $request->input('action');
if(!in_array($action, ['archive', 'restore', 'delete'])) $ids = $request->input('ids');
return response()->json(['message' => 'Unsupported action.'], 400);
$ids = request()->input('ids'); $bank_transaction_rules = BankTransactionRule::withTrashed()
->whereIn('id', $this->transformKeys($ids))
$bank_transaction_rules = BankTransactionRule::withTrashed()->whereIn('id', $this->transformKeys($ids))->company()->get(); ->company()
->cursor()
$bank_transaction_rules->each(function ($bank_transaction_rule, $key) use ($action) { ->each(function ($bank_transaction_rule, $key) use ($action) {
if (auth()->user()->can('edit', $bank_transaction_rule)) {
$this->bank_transaction_repo->{$action}($bank_transaction_rule); $this->bank_transaction_repo->{$action}($bank_transaction_rule);
}
}); });
/* Need to understand which permission are required for the given bulk action ie. view / edit */ /* Need to understand which permission are required for the given bulk action ie. view / edit */
return $this->listResponse(BankTransactionRule::withTrashed()->whereIn('id', $this->transformKeys($ids))->company()); return $this->listResponse(BankTransactionRule::withTrashed()->whereIn('id', $this->transformKeys($ids))->company());
} }

View File

@ -30,7 +30,6 @@ class ChartController extends BaseController
* tags={"charts"}, * tags={"charts"},
* summary="Get chart data", * summary="Get chart data",
* description="Get chart data", * description="Get chart data",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -16,6 +16,7 @@ use App\Events\Client\ClientWasUpdated;
use App\Factory\ClientFactory; use App\Factory\ClientFactory;
use App\Filters\ClientFilters; use App\Filters\ClientFilters;
use App\Http\Requests\Client\AdjustClientLedgerRequest; use App\Http\Requests\Client\AdjustClientLedgerRequest;
use App\Http\Requests\Client\BulkClientRequest;
use App\Http\Requests\Client\CreateClientRequest; use App\Http\Requests\Client\CreateClientRequest;
use App\Http\Requests\Client\DestroyClientRequest; use App\Http\Requests\Client\DestroyClientRequest;
use App\Http\Requests\Client\EditClientRequest; use App\Http\Requests\Client\EditClientRequest;
@ -79,7 +80,6 @@ class ClientController extends BaseController
* description="Lists clients, search and filters allow fine grained lists to be generated. * description="Lists clients, search and filters allow fine grained lists to be generated.
Query parameters can be added to performed more fine grained filtering of the clients, these are handled by the ClientFilters class which defines the methods available", Query parameters can be added to performed more fine grained filtering of the clients, these are handled by the ClientFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -129,7 +129,6 @@ class ClientController extends BaseController
* tags={"clients"}, * tags={"clients"},
* summary="Shows a client", * summary="Shows a client",
* description="Displays a client by id", * description="Displays a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -184,7 +183,6 @@ class ClientController extends BaseController
* tags={"clients"}, * tags={"clients"},
* summary="Shows a client for editting", * summary="Shows a client for editting",
* description="Displays a client by id", * description="Displays a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -240,7 +238,6 @@ class ClientController extends BaseController
* tags={"clients"}, * tags={"clients"},
* summary="Updates a client", * summary="Updates a client",
* description="Handles the updating of a client by id", * description="Handles the updating of a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -305,7 +302,6 @@ class ClientController extends BaseController
* tags={"clients"}, * tags={"clients"},
* summary="Gets a new blank client object", * summary="Gets a new blank client object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -351,7 +347,6 @@ class ClientController extends BaseController
* tags={"clients"}, * tags={"clients"},
* summary="Adds a client", * summary="Adds a client",
* description="Adds an client to a company", * description="Adds an client to a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -409,7 +404,6 @@ class ClientController extends BaseController
* tags={"clients"}, * tags={"clients"},
* summary="Deletes a client", * summary="Deletes a client",
* description="Handles the deletion of a client by id", * description="Handles the deletion of a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -463,7 +457,6 @@ class ClientController extends BaseController
* tags={"clients"}, * tags={"clients"},
* summary="Performs bulk actions on an array of clients", * summary="Performs bulk actions on an array of clients",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -502,24 +495,22 @@ class ClientController extends BaseController
* ), * ),
* ) * )
*/ */
public function bulk() public function bulk(BulkClientRequest $request)
{ {
$action = request()->input('action');
$ids = request()->input('ids'); $action = $request->action;
$clients = Client::withTrashed()->whereIn('id', $this->transformKeys($ids))->cursor();
if (! in_array($action, ['restore', 'archive', 'delete'])) { $clients = Client::withTrashed()
return response()->json(['message' => 'That action is not available.'], 400); ->company()
} ->whereIn('id', $request->ids)
->cursor()
$clients->each(function ($client, $key) use ($action) { ->each(function ($client) use ($action) {
if (auth()->user()->can('edit', $client)) { if (auth()->user()->can('edit', $client)) {
$this->client_repo->{$action}($client); $this->client_repo->{$action}($client);
} }
}); });
return $this->listResponse(Client::withTrashed()->whereIn('id', $this->transformKeys($ids))); return $this->listResponse(Client::withTrashed()->company()->whereIn('id', $request->ids));
} }
/** /**
@ -537,7 +528,6 @@ class ClientController extends BaseController
* tags={"clients"}, * tags={"clients"},
* summary="Uploads a document to a client", * summary="Uploads a document to a client",
* description="Handles the uploading of a document to a client", * description="Handles the uploading of a document to a client",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -601,7 +591,6 @@ class ClientController extends BaseController
* tags={"clients"}, * tags={"clients"},
* summary="Purges a client from the system", * summary="Purges a client from the system",
* description="Handles purging a client", * description="Handles purging a client",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -674,7 +663,6 @@ class ClientController extends BaseController
* tags={"clients"}, * tags={"clients"},
* summary="Merges two clients", * summary="Merges two clients",
* description="Handles merging 2 clients", * description="Handles merging 2 clients",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -77,7 +77,6 @@ class ClientGatewayTokenController extends BaseController
* description="Lists client_gateway_tokens, search and filters allow fine grained lists to be generated. * description="Lists client_gateway_tokens, search and filters allow fine grained lists to be generated.
Query parameters can be added to performed more fine grained filtering of the client_gateway_tokens, these are handled by the ClientGatewayTokenFilters class which defines the methods available", Query parameters can be added to performed more fine grained filtering of the client_gateway_tokens, these are handled by the ClientGatewayTokenFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -125,7 +124,6 @@ class ClientGatewayTokenController extends BaseController
* tags={"client_gateway_tokens"}, * tags={"client_gateway_tokens"},
* summary="Shows a client", * summary="Shows a client",
* description="Displays a client by id", * description="Displays a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -180,7 +178,6 @@ class ClientGatewayTokenController extends BaseController
* tags={"client_gateway_tokens"}, * tags={"client_gateway_tokens"},
* summary="Shows a client for editting", * summary="Shows a client for editting",
* description="Displays a client by id", * description="Displays a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -236,7 +233,6 @@ class ClientGatewayTokenController extends BaseController
* tags={"client_gateway_tokens"}, * tags={"client_gateway_tokens"},
* summary="Updates a client", * summary="Updates a client",
* description="Handles the updating of a client by id", * description="Handles the updating of a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -293,7 +289,6 @@ class ClientGatewayTokenController extends BaseController
* tags={"client_gateway_tokens"}, * tags={"client_gateway_tokens"},
* summary="Gets a new blank client object", * summary="Gets a new blank client object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -341,7 +336,6 @@ class ClientGatewayTokenController extends BaseController
* tags={"client_gateway_tokens"}, * tags={"client_gateway_tokens"},
* summary="Adds a client", * summary="Adds a client",
* description="Adds an client to a company", * description="Adds an client to a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -390,7 +384,6 @@ class ClientGatewayTokenController extends BaseController
* tags={"client_gateway_tokens"}, * tags={"client_gateway_tokens"},
* summary="Deletes a client", * summary="Deletes a client",
* description="Handles the deletion of a client by id", * description="Handles the deletion of a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -47,7 +47,6 @@ class ClientStatementController extends BaseController
* tags={"clients"}, * tags={"clients"},
* summary="Return a PDF of the client statement", * summary="Return a PDF of the client statement",
* description="Return a PDF of the client statement", * description="Return a PDF of the client statement",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -91,7 +91,6 @@ class CompanyController extends BaseController
* description="Lists companies, search and filters allow fine grained lists to be generated. * description="Lists companies, search and filters allow fine grained lists to be generated.
Query parameters can be added to performed more fine grained filtering of the companies, these are handled by the CompanyFilters class which defines the methods available", Query parameters can be added to performed more fine grained filtering of the companies, these are handled by the CompanyFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -137,7 +136,6 @@ class CompanyController extends BaseController
* tags={"companies"}, * tags={"companies"},
* summary="Gets a new blank company object", * summary="Gets a new blank company object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -183,7 +181,6 @@ class CompanyController extends BaseController
* tags={"companies"}, * tags={"companies"},
* summary="Adds a company", * summary="Adds a company",
* description="Adds an company to the system", * description="Adds an company to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -267,7 +264,6 @@ class CompanyController extends BaseController
* tags={"companies"}, * tags={"companies"},
* summary="Shows an company", * summary="Shows an company",
* description="Displays an company by id", * description="Displays an company by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -322,7 +318,6 @@ class CompanyController extends BaseController
* tags={"companies"}, * tags={"companies"},
* summary="Shows an company for editting", * summary="Shows an company for editting",
* description="Displays an company by id", * description="Displays an company by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -377,7 +372,6 @@ class CompanyController extends BaseController
* tags={"companies"}, * tags={"companies"},
* summary="Updates an company", * summary="Updates an company",
* description="Handles the updating of an company by id", * description="Handles the updating of an company by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -447,7 +441,6 @@ class CompanyController extends BaseController
* tags={"companies"}, * tags={"companies"},
* summary="Deletes a company", * summary="Deletes a company",
* description="Handles the deletion of an company by id", * description="Handles the deletion of an company by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -551,7 +544,6 @@ class CompanyController extends BaseController
* tags={"companies"}, * tags={"companies"},
* summary="Uploads a document to a company", * summary="Uploads a document to a company",
* description="Handles the uploading of a document to a company", * description="Handles the uploading of a document to a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -615,7 +607,6 @@ class CompanyController extends BaseController
* tags={"companies"}, * tags={"companies"},
* summary="Sets the company as the default company.", * summary="Sets the company as the default company.",
* description="Sets the company as the default company.", * description="Sets the company as the default company.",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -14,6 +14,7 @@ namespace App\Http\Controllers;
use App\DataMapper\FeesAndLimits; use App\DataMapper\FeesAndLimits;
use App\Factory\CompanyGatewayFactory; use App\Factory\CompanyGatewayFactory;
use App\Filters\CompanyGatewayFilters; use App\Filters\CompanyGatewayFilters;
use App\Http\Requests\CompanyGateway\BulkCompanyGatewayRequest;
use App\Http\Requests\CompanyGateway\CreateCompanyGatewayRequest; use App\Http\Requests\CompanyGateway\CreateCompanyGatewayRequest;
use App\Http\Requests\CompanyGateway\DestroyCompanyGatewayRequest; use App\Http\Requests\CompanyGateway\DestroyCompanyGatewayRequest;
use App\Http\Requests\CompanyGateway\EditCompanyGatewayRequest; use App\Http\Requests\CompanyGateway\EditCompanyGatewayRequest;
@ -75,7 +76,6 @@ class CompanyGatewayController extends BaseController
* description="Lists company_gateways, search and filters allow fine grained lists to be generated. * description="Lists company_gateways, search and filters allow fine grained lists to be generated.
Query parameters can be added to performed more fine grained filtering of the company_gateways, these are handled by the CompanyGatewayFilters class which defines the methods available", Query parameters can be added to performed more fine grained filtering of the company_gateways, these are handled by the CompanyGatewayFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -121,7 +121,6 @@ class CompanyGatewayController extends BaseController
* tags={"company_gateways"}, * tags={"company_gateways"},
* summary="Gets a new blank CompanyGateway object", * summary="Gets a new blank CompanyGateway object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -167,7 +166,6 @@ class CompanyGatewayController extends BaseController
* tags={"company_gateways"}, * tags={"company_gateways"},
* summary="Adds a CompanyGateway", * summary="Adds a CompanyGateway",
* description="Adds an CompanyGateway to the system", * description="Adds an CompanyGateway to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -232,7 +230,6 @@ class CompanyGatewayController extends BaseController
* tags={"company_gateways"}, * tags={"company_gateways"},
* summary="Shows an CompanyGateway", * summary="Shows an CompanyGateway",
* description="Displays an CompanyGateway by id", * description="Displays an CompanyGateway by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -287,7 +284,6 @@ class CompanyGatewayController extends BaseController
* tags={"company_gateways"}, * tags={"company_gateways"},
* summary="Shows an CompanyGateway for editting", * summary="Shows an CompanyGateway for editting",
* description="Displays an CompanyGateway by id", * description="Displays an CompanyGateway by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -342,7 +338,6 @@ class CompanyGatewayController extends BaseController
* tags={"company_gateways"}, * tags={"company_gateways"},
* summary="Updates an CompanyGateway", * summary="Updates an CompanyGateway",
* description="Handles the updating of an CompanyGateway by id", * description="Handles the updating of an CompanyGateway by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -408,7 +403,6 @@ class CompanyGatewayController extends BaseController
* tags={"company_gateways"}, * tags={"company_gateways"},
* summary="Deletes a CompanyGateway", * summary="Deletes a CompanyGateway",
* description="Handles the deletion of an CompanyGateway by id", * description="Handles the deletion of an CompanyGateway by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -465,7 +459,6 @@ class CompanyGatewayController extends BaseController
* tags={"company_gateways"}, * tags={"company_gateways"},
* summary="Performs bulk actions on an array of company_gateways", * summary="Performs bulk actions on an array of company_gateways",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -504,20 +497,18 @@ class CompanyGatewayController extends BaseController
* ), * ),
* ) * )
*/ */
public function bulk() public function bulk(BulkCompanyGatewayRequest $request)
{ {
$action = request()->input('action'); $action = $request->input('action');
$ids = request()->input('ids'); $company_gateways = CompanyGateway::withTrashed()
->whereIn('id', $request->ids)
$company_gateways = CompanyGateway::withTrashed()->find($this->transformKeys($ids)); ->company()
->cursor()
$company_gateways->each(function ($company_gateway, $key) use ($action) { ->each(function ($company_gateway, $key) use ($action) {
if (auth()->user()->can('edit', $company_gateway)) {
$this->company_repo->{$action}($company_gateway); $this->company_repo->{$action}($company_gateway);
}
}); });
return $this->listResponse(CompanyGateway::withTrashed()->whereIn('id', $this->transformKeys($ids))); return $this->listResponse(CompanyGateway::withTrashed()->company()->whereIn('id', $request->ids));
} }
} }

View File

@ -39,7 +39,6 @@ class CompanyLedgerController extends BaseController
* tags={"company_ledger"}, * tags={"company_ledger"},
* summary="Gets a list of company_ledger", * summary="Gets a list of company_ledger",
* description="Lists the company_ledger.", * description="Lists the company_ledger.",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -65,7 +64,7 @@ class CompanyLedgerController extends BaseController
*/ */
public function index(ShowCompanyLedgerRequest $request) public function index(ShowCompanyLedgerRequest $request)
{ {
$company_ledger = CompanyLedger::whereCompanyId(auth()->user()->company()->id)->orderBy('id', 'ASC'); $company_ledger = CompanyLedger::where('company_id', auth()->user()->company()->id)->orderBy('id', 'ASC');
return $this->listResponse($company_ledger); return $this->listResponse($company_ledger);
} }

View File

@ -11,11 +11,11 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Exceptions\ModelNotFoundException;
use App\Http\Requests\CompanyUser\UpdateCompanyUserRequest; use App\Http\Requests\CompanyUser\UpdateCompanyUserRequest;
use App\Models\CompanyUser; use App\Models\CompanyUser;
use App\Models\User; use App\Models\User;
use App\Transformers\CompanyUserTransformer; use App\Transformers\CompanyUserTransformer;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Http\Response; use Illuminate\Http\Response;
class CompanyUserController extends BaseController class CompanyUserController extends BaseController
@ -83,7 +83,6 @@ class CompanyUserController extends BaseController
* tags={"company_user"}, * tags={"company_user"},
* summary="Update a company user record", * summary="Update a company user record",
* description="Attempts to update a company user record. A company user can modify only their settings fields. Full access for Admin users", * description="Attempts to update a company user record. A company user can modify only their settings fields. Full access for Admin users",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Response( * @OA\Response(
* response=200, * response=200,

View File

@ -50,7 +50,6 @@ class ConnectedAccountController extends BaseController
* tags={"connected_account"}, * tags={"connected_account"},
* summary="Connect an oauth user to an existing user", * summary="Connect an oauth user to an existing user",
* description="Refreshes the dataset", * description="Refreshes the dataset",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -17,6 +17,7 @@ use App\Factory\CloneCreditFactory;
use App\Factory\CreditFactory; use App\Factory\CreditFactory;
use App\Filters\CreditFilters; use App\Filters\CreditFilters;
use App\Http\Requests\Credit\ActionCreditRequest; use App\Http\Requests\Credit\ActionCreditRequest;
use App\Http\Requests\Credit\BulkCreditRequest;
use App\Http\Requests\Credit\CreateCreditRequest; use App\Http\Requests\Credit\CreateCreditRequest;
use App\Http\Requests\Credit\DestroyCreditRequest; use App\Http\Requests\Credit\DestroyCreditRequest;
use App\Http\Requests\Credit\EditCreditRequest; use App\Http\Requests\Credit\EditCreditRequest;
@ -78,7 +79,6 @@ class CreditController extends BaseController
* description="Lists credits, search and filters allow fine grained lists to be generated. * description="Lists credits, search and filters allow fine grained lists to be generated.
* *
* Query parameters can be added to performed more fine grained filtering of the credits, these are handled by the CreditFilters class which defines the methods available", * Query parameters can be added to performed more fine grained filtering of the credits, these are handled by the CreditFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -124,7 +124,6 @@ class CreditController extends BaseController
* tags={"credits"}, * tags={"credits"},
* summary="Gets a new blank credit object", * summary="Gets a new blank credit object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -170,7 +169,6 @@ class CreditController extends BaseController
* tags={"credits"}, * tags={"credits"},
* summary="Adds a credit", * summary="Adds a credit",
* description="Adds an credit to the system", * description="Adds an credit to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -231,7 +229,6 @@ class CreditController extends BaseController
* tags={"credits"}, * tags={"credits"},
* summary="Shows an credit", * summary="Shows an credit",
* description="Displays an credit by id", * description="Displays an credit by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -286,7 +283,6 @@ class CreditController extends BaseController
* tags={"credits"}, * tags={"credits"},
* summary="Shows an credit for editting", * summary="Shows an credit for editting",
* description="Displays an credit by id", * description="Displays an credit by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -342,7 +338,6 @@ class CreditController extends BaseController
* tags={"Credits"}, * tags={"Credits"},
* summary="Updates an Credit", * summary="Updates an Credit",
* description="Handles the updating of an Credit by id", * description="Handles the updating of an Credit by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -410,7 +405,6 @@ class CreditController extends BaseController
* tags={"credits"}, * tags={"credits"},
* summary="Deletes a credit", * summary="Deletes a credit",
* description="Handles the deletion of an credit by id", * description="Handles the deletion of an credit by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -463,7 +457,6 @@ class CreditController extends BaseController
* tags={"credits"}, * tags={"credits"},
* summary="Performs bulk actions on an array of credits", * summary="Performs bulk actions on an array of credits",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -502,16 +495,17 @@ class CreditController extends BaseController
* ), * ),
* ) * )
*/ */
public function bulk() public function bulk(BulkCreditRequest $request)
{ {
$action = request()->input('action'); $action = $request->input('action');
$ids = request()->input('ids');
if(Ninja::isHosted() && (stripos($action, 'email') !== false) && !auth()->user()->company()->account->account_sms_verified) if(Ninja::isHosted() && (stripos($action, 'email') !== false) && !auth()->user()->company()->account->account_sms_verified)
return response(['message' => 'Please verify your account to send emails.'], 400); return response(['message' => 'Please verify your account to send emails.'], 400);
$credits = Credit::withTrashed()->whereIn('id', $this->transformKeys($ids))->company()->get(); $credits = Credit::withTrashed()
->whereIn('id', $request->ids)
->company()
->get();
if (! $credits) { if (! $credits) {
return response()->json(['message' => ctrans('texts.no_credits_found')]); return response()->json(['message' => ctrans('texts.no_credits_found')]);
@ -555,7 +549,7 @@ class CreditController extends BaseController
} }
}); });
return $this->listResponse(Credit::withTrashed()->whereIn('id', $this->transformKeys($ids))); return $this->listResponse(Credit::withTrashed()->company()->whereIn('id', $request->ids));
} }
public function action(ActionCreditRequest $request, Credit $credit, $action) public function action(ActionCreditRequest $request, Credit $credit, $action)
@ -682,7 +676,6 @@ class CreditController extends BaseController
* tags={"credits"}, * tags={"credits"},
* summary="Uploads a document to a credit", * summary="Uploads a document to a credit",
* description="Handles the uploading of a document to a credit", * description="Handles the uploading of a document to a credit",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -59,7 +59,6 @@ class DesignController extends BaseController
* tags={"designs"}, * tags={"designs"},
* summary="Gets a list of designs", * summary="Gets a list of designs",
* description="Lists designs", * description="Lists designs",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -107,7 +106,6 @@ class DesignController extends BaseController
* tags={"designs"}, * tags={"designs"},
* summary="Shows a design", * summary="Shows a design",
* description="Displays a design by id", * description="Displays a design by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -162,7 +160,6 @@ class DesignController extends BaseController
* tags={"designs"}, * tags={"designs"},
* summary="Shows a design for editting", * summary="Shows a design for editting",
* description="Displays a design by id", * description="Displays a design by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -218,7 +215,6 @@ class DesignController extends BaseController
* tags={"designs"}, * tags={"designs"},
* summary="Updates a design", * summary="Updates a design",
* description="Handles the updating of a design by id", * description="Handles the updating of a design by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -280,7 +276,6 @@ class DesignController extends BaseController
* tags={"designs"}, * tags={"designs"},
* summary="Gets a new blank design object", * summary="Gets a new blank design object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -326,7 +321,6 @@ class DesignController extends BaseController
* tags={"designs"}, * tags={"designs"},
* summary="Adds a design", * summary="Adds a design",
* description="Adds an design to a company", * description="Adds an design to a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -425,7 +419,6 @@ class DesignController extends BaseController
* tags={"designs"}, * tags={"designs"},
* summary="Deletes a design", * summary="Deletes a design",
* description="Handles the deletion of a design by id", * description="Handles the deletion of a design by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -483,7 +476,6 @@ class DesignController extends BaseController
* tags={"designs"}, * tags={"designs"},
* summary="Performs bulk actions on an array of designs", * summary="Performs bulk actions on an array of designs",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -528,7 +520,7 @@ class DesignController extends BaseController
$ids = request()->input('ids'); $ids = request()->input('ids');
$designs = Design::withTrashed()->find($this->transformKeys($ids)); $designs = Design::withTrashed()->company()->whereIn('id', $this->transformKeys($ids));
$designs->each(function ($design, $key) use ($action) { $designs->each(function ($design, $key) use ($action) {
if (auth()->user()->can('edit', $design)) { if (auth()->user()->can('edit', $design)) {
@ -536,7 +528,7 @@ class DesignController extends BaseController
} }
}); });
return $this->listResponse(Design::withTrashed()->whereIn('id', $this->transformKeys($ids))); return $this->listResponse(Design::withTrashed()->company()->whereIn('id', $this->transformKeys($ids)));
} }
public function default(DefaultDesignRequest $request) public function default(DefaultDesignRequest $request)

View File

@ -47,7 +47,6 @@ class DocumentController extends BaseController
* description="Lists documents, search and filters allow fine grained lists to be generated. * description="Lists documents, search and filters allow fine grained lists to be generated.
Query parameters can be added to performed more fine grained filtering of the documents, these are handled by the DocumentsFilters class which defines the methods available", Query parameters can be added to performed more fine grained filtering of the documents, these are handled by the DocumentsFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -57,7 +57,6 @@ class EmailController extends BaseController
* tags={"emails"}, * tags={"emails"},
* summary="Sends an email for an entity", * summary="Sends an email for an entity",
* description="Sends an email for an entity", * description="Sends an email for an entity",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* description="The template subject and body", * description="The template subject and body",

View File

@ -104,7 +104,6 @@ class ExpenseCategoryController extends BaseController
* tags={"expense_categories"}, * tags={"expense_categories"},
* summary="Gets a new blank Expens Category object", * summary="Gets a new blank Expens Category object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Response( * @OA\Response(
@ -150,7 +149,6 @@ class ExpenseCategoryController extends BaseController
* tags={"expense_categories"}, * tags={"expense_categories"},
* summary="Adds a expense category", * summary="Adds a expense category",
* description="Adds an expense category to the system", * description="Adds an expense category to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -198,7 +196,6 @@ class ExpenseCategoryController extends BaseController
* tags={"expense_categories"}, * tags={"expense_categories"},
* summary="Shows a Expens Category", * summary="Shows a Expens Category",
* description="Displays an ExpenseCategory by id", * description="Displays an ExpenseCategory by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter( * @OA\Parameter(
@ -252,7 +249,6 @@ class ExpenseCategoryController extends BaseController
* tags={"expense_categories"}, * tags={"expense_categories"},
* summary="Shows a Expens Category for editting", * summary="Shows a Expens Category for editting",
* description="Displays a Expens Category by id", * description="Displays a Expens Category by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter( * @OA\Parameter(
@ -307,7 +303,6 @@ class ExpenseCategoryController extends BaseController
* tags={"expense_categories"}, * tags={"expense_categories"},
* summary="Updates a tax rate", * summary="Updates a tax rate",
* description="Handles the updating of a tax rate by id", * description="Handles the updating of a tax rate by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter( * @OA\Parameter(
@ -365,7 +360,6 @@ class ExpenseCategoryController extends BaseController
* tags={"expense_categories"}, * tags={"expense_categories"},
* summary="Deletes a ExpenseCategory", * summary="Deletes a ExpenseCategory",
* description="Handles the deletion of an ExpenseCategory by id", * description="Handles the deletion of an ExpenseCategory by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter( * @OA\Parameter(
@ -420,7 +414,6 @@ class ExpenseCategoryController extends BaseController
* tags={"expense_categories"}, * tags={"expense_categories"},
* summary="Performs bulk actions on an array of ExpenseCategorys", * summary="Performs bulk actions on an array of ExpenseCategorys",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),

View File

@ -74,7 +74,6 @@ class ExpenseController extends BaseController
* description="Lists expenses, search and filters allow fine grained lists to be generated. * description="Lists expenses, search and filters allow fine grained lists to be generated.
Query parameters can be added to performed more fine grained filtering of the expenses, these are handled by the ExpenseFilters class which defines the methods available", Query parameters can be added to performed more fine grained filtering of the expenses, these are handled by the ExpenseFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -122,7 +121,6 @@ class ExpenseController extends BaseController
* tags={"expenses"}, * tags={"expenses"},
* summary="Shows a client", * summary="Shows a client",
* description="Displays a client by id", * description="Displays a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -177,7 +175,6 @@ class ExpenseController extends BaseController
* tags={"expenses"}, * tags={"expenses"},
* summary="Shows a client for editting", * summary="Shows a client for editting",
* description="Displays a client by id", * description="Displays a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -233,7 +230,6 @@ class ExpenseController extends BaseController
* tags={"expenses"}, * tags={"expenses"},
* summary="Updates a client", * summary="Updates a client",
* description="Handles the updating of a client by id", * description="Handles the updating of a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -298,7 +294,6 @@ class ExpenseController extends BaseController
* tags={"expenses"}, * tags={"expenses"},
* summary="Gets a new blank client object", * summary="Gets a new blank client object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -344,7 +339,6 @@ class ExpenseController extends BaseController
* tags={"expenses"}, * tags={"expenses"},
* summary="Adds a client", * summary="Adds a client",
* description="Adds an client to a company", * description="Adds an client to a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -393,7 +387,6 @@ class ExpenseController extends BaseController
* tags={"expenses"}, * tags={"expenses"},
* summary="Deletes a client", * summary="Deletes a client",
* description="Handles the deletion of a client by id", * description="Handles the deletion of a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -447,7 +440,6 @@ class ExpenseController extends BaseController
* tags={"expenses"}, * tags={"expenses"},
* summary="Performs bulk actions on an array of expenses", * summary="Performs bulk actions on an array of expenses",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -527,7 +519,6 @@ class ExpenseController extends BaseController
* tags={"expense"}, * tags={"expense"},
* summary="Uploads a document to a expense", * summary="Uploads a document to a expense",
* description="Handles the uploading of a document to a expense", * description="Handles the uploading of a document to a expense",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -32,7 +32,6 @@ class ExportController extends BaseController
* tags={"export"}, * tags={"export"},
* summary="Export data from the system", * summary="Export data from the system",
* description="Export data from the system", * description="Export data from the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Response( * @OA\Response(
* response=200, * response=200,

View File

@ -64,7 +64,6 @@ class GroupSettingController extends BaseController
* description="Lists group_settings, search and filters allow fine grained lists to be generated. * description="Lists group_settings, search and filters allow fine grained lists to be generated.
Query parameters can be added to performed more fine grained filtering of the group_settings, these are handled by the GroupSettingFilters class which defines the methods available", Query parameters can be added to performed more fine grained filtering of the group_settings, these are handled by the GroupSettingFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -110,7 +109,6 @@ class GroupSettingController extends BaseController
* tags={"group_settings"}, * tags={"group_settings"},
* summary="Gets a new blank GroupSetting object", * summary="Gets a new blank GroupSetting object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -156,7 +154,6 @@ class GroupSettingController extends BaseController
* tags={"group_settings"}, * tags={"group_settings"},
* summary="Adds a GroupSetting", * summary="Adds a GroupSetting",
* description="Adds an GroupSetting to the system", * description="Adds an GroupSetting to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -209,7 +206,6 @@ class GroupSettingController extends BaseController
* tags={"group_settings"}, * tags={"group_settings"},
* summary="Shows an GroupSetting", * summary="Shows an GroupSetting",
* description="Displays an GroupSetting by id", * description="Displays an GroupSetting by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -264,7 +260,6 @@ class GroupSettingController extends BaseController
* tags={"group_settings"}, * tags={"group_settings"},
* summary="Shows an GroupSetting for editting", * summary="Shows an GroupSetting for editting",
* description="Displays an GroupSetting by id", * description="Displays an GroupSetting by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -319,7 +314,6 @@ class GroupSettingController extends BaseController
* tags={"group_settings"}, * tags={"group_settings"},
* summary="Updates an GroupSetting", * summary="Updates an GroupSetting",
* description="Handles the updating of an GroupSetting by id", * description="Handles the updating of an GroupSetting by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -383,7 +377,6 @@ class GroupSettingController extends BaseController
* tags={"group_settings"}, * tags={"group_settings"},
* summary="Deletes a GroupSetting", * summary="Deletes a GroupSetting",
* description="Handles the deletion of an GroupSetting by id", * description="Handles the deletion of an GroupSetting by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -436,7 +429,6 @@ class GroupSettingController extends BaseController
* tags={"group_settings"}, * tags={"group_settings"},
* summary="Performs bulk actions on an array of group_settings", * summary="Performs bulk actions on an array of group_settings",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -516,7 +508,6 @@ class GroupSettingController extends BaseController
* tags={"group_settings"}, * tags={"group_settings"},
* summary="Uploads a document to a group setting", * summary="Uploads a document to a group setting",
* description="Handles the uploading of a document to a group setting", * description="Handles the uploading of a document to a group setting",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -35,7 +35,6 @@ class ImportController extends Controller
* tags={"imports"}, * tags={"imports"},
* summary="Pre Import checks - returns a reference to the job and the headers of the CSV", * summary="Pre Import checks - returns a reference to the job and the headers of the CSV",
* description="Pre Import checks - returns a reference to the job and the headers of the CSV", * description="Pre Import checks - returns a reference to the job and the headers of the CSV",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -39,7 +39,6 @@ class ImportJsonController extends BaseController
* tags={"import"}, * tags={"import"},
* summary="Import data from the system", * summary="Import data from the system",
* description="Import data from the system", * description="Import data from the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Response( * @OA\Response(
* response=200, * response=200,

View File

@ -33,7 +33,6 @@ class AppleController extends BaseController
* tags={"postmark"}, * tags={"postmark"},
* summary="Processing webhooks from Apple for in app purchases", * summary="Processing webhooks from Apple for in app purchases",
* description="Adds an credit to the system", * description="Adds an credit to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -73,7 +72,6 @@ class AppleController extends BaseController
* tags={"postmark"}, * tags={"postmark"},
* summary="Processing event webhooks from Apple for in purchase / subscription status update", * summary="Processing event webhooks from Apple for in purchase / subscription status update",
* description="Adds an credit to the system", * description="Adds an credit to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -98,7 +98,6 @@ class InvoiceController extends BaseController
* description="Lists invoices, search and filters allow fine grained lists to be generated. * description="Lists invoices, search and filters allow fine grained lists to be generated.
* *
* Query parameters can be added to performed more fine grained filtering of the invoices, these are handled by the InvoiceFilters class which defines the methods available", * Query parameters can be added to performed more fine grained filtering of the invoices, these are handled by the InvoiceFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -145,7 +144,6 @@ class InvoiceController extends BaseController
* tags={"invoices"}, * tags={"invoices"},
* summary="Gets a new blank invoice object", * summary="Gets a new blank invoice object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -191,7 +189,6 @@ class InvoiceController extends BaseController
* tags={"invoices"}, * tags={"invoices"},
* summary="Adds a invoice", * summary="Adds a invoice",
* description="Adds an invoice to the system", * description="Adds an invoice to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -260,7 +257,6 @@ class InvoiceController extends BaseController
* tags={"invoices"}, * tags={"invoices"},
* summary="Shows an invoice", * summary="Shows an invoice",
* description="Displays an invoice by id", * description="Displays an invoice by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -315,7 +311,6 @@ class InvoiceController extends BaseController
* tags={"invoices"}, * tags={"invoices"},
* summary="Shows an invoice for editting", * summary="Shows an invoice for editting",
* description="Displays an invoice by id", * description="Displays an invoice by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -371,7 +366,6 @@ class InvoiceController extends BaseController
* tags={"invoices"}, * tags={"invoices"},
* summary="Updates an invoice", * summary="Updates an invoice",
* description="Handles the updating of an invoice by id", * description="Handles the updating of an invoice by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -456,7 +450,6 @@ class InvoiceController extends BaseController
* tags={"invoices"}, * tags={"invoices"},
* summary="Deletes a invoice", * summary="Deletes a invoice",
* description="Handles the deletion of an invoice by id", * description="Handles the deletion of an invoice by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -509,7 +502,6 @@ class InvoiceController extends BaseController
* tags={"invoices"}, * tags={"invoices"},
* summary="Performs bulk actions on an array of invoices", * summary="Performs bulk actions on an array of invoices",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -637,7 +629,6 @@ class InvoiceController extends BaseController
* - archive * - archive
* - delete * - delete
* - email", * - email",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -826,7 +817,6 @@ class InvoiceController extends BaseController
* tags={"invoices"}, * tags={"invoices"},
* summary="Download a specific invoice by invitation key", * summary="Download a specific invoice by invitation key",
* description="Downloads a specific invoice", * description="Downloads a specific invoice",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -894,7 +884,6 @@ class InvoiceController extends BaseController
* tags={"invoices"}, * tags={"invoices"},
* summary="Download a specific invoice delivery notes", * summary="Download a specific invoice delivery notes",
* description="Downloads a specific invoice delivery notes", * description="Downloads a specific invoice delivery notes",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -955,7 +944,6 @@ class InvoiceController extends BaseController
* tags={"invoices"}, * tags={"invoices"},
* summary="Uploads a document to a invoice", * summary="Uploads a document to a invoice",
* description="Handles the uploading of a document to a invoice", * description="Handles the uploading of a document to a invoice",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -36,7 +36,6 @@ class LicenseController extends BaseController
* tags={"claim_license"}, * tags={"claim_license"},
* summary="Attempts to claim a white label license", * summary="Attempts to claim a white label license",
* description="Attempts to claim a white label license", * description="Attempts to claim a white label license",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter( * @OA\Parameter(
* name="license_key", * name="license_key",

View File

@ -31,7 +31,6 @@ class LogoutController extends BaseController
* tags={"logout"}, * tags={"logout"},
* summary="Gets a list of logout", * summary="Gets a list of logout",
* description="Lists all logout", * description="Lists all logout",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -46,7 +46,6 @@ class MigrationController extends BaseController
* tags={"migration"}, * tags={"migration"},
* summary="Attempts to purge a company record and all its child records", * summary="Attempts to purge a company record and all its child records",
* description="Attempts to purge a company record and all its child records", * description="Attempts to purge a company record and all its child records",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter( * @OA\Parameter(
@ -137,7 +136,6 @@ class MigrationController extends BaseController
* tags={"migration"}, * tags={"migration"},
* summary="Attempts to purge a companies child records but save the company record and its settings", * summary="Attempts to purge a companies child records but save the company record and its settings",
* description="Attempts to purge a companies child records but save the company record and its settings", * description="Attempts to purge a companies child records but save the company record and its settings",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter( * @OA\Parameter(
@ -221,7 +219,6 @@ class MigrationController extends BaseController
* tags={"migration"}, * tags={"migration"},
* summary="Starts the migration from previous version of Invoice Ninja", * summary="Starts the migration from previous version of Invoice Ninja",
* description="Starts the migration from previous version of Invoice Ninja", * description="Starts the migration from previous version of Invoice Ninja",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Password"), * @OA\Parameter(ref="#/components/parameters/X-Api-Password"),

View File

@ -43,7 +43,6 @@ class OneTimeTokenController extends BaseController
* tags={"one_time_token"}, * tags={"one_time_token"},
* summary="Attempts to create a one time token", * summary="Attempts to create a one time token",
* description="Attempts to create a one time token", * description="Attempts to create a one time token",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Response( * @OA\Response(
* response=200, * response=200,

View File

@ -80,7 +80,6 @@ class PaymentController extends BaseController
* description="Lists payments, search and filters allow fine grained lists to be generated. * description="Lists payments, search and filters allow fine grained lists to be generated.
Query parameters can be added to performed more fine grained filtering of the payments, these are handled by the PaymentFilters class which defines the methods available", Query parameters can be added to performed more fine grained filtering of the payments, these are handled by the PaymentFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -127,7 +126,6 @@ class PaymentController extends BaseController
* tags={"payments"}, * tags={"payments"},
* summary="Gets a new blank Payment object", * summary="Gets a new blank Payment object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -174,7 +172,6 @@ class PaymentController extends BaseController
* tags={"payments"}, * tags={"payments"},
* summary="Adds a Payment", * summary="Adds a Payment",
* description="Adds an Payment to the system", * description="Adds an Payment to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -226,7 +223,6 @@ class PaymentController extends BaseController
* tags={"payments"}, * tags={"payments"},
* summary="Shows an Payment", * summary="Shows an Payment",
* description="Displays an Payment by id", * description="Displays an Payment by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -282,7 +278,6 @@ class PaymentController extends BaseController
* tags={"payments"}, * tags={"payments"},
* summary="Shows an Payment for editting", * summary="Shows an Payment for editting",
* description="Displays an Payment by id", * description="Displays an Payment by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -338,7 +333,6 @@ class PaymentController extends BaseController
* tags={"payments"}, * tags={"payments"},
* summary="Updates an Payment", * summary="Updates an Payment",
* description="Handles the updating of an Payment by id", * description="Handles the updating of an Payment by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -403,7 +397,6 @@ class PaymentController extends BaseController
* tags={"payments"}, * tags={"payments"},
* summary="Deletes a Payment", * summary="Deletes a Payment",
* description="Handles the deletion of an Payment by id", * description="Handles the deletion of an Payment by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -457,7 +450,6 @@ class PaymentController extends BaseController
* tags={"payments"}, * tags={"payments"},
* summary="Performs bulk actions on an array of payments", * summary="Performs bulk actions on an array of payments",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -535,7 +527,6 @@ class PaymentController extends BaseController
- archive - archive
- delete - delete
- email", - email",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -648,7 +639,6 @@ class PaymentController extends BaseController
* tags={"payments"}, * tags={"payments"},
* summary="Adds a Refund", * summary="Adds a Refund",
* description="Adds an Refund to the system", * description="Adds an Refund to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -702,7 +692,6 @@ class PaymentController extends BaseController
* tags={"payments"}, * tags={"payments"},
* summary="Uploads a document to a payment", * summary="Uploads a document to a payment",
* description="Handles the uploading of a document to a payment", * description="Handles the uploading of a document to a payment",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -48,7 +48,6 @@ class PaymentTermController extends BaseController
* tags={"payment_terms"}, * tags={"payment_terms"},
* summary="Gets a list of payment terms", * summary="Gets a list of payment terms",
* description="Lists payment terms", * description="Lists payment terms",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -96,7 +95,6 @@ class PaymentTermController extends BaseController
* tags={"payment_terms"}, * tags={"payment_terms"},
* summary="Gets a new blank PaymentTerm object", * summary="Gets a new blank PaymentTerm object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -143,7 +141,6 @@ class PaymentTermController extends BaseController
* tags={"payment_terms"}, * tags={"payment_terms"},
* summary="Adds a Payment", * summary="Adds a Payment",
* description="Adds a Payment Term to the system", * description="Adds a Payment Term to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -189,7 +186,6 @@ class PaymentTermController extends BaseController
* tags={"payment_terms"}, * tags={"payment_terms"},
* summary="Shows a Payment Term", * summary="Shows a Payment Term",
* description="Displays an Payment Term by id", * description="Displays an Payment Term by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -240,7 +236,6 @@ class PaymentTermController extends BaseController
* tags={"payment_terms"}, * tags={"payment_terms"},
* summary="Shows an Payment Term for editting", * summary="Shows an Payment Term for editting",
* description="Displays an Payment Term by id", * description="Displays an Payment Term by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -299,7 +294,6 @@ class PaymentTermController extends BaseController
* tags={"payment_terms"}, * tags={"payment_terms"},
* summary="Updates a Payment Term", * summary="Updates a Payment Term",
* description="Handles the updating of an Payment Termby id", * description="Handles the updating of an Payment Termby id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -359,7 +353,6 @@ class PaymentTermController extends BaseController
* tags={"payment_termss"}, * tags={"payment_termss"},
* summary="Deletes a Payment Term", * summary="Deletes a Payment Term",
* description="Handles the deletion of an PaymentTerm by id", * description="Handles the deletion of an PaymentTerm by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -413,7 +406,6 @@ class PaymentTermController extends BaseController
* tags={"payment_terms"}, * tags={"payment_terms"},
* summary="Performs bulk actions on an array of payment terms", * summary="Performs bulk actions on an array of payment terms",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),

View File

@ -28,7 +28,6 @@ class PingController extends BaseController
* tags={"ping"}, * tags={"ping"},
* summary="Attempts to ping the API", * summary="Attempts to ping the API",
* description="Attempts to ping the API", * description="Attempts to ping the API",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Response( * @OA\Response(
* response=200, * response=200,
@ -60,7 +59,6 @@ class PingController extends BaseController
* tags={"health_check"}, * tags={"health_check"},
* summary="Attempts to get a health check from the API", * summary="Attempts to get a health check from the API",
* description="Attempts to get a health check from the API", * description="Attempts to get a health check from the API",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Response( * @OA\Response(
* response=200, * response=200,

View File

@ -47,7 +47,6 @@ class PostMarkController extends BaseController
* tags={"postmark"}, * tags={"postmark"},
* summary="Processing webhooks from PostMark", * summary="Processing webhooks from PostMark",
* description="Adds an credit to the system", * description="Adds an credit to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -68,7 +68,6 @@ class PreviewController extends BaseController
* tags={"preview"}, * tags={"preview"},
* summary="Returns a pdf preview", * summary="Returns a pdf preview",
* description="Returns a pdf preview.", * description="Returns a pdf preview.",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Response( * @OA\Response(
* response=200, * response=200,

View File

@ -79,7 +79,6 @@ class PreviewPurchaseOrderController extends BaseController
* tags={"preview"}, * tags={"preview"},
* summary="Returns a pdf preview for purchase order", * summary="Returns a pdf preview for purchase order",
* description="Returns a pdf preview for purchase order.", * description="Returns a pdf preview for purchase order.",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Response( * @OA\Response(
* response=200, * response=200,

View File

@ -60,7 +60,6 @@ class ProductController extends BaseController
* description="Lists products, search and filters allow fine grained lists to be generated. * description="Lists products, search and filters allow fine grained lists to be generated.
Query parameters can be added to performed more fine grained filtering of the products, these are handled by the ProductFilters class which defines the methods available", Query parameters can be added to performed more fine grained filtering of the products, these are handled by the ProductFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -107,7 +106,6 @@ class ProductController extends BaseController
* tags={"products"}, * tags={"products"},
* summary="Gets a new blank Product object", * summary="Gets a new blank Product object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -153,7 +151,6 @@ class ProductController extends BaseController
* tags={"products"}, * tags={"products"},
* summary="Adds a Product", * summary="Adds a Product",
* description="Adds an Product to the system", * description="Adds an Product to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -199,7 +196,6 @@ class ProductController extends BaseController
* tags={"products"}, * tags={"products"},
* summary="Shows an Product", * summary="Shows an Product",
* description="Displays an Product by id", * description="Displays an Product by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -253,7 +249,6 @@ class ProductController extends BaseController
* tags={"products"}, * tags={"products"},
* summary="Shows an Product for editting", * summary="Shows an Product for editting",
* description="Displays an Product by id", * description="Displays an Product by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -308,7 +303,6 @@ class ProductController extends BaseController
* tags={"products"}, * tags={"products"},
* summary="Updates an Product", * summary="Updates an Product",
* description="Handles the updating of an Product by id", * description="Handles the updating of an Product by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -370,7 +364,6 @@ class ProductController extends BaseController
* tags={"products"}, * tags={"products"},
* summary="Deletes a Product", * summary="Deletes a Product",
* description="Handles the deletion of an Product by id", * description="Handles the deletion of an Product by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -424,7 +417,6 @@ class ProductController extends BaseController
* tags={"products"}, * tags={"products"},
* summary="Performs bulk actions on an array of products", * summary="Performs bulk actions on an array of products",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -496,7 +488,6 @@ class ProductController extends BaseController
* tags={"products"}, * tags={"products"},
* summary="Uploads a document to a product", * summary="Uploads a document to a product",
* description="Handles the uploading of a document to a product", * description="Handles the uploading of a document to a product",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -63,7 +63,6 @@ class ProjectController extends BaseController
* tags={"projects"}, * tags={"projects"},
* summary="Gets a list of projects", * summary="Gets a list of projects",
* description="Lists projects", * description="Lists projects",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -111,7 +110,6 @@ class ProjectController extends BaseController
* tags={"projects"}, * tags={"projects"},
* summary="Shows a project", * summary="Shows a project",
* description="Displays a project by id", * description="Displays a project by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -166,7 +164,6 @@ class ProjectController extends BaseController
* tags={"projects"}, * tags={"projects"},
* summary="Shows a project for editting", * summary="Shows a project for editting",
* description="Displays a project by id", * description="Displays a project by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -222,7 +219,6 @@ class ProjectController extends BaseController
* tags={"projects"}, * tags={"projects"},
* summary="Updates a project", * summary="Updates a project",
* description="Handles the updating of a project by id", * description="Handles the updating of a project by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -289,7 +285,6 @@ class ProjectController extends BaseController
* tags={"projects"}, * tags={"projects"},
* summary="Gets a new blank project object", * summary="Gets a new blank project object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -335,7 +330,6 @@ class ProjectController extends BaseController
* tags={"projects"}, * tags={"projects"},
* summary="Adds a project", * summary="Adds a project",
* description="Adds an project to a company", * description="Adds an project to a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -393,7 +387,6 @@ class ProjectController extends BaseController
* tags={"projects"}, * tags={"projects"},
* summary="Deletes a project", * summary="Deletes a project",
* description="Handles the deletion of a project by id", * description="Handles the deletion of a project by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -450,7 +443,6 @@ class ProjectController extends BaseController
* tags={"projects"}, * tags={"projects"},
* summary="Performs bulk actions on an array of projects", * summary="Performs bulk actions on an array of projects",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -521,7 +513,6 @@ class ProjectController extends BaseController
* tags={"projects"}, * tags={"projects"},
* summary="Uploads a document to a project", * summary="Uploads a document to a project",
* description="Handles the uploading of a document to a project", * description="Handles the uploading of a document to a project",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -71,7 +71,6 @@ class PurchaseOrderController extends BaseController
* description="Lists purchase orders, search and filters allow fine grained lists to be generated. * description="Lists purchase orders, search and filters allow fine grained lists to be generated.
* *
* Query parameters can be added to performed more fine grained filtering of the purchase orders, these are handled by the PurchaseOrderFilters class which defines the methods available", * Query parameters can be added to performed more fine grained filtering of the purchase orders, these are handled by the PurchaseOrderFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -116,7 +115,6 @@ class PurchaseOrderController extends BaseController
* tags={"purchase_orders"}, * tags={"purchase_orders"},
* summary="Gets a new blank purchase order object", * summary="Gets a new blank purchase order object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -161,7 +159,6 @@ class PurchaseOrderController extends BaseController
* tags={"purhcase_orders"}, * tags={"purhcase_orders"},
* summary="Adds a purchase order", * summary="Adds a purchase order",
* description="Adds an purchase order to the system", * description="Adds an purchase order to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -215,7 +212,6 @@ class PurchaseOrderController extends BaseController
* tags={"purchase_orders"}, * tags={"purchase_orders"},
* summary="Shows an purcase orders", * summary="Shows an purcase orders",
* description="Displays an purchase order by id", * description="Displays an purchase order by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -269,7 +265,6 @@ class PurchaseOrderController extends BaseController
* tags={"purchase_orders"}, * tags={"purchase_orders"},
* summary="Shows an purchase order for editting", * summary="Shows an purchase order for editting",
* description="Displays an purchase order by id", * description="Displays an purchase order by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -324,7 +319,6 @@ class PurchaseOrderController extends BaseController
* tags={"purchase_orders"}, * tags={"purchase_orders"},
* summary="Updates an purchase order", * summary="Updates an purchase order",
* description="Handles the updating of an purchase order by id", * description="Handles the updating of an purchase order by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -391,7 +385,6 @@ class PurchaseOrderController extends BaseController
* tags={"purchase_orders"}, * tags={"purchase_orders"},
* summary="Deletes a purchase order", * summary="Deletes a purchase order",
* description="Handles the deletion of an purchase orders by id", * description="Handles the deletion of an purchase orders by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -444,7 +437,6 @@ class PurchaseOrderController extends BaseController
* tags={"purchase_orders"}, * tags={"purchase_orders"},
* summary="Performs bulk actions on an array of purchase_orders", * summary="Performs bulk actions on an array of purchase_orders",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -557,7 +549,6 @@ class PurchaseOrderController extends BaseController
* - archive * - archive
* - delete * - delete
* - email", * - email",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -723,7 +714,6 @@ class PurchaseOrderController extends BaseController
* tags={"purchase_orders"}, * tags={"purchase_orders"},
* summary="Uploads a document to a purchase_orders", * summary="Uploads a document to a purchase_orders",
* description="Handles the uploading of a document to a purchase_order", * description="Handles the uploading of a document to a purchase_order",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -95,7 +95,6 @@ class QuoteController extends BaseController
* description="Lists quotes, search and filters allow fine grained lists to be generated. * description="Lists quotes, search and filters allow fine grained lists to be generated.
* *
* Query parameters can be added to performed more fine grained filtering of the quotes, these are handled by the QuoteFilters class which defines the methods available", * Query parameters can be added to performed more fine grained filtering of the quotes, these are handled by the QuoteFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -140,7 +139,6 @@ class QuoteController extends BaseController
* tags={"quotes"}, * tags={"quotes"},
* summary="Gets a new blank Quote object", * summary="Gets a new blank Quote object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -187,7 +185,6 @@ class QuoteController extends BaseController
* tags={"quotes"}, * tags={"quotes"},
* summary="Adds a Quote", * summary="Adds a Quote",
* description="Adds an Quote to the system", * description="Adds an Quote to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -243,7 +240,6 @@ class QuoteController extends BaseController
* tags={"quotes"}, * tags={"quotes"},
* summary="Shows an Quote", * summary="Shows an Quote",
* description="Displays an Quote by id", * description="Displays an Quote by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -299,7 +295,6 @@ class QuoteController extends BaseController
* tags={"quotes"}, * tags={"quotes"},
* summary="Shows an Quote for editting", * summary="Shows an Quote for editting",
* description="Displays an Quote by id", * description="Displays an Quote by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -355,7 +350,6 @@ class QuoteController extends BaseController
* tags={"quotes"}, * tags={"quotes"},
* summary="Updates an Quote", * summary="Updates an Quote",
* description="Handles the updating of an Quote by id", * description="Handles the updating of an Quote by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -424,7 +418,6 @@ class QuoteController extends BaseController
* tags={"quotes"}, * tags={"quotes"},
* summary="Deletes a Quote", * summary="Deletes a Quote",
* description="Handles the deletion of an Quote by id", * description="Handles the deletion of an Quote by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -478,7 +471,6 @@ class QuoteController extends BaseController
* tags={"quotes"}, * tags={"quotes"},
* summary="Performs bulk actions on an array of quotes", * summary="Performs bulk actions on an array of quotes",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -635,7 +627,6 @@ class QuoteController extends BaseController
- convert - convert
- convert_to_invoice - convert_to_invoice
- email", - email",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -822,7 +813,6 @@ class QuoteController extends BaseController
* tags={"quotes"}, * tags={"quotes"},
* summary="Uploads a document to a quote", * summary="Uploads a document to a quote",
* description="Handles the uploading of a document to a quote", * description="Handles the uploading of a document to a quote",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -74,7 +74,6 @@ class RecurringExpenseController extends BaseController
* description="Lists recurring_expenses, search and filters allow fine grained lists to be generated. * description="Lists recurring_expenses, search and filters allow fine grained lists to be generated.
Query parameters can be added to performed more fine grained filtering of the recurring_expenses, these are handled by the RecurringExpenseFilters class which defines the methods available", Query parameters can be added to performed more fine grained filtering of the recurring_expenses, these are handled by the RecurringExpenseFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -122,7 +121,6 @@ class RecurringExpenseController extends BaseController
* tags={"recurring_expenses"}, * tags={"recurring_expenses"},
* summary="Shows a client", * summary="Shows a client",
* description="Displays a client by id", * description="Displays a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -177,7 +175,6 @@ class RecurringExpenseController extends BaseController
* tags={"recurring_expenses"}, * tags={"recurring_expenses"},
* summary="Shows a client for editting", * summary="Shows a client for editting",
* description="Displays a client by id", * description="Displays a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -233,7 +230,6 @@ class RecurringExpenseController extends BaseController
* tags={"recurring_expenses"}, * tags={"recurring_expenses"},
* summary="Updates a client", * summary="Updates a client",
* description="Handles the updating of a client by id", * description="Handles the updating of a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -299,7 +295,6 @@ class RecurringExpenseController extends BaseController
* tags={"recurring_expenses"}, * tags={"recurring_expenses"},
* summary="Gets a new blank client object", * summary="Gets a new blank client object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -345,7 +340,6 @@ class RecurringExpenseController extends BaseController
* tags={"recurring_expenses"}, * tags={"recurring_expenses"},
* summary="Adds a client", * summary="Adds a client",
* description="Adds an client to a company", * description="Adds an client to a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -395,7 +389,6 @@ class RecurringExpenseController extends BaseController
* tags={"recurring_expenses"}, * tags={"recurring_expenses"},
* summary="Deletes a client", * summary="Deletes a client",
* description="Handles the deletion of a client by id", * description="Handles the deletion of a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -449,7 +442,6 @@ class RecurringExpenseController extends BaseController
* tags={"recurring_expenses"}, * tags={"recurring_expenses"},
* summary="Performs bulk actions on an array of recurring_expenses", * summary="Performs bulk actions on an array of recurring_expenses",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -567,7 +559,6 @@ class RecurringExpenseController extends BaseController
* tags={"recurring_expense"}, * tags={"recurring_expense"},
* summary="Uploads a document to a recurring_expense", * summary="Uploads a document to a recurring_expense",
* description="Handles the uploading of a document to a recurring_expense", * description="Handles the uploading of a document to a recurring_expense",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -81,7 +81,6 @@ class RecurringInvoiceController extends BaseController
* description="Lists recurring_invoices, search and filters allow fine grained lists to be generated. * description="Lists recurring_invoices, search and filters allow fine grained lists to be generated.
Query parameters can be added to performed more fine grained filtering of the recurring_invoices, these are handled by the RecurringInvoiceFilters class which defines the methods available", Query parameters can be added to performed more fine grained filtering of the recurring_invoices, these are handled by the RecurringInvoiceFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -128,7 +127,6 @@ class RecurringInvoiceController extends BaseController
* tags={"recurring_invoices"}, * tags={"recurring_invoices"},
* summary="Gets a new blank RecurringInvoice object", * summary="Gets a new blank RecurringInvoice object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -175,7 +173,6 @@ class RecurringInvoiceController extends BaseController
* tags={"recurring_invoices"}, * tags={"recurring_invoices"},
* summary="Adds a RecurringInvoice", * summary="Adds a RecurringInvoice",
* description="Adds an RecurringInvoice to the system", * description="Adds an RecurringInvoice to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -228,7 +225,6 @@ class RecurringInvoiceController extends BaseController
* tags={"recurring_invoices"}, * tags={"recurring_invoices"},
* summary="Shows an RecurringInvoice", * summary="Shows an RecurringInvoice",
* description="Displays an RecurringInvoice by id", * description="Displays an RecurringInvoice by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -284,7 +280,6 @@ class RecurringInvoiceController extends BaseController
* tags={"recurring_invoices"}, * tags={"recurring_invoices"},
* summary="Shows an RecurringInvoice for editting", * summary="Shows an RecurringInvoice for editting",
* description="Displays an RecurringInvoice by id", * description="Displays an RecurringInvoice by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -340,7 +335,6 @@ class RecurringInvoiceController extends BaseController
* tags={"recurring_invoices"}, * tags={"recurring_invoices"},
* summary="Updates an RecurringInvoice", * summary="Updates an RecurringInvoice",
* description="Handles the updating of an RecurringInvoice by id", * description="Handles the updating of an RecurringInvoice by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -410,7 +404,6 @@ class RecurringInvoiceController extends BaseController
* tags={"recurring_invoices"}, * tags={"recurring_invoices"},
* summary="Deletes a RecurringInvoice", * summary="Deletes a RecurringInvoice",
* description="Handles the deletion of an RecurringInvoice by id", * description="Handles the deletion of an RecurringInvoice by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -459,7 +452,6 @@ class RecurringInvoiceController extends BaseController
* tags={"invoices"}, * tags={"invoices"},
* summary="Download a specific invoice by invitation key", * summary="Download a specific invoice by invitation key",
* description="Downloads a specific invoice", * description="Downloads a specific invoice",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -521,7 +513,6 @@ class RecurringInvoiceController extends BaseController
* tags={"recurring_invoices"}, * tags={"recurring_invoices"},
* summary="Performs bulk actions on an array of recurring_invoices", * summary="Performs bulk actions on an array of recurring_invoices",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -599,7 +590,6 @@ class RecurringInvoiceController extends BaseController
- archive - archive
- delete - delete
- email", - email",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -727,7 +717,6 @@ class RecurringInvoiceController extends BaseController
* tags={"recurring_invoices"}, * tags={"recurring_invoices"},
* summary="Uploads a document to a recurring_invoice", * summary="Uploads a document to a recurring_invoice",
* description="Handles the uploading of a document to a recurring_invoice", * description="Handles the uploading of a document to a recurring_invoice",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -77,7 +77,6 @@ class RecurringQuoteController extends BaseController
* description="Lists recurring_quotes, search and filters allow fine grained lists to be generated. * description="Lists recurring_quotes, search and filters allow fine grained lists to be generated.
Query parameters can be added to performed more fine grained filtering of the recurring_quotes, these are handled by the RecurringQuoteFilters class which defines the methods available", Query parameters can be added to performed more fine grained filtering of the recurring_quotes, these are handled by the RecurringQuoteFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -123,7 +122,6 @@ class RecurringQuoteController extends BaseController
* tags={"recurring_quotes"}, * tags={"recurring_quotes"},
* summary="Gets a new blank RecurringQuote object", * summary="Gets a new blank RecurringQuote object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -169,7 +167,6 @@ class RecurringQuoteController extends BaseController
* tags={"recurring_quotes"}, * tags={"recurring_quotes"},
* summary="Adds a RecurringQuote", * summary="Adds a RecurringQuote",
* description="Adds an RecurringQuote to the system", * description="Adds an RecurringQuote to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -216,7 +213,6 @@ class RecurringQuoteController extends BaseController
* tags={"recurring_quotes"}, * tags={"recurring_quotes"},
* summary="Shows an RecurringQuote", * summary="Shows an RecurringQuote",
* description="Displays an RecurringQuote by id", * description="Displays an RecurringQuote by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -272,7 +268,6 @@ class RecurringQuoteController extends BaseController
* tags={"recurring_quotes"}, * tags={"recurring_quotes"},
* summary="Shows an RecurringQuote for editting", * summary="Shows an RecurringQuote for editting",
* description="Displays an RecurringQuote by id", * description="Displays an RecurringQuote by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -328,7 +323,6 @@ class RecurringQuoteController extends BaseController
* tags={"recurring_quotes"}, * tags={"recurring_quotes"},
* summary="Updates an RecurringQuote", * summary="Updates an RecurringQuote",
* description="Handles the updating of an RecurringQuote by id", * description="Handles the updating of an RecurringQuote by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -391,7 +385,6 @@ class RecurringQuoteController extends BaseController
* tags={"recurring_quotes"}, * tags={"recurring_quotes"},
* summary="Deletes a RecurringQuote", * summary="Deletes a RecurringQuote",
* description="Handles the deletion of an RecurringQuote by id", * description="Handles the deletion of an RecurringQuote by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -445,7 +438,6 @@ class RecurringQuoteController extends BaseController
* tags={"recurring_quotes"}, * tags={"recurring_quotes"},
* summary="Performs bulk actions on an array of recurring_quotes", * summary="Performs bulk actions on an array of recurring_quotes",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -524,7 +516,6 @@ class RecurringQuoteController extends BaseController
- archive - archive
- delete - delete
- email", - email",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -36,7 +36,6 @@ class ClientContactReportController extends BaseController
* tags={"reports"}, * tags={"reports"},
* summary="Contact reports", * summary="Contact reports",
* description="Export contact reports", * description="Export contact reports",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* required=true, * required=true,

View File

@ -37,7 +37,6 @@ class ClientReportController extends BaseController
* tags={"reports"}, * tags={"reports"},
* summary="Client reports", * summary="Client reports",
* description="Export client reports", * description="Export client reports",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* required=true, * required=true,

View File

@ -36,7 +36,6 @@ class CreditReportController extends BaseController
* tags={"reports"}, * tags={"reports"},
* summary="Credit reports", * summary="Credit reports",
* description="Export credit reports", * description="Export credit reports",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* required=true, * required=true,

View File

@ -36,7 +36,6 @@ class DocumentReportController extends BaseController
* tags={"reports"}, * tags={"reports"},
* summary="Document reports", * summary="Document reports",
* description="Export document reports", * description="Export document reports",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* required=true, * required=true,

View File

@ -37,7 +37,6 @@ class ExpenseReportController extends BaseController
* tags={"reports"}, * tags={"reports"},
* summary="Expense reports", * summary="Expense reports",
* description="Export expense reports", * description="Export expense reports",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* required=true, * required=true,

View File

@ -36,7 +36,6 @@ class InvoiceItemReportController extends BaseController
* tags={"reports"}, * tags={"reports"},
* summary="Invoice item reports", * summary="Invoice item reports",
* description="Export invoice item reports", * description="Export invoice item reports",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* required=true, * required=true,

View File

@ -36,7 +36,6 @@ class InvoiceReportController extends BaseController
* tags={"reports"}, * tags={"reports"},
* summary="Invoice reports", * summary="Invoice reports",
* description="Export invoice reports", * description="Export invoice reports",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* required=true, * required=true,

View File

@ -37,7 +37,6 @@ class PaymentReportController extends BaseController
* tags={"reports"}, * tags={"reports"},
* summary="Payment reports", * summary="Payment reports",
* description="Export payment reports", * description="Export payment reports",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* required=true, * required=true,

View File

@ -37,7 +37,6 @@ class ProductReportController extends BaseController
* tags={"reports"}, * tags={"reports"},
* summary="Product reports", * summary="Product reports",
* description="Export product reports", * description="Export product reports",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* required=true, * required=true,

View File

@ -39,7 +39,6 @@ class ProductSalesReportController extends BaseController
* tags={"reports"}, * tags={"reports"},
* summary="Product Salesreports", * summary="Product Salesreports",
* description="Export product sales reports", * description="Export product sales reports",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* required=true, * required=true,

View File

@ -38,7 +38,6 @@ class ProfitAndLossController extends BaseController
* tags={"reports"}, * tags={"reports"},
* summary="Profit loss reports", * summary="Profit loss reports",
* description="Profit loss report", * description="Profit loss report",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* required=true, * required=true,

View File

@ -36,7 +36,6 @@ class QuoteItemReportController extends BaseController
* tags={"reports"}, * tags={"reports"},
* summary="Quote item reports", * summary="Quote item reports",
* description="Export Quote item reports", * description="Export Quote item reports",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* required=true, * required=true,

View File

@ -36,7 +36,6 @@ class QuoteReportController extends BaseController
* tags={"reports"}, * tags={"reports"},
* summary="Quote reports", * summary="Quote reports",
* description="Export quote reports", * description="Export quote reports",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* required=true, * required=true,

View File

@ -36,7 +36,6 @@ class RecurringInvoiceReportController extends BaseController
* tags={"reports"}, * tags={"reports"},
* summary="Recurring Invoice reports", * summary="Recurring Invoice reports",
* description="Export recurring invoice reports", * description="Export recurring invoice reports",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* required=true, * required=true,

View File

@ -36,7 +36,6 @@ class TaskReportController extends BaseController
* tags={"reports"}, * tags={"reports"},
* summary="Task reports", * summary="Task reports",
* description="Export task reports", * description="Export task reports",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* required=true, * required=true,

View File

@ -46,7 +46,6 @@ class SelfUpdateController extends BaseController
* tags={"update"}, * tags={"update"},
* summary="Performs a system update", * summary="Performs a system update",
* description="Performs a system update", * description="Performs a system update",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Password"), * @OA\Parameter(ref="#/components/parameters/X-Api-Password"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),

View File

@ -36,7 +36,6 @@ class StaticController extends BaseController
* summary="Gets a list of statics", * summary="Gets a list of statics",
* description="Lists all statics", * description="Lists all statics",
* *
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -57,7 +57,6 @@ class SubscriptionController extends BaseController
* summary="Gets a list of subscriptions", * summary="Gets a list of subscriptions",
* description="Lists subscriptions.", * description="Lists subscriptions.",
* *
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -102,7 +101,6 @@ class SubscriptionController extends BaseController
* tags={"subscriptions"}, * tags={"subscriptions"},
* summary="Gets a new blank subscriptions object", * summary="Gets a new blank subscriptions object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -148,7 +146,6 @@ class SubscriptionController extends BaseController
* tags={"subscriptions"}, * tags={"subscriptions"},
* summary="Adds a subscriptions", * summary="Adds a subscriptions",
* description="Adds an subscriptions to the system", * description="Adds an subscriptions to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -197,7 +194,6 @@ class SubscriptionController extends BaseController
* tags={"subscriptions"}, * tags={"subscriptions"},
* summary="Shows an subscriptions", * summary="Shows an subscriptions",
* description="Displays an subscriptions by id", * description="Displays an subscriptions by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -252,7 +248,6 @@ class SubscriptionController extends BaseController
* tags={"subscriptions"}, * tags={"subscriptions"},
* summary="Shows an subscriptions for editting", * summary="Shows an subscriptions for editting",
* description="Displays an subscriptions by id", * description="Displays an subscriptions by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -308,7 +303,6 @@ class SubscriptionController extends BaseController
* tags={"subscriptions"}, * tags={"subscriptions"},
* summary="Updates an subscriptions", * summary="Updates an subscriptions",
* description="Handles the updating of an subscriptions by id", * description="Handles the updating of an subscriptions by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -372,7 +366,6 @@ class SubscriptionController extends BaseController
* tags={"subscriptions"}, * tags={"subscriptions"},
* summary="Deletes a subscriptions", * summary="Deletes a subscriptions",
* description="Handles the deletion of an subscriptions by id", * description="Handles the deletion of an subscriptions by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -426,7 +419,6 @@ class SubscriptionController extends BaseController
* tags={"subscriptions"}, * tags={"subscriptions"},
* summary="Performs bulk actions on an array of subscriptions", * summary="Performs bulk actions on an array of subscriptions",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),

View File

@ -18,7 +18,6 @@ class SendingController extends Controller
* tags={"support"}, * tags={"support"},
* summary="Sends a support message to Invoice Ninja team", * summary="Sends a support message to Invoice Ninja team",
* description="Allows a user to send a support message to the Invoice Ninja Team", * description="Allows a user to send a support message to the Invoice Ninja Team",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(

View File

@ -33,7 +33,6 @@ class SystemLogController extends BaseController
* description="Lists system logs, search and filters allow fine grained lists to be generated. * description="Lists system logs, search and filters allow fine grained lists to be generated.
* *
* Query parameters can be added to performed more fine grained filtering of the system logs, these are handled by the SystemLogFilters class which defines the methods available", * Query parameters can be added to performed more fine grained filtering of the system logs, these are handled by the SystemLogFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -113,7 +112,6 @@ class SystemLogController extends BaseController
* tags={"system_logs"}, * tags={"system_logs"},
* summary="Shows a system_logs", * summary="Shows a system_logs",
* description="Displays a system_logs by id", * description="Displays a system_logs by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -75,7 +75,6 @@ class TaskController extends BaseController
* description="Lists tasks, search and filters allow fine grained lists to be generated. * description="Lists tasks, search and filters allow fine grained lists to be generated.
* *
* Query parameters can be added to performed more fine grained filtering of the tasks, these are handled by the TaskFilters class which defines the methods available", * Query parameters can be added to performed more fine grained filtering of the tasks, these are handled by the TaskFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -123,7 +122,6 @@ class TaskController extends BaseController
* tags={"tasks"}, * tags={"tasks"},
* summary="Shows a client", * summary="Shows a client",
* description="Displays a client by id", * description="Displays a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -178,7 +176,6 @@ class TaskController extends BaseController
* tags={"tasks"}, * tags={"tasks"},
* summary="Shows a client for editting", * summary="Shows a client for editting",
* description="Displays a client by id", * description="Displays a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -234,7 +231,6 @@ class TaskController extends BaseController
* tags={"tasks"}, * tags={"tasks"},
* summary="Updates a client", * summary="Updates a client",
* description="Handles the updating of a client by id", * description="Handles the updating of a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -304,7 +300,6 @@ class TaskController extends BaseController
* tags={"tasks"}, * tags={"tasks"},
* summary="Gets a new blank client object", * summary="Gets a new blank client object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -350,7 +345,6 @@ class TaskController extends BaseController
* tags={"tasks"}, * tags={"tasks"},
* summary="Adds a client", * summary="Adds a client",
* description="Adds an client to a company", * description="Adds an client to a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -400,7 +394,6 @@ class TaskController extends BaseController
* tags={"tasks"}, * tags={"tasks"},
* summary="Deletes a client", * summary="Deletes a client",
* description="Handles the deletion of a client by id", * description="Handles the deletion of a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -455,7 +448,6 @@ class TaskController extends BaseController
* tags={"tasks"}, * tags={"tasks"},
* summary="Performs bulk actions on an array of tasks", * summary="Performs bulk actions on an array of tasks",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -535,7 +527,6 @@ class TaskController extends BaseController
* tags={"tasks"}, * tags={"tasks"},
* summary="Uploads a document to a task", * summary="Uploads a document to a task",
* description="Handles the uploading of a document to a task", * description="Handles the uploading of a document to a task",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -598,7 +589,6 @@ class TaskController extends BaseController
* tags={"tasks"}, * tags={"tasks"},
* summary="Sort tasks on KanBan", * summary="Sort tasks on KanBan",
* description="Sorts tasks after drag and drop on the KanBan.", * description="Sorts tasks after drag and drop on the KanBan.",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -47,7 +47,6 @@ class TaskSchedulerController extends BaseController
* tags={"task_schedulers"}, * tags={"task_schedulers"},
* summary="Task Scheduler Index", * summary="Task Scheduler Index",
* description="Get all schedulers with associated jobs", * description="Get all schedulers with associated jobs",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Response( * @OA\Response(
* response=200, * response=200,
@ -84,7 +83,6 @@ class TaskSchedulerController extends BaseController
* tags={"task_schedulers"}, * tags={"task_schedulers"},
* summary="Gets a new blank scheduler object", * summary="Gets a new blank scheduler object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -163,7 +161,6 @@ class TaskSchedulerController extends BaseController
* tags={"task_schedulers"}, * tags={"task_schedulers"},
* summary="Show given scheduler", * summary="Show given scheduler",
* description="Get scheduler with associated job", * description="Get scheduler with associated job",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter( * @OA\Parameter(
* name="id", * name="id",
@ -251,7 +248,6 @@ class TaskSchedulerController extends BaseController
* tags={"task_schedulers"}, * tags={"task_schedulers"},
* summary="Destroy Task Scheduler", * summary="Destroy Task Scheduler",
* description="Destroy task scheduler and its associated job", * description="Destroy task scheduler and its associated job",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter( * @OA\Parameter(
* name="id", * name="id",
@ -298,7 +294,6 @@ class TaskSchedulerController extends BaseController
* tags={"task_schedulers"}, * tags={"task_schedulers"},
* summary="Performs bulk actions on an array of task_schedulers", * summary="Performs bulk actions on an array of task_schedulers",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),

View File

@ -49,7 +49,6 @@ class TaskStatusController extends BaseController
* tags={"task_status"}, * tags={"task_status"},
* summary="Gets a list of task statuses", * summary="Gets a list of task statuses",
* description="Lists task statuses", * description="Lists task statuses",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -97,7 +96,6 @@ class TaskStatusController extends BaseController
* tags={"task_status"}, * tags={"task_status"},
* summary="Gets a new blank TaskStatus object", * summary="Gets a new blank TaskStatus object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -144,7 +142,6 @@ class TaskStatusController extends BaseController
* tags={"task_status"}, * tags={"task_status"},
* summary="Adds a TaskStatus", * summary="Adds a TaskStatus",
* description="Adds a TaskStatusto the system", * description="Adds a TaskStatusto the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -193,7 +190,6 @@ class TaskStatusController extends BaseController
* tags={"task_status"}, * tags={"task_status"},
* summary="Shows a TaskStatus Term", * summary="Shows a TaskStatus Term",
* description="Displays an TaskStatusby id", * description="Displays an TaskStatusby id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -244,7 +240,6 @@ class TaskStatusController extends BaseController
* tags={"task_status"}, * tags={"task_status"},
* summary="Shows an TaskStatusfor editting", * summary="Shows an TaskStatusfor editting",
* description="Displays an TaskStatusby id", * description="Displays an TaskStatusby id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -303,7 +298,6 @@ class TaskStatusController extends BaseController
* tags={"task_status"}, * tags={"task_status"},
* summary="Updates a TaskStatus Term", * summary="Updates a TaskStatus Term",
* description="Handles the updating of an TaskStatus Termby id", * description="Handles the updating of an TaskStatus Termby id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -363,7 +357,6 @@ class TaskStatusController extends BaseController
* tags={"task_statuss"}, * tags={"task_statuss"},
* summary="Deletes a TaskStatus Term", * summary="Deletes a TaskStatus Term",
* description="Handles the deletion of an TaskStatus by id", * description="Handles the deletion of an TaskStatus by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -417,7 +410,6 @@ class TaskStatusController extends BaseController
* tags={"task_status"}, * tags={"task_status"},
* summary="Performs bulk actions on an array of task statuses", * summary="Performs bulk actions on an array of task statuses",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),

View File

@ -101,7 +101,6 @@ class TaxRateController extends BaseController
* tags={"tax_rates"}, * tags={"tax_rates"},
* summary="Gets a new blank Tax Rate object", * summary="Gets a new blank Tax Rate object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Response( * @OA\Response(
@ -161,7 +160,6 @@ class TaxRateController extends BaseController
* tags={"tax_rates"}, * tags={"tax_rates"},
* summary="Shows a Tax Rate", * summary="Shows a Tax Rate",
* description="Displays an TaxRate by id", * description="Displays an TaxRate by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter( * @OA\Parameter(
@ -215,7 +213,6 @@ class TaxRateController extends BaseController
* tags={"tax_rates"}, * tags={"tax_rates"},
* summary="Shows a Tax Rate for editting", * summary="Shows a Tax Rate for editting",
* description="Displays a Tax Rate by id", * description="Displays a Tax Rate by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter( * @OA\Parameter(
@ -270,7 +267,6 @@ class TaxRateController extends BaseController
* tags={"tax_rates"}, * tags={"tax_rates"},
* summary="Updates a tax rate", * summary="Updates a tax rate",
* description="Handles the updating of a tax rate by id", * description="Handles the updating of a tax rate by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter( * @OA\Parameter(
@ -328,7 +324,6 @@ class TaxRateController extends BaseController
* tags={"tax_rates"}, * tags={"tax_rates"},
* summary="Deletes a TaxRate", * summary="Deletes a TaxRate",
* description="Handles the deletion of an TaxRate by id", * description="Handles the deletion of an TaxRate by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter( * @OA\Parameter(
@ -383,7 +378,6 @@ class TaxRateController extends BaseController
* tags={"tax_rates"}, * tags={"tax_rates"},
* summary="Performs bulk actions on an array of TaxRates", * summary="Performs bulk actions on an array of TaxRates",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),

View File

@ -42,7 +42,6 @@ class TemplateController extends BaseController
* tags={"templates"}, * tags={"templates"},
* summary="Returns a entity template with the template variables replaced with the Entities", * summary="Returns a entity template with the template variables replaced with the Entities",
* description="Returns a entity template with the template variables replaced with the Entities", * description="Returns a entity template with the template variables replaced with the Entities",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\RequestBody( * @OA\RequestBody(
* description="The template subject and body", * description="The template subject and body",

View File

@ -64,7 +64,6 @@ class TokenController extends BaseController
* description="Lists company tokens. * description="Lists company tokens.
* *
* Query parameters can be added to performed more fine grained filtering of the tokens, these are handled by the TokenFilters class which defines the methods available", * Query parameters can be added to performed more fine grained filtering of the tokens, these are handled by the TokenFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -114,7 +113,6 @@ class TokenController extends BaseController
* tags={"tokens"}, * tags={"tokens"},
* summary="Shows a token", * summary="Shows a token",
* description="Displays a token by id", * description="Displays a token by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -169,7 +167,6 @@ class TokenController extends BaseController
* tags={"tokens"}, * tags={"tokens"},
* summary="Shows a token for editting", * summary="Shows a token for editting",
* description="Displays a token by id", * description="Displays a token by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -227,7 +224,6 @@ class TokenController extends BaseController
* tags={"tokens"}, * tags={"tokens"},
* summary="Updates a token", * summary="Updates a token",
* description="Handles the updating of a token by id", * description="Handles the updating of a token by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -290,7 +286,6 @@ class TokenController extends BaseController
* tags={"tokens"}, * tags={"tokens"},
* summary="Gets a new blank token object", * summary="Gets a new blank token object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -336,7 +331,6 @@ class TokenController extends BaseController
* tags={"tokens"}, * tags={"tokens"},
* summary="Adds a token", * summary="Adds a token",
* description="Adds an token to a company", * description="Adds an token to a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -385,7 +379,6 @@ class TokenController extends BaseController
* tags={"tokens"}, * tags={"tokens"},
* summary="Deletes a token", * summary="Deletes a token",
* description="Handles the deletion of a token by id", * description="Handles the deletion of a token by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -442,7 +435,6 @@ class TokenController extends BaseController
* tags={"tokens"}, * tags={"tokens"},
* summary="Performs bulk actions on an array of tokens", * summary="Performs bulk actions on an array of tokens",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),

View File

@ -86,7 +86,6 @@ class UserController extends BaseController
* description="Lists users, search and filters allow fine grained lists to be generated. * description="Lists users, search and filters allow fine grained lists to be generated.
Query parameters can be added to performed more fine grained filtering of the users, these are handled by the UserFilters class which defines the methods available", Query parameters can be added to performed more fine grained filtering of the users, these are handled by the UserFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -131,7 +130,6 @@ class UserController extends BaseController
* tags={"users"}, * tags={"users"},
* summary="Gets a new blank User object", * summary="Gets a new blank User object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -177,7 +175,6 @@ class UserController extends BaseController
* tags={"users"}, * tags={"users"},
* summary="Adds a User", * summary="Adds a User",
* description="Adds an User to the system", * description="Adds an User to the system",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -234,7 +231,6 @@ class UserController extends BaseController
* tags={"users"}, * tags={"users"},
* summary="Shows an User", * summary="Shows an User",
* description="Displays an User by id", * description="Displays an User by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -289,7 +285,6 @@ class UserController extends BaseController
* tags={"users"}, * tags={"users"},
* summary="Shows an User for editting", * summary="Shows an User for editting",
* description="Displays an User by id", * description="Displays an User by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -339,7 +334,6 @@ class UserController extends BaseController
* tags={"users"}, * tags={"users"},
* summary="Updates an User", * summary="Updates an User",
* description="Handles the updating of an User by id", * description="Handles the updating of an User by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -420,7 +414,6 @@ class UserController extends BaseController
* tags={"users"}, * tags={"users"},
* summary="Deletes a User", * summary="Deletes a User",
* description="Handles the deletion of an User by id", * description="Handles the deletion of an User by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -492,7 +485,6 @@ class UserController extends BaseController
* tags={"users"}, * tags={"users"},
* summary="Performs bulk actions on an array of users", * summary="Performs bulk actions on an array of users",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -569,7 +561,6 @@ class UserController extends BaseController
* tags={"users"}, * tags={"users"},
* summary="Detach an existing user to a company", * summary="Detach an existing user to a company",
* description="Detach an existing user from a company", * description="Detach an existing user from a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -644,7 +635,6 @@ class UserController extends BaseController
* tags={"users"}, * tags={"users"},
* summary="Reconfirm an existing user to a company", * summary="Reconfirm an existing user to a company",
* description="Reconfirm an existing user from a company", * description="Reconfirm an existing user from a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -701,7 +691,6 @@ class UserController extends BaseController
* tags={"users"}, * tags={"users"},
* summary="Reconfirm an existing user to a company", * summary="Reconfirm an existing user to a company",
* description="Reconfirm an existing user from a company", * description="Reconfirm an existing user from a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -73,7 +73,6 @@ class VendorController extends BaseController
* description="Lists vendors, search and filters allow fine grained lists to be generated. * description="Lists vendors, search and filters allow fine grained lists to be generated.
Query parameters can be added to performed more fine grained filtering of the vendors, these are handled by the VendorFilters class which defines the methods available", Query parameters can be added to performed more fine grained filtering of the vendors, these are handled by the VendorFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -121,7 +120,6 @@ class VendorController extends BaseController
* tags={"vendors"}, * tags={"vendors"},
* summary="Shows a client", * summary="Shows a client",
* description="Displays a client by id", * description="Displays a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -176,7 +174,6 @@ class VendorController extends BaseController
* tags={"vendors"}, * tags={"vendors"},
* summary="Shows a client for editting", * summary="Shows a client for editting",
* description="Displays a client by id", * description="Displays a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -232,7 +229,6 @@ class VendorController extends BaseController
* tags={"vendors"}, * tags={"vendors"},
* summary="Updates a client", * summary="Updates a client",
* description="Handles the updating of a client by id", * description="Handles the updating of a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -297,7 +293,6 @@ class VendorController extends BaseController
* tags={"vendors"}, * tags={"vendors"},
* summary="Gets a new blank client object", * summary="Gets a new blank client object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -343,7 +338,6 @@ class VendorController extends BaseController
* tags={"vendors"}, * tags={"vendors"},
* summary="Adds a client", * summary="Adds a client",
* description="Adds an client to a company", * description="Adds an client to a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -396,7 +390,6 @@ class VendorController extends BaseController
* tags={"vendors"}, * tags={"vendors"},
* summary="Deletes a client", * summary="Deletes a client",
* description="Handles the deletion of a client by id", * description="Handles the deletion of a client by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -451,7 +444,6 @@ class VendorController extends BaseController
* tags={"vendors"}, * tags={"vendors"},
* summary="Performs bulk actions on an array of vendors", * summary="Performs bulk actions on an array of vendors",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),
@ -531,7 +523,6 @@ class VendorController extends BaseController
* tags={"vendors"}, * tags={"vendors"},
* summary="Uploads a document to a vendor", * summary="Uploads a document to a vendor",
* description="Handles the uploading of a document to a vendor", * description="Handles the uploading of a document to a vendor",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),

View File

@ -31,7 +31,6 @@ class WebCronController extends Controller
* tags={"webcron"}, * tags={"webcron"},
* summary="Executes the task scheduler via a webcron service", * summary="Executes the task scheduler via a webcron service",
* description="Executes the task scheduler via a webcron service", * description="Executes the task scheduler via a webcron service",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Response( * @OA\Response(
* response=200, * response=200,

View File

@ -53,7 +53,6 @@ class WebhookController extends BaseController
* description="Lists Webhooks, search and filters allow fine grained lists to be generated. * description="Lists Webhooks, search and filters allow fine grained lists to be generated.
* *
* Query parameters can be added to performed more fine grained filtering of the Webhooks, these are handled by the WebhookFilters class which defines the methods available", * Query parameters can be added to performed more fine grained filtering of the Webhooks, these are handled by the WebhookFilters class which defines the methods available",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -101,7 +100,6 @@ class WebhookController extends BaseController
* tags={"webhooks"}, * tags={"webhooks"},
* summary="Shows a Webhook", * summary="Shows a Webhook",
* description="Displays a Webhook by id", * description="Displays a Webhook by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -156,7 +154,6 @@ class WebhookController extends BaseController
* tags={"webhooks"}, * tags={"webhooks"},
* summary="Shows a Webhook for editting", * summary="Shows a Webhook for editting",
* description="Displays a Webhook by id", * description="Displays a Webhook by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -212,7 +209,6 @@ class WebhookController extends BaseController
* tags={"webhooks"}, * tags={"webhooks"},
* summary="Updates a Webhook", * summary="Updates a Webhook",
* description="Handles the updating of a Webhook by id", * description="Handles the updating of a Webhook by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -274,7 +270,6 @@ class WebhookController extends BaseController
* tags={"webhooks"}, * tags={"webhooks"},
* summary="Gets a new blank Webhook object", * summary="Gets a new blank Webhook object",
* description="Returns a blank object with default values", * description="Returns a blank object with default values",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -322,7 +317,6 @@ class WebhookController extends BaseController
* tags={"webhooks"}, * tags={"webhooks"},
* summary="Adds a Webhook", * summary="Adds a Webhook",
* description="Adds an Webhook to a company", * description="Adds an Webhook to a company",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -386,7 +380,6 @@ class WebhookController extends BaseController
* tags={"Webhooks"}, * tags={"Webhooks"},
* summary="Deletes a Webhook", * summary="Deletes a Webhook",
* description="Handles the deletion of a Webhook by id", * description="Handles the deletion of a Webhook by id",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"), * @OA\Parameter(ref="#/components/parameters/include"),
@ -441,7 +434,6 @@ class WebhookController extends BaseController
* tags={"webhooks"}, * tags={"webhooks"},
* summary="Performs bulk actions on an array of Webhooks", * summary="Performs bulk actions on an array of Webhooks",
* description="", * description="",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/index"), * @OA\Parameter(ref="#/components/parameters/index"),

View File

@ -23,6 +23,7 @@ class ShowActivityRequest extends Request
*/ */
public function authorize() : bool public function authorize() : bool
{ {
return auth()->user()->can('view', Activity::class); return auth()->user()->isAdmin();
// return auth()->user()->can('view', Activity::class);
} }
} }

View File

@ -0,0 +1,37 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Http\Requests\BankIntegration;
use App\Http\Requests\Request;
class BulkBankIntegrationRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() : bool
{
return auth()->user()->isAdmin();
}
public function rules()
{
return [
'ids' => 'required|bail|array',
'action' => 'in:archive,restore,delete'
];
}
}

View File

@ -0,0 +1,37 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Http\Requests\BankTransaction;
use App\Http\Requests\Request;
class BulkBankTransactionRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() : bool
{
return auth()->user()->isAdmin();
}
public function rules()
{
return [
'ids' => 'required|bail|array',
'action' => 'in:archive,restore,delete,convert_matched'
];
}
}

View File

@ -0,0 +1,37 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Http\Requests\BankTransactionRule;
use App\Http\Requests\Request;
class BulkBankTransactionRuleRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() : bool
{
return auth()->user()->isAdmin();
}
public function rules()
{
return [
'ids' => 'required|bail|array',
'action' => 'in:archive,restore,delete'
];
}
}

View File

@ -0,0 +1,52 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Http\Requests\Client;
use App\Http\Requests\Request;
use App\Models\Client;
use App\Utils\Traits\MakesHash;
use Illuminate\Validation\Rule;
class BulkClientRequest extends Request
{
use MakesHash;
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() : bool
{
return true;
}
public function rules()
{
return [
'ids' => ['required','bail','array',Rule::exists('clients','id')->where('company_id', auth()->user()->company()->id)],
'action' => 'in:archive,restore,delete'
];
}
public function prepareForValidation()
{
$input = $this->all();
if(isset($input['ids']))
$input['ids'] = $this->transformKeys($input['ids']);
$this->replace($input);
}
}

View File

@ -0,0 +1,54 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Http\Requests\CompanyGateway;
use App\Http\Requests\Request;
use App\Utils\Traits\MakesHash;
use Illuminate\Validation\Rule;
class BulkCompanyGatewayRequest extends Request
{
use MakesHash;
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() : bool
{
return auth()->user()->isAdmin();
}
public function rules()
{
return [
'ids' => ['required','bail','array',Rule::exists('company_gateways','id')->where('company_id', auth()->user()->company()->id)],
'action' => 'required|bail|in:archive,restore,delete'
];
}
public function prepareForValidation()
{
$input = $this->all();
if(isset($input['ids']))
$input['ids'] = $this->transformKeys($input['ids']);
$this->replace($input);
}
}

View File

@ -0,0 +1,54 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Http\Requests\Credit;
use App\Utils\Traits\MakesHash;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class BulkCreditRequest extends FormRequest
{
use MakesHash;
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() : bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'ids' => ['required','bail','array',Rule::exists('credits','id')->where('company_id', auth()->user()->company()->id)],
'action' => 'required|bail|in:archive,restore,delete,email,bulk_download,bulk_print,mark_paid,clone_to_credit,history,mark_sent,download,send_email'
];
}
public function prepareForValidation()
{
$input = $this->all();
if(isset($input['ids']))
$input['ids'] = $this->transformKeys($input['ids']);
$this->replace($input);
}
}

View File

@ -154,7 +154,7 @@ class AdjustProductInventory implements ShouldQueue
// { // {
// $nmo->to_user = $cu->user; // $nmo->to_user = $cu->user;
// (new NinjaMailerJob($nmo))->handle(); // NinjaMailerJob::dispatch($nmo);
// } // }
@ -162,7 +162,7 @@ class AdjustProductInventory implements ShouldQueue
$nmo->to_user = $this->company->owner(); $nmo->to_user = $this->company->owner();
(new NinjaMailerJob($nmo))->handle(); NinjaMailerJob::dispatch($nmo);
} }
} }

View File

@ -11,7 +11,6 @@
namespace App\Models; namespace App\Models;
use App\Exceptions\ModelNotFoundException;
use App\Jobs\Mail\NinjaMailerJob; use App\Jobs\Mail\NinjaMailerJob;
use App\Jobs\Mail\NinjaMailerObject; use App\Jobs\Mail\NinjaMailerObject;
use App\Mail\Ninja\EmailQuotaExceeded; use App\Mail\Ninja\EmailQuotaExceeded;
@ -23,7 +22,7 @@ use App\Utils\Ninja;
use App\Utils\Traits\MakesHash; use App\Utils\Traits\MakesHash;
use Carbon\Carbon; use Carbon\Carbon;
use DateTime; use DateTime;
use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundException;
use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use Laracasts\Presenter\PresentableTrait; use Laracasts\Presenter\PresentableTrait;
@ -501,7 +500,8 @@ class Account extends BaseModel
} }
return $this return $this
->where('id', $this->decodePrimaryKey($value))->firstOrFail(); ->where('id', $this->decodePrimaryKey($value))
->firstOrFail();
} }
public function getTrialDays() public function getTrialDays()

View File

@ -12,6 +12,7 @@
namespace App\Models; namespace App\Models;
use App\Utils\Traits\MakesHash; use App\Utils\Traits\MakesHash;
use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundException;
class Activity extends StaticModel class Activity extends StaticModel
{ {
@ -374,17 +375,18 @@ class Activity extends StaticModel
return $this->belongsTo(Company::class); return $this->belongsTo(Company::class);
} }
/** // /**
* @return mixed // * @return mixed
*/ // */
public function resolveRouteBinding($value, $field = null) // public function resolveRouteBinding($value, $field = null)
{ // {
if (is_numeric($value)) { // if (is_numeric($value)) {
throw new ModelNotFoundException("Record with value {$value} not found"); // throw new ModelNotFoundException("Record with value {$value} not found");
} // }
// return $this
// //->withTrashed()
// ->where('id', $this->decodePrimaryKey($value))->firstOrFail();
// }
return $this
//->withTrashed()
->where('id', $this->decodePrimaryKey($value))->firstOrFail();
}
} }

View File

@ -174,6 +174,7 @@ class BaseModel extends Model
return $this return $this
->withTrashed() ->withTrashed()
->company()
->where('id', $this->decodePrimaryKey($value))->firstOrFail(); ->where('id', $this->decodePrimaryKey($value))->firstOrFail();
} }
@ -188,7 +189,7 @@ class BaseModel extends Model
public function numberFormatter() public function numberFormatter()
{ {
$number = strlen($this->number) >= 1 ? $this->number : class_basename($this) . "_" . Str::random(5); $number = strlen($this->number) >= 1 ? $this->translate_entity() . "_" . $this->number : class_basename($this) . "_" . Str::random(5);
$formatted_number = mb_ereg_replace("([^\w\s\d\-_~,;\[\]\(\).])", '', $number); $formatted_number = mb_ereg_replace("([^\w\s\d\-_~,;\[\]\(\).])", '', $number);

View File

@ -240,6 +240,7 @@ class ClientContact extends Authenticatable implements HasLocalePreference
{ {
return $this return $this
->withTrashed() ->withTrashed()
->company()
->where('id', $this->decodePrimaryKey($value))->firstOrFail(); ->where('id', $this->decodePrimaryKey($value))->firstOrFail();
} }

View File

@ -70,16 +70,16 @@ class ClientGatewayToken extends BaseModel
return $this->belongsTo(User::class)->withTrashed(); return $this->belongsTo(User::class)->withTrashed();
} }
/** // /**
* Retrieve the model for a bound value. // * Retrieve the model for a bound value.
* // *
* @param mixed $value // * @param mixed $value
* @param null $field // * @param null $field
* @return Model|null // * @return Model|null
*/ // */
public function resolveRouteBinding($value, $field = null) // public function resolveRouteBinding($value, $field = null)
{ // {
return $this // return $this
->where('id', $this->decodePrimaryKey($value))->firstOrFail(); // ->where('id', $this->decodePrimaryKey($value))->firstOrFail();
} // }
} }

View File

@ -584,7 +584,9 @@ class Company extends BaseModel
public function resolveRouteBinding($value, $field = null) public function resolveRouteBinding($value, $field = null)
{ {
return $this->where('id', $this->decodePrimaryKey($value))->firstOrFail(); return $this->where('id', $this->decodePrimaryKey($value))
->where('account_id', auth()->user()->account_id)
->firstOrFail();
} }
public function domain() public function domain()

View File

@ -412,12 +412,12 @@ class CompanyGateway extends BaseModel
return route('payment_webhook', ['company_key' => $this->company->company_key, 'company_gateway_id' => $this->hashed_id]); return route('payment_webhook', ['company_key' => $this->company->company_key, 'company_gateway_id' => $this->hashed_id]);
} }
public function resolveRouteBinding($value, $field = null) // public function resolveRouteBinding($value, $field = null)
{ // {
return $this // return $this
->where('id', $this->decodePrimaryKey($value))->withTrashed()->firstOrFail(); // ->where('id', $this->decodePrimaryKey($value))->withTrashed()->firstOrFail();
} // }
} }

View File

@ -65,16 +65,4 @@ class GroupSetting extends StaticModel
return $this->morphMany(Document::class, 'documentable'); return $this->morphMany(Document::class, 'documentable');
} }
/**
* Retrieve the model for a bound value.
*
* @param mixed $value
* @param null $field
* @return Model|null
*/
public function resolveRouteBinding($value, $field = null)
{
return $this
->where('id', $this->decodePrimaryKey($value))->firstOrFail();
}
} }

View File

@ -13,7 +13,6 @@ namespace App\Models;
use App\Events\Invoice\InvoiceReminderWasEmailed; use App\Events\Invoice\InvoiceReminderWasEmailed;
use App\Events\Invoice\InvoiceWasEmailed; use App\Events\Invoice\InvoiceWasEmailed;
use App\Events\Invoice\InvoiceWasUpdated;
use App\Helpers\Invoice\InvoiceSum; use App\Helpers\Invoice\InvoiceSum;
use App\Helpers\Invoice\InvoiceSumInclusive; use App\Helpers\Invoice\InvoiceSumInclusive;
use App\Jobs\Entity\CreateEntityPdf; use App\Jobs\Entity\CreateEntityPdf;
@ -25,7 +24,6 @@ use App\Services\Ledger\LedgerService;
use App\Utils\Ninja; use App\Utils\Ninja;
use App\Utils\Traits\Invoice\ActionsInvoice; use App\Utils\Traits\Invoice\ActionsInvoice;
use App\Utils\Traits\MakesDates; use App\Utils\Traits\MakesDates;
use App\Utils\Traits\MakesHash;
use App\Utils\Traits\MakesInvoiceValues; use App\Utils\Traits\MakesInvoiceValues;
use App\Utils\Traits\MakesReminders; use App\Utils\Traits\MakesReminders;
use App\Utils\Traits\NumberFormatter; use App\Utils\Traits\NumberFormatter;

View File

@ -292,12 +292,13 @@ class Payment extends BaseModel
return new PaymentService($this); return new PaymentService($this);
} }
public function resolveRouteBinding($value, $field = null)
{ // public function resolveRouteBinding($value, $field = null)
return $this // {
->withTrashed() // return $this
->where('id', $this->decodePrimaryKey($value))->firstOrFail(); // ->withTrashed()
} // ->where('id', $this->decodePrimaryKey($value))->firstOrFail();
// }
public function refund(array $data) :self public function refund(array $data) :self
{ {

View File

@ -11,10 +11,14 @@
namespace App\Models; namespace App\Models;
use App\Utils\Traits\MakesHash;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundException;
class StaticModel extends Model class StaticModel extends Model
{ {
use MakesHash;
protected $casts = [ protected $casts = [
'updated_at' => 'timestamp', 'updated_at' => 'timestamp',
'created_at' => 'timestamp', 'created_at' => 'timestamp',
@ -37,4 +41,24 @@ class StaticModel extends Model
return $query; return $query;
} }
/**
* Retrieve the model for a bound value.
*
* @param mixed $value
* @param null $field
* @return Model|null
*/
public function resolveRouteBinding($value, $field = null)
{
if (is_numeric($value)) {
throw new ModelNotFoundException("Record with value {$value} not found");
}
return $this
->withTrashed()
->company()
->where('id', $this->decodePrimaryKey($value))->firstOrFail();
}
} }

View File

@ -148,7 +148,9 @@ class SystemLog extends Model
} }
return $this return $this
->where('id', $this->decodePrimaryKey($value))->firstOrFail(); ->where('id', $this->decodePrimaryKey($value))
->company()
->firstOrFail();
} }
/* /*

View File

@ -193,7 +193,6 @@ class User extends Authenticatable implements MustVerifyEmail
return $truth->getCompany(); return $truth->getCompany();
} elseif (request()->header('X-API-TOKEN')) { } elseif (request()->header('X-API-TOKEN')) {
$company_token = CompanyToken::with(['company'])->where('token', request()->header('X-API-TOKEN'))->first(); $company_token = CompanyToken::with(['company'])->where('token', request()->header('X-API-TOKEN'))->first();
return $company_token->company; return $company_token->company;
} }
@ -441,7 +440,9 @@ class User extends Authenticatable implements MustVerifyEmail
{ {
return $this return $this
->withTrashed() ->withTrashed()
->where('id', $this->decodePrimaryKey($value))->firstOrFail(); ->where('id', $this->decodePrimaryKey($value))
->where('account_id', auth()->user()->account_id)
->firstOrFail();
} }
/** /**

View File

@ -145,7 +145,9 @@ class VendorContact extends Authenticatable implements HasLocalePreference
{ {
return $this return $this
->withTrashed() ->withTrashed()
->where('id', $this->decodePrimaryKey($value))->firstOrFail(); ->company()
->where('id', $this->decodePrimaryKey($value))
->firstOrFail();
} }
public function purchase_order_invitations(): \Illuminate\Database\Eloquent\Relations\HasMany public function purchase_order_invitations(): \Illuminate\Database\Eloquent\Relations\HasMany

View File

@ -57,7 +57,7 @@ class ClientContactObserver
//ensure entity state is preserved //ensure entity state is preserved
InvoiceInvitation::withTrashed()->where('client_contact_id', 1)->cursor()->each(function ($invite){ InvoiceInvitation::withTrashed()->where('client_contact_id', $client_contact_id)->cursor()->each(function ($invite){
if($invite->invoice()->doesnthave('invitations')) if($invite->invoice()->doesnthave('invitations'))
$invite->invoice->service()->createInvitations(); $invite->invoice->service()->createInvitations();
@ -65,14 +65,14 @@ class ClientContactObserver
}); });
QuoteInvitation::withTrashed()->where('client_contact_id', 1)->cursor()->each(function ($invite){ QuoteInvitation::withTrashed()->where('client_contact_id', $client_contact_id)->cursor()->each(function ($invite){
if($invite->invoice()->doesnthave('invitations')) if($invite->invoice()->doesnthave('invitations'))
$invite->quote->service()->createInvitations(); $invite->quote->service()->createInvitations();
}); });
RecurringInvoiceInvitation::withTrashed()->where('client_contact_id', 1)->cursor()->each(function ($invite){ RecurringInvoiceInvitation::withTrashed()->where('client_contact_id', $client_contact_id)->cursor()->each(function ($invite){
if($invite->recurring_invoice()->doesnthave('invitations')) if($invite->recurring_invoice()->doesnthave('invitations'))
$invite->quote->service()->createInvitations(); $invite->quote->service()->createInvitations();

Some files were not shown because too many files have changed in this diff Show More