-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathResOrder.java
More file actions
154 lines (115 loc) · 3.67 KB
/
ResOrder.java
File metadata and controls
154 lines (115 loc) · 3.67 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
package com.riskified.models;
import com.google.gson.annotations.SerializedName;
import java.util.Map;
public class ResOrder {
private String id;
private String status;
private String description;
private String oldStatus;
private String decisionCode;
private String category;
private int score;
private AuthenticationType authentication_type;
private String action;
private Advice advice;
private RecoveryEligibility recoveryEligibility;
private Double riskScore;
private PolicyProtect policyProtect;
@SerializedName("risk_indicators")
private Map<String, Object> riskIndicatorsMap;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getOldStatus() {
return oldStatus;
}
public void setOldStatus(String oldStatus) {
this.oldStatus = oldStatus;
}
public String getDecisionCode() {
return decisionCode;
}
public void setDecisionCode(String decisionCode) {
this.decisionCode = decisionCode;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public int getScore() {
return score;
}
public void setScore(int score) {
this.score = score;
}
public AuthenticationType getAuthenticationType() {
return authentication_type;
}
public void setAuthenticationType(AuthenticationType authenticationType) {
this.authentication_type = authenticationType;
}
public Advice getAdvice() {
return advice;
}
public void setAdvice(Advice advice) {
this.advice = advice;
}
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
public RecoveryEligibility getRecoveryEligibility(){return recoveryEligibility;}
public void setRecoveryEligibility(RecoveryEligibility recoveryEligibility){this.recoveryEligibility = recoveryEligibility;}
public void setRiskScore(Double riskScore){this.riskScore = riskScore;}
public Double getRiskScore(){return riskScore;}
public PolicyProtect getPolicyProtect() {
return policyProtect;
}
public void setPolicyProtect(PolicyProtect policyProtect) {
this.policyProtect = policyProtect;
}
public Map<String, Object> getRiskIndicatorsMap() {
return riskIndicatorsMap;
}
public void setRiskIndicatorsMap(Map<String, Object> riskIndicatorsMap) {
this.riskIndicatorsMap = riskIndicatorsMap;
}
// Convenience method to get as RiskIndicators object
public RiskIndicators getRiskIndicators() {
if (riskIndicatorsMap == null || riskIndicatorsMap.isEmpty()) {
return null;
}
RiskIndicators ri = new RiskIndicators();
for (Map.Entry<String, Object> entry : riskIndicatorsMap.entrySet()) {
ri.set(entry.getKey(), entry.getValue());
}
return ri;
}
// Convenience method to set from RiskIndicators object
public void setRiskIndicators(RiskIndicators riskIndicators) {
if (riskIndicators == null) {
this.riskIndicatorsMap = null;
} else {
this.riskIndicatorsMap = riskIndicators.getAllProperties();
}
}
}