-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApiRequestCommonView.java
74 lines (57 loc) · 1.66 KB
/
ApiRequestCommonView.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package in.eko.service.requestView;
import javax.xml.bind.annotation.XmlRootElement;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@XmlRootElement
@JsonIgnoreProperties(ignoreUnknown = true)
public class ApiRequestCommonView {
private Integer requestTypeId;
private String ekoTrxnId;
private String depositorCell;
private String depositorName;
private String beneficiaryName;
private Integer transactionMode;
public Integer getRequestTypeId() {
return requestTypeId;
}
public void setRequestTypeId(Integer requestTypeId) {
this.requestTypeId = requestTypeId;
}
public String getEkoTrxnId() {
return ekoTrxnId;
}
public void setEkoTrxnId(String ekoTrxnId) {
this.ekoTrxnId = ekoTrxnId;
}
public String getDepositorCell() {
return depositorCell;
}
public void setDepositorCell(String depositorCell) {
this.depositorCell = depositorCell;
}
public String getDepositorName() {
return depositorName;
}
public void setDepositorName(String depositorName) {
if(depositorName!=null) {
this.depositorName = depositorName.replaceAll("\\P{L}", " ").replaceAll(" +", " ").trim();
}else {
this.depositorName = depositorName;
}
}
public String getBeneficiaryName() {
return beneficiaryName;
}
public void setBeneficiaryName(String beneficiaryName) {
if(beneficiaryName != null) {
this.beneficiaryName = beneficiaryName.replaceAll("\\P{L}", " ").replaceAll(" +", " ").trim();
}else {
this.beneficiaryName = beneficiaryName;
}
}
public Integer getTransactionMode() {
return transactionMode;
}
public void setTransactionMode(Integer transactionMode) {
this.transactionMode = transactionMode;
}
}