
com.riskified.models.RefundOrder 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 java.util.ArrayList;
import java.util.List;
import com.riskified.validations.*;
public class RefundOrder implements IValidated {
private String id;
private List refunds;
public RefundOrder() {
refunds = new ArrayList();
}
public void validate(Validation validationType)
throws FieldBadFormatException {
Validate.notNullOrEmpty(this, this.id, "Id");
if (validationType == Validation.ALL) {
Validate.notNull(this, this.refunds, "Refunds");
}
if (this.refunds != null) {
for (RefundDetails refundDetails : this.refunds) {
refundDetails.validate(validationType);
}
}
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public List getRefunds() {
return refunds;
}
public void setRefunds(List refunds) {
this.refunds = refunds;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy