text
stringlengths
70
351k
source
stringclasses
4 values
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/business_profile.rs | crate: router use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState}; use crate::{ connection, core::errors::{self, CustomResult}, db::MockDb, types::{ domain::{ self, beh...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/business_profile.rs | crate: router use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState}; use crate::{ connection, core::errors::{self, CustomResult}, db::MockDb, types::{ domain::{ self, beh...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/business_profile.rs | crate: router use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState}; use crate::{ connection, core::errors::{self, CustomResult}, db::MockDb, types::{ domain::{ self, beh...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/business_profile.rs | crate: router use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState}; use crate::{ connection, core::errors::{self, CustomResult}, db::MockDb, types::{ domain::{ self, beh...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/business_profile.rs | crate: router use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState}; use crate::{ connection, core::errors::{self, CustomResult}, db::MockDb, types::{ domain::{ self, beh...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/business_profile.rs | crate: router use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState}; use crate::{ connection, core::errors::{self, CustomResult}, db::MockDb, types::{ domain::{ self, beh...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/business_profile.rs | crate: router use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState}; use crate::{ connection, core::errors::{self, CustomResult}, db::MockDb, types::{ domain::{ self, beh...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/payment_link.rs | crate: router use crate::{ connection, core::errors::{self, CustomResult}, db::MockDb, services::Store, types::storage::{self, PaymentLinkDbExt}, }; async fn list_payment_link_by_merchant_id( &self, _merchant_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/payment_link.rs | crate: router use crate::{ connection, core::errors::{self, CustomResult}, db::MockDb, services::Store, types::storage::{self, PaymentLinkDbExt}, }; async fn find_payment_link_by_payment_link_id( &self, _payme...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/payment_link.rs | crate: router use crate::{ connection, core::errors::{self, CustomResult}, db::MockDb, services::Store, types::storage::{self, PaymentLinkDbExt}, }; async fn insert_payment_link( &self, _payment_link: storage:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/payment_link.rs | crate: router use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, db::MockDb, services::Store, types::storage::{self, PaymentLinkDbExt}, }; async fn list_payment_link_by_merchant_id( ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/payment_link.rs | crate: router use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, db::MockDb, services::Store, types::storage::{self, PaymentLinkDbExt}, }; async fn insert_payment_link( &self, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/payment_link.rs | crate: router use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, db::MockDb, services::Store, types::storage::{self, PaymentLinkDbExt}, }; async fn find_payment_link_by_payment_link_id( ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/api_keys.rs | crate: router use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE}; use super::{MockDb, Store}; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn test_api_keys_cache() { {<|fim_suffix|>...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/api_keys.rs | crate: router use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE}; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn list_api_keys_by_merchant_id( &self, merchant_id: &...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/api_keys.rs | crate: router use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE}; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn update_api_key( &self, merchant_id: common_utils::i...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/api_keys.rs | crate: router use error_stack::report; use router_env::{instrument, tracing}; use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE}; use super::{MockDb, Store}; use crate::{ connection, core::errors::{self, CustomResult}, typ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/api_keys.rs | crate: router use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE}; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn find_api_key_by_hash_optional( &self, hashed_api_ke...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/api_keys.rs | crate: router use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE}; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn find_api_key_by_merchant_id_key_id_optional( &self, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/api_keys.rs | crate: router use error_stack::report; use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE}; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn insert_api_key( &self, api...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/api_keys.rs | crate: router use super::{MockDb, Store}; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn test_mockdb_api_key_interface() { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/gsm.rs | crate: router use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn delete_gsm_rule( &self, _connector: String, _flow: String, _sub_flow: String, _code: String, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/gsm.rs | crate: router use diesel_models::gsm as storage; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn update_gsm_rule( &self, _connector: String, _flow: String, _sub_flow: S...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/gsm.rs | crate: router use diesel_models::gsm as storage; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn find_gsm_rule( &self, _connector: String, _flow: String, _sub_flow: Str...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/gsm.rs | crate: router use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn find_gsm_decision( &self, _connector: String, _flow: String, _sub_flow: String, _code: String, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/gsm.rs | crate: router use diesel_models::gsm as storage; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn add_gsm_rule( &self, _rule: storage::GatewayStatusMappingNew, ) -> CustomResult<sto...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/gsm.rs | crate: router use diesel_models::gsm as storage; use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn delete_gsm_rule( &self, connector: String, flow: Strin...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/gsm.rs | crate: router use diesel_models::gsm as storage; use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn update_gsm_rule( &self, connector: String, flow: Strin...
ast_fragments
// file: hyperswitch/crates/router/src/db/gsm.rs | crate: router use diesel_models::gsm as storage; use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn find_gsm_rule( &self, connector: String, flow: String, sub_fl...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/gsm.rs | crate: router use diesel_models::gsm as storage; use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn find_gsm_decision( &self, connector: String, flow: Str...
ast_fragments
// file: hyperswitch/crates/router/src/db/authentication.rs | crate: router use diesel_models::authentication::AuthenticationUpdateInternal; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn update_authentication_by_merchant_id_authentication_id( &self, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/authentication.rs | crate: router use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn find_authentication_by_merchant_id_connector_authentication_id( &self, _merchant_id: common_utils::id_type::Merc...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/authentication.rs | crate: router use diesel_models::authentication::AuthenticationUpdateInternal; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn find_authentication_by_merchant_id_authentication_id( &...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/authentication.rs | crate: router use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn update_authentication_by_merchant_id_authentication_id( &self, previous_state: storage:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/authentication.rs | crate: router use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn find_authentication_by_merchant_id_connector_authentication_id( &self, merchant_id: com...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/authentication.rs | crate: router use diesel_models::authentication::AuthenticationUpdateInternal; use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn insert_authentication( &self, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/user_key_store.rs | crate: router use common_utils::{ errors::CustomResult, types::keymanager::{self, KeyManagerState}, }; use masking::Secret; use crate::{ connection, core::errors, services::Store, types::domain::{ self, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/user_key_store.rs | crate: router use common_utils::{ errors::CustomResult, types::keymanager::{self, KeyManagerState}, }; use masking::Secret; use crate::{ connection, core::errors, services::Store, types::domain::{ self, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/user_key_store.rs | crate: router use common_utils::{ errors::CustomResult, types::keymanager::{self, KeyManagerState}, }; use error_stack::{report, ResultExt}; use masking::Secret; use crate::{ connection, core::errors, services::Store, t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/reverse_lookup.rs | crate: router use crate::{ errors::{self, CustomResult}, types::storage::{ enums, reverse_lookup::{ReverseLookup, ReverseLookupNew}, }, }; async fn get_lookup_by_lookup_id( &self, id: &str, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/reverse_lookup.rs | crate: router use crate::{ errors::{self, CustomResult}, types::storage::{ enums, reverse_lookup::{ReverseLookup, ReverseLookupNew}, }, }; async fn insert_reverse_lookup( &self, new: ReverseL...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/reverse_lookup.rs | crate: router use crate::{ errors::{self, CustomResult}, types::storage::{ enums, reverse_lookup::{ReverseLookup, ReverseLookupNew}, }, }; async fn get_lookup_by_lookup_id( &self, lookup_id: &str, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/reverse_lookup.rs | crate: router use crate::{ errors::{self, CustomResult}, types::storage::{ enums, reverse_lookup::{ReverseLookup, ReverseLookupNew}, }, }; async fn insert_reverse_lookup( &self, new: ReverseLookupNew...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/reverse_lookup.rs | crate: router use crate::{ errors::{self, CustomResult}, types::storage::{ enums, reverse_lookup::{ReverseLookup, ReverseLookupNew}, }, }; async fn get_lookup_by_lookup_id( &self, id: &str, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/capture.rs | crate: router use crate::{ core::errors::{self, CustomResult}, types::storage::{self as types, enums}, }; async fn insert_capture( &self, capture: types::CaptureNew, _storage_scheme: enums::MerchantStorageScheme, )...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/capture.rs | crate: router use super::MockDb; use crate::{ core::errors::{self, CustomResult}, types::storage::{self as types, enums}, }; async fn find_all_captures_by_merchant_id_payment_id_authorized_attempt_id( &self, _merchant_id: &com...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/capture.rs | crate: router use super::MockDb; use crate::{ core::errors::{self, CustomResult}, types::storage::{self as types, enums}, }; async fn update_capture_with_capture_id( &self, _this: types::Capture, _capture: types::Captu...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/capture.rs | crate: router use crate::{ core::errors::{self, CustomResult}, types::storage::{self as types, enums}, }; async fn find_all_captures_by_merchant_id_payment_id_authorized_attempt_id( &self, merchant_id: &common_utils::i...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/capture.rs | crate: router use crate::{ core::errors::{self, CustomResult}, types::storage::{self as types, enums}, }; async fn update_capture_with_capture_id( &self, this: Capture, capture: CaptureUpdate, _...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/capture.rs | crate: router use crate::{ core::errors::{self, CustomResult}, types::storage::{self as types, enums}, }; async fn insert_capture( &self, capture: CaptureNew, _storage_scheme: enums::MerchantStorageScheme, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/authorization.rs | crate: router use diesel_models::authorization::AuthorizationUpdateInternal; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn update_authorization_by_merchant_id_authorization_id( &sel...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/authorization.rs | crate: router use diesel_models::authorization::AuthorizationUpdateInternal; use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn update_authorization_by_merchant_id_autho...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/authorization.rs | crate: router use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn find_all_authorizations_by_merchant_id_payment_id( &self, merchant_id: &common_utils::id...
ast_fragments
// file: hyperswitch/crates/router/src/db/authorization.rs | crate: router use diesel_models::authorization::AuthorizationUpdateInternal; use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; async fn insert_authorization( &self, authorizati...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/user_authentication_method.rs | crate: router use diesel_models::user_authentication_method as storage; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn insert_user_authentication_method( &self, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/user_authentication_method.rs | crate: router use diesel_models::user_authentication_method as storage; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn list_user_authentication_methods_for_owner_id( &s...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/user_authentication_method.rs | crate: router use diesel_models::user_authentication_method as storage; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn get_user_authentication_method_by_id( &self, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/user_authentication_method.rs | crate: router use diesel_models::user_authentication_method as storage; use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn list_user_authentication_methods...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/user_authentication_method.rs | crate: router use diesel_models::user_authentication_method as storage; use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn list_user_authentication_methods...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/user/theme.rs | crate: router use common_utils::types::theme::ThemeLineage; use diesel_models::user::theme as storage; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn insert_theme( &self, new_t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/user/theme.rs | crate: router use common_utils::types::theme::ThemeLineage; use diesel_models::user::theme as storage; fn check_theme_with_lineage(theme: &storage::Theme, lineage: &ThemeLineage) -> bool { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/user/theme.rs | crate: router use common_utils::types::theme::ThemeLineage; use diesel_models::user::theme as storage; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn delete_theme_by_lineage_and_theme_id( ...
ast_fragments
// file: hyperswitch/crates/router/src/db/user/theme.rs | crate: router use common_utils::types::theme::ThemeLineage; use diesel_models::user::theme as storage; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn find_theme_by_lineage( &self, lineage: Th...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/user/theme.rs | crate: router use common_utils::types::theme::ThemeLineage; use diesel_models::user::theme as storage; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn find_most_specific_theme_in_lineage( ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/user/theme.rs | crate: router use common_utils::types::theme::ThemeLineage; use diesel_models::user::theme as storage; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn find_theme_by_theme_id( &self, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/user/theme.rs | crate: router use common_utils::types::theme::ThemeLineage; use diesel_models::user::theme as storage; use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn find_theme_by_lin...
ast_fragments
// file: hyperswitch/crates/router/src/db/user/theme.rs | crate: router use common_utils::types::theme::ThemeLineage; use diesel_models::user::theme as storage; use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn find_most_specific_theme_in_line...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db/user/theme.rs | crate: router use common_utils::types::theme::ThemeLineage; use diesel_models::user::theme as storage; use error_stack::report; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; async fn insert_theme( ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/events/audit_events.rs | crate: router fn class(&self) -> Self::EventType { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/events/audit_events.rs | crate: router fn identifier(&self) -> String { { AuditEventType::Error { .. } => "error", AuditEventType::PaymentCreated => "payment_created", AuditEventType::PaymentConfirm { .. } => "payment_confirm", AuditEventType::ConnectorDecided => "c...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/events/audit_events.rs | crate: router use time::PrimitiveDateTime; fn timestamp(&self) -> PrimitiveDateTime { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/events/audit_events.rs | crate: router use common_utils::types::MinorUnit; pub fn new(event_type: AuditEventType) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/events/connector_api_logs.rs | crate: router use super::EventType; fn event_type(&self) -> EventType { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/cache.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use super::AppState; use crate::{ core::{api_locking, cache}, services::{api, authentication as auth}, }; pub async fn invalidate( ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/locker_migration.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::Flow; use super::AppState; use crate::{ core::{api_locking, locker_migration}, services::{api, authentication as auth}, }; pub async fn rust_locker_mi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/hypersense.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use api_models::external_service_auth as external_service_auth_api; use router_env::Flow; use super::AppState; use crate::{ core::{api_locking, external_service_auth}, serv...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/hypersense.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use api_models::external_service_auth as external_service_auth_api; use router_env::Flow; use super::AppState; use crate::{ core::{api_locking, external_service_auth}, serv...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/hypersense.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use api_models::external_service_auth as external_service_auth_api; use router_env::Flow; use super::AppState; use crate::{ core::{api_locking, external_service_auth}, serv...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/refunds.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, refunds::*}, services::{api, authentication as auth, authorization::per...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/refunds.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, refunds::*}, services::{api, authentication as auth, authorization::per...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/refunds.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, refunds::*}, services::{api, authentication as auth, authorization::per...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/refunds.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, refunds::*}, services::{api, authentication as auth, authorization::per...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/refunds.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, refunds::*}, services::{api, authentication as auth, authorization::per...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/refunds.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, refunds::*}, services::{api, authentication as auth, authorization::per...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/refunds.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, refunds::*}, services::{api, authentication as auth, authorization::per...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/refunds.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, refunds::*}, services::{api, authentication as auth, authorization::per...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/refunds.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, refunds::*}, services::{api, authentication as auth, authorization::per...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/refunds.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, refunds::*}, services::{api, authentication as auth, authorization::per...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/refunds.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, refunds::*}, services::{api, authentication as auth, authorization::per...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/refunds.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, refunds::*}, services::{api, authentication as auth, authorization::per...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/health.rs | crate: router use actix_web::{web, HttpRequest}; use router_env::{instrument, logger, tracing, Flow}; use super::app; use crate::{ core::{api_locking, health_check::HealthCheckInterface}, errors::{self, RouterResponse}, routes::metrics...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/health.rs | crate: router use api_models::health_check::RouterHealthCheckResponse; use router_env::{instrument, logger, tracing, Flow}; use super::app; use crate::{ core::{api_locking, health_check::HealthCheckInterface}, errors::{self, RouterResponse...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/fraud_check.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::Flow; use crate::{ core::{api_locking, fraud_check as frm_core}, services::{self, api}, AppState, }; pub async fn frm_fulfillment( state: web::Data...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/configs.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, configs}, services::{api, authentication as auth}, types::api as api_t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/configs.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, configs}, services::{api, authentication as auth}, types::api as api_t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/configs.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, configs}, services::{api, authentication as auth}, types::api as api_t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/configs.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, configs}, services::{api, authentication as auth}, types::api as api_t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/payout_link.rs | crate: router use actix_web::{web, Responder}; use api_models::payouts::PayoutLinkInitiateRequest; use router_env::Flow; use crate::{ core::{api_locking, payout_link::*}, services::{ api, authentication::{self as auth}...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/disputes.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use api_models::disputes as dispute_models; use router_env::{instrument, tracing, Flow}; use crate::{core::api_locking, services::authorization::permissions::Permission}; use super::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/disputes.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use api_models::disputes as dispute_models; use router_env::{instrument, tracing, Flow}; use crate::{core::api_locking, services::authorization::permissions::Permission}; use super::...
ast_fragments