UNPKG

merchantapi

Version:
34 lines (30 loc) 676 B
/* * (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'); /** * CouponPriceGroup data model. * @class */ class CouponPriceGroup extends PriceGroup { /** * CouponPriceGroup Constructor. * @param {Object} data * @returns {void} */ constructor(data = {}) { super(data); } /** * Get assigned. * @returns {boolean} */ getAssigned() { return this.getField('assigned', false); } } module.exports.CouponPriceGroup = CouponPriceGroup;