Subversion Repositories SmartDukaan

Rev

Rev 3430 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3430 Rev 4246
Line 14... Line 14...
14
  INIT(0),
14
  INIT(0),
15
  IN_PROCESS(1),
15
  IN_PROCESS(1),
16
  COMPLETED(2),
16
  COMPLETED(2),
17
  FAILED(3),
17
  FAILED(3),
18
  AUTHORIZED(4),
18
  AUTHORIZED(4),
19
  COD_IN_PROCESS(5);
19
  COD_IN_PROCESS(5),
-
 
20
  FLAGGED(6);
20
 
21
 
21
  private final int value;
22
  private final int value;
22
 
23
 
23
  private TransactionStatus(int value) {
24
  private TransactionStatus(int value) {
24
    this.value = value;
25
    this.value = value;
Line 47... Line 48...
47
        return FAILED;
48
        return FAILED;
48
      case 4:
49
      case 4:
49
        return AUTHORIZED;
50
        return AUTHORIZED;
50
      case 5:
51
      case 5:
51
        return COD_IN_PROCESS;
52
        return COD_IN_PROCESS;
-
 
53
      case 6:
-
 
54
        return FLAGGED;
52
      default:
55
      default:
53
        return null;
56
        return null;
54
    }
57
    }
55
  }
58
  }
56
}
59
}