
com.braintreegateway.DisputeStatusHistory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of braintree-java Show documentation
Show all versions of braintree-java Show documentation
Java Client Library for Braintree Payments Gateway
package com.braintreegateway;
import com.braintreegateway.Dispute.Status;
import com.braintreegateway.util.EnumUtils;
import com.braintreegateway.util.NodeWrapper;
import java.util.Calendar;
public final class DisputeStatusHistory {
private final Calendar disbursementDate;
private final Calendar effectiveDate;
private final Calendar timestamp;
private final Dispute.Status status;
public DisputeStatusHistory(NodeWrapper node) {
disbursementDate = node.findDate("disbursement-date");
effectiveDate = node.findDate("effective-date");
timestamp = node.findDateTime("timestamp");
status = EnumUtils.findByName(Dispute.Status.class, node.findString("status"), Status.UNRECOGNIZED);
}
public Calendar getEffectiveDate() {
return effectiveDate;
}
public Calendar getDisbursementDate() {
return disbursementDate;
}
public Calendar getTimestamp() {
return timestamp;
}
public Dispute.Status getStatus() {
return status;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy