text
string
file_path
string
module
string
type
string
tokens
int64
language
string
struct_name
string
type_name
string
trait_name
string
impl_type
string
function_name
string
source
string
section
string
keys
list
macro_type
string
url
string
title
string
chunk_index
int64
pub async fn delete_by_merchant_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<bool> { generics::generic_delete::<<Self as HasTable>::Table, _>( conn, dsl::merchant_id.eq(merchant_id.to_owned()), ) .await ...
crates/diesel_models/src/query/merchant_key_store.rs
diesel_models
function_signature
80
rust
null
null
null
null
delete_by_merchant_id
null
null
null
null
null
null
null
pub struct CurrencyCountryFlowFilter { pub currency: Option<HashSet<api_enums::Currency>>, pub country: Option<HashSet<api_enums::CountryAlpha2>>, pub not_available_flows: Option<NotAvailableFlows>, }
crates/kgraph_utils/src/types.rs
kgraph_utils
struct_definition
52
rust
CurrencyCountryFlowFilter
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for HyperswitchVault { fn id(&self) -> &'static str { "hyperswitch_vault" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&...
crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs
hyperswitch_connectors
impl_block
356
rust
null
HyperswitchVault
ConnectorCommon for
impl ConnectorCommon for for HyperswitchVault
null
null
null
null
null
null
null
null
/// Unify the address, giving priority to `self` when details are present in both pub fn unify_address(&self, other: Option<&Self>) -> Self { let other_address_details = other.and_then(|address| address.address.as_ref()); Self { address: self .address .as_...
crates/hyperswitch_domain_models/src/address.rs
hyperswitch_domain_models
function_signature
187
rust
null
null
null
null
unify_address
null
null
null
null
null
null
null
/// returns the inner bool value pub fn is_true(&self) -> bool { self.0 }
crates/common_types/src/primitive_wrappers.rs
common_types
function_signature
25
rust
null
null
null
null
is_true
null
null
null
null
null
null
null
pub async fn get_profile_auth_events_filters( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<GetAuthEventFilterRequest>, ) -> impl Responder { let flow = AnalyticsFlow::GetAuthEventFilters; Box::pin(api::server_wrap( flow, ...
crates/router/src/analytics.rs
router
function_signature
273
rust
null
null
null
null
get_profile_auth_events_filters
null
null
null
null
null
null
null
Documentation: api-reference/v2/api-key/api-key--revoke.mdx # Type: Doc File --- openapi: delete /v2/api-keys/{id} ---
api-reference/v2/api-key/api-key--revoke.mdx
null
doc_file
36
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn organization_create() {}
crates/openapi/src/routes/organization.rs
openapi
function_signature
7
rust
null
null
null
null
organization_create
null
null
null
null
null
null
null
pub struct ChargebeeWebhookContent { pub transaction: ChargebeeTransactionData, pub invoice: ChargebeeInvoiceData, pub customer: Option<ChargebeeCustomer>, pub subscription: Option<ChargebeeSubscriptionData>, }
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
struct_definition
48
rust
ChargebeeWebhookContent
null
null
null
null
null
null
null
null
null
null
null
pub struct PartnerReferralRequest { pub tracking_id: String, pub operations: Vec<PartnerReferralOperations>, pub products: Vec<PayPalProducts>, pub capabilities: Vec<PayPalCapabilities>, pub partner_config_override: PartnerConfigOverride, pub legal_consents: Vec<LegalConsent>, }
crates/router/src/types/api/connector_onboarding/paypal.rs
router
struct_definition
68
rust
PartnerReferralRequest
null
null
null
null
null
null
null
null
null
null
null
impl CallbackMapper { pub fn new( id: String, callback_mapper_id_type: common_enums::CallbackMapperIdType, data: CallbackMapperData, created_at: time::PrimitiveDateTime, last_modified_at: time::PrimitiveDateTime, ) -> Self { Self { id, call...
crates/hyperswitch_domain_models/src/callback_mapper.rs
hyperswitch_domain_models
impl_block
89
rust
null
CallbackMapper
null
impl CallbackMapper
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/organization/{id}" { "get": { "tags": [ "Organization" ], "summary": "Organization - Retrieve", "description": "Retrieve an existing organization", "operationId": "Retrieve an Organization", "parameters": [ { "name": "id", "in": "path", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
497
.json
null
null
null
null
null
openapi_spec
paths
[ "/organization/{id}" ]
null
null
null
null
impl LockAction { #[instrument(skip_all)] pub async fn perform_locking_action<A>( self, state: &A, merchant_id: common_utils::id_type::MerchantId, ) -> RouterResult<()> where A: SessionStateInfo, { match self { Self::HoldMultiple { inputs } => { ...
crates/router/src/core/api_locking.rs
router
impl_block
1,596
rust
null
LockAction
null
impl LockAction
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Dlocal { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&*DLOCAL_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*DLOCAL_SUPPORTED_PAYMENT_METHODS) } fn get_suppor...
crates/hyperswitch_connectors/src/connectors/dlocal.rs
hyperswitch_connectors
impl_block
107
rust
null
Dlocal
ConnectorSpecifications for
impl ConnectorSpecifications for for Dlocal
null
null
null
null
null
null
null
null
pub async fn toggle_blocklist_guard( state: SessionState, merchant_context: domain::MerchantContext, query: api_blocklist::ToggleBlocklistQuery, ) -> RouterResponse<api_blocklist::ToggleBlocklistResponse> { utils::toggle_blocklist_guard_for_merchant( &state, merchant_context.get_merchant...
crates/router/src/core/blocklist.rs
router
function_signature
97
rust
null
null
null
null
toggle_blocklist_guard
null
null
null
null
null
null
null
pub async fn delete_user_role( state: web::Data<AppState>, req: HttpRequest, payload: web::Json<user_role_api::DeleteUserRoleRequest>, ) -> HttpResponse { let flow = Flow::DeleteUserRole; Box::pin(api::server_wrap( flow, state.clone(), &req, payload.into_inner(), ...
crates/router/src/routes/user_role.rs
router
function_signature
120
rust
null
null
null
null
delete_user_role
null
null
null
null
null
null
null
pub struct Address { pub address_id: String, pub city: Option<String>, pub country: Option<enums::CountryAlpha2>, #[encrypt] pub line1: Option<Encryptable<Secret<String>>>, #[encrypt] pub line2: Option<Encryptable<Secret<String>>>, #[encrypt] pub line3: Option<Encryptable<Secret<Stri...
crates/router/src/types/domain/address.rs
router
struct_definition
301
rust
Address
null
null
null
null
null
null
null
null
null
null
null
pub async fn validate_and_create_refund( state: &SessionState, merchant_context: &domain::MerchantContext, payment_attempt: &storage::PaymentAttempt, payment_intent: &storage::PaymentIntent, refund_amount: common_utils_types::MinorUnit, req: refunds::RefundsCreateRequest, global_refund_id: i...
crates/router/src/core/refunds_v2.rs
router
function_signature
1,233
rust
null
null
null
null
validate_and_create_refund
null
null
null
null
null
null
null
impl api::MandateSetup for Klarna {}
crates/hyperswitch_connectors/src/connectors/klarna.rs
hyperswitch_connectors
impl_block
11
rust
null
Klarna
api::MandateSetup for
impl api::MandateSetup for for Klarna
null
null
null
null
null
null
null
null
pub struct LogConsole { /// Whether you want to see log in your terminal. pub enabled: bool, /// What you see in your terminal. pub level: Level, /// Log format #[serde(default)] pub log_format: LogFormat, /// Directive which sets the log level for one or more crates/modules. pub fil...
crates/router_env/src/logger/config.rs
router_env
struct_definition
81
rust
LogConsole
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Fiservemea {}
crates/hyperswitch_connectors/src/connectors/fiservemea.rs
hyperswitch_connectors
impl_block
12
rust
null
Fiservemea
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Fiservemea
null
null
null
null
null
null
null
null
pub fn add_filter_clause( &mut self, key: impl ToSql<T>, value: impl ToSql<T>, ) -> QueryResult<()> { self.add_custom_filter_clause(key, value, FilterTypes::Equal) }
crates/analytics/src/query.rs
analytics
function_signature
51
rust
null
null
null
null
add_filter_clause
null
null
null
null
null
null
null
pub async fn attach_dispute_evidence( state: web::Data<AppState>, req: HttpRequest, payload: Multipart, ) -> HttpResponse { let flow = Flow::AttachDisputeEvidence; //Get attach_evidence_request from the multipart request let attach_evidence_request_result = utils::get_attach_evidence_request(pay...
crates/router/src/routes/disputes.rs
router
function_signature
282
rust
null
null
null
null
attach_dispute_evidence
null
null
null
null
null
null
null
File: crates/router/src/db/file.rs use error_stack::report; use router_env::{instrument, tracing}; use super::{MockDb, Store}; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; #[async_trait::async_trait] pub trait FileMetadataInterface { async fn insert_file_metadata( ...
crates/router/src/db/file.rs
router
full_file
991
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Metadata { pub customer_id: Option<String>, pub customer_name: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
Metadata
null
null
null
null
null
null
null
null
null
null
null
pub fn new(header: Option<&HeaderValue>) -> Self { Self { header: header.cloned(), } }
crates/router/src/core/webhooks/network_tokenization_incoming.rs
router
function_signature
26
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn list_user_roles_details( state: SessionState, user_from_token: auth::UserFromToken, request: user_api::GetUserRoleDetailsRequest, _req_state: ReqState, ) -> UserResponse<Vec<user_api::GetUserRoleDetailsResponseV2>> { let required_user = utils::user::get_user_from_db_by_email(&state, req...
crates/router/src/core/user.rs
router
function_signature
1,786
rust
null
null
null
null
list_user_roles_details
null
null
null
null
null
null
null
pub struct HelcimVoidRequest { card_transaction_id: u64, ip_address: Secret<String, IpAddress>, #[serde(skip_serializing_if = "Option::is_none")] ecommerce: Option<bool>, }
crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs
hyperswitch_connectors
struct_definition
48
rust
HelcimVoidRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthorizationIsoFields { pub response_code: String, pub response_code_description: String, pub authorization_code: String, pub network_code: String, pub system_trace_audit_number: Secret<String>, pub retrieval_reference_number: String, pub eci: String, pub network_specific_fie...
crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
hyperswitch_connectors
struct_definition
71
rust
AuthorizationIsoFields
null
null
null
null
null
null
null
null
null
null
null
/// Retrieves the appropriate file storage client based on the file storage configuration. pub async fn get_file_storage_client(&self) -> Arc<dyn FileStorageInterface> { match self { #[cfg(feature = "aws_s3")] Self::AwsS3 { aws_s3 } => Arc::new(aws_s3::AwsFileStorageClient::new(aws_s...
crates/external_services/src/file_storage.rs
external_services
function_signature
97
rust
null
null
null
null
get_file_storage_client
null
null
null
null
null
null
null
pub fn is_confirm_operation(&self) -> bool { matches!(self, Self::ConfirmIntent { .. }) }
crates/hyperswitch_domain_models/src/payments/payment_intent.rs
hyperswitch_domain_models
function_signature
25
rust
null
null
null
null
is_confirm_operation
null
null
null
null
null
null
null
pub struct TokeniseCreditCardResult { tokenise_credit_card_response: MandateResponseBody, }
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
TokeniseCreditCardResult
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Authorizedotnet { fn validate_mandate_payment( &self, pm_type: Option<enums::PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { let mandate_supported_pmd = std::collections::HashSet::from([ Paym...
crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs
hyperswitch_connectors
impl_block
118
rust
null
Authorizedotnet
ConnectorValidation for
impl ConnectorValidation for for Authorizedotnet
null
null
null
null
null
null
null
null
pub async fn perform_dynamic_routing_with_intelligent_router<F, D>( state: &SessionState, routable_connectors: Vec<api_routing::RoutableConnectorChoice>, profile: &domain::Profile, dynamic_routing_config_params_interpolator: routing::helpers::DynamicRoutingConfigParamsInterpolator, payment_data: &mu...
crates/router/src/core/payments/routing.rs
router
function_signature
692
rust
null
null
null
null
perform_dynamic_routing_with_intelligent_router
null
null
null
null
null
null
null
- - - ## 2024.08.14.0 ### Features - **connector:** Create Taxjar connector ([#5597](https://github.com/juspay/hyperswitch/pull/5597)) ([`0ab0aa1`](https://github.com/juspay/hyperswitch/commit/0ab0aa1a94fe98719d51ff89d27935a30cb33721)) ### Bug Fixes - **router:** Return missing required field error when a domain ...
CHANGELOG.md#chunk25
null
doc_chunk
8,109
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Opennode {}
crates/hyperswitch_connectors/src/connectors/opennode.rs
hyperswitch_connectors
impl_block
10
rust
null
Opennode
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Opennode
null
null
null
null
null
null
null
null
impl MerchantConnectorAccount { pub fn server(state: AppState) -> Scope { let mut route = web::scope("/account").app_data(web::Data::new(state)); #[cfg(feature = "olap")] { use super::admin::*; route = route .service( web::resourc...
crates/router/src/routes/app.rs
router
impl_block
243
rust
null
MerchantConnectorAccount
null
impl MerchantConnectorAccount
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MerchantAccountResponse { "type": "object", "required": [ "merchant_id", "enable_payment_response_hash", "redirect_to_merchant_with_http_post", "primary_business_details", "organization_id", "is_recon_enabled", "recon_status", "merchant_account_...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
1,238
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantAccountResponse" ]
null
null
null
null
pub struct RoutingEvaluateResponse { pub status: String, pub output: serde_json::Value, #[serde(deserialize_with = "deserialize_connector_choices")] pub evaluated_output: Vec<RoutableConnectorChoice>, #[serde(deserialize_with = "deserialize_connector_choices")] pub eligible_connectors: Vec<Routa...
crates/api_models/src/routing.rs
api_models
struct_definition
71
rust
RoutingEvaluateResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/openapi/src/main.rs #[cfg(feature = "v1")] mod openapi; #[cfg(feature = "v2")] mod openapi_v2; mod routes; #[allow(clippy::print_stdout)] // Using a logger is not necessary here fn main() { #[cfg(all(feature = "v1", feature = "v2"))] compile_error!("features v1 and v2 are mutually exclusive, plea...
crates/openapi/src/main.rs
openapi
full_file
605
null
null
null
null
null
null
null
null
null
null
null
null
null
impl RefundMetricAccumulator for RefundReasonAccumulator { type MetricOutput = Option<u64>; fn add_metrics_bucket(&mut self, metrics: &RefundMetricRow) { if let Some(count) = metrics.count { if let Ok(count_u64) = u64::try_from(count) { self.count += count_u64; }...
crates/analytics/src/refunds/accumulator.rs
analytics
impl_block
106
rust
null
RefundReasonAccumulator
RefundMetricAccumulator for
impl RefundMetricAccumulator for for RefundReasonAccumulator
null
null
null
null
null
null
null
null
pub struct RazorpayErrorMessage { pub message: String, }
crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
RazorpayErrorMessage
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Deutschebank {}
crates/hyperswitch_connectors/src/connectors/deutschebank.rs
hyperswitch_connectors
impl_block
9
rust
null
Deutschebank
api::Refund for
impl api::Refund for for Deutschebank
null
null
null
null
null
null
null
null
pub struct ApiEventMetricRow { pub latency: Option<u64>, pub api_count: Option<u64>, pub status_code_count: Option<u64>, #[serde(with = "common_utils::custom_serde::iso8601::option")] pub start_bucket: Option<PrimitiveDateTime>, #[serde(with = "common_utils::custom_serde::iso8601::option")] ...
crates/analytics/src/api_event/metrics.rs
analytics
struct_definition
100
rust
ApiEventMetricRow
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Fiservemea { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&FISERVEMEA_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*FISERVEMEA_SUPPORTED_PAYMENT_METHODS) } fn...
crates/hyperswitch_connectors/src/connectors/fiservemea.rs
hyperswitch_connectors
impl_block
117
rust
null
Fiservemea
ConnectorSpecifications for
impl ConnectorSpecifications for for Fiservemea
null
null
null
null
null
null
null
null
pub async fn payments_manual_update( state: SessionState, req: api_models::payments::PaymentsManualUpdateRequest, ) -> RouterResponse<api_models::payments::PaymentsManualUpdateResponse> { let api_models::payments::PaymentsManualUpdateRequest { payment_id, attempt_id, merchant_id, ...
crates/router/src/core/payments.rs
router
function_signature
993
rust
null
null
null
null
payments_manual_update
null
null
null
null
null
null
null
impl Encryption { pub fn new(item: Secret<Vec<u8>, EncryptionStrategy>) -> Self { Self { inner: item } } #[inline] pub fn into_inner(self) -> Secret<Vec<u8>, EncryptionStrategy> { self.inner } #[inline] pub fn get_inner(&self) -> &Secret<Vec<u8>, EncryptionStrategy> { ...
crates/common_utils/src/encryption.rs
common_utils
impl_block
87
rust
null
Encryption
null
impl Encryption
null
null
null
null
null
null
null
null
impl api::MandateSetup for Payme {}
crates/hyperswitch_connectors/src/connectors/payme.rs
hyperswitch_connectors
impl_block
11
rust
null
Payme
api::MandateSetup for
impl api::MandateSetup for for Payme
null
null
null
null
null
null
null
null
pub struct DisputeTransaction { pub amount: StringMajorUnit, pub id: String, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
DisputeTransaction
null
null
null
null
null
null
null
null
null
null
null
pub struct PhoneDetails { pub number: Option<Secret<String>>, pub country_code: Option<String>, }
crates/hyperswitch_domain_models/src/address.rs
hyperswitch_domain_models
struct_definition
23
rust
PhoneDetails
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/payments/payment_intent.rs Public functions: 4 Public structs: 6 #[cfg(feature = "v1")] use common_utils::consts::PAYMENTS_LIST_MAX_LIMIT_V2; #[cfg(feature = "v2")] use common_utils::errors::ParsingError; #[cfg(feature = "v2")] use common_utils::ext_traits::{Encode, ValueEx...
crates/hyperswitch_domain_models/src/payments/payment_intent.rs#chunk0
hyperswitch_domain_models
chunk
8,179
null
null
null
null
null
null
null
null
null
null
null
null
null
impl IncomingWebhook for Worldpay { fn get_webhook_source_verification_algorithm( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(crypto::Sha256)) } fn get_webhook_source_verifi...
crates/hyperswitch_connectors/src/connectors/worldpay.rs
hyperswitch_connectors
impl_block
1,446
rust
null
Worldpay
IncomingWebhook for
impl IncomingWebhook for for Worldpay
null
null
null
null
null
null
null
null
pub struct AuthenticationDetails { pub eci: Option<String>, pub token_details: Option<UasTokenDetails>, pub dynamic_data_details: Option<UasDynamicData>, pub trans_status: Option<common_enums::TransactionStatus>, }
crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
AuthenticationDetails
null
null
null
null
null
null
null
null
null
null
null
pub fn new(name: Secret<String>) -> UserResult<Self> { let name = name.expose(); let is_empty_or_whitespace = name.trim().is_empty(); let is_too_long = name.graphemes(true).count() > consts::user::MAX_NAME_LENGTH; let forbidden_characters = ['/', '(', ')', '"', '<', '>', '\\', '{', '}']...
crates/router/src/types/domain/user.rs
router
function_signature
142
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct SyncResponse { response_code: u8, receipt: String, declined_code: Option<String>, declined_message: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
SyncResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/generic_link.rs Public functions: 7 use common_utils::{errors, ext_traits::ValueExt, link_utils::GenericLinkStatus}; use diesel::{associations::HasTable, ExpressionMethods}; use error_stack::{report, Report, ResultExt}; use super::generics; use crate::{ errors as db_errors, ...
crates/diesel_models/src/query/generic_link.rs
diesel_models
full_file
1,951
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/cards/tests/basic.rs #![allow(clippy::unwrap_used, clippy::expect_used)] use cards::{CardExpiration, CardExpirationMonth, CardExpirationYear, CardSecurityCode}; use common_utils::date_time; use masking::PeekInterface; #[test] fn test_card_security_code() { // no panic let valid_card_security_cod...
crates/cards/tests/basic.rs
cards
full_file
872
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Helcim {}
crates/hyperswitch_connectors/src/connectors/helcim.rs
hyperswitch_connectors
impl_block
11
rust
null
Helcim
api::RefundSync for
impl api::RefundSync for for Helcim
null
null
null
null
null
null
null
null
impl<T, A, E, D> EventBuilder<T, A, E, D> where A: MessagingInterface<MessageClass = T>, E: Event<EventType = T, Data = D>, { /// Add metadata to the event. pub fn with<F: ErasedMaskSerialize, G: EventInfo<Data = F> + 'static>( mut self, info: G, ) -> Self { info.data() ...
crates/events/src/lib.rs
events
impl_block
280
rust
null
EventBuilder
null
impl EventBuilder
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Getnet {}
crates/hyperswitch_connectors/src/connectors/getnet.rs
hyperswitch_connectors
impl_block
9
rust
null
Getnet
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Getnet
null
null
null
null
null
null
null
null
impl api::RefundSync for Payu {}
crates/hyperswitch_connectors/src/connectors/payu.rs
hyperswitch_connectors
impl_block
10
rust
null
Payu
api::RefundSync for
impl api::RefundSync for for Payu
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Juspaythreedsserver {}
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
hyperswitch_connectors
impl_block
14
rust
null
Juspaythreedsserver
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Juspaythreedsserver
null
null
null
null
null
null
null
null
pub async fn add_access_token< F: Clone + 'static, Req: Debug + Clone + 'static, Res: Debug + Clone + 'static, >( state: &SessionState, connector: &api_types::ConnectorData, merchant_context: &domain::MerchantContext, router_data: &types::RouterData<F, Req, Res>, creds_identifier: Option...
crates/router/src/core/payments/access_token.rs
router
function_signature
1,096
rust
null
null
null
null
add_access_token
null
null
null
null
null
null
null
impl<const T: u8> PaymentCapture for DummyConnector<T> {}
crates/hyperswitch_connectors/src/connectors/dummyconnector.rs
hyperswitch_connectors
impl_block
15
rust
null
DummyConnector
PaymentCapture for
impl PaymentCapture for for DummyConnector
null
null
null
null
null
null
null
null
pub struct UserFromToken { pub user_id: String, pub merchant_id: id_type::MerchantId, pub role_id: String, pub org_id: id_type::OrganizationId, pub profile_id: id_type::ProfileId, pub tenant_id: Option<id_type::TenantId>, }
crates/router/src/services/authentication.rs
router
struct_definition
67
rust
UserFromToken
null
null
null
null
null
null
null
null
null
null
null
pub async fn trim_from_stream( &self, stream_name: &str, minimum_entry_id: &str, ) -> errors::DrainerResult<usize> { let trim_kind = redis::StreamCapKind::MinID; let trim_type = redis::StreamCapTrim::Exact; let trim_id = minimum_entry_id; let (trim_result, exe...
crates/drainer/src/stream.rs
drainer
function_signature
281
rust
null
null
null
null
trim_from_stream
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.DynamicRoutingAlgorithm { "oneOf": [ { "$ref": "#/components/schemas/EliminationRoutingConfig" }, { "$ref": "#/components/schemas/SuccessBasedRoutingConfig" }, { "$ref": "#/components/schemas/ContractBasedRoutingConfig" } ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
79
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "DynamicRoutingAlgorithm" ]
null
null
null
null
File: crates/router/tests/connectors/payeezy.rs use std::str::FromStr; use cards::CardNumber; use hyperswitch_domain_models::address::{Address, AddressDetails}; use masking::Secret; use router::{ core::errors, types::{self, storage::enums, PaymentsAuthorizeData}, }; use crate::{ connector_auth, utils...
crates/router/tests/connectors/payeezy.rs
router
full_file
3,890
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Shift4WebhookObjectData { pub id: String, pub refunds: Option<Vec<RefundIdObject>>, }
crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
Shift4WebhookObjectData
null
null
null
null
null
null
null
null
null
null
null
pub struct UpdateContractRequestEventRequest { pub id: String, pub params: String, pub labels_information: Vec<ContractLabelInformationEventRequest>, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
34
rust
UpdateContractRequestEventRequest
null
null
null
null
null
null
null
null
null
null
null
impl GetPaymentMethodType for OpenBankingData { fn get_payment_method_type(&self) -> api_enums::PaymentMethodType { match self { Self::OpenBankingPIS {} => api_enums::PaymentMethodType::OpenBankingPIS, } } }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
impl_block
62
rust
null
OpenBankingData
GetPaymentMethodType for
impl GetPaymentMethodType for for OpenBankingData
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Nordea {}
crates/hyperswitch_connectors/src/connectors/nordea.rs
hyperswitch_connectors
impl_block
9
rust
null
Nordea
api::PaymentVoid for
impl api::PaymentVoid for for Nordea
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/nordea.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub fn get_error_message(response: PaystackErrorResponse) -> String { if let Some(serde_json::Value::Object(err_map)) = response.data { err_map.get("message").map(|msg| msg.clone().to_string()) } else { None } .unwrap_or(response.message) }
crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs
hyperswitch_connectors
function_signature
66
rust
null
null
null
null
get_error_message
null
null
null
null
null
null
null
/// - `I`: The type that can be constructed from the retrieved encoded data. pub async fn fetch<En, I>(&self, data: String) -> error_stack::Result<I, HashiCorpError> where for<'a> En: Engine< ReturnType<'a, String> = Pin< Box< dyn Future<Output...
crates/external_services/src/hashicorp_vault/core.rs
external_services
function_signature
155
rust
null
null
null
null
fetch
null
null
null
null
null
null
null
File: crates/router/src/analytics.rs Public functions: 63 Public structs: 1 pub use analytics::*; pub mod routes { use std::{ collections::{HashMap, HashSet}, sync::Arc, }; use actix_web::{web, Responder, Scope}; use analytics::{ api_event::api_events_core, connector_events:...
crates/router/src/analytics.rs#chunk0
router
chunk
8,183
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_masked_bank_details( pm: &domain::PaymentMethod, ) -> errors::RouterResult<Option<MaskedBankDetails>> { #[cfg(feature = "v1")] let payment_method_data = pm .payment_method_data .clone() .map(|x| x.into_inner().expose()) .map( |v| -> Result<Payment...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
286
rust
null
null
null
null
get_masked_bank_details
null
null
null
null
null
null
null
pub struct PaypalSdkData { pub client_id: Option<String>, }
crates/connector_configs/src/common_config.rs
connector_configs
struct_definition
15
rust
PaypalSdkData
null
null
null
null
null
null
null
null
null
null
null
pub struct FacilitapayVoidResponse { pub data: VoidData, }
crates/hyperswitch_connectors/src/connectors/facilitapay/responses.rs
hyperswitch_connectors
struct_definition
17
rust
FacilitapayVoidResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Chargebee {}
crates/hyperswitch_connectors/src/connectors/chargebee.rs
hyperswitch_connectors
impl_block
9
rust
null
Chargebee
api::PaymentSession for
impl api::PaymentSession for for Chargebee
null
null
null
null
null
null
null
null
pub fn get_refund_update_for_refund_response_data( router_data: RouterData<api::Execute, types::RefundsData, types::RefundsResponseData>, connector: &api::ConnectorData, refund_response_data: types::RefundsResponseData, storage_scheme: &enums::MerchantStorageScheme, merchant_context: &domain::Mercha...
crates/router/src/core/refunds_v2.rs
router
function_signature
365
rust
null
null
null
null
get_refund_update_for_refund_response_data
null
null
null
null
null
null
null
pub fn f64_histogram_buckets() -> Vec<f64> { let mut init = 0.01; let mut buckets: [f64; 15] = [0.0; 15]; for bucket in &mut buckets { init *= 2.0; *bucket = init; } Vec::from(buckets) }
crates/router_env/src/metrics.rs
router_env
function_signature
83
rust
null
null
null
null
f64_histogram_buckets
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/paytm.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, String...
crates/hyperswitch_connectors/src/connectors/paytm.rs
hyperswitch_connectors
full_file
4,855
null
null
null
null
null
null
null
null
null
null
null
null
null
impl MerchantAccountCreate { pub fn get_merchant_reference_id(&self) -> id_type::MerchantId { self.merchant_id.clone() } pub fn get_payment_response_hash_key(&self) -> Option<String> { self.payment_response_hash_key.clone().or(Some( common_utils::crypto::generate_cryptographical...
crates/api_models/src/admin.rs
api_models
impl_block
455
rust
null
MerchantAccountCreate
null
impl MerchantAccountCreate
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RoutingKind { "oneOf": [ { "$ref": "#/components/schemas/RoutingDictionary" }, { "type": "array", "items": { "$ref": "#/components/schemas/RoutingDictionaryRecord" } } ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
71
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RoutingKind" ]
null
null
null
null
impl api::ConnectorAccessToken for Checkout {}
crates/hyperswitch_connectors/src/connectors/checkout.rs
hyperswitch_connectors
impl_block
8
rust
null
Checkout
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Checkout
null
null
null
null
null
null
null
null
pub struct CurrentBlockThreshold { pub duration_in_mins: Option<u64>, pub max_total_count: Option<u64>, }
crates/api_models/src/routing.rs
api_models
struct_definition
30
rust
CurrentBlockThreshold
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Jpmorgan {}
crates/hyperswitch_connectors/src/connectors/jpmorgan.rs
hyperswitch_connectors
impl_block
11
rust
null
Jpmorgan
api::RefundExecute for
impl api::RefundExecute for for Jpmorgan
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/configs.rs Public functions: 4 use diesel::{associations::HasTable, ExpressionMethods}; use super::generics; use crate::{ configs::{Config, ConfigNew, ConfigUpdate, ConfigUpdateInternal}, errors, schema::configs::dsl, PgPooledConn, StorageResult, }; impl ConfigNe...
crates/diesel_models/src/query/configs.rs
diesel_models
full_file
398
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct SepaDetails { iban: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs
hyperswitch_connectors
struct_definition
14
rust
SepaDetails
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_or_create_key_store(&self, state: &SessionState) -> UserResult<UserKeyStore> { let master_key = state.store.get_master_key(); let key_manager_state = &state.into(); let key_store_result = state .global_store .get_user_key_store_by_user_id( ...
crates/router/src/types/domain/user.rs
router
function_signature
471
rust
null
null
null
null
get_or_create_key_store
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Paybox {}
crates/hyperswitch_connectors/src/connectors/paybox.rs
hyperswitch_connectors
impl_block
9
rust
null
Paybox
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Paybox
null
null
null
null
null
null
null
null
pub fn get_billing_merchant_connector_account_id( &self, ) -> Option<id_type::MerchantConnectorAccountId> { self.feature_metadata.as_ref().and_then(|feature_metadata| { feature_metadata.get_billing_merchant_connector_account_id() }) }
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
function_signature
56
rust
null
null
null
null
get_billing_merchant_connector_account_id
null
null
null
null
null
null
null
pub struct GetVaultFingerprint;
crates/router/src/types/payment_methods.rs
router
struct_definition
7
rust
GetVaultFingerprint
null
null
null
null
null
null
null
null
null
null
null
pub struct SubmitSinglePaymentResponse { submit_single_payment_result: SubmitSinglePaymentResult, }
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
SubmitSinglePaymentResponse
null
null
null
null
null
null
null
null
null
null
null
/// Create attributes to associate with a metric from key-value pairs. #[macro_export] macro_rules! metric_attributes { ($(($key:expr, $value:expr $(,)?)),+ $(,)?) => { &[$($crate::opentelemetry::KeyValue::new($key, $value)),+] }; }
crates/router_env/src/metrics.rs
router_env
macro
66
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
pub struct MerchantAccount { id: common_utils::id_type::MerchantId, pub merchant_name: OptionalEncryptableName, pub merchant_details: OptionalEncryptableValue, pub publishable_key: String, pub storage_scheme: MerchantStorageScheme, pub metadata: Option<pii::SecretSerdeValue>, pub created_at:...
crates/hyperswitch_domain_models/src/merchant_account.rs
hyperswitch_domain_models
struct_definition
164
rust
MerchantAccount
null
null
null
null
null
null
null
null
null
null
null
pub struct CustombillingRefundRequest { pub amount: StringMinorUnit, }
crates/hyperswitch_connectors/src/connectors/custombilling/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
CustombillingRefundRequest
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.XenditMultipleSplitResponse { "type": "object", "description": "Fee information charged on the payment being collected via xendit", "required": [ "split_rule_id", "name", "description", "routes" ], "properties": { "split_rule_id": { "type": "str...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
278
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "XenditMultipleSplitResponse" ]
null
null
null
null
File: crates/analytics/src/connector_events/core.rs Public functions: 1 use api_models::analytics::connector_events::ConnectorEventsRequest; use common_utils::errors::ReportSwitchExt; use error_stack::ResultExt; use super::events::{get_connector_events, ConnectorEventsResult}; use crate::{errors::AnalyticsResult, ty...
crates/analytics/src/connector_events/core.rs
analytics
full_file
241
null
null
null
null
null
null
null
null
null
null
null
null
null