diff --git a/Adyen/client.py b/Adyen/client.py index 61dbf07d..6c6a87ce 100644 --- a/Adyen/client.py +++ b/Adyen/client.py @@ -96,7 +96,6 @@ def __init__( api_transfers_version=None, api_stored_value_version=None, api_balance_platform_version=None, - api_capital_version=None ): self.username = username self.password = password @@ -129,7 +128,6 @@ def __init__( self.api_transfers_version = api_transfers_version or settings.API_TRANSFERS_VERSION self.api_stored_value_version = api_stored_value_version or settings.API_STORED_VALUE_VERSION self.api_balance_platform_version = api_balance_platform_version or settings.API_BALANCE_PLATFORM_VERSION - self.api_capital_version = api_capital_version or settings.API_CAPITAL_VERSION def _determine_base_url_and_version(self, platform, service): @@ -225,13 +223,6 @@ def _determine_base_url_and_version(self, platform, service): 'test': settings.BASE_STORED_VALUE_URL.format(platform) } }, - 'capital': { - 'version': self.api_capital_version, - 'base_url': { - 'live': settings.BASE_BTL_URL.format(platform), - 'test': settings.BASE_BTL_URL.format(platform) - } - } } version = versions_and_urls[service]['version'] diff --git a/Adyen/settings.py b/Adyen/settings.py index b05c1923..34347feb 100644 --- a/Adyen/settings.py +++ b/Adyen/settings.py @@ -13,7 +13,6 @@ ".adyenpayments.com/checkout" BASE_STORED_VALUE_URL = "https://pal-{}.adyen.com/pal/servlet/StoredValue" API_BALANCE_PLATFORM_VERSION = "v2" -API_CAPITAL_VERSION = "v3" API_BIN_LOOKUP_VERSION = "v52" API_CHECKOUT_VERSION = "v70" API_CHECKOUT_UTILITY_VERSION = "v1" diff --git a/test/ClientTest.py b/test/ClientTest.py index aae28114..1ee8334a 100644 --- a/test/ClientTest.py +++ b/test/ClientTest.py @@ -16,15 +16,3 @@ class TestClient(unittest.TestCase): client.xapikey = "YourXapikey" client.platform = "test" lib_version = settings.LIB_VERSION - - def test_url_creation_for_capitalAPI(self): - self.adyen.client = self.test.create_client_from_file(200, {}, "test/mocks/" - "generic_response.json") - self.adyen.transfers.capital_api.get_capital_account() - self.adyen.client.http_client.request.assert_called_once_with( - 'GET', - 'https://balanceplatform-api-test.adyen.com/btl/{}/grants'.format(settings.API_CAPITAL_VERSION), - headers={'adyen-library-name': 'adyen-python-api-library', 'adyen-library-version': settings.LIB_VERSION}, - json=None, - xapikey='YourXapikey' - )