Package com.adyen.model.management
Class UpdateMerchantApiCredentialRequest
- java.lang.Object
-
- com.adyen.model.management.UpdateMerchantApiCredentialRequest
-
public class UpdateMerchantApiCredentialRequest extends Object
UpdateMerchantApiCredentialRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACTIVEstatic StringJSON_PROPERTY_ALLOWED_ORIGINSstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_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)Indicates if the API credential is enabled.UpdateMerchantApiCredentialRequestaddAllowedOriginsItem(String allowedOriginsItem)UpdateMerchantApiCredentialRequestaddRolesItem(String rolesItem)UpdateMerchantApiCredentialRequestallowedOrigins(List<String> allowedOrigins)The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential.UpdateMerchantApiCredentialRequestdescription(String description)Description of the API credential.booleanequals(Object o)Return true if this UpdateMerchantApiCredentialRequest object is equal to 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)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.voidsetAllowedOrigins(List<String> allowedOrigins)The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential.voidsetDescription(String description)Description of the API credential.voidsetRoles(List<String> roles)List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential.StringtoJson()Convert an instance of UpdateMerchantApiCredentialRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACTIVE
public static final String JSON_PROPERTY_ACTIVE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ALLOWED_ORIGINS
public static final String JSON_PROPERTY_ALLOWED_ORIGINS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROLES
public static final String JSON_PROPERTY_ROLES
- See Also:
- Constant Field Values
-
-
Method Detail
-
active
public UpdateMerchantApiCredentialRequest active(Boolean active)
Indicates if the API credential is enabled.- Parameters:
active-- Returns:
- the current
UpdateMerchantApiCredentialRequestinstance, allowing for method chaining
-
getActive
public Boolean getActive()
Indicates if the API credential is enabled.- Returns:
- active
-
setActive
public void setActive(Boolean active)
Indicates if the API credential is enabled.- Parameters:
active-
-
allowedOrigins
public UpdateMerchantApiCredentialRequest allowedOrigins(List<String> allowedOrigins)
The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential.- Parameters:
allowedOrigins-- Returns:
- the current
UpdateMerchantApiCredentialRequestinstance, allowing for method chaining
-
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
-
setAllowedOrigins
public void setAllowedOrigins(List<String> allowedOrigins)
The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential.- Parameters:
allowedOrigins-
-
description
public UpdateMerchantApiCredentialRequest description(String description)
Description of the API credential.- Parameters:
description-- Returns:
- the current
UpdateMerchantApiCredentialRequestinstance, 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-
-
roles
public UpdateMerchantApiCredentialRequest roles(List<String> roles)
List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials.- Parameters:
roles-- Returns:
- the current
UpdateMerchantApiCredentialRequestinstance, allowing for method chaining
-
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. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials.- 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. Only roles assigned to 'ws@Company.<CompanyName>' can be assigned to other API credentials.- Parameters:
roles-
-
equals
public boolean equals(Object o)
Return true if this UpdateMerchantApiCredentialRequest object is equal to o.
-
fromJson
public static UpdateMerchantApiCredentialRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of UpdateMerchantApiCredentialRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateMerchantApiCredentialRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to UpdateMerchantApiCredentialRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of UpdateMerchantApiCredentialRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-