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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
File: crates/api_models/src/process_tracker.rs
#[cfg(feature = "v2")]
pub mod revenue_recovery;
| crates/api_models/src/process_tracker.rs | api_models | full_file | 23 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct StaxWebhookBody {
#[serde(rename = "type")]
pub transaction_type: StaxWebhookEventType,
pub id: String,
pub auth_id: Option<String>,
pub success: bool,
} | crates/hyperswitch_connectors/src/connectors/stax/transformers.rs | hyperswitch_connectors | struct_definition | 48 | rust | StaxWebhookBody | null | null | null | null | null | null | null | null | null | null | null |
impl Default for RecordMigrationStatusBuilder {
fn default() -> Self {
Self::new()
}
} | crates/payment_methods/src/core/migration.rs | payment_methods | impl_block | 23 | rust | null | RecordMigrationStatusBuilder | Default for | impl Default for for RecordMigrationStatusBuilder | null | null | null | null | null | null | null | null |
File: crates/router/src/types/api/authentication_v2.rs
pub use hyperswitch_domain_models::router_request_types::authentication::MessageCategory;
pub use hyperswitch_interfaces::api::authentication_v2::ExternalAuthenticationV2;
| crates/router/src/types/api/authentication_v2.rs | router | full_file | 45 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/common_utils/src/consts.rs
Public functions: 2
//! Commonly used constants
/// Number of characters in a generated ID
pub const ID_LENGTH: usize = 20;
/// Characters to use for generating NanoID
pub(crate) const ALPHABETS: [char; 62] = [
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', '... | crates/common_utils/src/consts.rs | common_utils | full_file | 2,122 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_role_name(self) -> String {
self.0
} | crates/router/src/types/domain/user.rs | router | function_signature | 17 | rust | null | null | null | null | get_role_name | null | null | null | null | null | null | null |
pub fn server(state: AppState) -> Scope {
let mut route = web::scope("/v2/refunds").app_data(web::Data::new(state));
#[cfg(feature = "olap")]
{
route =
route.service(web::resource("/list").route(web::post().to(refunds::refunds_list)));
}
#[cfg(feature... | crates/router/src/routes/app.rs | router | function_signature | 195 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
impl ForeignIDRef for PaymentAttempt {
fn foreign_id(&self) -> String {
self.attempt_id.clone()
}
} | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | impl_block | 28 | rust | null | PaymentAttempt | ForeignIDRef for | impl ForeignIDRef for for PaymentAttempt | null | null | null | null | null | null | null | null |
pub async fn decide_unified_connector_service_call<F, RouterDReq, ApiRequest, D>(
state: &SessionState,
req_state: ReqState,
merchant_context: &domain::MerchantContext,
connector: api::ConnectorData,
operation: &BoxedOperation<'_, F, ApiRequest, D>,
payment_data: &mut D,
customer: &Option<do... | crates/router/src/core/payments.rs | router | function_signature | 797 | rust | null | null | null | null | decide_unified_connector_service_call | null | null | null | null | null | null | null |
pub struct DisputeFiltersResponse {
pub query_data: Vec<DisputeFilterValue>,
} | crates/api_models/src/analytics.rs | api_models | struct_definition | 20 | rust | DisputeFiltersResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PmCards<'a> {
pub state: &'a routes::SessionState,
pub merchant_context: &'a domain::MerchantContext,
} | crates/router/src/core/payment_methods/cards.rs | router | struct_definition | 33 | rust | PmCards | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentsRequest {
pub source: PaymentSource,
pub amount: MinorUnit,
pub currency: String,
pub processing_channel_id: Secret<String>,
#[serde(rename = "3ds")]
pub three_ds: CheckoutThreeDS,
#[serde(flatten)]
pub return_url: ReturnUrl,
pub capture: bool,
pub reference: S... | crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs | hyperswitch_connectors | struct_definition | 92 | rust | PaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn update_profile_and_invalidate_routing_config_for_active_algorithm_id_update(
self,
db: &dyn StorageInterface,
key_manager_state: &KeyManagerState,
merchant_key_store: &domain::MerchantKeyStore,
algorithm_id: id_type::RoutingId,
transaction_type: &storage::enu... | crates/router/src/core/admin.rs | router | function_signature | 350 | rust | null | null | null | null | update_profile_and_invalidate_routing_config_for_active_algorithm_id_update | null | null | null | null | null | null | null |
pub struct IdealRedirectionResponse {
name: Option<Secret<String>>,
country_code: Option<enums::CountryAlpha2>,
bic: Option<Secret<String>>,
iban_last_chars: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 47 | rust | IdealRedirectionResponse | null | null | null | null | null | null | null | null | null | null | null |
Documentation: CHANGELOG.md
# Type: Doc File
# Changelog
All notable changes to HyperSwitch will be documented here.
- - -
## 2025.09.08.0
### Features
- **nuvei:** Map NTID for nuvei payment responses ([#9261](https://github.com/juspay/hyperswitch/pull/9261)) ([`0062264`](https://github.com/juspay/hyperswitch/co... | CHANGELOG.md#chunk0 | null | doc_chunk | 8,186 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_acs_trans_id(&self) -> Option<String> {
if let Self::Challenge(challenge_params) = self {
challenge_params.acs_trans_id.clone()
} else {
None
}
} | crates/hyperswitch_domain_models/src/router_request_types/authentication.rs | hyperswitch_domain_models | function_signature | 48 | rust | null | null | null | null | get_acs_trans_id | null | null | null | null | null | null | null |
pub struct Comparison {
/// The left hand side which will always be a domain input identifier like "payment.method.cardtype"
pub lhs: String,
/// The comparison operator
pub comparison: ComparisonType,
/// The value to compare against
pub value: ValueType,
/// Additional metadata that the St... | crates/router/src/core/payments/routing/utils.rs#chunk1 | router | chunk | 7,821 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/nomupay.rs
use api_models::payments::{Address, AddressDetails};
use masking::Secret;
use router::types::{self, api, storage::enums, PaymentAddress};
use test_utils::connector_auth;
use crate::utils::{self, ConnectorActions, PaymentInfo};
#[derive(Clone, Copy)]
struct NomupayTest;... | crates/router/tests/connectors/nomupay.rs | router | full_file | 1,058 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct IatapayAuthType {
pub(super) client_id: Secret<String>,
pub(super) merchant_id: Secret<String>,
pub(super) client_secret: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs | hyperswitch_connectors | struct_definition | 40 | rust | IatapayAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub struct DisputesAggregateResponse {
/// Different status of disputes with their count
pub status_with_count: HashMap<DisputeStatus, i64>,
} | crates/api_models/src/disputes.rs | api_models | struct_definition | 35 | rust | DisputesAggregateResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct KlarnaMeta {
capture_id: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | KlarnaMeta | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/merchant-account/merchant-account--create.mdx
# Type: Doc File
---
openapi: post /v2/merchant-accounts
--- | api-reference/v2/merchant-account/merchant-account--create.mdx | null | doc_file | 37 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl<Secret: ZeroizableSecret, MaskingStrategy> StrongSecret<Secret, MaskingStrategy> {
/// Take ownership of a secret value
pub fn new(secret: Secret) -> Self {
Self {
inner_secret: secret,
masking_strategy: PhantomData,
}
}
} | crates/masking/src/strong_secret.rs | masking | impl_block | 63 | rust | null | StrongSecret | null | impl StrongSecret | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.OnlineMandate
{
"type": "object",
"description": "Details of online mandate",
"required": [
"ip_address",
"user_agent"
],
"properties": {
"ip_address": {
"type": "string",
"description": "Ip address of the customer machine from which the mandate w... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 145 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"OnlineMandate"
] | null | null | null | null |
impl Parse for OperationsEnumMeta {
fn parse(input: syn::parse::ParseStream<'_>) -> syn::Result<Self> {
let lookahead = input.lookahead1();
if lookahead.peek(operations_keyword::operations) {
let keyword = input.parse()?;
input.parse::<syn::Token![=]>()?;
let valu... | crates/router_derive/src/macros/operation.rs | router_derive | impl_block | 153 | rust | null | OperationsEnumMeta | Parse for | impl Parse for for OperationsEnumMeta | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentsSessionResponse
{
"type": "object",
"required": [
"payment_id",
"client_secret",
"session_token"
],
"properties": {
"payment_id": {
"type": "string",
"description": "The identifier for the payment"
},
"client_secret": {
"ty... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 169 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentsSessionResponse"
] | null | null | null | null |
pub struct EbanxAuthType {
pub integration_key: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/ebanx/transformers.rs | hyperswitch_connectors | struct_definition | 17 | rust | EbanxAuthType | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/auth_events.rs
pub mod accumulator;
mod core;
pub mod filters;
pub mod metrics;
pub mod sankey;
pub mod types;
pub use accumulator::{AuthEventMetricAccumulator, AuthEventMetricsAccumulator};
pub use self::core::{get_filters, get_metrics, get_sankey};
| crates/analytics/src/auth_events.rs | analytics | full_file | 68 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ExtendedAuthorizationResponseData {
pub extended_authentication_applied:
Option<primitive_wrappers::ExtendedAuthorizationAppliedBool>,
pub capture_before: Option<time::PrimitiveDateTime>,
} | crates/hyperswitch_domain_models/src/router_data.rs | hyperswitch_domain_models | struct_definition | 39 | rust | ExtendedAuthorizationResponseData | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentMethodsEnabledForConnector {
pub payment_methods_enabled: common_types::payment_methods::RequestPaymentMethodTypes,
pub payment_method: common_enums::PaymentMethod,
pub connector: common_enums::connector_enums::Connector,
pub merchant_connector_id: id_type::MerchantConnectorAccountId,
... | crates/hyperswitch_domain_models/src/merchant_connector_account.rs | hyperswitch_domain_models | struct_definition | 65 | rust | PaymentMethodsEnabledForConnector | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorCommon for Facilitapay {
fn id(&self) -> &'static str {
"facilitapay"
}
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, connec... | crates/hyperswitch_connectors/src/connectors/facilitapay.rs | hyperswitch_connectors | impl_block | 163 | rust | null | Facilitapay | ConnectorCommon for | impl ConnectorCommon for for Facilitapay | null | null | null | null | null | null | null | null |
impl BatchSampleDataInterface for KafkaStore {
#[cfg(feature = "v1")]
async fn insert_payment_intents_batch_for_sample_data(
&self,
state: &KeyManagerState,
batch: Vec<hyperswitch_domain_models::payments::PaymentIntent>,
key_store: &hyperswitch_domain_models::merchant_key_store::... | crates/router/src/db/kafka_store.rs | router | impl_block | 1,278 | rust | null | KafkaStore | BatchSampleDataInterface for | impl BatchSampleDataInterface for for KafkaStore | null | null | null | null | null | null | null | null |
pub struct KlarnaCheckoutSyncResponse {
pub order_id: String,
pub status: KlarnaCheckoutStatus,
pub options: CheckoutOptions,
} | crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs | hyperswitch_connectors | struct_definition | 32 | rust | KlarnaCheckoutSyncResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct GooglePayPaymentInformation {
fluid_data: FluidData,
} | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | GooglePayPaymentInformation | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentsCompleteAuthorize for Deutschebank {} | crates/hyperswitch_connectors/src/connectors/deutschebank.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Deutschebank | api::PaymentsCompleteAuthorize for | impl api::PaymentsCompleteAuthorize for for Deutschebank | null | null | null | null | null | null | null | null |
#[macro_export]
macro_rules! unimplemented_payment_method {
($payment_method:expr, $connector:expr) => {
errors::ConnectorError::NotImplemented(format!(
"{} through {}",
$payment_method, $connector
))
};
($payment_method:expr, $flow:expr, $connector:expr) => {
... | crates/router/src/core/errors.rs | router | macro | 99 | rust | null | null | null | null | null | null | null | null | declarative | null | null | null |
pub struct ApiKeyExpiryTrackingData {
pub key_id: common_utils::id_type::ApiKeyId,
pub merchant_id: common_utils::id_type::MerchantId,
pub api_key_name: String,
pub prefix: String,
pub api_key_expiry: Option<PrimitiveDateTime>,
// Days on which email reminder about api_key expiry has to be sent,... | crates/diesel_models/src/api_keys.rs | diesel_models | struct_definition | 96 | rust | ApiKeyExpiryTrackingData | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaypalAccessTokenErrorResponse {
pub error: String,
pub error_description: String,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | PaypalAccessTokenErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/types/storage/merchant_account.rs
pub use diesel_models::merchant_account::{
MerchantAccount, MerchantAccountNew, MerchantAccountUpdateInternal,
};
pub use crate::types::domain::MerchantAccountUpdate;
| crates/router/src/types/storage/merchant_account.rs | router | full_file | 46 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct AuthorizedotnetVoidResponse {
pub transaction_response: Option<VoidResponse>,
pub messages: ResponseMessages,
} | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | AuthorizedotnetVoidResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct RiskifiedFulfilmentResponse {
order: OrderFulfilmentResponse,
} | crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs | hyperswitch_connectors | struct_definition | 21 | rust | RiskifiedFulfilmentResponse | null | null | null | null | null | null | null | null | null | null | null |
impl Config {
/// Default constructor.
pub fn new() -> Result<Self, config::ConfigError> {
Self::new_with_config_path(None)
}
/// Constructor expecting config path set explicitly.
pub fn new_with_config_path(
explicit_config_path: Option<PathBuf>,
) -> Result<Self, config::Confi... | crates/router_env/src/logger/config.rs | router_env | impl_block | 753 | rust | null | Config | null | impl Config | null | null | null | null | null | null | null | null |
pub async fn update_by_merchant_id_key_id(
conn: &PgPooledConn,
merchant_id: common_utils::id_type::MerchantId,
key_id: common_utils::id_type::ApiKeyId,
api_key_update: ApiKeyUpdate,
) -> StorageResult<Self> {
match generics::generic_update_with_unique_predicate_get_result::<... | crates/diesel_models/src/query/api_keys.rs | diesel_models | function_signature | 276 | rust | null | null | null | null | update_by_merchant_id_key_id | null | null | null | null | null | null | null |
File: crates/router/src/types/storage/api_keys.rs
#[cfg(feature = "email")]
pub use diesel_models::api_keys::ApiKeyExpiryTrackingData;
pub use diesel_models::api_keys::{ApiKey, ApiKeyNew, ApiKeyUpdate, HashedApiKey};
| crates/router/src/types/storage/api_keys.rs | router | full_file | 54 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Cashtocode {} | crates/hyperswitch_connectors/src/connectors/cashtocode.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Cashtocode | api::MandateSetup for | impl api::MandateSetup for for Cashtocode | null | null | null | null | null | null | null | null |
pub fn new(org_new: OrganizationNew) -> Self {
let OrganizationNew {
org_id,
org_name,
organization_details,
metadata,
created_at,
modified_at,
id: _,
organization_name: _,
version,
organizati... | crates/diesel_models/src/organization.rs | diesel_models | function_signature | 134 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub async fn find_by_theme_id(conn: &PgPooledConn, theme_id: String) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
dsl::theme_id.eq(theme_id),
)
.await
} | crates/diesel_models/src/query/user/theme.rs | diesel_models | function_signature | 65 | rust | null | null | null | null | find_by_theme_id | null | null | null | null | null | null | null |
impl PaymentAttempt {
#[cfg(feature = "v1")]
pub async fn update_with_attempt_id(
self,
conn: &PgPooledConn,
payment_attempt: PaymentAttemptUpdate,
) -> StorageResult<Self> {
match generics::generic_update_with_unique_predicate_get_result::<
<Self as HasTable>::Ta... | crates/diesel_models/src/query/payment_attempt.rs | diesel_models | impl_block | 4,230 | rust | null | PaymentAttempt | null | impl PaymentAttempt | null | null | null | null | null | null | null | null |
pub async fn update_by_profile_id(
self,
conn: &PgPooledConn,
business_profile: ProfileUpdateInternal,
) -> StorageResult<Self> {
match generics::generic_update_by_id::<<Self as HasTable>::Table, _, _, _>(
conn,
self.get_id().to_owned(),
business_p... | crates/diesel_models/src/query/business_profile.rs | diesel_models | function_signature | 121 | rust | null | null | null | null | update_by_profile_id | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.MinorUnit
{
"type": "integer",
"format": "int64",
"description": "This Unit struct represents MinorUnit in which core amount works"
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 47 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"MinorUnit"
] | null | null | null | null |
pub trait ConnectorIntegration<T, Req, Resp>: ConnectorIntegrationAny<T, Req, Resp> + Sync {
fn get_headers(
&self,
_req: &super::PaymentAuthRouterData<T, Req, Resp>,
_connectors: &auth_types::PaymentMethodAuthConnectors,
) -> CustomResult<Vec<(String, Maskable<String>)>, ConnectorError>... | crates/pm_auth/src/types/api.rs | pm_auth | trait_definition | 653 | rust | null | null | ConnectorIntegration | null | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Paystack {} | crates/hyperswitch_connectors/src/connectors/paystack.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Paystack | api::RefundExecute for | impl api::RefundExecute for for Paystack | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/hyperwallet.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use common_enums::enums;
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
... | crates/hyperswitch_connectors/src/connectors/hyperwallet.rs | hyperswitch_connectors | full_file | 4,661 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct RevenueRecoveryResponse {
pub id: String,
pub name: Option<String>,
pub schedule_time_for_payment: Option<PrimitiveDateTime>,
pub schedule_time_for_psync: Option<PrimitiveDateTime>,
#[schema(value_type = ProcessTrackerStatus, example = "finish")]
pub status: enums::ProcessTrackerStatu... | crates/api_models/src/process_tracker/revenue_recovery.rs | api_models | struct_definition | 78 | rust | RevenueRecoveryResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn generate_permissions_inner(input: TokenStream) -> TokenStream {
let input = parse_macro_input!(input as Input);
let res = input.permissions.iter();
let mut enum_keys = Vec::new();
let mut scope_impl_per = Vec::new();
let mut entity_impl_per = Vec::new();
let mut resource_impl_per = Vec:... | crates/router_derive/src/macros/generate_permissions.rs | router_derive | function_signature | 485 | rust | null | null | null | null | generate_permissions_inner | null | null | null | null | null | null | null |
pub struct SquareWebhookData {
pub id: String,
pub object: SquareWebhookObject,
} | crates/hyperswitch_connectors/src/connectors/square/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | SquareWebhookData | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_negation(&self) -> Option<&[dir::DirValue]> {
if let Self::Negation(vals) = self {
Some(vals)
} else {
None
}
} | crates/euclid/src/dssa/types.rs | euclid | function_signature | 45 | rust | null | null | null | null | get_negation | null | null | null | null | null | null | null |
impl RoutingAlgorithmInterface for KafkaStore {
async fn insert_routing_algorithm(
&self,
routing_algorithm: storage::RoutingAlgorithm,
) -> CustomResult<storage::RoutingAlgorithm, errors::StorageError> {
self.diesel_store
.insert_routing_algorithm(routing_algorithm)
... | crates/router/src/db/kafka_store.rs | router | impl_block | 613 | rust | null | KafkaStore | RoutingAlgorithmInterface for | impl RoutingAlgorithmInterface for for KafkaStore | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Globepay {} | crates/hyperswitch_connectors/src/connectors/globepay.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Globepay | api::MandateSetup for | impl api::MandateSetup for for Globepay | null | null | null | null | null | null | null | null |
/// Default constructor.
pub fn new() -> Self {
Self::default()
} | crates/router_env/src/logger/storage.rs | router_env | function_signature | 19 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct ProfileUpdateInternal {
pub profile_name: Option<String>,
pub modified_at: time::PrimitiveDateTime,
pub return_url: Option<String>,
pub enable_payment_response_hash: Option<bool>,
pub payment_response_hash_key: Option<String>,
pub redirect_to_merchant_with_http_post: Option<bool>,
... | crates/diesel_models/src/business_profile.rs | diesel_models | struct_definition | 665 | rust | ProfileUpdateInternal | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/db/payment_link.rs
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 trait PaymentLinkInterf... | crates/router/src/db/payment_link.rs | router | full_file | 783 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct BarclaycardAuthSetupRequest {
payment_information: PaymentInformation,
client_reference_information: ClientReferenceInformation,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | BarclaycardAuthSetupRequest | null | null | null | null | null | null | null | null | null | null | null |
#[proc_macro_derive(Setter, attributes(auth_based))]
pub fn setter(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
let input = syn::parse_macro_input!(input as syn::DeriveInput);
let ident = &input.ident;
// All the fields in the parent struct
let fields = if let syn::Data::Struct(syn::Dat... | crates/router_derive/src/lib.rs | router_derive | macro | 409 | rust | null | null | null | null | null | null | null | null | proc_derive | null | null | null |
pub struct PayuRefundRequest {
refund: PayuRefundRequestData,
} | crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | PayuRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct PayPalDetails {
pub success_url: Option<String>,
pub cancel_url: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | PayPalDetails | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Adyen {} | crates/hyperswitch_connectors/src/connectors/adyen.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Adyen | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Adyen | null | null | null | null | null | null | null | null |
pub struct VerifyWebhookSource; | crates/hyperswitch_domain_models/src/router_flow_types/webhooks.rs | hyperswitch_domain_models | struct_definition | 7 | rust | VerifyWebhookSource | null | null | null | null | null | null | null | null | null | null | null |
pub struct FrmPaymentMethod {
///payment methods(card, wallet, etc) that can be used in the payment
#[schema(value_type = PaymentMethod,example = "card")]
pub payment_method: Option<common_enums::PaymentMethod>,
///payment method types(credit, debit) that can be used in the payment. This field is deprec... | crates/api_models/src/admin.rs | api_models | struct_definition | 144 | rust | FrmPaymentMethod | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Klarna {} | crates/hyperswitch_connectors/src/connectors/klarna.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Klarna | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Klarna | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_convertor: &StringMajorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/coinbase.rs | hyperswitch_connectors | function_signature | 29 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.CustomerDetails
{
"type": "object",
"description": "Passing this object creates a new customer or attaches an existing customer to the payment",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The identifier for the cus... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 376 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"CustomerDetails"
] | null | null | null | null |
impl super::KafkaMessage for KafkaPayout<'_> {
fn key(&self) -> String {
format!(
"{}_{}",
self.merchant_id.get_string_repr(),
self.payout_attempt_id
)
}
fn event_type(&self) -> crate::events::EventType {
crate::events::EventType::Payout
}
} | crates/router/src/services/kafka/payout.rs | router | impl_block | 77 | rust | null | KafkaPayout | super::KafkaMessage for | impl super::KafkaMessage for for KafkaPayout | null | null | null | null | null | null | null | null |
pub async fn perform_cgraph_filtering(
state: &SessionState,
key_store: &domain::MerchantKeyStore,
chosen: Vec<routing_types::RoutableConnectorChoice>,
backend_input: dsl_inputs::BackendInput,
eligible_connectors: Option<&Vec<api_enums::RoutableConnectors>>,
profile_id: &common_utils::id_type::P... | crates/router/src/core/payments/routing.rs | router | function_signature | 385 | rust | null | null | null | null | perform_cgraph_filtering | null | null | null | null | null | null | null |
File: crates/common_utils/src/hashing.rs
Public structs: 1
use masking::{PeekInterface, Secret, Strategy};
use serde::{Deserialize, Serialize, Serializer};
#[derive(Clone, PartialEq, Debug, Deserialize)]
/// Represents a hashed string using blake3's hashing strategy.
pub struct HashedString<T: Strategy<String>>(Secr... | crates/common_utils/src/hashing.rs | common_utils | full_file | 190 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct DeutschebankMandatePostRequest {
approval_by: DeutschebankSEPAApproval,
email_address: Email,
iban: Secret<String>,
first_name: Secret<String>,
last_name: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | hyperswitch_connectors | struct_definition | 48 | rust | DeutschebankMandatePostRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct BankFee {
/// Example 'domestic_transaction' only for DK domestic payments
#[serde(rename = "_type")]
pub bank_fee_type: Option<String>,
/// Country code according to ISO Alpha-2
pub country_code: Option<CountryAlpha2>,
/// Currency code according to ISO 4217
pub currency_code: Op... | crates/hyperswitch_connectors/src/connectors/nordea/responses.rs | hyperswitch_connectors | struct_definition | 127 | rust | BankFee | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_new_merchant(&self) -> NewUserMerchant {
self.new_merchant.clone()
} | crates/router/src/types/domain/user.rs | router | function_signature | 23 | rust | null | null | null | null | get_new_merchant | null | null | null | null | null | null | null |
pub struct FraudCheckTransactionData {
pub amount: i64,
pub order_details: Option<Vec<OrderDetailsWithAmount>>,
pub currency: Option<common_enums::Currency>,
pub payment_method: Option<common_enums::PaymentMethod>,
pub error_code: Option<String>,
pub error_message: Option<String>,
pub connec... | crates/hyperswitch_domain_models/src/router_request_types/fraud_check.rs | hyperswitch_domain_models | struct_definition | 102 | rust | FraudCheckTransactionData | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/payment_intents/metrics/sessionized_metrics/payments_success_rate.rs
use std::collections::HashSet;
use api_models::analytics::{
payment_intents::{
PaymentIntentDimensions, PaymentIntentFilters, PaymentIntentMetricsBucketIdentifier,
},
Granularity, TimeRange,
};
use comm... | crates/analytics/src/payment_intents/metrics/sessionized_metrics/payments_success_rate.rs | analytics | full_file | 990 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn generate_signature(
&self,
auth: barclaycard::BarclaycardAuthType,
host: String,
resource: &str,
payload: &String,
date: OffsetDateTime,
http_method: Method,
) -> CustomResult<String, errors::ConnectorError> {
let barclaycard::BarclaycardAuthTyp... | crates/hyperswitch_connectors/src/connectors/barclaycard.rs | hyperswitch_connectors | function_signature | 391 | rust | null | null | null | null | generate_signature | null | null | null | null | null | null | null |
pub fn get_entity_type(&self) -> EntityType {
self.entity_type
} | crates/router/src/services/email/types.rs | router | function_signature | 18 | rust | null | null | null | null | get_entity_type | null | null | null | null | null | null | null |
pub struct PspTokenization {
/// The tokenization type to be applied for the payment method
#[schema(value_type = TokenizationType)]
pub tokenization_type: common_enums::TokenizationType,
/// The merchant connector id to be used for tokenization
#[schema(value_type = String)]
pub connector_id: ... | crates/common_types/src/payment_methods.rs | common_types | struct_definition | 82 | rust | PspTokenization | null | null | null | null | null | null | null | null | null | null | null |
pub struct Card {
#[serde(rename = "account-number")]
pub account_number: CardNumber,
#[serde(rename = "expiration-month")]
pub expiration_month: Secret<String>,
#[serde(rename = "expiration-year")]
pub expiration_year: Secret<String>,
#[serde(rename = "card-security-code")]
pub card_sec... | crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | hyperswitch_connectors | struct_definition | 91 | rust | Card | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.BacsBankDebitAdditionalData
{
"type": "object",
"required": [
"account_number",
"sort_code"
],
"properties": {
"account_number": {
"type": "string",
"description": "Partially masked account number for Bacs payment method",
"example": "0001****... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 180 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"BacsBankDebitAdditionalData"
] | null | null | null | null |
impl api::PaymentAuthorize for Coinbase {} | crates/hyperswitch_connectors/src/connectors/coinbase.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Coinbase | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Coinbase | null | null | null | null | null | null | null | null |
pub trait SchedulerSessionState: Send + Sync + Clone {
fn get_db(&self) -> Box<dyn SchedulerInterface>;
} | crates/scheduler/src/scheduler.rs | scheduler | trait_definition | 26 | rust | null | null | SchedulerSessionState | null | null | null | null | null | null | null | null | null |
File: crates/router_env/src/logger/config.rs
Public functions: 6
Public structs: 6
//! Logger-specific config.
use std::path::PathBuf;
use serde::Deserialize;
/// Config settings.
#[derive(Debug, Deserialize, Clone)]
pub struct Config {
/// Logging to a file.
pub log: Log,
}
/// Log config settings.
#[de... | crates/router_env/src/logger/config.rs | router_env | full_file | 1,592 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Payone {
pub fn new() -> &'static Self {
&Self {
#[cfg(feature = "payouts")]
amount_converter: &MinorUnitForConnector,
}
}
pub fn generate_signature(
&self,
auth: payone::PayoneAuthType,
http_method: String,
canonicalized_path: Str... | crates/hyperswitch_connectors/src/connectors/payone.rs | hyperswitch_connectors | impl_block | 250 | rust | null | Payone | null | impl Payone | null | null | null | null | null | null | null | null |
pub struct CompleteAuthorizeData {
pub payment_method_data: Option<PaymentMethodData>,
pub amount: i64,
pub email: Option<pii::Email>,
pub currency: storage_enums::Currency,
pub confirm: bool,
pub statement_descriptor_suffix: Option<String>,
pub capture_method: Option<storage_enums::CaptureM... | crates/hyperswitch_domain_models/src/router_request_types.rs | hyperswitch_domain_models | struct_definition | 282 | rust | CompleteAuthorizeData | null | null | null | null | null | null | null | null | null | null | null |
impl CrmInterface for NoCrm {
async fn make_body(&self, _details: CrmPayload) -> RequestContent {
RequestContent::Json(Box::new(()))
}
async fn make_request(&self, _body: RequestContent, _origin_base_url: String) -> Request {
RequestBuilder::default().build()
}
async fn send_reques... | crates/external_services/src/crm.rs | external_services | impl_block | 141 | rust | null | NoCrm | CrmInterface for | impl CrmInterface for for NoCrm | null | null | null | null | null | null | null | null |
pub struct Mandate {
pub mandate_id: String,
pub customer_id: common_utils::id_type::CustomerId,
pub merchant_id: common_utils::id_type::MerchantId,
pub payment_method_id: String,
pub mandate_status: storage_enums::MandateStatus,
pub mandate_type: storage_enums::MandateType,
pub customer_acc... | crates/diesel_models/src/mandate.rs | diesel_models | struct_definition | 328 | rust | Mandate | null | null | null | null | null | null | null | null | null | null | null |
pub struct DynamicRoutingConfigParamsInterpolator {
pub payment_method: Option<common_enums::PaymentMethod>,
pub payment_method_type: Option<common_enums::PaymentMethodType>,
pub authentication_type: Option<common_enums::AuthenticationType>,
pub currency: Option<common_enums::Currency>,
pub country:... | crates/router/src/core/routing/helpers.rs | router | struct_definition | 95 | rust | DynamicRoutingConfigParamsInterpolator | null | null | null | null | null | null | null | null | null | null | null |
impl RefundInterface for KafkaStore {
#[cfg(feature = "v1")]
async fn find_refund_by_internal_reference_id_merchant_id(
&self,
internal_reference_id: &str,
merchant_id: &id_type::MerchantId,
storage_scheme: MerchantStorageScheme,
) -> CustomResult<diesel_refund::Refund, error... | crates/router/src/db/kafka_store.rs | router | impl_block | 1,671 | rust | null | KafkaStore | RefundInterface for | impl RefundInterface for for KafkaStore | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.TriggeredBy
{
"type": "string",
"enum": [
"internal",
"external"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 36 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"TriggeredBy"
] | null | null | null | null |
pub struct ArchipelCard {
number: cards::CardNumber,
expiry: CardExpiryDate,
security_code: Option<Secret<String>>,
card_holder_name: Option<Secret<String>>,
application_selection_indicator: ApplicationSelectionIndicator,
scheme: ArchipelCardScheme,
} | crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs | hyperswitch_connectors | struct_definition | 59 | rust | ArchipelCard | null | null | null | null | null | null | null | null | null | null | null |
pub async fn connector_retrieve() {} | crates/openapi/src/routes/merchant_connector_account.rs | openapi | function_signature | 8 | rust | null | null | null | null | connector_retrieve | null | null | null | null | null | null | null |
pub fn inner(self) -> StrongSecret<Vec<u8>> {
self.0
} | crates/common_utils/src/types/keymanager.rs | common_utils | function_signature | 20 | rust | null | null | null | null | inner | null | null | null | null | null | null | null |
pub struct ProductionAgreementRequest {
pub version: String,
#[serde(skip_deserializing)]
pub ip_address: Option<Secret<String, pii::IpAddress>>,
} | crates/api_models/src/user/dashboard_metadata.rs | api_models | struct_definition | 36 | rust | ProductionAgreementRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/analytics/payments.rs
Public functions: 1
Public structs: 10
use std::{
collections::hash_map::DefaultHasher,
hash::{Hash, Hasher},
};
use common_utils::id_type;
use super::{ForexMetric, NameDescription, TimeRange};
use crate::enums::{
AttemptStatus, AuthenticationType, Card... | crates/api_models/src/analytics/payments.rs | api_models | full_file | 2,364 | null | null | null | null | null | null | 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.