Class RequestTipIntentBuilder


  • public class RequestTipIntentBuilder
    extends BaseIntentBuilder
    Use the RequestTipIntentBuilder class to initiate a customer facing tip screen.
    • Constructor Detail

      • RequestTipIntentBuilder

        public RequestTipIntentBuilder​(long baseAmount)
        Constructor that takes an amount that is displayed on the screen and is also used used to calculate percentage based tips.
        Parameters:
        baseAmount -
    • Method Detail

      • tipSuggestions

        public RequestTipIntentBuilder tipSuggestions​(List<TipSuggestion> tipSuggestions)
        Options list of up to 4 tip suggestions that can be either percentage or fixed amounts. Percentage based suggestions are calculcated based on the baseAmount
        Parameters:
        tipSuggestions -
        Returns: