feat(router): added incoming refund webhooks flow (#683)

Co-authored-by: sai harsha <sai.harsha@sai.harsha-MacBookPro>
This commit is contained in:
saiharsha-juspay
2023-02-28 19:15:25 +05:30
committed by GitHub
parent 2e99152d35
commit f12abbcef4
12 changed files with 302 additions and 11 deletions

View File

@ -400,6 +400,8 @@ pub enum WebhooksFlowError {
MerchantWebhookURLNotConfigured,
#[error("Payments core flow failed")]
PaymentsCoreFailed,
#[error("Refunds core flow failed")]
RefundsCoreFailed,
#[error("Webhook event creation failed")]
WebhookEventCreationFailed,
#[error("Unable to fork webhooks flow for outgoing webhooks")]
@ -408,6 +410,8 @@ pub enum WebhooksFlowError {
CallToMerchantFailed,
#[error("Webhook not received by merchant")]
NotReceivedByMerchant,
#[error("Resource not found")]
ResourceNotFound,
}
#[derive(Debug, thiserror::Error)]