text
stringlengths
70
351k
source
stringclasses
4 values
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/files/helpers.rs | crate: router use common_utils::errors::CustomResult; use hyperswitch_domain_models::router_response_types::disputes::FileInfo; use crate::{ core::{ errors::{self, StorageErrorExt}, payments, utils, }, routes::Sess...
ast_fragments
// file: hyperswitch/crates/router/src/core/files/helpers.rs | crate: router use common_utils::errors::CustomResult; use crate::{ core::{ errors::{self, StorageErrorExt}, payments, utils, }, routes::SessionState, services, types::{self, api, domain, transformers::ForeignTryFrom}, }; ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/files/helpers.rs | crate: router use common_utils::errors::CustomResult; use crate::{ core::{ errors::{self, StorageErrorExt}, payments, utils, }, routes::SessionState, services, types::{self, api, domain, transformers::Forei...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/files/helpers.rs | crate: router use common_utils::errors::CustomResult; use crate::{ core::{ errors::{self, StorageErrorExt}, payments, utils, }, routes::SessionState, services, types::{self, api, domain, transformers::Forei...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/files/helpers.rs | crate: router use common_utils::errors::CustomResult; use crate::{ core::{ errors::{self, StorageErrorExt}, payments, utils, }, routes::SessionState, services, types::{self, api, domain, transformers::Forei...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/files/helpers.rs | crate: router use actix_multipart::Field; use crate::{ core::{ errors::{self, StorageErrorExt}, payments, utils, }, routes::SessionState, services, types::{self, api, domain, transformers::ForeignTryFrom}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/files/helpers.rs | crate: router use actix_multipart::Field; use crate::{ core::{ errors::{self, StorageErrorExt}, payments, utils, }, routes::SessionState, services, types::{self, api, domain, transformers::ForeignTryFrom}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/files/helpers.rs | crate: router use actix_multipart::Field; pub async fn read_string(field: &mut Field) -> Option<String> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/files/helpers.rs | crate: router use common_utils::errors::CustomResult; use crate::{ core::{ errors::{self, StorageErrorExt}, payments, utils, }, routes::SessionState, services, types::{self, api, domain, transformers::Forei...
ast_fragments
// file: hyperswitch/crates/router/src/core/refunds/validator.rs | crate: router use crate::{ core::errors::{self, CustomResult, RouterResult}, types::{ self, api::enums as api_enums, storage::{self, enums}, }, utils::{self, OptionExt}, }; pub fn validate_xendit_charge_refund( ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/refunds/validator.rs | crate: router use error_stack::report; use crate::{ core::errors::{self, CustomResult, RouterResult}, types::{ self, api::enums as api_enums, storage::{self, enums}, }, utils::{self, OptionExt}, }; ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/refunds/validator.rs | crate: router use error_stack::report; use crate::{ core::errors::{self, CustomResult, RouterResult}, types::{ self, api::enums as api_enums, storage::{self, enums}, }, utils::{self, OptionExt}, }; ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/refunds/validator.rs | crate: router use crate::{ core::errors::{self, CustomResult, RouterResult}, types::{ self, api::enums as api_enums, storage::{self, enums}, }, utils::{self, OptionExt}, }; pub fn validate_for_valid...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/refunds/validator.rs | crate: router use error_stack::report; use crate::{ core::errors::{self, CustomResult, RouterResult}, types::{ self, api::enums as api_enums, storage::{self, enums}, }, utils::{self, OptionExt}, }; ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/refunds/validator.rs | crate: router use error_stack::report; use crate::{ core::errors::{self, CustomResult, RouterResult}, types::{ self, api::enums as api_enums, storage::{self, enums}, }, utils::{self, OptionExt}, }; ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/refunds/validator.rs | crate: router use crate::{ core::errors::{self, CustomResult, RouterResult}, types::{ self, api::enums as api_enums, storage::{self, enums}, }, utils::{self, OptionExt}, }; pub fn validate_refund_li...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/refunds/validator.rs | crate: router use error_stack::report; use crate::{ core::errors::{self, CustomResult, RouterResult}, types::{ self, api::enums as api_enums, storage::{self, enums}, }, utils::{self, OptionExt}, }; ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/refunds/validator.rs | crate: router use error_stack::report; use time::PrimitiveDateTime; use crate::{ core::errors::{self, CustomResult, RouterResult}, types::{ self, api::enums as api_enums, storage::{self, enums}, }, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/refunds/validator.rs | crate: router use error_stack::report; use crate::{ core::errors::{self, CustomResult, RouterResult}, types::{ self, api::enums as api_enums, storage::{self, enums}, }, utils::{self, OptionExt}, }; ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/validator.rs | crate: router use actix_http::header; use api_models::admin::PaymentLinkConfig; use common_utils::validation::validate_domain_against_allowed_domains; use error_stack::{report, ResultExt}; use url::Url; use crate::{ core::errors:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/validator.rs | crate: router use actix_http::header; use api_models::admin::PaymentLinkConfig; use common_utils::validation::validate_domain_against_allowed_domains; use error_stack::{report, ResultExt}; use url::Url; use crate::{ core::errors:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use api_models::routing as routing_types; use crate::{ core::errors::{self, RouterResult}, db::StorageInterface, routes::SessionState, types::{domain, storage}, utils::StringExt, }; pub fn get_string_val( ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use std::fmt::Debug; use api_models::routing as routing_types; use diesel_models::routing_algorithm; use hyperswitch_domain_models::api::ApplicationResponse; use router_env::logger; use router_env::{instrument, tracing}; use c...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use api_models::routing as routing_types; use external_services::grpc_client::dynamic_routing::{ contract_routing_client::ContractBasedDynamicRouting, success_rate_client::SuccessBasedDynamicRouting, }; use hyperswitch...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router fn get_dynamic_routing_based_metrics_outcome_for_payment( payment_status_attribute: common_enums::AttemptStatus, payment_connector: String, first_success_based_connector: String, ) -> common_enums::SuccessBasedRout...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router fn get_desired_payment_status_for_dynamic_routing_metrics( attempt_status: common_enums::AttemptStatus, ) -> common_enums::AttemptStatus { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use std::fmt::Debug; use common_utils::{ext_traits::Encode, id_type, types::keymanager::KeyManagerState}; use diesel_models::routing_algorithm; use storage_impl::redis::cache::Cacheable; use crate::db::errors::StorageErrorExt;...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use api_models::routing as routing_types; use diesel_models::routing_algorithm; use crate::{ core::errors::{self, RouterResult}, db::StorageInterface, routes::SessionState, types::{domain, storage}, utils::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use api_models::routing as routing_types; use error_stack::ResultExt; use crate::db::errors::StorageErrorExt; use crate::{ core::errors::{self, RouterResult}, db::StorageInterface, routes::SessionState, types::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use api_models::routing as routing_types; use common_utils::{ext_traits::Encode, id_type, types::keymanager::KeyManagerState}; use diesel_models::routing_algorithm; use storage_impl::redis::cache; use storage_impl::redis::cach...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use api_models::routing as routing_types; use diesel_models::routing_algorithm; use storage_impl::redis::cache; use storage_impl::redis::cache::Cacheable; use crate::db::errors::StorageErrorExt; use crate::types::domain::Merch...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use std::str::FromStr; use api_models::routing as routing_types; use diesel_models::configs; use crate::db::errors::StorageErrorExt; use crate::types::domain::MerchantConnectorAccount; use crate::{ core::errors::{self, Rou...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use api_models::routing as routing_types; use crate::{ core::errors::{self, RouterResult}, db::StorageInterface, routes::SessionState, types::{domain, storage}, utils::StringExt, }; pub fn get_string_val( ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router fn get_dynamic_routing_based_metrics_outcome_for_payment( payment_status_attribute: common_enums::AttemptStatus, payment_connector: String, first_success_based_connector: String, ) -> common_enums::SuccessBasedRout...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router pub fn new( payment_method: Option<common_enums::PaymentMethod>, payment_method_type: Option<common_enums::PaymentMethodType>, authentication_type: Option<common_enums::AuthenticationType>, curr...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use std::fmt::Debug; use std::str::FromStr; use storage_impl::redis::cache; use storage_impl::redis::cache::Cacheable; use crate::db::errors::StorageErrorExt; use crate::{ core::errors::{self, RouterResult}, db::Storag...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use std::str::FromStr; use std::sync::Arc; use storage_impl::redis::cache; use storage_impl::redis::cache::Cacheable; use crate::{ core::errors::{self, RouterResult}, db::StorageInterface, routes::SessionState, ...
ast_fragments
// file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use std::str::FromStr; use crate::{ core::errors::{self, RouterResult}, db::StorageInterface, routes::SessionState, types::{domain, storage}, utils::StringExt, }; pub fn get_default_config_key( merchant_id: &str, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use std::str::FromStr; pub fn get_routing_dictionary_key(merchant_id: &str) -> String { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use api_models::routing as routing_types; use common_utils::{ext_traits::Encode, id_type, types::keymanager::KeyManagerState}; use crate::db::errors::StorageErrorExt; use crate::types::domain::MerchantConnectorAccount; use cra...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use std::str::FromStr; use api_models::routing as routing_types; use diesel_models::configs; use crate::db::errors::StorageErrorExt; use crate::{ core::errors::{self, RouterResult}, db::StorageInterface, routes::Se...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use std::str::FromStr; use api_models::routing as routing_types; use diesel_models::configs; use crate::db::errors::StorageErrorExt; use crate::{ core::errors::{self, RouterResult}, db::StorageInterface, routes::Se...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use api_models::routing as routing_types; use common_utils::ext_traits::ValueExt; use common_utils::{ext_traits::Encode, id_type, types::keymanager::KeyManagerState}; use diesel_models::configs; use diesel_models::dynamic_rout...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use api_models::routing as routing_types; use common_utils::{ext_traits::Encode, id_type, types::keymanager::KeyManagerState}; use diesel_models::routing_algorithm; use error_stack::ResultExt; use rustc_hash::FxHashSet; use cr...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use api_models::routing as routing_types; use hyperswitch_domain_models::api::ApplicationResponse; use router_env::logger; use router_env::{instrument, tracing}; use storage_impl::redis::cache; use storage_impl::redis::cache::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use api_models::routing as routing_types; use common_utils::{ext_traits::Encode, id_type, types::keymanager::KeyManagerState}; use diesel_models::configs; use external_services::grpc_client::dynamic_routing::{ contract_rou...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/routing/helpers.rs | crate: router use api_models::routing as routing_types; use common_utils::ext_traits::ValueExt; use common_utils::{ext_traits::Encode, id_type, types::keymanager::KeyManagerState}; use diesel_models::configs; use diesel_models::dynamic_rout...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/transformers.rs | crate: router use common_utils::errors::ErrorSwitch; use hyperswitch_domain_models::errors::api_error_response::ApiErrorResponse; use super::{CustomersErrorResponse, StorageError}; fn switch(&self) -> CustomersErrorResponse { { err if e...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/transformers.rs | crate: router use common_utils::errors::ErrorSwitch; use hyperswitch_domain_models::errors::api_error_response::ApiErrorResponse; use super::{CustomersErrorResponse, StorageError}; fn switch(&self) -> api_models::errors::types::ApiError...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/transformers.rs | crate: router use common_utils::errors::ErrorSwitch; use hyperswitch_domain_models::errors::api_error_response::ApiErrorResponse; use super::{CustomersErrorResponse, StorageError}; fn switch(&self) -> CustomersErrorResponse { <|fim_suff...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/user.rs | crate: router pub type UserResult<T> = CustomResult<T, UserErrors>; pub type UserResponse<T> = CustomResult<ApplicationResponse<T>, UserErrors>; pub fn get_error_message(&self) -> String { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/user.rs | crate: router pub type UserResult<T> = CustomResult<T, UserErrors>; pub type UserResponse<T> = CustomResult<ApplicationResponse<T>, UserErrors>; pub fn get_error_message(&self) -> String { { Self::InternalServerError => "Something went wrong".t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/utils.rs | crate: router use common_utils::errors::CustomResult; use crate::{core::errors, logger}; fn to_payout_failed_response(self) -> error_stack::Result<T, errors::ApiErrorResponse> { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
// file: hyperswitch/crates/router/src/core/errors/utils.rs | crate: router use common_utils::errors::CustomResult; use crate::{core::errors, logger}; fn to_dispute_failed_response(self) -> error_stack::Result<T, errors::ApiErrorResponse> { self.map_err(|err| { let error = match err.current_context(...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/utils.rs | crate: router use common_utils::errors::CustomResult; use crate::{core::errors, logger}; fn to_redis_failed_response(self, key: &str) -> error_stack::Report<errors::StorageError> { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/utils.rs | crate: router use common_utils::errors::CustomResult; use crate::{core::errors, logger}; fn to_dispute_failed_response(self) -> error_stack::Result<T, errors::ApiErrorResponse> { { Ok(s) => serde_json::from_str(s) ....
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/utils.rs | crate: router use common_utils::errors::CustomResult; use crate::{core::errors, logger}; fn to_duplicate_response( self, duplicate_response: errors::UserErrors, ) -> error_stack::Result<T, errors::UserErrors> { {<|fim_suffi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/utils.rs | crate: router use common_utils::errors::CustomResult; use crate::{core::errors, logger}; fn to_not_found_response( self, not_found_response: errors::UserErrors, ) -> error_stack::Result<T, errors::UserErrors> { {<|fim_suffi...
ast_fragments
// file: hyperswitch/crates/router/src/core/errors/utils.rs | crate: router use common_utils::errors::CustomResult; use crate::{core::errors, logger}; fn to_redis_failed_response(self, key: &str) -> error_stack::Report<errors::StorageError> { match self.current_context() { errors::RedisError::NotFou...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/utils.rs | crate: router use common_utils::errors::CustomResult; use crate::{core::errors, logger}; fn allow_webhook_event_type_not_found( self, enabled: bool, ) -> CustomResult<Option<T>, errors::ConnectorError> { {<|fim_suffix|> <|f...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/utils.rs | crate: router use common_utils::errors::CustomResult; use crate::{core::errors, logger}; fn to_duplicate_response( self, duplicate_response: errors::ApiErrorResponse, ) -> error_stack::Result<T, errors::ApiErrorResponse> { ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/utils.rs | crate: router use common_utils::errors::CustomResult; use crate::{core::errors, logger}; fn to_not_found_response( self, not_found_response: errors::ApiErrorResponse, ) -> error_stack::Result<T, errors::ApiErrorResponse> { ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/utils.rs | crate: router use common_utils::errors::CustomResult; use crate::{core::errors, logger}; fn to_duplicate_response( self, duplicate_response: errors::CustomersErrorResponse, ) -> error_stack::Result<T, errors::CustomersError...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/utils.rs | crate: router use common_utils::errors::CustomResult; use crate::{core::errors, logger}; fn to_not_found_response( self, not_found_response: errors::CustomersErrorResponse, ) -> error_stack::Result<T, errors::CustomersError...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/utils.rs | crate: router use common_utils::errors::CustomResult; use crate::{core::errors, logger}; fn to_setup_mandate_failed_response(self) -> error_stack::Result<T, errors::ApiErrorResponse> { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/utils.rs | crate: router use common_utils::errors::CustomResult; use crate::{core::errors, logger}; fn to_payment_failed_response(self) -> error_stack::Result<T, errors::ApiErrorResponse> { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/utils.rs | crate: router use common_utils::errors::CustomResult; use crate::{core::errors, logger}; fn to_refund_failed_response(self) -> error_stack::Result<T, errors::ApiErrorResponse> { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/user/sample_data.rs | crate: router use api_models::errors::types::{ApiError, ApiErrorResponse}; fn switch(&self) -> ApiErrorResponse { { Self::InternalServerError => ApiErrorResponse::InternalServerError(ApiError::new( "SD", ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/errors/user/sample_data.rs | crate: router use storage_impl::errors::StorageError; fn switch_from(error: &StorageError) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use diesel_models::process_tracker::business_status; use crate::{ core::{ errors::{self, CustomResult}, metrics, }, db::StorageInterface, events::outgoing_webhook_logs::{ OutgoingWebho...
ast_fragments
// file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use common_utils::{ ext_traits::{Encode, StringExt}, request::RequestContent, type_name, types::keymanager::{Identifier, KeyManagerState}, }; use diesel_models::process_tracker::business_status; use error_stack::{report, Re...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use common_utils::{ ext_traits::{Encode, StringExt}, request::RequestContent, type_name, types::keymanager::{Identifier, KeyManagerState}, }; use crate::{ core::{ errors::{self, CustomResult}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use api_models::{ webhook_events::{OutgoingWebhookRequestContent, OutgoingWebhookResponseContent}, webhooks, }; use common_utils::{ ext_traits::{Encode, StringExt}, request::RequestContent, type_name, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use common_utils::{ ext_traits::{Encode, StringExt}, request::RequestContent, type_name, types::keymanager::{Identifier, KeyManagerState}, }; use diesel_models::process_tracker::business_status; use error_sta...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use api_models::{ webhook_events::{OutgoingWebhookRequestContent, OutgoingWebhookResponseContent}, webhooks, }; use common_utils::{ ext_traits::{Encode, StringExt}, request::RequestContent, type_name, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use std::collections::HashMap; use api_models::{ webhook_events::{OutgoingWebhookRequestContent, OutgoingWebhookResponseContent}, webhooks, }; use common_utils::{ ext_traits::{Encode, StringExt}, request::Req...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use std::collections::HashMap; use api_models::{ webhook_events::{OutgoingWebhookRequestContent, OutgoingWebhookResponseContent}, webhooks, }; use common_utils::{ ext_traits::{Encode, StringExt}, request::Req...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use common_utils::{ ext_traits::{Encode, StringExt}, request::RequestContent, type_name, types::keymanager::{Identifier, KeyManagerState}, }; use diesel_models::process_tracker::business_status; use hyperswit...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use api_models::{ webhook_events::{OutgoingWebhookRequestContent, OutgoingWebhookResponseContent}, webhooks, }; use common_utils::{ ext_traits::{Encode, StringExt}, request::RequestContent, type_name, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use api_models::{ webhook_events::{OutgoingWebhookRequestContent, OutgoingWebhookResponseContent}, webhooks, }; use diesel_models::process_tracker::business_status; use crate::compatibility::stripe::webhooks as strip...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router &*state.store, merchant_id, *process_tracker, ) .await .change_context(errors::WebhooksFlowError::OutgoingWebhookRetrySchedulingFailed)?; } Err(error) } i...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router Some(process_tracker) => state .store .as_scheduler() .finish_process_with_business_status(process_tracker, business_status) .await .change_context( ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use api_models::{ webhook_events::{OutgoingWebhookRequestContent, OutgoingWebhookResponseContent}, webhooks, }; use crate::compatibility::stripe::webhooks as stripe_webhooks; use crate::{ core::{ errors::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use common_utils::{ ext_traits::{Encode, StringExt}, request::RequestContent, type_name, types::keymanager::{Identifier, KeyManagerState}, }; use diesel_models::process_tracker::business_status; use crate::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use common_utils::{ ext_traits::{Encode, StringExt}, request::RequestContent, type_name, types::keymanager::{Identifier, KeyManagerState}, }; use router_env::{ instrument, tracing::{self, Instrument},...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use masking::{ExposeInterface, Mask, PeekInterface, Secret}; use crate::{ core::{ errors::{self, CustomResult}, metrics, }, db::StorageInterface, events::outgoing_webhook_logs::{ Outgo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use api_models::{ webhook_events::{OutgoingWebhookRequestContent, OutgoingWebhookResponseContent}, webhooks, }; use common_utils::{ ext_traits::{Encode, StringExt}, request::RequestContent, type_name, ...
ast_fragments
// file: hyperswitch/crates/router/src/core/webhooks/outgoing.rs | crate: router use api_models::{ webhook_events::{OutgoingWebhookRequestContent, OutgoingWebhookResponseContent}, webhooks, }; use common_utils::{ ext_traits::{Encode, StringExt}, request::RequestContent, type_name, types::keymana...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/recovery_incoming.rs | crate: router use std::{marker::PhantomData, str::FromStr}; use api_models::{payments as api_payments, webhooks}; use hyperswitch_domain_models::{ errors::api_error_response, revenue_recovery, router_data_v2::flow_common_type...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/recovery_incoming.rs | crate: router use std::{marker::PhantomData, str::FromStr}; use api_models::{payments as api_payments, webhooks}; use hyperswitch_domain_models::{ errors::api_error_response, revenue_recovery, router_data_v2::flow_common_type...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/recovery_incoming.rs | crate: router use std::{marker::PhantomData, str::FromStr}; use api_models::{payments as api_payments, webhooks}; use hyperswitch_domain_models::{ errors::api_error_response, revenue_recovery, router_data_v2::flow_common_type...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/recovery_incoming.rs | crate: router use api_models::{payments as api_payments, webhooks}; use common_utils::{ ext_traits::{AsyncExt, ValueExt}, id_type, }; use diesel_models::{process_tracker as storage, schema::process_tracker::retry_count}; ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/recovery_incoming.rs | crate: router use std::{marker::PhantomData, str::FromStr}; use api_models::{payments as api_payments, webhooks}; use common_utils::{ ext_traits::{AsyncExt, ValueExt}, id_type, }; use diesel_models::{process_tracker as st...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/recovery_incoming.rs | crate: router use hyperswitch_domain_models::{ errors::api_error_response, revenue_recovery, router_data_v2::flow_common_types, router_flow_types, router_request_types::revenue_recovery as revenue_recovery_request, ro...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/recovery_incoming.rs | crate: router use api_models::{payments as api_payments, webhooks}; use common_utils::{ ext_traits::{AsyncExt, ValueExt}, id_type, }; use hyperswitch_domain_models::{ errors::api_error_response, revenue_recovery, rout...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/recovery_incoming.rs | crate: router use api_models::{payments as api_payments, webhooks}; use common_utils::{ ext_traits::{AsyncExt, ValueExt}, id_type, }; use hyperswitch_domain_models::{ errors::api_error_response, revenue_recovery, rout...
ast_fragments
// file: hyperswitch/crates/router/src/core/webhooks/recovery_incoming.rs | crate: router use api_models::{payments as api_payments, webhooks}; use common_utils::{ ext_traits::{AsyncExt, ValueExt}, id_type, }; use hyperswitch_domain_models::{ errors::api_error_response, revenue_recovery, router_data_v2::flo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/recovery_incoming.rs | crate: router use api_models::{payments as api_payments, webhooks}; use hyperswitch_domain_models::{ errors::api_error_response, revenue_recovery, router_data_v2::flow_common_types, router_flow_types, router_request_types...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/recovery_incoming.rs | crate: router use api_models::{payments as api_payments, webhooks}; use common_utils::{ ext_traits::{AsyncExt, ValueExt}, id_type, }; use hyperswitch_domain_models::{ errors::api_error_response, revenue_recovery, rout...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/webhooks/recovery_incoming.rs | crate: router use api_models::{payments as api_payments, webhooks}; use hyperswitch_domain_models::{ errors::api_error_response, revenue_recovery, router_data_v2::flow_common_types, router_flow_types, router_request_types...
ast_fragments