shopify-api-node
Version:
Shopify API bindings for Node.js
24 lines (17 loc) • 445 B
JavaScript
const assign = require('lodash/assign');
const pick = require('lodash/pick');
const base = require('../mixins/base');
/**
* Creates a Policy instance.
*
* @param {Shopify} shopify Reference to the Shopify instance
* @constructor
* @public
*/
function Policy(shopify) {
this.shopify = shopify;
this.name = this.key = 'policies';
}
assign(Policy.prototype, pick(base, ['list', 'buildUrl']));
module.exports = Policy;
;