Documentation

OfferService
in package

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

Properties

Methods

__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

formatAdminOfferResponse()

public formatAdminOfferResponse(Offer $offer) : array<string|int, mixed>
Parameters
$offer : Offer
Return values
array<string|int, mixed>

formatOffersExportResponse()

public formatOffersExportResponse(array<string|int, mixed> $offers) : array<string|int, mixed>
Parameters
$offers : array<string|int, mixed>
Tags
throws
NoResultException
throws
NonUniqueResultException
Return values
array<string|int, mixed>

formatOffersResponse()

public formatOffersResponse(array<string|int, Offer$offers) : array<string|int, mixed>
Parameters
$offers : array<string|int, Offer>
Return values
array<string|int, mixed>

formatRestOfferResponse()

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>

getAllowedProformaServicePackages()

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>

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>

getCheckoutProformaPlans()

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
Return values
string

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

getOfferByHash()

public getOfferByHash(mixed $hash) : Offer|null
Parameters
$hash : mixed
Return values
Offer|null

getOfferExportHeaders()

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
Return values
string

getOssServicePlans()

public getOssServicePlans() : mixed

getOssServiceRegistration()

public getOssServiceRegistration() : mixed

getProformaServicePlans()

public getProformaServicePlans() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTotalOffers()

public getTotalOffers(Request $request) : int|mixed|string
Parameters
$request : Request
Tags
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
Tags
throws
DateMalformedStringException
Return values
bool

updateOffer()

public updateOffer(Request $request, mixed $clientInfo) : mixed
Parameters
$request : Request
$clientInfo : mixed

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

formatOfferResponse()

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

getCountryById()

private getCountryById(int $countryId) : mixed
Parameters
$countryId : int
private getOfferLink(mixed $hash) : string
Parameters
$hash : mixed
Return values
string

getPeriodByPeriodUnitId()

private getPeriodByPeriodUnitId(mixed $periodUnitId) : string
Parameters
$periodUnitId : mixed
Return values
string

getPeriodUnitIdByPeriod()

private getPeriodUnitIdByPeriod(mixed $period) : string
Parameters
$period : mixed
Return values
string

getVatServicePlanGroupByPlanId()

private getVatServicePlanGroupByPlanId(mixed $planId) : string
Parameters
$planId : mixed
Return values
string

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>

        
On this page

Search results