br.com.moip.request.CaptureMethodRequest 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.request;
public class CaptureMethodRequest {
private Type type;
private String voucher;
private String stoneId;
public Type getType() {
return type;
}
public CaptureMethodRequest mpos() {
this.type = Type.MPOS;
return this;
}
public String getVoucher() {
return voucher;
}
public CaptureMethodRequest voucher(final String voucher) {
this.voucher = voucher;
return this;
}
public String getStoneId() {
return stoneId;
}
public CaptureMethodRequest stoneId(final String stoneId) {
this.stoneId = stoneId;
return this;
}
private enum Type {
MPOS;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("CaptureMethodRequest{");
sb.append("type=").append(type);
sb.append(", voucher='").append(voucher).append('\'');
sb.append(", stoneId='").append(stoneId).append('\'');
sb.append('}');
return sb.toString();
}
}