Package com.adyen.model.checkout
Class AccountInfo
- java.lang.Object
-
- com.adyen.model.checkout.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.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
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_AGE_INDICATORstatic StringJSON_PROPERTY_ACCOUNT_CHANGE_DATEstatic StringJSON_PROPERTY_ACCOUNT_CHANGE_INDICATORstatic StringJSON_PROPERTY_ACCOUNT_CREATION_DATEstatic StringJSON_PROPERTY_ACCOUNT_TYPEstatic StringJSON_PROPERTY_ADD_CARD_ATTEMPTS_DAYstatic StringJSON_PROPERTY_DELIVERY_ADDRESS_USAGE_DATEstatic StringJSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATORstatic StringJSON_PROPERTY_HOME_PHONEstatic StringJSON_PROPERTY_MOBILE_PHONEstatic StringJSON_PROPERTY_PASSWORD_CHANGE_DATEstatic StringJSON_PROPERTY_PASSWORD_CHANGE_INDICATORstatic StringJSON_PROPERTY_PAST_TRANSACTIONS_DAYstatic StringJSON_PROPERTY_PAST_TRANSACTIONS_YEARstatic StringJSON_PROPERTY_PAYMENT_ACCOUNT_AGEstatic StringJSON_PROPERTY_PAYMENT_ACCOUNT_INDICATORstatic StringJSON_PROPERTY_PURCHASES_LAST6_MONTHSstatic StringJSON_PROPERTY_SUSPICIOUS_ACTIVITYstatic StringJSON_PROPERTY_WORK_PHONE
-
Constructor Summary
Constructors Constructor Description AccountInfo()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_AGE_INDICATOR
public static final String JSON_PROPERTY_ACCOUNT_AGE_INDICATOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACCOUNT_CHANGE_DATE
public static final String JSON_PROPERTY_ACCOUNT_CHANGE_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACCOUNT_CHANGE_INDICATOR
public static final String JSON_PROPERTY_ACCOUNT_CHANGE_INDICATOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACCOUNT_CREATION_DATE
public static final String JSON_PROPERTY_ACCOUNT_CREATION_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACCOUNT_TYPE
public static final String JSON_PROPERTY_ACCOUNT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ADD_CARD_ATTEMPTS_DAY
public static final String JSON_PROPERTY_ADD_CARD_ATTEMPTS_DAY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_DATE
public static final String JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR
public static final String JSON_PROPERTY_DELIVERY_ADDRESS_USAGE_INDICATOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HOME_PHONE
public static final String JSON_PROPERTY_HOME_PHONE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MOBILE_PHONE
public static final String JSON_PROPERTY_MOBILE_PHONE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PASSWORD_CHANGE_DATE
public static final String JSON_PROPERTY_PASSWORD_CHANGE_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PASSWORD_CHANGE_INDICATOR
public static final String JSON_PROPERTY_PASSWORD_CHANGE_INDICATOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAST_TRANSACTIONS_DAY
public static final String JSON_PROPERTY_PAST_TRANSACTIONS_DAY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAST_TRANSACTIONS_YEAR
public static final String JSON_PROPERTY_PAST_TRANSACTIONS_YEAR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_ACCOUNT_AGE
public static final String JSON_PROPERTY_PAYMENT_ACCOUNT_AGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_ACCOUNT_INDICATOR
public static final String JSON_PROPERTY_PAYMENT_ACCOUNT_INDICATOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PURCHASES_LAST6_MONTHS
public static final String JSON_PROPERTY_PURCHASES_LAST6_MONTHS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUSPICIOUS_ACTIVITY
public static final String JSON_PROPERTY_SUSPICIOUS_ACTIVITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WORK_PHONE
public static final String JSON_PROPERTY_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
public AccountInfo homePhone(String homePhone)
-
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
public AccountInfo mobilePhone(String mobilePhone)
-
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
public AccountInfo workPhone(String workPhone)
-
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.
-
equals
public boolean equals(Object o)
Return true if this AccountInfo object is equal to o.
-
fromJson
public static AccountInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AccountInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AccountInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AccountInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-