UNPKG

@gameroom/cli

Version:

A command line tool for Gameroom

35 lines (32 loc) 1.05 kB
module.exports = class Variant { constructor(data) { if (!data) data = {} this.barcode = data.barcode this.compare_at_price = data.compare_at_price this.created_at = data.created_at this.fulfillment_service = data.fulfillment_service this.grams = data.grams this.id = data.id this.image_id = data.image_id this.inventory_item_id = data.inventory_item_id this.inventory_management = data.inventory_management this.inventory_policy = data.inventory_policy // inventory_quality read only this.option1 = data.option1 this.option2 = data.option2 this.option3 = data.option3 this.presentment_prices = data.presentment_prices // position read only this.price = data.price this.product_id = data.product_id this.sku = data.sku this.taxable = data.taxable this.tax_code = data.tax_code this.title = data.title this.updated_at = data.updated_at this.weight = data.weight this.weight_unit = data.weight_unit } static fromUnit(unit_extendeds) { } }