UNPKG

@shopify/shopify-api

Version:

Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks

56 lines (52 loc) 1.94 kB
'use strict'; var base = require('../../base.js'); var types = require('../../../lib/types.js'); /*********************************************************************************************************************** * This file is auto-generated. If you have an issue, please create a GitHub issue. * ***********************************************************************************************************************/ class InventoryItem extends base.Base { static apiVersion = types.ApiVersion.January24; static hasOne = {}; static hasMany = {}; static paths = [ { "http_method": "get", "operation": "get", "ids": [], "path": "inventory_items.json" }, { "http_method": "get", "operation": "get", "ids": ["id"], "path": "inventory_items/<id>.json" }, { "http_method": "put", "operation": "put", "ids": ["id"], "path": "inventory_items/<id>.json" } ]; static resourceNames = [ { "singular": "inventory_item", "plural": "inventory_items" } ]; static async find({ session, id }) { const result = await this.baseFind({ session: session, requireIds: true, urlIds: { "id": id }, params: {}, }); return result.data ? result.data[0] : null; } static async all({ session, ids = null, limit = null, ...otherArgs }) { const response = await this.baseFind({ session: session, urlIds: {}, params: { "ids": ids, "limit": limit, ...otherArgs }, }); return response; } cost; country_code_of_origin; country_harmonized_system_codes; created_at; harmonized_system_code; id; province_code_of_origin; requires_shipping; sku; tracked; updated_at; } exports.InventoryItem = InventoryItem; //# sourceMappingURL=inventory_item.js.map