Class CreateCompanyApiCredentialRequest


  • public class CreateCompanyApiCredentialRequest
    extends Object
    CreateCompanyApiCredentialRequest
    • Constructor Detail

      • CreateCompanyApiCredentialRequest

        public CreateCompanyApiCredentialRequest()
    • 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 -
        Returns:
        the current CreateCompanyApiCredentialRequest instance, allowing for method chaining
      • 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
      • 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 -
      • associatedMerchantAccounts

        public CreateCompanyApiCredentialRequest associatedMerchantAccounts​(List<String> associatedMerchantAccounts)
        List of merchant accounts that the API credential has access to.
        Parameters:
        associatedMerchantAccounts -
        Returns:
        the current CreateCompanyApiCredentialRequest instance, allowing for method chaining
      • 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 CreateCompanyApiCredentialRequest description​(String description)
        Description of the API credential.
        Parameters:
        description -
        Returns:
        the current CreateCompanyApiCredentialRequest instance, allowing for method chaining
      • 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 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 -
        Returns:
        the current CreateCompanyApiCredentialRequest instance, allowing for method chaining
      • 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 CreateCompanyApiCredentialRequest object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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