/*
 * The version of the OpenAPI document: v2
 * Contact: developer-experience@adyen.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit this class manually.
 */

import { BankAccountInfo } from './bankAccountInfo';
import { RecurringDetail } from './recurringDetail';

export class TransferInstrumentInfo {
    'bankAccount'?: BankAccountInfo;
    /**
    * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the transfer instrument.
    */
    'legalEntityId': string;
    'recurringDetail'?: RecurringDetail;
    /**
    * The type of transfer instrument.  Possible values: **bankAccount**, **recurringDetail**.
    */
    'type': TransferInstrumentInfo.TypeEnum;

    static discriminator: string | undefined = undefined;

    static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
        {
            "name": "bankAccount",
            "baseName": "bankAccount",
            "type": "BankAccountInfo"
        },
        {
            "name": "legalEntityId",
            "baseName": "legalEntityId",
            "type": "string"
        },
        {
            "name": "recurringDetail",
            "baseName": "recurringDetail",
            "type": "RecurringDetail"
        },
        {
            "name": "type",
            "baseName": "type",
            "type": "TransferInstrumentInfo.TypeEnum"
        }    ];

    static getAttributeTypeMap() {
        return TransferInstrumentInfo.attributeTypeMap;
    }
}

export namespace TransferInstrumentInfo {
    export enum TypeEnum {
        BankAccount = <any> 'bankAccount',
        RecurringDetail = <any> 'recurringDetail'
    }
}
