diff --git a/lib/CancellationRequest.php b/lib/CancellationRequest.php new file mode 100644 index 0000000..9d6dc69 --- /dev/null +++ b/lib/CancellationRequest.php @@ -0,0 +1,44 @@ + Child Resources + * -------------------------------------------------------------------------- + * + * -------------------------------------------------------------------------- + * CancellationRequest -> Custom actions + * -------------------------------------------------------------------------- + * @method array accept() Accept a fulfilment order + * @method array reject() Rejects a fulfillment order + */ +class CancellationRequest extends ShopifyResource +{ + /** + * @inheritDoc + */ + protected $resourceKey = 'cancellation_request'; + + /** + * @inheritDoc + */ + public $countEnabled = false; + + /** + * @inheritDoc + */ + protected $customPostActions = array( + 'accept', + 'reject' + ); + + protected function pluralizeKey() + { + return $this->resourceKey; + } +}