VatCalculationService
Table of Contents
Properties
-
$acl
: Acl
-
$auth
: AuthComponent
-
$clientRepository
: ClientRepository
-
$config
: Config
-
$externalLoggerService
: LoggerService
-
$externalSnapshotService
: SnapshotService
-
$snapshotService
: SnapshotService
-
$userPaymentReferenceNumberService
: UserPaymentReferenceNumberService
-
$userVatComponent
: UserVatComponent
-
$userVatDetectRepository
: UserVatDetectRepository
-
$userVatRepository
: NotificationRepository
-
$vatCalculationMapper
: VatCalculationMapper
Methods
-
__construct()
: mixed
-
deleteVatCalculationSetting()
: array<string|int, mixed>
-
getExistingFilingCompanies()
: array<string|int, UserCountryFilingCompany>
-
getExistingOssFilingCompanies()
: array<string|int, UserOssFilingCompany>
-
getVatCalculationSettings()
: array<string|int, mixed>
-
insertVatCalculationSetting()
: array<string|int, mixed>
-
updateVatCalculationSetting()
: array<string|int, mixed>
-
getExistingOptOuts()
: array<string|int, UserVatThresholdOptOut>
-
getExistingTraderSetting()
: UserTraderCountrySetting|null
-
getOptOutIsDisabled()
: mixed
-
getOssRegistration()
: OssRegistration|null
-
getSnapshotForExternalLog()
: array<string|int, mixed>
-
getUserVatOptOutModels()
: mixed
-
mergeDisabledFieldsWithVatCalculation()
: void
-
optOutIsSet()
: mixed
-
resultSetSimpleToArray()
: array<string|int, mixed>
-
updateOptOuts()
: bool
__construct()
public
__construct(UserVatRepository $userVatRepository, ClientRepository $clientRepository, UserVatDetectRepository $userVatDetectRepository, VatCalculationMapper $vatCalculationMapper, Acl $acl, UserVatComponent $userVatComponent, AuthComponent $auth, SnapshotService $snapshotService, UserPaymentReferenceNumberService $userPaymentReferenceNumberService) : mixed
Parameters
-
$userVatRepository
: UserVatRepository
-
-
$clientRepository
: ClientRepository
-
-
$userVatDetectRepository
: UserVatDetectRepository
-
-
$vatCalculationMapper
: VatCalculationMapper
-
-
$acl
: Acl
-
-
$userVatComponent
: UserVatComponent
-
-
$auth
: AuthComponent
-
-
$snapshotService
: SnapshotService
-
-
$userPaymentReferenceNumberService
: UserPaymentReferenceNumberService
-
deleteVatCalculationSetting()
public
deleteVatCalculationSetting(int $userId, int $countryId, array<string|int, mixed> $userChargeBeeSubscriptions) : array<string|int, mixed>
Parameters
-
$userId
: int
-
-
$countryId
: int
-
-
$userChargeBeeSubscriptions
: array<string|int, mixed>
-
-
throws
-
DeleteBlockedByExistingOssException
-
throws
-
GuzzleException
-
throws
-
UserVatNotFoundException
-
throws
-
UserVatDetectDuplicateException
-
throws
-
ForbiddenException
-
throws
-
Exception
Return values
array<string|int, mixed>
getExistingFilingCompanies()
public
getExistingFilingCompanies(UserVat $userVat) : array<string|int, UserCountryFilingCompany>
Parameters
-
$userVat
: UserVat
-
getExistingOssFilingCompanies()
public
getExistingOssFilingCompanies(UserVat $userVat) : array<string|int, UserOssFilingCompany>
Parameters
-
$userVat
: UserVat
-
getVatCalculationSettings()
public
getVatCalculationSettings(int $userId, mixed $userChargeBeeSubscriptions) : array<string|int, mixed>
Parameters
-
$userId
: int
-
-
$userChargeBeeSubscriptions
: mixed
-
-
throws
-
Exception
Return values
array<string|int, mixed>
insertVatCalculationSetting()
public
insertVatCalculationSetting(array<string|int, mixed> $postData, int $userId, int $countryId, array<string|int, mixed> $userChargeBeeSubscriptions) : array<string|int, mixed>
Parameters
-
$postData
: array<string|int, mixed>
-
-
$userId
: int
-
-
$countryId
: int
-
-
$userChargeBeeSubscriptions
: array<string|int, mixed>
-
-
throws
-
GuzzleException
-
throws
-
PhalconFormException
-
throws
-
Exception
Return values
array<string|int, mixed>
updateVatCalculationSetting()
public
updateVatCalculationSetting(array<string|int, mixed> $putData, int $userId, int $countryId, array<string|int, mixed> $userChargeBeeSubscriptions) : array<string|int, mixed>
Parameters
-
$putData
: array<string|int, mixed>
-
-
$userId
: int
-
-
$countryId
: int
-
-
$userChargeBeeSubscriptions
: array<string|int, mixed>
-
-
throws
-
UserVatNotFoundException
-
throws
-
NonUniqueResultException
-
throws
-
Exception
Return values
array<string|int, mixed>
getExistingOptOuts()
private
getExistingOptOuts(UserVat $userVat) : array<string|int, UserVatThresholdOptOut>
Parameters
-
$userVat
: UserVat
-
getExistingTraderSetting()
private
getExistingTraderSetting(UserVat $userVat) : UserTraderCountrySetting|null
Parameters
-
$userVat
: UserVat
-
getOptOutIsDisabled()
private
getOptOutIsDisabled(mixed $userId, mixed $toCountryId) : mixed
Parameters
-
$userId
: mixed
-
-
$toCountryId
: mixed
-
getOssRegistration()
private
getOssRegistration(UserVat $userVat) : OssRegistration|null
Parameters
-
$userVat
: UserVat
-
getSnapshotForExternalLog()
private
getSnapshotForExternalLog(UserVat $userVat) : array<string|int, mixed>
Parameters
-
$userVat
: UserVat
-
Return values
array<string|int, mixed>
getUserVatOptOutModels()
private
getUserVatOptOutModels(mixed $optOuts, mixed $userId, mixed $fromCountryId) : mixed
Parameters
-
$optOuts
: mixed
-
-
$userId
: mixed
-
-
$fromCountryId
: mixed
-
mergeDisabledFieldsWithVatCalculation()
private
mergeDisabledFieldsWithVatCalculation(mixed $vatCalculationEntity, mixed $putData, mixed $userChargeBeeSubscriptions) : void
Parameters
-
$vatCalculationEntity
: mixed
-
-
$putData
: mixed
-
-
$userChargeBeeSubscriptions
: mixed
-
optOutIsSet()
private
optOutIsSet(mixed $userVatOptOutModel) : mixed
Parameters
-
$userVatOptOutModel
: mixed
-
resultSetSimpleToArray()
private
resultSetSimpleToArray([mixed $resultSet = null ]) : array<string|int, mixed>
Parameters
-
$resultSet
: mixed
= null
-
Return values
array<string|int, mixed>
updateOptOuts()
private
updateOptOuts(mixed $vatCalculationEntity, mixed $data) : bool
Parameters
-
$vatCalculationEntity
: mixed
-
-
$data
: mixed
-