/* tslint:disable */ /* eslint-disable */ /** * * # Introduction The Rest API is the webservices that allow you to automatically manage the wallets and operations. Many DIRECTKIT functionalities are also available manually using the BACKOFFICE # Authentication This service strictly follow the chapter 4.4.2 "Access Token request" of the RFC 6749 "the Oauth2 2.0 Authorization Framework". This Api is consume by the client api, a restrict control on IP is applied.
The unique method exposed by this api allow customers to ask for a unique bearer access token. A bearer allow the customer to consume their api Rest without the need of sending their plain text login and password.
This method has these scenario: * * The version of the OpenAPI document: 1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface Bearer */ export interface Bearer { /** * * @type {string} * @memberof Bearer */ tokenType: string; /** * * @type {string} * @memberof Bearer */ readonly accessToken: string; /** * * @type {number} * @memberof Bearer */ readonly expiresIn?: number; } /** * Check if a given object implements the Bearer interface. */ export function instanceOfBearer(value: object): boolean { let isInstance = true; isInstance = isInstance && "tokenType" in value; isInstance = isInstance && "accessToken" in value; return isInstance; } export function BearerFromJSON(json: any): Bearer { return BearerFromJSONTyped(json, false); } export function BearerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Bearer { if ((json === undefined) || (json === null)) { return json; } return { 'tokenType': json['token_Type'], 'accessToken': json['access_token'], 'expiresIn': !exists(json, 'expires_in') ? undefined : json['expires_in'], }; } export function BearerToJSON(value?: Bearer | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'token_Type': value.tokenType, }; }