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.StringgetId()The unique identifier of the user.LinksgetLinks()linksNamegetName()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.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.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()
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-- 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
-
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-
-
active
public CompanyUser active(Boolean active)
Indicates whether this user is active.- Parameters:
active-- Returns:
- the current
CompanyUserinstance, allowing for method chaining
-
getActive
public Boolean getActive()
Indicates whether this user is active.- Returns:
- active
-
setActive
public void setActive(Boolean active)
Indicates whether this user is active.- Parameters:
active-
-
apps
public CompanyUser apps(List<String> apps)
Set of apps available to this user- Parameters:
apps-- Returns:
- the current
CompanyUserinstance, allowing for method chaining
-
addAppsItem
public CompanyUser addAppsItem(String appsItem)
-
setApps
public void setApps(List<String> apps)
Set of apps available to this user- Parameters:
apps-
-
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-- 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
-
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-
-
email
public CompanyUser email(String email)
The email address of the user.- Parameters:
email-- Returns:
- the current
CompanyUserinstance, allowing for method chaining
-
getEmail
public String getEmail()
The email address of the user.- Returns:
-
setEmail
public void setEmail(String email)
The email address of the user.- Parameters:
email-
-
id
public CompanyUser id(String id)
The unique identifier of the user.- Parameters:
id-- Returns:
- the current
CompanyUserinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the user.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the user.- Parameters:
id-
-
name
public CompanyUser name(Name name)
name- Parameters:
name-- Returns:
- the current
CompanyUserinstance, allowing for method chaining
-
getName
public Name getName()
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-- 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
-
setRoles
public void setRoles(List<String> roles)
The list of [roles](https://docs.adyen.com/account/user-roles) for this user.- Parameters:
roles-
-
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-- 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
-
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-
-
username
public CompanyUser username(String username)
The username for this user.- Parameters:
username-- Returns:
- the current
CompanyUserinstance, allowing for method chaining
-
getUsername
public String getUsername()
The username for this user.- Returns:
- username
-
setUsername
public void setUsername(String username)
The username for this user.- Parameters:
username-
-
equals
public boolean equals(Object o)
Return true if this CompanyUser object is equal to o.
-
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
-
-