text stringlengths 70 351k | source stringclasses 4
values |
|---|---|
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router
use api_models::{admin as admin_types, payments as payment_types};
use common_utils::{
ext_traits::ByteSliceExt,
request::RequestContent,
types::{AmountConvertor, StringMajorUnitForConnector},
};
use er... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/cancel_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
payments::{self, access_token, helpers, transformers, PaymentData},
},
routes::{metrics, SessionState},
services,
t... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/cancel_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
payments::{self, access_token, helpers, transformers, PaymentData},
},
routes::{metrics, SessionState},
services,
t... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/cancel_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
payments::{self, access_token, helpers, transformers, PaymentData},
},
routes::{metrics, SessionState},
services,
t... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/reject_flow.rs | crate: router
use crate::{
core::{
errors::{ApiErrorResponse, NotImplementedMessage, RouterResult},
payments::{self, access_token, helpers, transformers, PaymentData},
},
routes::SessionState,
serv... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/reject_flow.rs | crate: router
use crate::{
core::{
errors::{ApiErrorResponse, NotImplementedMessage, RouterResult},
payments::{self, access_token, helpers, transformers, PaymentData},
},
routes::SessionState,
serv... | ast_fragments |
// file: hyperswitch/crates/router/src/core/payments/flows/reject_flow.rs | crate: router
use crate::{
core::{
errors::{ApiErrorResponse, NotImplementedMessage, RouterResult},
payments::{self, access_token, helpers, transformers, PaymentData},
},
routes::SessionState,
services,
types... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/session_update_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
payments::{self, access_token, helpers, transformers, Feature, PaymentData},
},
routes::SessionState,
services,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/session_update_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
payments::{self, access_token, helpers, transformers, Feature, PaymentData},
},
routes::SessionState,
services,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/session_update_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
payments::{self, access_token, helpers, transformers, Feature, PaymentData},
},
routes::SessionState,
services,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/post_session_tokens_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
payments::{self, access_token, helpers, transformers, Feature, PaymentData},
},
routes::SessionState,
serv... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/post_session_tokens_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
payments::{self, access_token, helpers, transformers, Feature, PaymentData},
},
routes::SessionState,
serv... | ast_fragments |
// file: hyperswitch/crates/router/src/core/payments/flows/post_session_tokens_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
payments::{self, access_token, helpers, transformers, Feature, PaymentData},
},
routes::SessionState,
services,
types... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/post_session_tokens_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
payments::{self, access_token, helpers, transformers, Feature, PaymentData},
},
routes::SessionState,
serv... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/capture_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
payments::{self, access_token, helpers, transformers, Feature, PaymentData},
},
routes::SessionState,
services,
ty... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/capture_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
payments::{self, access_token, helpers, transformers, Feature, PaymentData},
},
routes::SessionState,
services,
ty... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/capture_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
payments::{self, access_token, helpers, transformers, Feature, PaymentData},
},
routes::SessionState,
services,
ty... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_pre.rs | crate: router
use diesel_models::enums::FraudCheckLastStep;
use crate::{
core::{
errors::RouterResult,
fraud_check::{
self as frm_core,
types::{FrmData, PaymentDetails, Payme... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_pre.rs | crate: router
use diesel_models::enums::FraudCheckLastStep;
use crate::{
core::{
errors::RouterResult,
fraud_check::{
self as frm_core,
types::{FrmData, PaymentDetails, Payme... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_pre.rs | crate: router
use common_utils::ext_traits::Encode;
use diesel_models::enums::FraudCheckLastStep;
use router_env::{instrument, tracing};
use uuid::Uuid;
use crate::{
core::{
errors::RouterResult,
fr... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_pre.rs | crate: router
}
}
}
#[async_trait]
impl<F, D> Domain<F, D> for FraudCheckPre
where
F: Clone + Send,
D: payments::OperationSessionGetters<F> + Send + Sync + Clone,
{
#[cfg(all(feature = "v2", fe... | ast_fragments |
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_pre.rs | crate: router
use crate::{
core::{
errors::RouterResult,
fraud_check::{
self as frm_core,
types::{FrmData, PaymentDetails, PaymentToFrmData},
ConnectorDetailsCore,
},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_pre.rs | crate: router
use crate::{
core::{
errors::RouterResult,
fraud_check::{
self as frm_core,
types::{FrmData, PaymentDetails, PaymentToFrmData},
ConnectorDetailsCore... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_pre.rs | crate: router
use super::{Domain, FraudCheckOperation, GetTracker, UpdateTracker};
use crate::{
core::{
errors::RouterResult,
fraud_check::{
self as frm_core,
types::{FrmData... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_pre.rs | crate: router
use common_enums::FrmSuggestion;
use common_utils::ext_traits::Encode;
use crate::{
core::{
errors::RouterResult,
fraud_check::{
self as frm_core,
types::{FrmDa... | ast_fragments |
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_post.rs | crate: router
use router_env::{instrument, logger, tracing};
use crate::{
consts,
core::{
errors::{RouterResult, StorageErrorExt},
fraud_check::{
self as frm_core,
types::{FrmData, Pay... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_post.rs | crate: router
use common_utils::ext_traits::Encode;
use hyperswitch_domain_models::payments::{
payment_attempt::PaymentAttemptUpdate, payment_intent::PaymentIntentUpdate, HeaderPayload,
};
use router_env::{instrum... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_post.rs | crate: router
_frm_suggestion: &mut Option<FrmSuggestion>,
_key_store: domain::MerchantKeyStore,
_payment_data: &mut D,
_customer: &Option<domain::Customer>,
_should_continue_ca... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_post.rs | crate: router
use common_enums::{CaptureMethod, FrmSuggestion};
use crate::{
consts,
core::{
errors::{RouterResult, StorageErrorExt},
fraud_check::{
self as frm_core,
ty... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_post.rs | crate: router
use super::{Domain, FraudCheckOperation, GetTracker, UpdateTracker};
use crate::{
consts,
core::{
errors::{RouterResult, StorageErrorExt},
fraud_check::{
self as frm_c... | ast_fragments |
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_post.rs | crate: router
use super::{Domain, FraudCheckOperation, GetTracker, UpdateTracker};
use crate::{
consts,
core::{
errors::{RouterResult, StorageErrorExt},
fraud_check::{
self as frm_core,
... | ast_fragments |
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_post.rs | crate: router
use common_enums::{CaptureMethod, FrmSuggestion};
use hyperswitch_domain_models::payments::{
payment_attempt::PaymentAttemptUpdate, payment_intent::PaymentIntentUpdate, HeaderPayload,
};
use router_env::{instrument... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/operation/fraud_check_post.rs | crate: router
use common_enums::{CaptureMethod, FrmSuggestion};
use common_utils::ext_traits::Encode;
use hyperswitch_domain_models::payments::{
payment_attempt::PaymentAttemptUpdate, payment_intent::PaymentIntent... | ast_fragments |
// file: hyperswitch/crates/router/src/core/card_testing_guard/utils.rs | crate: router
use hyperswitch_domain_models::{
card_testing_guard_data::CardTestingGuardData, router_request_types::BrowserInformation,
};
use crate::{
core::{errors::RouterResult, payments::helpers},
routes::SessionState,
service... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/card_testing_guard/utils.rs | crate: router
use error_stack::ResultExt;
use masking::{PeekInterface, Secret};
use router_env::logger;
use super::errors;
use crate::{
core::{errors::RouterResult, payments::helpers},
routes::SessionState,
services,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/card_testing_guard/utils.rs | crate: router
use hyperswitch_domain_models::{
card_testing_guard_data::CardTestingGuardData, router_request_types::BrowserInformation,
};
use crate::{
core::{errors::RouterResult, payments::helpers},
routes::SessionSta... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/card_testing_guard/utils.rs | crate: router
use hyperswitch_domain_models::{
card_testing_guard_data::CardTestingGuardData, router_request_types::BrowserInformation,
};
use super::errors;
use crate::{
core::{errors::RouterResult, payments::helpers},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/connector_onboarding/paypal.rs | crate: router
use api_models::{admin::MerchantConnectorUpdate, connector_onboarding as api};
use common_utils::ext_traits::Encode;
use masking::{ExposeInterface, PeekInterface, Secret};
use crate::{
core::{
admin,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/connector_onboarding/paypal.rs | crate: router
use api_models::{admin::MerchantConnectorUpdate, connector_onboarding as api};
use crate::{
core::{
admin,
errors::{ApiErrorResponse, RouterResult},
},
services::{send_request, Applicati... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/connector_onboarding/paypal.rs | crate: router
use api_models::{admin::MerchantConnectorUpdate, connector_onboarding as api};
use common_utils::ext_traits::Encode;
use masking::{ExposeInterface, PeekInterface, Secret};
use crate::{
core::{
admin,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/connector_onboarding/paypal.rs | crate: router
use crate::{
core::{
admin,
errors::{ApiErrorResponse, RouterResult},
},
services::{send_request, ApplicationResponse, Request},
types::{self as oss_types, api as oss_api_types, api:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/connector_onboarding/paypal.rs | crate: router
use api_models::{admin::MerchantConnectorUpdate, connector_onboarding as api};
use crate::{
core::{
admin,
errors::{ApiErrorResponse, RouterResult},
},
services::{send_request, Applicati... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/connector_onboarding/paypal.rs | crate: router
use crate::{
core::{
admin,
errors::{ApiErrorResponse, RouterResult},
},
services::{send_request, ApplicationResponse, Request},
types::{self as oss_types, api as oss_api_types, api:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/connector_onboarding/paypal.rs | crate: router
use crate::{
core::{
admin,
errors::{ApiErrorResponse, RouterResult},
},
services::{send_request, ApplicationResponse, Request},
types::{self as oss_types, api as oss_api_types, api:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/connector_onboarding/paypal.rs | crate: router
use crate::{
core::{
admin,
errors::{ApiErrorResponse, RouterResult},
},
services::{send_request, ApplicationResponse, Request},
types::{self as oss_types, api as oss_api_types, api:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/disputes/transformers.rs | crate: router
use api_models::disputes::EvidenceType;
use crate::{
core::{errors, files::helpers::retrieve_file_and_provider_file_id_from_file_id},
routes::SessionState,
types::{
api::{self, DisputeEvidence},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/disputes/transformers.rs | crate: router
use api_models::disputes::EvidenceType;
use crate::{
core::{errors, files::helpers::retrieve_file_and_provider_file_id_from_file_id},
routes::SessionState,
types::{
api::{self, DisputeEvidence},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/disputes/transformers.rs | crate: router
use api_models::disputes::EvidenceType;
use crate::{
core::{errors, files::helpers::retrieve_file_and_provider_file_id_from_file_id},
routes::SessionState,
types::{
api::{self, DisputeEvidence},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/disputes/transformers.rs | crate: router
use api_models::disputes::EvidenceType;
use common_utils::errors::CustomResult;
use crate::{
core::{errors, files::helpers::retrieve_file_and_provider_file_id_from_file_id},
routes::SessionState,
types::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/disputes/transformers.rs | crate: router
use api_models::disputes::EvidenceType;
use common_utils::errors::CustomResult;
use crate::{
core::{errors, files::helpers::retrieve_file_and_provider_file_id_from_file_id},
routes::SessionState,
types::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/disputes/transformers.rs | crate: router
use api_models::disputes::EvidenceType;
use common_utils::errors::CustomResult;
use crate::{
core::{errors, files::helpers::retrieve_file_and_provider_file_id_from_file_id},
routes::SessionState,
types::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/user_role/role.rs | crate: router
use std::{cmp, collections::HashSet};
use api_models::user_role::role as role_api;
use common_enums::{EntityType, ParentGroup, PermissionGroup};
use diesel_models::role::{ListRolesByEntityPayload, RoleNew, RoleUpdate};
use crat... | ast_fragments |
// file: hyperswitch/crates/router/src/core/user_role/role.rs | crate: router
use api_models::user_role::role as role_api;
use diesel_models::role::{ListRolesByEntityPayload, RoleNew, RoleUpdate};
use crate::{
core::errors::{StorageErrorExt, UserErrors, UserResponse},
routes::{app::ReqState, SessionState},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/user_role/role.rs | crate: router
use api_models::user_role::role as role_api;
use diesel_models::role::{ListRolesByEntityPayload, RoleNew, RoleUpdate};
use crate::{
core::errors::{StorageErrorExt, UserErrors, UserResponse},
routes::{app::ReqState, Sess... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/user_role/role.rs | crate: router
.iter()
.flat_map(|group| group.resources())
.collect::<HashSet<_>>()
.into_iter()
.collect();
Ok(ApplicationResponse::Json(role_api::GroupsAndResources {
groups,
res... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/user_role/role.rs | crate: router
use std::{cmp, collections::HashSet};
use api_models::user_role::role as role_api;
use crate::{
core::errors::{StorageErrorExt, UserErrors, UserResponse},
routes::{app::ReqState, SessionState},
services::{
a... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/user_role/role.rs | crate: router
use common_enums::{EntityType, ParentGroup, PermissionGroup};
use crate::{
core::errors::{StorageErrorExt, UserErrors, UserResponse},
routes::{app::ReqState, SessionState},
services::{
authentication::{black... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/user_role/role.rs | crate: router
use api_models::user_role::role as role_api;
use common_enums::{EntityType, ParentGroup, PermissionGroup};
use diesel_models::role::{ListRolesByEntityPayload, RoleNew, RoleUpdate};
use crate::{
core::errors::{StorageErrorEx... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/user_role/role.rs | crate: router
use api_models::user_role::role as role_api;
use common_enums::{EntityType, ParentGroup, PermissionGroup};
use diesel_models::role::{ListRolesByEntityPayload, RoleNew, RoleUpdate};
use crate::{
core::errors::{StorageErrorEx... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/user_role/role.rs | crate: router
use std::{cmp, collections::HashSet};
use api_models::user_role::role as role_api;
use common_enums::{EntityType, ParentGroup, PermissionGroup};
use common_utils::generate_id_with_default_len;
use diesel_models::role::{ListRole... | ast_fragments |
// file: hyperswitch/crates/router/src/core/user_role/role.rs | crate: router
use std::{cmp, collections::HashSet};
use api_models::user_role::role as role_api;
use common_enums::{EntityType, ParentGroup, PermissionGroup};
use common_utils::generate_id_with_default_len;
use diesel_models::role::{ListRolesByEntityPayloa... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/blocklist/utils.rs | crate: router
use api_models::blocklist as api_blocklist;
use common_utils::errors::CustomResult;
use masking::StrongSecret;
use super::{errors, transformers::generate_fingerprint, SessionState};
use crate::{
consts,
core::{
... | ast_fragments |
// file: hyperswitch/crates/router/src/core/blocklist/utils.rs | crate: router
use api_models::blocklist as api_blocklist;
use common_enums::MerchantDecision;
use common_utils::errors::CustomResult;
use super::{errors, transformers::generate_fingerprint, SessionState};
use crate::{
consts,
core::{
error... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/blocklist/utils.rs | crate: router
use common_utils::errors::CustomResult;
use super::{errors, transformers::generate_fingerprint, SessionState};
use crate::{
consts,
core::{
errors::{RouterResult, StorageErrorExt},
payments::PaymentData... | ast_fragments |
// file: hyperswitch/crates/router/src/core/blocklist/utils.rs | crate: router
use api_models::blocklist as api_blocklist;
use common_enums::MerchantDecision;
use common_utils::errors::CustomResult;
use super::{errors, transformers::generate_fingerprint, SessionState};
use crate::{
consts,
core::{
error... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/blocklist/utils.rs | crate: router
use api_models::blocklist as api_blocklist;
use common_utils::errors::CustomResult;
use diesel_models::configs;
use super::{errors, transformers::generate_fingerprint, SessionState};
use crate::{
consts,
core::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/blocklist/utils.rs | crate: router
use api_models::blocklist as api_blocklist;
use common_enums::MerchantDecision;
use common_utils::errors::CustomResult;
use super::{errors, transformers::generate_fingerprint, SessionState};
use crate::{
consts,
core::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/blocklist/utils.rs | crate: router
use api_models::blocklist as api_blocklist;
use common_enums::MerchantDecision;
use common_utils::errors::CustomResult;
use super::{errors, transformers::generate_fingerprint, SessionState};
use crate::{
consts,
core::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/blocklist/utils.rs | crate: router
use api_models::blocklist as api_blocklist;
use common_utils::errors::CustomResult;
use super::{errors, transformers::generate_fingerprint, SessionState};
use crate::{
consts,
core::{
errors::{RouterResult, Sto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/blocklist/utils.rs | crate: router
use common_utils::errors::CustomResult;
use super::{errors, transformers::generate_fingerprint, SessionState};
use crate::{
consts,
core::{
errors::{RouterResult, StorageErrorExt},
payments::PaymentData... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/blocklist/utils.rs | crate: router
use common_utils::errors::CustomResult;
use super::{errors, transformers::generate_fingerprint, SessionState};
use crate::{
consts,
core::{
errors::{RouterResult, StorageErrorExt},
payments::PaymentData... | ast_fragments |
// file: hyperswitch/crates/router/src/core/blocklist/utils.rs | crate: router
use api_models::blocklist as api_blocklist;
use common_utils::errors::CustomResult;
use super::{errors, transformers::generate_fingerprint, SessionState};
use crate::{
consts,
core::{
errors::{RouterResult, StorageErrorExt},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/blocklist/utils.rs | crate: router
use api_models::blocklist as api_blocklist;
use common_utils::errors::CustomResult;
use super::{errors, transformers::generate_fingerprint, SessionState};
use crate::{
consts,
core::{
errors::{RouterResult, Sto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/blocklist/utils.rs | crate: router
use api_models::blocklist as api_blocklist;
use common_enums::MerchantDecision;
use common_utils::errors::CustomResult;
use masking::StrongSecret;
use super::{errors, transformers::generate_fingerprint, SessionState};
use crat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/unified_authentication_service/types.rs | crate: router
use api_models::payments;
use hyperswitch_domain_models::{
errors::api_error_response::{self as errors, NotImplementedMessage},
router_request_types::{
authentication::MessageCategory,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/unified_authentication_service/types.rs | crate: router
use hyperswitch_domain_models::{
errors::api_error_response::{self as errors, NotImplementedMessage},
router_request_types::{
authentication::MessageCategory,
unified_authentication... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/unified_authentication_service/types.rs | crate: router
use hyperswitch_domain_models::{
errors::api_error_response::{self as errors, NotImplementedMessage},
router_request_types::{
authentication::MessageCategory,
unified_authentication... | ast_fragments |
// file: hyperswitch/crates/router/src/core/unified_authentication_service/types.rs | crate: router
use hyperswitch_domain_models::{
errors::api_error_response::{self as errors, NotImplementedMessage},
router_request_types::{
authentication::MessageCategory,
unified_authentication_service::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/unified_authentication_service/types.rs | crate: router
use hyperswitch_domain_models::{
errors::api_error_response::{self as errors, NotImplementedMessage},
router_request_types::{
authentication::MessageCategory,
unified_authentication... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/unified_authentication_service/types.rs | crate: router
use api_models::payments;
use hyperswitch_domain_models::{
errors::api_error_response::{self as errors, NotImplementedMessage},
router_request_types::{
authentication::MessageCategory,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/unified_authentication_service/types.rs | crate: router
use hyperswitch_domain_models::{
errors::api_error_response::{self as errors, NotImplementedMessage},
router_request_types::{
authentication::MessageCategory,
unified_authentication... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/unified_authentication_service/types.rs | crate: router
use hyperswitch_domain_models::{
errors::api_error_response::{self as errors, NotImplementedMessage},
router_request_types::{
authentication::MessageCategory,
unified_authentication... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/unified_authentication_service/utils.rs | crate: router
use std::marker::PhantomData;
use common_enums::enums::PaymentMethod;
use common_utils::ext_traits::ValueExt;
use hyperswitch_domain_models::{
errors::api_error_response::ApiErrorResponse,
payment_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/unified_authentication_service/utils.rs | crate: router
use std::marker::PhantomData;
use hyperswitch_domain_models::{
errors::api_error_response::ApiErrorResponse,
payment_address::PaymentAddress,
router_data::{ConnectorAuthType, ErrorResponse, Rou... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/unified_authentication_service/utils.rs | crate: router
use common_enums::enums::PaymentMethod;
pub fn get_checkout_event_status_and_reason(
attempt_status: common_enums::AttemptStatus,
) -> (Option<String>, Option<String>) {
{
common_enums::AttemptStatus::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/unified_authentication_service/utils.rs | crate: router
use common_enums::enums::PaymentMethod;
pub fn get_checkout_event_status_and_reason(
attempt_status: common_enums::AttemptStatus,
) -> (Option<String>, Option<String>) {
<|fim_suffix|>
<|fim_middle|>
}... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/unified_authentication_service/utils.rs | crate: router
use common_enums::enums::PaymentMethod;
use hyperswitch_domain_models::{
errors::api_error_response::ApiErrorResponse,
payment_address::PaymentAddress,
router_data::{ConnectorAuthType, ErrorRes... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/revenue_recovery/types.rs | crate: router
pcr_data.key_store.clone(),
pcr_data.profile.clone(),
operation,
req,
get_tracker_response,
payments::CallConnectorAction::Trigger,
hyperswitch_domain_models::paym... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/revenue_recovery/types.rs | crate: router
use api_models::{
enums as api_enums,
mandates::RecurringDetails,
payments::{
AmountDetails, FeatureMetadata, PaymentRevenueRecoveryMetadata,
PaymentsUpdateIntentRequest, ProxyPaymentsRequest... | ast_fragments |
// file: hyperswitch/crates/router/src/core/revenue_recovery/types.rs | crate: router
use std::marker::PhantomData;
use common_utils::{
self,
ext_traits::{OptionExt, ValueExt},
id_type,
};
use diesel_models::{enums, process_tracker::business_status, types as diesel_types};
use error_stack::{self, ResultExt}... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/revenue_recovery/types.rs | crate: router
status: enums::ProcessTrackerStatus::Review,
business_status: Some(String::from(business_status::EXECUTE_WORKFLOW_COMPLETE)),
};
// update the proc... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/revenue_recovery/types.rs | crate: router
}
#[derive(Debug, Clone)]
pub enum Action {
SyncPayment(id_type::GlobalAttemptId),
RetryPayment(PrimitiveDateTime),
TerminalFailure(payment_attempt::PaymentAttempt),
SuccessfulPayment(payment_attempt::P... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/revenue_recovery/types.rs | crate: router
};
Ok(())
}
}
#[derive(Debug, Clone)]
pub enum Decision {
Execute,
Psync(enums::AttemptStatus, id_type::GlobalAttemptId),
InvalidDecision,
}
impl Decision {
pub async fn get_decision... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/revenue_recovery/types.rs | crate: router
/// The status of Passive Churn Payments
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum PcrAttemptStatus {
Succeeded,
Failed,
Processing,
InvalidStatus(String),
// Cancelled... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/revenue_recovery/types.rs | crate: router
let record_back_response = match response.response {
Ok(response) => Ok(response),
error @ Err(_) => {
router_env::logger::error!(?error);
Err(errors::Rec... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/revenue_recovery/types.rs | crate: router
status: enums::ProcessTrackerStatus::Review,
business_status: Some(String::from(business_status::EXECUTE_WORKFLOW_COMPLETE)),
};
// update the proc... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/revenue_recovery/types.rs | crate: router
use common_utils::{
self,
ext_traits::{OptionExt, ValueExt},
id_type,
};
use hyperswitch_domain_models::{
business_profile, merchant_connector_account,
payments::{
self as domain_payments, pa... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/revenue_recovery/types.rs | crate: router
Err(err) =>
// check for an active attempt being constructed or not
{
logger::error!(execute_payment_res=?err);
match payment_intent.active_attempt_id.... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/revenue_recovery/transformers.rs | crate: router
use common_enums::AttemptStatus;
fn foreign_from(s: AttemptStatus) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/revenue_recovery/transformers.rs | crate: router
use common_enums::AttemptStatus;
fn foreign_from(s: AttemptStatus) -> Self {
{
AttemptStatus::Authorized | AttemptStatus::Charged | AttemptStatus::AutoRefunded => {
Self::Succeeded
}<|... | ast_fragments |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.