-
- All Implemented Interfaces:
-
android.os.Parcelable
public class BinInfo implements Parcelable
Represents the information about bin, such as related brands, bin type (PERSONAL or COMMERCIAL) and type (CREDIT or DEBIT).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classBinInfo.BinDetailRepresents detailed information about a specific BIN.
-
Field Summary
Fields Modifier and Type Field Description private final Array<String>brandsprivate final StringbinTypeprivate final Stringtypeprivate final Array<BinInfo.BinDetail>binDetailspublic final static Parcelable.Creator<BinInfo>CREATOR
-
Method Summary
Modifier and Type Method Description Array<String>getBrands()Returns the related brands for bin. StringgetBinType()Returns the bin type PERSONAL or COMMERCIAL, if available. StringgetType()Returns the type CREDIT or DEBIT, if available. Array<BinInfo.BinDetail>getBinDetails()Returns the detailed bin information, if available. intdescribeContents()voidwriteToParcel(Parcel dest, int flags)booleanequals(Object o)inthashCode()-
-
Constructor Detail
-
BinInfo
BinInfo(Array<String> brands, String binType, String type)
Creates a new bin info.- Parameters:
brands- The related brands.binType- The bin type PERSONAL or COMMERCIAL.type- The type CREDIT or DEBIT.
-
BinInfo
BinInfo(Array<String> brands, String binType, String type, Array<BinInfo.BinDetail> binDetails)
Creates a new bin info with detailed bin information.- Parameters:
brands- The related brands.binType- The bin type PERSONAL or COMMERCIAL.type- The type CREDIT or DEBIT.binDetails- The detailed bin information.
-
-
Method Detail
-
getBinType
@Nullable() String getBinType()
Returns the bin type PERSONAL or COMMERCIAL, if available.
-
getBinDetails
@Nullable() Array<BinInfo.BinDetail> getBinDetails()
Returns the detailed bin information, if available.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-