Class IdentificationTypeClient
- java.lang.Object
-
- com.mercadopago.client.MercadoPagoClient
-
- com.mercadopago.client.identificationtype.IdentificationTypeClient
-
public class IdentificationTypeClient extends MercadoPagoClient
Client with methods of Identification Type APIs.
-
-
Field Summary
-
Fields inherited from class com.mercadopago.client.MercadoPagoClient
defaultHeaders, httpClient
-
-
Constructor Summary
Constructors Constructor Description IdentificationTypeClient()
Default constructor.IdentificationTypeClient(MPHttpClient httpClient)
Constructor used for providing a custom http client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MPResourceList<IdentificationType>
list()
List all identification types.MPResourceList<IdentificationType>
list(MPRequestOptions requestOptions)
List all identification types.
-
-
-
Constructor Detail
-
IdentificationTypeClient
public IdentificationTypeClient()
Default constructor. Uses the default http client used by the SDK.
-
IdentificationTypeClient
public IdentificationTypeClient(MPHttpClient httpClient)
Constructor used for providing a custom http client.- Parameters:
httpClient
- httpClient
-
-
Method Detail
-
list
public MPResourceList<IdentificationType> list() throws MPException, MPApiException
List all identification types.- Returns:
- list of identification types
- Throws:
MPException
- an error if the request failsMPApiException
- See Also:
- api docs
-
list
public MPResourceList<IdentificationType> list(MPRequestOptions requestOptions) throws MPException, MPApiException
List all identification types.- Parameters:
requestOptions
- metadata to customize the request- Returns:
- list of identification types
- Throws:
MPException
- an error if the request failsMPApiException
- See Also:
- api docs
-
-