-
- All Implemented Interfaces:
-
android.os.Parcelable
public class BrandsValidation implements Parcelable
Contains the additional information about payment brands.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
BrandsValidation.Filter
The helper class provides functionality to filter the required brands from the BrandInfo map.
-
Field Summary
Fields Modifier and Type Field Description private Map<String, BrandInfo>
brandInfoMap
private Set<String>
brandDetectionPriority
public final static Parcelable.Creator<BrandsValidation>
CREATOR
-
Constructor Summary
Constructors Constructor Description BrandsValidation(Map<String, BrandInfo> brandInfoMap)
-
Method Summary
Modifier and Type Method Description Map<String, BrandInfo>
getBrandInfoMap()
void
setBrandDetectionPriority(@Nullable() List<String> brandDetectionPriority)
static BrandsValidation
createFromJson(@NonNull() JSONObject jsonObject, @NonNull() Array<String> brands)
Not used anymore. boolean
isCardBrand(@NonNull() String brand)
CardBrandInfo
getCardBrandInfo(@NonNull() String brand)
List<String>
getDetectedCardBrands(@NonNull() String cardNumber, @NonNull() String initialBrand)
Set<String>
detectCardBrandsByRegex(@NonNull() String number)
Array<String>
filterOutUnconfiguredBrands(@NonNull() Array<String> brands)
Pattern
getCardValidationPattern(@NonNull() String cardBrand)
Bundle
getLabels()
int
describeContents()
void
writeToParcel(@NonNull() Parcel dest, int flags)
boolean
equals(Object o)
int
hashCode()
-
-
Method Detail
-
getBrandInfoMap
@NonNull() Map<String, BrandInfo> getBrandInfoMap()
-
setBrandDetectionPriority
void setBrandDetectionPriority(@Nullable() List<String> brandDetectionPriority)
-
createFromJson
@Deprecated()@NonNull() static BrandsValidation createFromJson(@NonNull() JSONObject jsonObject, @NonNull() Array<String> brands)
Not used anymore.
- Parameters:
jsonObject
- The JSON object to parse.brands
- The array of brands to filter.
-
isCardBrand
boolean isCardBrand(@NonNull() String brand)
-
getCardBrandInfo
@NonNull() CardBrandInfo getCardBrandInfo(@NonNull() String brand)
-
getDetectedCardBrands
@NonNull() List<String> getDetectedCardBrands(@NonNull() String cardNumber, @NonNull() String initialBrand)
-
filterOutUnconfiguredBrands
@NonNull() Array<String> filterOutUnconfiguredBrands(@NonNull() Array<String> brands)
-
getCardValidationPattern
@Nullable() Pattern getCardValidationPattern(@NonNull() String cardBrand)
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(@NonNull() Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-