Class CheckoutEndpoint

java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.CheckoutEndpoint

@FrameworkRestController @FrameworkMapping("/cart") @Deprecated public class CheckoutEndpoint extends Object
Deprecated.
  • Constructor Details

  • 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

      protected CartOperationService getCartOpService()
      Deprecated.
    • getCheckoutService

      protected CheckoutService getCheckoutService()
      Deprecated.
    • getFulfillmentPricingService

      protected FulfillmentPricingService getFulfillmentPricingService()
      Deprecated.
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
      Deprecated.