Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3553 chandransh 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 DelayReason implements org.apache.thrift.TEnum {
14
  INVENTORY_LOW_PHASED_OUT(0),
15
  INVENTORY_LOW_COLOR_NOT_AVAILABLE(1),
16
  INVENTORY_LOW_REVERSAL_NOT_ON_TIME(2),
17
  INVENTORY_LOW_PRODUCT_NOT_SEALED(3),
18
  COURIER_DELAY_NOT_DELIVERED_TO_COURIER_ON_TIME(4),
19
  COURIER_DELAY_DID_NOT_CONNECT(5),
20
  COURIER_DELAY_CUSTOMER_NOT_AVAILABLE(6),
21
  COURIER_DELAY_INCORRECT_ADDRESS(7),
22
  COURIER_DELAY_OCTROI_DELAY(8),
23
  COURIER_DELAY_FORCES_OF_NATURE(9),
24
  COD_VERIFICATION_DELAY(10),
25
  PAYMENT_FLAGGED(11),
26
  OTHERS(12);
27
 
28
  private final int value;
29
 
30
  private DelayReason(int value) {
31
    this.value = value;
32
  }
33
 
34
  /**
35
   * Get the integer value of this enum value, as defined in the Thrift IDL.
36
   */
37
  public int getValue() {
38
    return value;
39
  }
40
 
41
  /**
42
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
43
   * @return null if the value is not found.
44
   */
45
  public static DelayReason findByValue(int value) { 
46
    switch (value) {
47
      case 0:
48
        return INVENTORY_LOW_PHASED_OUT;
49
      case 1:
50
        return INVENTORY_LOW_COLOR_NOT_AVAILABLE;
51
      case 2:
52
        return INVENTORY_LOW_REVERSAL_NOT_ON_TIME;
53
      case 3:
54
        return INVENTORY_LOW_PRODUCT_NOT_SEALED;
55
      case 4:
56
        return COURIER_DELAY_NOT_DELIVERED_TO_COURIER_ON_TIME;
57
      case 5:
58
        return COURIER_DELAY_DID_NOT_CONNECT;
59
      case 6:
60
        return COURIER_DELAY_CUSTOMER_NOT_AVAILABLE;
61
      case 7:
62
        return COURIER_DELAY_INCORRECT_ADDRESS;
63
      case 8:
64
        return COURIER_DELAY_OCTROI_DELAY;
65
      case 9:
66
        return COURIER_DELAY_FORCES_OF_NATURE;
67
      case 10:
68
        return COD_VERIFICATION_DELAY;
69
      case 11:
70
        return PAYMENT_FLAGGED;
71
      case 12:
72
        return OTHERS;
73
      default:
74
        return null;
75
    }
76
  }
77
}