text
string
file_path
string
module
string
type
string
tokens
int64
language
string
struct_name
string
type_name
string
trait_name
string
impl_type
string
function_name
string
source
string
section
string
keys
list
macro_type
string
url
string
title
string
chunk_index
int64
impl api::PaymentToken for Payload {}
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
impl_block
8
rust
null
Payload
api::PaymentToken for
impl api::PaymentToken for for Payload
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Authorizedotnet {}
crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs
hyperswitch_connectors
impl_block
10
rust
null
Authorizedotnet
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Authorizedotnet
null
null
null
null
null
null
null
null
impl HealthCheckClient { /// Build connections to all gRPC services pub async fn build_connections( config: &GrpcClientSettings, client: Client, ) -> Result<Self, Box<dyn std::error::Error>> { let dynamic_routing_config = &config.dynamic_routing_client; let connection = match...
crates/external_services/src/grpc_client/health_check_client.rs
external_services
impl_block
685
rust
null
HealthCheckClient
null
impl HealthCheckClient
null
null
null
null
null
null
null
null
pub struct PaymentData<F> where F: Clone, { pub flow: PhantomData<F>, pub payment_intent: storage::PaymentIntent, pub payment_attempt: storage::PaymentAttempt, pub multiple_capture_data: Option<types::MultipleCaptureData>, pub amount: api::Amount, pub mandate_id: Option<api_models::payments:...
crates/router/src/core/payments.rs
router
struct_definition
591
rust
PaymentData
null
null
null
null
null
null
null
null
null
null
null
pub struct CardDetailFromLocker { #[schema(value_type = Option<CountryAlpha2>)] pub issuer_country: Option<api_enums::CountryAlpha2>, pub last4_digits: Option<String>, #[serde(skip)] #[schema(value_type=Option<String>)] pub card_number: Option<CardNumber>, #[schema(value_type=Option<String>...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
253
rust
CardDetailFromLocker
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/routing.rs Public functions: 27 Public structs: 4 mod transformers; pub mod utils; #[cfg(all(feature = "v1", feature = "dynamic_routing"))] use std::collections::hash_map; #[cfg(all(feature = "v1", feature = "dynamic_routing"))] use std::hash::{Hash, Hasher}; use std::{collectio...
crates/router/src/core/payments/routing.rs#chunk0
router
chunk
8,188
null
null
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Payload { async fn verify_webhook_source( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, _merchant_id: &common_utils::id_type::MerchantId, _connector_webhook_details: Option<common_utils::pii::SecretSerdeValue>, _connector_ac...
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
impl_block
864
rust
null
Payload
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Payload
null
null
null
null
null
null
null
null
pub fn check_ppcp_custom_status(&self) -> Option<api::PayPalOnboardingStatus> { match self.get_ppcp_custom_status() { Some(VettingStatus::Denied) => Some(api::PayPalOnboardingStatus::PpcpCustomDenied), Some(VettingStatus::Subscribed) => None, _ => Some(api::PayPalOnboardingSt...
crates/router/src/types/api/connector_onboarding/paypal.rs
router
function_signature
88
rust
null
null
null
null
check_ppcp_custom_status
null
null
null
null
null
null
null
File: crates/api_models/src/enums.rs Public functions: 8 Public structs: 1 use std::str::FromStr; pub use common_enums::*; use utoipa::ToSchema; pub use super::connector_enums::Connector; #[derive( Clone, Copy, Debug, Eq, PartialEq, serde::Deserialize, serde::Serialize, strum::Disp...
crates/api_models/src/enums.rs
api_models
full_file
3,537
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::PaymentsCancel; let mut payload = json_payload.into_inner(); let payment_id = path.into_inner(); tracing::Span::current().record("payment_id", payment_id.get_string_repr()); payload.payment_id = payment_id; let locking_action = payload.get_locking_input(flow.c...
crates/router/src/routes/payments.rs
router
impl_block
277
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct CashappQr {}
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
7
rust
CashappQr
null
null
null
null
null
null
null
null
null
null
null
pub async fn profile_list() {}
crates/openapi/src/routes/profile.rs
openapi
function_signature
7
rust
null
null
null
null
profile_list
null
null
null
null
null
null
null
impl api::PaymentCapture for Thunes {}
crates/hyperswitch_connectors/src/connectors/thunes.rs
hyperswitch_connectors
impl_block
9
rust
null
Thunes
api::PaymentCapture for
impl api::PaymentCapture for for Thunes
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentMethodSpecificFeatures { "oneOf": [ { "$ref": "#/components/schemas/CardSpecificFeatures" } ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
40
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentMethodSpecificFeatures" ]
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/zen/transformers.rs Public structs: 24 use cards::CardNumber; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::{OptionExt, ValueExt}, pii::{self}, request::Method, }; use error_stack::ResultExt; use hyperswitch_domain_mod...
crates/hyperswitch_connectors/src/connectors/zen/transformers.rs#chunk0
hyperswitch_connectors
chunk
8,189
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Aci {}
crates/hyperswitch_connectors/src/connectors/aci.rs
hyperswitch_connectors
impl_block
10
rust
null
Aci
api::RefundExecute for
impl api::RefundExecute for for Aci
null
null
null
null
null
null
null
null
File: crates/router/src/core/fraud_check/flows.rs pub mod checkout_flow; pub mod fulfillment_flow; pub mod record_return; pub mod sale_flow; pub mod transaction_flow; use async_trait::async_trait; use crate::{ core::{ errors::RouterResult, payments::{self, flows::ConstructFlowSpecificData}, }...
crates/router/src/core/fraud_check/flows.rs
router
full_file
212
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct DisputeResponseData { pub id: String, pub amount: MinorUnit, pub currency: api_models::enums::Currency, pub token: String, pub dispute_reason_description: String, #[serde(default, with = "common_utils::custom_serde::timestamp::option")] pub due_date: Option<PrimitiveDateTime>, ...
crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs
hyperswitch_connectors
struct_definition
154
rust
DisputeResponseData
null
null
null
null
null
null
null
null
null
null
null
File: crates/common_utils/src/crypto.rs Public functions: 10 Public structs: 14 //! Utilities for cryptographic algorithms use std::ops::Deref; use base64::Engine; use error_stack::ResultExt; use masking::{ExposeInterface, Secret}; use md5; use pem; use ring::{ aead::{self, BoundKey, OpeningKey, SealingKey, Unb...
crates/common_utils/src/crypto.rs#chunk0
common_utils
chunk
8,178
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PowertranzAddressDetails { // first_name: Option<Secret<String>>, // last_name: Option<Secret<String>>, // line1: Option<Secret<String>>, // line2: Option<Secret<String>>, // city: Option<String>, // country: Option<enums::CountryAlpha2>, // state: Option<Secret<String>>, // p...
crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs
hyperswitch_connectors
struct_definition
107
rust
PowertranzAddressDetails
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AchBankTransfer { "type": "object", "required": [ "bank_account_number", "bank_routing_number" ], "properties": { "bank_name": { "type": "string", "description": "Bank name", "example": "Deutsche Bank", "nullable": true }, "bank_...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
265
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AchBankTransfer" ]
null
null
null
null
File: crates/openapi/src/openapi_v2.rs use crate::routes; #[derive(utoipa::OpenApi)] #[openapi( info( title = "Hyperswitch - API Documentation", contact( name = "Hyperswitch Support", url = "https://hyperswitch.io", email = "hyperswitch@juspay.in" ), ...
crates/openapi/src/openapi_v2.rs#chunk0
openapi
chunk
8,181
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalLiabilityResponse { pub payment_source: CardParams, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
PaypalLiabilityResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn is_permanent_card(&self) -> bool { matches!(self, Self::PermanentCard(_) | Self::Permanent(_)) }
crates/router/src/types/storage/payment_method.rs
router
function_signature
31
rust
null
null
null
null
is_permanent_card
null
null
null
null
null
null
null
impl ConnectorCommon for Forte { fn id(&self) -> &'static str { "forte" } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.forte.base_url.as_ref() } fn get_auth_heade...
crates/hyperswitch_connectors/src/connectors/forte.rs
hyperswitch_connectors
impl_block
458
rust
null
Forte
ConnectorCommon for
impl ConnectorCommon for for Forte
null
null
null
null
null
null
null
null
pub fn add_certificate_key(&mut self, certificate_key: Option<Secret<String>>) { self.certificate = certificate_key; }
crates/common_utils/src/request.rs
common_utils
function_signature
28
rust
null
null
null
null
add_certificate_key
null
null
null
null
null
null
null
File: crates/scheduler/src/producer.rs Public functions: 3 use std::sync::Arc; use common_utils::{errors::CustomResult, id_type}; use diesel_models::enums::ProcessTrackerStatus; use error_stack::{report, ResultExt}; use router_env::{ instrument, tracing::{self, Instrument}, }; use time::Duration; use tokio::...
crates/scheduler/src/producer.rs
scheduler
full_file
1,350
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Nexixpay {}
crates/hyperswitch_connectors/src/connectors/nexixpay.rs
hyperswitch_connectors
impl_block
11
rust
null
Nexixpay
api::RefundSync for
impl api::RefundSync for for Nexixpay
null
null
null
null
null
null
null
null
pub struct SantanderPixPSyncResponse { #[serde(flatten)] pub base: SantanderPixQRCodePaymentsResponse, pub pix: Vec<SantanderPix>, }
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
SantanderPixPSyncResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/flows/incremental_authorization_flow.rs use async_trait::async_trait; use super::ConstructFlowSpecificData; use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, Feature, PaymentData}, }, ...
crates/router/src/core/payments/flows/incremental_authorization_flow.rs
router
full_file
954
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Zsl {}
crates/hyperswitch_connectors/src/connectors/zsl.rs
hyperswitch_connectors
impl_block
9
rust
null
Zsl
api::PaymentCapture for
impl api::PaymentCapture for for Zsl
null
null
null
null
null
null
null
null
pub struct KatapultCard { number: cards::CardNumber, expiry_month: Secret<String>, expiry_year: Secret<String>, cvc: Secret<String>, complete: bool, }
crates/hyperswitch_connectors/src/connectors/katapult/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
KatapultCard
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/services/kafka/payment_attempt_event.rs Public functions: 2 Public structs: 2 #[cfg(feature = "v2")] use common_types::payments; #[cfg(feature = "v2")] use common_utils::types; use common_utils::{id_type, types::MinorUnit}; use diesel_models::enums as storage_enums; #[cfg(feature = "v2")] use...
crates/router/src/services/kafka/payment_attempt_event.rs
router
full_file
3,849
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CeleroCardResponse { pub status: CeleroTransactionStatus, pub auth_code: Option<String>, pub processor_response_code: Option<String>, pub avs_response_code: Option<String>, }
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
CeleroCardResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn new(event_type: AuditEventType) -> Self { Self { event_type, created_at: common_utils::date_time::now(), } }
crates/router/src/events/audit_events.rs
router
function_signature
35
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct CybersourceAuthType { pub(super) api_key: Secret<String>, pub(super) merchant_account: Secret<String>, pub(super) api_secret: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
39
rust
CybersourceAuthType
null
null
null
null
null
null
null
null
null
null
null
pub struct NexixpayCompleteAuthorizeResponse { operation: OperationData, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
NexixpayCompleteAuthorizeResponse
null
null
null
null
null
null
null
null
null
null
null
impl AnalyticsConfig { pub fn get_forex_enabled(&self) -> bool { match self { Self::Sqlx { forex_enabled, .. } | Self::Clickhouse { forex_enabled, .. } | Self::CombinedCkh { forex_enabled, .. } | Self::CombinedSqlx { forex_enabled, .. } => *forex_enabled, ...
crates/analytics/src/lib.rs
analytics
impl_block
81
rust
null
AnalyticsConfig
null
impl AnalyticsConfig
null
null
null
null
null
null
null
null
pub fn validate_refund_amount( amount_captured: i64, all_refunds: &[diesel_refund::Refund], refund_amount: i64, ) -> CustomResult<(), RefundValidationError> { let total_refunded_amount: i64 = all_refunds .iter() .filter_map(|refund| { if refund.refund_status != enums::RefundS...
crates/router/src/core/utils/refunds_validator.rs
router
function_signature
184
rust
null
null
null
null
validate_refund_amount
null
null
null
null
null
null
null
pub struct VgsInsertRequest { data: Vec<VgsTokenRequestItem>, }
crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
VgsInsertRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/routes/refunds.rs Public functions: 17 Public structs: 1 use actix_web::{web, HttpRequest, HttpResponse}; use common_utils; use router_env::{instrument, tracing, Flow}; use super::app::AppState; #[cfg(feature = "v1")] use crate::core::refunds::*; #[cfg(feature = "v2")] use crate::core::refun...
crates/router/src/routes/refunds.rs
router
full_file
5,264
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BluesnapCaptureRequest { card_transaction_type: BluesnapTxnType, transaction_id: String, amount: Option<StringMajorUnit>, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
BluesnapCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct MaskedBankDetails { pub mask: String, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
14
rust
MaskedBankDetails
null
null
null
null
null
null
null
null
null
null
null
impl Default for AnalyticsProvider { fn default() -> Self { Self::Sqlx(SqlxClient::default()) } }
crates/analytics/src/lib.rs
analytics
impl_block
27
rust
null
AnalyticsProvider
Default for
impl Default for for AnalyticsProvider
null
null
null
null
null
null
null
null
impl Parse for SchemaParameterVariant { fn parse(input: syn::parse::ParseStream<'_>) -> syn::Result<Self> { let lookahead = input.lookahead1(); if lookahead.peek(keyword::value_type) { let keyword = input.parse()?; input.parse::<Token![=]>()?; let value = input.pa...
crates/router_derive/src/macros/schema/helpers.rs
router_derive
impl_block
235
rust
null
SchemaParameterVariant
Parse for
impl Parse for for SchemaParameterVariant
null
null
null
null
null
null
null
null
impl ConnectorValidation for Xendit { fn validate_mandate_payment( &self, pm_type: Option<PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { let mandate_supported_pmd = std::collections::HashSet::from([PaymentMethodDataType::Card]); ...
crates/hyperswitch_connectors/src/connectors/xendit.rs
hyperswitch_connectors
impl_block
96
rust
null
Xendit
ConnectorValidation for
impl ConnectorValidation for for Xendit
null
null
null
null
null
null
null
null
File: crates/router/src/core/errors/chat.rs Public functions: 1 #[derive(Debug, thiserror::Error)] pub enum ChatErrors { #[error("User InternalServerError")] InternalServerError, #[error("Missing Config error")] MissingConfigError, #[error("Chat response deserialization failed")] ChatResponseD...
crates/router/src/core/errors/chat.rs
router
full_file
316
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentDetail { pub payment_id: Option<u64>, pub batch_id: Option<u64>, pub session_id: Option<u64>, pub response_reason_code: Option<String>, pub response_reason_message: Option<String>, pub reject_type: Option<String>, pub dupe_txn_id: Option<u64>, pub amount: Option<String>...
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
149
rust
PaymentDetail
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Forte { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&FORTE_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*FORTE_SUPPORTED_PAYMENT_METHODS) } fn get_supported_...
crates/hyperswitch_connectors/src/connectors/forte.rs
hyperswitch_connectors
impl_block
105
rust
null
Forte
ConnectorSpecifications for
impl ConnectorSpecifications for for Forte
null
null
null
null
null
null
null
null
impl api::Refund for Amazonpay {}
crates/hyperswitch_connectors/src/connectors/amazonpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Amazonpay
api::Refund for
impl api::Refund for for Amazonpay
null
null
null
null
null
null
null
null
impl GetRequestIncrementalAuthorization for PaymentsAuthorizeData { fn get_request_incremental_authorization(&self) -> Option<bool> { Some(self.request_incremental_authorization) } }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
impl_block
39
rust
null
PaymentsAuthorizeData
GetRequestIncrementalAuthorization for
impl GetRequestIncrementalAuthorization for for PaymentsAuthorizeData
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Boku { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&BOKU_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*BOKU_SUPPORTED_PAYMENT_METHODS) } fn get_supported_web...
crates/hyperswitch_connectors/src/connectors/boku.rs
hyperswitch_connectors
impl_block
108
rust
null
Boku
ConnectorSpecifications for
impl ConnectorSpecifications for for Boku
null
null
null
null
null
null
null
null
impl OrganizationNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Organization> { generics::generic_insert(conn, self).await } }
crates/diesel_models/src/query/organization.rs
diesel_models
impl_block
40
rust
null
OrganizationNew
null
impl OrganizationNew
null
null
null
null
null
null
null
null
pub struct ConnectorFeatureMatrixResponse { /// The name of the connector pub name: String, /// The display name of the connector pub display_name: String, /// The description of the connector pub description: String, /// The category of the connector #[schema(value_type = HyperswitchCon...
crates/api_models/src/feature_matrix.rs
api_models
struct_definition
197
rust
ConnectorFeatureMatrixResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn payments_to_payments_response<Op, F: Clone, D>( payment_data: D, captures: Option<Vec<storage::Capture>>, customer: Option<domain::Customer>, _auth_flow: services::AuthFlow, base_url: &str, operation: &Op, connector_request_reference_id_config: &ConnectorRequestReferenceIdConfig, ...
crates/router/src/core/payments/transformers.rs
router
function_signature
4,889
rust
null
null
null
null
payments_to_payments_response
null
null
null
null
null
null
null
impl ProphetpayTokenType { fn get_token_type(&self) -> i8 { match self { Self::Normal => 0, Self::SaleTab => 1, Self::TemporarySave => 2, } } }
crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs
hyperswitch_connectors
impl_block
52
rust
null
ProphetpayTokenType
null
impl ProphetpayTokenType
null
null
null
null
null
null
null
null
impl RelayInterface for RelayRefund { type Request = relay_api_models::RelayRefundRequestData; fn get_domain_models( relay_request: RelayRequestInner<Self>, merchant_id: &id_type::MerchantId, profile_id: &id_type::ProfileId, ) -> relay::Relay { let relay_id = id_type::RelayI...
crates/router/src/core/relay.rs
router
impl_block
754
rust
null
RelayRefund
RelayInterface for
impl RelayInterface for for RelayRefund
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs Public structs: 8 use common_enums::enums; use common_utils::types::StringMinorUnit; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router_flow_types::refunds::...
crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs
hyperswitch_connectors
full_file
1,688
null
null
null
null
null
null
null
null
null
null
null
null
null
pub(crate) fn diesel_enum_db_enum_derive_inner(ast: &DeriveInput) -> syn::Result<TokenStream> { let name = &ast.ident; let (impl_generics, ty_generics, where_clause) = ast.generics.split_for_impl(); match &ast.data { Data::Enum(_) => (), _ => return Err(helpers::non_enum_error()), }; ...
crates/router_derive/src/macros/diesel.rs
router_derive
function_signature
419
rust
null
null
null
null
diesel_enum_db_enum_derive_inner
null
null
null
null
null
null
null
pub struct PaysafeRouterData<T> { pub amount: MinorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc. pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs
hyperswitch_connectors
struct_definition
49
rust
PaysafeRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundData { edges: Vec<RSyncEdgeData>, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
RefundData
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/enums.rs Public structs: 2 #[doc(hidden)] pub mod diesel_exports { pub use super::{ DbApiVersion as ApiVersion, DbAttemptStatus as AttemptStatus, DbAuthenticationType as AuthenticationType, DbBlocklistDataKind as BlocklistDataKind, DbCaptureMethod as CaptureM...
crates/diesel_models/src/enums.rs
diesel_models
full_file
1,888
null
null
null
null
null
null
null
null
null
null
null
null
null
Web Documentation: Previous roadmap - Q1 2024 | Hyperswitch # Type: Web Doc 🗺️ Our Roadmap typically pans out over a 3-month period and we establish topics we work on upfront. 👂And as always, we listen to your feedback and adapt our plans if needed. Core Values Our core values have pretty much remained the same sinc...
https://docs.hyperswitch.io/about-hyperswitch/roadmap/roadmap-q1-2024
null
web_doc_file
772
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/about-hyperswitch/roadmap/roadmap-q1-2024
Previous roadmap - Q1 2024 | Hyperswitch
null
impl api::PaymentAuthorize for Katapult {}
crates/hyperswitch_connectors/src/connectors/katapult.rs
hyperswitch_connectors
impl_block
9
rust
null
Katapult
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Katapult
null
null
null
null
null
null
null
null
pub struct Args { /// Admin API Key of the environment #[arg(short, long)] admin_api_key: String, /// Base URL of the Hyperswitch environment #[arg(short, long)] base_url: String, /// Name of the connector #[arg(short, long)] connector_name: Option<String>, /// Name of the module...
crates/test_utils/src/newman_runner.rs
test_utils
struct_definition
213
rust
Args
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Affirm {}
crates/hyperswitch_connectors/src/connectors/affirm.rs
hyperswitch_connectors
impl_block
9
rust
null
Affirm
api::PaymentToken for
impl api::PaymentToken for for Affirm
null
null
null
null
null
null
null
null
impl ConnectorCommon for Gocardless { fn id(&self) -> &'static str { "gocardless" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connect...
crates/hyperswitch_connectors/src/connectors/gocardless.rs
hyperswitch_connectors
impl_block
479
rust
null
Gocardless
ConnectorCommon for
impl ConnectorCommon for for Gocardless
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Paytm {}
crates/hyperswitch_connectors/src/connectors/paytm.rs
hyperswitch_connectors
impl_block
9
rust
null
Paytm
api::PaymentCapture for
impl api::PaymentCapture for for Paytm
null
null
null
null
null
null
null
null
pub async fn delete_evidence( state: SessionState, merchant_context: domain::MerchantContext, delete_evidence_request: dispute_models::DeleteEvidenceRequest, ) -> RouterResponse<serde_json::Value> { let dispute_id = delete_evidence_request.dispute_id.clone(); let dispute = state .store ...
crates/router/src/core/disputes.rs
router
function_signature
369
rust
null
null
null
null
delete_evidence
null
null
null
null
null
null
null
pub async fn decide_frm_flow( router_data: &mut FrmRecordReturnRouterData, state: &SessionState, connector: &FraudCheckConnectorData, call_connector_action: payments::CallConnectorAction, _merchant_context: &domain::MerchantContext, ) -> RouterResult<FrmRecordReturnRouterData> { let connector_in...
crates/router/src/core/fraud_check/flows/record_return.rs
router
function_signature
163
rust
null
null
null
null
decide_frm_flow
null
null
null
null
null
null
null
pub trait ToSql<T: AnalyticsDataSource> { fn to_sql(&self, table_engine: &TableEngine) -> error_stack::Result<String, ParsingError>; }
crates/analytics/src/query.rs
analytics
trait_definition
35
rust
null
null
ToSql
null
null
null
null
null
null
null
null
null
impl Deref for FloatDecimal { type Target = Decimal; fn deref(&self) -> &Self::Target { &self.0 } }
crates/router/src/utils/currency.rs
router
impl_block
35
rust
null
FloatDecimal
Deref for
impl Deref for for FloatDecimal
null
null
null
null
null
null
null
null
/// Create a [`Gauge`][Gauge] metric with the specified name and an optional description, /// associated with the specified meter. Note that the meter must be a valid [`Meter`][Meter]. /// /// [Gauge]: opentelemetry::metrics::Gauge /// [Meter]: opentelemetry::metrics::Meter #[macro_export] macro_rules! gauge_metric { ...
crates/router_env/src/metrics.rs
router_env
macro
251
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
impl PaymentVoid for Riskified {}
crates/hyperswitch_connectors/src/connectors/riskified.rs
hyperswitch_connectors
impl_block
7
rust
null
Riskified
PaymentVoid for
impl PaymentVoid for for Riskified
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for CtpMastercard { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplem...
crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs
hyperswitch_connectors
impl_block
212
rust
null
CtpMastercard
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for CtpMastercard
null
null
null
null
null
null
null
null
pub struct OperationData { operation_id: String, operation_currency: Currency, operation_result: NexixpayPaymentStatus, operation_type: NexixpayOperationType, order_id: String, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
OperationData
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthenticationEligibilityRequest { /// Payment method-specific data such as card details, wallet info, etc. /// This holds the raw information required to process the payment method. #[schema(value_type = PaymentMethodData)] pub payment_method_data: PaymentMethodData, /// Enum representi...
crates/api_models/src/authentication.rs
api_models
struct_definition
416
rust
AuthenticationEligibilityRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct CardDetailsPaymentMethod { pub last4_digits: Option<String>, pub issuer_country: Option<String>, pub expiry_month: Option<Secret<String>>, pub expiry_year: Option<Secret<String>>, pub nick_name: Option<Secret<String>>, pub card_holder_name: Option<Secret<String>>, pub card_isin: O...
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
127
rust
CardDetailsPaymentMethod
null
null
null
null
null
null
null
null
null
null
null
pub fn get_id(&self) -> Option<id_type::MerchantConnectorAccountId> { match self { Self::MerchantConnectorAccount(merchant_connector_account) => { Some(merchant_connector_account.id.clone()) } Self::MerchantConnectorDetails(_) => None, } }
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
60
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
impl Conversion { fn get_req_type(ident: Derives) -> syn::Ident { match ident { Derives::Authorize => syn::Ident::new("PaymentsRequest", Span::call_site()), Derives::AuthorizeData => syn::Ident::new("PaymentsAuthorizeData", Span::call_site()), Derives::Sync => syn::Ident:...
crates/router_derive/src/macros/operation.rs
router_derive
impl_block
1,495
rust
null
Conversion
null
impl Conversion
null
null
null
null
null
null
null
null
impl SecretBytesMut { /// Wrap bytes in `SecretBytesMut` pub fn new(bytes: impl Into<BytesMut>) -> Self { Self(bytes.into()) } }
crates/masking/src/bytes.rs
masking
impl_block
38
rust
null
SecretBytesMut
null
impl SecretBytesMut
null
null
null
null
null
null
null
null
pub async fn authentication_create() {}
crates/openapi/src/routes/authentication.rs
openapi
function_signature
7
rust
null
null
null
null
authentication_create
null
null
null
null
null
null
null
pub struct DwollaPaymentSyncResponse { pub id: String, pub status: DwollaPaymentStatus, pub amount: DwollaAmount, }
crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
DwollaPaymentSyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ThreeDSRequestDeviceData { pub accept_header: String, pub user_agent_header: String, pub browser_language: Option<String>, pub browser_screen_width: Option<u32>, pub browser_screen_height: Option<u32>, pub browser_color_depth: Option<String>, pub time_zone: Option<String>, pub...
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
hyperswitch_connectors
struct_definition
101
rust
ThreeDSRequestDeviceData
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MobilePaymentNextStepData { "type": "object", "required": [ "consent_data_required" ], "properties": { "consent_data_required": { "$ref": "#/components/schemas/MobilePaymentConsent" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
69
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MobilePaymentNextStepData" ]
null
null
null
null
pub struct NetAmount { /// The payment amount order_amount: MinorUnit, /// The shipping cost of the order shipping_cost: Option<MinorUnit>, /// Tax amount related to the order order_tax_amount: Option<MinorUnit>, /// The surcharge amount to be added to the order surcharge_amount: Option<...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
struct_definition
98
rust
NetAmount
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_payment_link( state: SessionState, merchant: domain::MerchantAccount, constraints: api_models::payments::PaymentLinkListConstraints, ) -> RouterResponse<Vec<api_models::payments::RetrievePaymentLinkResponse>> { let db = state.store.as_ref(); let payment_link = db .list_paym...
crates/router/src/core/payment_link.rs
router
function_signature
171
rust
null
null
null
null
list_payment_link
null
null
null
null
null
null
null
/// get_webhook_config_disabled_events_key pub fn get_webhook_config_disabled_events_key(&self, connector_id: &str) -> String { format!( "whconf_disabled_events_{}_{connector_id}", self.get_string_repr() ) }
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
56
rust
null
null
null
null
get_webhook_config_disabled_events_key
null
null
null
null
null
null
null
pub fn build_pm_collect_link_html( link_data: &GenericLinkFormData, ) -> CustomResult<String, errors::ApiErrorResponse> { let document = include_str!("../../core/generic_link/payment_method_collect/initiate/index.html"); let styles = include_str!("../../core/generic_link/payment_method_collect/initi...
crates/router/src/services/api/generic_link_response.rs
router
function_signature
373
rust
null
null
null
null
build_pm_collect_link_html
null
null
null
null
null
null
null
pub struct HelcimInvoice { invoice_number: String, line_items: Vec<HelcimLineItems>, }
crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
HelcimInvoice
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.EphemeralKeyCreateResponse { "type": "object", "description": "ephemeral_key for the customer_id mentioned", "required": [ "customer_id", "created_at", "expires", "secret" ], "properties": { "customer_id": { "type": "string", "description"...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
245
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "EphemeralKeyCreateResponse" ]
null
null
null
null
pub struct ProcessTracker;
crates/router/src/routes/app.rs
router
struct_definition
5
rust
ProcessTracker
null
null
null
null
null
null
null
null
null
null
null
pub(crate) async fn extract_data_and_perform_action( state: &SessionState, tracking_data: &pcr_storage_types::RevenueRecoveryWorkflowTrackingData, ) -> Result<pcr_storage_types::RevenueRecoveryPaymentData, errors::ProcessTrackerError> { let db = &state.store; let key_manager_state = &state.into(); ...
crates/router/src/workflows/revenue_recovery.rs
router
function_signature
324
rust
null
null
null
null
extract_data_and_perform_action
null
null
null
null
null
null
null
pub fn mk_app( state: AppState, request_body_limit: usize, ) -> actix_web::App< impl ServiceFactory< ServiceRequest, Config = (), Response = actix_web::dev::ServiceResponse<impl MessageBody>, Error = actix_web::Error, InitError = (), >, > { let mut server_app ...
crates/router/src/lib.rs
router
function_signature
1,201
rust
null
null
null
null
mk_app
null
null
null
null
null
null
null
pub fn payments_cancel_post_capture() {}
crates/openapi/src/routes/payments.rs
openapi
function_signature
8
rust
null
null
null
null
payments_cancel_post_capture
null
null
null
null
null
null
null
impl api::Refund for Volt {}
crates/hyperswitch_connectors/src/connectors/volt.rs
hyperswitch_connectors
impl_block
8
rust
null
Volt
api::Refund for
impl api::Refund for for Volt
null
null
null
null
null
null
null
null
pub struct DlocalAuthType { pub(super) x_login: Secret<String>, pub(super) x_trans_key: Secret<String>, pub(super) secret: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
DlocalAuthType
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Authentication> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/authentication.rs
diesel_models
function_signature
34
rust
null
null
null
null
insert
null
null
null
null
null
null
null
pub struct GooglePayPaymentInformation { tokenized_card: TokenizedCard, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
GooglePayPaymentInformation
null
null
null
null
null
null
null
null
null
null
null
pub struct CoinbaseErrorData { #[serde(rename = "type")] pub error_type: String, pub message: String, pub code: Option<String>, }
crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
CoinbaseErrorData
null
null
null
null
null
null
null
null
null
null
null