Subversion Repositories SmartDukaan

Rev

Rev 6235 | Rev 7073 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6000 mandeep.dh 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
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
 
13
public enum RechargeOrderStatus implements org.apache.thrift.TEnum {
14
  PAYMENT_PENDING(1),
6031 rajveer 15
  PAYMENT_FAILED(2),
16
  PAYMENT_SUCCESSFUL(3),
6000 mandeep.dh 17
  RECHARGE_FAILED(4),
6235 rajveer 18
  RECHARGE_SUCCESSFUL(5),
6507 anupam.sin 19
  RECHARGE_FAILED_REFUNDED(6),
20
  REFUNDED(7),
21
  PARTIALLY_REFUNDED(8);
6000 mandeep.dh 22
 
23
  private final int value;
24
 
25
  private RechargeOrderStatus(int value) {
26
    this.value = value;
27
  }
28
 
29
  /**
30
   * Get the integer value of this enum value, as defined in the Thrift IDL.
31
   */
32
  public int getValue() {
33
    return value;
34
  }
35
 
36
  /**
37
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
38
   * @return null if the value is not found.
39
   */
40
  public static RechargeOrderStatus findByValue(int value) { 
41
    switch (value) {
42
      case 1:
43
        return PAYMENT_PENDING;
44
      case 2:
6031 rajveer 45
        return PAYMENT_FAILED;
46
      case 3:
6000 mandeep.dh 47
        return PAYMENT_SUCCESSFUL;
48
      case 4:
49
        return RECHARGE_FAILED;
50
      case 5:
6031 rajveer 51
        return RECHARGE_SUCCESSFUL;
6235 rajveer 52
      case 6:
53
        return RECHARGE_FAILED_REFUNDED;
6507 anupam.sin 54
      case 7:
55
        return REFUNDED;
56
      case 8:
57
        return PARTIALLY_REFUNDED;
6000 mandeep.dh 58
      default:
59
        return null;
60
    }
61
  }
62
}