feat(router): [worldpayvantiv] add dispute list sync and implement dispute (#8830)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: Jagan <jaganelavarasan@gmail.com>
This commit is contained in:
AkshayaFoiger
2025-08-06 15:31:25 +05:30
committed by GitHub
parent 57e92c9fda
commit 640d0552f9
69 changed files with 3597 additions and 233 deletions

View File

@ -259,6 +259,23 @@ pub fn get_process_tracker_id<'a>(
)
}
pub fn get_process_tracker_id_for_dispute_list<'a>(
runner: storage::ProcessTrackerRunner,
merchant_connector_account_id: &'a common_utils::id_type::MerchantConnectorAccountId,
created_from: time::PrimitiveDateTime,
merchant_id: &'a common_utils::id_type::MerchantId,
) -> String {
format!(
"{runner}_{:04}{}{:02}{:02}_{}_{}",
created_from.year(),
created_from.month(),
created_from.day(),
created_from.hour(),
merchant_connector_account_id.get_string_repr(),
merchant_id.get_string_repr()
)
}
pub fn get_time_from_delta(delta: Option<i32>) -> Option<time::PrimitiveDateTime> {
delta.map(|t| common_utils::date_time::now().saturating_add(time::Duration::seconds(t.into())))
}