Skip to content

Commit 41ea807

Browse files
authored
delete capital api variables (#248)
capital api became part of transfers, deleting the leftovers
1 parent 033541a commit 41ea807

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

Adyen/client.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def __init__(
9696
api_transfers_version=None,
9797
api_stored_value_version=None,
9898
api_balance_platform_version=None,
99-
api_capital_version=None
10099
):
101100
self.username = username
102101
self.password = password
@@ -129,7 +128,6 @@ def __init__(
129128
self.api_transfers_version = api_transfers_version or settings.API_TRANSFERS_VERSION
130129
self.api_stored_value_version = api_stored_value_version or settings.API_STORED_VALUE_VERSION
131130
self.api_balance_platform_version = api_balance_platform_version or settings.API_BALANCE_PLATFORM_VERSION
132-
self.api_capital_version = api_capital_version or settings.API_CAPITAL_VERSION
133131

134132
def _determine_base_url_and_version(self, platform, service):
135133

@@ -225,13 +223,6 @@ def _determine_base_url_and_version(self, platform, service):
225223
'test': settings.BASE_STORED_VALUE_URL.format(platform)
226224
}
227225
},
228-
'capital': {
229-
'version': self.api_capital_version,
230-
'base_url': {
231-
'live': settings.BASE_BTL_URL.format(platform),
232-
'test': settings.BASE_BTL_URL.format(platform)
233-
}
234-
}
235226
}
236227

237228
version = versions_and_urls[service]['version']

Adyen/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
".adyenpayments.com/checkout"
1414
BASE_STORED_VALUE_URL = "https://pal-{}.adyen.com/pal/servlet/StoredValue"
1515
API_BALANCE_PLATFORM_VERSION = "v2"
16-
API_CAPITAL_VERSION = "v3"
1716
API_BIN_LOOKUP_VERSION = "v52"
1817
API_CHECKOUT_VERSION = "v70"
1918
API_CHECKOUT_UTILITY_VERSION = "v1"

test/ClientTest.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,3 @@ class TestClient(unittest.TestCase):
1616
client.xapikey = "YourXapikey"
1717
client.platform = "test"
1818
lib_version = settings.LIB_VERSION
19-
20-
def test_url_creation_for_capitalAPI(self):
21-
self.adyen.client = self.test.create_client_from_file(200, {}, "test/mocks/"
22-
"generic_response.json")
23-
self.adyen.transfers.capital_api.get_capital_account()
24-
self.adyen.client.http_client.request.assert_called_once_with(
25-
'GET',
26-
'https://balanceplatform-api-test.adyen.com/btl/{}/grants'.format(settings.API_CAPITAL_VERSION),
27-
headers={'adyen-library-name': 'adyen-python-api-library', 'adyen-library-version': settings.LIB_VERSION},
28-
json=None,
29-
xapikey='YourXapikey'
30-
)

0 commit comments

Comments
 (0)