/**
  * @param array $config
  * @param string $env
  */
 public function __construct(array $config = [], $env = self::ENV_PROD)
 {
     // Apply some defaults.
     $config += ['description_path' => __DIR__ . '/descriptions/item.php'];
     // Create the client.
     parent::__construct($config, $env);
 }
 /**
  * @param array $config
  * @param string $env
  * @throws \Exception
  */
 public function __construct(array $config = [], $env = self::ENV_PROD)
 {
     if (!isset($config['wmConsumerChannelType'])) {
         throw new \Exception('wmConsumerChannelType is required in configuration for Order APIs', 1467486702);
     }
     $this->wmConsumerChannelType = $config['wmConsumerChannelType'];
     // Apply some defaults.
     $config = array_merge_recursive($config, ['description_path' => __DIR__ . '/descriptions/order.php', 'http_client_options' => ['defaults' => ['headers' => ['WM_CONSUMER.CHANNEL.TYPE' => $this->wmConsumerChannelType]]]]);
     // Create the client.
     parent::__construct($config, $env);
 }