
com.riskified.models.DecisionOrder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of riskified-sdk Show documentation
Show all versions of riskified-sdk Show documentation
Risikified rest api SDK for java
The newest version!
package com.riskified.models;
import com.riskified.validations.*;
import java.util.List;
public class DecisionOrder implements IValidated {
private String id;
private DecisionDetails decision;
private List extends IPaymentDetails> paymentDetails;
public DecisionOrder(String id, DecisionDetails decision) {
this.id = id;
this.decision = decision;
}
public void validate(Validation validationType)
throws FieldBadFormatException {
if (validationType == Validation.ALL) {
Validate.notNullOrEmpty(this, this.id, "Id");
Validate.notNull(this, this.decision, "Decision");
}
if (this.decision != null) {
this.decision.validate(validationType);
}
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public DecisionDetails getDecision() {
return decision;
}
public void setDecision(DecisionDetails decision) {
this.decision = decision;
}
public List extends IPaymentDetails> getPaymentDetails(){
return paymentDetails;
}
public void setPaymentDetails(List extends IPaymentDetails> paymentDetails) {
this.paymentDetails = paymentDetails;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy