Skip to content

Commit

Permalink
fix: retail_network_id null value found (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
wthijmen authored Feb 29, 2024
1 parent f60e843 commit 63113cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Adapter/ConsignmentAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private function setPickup(): self
'pickup_country' => $pickup['cc'] ?? null,
'pickup_location_code' => $pickup['location_code'] ?? null,
'pickup_location_name' => $pickup['location_name'] ?? null,
'pickup_network_id' => $pickup['retail_network_id'] ?? null,
'pickup_network_id' => $pickup['retail_network_id'] ?? '',
'pickup_number' => $pickup['number'] ?? null,
'pickup_postal_code' => $pickup['postal_code'] ?? null,
'pickup_street' => $pickup['street'] ?? null,
Expand Down
2 changes: 1 addition & 1 deletion src/Adapter/DeliveryOptions/PickupLocationV3Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function __construct(array $data)
{
$this->location_name = $data["location_name"];
$this->location_code = $data["location_code"];
$this->retail_network_id = $data["retail_network_id"] ?? null;
$this->retail_network_id = $data["retail_network_id"] ?? '';
$this->street = $data["street"];
$this->number = $data["number"];
$this->postal_code = $data["postal_code"];
Expand Down

0 comments on commit 63113cc

Please sign in to comment.