Class FulfillmentEndpoint
java.lang.Object
com.broadleafcommerce.rest.api.endpoint.BaseEndpoint
com.broadleafcommerce.rest.api.endpoint.order.FulfillmentEndpoint
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.MessageSourceAware
@FrameworkRestController
@FrameworkMapping(value="/shipping/",
produces={"application/json","application/xml"})
public class FulfillmentEndpoint
extends BaseEndpoint
This endpoint depends on JAX-RS. It should be extended by components that actually wish
to provide an endpoint. The annotations such as @Path, @Scope, @Context, @PathParam, @QueryParam,
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.core.checkout.service.CheckoutServiceprotected org.broadleafcommerce.core.order.service.FulfillmentGroupServiceprotected org.broadleafcommerce.core.order.service.FulfillmentOptionServiceprotected org.broadleafcommerce.core.pricing.service.FulfillmentPricingServiceprotected org.broadleafcommerce.core.order.service.OrderServiceFields inherited from class com.broadleafcommerce.rest.api.endpoint.BaseEndpoint
context, messageSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFulfillmentGroupToOrder(jakarta.servlet.http.HttpServletRequest request, FulfillmentGroupWrapper wrapper, boolean priceOrder, Long cartId) addFulfillmentOptionToFulfillmentGroup(jakarta.servlet.http.HttpServletRequest request, Long fulfillmentGroupId, Long fulfillmentOptionId, boolean priceOrder, Long cartId) addItemToFulfillmentGroup(jakarta.servlet.http.HttpServletRequest request, Long fulfillmentGroupId, FulfillmentGroupItemWrapper wrapper, boolean priceOrder, Long cartId) findFulfillmentGroupsForOrder(jakarta.servlet.http.HttpServletRequest request, Long cartId) Returns a list of all of the fulfillment groups for the order with idcartIdfindFulfillmentOptions(jakarta.servlet.http.HttpServletRequest request, String fulfillmentType) getFulfillmentEstimations(jakarta.servlet.http.HttpServletRequest request, Long cartId) removeAllFulfillmentGroupsFromOrder(jakarta.servlet.http.HttpServletRequest request, boolean priceOrder, Long cartId) removeFulfillmentGroupFromOrder(jakarta.servlet.http.HttpServletRequest request, Long fulfillmentGroupId, Long cartId) removeOrderItemFromFulfillmentGroup(jakarta.servlet.http.HttpServletRequest request, Long fulfillmentGroupId, Long itemId, Long cartId) updateFulfillmentGroup(jakarta.servlet.http.HttpServletRequest request, FulfillmentGroupWrapper wrapper, boolean priceOrder, Long cartId, Long fulfillmentGroupId) updateFulfillmentGroupAddress(jakarta.servlet.http.HttpServletRequest request, Long fulfillmentGroupId, Long cartId, AddressWrapper address) protected voidvalidateFulfillmentGroupWithOrder(org.broadleafcommerce.core.order.domain.Order order, org.broadleafcommerce.core.order.domain.FulfillmentGroup group) Methods inherited from class com.broadleafcommerce.rest.api.endpoint.BaseEndpoint
getApplicationContext, getMessageSource, setApplicationContext, setMessageSource
-
Field Details
-
checkoutService
protected org.broadleafcommerce.core.checkout.service.CheckoutService checkoutService -
orderService
protected org.broadleafcommerce.core.order.service.OrderService orderService -
fulfillmentGroupService
protected org.broadleafcommerce.core.order.service.FulfillmentGroupService fulfillmentGroupService -
fulfillmentOptionService
protected org.broadleafcommerce.core.order.service.FulfillmentOptionService fulfillmentOptionService -
fulfillmentPricingService
protected org.broadleafcommerce.core.pricing.service.FulfillmentPricingService fulfillmentPricingService
-
-
Constructor Details
-
FulfillmentEndpoint
public FulfillmentEndpoint()
-
-
Method Details
-
findFulfillmentGroupsForOrder
@FrameworkMapping(value="{cartId}/groups", method=GET) public List<FulfillmentGroupWrapper> findFulfillmentGroupsForOrder(jakarta.servlet.http.HttpServletRequest request, @PathVariable("cartId") Long cartId) Returns a list of all of the fulfillment groups for the order with idcartId- Parameters:
request-cartId-- Returns:
-
removeAllFulfillmentGroupsFromOrder
@FrameworkMapping(value="{cartId}/groups", method=DELETE) public OrderWrapper removeAllFulfillmentGroupsFromOrder(jakarta.servlet.http.HttpServletRequest request, @RequestParam(value="priceOrder",defaultValue="true") boolean priceOrder, @PathVariable("cartId") Long cartId) -
addFulfillmentGroupToOrder
@FrameworkMapping(value="{cartId}/group", method=POST, consumes={"application/json","application/xml"}) public FulfillmentGroupWrapper addFulfillmentGroupToOrder(jakarta.servlet.http.HttpServletRequest request, @RequestBody FulfillmentGroupWrapper wrapper, @RequestParam(value="priceOrder",defaultValue="true") boolean priceOrder, @PathVariable("cartId") Long cartId) -
updateFulfillmentGroup
@FrameworkMapping(value="{cartId}/group/{fulfillmentGroupId}", method=PATCH, consumes={"application/json","application/xml"}) public FulfillmentGroupWrapper updateFulfillmentGroup(jakarta.servlet.http.HttpServletRequest request, @RequestBody FulfillmentGroupWrapper wrapper, @RequestParam(value="priceOrder",defaultValue="true") boolean priceOrder, @PathVariable("cartId") Long cartId, @PathVariable("fulfillmentGroupId") Long fulfillmentGroupId) -
addItemToFulfillmentGroup
@FrameworkMapping(value="{cartId}/group/{fulfillmentGroupId}/item", method=POST, consumes={"application/json","application/xml"}) public FulfillmentGroupWrapper addItemToFulfillmentGroup(jakarta.servlet.http.HttpServletRequest request, @PathVariable("fulfillmentGroupId") Long fulfillmentGroupId, @RequestBody FulfillmentGroupItemWrapper wrapper, @RequestParam(value="priceOrder",defaultValue="true") boolean priceOrder, @PathVariable("cartId") Long cartId) -
addFulfillmentOptionToFulfillmentGroup
@FrameworkMapping(value="{cartId}/group/{fulfillmentGroupId}/option/{fulfillmentOptionId}", method=PUT) public FulfillmentGroupWrapper addFulfillmentOptionToFulfillmentGroup(jakarta.servlet.http.HttpServletRequest request, @PathVariable("fulfillmentGroupId") Long fulfillmentGroupId, @PathVariable("fulfillmentOptionId") Long fulfillmentOptionId, @RequestParam(value="priceOrder",defaultValue="true") boolean priceOrder, @PathVariable("cartId") Long cartId) -
findFulfillmentOptions
@FrameworkMapping(value="options", method=GET) public List<FulfillmentOptionWrapper> findFulfillmentOptions(jakarta.servlet.http.HttpServletRequest request, @RequestParam("fulfillmentType") String fulfillmentType) -
updateFulfillmentGroupAddress
@FrameworkMapping(value="{cartId}/{fulfillmentGroupId}/address", method=PUT, consumes={"application/json","application/xml"}) public FulfillmentGroupWrapper updateFulfillmentGroupAddress(jakarta.servlet.http.HttpServletRequest request, @PathVariable("fulfillmentGroupId") Long fulfillmentGroupId, @PathVariable("cartId") Long cartId, @RequestBody AddressWrapper address) -
removeOrderItemFromFulfillmentGroup
@FrameworkMapping(value="{cartId}/group/{fulfillmentGroupId}/item/{itemId}", method=DELETE) public FulfillmentGroupWrapper removeOrderItemFromFulfillmentGroup(jakarta.servlet.http.HttpServletRequest request, @PathVariable("fulfillmentGroupId") Long fulfillmentGroupId, @PathVariable("itemId") Long itemId, @PathVariable("cartId") Long cartId) -
removeFulfillmentGroupFromOrder
@FrameworkMapping(value="{cartId}/group/{fulfillmentGroupId}", method=DELETE) public List<FulfillmentGroupWrapper> removeFulfillmentGroupFromOrder(jakarta.servlet.http.HttpServletRequest request, @PathVariable("fulfillmentGroupId") Long fulfillmentGroupId, @PathVariable("cartId") Long cartId) -
getFulfillmentEstimations
@FrameworkMapping("{cartId}/estimate") public List<FulfillmentEstimationWrapper> getFulfillmentEstimations(jakarta.servlet.http.HttpServletRequest request, @PathVariable("cartId") Long cartId) -
validateFulfillmentGroupWithOrder
protected void validateFulfillmentGroupWithOrder(org.broadleafcommerce.core.order.domain.Order order, org.broadleafcommerce.core.order.domain.FulfillmentGroup group)
-