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
File: crates/openapi/src/routes/merchant_connector_account.rs Public functions: 9 /// Merchant Connector - Create /// /// Creates a new Merchant Connector for the merchant account. The connector could be a payment processor/facilitator/acquirer or a provider of specialized services like Fraud/Accounting etc. #[cfg(fe...
crates/openapi/src/routes/merchant_connector_account.rs
openapi
full_file
2,475
null
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/routing/routing--feedback.mdx # Type: Doc File --- openapi: post /routing/feedback ---
api-reference/v1/routing/routing--feedback.mdx
null
doc_file
32
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/services.rs use std::sync::{atomic, Arc}; use router::{configs::settings::Settings, routes, services}; mod utils; #[tokio::test] #[should_panic] #[allow(clippy::unwrap_used)] async fn get_redis_conn_failure() { // Arrange utils::setup().await; let (tx, _) = tokio::sync::oneshot...
crates/router/tests/services.rs
router
full_file
410
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn track_database_call<T, Fut, U>(future: Fut, operation: DatabaseOperation) -> U where Fut: std::future::Future<Output = U>, { let start = std::time::Instant::now(); let output = future.await; let time_elapsed = start.elapsed(); let table_name = std::any::type...
crates/diesel_models/src/query/generics.rs
diesel_models
function_signature
164
rust
null
null
null
null
track_database_call
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs Public functions: 8 Public structs: 35 use api_models::webhooks::IncomingWebhookEvent; use base64::Engine; use cards::CardNumber; use common_enums::{enums, AttemptStatus, CaptureMethod, CountryAlpha2}; use common_utils::{ consts::BASE64_EN...
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs#chunk0
hyperswitch_connectors
chunk
8,186
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentFiltersResponse { pub query_data: Vec<FilterValue>, }
crates/api_models/src/analytics.rs
api_models
struct_definition
17
rust
PaymentFiltersResponse
null
null
null
null
null
null
null
null
null
null
null
impl RecurringDetails { pub fn is_network_transaction_id_and_card_details_flow(self) -> bool { matches!(self, Self::NetworkTransactionIdAndCardDetails(_)) } }
crates/api_models/src/mandates.rs
api_models
impl_block
39
rust
null
RecurringDetails
null
impl RecurringDetails
null
null
null
null
null
null
null
null
pub struct HipayTokenResponse { token: Secret<String>, brand: String, domestic_network: Option<String>, }
crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
HipayTokenResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct AddressDetails { pub city: Option<String>, pub country: Option<api_enums::CountryAlpha2>, pub line1: Option<masking::Secret<String>>, pub line2: Option<masking::Secret<String>>, pub postal_code: Option<masking::Secret<String>>, pub state: Option<masking::Secret<String>>, }
crates/router/src/compatibility/stripe/payment_intents/types.rs
router
struct_definition
78
rust
AddressDetails
null
null
null
null
null
null
null
null
null
null
null
pub fn connector_transaction_id( &self, connector_meta: Option<&serde_json::Value>, ) -> CustomResult<Option<String>, errors::ConnectorError> { let meta: nexinets::NexinetsPaymentsMetadata = to_connector_meta(connector_meta.cloned())?; Ok(meta.transaction_id) }
crates/hyperswitch_connectors/src/connectors/nexinets.rs
hyperswitch_connectors
function_signature
68
rust
null
null
null
null
connector_transaction_id
null
null
null
null
null
null
null
pub struct ExternalVaultProxyPaymentIntent;
crates/router/src/core/payments/operations/external_vault_proxy_payment_intent.rs
router
struct_definition
8
rust
ExternalVaultProxyPaymentIntent
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Prophetpay {}
crates/hyperswitch_connectors/src/connectors/prophetpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Prophetpay
api::PaymentVoid for
impl api::PaymentVoid for for Prophetpay
null
null
null
null
null
null
null
null
pub struct TransactionDetails { pub amount: Option<MinorUnit>, pub currency: Option<common_enums::Currency>, pub device_channel: Option<DeviceChannel>, pub message_category: Option<super::authentication::MessageCategory>, }
crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
hyperswitch_domain_models
struct_definition
51
rust
TransactionDetails
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/errors.rs Public functions: 1 //! Errors interface use common_enums::ApiClientError; use common_utils::errors::ErrorSwitch; use hyperswitch_domain_models::errors::api_error_response::ApiErrorResponse; /// Connector Errors #[allow(missing_docs, missing_debug_implementations)] ...
crates/hyperswitch_interfaces/src/errors.rs
hyperswitch_interfaces
full_file
2,039
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::DecisionEngineGatewayFeedbackCall; Box::pin(oss_api::server_wrap( flow, state, &req, payload.clone(), |state, _auth, payload, _| { routing::update_gateway_score_open_router(state.clone(), payload) }, &auth::Api...
crates/router/src/routes/routing.rs
router
impl_block
109
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct ProxyResponse { /// The response received from the destination pub response: Value, /// The status code of the response pub status_code: u16, /// The headers of the response #[schema(value_type = Object, example = r#"{ "key1": "value-1", "key2": "value-2" }"#)] pub response_header...
crates/api_models/src/proxy.rs
api_models
struct_definition
88
rust
ProxyResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundWebhookLink { pub refund: String, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
RefundWebhookLink
null
null
null
null
null
null
null
null
null
null
null
pub struct CountryCurrencyFilter { pub connector_configs: HashMap<api_enums::RoutableConnectors, PaymentMethodFilters>, pub default_configs: Option<PaymentMethodFilters>, }
crates/kgraph_utils/src/types.rs
kgraph_utils
struct_definition
39
rust
CountryCurrencyFilter
null
null
null
null
null
null
null
null
null
null
null
File: crates/storage_impl/src/mock_db/payment_attempt.rs use common_utils::errors::CustomResult; #[cfg(feature = "v2")] use common_utils::{id_type, types::keymanager::KeyManagerState}; use diesel_models::enums as storage_enums; #[cfg(feature = "v2")] use hyperswitch_domain_models::merchant_key_store::MerchantKeyStore;...
crates/storage_impl/src/mock_db/payment_attempt.rs
storage_impl
full_file
3,436
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Iatapay {}
crates/hyperswitch_connectors/src/connectors/iatapay.rs
hyperswitch_connectors
impl_block
11
rust
null
Iatapay
api::PaymentToken for
impl api::PaymentToken for for Iatapay
null
null
null
null
null
null
null
null
pub fn search_index_to_opensearch_index(&self, index: SearchIndex) -> String { match index { SearchIndex::PaymentAttempts => self.indexes.payment_attempts.clone(), SearchIndex::PaymentIntents => self.indexes.payment_intents.clone(), SearchIndex::Refunds => self.indexes.refund...
crates/analytics/src/opensearch.rs
analytics
function_signature
172
rust
null
null
null
null
search_index_to_opensearch_index
null
null
null
null
null
null
null
pub fn get_checkout_event_status_and_reason( attempt_status: common_enums::AttemptStatus, ) -> (Option<String>, Option<String>) { match attempt_status { common_enums::AttemptStatus::Charged | common_enums::AttemptStatus::Authorized => ( Some("01".to_string()), Some("The payment w...
crates/router/src/core/unified_authentication_service/utils.rs
router
function_signature
108
rust
null
null
null
null
get_checkout_event_status_and_reason
null
null
null
null
null
null
null
impl api::PaymentCapture for Bankofamerica {}
crates/hyperswitch_connectors/src/connectors/bankofamerica.rs
hyperswitch_connectors
impl_block
11
rust
null
Bankofamerica
api::PaymentCapture for
impl api::PaymentCapture for for Bankofamerica
null
null
null
null
null
null
null
null
impl RoleNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Role> { generics::generic_insert(conn, self).await } }
crates/diesel_models/src/query/role.rs
diesel_models
impl_block
39
rust
null
RoleNew
null
impl RoleNew
null
null
null
null
null
null
null
null
impl DisputeMetricAccumulator for DisputedAmountAccumulator { type MetricOutput = Option<u64>; #[inline] fn add_metrics_bucket(&mut self, metrics: &DisputeMetricRow) { self.total = match ( self.total, metrics .total .as_ref() .a...
crates/analytics/src/disputes/accumulators.rs
analytics
impl_block
171
rust
null
DisputedAmountAccumulator
DisputeMetricAccumulator for
impl DisputeMetricAccumulator for for DisputedAmountAccumulator
null
null
null
null
null
null
null
null
File: crates/common_utils/src/id_type/payout.rs crate::id_type!( PayoutId, "A domain type for payout_id that can be used for payout ids" ); crate::impl_id_type_methods!(PayoutId, "payout_id"); crate::impl_debug_id_type!(PayoutId); crate::impl_try_from_cow_str_id_type!(PayoutId, "payout_id"); crate::impl_genera...
crates/common_utils/src/id_type/payout.rs
common_utils
full_file
128
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/klarna.rs
hyperswitch_connectors
function_signature
27
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct PaymentIntentUpdateInternal { pub amount: Option<MinorUnit>, pub currency: Option<common_enums::Currency>, pub status: Option<common_enums::IntentStatus>, pub amount_captured: Option<MinorUnit>, pub customer_id: Option<id_type::CustomerId>, pub return_url: Option<String>, pub setu...
crates/hyperswitch_domain_models/src/payments/payment_intent.rs
hyperswitch_domain_models
struct_definition
580
rust
PaymentIntentUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
pub fn server(config: AppState) -> Scope { use api_models::webhooks as webhook_type; #[allow(unused_mut)] let mut route = web::scope("/webhooks") .app_data(web::Data::new(config)) .service( web::resource("/network_token_requestor/ref") ...
crates/router/src/routes/app.rs
router
function_signature
330
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub fn get_error_message(&self) -> String { match self { Self::InternalServerError => "Something went wrong".to_string(), Self::InvalidCredentials => "Incorrect email or password".to_string(), Self::UserNotFound => "Email doesn’t exist. Register".to_string(), Self...
crates/router/src/core/errors/user.rs
router
function_signature
950
rust
null
null
null
null
get_error_message
null
null
null
null
null
null
null
pub struct ArchipelCardHolder { billing_address: Option<ArchipelBillingAddress>, }
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
ArchipelCardHolder
null
null
null
null
null
null
null
null
null
null
null
pub struct Beneficiary { pub name: Option<Secret<String>>, pub document_type: Option<enums::DocumentKind>, pub document_number: Option<String>, }
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
Beneficiary
null
null
null
null
null
null
null
null
null
null
null
impl MerchantConnectorAccount { pub fn get_id(&self) -> id_type::MerchantConnectorAccountId { self.merchant_connector_id.clone() } }
crates/diesel_models/src/merchant_connector_account.rs
diesel_models
impl_block
32
rust
null
MerchantConnectorAccount
null
impl MerchantConnectorAccount
null
null
null
null
null
null
null
null
pub struct AccessTokenAuthenticationRequestData { pub auth_creds: router_data::ConnectorAuthType, }
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
21
rust
AccessTokenAuthenticationRequestData
null
null
null
null
null
null
null
null
null
null
null
/// Insert a new payment token reference for the given connector_id pub fn insert_payment_token_reference_record( &mut self, connector_id: &common_utils::id_type::MerchantConnectorAccountId, record: ConnectorTokenReferenceRecord, ) { match self.payments { Some(ref mut...
crates/hyperswitch_domain_models/src/mandates.rs
hyperswitch_domain_models
function_signature
128
rust
null
null
null
null
insert_payment_token_reference_record
null
null
null
null
null
null
null
pub struct NoonCheckoutData { post_url: url::Url, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
NoonCheckoutData
null
null
null
null
null
null
null
null
null
null
null
pub struct DiscountCodes { amount: StringMajorUnit, code: Option<String>, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
19
rust
DiscountCodes
null
null
null
null
null
null
null
null
null
null
null
pub async fn default_payment_method_set_api() {}
crates/openapi/src/routes/payment_method.rs
openapi
function_signature
10
rust
null
null
null
null
default_payment_method_set_api
null
null
null
null
null
null
null
pub async fn invite_multiple_user( state: web::Data<AppState>, req: HttpRequest, payload: web::Json<Vec<user_api::InviteUserRequest>>, auth_id_query_param: web::Query<user_api::AuthIdAndThemeIdQueryParam>, ) -> HttpResponse { let flow = Flow::InviteMultipleUser; let auth_id = auth_id_query_param...
crates/router/src/routes/user.rs
router
function_signature
181
rust
null
null
null
null
invite_multiple_user
null
null
null
null
null
null
null
pub fn build(self) -> ConstraintGraph<V> { ConstraintGraph { domain: self.domain, domain_identifier_map: self.domain_identifier_map, nodes: self.nodes, edges: self.edges, value_map: self.value_map, node_info: self.node_info, nod...
crates/hyperswitch_constraint_graph/src/builder.rs
hyperswitch_constraint_graph
function_signature
71
rust
null
null
null
null
build
null
null
null
null
null
null
null
pub async fn recon_merchant_account_update( state: SessionState, auth: authentication::AuthenticationData, req: recon_api::ReconUpdateMerchantRequest, ) -> RouterResponse<api_types::MerchantAccountResponse> { let db = &*state.store; let key_manager_state = &(&state).into(); let updated_merchant...
crates/router/src/core/recon.rs
router
function_signature
675
rust
null
null
null
null
recon_merchant_account_update
null
null
null
null
null
null
null
pub(crate) struct SinglePurposeJWTAuth(pub TokenPurpose);
crates/router/src/services/authentication.rs
router
struct_definition
12
rust
SinglePurposeJWTAuth
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/bitpay.rs use hyperswitch_domain_models::address::{Address, AddressDetails, PhoneDetails}; use masking::Secret; use router::types::{self, api, domain, storage::enums, PaymentAddress}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[derive(Clone, Copy)] ...
crates/router/tests/connectors/bitpay.rs
router
full_file
1,160
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct VerifyEmail { pub recipient_email: domain::UserEmail, pub settings: std::sync::Arc<configs::Settings>, pub auth_id: Option<String>, pub theme_id: Option<String>, pub theme_config: EmailThemeConfig, }
crates/router/src/services/email/types.rs
router
struct_definition
55
rust
VerifyEmail
null
null
null
null
null
null
null
null
null
null
null
/// get_dsk_key pub fn get_dsl_config(&self) -> String { format!("dsl_{}", self.get_string_repr()) }
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
32
rust
null
null
null
null
get_dsl_config
null
null
null
null
null
null
null
impl api::PaymentToken for Nuvei {}
crates/hyperswitch_connectors/src/connectors/nuvei.rs
hyperswitch_connectors
impl_block
10
rust
null
Nuvei
api::PaymentToken for
impl api::PaymentToken for for Nuvei
null
null
null
null
null
null
null
null
pub struct AdminApiAuthWithApiKeyFallbackAndMerchantIdFromRoute(pub id_type::MerchantId);
crates/router/src/services/authentication.rs
router
struct_definition
20
rust
AdminApiAuthWithApiKeyFallbackAndMerchantIdFromRoute
null
null
null
null
null
null
null
null
null
null
null
pub struct CardExpirationMonth(StrongSecret<u8>);
crates/cards/src/lib.rs
cards
struct_definition
12
rust
CardExpirationMonth
null
null
null
null
null
null
null
null
null
null
null
pub async fn contract_based_dynamic_routing_setup( state: SessionState, merchant_context: domain::MerchantContext, profile_id: common_utils::id_type::ProfileId, feature_to_enable: routing_types::DynamicRoutingFeatures, config: Option<routing_types::ContractBasedRoutingConfig>, ) -> RouterResult<serv...
crates/router/src/core/routing.rs
router
function_signature
1,457
rust
null
null
null
null
contract_based_dynamic_routing_setup
null
null
null
null
null
null
null
pub async fn get_totp_secret_from_redis( state: &SessionState, user_id: &str, ) -> UserResult<Option<masking::Secret<String>>> { let redis_conn = super::get_redis_connection_for_global_tenant(state)?; redis_conn .get_key::<Option<String>>(&get_totp_secret_key(user_id).into()) .await ...
crates/router/src/utils/user/two_factor_auth.rs
router
function_signature
103
rust
null
null
null
null
get_totp_secret_from_redis
null
null
null
null
null
null
null
pub struct Wellsfargopayout { amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs
hyperswitch_connectors
struct_definition
30
rust
Wellsfargopayout
null
null
null
null
null
null
null
null
null
null
null
pub async fn perform_execute_payment( state: &SessionState, execute_task_process: &storage::ProcessTracker, profile: &domain::Profile, merchant_context: domain::MerchantContext, tracking_data: &pcr::RevenueRecoveryWorkflowTrackingData, revenue_recovery_payment_data: &pcr::RevenueRecoveryPaymentD...
crates/router/src/core/revenue_recovery.rs
router
function_signature
1,408
rust
null
null
null
null
perform_execute_payment
null
null
null
null
null
null
null
impl api::Refund for Nuvei {}
crates/hyperswitch_connectors/src/connectors/nuvei.rs
hyperswitch_connectors
impl_block
10
rust
null
Nuvei
api::Refund for
impl api::Refund for for Nuvei
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/v2/api-keys") .app_data(web::Data::new(state)) .service(web::resource("").route(web::post().to(api_keys::api_key_create))) .service(web::resource("/list").route(web::get().to(api_keys::api_key_list))) .service...
crates/router/src/routes/app.rs
router
function_signature
136
rust
null
null
null
null
server
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RuleThreeDsDecisionRule { "type": "object", "required": [ "name", "connectorSelection", "statements" ], "properties": { "name": { "type": "string" }, "connectorSelection": { "$ref": "#/components/schemas/ThreeDSDecision" }, "stat...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
120
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RuleThreeDsDecisionRule" ]
null
null
null
null
pub struct PaymentAccountInformation { card: Option<PaymentAccountCardInformation>, features: Option<PaymentAccountFeatureInformation>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
PaymentAccountInformation
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/three_ds_decision/execute" { "post": { "tags": [ "3DS Decision Rule" ], "summary": "3DS Decision - Execute", "operationId": "Execute 3DS Decision Rule", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
215
.json
null
null
null
null
null
openapi_spec
paths
[ "/three_ds_decision/execute" ]
null
null
null
null
/// Response of the retrieved routing configs for a merchant account pub struct RoutingRetrieveResponse { pub algorithm: Option<MerchantRoutingAlgorithm>, }
crates/api_models/src/routing.rs
api_models
struct_definition
29
rust
RoutingRetrieveResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/api_models/src/events/customer.rs use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::customers::{ CustomerDeleteResponse, CustomerRequest, CustomerResponse, CustomerUpdateRequestInternal, }; #[cfg(feature = "v1")] impl ApiEventMetric for CustomerDeleteResponse { fn get_api_eve...
crates/api_models/src/events/customer.rs
api_models
full_file
506
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/connector_events/events.rs Public functions: 1 Public structs: 1 use api_models::analytics::{connector_events::ConnectorEventsRequest, Granularity}; use common_utils::errors::ReportSwitchExt; use error_stack::ResultExt; use time::PrimitiveDateTime; use crate::{ query::{Aggregate, Grou...
crates/analytics/src/connector_events/events.rs
analytics
full_file
588
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantLevel { pub tenant_id: id_type::TenantId, pub org_id: id_type::OrganizationId, pub merchant_id: id_type::MerchantId, }
crates/router/src/types/domain/user.rs
router
struct_definition
39
rust
MerchantLevel
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/frm/filters.rs Public functions: 1 Public structs: 1 use api_models::analytics::{ frm::{FrmDimensions, FrmTransactionType}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use diesel_models::enums::FraudCheckStatus; use error_stack::ResultExt; use time::Primit...
crates/analytics/src/frm/filters.rs
analytics
full_file
462
null
null
null
null
null
null
null
null
null
null
null
null
null
} else { None }; BarclaycardConsumerAuthInformation { pares_status, ucaf_collection_indicator, cavv, ucaf_authentication_data, xid: None, ...
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs#chunk1
hyperswitch_connectors
chunk
8,190
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.TransactionStatus { "type": "string", "description": "Indicates the transaction status", "enum": [ "Y", "N", "U", "A", "R", "C", "D", "I" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
70
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "TransactionStatus" ]
null
null
null
null
impl webhooks::IncomingWebhook for Globepay { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented...
crates/hyperswitch_connectors/src/connectors/globepay.rs
hyperswitch_connectors
impl_block
211
rust
null
Globepay
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Globepay
null
null
null
null
null
null
null
null
impl ConnectorPostAuthentication for Netcetera {}
crates/hyperswitch_connectors/src/connectors/netcetera.rs
hyperswitch_connectors
impl_block
10
rust
null
Netcetera
ConnectorPostAuthentication for
impl ConnectorPostAuthentication for for Netcetera
null
null
null
null
null
null
null
null
pub struct ThreedsChallengeResponse { cres: String, }
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
ThreedsChallengeResponse
null
null
null
null
null
null
null
null
null
null
null
} fn is_three_ds(&self) -> bool { matches!(self.auth_type, enums::AuthenticationType::ThreeDs) } fn get_shipping_address(&self) -> Result<&AddressDetails, Error> { self.address .get_shipping() .and_then(|a| a.address.as_ref()) .ok_or_else(missing_fie...
crates/hyperswitch_connectors/src/utils.rs#chunk1
hyperswitch_connectors
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ListUserRolesByOrgIdPayload<'a> { pub user_id: Option<&'a String>, pub tenant_id: &'a id_type::TenantId, pub org_id: &'a id_type::OrganizationId, pub merchant_id: Option<&'a id_type::MerchantId>, pub profile_id: Option<&'a id_type::ProfileId>, pub version: Option<enums::UserRoleVersio...
crates/router/src/db/user_role.rs
router
struct_definition
101
rust
ListUserRolesByOrgIdPayload
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorData { pub fn get_connector_by_name( _connectors: &Connectors, name: &str, connector_type: GetToken, connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>, ) -> CustomResult<Self, errors::ApiErrorResponse> { let connector = Self::convert_co...
crates/router/src/types/api/connector_mapping.rs
router
impl_block
4,631
rust
null
ConnectorData
null
impl ConnectorData
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ThreeDsCompletionIndicator { "type": "string", "description": "Indicates if 3DS method data was successfully completed or not", "enum": [ "Y", "N", "U" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
61
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ThreeDsCompletionIndicator" ]
null
null
null
null
pub fn get_id(&self) -> id_type::MerchantConnectorAccountId { self.merchant_connector_id.clone() }
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
25
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
impl BlackList for SinglePurposeOrLoginToken { async fn check_in_blacklist<A>(&self, state: &A) -> RouterResult<bool> where A: SessionStateInfo + Sync, { check_user_in_blacklist(state, &self.user_id, self.exp).await } }
crates/router/src/services/authentication/blacklist.rs
router
impl_block
66
rust
null
SinglePurposeOrLoginToken
BlackList for
impl BlackList for for SinglePurposeOrLoginToken
null
null
null
null
null
null
null
null
pub async fn exchange_token( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<api_types::pm_auth::ExchangeTokenCreateRequest>, ) -> impl Responder { let payload = json_payload.into_inner(); let flow = Flow::PmAuthExchangeToken; let api_auth = auth::ApiKeyAuth::default(); ...
crates/router/src/routes/pm_auth.rs
router
function_signature
263
rust
null
null
null
null
exchange_token
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/jpmorgan.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use base64::Engine; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, Requ...
crates/hyperswitch_connectors/src/connectors/jpmorgan.rs
hyperswitch_connectors
full_file
6,726
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn verify_recovery_code( state: SessionState, user_token: auth::UserIdFromAuth, req: user_api::VerifyRecoveryCodeRequest, ) -> UserResponse<()> { let user_from_db: domain::UserFromStorage = state .global_store .find_user_by_id(&user_token.user_id) .await .change...
crates/router/src/core/user.rs
router
function_signature
438
rust
null
null
null
null
verify_recovery_code
null
null
null
null
null
null
null
impl api::MandateSetup for Dlocal {}
crates/hyperswitch_connectors/src/connectors/dlocal.rs
hyperswitch_connectors
impl_block
11
rust
null
Dlocal
api::MandateSetup for
impl api::MandateSetup for for Dlocal
null
null
null
null
null
null
null
null
pub struct TokenizeCardRequest { pub raw_card_number: CardNumber, pub card_expiry_month: masking::Secret<String>, pub card_expiry_year: masking::Secret<String>, pub card_cvc: Option<masking::Secret<String>>, pub card_holder_name: Option<masking::Secret<String>>, pub nick_name: Option<masking::Se...
crates/hyperswitch_domain_models/src/bulk_tokenization.rs
hyperswitch_domain_models
struct_definition
126
rust
TokenizeCardRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct BluesnapWebhookBody { pub merchant_transaction_id: String, pub reference_number: String, pub transaction_type: BluesnapWebhookEvents, pub reversal_ref_num: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
BluesnapWebhookBody
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_user_authentication_method( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<user_api::UpdateUserAuthenticationMethodRequest>, ) -> HttpResponse { let flow = Flow::UpdateUserAuthenticationMethod; Box::pin(api::server_wrap( flow, state.clone()...
crates/router/src/routes/user.rs
router
function_signature
128
rust
null
null
null
null
update_user_authentication_method
null
null
null
null
null
null
null
pub fn validate_and_get_payment_method_records(self) -> UpdateValidationResult { let records = parse_update_csv(self.file.data.to_bytes()).map_err(|e| { errors::ApiErrorResponse::PreconditionFailed { message: e.to_string(), } })?; Ok((self.merchant_id.clon...
crates/router/src/core/payment_methods/migration.rs
router
function_signature
69
rust
null
null
null
null
validate_and_get_payment_method_records
null
null
null
null
null
null
null
File: crates/router/src/types/storage/user_role.rs pub use diesel_models::user_role::*;
crates/router/src/types/storage/user_role.rs
router
full_file
19
null
null
null
null
null
null
null
null
null
null
null
null
null
impl RecoveryAction { pub fn get_action( event_type: webhooks::IncomingWebhookEvent, attempt_triggered_by: Option<common_enums::TriggeredBy>, ) -> common_types::payments::RecoveryAction { match event_type { webhooks::IncomingWebhookEvent::PaymentIntentFailure | we...
crates/router/src/core/webhooks/recovery_incoming.rs
router
impl_block
1,342
rust
null
RecoveryAction
null
impl RecoveryAction
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/adyen.rs Public structs: 1 pub mod transformers; use std::sync::LazyLock; use base64::Engine; use common_enums::enums::{self, PaymentMethodType}; use common_utils::{ consts, errors::CustomResult, ext_traits::{ByteSliceExt, OptionExt}, request::{Metho...
crates/hyperswitch_connectors/src/connectors/adyen.rs#chunk0
hyperswitch_connectors
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn add_token_for_payment_method( router_data: &mut types::RouterData< api::PaymentMethodToken, types::PaymentMethodTokenizationData, types::PaymentsResponseData, >, payment_method_data_request: types::PaymentMethodTokenizationData, state: SessionState, merchant_conn...
crates/router/src/core/payments/tokenization.rs
router
function_signature
474
rust
null
null
null
null
add_token_for_payment_method
null
null
null
null
null
null
null
pub struct Multitenancy { pub enabled: bool, pub tenants: TenantConfig, }
crates/drainer/src/settings.rs
drainer
struct_definition
20
rust
Multitenancy
null
null
null
null
null
null
null
null
null
null
null
pub struct InviteMultipleUserResponse { pub email: pii::Email, pub is_email_sent: bool, #[serde(skip_serializing_if = "Option::is_none")] pub password: Option<Secret<String>>, #[serde(skip_serializing_if = "Option::is_none")] pub error: Option<String>, }
crates/api_models/src/user.rs
api_models
struct_definition
68
rust
InviteMultipleUserResponse
null
null
null
null
null
null
null
null
null
null
null
impl HealthCheck for SqlxClient { async fn deep_health_check(&self) -> CustomResult<(), QueryExecutionError> { sqlx::query("SELECT 1") .fetch_all(&self.pool) .await .map(|_| ()) .change_context(QueryExecutionError::DatabaseError) } }
crates/analytics/src/sqlx.rs
analytics
impl_block
68
rust
null
SqlxClient
HealthCheck for
impl HealthCheck for for SqlxClient
null
null
null
null
null
null
null
null
impl api::Payment for Adyen {}
crates/hyperswitch_connectors/src/connectors/adyen.rs
hyperswitch_connectors
impl_block
8
rust
null
Adyen
api::Payment for
impl api::Payment for for Adyen
null
null
null
null
null
null
null
null
impl api::MandateSetup for Coingate {}
crates/hyperswitch_connectors/src/connectors/coingate.rs
hyperswitch_connectors
impl_block
12
rust
null
Coingate
api::MandateSetup for
impl api::MandateSetup for for Coingate
null
null
null
null
null
null
null
null
pub async fn generate_feature_matrix( state: app::SessionState, req: payment_types::FeatureMatrixRequest, ) -> RouterResponse<feature_matrix::FeatureMatrixListResponse> { let connector_list = req .connectors .unwrap_or_else(|| Connector::iter().collect()); let feature_matrix_response: V...
crates/router/src/routes/feature_matrix.rs
router
function_signature
222
rust
null
null
null
null
generate_feature_matrix
null
null
null
null
null
null
null
pub fn server(state: routes::AppState) -> Scope { web::scope("/setup_intents") .app_data(web::Data::new(state)) .service(web::resource("").route(web::post().to(setup_intents_create))) .service( web::resource("/{setup_id}") .route(web::get()...
crates/router/src/compatibility/stripe/app.rs
router
function_signature
124
rust
null
null
null
null
server
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Nuvei {}
crates/hyperswitch_connectors/src/connectors/nuvei.rs
hyperswitch_connectors
impl_block
10
rust
null
Nuvei
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Nuvei
null
null
null
null
null
null
null
null
pub struct ExternalVaultRetrieveFlow;
crates/hyperswitch_domain_models/src/router_flow_types/vault.rs
hyperswitch_domain_models
struct_definition
7
rust
ExternalVaultRetrieveFlow
null
null
null
null
null
null
null
null
null
null
null
pub struct DieselArray<T>(Vec<Option<T>>);
crates/diesel_models/src/lib.rs
diesel_models
struct_definition
11
rust
DieselArray
null
null
null
null
null
null
null
null
null
null
null
pub struct GetRoleRequest { pub role_id: String, }
crates/api_models/src/user_role/role.rs
api_models
struct_definition
14
rust
GetRoleRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct FiservemeaVoidRequest { request_type: FiservemeaRequestType, }
crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
FiservemeaVoidRequest
null
null
null
null
null
null
null
null
null
null
null
impl KafkaProducer { pub fn set_tenancy(&mut self, tenant_config: &dyn TenantConfig) { self.ckh_database_name = Some(tenant_config.get_clickhouse_database().to_string()); } pub async fn create(conf: &KafkaSettings) -> MQResult<Self> { Ok(Self { producer: Arc::new(RdKafkaProducer...
crates/router/src/services/kafka.rs
router
impl_block
2,963
rust
null
KafkaProducer
null
impl KafkaProducer
null
null
null
null
null
null
null
null
pub fn mk_card_value2( card_security_code: Option<String>, card_fingerprint: Option<String>, external_id: Option<String>, customer_id: Option<id_type::CustomerId>, payment_method_id: Option<String>, ) -> CustomResult<String, errors::VaultError> { let value2 = api::TokenizedCardValue2 { c...
crates/router/src/core/payment_methods/transformers.rs
router
function_signature
136
rust
null
null
null
null
mk_card_value2
null
null
null
null
null
null
null
pub async fn delete_all_user_scoped_dashboard_metadata_by_merchant_id( conn: &PgPooledConn, user_id: String, merchant_id: id_type::MerchantId, ) -> StorageResult<bool> { generics::generic_delete::<<Self as HasTable>::Table, _>( conn, dsl::user_id ...
crates/diesel_models/src/query/dashboard_metadata.rs
diesel_models
function_signature
101
rust
null
null
null
null
delete_all_user_scoped_dashboard_metadata_by_merchant_id
null
null
null
null
null
null
null