Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ Some resources are available directly, some resources are only available through
> Use the resources only by listed resource map. Trying to get a resource directly which is only available through parent resource may end up with errors.

- [AbandonedCheckout](https://help.shopify.com/api/reference/abandoned_checkouts)
- [ApiDeprecations](https://shopify.dev/api/admin-rest/2022-04/resources/deprecated-api-calls#get-deprecated-api-calls)
- [ApplicationCharge](https://help.shopify.com/api/reference/applicationcharge)
- [Blog](https://help.shopify.com/api/reference/blog/)
- Blog -> [Article](https://help.shopify.com/api/reference/article/)
Expand Down
39 changes: 39 additions & 0 deletions lib/ApiDeprecations.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php
/**
* Created by PhpStorm.
* @author Tareq Mahmood <[email protected]>
* @author Steve Barbera <[email protected]>
* 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';
}
}
3 changes: 3 additions & 0 deletions lib/ShopifySDK.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
/**
* @property-read AbandonedCheckout $AbandonedCheckout
* @property-read AccessScope $AccessScope
* @property-read ApiDeprecations $ApiDeprecations
* @property-read ApplicationCharge $ApplicationCharge
* @property-read Blog $Blog
* @property-read CarrierService $CarrierService
Expand Down Expand Up @@ -116,6 +117,7 @@
*
* @method AbandonedCheckout AbandonedCheckout(integer $id = null)
* @method AccessScope AccessScope()
* @method ApiDeprecations ApiDeprecations()
* @method ApplicationCharge ApplicationCharge(integer $id = null)
* @method Blog Blog(integer $id = null)
* @method CarrierService CarrierService(integer $id = null)
Expand Down Expand Up @@ -172,6 +174,7 @@ class ShopifySDK
protected $resources = array(
'AbandonedCheckout',
'AccessScope',
'ApiDeprecations',
'ApplicationCharge',
'Blog',
'CarrierService',
Expand Down