Skip to content

Commit

Permalink
fix: remove instabox (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
wthijmen authored Apr 5, 2024
1 parent 563f388 commit 20b74e6
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 155 deletions.
3 changes: 1 addition & 2 deletions src/Helper/MyParcelCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
use MyParcelNL\Sdk\src\Exception\ApiException;
use MyParcelNL\Sdk\src\Exception\MissingFieldException;
use MyParcelNL\Sdk\src\Factory\ConsignmentFactory;
use MyParcelNL\Sdk\src\Model\Carrier\CarrierInstabox;
use MyParcelNL\Sdk\src\Model\Carrier\CarrierUPS;
use MyParcelNL\Sdk\src\Model\Consignment\AbstractConsignment;
use MyParcelNL\Sdk\src\Model\Consignment\BaseConsignment;
Expand Down Expand Up @@ -830,7 +829,7 @@ private function getNewCollectionFromResult($result): self
$consignment = ConsignmentFactory::createByCarrierId($shipment['carrier_id'])->setApiKey($apiKey);

//TODO: MY-32524 Make AbstractConsignmentAdapter for carrier specific exceptions
if (CarrierInstabox::ID === $shipment['carrier_id'] || CarrierUPS::ID === $shipment['carrier_id']) {
if (CarrierUPS::ID === $shipment['carrier_id']) {
$shipment['barcode'] = $shipment['barcode'] ?: $shipment['external_identifier'];
}

Expand Down
40 changes: 0 additions & 40 deletions src/Model/Carrier/CarrierInstabox.php

This file was deleted.

82 changes: 0 additions & 82 deletions src/Model/Consignment/InstaboxConsignment.php

This file was deleted.

29 changes: 0 additions & 29 deletions src/Validator/Consignment/InstaboxConsignmentValidator.php

This file was deleted.

2 changes: 1 addition & 1 deletion test/Model/Fulfilment/OrderCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class OrderCollectionTest extends TestCase
'cc' => 'NL',
'city' => 'Leiden',
'location_code' => 'ed14eb91-7374-4dcc-a41d-34c0d3e45c01',
'location_name' => 'Instabox',
'location_name' => 'Dropoff',
'number' => '2',
'number_suffix' => 'H',
'postal_code' => '2321 TD',
Expand Down
1 change: 0 additions & 1 deletion test/Services/CarrierConfigurationServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace MyParcelNL\Sdk\Test\Services;

use MyParcelNL\Sdk\src\Model\Account\Shop;
use MyParcelNL\Sdk\src\Model\Carrier\CarrierInstabox;
use MyParcelNL\Sdk\src\Services\Web\AccountWebService;
use MyParcelNL\Sdk\src\Services\Web\CarrierConfigurationWebService;
use MyParcelNL\Sdk\Test\Bootstrap\TestCase;
Expand Down

0 comments on commit 20b74e6

Please sign in to comment.