UNPKG

merchantapi

Version:
58 lines (51 loc) 1.05 kB
/* * (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 { Model } = require('./../abstract'); /** * ProductAttributeListTemplate data model. * @class */ class ProductAttributeListTemplate extends Model { /** * ProductAttributeListTemplate Constructor. * @param {Object} data * @returns {void} */ constructor(data = {}) { super(data); } /** * Get id. * @returns {number} */ getId() { return this.getField('id', 0); } /** * Get code. * @returns {string} */ getCode() { return this.getField('code'); } /** * Get prompt. * @returns {string} */ getPrompt() { return this.getField('prompt'); } /** * Get refcount. * @returns {number} */ getReferenceCount() { return this.getField('refcount', 0); } } module.exports.ProductAttributeListTemplate = ProductAttributeListTemplate;