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: verify_recovery_code
// File: crates/router/src/routes/user.rs
// Module: router
pub fn verify_recovery_code(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<user_api::VerifyRecoveryCodeRequest>,
) -> HttpResponse | crates/router/src/routes/user.rs | router | function_signature | null | null | null | 62 | verify_recovery_code | null | null | null | null | null | null |
// Struct: AuthSelectRequest
// File: crates/api_models/src/user.rs
// Module: api_models
// Implementations: 0
pub struct AuthSelectRequest | crates/api_models/src/user.rs | api_models | struct_definition | AuthSelectRequest | 0 | [] | 35 | null | null | null | null | null | null | null |
// Struct: DisputeFiltersResponse
// File: crates/api_models/src/analytics.rs
// Module: api_models
// Implementations: 0
pub struct DisputeFiltersResponse | crates/api_models/src/analytics.rs | api_models | struct_definition | DisputeFiltersResponse | 0 | [] | 38 | null | null | null | null | null | null | null |
// Implementation: impl api::PaymentToken for for Nordea
// File: crates/hyperswitch_connectors/src/connectors/nordea.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentToken for for Nordea | crates/hyperswitch_connectors/src/connectors/nordea.rs | hyperswitch_connectors | impl_block | null | null | null | 58 | null | Nordea | api::PaymentToken for | 0 | 0 | null | null |
// Implementation: impl Phonepe
// File: crates/hyperswitch_connectors/src/connectors/phonepe.rs
// Module: hyperswitch_connectors
// Methods: 1 total (1 public)
impl Phonepe | crates/hyperswitch_connectors/src/connectors/phonepe.rs | hyperswitch_connectors | impl_block | null | null | null | 46 | null | Phonepe | null | 1 | 1 | null | null |
// Struct: PaymentsSyncData
// File: crates/hyperswitch_domain_models/src/router_request_types.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct PaymentsSyncData | crates/hyperswitch_domain_models/src/router_request_types.rs | hyperswitch_domain_models | struct_definition | PaymentsSyncData | 0 | [] | 43 | null | null | null | null | null | null | null |
// File: crates/analytics/src/sdk_events/metrics/payment_method_selected_count.rs
// Module: analytics
use std::collections::HashSet;
use api_models::analytics::{
sdk_events::{
SdkEventDimensions, SdkEventFilters, SdkEventMetricsBucketIdentifier, SdkEventNames,
},
Granularity, TimeRange,
};
use co... | crates/analytics/src/sdk_events/metrics/payment_method_selected_count.rs | analytics | full_file | null | null | null | 804 | null | null | null | null | null | null | null |
// Struct: SantanderPSyncBoletoRequest
// File: crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct SantanderPSyncBoletoRequest | crates/hyperswitch_connectors/src/connectors/santander/transformers.rs | hyperswitch_connectors | struct_definition | SantanderPSyncBoletoRequest | 0 | [] | 58 | null | null | null | null | null | null | null |
// Function: update_pt_status_based_on_attempt_status_for_payments_sync
// File: crates/router/src/core/revenue_recovery/types.rs
// Module: router
pub fn update_pt_status_based_on_attempt_status_for_payments_sync(
&self,
state: &SessionState,
payment_intent: &PaymentIntent,
process_tra... | crates/router/src/core/revenue_recovery/types.rs | router | function_signature | null | null | null | 140 | update_pt_status_based_on_attempt_status_for_payments_sync | null | null | null | null | null | null |
// Struct: FileInfo
// File: crates/hyperswitch_domain_models/src/router_response_types/disputes.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct FileInfo | crates/hyperswitch_domain_models/src/router_response_types/disputes.rs | hyperswitch_domain_models | struct_definition | FileInfo | 0 | [] | 42 | null | null | null | null | null | null | null |
// Function: insert
// File: crates/diesel_models/src/query/cards_info.rs
// Module: diesel_models
pub fn insert(self, conn: &PgPooledConn) -> StorageResult<Self> | crates/diesel_models/src/query/cards_info.rs | diesel_models | function_signature | null | null | null | 42 | insert | null | null | null | null | null | null |
// Struct: PaymentLinkConfig
// File: crates/api_models/src/admin.rs
// Module: api_models
// Implementations: 0
pub struct PaymentLinkConfig | crates/api_models/src/admin.rs | api_models | struct_definition | PaymentLinkConfig | 0 | [] | 35 | null | null | null | null | null | null | null |
// Struct: ApiModelMetaData
// File: crates/connector_configs/src/common_config.rs
// Module: connector_configs
// Implementations: 0
pub struct ApiModelMetaData | crates/connector_configs/src/common_config.rs | connector_configs | struct_definition | ApiModelMetaData | 0 | [] | 37 | null | null | null | null | null | null | null |
// File: crates/injector/src/injector.rs
// Module: injector
// Public functions: 3
// Public structs: 2
pub mod core {
use std::collections::HashMap;
use async_trait::async_trait;
use common_utils::request::{Method, RequestBuilder, RequestContent};
use error_stack::{self, ResultExt};
use masking:... | crates/injector/src/injector.rs | injector | full_file | null | null | null | 6,964 | null | null | null | null | null | null | null |
// Struct: MandatePaymentMethodData
// File: crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct MandatePaymentMethodData | crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs | hyperswitch_connectors | struct_definition | MandatePaymentMethodData | 0 | [] | 50 | null | null | null | null | null | null | null |
// Implementation: impl Settings
// File: crates/drainer/src/settings.rs
// Module: drainer
// Methods: 3 total (3 public)
impl Settings | crates/drainer/src/settings.rs | drainer | impl_block | null | null | null | 34 | null | Settings | null | 3 | 3 | null | null |
// File: crates/router/src/core/pm_auth/transformers.rs
// Module: router
use pm_auth::types as pm_auth_types;
use crate::{core::errors, types, types::transformers::ForeignTryFrom};
impl From<types::MerchantAccountData> for pm_auth_types::MerchantAccountData {
fn from(from: types::MerchantAccountData) -> Self {
... | crates/router/src/core/pm_auth/transformers.rs | router | full_file | null | null | null | 610 | null | null | null | null | null | null | null |
// Implementation: impl Display for for CustomJsonError
// File: crates/router/src/utils.rs
// Module: router
// Methods: 1 total (0 public)
impl Display for for CustomJsonError | crates/router/src/utils.rs | router | impl_block | null | null | null | 42 | null | CustomJsonError | Display for | 1 | 0 | null | null |
// Struct: MandateNew
// File: crates/diesel_models/src/mandate.rs
// Module: diesel_models
// Implementations: 1
pub struct MandateNew | crates/diesel_models/src/mandate.rs | diesel_models | struct_definition | MandateNew | 1 | [] | 38 | null | null | null | null | null | null | null |
// Function: get_connector_error_type
// File: crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs
// Module: hyperswitch_connectors
pub fn get_connector_error_type(&self) -> errors::ConnectorError | crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs | hyperswitch_connectors | function_signature | null | null | null | 51 | get_connector_error_type | null | null | null | null | null | null |
// Function: check_if_already_exists_in_db
// File: crates/router/src/types/domain/user.rs
// Module: router
pub fn check_if_already_exists_in_db(&self, state: SessionState) -> UserResult<()> | crates/router/src/types/domain/user.rs | router | function_signature | null | null | null | 46 | check_if_already_exists_in_db | null | null | null | null | null | null |
// File: crates/hyperswitch_connectors/src/connectors/santander.rs
// Module: hyperswitch_connectors
// Public functions: 1
// Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use base64::Engine;
use common_enums::enums;
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::{ByteS... | crates/hyperswitch_connectors/src/connectors/santander.rs | hyperswitch_connectors | full_file | null | null | null | 8,013 | null | null | null | null | null | null | null |
// Function: update_by_id
// File: crates/diesel_models/src/query/customers.rs
// Module: diesel_models
pub fn update_by_id(
conn: &PgPooledConn,
id: id_type::GlobalCustomerId,
customer: CustomerUpdateInternal,
) -> StorageResult<Self> | crates/diesel_models/src/query/customers.rs | diesel_models | function_signature | null | null | null | 64 | update_by_id | null | null | null | null | null | null |
// File: crates/hsdev/src/main.rs
// Module: hsdev
// Public functions: 1
#![allow(clippy::print_stdout, clippy::print_stderr)]
use clap::{Parser, ValueHint};
use diesel::{pg::PgConnection, Connection};
use diesel_migrations::{FileBasedMigrations, HarnessWithOutput, MigrationHarness};
use toml::Value;
mod input_file... | crates/hsdev/src/main.rs | hsdev | full_file | null | null | null | 975 | null | null | null | null | null | null | null |
// Struct: ExternalVaultProxyFlowData
// File: crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct ExternalVaultProxyFlowData | crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs | hyperswitch_domain_models | struct_definition | ExternalVaultProxyFlowData | 0 | [] | 52 | null | null | null | null | null | null | null |
// Implementation: impl PaymentMethod
// File: crates/diesel_models/src/query/payment_method.rs
// Module: diesel_models
// Methods: 10 total (0 public)
impl PaymentMethod | crates/diesel_models/src/query/payment_method.rs | diesel_models | impl_block | null | null | null | 40 | null | PaymentMethod | null | 10 | 0 | null | null |
// Function: get_merchant_cgraph
// File: crates/router/src/core/payments/routing.rs
// Module: router
pub fn get_merchant_cgraph(
state: &SessionState,
key_store: &domain::MerchantKeyStore,
profile_id: &common_utils::id_type::ProfileId,
transaction_type: &api_enums::TransactionType,
) -> RoutingResult... | crates/router/src/core/payments/routing.rs | router | function_signature | null | null | null | 102 | get_merchant_cgraph | null | null | null | null | null | null |
// Implementation: impl IncomingWebhook for for Threedsecureio
// File: crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
// Module: hyperswitch_connectors
// Methods: 3 total (0 public)
impl IncomingWebhook for for Threedsecureio | crates/hyperswitch_connectors/src/connectors/threedsecureio.rs | hyperswitch_connectors | impl_block | null | null | null | 61 | null | Threedsecureio | IncomingWebhook for | 3 | 0 | null | null |
// Module Structure
// File: crates/router/src/core/blocklist.rs
// Module: router
// Public submodules:
pub mod transformers;
pub mod utils;
| crates/router/src/core/blocklist.rs | router | module_structure | null | null | null | 33 | null | null | null | null | null | 2 | 0 |
// Implementation: impl RoutingApproach
// File: crates/common_enums/src/enums.rs
// Module: common_enums
// Methods: 1 total (1 public)
impl RoutingApproach | crates/common_enums/src/enums.rs | common_enums | impl_block | null | null | null | 41 | null | RoutingApproach | null | 1 | 1 | null | null |
// Function: new
// File: crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
// Module: hyperswitch_domain_models
pub fn new(
order_amount: MinorUnit,
shipping_cost: Option<MinorUnit>,
order_tax_amount: Option<MinorUnit>,
surcharge_amount: Option<MinorUnit>,
tax_on... | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | function_signature | null | null | null | 85 | new | null | null | null | null | null | null |
// Struct: PaymentMethodDetails
// File: crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct PaymentMethodDetails | crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs | hyperswitch_connectors | struct_definition | PaymentMethodDetails | 0 | [] | 47 | null | null | null | null | null | null | null |
// File: crates/router_derive/src/macros/schema/helpers.rs
// Module: router_derive
// Public structs: 1
use proc_macro2::TokenStream;
use quote::ToTokens;
use syn::{parse::Parse, Field, LitInt, LitStr, Token, TypePath};
use crate::macros::helpers::{get_metadata_inner, occurrence_error};
mod keyword {
use syn::c... | crates/router_derive/src/macros/schema/helpers.rs | router_derive | full_file | null | null | null | 1,348 | null | null | null | null | null | null | null |
// Struct: WeChatPayRedirection
// File: crates/hyperswitch_domain_models/src/payment_method_data.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct WeChatPayRedirection | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | WeChatPayRedirection | 0 | [] | 47 | null | null | null | null | null | null | null |
// Implementation: impl api::PaymentPostCaptureVoid for for Nuvei
// File: crates/hyperswitch_connectors/src/connectors/nuvei.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentPostCaptureVoid for for Nuvei | crates/hyperswitch_connectors/src/connectors/nuvei.rs | hyperswitch_connectors | impl_block | null | null | null | 65 | null | Nuvei | api::PaymentPostCaptureVoid for | 0 | 0 | null | null |
// Struct: TokenizeCardRequest
// File: crates/hyperswitch_domain_models/src/bulk_tokenization.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct TokenizeCardRequest | crates/hyperswitch_domain_models/src/bulk_tokenization.rs | hyperswitch_domain_models | struct_definition | TokenizeCardRequest | 0 | [] | 46 | null | null | null | null | null | null | null |
// Function: list_by_organization_id
// File: crates/diesel_models/src/query/merchant_account.rs
// Module: diesel_models
pub fn list_by_organization_id(
conn: &PgPooledConn,
organization_id: &common_utils::id_type::OrganizationId,
) -> StorageResult<Vec<Self>> | crates/diesel_models/src/query/merchant_account.rs | diesel_models | function_signature | null | null | null | 66 | list_by_organization_id | null | null | null | null | null | null |
// Implementation: impl api::PaymentsAuthenticate for for Cybersource
// File: crates/hyperswitch_connectors/src/connectors/cybersource.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentsAuthenticate for for Cybersource | crates/hyperswitch_connectors/src/connectors/cybersource.rs | hyperswitch_connectors | impl_block | null | null | null | 61 | null | Cybersource | api::PaymentsAuthenticate for | 0 | 0 | null | null |
// Struct: GenericLinks
// File: crates/hyperswitch_domain_models/src/api.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct GenericLinks | crates/hyperswitch_domain_models/src/api.rs | hyperswitch_domain_models | struct_definition | GenericLinks | 0 | [] | 39 | null | null | null | null | null | null | null |
// Struct: HashedString
// File: crates/common_utils/src/hashing.rs
// Module: common_utils
// Implementations: 0
// Documentation: Represents a hashed string using blake3's hashing strategy.
pub struct HashedString<T: Strategy<String> | crates/common_utils/src/hashing.rs | common_utils | struct_definition | HashedString | 0 | [] | 56 | null | null | null | null | null | null | null |
// File: crates/router/tests/connectors/jpmorgan.rs
// Module: router
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData};
use masking::Secret;
use router::types::{self, api, storage::enums};
use test_utils::connector_auth;
use crate::utils::{self, ConnectorActions};
#[derive(Clone, Copy)]
... | crates/router/tests/connectors/jpmorgan.rs | router | full_file | null | null | null | 2,965 | null | null | null | null | null | null | null |
// Struct: VoltPaymentWebhookBodyReference
// File: crates/hyperswitch_connectors/src/connectors/volt/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct VoltPaymentWebhookBodyReference | crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | hyperswitch_connectors | struct_definition | VoltPaymentWebhookBodyReference | 0 | [] | 53 | null | null | null | null | null | null | null |
// File: crates/router/src/compatibility/stripe/setup_intents/types.rs
// Module: router
// Public structs: 11
use std::str::FromStr;
use api_models::payments;
use common_utils::{date_time, ext_traits::StringExt, id_type, pii as secret};
use error_stack::ResultExt;
use router_env::logger;
use serde::{Deserialize, Ser... | crates/router/src/compatibility/stripe/setup_intents/types.rs | router | full_file | null | null | null | 4,729 | null | null | null | null | null | null | null |
// Function: new
// File: crates/api_models/src/analytics/sdk_events.rs
// Module: api_models
pub fn new(
payment_method: Option<String>,
platform: Option<String>,
browser_name: Option<String>,
source: Option<String>,
component: Option<String>,
payment_experience: Option... | crates/api_models/src/analytics/sdk_events.rs | api_models | function_signature | null | null | null | 78 | new | null | null | null | null | null | null |
// Struct: AddPaymentMethodResponse
// File: crates/router/src/core/payment_methods/transformers.rs
// Module: router
// Implementations: 0
pub struct AddPaymentMethodResponse | crates/router/src/core/payment_methods/transformers.rs | router | struct_definition | AddPaymentMethodResponse | 0 | [] | 40 | null | null | null | null | null | null | null |
// Implementation: impl Deref for for OvercaptureEnabledBool
// File: crates/common_types/src/primitive_wrappers.rs
// Module: common_types
// Methods: 1 total (0 public)
impl Deref for for OvercaptureEnabledBool | crates/common_types/src/primitive_wrappers.rs | common_types | impl_block | null | null | null | 51 | null | OvercaptureEnabledBool | Deref for | 1 | 0 | null | null |
// Struct: FrmBlockRate
// File: crates/api_models/src/analytics/frm.rs
// Module: api_models
// Implementations: 0
pub struct FrmBlockRate | crates/api_models/src/analytics/frm.rs | api_models | struct_definition | FrmBlockRate | 0 | [] | 38 | null | null | null | null | null | null | null |
// Struct: EcommerceCardPaymentOnlyTransactionData
// File: crates/hyperswitch_connectors/src/connectors/peachpayments/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct EcommerceCardPaymentOnlyTransactionData | crates/hyperswitch_connectors/src/connectors/peachpayments/transformers.rs | hyperswitch_connectors | struct_definition | EcommerceCardPaymentOnlyTransactionData | 0 | [] | 57 | null | null | null | null | null | null | null |
// File: crates/common_utils/src/id_type/global_id/customer.rs
// Module: common_utils
// Public functions: 2
use crate::errors;
crate::global_id_type!(
GlobalCustomerId,
"A global id that can be used to identify a customer.
The format will be `<cell_id>_<entity_prefix>_<time_ordered_id>`.
Example: `cell1_c... | crates/common_utils/src/id_type/global_id/customer.rs | common_utils | full_file | null | null | null | 383 | null | null | null | null | null | null | null |
// Function: check_recovery_code_in_redis
// File: crates/router/src/utils/user/two_factor_auth.rs
// Module: router
pub fn check_recovery_code_in_redis(state: &SessionState, user_id: &str) -> UserResult<bool> | crates/router/src/utils/user/two_factor_auth.rs | router | function_signature | null | null | null | 52 | check_recovery_code_in_redis | null | null | null | null | null | null |
// Function: parse_string_to_enums
// File: crates/router/src/utils/user/dashboard_metadata.rs
// Module: router
pub fn parse_string_to_enums(query: String) -> UserResult<GetMultipleMetaDataPayload> | crates/router/src/utils/user/dashboard_metadata.rs | router | function_signature | null | null | null | 46 | parse_string_to_enums | null | null | null | null | null | null |
// Function: new
// File: crates/analytics/src/opensearch.rs
// Module: analytics
pub fn new(query_type: OpenSearchQuery, query: String, search_params: Vec<AuthInfo>) -> Self | crates/analytics/src/opensearch.rs | analytics | function_signature | null | null | null | 46 | new | null | null | null | null | null | null |
// Struct: Blackhawknetwork
// File: crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs
// Module: hyperswitch_connectors
// Implementations: 18
// Traits: api::Payment, api::PaymentSession, api::ConnectorAccessToken, api::MandateSetup, api::PaymentAuthorize, api::PaymentSync, api::PaymentCapture, api::Pa... | crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs | hyperswitch_connectors | struct_definition | Blackhawknetwork | 18 | [
"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::PaymentsPreProcessing",
"Conne... | 134 | null | null | null | null | null | null | null |
// Implementation: impl Peachpayments
// File: crates/hyperswitch_connectors/src/connectors/peachpayments.rs
// Module: hyperswitch_connectors
// Methods: 1 total (1 public)
impl Peachpayments | crates/hyperswitch_connectors/src/connectors/peachpayments.rs | hyperswitch_connectors | impl_block | null | null | null | 47 | null | Peachpayments | null | 1 | 1 | null | null |
// Function: construct_payment_router_data
// File: crates/router/src/core/payments/transformers.rs
// Module: router
pub fn construct_payment_router_data<'a, F, T>(
state: &'a SessionState,
payment_data: PaymentData<F>,
connector_id: &str,
merchant_context: &domain::MerchantContext,
customer: &'a ... | crates/router/src/core/payments/transformers.rs | router | function_signature | null | null | null | 219 | construct_payment_router_data | null | null | null | null | null | null |
// Function: create_token_vault_api
// File: crates/openapi/src/routes/tokenization.rs
// Module: openapi
pub fn create_token_vault_api() | crates/openapi/src/routes/tokenization.rs | openapi | function_signature | null | null | null | 35 | create_token_vault_api | null | null | null | null | null | null |
// Module Structure
// File: crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs
// Module: hyperswitch_connectors
// Public submodules:
pub mod transformers;
| crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs | hyperswitch_connectors | module_structure | null | null | null | 40 | null | null | null | null | null | 1 | 0 |
// Function: get_all_user_key_stores
// File: crates/diesel_models/src/query/user_key_store.rs
// Module: diesel_models
pub fn get_all_user_key_stores(
conn: &PgPooledConn,
from: u32,
limit: u32,
) -> StorageResult<Vec<Self>> | crates/diesel_models/src/query/user_key_store.rs | diesel_models | function_signature | null | null | null | 70 | get_all_user_key_stores | null | null | null | null | null | null |
// Implementation: impl ConnectorValidation for for Payu
// File: crates/hyperswitch_connectors/src/connectors/payu.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl ConnectorValidation for for Payu | crates/hyperswitch_connectors/src/connectors/payu.rs | hyperswitch_connectors | impl_block | null | null | null | 53 | null | Payu | ConnectorValidation for | 0 | 0 | null | null |
// File: crates/router/src/core/apple_pay_certificates_migration.rs
// Module: router
// Public functions: 1
use api_models::apple_pay_certificates_migration;
use common_utils::{errors::CustomResult, type_name, types::keymanager::Identifier};
use error_stack::ResultExt;
use masking::{PeekInterface, Secret};
use super... | crates/router/src/core/apple_pay_certificates_migration.rs | router | full_file | null | null | null | 858 | null | null | null | null | null | null | null |
// Implementation: impl api::MandateSetup for for Inespay
// File: crates/hyperswitch_connectors/src/connectors/inespay.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::MandateSetup for for Inespay | crates/hyperswitch_connectors/src/connectors/inespay.rs | hyperswitch_connectors | impl_block | null | null | null | 64 | null | Inespay | api::MandateSetup for | 0 | 0 | null | null |
// Implementation: impl ConnectorCommon for for Prophetpay
// File: crates/hyperswitch_connectors/src/connectors/prophetpay.rs
// Module: hyperswitch_connectors
// Methods: 6 total (0 public)
impl ConnectorCommon for for Prophetpay | crates/hyperswitch_connectors/src/connectors/prophetpay.rs | hyperswitch_connectors | impl_block | null | null | null | 54 | null | Prophetpay | ConnectorCommon for | 6 | 0 | null | null |
// Function: decide_payout_connector
// File: crates/router/src/core/payouts/helpers.rs
// Module: router
pub fn decide_payout_connector(
state: &SessionState,
merchant_context: &domain::MerchantContext,
request_straight_through: Option<api::routing::StraightThroughAlgorithm>,
routing_data: &mut storag... | crates/router/src/core/payouts/helpers.rs | router | function_signature | null | null | null | 114 | decide_payout_connector | null | null | null | null | null | null |
// File: crates/euclid/src/frontend.rs
// Module: euclid
pub mod ast;
pub mod dir;
pub mod vir;
| crates/euclid/src/frontend.rs | euclid | full_file | null | null | null | 29 | null | null | null | null | null | null | null |
// Implementation: impl OpenSearchAuth
// File: crates/analytics/src/opensearch.rs
// Module: analytics
// Methods: 1 total (1 public)
impl OpenSearchAuth | crates/analytics/src/opensearch.rs | analytics | impl_block | null | null | null | 39 | null | OpenSearchAuth | null | 1 | 1 | null | null |
// Struct: DeliveryObject
// File: crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct DeliveryObject | crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs | hyperswitch_connectors | struct_definition | DeliveryObject | 0 | [] | 49 | null | null | null | null | null | null | null |
// Struct: ClientSecretCreateRequest
// File: crates/api_models/src/ephemeral_key.rs
// Module: api_models
// Implementations: 1
// Traits: common_utils::events::ApiEventMetric
pub struct ClientSecretCreateRequest | crates/api_models/src/ephemeral_key.rs | api_models | struct_definition | ClientSecretCreateRequest | 1 | [
"common_utils::events::ApiEventMetric"
] | 53 | null | null | null | null | null | null | null |
// Implementation: impl crate::events::ApiEventMetric for for GlobalTokenId
// File: crates/common_utils/src/id_type/global_id/token.rs
// Module: common_utils
// Methods: 1 total (0 public)
impl crate::events::ApiEventMetric for for GlobalTokenId | crates/common_utils/src/id_type/global_id/token.rs | common_utils | impl_block | null | null | null | 60 | null | GlobalTokenId | crate::events::ApiEventMetric for | 1 | 0 | null | null |
// Implementation: impl ConnectorValidation for for Globalpay
// File: crates/hyperswitch_connectors/src/connectors/globalpay.rs
// Module: hyperswitch_connectors
// Methods: 1 total (0 public)
impl ConnectorValidation for for Globalpay | crates/hyperswitch_connectors/src/connectors/globalpay.rs | hyperswitch_connectors | impl_block | null | null | null | 53 | null | Globalpay | ConnectorValidation for | 1 | 0 | null | null |
// Struct: MerchantConnectorListResponse
// File: crates/api_models/src/admin.rs
// Module: api_models
// Implementations: 2
pub struct MerchantConnectorListResponse | crates/api_models/src/admin.rs | api_models | struct_definition | MerchantConnectorListResponse | 2 | [] | 37 | null | null | null | null | null | null | null |
// Struct: FiuWebhookEvent
// File: crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct FiuWebhookEvent | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | FiuWebhookEvent | 0 | [] | 52 | null | null | null | null | null | null | null |
// Function: perform_decision_management
// File: crates/router/src/core/payments/conditional_configs.rs
// Module: router
pub fn perform_decision_management(
state: &routes::SessionState,
algorithm_ref: routing::RoutingAlgorithmRef,
merchant_id: &common_utils::id_type::MerchantId,
payment_data: &core_... | crates/router/src/core/payments/conditional_configs.rs | router | function_signature | null | null | null | 94 | perform_decision_management | null | null | null | null | null | null |
// Implementation: impl UnifiedAuthenticationService
// File: crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs
// Module: hyperswitch_connectors
// Methods: 1 total (1 public)
impl UnifiedAuthenticationService | crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs | hyperswitch_connectors | impl_block | null | null | null | 49 | null | UnifiedAuthenticationService | null | 1 | 1 | null | null |
// File: crates/scheduler/src/settings.rs
// Module: scheduler
// Public functions: 2
// Public structs: 3
use common_utils::ext_traits::ConfigExt;
use serde::Deserialize;
use storage_impl::errors::ApplicationError;
pub use crate::configs::settings::SchedulerSettings;
#[derive(Debug, Clone, Deserialize)]
pub struct ... | crates/scheduler/src/settings.rs | scheduler | full_file | null | null | null | 553 | null | null | null | null | null | null | null |
// Struct: QrTxnData
// File: crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct QrTxnData | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | QrTxnData | 0 | [] | 52 | null | null | null | null | null | null | null |
#[async_trait::async_trait]
impl IncomingWebhook for Worldpay {
fn get_webhook_source_verification_algorithm(
&self,
_request: &IncomingWebhookRequestDetails<'_>,
) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> {
Ok(Box::new(crypto::Sha256))
}
... | crates/hyperswitch_connectors/src/connectors/worldpay.rs#chunk1 | hyperswitch_connectors | chunk | null | null | null | 2,407 | null | null | null | null | null | null | null |
// Struct: AirwallexPaymentsResponse
// File: crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct AirwallexPaymentsResponse | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | AirwallexPaymentsResponse | 0 | [] | 53 | null | null | null | null | null | null | null |
// File: crates/router_derive/src/macros/schema.rs
// Module: router_derive
// Public functions: 2
mod helpers;
use quote::quote;
use crate::macros::{
helpers as macro_helpers,
schema::helpers::{HasSchemaParameters, IsSchemaFieldApplicableForValidation},
};
pub fn validate_schema_derive(input: syn::DeriveIn... | crates/router_derive/src/macros/schema.rs | router_derive | full_file | null | null | null | 621 | null | null | null | null | null | null | null |
// Function: get_flow
// File: crates/router/src/types/domain/user/decision_manager.rs
// Module: router
pub fn get_flow(&self) -> UserFlow | crates/router/src/types/domain/user/decision_manager.rs | router | function_signature | null | null | null | 35 | get_flow | null | null | null | null | null | null |
// Struct: MerchantAccountResponse
// File: crates/api_models/src/admin.rs
// Module: api_models
// Implementations: 0
pub struct MerchantAccountResponse | crates/api_models/src/admin.rs | api_models | struct_definition | MerchantAccountResponse | 0 | [] | 35 | null | null | null | null | null | null | null |
// Struct: StreamData
// File: crates/drainer/src/types.rs
// Module: drainer
// Implementations: 1
pub struct StreamData | crates/drainer/src/types.rs | drainer | struct_definition | StreamData | 1 | [] | 33 | null | null | null | null | null | null | null |
// Struct: GlobepayAuthType
// File: crates/hyperswitch_connectors/src/connectors/globepay/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct GlobepayAuthType | crates/hyperswitch_connectors/src/connectors/globepay/transformers.rs | hyperswitch_connectors | struct_definition | GlobepayAuthType | 0 | [] | 53 | null | null | null | null | null | null | null |
// Struct: NuveiPayoutRequest
// File: crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct NuveiPayoutRequest | crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | hyperswitch_connectors | struct_definition | NuveiPayoutRequest | 0 | [] | 55 | null | null | null | null | null | null | null |
// Function: modify_trackers
// File: crates/router/src/core/payments/retry.rs
// Module: router
pub fn modify_trackers<F, FData, D>(
state: &routes::SessionState,
connector: String,
payment_data: &mut D,
key_store: &domain::MerchantKeyStore,
storage_scheme: storage_enums::MerchantStorageScheme,
... | crates/router/src/core/payments/retry.rs | router | function_signature | null | null | null | 154 | modify_trackers | null | null | null | null | null | null |
// Function: set_request_body
// File: crates/router/src/core/payments/routing/utils.rs
// Module: router
pub fn set_request_body(&mut self, request: Req) | crates/router/src/core/payments/routing/utils.rs | router | function_signature | null | null | null | 39 | set_request_body | null | null | null | null | null | null |
// Implementation: impl api::PaymentSession for for Bluesnap
// File: crates/hyperswitch_connectors/src/connectors/bluesnap.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentSession for for Bluesnap | crates/hyperswitch_connectors/src/connectors/bluesnap.rs | hyperswitch_connectors | impl_block | null | null | null | 58 | null | Bluesnap | api::PaymentSession for | 0 | 0 | null | null |
// Function: add_browser_data
// File: crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
// Module: hyperswitch_connectors
pub fn add_browser_data(mut self, browser_info: BrowserInformation) -> Result<Self, Error> | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | function_signature | null | null | null | 55 | add_browser_data | null | null | null | null | null | null |
// File: crates/router/src/db/payment_link.rs
// Module: router
use error_stack::report;
use router_env::{instrument, tracing};
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
services::Store,
types::storage::{self, PaymentLinkDbExt},
};
#[async_trait::async_trait]
pub tr... | crates/router/src/db/payment_link.rs | router | full_file | null | null | null | 789 | null | null | null | null | null | null | null |
// Function: create_new_merchant_and_insert_in_db
// File: crates/router/src/types/domain/user.rs
// Module: router
pub fn create_new_merchant_and_insert_in_db(
&self,
state: SessionState,
) -> UserResult<domain::MerchantAccount> | crates/router/src/types/domain/user.rs | router | function_signature | null | null | null | 60 | create_new_merchant_and_insert_in_db | null | null | null | null | null | null |
// Struct: Ebanx
// File: crates/hyperswitch_connectors/src/connectors/ebanx.rs
// Module: hyperswitch_connectors
// Implementations: 24
// Traits: api::Payment, api::PaymentSession, api::ConnectorAccessToken, api::MandateSetup, api::PaymentAuthorize, api::PaymentSync, api::PaymentCapture, api::PaymentVoid, api::Refund... | crates/hyperswitch_connectors/src/connectors/ebanx.rs | hyperswitch_connectors | struct_definition | Ebanx | 24 | [
"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::Payouts",
"api::PayoutCancel",... | 171 | null | null | null | null | null | null | null |
// Struct: CoBadgedCardNetworksInfo
// File: crates/api_models/src/open_router.rs
// Module: api_models
// Implementations: 0
pub struct CoBadgedCardNetworksInfo | crates/api_models/src/open_router.rs | api_models | struct_definition | CoBadgedCardNetworksInfo | 0 | [] | 44 | null | null | null | null | null | null | null |
refund_id.as_str(),
merchant_context.get_merchant_account().storage_scheme,
)
.await
.to_not_found_response(errors::ApiErrorResponse::RefundNotFound)?;
Box::pin(refund_retrieve_core(
state.clone(),
merchant_context,
profile_id,
request... | crates/router/src/core/refunds.rs#chunk1 | router | chunk | null | null | null | 4,693 | null | null | null | null | null | null | null |
// Function: get_connector_params
// File: crates/hyperswitch_domain_models/src/connector_endpoints.rs
// Module: hyperswitch_domain_models
pub fn get_connector_params(
&self,
connector: connector_enums::Connector,
) -> CustomResult<ConnectorParams, api_error_response::ApiErrorResponse> | crates/hyperswitch_domain_models/src/connector_endpoints.rs | hyperswitch_domain_models | function_signature | null | null | null | 67 | get_connector_params | null | null | null | null | null | null |
// File: crates/router/src/compatibility/stripe/refunds/types.rs
// Module: router
// Public structs: 3
use std::{convert::From, default::Default};
use common_utils::pii;
use serde::{Deserialize, Serialize};
use crate::types::api::{admin, refunds};
#[derive(Clone, Serialize, Deserialize, PartialEq, Eq, Debug)]
pub ... | crates/router/src/compatibility/stripe/refunds/types.rs | router | full_file | null | null | null | 724 | null | null | null | null | null | null | null |
// Struct: Cardholder
// File: crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct Cardholder | crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs | hyperswitch_connectors | struct_definition | Cardholder | 0 | [] | 49 | null | null | null | null | null | null | null |
// Implementation: impl ConnectorCommon for for Chargebee
// File: crates/hyperswitch_connectors/src/connectors/chargebee.rs
// Module: hyperswitch_connectors
// Methods: 6 total (0 public)
impl ConnectorCommon for for Chargebee | crates/hyperswitch_connectors/src/connectors/chargebee.rs | hyperswitch_connectors | impl_block | null | null | null | 54 | null | Chargebee | ConnectorCommon for | 6 | 0 | null | null |
// Function: get_api_event_filter_for_dimension
// File: crates/analytics/src/api_event/filters.rs
// Module: analytics
pub fn get_api_event_filter_for_dimension<T>(
dimension: ApiEventDimensions,
merchant_id: &common_utils::id_type::MerchantId,
time_range: &TimeRange,
pool: &T,
) -> FiltersResult<Vec<... | crates/analytics/src/api_event/filters.rs | analytics | function_signature | null | null | null | 143 | get_api_event_filter_for_dimension | null | null | null | null | null | null |
// Function: retrieve_disputes_list_profile
// File: crates/router/src/routes/disputes.rs
// Module: router
pub fn retrieve_disputes_list_profile(
state: web::Data<AppState>,
req: HttpRequest,
payload: web::Query<dispute_models::DisputeListGetConstraints>,
) -> HttpResponse | crates/router/src/routes/disputes.rs | router | function_signature | null | null | null | 70 | retrieve_disputes_list_profile | null | null | null | null | null | null |
// Module Structure
// File: crates/hyperswitch_connectors/src/connectors/peachpayments.rs
// Module: hyperswitch_connectors
// Public submodules:
pub mod transformers;
| crates/hyperswitch_connectors/src/connectors/peachpayments.rs | hyperswitch_connectors | module_structure | null | null | null | 40 | null | null | null | null | null | 1 | 0 |
// Function: convert_forex
// File: crates/router/src/routes/currency.rs
// Module: router
pub fn convert_forex(
state: web::Data<AppState>,
req: HttpRequest,
params: web::Query<api_models::currency::CurrencyConversionParams>,
) -> HttpResponse | crates/router/src/routes/currency.rs | router | function_signature | null | null | null | 62 | convert_forex | 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.