Skip to content

Commit 3f9cfbf

Browse files
committed
Rename ShopifyAPI to ShopifyResource
1 parent 0714069 commit 3f9cfbf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+108
-108
lines changed

lib/AbandonedCheckout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace PHPShopify;
1111

1212

13-
class AbandonedCheckout extends ShopifyAPI
13+
class AbandonedCheckout extends ShopifyResource
1414
{
1515
/**
1616
* @inheritDoc

lib/ApplicationCharge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace PHPShopify;
1111

1212

13-
class ApplicationCharge extends ShopifyAPI
13+
class ApplicationCharge extends ShopifyResource
1414
{
1515
/**
1616
* @inheritDoc

lib/Article.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
* --------------------------------------------------------------------------
1515
* Article -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyAPI $Event
17+
* @property-read ShopifyResource $Event
1818
*
19-
* @method ShopifyAPI Event(integer $id = null)
19+
* @method ShopifyResource Event(integer $id = null)
2020
*
2121
*/
22-
class Article extends ShopifyAPI
22+
class Article extends ShopifyResource
2323
{
2424
/**
2525
* @inheritDoc

lib/Asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace PHPShopify;
1111

1212

13-
class Asset extends ShopifyAPI
13+
class Asset extends ShopifyResource
1414
{
1515
/**
1616
* @inheritDoc

lib/Blog.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
* --------------------------------------------------------------------------
1414
* Blog -> Child Resources
1515
* --------------------------------------------------------------------------
16-
* @property-read ShopifyAPI $Article
17-
* @property-read ShopifyAPI $Event
18-
* @property-read ShopifyAPI $Metafield
16+
* @property-read ShopifyResource $Article
17+
* @property-read ShopifyResource $Event
18+
* @property-read ShopifyResource $Metafield
1919
*
20-
* @method ShopifyAPI Article(integer $id = null)
21-
* @method ShopifyAPI Event(integer $id = null)
22-
* @method ShopifyAPI Metafield(integer $id = null)
20+
* @method ShopifyResource Article(integer $id = null)
21+
* @method ShopifyResource Event(integer $id = null)
22+
* @method ShopifyResource Metafield(integer $id = null)
2323
*
2424
*/
25-
class Blog extends ShopifyAPI
25+
class Blog extends ShopifyResource
2626
{
2727
/**
2828
* @inheritDoc

lib/CarrierService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace PHPShopify;
1111

1212

13-
class CarrierService extends ShopifyAPI
13+
class CarrierService extends ShopifyResource
1414
{
1515
/**
1616
* @inheritDoc

lib/Collect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace PHPShopify;
1111

1212

13-
class Collect extends ShopifyAPI
13+
class Collect extends ShopifyResource
1414
{
1515
/**
1616
* @inheritDoc

lib/Comment.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
* --------------------------------------------------------------------------
1616
* Comment -> Child Resources
1717
* --------------------------------------------------------------------------
18-
* @property-read ShopifyAPI $Event
18+
* @property-read ShopifyResource $Event
1919
*
20-
* @method ShopifyAPI Event(integer $id = null)
20+
* @method ShopifyResource Event(integer $id = null)
2121
*
2222
* --------------------------------------------------------------------------
2323
* Comment -> Custom actions
@@ -29,7 +29,7 @@
2929
* @method array restore() Restore a Comment
3030
*
3131
*/
32-
class Comment extends ShopifyAPI
32+
class Comment extends ShopifyResource
3333
{
3434
/**
3535
* @inheritDoc

lib/Country.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
* --------------------------------------------------------------------------
1515
* Country -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyAPI $Province
17+
* @property-read ShopifyResource $Province
1818
*
19-
* @method ShopifyAPI Province(integer $id = null)
19+
* @method ShopifyResource Province(integer $id = null)
2020
*
2121
*/
22-
class Country extends ShopifyAPI
22+
class Country extends ShopifyResource
2323
{
2424
/**
2525
* @inheritDoc

lib/CustomCollection.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
* --------------------------------------------------------------------------
1515
* CustomCollection -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyAPI $Event
18-
* @property-read ShopifyAPI $Metafield
17+
* @property-read ShopifyResource $Event
18+
* @property-read ShopifyResource $Metafield
1919
*
20-
* @method ShopifyAPI Event(integer $id = null)
21-
* @method ShopifyAPI Metafield(integer $id = null)
20+
* @method ShopifyResource Event(integer $id = null)
21+
* @method ShopifyResource Metafield(integer $id = null)
2222
*
2323
*/
24-
class CustomCollection extends ShopifyAPI
24+
class CustomCollection extends ShopifyResource
2525
{
2626
/**
2727
* @inheritDoc

lib/Customer.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
* --------------------------------------------------------------------------
1515
* Customer -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyAPI $Address
18-
* @property-read ShopifyAPI $Metafield
17+
* @property-read ShopifyResource $Address
18+
* @property-read ShopifyResource $Metafield
1919
*
20-
* @method ShopifyAPI Address(integer $id = null)
21-
* @method ShopifyAPI Metafield(integer $id = null)
20+
* @method ShopifyResource Address(integer $id = null)
21+
* @method ShopifyResource Metafield(integer $id = null)
2222
* --------------------------------------------------------------------------
2323
* Customer -> Custom actions
2424
* --------------------------------------------------------------------------
2525
* @method array search() Search for customers matching supplied query
2626
*/
27-
class Customer extends ShopifyAPI
27+
class Customer extends ShopifyResource
2828
{
2929
/**
3030
* @inheritDoc

lib/CustomerAddress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @method array set($params) Perform bulk operations against a number of addresses
1919
*
2020
*/
21-
class CustomerAddress extends ShopifyAPI
21+
class CustomerAddress extends ShopifyResource
2222
{
2323
/**
2424
* @inheritDoc

lib/CustomerSavedSearch.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
* --------------------------------------------------------------------------
1515
* CustomerSavedSearch -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyAPI $Customer
17+
* @property-read ShopifyResource $Customer
1818
*
19-
* @method ShopifyAPI Customer(integer $id = null)
19+
* @method ShopifyResource Customer(integer $id = null)
2020
*
2121
*/
22-
class CustomerSavedSearch extends ShopifyAPI
22+
class CustomerSavedSearch extends ShopifyResource
2323
{
2424
/**
2525
* @inheritDoc

lib/Discount.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @method array disable() Disable a discount
1919
*
2020
*/
21-
class Discount extends ShopifyAPI
21+
class Discount extends ShopifyResource
2222
{
2323
/**
2424
* @inheritDoc

lib/Event.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace PHPShopify;
1111

1212

13-
class Event extends ShopifyAPI
13+
class Event extends ShopifyResource
1414
{
1515
/**
1616
* @inheritDoc

lib/Fulfillment.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* --------------------------------------------------------------------------
1515
* Fulfillment -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyAPI $Event
17+
* @property-read ShopifyResource $Event
1818
*
19-
* @method ShopifyAPI Event(integer $id = null)
19+
* @method ShopifyResource Event(integer $id = null)
2020
*
2121
* --------------------------------------------------------------------------
2222
* Fulfillment -> Custom actions
@@ -26,7 +26,7 @@
2626
* @method array cancel() Cancel a fulfillment
2727
*
2828
*/
29-
class Fulfillment extends ShopifyAPI
29+
class Fulfillment extends ShopifyResource
3030
{
3131
/**
3232
* @inheritDoc

lib/FulfillmentEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace PHPShopify;
1111

1212

13-
class FulfillmentEvent extends ShopifyAPI
13+
class FulfillmentEvent extends ShopifyResource
1414
{
1515
/**
1616
* @inheritDoc

lib/FulfillmentService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace PHPShopify;
1111

1212

13-
class FulfillmentService extends ShopifyAPI
13+
class FulfillmentService extends ShopifyResource
1414
{
1515
/**
1616
* @inheritDoc

lib/GiftCard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @method array search() Search for gift cards matching supplied query
1919
*
2020
*/
21-
class GiftCard extends ShopifyAPI
21+
class GiftCard extends ShopifyResource
2222
{
2323
/**
2424
* @inheritDoc

lib/Location.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace PHPShopify;
1111

1212

13-
class Location extends ShopifyAPI
13+
class Location extends ShopifyResource
1414
{
1515
/**
1616
* @inheritDoc

lib/Metafield.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace PHPShopify;
1111

1212

13-
class Metafield extends ShopifyAPI
13+
class Metafield extends ShopifyResource
1414
{
1515
/**
1616
* @inheritDoc

lib/Multipass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
use PHPShopify\Exception\ApiException;
1414

15-
class Multipass extends ShopifyAPI
15+
class Multipass extends ShopifyResource
1616
{
1717

1818
/**

lib/Order.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@
1515
* --------------------------------------------------------------------------
1616
* Order -> Child Resources
1717
* --------------------------------------------------------------------------
18-
* @property-read ShopifyAPI $Fulfillment
19-
* @property-read ShopifyAPI $Risk
20-
* @property-read ShopifyAPI $Refund
21-
* @property-read ShopifyAPI $Transaction
22-
* @property-read ShopifyAPI $Event
23-
* @property-read ShopifyAPI $Metafield
18+
* @property-read ShopifyResource $Fulfillment
19+
* @property-read ShopifyResource $Risk
20+
* @property-read ShopifyResource $Refund
21+
* @property-read ShopifyResource $Transaction
22+
* @property-read ShopifyResource $Event
23+
* @property-read ShopifyResource $Metafield
2424
*
25-
* @method ShopifyAPI Fulfillment(integer $id = null)
26-
* @method ShopifyAPI Risk(integer $id = null)
27-
* @method ShopifyAPI Refund(integer $id = null)
28-
* @method ShopifyAPI Transaction(integer $id = null)
29-
* @method ShopifyAPI Event(integer $id = null)
30-
* @method ShopifyAPI Metafield(integer $id = null)
25+
* @method ShopifyResource Fulfillment(integer $id = null)
26+
* @method ShopifyResource Risk(integer $id = null)
27+
* @method ShopifyResource Refund(integer $id = null)
28+
* @method ShopifyResource Transaction(integer $id = null)
29+
* @method ShopifyResource Event(integer $id = null)
30+
* @method ShopifyResource Metafield(integer $id = null)
3131
*
3232
*/
33-
class Order extends ShopifyAPI
33+
class Order extends ShopifyResource
3434
{
3535
/**
3636
* @inheritDoc

lib/OrderRisk.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace PHPShopify;
1111

1212

13-
class OrderRisk extends ShopifyAPI
13+
class OrderRisk extends ShopifyResource
1414
{
1515
/**
1616
* @inheritDoc

lib/Page.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
* --------------------------------------------------------------------------
1515
* Page -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyAPI $Event
18-
* @property-read ShopifyAPI $Metafield
17+
* @property-read ShopifyResource $Event
18+
* @property-read ShopifyResource $Metafield
1919
*
20-
* @method ShopifyAPI Event(integer $id = null)
21-
* @method ShopifyAPI Metafield(integer $id = null)
20+
* @method ShopifyResource Event(integer $id = null)
21+
* @method ShopifyResource Metafield(integer $id = null)
2222
*
2323
*/
24-
class Page extends ShopifyAPI
24+
class Page extends ShopifyResource
2525
{
2626
/**
2727
* @inheritDoc

lib/Policy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace PHPShopify;
1111

1212

13-
class Policy extends ShopifyAPI
13+
class Policy extends ShopifyResource
1414
{
1515
/**
1616
* @inheritDoc

lib/Product.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@
1414
* --------------------------------------------------------------------------
1515
* Product -> Child Resources
1616
* --------------------------------------------------------------------------
17-
* @property-read ShopifyAPI $Image
18-
* @property-read ShopifyAPI $Variant
19-
* @property-read ShopifyAPI $Metafield
20-
* @property-read ShopifyAPI $Event
17+
* @property-read ShopifyResource $Image
18+
* @property-read ShopifyResource $Variant
19+
* @property-read ShopifyResource $Metafield
20+
* @property-read ShopifyResource $Event
2121
*
22-
* @method ShopifyAPI Image(integer $id = null)
23-
* @method ShopifyAPI Variant(integer $id = null)
24-
* @method ShopifyAPI Metafield(integer $id = null)
25-
* @method ShopifyAPI Event(integer $id = null)
22+
* @method ShopifyResource Image(integer $id = null)
23+
* @method ShopifyResource Variant(integer $id = null)
24+
* @method ShopifyResource Metafield(integer $id = null)
25+
* @method ShopifyResource Event(integer $id = null)
2626
*
2727
*/
28-
class Product extends ShopifyAPI
28+
class Product extends ShopifyResource
2929
{
3030
/**
3131
* @inheritDoc

lib/ProductImage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace PHPShopify;
1111

1212

13-
class ProductImage extends ShopifyAPI
13+
class ProductImage extends ShopifyResource
1414
{
1515
/**
1616
* @inheritDoc

0 commit comments

Comments
 (0)