Class CheckoutEndpoint
java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.CheckoutEndpoint
@FrameworkRestController
@FrameworkMapping("/cart")
@Deprecated
public class CheckoutEndpoint
extends Object
Deprecated.
-
Constructor Summary
ConstructorDescriptionCheckoutEndpoint
(CartOperationService cartOpService, CheckoutService checkoutService, Optional<FulfillmentPricingService> fulfillmentPricingService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected CartOperationService
Deprecated.protected CheckoutService
Deprecated.List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse>
getFulfillmentOptions
(com.broadleafcommerce.cart.client.domain.Cart cart, String fulfillmentGroupId) Deprecated.protected Optional<FulfillmentPricingService>
Deprecated.protected com.broadleafcommerce.common.extension.TypeFactory
Deprecated.org.springframework.http.ResponseEntity<CheckoutResponse>
processCheckout
(com.broadleafcommerce.cart.client.domain.Cart resolvedCart, CartRequest requestCart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.Executes the checkout process for a cart.com.broadleafcommerce.cart.client.domain.Cart
updateContactInfo
(com.broadleafcommerce.cart.client.domain.Cart cart, ContactInfoRequest contactInfoRequest, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.com.broadleafcommerce.cart.client.domain.Cart
updateFulfillmentGroup
(com.broadleafcommerce.cart.client.domain.Cart cart, UpdateFulfillmentGroupRequest fulfillmentGroupRequest, String fulfillmentGroupId, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.
-
Constructor Details
-
CheckoutEndpoint
public CheckoutEndpoint(CartOperationService cartOpService, CheckoutService checkoutService, Optional<FulfillmentPricingService> fulfillmentPricingService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) Deprecated.
-
-
Method Details
-
updateContactInfo
@FrameworkPostMapping(value="/contact-info", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart updateContactInfo(com.broadleafcommerce.cart.client.domain.Cart cart, @RequestBody ContactInfoRequest contactInfoRequest, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated. -
updateFulfillmentGroup
@FrameworkPatchMapping(value="/fulfillment-groups/{fgId}", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart updateFulfillmentGroup(com.broadleafcommerce.cart.client.domain.Cart cart, @RequestBody UpdateFulfillmentGroupRequest fulfillmentGroupRequest, @PathVariable("fgId") String fulfillmentGroupId, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated. -
getFulfillmentOptions
@FrameworkGetMapping("/fulfillment-options/{fgId}") public List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse> getFulfillmentOptions(com.broadleafcommerce.cart.client.domain.Cart cart, @PathVariable("fgId") String fulfillmentGroupId) Deprecated. -
processCheckout
@FrameworkPostMapping(value="/checkout", consumes="application/json") public org.springframework.http.ResponseEntity<CheckoutResponse> processCheckout(com.broadleafcommerce.cart.client.domain.Cart resolvedCart, @RequestBody CartRequest requestCart, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.Executes the checkout process for a cart.- Parameters:
resolvedCart
- the resolved cart for this request (based on auth or cookie data)requestCart
- the cart from the request body- Returns:
- a checkout response body with a 200 error code if successful and 400 otherwise
-
getCartOpService
Deprecated. -
getCheckoutService
Deprecated. -
getFulfillmentPricingService
Deprecated. -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()Deprecated.
-
CheckoutCartEndpoint