CheckoutInvoiceService
Table of Contents
Properties
-
$cacheService
: CacheService
-
$chargeBeeAddonsRepository
: ChargeBeeAddonsRepository
-
$chargeBeeComponent
: ChargeBeeComponent
-
$countryService
: CountryService
-
$entityManager
: EntityManager
-
$userAllowedProvidersRepository
: UserAllowedProvidersRepository
-
$userModuleRepository
: UserModuleRepository
-
$userVatComponent
: UserVatComponent
Methods
-
__construct()
: mixed
-
confirmOrder()
: mixed
-
insertOfferPurchaseStatistic()
: mixed
-
applyCouponsIfApplicable()
: mixed
-
checkIfCouponApplicableToAddon()
: mixed
-
clientHasVatInCountry()
: mixed
-
confirmCheckoutRquestAdditionalServices()
: mixed
-
confirmCountryRegistrations()
: mixed
-
createAddonInvoice()
: mixed
-
createNewProviderSlotSubscription()
: mixed
-
createPendingSubscription()
: mixed
-
formatCountryRegistrationData()
: array<string|int, mixed>
-
getDatevSubscriptionTextIdByClient()
: mixed
-
getProformaSubscriptionTextIdByClient()
: mixed
-
getVatRegSubscriptionTextIdByClient()
: mixed
-
getVatRegSubscriptionTextIdByClientAndCountryId()
: mixed
__construct()
public
__construct(ChargeBeeComponent $chargeBeeComponent, CacheService $cacheService, EntityManager $entityManager, CountryService $countryService, ChargeBeeAddonsRepository $chargeBeeAddonsRepository, UserVatComponent $userVatComponent, UserAllowedProvidersRepository $userAllowedProvidersRepository, UserModuleRepository $userModuleRepository) : mixed
Parameters
-
$chargeBeeComponent
: ChargeBeeComponent
-
-
$cacheService
: CacheService
-
-
$entityManager
: EntityManager
-
-
$countryService
: CountryService
-
-
$chargeBeeAddonsRepository
: ChargeBeeAddonsRepository
-
-
$userVatComponent
: UserVatComponent
-
-
$userAllowedProvidersRepository
: UserAllowedProvidersRepository
-
-
$userModuleRepository
: UserModuleRepository
-
confirmOrder()
public
confirmOrder(ShoppingSession $session, UserWrapper $user) : mixed
Parameters
-
$session
: ShoppingSession
-
-
$user
: UserWrapper
-
insertOfferPurchaseStatistic()
public
insertOfferPurchaseStatistic(ShoppingSession $session, UserWrapper $userWrapper) : mixed
Parameters
-
$session
: ShoppingSession
-
-
$userWrapper
: UserWrapper
-
applyCouponsIfApplicable()
private
applyCouponsIfApplicable(mixed $item, array<string|int, mixed> $coupons, mixed $couponCodeClassEntityName) : mixed
Parameters
-
$item
: mixed
-
-
$coupons
: array<string|int, mixed>
-
-
$couponCodeClassEntityName
: mixed
-
checkIfCouponApplicableToAddon()
private
checkIfCouponApplicableToAddon(Coupon $coupon, Addon $addon) : mixed
Parameters
-
$coupon
: Coupon
-
-
$addon
: Addon
-
clientHasVatInCountry()
private
clientHasVatInCountry(Client $client, mixed $countryId) : mixed
Parameters
-
$client
: Client
-
-
$countryId
: mixed
-
confirmCheckoutRquestAdditionalServices()
private
confirmCheckoutRquestAdditionalServices(ShoppingSession $session, CheckoutRequest $checkoutRequest, mixed $invoiceId) : mixed
Parameters
-
$session
: ShoppingSession
-
-
$checkoutRequest
: CheckoutRequest
-
-
$invoiceId
: mixed
-
confirmCountryRegistrations()
private
confirmCountryRegistrations(ShoppingSession $session, UserWrapper $userWrapper, CheckoutRequest $checkoutRequest, mixed $invoiceId) : mixed
Parameters
-
$session
: ShoppingSession
-
-
$userWrapper
: UserWrapper
-
-
$checkoutRequest
: CheckoutRequest
-
-
$invoiceId
: mixed
-
-
throws
-
ORMException
-
throws
-
OptimisticLockException
createAddonInvoice()
private
createAddonInvoice(ShoppingSession $session, UserWrapper $userWrapper) : mixed
Parameters
-
$session
: ShoppingSession
-
-
$userWrapper
: UserWrapper
-
createNewProviderSlotSubscription()
private
createNewProviderSlotSubscription(mixed $subscriptionId, mixed $userModuleNotCancelledAndWithoutSubscription, mixed $userHasProvider) : mixed
Parameters
-
$subscriptionId
: mixed
-
-
$userModuleNotCancelledAndWithoutSubscription
: mixed
-
-
$userHasProvider
: mixed
-
createPendingSubscription()
private
createPendingSubscription(string $chargebeeId, Client $client, mixed $planId, string $subscriptionSuffix, DateTime $requestedServiceStartDate) : mixed
Parameters
-
$chargebeeId
: string
-
-
$client
: Client
-
-
$planId
: mixed
-
-
$subscriptionSuffix
: string
-
-
$requestedServiceStartDate
: DateTime
-
private
formatCountryRegistrationData(mixed $countryId, mixed $textId) : array<string|int, mixed>
Parameters
-
$countryId
: mixed
-
-
$textId
: mixed
-
Return values
array<string|int, mixed>
getDatevSubscriptionTextIdByClient()
private
getDatevSubscriptionTextIdByClient(Client $client) : mixed
Parameters
-
$client
: Client
-
getProformaSubscriptionTextIdByClient()
private
getProformaSubscriptionTextIdByClient(Client $client) : mixed
Parameters
-
$client
: Client
-
getVatRegSubscriptionTextIdByClient()
private
getVatRegSubscriptionTextIdByClient(Client $client) : mixed
Parameters
-
$client
: Client
-
getVatRegSubscriptionTextIdByClientAndCountryId()
private
getVatRegSubscriptionTextIdByClientAndCountryId(Client $client, int $countryId) : mixed
Parameters
-
$client
: Client
-
-
$countryId
: int
-