UserVatSingleComponent
extends Injectable
Table of Contents
Properties
-
$countryId
: mixed
-
$dateFormat
: mixed
-
$existingOptOutCountries
: mixed
-
$messages
: mixed
-
$thresholdExceed
: mixed
-
$userId
: mixed
-
$userVat
: mixed
-
$userVatList
: mixed
-
$auth
: AuthComponent
-
$bankingDetailSettingService
: BankingDetailSettingService
-
$checkListHelper
: CheckListHelper
-
$client
: Client|null
-
$config
: Config
-
$externalLoggerService
: LoggerService
-
$externalSnapshotService
: SnapshotService
-
$filingCompanyService
: FilingCompanyService
-
$snapshotService
: SnapshotService
-
$userAccountRepository
: UserAccountRepository
-
$userCountryFilingCompanyService
: UserCountryFilingCompanyService
-
$userOssFilingCompanyService
: UserOssFilingCompanyService
-
$userVatDetectService
: UserVatDetectService
Methods
-
__construct()
: mixed
-
checkNewFilingCompany()
: mixed
-
checkNewOptOut()
: mixed
-
checkNewOssFilingCompany()
: mixed
-
checkValidDateFormat()
: mixed
-
deleteUserVat()
: mixed
-
getAllTraderCountrySetting()
: mixed
-
getAvailableCountries()
: mixed
-
getCountryId()
: mixed
-
getDigitalRegistration()
: mixed
-
getExistingOptOutForCountry()
: mixed
-
getJsonResponse()
: mixed
-
getMessages()
: mixed
-
getOssRegistration()
: OssRegistration|null
-
getResponseArray()
: mixed
-
getSuggestedStartDate()
: mixed
-
getUserCountryFilingCompanies()
: mixed
-
getUserId()
: mixed
-
getUserOssFilingCompanies()
: mixed
-
getUserTraderCountrySetting()
: mixed
-
getUserVat()
: UserVat
-
getUserVatList()
: mixed
-
getUserVatListResponseArray()
: mixed
-
getUserVatListWithSuggestion()
: mixed
-
getUserVatToDelete()
: mixed
-
getValidator()
: mixed
-
saveVatSettings()
: mixed
-
setCountryId()
: mixed
-
setUserId()
: mixed
-
setUserVat()
: mixed
-
validateAll()
: mixed
-
validateAnyFilingCompanies()
: mixed
-
validateCreate()
: mixed
-
validateFilingCompanies()
: mixed
-
validateForm()
: mixed
-
validateOptOut()
: mixed
-
validateOssFilingCompanies()
: mixed
-
validateOssRegistration()
: mixed
-
validateTraderTypeSetting()
: mixed
-
validateUnique()
: mixed
-
validateUpdate()
: mixed
-
validateUser()
: mixed
-
get()
: mixed
-
getUserVatThresholdOptOut()
: mixed
-
addArrangeJob()
: mixed
-
getOptOutsFrom()
: mixed
-
getSnapshotForExternalLog()
: mixed
-
sortFilingCompanyPostData()
: mixed
$countryId
protected
mixed
$countryId
= false
protected
mixed
$dateFormat
= "Y-m-d"
$existingOptOutCountries
protected
mixed
$existingOptOutCountries
= []
$messages
protected
mixed
$messages
= []
$thresholdExceed
protected
mixed
$thresholdExceed
$userId
protected
mixed
$userId
= false
$userVat
protected
mixed
$userVat
= false
$userVatList
protected
mixed
$userVatList
= false
$auth
private
AuthComponent
$auth
$bankingDetailSettingService
private
BankingDetailSettingService
$bankingDetailSettingService
$checkListHelper
private
CheckListHelper
$checkListHelper
$client
private
Client|null
$client
$config
private
Config
$config
$externalLoggerService
private
LoggerService
$externalLoggerService
$externalSnapshotService
private
SnapshotService
$externalSnapshotService
$filingCompanyService
private
FilingCompanyService
$filingCompanyService
$snapshotService
private
SnapshotService
$snapshotService
$userAccountRepository
private
UserAccountRepository
$userAccountRepository
$userCountryFilingCompanyService
private
UserCountryFilingCompanyService
$userCountryFilingCompanyService
$userOssFilingCompanyService
private
UserOssFilingCompanyService
$userOssFilingCompanyService
$userVatDetectService
private
UserVatDetectService
$userVatDetectService
__construct()
public
__construct(mixed $userId, mixed $countryId) : mixed
Parameters
-
$userId
: mixed
-
-
$countryId
: mixed
-
checkNewFilingCompany()
public
checkNewFilingCompany(array<string|int, mixed> $formData) : mixed
Parameters
-
$formData
: array<string|int, mixed>
-
checkNewOptOut()
public
checkNewOptOut(array<string|int, mixed> $formData) : mixed
Parameters
-
$formData
: array<string|int, mixed>
-
checkNewOssFilingCompany()
public
checkNewOssFilingCompany(array<string|int, mixed> $formData) : mixed
Parameters
-
$formData
: array<string|int, mixed>
-
public
checkValidDateFormat(mixed $date) : mixed
Parameters
-
$date
: mixed
-
deleteUserVat()
public
deleteUserVat() : mixed
-
throws
-
GuzzleException
getAllTraderCountrySetting()
public
getAllTraderCountrySetting(int $countryId) : mixed
Parameters
-
$countryId
: int
-
getAvailableCountries()
public
getAvailableCountries() : mixed
getCountryId()
public
getCountryId() : mixed
getDigitalRegistration()
public
getDigitalRegistration(mixed $clientId, mixed $countryIsoCode) : mixed
Parameters
-
$clientId
: mixed
-
-
$countryIsoCode
: mixed
-
getExistingOptOutForCountry()
public
getExistingOptOutForCountry(mixed $countryId) : mixed
Parameters
-
$countryId
: mixed
-
getJsonResponse()
public
getJsonResponse([mixed $array = [] ][, mixed $statusCode = false ]) : mixed
Parameters
-
$array
: mixed
= []
-
-
$statusCode
: mixed
= false
-
getMessages()
public
getMessages() : mixed
getOssRegistration()
public
getOssRegistration([UserVat|null $userVat = null ][, mixed $transaction = null ]) : OssRegistration|null
Parameters
-
$userVat
: UserVat|null
= null
-
-
$transaction
: mixed
= null
-
getResponseArray()
public
getResponseArray() : mixed
getSuggestedStartDate()
public
getSuggestedStartDate(mixed $userId, mixed $countryId) : mixed
Parameters
-
$userId
: mixed
-
-
$countryId
: mixed
-
getUserCountryFilingCompanies()
public
getUserCountryFilingCompanies([UserVat|null $userVat = null ][, mixed $transaction = null ]) : mixed
Parameters
-
$userVat
: UserVat|null
= null
-
-
$transaction
: mixed
= null
-
getUserId()
public
getUserId() : mixed
getUserOssFilingCompanies()
public
getUserOssFilingCompanies([UserVat|null $userVat = null ][, mixed $transaction = null ]) : mixed
Parameters
-
$userVat
: UserVat|null
= null
-
-
$transaction
: mixed
= null
-
getUserTraderCountrySetting()
public
getUserTraderCountrySetting([mixed $countryId = null ][, mixed $userId = null ][, mixed $transaction = null ]) : mixed
Parameters
-
$countryId
: mixed
= null
-
-
$userId
: mixed
= null
-
-
$transaction
: mixed
= null
-
getUserVat()
public
getUserVat() : UserVat
getUserVatList()
public
getUserVatList() : mixed
getUserVatListResponseArray()
public
getUserVatListResponseArray() : mixed
getUserVatListWithSuggestion()
public
getUserVatListWithSuggestion() : mixed
getUserVatToDelete()
public
getUserVatToDelete() : mixed
getValidator()
public
getValidator() : mixed
saveVatSettings()
public
saveVatSettings(mixed $putFormData[, bool $addArrangeJob = false ][, int $eventTypeId = EntityChangeEventType::TYPE_ID_CREATE ][, mixed $originalUserVat = null ]) : mixed
Parameters
-
$putFormData
: mixed
-
-
$addArrangeJob
: bool
= false
-
-
$eventTypeId
: int
= EntityChangeEventType::TYPE_ID_CREATE
-
-
$originalUserVat
: mixed
= null
-
setCountryId()
public
setCountryId(mixed $countryId) : mixed
Parameters
-
$countryId
: mixed
-
setUserId()
public
setUserId(mixed $userId) : mixed
Parameters
-
$userId
: mixed
-
setUserVat()
public
setUserVat(mixed $userVat) : mixed
Parameters
-
$userVat
: mixed
-
validateAll()
public
validateAll(mixed $formData) : mixed
Parameters
-
$formData
: mixed
-
validateAnyFilingCompanies()
public
validateAnyFilingCompanies(mixed $postFormData[, mixed $fieldName = "filing_companies" ]) : mixed
Parameters
-
$postFormData
: mixed
-
-
$fieldName
: mixed
= "filing_companies"
-
validateCreate()
public
validateCreate(mixed $formData) : mixed
Parameters
-
$formData
: mixed
-
validateFilingCompanies()
public
validateFilingCompanies(mixed $postFormData) : mixed
Parameters
-
$postFormData
: mixed
-
public
validateForm(mixed $formData) : mixed
Parameters
-
$formData
: mixed
-
validateOptOut()
public
validateOptOut(mixed $formData) : mixed
Parameters
-
$formData
: mixed
-
validateOssFilingCompanies()
public
validateOssFilingCompanies(mixed $postFormData) : mixed
Parameters
-
$postFormData
: mixed
-
validateOssRegistration()
public
validateOssRegistration(mixed $formData) : mixed
Parameters
-
$formData
: mixed
-
validateTraderTypeSetting()
public
validateTraderTypeSetting(mixed $formData) : mixed
Parameters
-
$formData
: mixed
-
validateUnique()
public
validateUnique(mixed $formData) : mixed
Parameters
-
$formData
: mixed
-
validateUpdate()
public
validateUpdate(mixed $formData) : mixed
Parameters
-
$formData
: mixed
-
validateUser()
public
validateUser() : mixed
get()
protected
get(mixed $userId, mixed $countryId) : mixed
Parameters
-
$userId
: mixed
-
-
$countryId
: mixed
-
getUserVatThresholdOptOut()
protected
getUserVatThresholdOptOut(mixed $countryId[, mixed $optOutArray = [] ]) : mixed
Parameters
-
$countryId
: mixed
-
-
$optOutArray
: mixed
= []
-
addArrangeJob()
private
addArrangeJob() : mixed
getOptOutsFrom()
private
getOptOutsFrom(UserVat $userVat[, mixed $transaction = null ]) : mixed
Parameters
-
$userVat
: UserVat
-
-
$transaction
: mixed
= null
-
getSnapshotForExternalLog()
private
getSnapshotForExternalLog([mixed $transaction = null ][, mixed $originalUserVat = null ]) : mixed
Parameters
-
$transaction
: mixed
= null
-
-
$originalUserVat
: mixed
= null
-
sortFilingCompanyPostData()
private
sortFilingCompanyPostData(mixed &$postFormData[, mixed $fieldName = "filing_companies" ]) : mixed
Parameters
-
$postFormData
: mixed
-
-
$fieldName
: mixed
= "filing_companies"
-