text stringlengths 70 351k | source stringclasses 4
values |
|---|---|
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};
use crate::{
collect_missing_value_keys,
conn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};
use crate::{
collect_missing_value_keys,
conn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};
fn try_from(capture_amount: MinorUnit) -> Result<Self... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};
use crate::{
collect_missing_value_keys,
conn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
fn foreign_from(latest_attempt: Option<LatestAttempt>) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};
use crate::{
collect_missing_value_keys,
conn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};
use crate::{
collect_missing_value_keys,
conn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
fn from(value: SetupIntentResponse) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
fn from(value: SetupIntentSyncResponse) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
fn from(item: AdditionalPaymentMethodDetails) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use api_models::{self, enums as api_enums, payments};
use crate::{
collect_missing_value_keys,
connector::utils::{self as connector_util, ApplePay, ApplePayDecrypt, RouterData},
consts,
core::errors,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};
use masking::{ExposeInterface, ExposeOptionInterface,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};
use masking::{ExposeInterface, ExposeOptionInterface,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use crate::{
collect_missing_value_keys,
connector::utils::{self as connector_util, ApplePay, ApplePayDecrypt, RouterData},
consts,
core::errors,
headers, services,
types::{
self, api, ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
fn get_stripe_card_network(card_network: common_enums::CardNetwork) -> Option<StripeCardNetwork> {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use crate::{
collect_missing_value_keys,
connector::utils::{self as connector_util, ApplePay, ApplePayDecrypt, RouterData},
consts,
core::errors,
headers, services,
types::{
self, api, ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use api_models::{self, enums as api_enums, payments};
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
fn from(value: WebhookEventStatus) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use api_models::{self, enums as api_enums, payments};
use crate::{
collect_missing_value_keys,
connector::utils::{self as connector_util, ApplePay, ApplePayDecrypt, RouterData},
consts,
core::errors,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};
use crate::{
collect_missing_value_keys,
conn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use api_models::{self, enums as api_enums, payments};
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use std::{collections::HashMap, ops::Deref};
use api_models::{self, enums as api_enums, payments};
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
requ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use std::{collections::HashMap, ops::Deref};
use api_models::{self, enums as api_enums, payments};
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
requ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use std::{collections::HashMap, ops::Deref};
use api_models::{self, enums as api_enums, payments};
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
requ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};
use masking::{ExposeInterface, ExposeOptionInterface,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};
use masking::{ExposeInterface, ExposeOptionInterface,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use api_models::{self, enums as api_enums, payments};
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use api_models::{self, enums as api_enums, payments};
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use api_models::{self, enums as api_enums, payments};
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers.rs | crate: router
use api_models::{self, enums as api_enums, payments};
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode},
pii::{self, Email},
request::RequestContent,
types::MinorUnit,
};... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers/connect.rs | crate: router
fn from(stripe_connect_status: StripeConnectPayoutStatus) -> Self {
{
StripeConnectPayoutStatus::Paid => Self::Success,<|fim_suffix|>
<|fim_middle|>
StripeConnectPayoutStatus::Pending | StripeConnectPayoutStat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers/connect.rs | crate: router
use crate::{
connector::utils::{PayoutsData, RouterData},
core::{errors, payments::CustomerDetailsExt},
types::{self, storage::enums, PayoutIndividualDetailsExt},
utils::OptionExt,
};
type Erro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers/connect.rs | crate: router
fn from(stripe_connect_status: StripeConnectPayoutStatus) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
// file: hyperswitch/crates/router/src/connector/stripe/transformers/connect.rs | crate: router
use crate::{
connector::utils::{PayoutsData, RouterData},
core::{errors, payments::CustomerDetailsExt},
types::{self, storage::enums, PayoutIndividualDetailsExt},
utils::OptionExt,
};
type Error = error_stack... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers/connect.rs | crate: router
use crate::{
connector::utils::{PayoutsData, RouterData},
core::{errors, payments::CustomerDetailsExt},
types::{self, storage::enums, PayoutIndividualDetailsExt},
utils::OptionExt,
};
type Erro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers/connect.rs | crate: router
use crate::{
connector::utils::{PayoutsData, RouterData},
core::{errors, payments::CustomerDetailsExt},
types::{self, storage::enums, PayoutIndividualDetailsExt},
utils::OptionExt,
};
type Erro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers/connect.rs | crate: router
use crate::{
connector::utils::{PayoutsData, RouterData},
core::{errors, payments::CustomerDetailsExt},
types::{self, storage::enums, PayoutIndividualDetailsExt},
utils::OptionExt,
};
type Erro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/connector/stripe/transformers/connect.rs | crate: router
use crate::{
connector::utils::{PayoutsData, RouterData},
core::{errors, payments::CustomerDetailsExt},
types::{self, storage::enums, PayoutIndividualDetailsExt},
utils::OptionExt,
};
type Erro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use super::{MockDb, Store};
async fn test_update_dispute_update_evidence() {
{let merchant_id =
common_utils::id_type::MerchantId::try_from(Cow::from("merchant_1")).unwrap();<|fim_suffix|>
<|fim_middle|>
assert_ne!(c... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use super::{MockDb, Store};
async fn test_update_dispute_update_status() {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use super::{MockDb, Store};
async fn test_find_disputes_by_merchant_id_payment_id() {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use super::{MockDb, Store};
async fn test_find_disputes_by_merchant_id() {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use super::{MockDb, Store};
async fn test_find_dispute_by_merchant_id_dispute_id() {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use super::{MockDb, Store};
async fn test_find_by_merchant_id_payment_id_connector_dispute_id() {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use hyperswitch_domain_models::disputes;
use super::{MockDb, Store};
async fn test_insert_dispute() {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
fn create_dispute_new(dispute_ids: DisputeNewIds) -> DisputeNew {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use hyperswitch_domain_models::disputes;
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage::{self, DisputeDbExt},
};
async fn insert_dispute(
&self,
dispute: storage::DisputeNew,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use super::{MockDb, Store};
async fn test_update_dispute_update_status() {
{let merchant_id =
common_utils::id_type::MerchantId::try_from(Cow::from("merchant_1")).unwrap();<|fim_suffix|>
<|fim_middle|>
assert_eq!(cre... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use hyperswitch_domain_models::disputes;
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage::{self, DisputeDbExt},
};
async fn find_disputes_by_merchant_id_payment_id(
&self,
merchant... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use hyperswitch_domain_models::disputes;
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage::{self, DisputeDbExt},
};
async fn find_by_merchant_id_payment_id_connector_dispute_id(
&self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage::{self, DisputeDbExt},
};
async fn get_dispute_status_with_count(
&self,
merchant_id: &common_utils::id_typ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage::{self, DisputeDbExt},
};
async fn update_dispute(
&self,
this: storage::Dispute,
dispute: storage:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage::{self, DisputeDbExt},
};
async fn find_dispute_by_merchant_id_dispute_id(
&self,
merchant_id: &common_util... | ast_fragments |
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage::{self, DisputeDbExt},
};
async fn insert_dispute(
&self,
dispute: storage::DisputeNew,
) -> CustomResult<storage::Dis... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use super::{MockDb, Store};
async fn test_update_dispute_update() {
{let merchant_id =
common_utils::id_type::MerchantId::try_from(Cow::from("merchant_1")).unwrap();<|fim_suffix|>
<|fim_middle|>
assert_eq!(created_di... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/dispute.rs | crate: router
use hyperswitch_domain_models::disputes;
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage::{self, DisputeDbExt},
};
async fn find_disputes_by_constraints(
&self,
merchant_id: &commo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/role.rs | crate: router
use common_utils::id_type;
use diesel_models::{
enums::{EntityType, RoleScope},
role as storage,
};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn generic_list_roles_by_entity_... | ast_fragments |
// file: hyperswitch/crates/router/src/db/role.rs | crate: router
use common_utils::id_type;
use diesel_models::{
enums::{EntityType, RoleScope},
role as storage,
};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn list_roles_for_org_by_parameters(
&s... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/role.rs | crate: router
use common_utils::id_type;
use diesel_models::{
enums::{EntityType, RoleScope},
role as storage,
};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn find_role_by_role_id_in_linea... | ast_fragments |
// file: hyperswitch/crates/router/src/db/role.rs | crate: router
use diesel_models::{
enums::{EntityType, RoleScope},
role as storage,
};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn insert_role(
&self,
role: storage::RoleNew,
) -> Cu... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/role.rs | crate: router
use common_utils::id_type;
use diesel_models::{
enums::{EntityType, RoleScope},
role as storage,
};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn list_roles_for_org_by_paramet... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/role.rs | crate: router
use diesel_models::{
enums::{EntityType, RoleScope},
role as storage,
};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn delete_role_by_role_id(
&self,
role_id: ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/role.rs | crate: router
use common_utils::id_type;
use diesel_models::{
enums::{EntityType, RoleScope},
role as storage,
};
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn find_by_role_id_org_id_tenant... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/role.rs | crate: router
use common_utils::id_type;
use diesel_models::{
enums::{EntityType, RoleScope},
role as storage,
};
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn list... | ast_fragments |
// file: hyperswitch/crates/router/src/db/role.rs | crate: router
use diesel_models::{
enums::{EntityType, RoleScope},
role as storage,
};
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn delete_role_by_role_id(
&self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/role.rs | crate: router
use diesel_models::{
enums::{EntityType, RoleScope},
role as storage,
};
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn update_role_by_role_id(
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/role.rs | crate: router
use diesel_models::{
enums::{EntityType, RoleScope},
role as storage,
};
use error_stack::report;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
async fn insert_role(
&self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/events.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use crate::{
connection,
core::errors::{self, CustomResult},
types::{
domain::{
self,
behaviour::{Conversion, Rever... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/events.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use crate::{
connection,
core::errors::{self, CustomResult},
types::{
domain::{
self,
behaviour::{Conversion, Rever... | ast_fragments |
// file: hyperswitch/crates/router/src/db/events.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use crate::{
connection,
core::errors::{self, CustomResult},
types::{
domain::{
self,
behaviour::{Conversion, ReverseConversion},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/events.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use crate::{
connection,
core::errors::{self, CustomResult},
types::{
domain::{
self,
behaviour::{Conversion, Rever... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/events.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use crate::{
connection,
core::errors::{self, CustomResult},
types::{
domain::{
self,
behaviour::{Conversion, Rever... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/events.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use crate::{
connection,
core::errors::{self, CustomResult},
types::{
domain::{
self,
behaviour::{Conversion, Rever... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/events.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use crate::{
connection,
core::errors::{self, CustomResult},
types::{
domain::{
self,
behaviour::{Conversion, Rever... | ast_fragments |
// file: hyperswitch/crates/router/src/db/events.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use error_stack::{report, ResultExt};
use crate::{
connection,
core::errors::{self, CustomResult},
types::{
domain::{
self,
behavi... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/events.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use error_stack::{report, ResultExt};
use crate::{
connection,
core::errors::{self, CustomResult},
types::{
domain::{
self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/events.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use crate::{
connection,
core::errors::{self, CustomResult},
types::{
domain::{
self,
behaviour::{Conversion, Rever... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/events.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use error_stack::{report, ResultExt};
use crate::{
connection,
core::errors::{self, CustomResult},
types::{
domain::{
self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/events.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use super::{MockDb, Store};
use crate::{
connection,
core::errors::{self, CustomResult},
types::{
domain::{
self,
b... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use super::{MasterKeyInterface, MockDb, Store};
use crate::{
connection,
core::errors::{self, CustomResult},
db::merchant_key_store::MerchantKeyStor... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::merch... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::merch... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use diesel_models::MerchantAccountUpdateInternal;
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use diesel_models::MerchantAccountUpdateInternal;
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use diesel_models::MerchantAccountUpdateInternal;
use error_stack::{report, ResultExt};
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use error_stack::{report, ResultExt};
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
core::error... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use std::collections::HashMap;
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use error_stack::{report, ResultExt};
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use error_stack::{report, ResultExt};
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
core::error... | ast_fragments |
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use error_stack::{report, ResultExt};
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
core::errors::{self, Custo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use error_stack::{report, ResultExt};
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
core::error... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::merch... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::merch... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use super::{MasterKeyInterface, MockDb, Store};
use crate::{
connection,
core::errors::{self, CustomResult},
db::merchant_key_store::MerchantKeyStor... | ast_fragments |
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::merchant_key_store::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::merch... | ast_fragments |
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use diesel_models::MerchantAccountUpdateInternal;
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::merchant_key_store::MerchantKeyStoreInterface,
... | ast_fragments |
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::merchant_key_store::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/merchant_account.rs | crate: router
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use storage_impl::redis::cache::{self, CacheKind, ACCOUNTS_CACHE};
use crate::{
connection,
core::errors::{self, CustomResult},
db::merch... | 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 list... | ast_fragments |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.