Skip to content

Commit

Permalink
Merge pull request #109 from oojoe/master
Browse files Browse the repository at this point in the history
Added Shipping Zones to the Service Description
  • Loading branch information
bakura10 authored Sep 1, 2020
2 parents 32e323e + d7d85ea commit b5e1229
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/ServiceDescription/Shopify-v1.php
Original file line number Diff line number Diff line change
Expand Up @@ -4980,6 +4980,33 @@
]
],

/**
* --------------------------------------------------------------------------------
* SHIPPING ZONE RELATED METHODS
*
* DOC: https://shopify.dev/docs/admin-api/rest/reference/store-properties/shippingzone
* --------------------------------------------------------------------------------
*/

'GetShippingZones' => [
'httpMethod' => 'GET',
'uri' => 'admin/api/{version}/shipping_zones.json',
'responseModel' => 'GenericModel',
'summary' => 'Retrieve a list of all shipping zones',
'data' => ['root_key' => 'shipping_zones'],
'parameters' => [
'version' => [
'description' => 'API version',
'location' => 'uri',
'type' => 'string',
'required' => true
],
],
'additionalParameters' => [
'location' => 'query',
],
],

/**
* --------------------------------------------------------------------------------
* TRANSACTION RELATED METHODS
Expand Down
4 changes: 4 additions & 0 deletions src/ShopifyClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@
* @method array updateScriptTag(array $args = []) {@command Shopify UpdateScriptTag}
* @method array deleteScriptTag(array $args = []) {@command Shopify DeleteScriptTag}
*
* SHIPPING ZONE RELATED METHODS:
*
* @method array getShippingZones(array $args = []) {@command Shopify GetShippingZones}
*
* TRANSACTION RELATED METHODS:
*
* @method array getTransactions(array $args = []) {@command Shopify GetTransactions}
Expand Down

0 comments on commit b5e1229

Please sign in to comment.