@shopify/shopify-api
Version:
Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks
1 lines • 2.3 kB
Source Map (JSON)
{"version":3,"file":"balance.mjs","sources":["../../../../../../../rest/admin/2023-07/balance.ts"],"sourcesContent":["/***********************************************************************************************************************\n* This file is auto-generated. If you have an issue, please create a GitHub issue. *\n***********************************************************************************************************************/\n\nimport {Base, FindAllResponse} from '../../base';\nimport {ResourcePath, ResourceNames} from '../../types';\nimport {Session} from '../../../lib/session/session';\nimport {ApiVersion} from '../../../lib/types';\n\ninterface AllArgs {\n [key: string]: unknown;\n session: Session;\n}\n\nexport class Balance extends Base {\n public static apiVersion = ApiVersion.July23;\n\n protected static hasOne: {[key: string]: typeof Base} = {};\n protected static hasMany: {[key: string]: typeof Base} = {};\n protected static paths: ResourcePath[] = [\n {\"http_method\": \"get\", \"operation\": \"get\", \"ids\": [], \"path\": \"shopify_payments/balance.json\"}\n ];\n protected static resourceNames: ResourceNames[] = [\n {\n \"singular\": \"balance\",\n \"plural\": \"balances\"\n }\n ];\n\n public static async all(\n {\n session,\n ...otherArgs\n }: AllArgs\n ): Promise<FindAllResponse<Balance>> {\n const response = await this.baseFind<Balance>({\n session: session,\n urlIds: {},\n params: {...otherArgs},\n });\n\n return response;\n }\n\n public balance: {[key: string]: unknown}[] | null;\n}\n"],"names":[],"mappings":";;;AAAA;;AAEwH;AAYlH,MAAO,OAAQ,SAAQ,IAAI,CAAA;AACxB,IAAA,OAAO,UAAU,GAAG,UAAU,CAAC,MAAM;AAElC,IAAA,OAAO,MAAM,GAAiC,EAAE;AAChD,IAAA,OAAO,OAAO,GAAiC,EAAE;IACjD,OAAO,KAAK,GAAmB;AACvC,QAAA,EAAC,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,+BAA+B;KAC9F;IACS,OAAO,aAAa,GAAoB;AAChD,QAAA;AACE,YAAA,UAAU,EAAE,SAAS;AACrB,YAAA,QAAQ,EAAE;AACX;KACF;IAEM,aAAa,GAAG,CACrB,EACE,OAAO,EACP,GAAG,SAAS,EACJ,EAAA;AAEV,QAAA,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAU;AAC5C,YAAA,OAAO,EAAE,OAAO;AAChB,YAAA,MAAM,EAAE,EAAE;AACV,YAAA,MAAM,EAAE,EAAC,GAAG,SAAS,EAAC;AACvB,SAAA,CAAC;AAEF,QAAA,OAAO,QAAQ;IACjB;AAEO,IAAA,OAAO;;;;;"}