/*
 * The version of the OpenAPI document: v1
 * 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.
 */


export class CreateCompanyApiCredentialRequest {
    /**
    * List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential.
    */
    'allowedOrigins'?: Array<string>;
    /**
    * List of merchant accounts that the API credential has access to.
    */
    'associatedMerchantAccounts'?: Array<string>;
    /**
    * Description of the API credential.
    */
    'description'?: string;
    /**
    * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) of the API credential.
    */
    'roles'?: Array<string>;

    static discriminator: string | undefined = undefined;

    static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
        {
            "name": "allowedOrigins",
            "baseName": "allowedOrigins",
            "type": "Array<string>"
        },
        {
            "name": "associatedMerchantAccounts",
            "baseName": "associatedMerchantAccounts",
            "type": "Array<string>"
        },
        {
            "name": "description",
            "baseName": "description",
            "type": "string"
        },
        {
            "name": "roles",
            "baseName": "roles",
            "type": "Array<string>"
        }    ];

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

