text stringlengths 70 351k | source stringclasses 4
values |
|---|---|
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/netcetera.rs | crate: router
use common_utils::{ext_traits::ByteSliceExt, request::RequestContent};
use transformers as netcetera;
use crate::{
configs::settings,
core::errors::{self, CustomResult},
events::connector_api_logs::ConnectorEvent,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/netcetera.rs | crate: router
use common_utils::{ext_traits::ByteSliceExt, request::RequestContent};
use transformers as netcetera;
use crate::{
configs::settings,
core::errors::{self, CustomResult},
events::connector_api_logs::ConnectorEvent,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/netcetera.rs | crate: router
use common_utils::{ext_traits::ByteSliceExt, request::RequestContent};
use crate::{
configs::settings,
core::errors::{self, CustomResult},
events::connector_api_logs::ConnectorEvent,
headers,
services::{self... | ast_fragments |
// file: hyperswitch/crates/router/src/connector/netcetera.rs | crate: router
use common_utils::{ext_traits::ByteSliceExt, request::RequestContent};
use crate::{
configs::settings,
core::errors::{self, CustomResult},
events::connector_api_logs::ConnectorEvent,
headers,
services::{self, request, Conn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/plaid.rs | crate: router
use common_utils::types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector};
use transformers as plaid;
use crate::{
configs::settings,
connector::utils as connector_utils,
core::errors::{self, CustomResult},... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/plaid.rs | crate: router
use common_utils::types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector};
use crate::{
configs::settings,
connector::utils as connector_utils,
core::errors::{self, CustomResult},
events::connector_api_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/plaid.rs | crate: router
use common_utils::types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector};
use transformers as plaid;
use crate::{
configs::settings,
connector::utils as connector_utils,
core::errors::{self, CustomResult},... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/plaid.rs | crate: router
use common_utils::types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector};
use crate::{
configs::settings,
connector::utils as connector_utils,
core::errors::{self, CustomResult},
events::connector_api_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/plaid.rs | crate: router
use common_utils::types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector};
use crate::{
configs::settings,
connector::utils as connector_utils,
core::errors::{self, CustomResult},
events::connector_api_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/plaid.rs | crate: router
use common_utils::types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector};
use crate::{
configs::settings,
connector::utils as connector_utils,
core::errors::{self, CustomResult},
events::connector_api_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/plaid.rs | crate: router
use common_utils::types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector};
use transformers as plaid;
use crate::{
configs::settings,
connector::utils as connector_utils,
core::errors::{self, CustomResult},... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/plaid.rs | crate: router
use common_utils::types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector};
use transformers as plaid;
use crate::{
configs::settings,
connector::utils as connector_utils,
core::errors::{self, CustomResult},... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/ebanx.rs | crate: router
use common_utils::request::RequestContent;
use common_utils::types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector};
use transformers as ebanx;
use crate::{
configs::settings,
core::errors::{self, CustomResult... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/ebanx.rs | crate: router
use common_utils::types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector};
use transformers as ebanx;
use crate::{
configs::settings,
core::errors::{self, CustomResult},
events::connector_api_logs::Connecto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/ebanx.rs | crate: router
use common_utils::types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector};
use transformers as ebanx;
use crate::{
configs::settings,
core::errors::{self, CustomResult},
events::connector_api_logs::Connecto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/ebanx.rs | crate: router
use common_utils::types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector};
use router_env::{instrument, tracing};
use transformers as ebanx;
use crate::{
configs::settings,
core::errors::{self, CustomResult},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/ebanx.rs | crate: router
use common_utils::request::RequestContent;
use common_utils::types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector};
use crate::{
configs::settings,
core::errors::{self, CustomResult},
events::connector_ap... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/threedsecureio.rs | crate: router
use crate::{
configs::settings,
core::errors::{self, CustomResult},
events::connector_api_logs::ConnectorEvent,
headers,
services::{
self,
request::{self, Mask},
ConnectorIntegra... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/threedsecureio.rs | crate: router
use transformers as threedsecureio;
use crate::{
configs::settings,
core::errors::{self, CustomResult},
events::connector_api_logs::ConnectorEvent,
headers,
services::{
self,
request::{s... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/threedsecureio.rs | crate: router
use crate::{
configs::settings,
core::errors::{self, CustomResult},
events::connector_api_logs::ConnectorEvent,
headers,
services::{
self,
request::{self, Mask},
ConnectorIntegra... | ast_fragments |
// file: hyperswitch/crates/router/src/connector/threedsecureio.rs | crate: router
use transformers as threedsecureio;
use crate::{
configs::settings,
core::errors::{self, CustomResult},
events::connector_api_logs::ConnectorEvent,
headers,
services::{
self,
request::{self, Mask},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/threedsecureio.rs | crate: router
use crate::{
configs::settings,
core::errors::{self, CustomResult},
events::connector_api_logs::ConnectorEvent,
headers,
services::{
self,
request::{self, Mask},
ConnectorIntegra... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/threedsecureio.rs | crate: router
use crate::{
configs::settings,
core::errors::{self, CustomResult},
events::connector_api_logs::ConnectorEvent,
headers,
services::{
self,
request::{self, Mask},
ConnectorIntegra... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/gpayments/gpayments_types.rs | crate: router
fn from(value: AuthStatus) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
// file: hyperswitch/crates/router/src/connector/dummyconnector/transformers.rs | crate: router
use crate::{
connector::utils::RouterData,
core::errors,
services,
types::{self, api, domain, storage::enums},
};
fn try_from(item: &types::PaymentsAuthorizeRouterData) -> Result<Self, Self::Error> {
... | ast_fragments |
// file: hyperswitch/crates/router/src/connector/dummyconnector/transformers.rs | crate: router
use diesel_models::enums::Currency;
use crate::{
connector::utils::RouterData,
core::errors,
services,
types::{self, api, domain, storage::enums},
};
fn try_from(
item: types::RefundsResponseRouterDat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/dummyconnector/transformers.rs | crate: router
use url::Url;
use crate::{
connector::utils::RouterData,
core::errors,
services,
types::{self, api, domain, storage::enums},
};
fn get_url(&self) -> Option<Url> {
<|fim_suffix|>
<|fim_middle|>
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/dummyconnector/transformers.rs | crate: router
use diesel_models::enums::Currency;
use crate::{
connector::utils::RouterData,
core::errors,
services,
types::{self, api, domain, storage::enums},
};
fn try_from(
item: types::ResponseR... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/dummyconnector/transformers.rs | crate: router
fn from(item: DummyConnectorPaymentStatus) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/dummyconnector/transformers.rs | crate: router
use crate::{
connector::utils::RouterData,
core::errors,
services,
types::{self, api, domain, storage::enums},
};
fn try_from(value: domain::payments::PayLaterData) -> Result<Self, Self::Error>... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/dummyconnector/transformers.rs | crate: router
use crate::{
connector::utils::RouterData,
core::errors,
services,
types::{self, api, domain, storage::enums},
};
fn try_from(value: domain::WalletData) -> Result<Self, Self::Error> {
{<|fim_su... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/dummyconnector/transformers.rs | crate: router
use masking::Secret;
use crate::{
connector::utils::RouterData,
core::errors,
services,
types::{self, api, domain, storage::enums},
};
fn try_from(
(value, card_holder_name): (domain::C... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/dummyconnector/transformers.rs | crate: router
fn from(value: u8) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/dummyconnector/transformers.rs | crate: router
use crate::{
connector::utils::RouterData,
core::errors,
services,
types::{self, api, domain, storage::enums},
};
pub fn get_dummy_connector_id(self) -> &'static str {
{<|fim_suffix|>
<|fim_mid... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/netcetera/transformers.rs | crate: router
use super::netcetera_types;
use crate::{
connector::utils::{self, CardData},
core::errors,
types::{self, api},
utils::OptionExt,
};
fn try_from(
value: &NetceteraRouterData<&types::authentic... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/netcetera/transformers.rs | crate: router
use crate::{
connector::utils::{self, CardData},
core::errors,
types::{self, api},
utils::OptionExt,
};
fn try_from(
item: types::ResponseRouterData<
api::Authentication,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/netcetera/transformers.rs | crate: router
use crate::{
connector::utils::{self, CardData},
core::errors,
types::{self, api},
utils::OptionExt,
};
fn try_from(
item: types::ResponseRouterData<
api::PreAuthentication,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/netcetera/transformers.rs | crate: router
use crate::{
connector::utils::{self, CardData},
core::errors,
types::{self, api},
utils::OptionExt,
};
pub fn get_three_ds_method_url(&self) -> Option<String> {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/netcetera/transformers.rs | crate: router
use crate::{
connector::utils::{self, CardData},
core::errors,
types::{self, api},
utils::OptionExt,
};
pub fn get_card_range_if_available(&self) -> Option<CardRange> {
<|fim_suffix|>
<|fim_middle|>... | ast_fragments |
// file: hyperswitch/crates/router/src/connector/netcetera/transformers.rs | crate: router
use crate::{
connector::utils::{self, CardData},
core::errors,
types::{self, api},
utils::OptionExt,
};
fn try_from(
meta_data: &Option<common_utils::pii::SecretSerdeValue>,
) -> Result<Self, Self::Err... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/netcetera/transformers.rs | crate: router
use error_stack::ResultExt;
use masking::Secret;
use serde::{Deserialize, Serialize};
use super::netcetera_types;
use crate::{
connector::utils::{self, CardData},
core::errors,
types::{self, api},
u... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/netcetera/transformers.rs | crate: router
use super::netcetera_types;
use crate::{
connector::utils::{self, CardData},
core::errors,
types::{self, api},
utils::OptionExt,
};
fn try_from(
item: &NetceteraRouterData<&types::authentica... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/signifyd/transformers/auth.rs | crate: router
use crate::{core::errors, types};
fn try_from(auth_type: &types::ConnectorAuthType) -> Result<Self, Self::Error> {
{
types::ConnectorAuthType::HeaderKey { api_key } => Ok(Self {
api_key: api_key... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dynamic_routing_stats.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn update_dynamic_routing_stats(
&self,
attempt_id: String,
merchan... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dynamic_routing_stats.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn find_dynamic_routing_stats_optional_by_attempt_id_merchant_id(
&self,
at... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dynamic_routing_stats.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn insert_dynamic_routing_stat_entry(
&self,
dynamic_routing_stat: storage:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dynamic_routing_stats.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn update_dynamic_routing_stats(
&self,
_attempt_id: String,
_merch... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dynamic_routing_stats.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn find_dynamic_routing_stats_optional_by_attempt_id_merchant_id(
&self,
_a... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dynamic_routing_stats.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn insert_dynamic_routing_stat_entry(
&self,
_dynamic_routing_stat: storage... | ast_fragments |
// file: hyperswitch/crates/router/src/db/dynamic_routing_stats.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn insert_dynamic_routing_stat_entry(
&self,
dynamic_routing_stat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/callback_mapper.rs | crate: router
use error_stack::report;
use hyperswitch_domain_models::callback_mapper as domain;
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
async fn find_call_back_mapper_by_id(
&self,
... | ast_fragments |
// file: hyperswitch/crates/router/src/db/callback_mapper.rs | crate: router
use error_stack::report;
use hyperswitch_domain_models::callback_mapper as domain;
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
async fn insert_call_back_mapper(
&self,
call_back_m... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/organization.rs | crate: router
use common_utils::{errors::CustomResult, id_type};
use diesel_models::{organization as storage, organization::OrganizationBridge};
use crate::{connection, core::errors, services::Store};
async fn update_organization_by_org_id(
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/organization.rs | crate: router
use common_utils::{errors::CustomResult, id_type};
use diesel_models::{organization as storage, organization::OrganizationBridge};
use crate::{connection, core::errors, services::Store};
async fn find_organization_by_org_id(
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/organization.rs | crate: router
use common_utils::{errors::CustomResult, id_type};
use diesel_models::{organization as storage, organization::OrganizationBridge};
use crate::{connection, core::errors, services::Store};
async fn insert_organization(
&self,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/fraud_check.rs | crate: router
use diesel_models::fraud_check::{self as storage, FraudCheck, FraudCheckUpdate};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn find_fraud_check_by_payment_id_if_present(
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/fraud_check.rs | crate: router
use diesel_models::fraud_check::{self as storage, FraudCheck, FraudCheckUpdate};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn find_fraud_check_by_payment_id(
&self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/fraud_check.rs | crate: router
use diesel_models::fraud_check::{self as storage, FraudCheck, FraudCheckUpdate};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn update_fraud_check_response_with_attempt_id(
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/fraud_check.rs | crate: router
use diesel_models::fraud_check::{self as storage, FraudCheck, FraudCheckUpdate};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn insert_fraud_check_response(
&self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/fraud_check.rs | crate: router
use diesel_models::fraud_check::{self as storage, FraudCheck, FraudCheckUpdate};
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn find_fraud_check_by_paym... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/fraud_check.rs | crate: router
use diesel_models::fraud_check::{self as storage, FraudCheck, FraudCheckUpdate};
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn find_fraud_check_by_paym... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/fraud_check.rs | crate: router
use diesel_models::fraud_check::{self as storage, FraudCheck, FraudCheckUpdate};
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn update_fraud_check_respo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/fraud_check.rs | crate: router
use diesel_models::fraud_check::{self as storage, FraudCheck, FraudCheckUpdate};
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn insert_fraud_check_respo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/cards_info.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage::cards_info::{CardInfo, UpdateCardInfo},
};
async fn update_card_info(
&self,
_card_iin: Str... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/cards_info.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage::cards_info::{CardInfo, UpdateCardInfo},
};
async fn add_card_info(&self, _data: CardInfo) -> CustomResult<C... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/cards_info.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage::cards_info::{CardInfo, UpdateCardInfo},
};
async fn get_card_info(
&self,
card_iin: &str,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/cards_info.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage::cards_info::{CardInfo, UpdateCardInfo},
};
async fn update_card_info(
&sel... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/cards_info.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage::cards_info::{CardInfo, UpdateCardInfo},
};
async fn add_card_info(&self, data: Car... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/configs.rs | crate: router
use error_stack::report;
use storage_impl::redis::cache::{self, CacheKind, CONFIG_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::StorageInterface,
types::storage,
};
async fn find_config_by_key_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/configs.rs | crate: router
use storage_impl::redis::cache::{self, CacheKind, CONFIG_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::StorageInterface,
types::storage,
};
async fn find_config_by_key_from_db(
&self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/configs.rs | crate: router
use storage_impl::redis::cache::{self, CacheKind, CONFIG_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::StorageInterface,
types::storage,
};
async fn find_config_by_key_unwrap_or(
&self,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/configs.rs | crate: router
use diesel_models::configs::ConfigUpdateInternal;
use storage_impl::redis::cache::{self, CacheKind, CONFIG_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::StorageInterface,
types::storage,
};
asy... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/configs.rs | crate: router
use diesel_models::configs::ConfigUpdateInternal;
use storage_impl::redis::cache::{self, CacheKind, CONFIG_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::StorageInterface,
types::storage,
};
asy... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/configs.rs | crate: router
use diesel_models::configs::ConfigUpdateInternal;
use storage_impl::redis::cache::{self, CacheKind, CONFIG_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::StorageInterface,
types::storage,
};
asy... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/configs.rs | crate: router
use diesel_models::configs::ConfigUpdateInternal;
use storage_impl::redis::cache::{self, CacheKind, CONFIG_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::StorageInterface,
types::storage,
};
asy... | ast_fragments |
// file: hyperswitch/crates/router/src/db/configs.rs | crate: router
use error_stack::report;
use storage_impl::redis::cache::{self, CacheKind, CONFIG_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::StorageInterface,
types::storage,
};
async fn update_config_in_database(
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist_fingerprint.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn find_blocklist_fingerprint_by_merchant_id_fingerprint_id(
&self,
merchan... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist_fingerprint.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn insert_blocklist_fingerprint_entry(
&self,
pm_fingerprint_new: storage::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist_fingerprint.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn find_blocklist_fingerprint_by_merchant_id_fingerprint_id(
&self,
_mercha... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist_fingerprint.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn insert_blocklist_fingerprint_entry(
&self,
_pm_fingerprint_new: storage:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist_fingerprint.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn find_blocklist_fingerprint_by_merchant_id_fingerprint_id(
... | ast_fragments |
// file: hyperswitch/crates/router/src/db/blocklist_fingerprint.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn insert_blocklist_fingerprint_entry(
&self,
pm_fingerprint_new:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/payment_method_session.rs | crate: router
use crate::core::errors::{self, CustomResult};
async fn update_payment_method_session(
&self,
state: &common_utils::types::keymanager::KeyManagerState,
key_store: &hyperswitch_domain_mo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/payment_method_session.rs | crate: router
use crate::core::errors::{self, CustomResult};
async fn get_payment_methods_session(
&self,
state: &common_utils::types::keymanager::KeyManagerState,
key_store: &hyperswitch_domain_models::merchant... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/payment_method_session.rs | crate: router
use crate::core::errors::{self, CustomResult};
async fn update_payment_method_session(
&self,
state: &common_utils::types::keymanager::KeyManagerState,
key_store: &hyperswitch_domain_models::mercha... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/payment_method_session.rs | crate: router
use crate::core::errors::{self, CustomResult};
async fn insert_payment_methods_session(
&self,
state: &common_utils::types::keymanager::KeyManagerState,
key_store: &hyperswitch_domain_models::merch... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/payment_method_session.rs | crate: router
use crate::core::errors::{self, CustomResult};
async fn insert_payment_methods_session(
&self,
_state: &common_utils::types::keymanager::KeyManagerState,
_key_store: &hyperswitch_domain... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist_lookup.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn find_blocklist_lookup_entry_by_merchant_id_fingerprint(
&self,
merchant_id: &... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist_lookup.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn insert_blocklist_lookup_entry(
&self,
blocklist_lookup_entry: storage::Blockl... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist_lookup.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn delete_blocklist_lookup_entry_by_merchant_id_fingerprint(
&self,
_merchant_id... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist_lookup.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn find_blocklist_lookup_entry_by_merchant_id_fingerprint(
&self,
_merchant_id: ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist_lookup.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn insert_blocklist_lookup_entry(
&self,
_blocklist_lookup_entry: storage::Block... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist_lookup.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn delete_blocklist_lookup_entry_by_merchant_id_fingerprint(
&s... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user_role.rs | crate: router
use diesel_models::{
enums::{self, UserStatus},
user_role as storage,
};
use error_stack::{report, ResultExt};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn list_user_rol... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user_role.rs | crate: router
use diesel_models::{
enums::{self, UserStatus},
user_role as storage,
};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn list_user_roles_by_user_id<'a>(
&self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user_role.rs | crate: router
use common_utils::id_type;
use diesel_models::{
enums::{self, UserStatus},
user_role as storage,
};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn delete_user_role_by_user... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user_role.rs | crate: router
use common_utils::id_type;
use diesel_models::{
enums::{self, UserStatus},
user_role as storage,
};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn update_user_role_by_user... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user_role.rs | crate: router
use diesel_models::{
enums::{self, UserStatus},
user_role as storage,
};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn insert_user_role(
&self,
user_role:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user_role.rs | crate: router
use diesel_models::{
enums::{self, UserStatus},
user_role as storage,
};
use error_stack::{report, ResultExt};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn list_user_rol... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user_role.rs | crate: router
use common_utils::id_type;
use diesel_models::{
enums::{self, UserStatus},
user_role as storage,
};
use error_stack::{report, ResultExt};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store... | ast_fragments |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.