-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #278 from jeroendelau/master
add support for Order()->FulfillmentOrder and FulfillmentRequests
- Loading branch information
Showing
4 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* @author Tareq Mahmood <tareqtms@yahoo.com> | ||
* Created at 8/19/16 5:28 PM UTC+06:00 | ||
* | ||
* @see https://help.shopify.com/api/reference/fulfillmentservice Shopify API Reference for FulfillmentService | ||
*/ | ||
|
||
namespace PHPShopify; | ||
|
||
/** | ||
* -------------------------------------------------------------------------- | ||
* FulfillmentRequest -> Child Resources | ||
* -------------------------------------------------------------------------- | ||
* | ||
* -------------------------------------------------------------------------- | ||
* FulfillmentRequest -> Custom actions | ||
* -------------------------------------------------------------------------- | ||
* @method array accept() Accept a fulfilment order | ||
* @method array reject() Rejects a fulfillment order | ||
*/ | ||
class FulfillmentRequest extends ShopifyResource | ||
{ | ||
/** | ||
* @inheritDoc | ||
*/ | ||
protected $resourceKey = 'fulfillment_request'; | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public $countEnabled = false; | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
protected $customPostActions = array( | ||
'accept', | ||
'reject' | ||
); | ||
|
||
protected function pluralizeKey() | ||
{ | ||
return $this->resourceKey; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters