Skip to content

Commit

Permalink
Fix trackstatus API URL
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-novotny committed Apr 18, 2023
1 parent 2580ba7 commit 2032939
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Service/DefaultTrackService.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function trackPackagesLastStatuses(PackageCollection $packages): StatusCo
public function trackPackagesLastStatusesByIds(string $carrier, array $carrierIds): StatusCollection
{
$response = $this->client->call(
Version::V2V2,
Version::V2V1,
$carrier,
Method::TRACK_STATUS,
['carrier_ids' => $carrierIds],
Expand Down
6 changes: 3 additions & 3 deletions tests/Integration/Services/DefaultTrackServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public function testTrackPackagesLastStatuses(): void
{
$trackService = $this->newDefaultTrackService();

$packages = new DefaultPackageCollection(Carrier::PPL);
$packages->add(new DefaultPackage(Carrier::PPL, '1', '0001', '1234'));
$packages->add(new DefaultPackage(Carrier::PPL, '2', '0001', '1235'));
$packages = new DefaultPackageCollection(Carrier::DHL);
$packages->add(new DefaultPackage(Carrier::DHL, '1', '0001', '1234'));
$packages->add(new DefaultPackage(Carrier::DHL, '2', '0001', '1235'));

$statuses = $trackService->trackPackagesLastStatuses($packages);

Expand Down

0 comments on commit 2032939

Please sign in to comment.