Skip to content

Commit

Permalink
Adds missing properties. Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-rodriguez-cko committed Aug 24, 2023
1 parent 105e8b8 commit ce77430
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions checkout_sdk/payments/payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,8 @@ def __init__(self):
class PaymentRequestIdDestination(PaymentRequestDestination):
id: str

account_holder: AccountHolder

def __init__(self):
super().__init__(PaymentDestinationType.ID)

Expand Down
2 changes: 1 addition & 1 deletion tests/checkout_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions tests/issuing/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ce77430

Please sign in to comment.