Class SkuInventoryShopEndpoint


  • @FrameworkRestController
    @FrameworkMapping("/shop-sku-inventory")
    @DataRouteByKey("inventory")
    public class SkuInventoryShopEndpoint
    extends Object
    REST Endpoint to allow for the browsing and reservation of SkuInventory.
    Author:
    Kelly Tisdell (ktisdell)
    • Method Detail

      • findInventoryAvailability

        @FrameworkGetMapping("/availability")
        @Policy(permissionRoots="INVENTORY_SUMMARY")
        public List<SkuInventoryAvailabilitySummary> findInventoryAvailability​(javax.servlet.http.HttpServletRequest request,
                                                                               @RequestParam(name="skuFieldType",defaultValue="SKU_CODE")
                                                                               String skuFieldType,
                                                                               @RequestParam("skuFieldReferences")
                                                                               List<String> skuFieldReferences,
                                                                               @RequestParam(name="forShipping",defaultValue="true")
                                                                               Boolean forShipping,
                                                                               @RequestParam(required=false,name="forPickup")
                                                                               Boolean forPickup,
                                                                               @RequestParam(required=false,name="inStore")
                                                                               Boolean inStore,
                                                                               @ContextOperation(READ)
                                                                               com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      • findInventoryAvailability

        @FrameworkGetMapping("/availability/sku-reference")
        @Policy(permissionRoots="INVENTORY_SUMMARY")
        public SkuInventoryAvailabilitySummary findInventoryAvailability​(javax.servlet.http.HttpServletRequest request,
                                                                         @RequestParam(name="skuFieldType",defaultValue="SKU_CODE")
                                                                         String skuFieldType,
                                                                         @RequestParam("skuReference")
                                                                         String skuReference,
                                                                         @RequestParam(name="minAvailableQuantity",defaultValue="1")
                                                                         int minAvailableQuantity,
                                                                         @RequestParam(name="forShipping",defaultValue="true")
                                                                         Boolean forShipping,
                                                                         @RequestParam(required=false,name="forPickup")
                                                                         Boolean forPickup,
                                                                         @RequestParam(required=false,name="inStore")
                                                                         Boolean inStore,
                                                                         @ContextOperation(READ)
                                                                         com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      • findBulkInventoryAvailability

        @FrameworkPostMapping("/availability/sku-references")
        @Policy(permissionRoots="INVENTORY_SUMMARY")
        public List<SkuInventoryAvailabilitySummary> findBulkInventoryAvailability​(javax.servlet.http.HttpServletRequest request,
                                                                                   @RequestBody
                                                                                   List<SkuInventoryAvailabilityRequest> skuReferences,
                                                                                   @RequestParam(name="skuFieldType",defaultValue="SKU_CODE")
                                                                                   String skuFieldType,
                                                                                   @RequestParam(name="forShipping",defaultValue="true")
                                                                                   Boolean forShipping,
                                                                                   @RequestParam(required=false,name="forPickup")
                                                                                   Boolean forPickup,
                                                                                   @RequestParam(required=false,name="inStore")
                                                                                   Boolean inStore,
                                                                                   @ContextOperation(READ)
                                                                                   com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      • findInventoryAvailabilityForLocation

        @FrameworkGetMapping("/availability/inventory-location/{locationId}")
        @Policy(permissionRoots="INVENTORY_SUMMARY")
        public List<SkuInventoryAvailabilitySummary> findInventoryAvailabilityForLocation​(javax.servlet.http.HttpServletRequest request,
                                                                                          @RequestParam(name="skuFieldType",defaultValue="SKU_CODE")
                                                                                          String skuFieldType,
                                                                                          @RequestParam("skuReferences")
                                                                                          String skuFieldReferences,
                                                                                          @PathVariable(name="locationId")
                                                                                          String inventoryLocationId,
                                                                                          @ContextOperation(READ)
                                                                                          com.broadleafcommerce.data.tracking.core.context.ContextInfo context)