Beispiel #1
0
 /**
  * Convert tax class model into tax class service data object.
  *
  * @param TaxClassModel $taxClassModel
  * @return TaxClass
  */
 public function createTaxClassData(TaxClassModel $taxClassModel)
 {
     return $this->taxClassDataObjectFactory->create()->setClassId($taxClassModel->getId())->setClassName($taxClassModel->getClassName())->setClassType($taxClassModel->getClassType());
 }
Beispiel #2
0
 /**
  * Convert tax class model into tax class service data object.
  *
  * @param TaxClassModel $taxClassModel
  * @return TaxClass
  */
 public function createTaxClassData(TaxClassModel $taxClassModel)
 {
     $this->taxClassBuilder->setClassId($taxClassModel->getId())->setClassName($taxClassModel->getClassName())->setClassType($taxClassModel->getClassType());
     return $this->taxClassBuilder->create();
 }