br.com.moip.resource.FundingInstrument 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 FundingInstrument {
private boolean supressCreditCard;
private boolean supressBoleto;
private Method method;
private CreditCard creditCard;
private Boleto boleto;
private Mpos mpos;
public boolean isSupressCreditCard() {
return supressCreditCard;
}
public boolean isSupressBoleto() {
return supressBoleto;
}
public void setSupressCreditCard(boolean supressCreditCard) {
this.supressCreditCard = supressCreditCard;
}
public void setSupressBoleto(boolean supressBoleto) {
this.supressBoleto = supressBoleto;
}
public Method getMethod() {
return method;
}
public void setMethod(Method method) {
this.method = method;
}
public CreditCard getCreditCard() {
return creditCard;
}
public void setCreditCard(CreditCard creditCard) {
this.creditCard = creditCard;
}
public Boleto getBoleto() {
return boleto;
}
public void setBoleto(Boleto boleto) {
this.boleto = boleto;
}
public Mpos getMpos() {
return mpos;
}
public void setMpos(Mpos mpos) {
this.mpos = mpos;
}
public enum Method {
CREDIT_CARD, BOLETO;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("FundingInstrument{");
sb.append("supressCreditCard=").append(supressCreditCard);
sb.append(", supressBoleto=").append(supressBoleto);
sb.append(", method=").append(method);
sb.append(", creditCard=").append(creditCard);
sb.append(", boleto=").append(boleto);
sb.append(", mpos=").append(mpos);
sb.append('}');
return sb.toString();
}
}