Skip to content

Commit 7b2c3c8

Browse files
authored
Merge pull request #370 from Adyen/sdk-automation/models
Code generation: update services and models
2 parents a65c270 + 3b2e5ca commit 7b2c3c8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Adyen/services/balancePlatform/authorized_card_users_api.py

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

16-
def payment_instruments_payment_instrument_id_authorised_card_users_delete(self, paymentInstrumentId, idempotency_key=None, **kwargs):
16+
def create_authorised_card_users(self, request, paymentInstrumentId, authorisedCardUsers, idempotency_key=None, **kwargs):
17+
"""
18+
Create authorized users for a card.
19+
"""
20+
endpoint = self.baseUrl + f"/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers"
21+
method = "POST"
22+
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
23+
24+
def delete_authorised_card_users(self, paymentInstrumentId, idempotency_key=None, **kwargs):
1725
"""
1826
Delete the authorized users for a card.
1927
"""
2028
endpoint = self.baseUrl + f"/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers"
2129
method = "DELETE"
2230
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
2331

24-
def payment_instruments_payment_instrument_id_authorised_card_users_get(self, paymentInstrumentId, idempotency_key=None, **kwargs):
32+
def get_all_authorised_card_users(self, paymentInstrumentId, idempotency_key=None, **kwargs):
2533
"""
2634
Get authorized users for a card.
2735
"""
2836
endpoint = self.baseUrl + f"/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers"
2937
method = "GET"
3038
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)
3139

32-
def payment_instruments_payment_instrument_id_authorised_card_users_patch(self, request, paymentInstrumentId, authorisedCardUsers, idempotency_key=None, **kwargs):
40+
def update_authorised_card_users(self, request, paymentInstrumentId, authorisedCardUsers, idempotency_key=None, **kwargs):
3341
"""
3442
Update the authorized users for a card.
3543
"""
3644
endpoint = self.baseUrl + f"/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers"
3745
method = "PATCH"
3846
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
3947

40-
def payment_instruments_payment_instrument_id_authorised_card_users_post(self, request, paymentInstrumentId, authorisedCardUsers, idempotency_key=None, **kwargs):
41-
"""
42-
Create authorized users for a card.
43-
"""
44-
endpoint = self.baseUrl + f"/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers"
45-
method = "POST"
46-
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)
47-

0 commit comments

Comments
 (0)