/// <summary>
        /// Validate and generate a UPC-A barcode as a PNG file, a type of 1D barcode
        /// </summary>
        /// <param name='operations'>
        /// The operations group for this extension method.
        /// </param>
        /// <param name='value'>
        /// UPC-A barcode value to generate from
        /// </param>
        /// <param name='cancellationToken'>
        /// The cancellation token.
        /// </param>
        public static async Task <System.IO.Stream> UPCAAsync(this IGenerateBarcode operations, string value, CancellationToken cancellationToken = default(CancellationToken))
        {
            var _result = await operations.UPCAWithHttpMessagesAsync(value, null, cancellationToken).ConfigureAwait(false);

            _result.Request.Dispose();
            return(_result.Body);
        }
 /// <summary>
 /// Validates and generate a UPC-E barcode as a PNG file, a type of 1D barcode
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='value'>
 /// UPC-E barcode value to generate from
 /// </param>
 public static System.IO.Stream UPCE(this IGenerateBarcode operations, string value)
 {
     return(Task.Factory.StartNew(s => ((IGenerateBarcode)s).UPCEAsync(value), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }