text
string
file_path
string
module
string
type
string
tokens
int64
language
string
struct_name
string
type_name
string
trait_name
string
impl_type
string
function_name
string
source
string
section
string
keys
list
macro_type
string
url
string
title
string
chunk_index
int64
impl Hash for UserRole { fn hash<H: std::hash::Hasher>(&self, state: &mut H) { self.user_id.hash(state); if let Some((entity_id, entity_type)) = self.get_entity_id_and_type() { entity_id.hash(state); entity_type.hash(state); } } }
crates/diesel_models/src/user_role.rs
diesel_models
impl_block
70
rust
null
UserRole
Hash for
impl Hash for for UserRole
null
null
null
null
null
null
null
null
pub struct WebhookPaymentInformation { pub credit_debit_indicator: CreditDebitIndicator, pub references: WebhookReferences, pub status: WebhookStatus, pub amount: WebhookAmount, pub status_reason_information: Option<StatusReasonInformation>, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
56
rust
WebhookPaymentInformation
null
null
null
null
null
null
null
null
null
null
null
impl Fiserv { pub fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } } pub fn generate_authorization_signature( &self, auth: fiserv::FiservAuthType, request_id: &str, payload: &str, timestamp: i128, ) -...
crates/hyperswitch_connectors/src/connectors/fiserv.rs
hyperswitch_connectors
impl_block
206
rust
null
Fiserv
null
impl Fiserv
null
null
null
null
null
null
null
null
pub fn open_router_config_default() -> Self { Self { params: None, config: None, decision_engine_configs: Some(open_router::DecisionEngineSuccessRateData { default_latency_threshold: Some(DEFAULT_LATENCY_THRESHOLD), default_bucket_size: Some(DE...
crates/api_models/src/routing.rs
api_models
function_signature
194
rust
null
null
null
null
open_router_config_default
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PayoutUpdateRequest { "type": "object", "properties": { "merchant_order_reference_id": { "type": "string", "description": "Your unique identifier for this payout or order. This ID helps you reconcile payouts on your system. If provided, it is passed to the conn...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
1,825
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PayoutUpdateRequest" ]
null
null
null
null
let mut security_header_kvs: HashMap<String, Vec<u8>> = HashMap::with_capacity(props.len()); for prop_str in &props { let (prop_key, prop_value) = prop_str .split_once('=') .ok_or(ConnectorError::WebhookSourceVerificationFailed)?; security_header_kvs.insert(prop_key.to_...
crates/hyperswitch_connectors/src/connectors/stripe.rs#chunk2
hyperswitch_connectors
chunk
8,185
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/refunds/metrics/sessionized_metrics/refund_processed_amount.rs use std::collections::HashSet; use api_models::analytics::{ refunds::{RefundDimensions, RefundFilters, RefundMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use diesel_mode...
crates/analytics/src/refunds/metrics/sessionized_metrics/refund_processed_amount.rs
analytics
full_file
957
null
null
null
null
null
null
null
null
null
null
null
null
null
impl GsmInterface for KafkaStore { async fn add_gsm_rule( &self, rule: hyperswitch_domain_models::gsm::GatewayStatusMap, ) -> CustomResult<hyperswitch_domain_models::gsm::GatewayStatusMap, errors::StorageError> { self.diesel_store.add_gsm_rule(rule).await } async fn find_gsm_dec...
crates/router/src/db/kafka_store.rs
router
impl_block
442
rust
null
KafkaStore
GsmInterface for
impl GsmInterface for for KafkaStore
null
null
null
null
null
null
null
null
File: crates/payment_methods/src/core/migration/payment_methods.rs Public functions: 8 use std::str::FromStr; #[cfg(feature = "v2")] use api_models::enums as api_enums; #[cfg(feature = "v1")] use api_models::enums; use api_models::payment_methods as pm_api; #[cfg(feature = "v1")] use common_utils::{ consts, ...
crates/payment_methods/src/core/migration/payment_methods.rs
payment_methods
full_file
5,518
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_id(&self) -> &String { &self.payment_method_id }
crates/diesel_models/src/payment_method.rs
diesel_models
function_signature
20
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
pub fn get_transaction_type(&self) -> api_enums::TransactionType { match self.connector_type { #[cfg(feature = "payouts")] api_enums::ConnectorType::PayoutProcessor => api_enums::TransactionType::Payout, _ => api_enums::TransactionType::Payment, } }
crates/api_models/src/admin.rs
api_models
function_signature
70
rust
null
null
null
null
get_transaction_type
null
null
null
null
null
null
null
pub struct Keys<K> { inner: ops::Range<usize>, _marker: PhantomData<K>, }
crates/hyperswitch_constraint_graph/src/dense_map.rs
hyperswitch_constraint_graph
struct_definition
23
rust
Keys
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantDetails { merchant_id: Secret<String>, terminal_id: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
MerchantDetails
null
null
null
null
null
null
null
null
null
null
null
pub trait DisputeMetricAnalytics: LoadRow<DisputeMetricRow> {}
crates/analytics/src/disputes/metrics.rs
analytics
trait_definition
16
rust
null
null
DisputeMetricAnalytics
null
null
null
null
null
null
null
null
null
File: crates/payment_methods/src/helpers.rs Public functions: 3 use api_models::{enums as api_enums, payment_methods as api}; #[cfg(feature = "v1")] use common_utils::ext_traits::AsyncExt; pub use hyperswitch_domain_models::{errors::api_error_response, payment_methods as domain}; #[cfg(feature = "v1")] use router_env...
crates/payment_methods/src/helpers.rs
payment_methods
full_file
3,289
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_recipient( state: &SessionState, merchant_context: &domain::MerchantContext, connector_data: &api::ConnectorData, payout_data: &mut PayoutData, ) -> RouterResult<()> { let customer_details = payout_data.customer_details.to_owned(); let connector_name = connector_data.connecto...
crates/router/src/core/payouts.rs
router
function_signature
1,369
rust
null
null
null
null
create_recipient
null
null
null
null
null
null
null
impl EmailData for VerifyEmail { async fn get_email_data(&self, base_url: &str) -> CustomResult<EmailContents, EmailError> { let token = EmailToken::new_token( self.recipient_email.clone(), None, domain::Origin::VerifyEmail, &self.settings, ) ....
crates/router/src/services/email/types.rs
router
impl_block
262
rust
null
VerifyEmail
EmailData for
impl EmailData for for VerifyEmail
null
null
null
null
null
null
null
null
pub struct PaymentRoutingInfoInner { pub algorithm: Option<routing::StraightThroughAlgorithm>, pub pre_routing_results: Option<HashMap<api_enums::PaymentMethodType, PreRoutingConnectorChoice>>, }
crates/hyperswitch_domain_models/src/routing.rs
hyperswitch_domain_models
struct_definition
43
rust
PaymentRoutingInfoInner
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_payment_method( &self, store_token_response: &pm_transformers::StoreCardRespPayload, payment_method: domain::PaymentMethod, network_token_details: &NetworkTokenizationResponse, card_details: &domain::CardDetail, ) -> RouterResult<domain::PaymentMethod> { ...
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
function_signature
251
rust
null
null
null
null
update_payment_method
null
null
null
null
null
null
null
File: crates/router/src/core/payments/flows/post_session_tokens_flow.rs use async_trait::async_trait; use super::ConstructFlowSpecificData; use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, Feature, PaymentData}, }, routes...
crates/router/src/core/payments/flows/post_session_tokens_flow.rs
router
full_file
951
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/services/kafka/payment_attempt.rs Public functions: 2 Public structs: 2 #[cfg(feature = "v2")] use common_types::payments; #[cfg(feature = "v2")] use common_utils::types; use common_utils::{id_type, types::MinorUnit}; use diesel_models::enums as storage_enums; #[cfg(feature = "v2")] use diese...
crates/router/src/services/kafka/payment_attempt.rs
router
full_file
3,806
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn payment_method_delete_api() {}
crates/openapi/src/routes/payment_method.rs
openapi
function_signature
9
rust
null
null
null
null
payment_method_delete_api
null
null
null
null
null
null
null
impl Responder { let flow = Flow::CreateConfigKey; let payload = json_payload.into_inner(); api::server_wrap( flow, state, &req, payload, |state, _, data, _| configs::set_config(state, data), &ADMIN_API_AUTH, api_locking::LockAction::NotApplicable, ...
crates/router/src/routes/configs.rs
router
impl_block
83
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct JpmorganAuthType { pub(super) _api_key: Secret<String>, pub(super) _key1: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
JpmorganAuthType
null
null
null
null
null
null
null
null
null
null
null
pub struct ThreeDsResponse { pub outcome: String, pub issuer_response: IssuerResponse, }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
struct_definition
22
rust
ThreeDsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct SelfLinkInner { pub href: String, }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
struct_definition
13
rust
SelfLinkInner
null
null
null
null
null
null
null
null
null
null
null
#[proc_macro_derive(EnumNums)] pub fn enum_nums(ts: TokenStream) -> TokenStream { inner::enum_nums_inner(ts) }
crates/euclid_macros/src/lib.rs
euclid_macros
macro
32
rust
null
null
null
null
null
null
null
null
proc_derive
null
null
null
File: crates/kgraph_utils/benches/evaluation.rs #![allow(unused, clippy::expect_used)] use std::{collections::HashMap, str::FromStr}; use api_models::{ admin as admin_api, enums as api_enums, payment_methods::RequestPaymentMethodTypes, }; use common_utils::types::MinorUnit; use criterion::{black_box, criterion_g...
crates/kgraph_utils/benches/evaluation.rs
kgraph_utils
full_file
1,320
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct SquarePaymentsResponse { payment: SquarePaymentsResponseDetails, }
crates/hyperswitch_connectors/src/connectors/square/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
SquarePaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct NexixpayNonMandatePaymentRequest { card: NexixpayCard, recurrence: Option<RecurrenceRequest>, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
NexixpayNonMandatePaymentRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct SubError { pub code: String, pub message: String, pub path: Option<String>, pub field: Option<String>, }
crates/hyperswitch_connectors/src/connectors/wise/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
SubError
null
null
null
null
null
null
null
null
null
null
null
File: crates/test_utils/tests/connectors/noon_ui.rs use serial_test::serial; use thirtyfour::{prelude::*, WebDriver}; use crate::{selenium::*, tester}; struct NoonSeleniumTest; impl SeleniumTest for NoonSeleniumTest { fn get_connector_name(&self) -> String { "noon".to_string() } } async fn should_m...
crates/test_utils/tests/connectors/noon_ui.rs
test_utils
full_file
879
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Retrieves the decision to be taken for auto retries flow. pub fn get_decision(&self) -> common_enums::GsmDecision { self.decision }
crates/common_types/src/domain.rs
common_types
function_signature
36
rust
null
null
null
null
get_decision
null
null
null
null
null
null
null
pub fn get_acs_url(&self) -> Option<String> { if let Self::Challenge(challenge_params) = self { challenge_params.acs_url.as_ref().map(ToString::to_string) } else { None } }
crates/hyperswitch_domain_models/src/router_request_types/authentication.rs
hyperswitch_domain_models
function_signature
54
rust
null
null
null
null
get_acs_url
null
null
null
null
null
null
null
pub async fn payouts_fulfill_core( state: SessionState, merchant_context: domain::MerchantContext, req: payouts::PayoutActionRequest, ) -> RouterResponse<payouts::PayoutCreateResponse> { let mut payout_data = Box::pin(make_payout_data( &state, &merchant_context, None, &pa...
crates/router/src/core/payouts.rs
router
function_signature
543
rust
null
null
null
null
payouts_fulfill_core
null
null
null
null
null
null
null
pub struct SilverflowWebhookEventData { pub charge_key: Option<String>, pub refund_key: Option<String>, pub status: Option<PaymentStatus>, pub amount: Option<Amount>, pub transaction_reference: Option<String>, }
crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
hyperswitch_connectors
struct_definition
50
rust
SilverflowWebhookEventData
null
null
null
null
null
null
null
null
null
null
null
pub trait QueryFilter<T> where T: AnalyticsDataSource, AnalyticsCollection: ToSql<T>, { fn set_filter_clause(&self, builder: &mut QueryBuilder<T>) -> QueryResult<()>; }
crates/analytics/src/query.rs
analytics
trait_definition
46
rust
null
null
QueryFilter
null
null
null
null
null
null
null
null
null
impl api::Payment for Ebanx {}
crates/hyperswitch_connectors/src/connectors/ebanx.rs
hyperswitch_connectors
impl_block
9
rust
null
Ebanx
api::Payment for
impl api::Payment for for Ebanx
null
null
null
null
null
null
null
null
pub async fn files_retrieve( state: web::Data<AppState>, req: HttpRequest, path: web::Path<String>, json_payload: web::Query<file_types::FileRetrieveQuery>, ) -> HttpResponse { let flow = Flow::RetrieveFile; let file_id = files::FileRetrieveRequest { file_id: path.into_inner(), d...
crates/router/src/routes/files.rs
router
function_signature
239
rust
null
null
null
null
files_retrieve
null
null
null
null
null
null
null
pub async fn create_new_merchant_and_insert_in_db( &self, state: SessionState, ) -> UserResult<domain::MerchantAccount> { self.check_if_already_exists_in_db(state.clone()).await?; let merchant_account_create_request = self .create_merchant_account_request() ....
crates/router/src/types/domain/user.rs
router
function_signature
374
rust
null
null
null
null
create_new_merchant_and_insert_in_db
null
null
null
null
null
null
null
pub async fn enable_platform_account( state: SessionState, merchant_id: id_type::MerchantId, ) -> RouterResponse<()> { let db = state.store.as_ref(); let key_manager_state = &(&state).into(); let key_store = db .get_merchant_key_store_by_merchant_id( key_manager_state, ...
crates/router/src/core/admin.rs
router
function_signature
235
rust
null
null
null
null
enable_platform_account
null
null
null
null
null
null
null
impl Tokenizable for ExternalVaultProxyPaymentsData { fn set_session_token(&mut self, token: Option<String>) { self.session_token = token; } }
crates/router/src/types.rs
router
impl_block
35
rust
null
ExternalVaultProxyPaymentsData
Tokenizable for
impl Tokenizable for for ExternalVaultProxyPaymentsData
null
null
null
null
null
null
null
null
File: crates/openapi/src/routes/payouts.rs Public functions: 11 /// Payouts - Create #[utoipa::path( post, path = "/payouts/create", request_body=PayoutsCreateRequest, responses( (status = 200, description = "Payout created", body = PayoutCreateResponse), (status = 400, description = "...
crates/openapi/src/routes/payouts.rs
openapi
full_file
1,784
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct RequiredFieldFinal { pub mandate: HashMap<String, RequiredFieldInfo>, pub non_mandate: HashMap<String, RequiredFieldInfo>, pub common: HashMap<String, RequiredFieldInfo>, }
crates/payment_methods/src/configs/settings.rs
payment_methods
struct_definition
43
rust
RequiredFieldFinal
null
null
null
null
null
null
null
null
null
null
null
File: crates/scheduler/src/db/process_tracker.rs use common_utils::errors::CustomResult; pub use diesel_models as storage; use diesel_models::enums as storage_enums; use error_stack::{report, ResultExt}; use storage_impl::{connection, errors, mock_db::MockDb}; use time::PrimitiveDateTime; use crate::{metrics, schedul...
crates/scheduler/src/db/process_tracker.rs
scheduler
full_file
2,188
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn from_origin( origin: Origin, user: UserFromStorage, state: &SessionState, ) -> UserResult<Self> { let flows = origin.get_flows(); let path = vec![]; for flow in flows { if flow .is_required(&user, &path, state, &state.tenant.te...
crates/router/src/types/domain/user/decision_manager.rs
router
function_signature
135
rust
null
null
null
null
from_origin
null
null
null
null
null
null
null
pub async fn store_payment_method_data_in_locker( state: &routes::SessionState, token_id: Option<String>, payment_method: &domain::PaymentMethodData, customer_id: Option<id_type::CustomerId>, pm: enums::PaymentMethod, merchant_key_store: &domain::MerchantKeyStore, ) -...
crates/router/src/core/payment_methods/vault.rs
router
function_signature
259
rust
null
null
null
null
store_payment_method_data_in_locker
null
null
null
null
null
null
null
pub async fn retrieve_decision_engine_active_rules( state: &SessionState, transaction_type: &enums::TransactionType, profile_id: common_utils::id_type::ProfileId, hs_records: Vec<routing_types::RoutingDictionaryRecord>, ) -> Vec<routing_types::RoutingDictionaryRecord> { let mut de_records = ...
crates/router/src/core/routing.rs
router
function_signature
256
rust
null
null
null
null
retrieve_decision_engine_active_rules
null
null
null
null
null
null
null
pub struct AuthorizedotnetRefundResponse { pub transaction_response: RefundResponse, pub messages: ResponseMessages, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
AuthorizedotnetRefundResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Globalpay {}
crates/hyperswitch_connectors/src/connectors/globalpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Globalpay
api::PaymentVoid for
impl api::PaymentVoid for for Globalpay
null
null
null
null
null
null
null
null
pub async fn form_payment_link_data( state: &SessionState, merchant_context: domain::MerchantContext, merchant_id: common_utils::id_type::MerchantId, payment_id: common_utils::id_type::PaymentId, ) -> RouterResult<(PaymentLink, PaymentLinkData, PaymentLinkConfig)> { todo!() }
crates/router/src/core/payment_link.rs
router
function_signature
72
rust
null
null
null
null
form_payment_link_data
null
null
null
null
null
null
null
File: crates/router/src/types.rs Public functions: 1 Public structs: 11 // FIXME: Why were these data types grouped this way? // // Folder `types` is strange for Rust ecosystem, nevertheless it might be okay. // But folder `enum` is even more strange I unlikely okay. Why should not we introduce folders `type`, `stru...
crates/router/src/types.rs#chunk0
router
chunk
8,188
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Itaubank {}
crates/hyperswitch_connectors/src/connectors/itaubank.rs
hyperswitch_connectors
impl_block
10
rust
null
Itaubank
api::PaymentSync for
impl api::PaymentSync for for Itaubank
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/nordea/responses.rs Public structs: 16 use common_enums::CountryAlpha2; use common_utils::types::StringMajorUnit; use masking::Secret; use serde::{Deserialize, Serialize}; use super::requests::{ CreditorAccount, DebitorAccount, InstructedAmount, PaymentsUrgency,...
crates/hyperswitch_connectors/src/connectors/nordea/responses.rs
hyperswitch_connectors
full_file
2,331
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct GetRefundFilterRequest { pub time_range: TimeRange, #[serde(default)] pub group_by_names: Vec<RefundDimensions>, }
crates/api_models/src/analytics.rs
api_models
struct_definition
34
rust
GetRefundFilterRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct RelayNew { pub id: common_utils::id_type::RelayId, pub connector_resource_id: String, pub connector_id: common_utils::id_type::MerchantConnectorAccountId, pub profile_id: common_utils::id_type::ProfileId, pub merchant_id: common_utils::id_type::MerchantId, pub relay_type: storage_enum...
crates/diesel_models/src/relay.rs
diesel_models
struct_definition
203
rust
RelayNew
null
null
null
null
null
null
null
null
null
null
null
pub struct HyperswitchVault;
crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs
hyperswitch_connectors
struct_definition
7
rust
HyperswitchVault
null
null
null
null
null
null
null
null
null
null
null
pub struct MonerisRefundRequest { pub refund_amount: Amount, pub idempotency_key: String, pub reason: Option<String>, pub payment_id: String, }
crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
MonerisRefundRequest
null
null
null
null
null
null
null
null
null
null
null
impl CustomerAcceptance { /// Get the IP address pub fn get_ip_address(&self) -> Option<String> { self.online .as_ref() .and_then(|data| data.ip_address.as_ref().map(|ip| ip.peek().to_owned())) } /// Get the User Agent pub fn get_user_agent(&self) -> Option<String> {...
crates/common_types/src/payments.rs
common_types
impl_block
137
rust
null
CustomerAcceptance
null
impl CustomerAcceptance
null
null
null
null
null
null
null
null
impl Responder { let algorithm_id = path.into_inner(); let flow = Flow::RoutingRetrieveConfig; Box::pin(oss_api::server_wrap( flow, state, &req, algorithm_id, |state, auth: auth::AuthenticationData, algorithm_id, _| { let merchant_context = domain::Merchan...
crates/router/src/routes/routing.rs
router
impl_block
201
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl api::PaymentsCreateOrder for Razorpay {}
crates/hyperswitch_connectors/src/connectors/razorpay.rs
hyperswitch_connectors
impl_block
10
rust
null
Razorpay
api::PaymentsCreateOrder for
impl api::PaymentsCreateOrder for for Razorpay
null
null
null
null
null
null
null
null
pub struct XenditPaymentsCaptureRequest { pub capture_amount: FloatMajorUnit, }
crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
XenditPaymentsCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
impl Responder { use hyperswitch_domain_models::payments::PaymentIntentData; let flow = Flow::PaymentsCreateIntent; let header_payload = match HeaderPayload::foreign_try_from(req.headers()) { Ok(headers) => headers, Err(err) => { return api::log_and_return_error_response(err); ...
crates/router/src/routes/payments.rs
router
impl_block
372
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl RoutingEvent { /// fn new RoutingEvent #[allow(clippy::too_many_arguments)] pub fn new( tenant_id: common_utils::id_type::TenantId, routable_connectors: String, flow: &str, request: serde_json::Value, url: String, method: ApiMethod, payment_id: St...
crates/hyperswitch_interfaces/src/events/routing_api_logs.rs
hyperswitch_interfaces
impl_block
842
rust
null
RoutingEvent
null
impl RoutingEvent
null
null
null
null
null
null
null
null
impl api::MandateSetup for Vgs {}
crates/hyperswitch_connectors/src/connectors/vgs.rs
hyperswitch_connectors
impl_block
11
rust
null
Vgs
api::MandateSetup for
impl api::MandateSetup for for Vgs
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::ApiKeyList; let payload = query.into_inner(); Box::pin(api::server_wrap( flow, state, &req, payload, |state, auth::AuthenticationDataWithoutProfile { merchant_account, .. }, payload, _...
crates/router/src/routes/api_keys.rs
router
impl_block
171
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct EliminationRoutingEventBucketConfig { pub bucket_size: Option<u64>, pub bucket_leak_interval_in_secs: Option<u64>, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
34
rust
EliminationRoutingEventBucketConfig
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalConfirmTransactionRequest { merchant_authentication: AuthorizedotnetAuthType, transaction_request: TransactionConfirmRequest, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
PaypalConfirmTransactionRequest
null
null
null
null
null
null
null
null
null
null
null
impl MerchantCategoryCode { pub fn to_merchant_category_name(&self) -> MerchantCategory { match self { Self::Mcc5411 => MerchantCategory::GroceryStoresSupermarkets, Self::Mcc7011 => MerchantCategory::LodgingHotelsMotelsResorts, Self::Mcc0763 => MerchantCategory::Agricultu...
crates/common_enums/src/enums.rs
common_enums
impl_block
163
rust
null
MerchantCategoryCode
null
impl MerchantCategoryCode
null
null
null
null
null
null
null
null
impl api::PaymentSession for Worldline {}
crates/hyperswitch_connectors/src/connectors/worldline.rs
hyperswitch_connectors
impl_block
9
rust
null
Worldline
api::PaymentSession for
impl api::PaymentSession for for Worldline
null
null
null
null
null
null
null
null
impl api::PaymentToken for Amazonpay {}
crates/hyperswitch_connectors/src/connectors/amazonpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Amazonpay
api::PaymentToken for
impl api::PaymentToken for for Amazonpay
null
null
null
null
null
null
null
null
impl Profile { pub fn server(state: AppState) -> Scope { web::scope("/v2/profiles") .app_data(web::Data::new(state)) .service(web::resource("").route(web::post().to(profiles::profile_create))) .service( web::scope("/{profile_id}") .serv...
crates/router/src/routes/app.rs
router
impl_block
427
rust
null
Profile
null
impl Profile
null
null
null
null
null
null
null
null
pub struct DummyConnectorPaymentResponse { pub status: DummyConnectorStatus, pub id: common_utils::id_type::PaymentId, pub amount: i64, pub currency: Currency, #[serde(with = "common_utils::custom_serde::iso8601")] pub created: PrimitiveDateTime, pub payment_method_type: DummyConnectorPaymen...
crates/router/src/routes/dummy_connector/types.rs
router
struct_definition
93
rust
DummyConnectorPaymentResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct NexixpayCard { pan: CardNumber, expiry_date: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
NexixpayCard
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/v2/verify") .app_data(web::Data::new(state)) .service( web::resource("/apple-pay/{merchant_id}") .route(web::post().to(apple_pay_merchant_registration)), ) .service( ...
crates/router/src/routes/app.rs
router
function_signature
99
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub fn perform_straight_through_routing( algorithm: &routing_types::StraightThroughAlgorithm, creds_identifier: Option<&str>, ) -> RoutingResult<(Vec<routing_types::RoutableConnectorChoice>, bool)> { Ok(match algorithm { routing_types::StraightThroughAlgorithm::Single(conn) => { (vec![(*...
crates/router/src/core/payments/routing.rs
router
function_signature
167
rust
null
null
null
null
perform_straight_through_routing
null
null
null
null
null
null
null
impl FraudCheckCheckout for Riskified {}
crates/hyperswitch_connectors/src/connectors/riskified.rs
hyperswitch_connectors
impl_block
8
rust
null
Riskified
FraudCheckCheckout for
impl FraudCheckCheckout for for Riskified
null
null
null
null
null
null
null
null
pub struct RoutingProfileMetadata { pub profile_id: id_type::ProfileId, pub algorithm_id: id_type::RoutingId, pub name: String, pub description: Option<String>, pub kind: enums::RoutingAlgorithmKind, pub created_at: time::PrimitiveDateTime, pub modified_at: time::PrimitiveDateTime, pub a...
crates/diesel_models/src/routing_algorithm.rs
diesel_models
struct_definition
82
rust
RoutingProfileMetadata
null
null
null
null
null
null
null
null
null
null
null
pub struct ThreeDsCheck { pub enrollment_status: Option<EnrollmentStatus>, pub authentication_status: Option<AuthenticationStatus>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
ThreeDsCheck
null
null
null
null
null
null
null
null
null
null
null
pub struct StripeConnectPayoutFulfillResponse { id: String, currency: String, description: Option<String>, failure_balance_transaction: Option<String>, failure_code: Option<String>, failure_message: Option<String>, original_payout: Option<String>, reversed_by: Option<String>, stateme...
crates/hyperswitch_connectors/src/connectors/stripe/transformers/connect.rs
hyperswitch_connectors
struct_definition
80
rust
StripeConnectPayoutFulfillResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct Organization { pub organization_details: Option<pii::SecretSerdeValue>, pub metadata: Option<pii::SecretSerdeValue>, pub created_at: time::PrimitiveDateTime, pub modified_at: time::PrimitiveDateTime, id: id_type::OrganizationId, organization_name: Option<String>, pub version: comm...
crates/diesel_models/src/organization.rs
diesel_models
struct_definition
108
rust
Organization
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Iatapay {}
crates/hyperswitch_connectors/src/connectors/iatapay.rs
hyperswitch_connectors
impl_block
11
rust
null
Iatapay
api::PaymentSync for
impl api::PaymentSync for for Iatapay
null
null
null
null
null
null
null
null
/// Fee information for Split Payments to be charged on the payment being collected for Stripe pub struct StripeSplitPaymentRequest { /// Stripe's charge type #[schema(value_type = PaymentChargeType, example = "direct")] pub charge_type: enums::PaymentChargeType, /// Platform fees to be collected on th...
crates/common_types/src/payments.rs
common_types
struct_definition
122
rust
StripeSplitPaymentRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantURLs { terms: String, checkout: String, confirmation: String, push: String, }
crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
MerchantURLs
null
null
null
null
null
null
null
null
null
null
null
pub struct SuccessfulTransactionData { id: String, decision: TransactionDecisionData, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
19
rust
SuccessfulTransactionData
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Checkout { fn validate_connector_against_payment_request( &self, capture_method: Option<enums::CaptureMethod>, _payment_method: enums::PaymentMethod, _pmt: Option<enums::PaymentMethodType>, ) -> CustomResult<(), errors::ConnectorError> { let c...
crates/hyperswitch_connectors/src/connectors/checkout.rs
hyperswitch_connectors
impl_block
154
rust
null
Checkout
ConnectorValidation for
impl ConnectorValidation for for Checkout
null
null
null
null
null
null
null
null
pub fn validate(&self) -> Result<(), errors::DrainerError> { self.server.validate()?; self.master_database.get_inner().validate()?; // The logger may not yet be initialized when validating the application configuration #[allow(clippy::print_stderr)] self.redis.validate().map_err...
crates/drainer/src/settings.rs
drainer
function_signature
240
rust
null
null
null
null
validate
null
null
null
null
null
null
null
File: crates/api_models/src/conditional_configs.rs Public structs: 4 use common_utils::events; use euclid::frontend::ast::Program; #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] pub struct DecisionManagerRecord { pub name: String, pub program: Program<common_types::payments::ConditionalConfigs...
crates/api_models/src/conditional_configs.rs
api_models
full_file
438
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Hash for PaymentIntentMetricsBucketIdentifier { fn hash<H: Hasher>(&self, state: &mut H) { self.status.map(|i| i.to_string()).hash(state); self.currency.hash(state); self.profile_id.hash(state); self.connector.hash(state); self.auth_type.map(|i| i.to_string()).hash(state...
crates/api_models/src/analytics/payment_intents.rs
api_models
impl_block
138
rust
null
PaymentIntentMetricsBucketIdentifier
Hash for
impl Hash for for PaymentIntentMetricsBucketIdentifier
null
null
null
null
null
null
null
null
pub struct SquarePaymentsResponseDetails { status: SquarePaymentStatus, id: String, amount_money: SquarePaymentsAmountData, reference_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/square/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
SquarePaymentsResponseDetails
null
null
null
null
null
null
null
null
null
null
null
pub async fn retry_webhook_delivery_attempt( state: web::Data<AppState>, req: HttpRequest, path: web::Path<(common_utils::id_type::MerchantId, String)
crates/router/src/routes/webhook_events.rs
router
function_signature
41
rust
null
null
null
null
retry_webhook_delivery_attempt
null
null
null
null
null
null
null
pub struct StripeConnectReversalRequest { amount: i64, }
crates/hyperswitch_connectors/src/connectors/stripe/transformers/connect.rs
hyperswitch_connectors
struct_definition
17
rust
StripeConnectReversalRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_user_authentication_methods( state: SessionState, req: user_api::GetUserAuthenticationMethodsRequest, ) -> UserResponse<Vec<user_api::UserAuthenticationMethodResponse>> { let user_authentication_methods = match (req.auth_id, req.email_domain) { (Some(auth_id), None) => state ...
crates/router/src/core/user.rs
router
function_signature
424
rust
null
null
null
null
list_user_authentication_methods
null
null
null
null
null
null
null
pub fn get_end_date( &self, format: date_time::DateFormat, ) -> error_stack::Result<Option<String>, ParsingError> { self.end_date .map(|date| { date_time::format_date(date, format) .change_context(ParsingError::DateTimeParsingError) ...
crates/hyperswitch_domain_models/src/mandates.rs
hyperswitch_domain_models
function_signature
74
rust
null
null
null
null
get_end_date
null
null
null
null
null
null
null
impl<T: DatabaseStore> RedisConnInterface for KVRouterStore<T> { fn get_redis_conn(&self) -> error_stack::Result<Arc<RedisConnectionPool>, RedisError> { self.router_store.get_redis_conn() } }
crates/storage_impl/src/kv_router_store.rs
storage_impl
impl_block
51
rust
null
KVRouterStore
RedisConnInterface for
impl RedisConnInterface for for KVRouterStore
null
null
null
null
null
null
null
null
File: crates/router/src/routes/app.rs Public functions: 76 Public structs: 51 use std::{collections::HashMap, sync::Arc}; use actix_web::{web, Scope}; #[cfg(all(feature = "olap", feature = "v1"))] use api_models::routing::RoutingRetrieveQuery; use api_models::routing::RuleMigrationQuery; #[cfg(feature = "olap")] us...
crates/router/src/routes/app.rs#chunk0
router
chunk
8,182
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct IatapayAuthUpdateRequest { grant_type: String, scope: String, }
crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
IatapayAuthUpdateRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct CoingateErrorResponse { pub message: String, pub reason: String, pub errors: Option<Vec<String>>, }
crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
CoingateErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Xendit { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&XENDIT_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*XENDIT_SUPPORTED_PAYMENT_METHODS) } fn get_support...
crates/hyperswitch_connectors/src/connectors/xendit.rs
hyperswitch_connectors
impl_block
109
rust
null
Xendit
ConnectorSpecifications for
impl ConnectorSpecifications for for Xendit
null
null
null
null
null
null
null
null
File: crates/router/src/core/webhooks/incoming_v2.rs Public functions: 1 use std::{marker::PhantomData, str::FromStr, time::Instant}; use actix_web::FromRequest; use api_models::webhooks::{self, WebhookResponseTracker}; use common_utils::{ errors::ReportSwitchExt, events::ApiEventsType, types::keymanager::KeyMan...
crates/router/src/core/webhooks/incoming_v2.rs
router
full_file
5,789
null
null
null
null
null
null
null
null
null
null
null
null
null