refactor(router): remove foreign wrapper type (#616)

Co-authored-by: Arun Raj M <jarnura47@gmail.com>
Co-authored-by: Narayan Bhat <48803246+Narayanbhat166@users.noreply.github.com>
Co-authored-by: Abhishek <abhishek.marrivagu@juspay.in>
Co-authored-by: dracarys18 <karthikey.hegde@juspay.in>
Co-authored-by: Sampras Lopes <lsampras@protonmail.com>
Co-authored-by: Jagan <jaganelavarasan@gmail.com>
Co-authored-by: rupakrajak <43450369+rupakrajak@users.noreply.github.com>
Co-authored-by: Zaid <syed.zaidali@juspay.in>
Co-authored-by: Rajak Rupakkumar Asishkumar <rajak.rupakkumar@juspay.in>
This commit is contained in:
ItsMeShashank
2023-03-01 23:48:26 +05:30
committed by GitHub
parent ed2907e141
commit 7bd2008ae0
11 changed files with 237 additions and 401 deletions

View File

@ -153,10 +153,7 @@ async fn refunds_incoming_webhook_flow(
.foreign_try_into()
.into_report()
.change_context(errors::WebhooksFlowError::RefundsCoreFailed)?;
let refund_response: api_models::refunds::RefundResponse = updated_refund
.foreign_try_into()
.into_report()
.change_context(errors::WebhooksFlowError::RefundsCoreFailed)?;
let refund_response: api_models::refunds::RefundResponse = updated_refund.foreign_into();
create_event_and_trigger_outgoing_webhook(
state,
merchant_account,