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

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

There is a newer version: 4.7.6
Show newest version
package br.com.moip.request;

public class CreditCardRequest {

    private String hash;
    private HolderRequest holder;

    //Used on MPOS
    private String brand;
    private String first6;
    private String last4;
    private CaptureMethodRequest captureMethodRequest;

    public String getHash() {
        return hash;
    }

    public CreditCardRequest hash(final String hash) {
        this.hash = hash;

        return this;
    }

    public HolderRequest getHolder() {
        return holder;
    }

    public CreditCardRequest holder(final HolderRequest holder) {
        this.holder = holder;

        return this;
    }

    public void brand(String brand) {
        this.brand = brand;
    }

    public void first6(String first6) {
        this.first6 = first6;
    }

    public void last4(String last4) {
        this.last4 = last4;
    }

    public void captureMethodRequest(CaptureMethodRequest captureMethodRequest) {
        this.captureMethodRequest = captureMethodRequest;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("CreditCardRequest{");
        sb.append("hash='").append(hash).append('\'');
        sb.append(", holder=").append(holder);
        sb.append(", brand='").append(brand).append('\'');
        sb.append(", first6='").append(first6).append('\'');
        sb.append(", last4='").append(last4).append('\'');
        sb.append(", captureMethodRequest=").append(captureMethodRequest);
        sb.append('}');
        return sb.toString();
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy