
com.riskified.models.CancelOrder 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.Date;
import com.riskified.validations.*;
/**
* Cancel Order details
*/
public class CancelOrder implements IValidated {
private String id;
private String cancelReason;
private Date cancelledAt;
public void validate(Validation validationType)
throws FieldBadFormatException {
if (validationType == Validation.ALL) {
Validate.notNullOrEmpty(this, this.id, "Id");
Validate.notNullOrEmpty(this, this.cancelReason, "Cancel Reason");
Validate.notNull(this, this.cancelledAt, "Cancelled At");
}
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getCancelReason() {
return cancelReason;
}
public void setCancelReason(String cancelReason) {
this.cancelReason = cancelReason;
}
public Date getCancelledAt() {
return cancelledAt;
}
public void setCancelledAt(Date cancelledAt) {
this.cancelledAt = cancelledAt;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy