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

import { Amount } from './amount';

export class PermitRestriction {
    'maxAmount'?: Amount;
    'singleTransactionLimit'?: Amount;
    /**
    * Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed.
    */
    'singleUse'?: boolean;

    static discriminator: string | undefined = undefined;

    static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
        {
            "name": "maxAmount",
            "baseName": "maxAmount",
            "type": "Amount"
        },
        {
            "name": "singleTransactionLimit",
            "baseName": "singleTransactionLimit",
            "type": "Amount"
        },
        {
            "name": "singleUse",
            "baseName": "singleUse",
            "type": "boolean"
        }    ];

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

