ApiUserVatController
extends BaseController
in package
Class SettingsController
Table of Contents
Properties
- $auth : AuthComponent
- $title : mixed
- $userVatSingleComponent : UserVatSingleComponent
- $bankingDetailSettingService : BankingDetailSettingService
- $clientRepository : ClientRepository
- $countryId : int
- $jobBankingDetailHandlerComponent : JobBankingDetailHandlerComponent
- $mergedUserVatService : MergedUserVatService
- $userCountryFilingCompanyService : UserCountryFilingCompanyService
- $userId : int
- $userOssFilingCompanyService : UserOssFilingCompanyService
- $userVatCertificatesService : UserVatCertificatesService
- $userVatDetectService : UserVatDetectService
Methods
- createAction() : Response
- deleteAction() : Response
- downloadCertificateAction() : mixed
- getAction() : mixed
- getCountriesAction() : mixed
- initialize() : mixed
- listAction() : mixed
- listByCountryAction() : Response
- listDeletedAction() : mixed
- listDeletedByCountryAction() : Response
- saveCertificateAction() : Response
- setTitle() : mixed
- updateAction() : Response
- getAllOssFilingCompanies() : mixed
- getClientById() : mixed
- getFilingCompanies() : array<string|int, UserCountryFilingCompany>
- getFilingCompaniesByCountryId() : array<string|int, mixed>
- getOptOuts() : array<string|int, UserVatThresholdOptOut>
- getOptOutsByCountryId() : mixed
- getOssFilingCompanies() : array<string|int, UserOssFilingCompany>
- getOssFilingCompaniesByCountryId() : mixed
- getUserVatDetectByUserVatList() : array<string|int, array<string|int, UserVatDetect>>
- getUserVatDetectByUserVatListAndEventNotIn() : array<string|int, array<string|int, UserVatDetect>>
- getUserVatDetectByUserVatListAndUserIdList() : array<string|int, array<string|int, UserVatDetect>>
- getUserVatDetectListByCountryIdWithNoDeletedEvent() : array<string|int, array<string|int, UserVatDetect>>
- getUserVatDetectListWithNoDeletedEvent() : array<string|int, array<string|int, UserVatDetect>>
- handleSave() : mixed
Properties
$auth read-only
public
AuthComponent
$auth
$title
protected
mixed
$title
= 'hellotax'
$userVatSingleComponent
protected
UserVatSingleComponent
$userVatSingleComponent
= false
$bankingDetailSettingService
private
BankingDetailSettingService
$bankingDetailSettingService
$clientRepository
private
ClientRepository
$clientRepository
$countryId
private
int
$countryId
$jobBankingDetailHandlerComponent
private
JobBankingDetailHandlerComponent
$jobBankingDetailHandlerComponent
$mergedUserVatService
private
MergedUserVatService
$mergedUserVatService
$userCountryFilingCompanyService
private
UserCountryFilingCompanyService
$userCountryFilingCompanyService
$userId
private
int
$userId
$userOssFilingCompanyService
private
UserOssFilingCompanyService
$userOssFilingCompanyService
$userVatCertificatesService
private
UserVatCertificatesService
$userVatCertificatesService
$userVatDetectService
private
UserVatDetectService
$userVatDetectService
Methods
createAction()
public
createAction() : Response
Tags
Return values
ResponsedeleteAction()
public
deleteAction() : Response
Tags
Return values
ResponsedownloadCertificateAction()
public
downloadCertificateAction(string $certificateType, int $userId, int $countryId) : mixed
Parameters
- $certificateType : string
- $userId : int
- $countryId : int
Tags
getAction()
public
getAction() : mixed
getCountriesAction()
public
getCountriesAction() : mixed
initialize()
public
initialize() : mixed
listAction()
public
listAction([mixed $userId = null ][, mixed $countryId = null ]) : mixed
Parameters
- $userId : mixed = null
- $countryId : mixed = null
listByCountryAction()
public
listByCountryAction(mixed $countryId) : Response
Parameters
- $countryId : mixed
Tags
Return values
ResponselistDeletedAction()
public
listDeletedAction() : mixed
listDeletedByCountryAction()
public
listDeletedByCountryAction(mixed $countryId) : Response
Parameters
- $countryId : mixed
Tags
Return values
ResponsesaveCertificateAction()
public
saveCertificateAction(string $certificateType, int $userId, int $countryId) : Response
Parameters
- $certificateType : string
- $userId : int
- $countryId : int
Tags
Return values
ResponsesetTitle()
public
setTitle(mixed $title) : mixed
Parameters
- $title : mixed
updateAction()
public
updateAction() : Response
Tags
Return values
ResponsegetAllOssFilingCompanies()
private
getAllOssFilingCompanies() : mixed
getClientById()
private
getClientById(mixed $userId) : mixed
Parameters
- $userId : mixed
getFilingCompanies()
private
getFilingCompanies(array<string|int, mixed> $userVatList) : array<string|int, UserCountryFilingCompany>
Parameters
- $userVatList : array<string|int, mixed>
Return values
array<string|int, UserCountryFilingCompany>getFilingCompaniesByCountryId()
private
getFilingCompaniesByCountryId(int $countryId) : array<string|int, mixed>
Parameters
- $countryId : int
Return values
array<string|int, mixed>getOptOuts()
private
getOptOuts(array<string|int, mixed> $userVatList) : array<string|int, UserVatThresholdOptOut>
Parameters
- $userVatList : array<string|int, mixed>
Return values
array<string|int, UserVatThresholdOptOut>getOptOutsByCountryId()
private
getOptOutsByCountryId(int $countryId) : mixed
Parameters
- $countryId : int
getOssFilingCompanies()
private
getOssFilingCompanies(array<string|int, mixed> $userVatList) : array<string|int, UserOssFilingCompany>
Parameters
- $userVatList : array<string|int, mixed>
Return values
array<string|int, UserOssFilingCompany>getOssFilingCompaniesByCountryId()
private
getOssFilingCompaniesByCountryId(int $countryId) : mixed
Parameters
- $countryId : int
getUserVatDetectByUserVatList()
private
getUserVatDetectByUserVatList(mixed $userVatList) : array<string|int, array<string|int, UserVatDetect>>
Parameters
- $userVatList : mixed
Return values
array<string|int, array<string|int, UserVatDetect>>getUserVatDetectByUserVatListAndEventNotIn()
private
getUserVatDetectByUserVatListAndEventNotIn(mixed $userVatList, array<string|int, mixed> $eventList) : array<string|int, array<string|int, UserVatDetect>>
Parameters
- $userVatList : mixed
- $eventList : array<string|int, mixed>
Return values
array<string|int, array<string|int, UserVatDetect>>getUserVatDetectByUserVatListAndUserIdList()
private
getUserVatDetectByUserVatListAndUserIdList(mixed $userVatList, mixed $userIds) : array<string|int, array<string|int, UserVatDetect>>
Parameters
- $userVatList : mixed
- $userIds : mixed
-
[]
Return values
array<string|int, array<string|int, UserVatDetect>>getUserVatDetectListByCountryIdWithNoDeletedEvent()
private
getUserVatDetectListByCountryIdWithNoDeletedEvent([mixed $countryId = null ]) : array<string|int, array<string|int, UserVatDetect>>
Parameters
- $countryId : mixed = null
Return values
array<string|int, array<string|int, UserVatDetect>>getUserVatDetectListWithNoDeletedEvent()
private
getUserVatDetectListWithNoDeletedEvent([mixed $countryId = null ]) : array<string|int, array<string|int, UserVatDetect>>
Parameters
- $countryId : mixed = null
Return values
array<string|int, array<string|int, UserVatDetect>>handleSave()
private
handleSave(bool $isValid, array<string|int, mixed> $formData[, bool $addArrangeJob = false ], mixed $eventTypeId[, mixed $originalUserVat = null ]) : mixed
Parameters
- $isValid : bool
- $formData : array<string|int, mixed>
- $addArrangeJob : bool = false
- $eventTypeId : mixed
- $originalUserVat : mixed = null