public class BroadleafManageGiftCardController
extends org.broadleafcommerce.core.web.controller.checkout.AbstractCheckoutController
Modifier and Type | Field and Description |
---|---|
protected AccountCreditOrderPaymentService |
accountCreditOrderPaymentService |
protected static String |
accountRedeemGiftCardView |
protected CreditAccountService |
creditAccountService |
protected CustomerCreditAccountService |
customerCreditAccountService |
protected GiftCardAccountService |
giftCardAccountService |
protected static String |
giftCardBalanceView |
protected org.broadleafcommerce.core.web.checkout.validator.GiftCardInfoFormValidator |
giftCardInfoFormValidator |
protected static org.apache.commons.logging.Log |
LOG |
ACTIVE_STAGE, addressService, baseConfirmationView, billingInfoFormValidator, cartPageRedirect, cartStateService, checkoutControllerExtensionManager, checkoutPageRedirect, checkoutService, checkoutStagesPartial, checkoutView, countryService, countrySubdivisionService, customerAddressService, customerPaymentService, customerService, dtoTranslationService, fulfillmentGroupService, fulfillmentOptionService, initBinderService, isoService, multishipAddAddressFormValidator, orderInfoFormValidator, orderMultishipOptionService, orderPaymentService, orderService, paymentGatewayCheckoutService, paymentInfoFormValidator, phoneService, shippingInfoFormValidator, stateService
Constructor and Description |
---|
BroadleafManageGiftCardController() |
Modifier and Type | Method and Description |
---|---|
void |
addGiftCardPayment(GiftCardAccount giftCardAccount) |
String |
applyGiftCard(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
org.broadleafcommerce.core.web.checkout.model.GiftCardInfoForm giftCardInfoForm,
org.springframework.validation.BindingResult result) |
String |
checkGiftCardBalance(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
org.broadleafcommerce.core.web.checkout.model.GiftCardInfoForm giftCardInfoForm,
org.springframework.validation.BindingResult result) |
GiftCardAccount |
findGiftCard(String giftCardNumber) |
String |
getAccountRedeemGiftCardView() |
List<GiftCardAccount> |
getAppliedGiftCards() |
String |
getGiftCardBalanceView() |
CreditAccountEvent |
processGiftCardRedeem(GiftCardAccount giftCardAccount) |
String |
redeemGiftCard(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
org.broadleafcommerce.core.web.checkout.model.GiftCardInfoForm giftCardInfoForm,
org.springframework.validation.BindingResult result) |
String |
removeGiftCard(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
org.broadleafcommerce.core.web.checkout.model.GiftCardInfoForm giftCardInfoForm,
org.springframework.validation.BindingResult result) |
String |
viewRedeemGiftCard(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
org.broadleafcommerce.core.web.checkout.model.GiftCardInfoForm giftCardInfoForm,
org.springframework.validation.BindingResult result) |
getBaseConfirmationView, getCartPageRedirect, getCheckoutPageRedirect, getCheckoutStagesPartial, getCheckoutView, getConfirmationView, initBinder, populateModelWithReferenceData
protected static final org.apache.commons.logging.Log LOG
protected org.broadleafcommerce.core.web.checkout.validator.GiftCardInfoFormValidator giftCardInfoFormValidator
protected GiftCardAccountService giftCardAccountService
protected CustomerCreditAccountService customerCreditAccountService
protected CreditAccountService creditAccountService
protected AccountCreditOrderPaymentService accountCreditOrderPaymentService
protected static String accountRedeemGiftCardView
protected static String giftCardBalanceView
public String viewRedeemGiftCard(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @ModelAttribute(value="giftCardInfoForm") org.broadleafcommerce.core.web.checkout.model.GiftCardInfoForm giftCardInfoForm, org.springframework.validation.BindingResult result)
public String checkGiftCardBalance(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @ModelAttribute(value="giftCardInfoForm") org.broadleafcommerce.core.web.checkout.model.GiftCardInfoForm giftCardInfoForm, org.springframework.validation.BindingResult result)
public String redeemGiftCard(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @ModelAttribute(value="giftCardInfoForm") org.broadleafcommerce.core.web.checkout.model.GiftCardInfoForm giftCardInfoForm, org.springframework.validation.BindingResult result)
public String applyGiftCard(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, org.broadleafcommerce.core.web.checkout.model.GiftCardInfoForm giftCardInfoForm, org.springframework.validation.BindingResult result) throws org.broadleafcommerce.core.pricing.service.exception.PricingException
org.broadleafcommerce.core.pricing.service.exception.PricingException
public CreditAccountEvent processGiftCardRedeem(GiftCardAccount giftCardAccount)
public String removeGiftCard(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, org.broadleafcommerce.core.web.checkout.model.GiftCardInfoForm giftCardInfoForm, org.springframework.validation.BindingResult result) throws org.broadleafcommerce.core.pricing.service.exception.PricingException
org.broadleafcommerce.core.pricing.service.exception.PricingException
public void addGiftCardPayment(GiftCardAccount giftCardAccount) throws org.broadleafcommerce.core.pricing.service.exception.PricingException
org.broadleafcommerce.core.pricing.service.exception.PricingException
public List<GiftCardAccount> getAppliedGiftCards()
public GiftCardAccount findGiftCard(String giftCardNumber)
public String getAccountRedeemGiftCardView()
public String getGiftCardBalanceView()
Copyright © 2019. All rights reserved.