Beispiel #1
0
 /**
  * Get schema of an array for test rates routine
  *
  * @return array
  */
 protected function getTestRatesSchema()
 {
     $schema = parent::getTestRatesSchema();
     foreach (array('srcAddress', 'dstAddress') as $k) {
         unset($schema[$k]['city'], $schema[$k]['state']);
     }
     unset($schema['dstAddress']['type']);
     return $schema;
 }
Beispiel #2
0
 /**
  * Get schema of an array for test rates routine
  *
  * @return array
  */
 protected function getTestRatesSchema()
 {
     $schema = parent::getTestRatesSchema();
     unset($schema['srcAddress']['city'], $schema['dstAddress']['city'], $schema['cod_enabled']);
     $schema['dimensions'] = 'dimensions';
     if (\XLite\Module\XC\AuctionInc\Main::isSSAvailable()) {
         unset($schema['srcAddress']);
     }
     return $schema;
 }
Beispiel #3
0
 /**
  * Get schema of an array for test rates routine
  *
  * @return array
  */
 protected function getTestRatesSchema()
 {
     $schema = parent::getTestRatesSchema();
     unset($schema['subtotal']);
     unset($schema['weight']);
     unset($schema['srcAddress']);
     unset($schema['dstAddress']['type']);
     $schema['commodity'] = \XLite\Module\XC\PitneyBowes\View\Model\TestRates::SCHEMA_FIELD_COMMODITY;
     return $schema;
 }