/* tslint:disable */
/* eslint-disable */
/**
* Lemonway DirectKit API 2.0
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v2
*
*
* 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 RegisterIBANOutput
*/
export interface RegisterIBANOutput {
/**
* IBAN ID
* @type {number}
* @memberof RegisterIBANOutput
*/
ibanId?: number;
/**
* IBAN Status
1 = None.
2 = Internal.
3 = Not used.
4 = Waiting to be verified by Lemon Way.
5 = Activated.
6 = Rejected by the bank.
7 = Rejected, no owner.
8 = Deactivated.
9 = Rejected.
* @type {number}
* @memberof RegisterIBANOutput
*/
status?: RegisterIBANOutputStatusEnum;
/**
*
* @type {Error}
* @memberof RegisterIBANOutput
*/
error?: Error;
}
/**
* @export
*/
export const RegisterIBANOutputStatusEnum = {
NUMBER_1: 1,
NUMBER_2: 2,
NUMBER_3: 3,
NUMBER_4: 4,
NUMBER_5: 5,
NUMBER_6: 6,
NUMBER_7: 7,
NUMBER_8: 8,
NUMBER_9: 9
} as const;
export type RegisterIBANOutputStatusEnum = typeof RegisterIBANOutputStatusEnum[keyof typeof RegisterIBANOutputStatusEnum];
/**
* Check if a given object implements the RegisterIBANOutput interface.
*/
export function instanceOfRegisterIBANOutput(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function RegisterIBANOutputFromJSON(json: any): RegisterIBANOutput {
return RegisterIBANOutputFromJSONTyped(json, false);
}
export function RegisterIBANOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterIBANOutput {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'ibanId': !exists(json, 'ibanId') ? undefined : json['ibanId'],
'status': !exists(json, 'status') ? undefined : json['status'],
'error': !exists(json, 'error') ? undefined : json['error'],
};
}
export function RegisterIBANOutputToJSON(value?: RegisterIBANOutput | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'ibanId': value.ibanId,
'status': value.status,
'error': value.error,
};
}