text
string
file_path
string
module
string
type
string
tokens
int64
language
string
struct_name
string
type_name
string
trait_name
string
impl_type
string
function_name
string
source
string
section
string
keys
list
macro_type
string
url
string
title
string
chunk_index
int64
File: crates/router/tests/connectors/checkbook.rs use std::str::FromStr; use hyperswitch_domain_models::address::{Address, AddressDetails}; use masking::Secret; use router::types::{self, api, storage::enums, Email}; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct CheckbookTest; impl Connec...
crates/router/tests/connectors/checkbook.rs
router
full_file
753
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct SankeyRow { pub count: i64, pub authentication_status: Option<AuthenticationStatus>, pub exemption_requested: Option<bool>, pub exemption_accepted: Option<bool>, }
crates/analytics/src/auth_events/sankey.rs
analytics
struct_definition
41
rust
SankeyRow
null
null
null
null
null
null
null
null
null
null
null
pub fn new(risk_type: RiskType, risk: Risk) -> Self { Self { risk_type, detail: None, risk, } }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
function_signature
36
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn should_call_unified_connector_service_for_webhooks( state: &SessionState, merchant_context: &MerchantContext, connector_name: &str, ) -> RouterResult<bool> { if state.grpc_client.unified_connector_service_client.is_none() { logger::debug!( connector = connector_name.to_s...
crates/router/src/core/unified_connector_service.rs
router
function_signature
217
rust
null
null
null
null
should_call_unified_connector_service_for_webhooks
null
null
null
null
null
null
null
/// Derives the `core::payments::Operation` trait on a type with a default base /// implementation. /// /// ## Usage /// On deriving, the conversion functions to be implemented need to be specified in an helper /// attribute `#[operation(..)]`. To derive all conversion functions, use `#[operation(all)]`. To /// derive ...
crates/router_derive/src/lib.rs
router_derive
macro
849
rust
null
null
null
null
null
null
null
null
proc_derive
null
null
null
/// Get the merchant_id from the lineage pub fn merchant_id(&self) -> Option<&id_type::MerchantId> { match self { Self::Tenant { .. } | Self::Organization { .. } => None, Self::Merchant { merchant_id, .. } | Self::Profile { merchant_id, .. } => { Some(merchant_id) ...
crates/common_utils/src/types/user/theme.rs
common_utils
function_signature
82
rust
null
null
null
null
merchant_id
null
null
null
null
null
null
null
pub async fn update_default_routing_config_for_profile( state: SessionState, merchant_context: domain::MerchantContext, updated_config: Vec<routing_types::RoutableConnectorChoice>, profile_id: common_utils::id_type::ProfileId, transaction_type: &enums::TransactionType, ) -> RouterResponse<routing_ty...
crates/router/src/core/routing.rs
router
function_signature
585
rust
null
null
null
null
update_default_routing_config_for_profile
null
null
null
null
null
null
null
pub struct KlarnaAuthType { pub username: Secret<String>, pub password: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
KlarnaAuthType
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/mollie.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, Strin...
crates/hyperswitch_connectors/src/connectors/mollie.rs
hyperswitch_connectors
full_file
6,124
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_not_implemented() -> Self { Self { code: "IR_00".to_string(), message: "This API is under development and will be made available soon.".to_string(), reason: None, status_code: http::StatusCode::INTERNAL_SERVER_ERROR.as_u16(), attempt_status:...
crates/hyperswitch_domain_models/src/router_data.rs
hyperswitch_domain_models
function_signature
111
rust
null
null
null
null
get_not_implemented
null
null
null
null
null
null
null
amount_details: AttemptAmountDetails::from(amount_details), status: request.status, connector, authentication_type: storage_enums::AuthenticationType::NoThreeDs, created_at: transaction_created_at, modified_at: now, last_synced: None, ...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs#chunk1
hyperswitch_domain_models
chunk
8,192
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MerchantCountryCode { "type": "string", "description": "A wrapper type for merchant country codes that provides validation and conversion functionality.\n\nThis type stores a country code as a string and provides methods to validate it\nand convert it to a `Country` enum varia...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
70
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantCountryCode" ]
null
null
null
null
pub fn server(state: routes::AppState, service: String) -> Scope { web::scope("health") .app_data(web::Data::new(state)) .app_data(web::Data::new(service)) .service(web::resource("").route(web::get().to(health))) .service(web::resource("/ready").route(web::get().t...
crates/router/src/bin/scheduler.rs
router
function_signature
83
rust
null
null
null
null
server
null
null
null
null
null
null
null
impl AnalyticsRequest { pub fn requires_forex_functionality(&self) -> bool { self.payment_attempt .as_ref() .map(|req| req.metrics.iter().any(|metric| metric.is_forex_metric())) .unwrap_or_default() || self .payment_intent .as_r...
crates/api_models/src/analytics.rs
api_models
impl_block
176
rust
null
AnalyticsRequest
null
impl AnalyticsRequest
null
null
null
null
null
null
null
null
impl api::RefundSync for Tsys {}
crates/hyperswitch_connectors/src/connectors/tsys.rs
hyperswitch_connectors
impl_block
10
rust
null
Tsys
api::RefundSync for
impl api::RefundSync for for Tsys
null
null
null
null
null
null
null
null
impl AddressInterface for KafkaStore { async fn find_address_by_address_id( &self, state: &KeyManagerState, address_id: &str, key_store: &domain::MerchantKeyStore, ) -> CustomResult<domain::Address, errors::StorageError> { self.diesel_store .find_address_by_ad...
crates/router/src/db/kafka_store.rs
router
impl_block
752
rust
null
KafkaStore
AddressInterface for
impl AddressInterface for for KafkaStore
null
null
null
null
null
null
null
null
impl ForexMetric for RefundMetrics { fn is_forex_metric(&self) -> bool { matches!( self, Self::RefundProcessedAmount | Self::SessionizedRefundProcessedAmount ) } }
crates/api_models/src/analytics/refunds.rs
api_models
impl_block
48
rust
null
RefundMetrics
ForexMetric for
impl ForexMetric for for RefundMetrics
null
null
null
null
null
null
null
null
pub struct CompleteAuthorize;
crates/router/src/core/payments/operations/payment_complete_authorize.rs
router
struct_definition
5
rust
CompleteAuthorize
null
null
null
null
null
null
null
null
null
null
null
pub struct DlocalPaymentsCaptureRequest { pub authorization_id: String, pub amount: i64, pub currency: String, pub order_id: String, }
crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
DlocalPaymentsCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Globalpay {}
crates/hyperswitch_connectors/src/connectors/globalpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Globalpay
api::Refund for
impl api::Refund for for Globalpay
null
null
null
null
null
null
null
null
impl<'a> NetworkTokenizationBuilder<'a, PmValidated> { pub fn set_card_details( self, card_from_locker: &'a api_models::payment_methods::Card, optional_card_info: Option<diesel_models::CardInfo>, card_cvc: Option<Secret<String>>, ) -> NetworkTokenizationBuilder<'a, PmAssigned> { ...
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
impl_block
433
rust
null
NetworkTokenizationBuilder
null
impl NetworkTokenizationBuilder
null
null
null
null
null
null
null
null
pub struct UpdateMetadata;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
5
rust
UpdateMetadata
null
null
null
null
null
null
null
null
null
null
null
pub struct LabelWithScoreEventResponse { pub score: f64, pub label: String, }
crates/api_models/src/routing.rs
api_models
struct_definition
23
rust
LabelWithScoreEventResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Bamboraapac {}
crates/hyperswitch_connectors/src/connectors/bamboraapac.rs
hyperswitch_connectors
impl_block
12
rust
null
Bamboraapac
api::PaymentSync for
impl api::PaymentSync for for Bamboraapac
null
null
null
null
null
null
null
null
File: crates/analytics/src/payments/metrics/retries_count.rs use std::collections::HashSet; use api_models::{ analytics::{ payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier}, Granularity, TimeRange, }, enums::IntentStatus, }; use common_utils::errors::ReportSwitc...
crates/analytics/src/payments/metrics/retries_count.rs
analytics
full_file
968
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Accept;
crates/hyperswitch_domain_models/src/router_flow_types/dispute.rs
hyperswitch_domain_models
struct_definition
4
rust
Accept
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/threedsecureio.rs Public structs: 1 pub mod transformers; use std::fmt::Debug; use api_models::webhooks::{IncomingWebhookEvent, ObjectReferenceId}; use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder...
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
hyperswitch_connectors
full_file
3,878
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Indicates whether the syncing with the connector should be allowed or not pub fn should_force_sync_with_connector(self) -> bool { match self { // Confirm has not happened yet Self::RequiresConfirmation | Self::RequiresPaymentMethod // Once the status is su...
crates/common_enums/src/enums.rs
common_enums
function_signature
178
rust
null
null
null
null
should_force_sync_with_connector
null
null
null
null
null
null
null
impl PaymentCapture for Plaid {}
crates/hyperswitch_connectors/src/connectors/plaid.rs
hyperswitch_connectors
impl_block
7
rust
null
Plaid
PaymentCapture for
impl PaymentCapture for for Plaid
null
null
null
null
null
null
null
null
pub fn business_country_to_dir_value(c: api_enums::Country) -> dir::DirValue { dir::DirValue::BusinessCountry(get_dir_country_dir_value(c)) }
crates/kgraph_utils/src/transformers.rs
kgraph_utils
function_signature
37
rust
null
null
null
null
business_country_to_dir_value
null
null
null
null
null
null
null
impl api::RefundSync for Phonepe {}
crates/hyperswitch_connectors/src/connectors/phonepe.rs
hyperswitch_connectors
impl_block
10
rust
null
Phonepe
api::RefundSync for
impl api::RefundSync for for Phonepe
null
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GetInfo; Box::pin(api::server_wrap( flow, state, &req, domain.into_inner(), |_, _: (), domain: analytics::AnalyticsDomain, _| async { analytics::core::get_domain_info(domain) ...
crates/router/src/analytics.rs
router
impl_block
104
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Braintree {}
crates/hyperswitch_connectors/src/connectors/braintree.rs
hyperswitch_connectors
impl_block
9
rust
null
Braintree
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Braintree
null
null
null
null
null
null
null
null
pub struct RecurlyRouterData<T> { pub amount: StringMinorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc. pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
RecurlyRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct SdkSessionUpdate;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
7
rust
SdkSessionUpdate
null
null
null
null
null
null
null
null
null
null
null
pub struct AirwallexRouterData<T> { pub amount: StringMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
AirwallexRouterData
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Paysafe {}
crates/hyperswitch_connectors/src/connectors/paysafe.rs
hyperswitch_connectors
impl_block
9
rust
null
Paysafe
api::PaymentCapture for
impl api::PaymentCapture for for Paysafe
null
null
null
null
null
null
null
null
impl api::PaymentSync for Payu {}
crates/hyperswitch_connectors/src/connectors/payu.rs
hyperswitch_connectors
impl_block
9
rust
null
Payu
api::PaymentSync for
impl api::PaymentSync for for Payu
null
null
null
null
null
null
null
null
pub struct ThreeDSEnolled { pub enrolled: bool, }
crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
ThreeDSEnolled
null
null
null
null
null
null
null
null
null
null
null
pub struct Avs { code: Option<String>, code_raw: Option<String>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
Avs
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Bitpay {}
crates/hyperswitch_connectors/src/connectors/bitpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Bitpay
api::PaymentVoid for
impl api::PaymentVoid for for Bitpay
null
null
null
null
null
null
null
null
pub struct ResponseIdStr { pub id: String, }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
struct_definition
13
rust
ResponseIdStr
null
null
null
null
null
null
null
null
null
null
null
pub struct Worldpay { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/worldpay.rs
hyperswitch_connectors
struct_definition
26
rust
Worldpay
null
null
null
null
null
null
null
null
null
null
null
pub struct PaysafePaymentHandleResponse { pub id: String, pub merchant_ref_num: String, pub payment_handle_token: Secret<String>, pub status: PaysafePaymentHandleStatus, }
crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs
hyperswitch_connectors
struct_definition
42
rust
PaysafePaymentHandleResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct UpdateSuccessRateWindowConfig { pub max_aggregates_size: Option<u32>, pub current_block_threshold: Option<api_routing::CurrentBlockThreshold>, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
37
rust
UpdateSuccessRateWindowConfig
null
null
null
null
null
null
null
null
null
null
null
pub fn get_attempt_triggered_by(&self) -> Option<common_enums::TriggeredBy> { self.feature_metadata.as_ref().and_then(|metadata| { metadata .revenue_recovery .as_ref() .map(|recovery| recovery.attempt_triggered_by) }) }
crates/hyperswitch_domain_models/src/revenue_recovery.rs
hyperswitch_domain_models
function_signature
64
rust
null
null
null
null
get_attempt_triggered_by
null
null
null
null
null
null
null
pub async fn find_by_merchant_id_customer_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, customer_id: &common_utils::id_type::CustomerId, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as HasTable>::Table, _, ...
crates/diesel_models/src/query/mandate.rs
diesel_models
function_signature
144
rust
null
null
null
null
find_by_merchant_id_customer_id
null
null
null
null
null
null
null
File: crates/drainer/src/services.rs Public functions: 4 Public structs: 2 use std::sync::Arc; use actix_web::{body, HttpResponse, ResponseError}; use error_stack::Report; use redis_interface::RedisConnectionPool; use crate::{ connection::{diesel_make_pg_pool, PgPool}, logger, settings::Tenant, }; #[d...
crates/drainer/src/services.rs
drainer
full_file
525
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ErrorResult { pub reason: String, pub count: i64, pub percentage: f64, }
crates/api_models/src/analytics/payment_intents.rs
api_models
struct_definition
28
rust
ErrorResult
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Phonepe { fn id(&self) -> &'static str { "phonepe" } 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, connectors: &...
crates/hyperswitch_connectors/src/connectors/phonepe.rs
hyperswitch_connectors
impl_block
377
rust
null
Phonepe
ConnectorCommon for
impl ConnectorCommon for for Phonepe
null
null
null
null
null
null
null
null
pub fn new(algorithm_id: Option<T>) -> Self { Self { algorithm_id, timestamp: common_utils::date_time::now_unix_timestamp(), } }
crates/api_models/src/routing.rs
api_models
function_signature
37
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl api::PaymentToken for Celero {}
crates/hyperswitch_connectors/src/connectors/celero.rs
hyperswitch_connectors
impl_block
9
rust
null
Celero
api::PaymentToken for
impl api::PaymentToken for for Celero
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/mifinity.rs use masking::Secret; use router::types::{self, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct MifinityTest; impl ConnectorActions for MifinityTest {} impl utils::Connector for Mifinity...
crates/router/tests/connectors/mifinity.rs
router
full_file
2,935
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/fraud_check.rs Public structs: 1 pub use hyperswitch_domain_models::{ router_request_types::fraud_check::{ FraudCheckCheckoutData, FraudCheckFulfillmentData, FraudCheckRecordReturnData, FraudCheckSaleData, FraudCheckTransactionData, RefundMethod, }, router_res...
crates/router/src/types/fraud_check.rs
router
full_file
597
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ErrorMessagesResult { pub error_message: String, pub count: i64, pub percentage: f64, }
crates/api_models/src/analytics/refunds.rs
api_models
struct_definition
30
rust
ErrorMessagesResult
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_all_merchant_accounts( conn: &PgPooledConn, merchant_account: MerchantAccountUpdateInternal, ) -> StorageResult<Vec<Self>> { generics::generic_update_with_results::<<Self as HasTable>::Table, _, _, _>( conn, dsl::merchant_id.ne_all(vec![""]), ...
crates/diesel_models/src/query/merchant_account.rs
diesel_models
function_signature
83
rust
null
null
null
null
update_all_merchant_accounts
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.Comparison { "type": "object", "description": "Represents a single comparison condition.", "required": [ "lhs", "comparison", "value", "metadata" ], "properties": { "lhs": { "type": "string", "description": "The left hand side which will a...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
203
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "Comparison" ]
null
null
null
null
pub async fn perform_open_routing_for_debit_routing<F, D>( state: &SessionState, co_badged_card_request: or_types::CoBadgedCardRequest, card_isin: Option<Secret<String>>, old_payment_data: &mut D, ) -> RoutingResult<or_types::DebitRoutingOutput> where F: Send + Clone, D: OperationSessionGetters<...
crates/router/src/core/payments/routing.rs
router
function_signature
638
rust
null
null
null
null
perform_open_routing_for_debit_routing
null
null
null
null
null
null
null
pub struct AuthorizedotnetRouterData<T> { pub amount: FloatMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
AuthorizedotnetRouterData
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/connector_integration_interface.rs Public functions: 2 use api_models::webhooks::{IncomingWebhookEvent, ObjectReferenceId}; use common_enums::PaymentAction; use common_utils::{crypto, errors::CustomResult, request::Request}; use hyperswitch_domain_models::{ api::Application...
crates/hyperswitch_interfaces/src/connector_integration_interface.rs
hyperswitch_interfaces
full_file
6,125
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct DisputesFlowData { pub merchant_id: common_utils::id_type::MerchantId, pub payment_id: String, pub attempt_id: String, pub payment_method: common_enums::enums::PaymentMethod, pub connector_meta_data: Option<pii::SecretSerdeValue>, pub amount_captured: Option<i64>, // minor amount ...
crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs
hyperswitch_domain_models
struct_definition
128
rust
DisputesFlowData
null
null
null
null
null
null
null
null
null
null
null
pub struct TrustpayWebhookResponse { pub payment_information: WebhookPaymentInformation, pub signature: String, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
TrustpayWebhookResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn create_authorization(self, source: Authorization) -> Authorization { Authorization { status: self.status.unwrap_or(source.status), error_code: self.error_code.or(source.error_code), error_message: self.error_message.or(source.error_message), modified_at: se...
crates/diesel_models/src/authorization.rs
diesel_models
function_signature
100
rust
null
null
null
null
create_authorization
null
null
null
null
null
null
null
pub struct FilterResourceParams<'a> { pub key: PartitionKey<'a>, pub pattern: &'static str, pub limit: Option<i64>, }
crates/storage_impl/src/kv_router_store.rs
storage_impl
struct_definition
36
rust
FilterResourceParams
null
null
null
null
null
null
null
null
null
null
null
pub struct CaptureResponseData { pub statuses: Statuses, pub descriptor: String, pub notifications: NotificationContainer, #[serde(rename = "merchant-account-id")] pub merchant_account_id: MerchantAccountId, #[serde(rename = "transaction-id")] pub transaction_id: String, #[serde(rename =...
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
317
rust
CaptureResponseData
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Bitpay {}
crates/hyperswitch_connectors/src/connectors/bitpay.rs
hyperswitch_connectors
impl_block
7
rust
null
Bitpay
ConnectorValidation for
impl ConnectorValidation for for Bitpay
null
null
null
null
null
null
null
null
pub async fn generate_token_data_response( state: &SessionState, request: payment_methods::GetTokenDataRequest, profile: domain::Profile, payment_method: &domain_payment_methods::PaymentMethod, ) -> RouterResult<api::TokenDataResponse> { let token_details = match request.token_type { common_...
crates/router/src/core/payment_methods.rs
router
function_signature
504
rust
null
null
null
null
generate_token_data_response
null
null
null
null
null
null
null
impl FrmMetricAccumulator for BlockedRateAccumulator { type MetricOutput = Option<f64>; fn add_metrics_bucket(&mut self, metrics: &FrmMetricRow) { if let Some(ref frm_status) = metrics.frm_status { if frm_status.as_ref() == &storage_enums::FraudCheckStatus::Fraud { self.frau...
crates/analytics/src/frm/accumulator.rs
analytics
impl_block
185
rust
null
BlockedRateAccumulator
FrmMetricAccumulator for
impl FrmMetricAccumulator for for BlockedRateAccumulator
null
null
null
null
null
null
null
null
pub struct PlaidRecipientCreateRequest { pub name: String, #[serde(flatten)] pub account_data: PlaidRecipientAccountData, pub address: Option<PlaidRecipientCreateAddress>, }
crates/pm_auth/src/connector/plaid/transformers.rs
pm_auth
struct_definition
44
rust
PlaidRecipientCreateRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_all_by_merchant_id_payment_id_authorized_attempt_id( merchant_id: &common_utils::id_type::MerchantId, payment_id: &common_utils::id_type::PaymentId, authorized_attempt_id: &str, conn: &PgPooledConn, ) -> StorageResult<Vec<Self>> { generics::generic_filter::<...
crates/diesel_models/src/query/capture.rs
diesel_models
function_signature
161
rust
null
null
null
null
find_all_by_merchant_id_payment_id_authorized_attempt_id
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaylaterResponse { "type": "object", "properties": { "klarna_sdk": { "allOf": [ { "$ref": "#/components/schemas/KlarnaSdkPaymentMethodResponse" } ], "nullable": true } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
72
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaylaterResponse" ]
null
null
null
null
pub struct OrderFulfillment { id: String, fulfillments: FulfilmentData, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
22
rust
OrderFulfillment
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/payments/{payment_id}/update_metadata" { "post": { "tags": [ "Payments" ], "summary": "Payments - Update Metadata", "operationId": "Update Metadata for a Payment", "parameters": [ { "name": "payment_id", "in": "path", "description": "...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
300
.json
null
null
null
null
null
openapi_spec
paths
[ "/payments/{payment_id}/update_metadata" ]
null
null
null
null
impl<T: serde::Serialize> GetLockingInput for PaymentsGenericRequestWithResourceId<T> { fn get_locking_input<F>(&self, flow: F) -> api_locking::LockAction where F: types::FlowMetric, lock_utils::ApiIdentifier: From<F>, { api_locking::LockAction::Hold { ...
crates/router/src/routes/payments.rs
router
impl_block
132
rust
null
PaymentsGenericRequestWithResourceId
GetLockingInput for
impl GetLockingInput for for PaymentsGenericRequestWithResourceId
null
null
null
null
null
null
null
null
pub fn custom_json_error_handler(err: JsonPayloadError, _req: &HttpRequest) -> Error { Error::from(CustomJsonError { err }) }
crates/router/src/utils.rs
router
function_signature
34
rust
null
null
null
null
custom_json_error_handler
null
null
null
null
null
null
null
pub struct PmAssigned;
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
struct_definition
6
rust
PmAssigned
null
null
null
null
null
null
null
null
null
null
null
impl RefundMetricAccumulator for SuccessRateAccumulator { type MetricOutput = (Option<u32>, Option<u32>, Option<f64>); fn add_metrics_bucket(&mut self, metrics: &RefundMetricRow) { if let Some(ref refund_status) = metrics.refund_status { if refund_status.as_ref() == &storage_enums::RefundSt...
crates/analytics/src/refunds/accumulator.rs
analytics
impl_block
283
rust
null
SuccessRateAccumulator
RefundMetricAccumulator for
impl RefundMetricAccumulator for for SuccessRateAccumulator
null
null
null
null
null
null
null
null
File: crates/router/src/routes/tokenization.rs Public functions: 2 #[cfg(all(feature = "v2", feature = "tokenization_v2"))] use std::sync::Arc; #[cfg(all(feature = "v2", feature = "tokenization_v2"))] use actix_web::{web, HttpRequest, HttpResponse}; #[cfg(all(feature = "v2", feature = "tokenization_v2"))] use api_mo...
crates/router/src/routes/tokenization.rs
router
full_file
919
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/test_utils/tests/connectors/authorizedotnet_ui.rs use rand::Rng; use serial_test::serial; use thirtyfour::{prelude::*, WebDriver}; use crate::{selenium::*, tester}; struct AuthorizedotnetSeleniumTest; impl SeleniumTest for AuthorizedotnetSeleniumTest { fn get_connector_name(&self) -> String { ...
crates/test_utils/tests/connectors/authorizedotnet_ui.rs
test_utils
full_file
511
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<UserKeyStore> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/user_key_store.rs
diesel_models
function_signature
35
rust
null
null
null
null
insert
null
null
null
null
null
null
null
pub struct NovalnetRefundsTransactionData { pub amount: Option<MinorUnit>, pub date: Option<String>, pub currency: Option<common_enums::Currency>, pub order_no: Option<String>, pub payment_type: String, pub refund: RefundData, pub refunded_amount: Option<u64>, pub status: NovalnetTransac...
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
110
rust
NovalnetRefundsTransactionData
null
null
null
null
null
null
null
null
null
null
null
pub struct RazorpayWebhookPayload { // pub event: RazorpayWebhookEventType, // pub payload: RazorpayWebhookPayloadBody, // }
crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
RazorpayWebhookPayload
null
null
null
null
null
null
null
null
null
null
null
impl CustomerUpdateRequest { pub fn get_address(&self) -> Option<payments::AddressDetails> { self.address.clone() } }
crates/api_models/src/customers.rs
api_models
impl_block
31
rust
null
CustomerUpdateRequest
null
impl CustomerUpdateRequest
null
null
null
null
null
null
null
null
pub struct SwitchMerchantRequest { pub merchant_id: id_type::MerchantId, }
crates/api_models/src/user.rs
api_models
struct_definition
18
rust
SwitchMerchantRequest
null
null
null
null
null
null
null
null
null
null
null
pub trait GsmValidation { // TODO : move this function to appropriate place later. fn should_call_gsm(&self) -> bool; }
crates/router/src/core/payouts/retry.rs
router
trait_definition
31
rust
null
null
GsmValidation
null
null
null
null
null
null
null
null
null
File: crates/router/src/routes/webhook_events.rs Public functions: 4 use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use crate::{ core::{api_locking, webhooks::webhook_events}, routes::AppState, services::{ api, authentication::{self as auth, Use...
crates/router/src/routes/webhook_events.rs
router
full_file
1,152
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalData { paypal: PaypalDetails, #[serde(rename = "type")] payment_method_type: AirwallexPaymentType, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
PaypalData
null
null
null
null
null
null
null
null
null
null
null
pub struct DecideGatewayResponse { pub decided_gateway: Option<String>, pub gateway_priority_map: Option<serde_json::Value>, pub filter_wise_gateways: Option<serde_json::Value>, pub priority_logic_tag: Option<String>, pub routing_approach: Option<String>, pub gateway_before_evaluation: Option<St...
crates/api_models/src/open_router.rs
api_models
struct_definition
145
rust
DecideGatewayResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct SantanderBoletoPaymentRequest { pub environment: Environment, pub nsu_code: String, pub nsu_date: String, pub covenant_code: String, pub bank_number: Secret<String>, pub client_number: Option<id_type::CustomerId>, pub due_date: String, pub issue_date: String, pub currency:...
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
295
rust
SantanderBoletoPaymentRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct AdyenBalanceAccount { description: String, id: String, }
crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs
hyperswitch_connectors
struct_definition
18
rust
AdyenBalanceAccount
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Address> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/address.rs
diesel_models
function_signature
33
rust
null
null
null
null
insert
null
null
null
null
null
null
null
/// Insert a new payment token reference for the given connector_id pub fn insert_payment_token_reference_record( &mut self, connector_id: &common_utils::id_type::MerchantConnectorAccountId, record: ConnectorTokenReferenceRecord, ) { match self.payments { Some(ref mut...
crates/diesel_models/src/payment_method.rs
diesel_models
function_signature
128
rust
null
null
null
null
insert_payment_token_reference_record
null
null
null
null
null
null
null
pub fn transform_payment_method( connector: Connector, provider: Vec<Provider>, payment_method: PaymentMethod, ) -> Vec<payment_methods::RequestPaymentMethodTypes> { let mut payment_method_types = Vec::new(); for method_type in provider { let data = payment_method...
crates/connector_configs/src/transformer.rs
connector_configs
function_signature
207
rust
null
null
null
null
transform_payment_method
null
null
null
null
null
null
null
pub async fn tokenize_cards( state: &SessionState, records: Vec<payment_methods_api::CardNetworkTokenizeRequest>, merchant_context: &domain::MerchantContext, ) -> errors::RouterResponse<Vec<payment_methods_api::CardNetworkTokenizeResponse>> { use futures::stream::StreamExt; // Process all records i...
crates/router/src/core/payment_methods/tokenize.rs
router
function_signature
267
rust
null
null
null
null
tokenize_cards
null
null
null
null
null
null
null
impl api::RefundSync for Vgs {}
crates/hyperswitch_connectors/src/connectors/vgs.rs
hyperswitch_connectors
impl_block
10
rust
null
Vgs
api::RefundSync for
impl api::RefundSync for for Vgs
null
null
null
null
null
null
null
null
pub async fn verify_merchant_creds_for_applepay( state: SessionState, body: verifications::ApplepayMerchantVerificationRequest, merchant_id: common_utils::id_type::MerchantId, profile_id: Option<common_utils::id_type::ProfileId>, ) -> CustomResult<services::ApplicationResponse<ApplepayMerchantResponse>,...
crates/router/src/core/verification.rs
router
function_signature
576
rust
null
null
null
null
verify_merchant_creds_for_applepay
null
null
null
null
null
null
null
pub(super) struct SerializeStructVariant<T: Serializer> { name: String, map: Map<String, Value>, ser: T, }
crates/masking/src/serde.rs
masking
struct_definition
32
rust
SerializeStructVariant
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/router_flow_types/access_token_auth.rs Public structs: 2 #[derive(Clone, Debug)] pub struct AccessTokenAuthentication; #[derive(Clone, Debug)] pub struct AccessTokenAuth;
crates/hyperswitch_domain_models/src/router_flow_types/access_token_auth.rs
hyperswitch_domain_models
full_file
46
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Checkbook {}
crates/hyperswitch_connectors/src/connectors/checkbook.rs
hyperswitch_connectors
impl_block
9
rust
null
Checkbook
api::PaymentSession for
impl api::PaymentSession for for Checkbook
null
null
null
null
null
null
null
null
impl PaymentMethodVaultingData { pub fn get_card(&self) -> Option<&payment_methods::CardDetail> { match self { Self::Card(card) => Some(card), #[cfg(feature = "v2")] Self::NetworkToken(_) => None, } } pub fn get_payment_methods_data(&self) -> payment_metho...
crates/hyperswitch_domain_models/src/vault.rs
hyperswitch_domain_models
impl_block
177
rust
null
PaymentMethodVaultingData
null
impl PaymentMethodVaultingData
null
null
null
null
null
null
null
null