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 -
        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
      • 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 AccountInfo instance, 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 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
      • 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 AccountInfo instance, 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 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
      • 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 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
      • 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 AccountInfo instance, 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 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
      • 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 Checkout API v68 Use `ThreeDS2RequestData.homePhone` instead.
        Shopper's home phone number (including the country code).
        Parameters:
        homePhone -
        Returns:
        the current AccountInfo instance, allowing for method chaining
      • getHomePhone

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

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

        @Deprecated
        public String getWorkPhone()
        Deprecated.
        since Adyen Checkout 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 Checkout 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.
        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