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.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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AccountInfoaccountAgeIndicator(AccountInfo.AccountAgeIndicatorEnum accountAgeIndicator)Indicator for the length of time since this shopper account was created in the merchant's environment.AccountInfoaccountChangeDate(OffsetDateTime accountChangeDate)Date when the shopper's account was last changed.AccountInfoaccountChangeIndicator(AccountInfo.AccountChangeIndicatorEnum accountChangeIndicator)Indicator for the length of time since the shopper's account was last updated.AccountInfoaccountCreationDate(OffsetDateTime accountCreationDate)Date when the shopper's account was created.AccountInfoaccountType(AccountInfo.AccountTypeEnum accountType)Indicates the type of account.AccountInfoaddCardAttemptsDay(Integer addCardAttemptsDay)Number of attempts the shopper tried to add a card to their account in the last day.AccountInfodeliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageDate)Date the selected delivery address was first used.AccountInfodeliveryAddressUsageIndicator(AccountInfo.DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator)Indicator for the length of time since this delivery address was first used.booleanequals(Object o)Return true if this AccountInfo object is equal to 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.since Adyen Payment API v68 Use `ThreeDS2RequestData.homePhone` instead.StringgetMobilePhone()Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.mobilePhone` instead.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.since Adyen Payment API v68 Use `ThreeDS2RequestData.workPhone` instead.inthashCode()AccountInfohomePhone(String homePhone)Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.homePhone` instead.AccountInfomobilePhone(String mobilePhone)Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.mobilePhone` instead.AccountInfopasswordChangeDate(OffsetDateTime passwordChangeDate)Date when the shopper last changed their password.AccountInfopasswordChangeIndicator(AccountInfo.PasswordChangeIndicatorEnum passwordChangeIndicator)Indicator when the shopper has changed their password.AccountInfopastTransactionsDay(Integer pastTransactionsDay)Number of all transactions (successful and abandoned) from this shopper in the past 24 hours.AccountInfopastTransactionsYear(Integer pastTransactionsYear)Number of all transactions (successful and abandoned) from this shopper in the past year.AccountInfopaymentAccountAge(OffsetDateTime paymentAccountAge)Date this payment method was added to the shopper's account.AccountInfopaymentAccountIndicator(AccountInfo.PaymentAccountIndicatorEnum paymentAccountIndicator)Indicator for the length of time since this payment method was added to this shopper's account.AccountInfopurchasesLast6Months(Integer purchasesLast6Months)Number of successful purchases in the last six months.voidsetAccountAgeIndicator(AccountInfo.AccountAgeIndicatorEnum accountAgeIndicator)Indicator for the length of time since this shopper account was created in the merchant's environment.voidsetAccountChangeDate(OffsetDateTime accountChangeDate)Date when the shopper's account was last changed.voidsetAccountChangeIndicator(AccountInfo.AccountChangeIndicatorEnum accountChangeIndicator)Indicator for the length of time since the shopper's account was last updated.voidsetAccountCreationDate(OffsetDateTime accountCreationDate)Date when the shopper's account was created.voidsetAccountType(AccountInfo.AccountTypeEnum accountType)Indicates the type of account.voidsetAddCardAttemptsDay(Integer addCardAttemptsDay)Number of attempts the shopper tried to add a card to their account in the last day.voidsetDeliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageDate)Date the selected delivery address was first used.voidsetDeliveryAddressUsageIndicator(AccountInfo.DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator)Indicator for the length of time since this delivery address was first used.voidsetHomePhone(String homePhone)Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.homePhone` instead.voidsetMobilePhone(String mobilePhone)Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.mobilePhone` instead.voidsetPasswordChangeDate(OffsetDateTime passwordChangeDate)Date when the shopper last changed their password.voidsetPasswordChangeIndicator(AccountInfo.PasswordChangeIndicatorEnum passwordChangeIndicator)Indicator when the shopper has changed their password.voidsetPastTransactionsDay(Integer pastTransactionsDay)Number of all transactions (successful and abandoned) from this shopper in the past 24 hours.voidsetPastTransactionsYear(Integer pastTransactionsYear)Number of all transactions (successful and abandoned) from this shopper in the past year.voidsetPaymentAccountAge(OffsetDateTime paymentAccountAge)Date this payment method was added to the shopper's account.voidsetPaymentAccountIndicator(AccountInfo.PaymentAccountIndicatorEnum paymentAccountIndicator)Indicator for the length of time since this payment method was added to this shopper's account.voidsetPurchasesLast6Months(Integer purchasesLast6Months)Number of successful purchases in the last six months.voidsetSuspiciousActivity(Boolean suspiciousActivity)Whether suspicious activity was recorded on this account.voidsetWorkPhone(String workPhone)Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.workPhone` instead.AccountInfosuspiciousActivity(Boolean suspiciousActivity)Whether suspicious activity was recorded on this account.StringtoJson()Convert an instance of AccountInfo to an JSON stringStringtoString()AccountInfoworkPhone(String workPhone)Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.workPhone` instead.
-
-
-
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)
Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days- Parameters:
accountAgeIndicator-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
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)
Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days- Parameters:
accountAgeIndicator-
-
accountChangeDate
public AccountInfo accountChangeDate(OffsetDateTime accountChangeDate)
Date when the shopper's account was last changed.- Parameters:
accountChangeDate-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
getAccountChangeDate
public OffsetDateTime getAccountChangeDate()
Date when the shopper's account was last changed.- Returns:
- accountChangeDate
-
setAccountChangeDate
public void setAccountChangeDate(OffsetDateTime accountChangeDate)
Date when the shopper's account was last changed.- Parameters:
accountChangeDate-
-
accountChangeIndicator
public AccountInfo accountChangeIndicator(AccountInfo.AccountChangeIndicatorEnum accountChangeIndicator)
Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days- Parameters:
accountChangeIndicator-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
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)
Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days- Parameters:
accountChangeIndicator-
-
accountCreationDate
public AccountInfo accountCreationDate(OffsetDateTime accountCreationDate)
Date when the shopper's account was created.- Parameters:
accountCreationDate-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
getAccountCreationDate
public OffsetDateTime getAccountCreationDate()
Date when the shopper's account was created.- Returns:
- accountCreationDate
-
setAccountCreationDate
public void setAccountCreationDate(OffsetDateTime accountCreationDate)
Date when the shopper's account was created.- Parameters:
accountCreationDate-
-
accountType
public AccountInfo accountType(AccountInfo.AccountTypeEnum accountType)
Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit- Parameters:
accountType-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
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)
Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit- Parameters:
accountType-
-
addCardAttemptsDay
public AccountInfo addCardAttemptsDay(Integer addCardAttemptsDay)
Number of attempts the shopper tried to add a card to their account in the last day.- Parameters:
addCardAttemptsDay-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
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)
Number of attempts the shopper tried to add a card to their account in the last day.- Parameters:
addCardAttemptsDay-
-
deliveryAddressUsageDate
public AccountInfo deliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageDate)
Date the selected delivery address was first used.- Parameters:
deliveryAddressUsageDate-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
getDeliveryAddressUsageDate
public OffsetDateTime getDeliveryAddressUsageDate()
Date the selected delivery address was first used.- Returns:
- deliveryAddressUsageDate
-
setDeliveryAddressUsageDate
public void setDeliveryAddressUsageDate(OffsetDateTime deliveryAddressUsageDate)
Date the selected delivery address was first used.- Parameters:
deliveryAddressUsageDate-
-
deliveryAddressUsageIndicator
public AccountInfo deliveryAddressUsageIndicator(AccountInfo.DeliveryAddressUsageIndicatorEnum deliveryAddressUsageIndicator)
Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days- Parameters:
deliveryAddressUsageIndicator-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
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)
Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days- Parameters:
deliveryAddressUsageIndicator-
-
homePhone
@Deprecated public AccountInfo homePhone(String homePhone)
Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.homePhone` instead.Shopper's home phone number (including the country code).- Parameters:
homePhone-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
getHomePhone
@Deprecated public String getHomePhone()
Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.homePhone` instead.Shopper's home phone number (including the country code).- Returns:
- homePhone
-
setHomePhone
@Deprecated public void setHomePhone(String homePhone)
Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.homePhone` instead.Shopper's home phone number (including the country code).- Parameters:
homePhone-
-
mobilePhone
@Deprecated public AccountInfo mobilePhone(String mobilePhone)
Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.mobilePhone` instead.Shopper's mobile phone number (including the country code).- Parameters:
mobilePhone-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
getMobilePhone
@Deprecated public String getMobilePhone()
Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.mobilePhone` instead.Shopper's mobile phone number (including the country code).- Returns:
- mobilePhone
-
setMobilePhone
@Deprecated public void setMobilePhone(String mobilePhone)
Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.mobilePhone` instead.Shopper's mobile phone number (including the country code).- Parameters:
mobilePhone-
-
passwordChangeDate
public AccountInfo passwordChangeDate(OffsetDateTime passwordChangeDate)
Date when the shopper last changed their password.- Parameters:
passwordChangeDate-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
getPasswordChangeDate
public OffsetDateTime getPasswordChangeDate()
Date when the shopper last changed their password.- Returns:
- passwordChangeDate
-
setPasswordChangeDate
public void setPasswordChangeDate(OffsetDateTime passwordChangeDate)
Date when the shopper last changed their password.- Parameters:
passwordChangeDate-
-
passwordChangeIndicator
public AccountInfo passwordChangeIndicator(AccountInfo.PasswordChangeIndicatorEnum passwordChangeIndicator)
Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days- Parameters:
passwordChangeIndicator-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
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)
Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days- Parameters:
passwordChangeIndicator-
-
pastTransactionsDay
public AccountInfo pastTransactionsDay(Integer pastTransactionsDay)
Number of all transactions (successful and abandoned) from this shopper in the past 24 hours.- Parameters:
pastTransactionsDay-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
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)
Number of all transactions (successful and abandoned) from this shopper in the past 24 hours.- Parameters:
pastTransactionsDay-
-
pastTransactionsYear
public AccountInfo pastTransactionsYear(Integer pastTransactionsYear)
Number of all transactions (successful and abandoned) from this shopper in the past year.- Parameters:
pastTransactionsYear-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
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)
Number of all transactions (successful and abandoned) from this shopper in the past year.- Parameters:
pastTransactionsYear-
-
paymentAccountAge
public AccountInfo paymentAccountAge(OffsetDateTime paymentAccountAge)
Date this payment method was added to the shopper's account.- Parameters:
paymentAccountAge-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
getPaymentAccountAge
public OffsetDateTime getPaymentAccountAge()
Date this payment method was added to the shopper's account.- Returns:
- paymentAccountAge
-
setPaymentAccountAge
public void setPaymentAccountAge(OffsetDateTime paymentAccountAge)
Date this payment method was added to the shopper's account.- Parameters:
paymentAccountAge-
-
paymentAccountIndicator
public AccountInfo paymentAccountIndicator(AccountInfo.PaymentAccountIndicatorEnum paymentAccountIndicator)
Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days- Parameters:
paymentAccountIndicator-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
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)
Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days- Parameters:
paymentAccountIndicator-
-
purchasesLast6Months
public AccountInfo purchasesLast6Months(Integer purchasesLast6Months)
Number of successful purchases in the last six months.- Parameters:
purchasesLast6Months-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
getPurchasesLast6Months
public Integer getPurchasesLast6Months()
Number of successful purchases in the last six months.- Returns:
- purchasesLast6Months
-
setPurchasesLast6Months
public void setPurchasesLast6Months(Integer purchasesLast6Months)
Number of successful purchases in the last six months.- Parameters:
purchasesLast6Months-
-
suspiciousActivity
public AccountInfo suspiciousActivity(Boolean suspiciousActivity)
Whether suspicious activity was recorded on this account.- Parameters:
suspiciousActivity-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
getSuspiciousActivity
public Boolean getSuspiciousActivity()
Whether suspicious activity was recorded on this account.- Returns:
- suspiciousActivity
-
setSuspiciousActivity
public void setSuspiciousActivity(Boolean suspiciousActivity)
Whether suspicious activity was recorded on this account.- Parameters:
suspiciousActivity-
-
workPhone
@Deprecated public AccountInfo workPhone(String workPhone)
Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.workPhone` instead.Shopper's work phone number (including the country code).- Parameters:
workPhone-- Returns:
- the current
AccountInfoinstance, allowing for method chaining
-
getWorkPhone
@Deprecated public String getWorkPhone()
Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.workPhone` instead.Shopper's work phone number (including the country code).- Returns:
- workPhone
-
setWorkPhone
@Deprecated public void setWorkPhone(String workPhone)
Deprecated.since Adyen Payment API v68 Use `ThreeDS2RequestData.workPhone` instead.Shopper's work phone number (including the country code).- Parameters:
workPhone-
-
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
-
-