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
pub struct CreateCustomerPaymentProfileRequest { create_customer_payment_profile_request: AuthorizedotnetPaymentProfileRequest, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
CreateCustomerPaymentProfileRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct PixInfo { #[serde(rename = "type")] pub key_type: String, pub key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/facilitapay/responses.rs
hyperswitch_connectors
struct_definition
28
rust
PixInfo
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentsPreProcessingData { pub payment_method_data: Option<PaymentMethodData>, pub amount: Option<i64>, pub email: Option<pii::Email>, pub currency: Option<storage_enums::Currency>, pub payment_method_type: Option<storage_enums::PaymentMethodType>, pub setup_mandate_details: Option<m...
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
296
rust
PaymentsPreProcessingData
null
null
null
null
null
null
null
null
null
null
null
impl FieldExt for Field { fn get_schema_metadata(&self) -> syn::Result<Vec<SchemaParameterVariant>> { get_metadata_inner("schema", &self.attrs) } }
crates/router_derive/src/macros/schema/helpers.rs
router_derive
impl_block
39
rust
null
Field
FieldExt for
impl FieldExt for for Field
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GooglePayThirdPartySdkData { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
24
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GooglePayThirdPartySdkData" ]
null
null
null
null
pub async fn get_metrics( pool: &AnalyticsProvider, ex_rates: &Option<ExchangeRates>, auth: &AuthInfo, req: GetPaymentIntentMetricRequest, ) -> AnalyticsResult<PaymentIntentsMetricsResponse<MetricsBucketResponse>> { let mut metrics_accumulator: HashMap< PaymentIntentMetricsBucketIdentifier, ...
crates/analytics/src/payment_intents/core.rs
analytics
function_signature
2,546
rust
null
null
null
null
get_metrics
null
null
null
null
null
null
null
pub async fn populate_vault_session_details<F, RouterDReq, ApiRequest, D>( state: &SessionState, req_state: ReqState, customer: &Option<domain::Customer>, merchant_context: &domain::MerchantContext, operation: &BoxedOperation<'_, F, ApiRequest, D>, profile: &domain::Profile, payment_data: &m...
crates/router/src/core/payments/vault_session.rs
router
function_signature
587
rust
null
null
null
null
populate_vault_session_details
null
null
null
null
null
null
null
pub struct NexixpayMandatePaymentRequest { contract_id: Secret<String>, capture_type: Option<NexixpayCaptureType>, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
NexixpayMandatePaymentRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundMetricsAccumulator { pub refund_success_rate: SuccessRateAccumulator, pub refund_count: CountAccumulator, pub refund_success: CountAccumulator, pub processed_amount: RefundProcessedAmountAccumulator, pub refund_reason: RefundReasonAccumulator, pub refund_reason_distribution: Ref...
crates/analytics/src/refunds/accumulator.rs
analytics
struct_definition
109
rust
RefundMetricsAccumulator
null
null
null
null
null
null
null
null
null
null
null
pub fn get_merchant_reference_id(&self) -> Option<id_type::CustomerId> { self.merchant_reference_id.clone() }
crates/api_models/src/customers.rs
api_models
function_signature
29
rust
null
null
null
null
get_merchant_reference_id
null
null
null
null
null
null
null
pub struct MandateListConstraints { /// limit on the number of objects to return pub limit: Option<i64>, /// offset on the number of objects to return pub offset: Option<i64>, /// status of the mandate pub mandate_status: Option<api_enums::MandateStatus>, /// connector linked to mandate ...
crates/api_models/src/mandates.rs
api_models
struct_definition
374
rust
MandateListConstraints
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_connector( state: SessionState, merchant_context: domain::MerchantContext, id: id_type::MerchantConnectorAccountId, ) -> RouterResponse<api::MerchantConnectorDeleteResponse> { let db = state.store.as_ref(); let key_manager_state = &(&state).into(); let merchant_id = merchant...
crates/router/src/core/admin.rs
router
function_signature
542
rust
null
null
null
null
delete_connector
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs Public functions: 1 Public structs: 15 use common_enums::enums; use common_utils::{ pii::{Email, IpAddress}, types::FloatMajorUnit, }; use error_stack::ResultExt; use hyperswitch_domain_models::{ payment_method_data::{Card, Payment...
crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs
hyperswitch_connectors
full_file
5,568
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/bluecode.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
Documentation: api-reference/v1/business-profile/business-profile--retrieve.mdx # Type: Doc File --- openapi: get /account/{account_id}/business_profile/{profile_id} ---
api-reference/v1/business-profile/business-profile--retrieve.mdx
null
doc_file
39
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let payment_id = path.into_inner(); tracing::Span::current().record("payment_id", payment_id.get_string_repr()); let flow = Flow::PaymentsCapture; let payload = payment_types::PaymentsCaptureRequest { payment_id, ..json_payload.into_inner() }; let locking_actio...
crates/router/src/routes/payments.rs
router
impl_block
283
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/payment-methods/list-customer-saved-payment-methods-for-a-payment.mdx # Type: Doc File --- openapi: get /customers/payment_methods ---
api-reference/v1/payment-methods/list-customer-saved-payment-methods-for-a-payment.mdx
null
doc_file
40
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_multiple_metadata( state: SessionState, user: UserFromToken, request: GetMultipleMetaDataPayload, _req_state: ReqState, ) -> UserResponse<Vec<api::GetMetaDataResponse>> { let metadata_keys: Vec<DBEnum> = request.results.into_iter().map(parse_get_request).collect(); let metadata...
crates/router/src/core/user/dashboard_metadata.rs
router
function_signature
211
rust
null
null
null
null
get_multiple_metadata
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<BlocklistLookup> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/blocklist_lookup.rs
diesel_models
function_signature
35
rust
null
null
null
null
insert
null
null
null
null
null
null
null
impl api::RefundExecute for Santander {}
crates/hyperswitch_connectors/src/connectors/santander.rs
hyperswitch_connectors
impl_block
10
rust
null
Santander
api::RefundExecute for
impl api::RefundExecute for for Santander
null
null
null
null
null
null
null
null
/// Get the profile_id from the lineage pub fn profile_id(&self) -> Option<&id_type::ProfileId> { match self { Self::Tenant { .. } | Self::Organization { .. } | Self::Merchant { .. } => None, Self::Profile { profile_id, .. } => Some(profile_id), } }
crates/common_utils/src/types/user/theme.rs
common_utils
function_signature
74
rust
null
null
null
null
profile_id
null
null
null
null
null
null
null
impl RoutingAlgorithm { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Self> { generics::generic_insert(conn, self).await } pub async fn find_by_algorithm_id_merchant_id( conn: &PgPooledConn, algorithm_id: &common_utils::id_type::RoutingId, merchant_id: &com...
crates/diesel_models/src/query/routing_algorithm.rs
diesel_models
impl_block
1,594
rust
null
RoutingAlgorithm
null
impl RoutingAlgorithm
null
null
null
null
null
null
null
null
pub struct Details { pub field: String, pub reason: String, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
Details
null
null
null
null
null
null
null
null
null
null
null
impl ApiEventMetric for Card {}
crates/api_models/src/blocklist.rs
api_models
impl_block
7
rust
null
Card
ApiEventMetric for
impl ApiEventMetric for for Card
null
null
null
null
null
null
null
null
impl crate::events::ApiEventMetric for ApiKeyId { fn get_api_event_type(&self) -> Option<crate::events::ApiEventsType> { Some(crate::events::ApiEventsType::ApiKey { key_id: self.clone(), }) } }
crates/common_utils/src/id_type/api_key.rs
common_utils
impl_block
57
rust
null
ApiKeyId
crate::events::ApiEventMetric for
impl crate::events::ApiEventMetric for for ApiKeyId
null
null
null
null
null
null
null
null
File: crates/euclid/src/enums.rs pub use common_enums::{ AuthenticationType, CaptureMethod, CardNetwork, Country, CountryAlpha2, Currency, FutureUsage as SetupFutureUsage, PaymentMethod, PaymentMethodType, RoutableConnectors, }; use strum::VariantNames; pub trait CollectVariants { fn variants<T: FromItera...
crates/euclid/src/enums.rs
euclid
full_file
915
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct MetricsResponse<T> { pub query_data: Vec<T>, pub meta_data: [AnalyticsMetadata; 1], }
crates/api_models/src/analytics.rs
api_models
struct_definition
28
rust
MetricsResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn profiles_list( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::MerchantId>, ) -> HttpResponse { let flow = Flow::ProfileList; let merchant_id = path.into_inner(); Box::pin(api::server_wrap( flow, state, &req, merc...
crates/router/src/routes/profiles.rs
router
function_signature
188
rust
null
null
null
null
profiles_list
null
null
null
null
null
null
null
impl SessionStateInfo for SessionState { fn store(&self) -> Box<dyn StorageInterface> { self.store.to_owned() } fn conf(&self) -> settings::Settings<RawSecret> { self.conf.as_ref().to_owned() } fn event_handler(&self) -> EventsHandler { self.event_handler.clone() } fn...
crates/router/src/routes/app.rs
router
impl_block
425
rust
null
SessionState
SessionStateInfo for
impl SessionStateInfo for for SessionState
null
null
null
null
null
null
null
null
- - - ## 2024.11.22.0 ### Features - **connector:** - [Xendit] Template PR ([#6593](https://github.com/juspay/hyperswitch/pull/6593)) ([`9bc363f`](https://github.com/juspay/hyperswitch/commit/9bc363f140afcdc3d4dc624d6410a42c33afaeed)) - [AIRWALLEX] Update production endpoint ([#6632](https://github.com/juspay/h...
CHANGELOG.md#chunk18
null
doc_chunk
8,166
doc
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/profile/profile--update.mdx # Type: Doc File --- openapi: put /v2/profiles/{id} ---
api-reference/v2/profile/profile--update.mdx
null
doc_file
33
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn sync_relay_refund_with_gateway( state: &SessionState, merchant_context: &domain::MerchantContext, relay_record: &relay::Relay, connector_account: domain::MerchantConnectorAccount, ) -> RouterResult<relay::RelayUpdate> { let connector_id = &relay_record.connector_id; let merchant_id ...
crates/router/src/core/relay.rs
router
function_signature
376
rust
null
null
null
null
sync_relay_refund_with_gateway
null
null
null
null
null
null
null
impl common_utils::events::ApiEventMetric for ProfileAcquirerCreate {}
crates/api_models/src/profile_acquirer.rs
api_models
impl_block
15
rust
null
ProfileAcquirerCreate
common_utils::events::ApiEventMetric for
impl common_utils::events::ApiEventMetric for for ProfileAcquirerCreate
null
null
null
null
null
null
null
null
pub struct AuthorizedotnetAuthType { name: Secret<String>, transaction_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
AuthorizedotnetAuthType
null
null
null
null
null
null
null
null
null
null
null
pub fn add_two(n1: i64, n2: i64) -> i64 { n1 + n2 }
crates/euclid_wasm/src/lib.rs
euclid_wasm
function_signature
31
rust
null
null
null
null
add_two
null
null
null
null
null
null
null
pub struct ChallengeParams { pub acs_url: Option<url::Url>, pub challenge_request: Option<String>, pub acs_reference_number: Option<String>, pub acs_trans_id: Option<String>, pub three_dsserver_trans_id: Option<String>, pub acs_signed_content: Option<String>, }
crates/hyperswitch_domain_models/src/router_request_types/authentication.rs
hyperswitch_domain_models
struct_definition
68
rust
ChallengeParams
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/payouts.rs #![allow(clippy::unwrap_used, clippy::print_stdout)] mod utils; #[actix_web::test] async fn payouts_todo() { Box::pin(utils::setup()).await; let client = awc::Client::default(); let mut response; let mut response_body; let get_endpoints = vec!["retrieve", "ac...
crates/router/tests/payouts.rs
router
full_file
301
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::PaymentsManualUpdate; let mut payload = json_payload.into_inner(); let payment_id = path.into_inner(); let locking_action = payload.get_locking_input(flow.clone()); tracing::Span::current().record("payment_id", payment_id.get_string_repr()); payload.payment_i...
crates/router/src/routes/payments.rs
router
impl_block
140
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct Stax;
crates/hyperswitch_connectors/src/connectors/stax.rs
hyperswitch_connectors
struct_definition
5
rust
Stax
null
null
null
null
null
null
null
null
null
null
null
pub struct XenditSplitRoute { #[serde(skip_serializing_if = "Option::is_none")] pub flat_amount: Option<FloatMajorUnit>, #[serde(skip_serializing_if = "Option::is_none")] pub percent_amount: Option<i64>, pub currency: Currency, pub destination_account_id: String, pub reference_id: String, }
crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs
hyperswitch_connectors
struct_definition
78
rust
XenditSplitRoute
null
null
null
null
null
null
null
null
null
null
null
pub struct Customer { #[serde(skip_serializing_if = "Option::is_none")] pub risk_profile: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub authentication: Option<CustomerAuthentication>, }
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
hyperswitch_connectors
struct_definition
49
rust
Customer
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_by_unified_code_unified_message_locale( conn: &PgPooledConn, unified_code: String, unified_message: String, locale: String, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::unified_c...
crates/diesel_models/src/query/unified_translations.rs
diesel_models
function_signature
115
rust
null
null
null
null
find_by_unified_code_unified_message_locale
null
null
null
null
null
null
null
pub struct MollieRefundRequest { amount: Amount, description: Option<String>, metadata: Option<MollieMetadata>, }
crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
MollieRefundRequest
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Checkout { fn id(&self) -> &'static str { "checkout" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/json" } fn get_auth_header( &self,...
crates/hyperswitch_connectors/src/connectors/checkout.rs
hyperswitch_connectors
impl_block
617
rust
null
Checkout
ConnectorCommon for
impl ConnectorCommon for for Checkout
null
null
null
null
null
null
null
null
pub struct PaypalQueryParams { #[serde(rename = "PayerID")] payer_id: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
PaypalQueryParams
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymeVoidResponse { sale_status: SaleStatus, payme_transaction_id: Option<String>, status_error_code: Option<u32>, }
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
PaymeVoidResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/scheduler/src/env.rs #[doc(inline)] pub use router_env::*;
crates/scheduler/src/env.rs
scheduler
full_file
19
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct GlobepaySyncResponse { pub result_code: Option<GlobepayPaymentPsyncStatus>, pub order_id: Option<String>, pub return_code: GlobepayReturnCode, pub return_msg: Option<String>, }
crates/hyperswitch_connectors/src/connectors/globepay/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
GlobepaySyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/v2/routing-algorithms") .app_data(web::Data::new(state.clone())) .service( web::resource("").route(web::post().to(|state, req, payload| { routing::routing_create_config(state, req, payload, Transac...
crates/router/src/routes/app.rs
router
function_signature
110
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub async fn get_user_from_db(&self, state: &SessionState) -> UserResult<UserFromStorage> { let user = state .global_store .find_user_by_id(&self.user_id) .await .change_context(UserErrors::InternalServerError)?; Ok(user.into()) }
crates/router/src/utils/user.rs
router
function_signature
66
rust
null
null
null
null
get_user_from_db
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PayoutType { "type": "string", "description": "The payout_type of the payout request is a mandatory field for confirming the payouts. It should be specified in the Create request. If not provided, it must be updated in the Payout Update request before it can be confirmed.", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
90
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PayoutType" ]
null
null
null
null
pub fn add_entity<T>(self, entity: T) -> NewUserRole<T> where T: Clone, { NewUserRole { entity, user_id: self.user_id, role_id: self.role_id, status: self.status, created_by: self.created_by, last_modified_by: self.last_modi...
crates/router/src/types/domain/user.rs
router
function_signature
94
rust
null
null
null
null
add_entity
null
null
null
null
null
null
null
pub async fn find_by_merchant_id_fingerprint( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, fingerprint: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::merchant_id ...
crates/diesel_models/src/query/blocklist_lookup.rs
diesel_models
function_signature
107
rust
null
null
null
null
find_by_merchant_id_fingerprint
null
null
null
null
null
null
null
impl api::PaymentToken for Adyenplatform {}
crates/hyperswitch_connectors/src/connectors/adyenplatform.rs
hyperswitch_connectors
impl_block
10
rust
null
Adyenplatform
api::PaymentToken for
impl api::PaymentToken for for Adyenplatform
null
null
null
null
null
null
null
null
impl Args { /// Getter for the `module_name` field pub fn get_module_name(&self) -> Option<Module> { self.module_name } }
crates/test_utils/src/newman_runner.rs
test_utils
impl_block
37
rust
null
Args
null
impl Args
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/router_request_types.rs Public functions: 2 Public structs: 50 pub mod authentication; pub mod fraud_check; pub mod revenue_recovery; pub mod unified_authentication_service; use api_models::payments::{AdditionalPaymentData, RequestSurchargeDetails}; use common_types::paymen...
crates/hyperswitch_domain_models/src/router_request_types.rs#chunk0
hyperswitch_domain_models
chunk
8,189
null
null
null
null
null
null
null
null
null
null
null
null
null
impl PaymentSync for Netcetera {}
crates/hyperswitch_connectors/src/connectors/netcetera.rs
hyperswitch_connectors
impl_block
9
rust
null
Netcetera
PaymentSync for
impl PaymentSync for for Netcetera
null
null
null
null
null
null
null
null
impl api::PaymentPostCaptureVoid for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
13
rust
null
Worldpayvantiv
api::PaymentPostCaptureVoid for
impl api::PaymentPostCaptureVoid for for Worldpayvantiv
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs Public functions: 1 Public structs: 51 use api_models::payments::{ ApplePayCombinedMetadata, ApplepayCombinedSessionTokenData, ApplepaySessionTokenData, ApplepaySessionTokenMetadata, }; use base64::Engine; use common_enums::{enums, Cur...
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs#chunk0
hyperswitch_connectors
chunk
8,189
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Violations { pub razao: String, pub propriedade: String, pub valor: String, }
crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
Violations
null
null
null
null
null
null
null
null
null
null
null
/// Short hash of the current commit. /// /// Example: `f5f383e`. #[cfg(feature = "vergen")] #[macro_export] macro_rules! commit { () => { env!("VERGEN_GIT_SHA") }; }
crates/router_env/src/env.rs
router_env
macro
54
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
pub struct PaymentMethodMigrationResponse { pub line_number: Option<i64>, #[serde(skip_serializing_if = "Option::is_none")] pub payment_method_id: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub payment_method: Option<api_enums::PaymentMethod>, #[serde(skip_serializing_if =...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
199
rust
PaymentMethodMigrationResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct Customer { id: String, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
10
rust
Customer
null
null
null
null
null
null
null
null
null
null
null
pub struct GenericLink { pub link_id: String, pub primary_reference: String, pub merchant_id: common_utils::id_type::MerchantId, #[serde(with = "common_utils::custom_serde::iso8601")] pub created_at: PrimitiveDateTime, #[serde(with = "common_utils::custom_serde::iso8601")] pub last_modified_...
crates/diesel_models/src/generic_link.rs
diesel_models
struct_definition
162
rust
GenericLink
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalConfirmRequest { create_transaction_request: PaypalConfirmTransactionRequest, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
PaypalConfirmRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn payment_intent_list( state: web::Data<routes::AppState>, req: HttpRequest, payload: web::Query<types::StripePaymentListConstraints>, ) -> HttpResponse { let payload = match payment_types::PaymentListConstraints::try_from(payload.into_inner()) { Ok(p) => p, Err(err) => return...
crates/router/src/compatibility/stripe/payment_intents.rs
router
function_signature
275
rust
null
null
null
null
payment_intent_list
null
null
null
null
null
null
null
pub async fn push_metrics_with_update_window_for_success_based_routing( state: &SessionState, payment_attempt: &storage::PaymentAttempt, routable_connectors: Vec<routing_types::RoutableConnectorChoice>, profile_id: &id_type::ProfileId, dynamic_routing_algo_ref: routing_types::DynamicRoutingAlgorithm...
crates/router/src/core/routing/helpers.rs
router
function_signature
2,712
rust
null
null
null
null
push_metrics_with_update_window_for_success_based_routing
null
null
null
null
null
null
null
pub async fn get_theme_using_lineage( state: SessionState, lineage: ThemeLineage, ) -> UserResponse<theme_api::GetThemeResponse> { let theme = state .store .find_theme_by_lineage(lineage) .await .to_not_found_response(UserErrors::ThemeNotFound)?; let file = theme_utils::...
crates/router/src/core/user/theme.rs
router
function_signature
226
rust
null
null
null
null
get_theme_using_lineage
null
null
null
null
null
null
null
pub struct NetworkTokenErrorResponse { pub error_message: String, pub error_info: NetworkTokenErrorInfo, }
crates/router/src/types/payment_methods.rs
router
struct_definition
24
rust
NetworkTokenErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn build_case_insensitive_filters( &self, mut payload: Value, case_insensitive_filters: &[&(String, Vec<Value>)
crates/analytics/src/opensearch.rs
analytics
function_signature
31
rust
null
null
null
null
build_case_insensitive_filters
null
null
null
null
null
null
null
pub fn get_primary_details_as_value( &self, ) -> CustomResult<Option<serde_json::Value>, errors::ParsingError> { self.primary_business_details .as_ref() .map(|primary_business_details| primary_business_details.encode_to_value()) .transpose() }
crates/api_models/src/admin.rs
api_models
function_signature
62
rust
null
null
null
null
get_primary_details_as_value
null
null
null
null
null
null
null
pub trait EuclidParsable: Sized { fn parse_output(input: &str) -> ParseResult<&str, Self>; }
crates/euclid/src/frontend/ast/parser.rs
euclid
trait_definition
28
rust
null
null
EuclidParsable
null
null
null
null
null
null
null
null
null
File: crates/openapi/src/routes/platform.rs Public functions: 1 #[cfg(feature = "v1")] /// Platform - Create /// /// Create a new platform account #[utoipa::path( post, path = "/user/create_platform", request_body( content = PlatformAccountCreateRequest, description = "Create a platform ac...
crates/openapi/src/routes/platform.rs
openapi
full_file
287
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Novalnet {}
crates/hyperswitch_connectors/src/connectors/novalnet.rs
hyperswitch_connectors
impl_block
9
rust
null
Novalnet
api::Payment for
impl api::Payment for for Novalnet
null
null
null
null
null
null
null
null
pub async fn get_filters_for_payments( conn: &PgPooledConn, pi: &[PaymentIntent], merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<( Vec<String>, Vec<enums::Currency>, Vec<IntentStatus>, Vec<enums::PaymentMethod>, Vec<enums::PaymentM...
crates/diesel_models/src/query/payment_attempt.rs
diesel_models
function_signature
671
rust
null
null
null
null
get_filters_for_payments
null
null
null
null
null
null
null
impl CommonStorageInterface for KafkaStore { fn get_storage_interface(&self) -> Box<dyn StorageInterface> { Box::new(self.clone()) } fn get_global_storage_interface(&self) -> Box<dyn GlobalStorageInterface> { Box::new(self.clone()) } fn get_accounts_storage_interface(&self) -> Box<dy...
crates/router/src/db/kafka_store.rs
router
impl_block
85
rust
null
KafkaStore
CommonStorageInterface for
impl CommonStorageInterface for for KafkaStore
null
null
null
null
null
null
null
null
impl Mifinity { pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/mifinity.rs
hyperswitch_connectors
impl_block
35
rust
null
Mifinity
null
impl Mifinity
null
null
null
null
null
null
null
null
impl ApplePayCertificatesMigration { pub fn server(state: AppState) -> Scope { web::scope("/apple_pay_certificates_migration") .app_data(web::Data::new(state)) .service(web::resource("").route( web::post().to(apple_pay_certificates_migration::apple_pay_certificates_mi...
crates/router/src/routes/app.rs
router
impl_block
72
rust
null
ApplePayCertificatesMigration
null
impl ApplePayCertificatesMigration
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/routing/active" { "get": { "tags": [ "Routing" ], "summary": "Routing - Retrieve Config", "description": "Retrieve active config", "operationId": "Retrieve active config", "parameters": [ { "name": "profile_id", "in": "query", "de...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
267
.json
null
null
null
null
null
openapi_spec
paths
[ "/routing/active" ]
null
null
null
null
pub async fn find_by_customer_id_merchant_id_status( conn: &PgPooledConn, customer_id: &common_utils::id_type::CustomerId, merchant_id: &common_utils::id_type::MerchantId, status: storage_enums::PaymentMethodStatus, limit: Option<i64>, ) -> StorageResult<Vec<Self>> { ...
crates/diesel_models/src/query/payment_method.rs
diesel_models
function_signature
161
rust
null
null
null
null
find_by_customer_id_merchant_id_status
null
null
null
null
null
null
null
pub async fn get_sync_process_schedule_time( db: &dyn StorageInterface, connector: &str, merchant_id: &common_utils::id_type::MerchantId, retry_count: i32, ) -> Result<Option<time::PrimitiveDateTime>, errors::ProcessTrackerError> { let mapping: common_utils::errors::CustomResult< process_dat...
crates/router/src/workflows/process_dispute.rs
router
function_signature
236
rust
null
null
null
null
get_sync_process_schedule_time
null
null
null
null
null
null
null
pub fn server(state: routes::AppState) -> Scope { let mut route = web::scope("/payment_intents").app_data(web::Data::new(state)); #[cfg(feature = "olap")] { route = route.service(web::resource("/list").route(web::get().to(payment_intent_list))) } route = route ...
crates/router/src/compatibility/stripe/app.rs
router
function_signature
253
rust
null
null
null
null
server
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GiropayBankRedirectAdditionalData { "type": "object", "properties": { "bic": { "type": "string", "description": "Masked bank account bic code", "nullable": true }, "iban": { "type": "string", "description": "Partially masked internatio...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
143
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GiropayBankRedirectAdditionalData" ]
null
null
null
null
pub struct PaymentAccountCardInformation { #[serde(rename = "type")] card_type: Option<String>, hashed_number: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
PaymentAccountCardInformation
null
null
null
null
null
null
null
null
null
null
null
pub async fn decide_payout_connector( state: &SessionState, merchant_context: &domain::MerchantContext, request_straight_through: Option<api::routing::StraightThroughAlgorithm>, routing_data: &mut storage::RoutingData, payout_data: &mut PayoutData, eligible_connectors: Option<Vec<enums::Routable...
crates/router/src/core/payouts/helpers.rs
router
function_signature
1,144
rust
null
null
null
null
decide_payout_connector
null
null
null
null
null
null
null
pub struct BluecodeErrorResponse { pub message: String, pub context_data: HashMap<String, Value>, }
crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
BluecodeErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::Proxy; Box::pin(api::server_wrap( flow, state, &req, payload.into_inner(), |state, auth: auth::AuthenticationData, req, _| { let merchant_context = domain::MerchantContext::NormalMerchant(Box::new( domain::Con...
crates/router/src/routes/proxy.rs
router
impl_block
140
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct Event { /// A string that uniquely identifies the event. pub event_id: String, /// Represents the type of event for the webhook. pub event_type: EventType, /// Represents the class of event for the webhook. pub event_class: EventClass, /// Indicates whether the current webhook ...
crates/router/src/types/domain/event.rs
router
struct_definition
407
rust
Event
null
null
null
null
null
null
null
null
null
null
null
pub struct ReplicaStore { pub master_pool: PgPool, pub replica_pool: PgPool, pub accounts_master_pool: PgPool, pub accounts_replica_pool: PgPool, }
crates/storage_impl/src/database/store.rs
storage_impl
struct_definition
41
rust
ReplicaStore
null
null
null
null
null
null
null
null
null
null
null
pub struct ThreeDs { name: ThreeDsType, settings: ThreeDsSettings, }
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
ThreeDs
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_link_token( state: SessionState, merchant_context: domain::MerchantContext, payload: api_models::pm_auth::LinkTokenCreateRequest, headers: Option<hyperswitch_domain_models::payments::HeaderPayload>, ) -> RouterResponse<api_models::pm_auth::LinkTokenCreateResponse> { let db = &*st...
crates/router/src/core/pm_auth.rs
router
function_signature
1,216
rust
null
null
null
null
create_link_token
null
null
null
null
null
null
null
pub(super) fn syn_error(span: Span, message: &str) -> syn::Error { syn::Error::new(span, message) }
crates/router_derive/src/macros/helpers.rs
router_derive
function_signature
31
rust
null
null
null
null
syn_error
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Paystack {}
crates/hyperswitch_connectors/src/connectors/paystack.rs
hyperswitch_connectors
impl_block
9
rust
null
Paystack
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Paystack
null
null
null
null
null
null
null
null
pub struct NordeaResponseLinks { /// Describes the nature of the link, e.g. 'details' for a link to the detailed information of a listed resource. pub rel: Option<String>, /// Relative path to the linked resource pub href: Option<String>, }
crates/hyperswitch_connectors/src/connectors/nordea/responses.rs
hyperswitch_connectors
struct_definition
59
rust
NordeaResponseLinks
null
null
null
null
null
null
null
null
null
null
null
pub fn new(name: String) -> UserResult<Self> { let is_empty_or_whitespace = name.trim().is_empty(); let is_too_long = name.graphemes(true).count() > consts::user_role::MAX_ROLE_NAME_LENGTH; if is_empty_or_whitespace || is_too_long || name.contains(' ') { Err(UserErrors::RoleNamePars...
crates/router/src/types/domain/user.rs
router
function_signature
94
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn get_refund_distribution( &self, distribution: &RefundDistributionBody, dimensions: &[RefundDimensions], auth: &AuthInfo, filters: &RefundFilters, granularity: &Option<Granularity>, time_range: &TimeRange, ) -> types::MetricsResult<Vec<(RefundMetri...
crates/analytics/src/lib.rs
analytics
function_signature
626
rust
null
null
null
null
get_refund_distribution
null
null
null
null
null
null
null
impl api::PaymentToken for Zsl {}
crates/hyperswitch_connectors/src/connectors/zsl.rs
hyperswitch_connectors
impl_block
9
rust
null
Zsl
api::PaymentToken for
impl api::PaymentToken for for Zsl
null
null
null
null
null
null
null
null
impl BillingConnectorInvoiceSyncFlowRouterData { async fn construct_router_data_for_billing_connector_invoice_sync_call( state: &SessionState, connector_name: &str, merchant_connector_account: &hyperswitch_domain_models::merchant_connector_account::MerchantConnectorAccount, merchant_...
crates/router/src/core/webhooks/recovery_incoming.rs
router
impl_block
495
rust
null
BillingConnectorInvoiceSyncFlowRouterData
null
impl BillingConnectorInvoiceSyncFlowRouterData
null
null
null
null
null
null
null
null
pub struct TransactionData { edges: Vec<EdgeData>, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
TransactionData
null
null
null
null
null
null
null
null
null
null
null
- - - ## 2025.03.11.0 ### Refactors - **connector:** [Rapyd] fix amount conversion framework ([#7466](https://github.com/juspay/hyperswitch/pull/7466)) ([`8f1bab6`](https://github.com/juspay/hyperswitch/commit/8f1bab62faa25a8a5f50346adce078911f22eb4a)) **Full Changelog:** [`2025.03.10.0...2025.03.11.0`](https://gi...
CHANGELOG.md#chunk12
null
doc_chunk
8,169
doc
null
null
null
null
null
null
null
null
null
null
null
null