Exemplo n.º 1
0
 /**
  * toHubTransportation part of basket
  * 
  * @return array
  */
 protected function getToHubTransportation()
 {
     $handlingFee = Processor\PitneyBowes::getHandlingFeeMarkup(count($this->inputData));
     $shippingFee = Processor\PitneyBowes::getShippingFeeMarkup(count($this->inputData));
     return array('merchantShippingIdentifier' => 'STANDARD', 'speed' => 'STANDARD', 'shipping' => array('value' => $handlingFee), 'handling' => array('value' => $shippingFee), 'total' => array('value' => $shippingFee + $handlingFee), 'minDays' => intval($this->config->min_delivery_adjustment), 'maxDays' => intval($this->config->max_delivery_adjustment));
 }
Exemplo n.º 2
0
 /**
  * 
  * @param mixed $quote Single quote line
  * 
  * @return float
  */
 protected function getMarkupRate($quote)
 {
     $handlingFee = Processor\PitneyBowes::getHandlingFeeMarkup(count($quote->quoteLines));
     $shippingFee = Processor\PitneyBowes::getShippingFeeMarkup(count($quote->quoteLines));
     return $handlingFee + $shippingFee;
 }