UNPKG

card-management-sdk

Version:

The Shell Card Management API is REST-based and employs OAUTH 2.0,Basic and ApiKey authentication. The API endpoints accept JSON-encoded request bodies, return JSON-encoded responses and use standard HTTP response codes. All resources are located in the S

25 lines (24 loc) 925 B
/** * Shell Card Management APIsLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { OAuthToken } from './models/oAuthToken'; import { ClientInterface } from './clientInterface'; export declare class BearerTokenManager { private _oAuthClientId; private _oAuthClientSecret; private _oAuthClockSkew?; private _oAuthController; constructor({ oAuthClientId, oAuthClientSecret, oAuthClockSkew, }: { oAuthClientId: string; oAuthClientSecret: string; oAuthClockSkew?: number; }, client: ClientInterface); updateToken(oAuthToken?: OAuthToken): Promise<OAuthToken>; isValid(oAuthToken: OAuthToken | undefined): oAuthToken is OAuthToken; isExpired(oAuthToken: OAuthToken): boolean; fetchToken(additionalParams?: Record<string, unknown>): Promise<OAuthToken>; private getClientBasicAuth; private setExpiry; }