File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Created by PhpStorm.
4
+ * @author Tareq Mahmood <[email protected] >
5
+ * @author Steve Barbera <[email protected] >
6
+ * Created at 8/18/16 3:39 PM UTC+06:00
7
+ *
8
+ * @see https://shopify.dev/api/admin-rest/2022-04/resources/deprecated-api-calls#get-deprecated-api-calls Shopify API Reference for API Deprecations
9
+ */
10
+
11
+ namespace PHPShopify ;
12
+
13
+
14
+ class ApiDeprecations extends ShopifyResource
15
+ {
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ protected $ resourceKey = 'deprecated_api_calls ' ;
20
+
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ public $ readOnly = true ;
25
+
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ public $ countEnabled = false ;
30
+
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ public function pluralizeKey ()
35
+ {
36
+ //Only api deprecations, so no pluralize
37
+ return 'deprecated_api_calls ' ;
38
+ }
39
+ }
Original file line number Diff line number Diff line change 69
69
/**
70
70
* @property-read AbandonedCheckout $AbandonedCheckout
71
71
* @property-read AccessScope $AccessScope
72
+ * @property-read ApiDeprecations $ApiDeprecations
72
73
* @property-read ApplicationCharge $ApplicationCharge
73
74
* @property-read Blog $Blog
74
75
* @property-read CarrierService $CarrierService
116
117
*
117
118
* @method AbandonedCheckout AbandonedCheckout(integer $id = null)
118
119
* @method AccessScope AccessScope()
120
+ * @method ApiDeprecations ApiDeprecations()
119
121
* @method ApplicationCharge ApplicationCharge(integer $id = null)
120
122
* @method Blog Blog(integer $id = null)
121
123
* @method CarrierService CarrierService(integer $id = null)
@@ -172,6 +174,7 @@ class ShopifySDK
172
174
protected $ resources = array (
173
175
'AbandonedCheckout ' ,
174
176
'AccessScope ' ,
177
+ 'ApiDeprecations ' ,
175
178
'ApplicationCharge ' ,
176
179
'Blog ' ,
177
180
'CarrierService ' ,
You can’t perform that action at this time.
0 commit comments