parent
ffc7c56810
commit
4fff0e0de6
@ -0,0 +1,41 @@
|
||||
|
||||
package au.com.royalpay.payment.manage.kyc.enums;
|
||||
|
||||
/**
|
||||
* @Author: liuxinxin
|
||||
* @Date: 2019-12-13
|
||||
*/
|
||||
public enum FilesAuthEnum {
|
||||
|
||||
PASS_OPR(new int[]{2},1),
|
||||
COMMIT_OPR(new int[]{0,3},2),
|
||||
REFUSE_OPR(new int[]{2},3);
|
||||
|
||||
private final int[] beforeStatus;
|
||||
private final int afterStatus;
|
||||
|
||||
public int[] getBeforeStatus() {
|
||||
return beforeStatus;
|
||||
}
|
||||
|
||||
public int getAfterStatus() {
|
||||
return afterStatus;
|
||||
}
|
||||
|
||||
FilesAuthEnum(int[] beforeStatus, int afterStatus) {
|
||||
this.beforeStatus = beforeStatus;
|
||||
this.afterStatus = afterStatus;
|
||||
}
|
||||
|
||||
public String[] getAuthType(String type) {
|
||||
switch (type) {
|
||||
case "kyc":
|
||||
return new String[]{"client_bank_file","client_id_file","kyc_utility_bill_file"};
|
||||
case "compliance":
|
||||
return new String[]{"client_bank_file","client_id_file","client_agree_file","client_company_file"};
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue