Skip to content

Commit 6b1cab9

Browse files
false[adyen-sdk-automation] automated change (#285)
1 parent 23d60a7 commit 6b1cab9

File tree

4 files changed

+82
-8
lines changed

4 files changed

+82
-8
lines changed

Adyen/services/balancePlatform/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
from .account_holders_api import AccountHoldersApi
33
from .balance_accounts_api import BalanceAccountsApi
44
from .bank_account_validation_api import BankAccountValidationApi
5+
from .card_orders_api import CardOrdersApi
56
from .grant_accounts_api import GrantAccountsApi
67
from .grant_offers_api import GrantOffersApi
78
from .network_tokens_api import NetworkTokensApi
9+
from .pin_functionality_api import PINFunctionalityApi
810
from .payment_instrument_groups_api import PaymentInstrumentGroupsApi
911
from .payment_instruments_api import PaymentInstrumentsApi
1012
from .platform_api import PlatformApi
@@ -24,9 +26,11 @@ def __init__(self, client=None):
2426
self.account_holders_api = AccountHoldersApi(client=client)
2527
self.balance_accounts_api = BalanceAccountsApi(client=client)
2628
self.bank_account_validation_api = BankAccountValidationApi(client=client)
29+
self.card_orders_api = CardOrdersApi(client=client)
2730
self.grant_accounts_api = GrantAccountsApi(client=client)
2831
self.grant_offers_api = GrantOffersApi(client=client)
2932
self.network_tokens_api = NetworkTokensApi(client=client)
33+
self.pin_functionality_api = PINFunctionalityApi(client=client)
3034
self.payment_instrument_groups_api = PaymentInstrumentGroupsApi(client=client)
3135
self.payment_instruments_api = PaymentInstrumentsApi(client=client)
3236
self.platform_api = PlatformApi(client=client)

Adyen/services/balancePlatform/balance_accounts_api.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ def delete_sweep(self, balanceAccountId, sweepId, idempotency_key=None, **kwargs
3737
method = "DELETE"
3838
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
3939

40-
def get_all_payment_instruments_for_balance_account(self, id, idempotency_key=None, **kwargs):
41-
"""
42-
Get all payment instruments for a balance account
43-
"""
44-
endpoint = self.baseUrl + f"/balanceAccounts/{id}/paymentInstruments"
45-
method = "GET"
46-
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
47-
4840
def get_all_sweeps_for_balance_account(self, balanceAccountId, idempotency_key=None, **kwargs):
4941
"""
5042
Get all sweeps for a balance account
@@ -61,6 +53,14 @@ def get_balance_account(self, id, idempotency_key=None, **kwargs):
6153
method = "GET"
6254
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
6355

56+
def get_payment_instruments_linked_to_balance_account(self, id, idempotency_key=None, **kwargs):
57+
"""
58+
Get payment instruments linked to a balance account
59+
"""
60+
endpoint = self.baseUrl + f"/balanceAccounts/{id}/paymentInstruments"
61+
method = "GET"
62+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
63+
6464
def get_sweep(self, balanceAccountId, sweepId, idempotency_key=None, **kwargs):
6565
"""
6666
Get a sweep
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
from ..base import AdyenServiceBase
2+
3+
4+
class CardOrdersApi(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(CardOrdersApi, self).__init__(client=client)
13+
self.service = "balancePlatform"
14+
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
15+
16+
def get_card_order_items(self, id, idempotency_key=None, **kwargs):
17+
"""
18+
Get card order items
19+
"""
20+
endpoint = self.baseUrl + f"/cardorders/{id}/items"
21+
method = "GET"
22+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
23+
24+
def list_card_orders(self, idempotency_key=None, **kwargs):
25+
"""
26+
Get a list of card orders
27+
"""
28+
endpoint = self.baseUrl + f"/cardorders"
29+
method = "GET"
30+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
31+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
from ..base import AdyenServiceBase
2+
3+
4+
class PINFunctionalityApi(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(PINFunctionalityApi, self).__init__(client=client)
13+
self.service = "balancePlatform"
14+
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"
15+
16+
def change_pin(self, request, idempotency_key=None, **kwargs):
17+
"""
18+
Change Pin
19+
"""
20+
endpoint = self.baseUrl + f"/pins/change"
21+
method = "POST"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+
24+
def get_rsa_publickey(self, idempotency_key=None, **kwargs):
25+
"""
26+
Get RSA publicKey
27+
"""
28+
endpoint = self.baseUrl + f"/pins/publicKey"
29+
method = "GET"
30+
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
31+
32+
def reveal_pin(self, request, idempotency_key=None, **kwargs):
33+
"""
34+
Reveal Pin
35+
"""
36+
endpoint = self.baseUrl + f"/pins/reveal"
37+
method = "POST"
38+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
39+

0 commit comments

Comments
 (0)