Package com.adyen.model.management
Class CreateCompanyApiCredentialRequest
- java.lang.Object
-
- com.adyen.model.management.CreateCompanyApiCredentialRequest
-
public class CreateCompanyApiCredentialRequest extends Object
CreateCompanyApiCredentialRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateCompanyApiCredentialRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ALLOWED_ORIGINSstatic StringSERIALIZED_NAME_ASSOCIATED_MERCHANT_ACCOUNTSstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_ROLES
-
Constructor Summary
Constructors Constructor Description CreateCompanyApiCredentialRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateCompanyApiCredentialRequestaddAllowedOriginsItem(String allowedOriginsItem)CreateCompanyApiCredentialRequestaddAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem)CreateCompanyApiCredentialRequestaddRolesItem(String rolesItem)CreateCompanyApiCredentialRequestallowedOrigins(List<String> allowedOrigins)CreateCompanyApiCredentialRequestassociatedMerchantAccounts(List<String> associatedMerchantAccounts)CreateCompanyApiCredentialRequestdescription(String description)booleanequals(Object o)static CreateCompanyApiCredentialRequestfromJson(String jsonString)Create an instance of CreateCompanyApiCredentialRequest given an JSON stringList<String>getAllowedOrigins()List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential.List<String>getAssociatedMerchantAccounts()List of merchant accounts that the API credential has access to.StringgetDescription()Description of the API credential.List<String>getRoles()List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) of the API credential.inthashCode()CreateCompanyApiCredentialRequestroles(List<String> roles)voidsetAllowedOrigins(List<String> allowedOrigins)voidsetAssociatedMerchantAccounts(List<String> associatedMerchantAccounts)voidsetDescription(String description)voidsetRoles(List<String> roles)StringtoJson()Convert an instance of CreateCompanyApiCredentialRequest to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
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_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ROLES
public static final String SERIALIZED_NAME_ROLES
- See Also:
- Constant Field Values
-
-
Method Detail
-
allowedOrigins
public CreateCompanyApiCredentialRequest allowedOrigins(List<String> allowedOrigins)
-
addAllowedOriginsItem
public CreateCompanyApiCredentialRequest addAllowedOriginsItem(String allowedOriginsItem)
-
getAllowedOrigins
public List<String> getAllowedOrigins()
List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential.- Returns:
- allowedOrigins
-
associatedMerchantAccounts
public CreateCompanyApiCredentialRequest associatedMerchantAccounts(List<String> associatedMerchantAccounts)
-
addAssociatedMerchantAccountsItem
public CreateCompanyApiCredentialRequest addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem)
-
getAssociatedMerchantAccounts
public List<String> getAssociatedMerchantAccounts()
List of merchant accounts that the API credential has access to.- Returns:
- associatedMerchantAccounts
-
setAssociatedMerchantAccounts
public void setAssociatedMerchantAccounts(List<String> associatedMerchantAccounts)
-
description
public CreateCompanyApiCredentialRequest description(String description)
-
getDescription
public String getDescription()
Description of the API credential.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
roles
public CreateCompanyApiCredentialRequest roles(List<String> roles)
-
addRolesItem
public CreateCompanyApiCredentialRequest addRolesItem(String rolesItem)
-
getRoles
public List<String> getRoles()
List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) of the API credential.- Returns:
- roles
-
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 CreateCompanyApiCredentialRequest
-
fromJson
public static CreateCompanyApiCredentialRequest fromJson(String jsonString) throws IOException
Create an instance of CreateCompanyApiCredentialRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateCompanyApiCredentialRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateCompanyApiCredentialRequest
-
toJson
public String toJson()
Convert an instance of CreateCompanyApiCredentialRequest to an JSON string- Returns:
- JSON string
-
-