for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ShopifyClient\Resource;
use ShopifyClient\Action\Action;
use ShopifyClient\Request;
/**
* @method create(float $parentId, array $parameters = [])
* @method get(float $parentId, float $childId, array $parameters = [])
* @method all(float $parentId, array $parameters = [])
* @method count(float $parentId)
* @method update(float $parentId, float $childId, array $parameters = [])
* @method delete(float $parentId, float $childId)
*/
class OrderMetaField extends MetaField implements Resource
{
* OrderMetaField constructor.
* @param Request $request
public function __construct(Request $request)
parent::__construct($request);
$this->actions->add(
'create',
new Action(
Request::METHOD_POST,
'orders/%s/metafields.json',
'metafield',
'metafield'
)
);
'get',
Request::METHOD_GET,
'orders/%s/metafields/%s.json',
'all',
'metafields',
'metafields'
'count',
'orders/%s/metafields/count.json',
'count'
'update',
Request::METHOD_PUT,
'delete',
Request::METHOD_DELETE,
'orders/%s/metafields/%s.json'
}