Skip to content

Commit 26dd768

Browse files
[storedvalue] Automated update from Adyen/adyen-openapi@6f2bb26
1 parent ff7647e commit 26dd768

1 file changed

Lines changed: 13 additions & 24 deletions

File tree

Adyen/services/storedValue/stored_value_api.py

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,58 +17,47 @@ 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)