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() {
        return new StringBuilder("CaptureMethodRequest{").append("type=").append(type)
                .append(", voucher='").append(voucher).append('\'')
                .append(", stoneId='").append(stoneId).append('\'')
                .append('}').toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy