UNPKG

merchantapi

Version:
58 lines (51 loc) 1.09 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'); /** * ProductVariantDimension data model. * @class */ class ProductVariantDimension extends Model { /** * ProductVariantDimension Constructor. * @param {Object} data * @returns {void} */ constructor(data = {}) { super(data); } /** * Get attr_id. * @returns {number} */ getAttributeId() { return this.getField('attr_id', 0); } /** * Get attmpat_id. * @returns {number} */ getAttributeTemplateAttributeId() { return this.getField('attmpat_id', 0); } /** * Get option_id. * @returns {number} */ getOptionId() { return this.getField('option_id', 0); } /** * Get option_code. * @returns {string} */ getOptionCode() { return this.getField('option_code'); } } module.exports.ProductVariantDimension = ProductVariantDimension;