Skip to content

Commit

Permalink
changed mobile to phone for returnee & onload address
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurimas Baubkus committed Jul 31, 2018
1 parent 3be9c75 commit b0c2f1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand All @@ -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());
}
Expand Down

0 comments on commit b0c2f1c

Please sign in to comment.