ZeroFillingCouponCancellationComponent
Table of Contents
Constants
-
ZERO_FILLING_COUPON_ID
= 'ZEROFILINGS50'
Properties
-
$chargeBeeComponent
: ChargeBeeComponent
-
$eventsManager
: Manager
-
$movementCreditRepository
: MovementCreditRepository
-
$movementProductRepository
: MovementProductRepository
-
$notificationMarkService
: NotificationMarkService
Methods
-
__construct()
: mixed
-
handle()
: array<string|int, mixed>
-
checkIfSubscriptionsHasBillingCycle()
: bool
-
createJobForDeletingZeroFillingCouponFromSubscriptions()
: mixed
-
getSubscriptions()
: array<string|int, mixed>
-
getSubscriptionsWithAppliedZeroFillingCoupon()
: array<string|int, mixed>
-
getTransactionsCountByClientIdAndPeriod()
: int
-
sendNotification()
: void
-
sendZeroFillingMonthlyNotification()
: void
-
sendZeroFillingYearlyNotification()
: void
ZERO_FILLING_COUPON_ID
public
mixed
ZERO_FILLING_COUPON_ID
= 'ZEROFILINGS50'
__construct()
public
__construct() : mixed
handle()
public
handle(mixed $clientId) : array<string|int, mixed>
Parameters
-
$clientId
: mixed
-
-
throws
-
OptimisticLockException
-
throws
-
ORMException
-
throws
-
DataException
Return values
array<string|int, mixed>
checkIfSubscriptionsHasBillingCycle()
private
checkIfSubscriptionsHasBillingCycle(mixed $subscriptions, mixed $billingCycle) : bool
Parameters
-
$subscriptions
: mixed
-
-
$billingCycle
: mixed
-
createJobForDeletingZeroFillingCouponFromSubscriptions()
private
createJobForDeletingZeroFillingCouponFromSubscriptions(mixed $clientId, array<string|int, mixed> $subscriptionsWithZeroFillingCoupon) : mixed
Parameters
-
$clientId
: mixed
-
-
$subscriptionsWithZeroFillingCoupon
: array<string|int, mixed>
-
getSubscriptions()
private
getSubscriptions(UserWrapper $userWrapper) : array<string|int, mixed>
Parameters
-
$userWrapper
: UserWrapper
-
Return values
array<string|int, mixed>
getSubscriptionsWithAppliedZeroFillingCoupon()
private
getSubscriptionsWithAppliedZeroFillingCoupon(UserWrapper $userWrapper) : array<string|int, mixed>
Parameters
-
$userWrapper
: UserWrapper
-
Return values
array<string|int, mixed>
getTransactionsCountByClientIdAndPeriod()
private
getTransactionsCountByClientIdAndPeriod(mixed $clientId, mixed $startDate, mixed $endDate) : int
Parameters
-
$clientId
: mixed
-
-
$startDate
: mixed
-
-
$endDate
: mixed
-
sendNotification()
private
sendNotification(UserWrapper $userWrapper, mixed $billingCycle, mixed $notificationClass) : void
Parameters
-
$userWrapper
: UserWrapper
-
-
$billingCycle
: mixed
-
-
$notificationClass
: mixed
-
sendZeroFillingMonthlyNotification()
private
sendZeroFillingMonthlyNotification(UserWrapper $userWrapper) : void
Parameters
-
$userWrapper
: UserWrapper
-
sendZeroFillingYearlyNotification()
private
sendZeroFillingYearlyNotification(UserWrapper $userWrapper) : void
Parameters
-
$userWrapper
: UserWrapper
-