-
Notifications
You must be signed in to change notification settings - Fork 112
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
LG-14905: socure webhook analytics event updates #11490
Conversation
a883e89
to
3459e53
Compare
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.
A few suggestions, but greatly improved!
|
||
expect(response).to have_http_status(:unauthorized) | ||
end | ||
|
||
it 'returns bad request with no event in the body' do |
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.
This spec seems out of place. Maybe move to
- with a valid webhook key (existing context)
- when event is missing (new context)
event_type:, | ||
reference_id: reference_id, |
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.
If we're going to use the compact form, let's use it whenever we can.
event_type:, | |
reference_id: reference_id, | |
event_type:, | |
reference_id:, |
customer_user_id:, | ||
docv_transaction_token: dcs.socure_docv_transaction_token, | ||
event_type:, | ||
reference_id: reference_id, |
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.
reference_id: reference_id, | |
reference_id:, |
customer_user_id:, | ||
docv_transaction_token: dcs.socure_docv_transaction_token, | ||
event_type:, | ||
reference_id: reference_id, |
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.
reference_id: reference_id, | |
reference_id:, |
@@ -0,0 +1,11 @@ | |||
FactoryBot.define do | |||
factory :document_capture_session do |
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.
Yay!
changelog: Upcoming Features, Document Authentication, Socure webhook event attribute updates
eda4677
to
f748595
Compare
🎫 Ticket
LG-14905
🛠 Summary of changes
📜 Testing Plan