8000 Fix parsing of new TR API event style and a few minor things by RealCLanger · Pull Request #223 · pytr-org/pytr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix parsing of new TR API event style and a few minor things #223

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

Merged
merged 3 commits into from
Jun 9, 2025

Conversation

RealCLanger
Copy link
Collaborator

Trade Republic has modified the payload for some events. This needs some fixes in event parsing.

With this change I also add some event types that went unrecognized so far and I incorporate a suggestion about file names from #212.

Add additional event types
Remove duplicate doc ids in filenames
Copy link
@nagy nagy left a comment

Choose a reason for hiding this comment

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

Code looks good so far. I have yet to test it.

@derterz
Copy link
Contributor
derterz commented May 31, 2025

Tested it and indeed it works nicely for me. Thanks a lot!

pytr/event.py Outdated
"ORDER_CANCELED",
"ORDER_CREATED",
"ORDER_EXPIRED",
"ORDER_REJECTED",
"PAYMENT-SERVICE-IN-PAYMENT-DIRECT-DEBIT",
Copy link
@decontamin4t0R decontamin4t0R May 31, 2025

Choose a reason for hiding this comment

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

This caused some direct transfers to be missing from the generated file for me...

Copy link
Collaborator Author
@RealCLanger RealCLanger May 31, 2025

Choose a reason for hiding this comment

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

Hm, ok, removed for now. However, what kind of event is this? It is not mapped to anything through tr_event_type_mapping...
Maybe you could provide anonymised json data for this?

@RealCLanger RealCLanger merged commit 9b49e3f into pytr-org:master Jun 9, 2025
6 checks passed
@RealCLanger RealCLanger deleted the newupdates branch June 9, 2025 04:56
nagy pushed a commit to nagy/pytr that referenced this pull request Jun 19, 2025
…g#223)

Fix parsing of new event style
Add additional event types
Remove duplicate doc ids in filenames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
0