br.com.moip.resource.Receiver 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;
public class Receiver {
private Amount amount;
private Type type;
private MoipAccount moipAccount;
public Amount getAmount() {
return amount;
}
public Type getType() {
return type;
}
public MoipAccount getMoipAccount() {
return moipAccount;
}
public boolean isPrimary() {
return Type.PRIMARY == getType();
}
public boolean isSecondary() {
return Type.SECONDARY == getType();
}
@Override
public String toString() {
return new StringBuilder("Receiver{")
.append("amount=").append(amount)
.append(", type=").append(type)
.append(", moipAccount=").append(moipAccount)
.append('}').toString();
}
public enum Type {
PRIMARY, SECONDARY;
}
}