Class OrderTransactionUpdateClient
Client that use the Order APIs.
Inherited Members
Namespace: MercadoPago.Client.Order
Assembly: MercadoPago.dll
Syntax
public class OrderTransactionUpdateClient : MercadoPagoClient<OrderUpdateTransaction>
Constructors
| Edit this page View SourceOrderTransactionUpdateClient()
Initializes a new instance of the OrderTransactionUpdateClient class.
Declaration
public OrderTransactionUpdateClient()
OrderTransactionUpdateClient(IHttpClient)
Initializes a new instance of the OrderTransactionUpdateClient class.
Declaration
public OrderTransactionUpdateClient(IHttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
IHttpClient | httpClient | The http client that will be used in HTTP requests. |
OrderTransactionUpdateClient(IHttpClient, ISerializer)
Initializes a new instance of the OrderTransactionUpdateClient class.
Declaration
public OrderTransactionUpdateClient(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. |
OrderTransactionUpdateClient(ISerializer)
Initializes a new instance of the OrderTransactionUpdateClient class.
Declaration
public OrderTransactionUpdateClient(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 SourceUpdate(string, string, OrderPaymentRequest, RequestOptions)
Update a transaction.
Declaration
public OrderUpdateTransaction Update(string orderId, string transactionId, OrderPaymentRequest request, RequestOptions requestOptions = null)
Parameters
Type | Name | Description |
---|---|---|
string | orderId | The order id. |
string | transactionId | The transaction id. |
OrderPaymentRequest | request | The order transaction. |
RequestOptions | requestOptions |
Returns
Type | Description |
---|---|
OrderUpdateTransaction | The updated transaction. |
Remarks
Check the API documentation here.
Exceptions
Type | Condition |
---|---|
MercadoPagoException | If a unexpected exception occurs. |
MercadoPagoApiException | If the API returns a error. |
UpdateAsync(string, string, OrderPaymentRequest, RequestOptions, CancellationToken)
Update a transaction as an asynchronous operation.
Declaration
public Task<OrderUpdateTransaction> UpdateAsync(string orderId, string transactionId, OrderPaymentRequest request, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | orderId | The order id. |
string | transactionId | The transaction id. |
OrderPaymentRequest | request | The payment method for the transaction. |
RequestOptions | requestOptions | |
CancellationToken | cancellationToken | Cancellation token. |
Returns
Type | Description |
---|---|
Task<OrderUpdateTransaction> | A task whose the result is the updated ordetransaction. |
Remarks
Check the API documentation here.
Exceptions
Type | Condition |
---|---|
MercadoPagoException | If a unexpected exception occurs. |
MercadoPagoApiException | If the API returns a error. |