-
- All Implemented Interfaces:
-
android.os.Parcelable,java.lang.Cloneable
public class Card implements Parcelable, Cloneable
Class to represent stored Card payment information.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringholderprivate final Stringlast4Digitsprivate final StringexpiryMonthprivate final StringexpiryYearpublic final static Parcelable.Creator<Card>CREATOR
-
Method Summary
Modifier and Type Method Description StringgetHolder()Returns card holder name. StringgetLast4Digits()Returns the last 4 digits of card number. StringgetExpiryMonth()Returns the card expiry month. StringgetExpiryYear()Returns the card expiry year. intdescribeContents()voidwriteToParcel(@NonNull() Parcel dest, int flags)booleanequals(Object o)inthashCode()Cardclone()-
-
Method Detail
-
getLast4Digits
@NonNull() String getLast4Digits()
Returns the last 4 digits of card number.
-
getExpiryMonth
@NonNull() String getExpiryMonth()
Returns the card expiry month.
-
getExpiryYear
@NonNull() String getExpiryYear()
Returns the card expiry year.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(@NonNull() Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-