text stringlengths 70 351k | source stringclasses 4
values |
|---|---|
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
&self,
id: &str,
storage_scheme: MerchantStorageScheme,
) -> CustomResult<ReverseLookup, errors::StorageError> {
self.diesel_store
.get_lookup_by_lookup_id(id, storage_scheme)
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
#[async_trait::async_trait]
impl ReverseLookupInterface for KafkaStore {
async fn insert_reverse_lookup(
&self,
new: ReverseLookupNew,
storage_scheme: MerchantStorageScheme,
) -> CustomResult<ReverseL... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
.find_business_profile_by_profile_name_merchant_id(
key_manager_state,
merchant_key_store,
profile_name,
merchant_id,
)
.await
}... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
async fn list_profile_by_merchant_id(
&self,
key_manager_state: &KeyManagerState,
merchant_key_store: &domain::MerchantKeyStore,
merchant_id: &id_type::MerchantId,
) -> CustomResult<Vec<domai... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
}
async fn delete_profile_by_profile_id_merchant_id(
&self,
profile_id: &id_type::ProfileId,
merchant_id: &id_type::MerchantId,
) -> CustomResult<bool, errors::StorageError> {
self.diesel... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
business_profile_update: domain::ProfileUpdate,
) -> CustomResult<domain::Profile, errors::StorageError> {
self.diesel_store
.update_profile_by_profile_id(
key_manager_state,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
profile_id: &id_type::ProfileId,
) -> CustomResult<domain::Profile, errors::StorageError> {
self.diesel_store
.find_business_profile_by_merchant_id_profile_id(
key_manager_state,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
async fn find_business_profile_by_profile_id(
&self,
key_manager_state: &KeyManagerState,
merchant_key_store: &domain::MerchantKeyStore,
profile_id: &id_type::ProfileId,
) -> CustomResult<dom... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
impl ProfileInterface for KafkaStore {
async fn insert_business_profile(
&self,
key_manager_state: &KeyManagerState,
merchant_key_store: &domain::MerchantKeyStore,
business_profile: domain::Profil... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
}
async fn delete_merchant_key_store_by_merchant_id(
&self,
merchant_id: &id_type::MerchantId,
) -> CustomResult<bool, errors::StorageError> {
self.diesel_store
.delete_merchant_key_s... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
async fn get_merchant_key_store_by_merchant_id(
&self,
state: &KeyManagerState,
merchant_id: &id_type::MerchantId,
key: &Secret<Vec<u8>>,
) -> CustomResult<domain::MerchantKeyStore, errors::S... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
impl MerchantKeyStoreInterface for KafkaStore {
async fn insert_merchant_key_store(
&self,
state: &KeyManagerState,
merchant_key_store: domain::MerchantKeyStore,
key: &Secret<Vec<u8>>,
) -> Cu... | ast_fragments |
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
storage_scheme: MerchantStorageScheme,
) -> CustomResult<Vec<(common_enums::RefundStatus, i64)>, errors::StorageError> {
self.diesel_store
.get_refund_status_with_count(merchant_id, profile_id_list, constraints, sto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
storage_scheme: MerchantStorageScheme,
) -> CustomResult<api_models::refunds::RefundListMetaData, errors::StorageError> {
self.diesel_store
.filter_refund_by_meta_constraints(merchant_id, refund_detai... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
storage_scheme,
limit,
offset,
)
.await
}
#[cfg(all(
any(feature = "v1", feature = "v2"),
not(feature = "refunds_v2"),
feature ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
.await
{
logger::error!(message="Failed to insert analytics event for Refund Create {refund?}", error_message=?er);
}
Ok(refund)
}
#[cfg(all(
any(feature = "v1", featu... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
#[cfg(all(feature = "v2", feature = "refunds_v2"))]
async fn find_refund_by_id(
&self,
id: &id_type::GlobalRefundId,
storage_scheme: MerchantStorageScheme,
) -> CustomResult<storage::Refund, erro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
storage_scheme: MerchantStorageScheme,
) -> CustomResult<Vec<storage::Refund>, errors::StorageError> {
self.diesel_store
.find_refund_by_merchant_id_connector_transaction_id(
merchant_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
if let Err(er) = self
.kafka_producer
.log_refund(&refund, Some(this), self.tenant_id.clone())
.await
{
logger::error!(message="Failed to insert analytics event for Re... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
storage_scheme: MerchantStorageScheme,
) -> CustomResult<storage::Refund, errors::StorageError> {
self.diesel_store
.find_refund_by_merchant_id_connector_refund_id_connector(
merchant_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
async fn find_refund_by_merchant_id_refund_id(
&self,
merchant_id: &id_type::MerchantId,
refund_id: &str,
storage_scheme: MerchantStorageScheme,
) -> CustomResult<storage::Refund, errors::Stor... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
async fn find_refund_by_payment_id_merchant_id(
&self,
payment_id: &id_type::PaymentId,
merchant_id: &id_type::MerchantId,
storage_scheme: MerchantStorageScheme,
) -> CustomResult<Vec<storage:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
storage_scheme: MerchantStorageScheme,
) -> CustomResult<storage::Refund, errors::StorageError> {
self.diesel_store
.find_refund_by_internal_reference_id_merchant_id(
internal_referenc... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
merchant_id,
payment_id,
authorized_attempt_id,
storage_scheme,
)
.await
}
}
#[async_trait::async_trait]
impl RefundInterface for KafkaStor... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
async fn update_capture_with_capture_id(
&self,
this: storage::Capture,
capture: storage::CaptureUpdate,
storage_scheme: MerchantStorageScheme,
) -> CustomResult<storage::Capture, errors::Sto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
#[async_trait::async_trait]
impl CaptureInterface for KafkaStore {
async fn insert_capture(
&self,
capture: storage::CaptureNew,
storage_scheme: MerchantStorageScheme,
) -> CustomResult<storage::Captu... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
time_upper_limit: PrimitiveDateTime,
status: ProcessTrackerStatus,
limit: Option<i64>,
) -> CustomResult<Vec<storage::ProcessTracker>, errors::StorageError> {
self.diesel_store
.find_p... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
self.diesel_store.retry_process(this, schedule_time).await
}
async fn finish_process_with_business_status(
&self,
this: storage::ProcessTracker,
business_status: &'static str,
) -> Custom... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
#[async_trait::async_trait]
impl ProcessTrackerInterface for KafkaStore {
async fn reinitialize_limbo_processes(
&self,
ids: Vec<String>,
schedule_time: PrimitiveDateTime,
) -> CustomResult<usize, err... | ast_fragments |
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
&self,
merchant_id: &id_type::MerchantId,
constraints: &hyperswitch_domain_models::payouts::PayoutFetchConstraints,
) -> CustomResult<Vec<String>, errors::StorageError> {
self.diesel_store
.filter_ac... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
.get_total_count_of_filtered_payouts(
merchant_id,
active_payout_ids,
connector,
currency,
status,
payout_method,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
async fn filter_payouts_by_time_range_constraints(
&self,
merchant_id: &id_type::MerchantId,
time_range: &common_utils::types::TimeRange,
storage_scheme: MerchantStorageScheme,
) -> CustomResu... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
storage::PayoutAttempt,
Option<diesel_models::Customer>,
Option<diesel_models::Address>,
)>,
errors::StorageError,
> {
self.diesel_store
.filter_payouts_and... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
async fn filter_payouts_by_constraints(
&self,
merchant_id: &id_type::MerchantId,
filters: &hyperswitch_domain_models::payouts::PayoutFetchConstraints,
storage_scheme: MerchantStorageScheme,
)... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/kafka_store.rs | crate: router
async fn find_optional_payout_by_merchant_id_payout_id(
&self,
merchant_id: &id_type::MerchantId,
payout_id: &str,
storage_scheme: MerchantStorageScheme,
) -> CustomResult<Option<storage::Payo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/ephemeral_key.rs | crate: router
use crate::{
core::errors::{self, CustomResult},
db::MockDb,
types::storage::ephemeral_key::{EphemeralKey, EphemeralKeyNew},
};
async fn create_ephemeral_key(
&self,
new: EphemeralKeyNew,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/ephemeral_key.rs | crate: router
use crate::types::storage::ephemeral_key::{ClientSecretType, ClientSecretTypeNew};
use crate::{
core::errors::{self, CustomResult},
db::MockDb,
types::storage::ephemeral_key::{EphemeralKey, EphemeralKeyNew},
};
async f... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/ephemeral_key.rs | crate: router
use crate::types::storage::ephemeral_key::{ClientSecretType, ClientSecretTypeNew};
use crate::{
core::errors::{self, CustomResult},
db::MockDb,
types::storage::ephemeral_key::{EphemeralKey, EphemeralKeyNew},
};
async f... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/ephemeral_key.rs | crate: router
use crate::types::storage::ephemeral_key::{ClientSecretType, ClientSecretTypeNew};
use crate::{
core::errors::{self, CustomResult},
db::MockDb,
types::storage::ephemeral_key::{EphemeralKey, EphemeralKeyNew},
};
async f... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/ephemeral_key.rs | crate: router
use crate::types::storage::ephemeral_key::{ClientSecretType, ClientSecretTypeNew};
use crate::{
core::errors::{self, CustomResult},
db::MockDb,
types::storage::ephemeral_key::{EphemeralKey, EphemeralKeyNew},
};
async f... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/relay.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use hyperswitch_domain_models::behaviour::{Conversion, ReverseConversion};
use super::domain;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/relay.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use hyperswitch_domain_models::behaviour::{Conversion, ReverseConversion};
use super::domain;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/relay.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use hyperswitch_domain_models::behaviour::{Conversion, ReverseConversion};
use super::domain;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/relay.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use hyperswitch_domain_models::behaviour::{Conversion, ReverseConversion};
use super::domain;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/relay.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use hyperswitch_domain_models::behaviour::{Conversion, ReverseConversion};
use super::domain;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/relay.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use hyperswitch_domain_models::behaviour::{Conversion, ReverseConversion};
use super::domain;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/relay.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use hyperswitch_domain_models::behaviour::{Conversion, ReverseConversion};
use super::domain;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::... | ast_fragments |
// file: hyperswitch/crates/router/src/db/relay.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use hyperswitch_domain_models::behaviour::{Conversion, ReverseConversion};
use super::domain;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/relay.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use hyperswitch_domain_models::behaviour::{Conversion, ReverseConversion};
use super::domain;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::... | ast_fragments |
// file: hyperswitch/crates/router/src/db/relay.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use diesel_models;
use error_stack::{report, ResultExt};
use hyperswitch_domain_models::behaviour::{Conversion, ReverseConversion};
use super::domain;
use crate::{
connection,
core::errors::{... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/mandate.rs | crate: router
use common_utils::id_type;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums::MerchantStorageScheme},
};
async fn insert_mandate(
&self,
mandate_new: storage_types::Ma... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/mandate.rs | crate: router
use common_utils::id_type;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums::MerchantStorageScheme},
};
async fn find_mandates_by_merchant_id(
&self,
merchant_id: &id... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/mandate.rs | crate: router
use common_utils::id_type;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums::MerchantStorageScheme},
};
async fn find_mandate_by_merchant_id_connector_mandate_id(
&self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/mandate.rs | crate: router
use common_utils::id_type;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums::MerchantStorageScheme},
};
async fn find_mandate_by_merchant_id_mandate_id(
&self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/mandate.rs | crate: router
use common_utils::id_type;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums::MerchantStorageScheme},
};
async fn find_mandate_by_global_customer_id(
&self,
cu... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/mandate.rs | crate: router
use common_utils::id_type;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums::MerchantStorageScheme},
};
async fn update_mandate_by_merchant_id_mandate_id(
&self,
merc... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/mandate.rs | crate: router
use common_utils::id_type;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums::MerchantStorageScheme},
};
async fn find_mandate_by_global_customer_id(
&self,
id: &id_ty... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/mandate.rs | crate: router
use common_utils::id_type;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums::MerchantStorageScheme},
};
async fn find_mandate_by_merchant_id_customer_id(
&self,
merch... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/mandate.rs | crate: router
use common_utils::id_type;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums::MerchantStorageScheme},
};
async fn find_mandate_by_merchant_id_connector_mandate_id(
&self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/mandate.rs | crate: router
use common_utils::id_type;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums::MerchantStorageScheme},
};
async fn find_mandate_by_merchant_id_mandate_id(
&self,
mercha... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/mandate.rs | crate: router
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums::MerchantStorageScheme},
};
async fn insert_mandate(
&self,
mandate: storage_types::MandateNew,
_... | ast_fragments |
// file: hyperswitch/crates/router/src/db/mandate.rs | crate: router
use common_utils::id_type;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums::MerchantStorageScheme},
};
async fn find_mandate_by_global_customer_id(
&self,
customer_id: &id_... | ast_fragments |
// file: hyperswitch/crates/router/src/db/mandate.rs | crate: router
use common_utils::id_type;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums::MerchantStorageScheme},
};
async fn find_mandate_by_merchant_id_customer_id(
&self,
merchant_id:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/mandate.rs | crate: router
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums::MerchantStorageScheme},
};
async fn insert_mandate(
&self,
mut mandate: storage_types::MandateNew,
... | ast_fragments |
// file: hyperswitch/crates/router/src/db/mandate.rs | crate: router
use common_utils::id_type;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums::MerchantStorageScheme},
};
async fn update_mandate_by_merchant_id_mandate_id(
&self,
merchant_id... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/file.rs | crate: router
use super::{MockDb, Store};
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
async fn find_file_metadata_by_merchant_id_file_id(
&self,
_merchant_id: &common_utils::id_type::Mercha... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/file.rs | crate: router
use super::{MockDb, Store};
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
async fn update_file_metadata(
&self,
_this: storage::FileMetadata,
_file_metadata: storage::Fi... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/file.rs | crate: router
use super::{MockDb, Store};
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
async fn delete_file_metadata_by_merchant_id_file_id(
&self,
_merchant_id: &common_utils::id_type::Merc... | ast_fragments |
// file: hyperswitch/crates/router/src/db/file.rs | crate: router
use super::{MockDb, Store};
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
async fn find_file_metadata_by_merchant_id_file_id(
&self,
_merchant_id: &common_utils::id_type::MerchantId,
_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/file.rs | crate: router
use super::{MockDb, Store};
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
async fn insert_file_metadata(
&self,
_file: storage::FileMetadataNew,
) -> CustomResult<storage::F... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/file.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
async fn delete_file_metadata_by_merchant_id_file_id(
&self,
merchant_id: &common_utils::id_type::Merchant... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/file.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
async fn find_file_metadata_by_merchant_id_file_id(
&self,
merchant_id: &common_utils::id_type::MerchantId... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use diesel_models::{
dispute::{Dispute, DisputeNew},
errors::DatabaseError,
query::user::sample_data as sample_data_queries,
refund::{Refund, RefundNew},
};
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use hyperswitch_domain_models::{
behaviour::Conversion,
merchant_key_store::MerchantKeyStore,
payments::{payment_attempt::PaymentAttempt, PaymentIntent},
};
use ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use diesel_models::{
dispute::{Dispute, DisputeNew},
errors::DatabaseError,
query::user::sample_data as sample_data_queries,
refund::{Refund, RefundNew},
};
use storage_impl::{errors::StorageError, DataModelExt}... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use diesel_models::{
dispute::{Dispute, DisputeNew},
errors::DatabaseError,
query::user::sample_data as sample_data_queries,
refund::{Refund, RefundNew},
};
use error_stack::{Report, ResultExt};
use storage_impl... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use diesel_models::{
dispute::{Dispute, DisputeNew},
errors::DatabaseError,
query::user::sample_data as sample_data_queries,
refund::{Refund, RefundNew},
};
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use diesel_models::{
dispute::{Dispute, DisputeNew},
errors::DatabaseError,
query::user::sample_data as sample_data_queries,
refund::{Refund, RefundNew},
};
... | ast_fragments |
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use hyperswitch_domain_models::{
behaviour::Conversion,
merchant_key_store::MerchantKeyStore,
payments::{payment_attempt::PaymentAttempt, PaymentIntent},
};
use storage_impl::{... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use hyperswitch_domain_models::{
behaviour::Conversion,
merchant_key_store::MerchantKeyStore,
payments::{payment_attempt::PaymentAttempt, PaymentIntent},
};
use ... | ast_fragments |
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use diesel_models::{
dispute::{Dispute, DisputeNew},
errors::DatabaseError,
query::user::sample_data as sample_data_queries,
refund::{Refund, RefundNew},
};
use storage_impl::{errors::StorageError, DataModelExt};
use crate::{c... | ast_fragments |
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use diesel_models::{
dispute::{Dispute, DisputeNew},
errors::DatabaseError,
query::user::sample_data as sample_data_queries,
refund::{Refund, RefundNew},
};
use storage_impl::{errors::StorageError, DataModelExt};
use crate::{c... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use diesel_models::user::sample_data::PaymentAttemptBatchNew;
use hyperswitch_domain_models::{
behaviour::Conversion,
merchant_key_store::MerchantKeyStore,
payments::{payment_attempt::PaymentAttempt, PaymentIntent},... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use hyperswitch_domain_models::{
behaviour::Conversion,
merchant_key_store::MerchantKeyStore,
payments::{payment_attempt::PaymentAttempt, PaymentIntent},
};
use ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use diesel_models::{
dispute::{Dispute, DisputeNew},
errors::DatabaseError,
query::user::sample_data as sample_data_queries,
refund::{Refund, RefundNew},
};
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use diesel_models::{
dispute::{Dispute, DisputeNew},
errors::DatabaseError,
query::user::sample_data as sample_data_queries,
refund::{Refund, RefundNew},
};
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use diesel_models::{
dispute::{Dispute, DisputeNew},
errors::DatabaseError,
query::user::sample_data as sample_data_queries,
refund::{Refund, RefundNew},
};
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use common_utils::types::keymanager::KeyManagerState;
use diesel_models::{
dispute::{Dispute, DisputeNew},
errors::DatabaseError,
query::user::sample_data as sample_data_queries,
refund::{Refund, RefundNew},
};
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use diesel_models::{
dispute::{Dispute, DisputeNew},
errors::DatabaseError,
query::user::sample_data as sample_data_queries,
refund::{Refund, RefundNew},
};
use storage_impl::{errors::StorageError, DataModelExt}... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use diesel_models::{
dispute::{Dispute, DisputeNew},
errors::DatabaseError,
query::user::sample_data as sample_data_queries,
refund::{Refund, RefundNew},
};
use storage_impl::{errors::StorageError, DataModelExt}... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user/sample_data.rs | crate: router
use diesel_models::user::sample_data::PaymentAttemptBatchNew;
use diesel_models::{
dispute::{Dispute, DisputeNew},
errors::DatabaseError,
query::user::sample_data as sample_data_queries,
refund::{Refund, RefundN... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/events/outgoing_webhook_logs.rs | crate: router
use serde_json::Value;
fn get_outgoing_webhook_event_content(&self) -> Option<OutgoingWebhookEventContent> {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/events/outgoing_webhook_logs.rs | crate: router
use serde_json::Value;
fn get_outgoing_webhook_event_content(&self) -> Option<OutgoingWebhookEventContent> {
{
Self::PaymentDetails(payment_payload) => Some(OutgoingWebhookEventContent::Payment {
paymen... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/events/outgoing_webhook_logs.rs | crate: router
use api_models::{enums::EventType as OutgoingWebhookEventType, webhooks::OutgoingWebhookContent};
use common_enums::WebhookDeliveryAttempt;
use serde_json::Value;
use time::OffsetDateTime;
pub fn new(
tenant_id... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/events/api_logs.rs | crate: router
use actix_web::HttpRequest;
pub use common_utils::events::{ApiEventMetric, ApiEventsType};
use common_utils::impl_api_event_type;
use router_env::{tracing_actix_web::RequestId, types::FlowMetric};
use time::OffsetDateTime;
use crat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/events/api_logs.rs | crate: router
pub use common_utils::events::{ApiEventMetric, ApiEventsType};
use crate::{
core::payments::PaymentsRedirectResponseData,
services::{authentication::AuthenticationType, kafka::KafkaMessage},
types::api::{
Attach... | ast_fragments |
// file: hyperswitch/crates/router/src/events/api_logs.rs | crate: router
pub use common_utils::events::{ApiEventMetric, ApiEventsType};
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Dispute {
dispute_id: self.dispute_id.clone(),
})
} | ast_fragments |
// file: hyperswitch/crates/router/src/events/api_logs.rs | crate: router
use super::EventType;
fn event_type(&self) -> EventType {
EventType::ApiLogs
} | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/events/event_logger.rs | crate: router
use std::collections::HashMap;
use events::{EventsError, Message, MessagingInterface};
use masking::ErasedMaskSerialize;
use time::PrimitiveDateTime;
use crate::services::{kafka::KafkaMessage, logger};
fn send_message<T>(
... | ast_fragments |
// file: hyperswitch/crates/router/src/events/event_logger.rs | crate: router
use std::collections::HashMap;
use events::{EventsError, Message, MessagingInterface};
use masking::ErasedMaskSerialize;
use time::PrimitiveDateTime;
use crate::services::{kafka::KafkaMessage, logger};
fn send_message<T>(
&self,
... | ast_fragments |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.