/// <summary> /// Retrieves the <see cref="Transaction"/> with the given id. /// </summary> /// <param name="orderId">The order id to which the fulfillments belong.</param> /// <param name="transactionId">The id of the Transaction to retrieve.</param> /// <param name="filter">Options for filtering the result.</param> public virtual async Task <Transaction> GetAsync(long orderId, long transactionId, TransactionGetFilter filter = null) { return(await ExecuteGetAsync <Transaction>($"orders/{orderId}/transactions/{transactionId}.json", "transaction", filter)); }
/// <summary> /// Retrieves the <see cref="Transaction"/> with the given id. /// </summary> /// <param name="orderId">The order id to which the fulfillments belong.</param> /// <param name="transactionId">The id of the Transaction to retrieve.</param> /// <param name="filter">Options for filtering the result.</param> /// <param name="cancellationToken">Cancellation Token</param> public virtual async Task <Transaction> GetAsync(long orderId, long transactionId, TransactionGetFilter filter = null, bool includeCurrencyExchangeAdjustments = false, CancellationToken cancellationToken = default) { return(await ExecuteGetAsync <Transaction>($"orders/{orderId}/transactions/{transactionId}.json", "transaction", filter, cancellationToken, GetHeaders(includeCurrencyExchangeAdjustments))); }
/// <summary> /// Retrieves the <see cref="Transaction"/> with the given id. /// </summary> /// <param name="orderId">The order id to which the fulfillments belong.</param> /// <param name="transactionId">The id of the Transaction to retrieve.</param> /// <param name="filter">Options for filtering the result.</param> /// <param name="cancellationToken">Cancellation Token</param> public virtual async Task <Transaction> GetAsync(long orderId, long transactionId, TransactionGetFilter filter = null, CancellationToken cancellationToken = default) { return(await ExecuteGetAsync <Transaction>($"orders/{orderId}/transactions/{transactionId}.json", "transaction", filter, cancellationToken)); }