Package com.adyen.model.management
Class CreateMerchantApiCredentialRequest
- java.lang.Object
-
- com.adyen.model.management.CreateMerchantApiCredentialRequest
-
public class CreateMerchantApiCredentialRequest extends Object
CreateMerchantApiCredentialRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ALLOWED_ORIGINSstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_ROLES
-
Constructor Summary
Constructors Constructor Description CreateMerchantApiCredentialRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateMerchantApiCredentialRequestaddAllowedOriginsItem(String allowedOriginsItem)CreateMerchantApiCredentialRequestaddRolesItem(String rolesItem)CreateMerchantApiCredentialRequestallowedOrigins(List<String> allowedOrigins)CreateMerchantApiCredentialRequestdescription(String description)booleanequals(Object o)Return true if this CreateMerchantApiCredentialRequest object is equal to o.static CreateMerchantApiCredentialRequestfromJson(String jsonString)Create an instance of CreateMerchantApiCredentialRequest given an JSON stringList<String>getAllowedOrigins()The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new 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()CreateMerchantApiCredentialRequestroles(List<String> roles)voidsetAllowedOrigins(List<String> allowedOrigins)The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new 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 CreateMerchantApiCredentialRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
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
-
allowedOrigins
public CreateMerchantApiCredentialRequest allowedOrigins(List<String> allowedOrigins)
-
addAllowedOriginsItem
public CreateMerchantApiCredentialRequest addAllowedOriginsItem(String allowedOriginsItem)
-
getAllowedOrigins
public List<String> getAllowedOrigins()
The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential.- Returns:
- allowedOrigins
-
setAllowedOrigins
public void setAllowedOrigins(List<String> allowedOrigins)
The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential.- Parameters:
allowedOrigins-
-
description
public CreateMerchantApiCredentialRequest description(String description)
-
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 CreateMerchantApiCredentialRequest roles(List<String> roles)
-
addRolesItem
public CreateMerchantApiCredentialRequest 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 CreateMerchantApiCredentialRequest object is equal to o.
-
fromJson
public static CreateMerchantApiCredentialRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CreateMerchantApiCredentialRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateMerchantApiCredentialRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CreateMerchantApiCredentialRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CreateMerchantApiCredentialRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-