Skip to content

Commit 6baa979

Browse files
[binlookup] Automated update from Adyen/adyen-openapi@37c03ec
1 parent bb9a385 commit 6baa979

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

Adyen/services/binlookup/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ class AdyenBinlookupApi(AdyenServiceBase):
1010
"""
1111

1212
def __init__(self, client=None):
13-
super().__init__(client=client)
13+
super(AdyenBinlookupApi, self).__init__(client=client)
1414
self.bin_lookup_api = BinLookupApi(client=client)

Adyen/services/binlookup/bin_lookup_api.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,23 @@ class BinLookupApi(AdyenServiceBase):
99
"""
1010

1111
def __init__(self, client=None):
12-
super().__init__(client=client)
12+
super(BinLookupApi, self).__init__(client=client)
1313
self.service = "binlookup"
1414
self.baseUrl = "https://pal-test.adyen.com/pal/servlet/BinLookup/v54"
1515

1616
def get3ds_availability(self, request, idempotency_key=None, **kwargs):
1717
"""
1818
Check if 3D Secure is available
1919
"""
20-
endpoint = self.baseUrl + "/get3dsAvailability"
20+
endpoint = self.baseUrl + f"/get3dsAvailability"
2121
method = "POST"
22-
return self.client.call_adyen_api(
23-
request, self.service, method, endpoint, idempotency_key, **kwargs
24-
)
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
2523

2624
def get_cost_estimate(self, request, idempotency_key=None, **kwargs):
2725
"""
2826
Get a fees cost estimate
2927
"""
30-
endpoint = self.baseUrl + "/getCostEstimate"
28+
endpoint = self.baseUrl + f"/getCostEstimate"
3129
method = "POST"
32-
return self.client.call_adyen_api(
33-
request, self.service, method, endpoint, idempotency_key, **kwargs
34-
)
30+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
31+

0 commit comments

Comments
 (0)