br.com.moip.resource.Transfer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for Moip v2 APIs
package br.com.moip.resource;
import br.com.moip.resource.links.TransferLinks;
import java.util.Date;
import java.util.List;
public class Transfer {
private String id;
private int amount;
private int fee;
private TransferStatus status;
private Date createdAt;
private Date updatedAt;
private Role role;
private TransferInstrument transferInstrument;
private List events;
private List entries;
private TransferLinks _links;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public int getAmount() {
return amount;
}
public void setAmount(int amount) {
this.amount = amount;
}
public int getFee() {
return fee;
}
public void setFee(int fee) {
this.fee = fee;
}
public TransferStatus getStatus() {
return status;
}
public void setStatus(TransferStatus status) {
this.status = status;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public TransferInstrument getTransferInstrument() {
return transferInstrument;
}
public void setTransferInstrument(TransferInstrument transferInstrument) {
this.transferInstrument = transferInstrument;
}
public Role getRole() {
return role;
}
public void setRole(Role role) {
this.role = role;
}
public enum Role {
RECEIVER,
PAYER
}
public List getEvents() { return events; }
public List getEntries() { return entries; }
public TransferLinks getLinks() { return _links; }
public void setLinks(TransferLinks _links) { this._links = _links; }
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("Transfer{");
sb.append("id='").append(id).append('\'');
sb.append(", amount=").append(amount);
sb.append(", fee=").append(fee);
sb.append(", status=").append(status);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", role=").append(role);
sb.append(", transferInstrument=").append(transferInstrument);
sb.append(", _links=").append(_links);
sb.append('}');
return sb.toString();
}
}