/// <summary>
 /// Delete purchase order by Id
 /// </summary>
 /// For valid response try integer IDs with value &lt; 1000. Anything above
 /// 1000 or nonintegers will generate API errors
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='orderId'>
 /// Id of the order that needs to be deleted
 /// </param>
 /// <param name='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse DeleteOrderWithHttpMessages(this ISwaggerPetstoreV2 operations, string orderId, Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.DeleteOrderWithHttpMessagesAsync(orderId, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Delete purchase order by Id
 /// </summary>
 /// For valid response try integer IDs with value &lt; 1000. Anything above
 /// 1000 or nonintegers will generate API errors
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='orderId'>
 /// Id of the order that needs to be deleted
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteOrderAsync(this ISwaggerPetstoreV2 operations, string orderId, CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.DeleteOrderWithHttpMessagesAsync(orderId, null, cancellationToken).ConfigureAwait(false);
 }