Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
7386 anupam.sin 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 StorePaymentStatus implements org.apache.thrift.TEnum {
14
  ADV_RECEIVED(1),
15
  ADV_REFUNDED(2),
16
  FULL_PAY_RECEIVED(3),
17
  REFUNDED(4),
18
  REFUND_PENDING(5);
19
 
20
  private final int value;
21
 
22
  private StorePaymentStatus(int value) {
23
    this.value = value;
24
  }
25
 
26
  /**
27
   * Get the integer value of this enum value, as defined in the Thrift IDL.
28
   */
29
  public int getValue() {
30
    return value;
31
  }
32
 
33
  /**
34
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
35
   * @return null if the value is not found.
36
   */
37
  public static StorePaymentStatus findByValue(int value) { 
38
    switch (value) {
39
      case 1:
40
        return ADV_RECEIVED;
41
      case 2:
42
        return ADV_REFUNDED;
43
      case 3:
44
        return FULL_PAY_RECEIVED;
45
      case 4:
46
        return REFUNDED;
47
      case 5:
48
        return REFUND_PENDING;
49
      default:
50
        return null;
51
    }
52
  }
53
}