fix: add offset and limit to key transfer API (#5358)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: Narayan Bhat <48803246+Narayanbhat166@users.noreply.github.com>
This commit is contained in:
Kartikeya Hegde
2024-07-22 15:35:14 +05:30
committed by GitHub
parent bc19fca1f4
commit b393803a61
23 changed files with 1073 additions and 962 deletions

View File

@ -49,6 +49,7 @@ pub enum ApiEventsType {
Gsm,
// TODO: This has to be removed once the corresponding apiEventTypes are created
Miscellaneous,
Keymanager,
RustLocker,
ApplePayCertificatesMigration,
FraudCheck,
@ -88,23 +89,26 @@ impl<T> ApiEventMetric for Vec<T> {
}
#[macro_export]
macro_rules! impl_misc_api_event_type {
($($type:ty),+) => {
macro_rules! impl_api_event_type {
($event: ident, ($($type:ty),+))=> {
$(
impl ApiEventMetric for $type {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Miscellaneous)
Some(ApiEventsType::$event)
}
}
)+
};
}
impl_misc_api_event_type!(
String,
(&String, &String),
(Option<i64>, Option<i64>, String),
bool
impl_api_event_type!(
Miscellaneous,
(
String,
(&String, &String),
(Option<i64>, Option<i64>, String),
bool
)
);
impl<T: ApiEventMetric> ApiEventMetric for &T {