Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
68 ashish 1
/**
2
 * Autogenerated by Thrift
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.order;
7
 
8
 
9
import java.util.Map;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
12
public enum TransactionStatus implements TEnum{
13
    INIT(0),
14
    SUBMITTED_FOR_PROCESSING(1),
15
    ORDER_FULFILLMENT(2),
132 ashish 16
    READY_FOR_SHIPPING(3),
17
    SHIPPED(4),
18
    COMPLETED(5),
19
    CANCELED(6),
195 ashish 20
    FAILED(7),
21
    BILLED(8);
68 ashish 22
 
23
  private static final Map<Integer, TransactionStatus> BY_VALUE = new HashMap<Integer,TransactionStatus>() {{
24
    for(TransactionStatus val : TransactionStatus.values()) {
25
      put(val.getValue(), val);
26
    }
27
  }};
28
 
29
  private final int value;
30
 
31
  private TransactionStatus(int value) {
32
    this.value = value;
33
  }
34
 
35
  /**
36
   * Get the integer value of this enum value, as defined in the Thrift IDL.
37
   */
38
  public int getValue() {
39
    return value;
40
  }
41
 
42
  /**
43
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
44
   * @return null if the value is not found.
45
   */
46
  public static TransactionStatus findByValue(int value) { 
47
    return BY_VALUE.get(value);
48
  }
49
}