From ce774309f5320ef7ee61d2c7d2306505fdbd7707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armando=20Rodr=C3=ADguez?= <127134616+armando-rodriguez-cko@users.noreply.github.com> Date: Tue, 22 Aug 2023 10:11:38 +0200 Subject: [PATCH] Adds missing properties. Fix tests --- checkout_sdk/payments/payments.py | 2 ++ tests/checkout_test_utils.py | 2 +- tests/issuing/conftest.py | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/checkout_sdk/payments/payments.py b/checkout_sdk/payments/payments.py index 7f407c1..4de3093 100644 --- a/checkout_sdk/payments/payments.py +++ b/checkout_sdk/payments/payments.py @@ -490,6 +490,8 @@ def __init__(self): class PaymentRequestIdDestination(PaymentRequestDestination): id: str + account_holder: AccountHolder + def __init__(self): super().__init__(PaymentDestinationType.ID) diff --git a/tests/checkout_test_utils.py b/tests/checkout_test_utils.py index 915d9b1..60fb45e 100644 --- a/tests/checkout_test_utils.py +++ b/tests/checkout_test_utils.py @@ -65,7 +65,7 @@ def assert_response(obj, *argv: str): def address() -> Address: _address = Address() _address.address_line1 = 'CheckoutSdk.com' - _address.address_line2 = '90 Tottenham Court Road' + _address.address_line2 = 'max_10_c__' _address.city = 'London' _address.state = 'London' _address.zip = 'W1T 4TJ' diff --git a/tests/issuing/conftest.py b/tests/issuing/conftest.py index fd706bf..d349db9 100644 --- a/tests/issuing/conftest.py +++ b/tests/issuing/conftest.py @@ -19,8 +19,8 @@ def issuing_checkout_api(): .oauth() \ .client_credentials(client_id=os.environ.get('CHECKOUT_DEFAULT_OAUTH_ISSUING_CLIENT_ID'), client_secret=os.environ.get('CHECKOUT_DEFAULT_OAUTH_ISSUING_CLIENT_SECRET')) \ - .scopes({OAuthScopes.ISSUING_CLIENT, OAuthScopes.ISSUING_CARD_MGMT, - OAuthScopes.ISSUING_CONTROLS_READ, OAuthScopes.ISSUING_CONTROLS_WRITE}) \ + .scopes([OAuthScopes.ISSUING_CLIENT, OAuthScopes.ISSUING_CARD_MGMT, + OAuthScopes.ISSUING_CONTROLS_READ, OAuthScopes.ISSUING_CONTROLS_WRITE]) \ .build() return api