UNPKG

merchantapi

Version:
42 lines (37 loc) 807 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 { Model } = require('./../abstract'); /** * ProductShippingMethod data model. * @class */ class ProductShippingMethod extends Model { /** * ProductShippingMethod Constructor. * @param {Object} data * @returns {void} */ constructor(data = {}) { super(data); } /** * Get mod_code. * @returns {string} */ getModuleCode() { return this.getField('mod_code'); } /** * Get meth_code. * @returns {string} */ getMethodCode() { return this.getField('meth_code'); } } module.exports.ProductShippingMethod = ProductShippingMethod;