Skip to content

Code generation: update services and models #373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
16 changes: 16 additions & 0 deletions Adyen/services/balancePlatform/payment_instruments_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ def __init__(self, client=None):
self.service = "balancePlatform"
self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2"

def create_network_token_activation_data(self, request, id, idempotency_key=None, **kwargs):
"""
Create network token activation data
"""
endpoint = self.baseUrl + f"/paymentInstruments/{id}/networkTokenActivationData"
method = "POST"
return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs)

def create_payment_instrument(self, request, idempotency_key=None, **kwargs):
"""
Create a payment instrument
Expand All @@ -29,6 +37,14 @@ def get_all_transaction_rules_for_payment_instrument(self, id, idempotency_key=N
method = "GET"
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)

def get_network_token_activation_data(self, id, idempotency_key=None, **kwargs):
"""
Get network token activation data
"""
endpoint = self.baseUrl + f"/paymentInstruments/{id}/networkTokenActivationData"
method = "GET"
return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs)

def get_pan_of_payment_instrument(self, id, idempotency_key=None, **kwargs):
"""
Get the PAN of a payment instrument
Expand Down