/// <summary> /// Returns history operations base info. /// </summary> /// <param name="merchantId">Identifier of the merchant.</param> /// <param name="cancellationToken">A cancellation token that can be used to cancel the work.</param> /// <returns>History operations.</returns> public async Task <IEnumerable <HistoryOperationViewModel> > GetHistoryAsync(string merchantId, CancellationToken cancellationToken = default(CancellationToken)) { var result = await _service.GetHistoryAsync(merchantId, cancellationToken); return(Convert <IEnumerable <HistoryOperationViewModel> >(result)); }
/// <summary> /// Returns history operations base info. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='merchantId'> /// Identifier of the merchant. /// </param> public static object GetHistory(this IPayHistoryAPI operations, string merchantId = default(string)) { return(operations.GetHistoryAsync(merchantId).GetAwaiter().GetResult()); }