Subversion Repositories SmartDukaan

Rev

Rev 6482 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
123 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
123 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.payments;
7
 
8
 
9
import java.util.Map;
10
import java.util.HashMap;
11
import org.apache.thrift.TEnum;
12
 
3430 rajveer 13
public enum PaymentStatus implements org.apache.thrift.TEnum {
14
  INIT(0),
15
  PENDING(1),
16
  SUCCESS(2),
17
  FAILED(3),
3956 chandransh 18
  AUTHORIZED(4),
4421 mandeep.dh 19
  PARTIALLY_CAPTURED(5),
20
  CAPTURE_IN_PROCESS(6),
6482 rajveer 21
  PROVISIONALLY_CAPTURED(7),
18577 manish.sha 22
  REFUNDED(8),
23
  PENDING_APPROVAL(9);
123 ashish 24
 
25
  private final int value;
26
 
27
  private PaymentStatus(int value) {
28
    this.value = value;
29
  }
30
 
31
  /**
32
   * Get the integer value of this enum value, as defined in the Thrift IDL.
33
   */
34
  public int getValue() {
35
    return value;
36
  }
37
 
38
  /**
39
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
40
   * @return null if the value is not found.
41
   */
42
  public static PaymentStatus findByValue(int value) { 
3430 rajveer 43
    switch (value) {
44
      case 0:
45
        return INIT;
46
      case 1:
47
        return PENDING;
48
      case 2:
49
        return SUCCESS;
50
      case 3:
51
        return FAILED;
52
      case 4:
53
        return AUTHORIZED;
3956 chandransh 54
      case 5:
55
        return PARTIALLY_CAPTURED;
4421 mandeep.dh 56
      case 6:
57
        return CAPTURE_IN_PROCESS;
58
      case 7:
59
        return PROVISIONALLY_CAPTURED;
6482 rajveer 60
      case 8:
61
        return REFUNDED;
18577 manish.sha 62
      case 9:
63
        return PENDING_APPROVAL;
3430 rajveer 64
      default:
65
        return null;
66
    }
123 ashish 67
  }
68
}