Class CreateCompanyUserRequest


  • public class CreateCompanyUserRequest
    extends Object
    CreateCompanyUserRequest
    • Constructor Detail

      • CreateCompanyUserRequest

        public CreateCompanyUserRequest()
    • Method Detail

      • accountGroups

        public CreateCompanyUserRequest accountGroups​(List<String> accountGroups)
        The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.
        Parameters:
        accountGroups - The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.
        Returns:
        the current CreateCompanyUserRequest instance, allowing for method chaining
      • getAccountGroups

        public List<String> getAccountGroups()
        The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.
        Returns:
        accountGroups The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.
      • setAccountGroups

        public void setAccountGroups​(List<String> accountGroups)
        The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.
        Parameters:
        accountGroups - The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.
      • associatedMerchantAccounts

        public CreateCompanyUserRequest associatedMerchantAccounts​(List<String> associatedMerchantAccounts)
        The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user.
        Parameters:
        associatedMerchantAccounts - The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user.
        Returns:
        the current CreateCompanyUserRequest instance, allowing for method chaining
      • getAssociatedMerchantAccounts

        public List<String> getAssociatedMerchantAccounts()
        The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user.
        Returns:
        associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user.
      • setAssociatedMerchantAccounts

        public void setAssociatedMerchantAccounts​(List<String> associatedMerchantAccounts)
        The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user.
        Parameters:
        associatedMerchantAccounts - The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user.
      • email

        public CreateCompanyUserRequest email​(String email)
        The email address of the user.
        Parameters:
        email - The email address of the user.
        Returns:
        the current CreateCompanyUserRequest instance, allowing for method chaining
      • getEmail

        public String getEmail()
        The email address of the user.
        Returns:
        email The email address of the user.
      • setEmail

        public void setEmail​(String email)
        The email address of the user.
        Parameters:
        email - The email address of the user.
      • loginMethod

        public CreateCompanyUserRequest loginMethod​(String loginMethod)
        The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Email** or **SSO**
        Parameters:
        loginMethod - The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Email** or **SSO**
        Returns:
        the current CreateCompanyUserRequest instance, allowing for method chaining
      • getLoginMethod

        public String getLoginMethod()
        The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Email** or **SSO**
        Returns:
        loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Email** or **SSO**
      • setLoginMethod

        public void setLoginMethod​(String loginMethod)
        The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Email** or **SSO**
        Parameters:
        loginMethod - The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Email** or **SSO**
      • name

        public CreateCompanyUserRequest name​(Name name)
        name
        Parameters:
        name -
        Returns:
        the current CreateCompanyUserRequest instance, allowing for method chaining
      • getName

        public Name getName()
        Get name
        Returns:
        name
      • setName

        public void setName​(Name name)
        name
        Parameters:
        name -
      • roles

        public CreateCompanyUserRequest roles​(List<String> roles)
        The list of [roles](https://docs.adyen.com/account/user-roles) for this user.
        Parameters:
        roles - The list of [roles](https://docs.adyen.com/account/user-roles) for this user.
        Returns:
        the current CreateCompanyUserRequest instance, allowing for method chaining
      • getRoles

        public List<String> getRoles()
        The list of [roles](https://docs.adyen.com/account/user-roles) for this user.
        Returns:
        roles The list of [roles](https://docs.adyen.com/account/user-roles) for this user.
      • setRoles

        public void setRoles​(List<String> roles)
        The list of [roles](https://docs.adyen.com/account/user-roles) for this user.
        Parameters:
        roles - The list of [roles](https://docs.adyen.com/account/user-roles) for this user.
      • timeZoneCode

        public CreateCompanyUserRequest timeZoneCode​(String timeZoneCode)
        The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**.
        Parameters:
        timeZoneCode - The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**.
        Returns:
        the current CreateCompanyUserRequest instance, allowing for method chaining
      • getTimeZoneCode

        public String getTimeZoneCode()
        The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**.
        Returns:
        timeZoneCode The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**.
      • setTimeZoneCode

        public void setTimeZoneCode​(String timeZoneCode)
        The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**.
        Parameters:
        timeZoneCode - The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**.
      • username

        public CreateCompanyUserRequest username​(String username)
        The user's email address that will be their username. Must be the same as the one in the `email` field.
        Parameters:
        username - The user's email address that will be their username. Must be the same as the one in the `email` field.
        Returns:
        the current CreateCompanyUserRequest instance, allowing for method chaining
      • getUsername

        public String getUsername()
        The user's email address that will be their username. Must be the same as the one in the `email` field.
        Returns:
        username The user's email address that will be their username. Must be the same as the one in the `email` field.
      • setUsername

        public void setUsername​(String username)
        The user's email address that will be their username. Must be the same as the one in the `email` field.
        Parameters:
        username - The user's email address that will be their username. Must be the same as the one in the `email` field.
      • includeNullValues

        public CreateCompanyUserRequest includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getExplicitNulls

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • fromJson

        public static CreateCompanyUserRequest fromJson​(String jsonString)
                                                 throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of CreateCompanyUserRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CreateCompanyUserRequest
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to CreateCompanyUserRequest
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of CreateCompanyUserRequest to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException