// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../../resource'; import * as Core from '../../core'; import * as InstitutionsAPI from './institutions'; import * as UsageAPI from './usage'; export class Institutions extends APIResource { usage: UsageAPI.Usage = new UsageAPI.Usage(this._client); /** * Get Institutions */ list(query: InstitutionListParams, options?: Core.RequestOptions): Core.APIPromise { return this._client.get('/institutions', { query, ...options }); } } export interface Institutions { data: Array; } export interface InstitutionListParams { /** * Country code */ countryCode: | 'AT' | 'BE' | 'BG' | 'HR' | 'CY' | 'CZ' | 'DK' | 'EE' | 'FI' | 'FR' | 'DE' | 'GR' | 'HU' | 'IS' | 'IE' | 'IT' | 'LV' | 'LI' | 'LT' | 'LU' | 'MT' | 'NL' | 'NO' | 'PL' | 'PT' | 'RO' | 'SK' | 'SI' | 'ES' | 'SE' | 'GB' | 'US' | 'CA'; /** * Limit results */ limit?: string; /** * Search query */ q?: string; } export namespace Institutions { export import Institutions = InstitutionsAPI.Institutions; export import InstitutionListParams = InstitutionsAPI.InstitutionListParams; export import Usage = UsageAPI.Usage; export import Institution = UsageAPI.Institution; export import UsageUpdateResponse = UsageAPI.UsageUpdateResponse; }