UNPKG

xero-node

Version:

Xero NodeJS OAuth 2.0 client for xero-node

49 lines (48 loc) 1.58 kB
/** * Xero AppStore API * These endpoints are for Xero Partners to interact with the App Store Billing platform * * The version of the OpenAPI document: 2.17.1 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /// <reference types="node" /> import http = require('http'); import { Subscription } from '../model/appstore/subscription'; import { Authentication } from '../model/appstore/models'; import { OAuth } from '../model/appstore/models'; export declare enum AppStoreApiApiKeys { } export declare class AppStoreApi { protected _basePath: string; protected defaultHeaders: any; protected _useQuerystring: boolean; protected binaryHeaders: any; protected authentications: { default: Authentication; OAuth2: OAuth; }; constructor(basePath?: string); set useQuerystring(value: boolean); set basePath(basePath: string); get basePath(): string; setDefaultAuthentication(auth: Authentication): void; setApiKey(key: AppStoreApiApiKeys, value: string): void; set accessToken(token: string); /** * * @summary Retrieves a subscription for a given subscriptionId * @param subscriptionId Unique identifier for Subscription object */ getSubscription(subscriptionId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: Subscription; }>; }