Skip to content

Commit

Permalink
Throw exceptions when trying to call deprecated APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
jlevers committed Jun 19, 2024
1 parent e3117e9 commit ff8298f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Seller/SellerConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public function aPlusContentV20201101(): APlusContentV20201101\Api
return new APlusContentV20201101\Api($this);
}

public function authorizationV1(): AuthorizationV1\Api
public function authorizationV1()
{
return new AuthorizationV1\Api($this);
throw new Exception('The Authorization API is deprecated!');
}

public function catalogItemsV20220401(): CatalogItemsV20220401\Api
Expand Down Expand Up @@ -74,9 +74,9 @@ public function fbaOutboundV20200701(): FBAOutboundV20200701\Api
return new FBAOutboundV20200701\Api($this);
}

public function fbaSmallAndLightV1(): FBASmallAndLightV1\Api
public function fbaSmallAndLightV1()
{
return new FBASmallAndLightV1\Api($this);
throw new Exception('The FBA Small and Light API is deprecated!');
}

public function feedsV20210630(): FeedsV20210630\Api
Expand Down

0 comments on commit ff8298f

Please sign in to comment.