mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-31 01:57:45 +08:00
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:
@ -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())))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user