Esempio n. 1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='orderDto'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> ApiOrdersPostAsync(this IOrdersManagerAPI operations, OrderDto orderDto = default(OrderDto), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ApiOrdersPostWithHttpMessagesAsync(orderDto, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> ApiOrdersByIdGetAsync(this IOrdersManagerAPI operations, System.Guid id, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ApiOrdersByIdGetWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 3
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='orderId'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <string> ApiOrdersByOrderIdDeleteAsync(this IOrdersManagerAPI operations, System.Guid orderId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ApiOrdersByOrderIdDeleteWithHttpMessagesAsync(orderId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 4
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='orderId'>
 /// </param>
 /// <param name='orderItemDto'>
 /// </param>
 public static object ApiOrdersByOrderIdItemsPut(this IOrdersManagerAPI operations, System.Guid orderId, OrderItemDto orderItemDto = default(OrderItemDto))
 {
     return(operations.ApiOrdersByOrderIdItemsPutAsync(orderId, orderItemDto).GetAwaiter().GetResult());
 }
Esempio n. 5
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// </param>
 public static object ApiOrdersByIdGet(this IOrdersManagerAPI operations, System.Guid id)
 {
     return(operations.ApiOrdersByIdGetAsync(id).GetAwaiter().GetResult());
 }
Esempio n. 6
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='orderDto'>
 /// </param>
 public static object ApiOrdersPost(this IOrdersManagerAPI operations, OrderDto orderDto = default(OrderDto))
 {
     return(operations.ApiOrdersPostAsync(orderDto).GetAwaiter().GetResult());
 }
Esempio n. 7
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static object ApiOrdersGet(this IOrdersManagerAPI operations)
 {
     return(operations.ApiOrdersGetAsync().GetAwaiter().GetResult());
 }
Esempio n. 8
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='orderId'>
 /// </param>
 public static string ApiOrdersByOrderIdDelete(this IOrdersManagerAPI operations, System.Guid orderId)
 {
     return(operations.ApiOrdersByOrderIdDeleteAsync(orderId).GetAwaiter().GetResult());
 }