Skip to content

Commit 4b01cf0

Browse files
authored
Added risk_indicator object to ResOrder.java (#184)
updated resOrder and Notification
1 parent 7efe66f commit 4b01cf0

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

riskified-sdk/src/main/java/com/riskified/models/BankWirePaymentDetails.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import com.riskified.validations.*;
44

5+
import java.util.Date;
6+
57
public class BankWirePaymentDetails implements IPaymentDetails {
68
private String accountNumber;
79
private String routingNumber;
@@ -39,19 +41,19 @@ public void setToken(String token){
3941
}
4042

4143
public Date getStoredPaymentCreatedAt(){
42-
return self.storedPaymentCreatedAt;
44+
return storedPaymentCreatedAt;
4345
}
4446

4547
public void setStoredPaymentCreatedAt(Date storedPaymentCreatedAt){
46-
this.token = storedPaymentCreatedAt;
48+
this.storedPaymentCreatedAt = storedPaymentCreatedAt;
4749
}
4850

4951
public Date getStoredPaymentUpdateddAt(){
50-
return self.storedPaymentUpdatedAt;
52+
return storedPaymentUpdatedAt;
5153
}
5254

5355
public void setStoredPaymentUpdateddAt(Date storedPaymentUpdatedAt){
54-
this.token = storedPaymentUpdatedAt;
56+
this.storedPaymentUpdatedAt = storedPaymentUpdatedAt;
5557
}
5658

5759
public void validate(Validation validationType) throws FieldBadFormatException {

riskified-sdk/src/main/java/com/riskified/models/Recipient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ public void setSelfRecipient(boolean selfRecipient) {
8282
}
8383

8484
public String getWalletId(){
85-
return self.walletId;
85+
return walletId;
8686
}
8787

8888
public void setWalletId(String walletId){
89-
self.walletId = walletId
89+
this.walletId = walletId;
9090
}
9191
}

riskified-sdk/src/main/java/com/riskified/models/ResOrder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public RiskIndicators getRiskIndicators() {
136136
}
137137

138138
RiskIndicators ri = new RiskIndicators();
139-
riskIndicatorsMap.forEach(ri::set);
139+
riskIndicatorsMap.forEach((key, value) -> ri.set(key, value));
140140
return ri;
141141
}
142142

riskified-sdk/src/main/java/com/riskified/models/RiskIndicators.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import java.util.Set;
66

77
public class RiskIndicators {
8-
private final Map<String, Object> properties = new HashMap<>();
8+
private final Map<String, Object> properties = new HashMap<String, Object>();
99

1010
// Generic setter - accepts any field name and value
1111
public RiskIndicators set(String fieldName, Object value) {
@@ -44,7 +44,7 @@ public RiskIndicators remove(String fieldName) {
4444

4545
// Get all properties
4646
public Map<String, Object> getAllProperties() {
47-
return new HashMap<>(properties);
47+
return new HashMap<String, Object>(properties);
4848
}
4949

5050
@Override

riskified-sdk/src/main/java/com/riskified/notifications/Notification.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public RiskIndicators getRiskIndicators() {
131131
}
132132

133133
RiskIndicators ri = new RiskIndicators();
134-
riskIndicatorsMap.forEach(ri::set);
134+
riskIndicatorsMap.forEach((key, value) -> ri.set(key, value));
135135
return ri;
136136
}
137137

0 commit comments

Comments
 (0)