@Service(value="blCheckoutFormService") public class CheckoutFormServiceImpl extends Object implements CheckoutFormService
| Modifier and Type | Field and Description |
|---|---|
protected CartStateService |
cartStateService |
protected CustomerAddressService |
customerAddressService |
protected CustomerPaymentService |
customerPaymentService |
protected org.springframework.core.env.Environment |
env |
protected FulfillmentGroupService |
fulfillmentGroupService |
protected OrderPaymentService |
orderPaymentService |
| Constructor and Description |
|---|
CheckoutFormServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addressesContentsAreEqual(Address address1,
Address address2) |
protected boolean |
areCustomerSavedPaymentsEnabled() |
void |
determineIfSavedAddressIsSelected(org.springframework.ui.Model model,
ShippingInfoForm shippingInfoForm,
PaymentInfoForm paymentInfoForm) |
protected Address |
getAddressFromCCOrderPayment(Order cart) |
protected Address |
getBillingAddress(Order cart) |
protected CustomerPayment |
getCustomerPaymentUsedForOrder() |
protected String |
getKnownEmailAddress(Order cart,
Customer customer) |
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. |
protected boolean |
getShouldUseCustomerPaymentDefaultValue(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. |
protected boolean |
getShouldUseShippingAddressDefaultValue(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. |
BillingInfoForm |
prePopulateBillingInfoForm(BillingInfoForm billingInfoForm,
ShippingInfoForm shippingInfoForm,
Order cart) |
void |
prePopulateInfoForms(ShippingInfoForm shippingInfoForm,
PaymentInfoForm paymentInfoForm) |
OrderInfoForm |
prePopulateOrderInfoForm(OrderInfoForm orderInfoForm,
Order cart) |
PaymentInfoForm |
prePopulatePaymentInfoForm(PaymentInfoForm paymentInfoForm,
ShippingInfoForm shippingInfoForm,
Order cart) |
ShippingInfoForm |
prePopulateShippingInfoForm(ShippingInfoForm shippingInfoForm,
Order cart) |
protected FulfillmentGroupService fulfillmentGroupService
protected CustomerAddressService customerAddressService
protected CustomerPaymentService customerPaymentService
protected OrderPaymentService orderPaymentService
protected CartStateService cartStateService
@Autowired protected org.springframework.core.env.Environment env
public OrderInfoForm prePopulateOrderInfoForm(OrderInfoForm orderInfoForm, Order cart)
prePopulateOrderInfoForm in interface CheckoutFormServicepublic ShippingInfoForm prePopulateShippingInfoForm(ShippingInfoForm shippingInfoForm, Order cart)
prePopulateShippingInfoForm in interface CheckoutFormServicepublic BillingInfoForm prePopulateBillingInfoForm(BillingInfoForm billingInfoForm, ShippingInfoForm shippingInfoForm, Order cart)
prePopulateBillingInfoForm in interface CheckoutFormServicepublic PaymentInfoForm prePopulatePaymentInfoForm(PaymentInfoForm paymentInfoForm, ShippingInfoForm shippingInfoForm, Order cart)
prePopulatePaymentInfoForm in interface CheckoutFormServiceprotected CustomerPayment getCustomerPaymentUsedForOrder()
protected boolean getShouldUseCustomerPaymentDefaultValue(CustomerPayment customerPaymentUsedForOrder)
OrderPayment will only be added to the cart if the customer has opted out
of saving their credit card for future payments.customerPaymentUsedForOrder - protected boolean getShouldSaveNewPaymentDefaultValue()
OrderPayment will only be added to the cart if the customer has opted out
of saving their credit card for future payments.protected boolean areCustomerSavedPaymentsEnabled()
protected boolean getShouldUseShippingAddressDefaultValue(CustomerPayment customerPaymentUsedForOrder, PaymentInfoForm paymentInfoForm, ShippingInfoForm shippingInfoForm)
OrderPayment will only be added to the cart if the customer has opted out
of saving their credit card for future payments.customerPaymentUsedForOrder - paymentInfoForm - shippingInfoForm - public void prePopulateInfoForms(ShippingInfoForm shippingInfoForm, PaymentInfoForm paymentInfoForm)
prePopulateInfoForms in interface CheckoutFormServicepublic void determineIfSavedAddressIsSelected(org.springframework.ui.Model model,
ShippingInfoForm shippingInfoForm,
PaymentInfoForm paymentInfoForm)
determineIfSavedAddressIsSelected in interface CheckoutFormServiceCopyright © 2020. All rights reserved.