Class ApiCredentialsMerchantLevel

    • Constructor Detail

      • ApiCredentialsMerchantLevel

        public ApiCredentialsMerchantLevel​(Client client)
    • Method Detail

      • listApiCredentials

        public ListMerchantApiCredentialsResponse listApiCredentials​(String merchantId,
                                                                     Map<String,​String> queryParams)
                                                              throws ApiException,
                                                                     IOException
        Get a list of API credentials
        Parameters:
        merchantId - The unique identifier of the merchant account. (required)
        queryParams - (optional) pageNumber: The number of the page to fetch. (optional) pageSize: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional)
        Returns:
        ListMerchantApiCredentialsResponse
        Throws:
        ApiException - if fails to make API call
        IOException
      • getApiCredential

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

        public ApiCredential updateApiCredential​(String merchantId,
                                                 String apiCredentialId,
                                                 UpdateMerchantApiCredentialRequest updateMerchantApiCredentialRequest)
                                          throws ApiException,
                                                 IOException
        Update an API credential
        Parameters:
        merchantId - The unique identifier of the merchant account. (required)
        apiCredentialId - Unique identifier of the API credential. (required)
        updateMerchantApiCredentialRequest - (optional)
        Returns:
        ApiCredential
        Throws:
        ApiException - if fails to make API call
        IOException