Documentation

OssSettingController
in package
implements IController

Table of Contents

Interfaces

IController

Properties

$auth  : AuthComponent
$config  : Config
$em  : EntityManager
$externalChangeLogger  : LoggerService
$externalSnapshot  : SnapshotService
$ossRegistrationRepository  : OssRegistrationRepository
$request  : Request
$response  : Response
$snapshot  : SnapshotService
$userCountryFilingCompanyRepository  : UserCountryFilingCompanyRepository
$userOssFilingCompanyRepository  : UserOssFilingCompanyRepository
$userTraderCountrySettingRepository  : UserTraderCountrySettingRepository
$userVatRepository  : UserVatRepository
$userVatThresholdOptOutRepository  : UserVatThresholdOptOutRepository

Methods

__construct()  : mixed
disableAction()  : mixed
putAction()  : mixed
createArrangeJob()  : mixed
getOssRegistration()  : mixed
getUserVat()  : UserVat|null
getVatId()  : mixed
isOverlapping()  : bool
save()  : mixed
sendResponse()  : mixed
unchanged()  : mixed
validate()  : mixed
validateOverlapping()  : mixed

Properties

Methods

__construct()

public __construct(AuthComponent $auth, Request $request, Response $response, SnapshotService $snapshot, SnapshotService $externalSnapshot, EntityManager $em, OssRegistrationRepository $ossRegistrationRepository, UserVatRepository $userVatRepository, UserTraderCountrySettingRepository $userTraderCountrySettingRepository, UserCountryFilingCompanyRepository $userCountryFilingCompanyRepository, UserOssFilingCompanyRepository $userOssFilingCompanyRepository, UserVatThresholdOptOutRepository $userVatThresholdOptOutRepository, LoggerService $externalChangeLogger, Config $config) : mixed
Parameters
$auth : AuthComponent
$request : Request
$response : Response
$snapshot : SnapshotService
$externalSnapshot : SnapshotService
$em : EntityManager
$ossRegistrationRepository : OssRegistrationRepository
$userVatRepository : UserVatRepository
$userTraderCountrySettingRepository : UserTraderCountrySettingRepository
$userCountryFilingCompanyRepository : UserCountryFilingCompanyRepository
$userOssFilingCompanyRepository : UserOssFilingCompanyRepository
$userVatThresholdOptOutRepository : UserVatThresholdOptOutRepository
$externalChangeLogger : LoggerService
$config : Config

disableAction()

public disableAction(mixed $clientId, mixed $countryId) : mixed
Parameters
$clientId : mixed
$countryId : mixed

createArrangeJob()

private createArrangeJob(mixed $clientId) : mixed
Parameters
$clientId : mixed

getOssRegistration()

private getOssRegistration(mixed $clientId, mixed $countryId) : mixed
Parameters
$clientId : mixed
$countryId : mixed

getUserVat()

private getUserVat(mixed $clientId, mixed $countryId) : UserVat|null
Parameters
$clientId : mixed
$countryId : mixed
Return values
UserVat|null

getVatId()

private getVatId(mixed $clientId, mixed $countryId) : mixed
Parameters
$clientId : mixed
$countryId : mixed

isOverlapping()

private isOverlapping(DateTime $newStart, DateTime|null $newEnd, DateTime $existingStart, DateTime|null $existingEnd) : bool
Parameters
$newStart : DateTime
$newEnd : DateTime|null
$existingStart : DateTime
$existingEnd : DateTime|null
Return values
bool

save()

private save(OssRegistration|null $ossRegistration, int $clientId, int|null $countryId, string|null $startDate, string|null $endDate) : mixed
Parameters
$ossRegistration : OssRegistration|null
$clientId : int
$countryId : int|null
$startDate : string|null
$endDate : string|null

sendResponse()

private sendResponse(mixed $ossRegistration) : mixed
Parameters
$ossRegistration : mixed

unchanged()

private unchanged(mixed $ossRegistration, mixed $countryId, mixed $startDate, mixed $endDate) : mixed
Parameters
$ossRegistration : mixed
$countryId : mixed
$startDate : mixed
$endDate : mixed

validate()

private validate(mixed $clientId, mixed $countryId, mixed $startDate, mixed $endDate) : mixed
Parameters
$clientId : mixed
$countryId : mixed
$startDate : mixed
$endDate : mixed

validateOverlapping()

private validateOverlapping(mixed $clientId, mixed $countryId, mixed $startDate, mixed $endDate) : mixed
Parameters
$clientId : mixed
$countryId : mixed
$startDate : mixed
$endDate : mixed

        
On this page

Search results