br.com.uol.pagseguro.api.direct.preapproval.TransactionXML Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pagseguro-api Show documentation
Show all versions of pagseguro-api Show documentation
A collection of domain classes to ease integrations with PagSeguro Api
The newest version!
package br.com.uol.pagseguro.api.direct.preapproval;
import br.com.uol.pagseguro.api.common.domain.TransactionStatus;
import javax.xml.bind.annotation.XmlElement;
public class TransactionXML implements Transaction {
private String code;
private Integer statusId;
private String date;
//@Override
public String getCode() {
return code;
}
@XmlElement
public void setCode(String code) {
this.code = code;
}
public Integer getStatusId() {
return statusId;
}
@XmlElement(name = "status")
public void setStatusId(Integer statusId) {
this.statusId = statusId;
}
@Override
public TransactionStatus getStatus() {
return new TransactionStatus(getStatusId());
}
@Override
public String getDate() { return date; }
@XmlElement
public void setDate(String date) {
this.date = date;
}
@Override
public String toString() {
return "TransactionXML{" +
"code=" + code +
", statusId=" + statusId +
", date=" + date +
'}';
}
}