UNPKG

data-and-reporting-sdk

Version:

Data And Reporting product consists of API's which provides details of transaction and invoice informations about shell cards. The Shell Card Transaction and Invoice API is REST-based and employs Basic authentication in Version 1 and Oauth authentication

39 lines (35 loc) 1.08 kB
/** * Shell Data & Reporting APIsLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { bigint, object, optional, Schema, string } from '../schema'; /** OAuth 2 Authorization endpoint response */ export interface OAuthToken { /** Access token */ accessToken: string; /** Type of access token */ tokenType: string; /** Time in seconds before the access token expires */ expiresIn?: bigint; /** * List of scopes granted * This is a space-delimited list of strings. */ scope?: string; /** Time of token expiry as unix timestamp (UTC) */ expiry?: bigint; /** * Refresh token * Used to get a new access token when it expires. */ refreshToken?: string; } export const oAuthTokenSchema: Schema<OAuthToken> = object({ accessToken: ['access_token', string()], tokenType: ['token_type', string()], expiresIn: ['expires_in', optional(bigint())], scope: ['scope', optional(string())], expiry: ['expiry', optional(bigint())], refreshToken: ['refresh_token', optional(string())], });