Class AccountInfo


  • public class AccountInfo
    extends Object
    AccountInfo
    • Constructor Detail

      • AccountInfo

        public AccountInfo()
    • 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 - 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:
        the current AccountInfo instance, 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 Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
      • 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 - Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
      • accountChangeDate

        public AccountInfo accountChangeDate​(OffsetDateTime accountChangeDate)
        Date when the shopper's account was last changed.
        Parameters:
        accountChangeDate - Date when the shopper's account was last changed.
        Returns:
        the current AccountInfo instance, allowing for method chaining
      • getAccountChangeDate

        public OffsetDateTime getAccountChangeDate()
        Date when the shopper's account was last changed.
        Returns:
        accountChangeDate Date when the shopper's account was last changed.
      • setAccountChangeDate

        public void setAccountChangeDate​(OffsetDateTime accountChangeDate)
        Date when the shopper's account was last changed.
        Parameters:
        accountChangeDate - Date when the shopper's account was last changed.
      • 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 - Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
        Returns:
        the current AccountInfo instance, 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 Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
      • 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 - Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
      • accountCreationDate

        public AccountInfo accountCreationDate​(OffsetDateTime accountCreationDate)
        Date when the shopper's account was created.
        Parameters:
        accountCreationDate - Date when the shopper's account was created.
        Returns:
        the current AccountInfo instance, allowing for method chaining
      • getAccountCreationDate

        public OffsetDateTime getAccountCreationDate()
        Date when the shopper's account was created.
        Returns:
        accountCreationDate Date when the shopper's account was created.
      • setAccountCreationDate

        public void setAccountCreationDate​(OffsetDateTime accountCreationDate)
        Date when the shopper's account was created.
        Parameters:
        accountCreationDate - Date when the shopper's account was created.
      • 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 - Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit
        Returns:
        the current AccountInfo instance, 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 Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit
      • 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 - Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit
      • 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 - Number of attempts the shopper tried to add a card to their account in the last day.
        Returns:
        the current AccountInfo instance, 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 Number of attempts the shopper tried to add a card to their account in the last day.
      • 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 - Number of attempts the shopper tried to add a card to their account in the last day.
      • deliveryAddressUsageDate

        public AccountInfo deliveryAddressUsageDate​(OffsetDateTime deliveryAddressUsageDate)
        Date the selected delivery address was first used.
        Parameters:
        deliveryAddressUsageDate - Date the selected delivery address was first used.
        Returns:
        the current AccountInfo instance, allowing for method chaining
      • getDeliveryAddressUsageDate

        public OffsetDateTime getDeliveryAddressUsageDate()
        Date the selected delivery address was first used.
        Returns:
        deliveryAddressUsageDate Date the selected delivery address was first used.
      • setDeliveryAddressUsageDate

        public void setDeliveryAddressUsageDate​(OffsetDateTime deliveryAddressUsageDate)
        Date the selected delivery address was first used.
        Parameters:
        deliveryAddressUsageDate - Date the selected delivery address was first used.
      • 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 - Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
        Returns:
        the current AccountInfo instance, 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 Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
      • 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 - Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
      • homePhone

        @Deprecated
        public AccountInfo homePhone​(String homePhone)
        Deprecated.
        since Adyen Checkout API v68 Use `ThreeDS2RequestData.homePhone` instead.
        Shopper's home phone number (including the country code).
        Parameters:
        homePhone - Shopper's home phone number (including the country code).
        Returns:
        the current AccountInfo instance, allowing for method chaining
      • getHomePhone

        @Deprecated
        public String getHomePhone()
        Deprecated.
        // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.homePhone` instead.
        Shopper's home phone number (including the country code).
        Returns:
        homePhone Shopper's home phone number (including the country code).
      • setHomePhone

        @Deprecated
        public void setHomePhone​(String homePhone)
        Deprecated.
        since Adyen Checkout API v68 Use `ThreeDS2RequestData.homePhone` instead.
        Shopper's home phone number (including the country code).
        Parameters:
        homePhone - Shopper's home phone number (including the country code).
      • mobilePhone

        @Deprecated
        public AccountInfo mobilePhone​(String mobilePhone)
        Deprecated.
        since Adyen Checkout API v68 Use `ThreeDS2RequestData.mobilePhone` instead.
        Shopper's mobile phone number (including the country code).
        Parameters:
        mobilePhone - Shopper's mobile phone number (including the country code).
        Returns:
        the current AccountInfo instance, allowing for method chaining
      • getMobilePhone

        @Deprecated
        public String getMobilePhone()
        Deprecated.
        // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.mobilePhone` instead.
        Shopper's mobile phone number (including the country code).
        Returns:
        mobilePhone Shopper's mobile phone number (including the country code).
      • setMobilePhone

        @Deprecated
        public void setMobilePhone​(String mobilePhone)
        Deprecated.
        since Adyen Checkout API v68 Use `ThreeDS2RequestData.mobilePhone` instead.
        Shopper's mobile phone number (including the country code).
        Parameters:
        mobilePhone - Shopper's mobile phone number (including the country code).
      • passwordChangeDate

        public AccountInfo passwordChangeDate​(OffsetDateTime passwordChangeDate)
        Date when the shopper last changed their password.
        Parameters:
        passwordChangeDate - Date when the shopper last changed their password.
        Returns:
        the current AccountInfo instance, allowing for method chaining
      • getPasswordChangeDate

        public OffsetDateTime getPasswordChangeDate()
        Date when the shopper last changed their password.
        Returns:
        passwordChangeDate Date when the shopper last changed their password.
      • setPasswordChangeDate

        public void setPasswordChangeDate​(OffsetDateTime passwordChangeDate)
        Date when the shopper last changed their password.
        Parameters:
        passwordChangeDate - Date when the shopper last changed their password.
      • passwordChangeIndicator

        public AccountInfo passwordChangeIndicator​(AccountInfo.PasswordChangeIndicatorEnum passwordChangeIndicator)
        Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
        Parameters:
        passwordChangeIndicator - Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
        Returns:
        the current AccountInfo instance, 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 Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
      • setPasswordChangeIndicator

        public void setPasswordChangeIndicator​(AccountInfo.PasswordChangeIndicatorEnum passwordChangeIndicator)
        Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
        Parameters:
        passwordChangeIndicator - Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
      • pastTransactionsDay

        public AccountInfo pastTransactionsDay​(Integer pastTransactionsDay)
        Number of all transactions (successful and abandoned) from this shopper in the past 24 hours.
        Parameters:
        pastTransactionsDay - Number of all transactions (successful and abandoned) from this shopper in the past 24 hours.
        Returns:
        the current AccountInfo instance, 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 Number of all transactions (successful and abandoned) from this shopper in the past 24 hours.
      • setPastTransactionsDay

        public void setPastTransactionsDay​(Integer pastTransactionsDay)
        Number of all transactions (successful and abandoned) from this shopper in the past 24 hours.
        Parameters:
        pastTransactionsDay - Number of all transactions (successful and abandoned) from this shopper in the past 24 hours.
      • pastTransactionsYear

        public AccountInfo pastTransactionsYear​(Integer pastTransactionsYear)
        Number of all transactions (successful and abandoned) from this shopper in the past year.
        Parameters:
        pastTransactionsYear - Number of all transactions (successful and abandoned) from this shopper in the past year.
        Returns:
        the current AccountInfo instance, allowing for method chaining
      • getPastTransactionsYear

        public Integer getPastTransactionsYear()
        Number of all transactions (successful and abandoned) from this shopper in the past year.
        Returns:
        pastTransactionsYear Number of all transactions (successful and abandoned) from this shopper in the past year.
      • setPastTransactionsYear

        public void setPastTransactionsYear​(Integer pastTransactionsYear)
        Number of all transactions (successful and abandoned) from this shopper in the past year.
        Parameters:
        pastTransactionsYear - Number of all transactions (successful and abandoned) from this shopper in the past year.
      • paymentAccountAge

        public AccountInfo paymentAccountAge​(OffsetDateTime paymentAccountAge)
        Date this payment method was added to the shopper's account.
        Parameters:
        paymentAccountAge - Date this payment method was added to the shopper's account.
        Returns:
        the current AccountInfo instance, allowing for method chaining
      • getPaymentAccountAge

        public OffsetDateTime getPaymentAccountAge()
        Date this payment method was added to the shopper's account.
        Returns:
        paymentAccountAge Date this payment method was added to the shopper's account.
      • setPaymentAccountAge

        public void setPaymentAccountAge​(OffsetDateTime paymentAccountAge)
        Date this payment method was added to the shopper's account.
        Parameters:
        paymentAccountAge - Date this payment method was added to the shopper's account.
      • 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 - 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:
        the current AccountInfo instance, 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 Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
      • 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 - Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
      • purchasesLast6Months

        public AccountInfo purchasesLast6Months​(Integer purchasesLast6Months)
        Number of successful purchases in the last six months.
        Parameters:
        purchasesLast6Months - Number of successful purchases in the last six months.
        Returns:
        the current AccountInfo instance, allowing for method chaining
      • getPurchasesLast6Months

        public Integer getPurchasesLast6Months()
        Number of successful purchases in the last six months.
        Returns:
        purchasesLast6Months Number of successful purchases in the last six months.
      • setPurchasesLast6Months

        public void setPurchasesLast6Months​(Integer purchasesLast6Months)
        Number of successful purchases in the last six months.
        Parameters:
        purchasesLast6Months - Number of successful purchases in the last six months.
      • suspiciousActivity

        public AccountInfo suspiciousActivity​(Boolean suspiciousActivity)
        Whether suspicious activity was recorded on this account.
        Parameters:
        suspiciousActivity - Whether suspicious activity was recorded on this account.
        Returns:
        the current AccountInfo instance, allowing for method chaining
      • getSuspiciousActivity

        public Boolean getSuspiciousActivity()
        Whether suspicious activity was recorded on this account.
        Returns:
        suspiciousActivity Whether suspicious activity was recorded on this account.
      • setSuspiciousActivity

        public void setSuspiciousActivity​(Boolean suspiciousActivity)
        Whether suspicious activity was recorded on this account.
        Parameters:
        suspiciousActivity - Whether suspicious activity was recorded on this account.
      • workPhone

        @Deprecated
        public AccountInfo workPhone​(String workPhone)
        Deprecated.
        since Adyen Checkout API v68 Use `ThreeDS2RequestData.workPhone` instead.
        Shopper's work phone number (including the country code).
        Parameters:
        workPhone - Shopper's work phone number (including the country code).
        Returns:
        the current AccountInfo instance, allowing for method chaining
      • getWorkPhone

        @Deprecated
        public String getWorkPhone()
        Deprecated.
        // deprecated since Adyen Checkout API v68: Use `ThreeDS2RequestData.workPhone` instead.
        Shopper's work phone number (including the country code).
        Returns:
        workPhone Shopper's work phone number (including the country code).
      • setWorkPhone

        @Deprecated
        public void setWorkPhone​(String workPhone)
        Deprecated.
        since Adyen Checkout API v68 Use `ThreeDS2RequestData.workPhone` instead.
        Shopper's work phone number (including the country code).
        Parameters:
        workPhone - Shopper's work phone number (including the country code).
      • equals

        public boolean equals​(Object o)
        Return true if this AccountInfo object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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