/*
 * The version of the OpenAPI document: v69
 * 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 CheckoutSessionInstallmentOption {
    /**
    * Defines the type of installment plan. If not set, defaults to **regular**.  Possible values: * **regular** * **revolving**
    */
    'plans'?: Array<CheckoutSessionInstallmentOption.PlansEnum>;
    /**
    * Preselected number of installments offered for this payment method.
    */
    'preselectedValue'?: number;
    /**
    * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`.
    */
    'values'?: Array<number>;

    static discriminator: string | undefined = undefined;

    static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
        {
            "name": "plans",
            "baseName": "plans",
            "type": "Array<CheckoutSessionInstallmentOption.PlansEnum>"
        },
        {
            "name": "preselectedValue",
            "baseName": "preselectedValue",
            "type": "number"
        },
        {
            "name": "values",
            "baseName": "values",
            "type": "Array<number>"
        }    ];

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

export namespace CheckoutSessionInstallmentOption {
    export enum PlansEnum {
        Regular = <any> 'regular',
        Revolving = <any> 'revolving'
    }
}
