Package com.adyen.model.management
Class MeApiCredential
- java.lang.Object
-
- com.adyen.model.management.MeApiCredential
-
public class MeApiCredential extends Object
MeApiCredential
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMeApiCredential.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACTIVEstatic StringSERIALIZED_NAME_ALLOWED_IP_ADDRESSESstatic StringSERIALIZED_NAME_ALLOWED_ORIGINSstatic StringSERIALIZED_NAME_ASSOCIATED_MERCHANT_ACCOUNTSstatic StringSERIALIZED_NAME_CLIENT_KEYstatic StringSERIALIZED_NAME_COMPANY_NAMEstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_ROLESstatic StringSERIALIZED_NAME_USERNAME
-
Constructor Summary
Constructors Constructor Description MeApiCredential()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MeApiCredentialactive(Boolean active)MeApiCredentialaddAllowedIpAddressesItem(String allowedIpAddressesItem)MeApiCredentialaddAllowedOriginsItem(AllowedOrigin allowedOriginsItem)MeApiCredentialaddAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem)MeApiCredentialaddRolesItem(String rolesItem)MeApiCredentialallowedIpAddresses(List<String> allowedIpAddresses)MeApiCredentialallowedOrigins(List<AllowedOrigin> allowedOrigins)MeApiCredentialassociatedMerchantAccounts(List<String> associatedMerchantAccounts)MeApiCredentialclientKey(String clientKey)MeApiCredentialcompanyName(String companyName)MeApiCredentialdescription(String description)booleanequals(Object o)static MeApiCredentialfromJson(String jsonString)Create an instance of MeApiCredential 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).StringgetCompanyName()Name of the company linked to the API credential.StringgetDescription()Description of the API credential.StringgetId()Unique identifier of the API credential.ApiCredentialLinksgetLinks()Get 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()MeApiCredentialid(String id)MeApiCredentiallinks(ApiCredentialLinks links)MeApiCredentialroles(List<String> roles)voidsetActive(Boolean active)voidsetAllowedIpAddresses(List<String> allowedIpAddresses)voidsetAllowedOrigins(List<AllowedOrigin> allowedOrigins)voidsetAssociatedMerchantAccounts(List<String> associatedMerchantAccounts)voidsetClientKey(String clientKey)voidsetCompanyName(String companyName)voidsetDescription(String description)voidsetId(String id)voidsetLinks(ApiCredentialLinks links)voidsetRoles(List<String> roles)voidsetUsername(String username)StringtoJson()Convert an instance of MeApiCredential to an JSON stringStringtoString()MeApiCredentialusername(String username)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACTIVE
public static final String SERIALIZED_NAME_ACTIVE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ALLOWED_IP_ADDRESSES
public static final String SERIALIZED_NAME_ALLOWED_IP_ADDRESSES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ALLOWED_ORIGINS
public static final String SERIALIZED_NAME_ALLOWED_ORIGINS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ASSOCIATED_MERCHANT_ACCOUNTS
public static final String SERIALIZED_NAME_ASSOCIATED_MERCHANT_ACCOUNTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CLIENT_KEY
public static final String SERIALIZED_NAME_CLIENT_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COMPANY_NAME
public static final String SERIALIZED_NAME_COMPANY_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ROLES
public static final String SERIALIZED_NAME_ROLES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USERNAME
public static final String SERIALIZED_NAME_USERNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
links
public MeApiCredential links(ApiCredentialLinks links)
-
getLinks
public ApiCredentialLinks getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(ApiCredentialLinks links)
-
active
public MeApiCredential active(Boolean active)
-
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)
-
allowedIpAddresses
public MeApiCredential allowedIpAddresses(List<String> allowedIpAddresses)
-
addAllowedIpAddressesItem
public MeApiCredential 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
-
allowedOrigins
public MeApiCredential allowedOrigins(List<AllowedOrigin> allowedOrigins)
-
addAllowedOriginsItem
public MeApiCredential 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)
-
associatedMerchantAccounts
public MeApiCredential associatedMerchantAccounts(List<String> associatedMerchantAccounts)
-
addAssociatedMerchantAccountsItem
public MeApiCredential 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)
-
clientKey
public MeApiCredential clientKey(String clientKey)
-
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)
-
companyName
public MeApiCredential companyName(String companyName)
-
getCompanyName
public String getCompanyName()
Name of the company linked to the API credential.- Returns:
- companyName
-
setCompanyName
public void setCompanyName(String companyName)
-
description
public MeApiCredential description(String description)
-
getDescription
public String getDescription()
Description of the API credential.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
id
public MeApiCredential id(String id)
-
getId
public String getId()
Unique identifier of the API credential.- Returns:
- id
-
setId
public void setId(String id)
-
roles
public MeApiCredential roles(List<String> roles)
-
addRolesItem
public MeApiCredential 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
-
username
public MeApiCredential username(String username)
-
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)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to MeApiCredential
-
fromJson
public static MeApiCredential fromJson(String jsonString) throws IOException
Create an instance of MeApiCredential given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MeApiCredential
- Throws:
IOException- if the JSON string is invalid with respect to MeApiCredential
-
toJson
public String toJson()
Convert an instance of MeApiCredential to an JSON string- Returns:
- JSON string
-
-