Gratuity class abstract
Gratuity
Properties:
- allowCustomAmount - 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
predefinedTipEntriesare shown. - currency - The currency that the tipping settings apply to.
- predefinedTipEntries - Tipping options the shopper can choose from if
usePredefinedTipEntriesis 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. Example: 500 for a EUR 5 tip. - usePredefinedTipEntries - Indicates whether the terminal shows a prompt to enter a tip (false), or predefined tipping options to choose from (true).
- Annotations
-
- @BuiltValue.new()
Constructors
- Gratuity([void updates(GratuityBuilder b)])
-
factory
Properties
- allowCustomAmount → bool?
-
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
predefinedTipEntriesare shown.no setter - currency → String?
-
The currency that the tipping settings apply to.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
predefinedTipEntries
→ BuiltList<
String> ? -
Tipping options the shopper can choose from if
usePredefinedTipEntriesis 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. Example: 500 for a EUR 5 tip.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usePredefinedTipEntries → bool?
-
Indicates whether the terminal shows a prompt to enter a tip (false), or predefined tipping options to choose from (true).
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
dynamic updates(GratuityBuilder)) → Gratuity -
Rebuilds the instance.
inherited
-
toBuilder(
) → GratuityBuilder -
Converts the instance to a builder
B.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
serializer
→ Serializer<
Gratuity> -
no setter