text
stringlengths
70
351k
source
stringclasses
4 values
// file: hyperswitch/crates/router/src/core/payments/customers.rs | crate: router use common_utils::pii; use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, payments, }, logger, routes::{metrics, SessionState}, services, types::{self, api, domain, storage}, }; pub asy...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/customers.rs | crate: router use common_utils::pii; use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, payments, }, logger, routes::{metrics, SessionState}, services, types::{self, api, domain, stora...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/customers.rs | crate: router use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, payments, }, logger, routes::{metrics, SessionState}, services, types::{self, api, domain, storage}, }; pub fn should_c...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::routing as api_routing; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use external_services::grpc_client::dynamic_routing::{ c...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use euclid::{ backend::{self, inputs as dsl_inputs, EuclidBackend}, dssa::graph::{self as eu...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::routing as api_routing; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use crate::core::admin; use crate::{ core::{ err...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::routing as api_routing; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use crate::core::admin; use crate::{ core::{ err...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::routing as api_routing; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use crate::{ core::{ errors, errors as oss_error...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::routing as api_routing; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use crate::{ core::{ errors, errors as oss_error...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::routing as api_routing; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use crate::core::admin; use crate::core::payouts; use crate:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use common_utils::ext_traits::AsyncExt; use euclid::{ backend::{self, inputs as dsl_inputs, Eucl...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use std::{collections::HashMap, str::FromStr, sync::Arc}; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use common_utils::ext_traits::AsyncExt; us...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use std::collections::hash_map; use std::hash::{Hash, Hasher}; use std::{collections::HashMap, str::FromStr, sync::Arc}; use api_models::routing as api_routing; use api_models::{ admin as admin_api, enums::{self as ap...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use std::{collections::HashMap, str::FromStr, sync::Arc}; use common_utils::ext_traits::AsyncExt; use euclid::{ backend::{self, inputs as dsl_inputs, EuclidBackend}, dssa::graph::{self as euclid_graph, CgraphExt}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use std::{collections::HashMap, str::FromStr, sync::Arc}; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use common_utils::ext_traits::AsyncExt; us...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::routing as api_routing; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use common_utils::ext_traits::AsyncExt; use crate::core::adm...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use euclid::{ backend::{self, inputs as dsl_inputs, EuclidBackend}, dssa::graph::{self as eu...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router .ok() .flatten() .unwrap_or(routable_connectors) } }; Ok(connector_list) } /// success based dynamic routing #[cfg(all(feature = "v1", feature = "dynamic_routi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router ) .await?; } if final_selection.is_empty() { Ok(None) } else { Ok(Some(final_selection)) } } #[cfg(feature = "v2")] async fn get_chosen_connectors<'a>( state: &'a SessionS...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use euclid::{ backend::{self, inputs as dsl_inputs, EuclidBackend}, dssa::graph::{self as euclid_graph, CgraphExt}, enums as euclid_enums, frontend::{ast, dir as euclid_dir}, }; use hyperswitch_domain_models::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::routing as api_routing; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use common_utils::ext_traits::AsyncExt; use crate::core::pay...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use rand::distributions::{self, Distribution}; use rand::SeedableRng; use crate::{ core::{ errors, errors as oss_errors, routing::{self}, }, logger, types::{ api::{self, routing as rout...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::routing as api_routing; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use diesel_models::enums as storage_enums; use euclid::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::routing as api_routing; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use diesel_models::enums as storage_enums; use euclid::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use std::{collections::HashMap, str::FromStr, sync::Arc}; use api_models::routing as api_routing; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; us...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::routing as api_routing; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use common_utils::ext_traits::AsyncExt; use external_service...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::routing as api_routing; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use common_utils::ext_traits::AsyncExt; use external_services::grpc_client:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use diesel_models::enums as storage_enums; use euclid::{ backend::{self, inputs as dsl_inputs, E...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use diesel_models::enums as storage_enums; use euclid::{ backend::{self, inputs as dsl_inputs, E...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use std::{collections::HashMap, str::FromStr, sync::Arc}; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use common_utils::ext_traits::AsyncExt; us...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing.rs | crate: router use api_models::routing as api_routing; use api_models::{ admin as admin_api, enums::{self as api_enums, CountryAlpha2}, routing::ConnectorSelection, }; use euclid::{ backend::{self, inputs as dsl_inputs, Eucl...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use api_models::enums::FrmSuggestion; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::Payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use api_models::enums::FrmSuggestion; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::Payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use api_models::enums::FrmSuggestion; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::Payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router _merchant_key_store: &domain::MerchantKeyStore, _customer: &Option<domain::Customer>, _business_profile: &domain::Profile, _should_retry_with_pan: bool, ) -> RouterResult<( Boxed...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router _storage_scheme: enums::MerchantStorageScheme, ) -> CustomResult< ( BoxedOperation<'a, F, api::PaymentsCaptureRequest, D>, Option<domain::Customer>, ), errors::St...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::PaymentUpdateIntent; pub use self::{ paym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use api_models::enums::FrmSuggestion; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::Payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use api_models::enums::FrmSuggestion; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::Payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use api_models::enums::FrmSuggestion; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::Payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::PaymentUpdateIntent; pub use self::{ paym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use api_models::enums::FrmSuggestion; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::Payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use api_models::enums::FrmSuggestion; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::Payment...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::PaymentUpdateIntent; pub use self::{ payment_approve::Pa...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use api_models::enums::FrmSuggestion; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::PaymentUpdateIntent; p...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use api_models::enums::FrmSuggestion; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::PaymentUpdateIntent; p...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::PaymentUpdateIntent; pub use self::{ paym...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use api_models::enums::FrmSuggestion; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::PaymentUpdateIntent; p...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::PaymentUpdateIntent; pub use self::{ paym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::PaymentUpdateIntent; pub use self::{ paym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::PaymentUpdateIntent; pub use self::{ paym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::PaymentUpdateIntent; pub use self::{ paym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use api_models::enums::FrmSuggestion; use api_models::routing::RoutableConnectorChoice; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use api_models::enums::FrmSuggestion; use api_models::routing::RoutableConnectorChoice; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::PaymentUpdateIntent; pub use self::{ paym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::PaymentUpdateIntent; pub use self::{ paym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::PaymentUpdateIntent; pub use self::{ paym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::PaymentUpdateIntent; pub use self::{ paym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use error_stack::{report, ResultExt}; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::Payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use error_stack::{report, ResultExt}; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::Payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use error_stack::{report, ResultExt}; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::Payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use error_stack::{report, ResultExt}; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::Payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations.rs | crate: router use error_stack::{report, ResultExt}; pub use self::payment_get::PaymentGet; pub use self::payment_get_intent::PaymentGetIntent; pub use self::payment_response::PaymentResponse; pub use self::payment_update_intent::Payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router use diesel_models::enums as storage_enums; use router_env::{ logger, tracing::{self, instrument}, }; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{ self, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router use common_utils::{ext_traits::Encode, types::MinorUnit}; use diesel_models::enums as storage_enums; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{ self, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router use common_utils::{ext_traits::Encode, types::MinorUnit}; use diesel_models::enums as storage_enums; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{ self, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router #[cfg(feature = "v2")] #[instrument(skip_all)] pub fn make_new_payment_attempt( _connector: String, _old_payment_attempt: storage::PaymentAttempt, _new_attempt_count: i16, _is_step_up: bool, ) -> storage::Paymen...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router use common_utils::{ext_traits::Encode, types::MinorUnit}; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{ self, flows::{ConstructFlowSpecificData, Feat...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router use common_utils::{ext_traits::Encode, types::MinorUnit}; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{ self, flows::{ConstructFlowSpecificData, Feat...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router use common_utils::{ext_traits::Encode, types::MinorUnit}; use router_env::{ logger, tracing::{self, instrument}, }; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{ self, flows::{ConstructFlowSpecificData, Feature}, operations, }, }, db::St...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router use common_utils::{ext_traits::Encode, types::MinorUnit}; use diesel_models::enums as storage_enums; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{ self, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router use std::{str::FromStr, vec::IntoIter}; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{ self, flows::{ConstructFlowSpecificData, Feature}, ...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router use error_stack::{report, ResultExt}; use router_env::{ logger, tracing::{self, instrument}, }; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{ self, flows::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router use common_utils::{ext_traits::Encode, types::MinorUnit}; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{ self, flows::{ConstructFlowSpecificData, Feat...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router use common_utils::{ext_traits::Encode, types::MinorUnit}; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{ self, flows::{ConstructFlowSpecificData, Feature}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router use common_utils::{ext_traits::Encode, types::MinorUnit}; use router_env::{ logger, tracing::{self, instrument}, }; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router use common_utils::{ext_traits::Encode, types::MinorUnit}; use router_env::{ logger, tracing::{self, instrument}, }; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/retry.rs | crate: router use std::{str::FromStr, vec::IntoIter}; use common_utils::{ext_traits::Encode, types::MinorUnit}; use diesel_models::enums as storage_enums; use error_stack::{report, ResultExt}; use router_env::{ logger, tracing::{self...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm_intent.rs | crate: router use api_models::{enums::FrmSuggestion, payments::PaymentsConfirmIntentRequest}; use async_trait::async_trait; use common_utils::{ext_traits::Encode, types::keymanager::ToEncryptable}; use error_stack::ResultExt; us...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm_intent.rs | crate: router use hyperswitch_domain_models::payments::PaymentConfirmData; use crate::{ core::{ admin, errors::{self, CustomResult, RouterResult, StorageErrorExt}, payments::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm_intent.rs | crate: router customer: &Option<domain::Customer>, business_profile: &domain::Profile, _should_retry_with_pan: bool, ) -> RouterResult<( BoxedConfirmOperation<'a, F>, Op...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm_intent.rs | crate: router )?, None => authentication_type, }; if let Some(auth_type) = authentication_type { payment_data.payment_attempt.authentication_type = auth_type; ...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm_intent.rs | crate: router use hyperswitch_domain_models::payments::PaymentConfirmData; use crate::{ core::{ admin, errors::{self, CustomResult, RouterResult, StorageErrorExt}, payments::{ self, call_d...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm_intent.rs | crate: router use hyperswitch_domain_models::payments::PaymentConfirmData; use crate::{ core::{ admin, errors::{self, CustomResult, RouterResult, StorageErrorExt}, payments::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm_intent.rs | crate: router use api_models::{enums::FrmSuggestion, payments::PaymentsConfirmIntentRequest}; use crate::{ core::{ admin, errors::{self, CustomResult, RouterResult, StorageErrorExt}, pa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm_intent.rs | crate: router use api_models::{enums::FrmSuggestion, payments::PaymentsConfirmIntentRequest}; use super::{Domain, GetTracker, Operation, UpdateTracker, ValidateRequest}; use crate::{ core::{ admin, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm_intent.rs | crate: router use api_models::{enums::FrmSuggestion, payments::PaymentsConfirmIntentRequest}; use super::{Domain, GetTracker, Operation, UpdateTracker, ValidateRequest}; use crate::{ core::{ admin, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm_intent.rs | crate: router use api_models::{enums::FrmSuggestion, payments::PaymentsConfirmIntentRequest}; use super::{Domain, GetTracker, Operation, UpdateTracker, ValidateRequest}; use crate::{ core::{ admin, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm_intent.rs | crate: router use api_models::{enums::FrmSuggestion, payments::PaymentsConfirmIntentRequest}; use super::{Domain, GetTracker, Operation, UpdateTracker, ValidateRequest}; use crate::{ core::{ admin, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm_intent.rs | crate: router use crate::{ core::{ admin, errors::{self, CustomResult, RouterResult, StorageErrorExt}, payments::{ self, call_decision_manager, helpers, operatio...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm_intent.rs | crate: router use api_models::{enums::FrmSuggestion, payments::PaymentsConfirmIntentRequest}; use hyperswitch_domain_models::payments::PaymentConfirmData; use crate::{ core::{ admin, errors::{s...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm_intent.rs | crate: router use api_models::{enums::FrmSuggestion, payments::PaymentsConfirmIntentRequest}; use common_utils::{ext_traits::Encode, types::keymanager::ToEncryptable}; use hyperswitch_domain_models::payments::Paym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payments_incremental_authorization.rs | crate: router #[operation(operations = "all", flow = "incremental_authorization")] pub struct PaymentIncrementalAuthorization; type PaymentIncrementalAuthorizationOperation<'b, F> = BoxedOperation...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payments_incremental_authorization.rs | crate: router use api_models::{enums::FrmSuggestion, payments::PaymentsIncrementalAuthorizationRequest}; use common_utils::errors::CustomResult; use crate::{ core::{ errors::{self, RouterRe...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payments_incremental_authorization.rs | crate: router use api_models::{enums::FrmSuggestion, payments::PaymentsIncrementalAuthorizationRequest}; use common_utils::errors::CustomResult; use crate::{ core::{ errors::{self, RouterRe...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payments_incremental_authorization.rs | crate: router use api_models::{enums::FrmSuggestion, payments::PaymentsIncrementalAuthorizationRequest}; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payments_incremental_authorization.rs | crate: router use api_models::{enums::FrmSuggestion, payments::PaymentsIncrementalAuthorizationRequest}; use common_utils::errors::CustomResult; use super::{BoxedOperation, Domain, GetTracker, Operatio...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payments_incremental_authorization.rs | crate: router use api_models::{enums::FrmSuggestion, payments::PaymentsIncrementalAuthorizationRequest}; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payments_incremental_authorization.rs | crate: router use api_models::{enums::FrmSuggestion, payments::PaymentsIncrementalAuthorizationRequest}; use common_utils::errors::CustomResult; use diesel_models::authorization::AuthorizationNew; use ...
ast_fragments