Package com.clover.sdk.v3.payments.api
Class TipSuggestion
- java.lang.Object
-
- com.clover.sdk.v3.payments.api.TipSuggestion
-
public class TipSuggestion extends Object
A tip suggestion that can be either amount or percentage based
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TipSuggestion
Amount(String name, Long tipAmount)
A tip suggestion of a fixed amount.TipSuggestion
getV3TipSuggestion()
static TipSuggestion
Percentage(String name, Long tipPercentage)
A tip suggestion based on percentage of the amount of the payment.
-
-
-
Method Detail
-
getV3TipSuggestion
public TipSuggestion getV3TipSuggestion()
-
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:
-
-