Package com.clover.sdk.v1.merchant
Class TipSuggestion
- java.lang.Object
-
- com.clover.sdk.v1.merchant.TipSuggestion
-
- All Implemented Interfaces:
Parcelable
public class TipSuggestion extends Object implements Parcelable
A class representing a tip suggestion associated with a merchant. Instances of this object are returned as part of aMerchant
object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TipSuggestion.Builder
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<TipSuggestion>
CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Constructor Description TipSuggestion(JSONObject data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
String
getId()
String
getName()
long
getPercentage()
boolean
isEnabled()
void
writeToParcel(Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<TipSuggestion> CREATOR
-
-
Constructor Detail
-
TipSuggestion
public TipSuggestion(JSONObject data)
-
-
Method Detail
-
getId
public String getId()
-
getName
public String getName()
-
getPercentage
public long getPercentage()
-
isEnabled
public boolean isEnabled()
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceParcelable
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceParcelable
-
-