Class IdentificationTypeClient
Client with methods of Identification Type APIs.
Inherited Members
Namespace: MercadoPago.Client.IdentificationType
Assembly: MercadoPago.dll
Syntax
public class IdentificationTypeClient : MercadoPagoClient<IdentificationType>
Constructors
| Edit this page View SourceIdentificationTypeClient()
Initializes a new instance of the IdentificationTypeClient class.
Declaration
public IdentificationTypeClient()
IdentificationTypeClient(IHttpClient)
Initializes a new instance of the IdentificationTypeClient class.
Declaration
public IdentificationTypeClient(IHttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
IHttpClient | httpClient | The http client that will be used in HTTP requests. |
IdentificationTypeClient(IHttpClient, ISerializer)
Initializes a new instance of the IdentificationTypeClient class.
Declaration
public IdentificationTypeClient(IHttpClient httpClient, ISerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
IHttpClient | httpClient | The http client that will be used in HTTP requests. |
ISerializer | serializer | The serializer that will be used to serialize the HTTP requests content and to deserialize the HTTP response content. |
IdentificationTypeClient(ISerializer)
Initializes a new instance of the IdentificationTypeClient class.
Declaration
public IdentificationTypeClient(ISerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
ISerializer | serializer | The serializer that will be used to serialize the HTTP requests content and to deserialize the HTTP response content. |
Methods
| Edit this page View SourceList(RequestOptions)
Lists the Identification Types.
Declaration
public ResourcesList<IdentificationType> List(RequestOptions requestOptions = null)
Parameters
Type | Name | Description |
---|---|---|
RequestOptions | requestOptions |
Returns
Type | Description |
---|---|
ResourcesList<IdentificationType> | The list of Identification Type. |
Remarks
Check the API documentation here.
Exceptions
Type | Condition |
---|---|
MercadoPagoException | If a unexpected exception occurs. |
MercadoPagoApiException | If the API returns a error. |
ListAsync(RequestOptions, CancellationToken)
Lists async the Identification Types.
Declaration
public Task<ResourcesList<IdentificationType>> ListAsync(RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
RequestOptions | requestOptions | |
CancellationToken | cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
Task<ResourcesList<IdentificationType>> | A task whose the result is the list of Identification Type. |
Remarks
Check the API documentation here.
Exceptions
Type | Condition |
---|---|
MercadoPagoException | If a unexpected exception occurs. |
MercadoPagoApiException | If the API returns a error. |