/// <summary>
 /// Get the Saldo in the Stock
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <int?> GetSaldoAsync(this IStockManageServiceClient operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetSaldoWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Make a saldo movment in the Stock
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='value'>
 /// the value should be an int and for buying should be + value and - when
 /// selling.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task UpdateSaldoAsync(this IStockManageServiceClient operations, int value, CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.UpdateSaldoWithHttpMessagesAsync(value, null, cancellationToken).ConfigureAwait(false);
 }
 /// <summary>
 /// Make a saldo movment in the Stock
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='value'>
 /// the value should be an int and for buying should be + value and - when
 /// selling.
 /// </param>
 public static void UpdateSaldo(this IStockManageServiceClient operations, int value)
 {
     Task.Factory.StartNew(s => ((IStockManageServiceClient)s).UpdateSaldoAsync(value), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Get the Saldo in the Stock
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static int?GetSaldo(this IStockManageServiceClient operations)
 {
     return(Task.Factory.StartNew(s => ((IStockManageServiceClient)s).GetSaldoAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }