Subversion Repositories SmartDukaan

Rev

Rev 19974 | Rev 23437 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19974 Rev 20028
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.model.v1.order;
6
package in.shop2020.model.v1.order;
7
 
7
 
8
 
8
 
9
import java.util.Map;
9
import java.util.Map;
10
import java.util.HashMap;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
11
import org.apache.thrift.TEnum;
-
 
12
 
12
public enum OrderStatus implements TEnum{
13
public enum OrderStatus implements TEnum{
13
	PAYMENT_PENDING(0, "Waiting for payment"),
14
	PAYMENT_PENDING(0, "Waiting for payment"),
14
    PAYMENT_FAILED(1, "Payment Failed"),
15
    PAYMENT_FAILED(1, "Payment Failed"),
15
    COD_VERIFICATION_PENDING(2, "Verification Pending"),
16
    COD_VERIFICATION_PENDING(2, "Verification Pending"),
16
    SUBMITTED_FOR_PROCESSING(3, "In Process"),
17
    SUBMITTED_FOR_PROCESSING(3, "In Process"),
Line 94... Line 95...
94
    RECEIVED_AT_STORE(81, "Received At Store"),
95
    RECEIVED_AT_STORE(81, "Received At Store"),
95
    APPROVAL_PENDING(82, "Approval Pending"),
96
    APPROVAL_PENDING(82, "Approval Pending"),
96
    PARTIAL_RETURN_IN_PROCESS(83, "Partial Return in Process"),
97
    PARTIAL_RETURN_IN_PROCESS(83, "Partial Return in Process"),
97
    PARTIAL_RETURN(84, "Partial Return"),
98
    PARTIAL_RETURN(84, "Partial Return"),
98
    COMPLETE_RETURN_IN_PROCESS(85, "Complete Return in Process"),
99
    COMPLETE_RETURN_IN_PROCESS(85, "Complete Return in Process"),
99
    COMPLETE_RETURN(86, "Complete Return");
-
 
100
    
-
 
101
	  private static final Map<Integer, OrderStatus> BY_VALUE = new HashMap<Integer,OrderStatus>() {{
-
 
102
	    for(OrderStatus val : OrderStatus.values()) {
-
 
103
	      put(val.getValue(), val);
-
 
104
	    }
-
 
105
	  }};
-
 
106
 
-
 
107
  private final int value;
-
 
108
  
-
 
109
  private final String description;
-
 
110
  
-
 
111
  private OrderStatus(int value, String description) {
-
 
112
    this.value = value;
-
 
113
    this.description = description;
-
 
114
  }
-
 
115
 
-
 
116
  /**
-
 
117
   * Get the description of this enum value.
-
 
118
   */
-
 
119
  public String getDescription()   { 
-
 
120
	  return description; 
-
 
121
  }
-
 
122
  
-
 
123
  /**
-
 
124
   * Get the integer value of this enum value, as defined in the Thrift IDL.
-
 
125
   */
-
 
126
  public int getValue() {
-
 
127
    return value;
-
 
128
  }
-
 
129
 
-
 
130
  /**
-
 
131
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
-
 
132
   * @return null if the value is not found.
-
 
133
   */
-
 
134
  public static OrderStatus findByValue(int value) { 
-
 
135
    return BY_VALUE.get(value);
-
 
136
  }
-
 
137
}
-
 
138
100
    COMPLETE_RETURN(86, "Complete Return"),
-
 
101
	REFUNDED_WITHOUT_PICKUP(87,"Refunded without pickup"),
-
 
102
	REPLACED_WITHOUT_PICKUP(88,"Replaced without pickup");
-
 
103
	
-
 
104
	private OrderStatus(int value, String description) {
-
 
105
	    this.value = value;
-
 
106
	    this.description = description;
-
 
107
	  }
-
 
108
 
-
 
109
	private static final Map<Integer, OrderStatus> BY_VALUE = new HashMap<Integer,OrderStatus>() {{
-
 
110
		for(OrderStatus val : OrderStatus.values()) {
-
 
111
			put(val.getValue(), val);
-
 
112
		}
-
 
113
	}};
-
 
114
 
-
 
115
	private final int value;
-
 
116
 
-
 
117
	private final String description;
-
 
118
 
-
 
119
	/**
-
 
120
	 * Get the description of this enum value.
-
 
121
	 */
-
 
122
	public String getDescription()   { 
-
 
123
		return description; 
-
 
124
	}
-
 
125
 
-
 
126
 
-
 
127
	/**
-
 
128
	 * Get the integer value of this enum value, as defined in the Thrift IDL.
-
 
129
	 */
-
 
130
	public int getValue() {
-
 
131
		return value;
-
 
132
	}
-
 
133
 
-
 
134
	/**
-
 
135
	 * Find a the enum type by its integer value, as defined in the Thrift IDL.
-
 
136
	 * @return null if the value is not found.
-
 
137
	 */
-
 
138
	public static OrderStatus findByValue(int value) { 
-
 
139
		return BY_VALUE.get(value);
-
 
140
	}
-
 
141
 
-
 
142
}
-
 
143