feat(events): add APIs to list webhook events and webhook delivery attempts (#4131)

This commit is contained in:
Sanchith Hegde
2024-03-21 19:02:17 +05:30
committed by GitHub
parent 4f8461b2a9
commit 14e1bbaf07
54 changed files with 4472 additions and 2705 deletions

View File

@ -53,6 +53,7 @@ Never share your secret api keys. Keep them guarded and secure.
),
tags(
(name = "Merchant Account", description = "Create and manage merchant accounts"),
(name = "Business Profile", description = "Create and manage business profiles"),
(name = "Merchant Connector Account", description = "Create and manage merchant connector accounts"),
(name = "Payments", description = "Create and manage one-time payments, recurring payments and mandates"),
(name = "Refunds", description = "Create and manage refunds for successful payments"),
@ -64,6 +65,7 @@ Never share your secret api keys. Keep them guarded and secure.
(name = "Payouts", description = "Create and manage payouts"),
(name = "payment link", description = "Create payment link"),
(name = "Routing", description = "Create and manage routing configurations"),
(name = "Event", description = "Manage events"),
),
// The paths will be displayed in the same order as they are registered here
paths(
@ -109,6 +111,7 @@ Never share your secret api keys. Keep them guarded and secure.
// Routes for mandates
routes::mandates::get_mandate,
routes::mandates::revoke_mandate,
routes::mandates::customers_mandates_list,
//Routes for customers
routes::customers::customers_create,
@ -116,14 +119,13 @@ Never share your secret api keys. Keep them guarded and secure.
routes::customers::customers_list,
routes::customers::customers_update,
routes::customers::customers_delete,
routes::customers::customers_mandates_list,
routes::customers::default_payment_method_set_api,
//Routes for payment methods
routes::payment_method::create_payment_method_api,
routes::payment_method::list_payment_method_api,
routes::payment_method::list_customer_payment_method_api,
routes::payment_method::list_customer_payment_method_api_client,
routes::payment_method::default_payment_method_set_api,
routes::payment_method::payment_method_retrieve_api,
routes::payment_method::payment_method_update_api,
routes::payment_method::payment_method_delete_api,
@ -131,9 +133,9 @@ Never share your secret api keys. Keep them guarded and secure.
// Routes for Business Profile
routes::business_profile::business_profile_create,
routes::business_profile::business_profiles_list,
routes::business_profile::business_profiles_retrieve,
routes::business_profile::business_profiles_update,
routes::business_profile::business_profiles_delete,
routes::business_profile::business_profiles_retrieve,
// Routes for disputes
routes::disputes::retrieve_dispute,
@ -170,7 +172,11 @@ Never share your secret api keys. Keep them guarded and secure.
routes::api_keys::api_key_create,
routes::api_keys::api_key_retrieve,
routes::api_keys::api_key_update,
routes::api_keys::api_key_revoke
routes::api_keys::api_key_revoke,
// Routes for events
routes::webhook_events::list_initial_webhook_delivery_attempts,
routes::webhook_events::list_webhook_delivery_attempts,
),
components(schemas(
api_models::refunds::RefundRequest,
@ -434,6 +440,7 @@ Never share your secret api keys. Keep them guarded and secure.
api_models::payments::FrmMessage,
api_models::webhooks::OutgoingWebhook,
api_models::webhooks::OutgoingWebhookContent,
api_models::enums::EventClass,
api_models::enums::EventType,
api_models::enums::DecoupledAuthenticationType,
api_models::enums::AuthenticationStatus,
@ -483,7 +490,12 @@ Never share your secret api keys. Keep them guarded and secure.
api_models::blocklist::BlocklistResponse,
api_models::blocklist::ToggleBlocklistResponse,
api_models::blocklist::ListBlocklistQuery,
api_models::enums::BlocklistDataKind
api_models::enums::BlocklistDataKind,
api_models::webhook_events::EventListItemResponse,
api_models::webhook_events::EventRetrieveResponse,
api_models::webhook_events::OutgoingWebhookRequestContent,
api_models::webhook_events::OutgoingWebhookResponseContent,
api_models::enums::WebhookDeliveryAttempt,
)),
modifiers(&SecurityAddon)
)]