Class LabelEndpoint

java.lang.Object
com.broadleafcommerce.shipping.web.endpoint.LabelEndpoint

@FrameworkRestController @FrameworkMapping("/label") @DataRouteByKey("shipping") public class LabelEndpoint extends Object
  • Constructor Details

    • LabelEndpoint

      public LabelEndpoint(ShippingLabelProviderService shippingLabelProviderService, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
  • Method Details

    • labelStatus

      @Policy(permissionRoots="SHIPPING_LABEL", operationTypes=READ) @FrameworkPostMapping("/status") public ShipmentStatus labelStatus(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @RequestBody com.broadleafcommerce.order.client.domain.OrderFulfillment orderFulfillment)
    • purchaseLabel

      @Policy(permissionRoots="SHIPPING_LABEL", operationTypes=CREATE) @FrameworkPostMapping("/purchase") public ShippingLabelDownload purchaseLabel(@ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @RequestBody com.broadleafcommerce.order.client.domain.OrderFulfillment orderFulfillment) throws LabelException
      Throws:
      LabelException
    • reprintLabel

      @Policy(permissionRoots="SHIPPING_LABEL", operationTypes=READ) @FrameworkPostMapping("/reprint") public ShippingLabelDownload reprintLabel(@ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @RequestBody com.broadleafcommerce.order.client.domain.OrderFulfillment orderFulfillment) throws LabelException
      Throws:
      LabelException
    • getLabelProvider

      protected ShippingLabelProvider getLabelProvider(String fulfillmentOptionName) throws LabelException
      Throws:
      LabelException