Class CheckoutFormServiceImpl

java.lang.Object
org.broadleafcommerce.core.web.checkout.service.CheckoutFormServiceImpl
All Implemented Interfaces:
CheckoutFormService

@Service("blCheckoutFormService") public class CheckoutFormServiceImpl extends Object implements CheckoutFormService
Author:
Chris Kittrell (ckittrell)
  • Field Details

    • fulfillmentGroupService

      protected org.broadleafcommerce.core.order.service.FulfillmentGroupService fulfillmentGroupService
    • customerAddressService

      protected org.broadleafcommerce.profile.core.service.CustomerAddressService customerAddressService
    • customerPaymentService

      protected org.broadleafcommerce.profile.core.service.CustomerPaymentService customerPaymentService
    • orderPaymentService

      protected org.broadleafcommerce.core.payment.service.OrderPaymentService orderPaymentService
    • cartStateService

      protected CartStateService cartStateService
    • env

      @Autowired protected org.springframework.core.env.Environment env
  • Constructor Details

    • CheckoutFormServiceImpl

      public CheckoutFormServiceImpl()
  • Method Details

    • prePopulateOrderInfoForm

      public OrderInfoForm prePopulateOrderInfoForm(OrderInfoForm orderInfoForm, org.broadleafcommerce.core.order.domain.Order cart)
      Specified by:
      prePopulateOrderInfoForm in interface CheckoutFormService
    • prePopulateShippingInfoForm

      public ShippingInfoForm prePopulateShippingInfoForm(ShippingInfoForm shippingInfoForm, org.broadleafcommerce.core.order.domain.Order cart)
      Specified by:
      prePopulateShippingInfoForm in interface CheckoutFormService
    • prePopulateBillingInfoForm

      public BillingInfoForm prePopulateBillingInfoForm(BillingInfoForm billingInfoForm, ShippingInfoForm shippingInfoForm, org.broadleafcommerce.core.order.domain.Order cart)
      Specified by:
      prePopulateBillingInfoForm in interface CheckoutFormService
    • prePopulatePaymentInfoForm

      public PaymentInfoForm prePopulatePaymentInfoForm(PaymentInfoForm paymentInfoForm, ShippingInfoForm shippingInfoForm, org.broadleafcommerce.core.order.domain.Order cart)
      Specified by:
      prePopulatePaymentInfoForm in interface CheckoutFormService
    • getKnownEmailAddress

      protected String getKnownEmailAddress(org.broadleafcommerce.core.order.domain.Order cart, org.broadleafcommerce.profile.core.domain.Customer customer)
    • getBillingAddress

      protected org.broadleafcommerce.profile.core.domain.Address getBillingAddress(org.broadleafcommerce.core.order.domain.Order cart)
    • getAddressFromCCOrderPayment

      protected org.broadleafcommerce.profile.core.domain.Address getAddressFromCCOrderPayment(org.broadleafcommerce.core.order.domain.Order cart)
    • getCustomerPaymentUsedForOrder

      protected org.broadleafcommerce.profile.core.domain.CustomerPayment getCustomerPaymentUsedForOrder()
    • getShouldUseCustomerPaymentDefaultValue

      protected boolean getShouldUseCustomerPaymentDefaultValue(org.broadleafcommerce.profile.core.domain.CustomerPayment customerPaymentUsedForOrder)
      A temporary credit card OrderPayment will only be added to the cart if the customer has opted out of saving their credit card for future payments.
      Parameters:
      customerPaymentUsedForOrder -
    • getShouldSaveNewPaymentDefaultValue

      protected boolean getShouldSaveNewPaymentDefaultValue()
      A temporary credit card OrderPayment will only be added to the cart if the customer has opted out of saving their credit card for future payments.
    • areCustomerSavedPaymentsEnabled

      protected boolean areCustomerSavedPaymentsEnabled()
    • getShouldUseShippingAddressDefaultValue

      protected boolean getShouldUseShippingAddressDefaultValue(org.broadleafcommerce.profile.core.domain.CustomerPayment customerPaymentUsedForOrder, PaymentInfoForm paymentInfoForm, ShippingInfoForm shippingInfoForm)
      A temporary credit card OrderPayment will only be added to the cart if the customer has opted out of saving their credit card for future payments.
      Parameters:
      customerPaymentUsedForOrder -
      paymentInfoForm -
      shippingInfoForm -
    • prePopulateInfoForms

      public void prePopulateInfoForms(ShippingInfoForm shippingInfoForm, PaymentInfoForm paymentInfoForm)
      Specified by:
      prePopulateInfoForms in interface CheckoutFormService
    • determineIfSavedAddressIsSelected

      public void determineIfSavedAddressIsSelected(org.springframework.ui.Model model, ShippingInfoForm shippingInfoForm, PaymentInfoForm paymentInfoForm)
      Specified by:
      determineIfSavedAddressIsSelected in interface CheckoutFormService
    • addressesContentsAreEqual

      protected boolean addressesContentsAreEqual(org.broadleafcommerce.profile.core.domain.Address address1, org.broadleafcommerce.profile.core.domain.Address address2)