hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

[REFACTOR] remove redundant fields from webhook_details API and DB models

Open kashif-m opened this issue 6 months ago • 6 comments

Below fields are a part of WebhookDetails during merchant account creation / updation AND profile creation / updation.

pub payment_created_enabled: Option<bool>,
pub payment_succeeded_enabled: Option<bool>,
pub payment_failed_enabled: Option<bool>,

These fields are not being used in the backend flows and are redundant. These are needed to be removed for keeping the APIs clean.

Currently, they're being consumed in a few components

  • hyperswitch-control-center
  • hyperswitch postman tests
  • hyperswitch cypress tests

Once dependency on these fields is completely removed, these fields can be removed from API and DB models.

kashif-m avatar Jun 26 '25 09:06 kashif-m

Hey, can you assign this issue to me?

sohamm20 avatar Oct 12 '25 19:10 sohamm20

I have raised Fix for this, please review : https://github.com/juspay/hyperswitch/pull/9805

sohamm20 avatar Oct 12 '25 19:10 sohamm20

@kashif-m Please review this

sohamm20 avatar Oct 14 '25 17:10 sohamm20

hey @kashif-m. can you update here

sohamm20 avatar Oct 21 '25 20:10 sohamm20

Hi @sohamm20, I have assigned this to you.

kashif-m avatar Oct 24 '25 02:10 kashif-m

@kashif-m Please review changes!

sohamm20 avatar Oct 30 '25 17:10 sohamm20