@adyen/api-library
Version:
The Adyen API Library for NodeJS enables you to work with Adyen APIs.
30 lines (29 loc) • 1.31 kB
TypeScript
export declare class Gratuity {
/**
* Indicates whether one of the predefined tipping options is to let the shopper enter a custom tip. If **true**, only three of the other options defined in `predefinedTipEntries` are shown.
*/
'allowCustomAmount'?: boolean;
/**
* The currency that the tipping settings apply to.
*/
'currency'?: string;
/**
* Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a EUR 5 tip.
*/
'predefinedTipEntries'?: Array<string>;
/**
* Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping options to choose from (**true**).
*/
'usePredefinedTipEntries'?: boolean;
static discriminator: string | undefined;
static attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
}>;
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
}[];
}