All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.moip.resource.Receiver Maven / Gradle / Ivy

There is a newer version: 4.7.6
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy