CheckoutStoreService
in package
Class CheckoutStoreService
Table of Contents
Properties
- $chargeBeePlansRepository : ChargeBeePlansRepository
- $chargeBeeService : ChargeBeeService
- $checkoutAddonRepository : CheckoutAddonRepository
- $checkoutMandatoryAddonRepository : CheckoutMandatoryAddonRepository
- $checkoutOfferVatRegRepository : CheckoutOfferVatRegRepository
- $clientRepository : ClientRepository
- $countryDateGroupRepository : CountryDateGroupRepository
- $em : EntityManager
- $userVatComponent : UserVatComponent
- $userVatDetectService : UserVatDetectService
Methods
- __construct() : mixed
- getAdditionalServices() : mixed
- getAmazonSlotByClient() : AmazonSlotEntity
- getAutomatedProvidersPlans() : mixed
- getDatevEntityByClient() : DatevEntity
- getHomeCountry() : Country
- getOssEntityByClient() : OssEntity
- getProformaEntityByClient() : ProformaEntity
- getPurchasableServicesByClient() : PurchasableServices
- getRecurringAdditionalServices() : mixed
- getServiceListByUserId() : mixed
- getShopifySlotByClient() : ShopifySlotEntity
- getVatRegistrationCountryEntitiesByClient() : array<string|int, VatRegistrationCountryEntity>
- listPlans() : array<string|int, ChargeBeePlanEntity>
- prepareOssEntityPlans() : mixed
- prepareOssEntityRegistration() : mixed
- getAddonEntitiesFromCheckoutMandatoryAddonModelsArray() : array<string|int, AddonEntity>
- getAddonEntityFromModel() : mixed
- getDatevPlans() : array<string|int, CheckoutPlan>
- getDatevSubscription() : mixed
- getMandatoryAddons() : array<string|int, array<string|int, CheckoutMandatoryAddon>>
- getOfferableOss() : array<string|int, OssPlanCountryGroup>
- getOfferableOssPlanCountryGroupRegistrationAddon() : OssRegistrationAddon
- getOfferableOssRegistrations() : array<string|int, OssRegistrationCountryGroup>
- getOfferableVatReg() : array<string|int, array<string|int, CheckoutOfferVatReg>>
- getOssSubscription() : mixed
- getPackages() : array<string|int, mixed>
- getProformaMinDate() : mixed
- getProformaPlans() : array<string|int, CheckoutPlan>
- getProformaSubscription() : mixed
- getStartDateFromSubscriptionLog() : mixed
- getSubscriptions() : mixed
- getThresholds() : array<string|int, UserVatDetect>
- getUserVatCountries() : mixed
- getUserVats() : array<string|int, UserVat>
Properties
$chargeBeePlansRepository
private
ChargeBeePlansRepository
$chargeBeePlansRepository
$chargeBeeService
private
ChargeBeeService
$chargeBeeService
$checkoutAddonRepository
private
CheckoutAddonRepository
$checkoutAddonRepository
$checkoutMandatoryAddonRepository
private
CheckoutMandatoryAddonRepository
$checkoutMandatoryAddonRepository
$checkoutOfferVatRegRepository
private
CheckoutOfferVatRegRepository
$checkoutOfferVatRegRepository
$clientRepository
private
ClientRepository
$clientRepository
$countryDateGroupRepository
private
CountryDateGroupRepository
$countryDateGroupRepository
$em
private
EntityManager
$em
$userVatComponent
private
UserVatComponent
$userVatComponent
$userVatDetectService
private
UserVatDetectService
$userVatDetectService
Methods
__construct()
public
__construct(ClientRepository $clientRepository, ChargeBeePlansRepository $chargeBeePlansRepository, ChargeBeeService $chargeBeeService, CheckoutAddonRepository $checkoutAddonRepository, CheckoutOfferVatRegRepository $checkoutOfferVatRegRepository, CheckoutMandatoryAddonRepository $checkoutMandatoryAddonRepository, UserVatComponent $userVatComponent, UserVatDetectService $userVatDetectService, EntityManager $em, CountryDateGroupRepository $countryDateGroupRepository) : mixed
Parameters
- $clientRepository : ClientRepository
- $chargeBeePlansRepository : ChargeBeePlansRepository
- $chargeBeeService : ChargeBeeService
- $checkoutAddonRepository : CheckoutAddonRepository
- $checkoutOfferVatRegRepository : CheckoutOfferVatRegRepository
- $checkoutMandatoryAddonRepository : CheckoutMandatoryAddonRepository
- $userVatComponent : UserVatComponent
- $userVatDetectService : UserVatDetectService
- $em : EntityManager
- $countryDateGroupRepository : CountryDateGroupRepository
getAdditionalServices()
public
getAdditionalServices() : mixed
getAmazonSlotByClient()
public
getAmazonSlotByClient([Client $client = null ]) : AmazonSlotEntity
Parameters
- $client : Client = null
Return values
AmazonSlotEntitygetAutomatedProvidersPlans()
public
getAutomatedProvidersPlans(PurchasableServices $purchasableServices) : mixed
Parameters
- $purchasableServices : PurchasableServices
getDatevEntityByClient()
public
getDatevEntityByClient(Client $client) : DatevEntity
Parameters
- $client : Client
Return values
DatevEntitygetHomeCountry()
public
getHomeCountry(Client $client) : Country
Parameters
- $client : Client
Tags
Return values
CountrygetOssEntityByClient()
public
getOssEntityByClient(Client $client, mixed $isEuClient, mixed $userVatCountries) : OssEntity
Parameters
- $client : Client
- $isEuClient : mixed
- $userVatCountries : mixed
Return values
OssEntitygetProformaEntityByClient()
public
getProformaEntityByClient(Client $client) : ProformaEntity
Parameters
- $client : Client
Return values
ProformaEntitygetPurchasableServicesByClient()
public
getPurchasableServicesByClient(Client $client) : PurchasableServices
Parameters
- $client : Client
Return values
PurchasableServicesgetRecurringAdditionalServices()
public
getRecurringAdditionalServices() : mixed
getServiceListByUserId()
public
getServiceListByUserId(int $userId) : mixed
Parameters
- $userId : int
getShopifySlotByClient()
public
getShopifySlotByClient([Client|null $client = null ]) : ShopifySlotEntity
Parameters
- $client : Client|null = null
Return values
ShopifySlotEntitygetVatRegistrationCountryEntitiesByClient()
public
getVatRegistrationCountryEntitiesByClient(Client $client) : array<string|int, VatRegistrationCountryEntity>
Parameters
- $client : Client
Tags
Return values
array<string|int, VatRegistrationCountryEntity> —Collects purchasable VAT Registration countries based on company_country_id from checkout_offer_vat_reg table, disables offer with matching company_country_id and where subscription exists in vat_reg_country_id, assigns plan by checkout_plan_id and period_unit_id to monthly and yearly, assigns a suggested_start_date if UserVat exists
listPlans()
public
listPlans() : array<string|int, ChargeBeePlanEntity>
Return values
array<string|int, ChargeBeePlanEntity>prepareOssEntityPlans()
public
prepareOssEntityPlans(OssEntity $ossEntity) : mixed
Parameters
- $ossEntity : OssEntity
prepareOssEntityRegistration()
public
prepareOssEntityRegistration(OssEntity $ossEntity) : mixed
Parameters
- $ossEntity : OssEntity
getAddonEntitiesFromCheckoutMandatoryAddonModelsArray()
private
getAddonEntitiesFromCheckoutMandatoryAddonModelsArray([array<string|int, mixed>|null $models = null ]) : array<string|int, AddonEntity>
Parameters
- $models : array<string|int, mixed>|null = null
Return values
array<string|int, AddonEntity>getAddonEntityFromModel()
private
getAddonEntityFromModel(CheckoutAddon $model) : mixed
Parameters
- $model : CheckoutAddon
getDatevPlans()
private
getDatevPlans() : array<string|int, CheckoutPlan>
Return values
array<string|int, CheckoutPlan>getDatevSubscription()
private
getDatevSubscription(Client $client) : mixed
Parameters
- $client : Client
getMandatoryAddons()
private
getMandatoryAddons(Client $client) : array<string|int, array<string|int, CheckoutMandatoryAddon>>
Parameters
- $client : Client
Tags
Return values
array<string|int, array<string|int, CheckoutMandatoryAddon>>getOfferableOss()
private
getOfferableOss() : array<string|int, OssPlanCountryGroup>
Return values
array<string|int, OssPlanCountryGroup>getOfferableOssPlanCountryGroupRegistrationAddon()
private
getOfferableOssPlanCountryGroupRegistrationAddon(mixed $planId, mixed $countryId) : OssRegistrationAddon
Parameters
- $planId : mixed
- $countryId : mixed
Return values
OssRegistrationAddongetOfferableOssRegistrations()
private
getOfferableOssRegistrations() : array<string|int, OssRegistrationCountryGroup>
Return values
array<string|int, OssRegistrationCountryGroup>getOfferableVatReg()
private
getOfferableVatReg(Client $client) : array<string|int, array<string|int, CheckoutOfferVatReg>>
Parameters
- $client : Client
Tags
Return values
array<string|int, array<string|int, CheckoutOfferVatReg>>getOssSubscription()
private
getOssSubscription(Client $client) : mixed
Parameters
- $client : Client
getPackages()
private
getPackages() : array<string|int, mixed>
Return values
array<string|int, mixed>getProformaMinDate()
private
getProformaMinDate(Client $client) : mixed
Parameters
- $client : Client
getProformaPlans()
private
getProformaPlans() : array<string|int, CheckoutPlan>
Return values
array<string|int, CheckoutPlan>getProformaSubscription()
private
getProformaSubscription(Client $client) : mixed
Parameters
- $client : Client
getStartDateFromSubscriptionLog()
private
getStartDateFromSubscriptionLog(Subscriptions $subscription) : mixed
Parameters
- $subscription : Subscriptions
getSubscriptions()
private
getSubscriptions(Client $client) : mixed
Parameters
- $client : Client
getThresholds()
private
getThresholds(Client $client) : array<string|int, UserVatDetect>
Parameters
- $client : Client
Return values
array<string|int, UserVatDetect>getUserVatCountries()
private
getUserVatCountries(Client $client, bool $isEuClient, array<string|int, VatRegistrationCountryEntity> $vatRegistrations) : mixed
Parameters
- $client : Client
- $isEuClient : bool
- $vatRegistrations : array<string|int, VatRegistrationCountryEntity>
getUserVats()
private
getUserVats(Client $client) : array<string|int, UserVat>
Parameters
- $client : Client