UNPKG

@adyen/api-library

Version:

The Adyen API Library for NodeJS enables you to work with Adyen APIs.

34 lines (33 loc) 1.58 kB
export declare class Donation { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). */ 'currency': string; /** * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. */ 'donationType': string; /** * The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**. */ 'maxRoundupAmount'?: number; /** * The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donation amounts that the shopper can select from. */ 'type': string; /** * The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**. */ 'values'?: Array<number>; static discriminator: string | undefined; static attributeTypeMap: Array<{ name: string; baseName: string; type: string; }>; static getAttributeTypeMap(): { name: string; baseName: string; type: string; }[]; }