/// <summary>
 /// Calculates the refund amounts and price of the new purchases.
 /// </summary>
 /// <remarks>
 /// Calculates price for exchanging `Reservations` if there are no policy
 /// errors.
 ///
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// Request containing purchases and refunds that need to be executed.
 /// </param>
 public static CalculateExchangeOperationResultResponse BeginPost(this ICalculateExchangeOperations operations, CalculateExchangeRequest body)
 {
     return(operations.BeginPostAsync(body).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Calculates the refund amounts and price of the new purchases.
 /// </summary>
 /// <remarks>
 /// Calculates price for exchanging `Reservations` if there are no policy
 /// errors.
 ///
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// Request containing purchases and refunds that need to be executed.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CalculateExchangeOperationResultResponse> PostAsync(this ICalculateExchangeOperations operations, CalculateExchangeRequest body, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PostWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }