Enum OrderStatus

    • Enum Constant Detail

      • DRAFT

        public static final OrderStatus DRAFT
        The order has been saved by the seller, but has not yet been sent to the buyer to approve
      • SHOPPING_CART

        public static final OrderStatus SHOPPING_CART
        The order is just a shopping cart, possibly temporary, as hasn't been checked out yet
      • PENDING_BUYER

        public static final OrderStatus PENDING_BUYER
        Negotiation pending of buyer's action
      • PENDING_SELLER

        public static final OrderStatus PENDING_SELLER
        Negotiation pending of seller's action
      • PAYMENT_PENDING

        public static final OrderStatus PAYMENT_PENDING
        The order is pending for a payment authorization to finish
      • PAYMENT_CANCELED

        public static final OrderStatus PAYMENT_CANCELED
        The order is finished because the payment was not done
      • PAYMENT_DENIED

        public static final OrderStatus PAYMENT_DENIED
        The order is finished because the payment was denied
      • PAYMENT_EXPIRED

        public static final OrderStatus PAYMENT_EXPIRED
        The order is finished because the payment has automatically expired
      • REJECTED_BY_BUYER

        public static final OrderStatus REJECTED_BY_BUYER
        Negotiation rejected by buyer
      • REJECTED_BY_SELLER

        public static final OrderStatus REJECTED_BY_SELLER
        Negotiation rejected by seller
      • COMPLETED

        public static final OrderStatus COMPLETED
        The order was completed because was accepted by the seller (and optionally by the buyer) and the payment was done.
      • DISPOSED

        public static final OrderStatus DISPOSED
        The order has been disposed, possibly because the user or the account have ceased to exist
    • Method Detail

      • values

        public static OrderStatus[] 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 (OrderStatus c : OrderStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OrderStatus 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