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 Summary
FieldsModifier and TypeFieldDescriptionprotected CartStateServiceprotected CustomerAddressServiceprotected CustomerPaymentServiceprotected org.springframework.core.env.Environmentprotected FulfillmentGroupServiceprotected OrderPaymentService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddressesContentsAreEqual(Address address1, Address address2) protected booleanvoiddetermineIfSavedAddressIsSelected(org.springframework.ui.Model model, ShippingInfoForm shippingInfoForm, PaymentInfoForm paymentInfoForm) protected Addressprotected AddressgetBillingAddress(Order cart) protected CustomerPaymentprotected StringgetKnownEmailAddress(Order cart, Customer customer) protected booleanA temporary credit cardOrderPaymentwill only be added to the cart if the customer has opted out of saving their credit card for future payments.protected booleangetShouldUseCustomerPaymentDefaultValue(CustomerPayment customerPaymentUsedForOrder) A temporary credit cardOrderPaymentwill only be added to the cart if the customer has opted out of saving their credit card for future payments.protected booleangetShouldUseShippingAddressDefaultValue(CustomerPayment customerPaymentUsedForOrder, PaymentInfoForm paymentInfoForm, ShippingInfoForm shippingInfoForm) A temporary credit cardOrderPaymentwill only be added to the cart if the customer has opted out of saving their credit card for future payments.prePopulateBillingInfoForm(BillingInfoForm billingInfoForm, ShippingInfoForm shippingInfoForm, Order cart) voidprePopulateInfoForms(ShippingInfoForm shippingInfoForm, PaymentInfoForm paymentInfoForm) prePopulateOrderInfoForm(OrderInfoForm orderInfoForm, Order cart) prePopulatePaymentInfoForm(PaymentInfoForm paymentInfoForm, ShippingInfoForm shippingInfoForm, Order cart) prePopulateShippingInfoForm(ShippingInfoForm shippingInfoForm, Order cart)
-
Field Details
-
fulfillmentGroupService
-
customerAddressService
-
customerPaymentService
-
orderPaymentService
-
cartStateService
-
env
@Autowired protected org.springframework.core.env.Environment env
-
-
Constructor Details
-
CheckoutFormServiceImpl
public CheckoutFormServiceImpl()
-
-
Method Details
-
prePopulateOrderInfoForm
- Specified by:
prePopulateOrderInfoFormin interfaceCheckoutFormService
-
prePopulateShippingInfoForm
- Specified by:
prePopulateShippingInfoFormin interfaceCheckoutFormService
-
prePopulateBillingInfoForm
public BillingInfoForm prePopulateBillingInfoForm(BillingInfoForm billingInfoForm, ShippingInfoForm shippingInfoForm, Order cart) - Specified by:
prePopulateBillingInfoFormin interfaceCheckoutFormService
-
prePopulatePaymentInfoForm
public PaymentInfoForm prePopulatePaymentInfoForm(PaymentInfoForm paymentInfoForm, ShippingInfoForm shippingInfoForm, Order cart) - Specified by:
prePopulatePaymentInfoFormin interfaceCheckoutFormService
-
getKnownEmailAddress
-
getBillingAddress
-
getAddressFromCCOrderPayment
-
getCustomerPaymentUsedForOrder
-
getShouldUseCustomerPaymentDefaultValue
protected boolean getShouldUseCustomerPaymentDefaultValue(CustomerPayment customerPaymentUsedForOrder) A temporary credit cardOrderPaymentwill 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 cardOrderPaymentwill 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(CustomerPayment customerPaymentUsedForOrder, PaymentInfoForm paymentInfoForm, ShippingInfoForm shippingInfoForm) A temporary credit cardOrderPaymentwill 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:
prePopulateInfoFormsin interfaceCheckoutFormService
-
determineIfSavedAddressIsSelected
public void determineIfSavedAddressIsSelected(org.springframework.ui.Model model, ShippingInfoForm shippingInfoForm, PaymentInfoForm paymentInfoForm) - Specified by:
determineIfSavedAddressIsSelectedin interfaceCheckoutFormService
-
addressesContentsAreEqual
-