@Immutable @LevelUpApi(contract=PUBLIC) public final class PaymentPreference extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<PaymentPreference> |
CREATOR
Implements the
Parcelable interface. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
PaymentPreference(boolean preload,
MonetaryValue preloadValueAmount) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
MonetaryValue |
getPreloadValueAmount()
The amount to be pre-loaded if the user wants pre-loading.
|
int |
hashCode() |
boolean |
isPreload()
True when the user wants to use a pre-loading payment preference.
|
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<PaymentPreference> CREATOR
Parcelable
interface.public PaymentPreference(boolean preload, MonetaryValue preloadValueAmount)
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public boolean isPreload()
public MonetaryValue getPreloadValueAmount()