From 11ed17434df32805f72d444baa026acee55965a2 Mon Sep 17 00:00:00 2001 From: ipsoftware Date: Tue, 10 Dec 2019 13:22:20 +0100 Subject: [PATCH] Fix first and last name for api --- src/Request/SubscribersPostRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Request/SubscribersPostRequest.php b/src/Request/SubscribersPostRequest.php index d45607c..189455f 100644 --- a/src/Request/SubscribersPostRequest.php +++ b/src/Request/SubscribersPostRequest.php @@ -157,11 +157,11 @@ private function writeSubscriberDataToXml(\XMLWriter $xmlWriter, SubscriberInfo $xmlWriter->writeElement('Phone', $subscriberInfo->getPhone()); } - if (!empty($subscriberInfo->getFirstName())) { + if (!empty($subscriberInfo->getFirstname())) { $xmlWriter->writeElement('FirstName', $subscriberInfo->getFirstName()); } - if (!empty($subscriberInfo->getLastName())) { + if (!empty($subscriberInfo->getLastname())) { $xmlWriter->writeElement('LastName', $subscriberInfo->getLastName()); }