Enum DefaultInventoryTransactionType

    • Enum Constant Detail

      • SOFT_RESERVED

        public static final DefaultInventoryTransactionType SOFT_RESERVED
        Happens when an order is placed, but where purchase is not finalized (e.g. concert tickets or where a purchase is captured but payment has not been received). This is effectively a temporary reservation and requires a corresponding HARD_RESERVED transaction to make it non-temporary. SOFT_RESERVED transactions may be reversed after a period of time, (i.e. to free inventory that has been soft reserved for a duration, but not hard reserved, indicating that the reservation may have been abandoned). This type of transaction decreases quantity available and increases quantity reserved.
      • HARD_RESERVED

        public static final DefaultInventoryTransactionType HARD_RESERVED
        Happens when an order is placed and finalized, including payment. Happens after a soft reservation. If a corresponding SOFT_RESERVED transaction exists, this does not decrease a quantity because the soft reservation already did this, but provides a marker indicating that the reservation is finalized. If a corresponding soft reservation does not yet exist, then this decrements inventory available and increments inventory reserved.
      • FULFILLED

        public static final DefaultInventoryTransactionType FULFILLED
        Happens when an order is fulfilled. Happens after a hard commit. Decreases quantity on hand.
      • SHRINKAGE

        public static final DefaultInventoryTransactionType SHRINKAGE
        Used to decrement inventory for shrinkage. Happens when an item is marked as damaged, stolen, etc. Decreases quantity on hand.
      • ORDERED

        public static final DefaultInventoryTransactionType ORDERED
        Happens when inventory has been ordered and expected to arrive in the future. Increases quantity expected. Allows for back-ordered inventory tracking and expected inventory tracking.
      • RECEIVED

        public static final DefaultInventoryTransactionType RECEIVED
        Indicates that an ordered item has been received and should increase quantity on hand. Increases quantity on hand. Decreases quantity expected.
      • RETURNED

        public static final DefaultInventoryTransactionType RETURNED
        Happens when inventory that has been fulfilled is returned. Increases quantity on hand.
    • Method Detail

      • values

        public static DefaultInventoryTransactionType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DefaultInventoryTransactionType c : DefaultInventoryTransactionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DefaultInventoryTransactionType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getValue

        public String getValue()
        Description copied from interface: EnumeratedType
        Returns a non-null, enumerated String value, typically in the form of an enum name (e.g. 'SOME_VALUE'). Often this is an alias for Enum.name().
        Specified by:
        getValue in interface EnumeratedType
        Returns: