Skip to content

Commit c4a7e22

Browse files
false[adyen-sdk-automation] automated change (#282)
1 parent 0285102 commit c4a7e22

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+569
-529
lines changed

Adyen/services/balanceControl.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from .base import AdyenServiceBase
2+
3+
4+
class AdyenBalanceControlApi(AdyenServiceBase):
5+
"""NOTE: This class is auto generated by OpenAPI Generator
6+
Ref: https://openapi-generator.tech
7+
8+
Do not edit the class manually.
9+
"""
10+
11+
def __init__(self, client=None):
12+
super(AdyenBalanceControlApi, self).__init__(client=client)
13+
self.service = "balanceControl"
14+
self.baseUrl = "https://pal-test.adyen.com/pal/servlet/BalanceControl/v1"
15+
16+
def balance_transfer(self, request, idempotency_key=None, **kwargs):
17+
"""
18+
Start a balance transfer
19+
"""
20+
endpoint = self.baseUrl + f"/balanceTransfer"
21+
method = "POST"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+

Adyen/services/balancePlatform/account_holders_api.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ def __init__(self, client=None):
1313
self.service = "balancePlatform"
1414
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
1515

16+
def create_account_holder(self, request, idempotency_key=None, **kwargs):
17+
"""
18+
Create an account holder
19+
"""
20+
endpoint = self.baseUrl + f"/accountHolders"
21+
method = "POST"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+
1624
def get_account_holder(self, id, idempotency_key=None, **kwargs):
1725
"""
1826
Get an account holder
@@ -45,11 +53,3 @@ def update_account_holder(self, request, id, idempotency_key=None, **kwargs):
4553
method = "PATCH"
4654
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
4755

48-
def create_account_holder(self, request, idempotency_key=None, **kwargs):
49-
"""
50-
Create an account holder
51-
"""
52-
endpoint = self.baseUrl + f"/accountHolders"
53-
method = "POST"
54-
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
55-

Adyen/services/balancePlatform/balance_accounts_api.py

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@ def __init__(self, client=None):
1313
self.service = "balancePlatform"
1414
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
1515

16+
def create_balance_account(self, request, idempotency_key=None, **kwargs):
17+
"""
18+
Create a balance account
19+
"""
20+
endpoint = self.baseUrl + f"/balanceAccounts"
21+
method = "POST"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+
24+
def create_sweep(self, request, balanceAccountId, idempotency_key=None, **kwargs):
25+
"""
26+
Create a sweep
27+
"""
28+
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps"
29+
method = "POST"
30+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
31+
1632
def delete_sweep(self, balanceAccountId, sweepId, idempotency_key=None, **kwargs):
1733
"""
1834
Delete a sweep
@@ -21,19 +37,19 @@ def delete_sweep(self, balanceAccountId, sweepId, idempotency_key=None, **kwargs
2137
method = "DELETE"
2238
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
2339

24-
def get_all_sweeps_for_balance_account(self, balanceAccountId, idempotency_key=None, **kwargs):
40+
def get_all_payment_instruments_for_balance_account(self, id, idempotency_key=None, **kwargs):
2541
"""
26-
Get all sweeps for a balance account
42+
Get all payment instruments for a balance account
2743
"""
28-
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps"
44+
endpoint = self.baseUrl + f"/balanceAccounts/{id}/paymentInstruments"
2945
method = "GET"
3046
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
3147

32-
def get_sweep(self, balanceAccountId, sweepId, idempotency_key=None, **kwargs):
48+
def get_all_sweeps_for_balance_account(self, balanceAccountId, idempotency_key=None, **kwargs):
3349
"""
34-
Get a sweep
50+
Get all sweeps for a balance account
3551
"""
36-
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}"
52+
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps"
3753
method = "GET"
3854
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
3955

@@ -45,22 +61,14 @@ def get_balance_account(self, id, idempotency_key=None, **kwargs):
4561
method = "GET"
4662
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
4763

48-
def get_all_payment_instruments_for_balance_account(self, id, idempotency_key=None, **kwargs):
64+
def get_sweep(self, balanceAccountId, sweepId, idempotency_key=None, **kwargs):
4965
"""
50-
Get all payment instruments for a balance account
66+
Get a sweep
5167
"""
52-
endpoint = self.baseUrl + f"/balanceAccounts/{id}/paymentInstruments"
68+
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}"
5369
method = "GET"
5470
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
5571

