Class CheckoutEndpoint
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.endpoint.CheckoutEndpoint
-
@FrameworkRestController @FrameworkMapping("/cart") @Deprecated public class CheckoutEndpoint extends ObjectDeprecated.in favor ofCheckoutCartEndpoint
-
-
Constructor Summary
Constructors Constructor Description CheckoutEndpoint(CartOperationService cartOpService, CheckoutService checkoutService, FulfillmentPricingService fulfillmentPricingService)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected CartOperationServicegetCartOpService()Deprecated.protected CheckoutServicegetCheckoutService()Deprecated.List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse>getFulfillmentOptions(com.broadleafcommerce.cart.client.domain.Cart cart, String fulfillmentGroupId)Deprecated.protected FulfillmentPricingServicegetFulfillmentPricingService()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.CartupdateContactInfo(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.CartupdateFulfillmentGroup(com.broadleafcommerce.cart.client.domain.Cart cart, UpdateFulfillmentGroupRequest fulfillmentGroupRequest, String fulfillmentGroupId, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Deprecated.
-
-
-
Constructor Detail
-
CheckoutEndpoint
public CheckoutEndpoint(CartOperationService cartOpService, CheckoutService checkoutService, FulfillmentPricingService fulfillmentPricingService)
Deprecated.
-
-
Method Detail
-
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
protected CartOperationService getCartOpService()
Deprecated.
-
getCheckoutService
protected CheckoutService getCheckoutService()
Deprecated.
-
getFulfillmentPricingService
protected FulfillmentPricingService getFulfillmentPricingService()
Deprecated.
-
-