From b0c2f1c8d47d646df6e96b16f5bbc96b82a2dc53 Mon Sep 17 00:00:00 2001 From: Aurimas Baubkus Date: Tue, 31 Jul 2018 11:11:08 +0300 Subject: [PATCH] changed mobile to phone for returnee & onload address --- src/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index 94a7b1f..799a187 100644 --- a/src/Client.php +++ b/src/Client.php @@ -139,7 +139,7 @@ public function createShipment(Parcel $parcel): stdClass $writer->startElement('returnAddressee'); $returnAddress = $parcel->getReturnee(); $writer->writeElement('person_name', $returnAddress->getName()); - $writer->writeElement('mobile', $returnAddress->getPhone()); + $writer->writeElement('phone', $returnAddress->getPhone()); if ($returnAddress->hasEmail()) { $writer->writeElement('email', $returnAddress->getEmail()); } @@ -155,7 +155,7 @@ public function createShipment(Parcel $parcel): stdClass $writer->startElement('onloadAddressee'); $sender = $parcel->getSender(); $writer->writeElement('person_name', $sender->getName()); - $writer->writeElement('mobile', $sender->getPhone()); + $writer->writeElement('phone', $sender->getPhone()); if ($sender->hasEmail()) { $writer->writeElement('email', $sender->getEmail()); }