File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace PHPShopify ;
4
+
5
+ /**
6
+ * Class AccessScope
7
+ * @package PHPShopify
8
+ * @author Alexey Sinkevich
9
+ */
10
+ class AccessScope extends ShopifyResource
11
+ {
12
+ /**
13
+ * @inheritDoc
14
+ */
15
+ protected $ resourceKey = 'access_scope ' ;
16
+
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ public $ countEnabled = true ;
21
+
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ public $ readOnly = true ;
26
+
27
+ /**
28
+ * @param array $urlParams
29
+ * @param null $customAction
30
+ * @return string
31
+ */
32
+ public function generateUrl ($ urlParams = array (), $ customAction = null )
33
+ {
34
+ return ShopifySDK::$ config ['AdminUrl ' ] . 'oauth/ ' . $ this ->getResourcePath () . '.json ' ;
35
+ }
36
+ }
Original file line number Diff line number Diff line change 68
68
69
69
/**
70
70
* @property-read AbandonedCheckout $AbandonedCheckout
71
+ * @property-read AccessScope $AccessScope
71
72
* @property-read ApplicationCharge $ApplicationCharge
72
73
* @property-read Blog $Blog
73
74
* @property-read CarrierService $CarrierService
113
114
* @property-read GraphQL $GraphQL
114
115
*
115
116
* @method AbandonedCheckout AbandonedCheckout(integer $id = null)
117
+ * @method AccessScope AccessScope()
116
118
* @method ApplicationCharge ApplicationCharge(integer $id = null)
117
119
* @method Blog Blog(integer $id = null)
118
120
* @method CarrierService CarrierService(integer $id = null)
@@ -166,6 +168,7 @@ class ShopifySDK
166
168
*/
167
169
protected $ resources = array (
168
170
'AbandonedCheckout ' ,
171
+ 'AccessScope ' ,
169
172
'ApplicationCharge ' ,
170
173
'Blog ' ,
171
174
'CarrierService ' ,
You can’t perform that action at this time.
0 commit comments