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 6868
6969/**
7070 * @property-read AbandonedCheckout $AbandonedCheckout
71+ * @property-read AccessScope $AccessScope
7172 * @property-read ApplicationCharge $ApplicationCharge
7273 * @property-read Blog $Blog
7374 * @property-read CarrierService $CarrierService
113114 * @property-read GraphQL $GraphQL
114115 *
115116 * @method AbandonedCheckout AbandonedCheckout(integer $id = null)
117+ * @method AccessScope AccessScope()
116118 * @method ApplicationCharge ApplicationCharge(integer $id = null)
117119 * @method Blog Blog(integer $id = null)
118120 * @method CarrierService CarrierService(integer $id = null)
@@ -166,6 +168,7 @@ class ShopifySDK
166168 */
167169 protected $ resources = array (
168170 'AbandonedCheckout ' ,
171+ 'AccessScope ' ,
169172 'ApplicationCharge ' ,
170173 'Blog ' ,
171174 'CarrierService ' ,
You can’t perform that action at this time.
0 commit comments