Skip to content

Commit

Permalink
feat: added webhooks events (#272)
Browse files Browse the repository at this point in the history
Co-authored-by: Pritish Budhiraja <[email protected]>
  • Loading branch information
sagarnaikjuspay and Pritish Budhiraja authored Jan 24, 2024
1 parent ad2ffb9 commit 255241c
Show file tree
Hide file tree
Showing 8 changed files with 412 additions and 225 deletions.
15 changes: 15 additions & 0 deletions public/hyperswitch/icons/solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/screens/HyperSwitch/APIUtils/APIUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,16 @@ let getURL = (
}
| _ => ""
}
| WEBHOOKS_EVENT_LOGS =>
switch id {
| Some(payment_id) => `analytics/v1/outgoing_webhook_event_logs?payment_id=${payment_id}`
| None => ""
}
| CONNECTOR_EVENT_LOGS =>
switch id {
| Some(payment_id) => `analytics/v1/connector_event_logs?type=Payment&payment_id=${payment_id}`
| None => ""
}
| USERS =>
let userUrl = `user`
switch userType {
Expand Down
2 changes: 2 additions & 0 deletions src/screens/HyperSwitch/APIUtils/APIUtilsTypes.res
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ type entityName =
| ANALYTICS_SYSTEM_METRICS
| PAYMENT_LOGS
| SDK_EVENT_LOGS
| WEBHOOKS_EVENT_LOGS
| CONNECTOR_EVENT_LOGS
| GENERATE_SAMPLE_DATA
| USERS
| RECON
Expand Down
Loading

0 comments on commit 255241c

Please sign in to comment.