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::PaymentSession for Opayo {}
crates/hyperswitch_connectors/src/connectors/opayo.rs
hyperswitch_connectors
impl_block
9
rust
null
Opayo
api::PaymentSession for
impl api::PaymentSession for for Opayo
null
null
null
null
null
null
null
null
pub struct BatchDecryptDataRequest { #[serde(flatten)] pub identifier: Identifier, pub data: FxHashMap<String, StrongSecret<String>>, }
crates/common_utils/src/types/keymanager.rs
common_utils
struct_definition
33
rust
BatchDecryptDataRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/macros.rs #[cfg(test)] mod flat_struct_test { #![allow(clippy::unwrap_used)] use std::collections::HashMap; use router_derive::FlatStruct; use serde::Serialize; #[test] fn test_flat_struct() { #[derive(FlatStruct, Serialize)] struct User { ...
crates/router/tests/macros.rs
router
full_file
707
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodsPTMapping { pub default_mapping: RetryMapping, pub custom_pm_mapping: HashMap<enums::PaymentMethod, RetryMapping>, pub max_retries_count: i32, }
crates/scheduler/src/consumer/types/process_data.rs
scheduler
struct_definition
43
rust
PaymentMethodsPTMapping
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/forte.rs use std::{str::FromStr, time::Duration}; use cards::CardNumber; use common_utils::types::MinorUnit; use hyperswitch_domain_models::address::{Address, AddressDetails, PhoneDetails}; use masking::Secret; use router::types::{self, api, domain, storage::enums}; use crate::{ ...
crates/router/tests/connectors/forte.rs
router
full_file
4,966
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Multisafepay {}
crates/hyperswitch_connectors/src/connectors/multisafepay.rs
hyperswitch_connectors
impl_block
12
rust
null
Multisafepay
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Multisafepay
null
null
null
null
null
null
null
null
pub struct UserRoleNew { pub user_id: String, pub merchant_id: Option<id_type::MerchantId>, pub role_id: String, pub org_id: Option<id_type::OrganizationId>, pub status: enums::UserStatus, pub created_by: String, pub last_modified_by: String, pub created_at: PrimitiveDateTime, pub la...
crates/diesel_models/src/user_role.rs
diesel_models
struct_definition
136
rust
UserRoleNew
null
null
null
null
null
null
null
null
null
null
null
pub struct Amount { total: FloatMajorUnit, currency: String, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
Amount
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Payme {}
crates/hyperswitch_connectors/src/connectors/payme.rs
hyperswitch_connectors
impl_block
10
rust
null
Payme
api::RefundSync for
impl api::RefundSync for for Payme
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Coinbase { fn get_webhook_source_verification_algorithm( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(crypto::HmacSha256)) } fn g...
crates/hyperswitch_connectors/src/connectors/coinbase.rs
hyperswitch_connectors
impl_block
786
rust
null
Coinbase
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Coinbase
null
null
null
null
null
null
null
null
pub fn get_payment_method_type(&self) -> Option<api_enums::PaymentMethodType> { self.payment_method .pm_type .clone() .parse_enum("ApplePayPaymentMethodType") .ok() .and_then(|payment_type| match payment_type { common_enums::ApplePayPay...
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
function_signature
154
rust
null
null
null
null
get_payment_method_type
null
null
null
null
null
null
null
pub struct EncryptedDataGroup(pub FxHashMap<String, EncryptedData>);
crates/common_utils/src/types/keymanager.rs
common_utils
struct_definition
17
rust
EncryptedDataGroup
null
null
null
null
null
null
null
null
null
null
null
pub struct AUBankAccount { country_code: CountryAlpha2, account_number: Secret<String>, branch_code: Secret<String>, account_holder_name: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
AUBankAccount
null
null
null
null
null
null
null
null
null
null
null
Web Documentation: Exploration Guide | Hyperswitch # Type: Web Doc Hyperswitch gives you full control over your payments infrastructure without the complexity of building from scratch. Whether you're validating a prototype or scaling globally, you can get started in minutes. This guide helps you: Quickly install Hyper...
https://docs.hyperswitch.io/
null
web_doc_file
1,481
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/
Exploration Guide | Hyperswitch
null
impl super::KafkaMessage for KafkaAuthentication<'_> { fn key(&self) -> String { format!( "{}_{}", self.merchant_id.get_string_repr(), self.authentication_id.get_string_repr() ) } fn event_type(&self) -> crate::events::EventType { crate::events::E...
crates/router/src/services/kafka/authentication.rs
router
impl_block
76
rust
null
KafkaAuthentication
super::KafkaMessage for
impl super::KafkaMessage for for KafkaAuthentication
null
null
null
null
null
null
null
null
pub struct RefundSyncResponse { refunds: Vec<PayuRefundResponseData>, }
crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
RefundSyncResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Bluesnap {}
crates/hyperswitch_connectors/src/connectors/bluesnap.rs
hyperswitch_connectors
impl_block
9
rust
null
Bluesnap
api::PaymentSession for
impl api::PaymentSession for for Bluesnap
null
null
null
null
null
null
null
null
pub struct IncrementalAuthorizationDetails { pub additional_amount: MinorUnit, pub total_amount: MinorUnit, pub reason: Option<String>, pub authorization_id: Option<String>, }
crates/router/src/core/payments.rs
router
struct_definition
39
rust
IncrementalAuthorizationDetails
null
null
null
null
null
null
null
null
null
null
null
pub fn get_application_builder( request_body_limit: usize, cors: settings::CorsSettings, ) -> actix_web::App< impl ServiceFactory< ServiceRequest, Config = (), Response = actix_web::dev::ServiceResponse<impl MessageBody>, Error = actix_web::Error, InitError = (), ...
crates/router/src/lib.rs
router
function_signature
297
rust
null
null
null
null
get_application_builder
null
null
null
null
null
null
null
pub struct Unpacker;
crates/euclid/src/dssa/utils.rs
euclid
struct_definition
6
rust
Unpacker
null
null
null
null
null
null
null
null
null
null
null
impl Authipay { pub fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } } pub fn generate_authorization_signature( &self, auth: authipay::AuthipayAuthType, request_id: &str, payload: &str, timestamp: i128, ...
crates/hyperswitch_connectors/src/connectors/authipay.rs
hyperswitch_connectors
impl_block
210
rust
null
Authipay
null
impl Authipay
null
null
null
null
null
null
null
null
pub struct DisputeId { pub dispute_id: String, }
crates/router/src/types/api/disputes.rs
router
struct_definition
14
rust
DisputeId
null
null
null
null
null
null
null
null
null
null
null
pub struct NetworkToken { #[serde(rename = "type")] pub auth_type: CustomerAuthType, pub authentication_value: Secret<String>, #[serde(skip_serializing_if = "Option::is_none")] pub eci: Option<String>, }
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
hyperswitch_connectors
struct_definition
53
rust
NetworkToken
null
null
null
null
null
null
null
null
null
null
null
File: crates/pm_auth/src/lib.rs pub mod connector; pub mod consts; pub mod core; pub mod types;
crates/pm_auth/src/lib.rs
pm_auth
full_file
25
null
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/payment-methods/payment-method--confirm-intent.mdx # Type: Doc File --- openapi: post /v2/payment-methods/{id}/confirm-intent ---
api-reference/v2/payment-methods/payment-method--confirm-intent.mdx
null
doc_file
43
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct UserAuthenticationMethodResponse { pub id: String, pub auth_id: String, pub auth_method: AuthMethodDetails, pub allow_signup: bool, }
crates/api_models/src/user.rs
api_models
struct_definition
37
rust
UserAuthenticationMethodResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct NmiWebhookBody { pub event_body: NmiWebhookObject, }
crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
NmiWebhookBody
null
null
null
null
null
null
null
null
null
null
null
pub fn get_client_secret(&self) -> Secret<String> { match self { Self::StandardIntegration(item) => item.client_secret.clone(), Self::PartnerIntegration(item) => item.client_secret.clone(), } }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
function_signature
47
rust
null
null
null
null
get_client_secret
null
null
null
null
null
null
null
pub fn get_card_data(&self) -> Option<&Card> { if let Self::Card(card) = self { Some(card) } else { None } }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
function_signature
40
rust
null
null
null
null
get_card_data
null
null
null
null
null
null
null
pub async fn delete_payment_token( state: &routes::SessionState, key_for_token: &str, intent_status: enums::IntentStatus, ) -> RouterResult<()> { if ![ enums::IntentStatus::RequiresCustomerAction, enums::IntentStatus::RequiresMerchantAction, ] .contains(&intent_status) { ...
crates/router/src/core/payment_methods/vault.rs
router
function_signature
121
rust
null
null
null
null
delete_payment_token
null
null
null
null
null
null
null
/// Extract webhook content from UCS response for further processing /// This provides a helper function to extract specific data from UCS responses pub fn extract_webhook_content_from_ucs_response( transform_data: &WebhookTransformData, ) -> Option<&unified_connector_service_client::payments::WebhookResponseConten...
crates/router/src/core/unified_connector_service.rs
router
function_signature
74
rust
null
null
null
null
extract_webhook_content_from_ucs_response
null
null
null
null
null
null
null
impl ConnectorValidation for Flexiti { fn validate_mandate_payment( &self, _pm_type: Option<enums::PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { match pm_data { PaymentMethodData::Card(_) => Err(errors::ConnectorError:...
crates/hyperswitch_connectors/src/connectors/flexiti.rs
hyperswitch_connectors
impl_block
371
rust
null
Flexiti
ConnectorValidation for
impl ConnectorValidation for for Flexiti
null
null
null
null
null
null
null
null
pub trait RoutingEq<T> { fn is_equal(a: &T, b: &T) -> bool; }
crates/router/src/core/payments/routing/utils.rs
router
trait_definition
25
rust
null
null
RoutingEq
null
null
null
null
null
null
null
null
null
pub fn new(three_d_s_info: RedsysThreeDsInfo) -> Self { Self { three_d_s_info, protocol_version: None, browser_accept_header: None, browser_user_agent: None, browser_java_enabled: None, browser_javascript_enabled: None, browser_...
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
function_signature
152
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct CashtocodePaymentsSyncResponse { pub transaction_id: String, pub amount: FloatMajorUnit, }
crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
CashtocodePaymentsSyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct RSyncNodeData { id: String, status: BraintreeRefundStatus, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
RSyncNodeData
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentFilters { #[serde(default)] pub currency: Vec<Currency>, #[serde(default)] pub status: Vec<AttemptStatus>, #[serde(default)] pub connector: Vec<Connector>, #[serde(default)] pub auth_type: Vec<AuthenticationType>, #[serde(default)] pub payment_method: Vec<Paymen...
crates/api_models/src/analytics/payments.rs
api_models
struct_definition
286
rust
PaymentFilters
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.DecisionEngineSRSubLevelInputConfig { "type": "object", "properties": { "paymentMethodType": { "type": "string", "nullable": true }, "paymentMethod": { "type": "string", "nullable": true }, "latencyThreshold": { "type": "number...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
269
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "DecisionEngineSRSubLevelInputConfig" ]
null
null
null
null
pub struct ToggleKVRequest { #[serde(skip_deserializing)] #[schema(value_type = String)] pub merchant_id: id_type::MerchantId, /// Status of KV for the specific merchant #[schema(example = true)] pub kv_enabled: bool, }
crates/api_models/src/admin.rs
api_models
struct_definition
58
rust
ToggleKVRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Nuvei {}
crates/hyperswitch_connectors/src/connectors/nuvei.rs
hyperswitch_connectors
impl_block
10
rust
null
Nuvei
api::PaymentCapture for
impl api::PaymentCapture for for Nuvei
null
null
null
null
null
null
null
null
impl<'a> KafkaAuthenticationEvent<'a> { pub fn from_storage(authentication: &'a Authentication) -> Self { Self { created_at: authentication.created_at.assume_utc(), modified_at: authentication.modified_at.assume_utc(), authentication_id: &authentication.authentication_id,...
crates/router/src/services/kafka/authentication_event.rs
router
impl_block
456
rust
null
KafkaAuthenticationEvent
null
impl KafkaAuthenticationEvent
null
null
null
null
null
null
null
null
pub struct CybersourceStandardErrorResponse { pub error_information: Option<ErrorInformation>, pub status: Option<String>, pub message: Option<String>, pub reason: Option<String>, pub details: Option<Vec<Details>>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
49
rust
CybersourceStandardErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl Default for PayoutsUpdateInternal { fn default() -> Self { Self { amount: None, destination_currency: None, source_currency: None, description: None, recurring: None, auto_fulfill: None, return_url: None, en...
crates/diesel_models/src/payouts.rs
diesel_models
impl_block
135
rust
null
PayoutsUpdateInternal
Default for
impl Default for for PayoutsUpdateInternal
null
null
null
null
null
null
null
null
File: crates/drainer/src/handler.rs Public functions: 5 Public structs: 2 use std::{ collections::HashMap, sync::{atomic, Arc}, }; use common_utils::id_type; use router_env::tracing::Instrument; use tokio::{ sync::{mpsc, oneshot}, time::{self, Duration}, }; use crate::{ errors, instrument, logg...
crates/drainer/src/handler.rs
drainer
full_file
2,185
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TrustpayRefundRequestBankRedirect { pub merchant_identification: MerchantIdentification, pub payment_information: BankPaymentInformation, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
TrustpayRefundRequestBankRedirect
null
null
null
null
null
null
null
null
null
null
null
pub struct BrowserInfoCollected { pub browser_accept_header: Option<String>, pub browser_color_depth: Option<String>, #[serde(rename = "browserIP")] pub browser_ip: Option<Secret<String, common_utils::pii::IpAddress>>, pub browser_javascript_enabled: Option<bool>, pub browser_java_enabled: Optio...
crates/hyperswitch_connectors/src/connectors/gpayments/gpayments_types.rs
hyperswitch_connectors
struct_definition
124
rust
BrowserInfoCollected
null
null
null
null
null
null
null
null
null
null
null
- - - ## 2025.07.30.0 ### Features - **connector:** - [BLUECODE] Added Template Code ([#8756](https://github.com/juspay/hyperswitch/pull/8756)) ([`9f6182b`](https://github.com/juspay/hyperswitch/commit/9f6182b7fbb334447f2dda77f70d780ebbcde0ea)) - [FISERV] Added GooglePay Payment Method - Connector Decryption Fl...
CHANGELOG.md#chunk3
null
doc_chunk
8,139
doc
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/merchant-account/merchant-account--update.mdx # Type: Doc File --- openapi: put /v2/merchant-accounts/{id} ---
api-reference/v2/merchant-account/merchant-account--update.mdx
null
doc_file
39
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct VaultDeleteResponse { pub entity_id: id_type::GlobalCustomerId, pub vault_id: domain::VaultId, }
crates/router/src/types/payment_methods.rs
router
struct_definition
28
rust
VaultDeleteResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ListOrgsForUserResponse { pub org_id: id_type::OrganizationId, pub org_name: Option<String>, pub org_type: common_enums::OrganizationType, }
crates/api_models/src/user.rs
api_models
struct_definition
41
rust
ListOrgsForUserResponse
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Powertranz { fn id(&self) -> &'static str { "powertranz" } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.powertranz.base_url.as_ref() } fn...
crates/hyperswitch_connectors/src/connectors/powertranz.rs
hyperswitch_connectors
impl_block
424
rust
null
Powertranz
ConnectorCommon for
impl ConnectorCommon for for Powertranz
null
null
null
null
null
null
null
null
impl ConnectorPreAuthenticationVersionCall for Gpayments {}
crates/hyperswitch_connectors/src/connectors/gpayments.rs
hyperswitch_connectors
impl_block
10
rust
null
Gpayments
ConnectorPreAuthenticationVersionCall for
impl ConnectorPreAuthenticationVersionCall for for Gpayments
null
null
null
null
null
null
null
null
impl api::PaymentSync for Flexiti {}
crates/hyperswitch_connectors/src/connectors/flexiti.rs
hyperswitch_connectors
impl_block
9
rust
null
Flexiti
api::PaymentSync for
impl api::PaymentSync for for Flexiti
null
null
null
null
null
null
null
null
pub struct WorldpayPaymentsResponse { pub outcome: PaymentOutcome, pub transaction_reference: Option<String>, #[serde(flatten)] pub other_fields: Option<WorldpayPaymentResponseFields>, }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
struct_definition
42
rust
WorldpayPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
impl RoutingAlgorithmUpdate { pub fn create_new_routing_algorithm( request: &routing_types::RoutingConfigRequest, merchant_id: &common_utils::id_type::MerchantId, profile_id: common_utils::id_type::ProfileId, transaction_type: enums::TransactionType, ) -> Self { let algor...
crates/router/src/core/routing.rs
router
impl_block
292
rust
null
RoutingAlgorithmUpdate
null
impl RoutingAlgorithmUpdate
null
null
null
null
null
null
null
null
impl IncomingWebhook for Helcim { fn get_webhook_object_reference_id( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented)) } fn get_w...
crates/hyperswitch_connectors/src/connectors/helcim.rs
hyperswitch_connectors
impl_block
193
rust
null
Helcim
IncomingWebhook for
impl IncomingWebhook for for Helcim
null
null
null
null
null
null
null
null
pub struct FrmMetricsAccumulator { pub frm_triggered_attempts: TriggeredAttemptsAccumulator, pub frm_blocked_rate: BlockedRateAccumulator, }
crates/analytics/src/frm/accumulator.rs
analytics
struct_definition
34
rust
FrmMetricsAccumulator
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/lib.rs Public functions: 13 Public structs: 1 pub mod active_payments; pub mod api_event; pub mod auth_events; mod clickhouse; pub mod connector_events; pub mod core; pub mod disputes; pub mod enums; pub mod errors; pub mod frm; pub mod health_check; pub mod metrics; pub mod opensearch; pu...
crates/analytics/src/lib.rs
analytics
full_file
7,079
null
null
null
null
null
null
null
null
null
null
null
null
null
let supported_capture_methods = vec![ enums::CaptureMethod::Automatic, enums::CaptureMethod::Manual, enums::CaptureMethod::SequentialAutomatic, ]; let supported_card_network = vec![ common_enums::CardNetwork::AmericanExpress, common_enums::CardNetwork::Visa, ...
crates/hyperswitch_connectors/src/connectors/rapyd.rs#chunk1
hyperswitch_connectors
chunk
821
null
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/payments/payments--cancel-post-capture.mdx # Type: Doc File --- openapi: post /payments/{payment_id}/cancel_post_capture ---
api-reference/v1/payments/payments--cancel-post-capture.mdx
null
doc_file
40
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl PaymentSync for Payone {}
crates/hyperswitch_connectors/src/connectors/payone.rs
hyperswitch_connectors
impl_block
7
rust
null
Payone
PaymentSync for
impl PaymentSync for for Payone
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Bitpay { fn get_webhook_object_reference_id( &self, request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { let notif: BitpayWebhookDetails = request .body ...
crates/hyperswitch_connectors/src/connectors/bitpay.rs
hyperswitch_connectors
impl_block
482
rust
null
Bitpay
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Bitpay
null
null
null
null
null
null
null
null
impl Responder { #[allow(clippy::expect_used)] // safety: This shouldn't panic owing to the data type let payload = json_payload .into_inner() .to_vec() .pop() .expect("Couldn't get GetRefundMetricRequest"); let flow = AnalyticsFlow::GetRef...
crates/router/src/analytics.rs
router
impl_block
286
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct Name { pub first_name: Option<Secret<String>>, pub surname: Option<Secret<String>>, pub surname_prefix: Option<Secret<String>>, pub title: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
hyperswitch_connectors
struct_definition
43
rust
Name
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_forex(state: web::Data<AppState>, req: HttpRequest) -> HttpResponse { let flow = Flow::RetrieveForexFlow; Box::pin(api::server_wrap( flow, state, &req, (), |state, _auth: auth::AuthenticationData, _, _| currency::retrieve_forex(state), auth::...
crates/router/src/routes/currency.rs
router
function_signature
141
rust
null
null
null
null
retrieve_forex
null
null
null
null
null
null
null
File: crates/hsdev/src/input_file.rs Public functions: 2 Public structs: 1 use std::string::String; use serde::Deserialize; use toml::Value; #[derive(Deserialize)] pub struct InputData { username: String, password: String, dbname: String, host: String, port: u16, } impl InputData { pub fn ...
crates/hsdev/src/input_file.rs
hsdev
full_file
163
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Stripebilling {}
crates/hyperswitch_connectors/src/connectors/stripebilling.rs
hyperswitch_connectors
impl_block
9
rust
null
Stripebilling
api::Refund for
impl api::Refund for for Stripebilling
null
null
null
null
null
null
null
null
pub async fn execute( &self, query_builder: OpenSearchQueryBuilder, ) -> CustomResult<Response, OpenSearchError> { match query_builder.query_type { OpenSearchQuery::Msearch(ref indexes) => { let payload = query_builder .construct_payload(indexe...
crates/analytics/src/opensearch.rs
analytics
function_signature
343
rust
null
null
null
null
execute
null
null
null
null
null
null
null
pub async fn profile_payments_list_by_filter( state: web::Data<app::AppState>, req: actix_web::HttpRequest, payload: web::Json<payment_types::PaymentListFilterConstraints>, ) -> impl Responder { let flow = Flow::PaymentsList; let payload = payload.into_inner(); Box::pin(api::server_wrap( ...
crates/router/src/routes/payments.rs
router
function_signature
208
rust
null
null
null
null
profile_payments_list_by_filter
null
null
null
null
null
null
null
impl RefundDistributionAccumulator for RefundErrorMessageDistributionAccumulator { type DistributionOutput = Option<Vec<ErrorMessagesResult>>; fn add_distribution_bucket(&mut self, distribution: &RefundDistributionRow) { self.refund_error_message_vec .push(RefundErrorMessageDistributionRow ...
crates/analytics/src/refunds/accumulator.rs
analytics
impl_block
329
rust
null
RefundErrorMessageDistributionAccumulator
RefundDistributionAccumulator for
impl RefundDistributionAccumulator for for RefundErrorMessageDistributionAccumulator
null
null
null
null
null
null
null
null
pub struct OpensearchHit { #[serde(rename = "_source")] pub source: Value, }
crates/api_models/src/analytics/search.rs
api_models
struct_definition
22
rust
OpensearchHit
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Digitalvirgo {}
crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs
hyperswitch_connectors
impl_block
11
rust
null
Digitalvirgo
api::RefundExecute for
impl api::RefundExecute for for Digitalvirgo
null
null
null
null
null
null
null
null
pub(crate) fn get_apple_pay_session<F, T>( instance_id: String, secrets: &SdkSecretInfo, apple_pay_init_result: TrustpayApplePayResponse, item: ResponseRouterData<F, TrustpayCreateIntentResponse, T, PaymentsResponseData>, ) -> Result<RouterData<F, T, PaymentsResponseData>, error_stack::Report<errors::Co...
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
function_signature
446
rust
null
null
null
null
get_apple_pay_session
null
null
null
null
null
null
null
pub trait ToResponse<F, D, Op> where Self: Sized, Op: Debug, D: OperationSessionGetters<F>, { #[cfg(feature = "v1")] #[allow(clippy::too_many_arguments)] fn generate_response( data: D, customer: Option<domain::Customer>, auth_flow: services::AuthFlow, base_url: &s...
crates/router/src/core/payments/transformers.rs
router
trait_definition
254
rust
null
null
ToResponse
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_attempt_list.rs Public structs: 1 use std::marker::PhantomData; #[cfg(feature = "v2")] use api_models::{enums::FrmSuggestion, payments::PaymentAttemptListRequest}; use async_trait::async_trait; use common_utils::errors::CustomResult; use router_env::{instrumen...
crates/router/src/core/payments/operations/payment_attempt_list.rs
router
full_file
1,749
null
null
null
null
null
null
null
null
null
null
null
null
null
impl PaymentSession for Signifyd {}
crates/hyperswitch_connectors/src/connectors/signifyd.rs
hyperswitch_connectors
impl_block
8
rust
null
Signifyd
PaymentSession for
impl PaymentSession for for Signifyd
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/phonepe.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl RoutingAlgorithmHelpers<'_> { fn connector_choice( &self, choice: &routing_types::RoutableConnectorChoice, ) -> RouterResult<()> { if let Some(ref mca_id) = choice.merchant_connector_id { let connector_choice = common_enums::connector_enums::Connector::from(choice.connec...
crates/router/src/core/routing/helpers.rs
router
impl_block
524
rust
null
RoutingAlgorithmHelpers
null
impl RoutingAlgorithmHelpers
null
null
null
null
null
null
null
null
impl PayoutFulfill for Payone {}
crates/hyperswitch_connectors/src/connectors/payone.rs
hyperswitch_connectors
impl_block
9
rust
null
Payone
PayoutFulfill for
impl PayoutFulfill for for Payone
null
null
null
null
null
null
null
null
File: crates/analytics/src/api_event/events.rs Public functions: 1 Public structs: 1 use api_models::analytics::{ api_event::{ApiLogsRequest, QueryType}, Granularity, }; use common_utils::errors::ReportSwitchExt; use error_stack::ResultExt; use router_env::Flow; use time::PrimitiveDateTime; use crate::{ ...
crates/analytics/src/api_event/events.rs
analytics
full_file
969
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_by_payment_method_id( conn: &PgPooledConn, payment_method_id: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::payment_method_id.eq(payment_method_id.to_owned()), ) .await ...
crates/diesel_models/src/query/payment_method.rs
diesel_models
function_signature
77
rust
null
null
null
null
find_by_payment_method_id
null
null
null
null
null
null
null
pub struct ErrorDistributionRow { pub count: i64, pub total: i64, pub error_message: String, }
crates/analytics/src/payment_intents/accumulator.rs
analytics
struct_definition
30
rust
ErrorDistributionRow
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.Venmo { "type": "object", "required": [ "telephone_number" ], "properties": { "telephone_number": { "type": "string", "description": "mobile number linked to venmo account", "example": "16608213349" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
85
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "Venmo" ]
null
null
null
null
impl PartnerReferralRequest { pub fn new(tracking_id: String, return_url: String) -> Self { Self { tracking_id, operations: vec![PartnerReferralOperations { operation: PayPalReferralOperationType::ApiIntegration, api_integration_preference: PartnerRefe...
crates/router/src/types/api/connector_onboarding/paypal.rs
router
impl_block
277
rust
null
PartnerReferralRequest
null
impl PartnerReferralRequest
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/api_keys.rs Public functions: 6 use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods}; use super::generics; use crate::{ api_keys::{ApiKey, ApiKeyNew, ApiKeyUpdate, ApiKeyUpdateInternal, HashedApiKey}, errors, schema::api_keys::dsl, PgPool...
crates/diesel_models/src/query/api_keys.rs
diesel_models
full_file
840
null
null
null
null
null
null
null
null
null
null
null
null
null
impl<const T: u8> Refund for DummyConnector<T> {}
crates/hyperswitch_connectors/src/connectors/dummyconnector.rs
hyperswitch_connectors
impl_block
15
rust
null
DummyConnector
Refund for
impl Refund for for DummyConnector
null
null
null
null
null
null
null
null
impl DecisionEngineGatewayWiseExtraScore { pub fn update(&mut self, new_config: Self) { self.gateway_name = new_config.gateway_name; self.gateway_sigma_factor = new_config.gateway_sigma_factor; } }
crates/api_models/src/open_router.rs
api_models
impl_block
48
rust
null
DecisionEngineGatewayWiseExtraScore
null
impl DecisionEngineGatewayWiseExtraScore
null
null
null
null
null
null
null
null
impl api::PaymentSession for Paypal {}
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
impl_block
8
rust
null
Paypal
api::PaymentSession for
impl api::PaymentSession for for Paypal
null
null
null
null
null
null
null
null
pub struct NexinetsRefundResponse { pub transaction_id: String, pub status: RefundStatus, pub order: NexinetsOrder, #[serde(rename = "type")] pub transaction_type: RefundType, }
crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
NexinetsRefundResponse
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/refunds/refunds--list.mdx # Type: Doc File --- openapi: post /v2/refunds/list ---
api-reference/v2/refunds/refunds--list.mdx
null
doc_file
34
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn receive_incoming_webhook<W: types::OutgoingWebhookType>( state: web::Data<AppState>, req: HttpRequest, body: web::Bytes, path: web::Path<( common_utils::id_type::MerchantId, common_utils::id_type::ProfileId, common_utils::id_type::MerchantConnectorAccountId, )
crates/router/src/routes/webhooks.rs
router
function_signature
80
rust
null
null
null
null
receive_incoming_webhook
null
null
null
null
null
null
null
pub fn is_signature_network(&self) -> bool { match self { Self::Interac | Self::Star | Self::Pulse | Self::Accel | Self::Nyce | Self::CartesBancaires => false, Self::Visa | Self::Mastercard | Self::Ameri...
crates/common_enums/src/enums.rs
common_enums
function_signature
128
rust
null
null
null
null
is_signature_network
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/api/fraud_check_v2.rs //! FRM V2 interface use hyperswitch_domain_models::{ router_data_v2::flow_common_types::FrmFlowData, router_flow_types::{Checkout, Fulfillment, RecordReturn, Sale, Transaction}, router_request_types::fraud_check::{ FraudCheckCheckoutDat...
crates/hyperswitch_interfaces/src/api/fraud_check_v2.rs
hyperswitch_interfaces
full_file
410
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct RedirectPaymentMethod { pub payment_product_id: u16, pub redirection_data: RedirectionData, #[serde(flatten)] pub payment_method_specific_data: PaymentMethodSpecificData, }
crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
RedirectPaymentMethod
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::PaymentsRedirect; let (payment_id, merchant_id, connector) = path.into_inner(); let param_string = req.query_string(); tracing::Span::current().record("payment_id", payment_id.get_string_repr()); let payload = payments::PaymentsRedirectResponseData { resou...
crates/router/src/routes/payments.rs
router
impl_block
288
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl EuclidDirFilter for ConditionalConfigs { const ALLOWED: &'static [DirKeyKind] = &[ DirKeyKind::PaymentMethod, DirKeyKind::CardType, DirKeyKind::CardNetwork, DirKeyKind::MetaData, DirKeyKind::PaymentAmount, DirKeyKind::PaymentCurrency, DirKeyKind::CaptureM...
crates/common_types/src/payments.rs
common_types
impl_block
98
rust
null
ConditionalConfigs
EuclidDirFilter for
impl EuclidDirFilter for for ConditionalConfigs
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PollConfig { "type": "object", "required": [ "delay_in_secs", "frequency" ], "properties": { "delay_in_secs": { "type": "integer", "format": "int32", "description": "Interval of the poll", "minimum": 0 }, "frequency": { "ty...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
127
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PollConfig" ]
null
null
null
null
File: crates/router/src/routes/gsm.rs Public functions: 4 use actix_web::{web, HttpRequest, Responder}; use api_models::gsm as gsm_api_types; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, gsm}, services::{api, authentication as auth}, }; #[cfg(feature...
crates/router/src/routes/gsm.rs
router
full_file
1,209
null
null
null
null
null
null
null
null
null
null
null
null
null
impl super::KafkaMessage for KafkaDispute<'_> { fn key(&self) -> String { format!( "{}_{}_{}", self.merchant_id.get_string_repr(), self.payment_id.get_string_repr(), self.dispute_id ) } fn event_type(&self) -> crate::events::EventType { ...
crates/router/src/services/kafka/dispute.rs
router
impl_block
85
rust
null
KafkaDispute
super::KafkaMessage for
impl super::KafkaMessage for for KafkaDispute
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ConnectorChargeResponseData { "oneOf": [ { "type": "object", "required": [ "stripe_split_payment" ], "properties": { "stripe_split_payment": { "$ref": "#/components/schemas/StripeChargeResponseData" } } }, ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
204
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ConnectorChargeResponseData" ]
null
null
null
null