refactor(blocklist): separate utility function & kill switch for validating data in blocklist (#3360)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Prajjwal Kumar
2024-02-06 19:06:47 +05:30
committed by GitHub
parent ebe4ac30a8
commit 0a97a1eb63
20 changed files with 557 additions and 211 deletions

View File

@ -1366,6 +1366,17 @@ impl DataModelExt for PaymentAttemptUpdate {
authentication_type,
updated_by,
},
Self::BlocklistUpdate {
status,
error_code,
error_message,
updated_by,
} => DieselPaymentAttemptUpdate::BlocklistUpdate {
status,
error_code,
error_message,
updated_by,
},
Self::ConfirmUpdate {
amount,
currency,
@ -1686,6 +1697,17 @@ impl DataModelExt for PaymentAttemptUpdate {
cancellation_reason,
updated_by,
},
DieselPaymentAttemptUpdate::BlocklistUpdate {
status,
error_code,
error_message,
updated_by,
} => Self::BlocklistUpdate {
status,
error_code,
error_message,
updated_by,
},
DieselPaymentAttemptUpdate::ResponseUpdate {
status,
connector,