mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
* add create/disablePermit and simple UT * Add serializer for Date objects and quick test Co-authored-by: Michael Paul <michael@michaelpaul.com.br>
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
/*
|
|
* 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;
|
|
}
|
|
}
|
|
|