Skip to content

Commit 66a75af

Browse files
map card_successful_verification to new PPEventType.OTHER
1 parent 69d819b commit 66a75af

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pytr/event.py

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class PPEventType(EventType):
3434
TAX_REFUND = "TAX_REFUND"
3535
TRANSFER_IN = "TRANSFER_IN" # Currently not mapped to
3636
TRANSFER_OUT = "TRANSFER_OUT" # Currently not mapped to
37+
OTHER = "OTHER" # Events that have no impact on the account balance.
3738

3839

3940
tr_event_type_mapping = {
@@ -76,6 +77,8 @@ class PPEventType(EventType):
7677
"TRADE_INVOICE": ConditionalEventType.TRADE_INVOICE,
7778
# Gifting
7879
"GIFTER_TRANSACTION": PPEventType.TRANSFER_OUT,
80+
# Other
81+
"card_successful_verification": PPEventType.OTHER,
7982
}
8083

8184

pytr/timeline.py

-5
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,6 @@ def process_timelineDetail(self, response, dl):
132132
if support_action and (timeline_event_id := support_action["payload"]["contextParams"].get("timelineEventId")):
133133
pass
134134
else:
135-
if support_action:
136-
# DEBUG
137-
self.log.warning(
138-
"This event has no timelineEventId in the customerSupportChat action: %s", json.dumps(response)
139-
)
140135
timeline_event_id = response["id"]
141136

142137
event = self.timeline_events.get(timeline_event_id, None)

0 commit comments

Comments
 (0)