text stringlengths 70 351k | source stringclasses 4
values |
|---|---|
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/routing_algorithm.rs | crate: router
use diesel_models::routing_algorithm as routing_storage;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
type StorageResult<T> = CustomResult<T, errors::StorageError>;
async fn list... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/routing_algorithm.rs | crate: router
use diesel_models::routing_algorithm as routing_storage;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
type StorageResult<T> = CustomResult<T, errors::StorageError>;
async fn list... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/routing_algorithm.rs | crate: router
use diesel_models::routing_algorithm as routing_storage;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
type StorageResult<T> = CustomResult<T, errors::StorageError>;
async fn find... | ast_fragments |
// file: hyperswitch/crates/router/src/db/routing_algorithm.rs | crate: router
use diesel_models::routing_algorithm as routing_storage;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
type StorageResult<T> = CustomResult<T, errors::StorageError>;
async fn find_routing_algori... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/routing_algorithm.rs | crate: router
use diesel_models::routing_algorithm as routing_storage;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
type StorageResult<T> = CustomResult<T, errors::StorageError>;
async fn find... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/routing_algorithm.rs | crate: router
use diesel_models::routing_algorithm as routing_storage;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
type StorageResult<T> = CustomResult<T, errors::StorageError>;
async fn inse... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/routing_algorithm.rs | crate: router
use diesel_models::routing_algorithm as routing_storage;
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
type StorageResult<T> = CustomResult<T, errors::Sto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/routing_algorithm.rs | crate: router
use diesel_models::routing_algorithm as routing_storage;
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
type StorageResult<T> = CustomResult<T, errors::Sto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/routing_algorithm.rs | crate: router
use diesel_models::routing_algorithm as routing_storage;
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
type StorageResult<T> = CustomResult<T, errors::Sto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/routing_algorithm.rs | crate: router
use diesel_models::routing_algorithm as routing_storage;
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
type StorageResult<T> = CustomResult<T, errors::Sto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/routing_algorithm.rs | crate: router
use diesel_models::routing_algorithm as routing_storage;
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
type StorageResult<T> = CustomResult<T, errors::Sto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/routing_algorithm.rs | crate: router
use diesel_models::routing_algorithm as routing_storage;
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
type StorageResult<T> = CustomResult<T, errors::Sto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/routing_algorithm.rs | crate: router
use diesel_models::routing_algorithm as routing_storage;
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
type StorageResult<T> = CustomResult<T, errors::Sto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/address.rs | crate: router
use common_utils::{id_type, types::keymanager::KeyManagerState};
use diesel_models::{address::AddressUpdateInternal, enums::MerchantStorageScheme};
use crate::{
core::errors::{self, CustomResult},
types::{
domain::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/address.rs | crate: router
use common_utils::{id_type, types::keymanager::KeyManagerState};
use diesel_models::{address::AddressUpdateInternal, enums::MerchantStorageScheme};
use crate::{
core::errors::{self, CustomResult},
types::{
domain::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/address.rs | crate: router
use common_utils::{id_type, types::keymanager::KeyManagerState};
use diesel_models::{address::AddressUpdateInternal, enums::MerchantStorageScheme};
use crate::{
core::errors::{self, CustomResult},
types::{
domain::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/address.rs | crate: router
use common_utils::{id_type, types::keymanager::KeyManagerState};
use diesel_models::{address::AddressUpdateInternal, enums::MerchantStorageScheme};
use crate::{
core::errors::{self, CustomResult},
types::{
domain::{
... | ast_fragments |
// file: hyperswitch/crates/router/src/db/address.rs | crate: router
use common_utils::{id_type, types::keymanager::KeyManagerState};
use diesel_models::{address::AddressUpdateInternal, enums::MerchantStorageScheme};
use crate::{
core::errors::{self, CustomResult},
types::{
domain::{
self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/address.rs | crate: router
use common_utils::{id_type, types::keymanager::KeyManagerState};
use diesel_models::{address::AddressUpdateInternal, enums::MerchantStorageScheme};
use crate::{
core::errors::{self, CustomResult},
types::{
domain::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/address.rs | crate: router
use common_utils::{id_type, types::keymanager::KeyManagerState};
use diesel_models::{address::AddressUpdateInternal, enums::MerchantStorageScheme};
use crate::{
core::errors::{self, CustomResult},
types::{
domain::{
... | ast_fragments |
// file: hyperswitch/crates/router/src/db/address.rs | crate: router
use common_utils::{id_type, types::keymanager::KeyManagerState};
use diesel_models::{address::AddressUpdateInternal, enums::MerchantStorageScheme};
use crate::{
core::errors::{self, CustomResult},
types::{
domain::{
self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/address.rs | crate: router
use common_utils::{id_type, types::keymanager::KeyManagerState};
use diesel_models::{address::AddressUpdateInternal, enums::MerchantStorageScheme};
use crate::{
core::errors::{self, CustomResult},
types::{
domain::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/address.rs | crate: router
use common_utils::{id_type, types::keymanager::KeyManagerState};
use diesel_models::{address::AddressUpdateInternal, enums::MerchantStorageScheme};
use crate::{
core::errors::{self, CustomResult},
types::{
domain::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/address.rs | crate: router
use common_utils::{id_type, types::keymanager::KeyManagerState};
use diesel_models::{address::AddressUpdateInternal, enums::MerchantStorageScheme};
use crate::{
core::errors::{self, CustomResult},
types::{
domain::{
... | ast_fragments |
// file: hyperswitch/crates/router/src/db/address.rs | crate: router
use common_utils::{id_type, types::keymanager::KeyManagerState};
use diesel_models::{address::AddressUpdateInternal, enums::MerchantStorageScheme};
use crate::{
core::errors::{self, CustomResult},
types::{
domain::{
self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/address.rs | crate: router
use common_utils::{id_type, types::keymanager::KeyManagerState};
use diesel_models::{address::AddressUpdateInternal, enums::MerchantStorageScheme};
use crate::{
core::errors::{self, CustomResult},
types::{
domain::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/address.rs | crate: router
use common_utils::{id_type, types::keymanager::KeyManagerState};
use diesel_models::{address::AddressUpdateInternal, enums::MerchantStorageScheme};
use crate::{
core::errors::{self, CustomResult},
types::{
domain::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn find_blocklist_entry_by_merchant_id_fingerprint_id(
&self,
merchant_id: &common_util... | ast_fragments |
// file: hyperswitch/crates/router/src/db/blocklist.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn list_blocklist_entries_by_merchant_id(
&self,
merchant_id: &common_utils::id_type::MerchantId,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn list_blocklist_entries_by_merchant_id_data_kind(
&self,
merchant_id: &common_utils::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn delete_blocklist_entry_by_merchant_id_fingerprint_id(
&self,
merchant_id: &common_ut... | ast_fragments |
// file: hyperswitch/crates/router/src/db/blocklist.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn find_blocklist_entry_by_merchant_id_fingerprint_id(
&self,
merchant_id: &common_utils::id_type::Mer... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn insert_blocklist_entry(
&self,
pm_blocklist: storage::BlocklistNew,
) -> CustomR... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn delete_blocklist_entry_by_merchant_id_fingerprint_id(
&self,
_merchant_id: &common_u... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn list_blocklist_entries_by_merchant_id_data_kind(
&self,
_merchant_id: &common_utils:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn list_blocklist_entries_by_merchant_id(
&self,
_merchant_id: &common_utils::id_type::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn find_blocklist_entry_by_merchant_id_fingerprint_id(
&self,
_merchant_id: &common_uti... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn insert_blocklist_entry(
&self,
_pm_blocklist: storage::BlocklistNew,
) -> Custom... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn delete_blocklist_entry_by_merchant_id_fingerprint_id(
&self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn list_blocklist_entries_by_merchant_id(
&self,
merchant_id: ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/blocklist.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
db::kafka_store::KafkaStore,
types::storage,
};
async fn find_blocklist_entry_by_merchant_id_fingerprint_id(
&self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user.rs | crate: router
use diesel_models::user as storage;
use masking::Secret;
use super::{domain, MockDb};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn update_user_by_email(
&self,
user_e... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user.rs | crate: router
use diesel_models::user as storage;
use masking::Secret;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn update_user_by_user_id(
&self,
user_id: &str,
update_use... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user.rs | crate: router
use diesel_models::user as storage;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn insert_user(
&self,
user_data: storage::UserNew,
) -> CustomResult<storage::User,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user.rs | crate: router
use diesel_models::user as storage;
use masking::Secret;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn update_user_by_user_id(
&self,
user_id: &str,
update_use... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user.rs | crate: router
use diesel_models::user as storage;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn find_users_by_user_ids(
&self,
_user_ids: Vec<String>,
) -> CustomResult<Vec<stor... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user.rs | crate: router
use diesel_models::user as storage;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn find_user_by_id(
&self,
user_id: &str,
) -> CustomResult<storage::User, errors::S... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user.rs | crate: router
use diesel_models::user as storage;
use super::{domain, MockDb};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn find_user_by_email(
&self,
user_email: &domain::UserEmai... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user.rs | crate: router
use diesel_models::user as storage;
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn find_users_by_user_ids(
&self,
user_ids: Vec<String>,
) ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user.rs | crate: router
use diesel_models::user as storage;
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn delete_user_by_user_id(
&self,
user_id: &str,
) -> Custo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/user.rs | crate: router
use diesel_models::user as storage;
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn update_user_by_user_id(
&self,
user_id: &str,
user: ... | ast_fragments |
// file: hyperswitch/crates/router/src/db/user.rs | crate: router
use diesel_models::user as storage;
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn insert_user(
&self,
user_data: storage::UserNew,
) -> CustomResult<stor... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/locker_mock_up.rs | crate: router
use super::{MockDb, Store};
async fn delete_locker_mock_up() {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/locker_mock_up.rs | crate: router
use super::{MockDb, Store};
async fn insert_locker_mock_up() {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/locker_mock_up.rs | crate: router
use super::{MockDb, Store};
async fn find_locker_by_card_id() {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/locker_mock_up.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
async fn insert_locker_mock_up(
&self,
new: storage::LockerMockUpNew,
) -> CustomResult<storage::LockerMockUp, errors... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/locker_mock_up.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
fn create_locker_mock_up_new(locker_ids: LockerMockUpIds) -> storage::LockerMockUpNew {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
// file: hyperswitch/crates/router/src/db/locker_mock_up.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
fn create_locker_mock_up_new(locker_ids: LockerMockUpIds) -> storage::LockerMockUpNew {
storage::LockerMockUpNew {
card_id: ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/locker_mock_up.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
async fn find_locker_by_card_id(
&self,
card_id: &str,
) -> CustomResult<storage::LockerMockUp, errors::StorageError>... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/locker_mock_up.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
async fn delete_locker_mock_up(
&self,
card_id: &str,
) -> CustomResult<storage::LockerMockU... | ast_fragments |
// file: hyperswitch/crates/router/src/db/locker_mock_up.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
async fn insert_locker_mock_up(
&self,
new: storage::LockerMockUpNew,
) -> CustomResult<storage::LockerMock... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use std::collections::{HashMap, HashSet};
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use crate::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use std::collections::{HashMap, HashSet};
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use crate::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use crate::{
core::errors::{self, CustomResult},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types,... | ast_fragments |
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums},
};
asy... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums},
};
async fn update_refund(
&self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use crate::{
core::errors::{self, CustomResult},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use crate::{
core::errors::{self, CustomResult},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use crate::{
core::errors::{self, CustomResult},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use crate::{
core::errors::{self, CustomResult},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use crate::{
core::errors::{self, CustomResult},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums},
};
async fn update... | ast_fragments |
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use crate::{
core::errors::{self, CustomResult},
types::storage... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use crate::{
core::errors::{self, CustomResult},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use crate::{
core::errors::{self, CustomResult},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use crate::{
core::errors::{self, CustomResult},
... | ast_fragments |
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums},
};
asy... | ast_fragments |
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as storage_types, enums},
};
async fn insert_refund(
&self,
new: storage_ty... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use std::collections::{HashMap, HashSet};
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use crate::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use std::collections::{HashMap, HashSet};
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use crate::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/refund.rs | crate: router
use std::collections::{HashMap, HashSet};
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund::RefundUpdateInternal};
use hyperswitch_domain_models::refunds;
use super::Moc... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/generic_link.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage,
};
async fn update_payout_link(
&self,
_payout_link: storage::PayoutLink,
_payout... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/generic_link.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage,
};
async fn find_payout_link_by_link_id(
&self,
_generic_link_id: &str,
) -> CustomRe... | ast_fragments |
// file: hyperswitch/crates/router/src/db/generic_link.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage,
};
async fn update_payout_link(
&self,
_payout_link: storage::PayoutLink,
_payout_link_update: s... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/generic_link.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage,
};
async fn insert_payout_link(
&self,
_pm_collect_link: storage::GenericLinkNew,
) -... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/generic_link.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage,
};
async fn insert_pm_collect_link(
&self,
_pm_collect_link: storage::GenericLinkNew,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/generic_link.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage,
};
async fn insert_generic_link(
&self,
_generic_link: storage::GenericLinkNew,
) -> ... | ast_fragments |
// file: hyperswitch/crates/router/src/db/generic_link.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage,
};
async fn find_payout_link_by_link_id(
&self,
_generic_link_id: &str,
) -> CustomResult<storage::P... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/generic_link.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage,
};
async fn find_pm_collect_link_by_link_id(
&self,
_generic_link_id: &str,
) -> Cust... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/generic_link.rs | crate: router
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage,
};
async fn find_generic_link_by_link_id(
&self,
_generic_link_id: &str,
) -> CustomR... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/generic_link.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage,
};
async fn update_payout_link(
&self,
payout_link: storage::Pay... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/generic_link.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage,
};
async fn insert_payout_link(
&self,
pm_collect_link: storage:... | ast_fragments |
// file: hyperswitch/crates/router/src/db/generic_link.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage,
};
async fn insert_pm_collect_link(
&self,
pm_collect_link: storage::GenericLin... | ast_fragments |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.