merchantapi
Version:
Miva Merchant JSON API SDK
34 lines (30 loc) • 686 B
JavaScript
/*
* (c) Miva Inc <https://www.miva.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
const util = require('./../util');
const { PriceGroup } = require('./PriceGroup');
/**
* CustomerPriceGroup data model.
* @class
*/
class CustomerPriceGroup extends PriceGroup {
/**
* CustomerPriceGroup Constructor.
* @param {Object} data
* @returns {void}
*/
constructor(data = {}) {
super(data);
}
/**
* Get assigned.
* @returns {boolean}
*/
getAssigned() {
return this.getField('assigned', false);
}
}
module.exports.CustomerPriceGroup = CustomerPriceGroup;