/*
 *                       ######
 *                       ######
 * ############    ####( ######  #####. ######  ############   ############
 * #############  #####( ######  #####. ######  #############  #############
 *        ######  #####( ######  #####. ######  #####  ######  #####  ######
 * ###### ######  #####( ######  #####. ######  #####  #####   #####  ######
 * ###### ######  #####( ######  #####. ######  #####          #####  ######
 * #############  #############  #############  #############  #####  ######
 *  ############   ############  #############   ############  #####  ######
 *                                      ######
 *                               #############
 *                               ############
 * Adyen NodeJS API Library
 * Copyright (c) 2021 Adyen B.V.
 * This file is open source and available under the MIT license.
 * See the LICENSE file for more info.
 */
 
/**
 * Terminal API
 * Definition of Terminal API Schema
 *
 * The version of the OpenAPI document: 1.0.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 { AllowedProduct } from './allowedProduct';
import { ContentInformation } from './contentInformation';
import { CustomerOrder } from './customerOrder';
import { PaymentToken } from './paymentToken';
import { SensitiveCardData } from './sensitiveCardData';

export class CardData {
    'AllowedProduct'?: Array<AllowedProduct>;
    'AllowedProductCode'?: Array<string>;
    'CardCountryCode'?: string;
    'CustomerOrder'?: Array<CustomerOrder>;
    'EntryMode'?: Array<CardData.EntryModeEnum>;
    'MaskedPAN'?: string;
    'PaymentAccountRef'?: string;
    'PaymentBrand'?: string;
    'PaymentToken'?: PaymentToken;
    'ProtectedCardData'?: ContentInformation;
    'SensitiveCardData'?: SensitiveCardData;

    static discriminator: string | undefined = undefined;

    static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
        {
            "name": "AllowedProduct",
            "baseName": "AllowedProduct",
            "type": "Array<AllowedProduct>"
        },
        {
            "name": "AllowedProductCode",
            "baseName": "AllowedProductCode",
            "type": "Array<string>"
        },
        {
            "name": "CardCountryCode",
            "baseName": "CardCountryCode",
            "type": "string"
        },
        {
            "name": "CustomerOrder",
            "baseName": "CustomerOrder",
            "type": "Array<CustomerOrder>"
        },
        {
            "name": "EntryMode",
            "baseName": "EntryMode",
            "type": "Array<CardData.EntryModeEnum>"
        },
        {
            "name": "MaskedPAN",
            "baseName": "MaskedPAN",
            "type": "string"
        },
        {
            "name": "PaymentAccountRef",
            "baseName": "PaymentAccountRef",
            "type": "string"
        },
        {
            "name": "PaymentBrand",
            "baseName": "PaymentBrand",
            "type": "string"
        },
        {
            "name": "PaymentToken",
            "baseName": "PaymentToken",
            "type": "PaymentToken"
        },
        {
            "name": "ProtectedCardData",
            "baseName": "ProtectedCardData",
            "type": "ContentInformation"
        },
        {
            "name": "SensitiveCardData",
            "baseName": "SensitiveCardData",
            "type": "SensitiveCardData"
        }    ];

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

export namespace CardData {
    export enum EntryModeEnum {
        Contactless = <any> 'Contactless',
        File = <any> 'File',
        Icc = <any> 'ICC',
        Keyed = <any> 'Keyed',
        MagStripe = <any> 'MagStripe',
        Manual = <any> 'Manual',
        Mobile = <any> 'Mobile',
        Rfid = <any> 'RFID',
        Scanned = <any> 'Scanned',
        SynchronousIcc = <any> 'SynchronousICC',
        Tapped = <any> 'Tapped'
    }
}
