JobDemoAccountCreateUserVatComponent
extends JobDemoAccountMainHandlerComponent
in package
Table of Contents
Constants
- COUNTRY_VAT_ID = [40 => "ATU00000000", 56 => "BE0000000000", 100 => "BG000000000", 191 => "HR00000000000", 196 => "CY00000000A", 203 => "CZ00000000", 208 => "DK00000000", 233 => "EE000000000", 246 => "FI00000000", 250 => "FR00000000000", 276 => "DE000000000", 300 => "GR000000000", 348 => "HU00000000", 372 => "IE0000000A", 380 => "IT00000000000", 428 => "LV00000000000", 440 => "LT000000000000", 442 => "LU00000000", 470 => "MT00000000", 528 => "NL000000000B00", 616 => "PL0000000000", 620 => "PT000000000", 642 => "RO00000000", 703 => "SK0000000000", 705 => "SI00000000", 724 => "ES00000000A", 752 => "SE000000000000", 826 => "GB000000000"]
- SUPPORTED_JOB_ACTION_LIST = [\Vatjar\Jobs\Model\Job::MAIN_ACTION_DEMO_ACCOUNT => [\Vatjar\Jobs\Model\Job::SUB_ACTION_DEMO_ACCOUNT_CREATE_USER_VAT]]
Properties
- $handlerList : AbstractJobHandlerComponent]
- $job : Job
- $jobList : array<string|int, Job>
- $lockList : FSLock[string]
- $opt : array<string|int, mixed>
Methods
- __construct() : mixed
- afterHandle() : JobResult
- beforeHandle() : mixed
- create() : static
- createAndHandle() : mixed
- getHandler() : AbstractJobHandlerComponent|null
- 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
- getRequestUserAccountId() : int
- handle() : JobResult
- handleJob() : mixed
- handleLock() : mixed
- hasOptKey() : mixed
- loadJobList() : mixed
- lock() : bool
- setJob() : mixed
- setOpt() : static
- support() : bool
- unlock() : void
- _handle() : JobResult
- getDemoAccount() : DemoAccount
- getDemoAccountParameters() : array<string|int, mixed>
- getDemoClient() : Client|null
- getDemoPerson() : Person|null
- getDemoUserAccount() : UserAccount
- getDemoUserId() : int
- getEntityManager() : EntityManager
- prepareWaitingJobsResponse() : array<string|int, mixed>
Constants
COUNTRY_VAT_ID
public
mixed
COUNTRY_VAT_ID
= [40 => "ATU00000000", 56 => "BE0000000000", 100 => "BG000000000", 191 => "HR00000000000", 196 => "CY00000000A", 203 => "CZ00000000", 208 => "DK00000000", 233 => "EE000000000", 246 => "FI00000000", 250 => "FR00000000000", 276 => "DE000000000", 300 => "GR000000000", 348 => "HU00000000", 372 => "IE0000000A", 380 => "IT00000000000", 428 => "LV00000000000", 440 => "LT000000000000", 442 => "LU00000000", 470 => "MT00000000", 528 => "NL000000000B00", 616 => "PL0000000000", 620 => "PT000000000", 642 => "RO00000000", 703 => "SK0000000000", 705 => "SI00000000", 724 => "ES00000000A", 752 => "SE000000000000", 826 => "GB000000000"]
SUPPORTED_JOB_ACTION_LIST
public
mixed
SUPPORTED_JOB_ACTION_LIST
= [\Vatjar\Jobs\Model\Job::MAIN_ACTION_DEMO_ACCOUNT => [\Vatjar\Jobs\Model\Job::SUB_ACTION_DEMO_ACCOUNT_CREATE_USER_VAT]]
Properties
$handlerList
protected
AbstractJobHandlerComponent]
$handlerList
= [\Vatjar\DemoAccount\Component\JobDemoAccountGenerationManagerComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountGenerationInitComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateInactiveComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateUserModuleComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateProductComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateAmazonMovementComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateMouMovementComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateUserVatComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountActivateClientComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateSubscriptionComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountForceCreateReportComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateQualityControlComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountSubmitReportComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountOnboardingComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountActivateUserAccountComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountGenerationFinishComponent::class => null]
$job
protected
Job
$job
$jobList
protected
array<string|int, Job>
$jobList
$lockList
private
FSLock[string]
$lockList
= []
$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
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
staticcreateAndHandle()
public
static createAndHandle([Job $job = null ][, array<string|int, mixed> $opt = null ]) : mixed
Parameters
- $job : Job = null
- $opt : array<string|int, mixed> = null
getHandler()
public
getHandler(Job $job) : AbstractJobHandlerComponent|null
Parameters
- $job : Job
Return values
AbstractJobHandlerComponent|nullgetJob()
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
getRequestUserAccountId()
public
getRequestUserAccountId() : int
Return values
inthandle()
public
handle() : JobResult
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
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
JobResultgetDemoAccount()
protected
getDemoAccount() : DemoAccount
Tags
Return values
DemoAccountgetDemoAccountParameters()
protected
getDemoAccountParameters() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getDemoClient()
protected
getDemoClient() : Client|null
Return values
Client|nullgetDemoPerson()
protected
getDemoPerson() : Person|null
Return values
Person|nullgetDemoUserAccount()
protected
getDemoUserAccount() : UserAccount
Tags
Return values
UserAccountgetDemoUserId()
protected
getDemoUserId() : int
Return values
intgetEntityManager()
protected
getEntityManager() : EntityManager
Return values
EntityManagerprepareWaitingJobsResponse()
protected
prepareWaitingJobsResponse(array<string|int, Job> $jobs) : array<string|int, mixed>
Parameters
- $jobs : array<string|int, Job>