@@ -0,0 +1,2901 @@
+/**%0A * CarrierType.java%0A * This file is a part of EasyPost API SDK.%0A * (c) 2022 EasyPost%0A * For the full copyright and license information, please view the LICENSE%0A * file that was distributed with this source code.%0A */%0Apackage com.easypost.model;%0A%0Aimport com.easypost.exception.EasyPostException;%0Aimport com.easypost.net.EasyPostResource;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Apublic final class CarrierType extends EasyPostResource %7B%0A    private String type;%0A    private String readable;%0A    private String logo;%0A    private Map%3CString, Object%3E fields;%0A%0A    /**%0A     * Get the type of the carrier.%0A     *%0A     * @return type of a carrier.%0A     */%0A    public String getType() %7B%0A        return type;%0A    %7D%0A%0A    /**%0A     * Set the type of carrier.%0A     *%0A     * @param type type of a carrier.%0A     */%0A    public void setType(final String type) %7B%0A        this.type = type;%0A    %7D%0A%0A    /**%0A     * Get the readable name of the carrier.%0A     *%0A     * @return return readable name of the carrier.%0A     */%0A    public String getReadable() %7B%0A        return readable;%0A    %7D%0A%0A    /**%0A     * Set the readable name of the carrier.%0A     *%0A     * @param readable readable name of the carrier.%0A     */%0A    public void setReadable(final String readable) %7B%0A        this.readable = readable;%0A    %7D%0A%0A    /**%0A     * Get the logo of the carrier.%0A     *%0A     * @return logo of a carrier.%0A     */%0A    public String getLogo() %7B%0A        return logo;%0A    %7D%0A%0A    /**%0A     * Set the logo of carrier.%0A     *%0A     * @param logo logo of a carrier.%0A     */%0A    public void setLogo(final String logo) %7B%0A        this.logo = logo;%0A    %7D%0A%0A    /**%0A     * Get the fields of the carrier.%0A     *%0A     * @return fields from a carrier.%0A     */%0A    public Map%3CString, Object%3E getFields() %7B%0A        return fields;%0A    %7D%0A%0A    /**%0A     * Set the fields of carrier.%0A     *%0A     * @param fields fields for a carrier.%0A     */%0A    public void setFields(final Map%3CString, Object%3E fields) %7B%0A        this.fields = fields;%0A    %7D%0A%0A    /**%0A     * Retrieve a list of available carriers for the account.%0A     *%0A     * @return list of carrier types that are available to the account.%0A     * @throws EasyPostException when the request fails.%0A     */%0A    public static List%3CCarrierType%3E all() throws EasyPostException %7B%0A        return all(null);%0A    %7D%0A%0A    /**%0A     * Retrieve a list of available carriers for the given account.%0A     *%0A     * @param apikey the API key from the user input.%0A     * @return list of carrier types that are available for the given account.%0A     * @throws EasyPostException when the request fails.%0A     */%0A    public static List%3CCarrierType%3E all(final String apikey) throws EasyPostException %7B%0A        CarrierType%5B%5D response = request(RequestMethod.GET, classURL(CarrierType.class),%0A                                    null, CarrierType%5B%5D.class, apikey);%0A        return Arrays.asList(response);%0A    %7D%0A%7D%0A

add support to retrieve available Carrier Types (#88)