/**
 * Adyen for Platforms: Account API
 * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them.  For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example:  ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints).  ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number.  For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
 *
 * The version of the OpenAPI document: 6
 * 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 the class manually.
 */

import {KYCCheckSummary} from './kYCCheckSummary';

export class KYCCheckStatusData {
    /**
    * A list of the fields required for execution of the check.
    */
    'requiredFields'?: Array<string>;
    /**
    * The status of the check.  Possible values: **AWAITING_DATA** , **DATA_PROVIDED**, **FAILED**, **INVALID_DATA**, **PASSED**, **PENDING**, **RETRY_LIMIT_REACHED**.
    */
    'status': KYCCheckStatusData.StatusEnum;
    'summary'?: KYCCheckSummary;
    /**
    * The type of check.  Possible values:   * **BANK_ACCOUNT_VERIFICATION**: Used in v5 and earlier. Replaced by **PAYOUT_METHOD_VERIFICATION** in v6 and later.   * **COMPANY_VERIFICATION**    * **CARD_VERIFICATION**  * **IDENTITY_VERIFICATION**  * **LEGAL_ARRANGEMENT_VERIFICATION**  * **NONPROFIT_VERIFICATION**   * **PASSPORT_VERIFICATION**  * **PAYOUT_METHOD_VERIFICATION**: Used in v6 and later.  * **PCI_VERIFICATION**
    */
    'type': KYCCheckStatusData.TypeEnum;

    static discriminator: string | undefined = undefined;

    static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
        {
            "name": "requiredFields",
            "baseName": "requiredFields",
            "type": "Array<string>"
        },
        {
            "name": "status",
            "baseName": "status",
            "type": "KYCCheckStatusData.StatusEnum"
        },
        {
            "name": "summary",
            "baseName": "summary",
            "type": "KYCCheckSummary"
        },
        {
            "name": "type",
            "baseName": "type",
            "type": "KYCCheckStatusData.TypeEnum"
        }    ];

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

export namespace KYCCheckStatusData {
    export enum StatusEnum {
        AwaitingData = <any> 'AWAITING_DATA',
        DataProvided = <any> 'DATA_PROVIDED',
        Failed = <any> 'FAILED',
        InvalidData = <any> 'INVALID_DATA',
        Passed = <any> 'PASSED',
        Pending = <any> 'PENDING',
        PendingReview = <any> 'PENDING_REVIEW',
        RetryLimitReached = <any> 'RETRY_LIMIT_REACHED',
        Unchecked = <any> 'UNCHECKED'
    }
    export enum TypeEnum {
        BankAccountVerification = <any> 'BANK_ACCOUNT_VERIFICATION',
        CardVerification = <any> 'CARD_VERIFICATION',
        CompanyVerification = <any> 'COMPANY_VERIFICATION',
        IdentityVerification = <any> 'IDENTITY_VERIFICATION',
        LegalArrangementVerification = <any> 'LEGAL_ARRANGEMENT_VERIFICATION',
        NonprofitVerification = <any> 'NONPROFIT_VERIFICATION',
        PassportVerification = <any> 'PASSPORT_VERIFICATION',
        PayoutMethodVerification = <any> 'PAYOUT_METHOD_VERIFICATION',
        PciVerification = <any> 'PCI_VERIFICATION'
    }
}
