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
OpenAPI Block Path: components.schemas.RoutableChoiceKind { "type": "string", "enum": [ "OnlyConnector", "FullStruct" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
40
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RoutableChoiceKind" ]
null
null
null
null
pub struct CashtoCodeCurrencyAuthKeyType { pub classic: Classic, pub evoucher: Evoucher, }
crates/connector_configs/src/connector.rs
connector_configs
struct_definition
25
rust
CashtoCodeCurrencyAuthKeyType
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/sdk_events/events.rs Public functions: 1 Public structs: 1 use api_models::analytics::{ sdk_events::{SdkEventNames, SdkEventsRequest}, Granularity, }; use common_utils::errors::ReportSwitchExt; use error_stack::ResultExt; use strum::IntoEnumIterator; use time::PrimitiveDateTime; u...
crates/analytics/src/sdk_events/events.rs
analytics
full_file
695
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentsPreProcessing for Shift4 {}
crates/hyperswitch_connectors/src/connectors/shift4.rs
hyperswitch_connectors
impl_block
10
rust
null
Shift4
api::PaymentsPreProcessing for
impl api::PaymentsPreProcessing for for Shift4
null
null
null
null
null
null
null
null
File: crates/router/src/types/api/poll.rs Public structs: 1 use serde; #[derive(Default, Debug, serde::Deserialize, serde::Serialize)] pub struct PollId { pub poll_id: String, }
crates/router/src/types/api/poll.rs
router
full_file
47
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Default for VaultResponseData { fn default() -> Self { Self::ExternalVaultInsertResponse { connector_vault_id: String::new(), fingerprint_id: String::new(), } } }
crates/hyperswitch_domain_models/src/router_response_types.rs
hyperswitch_domain_models
impl_block
45
rust
null
VaultResponseData
Default for
impl Default for for VaultResponseData
null
null
null
null
null
null
null
null
impl api::MandateSetup for Bluecode {}
crates/hyperswitch_connectors/src/connectors/bluecode.rs
hyperswitch_connectors
impl_block
11
rust
null
Bluecode
api::MandateSetup for
impl api::MandateSetup for for Bluecode
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::PaymentsFilters; Box::pin(api::server_wrap( flow, state, &req, (), |state, auth: auth::AuthenticationData, _, _| { let merchant_context = domain::MerchantContext::NormalMerchant(Box::new( domain::Context(auth.m...
crates/router/src/routes/payments.rs
router
impl_block
146
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct RecoveryRecordBack;
crates/hyperswitch_domain_models/src/router_flow_types/revenue_recovery.rs
hyperswitch_domain_models
struct_definition
6
rust
RecoveryRecordBack
null
null
null
null
null
null
null
null
null
null
null
pub async fn customers_create( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<customers::CustomerRequest>, ) -> HttpResponse { let flow = Flow::CustomersCreate; Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inner(), |st...
crates/router/src/routes/customers.rs
router
function_signature
205
rust
null
null
null
null
customers_create
null
null
null
null
null
null
null
pub struct StripePaymentCancelRequest { cancellation_reason: Option<CancellationReason>, }
crates/router/src/compatibility/stripe/payment_intents/types.rs
router
struct_definition
17
rust
StripePaymentCancelRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn construct_fulfillment_router_data<'a>( state: &'a SessionState, payment_intent: &'a storage::PaymentIntent, payment_attempt: &storage::PaymentAttempt, merchant_context: &domain::MerchantContext, connector: String, fulfillment_request: FrmFulfillmentRequest, ) -> RouterResult<FrmFulf...
crates/router/src/core/fraud_check/flows/fulfillment_flow.rs
router
function_signature
835
rust
null
null
null
null
construct_fulfillment_router_data
null
null
null
null
null
null
null
pub async fn insert_refunds( conn: &PgPooledConn, batch: Vec<RefundNew>, ) -> StorageResult<Vec<Refund>> { let query = diesel::insert_into(<Refund>::table()).values(batch); logger::debug!(query = %debug_query::<diesel::pg::Pg,_>(&query).to_string()); query .get_results_async(conn) ...
crates/diesel_models/src/query/user/sample_data.rs
diesel_models
function_signature
113
rust
null
null
null
null
insert_refunds
null
null
null
null
null
null
null
pub struct RefundsRetrievePayload { /// `force_sync` with the connector to get refund details pub force_sync: Option<bool>, /// Merchant connector details used to make payments. pub merchant_connector_details: Option<common_types::domain::MerchantConnectorAuthDetails>, }
crates/api_models/src/refunds.rs
api_models
struct_definition
59
rust
RefundsRetrievePayload
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Coinbase {}
crates/hyperswitch_connectors/src/connectors/coinbase.rs
hyperswitch_connectors
impl_block
9
rust
null
Coinbase
api::RefundExecute for
impl api::RefundExecute for for Coinbase
null
null
null
null
null
null
null
null
pub struct MollieAuthType { pub(super) api_key: Secret<String>, pub(super) profile_token: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
MollieAuthType
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Getnet { fn id(&self) -> &'static str { "getnet" } 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: &'a ...
crates/hyperswitch_connectors/src/connectors/getnet.rs
hyperswitch_connectors
impl_block
417
rust
null
Getnet
ConnectorCommon for
impl ConnectorCommon for for Getnet
null
null
null
null
null
null
null
null
impl ConnectorPreAuthenticationVersionCall for Netcetera {}
crates/hyperswitch_connectors/src/connectors/netcetera.rs
hyperswitch_connectors
impl_block
12
rust
null
Netcetera
ConnectorPreAuthenticationVersionCall for
impl ConnectorPreAuthenticationVersionCall for for Netcetera
null
null
null
null
null
null
null
null
pub struct RefundsRetrieveRequest { /// Unique Identifier for the Refund. This is to ensure idempotency for multiple partial refund initiated against the same payment. If the identifiers is not defined by the merchant, this filed shall be auto generated and provide in the API response. It is recommended to generate...
crates/api_models/src/refunds.rs
api_models
struct_definition
204
rust
RefundsRetrieveRequest
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Affirm { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&AFFIRM_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*AFFIRM_SUPPORTED_PAYMENT_METHODS) } fn get_support...
crates/hyperswitch_connectors/src/connectors/affirm.rs
hyperswitch_connectors
impl_block
105
rust
null
Affirm
ConnectorSpecifications for
impl ConnectorSpecifications for for Affirm
null
null
null
null
null
null
null
null
pub struct Status { pub error_code: String, pub status: Option<String>, pub message: Option<String>, pub response_code: Option<String>, pub operation_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs
hyperswitch_connectors
struct_definition
42
rust
Status
null
null
null
null
null
null
null
null
null
null
null
pub async fn add_refund_execute_task( db: &dyn db::StorageInterface, refund: &diesel_refund::Refund, runner: storage::ProcessTrackerRunner, ) -> RouterResult<storage::ProcessTracker> { let task = "EXECUTE_REFUND"; let process_tracker_id = format!("{runner}_{task}_{}", refund.internal_reference_id); ...
crates/router/src/core/refunds.rs
router
function_signature
271
rust
null
null
null
null
add_refund_execute_task
null
null
null
null
null
null
null
pub async fn find_by_merchant_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, limit: Option<i64>, offset: Option<i64>, ) -> StorageResult<Vec<Self>> { generics::generic_filter::<<Self as HasTable>::Table, _, _, _>( conn, dsl::...
crates/diesel_models/src/query/api_keys.rs
diesel_models
function_signature
114
rust
null
null
null
null
find_by_merchant_id
null
null
null
null
null
null
null
pub async fn payment_connector_list_profile( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::MerchantId>, ) -> HttpResponse { let flow = Flow::MerchantConnectorsList; let merchant_id = path.into_inner(); api::server_wrap( flow, state, ...
crates/router/src/routes/profiles.rs
router
function_signature
205
rust
null
null
null
null
payment_connector_list_profile
null
null
null
null
null
null
null
pub(super) struct SerializeTupleVariant<T: Serializer> { name: String, vec: Vec<Value>, ser: T, }
crates/masking/src/serde.rs
masking
struct_definition
30
rust
SerializeTupleVariant
null
null
null
null
null
null
null
null
null
null
null
pub async fn revoke_mandate( state: SessionState, merchant_context: domain::MerchantContext, req: mandates::MandateId, ) -> RouterResponse<mandates::MandateRevokedResponse> { let db = state.store.as_ref(); let mandate = db .find_mandate_by_merchant_id_mandate_id( merchant_context...
crates/router/src/core/mandate.rs
router
function_signature
765
rust
null
null
null
null
revoke_mandate
null
null
null
null
null
null
null
pub struct WellsfargoPaymentsResponse { id: String, status: Option<WellsfargoPaymentStatus>, client_reference_information: Option<ClientReferenceInformation>, processor_information: Option<ClientProcessorInformation>, risk_information: Option<ClientRiskInformation>, token_information: Option<Wel...
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
77
rust
WellsfargoPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct CountAccumulator { pub count: Option<i64>, }
crates/analytics/src/payment_intents/accumulator.rs
analytics
struct_definition
17
rust
CountAccumulator
null
null
null
null
null
null
null
null
null
null
null
pub struct FluidData { value: Secret<String>, #[serde(skip_serializing_if = "Option::is_none")] descriptor: Option<String>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
FluidData
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/connector_endpoints.rs Public functions: 2 Public structs: 10 //! Configs interface use common_enums::{connector_enums, ApplicationError}; use common_utils::errors::CustomResult; use masking::Secret; use router_derive; use serde::Deserialize; use crate::errors::api_error_r...
crates/hyperswitch_domain_models/src/connector_endpoints.rs
hyperswitch_domain_models
full_file
2,024
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct MpgsRefundRequest { pub amount: StringMinorUnit, }
crates/hyperswitch_connectors/src/connectors/mpgs/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
MpgsRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn is_separate_authentication_supported(self) -> bool { match self { #[cfg(feature = "dummy_connector")] Self::DummyBillingConnector => false, #[cfg(feature = "dummy_connector")] Self::DummyConnector1 | Self::DummyConnector2 | Self::Dum...
crates/common_enums/src/connector_enums.rs
common_enums
function_signature
1,049
rust
null
null
null
null
is_separate_authentication_supported
null
null
null
null
null
null
null
impl api::RefundSync for Aci {}
crates/hyperswitch_connectors/src/connectors/aci.rs
hyperswitch_connectors
impl_block
10
rust
null
Aci
api::RefundSync for
impl api::RefundSync for for Aci
null
null
null
null
null
null
null
null
impl api::PaymentSync for Rapyd {}
crates/hyperswitch_connectors/src/connectors/rapyd.rs
hyperswitch_connectors
impl_block
10
rust
null
Rapyd
api::PaymentSync for
impl api::PaymentSync for for Rapyd
null
null
null
null
null
null
null
null
impl Poll { pub fn server(config: AppState) -> Scope { web::scope("/poll") .app_data(web::Data::new(config)) .service( web::resource("/status/{poll_id}").route(web::get().to(poll::retrieve_poll_status)), ) } }
crates/router/src/routes/app.rs
router
impl_block
65
rust
null
Poll
null
impl Poll
null
null
null
null
null
null
null
null
pub struct ProphetpayAuthType { pub(super) user_name: Secret<String>, pub(super) password: Secret<String>, pub(super) profile_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
ProphetpayAuthType
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_payment_processor_token_using_token_id( state: &SessionState, connector_customer_id: &str, payment_processor_token: &str, ) -> CustomResult<Option<PaymentProcessorTokenStatus>, errors::StorageError> { // Get all tokens for the customer let tokens_map = ...
crates/router/src/types/storage/revenue_recovery_redis_operation.rs
router
function_signature
142
rust
null
null
null
null
get_payment_processor_token_using_token_id
null
null
null
null
null
null
null
pub async fn construct_webhook_router_data( state: &SessionState, connector_name: &str, merchant_connector_account: domain::MerchantConnectorAccount, merchant_context: &domain::MerchantContext, connector_wh_secrets: &api_models::webhooks::ConnectorWebhookSecrets, request_details: &api::IncomingW...
crates/router/src/core/webhooks/utils.rs
router
function_signature
683
rust
null
null
null
null
construct_webhook_router_data
null
null
null
null
null
null
null
pub struct EbanxPayoutResponseDetails { uid: String, status: EbanxPayoutStatus, }
crates/hyperswitch_connectors/src/connectors/ebanx/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
EbanxPayoutResponseDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct KafkaFraudCheckEvent<'a> { pub frm_id: &'a String, pub payment_id: &'a common_utils::id_type::PaymentId, pub merchant_id: &'a common_utils::id_type::MerchantId, pub attempt_id: &'a String, #[serde(with = "time::serde::timestamp::nanoseconds")] pub created_at: OffsetDateTime, pub f...
crates/router/src/services/kafka/fraud_check_event.rs
router
struct_definition
276
rust
KafkaFraudCheckEvent
null
null
null
null
null
null
null
null
null
null
null
pub struct ConnectorFields { pub fields: HashMap<enums::Connector, RequiredFieldFinal>, }
crates/payment_methods/src/configs/settings.rs
payment_methods
struct_definition
20
rust
ConnectorFields
null
null
null
null
null
null
null
null
null
null
null
pub fn get_paysafe_payment_status( status: PaysafePaymentStatus, capture_method: Option<common_enums::CaptureMethod>, ) -> common_enums::AttemptStatus { match status { PaysafePaymentStatus::Completed => match capture_method { Some(common_enums::CaptureMethod::Manual) => common_enums::Att...
crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs
hyperswitch_connectors
function_signature
241
rust
null
null
null
null
get_paysafe_payment_status
null
null
null
null
null
null
null
File: crates/analytics/src/disputes/filters.rs Public functions: 1 Public structs: 1 use api_models::analytics::{disputes::DisputeDimensions, Granularity, TimeRange}; use common_utils::errors::ReportSwitchExt; use diesel_models::enums::Currency; use error_stack::ResultExt; use time::PrimitiveDateTime; use crate::{ ...
crates/analytics/src/disputes/filters.rs
analytics
full_file
456
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/consts/user_role.rs // User Roles pub const ROLE_ID_MERCHANT_ADMIN: &str = "merchant_admin"; pub const ROLE_ID_MERCHANT_VIEW_ONLY: &str = "merchant_view_only"; pub const ROLE_ID_MERCHANT_IAM_ADMIN: &str = "merchant_iam_admin"; pub const ROLE_ID_MERCHANT_DEVELOPER: &str = "merchant_developer"; p...
crates/router/src/consts/user_role.rs
router
full_file
243
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Fiuu {}
crates/hyperswitch_connectors/src/connectors/fiuu.rs
hyperswitch_connectors
impl_block
10
rust
null
Fiuu
api::PaymentToken for
impl api::PaymentToken for for Fiuu
null
null
null
null
null
null
null
null
pub struct EdgeData { node: NodeData, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
12
rust
EdgeData
null
null
null
null
null
null
null
null
null
null
null
Documentation: crates/analytics/docs/README.md # Type: Doc File # Running Kafka & Clickhouse with Analytics and Events Source Configuration This document provides instructions on how to run Kafka and Clickhouse using Docker Compose, and how to configure the analytics and events source. ## Architecture +--------...
crates/analytics/docs/README.md
null
doc_file
1,144
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CybersourceRouterData<T> { pub amount: StringMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
CybersourceRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct PlaidAuthType { pub client_id: Secret<String>, pub secret: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
PlaidAuthType
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthReversalResponse { #[serde(rename = "@id")] pub id: String, #[serde(rename = "@reportGroup")] pub report_group: String, #[serde(rename = "@customerId", skip_serializing_if = "Option::is_none")] pub customer_id: Option<String>, pub cnp_txn_id: String, pub response: Worldpay...
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
114
rust
AuthReversalResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct PlaidPaymentInitiation { payment_id: String, }
crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
PlaidPaymentInitiation
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentAttemptFeatureMetadata { pub revenue_recovery: Option<PaymentAttemptRevenueRecoveryData>, }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
struct_definition
22
rust
PaymentAttemptFeatureMetadata
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Bambora {}
crates/hyperswitch_connectors/src/connectors/bambora.rs
hyperswitch_connectors
impl_block
12
rust
null
Bambora
api::MandateSetup for
impl api::MandateSetup for for Bambora
null
null
null
null
null
null
null
null
pub trait ConnectorResponseExt: Sized { fn get_response(self) -> RouterResult<types::Response>; fn get_error_response(self) -> RouterResult<types::Response>; fn get_response_inner<T: DeserializeOwned>(self, type_name: &'static str) -> RouterResult<T> { self.get_response()? .response ...
crates/router/src/utils.rs
router
trait_definition
93
rust
null
null
ConnectorResponseExt
null
null
null
null
null
null
null
null
null
pub trait IntoContext { fn into_context(self) -> Result<Vec<dir::DirValue>, KgraphError>; }
crates/kgraph_utils/src/transformers.rs
kgraph_utils
trait_definition
25
rust
null
null
IntoContext
null
null
null
null
null
null
null
null
null
pub struct NovalnetWebhookEvent { pub checksum: String, pub tid: i64, pub parent_tid: Option<i64>, #[serde(rename = "type")] pub event_type: WebhookEventType, }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
NovalnetWebhookEvent
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_payment_intents_filters( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<GetPaymentIntentFiltersRequest>, ) -> impl Responder { let flow = AnalyticsFlow::GetPaymentIntentFilters; Box::pin(api::server_wrap( flow, ...
crates/router/src/analytics.rs
router
function_signature
217
rust
null
null
null
null
get_payment_intents_filters
null
null
null
null
null
null
null
impl DynamicRoutingStats { pub async fn find_optional_by_attempt_id_merchant_id( conn: &PgPooledConn, attempt_id: String, merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<Option<Self>> { generics::generic_find_one_optional::<<Self as HasTable>::Table, _, _>( ...
crates/diesel_models/src/query/dynamic_routing_stats.rs
diesel_models
impl_block
293
rust
null
DynamicRoutingStats
null
impl DynamicRoutingStats
null
null
null
null
null
null
null
null
pub struct SingleChargeResponseData { charge_status: String, charge_id: String, }
crates/hyperswitch_connectors/src/connectors/boku/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
SingleChargeResponseData
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Wellsfargo { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&WELLSFARGO_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*WELLSFARGO_SUPPORTED_PAYMENT_METHODS) } fn...
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs
hyperswitch_connectors
impl_block
118
rust
null
Wellsfargo
ConnectorSpecifications for
impl ConnectorSpecifications for for Wellsfargo
null
null
null
null
null
null
null
null
.to_tuple(), RequiredField::BillingLastName( "billing_last_name", FieldType::UserBillingName, ) .to_tuple(), Require...
crates/payment_methods/src/configs/payment_connector_required_fields.rs#chunk2
payment_methods
chunk
8,158
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BamboraapacPaymentsResponse { body: BodyResponse, }
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
BamboraapacPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct NoonBillingAddress { street: Option<Secret<String>>, street2: Option<Secret<String>>, city: Option<String>, state_province: Option<Secret<String>>, country: Option<api_models::enums::CountryAlpha2>, postal_code: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
62
rust
NoonBillingAddress
null
null
null
null
null
null
null
null
null
null
null
pub fn error_code(&self) -> String { match self { #(#arms),* } }
crates/router_derive/src/macros/api_error.rs
router_derive
function_signature
24
rust
null
null
null
null
error_code
null
null
null
null
null
null
null
pub fn filter_network_transaction_id_flow_supported_connectors( self, nit_connectors: HashSet<String>, ) -> Self { let connectors = self .0 .into_iter() .filter(|routable_connector_choice| { nit_connectors.contains(&routable_connector_choic...
crates/router/src/core/routing.rs
router
function_signature
81
rust
null
null
null
null
filter_network_transaction_id_flow_supported_connectors
null
null
null
null
null
null
null
pub struct DeutschebankThreeDSInitializeRequestCreditCardExpiry { year: Secret<String>, month: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
DeutschebankThreeDSInitializeRequestCreditCardExpiry
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Bankofamerica { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&BANKOFAMERICA_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*BANKOFAMERICA_SUPPORTED_PAYMENT_METHODS) ...
crates/hyperswitch_connectors/src/connectors/bankofamerica.rs
hyperswitch_connectors
impl_block
116
rust
null
Bankofamerica
ConnectorSpecifications for
impl ConnectorSpecifications for for Bankofamerica
null
null
null
null
null
null
null
null
pub struct FiuuErrorResponse { pub error_code: String, pub error_desc: String, }
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
FiuuErrorResponse
null
null
null
null
null
null
null
null
null
null
null
/// Validates the AWS S3 file storage configuration. pub(super) fn validate(&self) -> Result<(), InvalidFileStorageConfig> { use common_utils::fp_utils::when; when(self.region.is_default_or_empty(), || { Err(InvalidFileStorageConfig("aws s3 region must not be empty")) })?; ...
crates/external_services/src/file_storage/aws_s3.rs
external_services
function_signature
107
rust
null
null
null
null
validate
null
null
null
null
null
null
null
pub struct PayloadCardsResponseData { pub amount: f64, pub avs: Option<AvsResponse>, pub customer_id: Option<Secret<String>>, #[serde(rename = "id")] pub transaction_id: String, #[serde(rename = "payment_method_id")] pub connector_payment_method_id: Option<Secret<String>>, pub processing...
crates/hyperswitch_connectors/src/connectors/payload/responses.rs
hyperswitch_connectors
struct_definition
141
rust
PayloadCardsResponseData
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs Public structs: 18 use common_enums::enums; use common_utils::{pii::Email, request::Method, types::MinorUnit}; use error_stack::ResultExt; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorA...
crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs
hyperswitch_connectors
full_file
4,449
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct RawCardDetails { #[serde(rename = "type")] pub payment_type: PaymentType, pub card_number: cards::CardNumber, pub expiry_date: ExpiryDate, }
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
hyperswitch_connectors
struct_definition
42
rust
RawCardDetails
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs Public functions: 8 Public structs: 45 use std::collections::HashMap; use api_models::webhooks::IncomingWebhookEvent; use cards::CardNumber; use common_enums::{enums, enums as api_enums}; use common_utils::{ consts, ext_traits::Opti...
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs#chunk0
hyperswitch_connectors
chunk
8,177
null
null
null
null
null
null
null
null
null
null
null
null
null
impl PartialEq for PaymentIntentMetricsBucketIdentifier { fn eq(&self, other: &Self) -> bool { let mut left = DefaultHasher::new(); self.hash(&mut left); let mut right = DefaultHasher::new(); other.hash(&mut right); left.finish() == right.finish() } }
crates/api_models/src/analytics/payment_intents.rs
api_models
impl_block
70
rust
null
PaymentIntentMetricsBucketIdentifier
PartialEq for
impl PartialEq for for PaymentIntentMetricsBucketIdentifier
null
null
null
null
null
null
null
null
File: crates/router/src/db/dynamic_routing_stats.rs use error_stack::report; use router_env::{instrument, tracing}; use storage_impl::MockDb; use super::Store; use crate::{ connection, core::errors::{self, CustomResult}, db::kafka_store::KafkaStore, types::storage, }; #[async_trait::async_trait] pub ...
crates/router/src/db/dynamic_routing_stats.rs
router
full_file
1,091
null
null
null
null
null
null
null
null
null
null
null
null
null
impl UserEmail { pub fn new(email: Secret<String, pii::EmailStrategy>) -> UserResult<Self> { use validator::ValidateEmail; let email_string = email.expose().to_lowercase(); let email = pii::Email::from_str(&email_string).change_context(UserErrors::EmailParsingError)?; i...
crates/router/src/types/domain/user.rs
router
impl_block
331
rust
null
UserEmail
null
impl UserEmail
null
null
null
null
null
null
null
null
impl api::PaymentsCompleteAuthorize for Cybersource {}
crates/hyperswitch_connectors/src/connectors/cybersource.rs
hyperswitch_connectors
impl_block
11
rust
null
Cybersource
api::PaymentsCompleteAuthorize for
impl api::PaymentsCompleteAuthorize for for Cybersource
null
null
null
null
null
null
null
null
pub trait ClientSecretFetch { fn get_client_secret(&self) -> Option<&String>; }
crates/router/src/services/authentication.rs
router
trait_definition
20
rust
null
null
ClientSecretFetch
null
null
null
null
null
null
null
null
null
pub async fn payouts_list() {}
crates/openapi/src/routes/payouts.rs
openapi
function_signature
7
rust
null
null
null
null
payouts_list
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs Public structs: 26 use common_enums::{enums, CountryAlpha2, Currency}; use common_utils::{pii, request::Method, types::MinorUnit}; use error_stack::{report, ResultExt}; use hyperswitch_domain_models::{ payment_method_data::{PayLaterData, Pa...
crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
hyperswitch_connectors
full_file
6,100
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct IdealMethodData { issuer: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
IdealMethodData
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentIntentMetricsBucketValue { pub successful_smart_retries: Option<u64>, pub total_smart_retries: Option<u64>, pub smart_retried_amount: Option<u64>, pub smart_retried_amount_in_usd: Option<u64>, pub smart_retried_amount_without_smart_retries: Option<u64>, pub smart_retried_amount...
crates/api_models/src/analytics/payment_intents.rs
api_models
struct_definition
286
rust
PaymentIntentMetricsBucketValue
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/netcetera.rs use router::types::{self, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct NetceteraTest; impl ConnectorActions for NetceteraTest {} impl utils::Connector for NetceteraTest { fn get_data(&s...
crates/router/tests/connectors/netcetera.rs
router
full_file
2,476
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_connector_account_details( &self, ) -> error_stack::Result<router_data::ConnectorAuthType, common_utils::errors::ParsingError> { use common_utils::ext_traits::ValueExt; self.connector_account_details .get_inner() .clone() .parse_value("Conn...
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
73
rust
null
null
null
null
get_connector_account_details
null
null
null
null
null
null
null
pub struct PaymentsCollection { authorizations: Option<Vec<PaymentsCollectionItem>>, captures: Option<Vec<PaymentsCollectionItem>>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
PaymentsCollection
null
null
null
null
null
null
null
null
null
null
null
pub struct GlobalpayPaymentMethodsResponse { #[serde(rename = "id")] pub payment_method_token_id: Option<Secret<String>>, pub card: Card, }
crates/hyperswitch_connectors/src/connectors/globalpay/response.rs
hyperswitch_connectors
struct_definition
35
rust
GlobalpayPaymentMethodsResponse
null
null
null
null
null
null
null
null
null
null
null
impl Store { #[inline(always)] pub fn drainer_stream(&self, shard_key: &str) -> String { // Example: {shard_5}_drainer_stream format!("{{{}}}_{}", shard_key, self.config.drainer_stream_name,) } #[inline(always)] pub(crate) fn get_stream_key_flag(&self, stream_index: u8) -> String { ...
crates/drainer/src/stream.rs
drainer
impl_block
977
rust
null
Store
null
impl Store
null
null
null
null
null
null
null
null
pub struct OnboardingSurvey { pub designation: Option<String>, pub about_business: Option<String>, pub business_website: Option<String>, pub hyperswitch_req: Option<String>, pub major_markets: Option<Vec<String>>, pub business_size: Option<String>, pub required_features: Option<Vec<String>>,...
crates/api_models/src/user/dashboard_metadata.rs
api_models
struct_definition
91
rust
OnboardingSurvey
null
null
null
null
null
null
null
null
null
null
null
pub struct AdyenPlatformRouterData<T> { pub amount: MinorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
AdyenPlatformRouterData
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Adyen { fn validate_connector_against_payment_request( &self, capture_method: Option<enums::CaptureMethod>, _payment_method: enums::PaymentMethod, pmt: Option<PaymentMethodType>, ) -> CustomResult<(), errors::ConnectorError> { let capture_meth...
crates/hyperswitch_connectors/src/connectors/adyen.rs
hyperswitch_connectors
impl_block
2,103
rust
null
Adyen
ConnectorValidation for
impl ConnectorValidation for for Adyen
null
null
null
null
null
null
null
null
impl api::PaymentsCompleteAuthorize for Nexixpay {}
crates/hyperswitch_connectors/src/connectors/nexixpay.rs
hyperswitch_connectors
impl_block
11
rust
null
Nexixpay
api::PaymentsCompleteAuthorize for
impl api::PaymentsCompleteAuthorize for for Nexixpay
null
null
null
null
null
null
null
null
pub async fn update_gsm_rule( state: SessionState, gsm_request: gsm_api_types::GsmUpdateRequest, ) -> RouterResponse<gsm_api_types::GsmResponse> { let db = state.store.as_ref(); let connector = gsm_request.connector.clone(); let flow = gsm_request.flow.clone(); let code = gsm_request.code.clone(...
crates/router/src/core/gsm.rs
router
function_signature
570
rust
null
null
null
null
update_gsm_rule
null
null
null
null
null
null
null
pub fn add_order_by_clause( &mut self, column: impl ToSql<T>, order: impl ToSql<T>, ) -> QueryResult<()> { let column_sql = column .to_sql(&self.table_engine) .change_context(QueryBuildingError::SqlSerializeError) .attach_printable("Error serializi...
crates/analytics/src/query.rs
analytics
function_signature
138
rust
null
null
null
null
add_order_by_clause
null
null
null
null
null
null
null
impl ConnectorSpecifications for Worldpay { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&WORLDPAY_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*WORLDPAY_SUPPORTED_PAYMENT_METHODS) } fn get_s...
crates/hyperswitch_connectors/src/connectors/worldpay.rs
hyperswitch_connectors
impl_block
114
rust
null
Worldpay
ConnectorSpecifications for
impl ConnectorSpecifications for for Worldpay
null
null
null
null
null
null
null
null
pub struct ReconTokenResponse { pub token: Secret<String>, }
crates/api_models/src/recon.rs
api_models
struct_definition
14
rust
ReconTokenResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_active_payments_metrics( &self, metric: &ActivePaymentsMetrics, merchant_id: &common_utils::id_type::MerchantId, publishable_key: &str, time_range: &TimeRange, ) -> types::MetricsResult< HashSet<( ActivePaymentsMetricsBucketIdentifier, ...
crates/analytics/src/lib.rs
analytics
function_signature
202
rust
null
null
null
null
get_active_payments_metrics
null
null
null
null
null
null
null
pub fn api_or_client_or_jwt_auth<'a, T, A>( api_auth: &'a dyn AuthenticateAndFetch<T, A>, client_auth: &'a dyn AuthenticateAndFetch<T, A>, jwt_auth: &'a dyn AuthenticateAndFetch<T, A>, headers: &HeaderMap, ) -> &'a dyn AuthenticateAndFetch<T, A> where { if let Ok(val) = HeaderMapStruct::new(headers)...
crates/router/src/services/authentication.rs
router
function_signature
152
rust
null
null
null
null
api_or_client_or_jwt_auth
null
null
null
null
null
null
null
impl MandateSetup for Signifyd {}
crates/hyperswitch_connectors/src/connectors/signifyd.rs
hyperswitch_connectors
impl_block
9
rust
null
Signifyd
MandateSetup for
impl MandateSetup for for Signifyd
null
null
null
null
null
null
null
null
pub struct TokenizedBankRedirectValue1 { pub data: BankRedirectData, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
18
rust
TokenizedBankRedirectValue1
null
null
null
null
null
null
null
null
null
null
null
pub async fn perform_dynamic_routing_with_open_router<F, D>( state: &SessionState, routable_connectors: Vec<api_routing::RoutableConnectorChoice>, profile: &domain::Profile, payment_data: oss_storage::PaymentAttempt, old_payment_data: &mut D, ) -> RoutingResult<Vec<api_routing::RoutableConnectorChoi...
crates/router/src/core/payments/routing.rs
router
function_signature
575
rust
null
null
null
null
perform_dynamic_routing_with_open_router
null
null
null
null
null
null
null