/** * @author EB * @return \PayBreak\Sdk\Entities\Application\CustomerEntity */ private function getCustomerEntity() { return \PayBreak\Sdk\Entities\Application\CustomerEntity::make(['title' => 'Mr', 'first_name' => 'Test', 'last_name' => 'Tester', 'email_address' => '*****@*****.**', 'phone_home' => 03333333333, 'phone_mobile' => 07777777777, 'postcode' => 'TE55TP']); }
/** * @author WN * @param CustomerEntity $customerEntity * @param Application $application */ private function mapCustomer(Application $application, CustomerEntity $customerEntity = null) { if ($customerEntity !== null) { $application->ext_customer_title = $customerEntity->getTitle(); $application->ext_customer_first_name = $customerEntity->getFirstName(); $application->ext_customer_last_name = $customerEntity->getLastName(); $application->ext_customer_email_address = $customerEntity->getEmailAddress(); $application->ext_customer_phone_home = $customerEntity->getPhoneHome(); $application->ext_customer_phone_mobile = $customerEntity->getPhoneMobile(); $application->ext_customer_postcode = $customerEntity->getPostcode(); } }