/*
 *                       ######
 *                       ######
 * ############    ####( ######  #####. ######  ############   ############
 * #############  #####( ######  #####. ######  #############  #############
 *        ######  #####( ######  #####. ######  #####  ######  #####  ######
 * ###### ######  #####( ######  #####. ######  #####  #####   #####  ######
 * ###### ######  #####( ######  #####. ######  #####          #####  ######
 * #############  #############  #############  #############  #####  ######
 *  ############   ############  #############   ############  #####  ######
 *                                      ######
 *                               #############
 *                               ############
 * 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.
 */
 
/**
 * Adyen Checkout API
 * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort).  This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments).  ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example:  ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints).  ## Versioning Checkout 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://checkout-test.adyen.com/v67/payments ```
 *
 * The version of the OpenAPI document: 67
 * 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.
 */

export class ResponseAdditionalDataInstallments {
    /**
    * Type of installment. The value of `installmentType` should be **IssuerFinanced**.
    */
    'installmentPaymentData_installmentType'?: string;
    /**
    * Annual interest rate.
    */
    'installmentPaymentData_option_itemNr_annualPercentageRate'?: string;
    /**
    * First Installment Amount in minor units.
    */
    'installmentPaymentData_option_itemNr_firstInstallmentAmount'?: string;
    /**
    * Installment fee amount in minor units.
    */
    'installmentPaymentData_option_itemNr_installmentFee'?: string;
    /**
    * Interest rate for the installment period.
    */
    'installmentPaymentData_option_itemNr_interestRate'?: string;
    /**
    * Maximum number of installments possible for this payment.
    */
    'installmentPaymentData_option_itemNr_maximumNumberOfInstallments'?: string;
    /**
    * Minimum number of installments possible for this payment.
    */
    'installmentPaymentData_option_itemNr_minimumNumberOfInstallments'?: string;
    /**
    * Total number of installments possible for this payment.
    */
    'installmentPaymentData_option_itemNr_numberOfInstallments'?: string;
    /**
    * Subsequent Installment Amount in minor units.
    */
    'installmentPaymentData_option_itemNr_subsequentInstallmentAmount'?: string;
    /**
    * Total amount in minor units.
    */
    'installmentPaymentData_option_itemNr_totalAmountDue'?: string;
    /**
    * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments
    */
    'installmentPaymentData_paymentOptions'?: string;
    /**
    * The number of installments that the payment amount should be charged with.  Example: 5 > Only relevant for card payments in countries that support installments.
    */
    'installments_value'?: string;

    static discriminator: string | undefined = undefined;

    static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
        {
            "name": "installmentPaymentData_installmentType",
            "baseName": "installmentPaymentData.installmentType",
            "type": "string"
        },
        {
            "name": "installmentPaymentData_option_itemNr_annualPercentageRate",
            "baseName": "installmentPaymentData.option[itemNr].annualPercentageRate",
            "type": "string"
        },
        {
            "name": "installmentPaymentData_option_itemNr_firstInstallmentAmount",
            "baseName": "installmentPaymentData.option[itemNr].firstInstallmentAmount",
            "type": "string"
        },
        {
            "name": "installmentPaymentData_option_itemNr_installmentFee",
            "baseName": "installmentPaymentData.option[itemNr].installmentFee",
            "type": "string"
        },
        {
            "name": "installmentPaymentData_option_itemNr_interestRate",
            "baseName": "installmentPaymentData.option[itemNr].interestRate",
            "type": "string"
        },
        {
            "name": "installmentPaymentData_option_itemNr_maximumNumberOfInstallments",
            "baseName": "installmentPaymentData.option[itemNr].maximumNumberOfInstallments",
            "type": "string"
        },
        {
            "name": "installmentPaymentData_option_itemNr_minimumNumberOfInstallments",
            "baseName": "installmentPaymentData.option[itemNr].minimumNumberOfInstallments",
            "type": "string"
        },
        {
            "name": "installmentPaymentData_option_itemNr_numberOfInstallments",
            "baseName": "installmentPaymentData.option[itemNr].numberOfInstallments",
            "type": "string"
        },
        {
            "name": "installmentPaymentData_option_itemNr_subsequentInstallmentAmount",
            "baseName": "installmentPaymentData.option[itemNr].subsequentInstallmentAmount",
            "type": "string"
        },
        {
            "name": "installmentPaymentData_option_itemNr_totalAmountDue",
            "baseName": "installmentPaymentData.option[itemNr].totalAmountDue",
            "type": "string"
        },
        {
            "name": "installmentPaymentData_paymentOptions",
            "baseName": "installmentPaymentData.paymentOptions",
            "type": "string"
        },
        {
            "name": "installments_value",
            "baseName": "installments.value",
            "type": "string"
        }    ];

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

