@Immutable @LevelUpApi(contract=PUBLIC) public final class PaymentToken extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<PaymentToken> |
CREATOR
Implements the
Parcelable interface. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
PaymentToken(String data,
long id)
Constructor for payment tokens that do not have an action or message.
|
PaymentToken(String data,
long id,
String action,
String message) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
String |
getAction()
The action associated with this payment token.
|
String |
getData()
The payment token data.
|
long |
getId()
The web service ID of the token.
|
String |
getMessage()
The message associated with this payment token.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<PaymentToken> CREATOR
Parcelable
interface.public PaymentToken(String data, long id)
data
- The payment token data.id
- The web service ID of the token.public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public String getData()
public long getId()
public String getAction()
public String getMessage()
action
as well, but
not always.