Skip to content

Conversation

@stymoshchuk
Copy link
Contributor

No description provided.

Comment on lines 148 to 149
# Mock or assume the existence of these functions
account_id = "3344334" # Assuming this function exists
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What function? Isn't this just a varible declaration?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry it is just variable, will remove comment

Comment on lines 152 to 156
"trackUserId": "userId_fe6885b5815463b26f65e71095832bdd916890f7"},
credit_limit=_credit_limit)
"trackUserId": "userId_fe6885b5815463b26f65e71095832bdd916890f7"})
response = client.accounts.update(request)
assert response.data.type == "creditAccount"
assert response.data.attributes.get("creditLimit") == _credit_limit
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we need to remove the credit limit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from what i tested in postman we dont need creditLimit

transaction_ids = []
response = client.transactions.list(ListTransactionParams(150, 20, since="2022-10-13T16:01:19.346Z",
until="2022-11-13T16:01:19.346Z"))
until="2022-11-13T16:01:19.346Z", account_id="3344334"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change intdended?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yess as this account is with benOwners

payload = {
"data": {
"type": CreditAccountType,
"type": "creditAccount", # Assuming CreditAccountType resolves to "creditAccount"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm understanding this correctly, CreditAccountType is a constant\enum that was reused. It is a much better and cleaner approach that hardcoding string values. Is there a reason to omit CreditAccountType and use the string instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok will return it

beneficial_owners=[
BeneficialOwner(
try:
request = CreateBusinessApplicationRequest(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I understanding that in CreateBusinessApplicationRequest there are only formatting changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small change to do benOff optional

def test_update_credit_account():
# Mock or assume the existence of these functions
account_id = "3344334" # Assuming this function exists
account_id = "3344334"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a way to not have this id hardcoded, but create an account for the test or fetch an existing one?

@stymoshchuk stymoshchuk merged commit e1e90fa into master Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants