Beispiel #1
0
 /**
  * @param Models\Customer\Group $group
  * @return Struct\Customer\Group
  */
 public function convertCustomerGroup(Models\Customer\Group $group)
 {
     $customerGroup = new Struct\Customer\Group();
     $customerGroup->setKey($group->getKey());
     $customerGroup->setUseDiscount($group->getMode());
     $customerGroup->setId($group->getId());
     $customerGroup->setPercentageDiscount($group->getDiscount());
     $customerGroup->setDisplayGrossPrices($group->getTax());
     $customerGroup->setMinimumOrderValue($group->getMinimumOrder());
     $customerGroup->setSurcharge($group->getMinimumOrderSurcharge());
     return $customerGroup;
 }
 /**
  * {@inheritDoc}
  */
 public function getDiscount()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDiscount', array());
     return parent::getDiscount();
 }