Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import com.riskified.validations.*;

import java.util.Date;

public class BankWirePaymentDetails implements IPaymentDetails {
private String accountNumber;
private String routingNumber;
Expand Down Expand Up @@ -39,19 +41,19 @@ public void setToken(String token){
}

public Date getStoredPaymentCreatedAt(){
return self.storedPaymentCreatedAt;
return storedPaymentCreatedAt;
}

public void setStoredPaymentCreatedAt(Date storedPaymentCreatedAt){
this.token = storedPaymentCreatedAt;
this.storedPaymentCreatedAt = storedPaymentCreatedAt;
}

public Date getStoredPaymentUpdateddAt(){
return self.storedPaymentUpdatedAt;
return storedPaymentUpdatedAt;
}

public void setStoredPaymentUpdateddAt(Date storedPaymentUpdatedAt){
this.token = storedPaymentUpdatedAt;
this.storedPaymentUpdatedAt = storedPaymentUpdatedAt;
}

public void validate(Validation validationType) throws FieldBadFormatException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ public void setSelfRecipient(boolean selfRecipient) {
}

public String getWalletId(){
return self.walletId;
return walletId;
}

public void setWalletId(String walletId){
self.walletId = walletId
this.walletId = walletId;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public RiskIndicators getRiskIndicators() {
}

RiskIndicators ri = new RiskIndicators();
riskIndicatorsMap.forEach(ri::set);
riskIndicatorsMap.forEach((key, value) -> ri.set(key, value));
return ri;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.util.Set;

public class RiskIndicators {
private final Map<String, Object> properties = new HashMap<>();
private final Map<String, Object> properties = new HashMap<String, Object>();

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

// Get all properties
public Map<String, Object> getAllProperties() {
return new HashMap<>(properties);
return new HashMap<String, Object>(properties);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public RiskIndicators getRiskIndicators() {
}

RiskIndicators ri = new RiskIndicators();
riskIndicatorsMap.forEach(ri::set);
riskIndicatorsMap.forEach((key, value) -> ri.set(key, value));
return ri;
}

Expand Down
Loading