Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Adyen/services/balancePlatform/authorized_card_users_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,35 @@ def __init__(self, client=None):
self.service = "balancePlatform"
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"

def payment_instruments_payment_instrument_id_authorised_card_users_delete(self, paymentInstrumentId, idempotency_key=None, **kwargs):
def create_authorised_card_users(self, request, paymentInstrumentId, authorisedCardUsers, idempotency_key=None, **kwargs):
"""
Create authorized users for a card.
"""
endpoint = self.baseUrl + f"/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers"
method = "POST"
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)

def delete_authorised_card_users(self, paymentInstrumentId, idempotency_key=None, **kwargs):
"""
Delete the authorized users for a card.
"""
endpoint = self.baseUrl + f"/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers"
method = "DELETE"
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)

def payment_instruments_payment_instrument_id_authorised_card_users_get(self, paymentInstrumentId, idempotency_key=None, **kwargs):
def get_all_authorised_card_users(self, paymentInstrumentId, idempotency_key=None, **kwargs):
"""
Get authorized users for a card.
"""
endpoint = self.baseUrl + f"/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers"
method = "GET"
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)

def payment_instruments_payment_instrument_id_authorised_card_users_patch(self, request, paymentInstrumentId, authorisedCardUsers, idempotency_key=None, **kwargs):
def update_authorised_card_users(self, request, paymentInstrumentId, authorisedCardUsers, idempotency_key=None, **kwargs):
"""
Update the authorized users for a card.
"""
endpoint = self.baseUrl + f"/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers"
method = "PATCH"
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)

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

Loading