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 Analytics { #[cfg(feature = "v2")] pub fn server(state: AppState) -> Scope { web::scope("/analytics").app_data(web::Data::new(state)) } #[cfg(feature = "v1")] pub fn server(state: AppState) -> Scope { web::scope("/analytics") .app_data...
crates/router/src/analytics.rs
router
impl_block
2,965
rust
null
Analytics
null
impl Analytics
null
null
null
null
null
null
null
null
pub async fn get_merchant_bank_data_for_open_banking_connectors( merchant_connector_account: &helpers::MerchantConnectorAccountType, merchant_context: &domain::MerchantContext, connector: &api::ConnectorData, state: &SessionState, ) -> RouterResult<Option<router_types::MerchantRecipientData>> { let ...
crates/router/src/core/payments.rs
router
function_signature
564
rust
null
null
null
null
get_merchant_bank_data_for_open_banking_connectors
null
null
null
null
null
null
null
pub fn update_algorithm_id( &mut self, new_id: common_utils::id_type::RoutingId, enabled_feature: DynamicRoutingFeatures, dynamic_routing_type: DynamicRoutingType, ) { match dynamic_routing_type { DynamicRoutingType::SuccessRateBasedRouting => { se...
crates/api_models/src/routing.rs
api_models
function_signature
196
rust
null
null
null
null
update_algorithm_id
null
null
null
null
null
null
null
pub struct TokenizedCardValue2 { pub card_security_code: Option<String>, pub card_fingerprint: Option<String>, pub external_id: Option<String>, pub customer_id: Option<id_type::CustomerId>, pub payment_method_id: Option<String>, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
56
rust
TokenizedCardValue2
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Paybox {}
crates/hyperswitch_connectors/src/connectors/paybox.rs
hyperswitch_connectors
impl_block
11
rust
null
Paybox
api::MandateSetup for
impl api::MandateSetup for for Paybox
null
null
null
null
null
null
null
null
pub fn get_authentication_connector_config( connector: AuthenticationConnectors, ) -> Result<Option<ConnectorTomlConfig>, String> { let connector_data = Self::new()?; match connector { AuthenticationConnectors::Threedsecureio => Ok(connector_data.threedsecureio), Auth...
crates/connector_configs/src/connector.rs
connector_configs
function_signature
183
rust
null
null
null
null
get_authentication_connector_config
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GetGlobalSearchResults; Box::pin(api::server_wrap( flow, state.clone(), &req, json_payload.into_inner(), |state, auth: UserFromToken, req, _| async move { let role_id = auth.role_id; ...
crates/router/src/analytics.rs
router
impl_block
1,089
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl<T> prost::Message for StrongSecret<T, crate::WithType> where T: prost::Message + Default + Clone + ZeroizableSecret, { fn encode_raw(&self, buf: &mut impl bytes::BufMut) { self.peek().encode_raw(buf); } fn merge_field( &mut self, tag: u32, wire_type: prost::encoding...
crates/masking/src/strong_secret.rs
masking
impl_block
205
rust
null
StrongSecret
prost::Message for
impl prost::Message for for StrongSecret
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Ebanx {}
crates/hyperswitch_connectors/src/connectors/ebanx.rs
hyperswitch_connectors
impl_block
10
rust
null
Ebanx
api::PaymentCapture for
impl api::PaymentCapture for for Ebanx
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/routing/routing--rule-evaluate.mdx # Type: Doc File --- openapi: post /routing/rule/evaluate ---
api-reference/v1/routing/routing--rule-evaluate.mdx
null
doc_file
36
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AirwallexPayLaterPaymentOptions { auto_capture: bool, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
AirwallexPayLaterPaymentOptions
null
null
null
null
null
null
null
null
null
null
null
pub async fn modify_trackers( state: &routes::SessionState, connector: &api::ConnectorData, merchant_context: &domain::MerchantContext, payout_data: &mut PayoutData, ) -> RouterResult<()> { let new_attempt_count = payout_data.payouts.attempt_count + 1; let db = &*state.store; // update pay...
crates/router/src/core/payouts/retry.rs
router
function_signature
629
rust
null
null
null
null
modify_trackers
null
null
null
null
null
null
null
impl api::RefundSync for Volt {}
crates/hyperswitch_connectors/src/connectors/volt.rs
hyperswitch_connectors
impl_block
9
rust
null
Volt
api::RefundSync for
impl api::RefundSync for for Volt
null
null
null
null
null
null
null
null
pub struct TransactionDetails { pub amount: FloatMajorUnit, pub currency: enums::Currency, pub date: Option<PrimitiveDateTime>, pub pan_source: Option<String>, pub protection_type: Option<String>, pub entry_mode: Option<String>, pub transaction_type: Option<String>, pub otp_value: Option...
crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
hyperswitch_connectors
struct_definition
92
rust
TransactionDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct DatatransAuthType { pub(super) merchant_id: Secret<String>, pub(super) passcode: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
DatatransAuthType
null
null
null
null
null
null
null
null
null
null
null
pub struct CashtocodeErrors { pub message: String, pub path: String, #[serde(rename = "type")] pub event_type: String, }
crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
CashtocodeErrors
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_all_merchant_accounts( conn: &PgPooledConn, merchant_account: MerchantAccountUpdateInternal, ) -> StorageResult<Vec<Self>> { generics::generic_update_with_results::<<Self as HasTable>::Table, _, _, _>( conn, dsl::id.ne_all(vec![""]), me...
crates/diesel_models/src/query/merchant_account.rs
diesel_models
function_signature
82
rust
null
null
null
null
update_all_merchant_accounts
null
null
null
null
null
null
null
pub struct PaymentFields { pub number: cards::CardNumber, pub expiration_month: Secret<String>, pub expiration_year: Secret<String>, pub name: Secret<String>, pub cvv: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs
hyperswitch_connectors
struct_definition
46
rust
PaymentFields
null
null
null
null
null
null
null
null
null
null
null
pub async fn receive_network_token_requestor_incoming_webhook<W: types::OutgoingWebhookType>( state: web::Data<AppState>, req: HttpRequest, body: web::Bytes, _path: web::Path<String>, ) -> impl Responder { let flow = Flow::IncomingNetworkTokenWebhookReceive; Box::pin(api::server_wrap( f...
crates/router/src/routes/webhooks.rs
router
function_signature
163
rust
null
null
null
null
receive_network_token_requestor_incoming_webhook
null
null
null
null
null
null
null
pub fn get_payout_webhook_statuses(&self) -> Cow<'_, [common_enums::PayoutStatus]> { self.webhook_details .as_ref() .and_then(|details| details.payout_statuses_enabled.as_ref()) .filter(|statuses_vec| !statuses_vec.is_empty()) .map(|statuses_vec| Cow::Borrowed(sta...
crates/hyperswitch_domain_models/src/business_profile.rs
hyperswitch_domain_models
function_signature
113
rust
null
null
null
null
get_payout_webhook_statuses
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/user.rs Public functions: 7 use common_utils::pii; use diesel::{associations::HasTable, ExpressionMethods}; pub mod sample_data; pub mod theme; use crate::{ query::generics, schema::users::dsl as users_dsl, user::*, PgPooledConn, StorageResult, }; impl UserNew { pub asy...
crates/diesel_models/src/query/user.rs
diesel_models
full_file
644
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CrmPayload { /// The legal name of the business. pub legal_business_name: Option<String>, /// A label or tag associated with the business. pub business_label: Option<String>, /// The location of the business, represented as a country code (ISO Alpha-2 format). pub business_location:...
crates/hyperswitch_interfaces/src/crm.rs
hyperswitch_interfaces
struct_definition
305
rust
CrmPayload
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundResponse { id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/blackhawknetwork/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Katapult {}
crates/hyperswitch_connectors/src/connectors/katapult.rs
hyperswitch_connectors
impl_block
9
rust
null
Katapult
api::PaymentSession for
impl api::PaymentSession for for Katapult
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/encryption_interface.rs //! Encryption related interface and error types #![warn(missing_docs, missing_debug_implementations)] use common_utils::errors::CustomResult; /// Trait defining the interface for encryption management #[async_trait::async_trait] pub trait EncryptionMa...
crates/hyperswitch_interfaces/src/encryption_interface.rs
hyperswitch_interfaces
full_file
225
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Paybox {}
crates/hyperswitch_connectors/src/connectors/paybox.rs
hyperswitch_connectors
impl_block
9
rust
null
Paybox
api::PaymentToken for
impl api::PaymentToken for for Paybox
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { let mut route = web::scope("/chat").app_data(web::Data::new(state.clone())); if state.conf.chat.enabled { route = route.service( web::scope("/ai").service( web::resource("/data") .route(web:...
crates/router/src/routes/app.rs
router
function_signature
91
rust
null
null
null
null
server
null
null
null
null
null
null
null
impl Responder { use hyperswitch_domain_models::payments::PaymentConfirmData; let flow = Flow::ProxyConfirmIntent; // Extract the payment ID from the path let global_payment_id = path.into_inner(); tracing::Span::current().record("payment_id", global_payment_id.get_string_repr()); // Parse an...
crates/router/src/routes/payments.rs
router
impl_block
490
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
/// Panics if `json_payload` array does not contain one `GetRefundMetricRequest` element. pub async fn get_merchant_refund_metrics( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<[GetRefundMetricRequest; 1]>, ) -> impl Responder { #[allow(clippy:...
crates/router/src/analytics.rs
router
function_signature
358
rust
null
null
null
null
get_merchant_refund_metrics
null
null
null
null
null
null
null
pub struct SiftRefundRequest { pub amount: StringMinorUnit, }
crates/hyperswitch_connectors/src/connectors/sift/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
SiftRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct AmountComponents { subtotal: FloatMajorUnit, }
crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
AmountComponents
null
null
null
null
null
null
null
null
null
null
null
pub struct EmailThemeConfig { /// The entity name to be used in the email pub entity_name: String, /// The URL of the entity logo to be used in the email pub entity_logo_url: String, /// The primary color to be used in the email pub primary_color: String, /// The foreground color to be us...
crates/common_utils/src/types/user/theme.rs
common_utils
struct_definition
106
rust
EmailThemeConfig
null
null
null
null
null
null
null
null
null
null
null
} else if item.router_data.is_three_ds() && matches!(item.router_data.payment_method, PaymentMethod::Card) { Ok(Self { changed_amount: item.amount, kind: DeutschebankTransactionKind::Creditcard3ds20, }) } else { Err(...
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs#chunk1
hyperswitch_connectors
chunk
779
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Payments { pub fn server(state: AppState) -> Scope { let mut route = web::scope("/payments").app_data(web::Data::new(state)); #[cfg(feature = "olap")] { route = route .service( web::resource("/list") .route(web::ge...
crates/router/src/routes/app.rs
router
impl_block
1,217
rust
null
Payments
null
impl Payments
null
null
null
null
null
null
null
null
pub fn generate_authorization_signature( &self, auth: authipay::AuthipayAuthType, request_id: &str, payload: &str, timestamp: i128, ) -> CustomResult<String, errors::ConnectorError> { let authipay::AuthipayAuthType { api_key, api_secret, ...
crates/hyperswitch_connectors/src/connectors/authipay.rs
hyperswitch_connectors
function_signature
175
rust
null
null
null
null
generate_authorization_signature
null
null
null
null
null
null
null
return_url: None, enable_payment_response_hash: None, payment_response_hash_key: None, redirect_to_merchant_with_http_post: None, webhook_details: None, metadata: None, is_recon_enabled: None, ...
crates/hyperswitch_domain_models/src/business_profile.rs#chunk2
hyperswitch_domain_models
chunk
4,825
null
null
null
null
null
null
null
null
null
null
null
null
null
error @ Err(_) => { logger::error!(?error); Err(errors::RevenueRecoveryError::BillingConnectorPaymentsSyncFailed) .attach_printable("Failed while fetching billing connector payment details") } }?; Ok(Self(additional_recovery_det...
crates/router/src/core/webhooks/recovery_incoming.rs#chunk1
router
chunk
4,378
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn parse_paybox_response( query_bytes: Bytes, is_three_ds: bool, ) -> CustomResult<PayboxResponse, errors::ConnectorError> { let (cow, _, _) = encoding_rs::ISO_8859_15.decode(&query_bytes); let response_str = cow.as_ref().trim(); if utils::is_html_response(response_str) && is_three_ds { ...
crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs
hyperswitch_connectors
function_signature
173
rust
null
null
null
null
parse_paybox_response
null
null
null
null
null
null
null
impl api::Refund for Klarna {}
crates/hyperswitch_connectors/src/connectors/klarna.rs
hyperswitch_connectors
impl_block
9
rust
null
Klarna
api::Refund for
impl api::Refund for for Klarna
null
null
null
null
null
null
null
null
/// Derives the boilerplate code required for using an enum with `diesel` and a PostgreSQL database. /// The enum is required to implement (or derive) the [`ToString`][ToString] and the /// [`FromStr`][FromStr] traits for this derive macro to be used. /// /// Works in tandem with the [`diesel_enum`][diesel_enum] attrib...
crates/router_derive/src/lib.rs
router_derive
macro
313
rust
null
null
null
null
null
null
null
null
proc_derive
null
null
null
impl ClientSecretInterface for KafkaStore { #[cfg(feature = "v2")] async fn create_client_secret( &self, ek: ClientSecretTypeNew, validity: i64, ) -> CustomResult<ClientSecretType, errors::StorageError> { self.diesel_store.create_client_secret(ek, validity).await } #...
crates/router/src/db/kafka_store.rs
router
impl_block
186
rust
null
KafkaStore
ClientSecretInterface for
impl ClientSecretInterface for for KafkaStore
null
null
null
null
null
null
null
null
pub async fn attach_evidence( state: SessionState, merchant_context: domain::MerchantContext, profile_id: Option<common_utils::id_type::ProfileId>, attach_evidence_request: api::AttachEvidenceRequest, ) -> RouterResponse<files_api_models::CreateFileResponse> { let db = &state.store; let dispute_...
crates/router/src/core/disputes.rs
router
function_signature
649
rust
null
null
null
null
attach_evidence
null
null
null
null
null
null
null
File: crates/router/tests/connectors/stripebilling.rs use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct Stripebil...
crates/router/tests/connectors/stripebilling.rs
router
full_file
2,926
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/common_utils/src/payout_method_utils.rs Public structs: 7 //! This module has common utilities for payout method data in HyperSwitch use common_enums; use diesel::{sql_types::Jsonb, AsExpression, FromSqlRow}; use masking::Secret; use serde::{Deserialize, Serialize}; use utoipa::ToSchema; use crate::new...
crates/common_utils/src/payout_method_utils.rs
common_utils
full_file
2,122
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct SplitSdkType { /// Split-SDK Variant: Implementation characteristics of the Split-SDK client /// - Length: 2 characters /// - Values accepted: /// - 01 = Native Client /// - 02 = Browser /// - 03 = Shell /// - 04–79 = Reserved for EMVCo future use (va...
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs
hyperswitch_connectors
struct_definition
182
rust
SplitSdkType
null
null
null
null
null
null
null
null
null
null
null
pub struct CurrencyAuthKey { pub auth_key_map: HashMap<String, toml::Value>, }
crates/test_utils/src/connector_auth.rs
test_utils
struct_definition
21
rust
CurrencyAuthKey
null
null
null
null
null
null
null
null
null
null
null
pub async fn call_multiple_connectors_service<F, Op, Req, D>( state: &SessionState, merchant_context: &domain::MerchantContext, connectors: api::SessionConnectorDatas, _operation: &Op, mut payment_data: D, customer: &Option<domain::Customer>, _session_surcharge_details: Option<api::SessionSu...
crates/router/src/core/payments.rs
router
function_signature
761
rust
null
null
null
null
call_multiple_connectors_service
null
null
null
null
null
null
null
pub struct NuveiPaymentFlowRequest { pub time_stamp: String, pub merchant_id: Secret<String>, pub merchant_site_id: Secret<String>, pub client_request_id: String, pub amount: StringMajorUnit, pub currency: enums::Currency, pub related_transaction_id: Option<String>, pub checksum: Secret<...
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
74
rust
NuveiPaymentFlowRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct BillingAccountReference(pub HashMap<id_type::MerchantConnectorAccountId, String>);
crates/diesel_models/src/merchant_connector_account.rs
diesel_models
struct_definition
18
rust
BillingAccountReference
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/routes/dummy_connector/types.rs Public functions: 4 Public structs: 14 use api_models::enums::Currency; use common_utils::{errors::CustomResult, generate_id_with_default_len, pii}; use error_stack::report; use masking::Secret; use router_env::types::FlowMetric; use strum::Display; use time::P...
crates/router/src/routes/dummy_connector/types.rs
router
full_file
3,094
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/injector/src/injector.rs Public functions: 11 Public structs: 3 pub mod core { use std::collections::HashMap; use async_trait::async_trait; use common_utils::{ errors::CustomResult, request::{Method, RequestBuilder, RequestContent}, }; use error_stack::ResultExt; ...
crates/injector/src/injector.rs
injector
full_file
6,900
null
null
null
null
null
null
null
null
null
null
null
null
null
/// lowers the provided key & value to the respective DirValue /// /// For example /// ```notrust /// card_bin = "123456" /// ```notrust /// /// This serves for the purpose were we have the DirKey as Card_bin and value as an arbitrary string /// So particularly it lowers an arbitrary value to a predefined key. macro_ru...
crates/euclid/src/frontend/ast/lowering.rs
euclid
macro
197
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
File: crates/analytics/src/refunds/distribution/sessionized_distribution/refund_reason.rs use api_models::analytics::{ refunds::{RefundDimensions, RefundFilters, RefundMetricsBucketIdentifier}, Granularity, RefundDistributionBody, TimeRange, }; use common_utils::errors::ReportSwitchExt; use error_stack::Result...
crates/analytics/src/refunds/distribution/sessionized_distribution/refund_reason.rs
analytics
full_file
1,148
null
null
null
null
null
null
null
null
null
null
null
null
null
error_message: None, is_eligible: payout_response_data.payout_eligible, unified_code: None, unified_message: None, }; payout_data.payout_attempt = db .update_payout_attempt( &payout_data.payout_at...
crates/router/src/core/payouts.rs#chunk2
router
chunk
8,185
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Fiservemea { amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/fiservemea.rs
hyperswitch_connectors
struct_definition
30
rust
Fiservemea
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/trustpayments.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl ApplePayPaymentData { /// Get the encrypted Apple Pay payment data if it exists pub fn get_encrypted_apple_pay_payment_data_optional(&self) -> Option<&String> { match self { Self::Encrypted(encrypted_data) => Some(encrypted_data), Self::Decrypted(_) => None, } } ...
crates/common_types/src/payments.rs
common_types
impl_block
329
rust
null
ApplePayPaymentData
null
impl ApplePayPaymentData
null
null
null
null
null
null
null
null
pub struct RSyncResponseData { search: RSyncSearchData, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
RSyncResponseData
null
null
null
null
null
null
null
null
null
null
null
pub async fn refresh_connector_auth( state: &SessionState, connector: &api_types::ConnectorData, _merchant_context: &domain::MerchantContext, router_data: &types::RouterData< api_types::AccessTokenAuth, types::AccessTokenRequestData, types::AccessToken, >, ) -> RouterResult<R...
crates/router/src/core/payouts/access_token.rs
router
function_signature
443
rust
null
null
null
null
refresh_connector_auth
null
null
null
null
null
null
null
pub async fn filter_resources<D, R, M>( &self, state: &KeyManagerState, key_store: &MerchantKeyStore, storage_scheme: MerchantStorageScheme, filter_resource_db_fut: R, filter_fn: impl Fn(&M) -> bool, FilterResourceParams { key, pattern, ...
crates/storage_impl/src/kv_router_store.rs
storage_impl
function_signature
77
rust
null
null
null
null
filter_resources
null
null
null
null
null
null
null
File: crates/router/tests/connectors/datatrans.rs use masking::Secret; use router::types::{self, api, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct DatatransTest; impl ConnectorActions for DatatransTest {} impl utils::Connector for ...
crates/router/tests/connectors/datatrans.rs
router
full_file
2,931
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Breadpay {}
crates/hyperswitch_connectors/src/connectors/breadpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Breadpay
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Breadpay
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Juspaythreedsserver { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&JUSPAYTHREEDSSERVER_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { None } fn get_supported_webhook...
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
hyperswitch_connectors
impl_block
103
rust
null
Juspaythreedsserver
ConnectorSpecifications for
impl ConnectorSpecifications for for Juspaythreedsserver
null
null
null
null
null
null
null
null
impl PaymentSession for Threedsecureio {}
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
hyperswitch_connectors
impl_block
9
rust
null
Threedsecureio
PaymentSession for
impl PaymentSession for for Threedsecureio
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/sift/transformers.rs Public structs: 8 use common_enums::enums; use common_utils::types::StringMinorUnit; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router_flow_types::refunds::{E...
crates/hyperswitch_connectors/src/connectors/sift/transformers.rs
hyperswitch_connectors
full_file
1,651
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Paysafe {}
crates/hyperswitch_connectors/src/connectors/paysafe.rs
hyperswitch_connectors
impl_block
10
rust
null
Paysafe
api::RefundExecute for
impl api::RefundExecute for for Paysafe
null
null
null
null
null
null
null
null
File: crates/common_utils/src/types/user.rs /// User related types pub mod core; /// Theme related types pub mod theme; pub use core::*; pub use theme::*;
crates/common_utils/src/types/user.rs
common_utils
full_file
36
null
null
null
null
null
null
null
null
null
null
null
null
null
Web Documentation: Payment Orchestration | Hyperswitch # Type: Web Doc Hyperswitch’s Payment Orchestration platform is designed to simplify the complexities of managing multiple PSPs and various payment methods, ensuring optimal performance at every stage of the payment lifecycle. Whether you're: Accepting payments fr...
https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration
null
web_doc_file
205
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration
Payment Orchestration | Hyperswitch
null
impl RecoveryPaymentTuple { pub fn new( payment_intent: &revenue_recovery::RecoveryPaymentIntent, payment_attempt: &revenue_recovery::RecoveryPaymentAttempt, ) -> Self { Self(payment_intent.clone(), payment_attempt.clone()) } pub async fn publish_revenue_recovery_event_to_kafka(...
crates/router/src/core/webhooks/recovery_incoming.rs
router
impl_block
839
rust
null
RecoveryPaymentTuple
null
impl RecoveryPaymentTuple
null
null
null
null
null
null
null
null
pub struct ResponseInsights { category_code: Option<String>, category: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
ResponseInsights
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Phonepe { fn validate_mandate_payment( &self, _pm_type: Option<enums::PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { match pm_data { PaymentMethodData::Card(_) => Err(errors::ConnectorError:...
crates/hyperswitch_connectors/src/connectors/phonepe.rs
hyperswitch_connectors
impl_block
179
rust
null
Phonepe
ConnectorValidation for
impl ConnectorValidation for for Phonepe
null
null
null
null
null
null
null
null
impl Serialize for FiservCheckoutChargesRequest { fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer, { match self { Self::Checkout(inner) => inner.serialize(serializer), Self::Charges(inner) => inner.serialize(serializer), } ...
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
impl_block
74
rust
null
FiservCheckoutChargesRequest
Serialize for
impl Serialize for for FiservCheckoutChargesRequest
null
null
null
null
null
null
null
null
impl ConnectorCommon for Razorpay { fn id(&self) -> &'static str { "razorpay" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: ...
crates/hyperswitch_connectors/src/connectors/razorpay.rs
hyperswitch_connectors
impl_block
743
rust
null
Razorpay
ConnectorCommon for
impl ConnectorCommon for for Razorpay
null
null
null
null
null
null
null
null
pub struct WiseRecipientCreateResponse { id: i64, business: Option<i64>, profile: Option<i64>, account_holder_name: Secret<String>, currency: String, country: String, #[serde(rename = "type")] request_type: String, details: Option<WiseBankDetails>, }
crates/hyperswitch_connectors/src/connectors/wise/transformers.rs
hyperswitch_connectors
struct_definition
72
rust
WiseRecipientCreateResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/compatibility/wrap.rs Public functions: 1 use std::{future::Future, sync::Arc, time::Instant}; use actix_web::{HttpRequest, HttpResponse, Responder}; use common_utils::errors::{CustomResult, ErrorSwitch}; use router_env::{instrument, tracing, Tag}; use serde::Serialize; use crate::{ core...
crates/router/src/compatibility/wrap.rs
router
full_file
1,483
null
null
null
null
null
null
null
null
null
null
null
null
null
Web Documentation: Web | Hyperswitch # Type: Web Doc Global Checkout Experience Hyperswitch Unified Checkout is an inclusive, consistent and blended payment experience optimized for the best conversion rates. Inclusive A variety of global payment methods including cards, buy now pay later and digital wallets are suppo...
https://docs.hyperswitch.io/explore-hyperswitch/merchant-controls/integration-guide/web
null
web_doc_file
469
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/explore-hyperswitch/merchant-controls/integration-guide/web
Web | Hyperswitch
null
OpenAPI Block Path: components.schemas.Currency { "type": "string", "description": "The three-letter ISO 4217 currency code (e.g., \"USD\", \"EUR\") for the payment amount. This field is mandatory for creating a payment.", "enum": [ "AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
846
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "Currency" ]
null
null
null
null
pub fn check_refund_integrity<T, Request>( request: &Request, refund_response_data: &Result<types::RefundsResponseData, ErrorResponse>, ) -> Result<(), common_utils::errors::IntegrityCheckError> where T: FlowIntegrity, Request: GetIntegrityObject<T> + CheckIntegrity<Request, T>, { let connector_refu...
crates/router/src/core/refunds.rs
router
function_signature
126
rust
null
null
null
null
check_refund_integrity
null
null
null
null
null
null
null
File: crates/test_utils/tests/connectors/authorizedotnet_wh_ui.rs use rand::Rng; use thirtyfour::{prelude::*, WebDriver}; use crate::{selenium::*, tester}; struct AuthorizedotnetSeleniumTest; impl SeleniumTest for AuthorizedotnetSeleniumTest { fn get_connector_name(&self) -> String { "authorizedotnet".t...
crates/test_utils/tests/connectors/authorizedotnet_wh_ui.rs
test_utils
full_file
275
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ProcessTrackerDeprecated { pub fn server(state: AppState) -> Scope { use super::process_tracker::revenue_recovery; // TODO: Deprecated. Remove this in favour of /v2/process-trackers web::scope("/v2/process_tracker/revenue_recovery_workflow") .app_data(web::Data::new(state.cl...
crates/router/src/routes/app.rs
router
impl_block
110
rust
null
ProcessTrackerDeprecated
null
impl ProcessTrackerDeprecated
null
null
null
null
null
null
null
null
pub struct AcquirerData { /// Acquiring institution identification code as assigned by the DS receiving the AReq message. /// /// This field is limited to 11 characters. This field can be omitted if it there is a MerchantAcquirer already configured for 3DS Server, /// referenced by the acquirerMerchantI...
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs
hyperswitch_connectors
struct_definition
522
rust
AcquirerData
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantAccountMetadata { pub compatible_connector: Option<api_enums::Connector>, #[serde(flatten)] pub data: Option<pii::SecretSerdeValue>, }
crates/api_models/src/admin.rs
api_models
struct_definition
40
rust
MerchantAccountMetadata
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Katapult {}
crates/hyperswitch_connectors/src/connectors/katapult.rs
hyperswitch_connectors
impl_block
9
rust
null
Katapult
api::PaymentSync for
impl api::PaymentSync for for Katapult
null
null
null
null
null
null
null
null
Self::Romania => CountryAlpha3::ROU, Self::RussianFederation => CountryAlpha3::RUS, Self::Rwanda => CountryAlpha3::RWA, Self::SaintBarthelemy => CountryAlpha3::BLM, Self::SaintHelenaAscensionAndTristandaCunha => CountryAlpha3::SHN, Self::SaintKitts...
crates/common_enums/src/transformers.rs#chunk2
common_enums
chunk
8,184
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Order { pub amount_of_money: AmountOfMoney, pub customer: Customer, pub references: References, }
crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
Order
null
null
null
null
null
null
null
null
null
null
null
pub async fn check_hard_decline( state: &SessionState, payment_attempt: &payment_attempt::PaymentAttempt, ) -> Result<bool, error_stack::Report<storage_impl::errors::RecoveryError>> { let error_message = payment_attempt .error .as_ref() .map(|details| details.message.clone()); l...
crates/router/src/workflows/revenue_recovery.rs
router
function_signature
248
rust
null
null
null
null
check_hard_decline
null
null
null
null
null
null
null
impl ConnectorSpecifications for Itaubank { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&ITAUBANK_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*ITAUBANK_SUPPORTED_PAYMENT_METHODS) } fn get_s...
crates/hyperswitch_connectors/src/connectors/itaubank.rs
hyperswitch_connectors
impl_block
109
rust
null
Itaubank
ConnectorSpecifications for
impl ConnectorSpecifications for for Itaubank
null
null
null
null
null
null
null
null
pub fn get_decision_engine_configs( &self, ) -> Result<open_router::DecisionEngineEliminationData, error_stack::Report<ValidationError>> { self.decision_engine_configs .clone() .ok_or(error_stack::Report::new( ValidationError::MissingRequiredField { ...
crates/api_models/src/routing.rs
api_models
function_signature
81
rust
null
null
null
null
get_decision_engine_configs
null
null
null
null
null
null
null
pub async fn do_status_check_for_network_token( state: &routes::SessionState, payment_method_info: &domain::PaymentMethod, ) -> CustomResult<(Option<Secret<String>>, Option<Secret<String>>), errors::ApiErrorResponse> { let network_token_data_decrypted = payment_method_info .network_token_payment_met...
crates/router/src/core/payment_methods/network_tokenization.rs
router
function_signature
545
rust
null
null
null
null
do_status_check_for_network_token
null
null
null
null
null
null
null
impl IncomingWebhookEvent { /// Convert UCS event type integer to IncomingWebhookEvent /// Maps from proto WebhookEventType enum values to IncomingWebhookEvent variants pub fn from_ucs_event_type(event_type: i32) -> Self { match event_type { 0 => Self::EventNotSupported, // P...
crates/api_models/src/webhooks.rs
api_models
impl_block
594
rust
null
IncomingWebhookEvent
null
impl IncomingWebhookEvent
null
null
null
null
null
null
null
null
pub struct NexinetsBankRedirects { bic: Option<NexinetsBIC>, }
crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
NexinetsBankRedirects
null
null
null
null
null
null
null
null
null
null
null
pub fn get_dispute_metrics_info() -> Vec<NameDescription> { DisputeMetrics::iter().map(Into::into).collect() }
crates/analytics/src/utils.rs
analytics
function_signature
31
rust
null
null
null
null
get_dispute_metrics_info
null
null
null
null
null
null
null
pub async fn external_vault_proxy_for_payments_operation_core<F, Req, Op, FData, D>( state: &SessionState, req_state: ReqState, merchant_context: domain::MerchantContext, profile: domain::Profile, operation: Op, req: Req, get_tracker_response: operations::GetTrackerResponse<D>, call_conn...
crates/router/src/core/payments.rs
router
function_signature
1,032
rust
null
null
null
null
external_vault_proxy_for_payments_operation_core
null
null
null
null
null
null
null
pub struct Hypersense;
crates/router/src/routes/app.rs
router
struct_definition
6
rust
Hypersense
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PayoutMethodData { "oneOf": [ { "type": "object", "required": [ "card" ], "properties": { "card": { "$ref": "#/components/schemas/CardPayout" } } }, { "type": "object", "required": [ ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
184
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PayoutMethodData" ]
null
null
null
null
pub struct PaymentMethod { pub apm: Option<Apm>, pub card: Option<Card>, pub id: Option<Secret<String>>, pub message: Option<String>, pub result: Option<String>, }
crates/hyperswitch_connectors/src/connectors/globalpay/response.rs
hyperswitch_connectors
struct_definition
45
rust
PaymentMethod
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Blackhawknetwork {}
crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs
hyperswitch_connectors
impl_block
10
rust
null
Blackhawknetwork
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Blackhawknetwork
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/multisafepay.rs
hyperswitch_connectors
function_signature
27
rust
null
null
null
null
new
null
null
null
null
null
null
null
// Algorithm was in disabled state let Some(algo_type_algorithm_id) = algo_type .clone() .get_algorithm_id_with_timestamp() .algorithm_id else { return default_specific_dynamic_routing_setup( state, key_store, business_profile, ...
crates/router/src/core/routing/helpers.rs#chunk2
router
chunk
5,049
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/stripe/transformers/connect.rs Public structs: 14 use api_models; use common_enums::{enums, Currency}; use common_utils::{ext_traits::OptionExt as _, pii::Email}; use error_stack::ResultExt; use hyperswitch_domain_models::types::{PayoutsResponseData, PayoutsRouterDat...
crates/hyperswitch_connectors/src/connectors/stripe/transformers/connect.rs
hyperswitch_connectors
full_file
3,946
null
null
null
null
null
null
null
null
null
null
null
null
null