package me.pagar.model;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class Document extends PagarMeModel<Integer> {

    @Expose
    @SerializedName("type")
    private Type type;

    @Expose
    private String number;

    public Document() {
        super();
    }

    public Document(Type type, final String number) {
        this();
        this.type = type;
        this.number = number;
    }

    public Type getType() {
        return type;
    }

    public String getNumber() {
        return number;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public void setNumber(final String number) {
        this.number = number;
    }

    public enum Type {
        @SerializedName("cpf")
        CPF,

        @SerializedName("cnpj")
        CNPJ
    }
}

@@ -160,15 +160,14 @@
 del%3C
-Integer
+String
 %3E %7B%0A

change document model type