text stringlengths 70 351k | source stringclasses 4
values |
|---|---|
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api.rs | crate: router
Self::PreDetermined(surcharge_details) => Some(surcharge_details.clone()),
}
}
}
pub enum ConnectorChoice {
SessionMultiple(SessionConnectorDatas),
StraightThrough(serde_json::Value),
Decide,
}
impl ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api.rs | crate: router
use api_models::routing::{self as api_routing, RoutableConnectorChoice};
use common_enums::RoutableConnectors;
use crate::{
configs::settings::Connectors,
connector, consts,
core::{
errors::{self, CustomResult},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api.rs | crate: router
use crate::{
configs::settings::Connectors,
connector, consts,
core::{
errors::{self, CustomResult},
payments::types as payments_types,
},
services::connector_integration_interface::ConnectorEnum,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api.rs | crate: router
let result = enums::Connector::from_str("Opennode");
assert!(result.is_err());
}
}
#[derive(Clone)]
pub struct TaxCalculateConnectorData {
pub connector: ConnectorEnum,
pub connector_name: enums::TaxConnector... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api.rs | crate: router
pub use hyperswitch_interfaces::{
api::{
authentication::{
ConnectorAuthentication, ConnectorPostAuthentication, ConnectorPreAuthentication,
ConnectorPreAuthenticationVersionCall, ExternalAuthenticatio... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api.rs | crate: router
pub use hyperswitch_interfaces::{
api::{
authentication::{
ConnectorAuthentication, ConnectorPostAuthentication, ConnectorPreAuthentication,
ConnectorPreAuthenticationVersionCall, ExternalAuthenticatio... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api.rs | crate: router
pub use hyperswitch_interfaces::{
api::{
authentication::{
ConnectorAuthentication, ConnectorPostAuthentication, ConnectorPreAuthentication,
ConnectorPreAuthenticationVersionCall, ExternalAuthenticatio... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api.rs | crate: router
.change_context(errors::ConnectorError::InvalidConnectorName)
.change_context(errors::ApiErrorResponse::InternalServerError)
.attach_printable_lazy(|| format!("unable to parse connector name {name}"))?... | ast_fragments |
// file: hyperswitch/crates/router/src/types/api.rs | crate: router
Self::PreDetermined(surcharge_details) => Some(surcharge_details.clone()),
}
}
}
pub enum ConnectorChoice {
SessionMultiple(SessionConnectorDatas),
StraightThrough(serde_json::Value),
Decide,
}
impl ConnectorData {... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api.rs | crate: router
}
}
/// Session Surcharge type
pub enum SessionSurchargeDetails {
/// Surcharge is calculated by hyperswitch
Calculated(payments_types::SurchargeMetadata),
/// Surcharge is sent by merchant
PreDetermined(payments_typ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api.rs | crate: router
use api_models::routing::{self as api_routing, RoutableConnectorChoice};
use common_enums::RoutableConnectors;
use crate::{
configs::settings::Connectors,
connector, consts,
core::{
errors::{self, CustomResult},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api.rs | crate: router
&& connector_data.connector.merchant_connector_id
== routing_choice.connector.merchant_connector_id
{
final_list.push(connector_data);
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api.rs | crate: router
pub merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>,
}
#[derive(Clone, Debug)]
pub struct SessionConnectorData {
pub payment_method_sub_type: api_enums::PaymentMethodType,
pub payment_method_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api.rs | crate: router
.change_context(errors::ConnectorError::InvalidConnectorName)
.change_context(errors::ApiErrorResponse::InternalServerError)
.attach_printable_lazy(|| format!("unable to parse payout connector name {na... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/pm_auth.rs | crate: router
use std::str::FromStr;
use pm_auth::{
connector::plaid,
types::{
self as pm_auth_types,
api::{BoxedPaymentAuthConnector, PaymentAuthConnectorData},
},
};
use crate::core::{
errors::{self, ApiErrorRespo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/pm_auth.rs | crate: router
use pm_auth::{
connector::plaid,
types::{
self as pm_auth_types,
api::{BoxedPaymentAuthConnector, PaymentAuthConnectorData},
},
};
use crate::core::{
errors::{self, ApiErrorResponse},
pm_auth::help... | ast_fragments |
// file: hyperswitch/crates/router/src/types/pm_auth.rs | crate: router
use std::str::FromStr;
use pm_auth::{
connector::plaid,
types::{
self as pm_auth_types,
api::{BoxedPaymentAuthConnector, PaymentAuthConnectorData},
},
};
use crate::core::{
errors::{self, ApiErrorResponse},
pm_au... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/dispute.rs | crate: router
use common_utils::errors::CustomResult;
use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, QueryDsl};
use diesel_models::{errors, query::generics::db_metrics, schema::dispute::dsl};
use crate::{con... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/dispute.rs | crate: router
use common_utils::errors::CustomResult;
use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, QueryDsl};
use diesel_models::{errors, query::generics::db_metrics, schema::dispute::dsl};
use hyperswitch... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/dispute.rs | crate: router
use common_utils::errors::CustomResult;
use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, QueryDsl};
use diesel_models::{errors, query::generics::db_metrics, schema::dispute::dsl};
use hyperswitch... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/payment_method.rs | crate: router
pub use diesel_models::payment_method::{
PaymentMethod, PaymentMethodNew, PaymentMethodUpdate, PaymentMethodUpdateInternal,
TokenizeCoreWorkflow,
};
pub fn temporary_generic(token: String) -> Self {
{<|fim_suff... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/payment_method.rs | crate: router
pub use diesel_models::payment_method::{
PaymentMethod, PaymentMethodNew, PaymentMethodUpdate, PaymentMethodUpdateInternal,
TokenizeCoreWorkflow,
};
use crate::types::{api, domain};
pub(crate) fn get_token_data... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/payment_method.rs | crate: router
pub use diesel_models::payment_method::{
PaymentMethod, PaymentMethodNew, PaymentMethodUpdate, PaymentMethodUpdateInternal,
TokenizeCoreWorkflow,
};
pub fn is_permanent_card(&self) -> bool {
{<|fim_suffix|>
<|f... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/payment_method.rs | crate: router
pub use diesel_models::payment_method::{
PaymentMethod, PaymentMethodNew, PaymentMethodUpdate, PaymentMethodUpdateInternal,
TokenizeCoreWorkflow,
};
pub fn wallet_token(payment_method_id: String) -> Self {
{<|f... | ast_fragments |
// file: hyperswitch/crates/router/src/types/storage/payment_method.rs | crate: router
pub use diesel_models::payment_method::{
PaymentMethod, PaymentMethodNew, PaymentMethodUpdate, PaymentMethodUpdateInternal,
TokenizeCoreWorkflow,
};
pub fn temporary_generic(token: String) -> Self {
Self::TemporaryGen... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/payment_method.rs | crate: router
pub use diesel_models::payment_method::{
PaymentMethod, PaymentMethodNew, PaymentMethodUpdate, PaymentMethodUpdateInternal,
TokenizeCoreWorkflow,
};
pub fn permanent_card(
payment_method_id: Option<comm... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/payment_method.rs | crate: router
pub use diesel_models::payment_method::{
PaymentMethod, PaymentMethodNew, PaymentMethodUpdate, PaymentMethodUpdateInternal,
TokenizeCoreWorkflow,
};
pub fn permanent_card(
payment_method_id: Option<Stri... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/refund.rs | crate: router
use common_utils::errors::CustomResult;
use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, QueryDsl};
use diesel_models::{
enums::{Currency, RefundStatus},
errors,
query::generics::db_me... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/refund.rs | crate: router
use api_models::payments::AmountFilter;
use common_utils::errors::CustomResult;
use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, QueryDsl};
pub use diesel_models::refund::{
Refund, RefundCoreW... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/refund.rs | crate: router
use common_utils::errors::CustomResult;
use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, QueryDsl};
use diesel_models::{
enums::{Currency, RefundStatus},
errors,
query::generics::db_me... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/refund.rs | crate: router
use api_models::payments::AmountFilter;
use common_utils::errors::CustomResult;
use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, QueryDsl};
use diesel_models::{
enums::{Currency, RefundStatus}... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/refund.rs | crate: router
use api_models::payments::AmountFilter;
use common_utils::errors::CustomResult;
use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, QueryDsl};
use diesel_models::{
enums::{Currency, RefundStatus}... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/refund.rs | crate: router
use api_models::payments::AmountFilter;
use common_utils::errors::CustomResult;
use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, QueryDsl};
use diesel_models::{
enums::{Currency, RefundStatus}... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/refunds.rs | crate: router
pub use api_models::refunds::{
RefundRequest, RefundResponse, RefundStatus, RefundType, RefundUpdateRequest,
RefundsRetrieveRequest,
};
use crate::types::{storage::enums as storage_enums, transformers::ForeignFrom};
fn fo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/refunds.rs | crate: router
pub use api_models::refunds::{
RefundRequest, RefundResponse, RefundStatus, RefundType, RefundUpdateRequest,
RefundsRetrieveRequest,
};
use crate::types::{storage::enums as storage_enums, transformers::ForeignFrom};
fn fo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/payments.rs | crate: router
.attach_printable("Expected payment intent ID but got connector transaction ID"),
}
}
}
pub(crate) trait MandateValidationFieldsExt {
fn validate_and_get_mandate_type(
&self,
) -> errors:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/payments.rs | crate: router
pub use api_models::{
feature_matrix::{
ConnectorFeatureMatrixResponse, FeatureMatrixListResponse, FeatureMatrixRequest,
},
payments::{
AcceptanceType, Address, AddressDetails, Amount, AuthenticationF... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/payments.rs | crate: router
PaymentsRequest {
amount: Some(Amount::from(common_utils::types::MinorUnit::new(200))),
payment_method_data: Some(PaymentMethodDataRequest {
payment_method_data: Some(PaymentMethod... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/payments.rs | crate: router
pub use api_models::{
feature_matrix::{
ConnectorFeatureMatrixResponse, FeatureMatrixListResponse, FeatureMatrixRequest,
},
payments::{
AcceptanceType, Address, AddressDetails, Amount, AuthenticationF... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/payments.rs | crate: router
pub use api_models::payments::{
PaymentListFilterConstraints, PaymentListResponse, PaymentListResponseV2,
};
pub use api_models::payments::{
PaymentsConfirmIntentRequest, PaymentsCreateIntentRequest, PaymentsIntentRespon... | ast_fragments |
// file: hyperswitch/crates/router/src/types/api/payments.rs | crate: router
pub use api_models::{
feature_matrix::{
ConnectorFeatureMatrixResponse, FeatureMatrixListResponse, FeatureMatrixRequest,
},
payments::{
AcceptanceType, Address, AddressDetails, Amount, AuthenticationForStartResponse... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/payments.rs | crate: router
use crate::core::errors;
fn get_payment_intent_id(
&self,
) -> errors::CustomResult<common_utils::id_type::GlobalPaymentId, errors::ValidationError> {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/payments.rs | crate: router
use crate::core::errors;
fn get_payment_intent_id(
&self,
) -> errors::CustomResult<common_utils::id_type::PaymentId, errors::ValidationError> {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/files.rs | crate: router
use crate::{
core::errors,
types::{self, transformers::ForeignTryFrom},
};
fn foreign_try_from(item: &types::Connector) -> Result<Self, Self::Error> {
{
types::Connector::Stripe => Ok(Self::Stripe),<|fim_suffix|>
<|fim_midd... | ast_fragments |
// file: hyperswitch/crates/router/src/types/api/files.rs | crate: router
use crate::{
core::errors,
types::{self, transformers::ForeignTryFrom},
};
fn foreign_try_from(item: &types::Connector) -> Result<Self, Self::Error> {
match *item {
types::Connector::Stripe => Ok(Self::Stripe),
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/files.rs | crate: router
use api_models::enums::FileUploadProvider;
use crate::{
core::errors,
types::{self, transformers::ForeignTryFrom},
};
fn foreign_try_from(item: FileUploadProvider) -> Result<Self, Self::Error> {
<|fim_suffix|>
<|fim_middle|... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/verify_connector.rs | crate: router
use crate::{
consts,
core::errors,
services::{
self,
connector_integration_interface::{BoxedConnectorIntegrationInterface, ConnectorEnum},
},
types::{self, api, api::ConnectorCommon, d... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/verify_connector.rs | crate: router
use crate::{
consts,
core::errors,
services::{
self,
connector_integration_interface::{BoxedConnectorIntegrationInterface, ConnectorEnum},
},
types::{self, api, api::ConnectorCommon, d... | ast_fragments |
// file: hyperswitch/crates/router/src/types/api/verify_connector.rs | crate: router
use crate::{
consts,
core::errors,
services::{
self,
connector_integration_interface::{BoxedConnectorIntegrationInterface, ConnectorEnum},
},
types::{self, api, api::ConnectorCommon, domain, storage:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/verify_connector.rs | crate: router
use crate::{
consts,
core::errors,
services::{
self,
connector_integration_interface::{BoxedConnectorIntegrationInterface, ConnectorEnum},
},
types::{self, api, api::ConnectorCommon, d... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/verify_connector.rs | crate: router
use crate::{
consts,
core::errors,
services::{
self,
connector_integration_interface::{BoxedConnectorIntegrationInterface, ConnectorEnum},
},
types::{self, api, api::ConnectorCommon, d... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/verify_connector.rs | crate: router
use crate::{
consts,
core::errors,
services::{
self,
connector_integration_interface::{BoxedConnectorIntegrationInterface, ConnectorEnum},
},
types::{self, api, api::ConnectorCommon, d... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/verify_connector.rs | crate: router
use crate::{
consts,
core::errors,
services::{
self,
connector_integration_interface::{BoxedConnectorIntegrationInterface, ConnectorEnum},
},
types::{self, api, api::ConnectorCommon, d... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/authentication.rs | crate: router
use api_models::enums;
use common_utils::errors::CustomResult;
use crate::{
connector, core::errors, services::connector_integration_interface::ConnectorEnum,
types::storage,
};
fn convert_connector(
connec... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/authentication.rs | crate: router
use api_models::enums;
use common_utils::errors::CustomResult;
use crate::{
connector, core::errors, services::connector_integration_interface::ConnectorEnum,
types::storage,
};
fn convert_connector(
connec... | ast_fragments |
// file: hyperswitch/crates/router/src/types/api/authentication.rs | crate: router
use std::str::FromStr;
use api_models::enums;
use common_utils::errors::CustomResult;
pub use hyperswitch_domain_models::{
router_flow_types::authentication::{
Authentication, PostAuthentication, PreAuthentication, PreAuthent... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/authentication.rs | crate: router
use common_utils::errors::CustomResult;
pub use hyperswitch_domain_models::{
router_flow_types::authentication::{
Authentication, PostAuthentication, PreAuthentication, PreAuthenticationVersionCall,
},
... | ast_fragments |
// file: hyperswitch/crates/router/src/types/api/verify_connector/paypal.rs | crate: router
use super::{VerifyConnector, VerifyConnectorData};
use crate::{
connector,
core::errors,
routes::SessionState,
services,
types::{self, api},
};
async fn get_access_token(
state: &SessionState,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/verify_connector/paypal.rs | crate: router
use super::{VerifyConnector, VerifyConnectorData};
use crate::{
connector,
core::errors,
routes::SessionState,
services,
types::{self, api},
};
async fn get_access_token(
state: &Sessio... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/verify_connector/stripe.rs | crate: router
use router_env::env;
use crate::{
connector, core::errors, services, types,
types::api::verify_connector::BoxedConnectorIntegrationInterface,
};
async fn handle_payment_error_response<F, ResourceCommonData... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/api/verify_connector/stripe.rs | crate: router
use router_env::env;
use crate::{
connector, core::errors, services, types,
types::api::verify_connector::BoxedConnectorIntegrationInterface,
};
async fn handle_payment_error_response<F, ResourceCommonData... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/event.rs | crate: router
use common_utils::{
crypto::{Encryptable, OptionalEncryptableSecretString},
encryption::Encryption,
type_name,
types::keymanager::{KeyManagerState, ToEncryptable},
};
use masking::{PeekInterface, Secret};
use cra... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/event.rs | crate: router
fn from(event_update: EventUpdate) -> Self {
{
EventUpdate::UpdateResponse {
is_webhook_notified,
response,
} => Self {
is_webhook_notified: Some(is_webhook_notified),
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/event.rs | crate: router
fn from(event_update: EventUpdate) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use common_utils::{
crypto::Encryptable, id_type, new_type::MerchantName, pii, type_name,
types::keymanager::Identifier,
};
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{sel... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use common_utils::{
crypto::Encryptable, id_type, new_type::MerchantName, pii, type_name,
types::keymanager::Identifier,
};
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{sel... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use api_models::{
admin as admin_api, organization as api_org, user as user_api, user_role as user_role_api,
};
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use api_models::{
admin as admin_api, organization as api_org, user as user_api, user_role as user_role_api,
};
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},
user as storage_user,
user_role::{UserRole, UserRoleNew},
};
fn foreign_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use api_models::{
admin as admin_api, organization as api_org, user as user_api, user_role as user_role_api,
};
use crate::{
consts,
core::{
admin,
errors::{UserErrors, UserResult},
},
db::Glob... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},
user as storage_user,
user_role::{UserRole, UserRoleNew},
};
use crate::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},
user as storage_user,
user_role::{UserRole, UserRoleNew},
};
use crate::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use common_enums::EntityType;
fn from(value: ProfileLevel) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use common_enums::EntityType;
fn from(value: MerchantLevel) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use common_enums::EntityType;
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},
user as storage_user,
user_role::{UserRole... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use common_enums::EntityType;
fn from(value: TenantLevel) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},
user as storage_user,
user_role::{UserRole, UserRoleNew},
};
use crate::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},
user as storage_user,
user_role::{UserRole, UserRoleNew},
};
use masking... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},
user as storage_user,
user_role::{UserRole, UserRoleNew},
};
use masking... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use api_models::{
admin as admin_api, organization as api_org, user as user_api, user_role as user_role_api,
};
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},
user as storage_user,
user_role::{UserRole, UserRoleNew},
};
use crate::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use api_models::{
admin as admin_api, organization as api_org, user as user_api, user_role as user_role_api,
};
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},
user as storage_user,
user_role::{UserRole, UserRoleNew},
};
fn foreign_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},
user as storage_user,
user_role::{UserRole, UserRoleNew},
};
use masking... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},
user as storage_user,
user_role::{UserRole, UserRoleNew},
};
use crate::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use api_models::{
admin as admin_api, organization as api_org, user as user_api, user_role as user_role_api,
};
use common_utils::{
crypto::Encryptable, id_type, new_type::MerchantName, pii, type_name,
types::keymanag... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},
user as storage_user,
user_role::{UserRole, UserRoleNew},
};
use crate::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use common_utils::{
crypto::Encryptable, id_type, new_type::MerchantName, pii, type_name,
types::keymanager::Identifier,
};
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{sel... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use common_utils::{
crypto::Encryptable, id_type, new_type::MerchantName, pii, type_name,
types::keymanager::Identifier,
};
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{sel... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},
user as storage_user,
user_role::{UserRole, UserRoleNew},
};
use masking... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},
user as storage_user,
user_role::{UserRole, UserRoleNew},
};
use masking... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use std::{
collections::HashSet,
ops::{Deref, Not},
str::FromStr,
};
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org, Organization, OrganizationBridge},
user as storage_user,
user_role::{UserRole, UserRoleNew},
};
fn from(val... | ast_fragments |
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use api_models::{
admin as admin_api, organization as api_org, user as user_api, user_role as user_role_api,
};
use crate::{
consts,
core::{
admin,
errors::{UserErrors, UserResult},
},
db::GlobalStorageInterf... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use crate::{
consts,
core::{
admin,
errors::{UserErrors, UserResult},
},
db::GlobalStorageInterface,
routes::SessionState,
services::{self, authentication::UserFromToken},
types::{domai... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use api_models::{
admin as admin_api, organization as api_org, user as user_api, user_role as user_role_api,
};
use diesel_models::{
enums::{TotpStatus, UserRoleVersion, UserStatus},
organization::{self as diesel_org,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use api_models::{
admin as admin_api, organization as api_org, user as user_api, user_role as user_role_api,
};
use common_utils::{
crypto::Encryptable, id_type, new_type::MerchantName, pii, type_name,
types::keymanag... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use api_models::{
admin as admin_api, organization as api_org, user as user_api, user_role as user_role_api,
};
use crate::{
consts,
core::{
admin,
errors::{UserErrors, UserResult},
},
db::Glob... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use api_models::{
admin as admin_api, organization as api_org, user as user_api, user_role as user_role_api,
};
use crate::{
consts,
core::{
admin,
errors::{UserErrors, UserResult},
},
db::Glob... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user.rs | crate: router
use api_models::{
admin as admin_api, organization as api_org, user as user_api, user_role as user_role_api,
};
use crate::{
consts,
core::{
admin,
errors::{UserErrors, UserResult},
},
db::Glob... | ast_fragments |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.