-
- 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 classBrandsValidation.FilterThe 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>brandInfoMapprivate Set<String>brandDetectionPrioritypublic 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()voidsetBrandDetectionPriority(@Nullable() List<String> brandDetectionPriority)static BrandsValidationcreateFromJson(@NonNull() JSONObject jsonObject, @NonNull() Array<String> brands)Not used anymore. booleanisCardBrand(@NonNull() String brand)CardBrandInfogetCardBrandInfo(@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)PatterngetCardValidationPattern(@NonNull() String cardBrand)BundlegetLabels()intdescribeContents()voidwriteToParcel(@NonNull() Parcel dest, int flags)booleanequals(Object o)inthashCode()-
-
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()
-
-
-
-