Class TipSuggestion


  • public class TipSuggestion
    extends Object
    A tip suggestion that can be either amount or percentage based
    • Method Detail

      • Amount

        public static TipSuggestion Amount​(String name,
                                           Long tipAmount)
        A tip suggestion of a fixed amount. For example 100 for a $1 tip
        Parameters:
        name -
        tipAmount -
        Returns:
      • Percentage

        public static TipSuggestion Percentage​(String name,
                                               Long tipPercentage)
        A tip suggestion based on percentage of the amount of the payment. For example, 10 for a 10% tip
        Parameters:
        name -
        tipPercentage -
        Returns: