Class SourcingLocationBuilder

  • All Implemented Interfaces:
    Builder<SourcingLocation>

    public class SourcingLocationBuilder
    extends java.lang.Object
    implements Builder<SourcingLocation>
    This is a Sourcing location builder implementation of the Builder interface
    • Field Detail

      • DEFAULT_DISTANCE

        public static final java.lang.Double DEFAULT_DISTANCE
      • DEFAULT_PRIORITY

        public static final java.lang.Integer DEFAULT_PRIORITY
      • DEFAULT_INITIAL_ID

        public static final java.lang.Integer DEFAULT_INITIAL_ID
      • DEFAULT_SKU_QUANTITY

        public static final java.lang.Long DEFAULT_SKU_QUANTITY
    • Constructor Detail

      • SourcingLocationBuilder

        public SourcingLocationBuilder()
    • Method Detail

      • withDefaultAvailabilityQuantity

        public SourcingLocationBuilder withDefaultAvailabilityQuantity​(java.lang.Long quantity)
        Adds a new Product of the default SKU and the specified quantity to the location to be built
        Parameters:
        quantity - - the quantity of the the product
        Returns:
        SourcingLocationBuilder
      • withCustomAvailabilitySkuQuantity

        public SourcingLocationBuilder withCustomAvailabilitySkuQuantity​(java.lang.String SKUId,
                                                                         java.lang.Long quantity)
        Adds a new ProductModel of the specified SKU and quantity to the location to be built
        Parameters:
        SKUId - - SKU ID to be used as the product code
        quantity - - the quantity of the the product
        Returns:
        SourcingLocationBuilder
      • withCustomAvailabilityProductQuantity

        public SourcingLocationBuilder withCustomAvailabilityProductQuantity​(ProductModel productModel,
                                                                             java.lang.Long quantity)
        Adds an existing ProductModel of the specified quantity to the location to be built
        Parameters:
        productModel -
        quantity -
        Returns: