Package com.adyen.model.management
Class UpdateMerchantApiCredentialRequest
- java.lang.Object
-
- com.adyen.model.management.UpdateMerchantApiCredentialRequest
-
public class UpdateMerchantApiCredentialRequest extends Object
UpdateMerchantApiCredentialRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateMerchantApiCredentialRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACTIVEstatic StringSERIALIZED_NAME_ALLOWED_ORIGINSstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_ROLES
-
Constructor Summary
Constructors Constructor Description UpdateMerchantApiCredentialRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateMerchantApiCredentialRequestactive(Boolean active)UpdateMerchantApiCredentialRequestaddAllowedOriginsItem(String allowedOriginsItem)UpdateMerchantApiCredentialRequestaddRolesItem(String rolesItem)UpdateMerchantApiCredentialRequestallowedOrigins(List<String> allowedOrigins)UpdateMerchantApiCredentialRequestdescription(String description)booleanequals(Object o)static UpdateMerchantApiCredentialRequestfromJson(String jsonString)Create an instance of UpdateMerchantApiCredentialRequest given an JSON stringBooleangetActive()Indicates if the API credential is enabled.List<String>getAllowedOrigins()The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential.StringgetDescription()Description of the API credential.List<String>getRoles()List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential.inthashCode()UpdateMerchantApiCredentialRequestroles(List<String> roles)voidsetActive(Boolean active)voidsetAllowedOrigins(List<String> allowedOrigins)voidsetDescription(String description)voidsetRoles(List<String> roles)StringtoJson()Convert an instance of UpdateMerchantApiCredentialRequest 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_ACTIVE
public static final String SERIALIZED_NAME_ACTIVE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ALLOWED_ORIGINS
public static final String SERIALIZED_NAME_ALLOWED_ORIGINS
- 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
-
active
public UpdateMerchantApiCredentialRequest active(Boolean active)
-
getActive
public Boolean getActive()
Indicates if the API credential is enabled.- Returns:
- active
-
setActive
public void setActive(Boolean active)
-
allowedOrigins
public UpdateMerchantApiCredentialRequest allowedOrigins(List<String> allowedOrigins)
-
addAllowedOriginsItem
public UpdateMerchantApiCredentialRequest addAllowedOriginsItem(String allowedOriginsItem)
-
getAllowedOrigins
public List<String> getAllowedOrigins()
The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential.- Returns:
- allowedOrigins
-
description
public UpdateMerchantApiCredentialRequest description(String description)
-
getDescription
public String getDescription()
Description of the API credential.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
roles
public UpdateMerchantApiCredentialRequest roles(List<String> roles)
-
addRolesItem
public UpdateMerchantApiCredentialRequest 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
-
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 UpdateMerchantApiCredentialRequest
-
fromJson
public static UpdateMerchantApiCredentialRequest fromJson(String jsonString) throws IOException
Create an instance of UpdateMerchantApiCredentialRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateMerchantApiCredentialRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdateMerchantApiCredentialRequest
-
toJson
public String toJson()
Convert an instance of UpdateMerchantApiCredentialRequest to an JSON string- Returns:
- JSON string
-
-