56-
def update_sweep(self, request, balanceAccountId, sweepId, idempotency_key=None, **kwargs):
57-
"""
58-
Update a sweep
59-
"""
60-
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}"
61-
method = "PATCH"
62-
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
63-
6472
def update_balance_account(self, request, id, idempotency_key=None, **kwargs):
6573
"""
6674
Update a balance account
@@ -69,19 +77,11 @@ def update_balance_account(self, request, id, idempotency_key=None, **kwargs):
6977
method = "PATCH"
7078
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
7179

72-
def create_balance_account(self, request, idempotency_key=None, **kwargs):
73-
"""
74-
Create a balance account
75-
"""
76-
endpoint = self.baseUrl + f"/balanceAccounts"
77-
method = "POST"
78-
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
79-
80-
def create_sweep(self, request, balanceAccountId, idempotency_key=None, **kwargs):
80+
def update_sweep(self, request, balanceAccountId, sweepId, idempotency_key=None, **kwargs):
8181
"""
82-
Create a sweep
82+
Update a sweep
8383
"""
84-
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps"
85-
method = "POST"
84+
endpoint = self.baseUrl + f"/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}"
85+
method = "PATCH"
8686
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
8787

Adyen/services/balancePlatform/payment_instrument_groups_api.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ def __init__(self, client=None):
1313
self.service = "balancePlatform"
1414
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
1515

16-
def get_payment_instrument_group(self, id, idempotency_key=None, **kwargs):
16+
def create_payment_instrument_group(self, request, idempotency_key=None, **kwargs):
1717
"""
18-
Get a payment instrument group
18+
Create a payment instrument group
1919
"""
20-
endpoint = self.baseUrl + f"/paymentInstrumentGroups/{id}"
21-
method = "GET"
22-
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
20+
endpoint = self.baseUrl + f"/paymentInstrumentGroups"
21+
method = "POST"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
2323

2424
def get_all_transaction_rules_for_payment_instrument_group(self, id, idempotency_key=None, **kwargs):
2525
"""
@@ -29,11 +29,11 @@ def get_all_transaction_rules_for_payment_instrument_group(self, id, idempotency
2929
method = "GET"
3030
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
3131

32-
def create_payment_instrument_group(self, request, idempotency_key=None, **kwargs):
32+
def get_payment_instrument_group(self, id, idempotency_key=None, **kwargs):
3333
"""
34-
Create a payment instrument group
34+
Get a payment instrument group
3535
"""
36-
endpoint = self.baseUrl + f"/paymentInstrumentGroups"
37-
method = "POST"
38-
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
36+
endpoint = self.baseUrl + f"/paymentInstrumentGroups/{id}"
37+
method = "GET"
38+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
3939

Adyen/services/balancePlatform/payment_instruments_api.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ def __init__(self, client=None):
1313
self.service = "balancePlatform"
1414
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
1515

16-
def get_payment_instrument(self, id, idempotency_key=None, **kwargs):
16+
def create_payment_instrument(self, request, idempotency_key=None, **kwargs):
1717
"""
18-
Get a payment instrument
18+
Create a payment instrument
1919
"""
20-
endpoint = self.baseUrl + f"/paymentInstruments/{id}"
21-
method = "GET"
22-
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
20+
endpoint = self.baseUrl + f"/paymentInstruments"
21+
method = "POST"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
2323

24-
def list_network_tokens(self, id, idempotency_key=None, **kwargs):
24+
def get_all_transaction_rules_for_payment_instrument(self, id, idempotency_key=None, **kwargs):
2525
"""
26-
List network tokens
26+
Get all transaction rules for a payment instrument
2727
"""
28-
endpoint = self.baseUrl + f"/paymentInstruments/{id}/networkTokens"
28+
endpoint = self.baseUrl + f"/paymentInstruments/{id}/transactionRules"
2929
method = "GET"
3030
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
3131

@@ -37,11 +37,19 @@ def get_pan_of_payment_instrument(self, id, idempotency_key=None, **kwargs):
3737
method = "GET"
3838
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
3939

40-
def get_all_transaction_rules_for_payment_instrument(self, id, idempotency_key=None, **kwargs):
40+
def get_payment_instrument(self, id, idempotency_key=None, **kwargs):
4141
"""
42-
Get all transaction rules for a payment instrument
42+
Get a payment instrument
4343
"""
44-
endpoint = self.baseUrl + f"/paymentInstruments/{id}/transactionRules"
44+
endpoint = self.baseUrl + f"/paymentInstruments/{id}"
45+
method = "GET"
46+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
47+
48+
def list_network_tokens(self, id, idempotency_key=None, **kwargs):
49+
"""
50+
List network tokens
51+
"""
52+
endpoint = self.baseUrl + f"/paymentInstruments/{id}/networkTokens"
4553
method = "GET"
4654
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
4755

@@ -53,11 +61,3 @@ def update_payment_instrument(self, request, id, idempotency_key=None, **kwargs)
5361
method = "PATCH"
5462
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
5563

56-
def create_payment_instrument(self, request, idempotency_key=None, **kwargs):
57-
"""
58-
Create a payment instrument
59-
"""
60-
endpoint = self.baseUrl + f"/paymentInstruments"
61-
method = "POST"
62-
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
63-

Adyen/services/balancePlatform/platform_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ def __init__(self, client=None):
1313
self.service = "balancePlatform"
1414
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
1515

16-
def get_balance_platform(self, id, idempotency_key=None, **kwargs):
16+
def get_all_account_holders_under_balance_platform(self, id, idempotency_key=None, **kwargs):
1717
"""
18-
Get a balance platform
18+
Get all account holders under a balance platform
1919
"""
20-
endpoint = self.baseUrl + f"/balancePlatforms/{id}"
20+
endpoint = self.baseUrl + f"/balancePlatforms/{id}/accountHolders"
2121
method = "GET"
2222
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
2323

24-
def get_all_account_holders_under_balance_platform(self, id, idempotency_key=None, **kwargs):
24+
def get_balance_platform(self, id, idempotency_key=None, **kwargs):
2525
"""
26-
Get all account holders under a balance platform
26+
Get a balance platform
2727
"""
28-
endpoint = self.baseUrl + f"/balancePlatforms/{id}/accountHolders"
28+
endpoint = self.baseUrl + f"/balancePlatforms/{id}"
2929
method = "GET"
3030
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
3131

Adyen/services/balancePlatform/transaction_rules_api.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ def __init__(self, client=None):
1313
self.service = "balancePlatform"
1414
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
1515

16+
def create_transaction_rule(self, request, idempotency_key=None, **kwargs):
17+
"""
18+
Create a transaction rule
19+
"""
20+
endpoint = self.baseUrl + f"/transactionRules"
21+
method = "POST"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+
1624
def delete_transaction_rule(self, transactionRuleId, idempotency_key=None, **kwargs):
1725
"""
1826
Delete a transaction rule
@@ -37,11 +45,3 @@ def update_transaction_rule(self, request, transactionRuleId, idempotency_key=No
3745
method = "PATCH"
3846
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
3947

40-
def create_transaction_rule(self, request, idempotency_key=None, **kwargs):
41-
"""
42-
Create a transaction rule
43-
"""
44-
endpoint = self.baseUrl + f"/transactionRules"
45-
method = "POST"
46-
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
47-

Adyen/services/binlookup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class AdyenBinlookupApi(AdyenServiceBase):
1111
def __init__(self, client=None):
1212
super(AdyenBinlookupApi, self).__init__(client=client)
1313
self.service = "binlookup"
14-
self.baseUrl = "https://pal-test.adyen.com/pal/servlet/BinLookup/v52"
14+
self.baseUrl = "https://pal-test.adyen.com/pal/servlet/BinLookup/v54"
1515

1616
def get3ds_availability(self, request, idempotency_key=None, **kwargs):
1717
"""

Adyen/services/checkout/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from ..base import AdyenServiceBase
22
from .classic_checkout_sdk_api import ClassicCheckoutSDKApi
3+
from .donations_api import DonationsApi
34
from .modifications_api import ModificationsApi
45
from .orders_api import OrdersApi
56
from .payment_links_api import PaymentLinksApi
@@ -18,6 +19,7 @@ class AdyenCheckoutApi(AdyenServiceBase):
1819
def __init__(self, client=None):
1920
super(AdyenCheckoutApi, self).__init__(client=client)
2021
self.classic_checkout_sdk_api = ClassicCheckoutSDKApi(client=client)
22+
self.donations_api = DonationsApi(client=client)
2123
self.modifications_api = ModificationsApi(client=client)
2224
self.orders_api = OrdersApi(client=client)
2325
self.payment_links_api = PaymentLinksApi(client=client)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from ..base import AdyenServiceBase
2+
3+
4+
class DonationsApi(AdyenServiceBase):
5+
"""NOTE: This class is auto generated by OpenAPI Generator
6+
Ref: https://openapi-generator.tech
7+
8+
Do not edit the class manually.
9+
"""
10+
11+
def __init__(self, client=None):
12+
super(DonationsApi, self).__init__(client=client)
13+
self.service = "checkout"
14+
self.baseUrl = "https://checkout-test.adyen.com/v71"
15+
16+
def donations(self, request, idempotency_key=None, **kwargs):
17+
"""
18+
Start a transaction for donations
19+
"""
20+
endpoint = self.baseUrl + f"/donations"
21+
method = "POST"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+

0 commit comments

Comments
 (0)