-
- 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 static boolean
isAccountNumberValid(@Nullable() String accountNumber)
Checks if account number is valid (card number validation used) static boolean
isExpiryMonthValid(@Nullable() String expiryMonth)
Checks if expiration month is valid, MM format expected static boolean
isExpiryYearValid(@Nullable() String expiryYear)
Checks if expiration year is valid, YYYY format expected 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 static boolean
isAccountVerificationValid(@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. int
describeContents()
void
writeToParcel(Parcel dest, int flags)
boolean
equals(@Nullable() Object o)
int
hashCode()
-
-
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
-
isAccountNumberValid
static boolean isAccountNumberValid(@Nullable() String accountNumber)
Checks if account number is valid (card number validation used)
- Parameters:
accountNumber
- The account number
-
isExpiryMonthValid
static boolean isExpiryMonthValid(@Nullable() String expiryMonth)
Checks if expiration month is valid, MM format expected
- Parameters:
expiryMonth
- The expiration month of the account
-
isExpiryYearValid
static boolean isExpiryYearValid(@Nullable() String expiryYear)
Checks if expiration year is valid, YYYY format expected
- Parameters:
expiryYear
- The expiration year of the account
-
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
-
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
-
getParamsForRequest
@NonNull() Map<String, String> getParamsForRequest()
Returns a map of all parameters needed for Ikano private label transaction.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
-
-
-