class CouponController extends Controller

Class CouponController defines routes for promotion and coupon

Methods

array
allCouponsAction()

Backend route for listing all promotions

JsonResponse
getAllCouponsJQGridAction(ArrayCollection $couponListJSON)

API route for loading all promotions

array
editCouponAction(ArrayCollection $couponGetJSON)

Backend route for promotion edit

JsonResponse
editJSONCouponAction(ArrayCollection $editCouponJSON)

API route for promotion edit

JsonResponse
removeJSONCouponAction(ArrayCollection $removeCouponsJSON)

API route for promotion remove

array
prefCouponAction(ArrayCollection $usersListCoupon)

Backend route for creating new coupon (promotion)

JsonResponse
couponSearchUsersAction(ArrayCollection $couponSearchUsersJSON)

API route for user search

Details

at line 41
array allCouponsAction()

Backend route for listing all promotions

Return Value

array

at line 56
JsonResponse getAllCouponsJQGridAction(ArrayCollection $couponListJSON)

API route for loading all promotions

Parameters

ArrayCollection $couponListJSON

Return Value

JsonResponse

See also

CouponListJSONConverter

at line 73
array editCouponAction(ArrayCollection $couponGetJSON)

Backend route for promotion edit

Parameters

ArrayCollection $couponGetJSON

Return Value

array

See also

CouponGetJSONConverter

at line 88
JsonResponse editJSONCouponAction(ArrayCollection $editCouponJSON)

API route for promotion edit

Parameters

ArrayCollection $editCouponJSON

Return Value

JsonResponse

See also

EditCouponJSONConverter

at line 103
JsonResponse removeJSONCouponAction(ArrayCollection $removeCouponsJSON)

API route for promotion remove

Parameters

ArrayCollection $removeCouponsJSON

Return Value

JsonResponse

See also

RemoveCouponsJSONConverter

at line 120
array prefCouponAction(ArrayCollection $usersListCoupon)

Backend route for creating new coupon (promotion)

Parameters

ArrayCollection $usersListCoupon

Return Value

array

See also

UsersListCouponConverter

at line 135
JsonResponse couponSearchUsersAction(ArrayCollection $couponSearchUsersJSON)

API route for user search

Parameters

ArrayCollection $couponSearchUsersJSON

Return Value

JsonResponse

See also

CouponSearchUsersJSONConverter