Skip to content

Commit 620b172

Browse files
[storedvalue] Automated update from Adyen/adyen-openapi@37c03ec
1 parent bb9a385 commit 620b172

2 files changed

Lines changed: 15 additions & 26 deletions

File tree

Adyen/services/storedValue/__init__.py

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

1212
def __init__(self, client=None):
13-
super().__init__(client=client)
13+
super(AdyenStoredValueApi, self).__init__(client=client)
1414
self.stored_value_api = StoredValueApi(client=client)

Adyen/services/storedValue/stored_value_api.py

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,66 +9,55 @@ class StoredValueApi(AdyenServiceBase):
99
"""
1010

1111
def __init__(self, client=None):
12-
super().__init__(client=client)
12+
super(StoredValueApi, self).__init__(client=client)
1313
self.service = "storedValue"
1414
self.baseUrl = "https://pal-test.adyen.com/pal/servlet/StoredValue/v46"
1515

1616
def change_status(self, request, idempotency_key=None, **kwargs):
1717
"""
1818
Changes the status of the payment method.
1919
"""
20-
endpoint = self.baseUrl + "/changeStatus"
20+
endpoint = self.baseUrl + f"/changeStatus"
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 check_balance(self, request, idempotency_key=None, **kwargs):
2725
"""
2826
Checks the balance.
2927
"""
30-
endpoint = self.baseUrl + "/checkBalance"
28+
endpoint = self.baseUrl + f"/checkBalance"
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)
3531

3632
def issue(self, request, idempotency_key=None, **kwargs):
3733
"""
3834
Issues a new card.
3935
"""
40-
endpoint = self.baseUrl + "/issue"
36+
endpoint = self.baseUrl + f"/issue"
4137
method = "POST"
42-
return self.client.call_adyen_api(
43-
request, self.service, method, endpoint, idempotency_key, **kwargs
44-
)
38+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
4539

4640
def load(self, request, idempotency_key=None, **kwargs):
4741
"""
4842
Loads the payment method.
4943
"""
50-
endpoint = self.baseUrl + "/load"
44+
endpoint = self.baseUrl + f"/load"
5145
method = "POST"
52-
return self.client.call_adyen_api(
53-
request, self.service, method, endpoint, idempotency_key, **kwargs
54-
)
46+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
5547

5648
def merge_balance(self, request, idempotency_key=None, **kwargs):
5749
"""
5850
Merge the balance of two cards.
5951
"""
60-
endpoint = self.baseUrl + "/mergeBalance"
52+
endpoint = self.baseUrl + f"/mergeBalance"
6153
method = "POST"
62-
return self.client.call_adyen_api(
63-
request, self.service, method, endpoint, idempotency_key, **kwargs
64-
)
54+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
6555

6656
def void_transaction(self, request, idempotency_key=None, **kwargs):
6757
"""
6858
Voids a transaction.
6959
"""
70-
endpoint = self.baseUrl + "/voidTransaction"
60+
endpoint = self.baseUrl + f"/voidTransaction"
7161
method = "POST"
72-
return self.client.call_adyen_api(
73-
request, self.service, method, endpoint, idempotency_key, **kwargs
74-
)
62+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
63+

0 commit comments

Comments
 (0)