OfferService
Table of Contents
Properties
-
$authComponent
: AuthComponent
-
$checkoutOfferVatRegRepository
: CheckoutOfferVatRegRepository
-
$clientRepository
: ClientRepository
-
$countryRepository
: CountryRepository
-
$entityManager
: EntityManager
-
$log
: Logger
-
$offerRepository
: OfferRepository
Methods
-
__construct()
: mixed
-
addOffer()
: mixed
-
formatAdminOfferResponse()
: array<string|int, mixed>
-
formatOffersExportResponse()
: array<string|int, mixed>
-
formatOffersResponse()
: array<string|int, mixed>
-
formatRestOfferResponse()
: array<string|int, mixed>
-
getAllowedOssServicePackages()
: array<string|int, mixed>
-
getAllowedProformaServicePackages()
: array<string|int, mixed>
-
getAllowedVatRegistrationsByCountryId()
: array<string|int, mixed>
-
getAllowedVatServicePackages()
: array<string|int, mixed>|array<string|int, string>
-
getAmazonSlotPlan()
: AmazonSlotEntity
-
getCheckoutDatevPlans()
: array<string|int, mixed>
-
getCheckoutOfferVatRegPlans()
: array<string|int, mixed>|int|mixed|string
-
getCheckoutOssPlans()
: array<string|int, mixed>
-
getCheckoutProformaPlans()
: array<string|int, mixed>
-
getClientInfo()
: mixed
-
getDatevPlanGroupByPlanId()
: string
-
getDatevServicePlans()
: array<string|int, mixed>
-
getMandatoryAddons()
: array<string|int, mixed>
-
getOfferAdditionalServices()
: mixed
-
getOfferAddons()
: mixed
-
getOfferByHash()
: Offer|null
-
getOfferById()
: Offer
-
getOfferExportHeaders()
: array<string|int, string>
-
getOffers()
: array<string|int, mixed>
-
getOfferVatServiceAddons()
: mixed
-
getOssPlanGroupByPlanId()
: string
-
getOssServicePlans()
: mixed
-
getOssServiceRegistration()
: mixed
-
getOssStartDates()
: mixed
-
getProformaServicePlans()
: array<string|int, mixed>
-
getShopifySlotPlan()
: ShopifySlotEntity
-
getTotalOffers()
: int|mixed|string
-
getVatServiceCountries()
: array<string|int, mixed>
-
getVatServicePlans()
: array<string|int, mixed>
-
insertOfferViewStatistic()
: mixed
-
mapRequestToOffer()
: mixed
-
offerIsValid()
: bool
-
offerStatisticRepository()
: OfferStatisticRepository
-
updateOffer()
: mixed
-
checkoutPlanRepository()
: CheckoutPlanRepository
-
di()
: DiInterface|null
-
findCheckoutPlanByTextId()
: mixed|object|null
-
formatOfferResponse()
: array<string|int, mixed>
-
getAddonsByTextId()
: mixed
-
getCheckoutStoreService()
: CheckoutStoreService
-
getCountryById()
: mixed
-
getOfferLink()
: string
-
getPeriodByPeriodUnitId()
: string
-
getPeriodUnitIdByPeriod()
: string
-
getVatServicePlanGroupByPlanId()
: string
-
logOfferChange()
: mixed
-
makeFilterOffer()
: OfferFilter
-
populateLoggingData()
: mixed
-
resetOffer()
: mixed
__construct()
public
__construct(OfferRepository $offerRepository, CheckoutOfferVatRegRepository $checkoutOfferVatRegRepository, ClientRepository $clientRepository, CountryRepository $countryRepository, EntityManager $entityManager, Logger $log, AuthComponent $authComponent) : mixed
Parameters
-
$offerRepository
: OfferRepository
-
-
$checkoutOfferVatRegRepository
: CheckoutOfferVatRegRepository
-
-
$clientRepository
: ClientRepository
-
-
$countryRepository
: CountryRepository
-
-
$entityManager
: EntityManager
-
-
$log
: Logger
-
-
$authComponent
: AuthComponent
-
addOffer()
public
addOffer(Request $request, mixed $clientInfo, mixed $author) : mixed
Parameters
-
$request
: Request
-
-
$clientInfo
: mixed
-
-
$author
: mixed
-
public
formatAdminOfferResponse(Offer $offer) : array<string|int, mixed>
Parameters
-
$offer
: Offer
-
Return values
array<string|int, mixed>
public
formatOffersExportResponse(array<string|int, mixed> $offers) : array<string|int, mixed>
Parameters
-
$offers
: array<string|int, mixed>
-
-
throws
-
NoResultException
-
throws
-
NonUniqueResultException
Return values
array<string|int, mixed>
public
formatOffersResponse(array<string|int, Offer> $offers) : array<string|int, mixed>
Parameters
-
$offers
: array<string|int, Offer>
-
Return values
array<string|int, mixed>
public
formatRestOfferResponse(Offer $offer) : array<string|int, mixed>
Parameters
-
$offer
: Offer
-
Return values
array<string|int, mixed>
getAllowedOssServicePackages()
public
getAllowedOssServicePackages(mixed $ossCountryId) : array<string|int, mixed>
Parameters
-
$ossCountryId
: mixed
-
Return values
array<string|int, mixed>
public
getAllowedProformaServicePackages() : array<string|int, mixed>
Return values
array<string|int, mixed>
getAllowedVatRegistrationsByCountryId()
public
getAllowedVatRegistrationsByCountryId(int $countryId) : array<string|int, mixed>
Parameters
-
$countryId
: int
-
Return values
array<string|int, mixed>
getAllowedVatServicePackages()
public
getAllowedVatServicePackages() : array<string|int, mixed>|array<string|int, string>
Return values
array<string|int, mixed>|array<string|int, string>
getAmazonSlotPlan()
public
getAmazonSlotPlan() : AmazonSlotEntity
getCheckoutDatevPlans()
public
getCheckoutDatevPlans() : array<string|int, mixed>
Return values
array<string|int, mixed>
getCheckoutOfferVatRegPlans()
public
getCheckoutOfferVatRegPlans() : array<string|int, mixed>|int|mixed|string
Return values
array<string|int, mixed>|int|mixed|string
getCheckoutOssPlans()
public
getCheckoutOssPlans() : array<string|int, mixed>
Return values
array<string|int, mixed>
public
getCheckoutProformaPlans() : array<string|int, mixed>
Return values
array<string|int, mixed>
getClientInfo()
public
getClientInfo(mixed $id) : mixed
Parameters
-
$id
: mixed
-
getDatevPlanGroupByPlanId()
public
getDatevPlanGroupByPlanId(mixed $planId) : string
Parameters
-
$planId
: mixed
-
getDatevServicePlans()
public
getDatevServicePlans() : array<string|int, mixed>
Return values
array<string|int, mixed>
getMandatoryAddons()
public
getMandatoryAddons(int $countryId) : array<string|int, mixed>
Parameters
-
$countryId
: int
-
Return values
array<string|int, mixed>
getOfferAdditionalServices()
public
getOfferAdditionalServices() : mixed
getOfferAddons()
public
getOfferAddons() : mixed
getOfferByHash()
public
getOfferByHash(mixed $hash) : Offer|null
Parameters
-
$hash
: mixed
-
getOfferById()
public
getOfferById(mixed $id) : Offer
Parameters
-
$id
: mixed
-
public
getOfferExportHeaders() : array<string|int, string>
Return values
array<string|int, string>
getOffers()
public
getOffers(Request $request) : array<string|int, mixed>
Parameters
-
$request
: Request
-
Return values
array<string|int, mixed>
getOfferVatServiceAddons()
public
getOfferVatServiceAddons() : mixed
getOssPlanGroupByPlanId()
public
getOssPlanGroupByPlanId(mixed $planId) : string
Parameters
-
$planId
: mixed
-
getOssServicePlans()
public
getOssServicePlans() : mixed
getOssServiceRegistration()
public
getOssServiceRegistration() : mixed
getOssStartDates()
public
getOssStartDates() : mixed
public
getProformaServicePlans() : array<string|int, mixed>
Return values
array<string|int, mixed>
getShopifySlotPlan()
public
getShopifySlotPlan() : ShopifySlotEntity
getTotalOffers()
public
getTotalOffers(Request $request) : int|mixed|string
Parameters
-
$request
: Request
-
-
throws
-
NoResultException
-
throws
-
NonUniqueResultException
Return values
int|mixed|string
getVatServiceCountries()
public
getVatServiceCountries() : array<string|int, mixed>
Return values
array<string|int, mixed>
getVatServicePlans()
public
getVatServicePlans() : array<string|int, mixed>
Return values
array<string|int, mixed>
insertOfferViewStatistic()
public
insertOfferViewStatistic(mixed $offer, UserWrapper|null $userWrapper) : mixed
Parameters
-
$offer
: mixed
-
-
$userWrapper
: UserWrapper|null
-
mapRequestToOffer()
public
mapRequestToOffer(Offer $offer, mixed $data, mixed $clientInfo) : mixed
Parameters
-
$offer
: Offer
-
-
$data
: mixed
-
-
$clientInfo
: mixed
-
offerIsValid()
public
offerIsValid(UserWrapper|null $userWrapper, Offer|null $offer) : bool
Parameters
-
$userWrapper
: UserWrapper|null
-
-
$offer
: Offer|null
-
-
throws
-
DateMalformedStringException
offerStatisticRepository()
public
offerStatisticRepository() : OfferStatisticRepository
updateOffer()
public
updateOffer(Request $request, mixed $clientInfo) : mixed
Parameters
-
$request
: Request
-
-
$clientInfo
: mixed
-
checkoutPlanRepository()
private
checkoutPlanRepository() : CheckoutPlanRepository
di()
private
di() : DiInterface|null
Return values
DiInterface|null
findCheckoutPlanByTextId()
private
findCheckoutPlanByTextId(mixed $textId) : mixed|object|null
Parameters
-
$textId
: mixed
-
Return values
mixed|object|null
private
formatOfferResponse(Offer $offer) : array<string|int, mixed>
Parameters
-
$offer
: Offer
-
Return values
array<string|int, mixed>
getAddonsByTextId()
private
getAddonsByTextId(mixed $textId) : mixed
Parameters
-
$textId
: mixed
-
getCheckoutStoreService()
private
getCheckoutStoreService() : CheckoutStoreService
getCountryById()
private
getCountryById(int $countryId) : mixed
Parameters
-
$countryId
: int
-
getOfferLink()
private
getOfferLink(mixed $hash) : string
Parameters
-
$hash
: mixed
-
getPeriodByPeriodUnitId()
private
getPeriodByPeriodUnitId(mixed $periodUnitId) : string
Parameters
-
$periodUnitId
: mixed
-
getPeriodUnitIdByPeriod()
private
getPeriodUnitIdByPeriod(mixed $period) : string
Parameters
-
$period
: mixed
-
getVatServicePlanGroupByPlanId()
private
getVatServicePlanGroupByPlanId(mixed $planId) : string
Parameters
-
$planId
: mixed
-
logOfferChange()
private
logOfferChange(string $eventType, Offer $offer, array<string|int, mixed> $old, array<string|int, mixed> $new) : mixed
Parameters
-
$eventType
: string
-
-
$offer
: Offer
-
-
$old
: array<string|int, mixed>
-
-
$new
: array<string|int, mixed>
-
makeFilterOffer()
private
makeFilterOffer(mixed $request) : OfferFilter
Parameters
-
$request
: mixed
-
populateLoggingData()
private
populateLoggingData(Offer $offer) : mixed
Parameters
-
$offer
: Offer
-
resetOffer()
private
resetOffer(Offer $offer) : mixed
Parameters
-
$offer
: Offer
-