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 java.util.Date;
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;
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
}
@Override
public String toString() {
return new StringBuilder("Transfer{")
.append("id=").append(id)
.append(", amount=").append(amount)
.append(", fee=").append(fee)
.append(", status=").append(status)
.append(", createdAt=").append(createdAt)
.append(", updatedAt=").append(updatedAt)
.append(", transferInstrument=").append(transferInstrument)
.append('}').toString();
}
}