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::Refund for Ebanx {}
crates/hyperswitch_connectors/src/connectors/ebanx.rs
hyperswitch_connectors
impl_block
10
rust
null
Ebanx
api::Refund for
impl api::Refund for for Ebanx
null
null
null
null
null
null
null
null
impl api::Refund for Dwolla {}
crates/hyperswitch_connectors/src/connectors/dwolla.rs
hyperswitch_connectors
impl_block
9
rust
null
Dwolla
api::Refund for
impl api::Refund for for Dwolla
null
null
null
null
null
null
null
null
impl api::ConnectorValidation for Wise {}
crates/hyperswitch_connectors/src/connectors/wise.rs
hyperswitch_connectors
impl_block
8
rust
null
Wise
api::ConnectorValidation for
impl api::ConnectorValidation for for Wise
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.BankCodeResponse { "type": "object", "required": [ "bank_name", "eligible_connectors" ], "properties": { "bank_name": { "type": "array", "items": { "$ref": "#/components/schemas/BankNames" } }, "eligible_connectors": { "t...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
112
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "BankCodeResponse" ]
null
null
null
null
impl api::MandateSetup for Wellsfargo {}
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs
hyperswitch_connectors
impl_block
12
rust
null
Wellsfargo
api::MandateSetup for
impl api::MandateSetup for for Wellsfargo
null
null
null
null
null
null
null
null
File: crates/drainer/src/types.rs Public functions: 1 Public structs: 1 use std::collections::HashMap; use common_utils::errors; use error_stack::ResultExt; use serde::{de::value::MapDeserializer, Deserialize, Serialize}; use crate::{ kv, utils::{deserialize_db_op, deserialize_i64}, }; #[derive(Deserializ...
crates/drainer/src/types.rs
drainer
full_file
245
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/auth_events/metrics/authentication_exemption_requested_count.rs use std::collections::HashSet; use api_models::analytics::{ auth_events::{AuthEventDimensions, AuthEventFilters, AuthEventMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; u...
crates/analytics/src/auth_events/metrics/authentication_exemption_requested_count.rs
analytics
full_file
1,054
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Panics if `json_payload` array does not contain one `GetDisputeMetricRequest` element. pub async fn get_org_dispute_metrics( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<[GetDisputeMetricRequest; 1]>, ) -> impl Responder { // safety: This s...
crates/router/src/analytics.rs
router
function_signature
324
rust
null
null
null
null
get_org_dispute_metrics
null
null
null
null
null
null
null
pub fn get_password(&self) -> Option<UserPassword> { self.password .as_ref() .map(|password| password.deref().clone()) }
crates/router/src/types/domain/user.rs
router
function_signature
36
rust
null
null
null
null
get_password
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/poll/status/{poll_id}" { "get": { "tags": [ "Poll" ], "summary": "Poll - Retrieve Poll Status", "operationId": "Retrieve Poll Status", "parameters": [ { "name": "poll_id", "in": "path", "description": "The identifier for poll", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
209
.json
null
null
null
null
null
openapi_spec
paths
[ "/poll/status/{poll_id}" ]
null
null
null
null
pub async fn get_disputes_aggregate_profile( state: web::Data<AppState>, req: HttpRequest, query_param: web::Query<common_utils::types::TimeRange>, ) -> HttpResponse { let flow = Flow::DisputesAggregate; let query_param = query_param.into_inner(); Box::pin(api::server_wrap( flow, ...
crates/router/src/routes/disputes.rs
router
function_signature
252
rust
null
null
null
null
get_disputes_aggregate_profile
null
null
null
null
null
null
null
impl RoutingApproach { pub fn from_decision_engine_approach(approach: &str) -> Self { match approach { "SR_SELECTION_V3_ROUTING" => Self::Exploitation, "SR_V3_HEDGING" => Self::Exploration, _ => Self::Default, } } }
crates/router/src/core/payments/routing/utils.rs
router
impl_block
69
rust
null
RoutingApproach
null
impl RoutingApproach
null
null
null
null
null
null
null
null
pub struct PaymentLink;
crates/router/src/routes/app.rs
router
struct_definition
5
rust
PaymentLink
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/utils.rs Public functions: 24 #[cfg(feature = "olap")] pub mod connector_onboarding; pub mod currency; pub mod db_utils; pub mod ext_traits; #[cfg(feature = "kv_store")] pub mod storage_partitioning; #[cfg(feature = "olap")] pub mod user; #[cfg(feature = "olap")] pub mod user_role; #[cfg(featu...
crates/router/src/utils.rs#chunk0
router
chunk
8,188
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::PaymentsCreate; let mut payload = json_payload.into_inner(); if let Err(err) = payload .validate() .map_err(|message| errors::ApiErrorResponse::InvalidRequestData { message }) { return api::log_and_return_error_response(err.into()); }; i...
crates/router/src/routes/payments.rs
router
impl_block
492
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct ToggleDynamicRoutingWrapper { pub profile_id: common_utils::id_type::ProfileId, pub feature_to_enable: DynamicRoutingFeatures, }
crates/api_models/src/routing.rs
api_models
struct_definition
32
rust
ToggleDynamicRoutingWrapper
null
null
null
null
null
null
null
null
null
null
null
pub struct InviteUser { pub recipient_email: domain::UserEmail, pub user_name: domain::UserName, pub settings: std::sync::Arc<configs::Settings>, pub entity: Entity, pub auth_id: Option<String>, pub theme_id: Option<String>, pub theme_config: EmailThemeConfig, }
crates/router/src/services/email/types.rs
router
struct_definition
70
rust
InviteUser
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Multisafepay {}
crates/hyperswitch_connectors/src/connectors/multisafepay.rs
hyperswitch_connectors
impl_block
13
rust
null
Multisafepay
api::RefundSync for
impl api::RefundSync for for Multisafepay
null
null
null
null
null
null
null
null
pub async fn get_token_vault_core( state: SessionState, merchant_account: &domain::MerchantAccount, merchant_key_store: &domain::MerchantKeyStore, query: id_type::GlobalTokenId, ) -> CustomResult<serde_json::Value, errors::ApiErrorResponse> { let db = state.store.as_ref(); let key_manager_state ...
crates/router/src/core/tokenization.rs
router
function_signature
344
rust
null
null
null
null
get_token_vault_core
null
null
null
null
null
null
null
File: crates/router/src/db/callback_mapper.rs use error_stack::report; use hyperswitch_domain_models::callback_mapper as domain; use router_env::{instrument, tracing}; use storage_impl::{DataModelExt, MockDb}; use super::Store; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }...
crates/router/src/db/callback_mapper.rs
router
full_file
523
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PayuPaymentsCaptureResponse { status: PayuPaymentStatusData, }
crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
PayuPaymentsCaptureResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn enum_variant_array_value(input: &str) -> ParseResult<&str, ast::ValueType> { let many_with_comma = multi::many0(sequence::preceded( skip_ws(complete::tag(",")), skip_ws(enum_value_string), )); let full_sequence = sequence::pair(skip_ws(enum_value_string), many_with_comma); error...
crates/euclid/src/frontend/ast/parser.rs
euclid
function_signature
175
rust
null
null
null
null
enum_variant_array_value
null
null
null
null
null
null
null
pub struct Plaid { amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/plaid.rs
hyperswitch_connectors
struct_definition
27
rust
Plaid
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/tokenization.rs Public structs: 3 #[cfg(feature = "v2")] use common_enums; #[cfg(feature = "v2")] use common_utils::id_type; #[cfg(feature = "v2")] use diesel::{AsChangeset, Identifiable, Insertable, Queryable}; #[cfg(feature = "v2")] use serde::{Deserialize, Serialize}; #[cfg(feature =...
crates/diesel_models/src/tokenization.rs
diesel_models
full_file
442
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ApiKeyExpiryReminder { pub recipient_email: domain::UserEmail, pub subject: &'static str, pub expires_in: u8, pub api_key_name: String, pub prefix: String, pub theme_id: Option<String>, pub theme_config: EmailThemeConfig, }
crates/router/src/services/email/types.rs
router
struct_definition
66
rust
ApiKeyExpiryReminder
null
null
null
null
null
null
null
null
null
null
null
pub async fn api_key_update( state: web::Data<AppState>, req: HttpRequest, path: web::Path<( common_utils::id_type::MerchantId, common_utils::id_type::ApiKeyId, )
crates/router/src/routes/api_keys.rs
router
function_signature
51
rust
null
null
null
null
api_key_update
null
null
null
null
null
null
null
impl api::Refund for Noon {}
crates/hyperswitch_connectors/src/connectors/noon.rs
hyperswitch_connectors
impl_block
8
rust
null
Noon
api::Refund for
impl api::Refund for for Noon
null
null
null
null
null
null
null
null
pub struct GocardlessCustomerResponse { customers: Customers, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
GocardlessCustomerResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct DwollaMetaData { pub merchant_funding_source: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
DwollaMetaData
null
null
null
null
null
null
null
null
null
null
null
pub(crate) fn into_stripe_next_action( next_action: Option<payments::NextActionData>, return_url: Option<String>, ) -> Option<StripeNextAction> { next_action.map(|next_action_data| match next_action_data { payments::NextActionData::RedirectToUrl { redirect_to_url } => { StripeNextAction:...
crates/router/src/compatibility/stripe/payment_intents/types.rs
router
function_signature
581
rust
null
null
null
null
into_stripe_next_action
null
null
null
null
null
null
null
pub async fn get_payment_processor_token_with_schedule_time( state: &SessionState, connector_customer_id: &str, ) -> CustomResult<Option<PaymentProcessorTokenStatus>, errors::StorageError> { let tokens = Self::get_connector_customer_payment_processor_tokens(state, connector_custo...
crates/router/src/types/storage/revenue_recovery_redis_operation.rs
router
function_signature
131
rust
null
null
null
null
get_payment_processor_token_with_schedule_time
null
null
null
null
null
null
null
pub struct DeutschebankAmount { amount: MinorUnit, currency: api_models::enums::Currency, }
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
DeutschebankAmount
null
null
null
null
null
null
null
null
null
null
null
pub struct DwollaFundingSourceResponse {}
crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
hyperswitch_connectors
struct_definition
9
rust
DwollaFundingSourceResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/routes/customers.rs Public functions: 11 use actix_web::{web, HttpRequest, HttpResponse, Responder}; use common_utils::id_type; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, customers::*}, services::{api, authentication as auth...
crates/router/src/routes/customers.rs
router
full_file
2,851
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn refund_to_refund_core_workflow_model( refund: &diesel_refund::Refund, ) -> diesel_refund::RefundCoreWorkflow { diesel_refund::RefundCoreWorkflow { refund_internal_reference_id: refund.internal_reference_id.clone(), connector_transaction_id: refund.connector_transaction_id.clone(), ...
crates/router/src/core/refunds.rs
router
function_signature
99
rust
null
null
null
null
refund_to_refund_core_workflow_model
null
null
null
null
null
null
null
File: crates/router/src/types/api/payment_link.rs pub use api_models::payments::RetrievePaymentLinkResponse; use crate::{ consts::DEFAULT_SESSION_EXPIRY, core::{errors::RouterResult, payment_link}, types::storage::{self}, }; #[async_trait::async_trait] pub(crate) trait PaymentLinkResponseExt: Sized { ...
crates/router/src/types/api/payment_link.rs
router
full_file
284
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Inespay {}
crates/hyperswitch_connectors/src/connectors/inespay.rs
hyperswitch_connectors
impl_block
10
rust
null
Inespay
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Inespay
null
null
null
null
null
null
null
null
pub struct AccessToken { pub token: Secret<String>, pub expires: i64, }
crates/hyperswitch_domain_models/src/router_data.rs
hyperswitch_domain_models
struct_definition
20
rust
AccessToken
null
null
null
null
null
null
null
null
null
null
null
pub struct SantanderValue { pub original: StringMajorUnit, }
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
SantanderValue
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundResponse { operation_id: String, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn server(conf: Settings, stores: HashMap<id_type::TenantId, Arc<Store>>) -> Scope { web::scope("health") .app_data(web::Data::new(conf)) .app_data(web::Data::new(stores)) .service(web::resource("").route(web::get().to(health))) .service(web::resource("/ready"...
crates/drainer/src/health_check.rs
drainer
function_signature
92
rust
null
null
null
null
server
null
null
null
null
null
null
null
impl State for CardTokenStored {}
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
impl_block
7
rust
null
CardTokenStored
State for
impl State for for CardTokenStored
null
null
null
null
null
null
null
null
impl RemoveNewLine for Option<String> { fn remove_new_line(&self) -> Self { self.clone().map(|value| value.replace("\n", " ")) } }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
impl_block
38
rust
null
Option
RemoveNewLine for
impl RemoveNewLine for for Option
null
null
null
null
null
null
null
null
pub struct WorldpayWebhookTransactionId { pub event_details: EventDetails, }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
struct_definition
18
rust
WorldpayWebhookTransactionId
null
null
null
null
null
null
null
null
null
null
null
impl PaymentMethodRecord { fn create_address(&self) -> Option<payments::AddressDetails> { if self.billing_address_first_name.is_some() && self.billing_address_line1.is_some() && self.billing_address_zip.is_some() && self.billing_address_city.is_some() && self....
crates/api_models/src/payment_methods.rs
api_models
impl_block
360
rust
null
PaymentMethodRecord
null
impl PaymentMethodRecord
null
null
null
null
null
null
null
null
pub struct DwollaRequestLink { href: String, }
crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
DwollaRequestLink
null
null
null
null
null
null
null
null
null
null
null
pub async fn toggle_blocklist_guard( state: web::Data<AppState>, req: HttpRequest, query_payload: web::Query<api_blocklist::ToggleBlocklistQuery>, ) -> HttpResponse { let flow = Flow::ListBlocklist; Box::pin(api::server_wrap( flow, state, &req, query_payload.into_inne...
crates/router/src/routes/blocklist.rs
router
function_signature
217
rust
null
null
null
null
toggle_blocklist_guard
null
null
null
null
null
null
null
pub struct ResponseInsights { category_code: Option<String>, category: Option<String>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
ResponseInsights
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Nuvei {}
crates/hyperswitch_connectors/src/connectors/nuvei.rs
hyperswitch_connectors
impl_block
10
rust
null
Nuvei
api::PaymentSync for
impl api::PaymentSync for for Nuvei
null
null
null
null
null
null
null
null
pub async fn construct_payment_router_data<'a, F, T>( state: &'a SessionState, payment_data: PaymentData<F>, connector_id: &str, merchant_context: &domain::MerchantContext, customer: &'a Option<domain::Customer>, merchant_connector_account: &helpers::MerchantConnectorAccountType, merchant_re...
crates/router/src/core/payments/transformers.rs
router
function_signature
2,156
rust
null
null
null
null
construct_payment_router_data
null
null
null
null
null
null
null
pub async fn redis_error_receiver(rx: oneshot::Receiver<()
crates/drainer/src/handler.rs
drainer
function_signature
15
rust
null
null
null
null
redis_error_receiver
null
null
null
null
null
null
null
pub struct CoinbaseRefundRequest {}
crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
hyperswitch_connectors
struct_definition
7
rust
CoinbaseRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundSyncBody { order_id: String, condition: String, }
crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
RefundSyncBody
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/bambora.rs Public functions: 1 Public structs: 1 pub mod transformers; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, Floa...
crates/hyperswitch_connectors/src/connectors/bambora.rs
hyperswitch_connectors
full_file
6,627
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct GetRefundMetricRequest { pub time_series: Option<TimeSeries>, pub time_range: TimeRange, #[serde(default)] pub group_by_names: Vec<RefundDimensions>, #[serde(default)] pub filters: refunds::RefundFilters, pub metrics: HashSet<RefundMetrics>, pub distribution: Option<RefundDist...
crates/api_models/src/analytics.rs
api_models
struct_definition
91
rust
GetRefundMetricRequest
null
null
null
null
null
null
null
null
null
null
null
impl PaymentIntentMetricsAccumulator { pub fn collect(self) -> PaymentIntentMetricsBucketValue { let ( successful_payments, successful_payments_without_smart_retries, total_payments, payments_success_rate, payments_success_rate_without_smart_retrie...
crates/analytics/src/payment_intents/accumulator.rs
analytics
impl_block
402
rust
null
PaymentIntentMetricsAccumulator
null
impl PaymentIntentMetricsAccumulator
null
null
null
null
null
null
null
null
impl Deref for UserEmail { type Target = Secret<String, pii::EmailStrategy>; fn deref(&self) -> &Self::Target { &self.0 } }
crates/router/src/types/domain/user.rs
router
impl_block
41
rust
null
UserEmail
Deref for
impl Deref for for UserEmail
null
null
null
null
null
null
null
null
impl api::RefundSync for Zen {}
crates/hyperswitch_connectors/src/connectors/zen.rs
hyperswitch_connectors
impl_block
9
rust
null
Zen
api::RefundSync for
impl api::RefundSync for for Zen
null
null
null
null
null
null
null
null
impl DashboardMetadataNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<DashboardMetadata> { generics::generic_insert(conn, self).await } }
crates/diesel_models/src/query/dashboard_metadata.rs
diesel_models
impl_block
42
rust
null
DashboardMetadataNew
null
impl DashboardMetadataNew
null
null
null
null
null
null
null
null
pub async fn convert_forex( state: SessionState, amount: i64, to_currency: String, from_currency: String, ) -> CustomResult< ApplicationResponse<api_models::currency::CurrencyConversionResponse>, ApiErrorResponse, > { Ok(ApplicationResponse::Json( Box::pin(convert_currency( ...
crates/router/src/core/currency.rs
router
function_signature
104
rust
null
null
null
null
convert_forex
null
null
null
null
null
null
null
impl Responder { let flow = Flow::PaymentsCompleteAuthorize; let mut payload = json_payload.into_inner(); let payment_id = path.into_inner(); payload.payment_id.clone_from(&payment_id); tracing::Span::current().record("payment_id", payment_id.get_string_repr()); let payment_confirm_req = paym...
crates/router/src/routes/payments.rs
router
impl_block
434
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct Boku { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/boku.rs
hyperswitch_connectors
struct_definition
26
rust
Boku
null
null
null
null
null
null
null
null
null
null
null
pub struct WellsfargoVoidRequest { client_reference_information: ClientReferenceInformation, reversal_information: ReversalInformation, #[serde(skip_serializing_if = "Option::is_none")] merchant_defined_information: Option<Vec<MerchantDefinedInformation>>, // The connector documentation does not men...
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
80
rust
WellsfargoVoidRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Organization> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/organization.rs
diesel_models
function_signature
34
rust
null
null
null
null
insert
null
null
null
null
null
null
null
impl api::MandateSetup for Helcim {}
crates/hyperswitch_connectors/src/connectors/helcim.rs
hyperswitch_connectors
impl_block
12
rust
null
Helcim
api::MandateSetup for
impl api::MandateSetup for for Helcim
null
null
null
null
null
null
null
null
pub async fn payments_finish_redirection( state: web::Data<app::AppState>, req: actix_web::HttpRequest, json_payload: Option<web::Form<serde_json::Value>>, path: web::Path<( common_utils::id_type::GlobalPaymentId, String, common_utils::id_type::ProfileId, )
crates/router/src/routes/payments.rs
router
function_signature
77
rust
null
null
null
null
payments_finish_redirection
null
null
null
null
null
null
null
impl api::RefundExecute for Nomupay {}
crates/hyperswitch_connectors/src/connectors/nomupay.rs
hyperswitch_connectors
impl_block
11
rust
null
Nomupay
api::RefundExecute for
impl api::RefundExecute for for Nomupay
null
null
null
null
null
null
null
null
pub(crate) struct JWTAuth { pub permission: Permission, }
crates/router/src/services/authentication.rs
router
struct_definition
14
rust
JWTAuth
null
null
null
null
null
null
null
null
null
null
null
pub struct FraudCheckRecordReturnData { pub amount: i64, pub currency: Option<common_enums::Currency>, pub refund_method: RefundMethod, pub refund_transaction_id: Option<String>, }
crates/hyperswitch_domain_models/src/router_request_types/fraud_check.rs
hyperswitch_domain_models
struct_definition
47
rust
FraudCheckRecordReturnData
null
null
null
null
null
null
null
null
null
null
null
pub async fn add_dispute_list_task_to_pt( db: &dyn StorageInterface, connector_name: &str, merchant_id: common_utils::id_type::MerchantId, merchant_connector_id: common_utils::id_type::MerchantConnectorAccountId, profile_id: common_utils::id_type::ProfileId, fetch_request: FetchDisputesRequestDa...
crates/router/src/core/disputes.rs
router
function_signature
340
rust
null
null
null
null
add_dispute_list_task_to_pt
null
null
null
null
null
null
null
impl ConnectorValidation for Bamboraapac { fn validate_mandate_payment( &self, _pm_type: Option<enums::PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { let connector = self.id(); match pm_data { PaymentMethodData:...
crates/hyperswitch_connectors/src/connectors/bamboraapac.rs
hyperswitch_connectors
impl_block
115
rust
null
Bamboraapac
ConnectorValidation for
impl ConnectorValidation for for Bamboraapac
null
null
null
null
null
null
null
null
pub async fn payment_methods_session_create( state: SessionState, merchant_context: domain::MerchantContext, request: payment_methods::PaymentMethodSessionRequest, ) -> RouterResponse<payment_methods::PaymentMethodSessionResponse> { let db = state.store.as_ref(); let key_manager_state = &(&state).in...
crates/router/src/core/payment_methods.rs
router
function_signature
668
rust
null
null
null
null
payment_methods_session_create
null
null
null
null
null
null
null
File: crates/common_utils/src/id_type/relay.rs use std::str::FromStr; crate::id_type!( RelayId, "A type for relay_id that can be used for relay ids" ); crate::impl_id_type_methods!(RelayId, "relay_id"); crate::impl_try_from_cow_str_id_type!(RelayId, "relay_id"); crate::impl_generate_id_id_type!(RelayId, "rel...
crates/common_utils/src/id_type/relay.rs
common_utils
full_file
212
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct User { pub client_user_id: String, }
crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
User
null
null
null
null
null
null
null
null
null
null
null
/// Generate a key for redis pub fn generate_redis_key(&self) -> String { format!("cs_{}", self.get_string_repr()) }
crates/common_utils/src/id_type/client_secret.rs
common_utils
function_signature
32
rust
null
null
null
null
generate_redis_key
null
null
null
null
null
null
null
pub struct RelayError { /// The error code pub code: String, /// The error message pub message: String, }
crates/api_models/src/relay.rs
api_models
struct_definition
30
rust
RelayError
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_internal_user( state: SessionState, request: user_api::CreateInternalUserRequest, ) -> UserResponse<()> { let role_info = roles::RoleInfo::from_predefined_roles(request.role_id.as_str()) .ok_or(UserErrors::InvalidRoleId)?; fp_utils::when( role_info.is_internal().not(...
crates/router/src/core/user.rs
router
function_signature
692
rust
null
null
null
null
create_internal_user
null
null
null
null
null
null
null
impl PaymentIntentMetricAccumulator for SmartRetriedAmountAccumulator { type MetricOutput = (Option<u64>, Option<u64>, Option<u64>, Option<u64>); #[inline] fn add_metrics_bucket(&mut self, metrics: &PaymentIntentMetricRow) { self.amount = match ( self.amount, metrics.total.as...
crates/analytics/src/payment_intents/accumulator.rs
analytics
impl_block
358
rust
null
SmartRetriedAmountAccumulator
PaymentIntentMetricAccumulator for
impl PaymentIntentMetricAccumulator for for SmartRetriedAmountAccumulator
null
null
null
null
null
null
null
null
pub struct AmazonpayRouterData<T> { pub amount: StringMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
AmazonpayRouterData
null
null
null
null
null
null
null
null
null
null
null
impl RetrieveFile for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
9
rust
null
Worldpayvantiv
RetrieveFile for
impl RetrieveFile for for Worldpayvantiv
null
null
null
null
null
null
null
null
pub async fn retrieve_payment_method_core( pm_data: &Option<domain::PaymentMethodData>, state: &SessionState, payment_intent: &PaymentIntent, payment_attempt: &PaymentAttempt, merchant_key_store: &domain::MerchantKeyStore, business_profile: Option<&domain::Profile>, ) -> RouterResult<(Option<dom...
crates/router/src/core/payment_methods.rs
router
function_signature
781
rust
null
null
null
null
retrieve_payment_method_core
null
null
null
null
null
null
null
File: crates/router/src/routes/profiles.rs Public functions: 13 use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking, errors}, services::{api, authentication as auth, authorization::permissions}, ...
crates/router/src/routes/profiles.rs
router
full_file
3,330
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Payload { fn validate_mandate_payment( &self, pm_type: Option<enums::PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { let mandate_supported_pmd = std::collections::HashSet::from([utils::Paymen...
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
impl_block
99
rust
null
Payload
ConnectorValidation for
impl ConnectorValidation for for Payload
null
null
null
null
null
null
null
null
pub struct Square;
crates/hyperswitch_connectors/src/connectors/square.rs
hyperswitch_connectors
struct_definition
4
rust
Square
null
null
null
null
null
null
null
null
null
null
null
File: crates/test_utils/tests/connectors/airwallex_ui.rs use serial_test::serial; use thirtyfour::{prelude::*, WebDriver}; use crate::{selenium::*, tester}; struct AirwallexSeleniumTest; impl SeleniumTest for AirwallexSeleniumTest { fn get_connector_name(&self) -> String { "airwallex".to_string() } ...
crates/test_utils/tests/connectors/airwallex_ui.rs
test_utils
full_file
591
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Nordea {}
crates/hyperswitch_connectors/src/connectors/nordea.rs
hyperswitch_connectors
impl_block
10
rust
null
Nordea
api::RefundSync for
impl api::RefundSync for for Nordea
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/lib.rs //! Hyperswitch connectors pub mod connectors; pub mod constants; pub mod default_implementations; pub mod default_implementations_v2; pub mod metrics; pub mod types; pub mod utils;
crates/hyperswitch_connectors/src/lib.rs
hyperswitch_connectors
full_file
55
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn generate_jwt<T>( claims_data: &T, settings: &Settings, ) -> CustomResult<String, UserErrors> where T: serde::ser::Serialize, { let jwt_secret = &settings.secrets.get_inner().jwt_secret; encode( &Header::default(), claims_data, &EncodingKey::from_secret(jwt_secret...
crates/router/src/services/jwt.rs
router
function_signature
96
rust
null
null
null
null
generate_jwt
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PriorityLogicOutput { "type": "object", "properties": { "isEnforcement": { "type": "boolean", "nullable": true }, "gws": { "type": "array", "items": { "type": "string" }, "nullable": true }, "priorityLogicTag": { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
224
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PriorityLogicOutput" ]
null
null
null
null
pub fn get_new_organization(&self) -> NewUserOrganization { self.new_organization.clone() }
crates/router/src/types/domain/user.rs
router
function_signature
21
rust
null
null
null
null
get_new_organization
null
null
null
null
null
null
null
pub struct Ebanx { #[cfg(feature = "payouts")] amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/ebanx.rs
hyperswitch_connectors
struct_definition
38
rust
Ebanx
null
null
null
null
null
null
null
null
null
null
null
pub fn update_enabled_features(&mut self, feature_to_enable: DynamicRoutingFeatures) { self.enabled_feature = feature_to_enable }
crates/api_models/src/routing.rs
api_models
function_signature
29
rust
null
null
null
null
update_enabled_features
null
null
null
null
null
null
null
pub struct ChargebeeInvoiceData { // invoice id pub id: String, pub total: MinorUnit, pub currency_code: enums::Currency, pub billing_address: Option<ChargebeeInvoiceBillingAddress>, pub linked_payments: Option<Vec<ChargebeeInvoicePayments>>, }
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
struct_definition
61
rust
ChargebeeInvoiceData
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.WebhookDeliveryAttempt { "type": "string", "enum": [ "initial_attempt", "automatic_retry", "manual_retry" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
44
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "WebhookDeliveryAttempt" ]
null
null
null
null
pub fn get_all_payout_keys() -> JsResult { let keys: Vec<&'static str> = dir::PayoutDirKeyKind::VARIANTS.to_vec(); Ok(serde_wasm_bindgen::to_value(&keys)?) }
crates/euclid_wasm/src/lib.rs
euclid_wasm
function_signature
53
rust
null
null
null
null
get_all_payout_keys
null
null
null
null
null
null
null
pub struct AuthResult { pub authentication_result: PaypalThreeDsParams, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
AuthResult
null
null
null
null
null
null
null
null
null
null
null
File: crates/common_utils/src/id_type/profile_acquirer.rs use std::str::FromStr; crate::id_type!( ProfileAcquirerId, "A type for profile_acquirer_id that can be used for profile acquirer ids" ); crate::impl_id_type_methods!(ProfileAcquirerId, "profile_acquirer_id"); // This is to display the `ProfileAcquirer...
crates/common_utils/src/id_type/profile_acquirer.rs
common_utils
full_file
479
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/webhooks/outgoing_v2.rs use std::collections::HashMap; use api_models::{webhook_events, webhooks}; use common_utils::{ext_traits, request, type_name, types::keymanager}; use diesel_models::process_tracker::business_status; use error_stack::{report, Report, ResultExt}; use hyperswitch_doma...
crates/router/src/core/webhooks/outgoing_v2.rs
router
full_file
6,671
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TrustpayApplePayResponse { pub country_code: api_models::enums::CountryAlpha2, pub currency_code: api_models::enums::Currency, pub supported_networks: Vec<String>, pub merchant_capabilities: Vec<String>, pub total: ApplePayTotalInfo, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
61
rust
TrustpayApplePayResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn api_key_create() {}
crates/openapi/src/routes/api_keys.rs
openapi
function_signature
8
rust
null
null
null
null
api_key_create
null
null
null
null
null
null
null