text stringlengths 65 57.3k | file_path stringlengths 22 92 | module stringclasses 38
values | type stringclasses 7
values | struct_name stringlengths 3 60 ⌀ | impl_count int64 0 60 ⌀ | traits listlengths 0 59 ⌀ | tokens int64 16 8.19k | function_name stringlengths 3 85 ⌀ | type_name stringlengths 1 67 ⌀ | trait_name stringclasses 573
values | method_count int64 0 31 ⌀ | public_method_count int64 0 19 ⌀ | submodule_count int64 0 56 ⌀ | export_count int64 0 9 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
// Function: routing_events_core
// File: crates/analytics/src/routing_events/core.rs
// Module: analytics
pub fn routing_events_core(
pool: &AnalyticsProvider,
req: RoutingEventsRequest,
merchant_id: &common_utils::id_type::MerchantId,
) -> AnalyticsResult<Vec<RoutingEventsResult>> | crates/analytics/src/routing_events/core.rs | analytics | function_signature | null | null | null | 69 | routing_events_core | null | null | null | null | null | null |
// Trait: SecretState
// File: crates/hyperswitch_interfaces/src/secrets_interface/secret_state.rs
// Module: hyperswitch_interfaces
// Documentation: Trait defining the states of a secret
pub trait SecretState | crates/hyperswitch_interfaces/src/secrets_interface/secret_state.rs | hyperswitch_interfaces | trait_definition | null | null | null | 46 | null | null | SecretState | null | null | null | null |
// Struct: NodeData
// File: crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct NodeData | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | NodeData | 0 | [] | 46 | null | null | null | null | null | null | null |
// Struct: CoinbaseRouterData
// File: crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct CoinbaseRouterData<T> | crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs | hyperswitch_connectors | struct_definition | CoinbaseRouterData | 0 | [] | 50 | null | null | null | null | null | null | null |
// Function: create_payment_method_for_confirm
// File: crates/router/src/core/payment_methods.rs
// Module: router
pub fn create_payment_method_for_confirm(
state: &SessionState,
customer_id: &id_type::GlobalCustomerId,
payment_method_id: id_type::GlobalPaymentMethodId,
external_vault_source: Option<i... | crates/router/src/core/payment_methods.rs | router | function_signature | null | null | null | 233 | create_payment_method_for_confirm | null | null | null | null | null | null |
// Implementation: impl MerchantCategoryCode
// File: crates/common_enums/src/enums.rs
// Module: common_enums
// Methods: 1 total (1 public)
impl MerchantCategoryCode | crates/common_enums/src/enums.rs | common_enums | impl_block | null | null | null | 41 | null | MerchantCategoryCode | null | 1 | 1 | null | null |
// File: crates/router/src/core/user_role/role.rs
// Module: router
// Public functions: 9
use std::{cmp, collections::HashSet, ops::Not};
use api_models::user_role::role as role_api;
use common_enums::{EntityType, ParentGroup, PermissionGroup};
use common_utils::generate_id_with_default_len;
use diesel_models::role:... | crates/router/src/core/user_role/role.rs | router | full_file | null | null | null | 4,795 | null | null | null | null | null | null | null |
// Function: get_drainer_stream_name
// File: crates/drainer/src/stream.rs
// Module: drainer
pub fn get_drainer_stream_name(&self, stream_index: u8) -> String | crates/drainer/src/stream.rs | drainer | function_signature | null | null | null | 43 | get_drainer_stream_name | null | null | null | null | null | null |
// Implementation: impl utils::MultipleCaptureSyncResponse for for HelcimPaymentsResponse
// File: crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs
// Module: hyperswitch_connectors
// Methods: 5 total (0 public)
impl utils::MultipleCaptureSyncResponse for for HelcimPaymentsResponse | crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | hyperswitch_connectors | impl_block | null | null | null | 72 | null | HelcimPaymentsResponse | utils::MultipleCaptureSyncResponse for | 5 | 0 | null | null |
// Function: get_metrics
// File: crates/analytics/src/sdk_events/core.rs
// Module: analytics
pub fn get_metrics(
pool: &AnalyticsProvider,
publishable_key: &String,
req: GetSdkEventMetricRequest,
) -> AnalyticsResult<MetricsResponse<MetricsBucketResponse>> | crates/analytics/src/sdk_events/core.rs | analytics | function_signature | null | null | null | 64 | get_metrics | null | null | null | null | null | null |
// Function: retrieve_connector
// File: crates/router/src/core/admin.rs
// Module: router
pub fn retrieve_connector(
state: SessionState,
merchant_context: domain::MerchantContext,
id: id_type::MerchantConnectorAccountId,
) -> RouterResponse<api_models::admin::MerchantConnectorResponse> | crates/router/src/core/admin.rs | router | function_signature | null | null | null | 65 | retrieve_connector | null | null | null | null | null | null |
// Implementation: impl ApiEventMetric for for ToggleBlocklistQuery
// File: crates/api_models/src/blocklist.rs
// Module: api_models
// Methods: 0 total (0 public)
impl ApiEventMetric for for ToggleBlocklistQuery | crates/api_models/src/blocklist.rs | api_models | impl_block | null | null | null | 51 | null | ToggleBlocklistQuery | ApiEventMetric for | 0 | 0 | null | null |
// Function: decide_connector_for_normal_or_recurring_payment
// File: crates/router/src/core/payments.rs
// Module: router
pub fn decide_connector_for_normal_or_recurring_payment<F: Clone, D>(
state: &SessionState,
payment_data: &mut D,
routing_data: &mut storage::RoutingData,
connectors: Vec<api::Con... | crates/router/src/core/payments.rs | router | function_signature | null | null | null | 138 | decide_connector_for_normal_or_recurring_payment | null | null | null | null | null | null |
// Function: new
// File: crates/hyperswitch_connectors/src/connectors/peachpayments.rs
// Module: hyperswitch_connectors
pub fn new() -> &'static Self | crates/hyperswitch_connectors/src/connectors/peachpayments.rs | hyperswitch_connectors | function_signature | null | null | null | 40 | new | null | null | null | null | null | null |
// Implementation: impl Args
// File: crates/test_utils/src/newman_runner.rs
// Module: test_utils
// Methods: 1 total (1 public)
impl Args | crates/test_utils/src/newman_runner.rs | test_utils | impl_block | null | null | null | 36 | null | Args | null | 1 | 1 | null | null |
// Struct: UserName
// File: crates/router/src/types/domain/user.rs
// Module: router
// Implementations: 1
pub struct UserName | crates/router/src/types/domain/user.rs | router | struct_definition | UserName | 1 | [] | 31 | null | null | null | null | null | null | null |
// Function: get_additional_payout_method_data
// File: crates/hyperswitch_domain_models/src/payment_method_data.rs
// Module: hyperswitch_domain_models
pub fn get_additional_payout_method_data(
&self,
) -> Option<payout_method_utils::AdditionalPayoutMethodData> | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | function_signature | null | null | null | 62 | get_additional_payout_method_data | null | null | null | null | null | null |
// Function: retrieve_payment_token_data
// File: crates/router/src/core/payment_methods/utils.rs
// Module: router
pub fn retrieve_payment_token_data(
state: &SessionState,
token: String,
payment_method: Option<&storage_enums::PaymentMethod>,
) -> errors::RouterResult<storage::PaymentTokenData> | crates/router/src/core/payment_methods/utils.rs | router | function_signature | null | null | null | 70 | retrieve_payment_token_data | null | null | null | null | null | null |
// Struct: PayRequest
// File: crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct PayRequest | crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | hyperswitch_connectors | struct_definition | PayRequest | 0 | [] | 45 | null | null | null | null | null | null | null |
// Struct: PlacetopayPsyncRequest
// File: crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct PlacetopayPsyncRequest | crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs | hyperswitch_connectors | struct_definition | PlacetopayPsyncRequest | 0 | [] | 57 | null | null | null | null | null | null | null |
// Struct: TaxjarPaymentsRequest
// File: crates/hyperswitch_connectors/src/connectors/taxjar/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct TaxjarPaymentsRequest | crates/hyperswitch_connectors/src/connectors/taxjar/transformers.rs | hyperswitch_connectors | struct_definition | TaxjarPaymentsRequest | 0 | [] | 50 | null | null | null | null | null | null | null |
// Function: customers_delete
// File: crates/router/src/routes/customers.rs
// Module: router
pub fn customers_delete(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<id_type::CustomerId>,
) -> impl Responder | crates/router/src/routes/customers.rs | router | function_signature | null | null | null | 58 | customers_delete | null | null | null | null | null | null |
// Struct: JpmorganAuthUpdateResponse
// File: crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct JpmorganAuthUpdateResponse | crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | hyperswitch_connectors | struct_definition | JpmorganAuthUpdateResponse | 0 | [] | 54 | null | null | null | null | null | null | null |
// Function: get_payment_method_type
// File: crates/hyperswitch_domain_models/src/payment_method_data.rs
// Module: hyperswitch_domain_models
pub fn get_payment_method_type(&self) -> Option<api_enums::PaymentMethodType> | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | function_signature | null | null | null | 52 | get_payment_method_type | null | null | null | null | null | null |
// Struct: MandateReference
// File: crates/hyperswitch_domain_models/src/router_response_types.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct MandateReference | crates/hyperswitch_domain_models/src/router_response_types.rs | hyperswitch_domain_models | struct_definition | MandateReference | 0 | [] | 43 | null | null | null | null | null | null | null |
// Implementation: impl EuclidParsable for for DummyOutput
// File: crates/euclid/src/frontend/ast/parser.rs
// Module: euclid
// Methods: 1 total (0 public)
impl EuclidParsable for for DummyOutput | crates/euclid/src/frontend/ast/parser.rs | euclid | impl_block | null | null | null | 54 | null | DummyOutput | EuclidParsable for | 1 | 0 | null | null |
// Implementation: impl api::RefundExecute for for Amazonpay
// File: crates/hyperswitch_connectors/src/connectors/amazonpay.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::RefundExecute for for Amazonpay | crates/hyperswitch_connectors/src/connectors/amazonpay.rs | hyperswitch_connectors | impl_block | null | null | null | 60 | null | Amazonpay | api::RefundExecute for | 0 | 0 | null | null |
// File: crates/storage_impl/src/payouts.rs
// Module: storage_impl
pub mod payout_attempt;
#[allow(clippy::module_inception)]
pub mod payouts;
use diesel_models::{payout_attempt::PayoutAttempt, payouts::Payouts};
use crate::redis::kv_store::KvStorePartition;
impl KvStorePartition for Payouts {}
impl KvStorePartiti... | crates/storage_impl/src/payouts.rs | storage_impl | full_file | null | null | null | 85 | null | null | null | null | null | null | null |
// Implementation: impl Iterator for for Keys
// File: crates/hyperswitch_constraint_graph/src/dense_map.rs
// Module: hyperswitch_constraint_graph
// Methods: 1 total (0 public)
impl Iterator for for Keys | crates/hyperswitch_constraint_graph/src/dense_map.rs | hyperswitch_constraint_graph | impl_block | null | null | null | 48 | null | Keys | Iterator for | 1 | 0 | null | null |
// Implementation: impl api::PaymentToken for for Noon
// File: crates/hyperswitch_connectors/src/connectors/noon.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentToken for for Noon | crates/hyperswitch_connectors/src/connectors/noon.rs | hyperswitch_connectors | impl_block | null | null | null | 55 | null | Noon | api::PaymentToken for | 0 | 0 | null | null |
// Struct: SantanderCalendar
// File: crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct SantanderCalendar | crates/hyperswitch_connectors/src/connectors/santander/transformers.rs | hyperswitch_connectors | struct_definition | SantanderCalendar | 0 | [] | 48 | null | null | null | null | null | null | null |
// Function: new
// File: crates/hyperswitch_domain_models/src/router_flow_types/webhooks.rs
// Module: hyperswitch_domain_models
pub fn new(txn_id: masking::Secret<String>) -> Self | crates/hyperswitch_domain_models/src/router_flow_types/webhooks.rs | hyperswitch_domain_models | function_signature | null | null | null | 45 | new | null | null | null | null | null | null |
// File: crates/router/tests/connectors/opayo.rs
// Module: router
use std::str::FromStr;
use masking::Secret;
use router::types::{self, domain, storage::enums};
use crate::{
connector_auth,
utils::{self, ConnectorActions},
};
#[derive(Clone, Copy)]
struct OpayoTest;
impl ConnectorActions for OpayoTest {}
i... | crates/router/tests/connectors/opayo.rs | router | full_file | null | null | null | 3,125 | null | null | null | null | null | null | null |
// Struct: FacilitapayWebhookNotification
// File: crates/hyperswitch_connectors/src/connectors/facilitapay/responses.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct FacilitapayWebhookNotification | crates/hyperswitch_connectors/src/connectors/facilitapay/responses.rs | hyperswitch_connectors | struct_definition | FacilitapayWebhookNotification | 0 | [] | 57 | null | null | null | null | null | null | null |
// Implementation: impl Serialize for for FlatMapEvent
// File: crates/events/src/lib.rs
// Module: events
// Methods: 1 total (0 public)
impl Serialize for for FlatMapEvent | crates/events/src/lib.rs | events | impl_block | null | null | null | 42 | null | FlatMapEvent | Serialize for | 1 | 0 | null | null |
// Struct: PlacetopayInstrument
// File: crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct PlacetopayInstrument | crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs | hyperswitch_connectors | struct_definition | PlacetopayInstrument | 0 | [] | 53 | null | null | null | null | null | null | null |
// Struct: Tokenex
// File: crates/hyperswitch_connectors/src/connectors/tokenex.rs
// Module: hyperswitch_connectors
// Implementations: 19
// Traits: api::Payment, api::PaymentSession, api::ConnectorAccessToken, api::MandateSetup, api::PaymentAuthorize, api::PaymentSync, api::PaymentCapture, api::PaymentVoid, api::Re... | crates/hyperswitch_connectors/src/connectors/tokenex.rs | hyperswitch_connectors | struct_definition | Tokenex | 19 | [
"api::Payment",
"api::PaymentSession",
"api::ConnectorAccessToken",
"api::MandateSetup",
"api::PaymentAuthorize",
"api::PaymentSync",
"api::PaymentCapture",
"api::PaymentVoid",
"api::Refund",
"api::RefundExecute",
"api::RefundSync",
"api::PaymentToken",
"api::ExternalVaultInsert",
"api::Ex... | 142 | null | null | null | null | null | null | null |
// Function: get_payment_distribution
// File: crates/analytics/src/lib.rs
// Module: analytics
pub fn get_payment_distribution(
&self,
distribution: &PaymentDistributionBody,
dimensions: &[PaymentDimensions],
auth: &AuthInfo,
filters: &PaymentFilters,
granularity: Optio... | crates/analytics/src/lib.rs | analytics | function_signature | null | null | null | 95 | get_payment_distribution | null | null | null | null | null | null |
// File: crates/router_env/tests/logger.rs
// Module: router_env
#![allow(clippy::unwrap_used)]
mod test_module;
use ::config::ConfigError;
use router_env::TelemetryGuard;
use self::test_module::fn_with_colon;
fn logger() -> error_stack::Result<&'static TelemetryGuard, ConfigError> {
use std::sync::OnceLock;
... | crates/router_env/tests/logger.rs | router_env | full_file | null | null | null | 186 | null | null | null | null | null | null | null |
// Function: get_feature_metadata
// File: crates/hyperswitch_domain_models/src/payments.rs
// Module: hyperswitch_domain_models
pub fn get_feature_metadata(&self) -> Option<FeatureMetadata> | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | function_signature | null | null | null | 44 | get_feature_metadata | null | null | null | null | null | null |
// Struct: NoonSubscriptionData
// File: crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct NoonSubscriptionData | crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | hyperswitch_connectors | struct_definition | NoonSubscriptionData | 0 | [] | 47 | null | null | null | null | null | null | null |
// Trait: VaultingInterface
// File: crates/router/src/types/payment_methods.rs
// Module: router
pub trait VaultingInterface | crates/router/src/types/payment_methods.rs | router | trait_definition | null | null | null | 28 | null | null | VaultingInterface | null | null | null | null |
// Implementation: impl PaymentMetricAccumulator for for ProcessedAmountAccumulator
// File: crates/analytics/src/payments/accumulator.rs
// Module: analytics
// Methods: 2 total (0 public)
impl PaymentMetricAccumulator for for ProcessedAmountAccumulator | crates/analytics/src/payments/accumulator.rs | analytics | impl_block | null | null | null | 60 | null | ProcessedAmountAccumulator | PaymentMetricAccumulator for | 2 | 0 | null | null |
// Struct: PaymentAccountInformation
// File: crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct PaymentAccountInformation | crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs | hyperswitch_connectors | struct_definition | PaymentAccountInformation | 0 | [] | 50 | null | null | null | null | null | null | null |
// Struct: AciPaymentWebhookPayload
// File: crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct AciPaymentWebhookPayload | crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | hyperswitch_connectors | struct_definition | AciPaymentWebhookPayload | 0 | [] | 53 | null | null | null | null | null | null | null |
// Function: mock_delete_card
// File: crates/router/src/core/payment_methods/cards.rs
// Module: router
pub fn mock_delete_card<'a>(
db: &dyn db::StorageInterface,
card_id: &'a str,
) -> errors::CustomResult<payment_methods::DeleteCardResponse, errors::VaultError> | crates/router/src/core/payment_methods/cards.rs | router | function_signature | null | null | null | 69 | mock_delete_card | null | null | null | null | null | null |
// File: crates/router/src/routes/relay.rs
// Module: router
// Public functions: 2
use actix_web::{web, Responder};
use router_env::{instrument, tracing, Flow};
use crate::{
self as app,
core::{api_locking, relay},
services::{api, authentication as auth},
};
#[instrument(skip_all, fields(flow = ?Flow::R... | crates/router/src/routes/relay.rs | router | full_file | null | null | null | 646 | null | null | null | null | null | null | null |
// Function: two_digits
// File: crates/cards/src/lib.rs
// Module: cards
pub fn two_digits(&self) -> String | crates/cards/src/lib.rs | cards | function_signature | null | null | null | 29 | two_digits | null | null | null | null | null | null |
// Implementation: impl EmailData for for VerifyEmail
// File: crates/router/src/services/email/types.rs
// Module: router
// Methods: 1 total (0 public)
impl EmailData for for VerifyEmail | crates/router/src/services/email/types.rs | router | impl_block | null | null | null | 44 | null | VerifyEmail | EmailData for | 1 | 0 | null | null |
// Struct: TokenexRouterData
// File: crates/hyperswitch_connectors/src/connectors/tokenex/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct TokenexRouterData<T> | crates/hyperswitch_connectors/src/connectors/tokenex/transformers.rs | hyperswitch_connectors | struct_definition | TokenexRouterData | 0 | [] | 51 | null | null | null | null | null | null | null |
// Function: get_masked_keys
// File: crates/hyperswitch_domain_models/src/router_data.rs
// Module: hyperswitch_domain_models
pub fn get_masked_keys(&self) -> Self | crates/hyperswitch_domain_models/src/router_data.rs | hyperswitch_domain_models | function_signature | null | null | null | 42 | get_masked_keys | null | null | null | null | null | null |
#[schema(value_type = Option<Bank>)]
#[serde(skip_serializing_if = "Option::is_none")]
pub bank_transfer: Option<payouts::Bank>,
#[schema(value_type = Option<PrimitiveDateTime>, example = "2024-02-24T11:04:09.922Z")]
#[serde(default, with = "common_utils::custom_serde::iso8601::option")]
pub la... | crates/api_models/src/payment_methods.rs#chunk1 | api_models | chunk | null | null | null | 8,191 | null | null | null | null | null | null | null |
// Implementation: impl EmailSettings
// File: crates/external_services/src/email.rs
// Module: external_services
// Methods: 1 total (1 public)
impl EmailSettings | crates/external_services/src/email.rs | external_services | impl_block | null | null | null | 37 | null | EmailSettings | null | 1 | 1 | null | null |
// Implementation: impl api::PaymentToken for for Prophetpay
// File: crates/hyperswitch_connectors/src/connectors/prophetpay.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentToken for for Prophetpay | crates/hyperswitch_connectors/src/connectors/prophetpay.rs | hyperswitch_connectors | impl_block | null | null | null | 58 | null | Prophetpay | api::PaymentToken for | 0 | 0 | null | null |
// Function: connector_create
// File: crates/openapi/src/routes/merchant_connector_account.rs
// Module: openapi
pub fn connector_create() | crates/openapi/src/routes/merchant_connector_account.rs | openapi | function_signature | null | null | null | 31 | connector_create | null | null | null | null | null | null |
// Function: apply_changeset
// File: crates/diesel_models/src/merchant_account.rs
// Module: diesel_models
pub fn apply_changeset(self, source: MerchantAccount) -> MerchantAccount | crates/diesel_models/src/merchant_account.rs | diesel_models | function_signature | null | null | null | 41 | apply_changeset | null | null | null | null | null | null |
// Function: update_payouts_and_payout_attempt
// File: crates/router/src/core/payouts/helpers.rs
// Module: router
pub fn update_payouts_and_payout_attempt(
_payout_data: &mut PayoutData,
_merchant_context: &domain::MerchantContext,
_req: &payouts::PayoutCreateRequest,
_state: &SessionState,
) -> Cust... | crates/router/src/core/payouts/helpers.rs | router | function_signature | null | null | null | 96 | update_payouts_and_payout_attempt | null | null | null | null | null | null |
// Function: three_ds_decision_rule_execute
// File: crates/openapi/src/routes/three_ds_decision_rule.rs
// Module: openapi
pub fn three_ds_decision_rule_execute() | crates/openapi/src/routes/three_ds_decision_rule.rs | openapi | function_signature | null | null | null | 38 | three_ds_decision_rule_execute | null | null | null | null | null | null |
// Module Structure
// File: crates/hyperswitch_connectors/src/connectors/checkout.rs
// Module: hyperswitch_connectors
// Public submodules:
pub mod transformers;
| crates/hyperswitch_connectors/src/connectors/checkout.rs | hyperswitch_connectors | module_structure | null | null | null | 38 | null | null | null | null | null | 1 | 0 |
// Function: validate_card_expiry
// File: crates/payment_methods/src/core/migration.rs
// Module: payment_methods
pub fn validate_card_expiry(
card_exp_month: &masking::Secret<String>,
card_exp_year: &masking::Secret<String>,
) -> errors::CustomResult<(), errors::ApiErrorResponse> | crates/payment_methods/src/core/migration.rs | payment_methods | function_signature | null | null | null | 67 | validate_card_expiry | null | null | null | null | null | null |
// Implementation: impl PaymentCapture for for Plaid
// File: crates/hyperswitch_connectors/src/connectors/plaid.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl PaymentCapture for for Plaid | crates/hyperswitch_connectors/src/connectors/plaid.rs | hyperswitch_connectors | impl_block | null | null | null | 53 | null | Plaid | PaymentCapture for | 0 | 0 | null | null |
// Function: fetch_user_roles_by_payload
// File: crates/router/src/utils/user_role.rs
// Module: router
pub fn fetch_user_roles_by_payload(
state: &SessionState,
payload: ListUserRolesByOrgIdPayload<'_>,
request_entity_type: Option<EntityType>,
) -> UserResult<HashSet<UserRole>> | crates/router/src/utils/user_role.rs | router | function_signature | null | null | null | 71 | fetch_user_roles_by_payload | null | null | null | null | null | null |
// Module Structure
// File: crates/router/src/routes/payments.rs
// Module: router
// Public submodules:
pub mod helpers;
| crates/router/src/routes/payments.rs | router | module_structure | null | null | null | 29 | null | null | null | null | null | 1 | 0 |
// Function: list_all_themes_in_lineage
// File: crates/router/src/routes/user/theme.rs
// Module: router
pub fn list_all_themes_in_lineage(
state: web::Data<AppState>,
req: HttpRequest,
query: web::Query<theme_api::EntityTypeQueryParam>,
) -> HttpResponse | crates/router/src/routes/user/theme.rs | router | function_signature | null | null | null | 67 | list_all_themes_in_lineage | null | null | null | null | null | null |
// File: crates/payment_methods/src/configs/settings.rs
// Module: payment_methods
// Public structs: 15
use std::collections::{HashMap, HashSet};
use api_models::{enums, payment_methods::RequiredFieldInfo};
use common_utils::errors::CustomResult;
use hyperswitch_interfaces::secrets_interface::{
secret_handler::S... | crates/payment_methods/src/configs/settings.rs | payment_methods | full_file | null | null | null | 1,193 | null | null | null | null | null | null | null |
// File: crates/router/src/core/errors/user.rs
// Module: router
// Public functions: 1
use common_utils::errors::CustomResult;
use crate::services::ApplicationResponse;
pub type UserResult<T> = CustomResult<T, UserErrors>;
pub type UserResponse<T> = CustomResult<ApplicationResponse<T>, UserErrors>;
pub mod sample_d... | crates/router/src/core/errors/user.rs | router | full_file | null | null | null | 3,682 | null | null | null | null | null | null | null |
// Struct: CustomerDeleteResponse
// File: crates/api_models/src/customers.rs
// Module: api_models
// Implementations: 0
pub struct CustomerDeleteResponse | crates/api_models/src/customers.rs | api_models | struct_definition | CustomerDeleteResponse | 0 | [] | 36 | null | null | null | null | null | null | null |
// Implementation: impl api::Refund for for Trustpay
// File: crates/hyperswitch_connectors/src/connectors/trustpay.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::Refund for for Trustpay | crates/hyperswitch_connectors/src/connectors/trustpay.rs | hyperswitch_connectors | impl_block | null | null | null | 58 | null | Trustpay | api::Refund for | 0 | 0 | null | null |
// Struct: MandateDetails
// File: crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct MandateDetails | crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | hyperswitch_connectors | struct_definition | MandateDetails | 0 | [] | 48 | null | null | null | null | null | null | null |
// Implementation: impl api::PaymentAuthorize for for Santander
// File: crates/hyperswitch_connectors/src/connectors/santander.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentAuthorize for for Santander | crates/hyperswitch_connectors/src/connectors/santander.rs | hyperswitch_connectors | impl_block | null | null | null | 58 | null | Santander | api::PaymentAuthorize for | 0 | 0 | null | null |
// Struct: NordeaResponseLinks
// File: crates/hyperswitch_connectors/src/connectors/nordea/responses.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct NordeaResponseLinks | crates/hyperswitch_connectors/src/connectors/nordea/responses.rs | hyperswitch_connectors | struct_definition | NordeaResponseLinks | 0 | [] | 49 | null | null | null | null | null | null | null |
// Struct: AccessTokenAuthenticationResponse
// File: crates/hyperswitch_domain_models/src/router_data.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct AccessTokenAuthenticationResponse | crates/hyperswitch_domain_models/src/router_data.rs | hyperswitch_domain_models | struct_definition | AccessTokenAuthenticationResponse | 0 | [] | 42 | null | null | null | null | null | null | null |
// Implementation: impl api::MandateSetup for for Paystack
// File: crates/hyperswitch_connectors/src/connectors/paystack.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::MandateSetup for for Paystack | crates/hyperswitch_connectors/src/connectors/paystack.rs | hyperswitch_connectors | impl_block | null | null | null | 61 | null | Paystack | api::MandateSetup for | 0 | 0 | null | null |
// Function: get_total_surcharge_amount
// File: crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
// Module: hyperswitch_domain_models
pub fn get_total_surcharge_amount(&self) -> Option<MinorUnit> | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | function_signature | null | null | null | 50 | get_total_surcharge_amount | null | null | null | null | null | null |
// Function: terminate_two_factor_auth
// File: crates/router/src/routes/user.rs
// Module: router
pub fn terminate_two_factor_auth(
state: web::Data<AppState>,
req: HttpRequest,
query: web::Query<user_api::SkipTwoFactorAuthQueryParam>,
) -> HttpResponse | crates/router/src/routes/user.rs | router | function_signature | null | null | null | 63 | terminate_two_factor_auth | null | null | null | null | null | null |
// Function: log_payment_intent_delete
// File: crates/router/src/services/kafka.rs
// Module: router
pub fn log_payment_intent_delete(
&self,
delete_old_intent: &PaymentIntent,
tenant_id: TenantID,
infra_values: Option<Value>,
) -> MQResult<()> | crates/router/src/services/kafka.rs | router | function_signature | null | null | null | 64 | log_payment_intent_delete | null | null | null | null | null | null |
// Implementation: impl std::str::FromStr for for PaymentReferenceId
// File: crates/common_utils/src/id_type/payment.rs
// Module: common_utils
// Methods: 1 total (0 public)
impl std::str::FromStr for for PaymentReferenceId | crates/common_utils/src/id_type/payment.rs | common_utils | impl_block | null | null | null | 56 | null | PaymentReferenceId | std::str::FromStr for | 1 | 0 | null | null |
// File: crates/hyperswitch_domain_models/src/router_response_types.rs
// Module: hyperswitch_domain_models
// Public functions: 9
// Public structs: 13
pub mod disputes;
pub mod fraud_check;
pub mod revenue_recovery;
pub mod subscriptions;
use std::collections::HashMap;
use api_models::payments::AddressDetails;
use ... | crates/hyperswitch_domain_models/src/router_response_types.rs | hyperswitch_domain_models | full_file | null | null | null | 4,768 | null | null | null | null | null | null | null |
// Struct: FailureReasonsDistributionAccumulator
// File: crates/analytics/src/payments/accumulator.rs
// Module: analytics
// Implementations: 1
// Traits: PaymentMetricAccumulator
pub struct FailureReasonsDistributionAccumulator | crates/analytics/src/payments/accumulator.rs | analytics | struct_definition | FailureReasonsDistributionAccumulator | 1 | [
"PaymentMetricAccumulator"
] | 54 | null | null | null | null | null | null | null |
// Struct: RefundData
// File: crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct RefundData | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | RefundData | 0 | [] | 48 | null | null | null | null | null | null | null |
// Function: update_surcharge_config_id
// File: crates/api_models/src/routing.rs
// Module: api_models
pub fn update_surcharge_config_id(&mut self, ids: String) | crates/api_models/src/routing.rs | api_models | function_signature | null | null | null | 41 | update_surcharge_config_id | null | null | null | null | null | null |
// Struct: Tokenization
// File: crates/diesel_models/src/tokenization.rs
// Module: diesel_models
// Implementations: 0
pub struct Tokenization | crates/diesel_models/src/tokenization.rs | diesel_models | struct_definition | Tokenization | 0 | [] | 35 | null | null | null | null | null | null | null |
// Struct: GetSubscriptionPlanPricesRequest
// File: crates/hyperswitch_domain_models/src/router_request_types/subscriptions.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct GetSubscriptionPlanPricesRequest | crates/hyperswitch_domain_models/src/router_request_types/subscriptions.rs | hyperswitch_domain_models | struct_definition | GetSubscriptionPlanPricesRequest | 0 | [] | 49 | null | null | null | null | null | null | null |
// Struct: PaypalQueryParams
// File: crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct PaypalQueryParams | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs | hyperswitch_connectors | struct_definition | PaypalQueryParams | 0 | [] | 49 | null | null | null | null | null | null | null |
test_mode: test_mode_in_config,
};
create_payout_link_db_entry(state, merchant_id, &data, req.return_url.clone()).await
}
pub async fn create_payout_link_db_entry(
state: &SessionState,
merchant_id: &id_type::MerchantId,
payout_link_data: &PayoutLinkData,
return_url: Option<String>,
) ... | crates/router/src/core/payouts.rs#chunk3 | router | chunk | null | null | null | 480 | null | null | null | null | null | null | null |
// Implementation: impl Xendit
// File: crates/hyperswitch_connectors/src/connectors/xendit.rs
// Module: hyperswitch_connectors
// Methods: 1 total (1 public)
impl Xendit | crates/hyperswitch_connectors/src/connectors/xendit.rs | hyperswitch_connectors | impl_block | null | null | null | 48 | null | Xendit | null | 1 | 1 | null | null |
// Struct: CybersourceRecipientInfo
// File: crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct CybersourceRecipientInfo | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | CybersourceRecipientInfo | 0 | [] | 53 | null | null | null | null | null | null | null |
// Struct: ErrorResponse
// File: crates/api_models/src/errors/types.rs
// Module: api_models
// Implementations: 0
pub struct ErrorResponse | crates/api_models/src/errors/types.rs | api_models | struct_definition | ErrorResponse | 0 | [] | 32 | null | null | null | null | null | null | null |
// File: crates/hyperswitch_connectors/src/connectors/wise.rs
// Module: hyperswitch_connectors
// Public functions: 1
// Public structs: 1
pub mod transformers;
use api_models::webhooks::IncomingWebhookEvent;
#[cfg(feature = "payouts")]
use common_utils::request::{Method, RequestBuilder, RequestContent};
#[cfg(featu... | crates/hyperswitch_connectors/src/connectors/wise.rs | hyperswitch_connectors | full_file | null | null | null | 7,059 | null | null | null | null | null | null | null |
// Function: list_merchant_account
// File: crates/router/src/core/admin.rs
// Module: router
pub fn list_merchant_account(
state: SessionState,
organization_id: api_models::organization::OrganizationId,
) -> RouterResponse<Vec<api::MerchantAccountResponse>> | crates/router/src/core/admin.rs | router | function_signature | null | null | null | 60 | list_merchant_account | null | null | null | null | null | null |
// Struct: RouterRequestBuilder
// File: crates/router/src/services/api/client.rs
// Module: router
// Implementations: 1
// Traits: RequestBuilder
pub struct RouterRequestBuilder | crates/router/src/services/api/client.rs | router | struct_definition | RouterRequestBuilder | 1 | [
"RequestBuilder"
] | 41 | null | null | null | null | null | null | null |
// Struct: NomupayPaymentRequest
// File: crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct NomupayPaymentRequest | crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs | hyperswitch_connectors | struct_definition | NomupayPaymentRequest | 0 | [] | 53 | null | null | null | null | null | null | null |
// Function: tokenize_in_router_when_confirm_false_or_external_authentication
// File: crates/router/src/core/payments.rs
// Module: router
pub fn tokenize_in_router_when_confirm_false_or_external_authentication<F, Req, D>(
state: &SessionState,
operation: &BoxedOperation<'_, F, Req, D>,
payment_data: &mut... | crates/router/src/core/payments.rs | router | function_signature | null | null | null | 155 | tokenize_in_router_when_confirm_false_or_external_authentication | null | null | null | null | null | null |
// Function: make_new_payment_attempt
// File: crates/router/src/core/payments/retry.rs
// Module: router
pub fn make_new_payment_attempt(
connector: String,
old_payment_attempt: storage::PaymentAttempt,
new_attempt_count: i16,
is_step_up: bool,
setup_future_usage_intent: Option<storage_enums::Futu... | crates/router/src/core/payments/retry.rs | router | function_signature | null | null | null | 86 | make_new_payment_attempt | null | null | null | null | null | null |
// Struct: PostAuthenticationDetails
// File: crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct PostAuthenticationDetails | crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs | hyperswitch_domain_models | struct_definition | PostAuthenticationDetails | 0 | [] | 47 | null | null | null | null | null | null | null |
// Implementation: impl ConnectorValidation for for Chargebee
// File: crates/hyperswitch_connectors/src/connectors/chargebee.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl ConnectorValidation for for Chargebee | crates/hyperswitch_connectors/src/connectors/chargebee.rs | hyperswitch_connectors | impl_block | null | null | null | 54 | null | Chargebee | ConnectorValidation for | 0 | 0 | null | null |
// Implementation: impl api::Payouts for for Adyen
// File: crates/hyperswitch_connectors/src/connectors/adyen.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::Payouts for for Adyen | crates/hyperswitch_connectors/src/connectors/adyen.rs | hyperswitch_connectors | impl_block | null | null | null | 60 | null | Adyen | api::Payouts for | 0 | 0 | null | null |
// File: crates/common_utils/src/id_type/profile_acquirer.rs
// Module: common_utils
use std::str::FromStr;
crate::id_type!(
ProfileAcquirerId,
"A type for profile_acquirer_id that can be used for profile acquirer ids"
);
crate::impl_id_type_methods!(ProfileAcquirerId, "profile_acquirer_id");
// This is to d... | crates/common_utils/src/id_type/profile_acquirer.rs | common_utils | full_file | null | null | null | 486 | null | null | null | null | null | null | null |
// Function: retrieve_poll_status
// File: crates/router/src/routes/poll.rs
// Module: router
pub fn retrieve_poll_status(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<String>,
) -> HttpResponse | crates/router/src/routes/poll.rs | router | function_signature | null | null | null | 54 | retrieve_poll_status | null | null | null | null | null | null |
// Struct: StripePaymentCancelRequest
// File: crates/router/src/compatibility/stripe/setup_intents/types.rs
// Module: router
// Implementations: 0
pub struct StripePaymentCancelRequest | crates/router/src/compatibility/stripe/setup_intents/types.rs | router | struct_definition | StripePaymentCancelRequest | 0 | [] | 43 | null | null | null | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.