Class CreateMerchantApiCredentialRequest


  • public class CreateMerchantApiCredentialRequest
    extends Object
    CreateMerchantApiCredentialRequest
    • Constructor Detail

      • CreateMerchantApiCredentialRequest

        public CreateMerchantApiCredentialRequest()
    • Method Detail

      • 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 -
      • 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 CreateMerchantApiCredentialRequest object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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