/// <summary> /// Returns details of the history operation. /// </summary> /// <param name="id">Identifier of the history operation.</param> /// <param name="cancellationToken">A cancellation token that can be used to cancel the work.</param> /// <returns>Details of the history operation.</returns> public async Task <HistoryOperationModel> GetDetailsAsync(string id, CancellationToken cancellationToken = default(CancellationToken)) { var result = await _service.GetDetailsByIdAsync(id, cancellationToken); return(Convert <HistoryOperationModel>(result)); }
/// <summary> /// Returns details of the history operation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// Identifier of the history operation. /// </param> public static object GetDetailsById(this IPayHistoryAPI operations, string id = default(string)) { return(operations.GetDetailsByIdAsync(id).GetAwaiter().GetResult()); }