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

br.com.moip.request.CaptureMethodRequest Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy