Class IkanoPrivateLabelVAPaymentParams
-
- All Implemented Interfaces:
-
android.os.Parcelable
public class IkanoPrivateLabelVAPaymentParams extends PaymentParams
Represents payment parameters for the Ikano private label transaction (as virtual account).
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<IkanoPrivateLabelVAPaymentParams>CREATOR
-
Method Summary
Modifier and Type Method Description StringgetAccountNumber()Returns the account number StringgetExpiryMonth()Returns the expiration month of the account, it is expected in MM format StringgetExpiryYear()Returns the expiration year, it is expected in YYYY format StringgetAccountVerification()Returns the verification code for the account static booleanisAccountNumberValid(@Nullable() String accountNumber)Checks if account number is valid (card number validation used) static booleanisExpiryMonthValid(@Nullable() String expiryMonth)Checks if expiration month is valid, MM format expected static booleanisExpiryYearValid(@Nullable() String expiryYear)Checks if expiration year is valid, YYYY format expected static booleanisAccountExpired(@Nullable() String expiryMonth, @Nullable() String expiryYear)Checks if account is expired, expiration month and year should represent some date in the future static booleanisAccountVerificationValid(@Nullable() String accountVerification)Checks if verification code in valid, up to 5 digits expected Map<String, String>getParamsForRequest()Returns a map of all parameters needed for Ikano private label transaction. intdescribeContents()voidwriteToParcel(Parcel dest, int flags)booleanequals(@Nullable() Object o)inthashCode()-
-
Constructor Detail
-
IkanoPrivateLabelVAPaymentParams
IkanoPrivateLabelVAPaymentParams(String checkoutId, String accountNumber, String expiryMonth, String expiryYear, String accountVerification)
Creates an object representing Ikano private label transaction (as virtual account).- Parameters:
checkoutId- The checkout ID of the transactionaccountNumber- The account numberexpiryMonth- The expiration month of the account, it is expected in MM formatexpiryYear- The expiration year, it is expected in YYYY formataccountVerification- Verification code for the account
-
-
Method Detail
-
getAccountNumber
@NonNull() String getAccountNumber()
Returns the account number
- Returns:
the account number
-
getExpiryMonth
@NonNull() String getExpiryMonth()
Returns the expiration month of the account, it is expected in MM format
- Returns:
The expiration month of the account, it is expected in MM format
-
getExpiryYear
@NonNull() String getExpiryYear()
Returns the expiration year, it is expected in YYYY format
- Returns:
The expiration year, it is expected in YYYY format
-
getAccountVerification
@Nullable() String getAccountVerification()
Returns the verification code for the account
- Returns:
the verification code for the account
-
isAccountNumberValid
static boolean isAccountNumberValid(@Nullable() String accountNumber)
Checks if account number is valid (card number validation used)
- Parameters:
accountNumber- The account number- Returns:
true if account number is valid, false otherwise
-
isExpiryMonthValid
static boolean isExpiryMonthValid(@Nullable() String expiryMonth)
Checks if expiration month is valid, MM format expected
- Parameters:
expiryMonth- The expiration month of the account- Returns:
true if expiration month is valid, false otherwise
-
isExpiryYearValid
static boolean isExpiryYearValid(@Nullable() String expiryYear)
Checks if expiration year is valid, YYYY format expected
- Parameters:
expiryYear- The expiration year of the account- Returns:
true if expiration year is valid, false otherwise
-
isAccountExpired
static boolean isAccountExpired(@Nullable() String expiryMonth, @Nullable() String expiryYear)
Checks if account is expired, expiration month and year should represent some date in the future
- Parameters:
expiryMonth- The expiration month of the accountexpiryYear- The expiration year of the account- Returns:
true if the account is expired, false otherwise
-
isAccountVerificationValid
static boolean isAccountVerificationValid(@Nullable() String accountVerification)
Checks if verification code in valid, up to 5 digits expected
- Parameters:
accountVerification- The verification code of the account- Returns:
true if the verification code is valid, false otherwise
-
getParamsForRequest
@NonNull() Map<String, String> getParamsForRequest()
Returns a map of all parameters needed for Ikano private label transaction.
- Returns:
the map of all parameters needed for Ikano private label transaction
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-