Package com.adyen.model.payment
Class AccountInfo
- java.lang.Object
-
- com.adyen.model.payment.AccountInfo
-
public class AccountInfo extends Object
AccountInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccountInfo.AccountAgeIndicatorEnumIndicator for the length of time since this shopper account was created in the merchant's environment.static classAccountInfo.AccountChangeIndicatorEnumIndicator for the length of time since the shopper's account was last updated.static classAccountInfo.AccountTypeEnumIndicates the type of account.static classAccountInfo.CustomTypeAdapterFactorystatic classAccountInfo.DeliveryAddressUsageIndicatorEnumIndicator for the length of time since this delivery address was first used.static classAccountInfo.PasswordChangeIndicatorEnumIndicator when the shopper has changed their password.static classAccountInfo.PaymentAccountIndicatorEnumIndicator for the length of time since this payment method was added to this shopper's account.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AccountInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AccountInfoaccountAgeIndicator(AccountInfo.AccountAgeIndicatorEnum accountAgeIndicator)AccountInfoaccountChangeDate(OffsetDateTime accountChangeDate)AccountInfoaccountChangeIndicator(AccountInfo.AccountChangeIndicatorEnum accountChangeIndicator)AccountInfoaccountCreationDate(OffsetDateTime accountCreationDate)AccountInfoaccountType(AccountInfo.AccountTypeEnum accountType)AccountInfoaddCardAttemptsDay(Integer addCardAttemptsDay)AccountInfodeliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageDate)AccountInfodeliveryAddressUsageIndicator(AccountInfo.DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator)booleanequals(Object o)static AccountInfofromJson(String jsonString)Create an instance of AccountInfo given an JSON stringAccountInfo.AccountAgeIndicatorEnumgetAccountAgeIndicator()Indicator for the length of time since this shopper account was created in the merchant's environment.OffsetDateTimegetAccountChangeDate()Date when the shopper's account was last changed.AccountInfo.AccountChangeIndicatorEnumgetAccountChangeIndicator()Indicator for the length of time since the shopper's account was last updated.OffsetDateTimegetAccountCreationDate()Date when the shopper's account was created.AccountInfo.AccountTypeEnumgetAccountType()Indicates the type of account.IntegergetAddCardAttemptsDay()Number of attempts the shopper tried to add a card to their account in the last day.OffsetDateTimegetDeliveryAddressUsageDate()Date the selected delivery address was first used.AccountInfo.DeliveryAddressUsageIndicatorEnumgetDeliveryAddressUsageIndicator()Indicator for the length of time since this delivery address was first used.StringgetHomePhone()Deprecated.StringgetMobilePhone()Deprecated.OffsetDateTimegetPasswordChangeDate()Date when the shopper last changed their password.AccountInfo.PasswordChangeIndicatorEnumgetPasswordChangeIndicator()Indicator when the shopper has changed their password.IntegergetPastTransactionsDay()Number of all transactions (successful and abandoned) from this shopper in the past 24 hours.IntegergetPastTransactionsYear()Number of all transactions (successful and abandoned) from this shopper in the past year.OffsetDateTimegetPaymentAccountAge()Date this payment method was added to the shopper's account.AccountInfo.PaymentAccountIndicatorEnumgetPaymentAccountIndicator()Indicator for the length of time since this payment method was added to this shopper's account.IntegergetPurchasesLast6Months()Number of successful purchases in the last six months.BooleangetSuspiciousActivity()Whether suspicious activity was recorded on this account.StringgetWorkPhone()Deprecated.inthashCode()AccountInfohomePhone(String homePhone)Deprecated.AccountInfomobilePhone(String mobilePhone)Deprecated.AccountInfopasswordChangeDate(OffsetDateTime passwordChangeDate)AccountInfopasswordChangeIndicator(AccountInfo.PasswordChangeIndicatorEnum passwordChangeIndicator)AccountInfopastTransactionsDay(Integer pastTransactionsDay)AccountInfopastTransactionsYear(Integer pastTransactionsYear)AccountInfopaymentAccountAge(OffsetDateTime paymentAccountAge)AccountInfopaymentAccountIndicator(AccountInfo.PaymentAccountIndicatorEnum paymentAccountIndicator)AccountInfopurchasesLast6Months(Integer purchasesLast6Months)voidsetAccountAgeIndicator(AccountInfo.AccountAgeIndicatorEnum accountAgeIndicator)voidsetAccountChangeDate(OffsetDateTime accountChangeDate)voidsetAccountChangeIndicator(AccountInfo.AccountChangeIndicatorEnum accountChangeIndicator)voidsetAccountCreationDate(OffsetDateTime accountCreationDate)voidsetAccountType(AccountInfo.AccountTypeEnum accountType)voidsetAddCardAttemptsDay(Integer addCardAttemptsDay)voidsetDeliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageDate)voidsetDeliveryAddressUsageIndicator(AccountInfo.DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator)voidsetHomePhone(String homePhone)Deprecated.voidsetMobilePhone(String mobilePhone)Deprecated.voidsetPasswordChangeDate(OffsetDateTime passwordChangeDate)voidsetPasswordChangeIndicator(AccountInfo.PasswordChangeIndicatorEnum passwordChangeIndicator)voidsetPastTransactionsDay(Integer pastTransactionsDay)voidsetPastTransactionsYear(Integer pastTransactionsYear)voidsetPaymentAccountAge(OffsetDateTime paymentAccountAge)voidsetPaymentAccountIndicator(AccountInfo.PaymentAccountIndicatorEnum paymentAccountIndicator)voidsetPurchasesLast6Months(Integer purchasesLast6Months)voidsetSuspiciousActivity(Boolean suspiciousActivity)voidsetWorkPhone(String workPhone)Deprecated.AccountInfosuspiciousActivity(Boolean suspiciousActivity)StringtoJson()Convert an instance of AccountInfo to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundAccountInfoworkPhone(String workPhone)Deprecated.
-
-
-
Field Detail
-
SERIALIZED_NAME_ACCOUNT_AGE_INDICATOR
public static final String SERIALIZED_NAME_ACCOUNT_AGE_INDICATOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCOUNT_CHANGE_DATE
public static final String SERIALIZED_NAME_ACCOUNT_CHANGE_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCOUNT_CHANGE_INDICATOR
public static final String SERIALIZED_NAME_ACCOUNT_CHANGE_INDICATOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCOUNT_CREATION_DATE
public static final String SERIALIZED_NAME_ACCOUNT_CREATION_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCOUNT_TYPE
public static final String SERIALIZED_NAME_ACCOUNT_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADD_CARD_ATTEMPTS_DAY
public static final String SERIALIZED_NAME_ADD_CARD_ATTEMPTS_DAY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DELIVERY_ADDRESS_USAGE_DATE
public static final String SERIALIZED_NAME_DELIVERY_ADDRESS_USAGE_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DELIVERY_ADDRESS_USAGE_INDICATOR
public static final String SERIALIZED_NAME_DELIVERY_ADDRESS_USAGE_INDICATOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HOME_PHONE
public static final String SERIALIZED_NAME_HOME_PHONE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MOBILE_PHONE
public static final String SERIALIZED_NAME_MOBILE_PHONE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PASSWORD_CHANGE_DATE
public static final String SERIALIZED_NAME_PASSWORD_CHANGE_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PASSWORD_CHANGE_INDICATOR
public static final String SERIALIZED_NAME_PASSWORD_CHANGE_INDICATOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAST_TRANSACTIONS_DAY
public static final String SERIALIZED_NAME_PAST_TRANSACTIONS_DAY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAST_TRANSACTIONS_YEAR
public static final String SERIALIZED_NAME_PAST_TRANSACTIONS_YEAR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_ACCOUNT_AGE
public static final String SERIALIZED_NAME_PAYMENT_ACCOUNT_AGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_ACCOUNT_INDICATOR
public static final String SERIALIZED_NAME_PAYMENT_ACCOUNT_INDICATOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PURCHASES_LAST6_MONTHS
public static final String SERIALIZED_NAME_PURCHASES_LAST6_MONTHS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUSPICIOUS_ACTIVITY
public static final String SERIALIZED_NAME_SUSPICIOUS_ACTIVITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WORK_PHONE
public static final String SERIALIZED_NAME_WORK_PHONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountAgeIndicator
public AccountInfo accountAgeIndicator(AccountInfo.AccountAgeIndicatorEnum accountAgeIndicator)
-
getAccountAgeIndicator
public AccountInfo.AccountAgeIndicatorEnum getAccountAgeIndicator()
Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days- Returns:
- accountAgeIndicator
-
setAccountAgeIndicator
public void setAccountAgeIndicator(AccountInfo.AccountAgeIndicatorEnum accountAgeIndicator)
-
accountChangeDate
public AccountInfo accountChangeDate(OffsetDateTime accountChangeDate)
-
getAccountChangeDate
public OffsetDateTime getAccountChangeDate()
Date when the shopper's account was last changed.- Returns:
- accountChangeDate
-
setAccountChangeDate
public void setAccountChangeDate(OffsetDateTime accountChangeDate)
-
accountChangeIndicator
public AccountInfo accountChangeIndicator(AccountInfo.AccountChangeIndicatorEnum accountChangeIndicator)
-
getAccountChangeIndicator
public AccountInfo.AccountChangeIndicatorEnum getAccountChangeIndicator()
Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days- Returns:
- accountChangeIndicator
-
setAccountChangeIndicator
public void setAccountChangeIndicator(AccountInfo.AccountChangeIndicatorEnum accountChangeIndicator)
-
accountCreationDate
public AccountInfo accountCreationDate(OffsetDateTime accountCreationDate)
-
getAccountCreationDate
public OffsetDateTime getAccountCreationDate()
Date when the shopper's account was created.- Returns:
- accountCreationDate
-
setAccountCreationDate
public void setAccountCreationDate(OffsetDateTime accountCreationDate)
-
accountType
public AccountInfo accountType(AccountInfo.AccountTypeEnum accountType)
-
getAccountType
public AccountInfo.AccountTypeEnum getAccountType()
Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit- Returns:
- accountType
-
setAccountType
public void setAccountType(AccountInfo.AccountTypeEnum accountType)
-
addCardAttemptsDay
public AccountInfo addCardAttemptsDay(Integer addCardAttemptsDay)
-
getAddCardAttemptsDay
public Integer getAddCardAttemptsDay()
Number of attempts the shopper tried to add a card to their account in the last day.- Returns:
- addCardAttemptsDay
-
setAddCardAttemptsDay
public void setAddCardAttemptsDay(Integer addCardAttemptsDay)
-
deliveryAddressUsageDate
public AccountInfo deliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageDate)
-
getDeliveryAddressUsageDate
public OffsetDateTime getDeliveryAddressUsageDate()
Date the selected delivery address was first used.- Returns:
- deliveryAddressUsageDate
-
setDeliveryAddressUsageDate
public void setDeliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageDate)
-
deliveryAddressUsageIndicator
public AccountInfo deliveryAddressUsageIndicator(AccountInfo.DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator)
-
getDeliveryAddressUsageIndicator
public AccountInfo.DeliveryAddressUsageIndicatorEnum getDeliveryAddressUsageIndicator()
Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days- Returns:
- deliveryAddressUsageIndicator
-
setDeliveryAddressUsageIndicator
public void setDeliveryAddressUsageIndicator(AccountInfo.DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator)
-
homePhone
@Deprecated public AccountInfo homePhone(String homePhone)
Deprecated.
-
getHomePhone
@Deprecated public String getHomePhone()
Deprecated.Shopper's home phone number (including the country code).- Returns:
- homePhone
-
setHomePhone
@Deprecated public void setHomePhone(String homePhone)
Deprecated.
-
mobilePhone
@Deprecated public AccountInfo mobilePhone(String mobilePhone)
Deprecated.
-
getMobilePhone
@Deprecated public String getMobilePhone()
Deprecated.Shopper's mobile phone number (including the country code).- Returns:
- mobilePhone
-
setMobilePhone
@Deprecated public void setMobilePhone(String mobilePhone)
Deprecated.
-
passwordChangeDate
public AccountInfo passwordChangeDate(OffsetDateTime passwordChangeDate)
-
getPasswordChangeDate
public OffsetDateTime getPasswordChangeDate()
Date when the shopper last changed their password.- Returns:
- passwordChangeDate
-
setPasswordChangeDate
public void setPasswordChangeDate(OffsetDateTime passwordChangeDate)
-
passwordChangeIndicator
public AccountInfo passwordChangeIndicator(AccountInfo.PasswordChangeIndicatorEnum passwordChangeIndicator)
-
getPasswordChangeIndicator
public AccountInfo.PasswordChangeIndicatorEnum getPasswordChangeIndicator()
Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days- Returns:
- passwordChangeIndicator
-
setPasswordChangeIndicator
public void setPasswordChangeIndicator(AccountInfo.PasswordChangeIndicatorEnum passwordChangeIndicator)
-
pastTransactionsDay
public AccountInfo pastTransactionsDay(Integer pastTransactionsDay)
-
getPastTransactionsDay
public Integer getPastTransactionsDay()
Number of all transactions (successful and abandoned) from this shopper in the past 24 hours.- Returns:
- pastTransactionsDay
-
setPastTransactionsDay
public void setPastTransactionsDay(Integer pastTransactionsDay)
-
pastTransactionsYear
public AccountInfo pastTransactionsYear(Integer pastTransactionsYear)
-
getPastTransactionsYear
public Integer getPastTransactionsYear()
Number of all transactions (successful and abandoned) from this shopper in the past year.- Returns:
- pastTransactionsYear
-
setPastTransactionsYear
public void setPastTransactionsYear(Integer pastTransactionsYear)
-
paymentAccountAge
public AccountInfo paymentAccountAge(OffsetDateTime paymentAccountAge)
-
getPaymentAccountAge
public OffsetDateTime getPaymentAccountAge()
Date this payment method was added to the shopper's account.- Returns:
- paymentAccountAge
-
setPaymentAccountAge
public void setPaymentAccountAge(OffsetDateTime paymentAccountAge)
-
paymentAccountIndicator
public AccountInfo paymentAccountIndicator(AccountInfo.PaymentAccountIndicatorEnum paymentAccountIndicator)
-
getPaymentAccountIndicator
public AccountInfo.PaymentAccountIndicatorEnum getPaymentAccountIndicator()
Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days- Returns:
- paymentAccountIndicator
-
setPaymentAccountIndicator
public void setPaymentAccountIndicator(AccountInfo.PaymentAccountIndicatorEnum paymentAccountIndicator)
-
purchasesLast6Months
public AccountInfo purchasesLast6Months(Integer purchasesLast6Months)
-
getPurchasesLast6Months
public Integer getPurchasesLast6Months()
Number of successful purchases in the last six months.- Returns:
- purchasesLast6Months
-
setPurchasesLast6Months
public void setPurchasesLast6Months(Integer purchasesLast6Months)
-
suspiciousActivity
public AccountInfo suspiciousActivity(Boolean suspiciousActivity)
-
getSuspiciousActivity
public Boolean getSuspiciousActivity()
Whether suspicious activity was recorded on this account.- Returns:
- suspiciousActivity
-
setSuspiciousActivity
public void setSuspiciousActivity(Boolean suspiciousActivity)
-
workPhone
@Deprecated public AccountInfo workPhone(String workPhone)
Deprecated.
-
getWorkPhone
@Deprecated public String getWorkPhone()
Deprecated.Shopper's work phone number (including the country code).- Returns:
- workPhone
-
setWorkPhone
@Deprecated public void setWorkPhone(String workPhone)
Deprecated.
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to AccountInfo
-
fromJson
public static AccountInfo fromJson(String jsonString) throws IOException
Create an instance of AccountInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountInfo
- Throws:
IOException- if the JSON string is invalid with respect to AccountInfo
-
toJson
public String toJson()
Convert an instance of AccountInfo to an JSON string- Returns:
- JSON string
-
-