/** * @param OrderInterface $order * @param $propertyName * @param $value */ private function copyValue(OrderInterface $order, $propertyName, $value) { switch ($propertyName) { case TransformerProperties::GENERAL_CUSTOMER_IP: $order->setCustomerIp($value); break; case TransformerProperties::GENERAL_ORDER_ID: $order->setOrderId($value); break; case TransformerProperties::GENERAL_ADDITIONAL_DESC: $order->setAdditionalDescription($value); break; case TransformerProperties::GENERAL_CURRENCY_CODE: $order->setCurrencyCode($value); break; case TransformerProperties::GENERAL_DESCRIPTION: $order->setDescription($value); break; case TransformerProperties::GENERAL_MERCHANT_POS_ID: $order->setMerchantPosId($value); break; case TransformerProperties::GENERAL_SIGNATURE: $order->setSignature($value); break; case TransformerProperties::GENERAL_TOTAL_AMOUNT: $order->setTotalAmount($value); break; default: } }