Documentation

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

$opt

private array<string|int, mixed> $opt

Methods

__construct()

public __construct([Job $job = null ][, array<string|int, mixed> $opt = null ]) : mixed
Parameters
$job : Job = null
$opt : array<string|int, mixed> = null

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
static

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
throws
OptimisticLockException
throws
ORMException
throws
NonUniqueResultException
throws
Exception

getLockPrefix()

public getLockPrefix() : string
Return values
string

getOpt()

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

handleJob()

public handleJob(Job $job[, array<string|int, mixed> $opt = null ]) : mixed
Parameters
$job : Job
$opt : array<string|int, mixed> = null

hasOptKey()

public hasOptKey(string $key) : mixed
Parameters
$key : string

jobCreatePolandBankingDetails()

public jobCreatePolandBankingDetails(mixed $clientId) : mixed
Parameters
$clientId : mixed
Tags
throws
OptimisticLockException
throws
NonUniqueResultException
throws
ORMException
throws
Exception

lock()

public lock([array<string|int, mixed> $lockNameList = [] ]) : bool
Parameters
$lockNameList : array<string|int, mixed> = []
Tags
throws
LockException
Return values
bool

setOpt()

public setOpt(array<string|int, mixed> $opt) : static
Parameters
$opt : array<string|int, mixed>
Return values
static

handleDeBankAccounts()

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
throws
DomainException

If the client is not found, the DE user VAT information is missing,

throws
NonUniqueResultException
throws
ORMException

or the DE bank account corresponding to the tax ID is not found.

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
throws
OptimisticLockException
throws
ORMException
throws
TransactionRequiredException
throws
NonUniqueResultException
Return values
JobResult

        
On this page

Search results