JobBankingDetailHandlerComponent
extends AbstractJobHandlerComponent
in package
Table of Contents
Constants
- SUPPORTED_JOB_ACTION_LIST = [\Vatjar\Data\EntityInterface\Job::MAIN_ACTION_BANKING_DETAIL => [\Vatjar\Data\EntityInterface\Job::SUB_ACTION_BANKING_DETAIL_INSERT_DEFAULT_BY_CLIENT, \Vatjar\Data\EntityInterface\Job::SUB_ACTION_BANKING_DETAIL_INSERT_DE, \Vatjar\Data\EntityInterface\Job::SUB_ACTION_BANKING_DETAIL_INSERT_FR_NON_EU_CLIENTS]]
Properties
- $job : Job
- $jobList : array<string|int, Job>
- $bankingDetailOptionRepository : BankingDetailOptionRepository
- $bankingDetailSettingRepository : BankingDetailSettingRepository
- $clientRepository : ClientRepository
- $countryDateGroupRepository : CountryDateGroupRepository
- $countryRepository : CountryRepository
- $deBankAccountsRepository : DeBankAccountsRepository
- $em : EntityManager
- $entryBankingDetailService : EntryBankingDetailService
- $lockList : FSLock[string]
- $opt : array<string|int, mixed>
- $userCountryFilingCompanyService : UserCountryFilingCompanyService
Methods
- __construct() : mixed
- afterHandle() : JobResult
- beforeHandle() : mixed
- create() : static
- createAfterRegistration() : mixed
- createAndHandle() : mixed
- createPolandBankingDetails() : mixed
- getJob() : Job
- getJobList() : array<string|int, Job>
- getJobParameters() : array<string|int, mixed>
- getLockNameListForHandle() : mixed
- getLockPrefix() : string
- getOpt() : array<string|int, mixed>
- getOptUser() : mixed
- getOptUserId() : mixed
- getOptVal() : mixed
- getOptValOr() : mixed
- handle() : JobResult
- handleJob() : mixed
- handleLock() : mixed
- hasOptKey() : mixed
- jobCreatePolandBankingDetails() : mixed
- loadJobList() : mixed
- lock() : bool
- setJob() : mixed
- setOpt() : static
- support() : bool
- unlock() : void
- _handle() : JobResult
- applyOptionToSettings() : void
- createBankingDetailSettingFromBankingDetailOptionAndClient() : BankingDetailSetting
- getIbanFromRequest() : string|null
- getRequest() : Request|Request
- handleDeBankAccounts() : JobResult
- Handles the DE (Germany) bank accounts for a given job by updating or creating the corresponding banking detail settings based on the tax ID and client information.
- handleFrBankAccountsForNonEUClients() : JobResult
- insertDefaultsByClient() : JobResult
- insertOssDefaultsBankingDetails() : mixed
Constants
SUPPORTED_JOB_ACTION_LIST
public
mixed
SUPPORTED_JOB_ACTION_LIST
= [\Vatjar\Data\EntityInterface\Job::MAIN_ACTION_BANKING_DETAIL => [\Vatjar\Data\EntityInterface\Job::SUB_ACTION_BANKING_DETAIL_INSERT_DEFAULT_BY_CLIENT, \Vatjar\Data\EntityInterface\Job::SUB_ACTION_BANKING_DETAIL_INSERT_DE, \Vatjar\Data\EntityInterface\Job::SUB_ACTION_BANKING_DETAIL_INSERT_FR_NON_EU_CLIENTS]]
Properties
$job
protected
Job
$job
$jobList
protected
array<string|int, Job>
$jobList
$bankingDetailOptionRepository
private
BankingDetailOptionRepository
$bankingDetailOptionRepository
$bankingDetailSettingRepository
private
BankingDetailSettingRepository
$bankingDetailSettingRepository
$clientRepository
private
ClientRepository
$clientRepository
$countryDateGroupRepository
private
CountryDateGroupRepository
$countryDateGroupRepository
$countryRepository
private
CountryRepository
$countryRepository
$deBankAccountsRepository
private
DeBankAccountsRepository
$deBankAccountsRepository
$em
private
EntityManager
$em
$entryBankingDetailService
private
EntryBankingDetailService
$entryBankingDetailService
$lockList
private
FSLock[string]
$lockList
= []
$opt
private
array<string|int, mixed>
$opt
$userCountryFilingCompanyService
private
UserCountryFilingCompanyService
$userCountryFilingCompanyService
Methods
__construct()
public
__construct([Job $job = null ][, array<string|int, mixed> $opt = null ]) : mixed
Parameters
- $job : Job = null
- $opt : array<string|int, mixed> = null
afterHandle()
public
afterHandle(JobResult $jobResult) : JobResult
Parameters
- $jobResult : JobResult
Return values
JobResultbeforeHandle()
public
beforeHandle() : mixed
create()
public
static create([Job $job = null ][, array<string|int, mixed> $opt = null ]) : static
Parameters
- $job : Job = null
- $opt : array<string|int, mixed> = null
Return values
staticcreateAfterRegistration()
public
createAfterRegistration(Client $client) : mixed
Parameters
- $client : Client
Tags
createAndHandle()
public
static createAndHandle([Job $job = null ][, array<string|int, mixed> $opt = null ]) : mixed
Parameters
- $job : Job = null
- $opt : array<string|int, mixed> = null
createPolandBankingDetails()
public
createPolandBankingDetails(mixed $clientId) : mixed
Parameters
- $clientId : mixed
Tags
getJob()
public
getJob() : Job
Return values
JobgetJobList()
public
getJobList() : array<string|int, Job>
Return values
array<string|int, Job>getJobParameters()
public
getJobParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>getLockNameListForHandle()
public
getLockNameListForHandle() : mixed
getLockPrefix()
public
getLockPrefix() : string
Return values
stringgetOpt()
public
getOpt([array<string|int, mixed> $opt = null ]) : array<string|int, mixed>
Parameters
- $opt : array<string|int, mixed> = null
Return values
array<string|int, mixed>getOptUser()
public
getOptUser() : mixed
getOptUserId()
public
getOptUserId() : mixed
getOptVal()
public
getOptVal(string $key) : mixed
Parameters
- $key : string
getOptValOr()
public
getOptValOr(string $key[, mixed $or = null ]) : mixed
Parameters
- $key : string
- $or : mixed = null
handle()
public
handle() : JobResult
Tags
Return values
JobResulthandleJob()
public
handleJob(Job $job[, array<string|int, mixed> $opt = null ]) : mixed
Parameters
- $job : Job
- $opt : array<string|int, mixed> = null
handleLock()
public
handleLock() : mixed
hasOptKey()
public
hasOptKey(string $key) : mixed
Parameters
- $key : string
jobCreatePolandBankingDetails()
public
jobCreatePolandBankingDetails(mixed $clientId) : mixed
Parameters
- $clientId : mixed
Tags
loadJobList()
public
loadJobList() : mixed
Tags
lock()
public
lock([array<string|int, mixed> $lockNameList = [] ]) : bool
Parameters
- $lockNameList : array<string|int, mixed> = []
Tags
Return values
boolsetJob()
public
setJob(Job $job) : mixed
Parameters
- $job : Job
setOpt()
public
setOpt(array<string|int, mixed> $opt) : static
Parameters
- $opt : array<string|int, mixed>
Return values
staticsupport()
public
static support(Job $job) : bool
Parameters
- $job : Job
Return values
boolunlock()
public
unlock() : void
_handle()
protected
_handle() : JobResult
Return values
JobResultapplyOptionToSettings()
private
applyOptionToSettings(BankingDetailOption $option, BankingDetailSetting $settings) : void
Parameters
- $option : BankingDetailOption
- $settings : BankingDetailSetting
createBankingDetailSettingFromBankingDetailOptionAndClient()
private
createBankingDetailSettingFromBankingDetailOptionAndClient(BankingDetailOption $option, Client $client) : BankingDetailSetting
Parameters
- $option : BankingDetailOption
- $client : Client
Tags
Return values
BankingDetailSettinggetIbanFromRequest()
private
getIbanFromRequest() : string|null
Return values
string|nullgetRequest()
private
getRequest() : Request|Request
Return values
Request|RequesthandleDeBankAccounts()
Handles the DE (Germany) bank accounts for a given job by updating or creating the corresponding banking detail settings based on the tax ID and client information.
private
handleDeBankAccounts(Job $job) : JobResult
Parameters
- $job : Job
-
The job instance containing the user ID to process.
Tags
Return values
JobResult —The result of the job containing the updated or created banking detail settings.
handleFrBankAccountsForNonEUClients()
private
handleFrBankAccountsForNonEUClients(Job $job) : JobResult
Parameters
- $job : Job
Tags
Return values
JobResultinsertDefaultsByClient()
private
insertDefaultsByClient(Job $job) : JobResult
Parameters
- $job : Job
Tags
Return values
JobResultinsertOssDefaultsBankingDetails()
private
insertOssDefaultsBankingDetails(Client $client) : mixed
Parameters
- $client : Client