Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions Adyen/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):

Expand Down Expand Up @@ -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']
Expand Down
1 change: 0 additions & 1 deletion Adyen/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 0 additions & 12 deletions test/ClientTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)