
com.riskified.models.RefundDetails 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.*;
public class RefundDetails implements IValidated {
private String refundId;
private Date refundedAt;
private Double amount;
private String currency;
private String reason;
public void validate(Validation validationType) throws FieldBadFormatException {
if (validationType == Validation.ALL) {
Validate.notNullOrEmpty(this, this.refundId, "Refund Id");
Validate.notNull(this, this.refundedAt, "Refunded At");
Validate.notNull(this, this.amount, "Amount");
Validate.notNull(this, this.currency, "Currency");
Validate.notNull(this, this.reason, "Reason");
}
if (currency != null) {
Validate.currencyCode(this, currency, "Currency");
}
}
public String getRefundId() {
return refundId;
}
public void setRefundId(String refundId) {
this.refundId = refundId;
}
public Date getRefundedAt() {
return refundedAt;
}
public void setRefundedAt(Date refundedAt) {
this.refundedAt = refundedAt;
}
public double getAmount() {
return amount;
}
public void setAmount(double amount) {
this.amount = amount;
}
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy