text
stringlengths
70
351k
source
stringclasses
4 values
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/user_role.rs | crate: router use std::collections::{HashMap, HashSet}; use api_models::{ user as user_api, user_role::{self as user_role_api, role as role_api}, }; use once_cell::sync::Lazy; use crate::{ core::errors::{StorageErrorExt, UserErrors, U...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/user_role.rs | crate: router domain::CurrentFlow::new(user_token, domain::SPTFlow::MerchantSelect.into())?; let next_flow = current_flow.next(user_from_db.clone(), &state).await?; let token = next_flow.get_token(&state).await?; let respons...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/user_role.rs | crate: router .filter_map(|group| (group.parent() == parent_group).then_some(group.scope())) // TODO: Remove this hashset conversion when merhant access // and organization access groups are removed ...
ast_fragments
// file: hyperswitch/crates/router/src/core/user_role.rs | crate: router use api_models::{ user as user_api, user_role::{self as user_role_api, role as role_api}, }; use crate::{ core::errors::{StorageErrorExt, UserErrors, UserResponse}, db::user_role::{ListUserRolesByOrgIdPayload, ListUserRolesByUserId...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/user_role.rs | crate: router use std::collections::{HashMap, HashSet}; use api_models::{ user as user_api, user_role::{self as user_role_api, role as role_api}, }; use diesel_models::{ enums::{UserRoleVersion, UserStatus}, organization::Organiza...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/user_role.rs | crate: router use std::collections::{HashMap, HashSet}; use api_models::{ user as user_api, user_role::{self as user_role_api, role as role_api}, }; use diesel_models::{ enums::{UserRoleVersion, UserStatus}, organization::Organiza...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/user_role.rs | crate: router use api_models::{ user as user_api, user_role::{self as user_role_api, role as role_api}, }; use diesel_models::{ enums::{UserRoleVersion, UserStatus}, organization::OrganizationBridge, user_role::UserRoleUpdate,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/user_role.rs | crate: router use api_models::{ user as user_api, user_role::{self as user_role_api, role as role_api}, }; use diesel_models::{ enums::{UserRoleVersion, UserStatus}, organization::OrganizationBridge, user_role::UserRoleUpdate,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/external_service_auth.rs | crate: router use api_models::external_service_auth as external_service_auth_api; use common_utils::fp_utils; use crate::{ core::errors::{self, RouterResponse}, services::{ api as service_api, authentication::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/external_service_auth.rs | crate: router use api_models::external_service_auth as external_service_auth_api; use crate::{ core::errors::{self, RouterResponse}, services::{ api as service_api, authentication::{self, ExternalServiceType, E...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/external_service_auth.rs | crate: router use api_models::external_service_auth as external_service_auth_api; use crate::{ core::errors::{self, RouterResponse}, services::{ api as service_api, authentication::{self, ExternalServiceType, E...
ast_fragments
// file: hyperswitch/crates/router/src/core/external_service_auth.rs | crate: router use api_models::external_service_auth as external_service_auth_api; use crate::{ core::errors::{self, RouterResponse}, services::{ api as service_api, authentication::{self, ExternalServiceType, ExternalToken}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use api_models::{ admin::PaymentLinkConfig, payments::{PaymentLinkData, PaymentLinkStatusWrap}, }; use common_utils::{ consts::{DEFAULT_LOCALE, DEFAULT_SESSION_EXPIRY}, ext_traits::{OptionExt, ValueExt}, types...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use api_models::{ admin::PaymentLinkConfig, payments::{PaymentLinkData, PaymentLinkStatusWrap}, }; use common_utils::{ consts::{DEFAULT_LOCALE, DEFAULT_SESSION_EXPIRY}, ext_traits::{OptionExt, ValueExt}, types...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router #[cfg(feature = "v2")] pub async fn get_payment_link_status( _state: SessionState, _merchant_account: domain::MerchantAccount, _key_store: domain::MerchantKeyStore, _merchant_id: common_utils::id_type::MerchantId,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use common_utils::{ consts::{DEFAULT_LOCALE, DEFAULT_SESSION_EXPIRY}, ext_traits::{OptionExt, ValueExt}, types::{AmountConvertor, StringMajorUnitForCore}, }; use crate::{ consts::{ self, DEFAULT_ALLOWED_DO...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use crate::{ consts::{ self, DEFAULT_ALLOWED_DOMAINS, DEFAULT_BACKGROUND_COLOR, DEFAULT_DISPLAY_SDK_ONLY, DEFAULT_ENABLE_BUTTON_ONLY_ON_FORM_READY, DEFAULT_ENABLE_SAVED_PAYMENT_METHOD, DEFAULT_HIDE_CAR...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router fn capitalize_first_char(s: &str) -> String { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use api_models::{ admin::PaymentLinkConfig, payments::{PaymentLinkData, PaymentLinkStatusWrap}, }; use error_stack::{report, ResultExt}; use super::{ errors::{self, RouterResult, StorageErrorExt}, payments::helper...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use api_models::{ admin::PaymentLinkConfig, payments::{PaymentLinkData, PaymentLinkStatusWrap}, }; use common_utils::{ consts::{DEFAULT_LOCALE, DEFAULT_SESSION_EXPIRY}, ext_traits::{OptionExt, ValueExt}, types...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use api_models::{ admin::PaymentLinkConfig, payments::{PaymentLinkData, PaymentLinkStatusWrap}, }; use futures::future; use super::{ errors::{self, RouterResult, StorageErrorExt}, payments::helpers, }; use crate::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use api_models::{ admin::PaymentLinkConfig, payments::{PaymentLinkData, PaymentLinkStatusWrap}, }; use super::{ errors::{self, RouterResult, StorageErrorExt}, payments::helpers, }; use crate::{ consts::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use api_models::{ admin::PaymentLinkConfig, payments::{PaymentLinkData, PaymentLinkStatusWrap}, }; use super::{ errors::{self, RouterResult, StorageErrorExt}, payments::helpers, }; fn get_meta_tags_html(payment_de...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use api_models::{ admin::PaymentLinkConfig, payments::{PaymentLinkData, PaymentLinkStatusWrap}, }; fn get_color_scheme_css(payment_link_config: &PaymentLinkConfig) -> String { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use api_models::{ admin::PaymentLinkConfig, payments::{PaymentLinkData, PaymentLinkStatusWrap}, }; use super::{ errors::{self, RouterResult, StorageErrorExt}, payments::helpers, }; use crate::{ consts::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use api_models::{ admin::PaymentLinkConfig, payments::{PaymentLinkData, PaymentLinkStatusWrap}, }; use common_utils::{ consts::{DEFAULT_LOCALE, DEFAULT_SESSION_EXPIRY}, ext_traits::{OptionExt, ValueExt}, types...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use api_models::{ admin::PaymentLinkConfig, payments::{PaymentLinkData, PaymentLinkStatusWrap}, }; use common_utils::{ consts::{DEFAULT_LOCALE, DEFAULT_SESSION_EXPIRY}, ext_traits::{OptionExt, ValueExt}, types...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use api_models::{ admin::PaymentLinkConfig, payments::{PaymentLinkData, PaymentLinkStatusWrap}, }; use error_stack::{report, ResultExt}; use router_env::logger; use super::{ errors::{self, RouterResult, StorageErrorEx...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use actix_web::http::header; use api_models::{ admin::PaymentLinkConfig, payments::{PaymentLinkData, PaymentLinkStatusWrap}, }; use common_utils::{ consts::{DEFAULT_LOCALE, DEFAULT_SESSION_EXPIRY}, ext_traits::{Op...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use api_models::{ admin::PaymentLinkConfig, payments::{PaymentLinkData, PaymentLinkStatusWrap}, }; use common_utils::{ consts::{DEFAULT_LOCALE, DEFAULT_SESSION_EXPIRY}, ext_traits::{OptionExt, ValueExt}, types...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link.rs | crate: router use api_models::{ admin::PaymentLinkConfig, payments::{PaymentLinkData, PaymentLinkStatusWrap}, }; use common_utils::{ consts::{DEFAULT_LOCALE, DEFAULT_SESSION_EXPIRY}, ext_traits::{OptionExt, ValueExt}, types...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use common_utils::date_time; use crate::{ configs::settings, consts, core::errors::{self, RouterResponse, StorageErrorExt}, db::domain, routes::{metrics, SessionState}, services::{authentication, ApplicationRe...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use common_utils::date_time; use diesel_models::{api_keys::ApiKey, enums as storage_enums}; use crate::{ configs::settings, consts, core::errors::{self, RouterResponse, StorageErrorExt}, db::domain, routes::{metri...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use common_utils::date_time; use diesel_models::{api_keys::ApiKey, enums as storage_enums}; use router_env::{instrument, tracing}; use crate::{ configs::settings, consts, core::errors::{self, RouterResponse, StorageErrorE...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use common_utils::date_time; use diesel_models::{api_keys::ApiKey, enums as storage_enums}; use router_env::{instrument, tracing}; use crate::{ configs::settings, consts, core::errors::{self, RouterResponse, StorageErrorE...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use crate::{ configs::settings, consts, core::errors::{self, RouterResponse, StorageErrorExt}, db::domain, routes::{metrics, SessionState}, services::{authentication, ApplicationResponse}, types::{api, sto...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use common_utils::date_time; use diesel_models::{api_keys::ApiKey, enums as storage_enums}; use router_env::{instrument, tracing}; use crate::{ configs::settings, consts, core::errors::{self, RouterResponse, StorageErrorE...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use diesel_models::{api_keys::ApiKey, enums as storage_enums}; use crate::{ configs::settings, consts, core::errors::{self, RouterResponse, StorageErrorExt}, db::domain, routes::{metrics, SessionState}, servic...
ast_fragments
// file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use crate::{ configs::settings, consts, core::errors::{self, RouterResponse, StorageErrorExt}, db::domain, routes::{metrics, SessionState}, services::{authentication, ApplicationResponse}, types::{api, storage, transform...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router fn from(hashed_api_key: HashedApiKey) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router fn from(s: String) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router fn from(s: &str) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use common_utils::date_time; fn generate_task_id_for_api_key_expiry_workflow( key_id: &common_utils::id_type::ApiKeyId, ) -> String { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use common_utils::date_time; use diesel_models::{api_keys::ApiKey, enums as storage_enums}; use crate::{ configs::settings, consts, core::errors::{self, RouterResponse, StorageErrorExt}, db::domain, routes::{metri...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use common_utils::date_time; use diesel_models::{api_keys::ApiKey, enums as storage_enums}; use crate::{ configs::settings, consts, core::errors::{self, RouterResponse, StorageErrorExt}, db::domain, routes::{metri...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use common_utils::date_time; use error_stack::{report, ResultExt}; use crate::{ configs::settings, consts, core::errors::{self, RouterResponse, StorageErrorExt}, db::domain, routes::{metrics, SessionState}, se...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use crate::{ configs::settings, consts, core::errors::{self, RouterResponse, StorageErrorExt}, db::domain, routes::{metrics, SessionState}, services::{authentication, ApplicationResponse}, types::{api, sto...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use crate::{ configs::settings, consts, core::errors::{self, RouterResponse, StorageErrorExt}, db::domain, routes::{metrics, SessionState}, services::{authentication, ApplicationResponse}, types::{api, sto...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use common_utils::date_time; use router_env::{instrument, tracing}; pub fn new_key_id() -> common_utils::id_type::ApiKeyId { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
// file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use common_utils::date_time; use router_env::{instrument, tracing}; pub fn new(length: usize) -> Self { let env = router_env::env::prefix_for_env(); let key = common_utils::crypto::generate_cryptographically_secure_random_string(len...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use masking::{PeekInterface, StrongSecret}; use crate::{ configs::settings, consts, core::errors::{self, RouterResponse, StorageErrorExt}, db::domain, routes::{metrics, SessionState}, services::{authentication...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/api_keys.rs | crate: router use diesel_models::{api_keys::ApiKey, enums as storage_enums}; use crate::{ configs::settings, consts, core::errors::{self, RouterResponse, StorageErrorExt}, db::domain, routes::{metrics, SessionState}, servic...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors.rs | crate: router DisputeWebhookValidationFailed, #[error("Outgoing webhook body encoding failed")] OutgoingWebhookEncodingFailed, #[error("Failed to update outgoing webhook process tracker task")] OutgoingWebhookProcessTrackerTaskUp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors.rs | crate: router fn from(value: Vec<NestedErrorStack<'a>>) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors.rs | crate: router pub use common_utils::errors::{CustomResult, ParsingError, ValidationError}; pub use hyperswitch_domain_models::errors::api_error_response::{ ApiErrorResponse, ErrorType, NotImplementedMessage, }; pub use hyperswitch_interfaces::er...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors.rs | crate: router use actix_web::{body::BoxBody, ResponseError}; pub use common_utils::errors::{CustomResult, ParsingError, ValidationError}; pub use hyperswitch_domain_models::errors::api_error_response::{ ApiErrorResponse, ErrorType, NotImplemente...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors.rs | crate: router fn from(_: ring::error::Unspecified) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
// file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, }, }; use crat...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
// file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, }, }; use crat...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router } fn generate_response<'a>( &'a self, customer: &'a domain::Customer, ) -> errors::CustomerResponse<customers::CustomerResponse> { Ok(services::ApplicationResponse::Json( customers::C...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router #[cfg(all(any(feature = "v1", feature = "v2"), not(feature = "customer_v2")))] struct AddressStructForDbUpdate<'a> { update_customer: &'a customers::CustomerUpdateRequest, merchant_account: &'a domain::MerchantAccount, k...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/customers.rs | crate: router use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/gsm.rs | crate: router use api_models::gsm as gsm_api_types; use diesel_models::gsm as storage; use crate::{ core::{ errors, errors::{RouterResponse, StorageErrorExt}, }, db::gsm::GsmInterface, services, types::transformers::...
ast_fragments
// file: hyperswitch/crates/router/src/core/gsm.rs | crate: router use api_models::gsm as gsm_api_types; use diesel_models::gsm as storage; use crate::{ core::{ errors, errors::{RouterResponse, StorageErrorExt}, }, db::gsm::GsmInterface, services, types::transformers::ForeignInto, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/gsm.rs | crate: router use api_models::gsm as gsm_api_types; use diesel_models::gsm as storage; use crate::{ core::{ errors, errors::{RouterResponse, StorageErrorExt}, }, db::gsm::GsmInterface, services, types::transformers::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/gsm.rs | crate: router use api_models::gsm as gsm_api_types; use diesel_models::gsm as storage; use crate::{ core::{ errors, errors::{RouterResponse, StorageErrorExt}, }, db::gsm::GsmInterface, services, types::transformers::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/gsm.rs | crate: router use api_models::gsm as gsm_api_types; use diesel_models::gsm as storage; use crate::{ core::{ errors, errors::{RouterResponse, StorageErrorExt}, }, db::gsm::GsmInterface, services, types::transformers::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/gsm.rs | crate: router use api_models::gsm as gsm_api_types; use diesel_models::gsm as storage; use crate::{ core::{ errors, errors::{RouterResponse, StorageErrorExt}, }, db::gsm::GsmInterface, services, types::transformers::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/revenue_recovery.rs | crate: router use api_models::{ payments::{PaymentRevenueRecoveryMetadata, PaymentsRetrieveRequest}, process_tracker::revenue_recovery, }; use common_utils::{ self, errors::CustomResult, ext_traits::{OptionExt, ValueExt...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/revenue_recovery.rs | crate: router use api_models::{ payments::{PaymentRevenueRecoveryMetadata, PaymentsRetrieveRequest}, process_tracker::revenue_recovery, }; use common_utils::{ self, errors::CustomResult, ext_traits::{OptionExt, ValueExt...
ast_fragments
// file: hyperswitch/crates/router/src/core/revenue_recovery.rs | crate: router use common_utils::{ self, errors::CustomResult, ext_traits::{OptionExt, ValueExt}, id_type, types::keymanager::KeyManagerState, }; use hyperswitch_domain_models::{ api::ApplicationResponse, behaviour::ReverseConv...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/revenue_recovery.rs | crate: router db.finish_process_with_business_status( execute_task_process.clone(), business_status::EXECUTE_WORKFLOW_COMPLETE, ) .await?; logger::warn!("Abnor...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/revenue_recovery.rs | crate: router use common_utils::{ self, errors::CustomResult, ext_traits::{OptionExt, ValueExt}, id_type, types::keymanager::KeyManagerState, }; use diesel_models::process_tracker::business_status; use hyperswitch_domai...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing.rs | crate: router use api_models::{ enums, mandates as mandates_api, routing, routing::{self as routing_types, RoutingRetrieveQuery}, }; use common_utils::ext_traits::AsyncExt; use super::{ errors::RouterResult, payments::{ rout...
ast_fragments
// file: hyperswitch/crates/router/src/core/routing.rs | crate: router use api_models::routing::DynamicRoutingAlgoAccessor; use api_models::{ enums, mandates as mandates_api, routing, routing::{self as routing_types, RoutingRetrieveQuery}, }; use diesel_models::routing_algorithm::RoutingAlgorithm; use super::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing.rs | crate: router use api_models::routing::DynamicRoutingAlgoAccessor; use api_models::{ enums, mandates as mandates_api, routing, routing::{self as routing_types, RoutingRetrieveQuery}, }; use common_utils::ext_traits::AsyncExt; use router_env...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing.rs | crate: router use api_models::routing::DynamicRoutingAlgoAccessor; use api_models::{ enums, mandates as mandates_api, routing, routing::{self as routing_types, RoutingRetrieveQuery}, }; use common_utils::ext_traits::AsyncExt; use router_env...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing.rs | crate: router use api_models::{ enums, mandates as mandates_api, routing, routing::{self as routing_types, RoutingRetrieveQuery}, }; use super::{ errors::RouterResult, payments::{ routing::{self as payments_routing}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing.rs | crate: router use api_models::routing::DynamicRoutingAlgoAccessor; use api_models::{ enums, mandates as mandates_api, routing, routing::{self as routing_types, RoutingRetrieveQuery}, }; use common_utils::ext_traits::AsyncExt; use diesel_mod...
ast_fragments
// file: hyperswitch/crates/router/src/core/routing.rs | crate: router use api_models::{ enums, mandates as mandates_api, routing, routing::{self as routing_types, RoutingRetrieveQuery}, }; use common_utils::ext_traits::AsyncExt; use super::{ errors::RouterResult, payments::{ routing::{self as p...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing.rs | crate: router use api_models::{ enums, mandates as mandates_api, routing, routing::{self as routing_types, RoutingRetrieveQuery}, }; use rustc_hash::FxHashSet; use super::{ errors::RouterResult, payments::{ routing::{self as...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing.rs | crate: router use api_models::{ enums, mandates as mandates_api, routing, routing::{self as routing_types, RoutingRetrieveQuery}, }; use common_utils::ext_traits::AsyncExt; use rustc_hash::FxHashSet; use super::{ errors::RouterResult, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing.rs | crate: router use api_models::{ enums, mandates as mandates_api, routing, routing::{self as routing_types, RoutingRetrieveQuery}, }; use common_utils::ext_traits::AsyncExt; use super::payouts; use super::{ errors::RouterResult, paym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing.rs | crate: router use api_models::routing::DynamicRoutingAlgoAccessor; use api_models::{ enums, mandates as mandates_api, routing, routing::{self as routing_types, RoutingRetrieveQuery}, }; use common_utils::ext_traits::AsyncExt; use diesel_mod...
ast_fragments