Package com.adyen.model.management
Class UpdateCompanyApiCredentialRequest
- java.lang.Object
-
- com.adyen.model.management.UpdateCompanyApiCredentialRequest
-
public class UpdateCompanyApiCredentialRequest extends Object
UpdateCompanyApiCredentialRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACTIVEstatic StringJSON_PROPERTY_ALLOWED_ORIGINSstatic StringJSON_PROPERTY_ASSOCIATED_MERCHANT_ACCOUNTSstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_ROLES
-
Constructor Summary
Constructors Constructor Description UpdateCompanyApiCredentialRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateCompanyApiCredentialRequestactive(Boolean active)UpdateCompanyApiCredentialRequestaddAllowedOriginsItem(String allowedOriginsItem)UpdateCompanyApiCredentialRequestaddAssociatedMerchantAccountsItem(String associatedMerchantAccountsItem)UpdateCompanyApiCredentialRequestaddRolesItem(String rolesItem)UpdateCompanyApiCredentialRequestallowedOrigins(List<String> allowedOrigins)UpdateCompanyApiCredentialRequestassociatedMerchantAccounts(List<String> associatedMerchantAccounts)UpdateCompanyApiCredentialRequestdescription(String description)booleanequals(Object o)Return true if this UpdateCompanyApiCredentialRequest object is equal to o.static UpdateCompanyApiCredentialRequestfromJson(String jsonString)Create an instance of UpdateCompanyApiCredentialRequest 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.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) for the API credential.inthashCode()UpdateCompanyApiCredentialRequestroles(List<String> roles)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.voidsetAssociatedMerchantAccounts(List<String> associatedMerchantAccounts)List of merchant accounts that the API credential has access to.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 UpdateCompanyApiCredentialRequest 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_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
-
active
public UpdateCompanyApiCredentialRequest active(Boolean active)
-
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 UpdateCompanyApiCredentialRequest allowedOrigins(List<String> allowedOrigins)
-
addAllowedOriginsItem
public UpdateCompanyApiCredentialRequest 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-
-
associatedMerchantAccounts
public UpdateCompanyApiCredentialRequest associatedMerchantAccounts(List<String> associatedMerchantAccounts)
-
addAssociatedMerchantAccountsItem
public UpdateCompanyApiCredentialRequest 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)
List of merchant accounts that the API credential has access to.- Parameters:
associatedMerchantAccounts-
-
description
public UpdateCompanyApiCredentialRequest 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 UpdateCompanyApiCredentialRequest roles(List<String> roles)
-
addRolesItem
public UpdateCompanyApiCredentialRequest 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 UpdateCompanyApiCredentialRequest object is equal to o.
-
fromJson
public static UpdateCompanyApiCredentialRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of UpdateCompanyApiCredentialRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateCompanyApiCredentialRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to UpdateCompanyApiCredentialRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of UpdateCompanyApiCredentialRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-