Class UpdateCompanyApiCredentialRequest


  • public class UpdateCompanyApiCredentialRequest
    extends Object
    UpdateCompanyApiCredentialRequest
    • Constructor Detail

      • UpdateCompanyApiCredentialRequest

        public UpdateCompanyApiCredentialRequest()
    • Method Detail

      • 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 -
      • 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 -
      • 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 -
      • getDescription

        public String getDescription()
        Description of the API credential.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
        Description of the API credential.
        Parameters:
        description -
      • 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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