@@ -0,0 +1,2060 @@
+%0Apackage me.pagar.model;%0A%0Aimport com.google.gson.JsonObject;%0Aimport com.google.gson.annotations.Expose;%0Aimport java.util.logging.Level;%0Aimport java.util.logging.Logger;%0Aimport javax.ws.rs.HttpMethod;%0Aimport me.pagar.util.JSONUtils;%0A%0A/**%0A *%0A * @author ta-ma%0A */%0Apublic class Zipcode extends  PagarMeModel%3CString%3E  %7B%0A    @Expose%0A    private String zipcode;%0A    @Expose%0A    private String street;%0A    @Expose%0A    private String neighborhood;%0A    @Expose%0A    private String city;%0A    @Expose%0A    private String state; %0A    %0A    public Zipcode()%7B%0A    %7D%0A%0A    public String getZipcode() %7B%0A        return zipcode;%0A    %7D%0A%0A    public void setZipcode(String zipcode) %7B%0A        this.zipcode = zipcode;%0A    %7D%0A%0A    public String getStreet() %7B%0A        return street;%0A    %7D%0A%0A    public void setStreet(String street) %7B%0A        this.street = street;%0A    %7D%0A%0A    public String getNeighborhood() %7B%0A        return neighborhood;%0A    %7D%0A%0A    public void setNeighborhood(String neighborhood) %7B%0A        this.neighborhood = neighborhood;%0A    %7D%0A%0A    public String getCity() %7B%0A        return city;%0A    %7D%0A%0A    public void setCity(String city) %7B%0A        this.city = city;%0A    %7D%0A%0A    public String getState() %7B%0A        return state;%0A    %7D%0A%0A    public void setState(String state) %7B%0A        this.state = state;%0A    %7D%0A    %0A     public Zipcode checkZipcode(String zipcode) %7B%0A        final PagarMeRequest request = new PagarMeRequest(HttpMethod.GET, %22/zipcodes/%22+zipcode);%0A        try %7B%0A            final Zipcode other = JSONUtils.getAsObject((JsonObject) request.execute(), Zipcode.class);%0A            copy(other);%0A            flush();%0A            return other;%0A        %7D catch (PagarMeException ex) %7B%0A            Logger.getLogger(Zipcode.class.getName()).log(Level.SEVERE, null, ex);%0A            return null;%0A        %7D%0A    %7D%0A    %0A    private void copy(Zipcode other)%7B%0A        super.copy(other);%0A        this.city = other.city;%0A        this.neighborhood = other.neighborhood;%0A        this.street = other.street;%0A        this.zipcode = other.zipcode;%0A        this.state = other.state;%0A    %7D%0A    %0A%7D%0A

Add zipcode check method