UNPKG

@shopify/shopify-api

Version:

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

52 lines (48 loc) 1.8 kB
'use strict'; var base = require('../../base.js'); var types = require('../../../lib/types.js'); var currency = require('./currency.js'); /*********************************************************************************************************************** * This file is auto-generated. If you have an issue, please create a GitHub issue. * ***********************************************************************************************************************/ class ApplicationCredit extends base.Base { static apiVersion = types.ApiVersion.April24; static hasOne = { "currency": currency.Currency }; static hasMany = {}; static paths = [ { "http_method": "get", "operation": "get", "ids": [], "path": "application_credits.json" }, { "http_method": "get", "operation": "get", "ids": ["id"], "path": "application_credits/<id>.json" } ]; static resourceNames = [ { "singular": "application_credit", "plural": "application_credits" } ]; static async find({ session, id, fields = null }) { const result = await this.baseFind({ session: session, requireIds: true, urlIds: { "id": id }, params: { "fields": fields }, }); return result.data ? result.data[0] : null; } static async all({ session, fields = null, ...otherArgs }) { const response = await this.baseFind({ session: session, urlIds: {}, params: { "fields": fields, ...otherArgs }, }); return response; } amount; currency; description; id; test; } exports.ApplicationCredit = ApplicationCredit; //# sourceMappingURL=application_credit.js.map