Package com.adyen.model.management
Class CompanyApiCredential
- java.lang.Object
-
- com.adyen.model.management.CompanyApiCredential
-
public class CompanyApiCredential extends Object
CompanyApiCredential
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACTIVEstatic StringJSON_PROPERTY_ALLOWED_IP_ADDRESSESstatic StringJSON_PROPERTY_ALLOWED_ORIGINSstatic StringJSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTSstatic StringJSON_PROPERTY_CLIENT_KEYstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_LINKSstatic StringJSON_PROPERTY_ROLESstatic StringJSON_PROPERTY_USERNAME
-
Constructor Summary
Constructors Constructor Description CompanyApiCredential()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompanyApiCredentialactive(Boolean active)Indicates if the API credential is enabled.CompanyApiCredentialaddAllowedIpAddressesItem(String allowedIpAddressesItem)CompanyApiCredentialaddAllowedOriginsItem(AllowedOrigin allowedOriginsItem)CompanyApiCredentialaddAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem)CompanyApiCredentialaddRolesItem(String rolesItem)CompanyApiCredentialallowedIpAddresses(List<String> allowedIpAddresses)List of IP addresses from which your client can make requests.CompanyApiCredentialallowedOrigins(List<AllowedOrigin> allowedOrigins)List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential.CompanyApiCredentialassociatedMerchantAccounts(List<String> associatedMerchantAccounts)List of merchant accounts that the API credential has explicit access to.CompanyApiCredentialclientKey(String clientKey)Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication).CompanyApiCredentialdescription(String description)Description of the API credential.booleanequals(Object o)Return true if this CompanyApiCredential object is equal to o.static CompanyApiCredentialfromJson(String jsonString)Create an instance of CompanyApiCredential given an JSON stringBooleangetActive()Indicates if the API credential is enabled.List<String>getAllowedIpAddresses()List of IP addresses from which your client can make requests.List<AllowedOrigin>getAllowedOrigins()List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential.List<String>getAssociatedMerchantAccounts()List of merchant accounts that the API credential has explicit access to.StringgetClientKey()Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication).StringgetDescription()Description of the API credential.StringgetId()Unique identifier of the API credential.ApiCredentialLinksgetLinks()linksList<String>getRoles()List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential.StringgetUsername()The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**.inthashCode()CompanyApiCredentialid(String id)Unique identifier of the API credential.CompanyApiCredentiallinks(ApiCredentialLinks links)linksCompanyApiCredentialroles(List<String> roles)List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential.voidsetActive(Boolean active)Indicates if the API credential is enabled.voidsetAllowedIpAddresses(List<String> allowedIpAddresses)List of IP addresses from which your client can make requests.voidsetAllowedOrigins(List<AllowedOrigin> allowedOrigins)List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential.voidsetAssociatedMerchantAccounts(List<String> associatedMerchantAccounts)List of merchant accounts that the API credential has explicit access to.voidsetClientKey(String clientKey)Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication).voidsetDescription(String description)Description of the API credential.voidsetId(String id)Unique identifier of the API credential.voidsetLinks(ApiCredentialLinks links)linksvoidsetRoles(List<String> roles)List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential.voidsetUsername(String username)The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**.StringtoJson()Convert an instance of CompanyApiCredential to an JSON stringStringtoString()CompanyApiCredentialusername(String username)The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**.
-
-
-
Field Detail
-
JSON_PROPERTY_LINKS
public static final String JSON_PROPERTY_LINKS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACTIVE
public static final String JSON_PROPERTY_ACTIVE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ALLOWED_IP_ADDRESSES
public static final String JSON_PROPERTY_ALLOWED_IP_ADDRESSES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ALLOWED_ORIGINS
public static final String JSON_PROPERTY_ALLOWED_ORIGINS
- 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_CLIENT_KEY
public static final String JSON_PROPERTY_CLIENT_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROLES
public static final String JSON_PROPERTY_ROLES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USERNAME
public static final String JSON_PROPERTY_USERNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
links
public CompanyApiCredential links(ApiCredentialLinks links)
links- Parameters:
links-- Returns:
- the current
CompanyApiCredentialinstance, allowing for method chaining
-
getLinks
public ApiCredentialLinks getLinks()
links- Returns:
- links
-
setLinks
public void setLinks(ApiCredentialLinks links)
links- Parameters:
links-
-
active
public CompanyApiCredential active(Boolean active)
Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration.- Parameters:
active-- Returns:
- the current
CompanyApiCredentialinstance, allowing for method chaining
-
getActive
public Boolean getActive()
Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration.- Returns:
- active
-
setActive
public void setActive(Boolean active)
Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration.- Parameters:
active-
-
allowedIpAddresses
public CompanyApiCredential allowedIpAddresses(List<String> allowedIpAddresses)
List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error.- Parameters:
allowedIpAddresses-- Returns:
- the current
CompanyApiCredentialinstance, allowing for method chaining
-
addAllowedIpAddressesItem
public CompanyApiCredential addAllowedIpAddressesItem(String allowedIpAddressesItem)
-
getAllowedIpAddresses
public List<String> getAllowedIpAddresses()
List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error.- Returns:
- allowedIpAddresses
-
setAllowedIpAddresses
public void setAllowedIpAddresses(List<String> allowedIpAddresses)
List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error.- Parameters:
allowedIpAddresses-
-
allowedOrigins
public CompanyApiCredential allowedOrigins(List<AllowedOrigin> allowedOrigins)
List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential.- Parameters:
allowedOrigins-- Returns:
- the current
CompanyApiCredentialinstance, allowing for method chaining
-
addAllowedOriginsItem
public CompanyApiCredential addAllowedOriginsItem(AllowedOrigin allowedOriginsItem)
-
getAllowedOrigins
public List<AllowedOrigin> getAllowedOrigins()
List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential.- Returns:
- allowedOrigins
-
setAllowedOrigins
public void setAllowedOrigins(List<AllowedOrigin> allowedOrigins)
List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential.- Parameters:
allowedOrigins-
-
associatedMerchantAccounts
public CompanyApiCredential associatedMerchantAccounts(List<String> associatedMerchantAccounts)
List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included.- Parameters:
associatedMerchantAccounts-- Returns:
- the current
CompanyApiCredentialinstance, allowing for method chaining
-
addAssociatedMerchantAccountsItem
public CompanyApiCredential addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem)
-
getAssociatedMerchantAccounts
public List<String> getAssociatedMerchantAccounts()
List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included.- Returns:
- associatedMerchantAccounts
-
setAssociatedMerchantAccounts
public void setAssociatedMerchantAccounts(List<String> associatedMerchantAccounts)
List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included.- Parameters:
associatedMerchantAccounts-
-
clientKey
public CompanyApiCredential clientKey(String clientKey)
Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations.- Parameters:
clientKey-- Returns:
- the current
CompanyApiCredentialinstance, allowing for method chaining
-
getClientKey
public String getClientKey()
Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations.- Returns:
- clientKey
-
setClientKey
public void setClientKey(String clientKey)
Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations.- Parameters:
clientKey-
-
description
public CompanyApiCredential description(String description)
Description of the API credential.- Parameters:
description-- Returns:
- the current
CompanyApiCredentialinstance, allowing for method chaining
-
getDescription
public String getDescription()
Description of the API credential.- Returns:
- description
-
setDescription
public void setDescription(String description)
Description of the API credential.- Parameters:
description-
-
id
public CompanyApiCredential id(String id)
Unique identifier of the API credential.- Parameters:
id-- Returns:
- the current
CompanyApiCredentialinstance, allowing for method chaining
-
getId
public String getId()
Unique identifier of the API credential.- Returns:
- id
-
setId
public void setId(String id)
Unique identifier of the API credential.- Parameters:
id-
-
roles
public CompanyApiCredential roles(List<String> roles)
List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential.- Parameters:
roles-- Returns:
- the current
CompanyApiCredentialinstance, allowing for method chaining
-
addRolesItem
public CompanyApiCredential addRolesItem(String rolesItem)
-
getRoles
public List<String> getRoles()
List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential.- Returns:
- roles
-
setRoles
public void setRoles(List<String> roles)
List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential.- Parameters:
roles-
-
username
public CompanyApiCredential username(String username)
The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**.- Parameters:
username-- Returns:
- the current
CompanyApiCredentialinstance, allowing for method chaining
-
getUsername
public String getUsername()
The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**.- Returns:
- username
-
setUsername
public void setUsername(String username)
The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**.- Parameters:
username-
-
equals
public boolean equals(Object o)
Return true if this CompanyApiCredential object is equal to o.
-
fromJson
public static CompanyApiCredential fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CompanyApiCredential given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CompanyApiCredential
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CompanyApiCredential
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CompanyApiCredential to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-