Gratuity Config
Constructors
Properties
Text shown on the yes/no prompt asking the cardholder if they want to add a gratuity. Used in GratuityMode.STANDARD and GratuityMode.CONFIGURED modes. Maximum 30 characters; an IllegalArgumentException will be thrown if exceeded.
Fixed tip amounts in pence, displayed as selectable options in GratuityMode.CONFIGURED mode. E.g. listOf(100, 200, 300) renders as £1.00, £2.00, £3.00. Not applicable in GratuityMode.STANDARD mode — an IllegalArgumentException will be thrown. Maximum 3 amounts; an IllegalArgumentException will be thrown if exceeded. All values must not be negative; an IllegalArgumentException will be thrown otherwise.
Header text shown at the top of the tipping selection menu. Used in GratuityMode.STANDARD and GratuityMode.CONFIGURED modes. Maximum 30 characters; an IllegalArgumentException will be thrown if exceeded.
The tipping mode to use.
Tip percentages to display as selectable options. Only used in GratuityMode.CONFIGURED mode. In GratuityMode.STANDARD mode, percentages are fixed at 10%, 15%, and 20% — specifying custom percentages will throw an IllegalArgumentException. Maximum 3 percentages; an IllegalArgumentException will be thrown if exceeded. All values must be between 1 and 100; an IllegalArgumentException will be thrown otherwise.