Class AllowedOriginsMerchantLevel

    • Constructor Detail

      • AllowedOriginsMerchantLevel

        public AllowedOriginsMerchantLevel​(Client client)
    • Method Detail

      • deleteAllowedOrigin

        public void deleteAllowedOrigin​(String merchantId,
                                        String apiCredentialId,
                                        String originId)
                                 throws ApiException,
                                        IOException
        Delete an allowed origin
        Parameters:
        merchantId - The unique identifier of the merchant account. (required)
        apiCredentialId - Unique identifier of the API credential. (required)
        originId - Unique identifier of the allowed origin. (required)
        Throws:
        ApiException - if fails to make API call
        IOException
      • listAllowedOrigins

        public AllowedOriginsResponse listAllowedOrigins​(String merchantId,
                                                         String apiCredentialId)
                                                  throws ApiException,
                                                         IOException
        Get a list of allowed origins
        Parameters:
        merchantId - The unique identifier of the merchant account. (required)
        apiCredentialId - Unique identifier of the API credential. (required)
        Returns:
        AllowedOriginsResponse
        Throws:
        ApiException - if fails to make API call
        IOException
      • getAllowedOrigin

        public AllowedOrigin getAllowedOrigin​(String merchantId,
                                              String apiCredentialId,
                                              String originId)
                                       throws ApiException,
                                              IOException
        Get an allowed origin
        Parameters:
        merchantId - The unique identifier of the merchant account. (required)
        apiCredentialId - Unique identifier of the API credential. (required)
        originId - Unique identifier of the allowed origin. (required)
        Returns:
        AllowedOrigin
        Throws:
        ApiException - if fails to make API call
        IOException
      • createAllowedOrigin

        public AllowedOriginsResponse createAllowedOrigin​(String merchantId,
                                                          String apiCredentialId,
                                                          AllowedOrigin allowedOrigin)
                                                   throws ApiException,
                                                          IOException
        Create an allowed origin
        Parameters:
        merchantId - The unique identifier of the merchant account. (required)
        apiCredentialId - Unique identifier of the API credential. (required)
        allowedOrigin - (optional)
        Returns:
        AllowedOriginsResponse
        Throws:
        ApiException - if fails to make API call
        IOException