Package com.adyen.model.management
Class CompanyUser
- java.lang.Object
-
- com.adyen.model.management.CompanyUser
-
public class CompanyUser extends Object
CompanyUser
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_GROUPSstatic StringJSON_PROPERTY_ACTIVEstatic StringJSON_PROPERTY_APPSstatic StringJSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTSstatic StringJSON_PROPERTY_EMAILstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_LINKSstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_ROLESstatic StringJSON_PROPERTY_TIME_ZONE_CODEstatic StringJSON_PROPERTY_USERNAME
-
Constructor Summary
Constructors Constructor Description CompanyUser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompanyUseraccountGroups(List<String> accountGroups)The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.CompanyUseractive(Boolean active)Indicates whether this user is active.CompanyUseraddAccountGroupsItem(String accountGroupsItem)CompanyUseraddAppsItem(String appsItem)CompanyUseraddAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem)CompanyUseraddRolesItem(String rolesItem)CompanyUserapps(List<String> apps)Set of apps available to this userCompanyUserassociatedMerchantAccounts(List<String> associatedMerchantAccounts)The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user.CompanyUseremail(String email)The email address of the user.booleanequals(Object o)Return true if this CompanyUser object is equal to o.static CompanyUserfromJson(String jsonString)Create an instance of CompanyUser given an JSON stringList<String>getAccountGroups()The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.BooleangetActive()Indicates whether this user is active.List<String>getApps()Set of apps available to this userList<String>getAssociatedMerchantAccounts()The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user.StringgetEmail()The email address of the user.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetId()The unique identifier of the user.LinksgetLinks()Get linksNamegetName()Get nameList<String>getRoles()The list of [roles](https://docs.adyen.com/account/user-roles) for this user.StringgetTimeZoneCode()The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user.StringgetUsername()The username for this user.inthashCode()CompanyUserid(String id)The unique identifier of the user.CompanyUserincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.CompanyUserlinks(Links links)linksCompanyUsername(Name name)nameCompanyUserroles(List<String> roles)The list of [roles](https://docs.adyen.com/account/user-roles) for this user.voidsetAccountGroups(List<String> accountGroups)The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.voidsetActive(Boolean active)Indicates whether this user is active.voidsetApps(List<String> apps)Set of apps available to this uservoidsetAssociatedMerchantAccounts(List<String> associatedMerchantAccounts)The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user.voidsetEmail(String email)The email address of the user.voidsetId(String id)The unique identifier of the user.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetLinks(Links links)linksvoidsetName(Name name)namevoidsetRoles(List<String> roles)The list of [roles](https://docs.adyen.com/account/user-roles) for this user.voidsetTimeZoneCode(String timeZoneCode)The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user.voidsetUsername(String username)The username for this user.CompanyUsertimeZoneCode(String timeZoneCode)The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user.StringtoJson()Convert an instance of CompanyUser to an JSON stringStringtoString()CompanyUserusername(String username)The username for this user.
-
-
-
Field Detail
-
JSON_PROPERTY_LINKS
public static final String JSON_PROPERTY_LINKS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACCOUNT_GROUPS
public static final String JSON_PROPERTY_ACCOUNT_GROUPS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACTIVE
public static final String JSON_PROPERTY_ACTIVE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_APPS
public static final String JSON_PROPERTY_APPS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS
public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EMAIL
public static final String JSON_PROPERTY_EMAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROLES
public static final String JSON_PROPERTY_ROLES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIME_ZONE_CODE
public static final String JSON_PROPERTY_TIME_ZONE_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USERNAME
public static final String JSON_PROPERTY_USERNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
links
public CompanyUser links(Links links)
links- Parameters:
links-- Returns:
- the current
CompanyUserinstance, allowing for method chaining
-
getLinks
public Links getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(Links links)
links- Parameters:
links-
-
accountGroups
public CompanyUser 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
CompanyUserinstance, allowing for method chaining
-
addAccountGroupsItem
public CompanyUser addAccountGroupsItem(String accountGroupsItem)
-
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.
-
active
public CompanyUser active(Boolean active)
Indicates whether this user is active.- Parameters:
active- Indicates whether this user is active.- Returns:
- the current
CompanyUserinstance, allowing for method chaining
-
getActive
public Boolean getActive()
Indicates whether this user is active.- Returns:
- active Indicates whether this user is active.
-
setActive
public void setActive(Boolean active)
Indicates whether this user is active.- Parameters:
active- Indicates whether this user is active.
-
apps
public CompanyUser apps(List<String> apps)
Set of apps available to this user- Parameters:
apps- Set of apps available to this user- Returns:
- the current
CompanyUserinstance, allowing for method chaining
-
addAppsItem
public CompanyUser addAppsItem(String appsItem)
-
getApps
public List<String> getApps()
Set of apps available to this user- Returns:
- apps Set of apps available to this user
-
setApps
public void setApps(List<String> apps)
Set of apps available to this user- Parameters:
apps- Set of apps available to this user
-
associatedMerchantAccounts
public CompanyUser 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
CompanyUserinstance, allowing for method chaining
-
addAssociatedMerchantAccountsItem
public CompanyUser addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem)
-
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 CompanyUser email(String email)
The email address of the user.- Parameters:
email- The email address of the user.- Returns:
- the current
CompanyUserinstance, 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.
-
id
public CompanyUser id(String id)
The unique identifier of the user.- Parameters:
id- The unique identifier of the user.- Returns:
- the current
CompanyUserinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the user.- Returns:
- id The unique identifier of the user.
-
setId
public void setId(String id)
The unique identifier of the user.- Parameters:
id- The unique identifier of the user.
-
name
public CompanyUser name(Name name)
name- Parameters:
name-- Returns:
- the current
CompanyUserinstance, allowing for method chaining
-
getName
public Name getName()
Get name- Returns:
- name
-
setName
public void setName(Name name)
name- Parameters:
name-
-
roles
public CompanyUser 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
CompanyUserinstance, allowing for method chaining
-
addRolesItem
public CompanyUser addRolesItem(String rolesItem)
-
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 CompanyUser 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
CompanyUserinstance, 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 CompanyUser username(String username)
The username for this user.- Parameters:
username- The username for this user.- Returns:
- the current
CompanyUserinstance, allowing for method chaining
-
getUsername
public String getUsername()
The username for this user.- Returns:
- username The username for this user.
-
setUsername
public void setUsername(String username)
The username for this user.- Parameters:
username- The username for this user.
-
includeNullValues
public CompanyUser 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 CompanyUser object is equal to o.
-
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 CompanyUser fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CompanyUser given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CompanyUser
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CompanyUser
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CompanyUser to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-