@adyen/api-library
Version:
The Adyen API Library for NodeJS enables you to work with Adyen APIs.
40 lines (39 loc) • 1.75 kB
TypeScript
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 readonly discriminator: string | undefined;
static readonly mapping: {
[index: string]: string;
} | undefined;
static readonly attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
format: string;
}>;
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
format: string;
}[];
constructor();
}