/** * NOTE: This class is auto generated by DANA Indonesia. * Do not edit the class manually. */ import type { ValidationErrorContext } from '../../../runtime'; /** * * @export * @interface ApplyTokenAuthorizationCodeRequest */ export interface ApplyTokenAuthorizationCodeRequest { /** * Additional information * @type {{ [key: string]: any; }} * @memberof ApplyTokenAuthorizationCodeRequest */ additionalInfo?: { [key: string]: any; }; /** * Apply token request type. The value is AUTHORIZATION_CODE * @type {string} * @memberof ApplyTokenAuthorizationCodeRequest */ grantType: ApplyTokenAuthorizationCodeRequestGrantTypeEnum; /** * Authorization code. Please refer to https://dashboard.dana.id/api-docs/read/125. Required if grantType is AUTHORIZATION_CODE * @type {string} * @memberof ApplyTokenAuthorizationCodeRequest */ authCode: string; /** * This token is used for refresh session if existing token has been expired * @type {string} * @memberof ApplyTokenAuthorizationCodeRequest */ refreshToken?: string; } /** * @export */ export declare const ApplyTokenAuthorizationCodeRequestGrantTypeEnum: { readonly AuthorizationCode: "AUTHORIZATION_CODE"; }; export type ApplyTokenAuthorizationCodeRequestGrantTypeEnum = typeof ApplyTokenAuthorizationCodeRequestGrantTypeEnum[keyof typeof ApplyTokenAuthorizationCodeRequestGrantTypeEnum] | ''; /** * Check if a given object implements the ApplyTokenAuthorizationCodeRequest interface. */ export declare function instanceOfApplyTokenAuthorizationCodeRequest(value: object): value is ApplyTokenAuthorizationCodeRequest; export declare function ApplyTokenAuthorizationCodeRequestFromJSON(json: any): ApplyTokenAuthorizationCodeRequest; export declare function ApplyTokenAuthorizationCodeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplyTokenAuthorizationCodeRequest; export declare function ApplyTokenAuthorizationCodeRequestToJSON(json: any): ApplyTokenAuthorizationCodeRequest; export declare function ApplyTokenAuthorizationCodeRequestToJSONTyped(value?: ApplyTokenAuthorizationCodeRequest | null, ignoreDiscriminator?: boolean): any; export declare function validateApplyTokenAuthorizationCodeRequest(value: ApplyTokenAuthorizationCodeRequest): ValidationErrorContext[];