/**
  * @param array $newOptions
  *
  * @return array
  *
  * @author Panagiotis Vagenas <*****@*****.**>
  * @since ${VERSION}
  */
 protected function validateOptions(array $newOptions)
 {
     $newOptions['companyId'] = isset($newOptions['companyId']) ? (string) $newOptions['companyId'] : $this->defaults['companyId'];
     $newOptions['companyPass'] = isset($newOptions['companyPass']) ? (string) $newOptions['companyPass'] : $this->defaults['companyPass'];
     $newOptions['username'] = isset($newOptions['username']) ? (string) $newOptions['username'] : $this->defaults['username'];
     $newOptions['password'] = isset($newOptions['password']) ? (string) $newOptions['password'] : $this->defaults['password'];
     $newOptions['customerId'] = isset($newOptions['customerId']) ? (string) $newOptions['customerId'] : $this->defaults['customerId'];
     return parent::validateOptions($newOptions);
 }
 /**
  *
  *
  * @param $defaults
  * @param $validators
  *
  * @author Panagiotis Vagenas <*****@*****.**>
  * @since TODO ${VERSION}
  */
 protected function setUp($defaults, $validators)
 {
     $options = array('carrierList' => array('ELTA_CLDE' => 'ΕΛΤΑ Courier'), 'freeShippingAbove' => 80);
     $moduleValidators = array('ELTA_CLDE' => array('array:!empty'), 'freeShippingAbove' => array('string:numeric >=' => 0));
     parent::setUp(array_merge($defaults, $options), array_merge($validators, $moduleValidators));
 }