-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(payment): Add audit events for PaymentStart update #4800
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename the variant to a verb
Rest looks good
@@ -219,6 +219,11 @@ impl<F: Clone> UpdateTracker<F, PaymentData<F>, api::PaymentsStartRequest> for P | |||
where | |||
F: 'b + Send, | |||
{ | |||
_req_state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_req_state | |
req_state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @lsampras the passed variable is _req_state shouldn't we use it in that way only?? just asking, I am a beginner
@@ -219,6 +219,11 @@ impl<F: Clone> UpdateTracker<F, PaymentData<F>, api::PaymentsStartRequest> for P | |||
where | |||
F: 'b + Send, | |||
{ | |||
_req_state | |||
.event_context | |||
.event(AuditEvent::new(AuditEventType::PaymentStarted)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.event(AuditEvent::new(AuditEventType::PaymentStarted)) | |
.event(AuditEvent::new(AuditEventType::PaymentStart)) |
4cc51fc
to
f513c8e
Compare
Type of Change
Description
update the paymentstart implementation of updatetracker to generate an event
Additional Changes
Add audit events for PaymentStart update
following files have been changed:
crates/router/src/core/payments/operations/patment_start.rs
crates/router/src/events/audit_events.rs
Motivation and Context
#4681
How did you test it?
Checklist
cargo +nightly fmt --all
cargo clippy