Package org.jayasoft.woj.portal.business.services.commercial

Examples of org.jayasoft.woj.portal.business.services.commercial.FidelityService


                       
                       
                        // We modify user for fidelity
                        Product p = pendingOrder.getPrice().getProduct();
                        int years = pendingOrder.getSubscribedYears();
                        FidelityService fs = ServiceFactory.getFidelityService();
                        fs.buy(buyer, p, years, pendingOrder.getSubscribedUsers());
                       
                        LOGGER.info("creating invoice...");
                        Invoice invoice = ServiceFactory.getCommercialService().createInvoice(pendingOrder, pendingOrder.getPurchaser());
            ServiceFactory.getRegistrationService().sendLicenseBuyConfirmationMail(pendingOrder.getBuyer(), pendingOrder, lic, invoice);
                        LOGGER.info("payment created");
View Full Code Here


        return new ActionTemplate(mapping, form, request, response).execute(
                new AbstractActionCall(){
                    public String doInAction(ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServiceException {
                        ActionsHelper.rememberPage(request, "/fidelity/showFidelityOffers");
                       
                        FidelityService fs = ServiceFactory.getFidelityService();
                        PricingService ps = ServiceFactory.getPricingService();
                        Product pStd = ps.getProduct("STD");
                        Product pPro = ps.getProduct("PRO250");

                        List ppStdPurchase = fs.getPointsByProduct(pStd, ProductPoint.PURCHASE);
                        List ppProPurchase = fs.getPointsByProduct(pPro, ProductPoint.PURCHASE);
                        List ppStdGodson = fs.getPointsByProduct(pStd, ProductPoint.GODSON);
                        List ppProGodson = fs.getPointsByProduct(pPro, ProductPoint.GODSON);
                       
                        List offers = fs.getFidelityOffers();
                       
                        request.setAttribute(Params.FIDELITY_OFFERS.SHOW_OFFERS.REQUEST.PP_PURCHASE_STD, ppStdPurchase);
                        request.setAttribute(Params.FIDELITY_OFFERS.SHOW_OFFERS.REQUEST.PP_PURCHASE_PRO, ppProPurchase);
                        request.setAttribute(Params.FIDELITY_OFFERS.SHOW_OFFERS.REQUEST.PP_GODSON_PURCHASE_STD, ppStdGodson);
                        request.setAttribute(Params.FIDELITY_OFFERS.SHOW_OFFERS.REQUEST.PP_GODSON_PURCHASE_PRO, ppProGodson);
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.portal.business.services.commercial.FidelityService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.