-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #282 from whobutsb/feature/api-deprecations-query
Feature - Added API Deprecations Resource
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* @author Tareq Mahmood <tareqtms@yahoo.com> | ||
* @author Steve Barbera <whobutsb@gmail.com> | ||
* Created at 8/18/16 3:39 PM UTC+06:00 | ||
* | ||
* @see https://shopify.dev/api/admin-rest/2022-04/resources/deprecated-api-calls#get-deprecated-api-calls Shopify API Reference for API Deprecations | ||
*/ | ||
|
||
namespace PHPShopify; | ||
|
||
|
||
class ApiDeprecations extends ShopifyResource | ||
{ | ||
/** | ||
* @inheritDoc | ||
*/ | ||
protected $resourceKey = 'deprecated_api_calls'; | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public $readOnly = true; | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public $countEnabled = false; | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function pluralizeKey() | ||
{ | ||
//Only api deprecations, so no pluralize | ||
return 'deprecated_api_calls'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters