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 std::ops::DerefMut for PaymentsMandateReference { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } }
crates/hyperswitch_domain_models/src/mandates.rs
hyperswitch_domain_models
impl_block
41
rust
null
PaymentsMandateReference
std::ops::DerefMut for
impl std::ops::DerefMut for for PaymentsMandateReference
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.TouchNGoRedirection { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
23
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "TouchNGoRedirection" ]
null
null
null
null
pub fn is_four_decimal_currency(self) -> bool { match self { Self::CLF => true, Self::AED | Self::AFN | Self::ALL | Self::AMD | Self::AOA | Self::ANG | Self::ARS | Self::AUD | Self::AWG ...
crates/common_enums/src/enums.rs
common_enums
function_signature
1,121
rust
null
null
null
null
is_four_decimal_currency
null
null
null
null
null
null
null
impl api::RefundSync for Barclaycard {}
crates/hyperswitch_connectors/src/connectors/barclaycard.rs
hyperswitch_connectors
impl_block
11
rust
null
Barclaycard
api::RefundSync for
impl api::RefundSync for for Barclaycard
null
null
null
null
null
null
null
null
impl api::Payment for Checkout {}
crates/hyperswitch_connectors/src/connectors/checkout.rs
hyperswitch_connectors
impl_block
7
rust
null
Checkout
api::Payment for
impl api::Payment for for Checkout
null
null
null
null
null
null
null
null
pub struct RedirectUrl { pub return_url: Option<String>, pub url: Option<String>, }
crates/router/src/compatibility/stripe/payment_intents/types.rs
router
struct_definition
21
rust
RedirectUrl
null
null
null
null
null
null
null
null
null
null
null
pub struct GetSsoAuthUrlRequest { pub id: String, }
crates/api_models/src/user.rs
api_models
struct_definition
16
rust
GetSsoAuthUrlRequest
null
null
null
null
null
null
null
null
null
null
null
let business_profile_new = admin::create_profile_from_merchant_account(state, merchant_account, request, key_store) .await?; let profile_name = business_profile_new.profile_name.clone(); state .store .insert_business_profile(&state.into(), key_store, business_profile_ne...
crates/router/src/core/admin.rs#chunk3
router
chunk
8,192
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Get string representation of the id pub fn get_string_repr(&self) -> &str { self.0.get_string_repr() }
crates/common_utils/src/id_type/global_id/refunds.rs
common_utils
function_signature
31
rust
null
null
null
null
get_string_repr
null
null
null
null
null
null
null
pub struct SetupMandate;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
7
rust
SetupMandate
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_auth_events_filter_for_dimension<T>( dimension: AuthEventDimensions, auth: &AuthInfo, time_range: &TimeRange, pool: &T, ) -> FiltersResult<Vec<AuthEventFilterRow>> where T: AnalyticsDataSource + AuthEventFilterAnalytics, PrimitiveDateTime: ToSql<T>, AnalyticsCollection: ToSq...
crates/analytics/src/auth_events/filters.rs
analytics
function_signature
243
rust
null
null
null
null
get_auth_events_filter_for_dimension
null
null
null
null
null
null
null
impl api::PaymentVoid for Klarna {}
crates/hyperswitch_connectors/src/connectors/klarna.rs
hyperswitch_connectors
impl_block
9
rust
null
Klarna
api::PaymentVoid for
impl api::PaymentVoid for for Klarna
null
null
null
null
null
null
null
null
Documentation: config/deployments/README.md # Type: Doc File # Configs for deployments ## Introduction This directory contains the configs for deployments of Hyperswitch in different hosted environments. Hyperswitch has **3** components namely, - router - drainer - scheduler - consumer - producer We maintain ...
config/deployments/README.md
null
doc_file
1,616
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct JpmorganCancelResponse { transaction_id: String, request_id: String, response_status: JpmorganResponseStatus, response_code: String, response_message: String, payment_method_type: JpmorganPaymentMethodTypeCancelResponse, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
56
rust
JpmorganCancelResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_sankey_data( clickhouse_client: &ClickhouseClient, auth: &AuthInfo, time_range: &TimeRange, ) -> MetricsResult<Vec<SankeyRow>> { let mut query_builder = QueryBuilder::<ClickhouseClient>::new(AnalyticsCollection::Authentications); query_builder .add_select_column(Agg...
crates/analytics/src/auth_events/sankey.rs
analytics
function_signature
378
rust
null
null
null
null
get_sankey_data
null
null
null
null
null
null
null
impl Paystack { pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/paystack.rs
hyperswitch_connectors
impl_block
33
rust
null
Paystack
null
impl Paystack
null
null
null
null
null
null
null
null
pub struct CalGlobalSuccessRateEventRequest { pub entity_id: String, pub entity_params: String, pub entity_labels: Vec<String>, pub global_labels: Vec<String>, pub config: Option<CalGlobalSuccessRateConfigEventRequest>, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
54
rust
CalGlobalSuccessRateEventRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct ZenCustomerDetails { email: pii::Email, ip: Secret<String, pii::IpAddress>, }
crates/hyperswitch_connectors/src/connectors/zen/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
ZenCustomerDetails
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Gocardless { fn validate_mandate_payment( &self, pm_type: Option<enums::PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { let mandate_supported_pmd = std::collections::HashSet::from([ PaymentMe...
crates/hyperswitch_connectors/src/connectors/gocardless.rs
hyperswitch_connectors
impl_block
136
rust
null
Gocardless
ConnectorValidation for
impl ConnectorValidation for for Gocardless
null
null
null
null
null
null
null
null
impl Health { pub fn server(state: routes::AppState, service: String) -> Scope { web::scope("health") .app_data(web::Data::new(state)) .app_data(web::Data::new(service)) .service(web::resource("").route(web::get().to(health))) .service(web::resource("/ready")....
crates/router/src/bin/scheduler.rs
router
impl_block
88
rust
null
Health
null
impl Health
null
null
null
null
null
null
null
null
impl AuthEventMetricAccumulator for CountAccumulator { type MetricOutput = Option<u64>; #[inline] fn add_metrics_bucket(&mut self, metrics: &AuthEventMetricRow) { self.count = match (self.count, metrics.count) { (None, None) => None, (None, i @ Some(_)) | (i @ Some(_), None) ...
crates/analytics/src/auth_events/accumulator.rs
analytics
impl_block
142
rust
null
CountAccumulator
AuthEventMetricAccumulator for
impl AuthEventMetricAccumulator for for CountAccumulator
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/payouts/payouts--filter.mdx # Type: Doc File --- openapi: post /payouts/list ---
api-reference/v1/payouts/payouts--filter.mdx
null
doc_file
35
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn payment_method_update_api() {}
crates/openapi/src/routes/payment_method.rs
openapi
function_signature
9
rust
null
null
null
null
payment_method_update_api
null
null
null
null
null
null
null
impl Responder { let flow = Flow::CustomersDelete; let customer_id = path.into_inner(); Box::pin(api::server_wrap( flow, state, &req, customer_id, |state, auth: auth::AuthenticationData, customer_id, _| { let merchant_context = domain::MerchantContext::No...
crates/router/src/routes/customers.rs
router
impl_block
181
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::ApiKeyUpdate; let api_key_id = key_id.into_inner(); let mut payload = json_payload.into_inner(); payload.key_id = api_key_id; Box::pin(api::server_wrap( flow, state, &req, payload, |state, auth::AuthenticationDataWit...
crates/router/src/routes/api_keys.rs
router
impl_block
184
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct StaxChildCapture { id: String, }
crates/hyperswitch_connectors/src/connectors/stax/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
StaxChildCapture
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/connector_response.rs Public functions: 3 use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods}; use router_env::{instrument, logger, tracing}; use super::generics; use crate::{ connector_response::{ ConnectorResponse, ConnectorResponseNew, Co...
crates/diesel_models/src/query/connector_response.rs
diesel_models
full_file
1,375
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RevolutPayData { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
23
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RevolutPayData" ]
null
null
null
null
pub struct GetCard<'a> { merchant_id: &'a str, card_id: &'a str, }
crates/router/src/core/payment_methods/transformers.rs
router
struct_definition
25
rust
GetCard
null
null
null
null
null
null
null
null
null
null
null
pub struct CloneConnectorDestination { pub connector_label: Option<String>, pub profile_id: id_type::ProfileId, pub merchant_id: id_type::MerchantId, }
crates/api_models/src/user.rs
api_models
struct_definition
37
rust
CloneConnectorDestination
null
null
null
null
null
null
null
null
null
null
null
impl PaymentMethodsEnabled { /// Get payment_method_type #[cfg(feature = "v2")] pub fn get_payment_method(&self) -> Option<common_enums::PaymentMethod> { Some(self.payment_method_type) } /// Get payment_method_subtypes #[cfg(feature = "v2")] pub fn get_payment_method_type(&self) -> ...
crates/common_types/src/payment_methods.rs
common_types
impl_block
100
rust
null
PaymentMethodsEnabled
null
impl PaymentMethodsEnabled
null
null
null
null
null
null
null
null
pub fn new( token: auth::UserFromSinglePurposeToken, current_flow: UserFlow, ) -> UserResult<Self> { let flows = token.origin.get_flows(); let index = flows .iter() .position(|flow| flow == &current_flow) .ok_or(UserErrors::InternalServerError)?; ...
crates/router/src/types/domain/user/decision_manager.rs
router
function_signature
119
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn increment_blocked_count_in_cache( state: &SessionState, card_testing_guard_data: Option<CardTestingGuardData>, ) -> RouterResult<()> { if let Some(card_testing_guard_data) = card_testing_guard_data.clone() { if card_testing_guard_data.is_card_ip_blocking_enabled && !card_tes...
crates/router/src/core/card_testing_guard/utils.rs
router
function_signature
316
rust
null
null
null
null
increment_blocked_count_in_cache
null
null
null
null
null
null
null
#[cfg(feature = "v2")] //List Payment Method #[derive(Debug, Clone, serde::Serialize, Default, ToSchema)] #[serde(deny_unknown_fields)] pub struct ListMethodsForPaymentMethodsRequest { /// This is a 15 minute expiry token which shall be used from the client to authenticate and perform sessions from the SDK #[s...
crates/api_models/src/payment_methods.rs#chunk2
api_models
chunk
8,190
null
null
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Thunes { 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/thunes.rs
hyperswitch_connectors
impl_block
210
rust
null
Thunes
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Thunes
null
null
null
null
null
null
null
null
pub async fn list_all_themes_in_lineage( state: SessionState, user: UserFromToken, entity_type: EntityType, ) -> UserResponse<Vec<theme_api::GetThemeResponse>> { let lineage = theme_utils::get_theme_lineage_from_user_token(&user, &state, &entity_type).await?; let db_themes = state ....
crates/router/src/core/user/theme.rs
router
function_signature
347
rust
null
null
null
null
list_all_themes_in_lineage
null
null
null
null
null
null
null
pub async fn get_verified_apple_domains_with_mid_mca_id( state: SessionState, merchant_id: common_utils::id_type::MerchantId, merchant_connector_id: common_utils::id_type::MerchantConnectorAccountId, ) -> CustomResult< services::ApplicationResponse<verifications::ApplepayVerifiedDomainsResponse>, er...
crates/router/src/core/verification.rs
router
function_signature
342
rust
null
null
null
null
get_verified_apple_domains_with_mid_mca_id
null
null
null
null
null
null
null
pub struct VolumeSplit<T> { pub split: u8, pub output: T, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
21
rust
VolumeSplit
null
null
null
null
null
null
null
null
null
null
null
/// Get the entity_type from the lineage pub fn entity_type(&self) -> EntityType { match self { Self::Tenant { .. } => EntityType::Tenant, Self::Organization { .. } => EntityType::Organization, Self::Merchant { .. } => EntityType::Merchant, Self::Profile { .. ...
crates/common_utils/src/types/user/theme.rs
common_utils
function_signature
76
rust
null
null
null
null
entity_type
null
null
null
null
null
null
null
File: crates/analytics/src/payments/metrics/payment_processed_amount.rs use std::collections::HashSet; use api_models::analytics::{ payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use diesel_models::enums as s...
crates/analytics/src/payments/metrics/payment_processed_amount.rs
analytics
full_file
1,016
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete( conn: &PgPooledConn, connector: String, flow: String, sub_flow: String, code: String, message: String, ) -> StorageResult<bool> { generics::generic_delete::<<Self as HasTable>::Table, _>( conn, dsl::connector ...
crates/diesel_models/src/query/gsm.rs
diesel_models
function_signature
129
rust
null
null
null
null
delete
null
null
null
null
null
null
null
pub struct MerchantAdvice { code: Option<String>, code_raw: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
MerchantAdvice
null
null
null
null
null
null
null
null
null
null
null
pub struct Shift4NonThreeDsResponse { pub id: String, pub currency: String, pub amount: u32, pub status: Shift4PaymentStatus, pub captured: bool, pub refunded: bool, pub flow: Option<FlowResponse>, }
crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs
hyperswitch_connectors
struct_definition
60
rust
Shift4NonThreeDsResponse
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let gsm_retrieve_req = json_payload.into_inner(); let flow = Flow::GsmRuleRetrieve; Box::pin(api::server_wrap( flow, state.clone(), &req, gsm_retrieve_req, |state, _, gsm_retrieve_req, _| gsm::retrieve_gsm_rule(state, gsm_retrieve_req), &ADMIN...
crates/router/src/routes/gsm.rs
router
impl_block
107
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub async fn decide_connector( state: SessionState, merchant_context: &domain::MerchantContext, business_profile: &domain::Profile, routing_data: &mut storage::RoutingData, payment_dsl_input: core_routing::PaymentsDslInput<'_>, mandate_type: Option<api::MandateTransactionType>, ) -> RouterResult...
crates/router/src/core/payments.rs
router
function_signature
814
rust
null
null
null
null
decide_connector
null
null
null
null
null
null
null
pub async fn payments_core<F, Res, Req, Op, FData, D>( state: SessionState, req_state: ReqState, merchant_context: domain::MerchantContext, profile: domain::Profile, operation: Op, req: Req, payment_id: id_type::GlobalPaymentId, call_connector_action: CallConnectorAction, header_payl...
crates/router/src/core/payments.rs
router
function_signature
751
rust
null
null
null
null
payments_core
null
null
null
null
null
null
null
impl ResponseId { pub fn get_connector_transaction_id( &self, ) -> errors::CustomResult<String, errors::ValidationError> { match self { Self::ConnectorTransactionId(txn_id) => Ok(txn_id.to_string()), _ => Err(errors::ValidationError::IncorrectValueProvided { ...
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
impl_block
94
rust
null
ResponseId
null
impl ResponseId
null
null
null
null
null
null
null
null
impl Responder { let wrapper = routing_types::ProfileDefaultRoutingConfig { profile_id: path.into_inner(), connectors: json_payload.into_inner(), }; Box::pin(oss_api::server_wrap( Flow::RoutingUpdateDefaultConfig, state, &req, wrapper, |state, auth: au...
crates/router/src/routes/routing.rs
router
impl_block
249
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct AuthenticationDataWithOrg { pub organization_id: id_type::OrganizationId, }
crates/router/src/services/authentication.rs
router
struct_definition
19
rust
AuthenticationDataWithOrg
null
null
null
null
null
null
null
null
null
null
null
impl Display for GenericLinksData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!( f, "{}", match *self { Self::ExpiredLink(_) => "ExpiredLink", Self::PaymentMethodCollect(_) => "PaymentMethodCollect", ...
crates/hyperswitch_domain_models/src/api.rs
hyperswitch_domain_models
impl_block
133
rust
null
GenericLinksData
Display for
impl Display for for GenericLinksData
null
null
null
null
null
null
null
null
impl api::revenue_recovery_v2::BillingConnectorInvoiceSyncIntegrationV2 for Recurly {}
crates/hyperswitch_connectors/src/connectors/recurly.rs
hyperswitch_connectors
impl_block
21
rust
null
Recurly
api::revenue_recovery_v2::BillingConnectorInvoiceSyncIntegrationV2 for
impl api::revenue_recovery_v2::BillingConnectorInvoiceSyncIntegrationV2 for for Recurly
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs Public functions: 3 Public structs: 26 #[cfg(all(feature = "revenue_recovery", feature = "v2"))] use std::str::FromStr; use common_enums::enums; use common_utils::{errors::CustomResult, ext_traits::ByteSliceExt, pii, types::MinorUnit}; use...
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
full_file
5,893
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/openapi/src/routes.rs #![allow(unused)] pub mod api_keys; pub mod authentication; pub mod blocklist; pub mod customers; pub mod disputes; pub mod gsm; pub mod mandates; pub mod merchant_account; pub mod merchant_connector_account; pub mod organization; pub mod payment_link; pub mod payment_method; pub mo...
crates/openapi/src/routes.rs
openapi
full_file
134
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_trustpay_response( response: TrustpayPaymentsResponse, status_code: u16, previous_attempt_status: enums::AttemptStatus, ) -> CustomResult< ( enums::AttemptStatus, Option<ErrorResponse>, PaymentsResponseData, ), errors::ConnectorError, > { match response { ...
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
function_signature
208
rust
null
null
null
null
get_trustpay_response
null
null
null
null
null
null
null
pub struct GpayInfo { pub payment_token: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
GpayInfo
null
null
null
null
null
null
null
null
null
null
null
pub struct EbanxFulfillResponse { #[serde(rename = "type")] status: EbanxFulfillStatus, message: String, }
crates/hyperswitch_connectors/src/connectors/ebanx/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
EbanxFulfillResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantConnectorWebhookDetails { #[schema(value_type = String, example = "12345678900987654321")] pub merchant_secret: Secret<String>, #[schema(value_type = String, example = "12345678900987654321")] pub additional_secret: Option<Secret<String>>, }
crates/api_models/src/admin.rs
api_models
struct_definition
91
rust
MerchantConnectorWebhookDetails
null
null
null
null
null
null
null
null
null
null
null
impl Barclaycard { pub fn generate_digest(&self, payload: &[u8]) -> String { let payload_digest = digest::digest(&digest::SHA256, payload); consts::BASE64_ENGINE.encode(payload_digest) } pub fn generate_signature( &self, auth: barclaycard::BarclaycardAuthType, host: ...
crates/hyperswitch_connectors/src/connectors/barclaycard.rs
hyperswitch_connectors
impl_block
446
rust
null
Barclaycard
null
impl Barclaycard
null
null
null
null
null
null
null
null
pub struct StoredCredentials { pub sequence: Sequence, pub initiator: Initiator, pub is_scheduled: bool, pub cardbrand_original_transaction_id: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs
hyperswitch_connectors
struct_definition
40
rust
StoredCredentials
null
null
null
null
null
null
null
null
null
null
null
pub struct PayuAuthUpdateRequest { grant_type: String, client_id: Secret<String>, client_secret: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
PayuAuthUpdateRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentAddress { shipping: Option<Address>, billing: Option<Address>, unified_payment_method_billing: Option<Address>, payment_method_billing: Option<Address>, }
crates/hyperswitch_domain_models/src/payment_address.rs
hyperswitch_domain_models
struct_definition
35
rust
PaymentAddress
null
null
null
null
null
null
null
null
null
null
null
pub fn new(time_bucket: Option<String>) -> Self { Self { time_bucket } }
crates/api_models/src/analytics/active_payments.rs
api_models
function_signature
20
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn switch_merchant_for_user_in_org( state: SessionState, request: user_api::SwitchMerchantRequest, user_from_token: auth::UserFromToken, ) -> UserResponse<user_api::TokenResponse> { if user_from_token.merchant_id == request.merchant_id { return Err(UserErrors::InvalidRoleOperationWithM...
crates/router/src/core/user.rs
router
function_signature
1,424
rust
null
null
null
null
switch_merchant_for_user_in_org
null
null
null
null
null
null
null
impl api::RefundSync for Authipay {}
crates/hyperswitch_connectors/src/connectors/authipay.rs
hyperswitch_connectors
impl_block
10
rust
null
Authipay
api::RefundSync for
impl api::RefundSync for for Authipay
null
null
null
null
null
null
null
null
impl api::PaymentSync for Bambora {}
crates/hyperswitch_connectors/src/connectors/bambora.rs
hyperswitch_connectors
impl_block
10
rust
null
Bambora
api::PaymentSync for
impl api::PaymentSync for for Bambora
null
null
null
null
null
null
null
null
pub struct AttributeResponse { vault: PaypalVaultResponse, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
AttributeResponse
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Vgs {}
crates/hyperswitch_connectors/src/connectors/vgs.rs
hyperswitch_connectors
impl_block
7
rust
null
Vgs
ConnectorSpecifications for
impl ConnectorSpecifications for for Vgs
null
null
null
null
null
null
null
null
pub fn build(self) -> api::CardNetworkTokenizeResponse { api::CardNetworkTokenizeResponse { payment_method_response: self.payment_method_response, customer: self.customer.cloned(), card_tokenized: self.card_tokenized, error_code: self.error_code.cloned(), ...
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
function_signature
97
rust
null
null
null
null
build
null
null
null
null
null
null
null
pub struct PanMetadataUpdateBody { pub card: NetworkTokenRequestorData, }
crates/router/src/types/payment_methods.rs
router
struct_definition
18
rust
PanMetadataUpdateBody
null
null
null
null
null
null
null
null
null
null
null
impl Address { /// Unify the address, giving priority to `self` when details are present in both pub fn unify_address(&self, other: Option<&Self>) -> Self { let other_address_details = other.and_then(|address| address.address.as_ref()); Self { address: self .address ...
crates/hyperswitch_domain_models/src/address.rs
hyperswitch_domain_models
impl_block
192
rust
null
Address
null
impl Address
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/cybersource.rs use std::str::FromStr; use common_utils::pii::Email; use hyperswitch_domain_models::address::{Address, AddressDetails, PhoneDetails}; use masking::Secret; use router::types::{self, api, domain, storage::enums}; use crate::{ connector_auth, utils::{self, Con...
crates/router/tests/connectors/cybersource.rs
router
full_file
2,880
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Payu { fn id(&self) -> &'static str { "payu" } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.payu.base_url.as_ref() } fn get_auth_header( ...
crates/hyperswitch_connectors/src/connectors/payu.rs
hyperswitch_connectors
impl_block
369
rust
null
Payu
ConnectorCommon for
impl ConnectorCommon for for Payu
null
null
null
null
null
null
null
null
impl api::RefundSync for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
12
rust
null
Worldpayvantiv
api::RefundSync for
impl api::RefundSync for for Worldpayvantiv
null
null
null
null
null
null
null
null
pub struct ElavonErrorResponse { error_code: Option<String>, error_message: String, error_name: String, }
crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
ElavonErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl HashedApiKey { pub fn into_inner(self) -> String { self.0 } }
crates/diesel_models/src/api_keys.rs
diesel_models
impl_block
23
rust
null
HashedApiKey
null
impl HashedApiKey
null
null
null
null
null
null
null
null
pub struct CardData { pub card_number: CardNumber, pub exp_month: Secret<String>, pub exp_year: Secret<String>, pub card_security_code: Option<Secret<String>>, }
crates/router/src/types/payment_methods.rs
router
struct_definition
41
rust
CardData
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/events/{merchant_id}/{event_id}/retry" { "post": { "tags": [ "Event" ], "summary": "Events - Manual Retry", "description": "Manually retry the delivery of the specified Event.", "operationId": "Manually retry the delivery of an Event", "parameters": [ { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
289
.json
null
null
null
null
null
openapi_spec
paths
[ "/events/{merchant_id}/{event_id}/retry" ]
null
null
null
null
/// get_requires_cvv_key pub fn get_requires_cvv_key(&self) -> String { format!("{}_requires_cvv", self.get_string_repr()) }
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
36
rust
null
null
null
null
get_requires_cvv_key
null
null
null
null
null
null
null
pub async fn list_routing_configs_for_profile( state: web::Data<AppState>, req: HttpRequest, query: web::Query<RoutingRetrieveQuery>, transaction_type: Option<enums::TransactionType>, ) -> impl Responder { let flow = Flow::RoutingRetrieveDictionary; Box::pin(oss_api::server_wrap( flow, ...
crates/router/src/routes/routing.rs
router
function_signature
273
rust
null
null
null
null
list_routing_configs_for_profile
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/aci/aci_result_codes.rs pub(super) const FAILURE_CODES: [&str; 501] = [ "100.370.100", "100.370.110", "100.370.111", "100.380.100", "100.380.101", "100.380.110", "100.380.201", "100.380.305", "100.380.306", "100.380.401", "1...
crates/hyperswitch_connectors/src/connectors/aci/aci_result_codes.rs
hyperswitch_connectors
full_file
7,676
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_status.rs Public functions: 1 Public structs: 1 use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState}; use error_stack::ResultExt; use rou...
crates/router/src/core/payments/operations/payment_status.rs
router
full_file
4,998
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Juspaythreedsserver {}
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
hyperswitch_connectors
impl_block
14
rust
null
Juspaythreedsserver
api::Refund for
impl api::Refund for for Juspaythreedsserver
null
null
null
null
null
null
null
null
impl api::ExternalVaultCreate for HyperswitchVault {}
crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs
hyperswitch_connectors
impl_block
12
rust
null
HyperswitchVault
api::ExternalVaultCreate for
impl api::ExternalVaultCreate for for HyperswitchVault
null
null
null
null
null
null
null
null
pub fn get_payout_attempt_id(payout_id: &str, attempt_count: i16) -> String { format!("{payout_id}_{attempt_count}") }
crates/router/src/utils.rs
router
function_signature
35
rust
null
null
null
null
get_payout_attempt_id
null
null
null
null
null
null
null
pub struct KlarnaCheckoutRequestData { merchant_urls: MerchantURLs, options: CheckoutOptions, }
crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
KlarnaCheckoutRequestData
null
null
null
null
null
null
null
null
null
null
null
pub fn get_id(&self) -> &id_type::GlobalCustomerId { &self.id }
crates/hyperswitch_domain_models/src/customer.rs
hyperswitch_domain_models
function_signature
22
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
pub async fn get_theme_using_theme_id( state: SessionState, theme_id: String, ) -> UserResponse<theme_api::GetThemeResponse> { let theme = state .store .find_theme_by_theme_id(theme_id.clone()) .await .to_not_found_response(UserErrors::ThemeNotFound)?; let file = theme_u...
crates/router/src/core/user/theme.rs
router
function_signature
225
rust
null
null
null
null
get_theme_using_theme_id
null
null
null
null
null
null
null
pub struct PaymentsErrorResponse { pub rc: String, pub message: String, }
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
PaymentsErrorResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CustomerResponse { "type": "object", "required": [ "customer_id", "created_at" ], "properties": { "customer_id": { "type": "string", "description": "The identifier for the customer object", "example": "cus_y3oqhf46pyzuxjbcn2giaqnb44", "m...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
683
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CustomerResponse" ]
null
null
null
null
pub trait ConnectorCommon { fn id(&self) -> &'static str; fn get_auth_header( &self, _auth_type: &auth_types::ConnectorAuthType, ) -> CustomResult<Vec<(String, Maskable<String>)>, ConnectorError> { Ok(Vec::new()) } fn common_get_content_type(&self) -> &'static str { ...
crates/pm_auth/src/types/api.rs
pm_auth
trait_definition
197
rust
null
null
ConnectorCommon
null
null
null
null
null
null
null
null
null
pub async fn refunds_metadata_update() {}
crates/openapi/src/routes/refunds.rs
openapi
function_signature
8
rust
null
null
null
null
refunds_metadata_update
null
null
null
null
null
null
null
impl TransactionType { fn get_from_capture_method_and_amount_string( capture_method: CaptureMethod, amount: &str, ) -> Self { let amount_value = amount.parse::<f64>(); if capture_method == CaptureMethod::Manual || amount_value == Ok(0.0) { Self::Auth } else { ...
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
impl_block
83
rust
null
TransactionType
null
impl TransactionType
null
null
null
null
null
null
null
null
impl ConnectorValidation for Boku {}
crates/hyperswitch_connectors/src/connectors/boku.rs
hyperswitch_connectors
impl_block
7
rust
null
Boku
ConnectorValidation for
impl ConnectorValidation for for Boku
null
null
null
null
null
null
null
null
pub struct CoingateSyncResponse { status: CoingatePaymentStatus, id: i64, }
crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
CoingateSyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn configure_dynamic_routing_volume_split( state: SessionState, merchant_context: domain::MerchantContext, profile_id: common_utils::id_type::ProfileId, routing_info: routing::RoutingVolumeSplit, ) -> RouterResponse<routing::RoutingVolumeSplit> { metrics::ROUTING_CREATE_REQUEST_RECEIVED.ad...
crates/router/src/core/routing.rs
router
function_signature
429
rust
null
null
null
null
configure_dynamic_routing_volume_split
null
null
null
null
null
null
null
impl api::Refund for Powertranz {}
crates/hyperswitch_connectors/src/connectors/powertranz.rs
hyperswitch_connectors
impl_block
10
rust
null
Powertranz
api::Refund for
impl api::Refund for for Powertranz
null
null
null
null
null
null
null
null
impl api::PaymentToken for Airwallex {}
crates/hyperswitch_connectors/src/connectors/airwallex.rs
hyperswitch_connectors
impl_block
10
rust
null
Airwallex
api::PaymentToken for
impl api::PaymentToken for for Airwallex
null
null
null
null
null
null
null
null
pub struct LineItemData { #[serde(skip_serializing_if = "Option::is_none")] pub item_sequence_number: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub item_description: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub product_code: Option<String>, #[...
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
265
rust
LineItemData
null
null
null
null
null
null
null
null
null
null
null
impl PaymentMethodsStorageInterface for MockDb {}
crates/payment_methods/src/state.rs
payment_methods
impl_block
9
rust
null
MockDb
PaymentMethodsStorageInterface for
impl PaymentMethodsStorageInterface for for MockDb
null
null
null
null
null
null
null
null
pub struct ZenRefundRequest { amount: String, transaction_id: String, currency: enums::Currency, merchant_transaction_id: String, }
crates/hyperswitch_connectors/src/connectors/zen/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
ZenRefundRequest
null
null
null
null
null
null
null
null
null
null
null