Subversion Repositories SmartDukaan

Rev

Rev 3430 | Rev 4421 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3430 Rev 3956
Line 13... Line 13...
13
public enum PaymentStatus implements org.apache.thrift.TEnum {
13
public enum PaymentStatus implements org.apache.thrift.TEnum {
14
  INIT(0),
14
  INIT(0),
15
  PENDING(1),
15
  PENDING(1),
16
  SUCCESS(2),
16
  SUCCESS(2),
17
  FAILED(3),
17
  FAILED(3),
18
  AUTHORIZED(4);
18
  AUTHORIZED(4),
-
 
19
  PARTIALLY_CAPTURED(5);
19
 
20
 
20
  private final int value;
21
  private final int value;
21
 
22
 
22
  private PaymentStatus(int value) {
23
  private PaymentStatus(int value) {
23
    this.value = value;
24
    this.value = value;
Line 44... Line 45...
44
        return SUCCESS;
45
        return SUCCESS;
45
      case 3:
46
      case 3:
46
        return FAILED;
47
        return FAILED;
47
      case 4:
48
      case 4:
48
        return AUTHORIZED;
49
        return AUTHORIZED;
-
 
50
      case 5:
-
 
51
        return PARTIALLY_CAPTURED;
49
      default:
52
      default:
50
        return null;
53
        return null;
51
    }
54
    }
52
  }
55
  }
53
}
56
}