Package com.adyen.model.management
Class CreateCompanyApiCredentialRequest
- java.lang.Object
-
- com.adyen.model.management.CreateCompanyApiCredentialRequest
-
public class CreateCompanyApiCredentialRequest extends Object
CreateCompanyApiCredentialRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ALLOWED_ORIGINSstatic StringJSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTSstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_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)List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential.CreateCompanyApiCredentialRequestassociatedMerchantAccounts(List<String> associatedMerchantAccounts)List of merchant accounts that the API credential has access to.CreateCompanyApiCredentialRequestdescription(String description)Description of the API credential.booleanequals(Object o)Return true if this CreateCompanyApiCredentialRequest object is equal to 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.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.List<String>getRoles()List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential.inthashCode()CreateCompanyApiCredentialRequestincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.CreateCompanyApiCredentialRequestroles(List<String> roles)List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential.voidsetAllowedOrigins(List<String> allowedOrigins)List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential.voidsetAssociatedMerchantAccounts(List<String> associatedMerchantAccounts)List of merchant accounts that the API credential has access to.voidsetDescription(String description)Description of the API credential.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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 CreateCompanyApiCredentialRequest 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_ASSOCIATED_MERCHANT_ACCOUNTS
public static final String JSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTS
- 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 CreateCompanyApiCredentialRequest allowedOrigins(List<String> allowedOrigins)
List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential.- Parameters:
allowedOrigins- List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential.- Returns:
- the current
CreateCompanyApiCredentialRequestinstance, allowing for method chaining
-
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 List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential.
-
setAllowedOrigins
public void setAllowedOrigins(List<String> allowedOrigins)
List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential.- Parameters:
allowedOrigins- List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential.
-
associatedMerchantAccounts
public CreateCompanyApiCredentialRequest associatedMerchantAccounts(List<String> associatedMerchantAccounts)
List of merchant accounts that the API credential has access to.- Parameters:
associatedMerchantAccounts- List of merchant accounts that the API credential has access to.- Returns:
- the current
CreateCompanyApiCredentialRequestinstance, allowing for method chaining
-
addAssociatedMerchantAccountsItem
public CreateCompanyApiCredentialRequest addAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem)
-
getAssociatedMerchantAccounts
public List<String> getAssociatedMerchantAccounts()
List of merchant accounts that the API credential has access to.- Returns:
- associatedMerchantAccounts List of merchant accounts that the API credential has access to.
-
setAssociatedMerchantAccounts
public void setAssociatedMerchantAccounts(List<String> associatedMerchantAccounts)
List of merchant accounts that the API credential has access to.- Parameters:
associatedMerchantAccounts- List of merchant accounts that the API credential has access to.
-
description
public CreateCompanyApiCredentialRequest description(String description)
Description of the API credential.- Parameters:
description- Description of the API credential.- Returns:
- the current
CreateCompanyApiCredentialRequestinstance, allowing for method chaining
-
getDescription
public String getDescription()
Description of the API credential.- Returns:
- description Description of the API credential.
-
setDescription
public void setDescription(String description)
Description of the API credential.- Parameters:
description- Description of the API credential.
-
roles
public CreateCompanyApiCredentialRequest 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- 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:
- the current
CreateCompanyApiCredentialRequestinstance, allowing for method chaining
-
addRolesItem
public CreateCompanyApiCredentialRequest 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 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.
-
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- 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.
-
includeNullValues
public CreateCompanyApiCredentialRequest includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this CreateCompanyApiCredentialRequest object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static CreateCompanyApiCredentialRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CreateCompanyApiCredentialRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateCompanyApiCredentialRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CreateCompanyApiCredentialRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CreateCompanyApiCredentialRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-