shopify-api-node
Version:
Shopify API bindings for Node.js
26 lines (19 loc) • 517 B
JavaScript
const assign = require('lodash/assign');
const omit = require('lodash/omit');
const baseChild = require('../mixins/base-child');
/**
* Creates a Province instance.
*
* @param {Shopify} shopify Reference to the Shopify instance
* @constructor
* @public
*/
function Province(shopify) {
this.shopify = shopify;
this.parentName = 'countries';
this.name = 'provinces';
this.key = 'province';
}
assign(Province.prototype, omit(baseChild, ['create', 'delete']));
module.exports = Province;
;