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
/// Verifies that the client configuration is usable pub fn validate(&self) -> Result<(), InvalidCrmConfig> { match self { Self::HubspotProxy { hubspot_proxy } => hubspot_proxy.validate(), Self::NoCrm => Ok(()), } }
crates/external_services/src/crm.rs
external_services
function_signature
61
rust
null
null
null
null
validate
null
null
null
null
null
null
null
File: crates/analytics/src/auth_events/metrics/challenge_flow_count.rs use std::collections::HashSet; use api_models::analytics::{ auth_events::{AuthEventDimensions, AuthEventFilters, AuthEventMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_enums::DecoupledAuthenticationType; use common_utils:...
crates/analytics/src/auth_events/metrics/challenge_flow_count.rs
analytics
full_file
1,066
null
null
null
null
null
null
null
null
null
null
null
null
null
impl OpenSearchAuth { pub fn validate(&self) -> Result<(), ApplicationError> { use common_utils::{ext_traits::ConfigExt, fp_utils::when}; match self { Self::Basic { username, password } => { when(username.is_default_or_empty(), || { Err(ApplicationErr...
crates/analytics/src/opensearch.rs
analytics
impl_block
191
rust
null
OpenSearchAuth
null
impl OpenSearchAuth
null
null
null
null
null
null
null
null
pub struct PaymentConfirmData<F> where F: Clone, { pub flow: PhantomData<F>, pub payment_intent: PaymentIntent, pub payment_attempt: PaymentAttempt, pub payment_method_data: Option<payment_method_data::PaymentMethodData>, pub payment_address: payment_address::PaymentAddress, pub mandate_data...
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
struct_definition
135
rust
PaymentConfirmData
null
null
null
null
null
null
null
null
null
null
null
pub fn from_storage(refund: &'a Refund) -> Self { Self { internal_reference_id: &refund.internal_reference_id, refund_id: &refund.refund_id, payment_id: &refund.payment_id, merchant_id: &refund.merchant_id, connector_transaction_id: refund.get_connecto...
crates/router/src/services/kafka/refund.rs
router
function_signature
272
rust
null
null
null
null
from_storage
null
null
null
null
null
null
null
File: crates/router/tests/connectors/globalpay.rs use std::str::FromStr; use hyperswitch_domain_models::address::{Address, AddressDetails}; use masking::Secret; use router::types::{self, api, domain, storage::enums, AccessToken, ConnectorAuthType}; use serde_json::json; use crate::{ connector_auth, utils::{s...
crates/router/tests/connectors/globalpay.rs
router
full_file
3,001
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct OrganizationId { pub organization_id: id_type::OrganizationId, }
crates/api_models/src/organization.rs
api_models
struct_definition
17
rust
OrganizationId
null
null
null
null
null
null
null
null
null
null
null
File: crates/common_types/src/three_ds_decision_rule_engine.rs Public functions: 2 Public structs: 1 use common_utils::impl_to_sql_from_sql_json; use diesel::{sql_types::Jsonb, AsExpression, FromSqlRow}; use euclid::frontend::dir::{DirKeyKind, EuclidDirFilter}; use serde::{Deserialize, Serialize}; use utoipa::ToSche...
crates/common_types/src/three_ds_decision_rule_engine.rs
common_types
full_file
583
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_dispute_evidence_vec( state: &SessionState, merchant_context: domain::MerchantContext, dispute_evidence: DisputeEvidence, ) -> CustomResult<Vec<api_models::disputes::DisputeEvidenceBlock>, errors::ApiErrorResponse> { let mut dispute_evidence_blocks: Vec<api_models::disputes::DisputeEvid...
crates/router/src/core/disputes/transformers.rs
router
function_signature
746
rust
null
null
null
null
get_dispute_evidence_vec
null
null
null
null
null
null
null
pub async fn transfer_key_to_key_manager( state: &KeyManagerState, request_body: EncryptionTransferRequest, ) -> errors::CustomResult<DataKeyCreateResponse, errors::KeyManagerError> { call_encryption_service(state, Method::POST, "key/transfer", request_body) .await .change_context(errors::Ke...
crates/common_utils/src/keymanager.rs
common_utils
function_signature
81
rust
null
null
null
null
transfer_key_to_key_manager
null
null
null
null
null
null
null
impl Responder { Box::pin(oss_api::server_wrap( Flow::RoutingUpdateDefaultConfig, state, &req, json_payload.into_inner(), |state, auth: auth::AuthenticationData, updated_config, _| { let merchant_context = domain::MerchantContext::NormalMerchant(Box::new( ...
crates/router/src/routes/routing.rs
router
impl_block
186
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
File: crates/router/src/core/relay/utils.rs Public functions: 1 use std::str::FromStr; use common_utils::{ext_traits::OptionExt, id_type}; use error_stack::ResultExt; use hyperswitch_domain_models::{router_data::ErrorResponse, types}; use crate::{ core::payments, db::{ domain, errors::{self,...
crates/router/src/core/relay/utils.rs
router
full_file
1,250
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Get higher lineages from the current lineage pub fn get_same_and_higher_lineages(self) -> Vec<Self> { match &self { Self::Tenant { .. } => vec![self], Self::Organization { tenant_id, .. } => vec![ Self::Tenant { tenant_id: tenant_id.clone(), ...
crates/common_utils/src/types/user/theme.rs
common_utils
function_signature
240
rust
null
null
null
null
get_same_and_higher_lineages
null
null
null
null
null
null
null
File: crates/common_utils/src/id_type/global_id/payment.rs Public functions: 6 use common_enums::enums; use error_stack::ResultExt; use crate::errors; crate::global_id_type!( GlobalPaymentId, "A global id that can be used to identify a payment. The format will be `<cell_id>_<entity_prefix>_<time_ordered_id...
crates/common_utils/src/id_type/global_id/payment.rs
common_utils
full_file
786
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn rust_locker_migration( _state: SessionState, _merchant_id: &id_type::MerchantId, ) -> CustomResult<services::ApplicationResponse<MigrateCardResponse>, errors::ApiErrorResponse> { todo!() }
crates/router/src/core/locker_migration.rs
router
function_signature
52
rust
null
null
null
null
rust_locker_migration
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs Public structs: 17 use common_utils::types::StringMinorUnit; use masking::Secret; use serde::{Deserialize, Serialize}; #[derive(Debug, Serialize)] pub struct GlobalPayRouterData<T> { pub amount: StringMinorUnit, pub router_data: T, } #...
crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs
hyperswitch_connectors
full_file
2,484
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Powertranz {}
crates/hyperswitch_connectors/src/connectors/powertranz.rs
hyperswitch_connectors
impl_block
10
rust
null
Powertranz
api::PaymentSession for
impl api::PaymentSession for for Powertranz
null
null
null
null
null
null
null
null
impl ConvertRaw for TransientDecryptDataRequest { type Output = DecryptDataRequest; fn convert_raw(self) -> Result<Self::Output, errors::KeyManagerClientError> { let data = match String::from_utf8(self.data.peek().clone()) { Ok(data) => data, Err(_) => { let data ...
crates/common_utils/src/keymanager.rs
common_utils
impl_block
124
rust
null
TransientDecryptDataRequest
ConvertRaw for
impl ConvertRaw for for TransientDecryptDataRequest
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Dwolla {}
crates/hyperswitch_connectors/src/connectors/dwolla.rs
hyperswitch_connectors
impl_block
9
rust
null
Dwolla
api::PaymentCapture for
impl api::PaymentCapture for for Dwolla
null
null
null
null
null
null
null
null
pub struct CaptureOptions { capture_sequence_number: u32, total_capture_count: u32, is_final: Option<bool>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
CaptureOptions
null
null
null
null
null
null
null
null
null
null
null
impl api::PayoutCreate for Adyen {}
crates/hyperswitch_connectors/src/connectors/adyen.rs
hyperswitch_connectors
impl_block
10
rust
null
Adyen
api::PayoutCreate for
impl api::PayoutCreate for for Adyen
null
null
null
null
null
null
null
null
VaultFetchAction::FetchCardDetailsFromLocker } } } } } } #[cfg(feature = "v1")] #[allow(clippy::too_many_arguments)] pub async fn retrieve_payment_method_data_with_permanent_token( state: &SessionState, locker_id: &str, _pa...
crates/router/src/core/payments/helpers.rs#chunk2
router
chunk
8,189
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/euclid/src/backend/vir_interpreter/types.rs Public functions: 2 Public structs: 1 use rustc_hash::{FxHashMap, FxHashSet}; use crate::{ backend::inputs::BackendInput, dssa, types::{self, EuclidKey, EuclidValue, MetadataValue, NumValueRefinement, StrValue}, }; #[derive(Debug, Clone, serde::S...
crates/euclid/src/backend/vir_interpreter/types.rs
euclid
full_file
1,321
null
null
null
null
null
null
null
null
null
null
null
null
null
impl NuveiPaymentsGenericResponse for PostCaptureVoid { fn is_post_capture_void() -> bool { true } }
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
impl_block
28
rust
null
PostCaptureVoid
NuveiPaymentsGenericResponse for
impl NuveiPaymentsGenericResponse for for PostCaptureVoid
null
null
null
null
null
null
null
null
pub struct AlipayInfo {}
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
struct_definition
6
rust
AlipayInfo
null
null
null
null
null
null
null
null
null
null
null
pub struct InespayRefundWebhookData { pub refund_id: String, pub simple_payin_id: String, pub cod_status: InespayRSyncStatus, pub description: String, pub amount: MinorUnit, pub reference: String, }
crates/hyperswitch_connectors/src/connectors/inespay/transformers.rs
hyperswitch_connectors
struct_definition
59
rust
InespayRefundWebhookData
null
null
null
null
null
null
null
null
null
null
null
pub struct BankOfAmericaCaptureRequest { order_information: OrderInformation, client_reference_information: ClientReferenceInformation, #[serde(skip_serializing_if = "Option::is_none")] merchant_defined_information: Option<Vec<MerchantDefinedInformation>>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
BankOfAmericaCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn files_delete_core( state: SessionState, merchant_context: domain::MerchantContext, req: api::FileId, ) -> RouterResponse<serde_json::Value> { helpers::delete_file_using_file_id(&state, req.file_id.clone(), &merchant_context).await?; state .store .as_ref() .delete...
crates/router/src/core/files.rs
router
function_signature
143
rust
null
null
null
null
files_delete_core
null
null
null
null
null
null
null
pub struct DeutschebankDirectDebitRequest { amount_total: DeutschebankAmount, means_of_payment: DeutschebankMeansOfPayment, mandate: DeutschebankMandate, }
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
DeutschebankDirectDebitRequest
null
null
null
null
null
null
null
null
null
null
null
- **scheduler:** Join frequency and count in `RetryMapping` ([#4313](https://github.com/juspay/hyperswitch/pull/4313)) ([`3335195`](https://github.com/juspay/hyperswitch/commit/33351953baf32be96f6ec11982c05f2bb1edb989)) **Full Changelog:** [`2024.04.26.0...2024.04.29.0`](https://github.com/juspay/hyperswitch/compare/2...
CHANGELOG.md#chunk34
null
doc_chunk
8,192
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/secrets_interface.rs //! Secrets management interface pub mod secret_handler; pub mod secret_state; use common_utils::errors::CustomResult; use masking::Secret; /// Trait defining the interface for managing application secrets #[async_trait::async_trait] pub trait SecretMana...
crates/hyperswitch_interfaces/src/secrets_interface.rs
hyperswitch_interfaces
full_file
230
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ProphetpayRouterData<T> { pub amount: f64, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
ProphetpayRouterData
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/network_tokenization.rs #[cfg(feature = "v1")] use cards::CardNumber; #[cfg(feature = "v2")] use cards::NetworkToken; #[cfg(feature = "v1")] pub type NetworkTokenNumber = CardNumber; #[cfg(feature = "v2")] pub type NetworkTokenNumber = NetworkToken;
crates/hyperswitch_domain_models/src/network_tokenization.rs
hyperswitch_domain_models
full_file
77
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BankOfAmericaTokenInformation { payment_instrument: Option<BankOfAmericaPaymentInstrument>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
BankOfAmericaTokenInformation
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/disputes") .app_data(web::Data::new(state)) .service(web::resource("/list").route(web::get().to(disputes::retrieve_disputes_list))) .service( web::resource("/profile/list") .route(web::...
crates/router/src/routes/app.rs
router
function_signature
413
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub struct FacilitapayRefundResponse { pub data: TransactionData, }
crates/hyperswitch_connectors/src/connectors/facilitapay/responses.rs
hyperswitch_connectors
struct_definition
18
rust
FacilitapayRefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct AddressDetails { pub city: Option<String>, pub country: Option<common_enums::CountryAlpha2>, pub line1: Option<Secret<String>>, pub line2: Option<Secret<String>>, pub line3: Option<Secret<String>>, pub zip: Option<Secret<String>>, pub state: Option<Secret<String>>, pub first_n...
crates/hyperswitch_domain_models/src/address.rs
hyperswitch_domain_models
struct_definition
105
rust
AddressDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct FiservResponseOrders { intent: FiservIntent, order_id: String, order_status: FiservOrderStatus, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
FiservResponseOrders
null
null
null
null
null
null
null
null
null
null
null
pub async fn generate_network_token( state: &routes::SessionState, payload_bytes: &[u8], customer_id: id_type::GlobalCustomerId, tokenization_service: &settings::NetworkTokenizationService, ) -> CustomResult< (pm_types::GenerateNetworkTokenResponsePayload, String), errors::NetworkTokenizationErr...
crates/router/src/core/payment_methods/network_tokenization.rs
router
function_signature
842
rust
null
null
null
null
generate_network_token
null
null
null
null
null
null
null
impl api::RefundSync for Cryptopay {}
crates/hyperswitch_connectors/src/connectors/cryptopay.rs
hyperswitch_connectors
impl_block
11
rust
null
Cryptopay
api::RefundSync for
impl api::RefundSync for for Cryptopay
null
null
null
null
null
null
null
null
impl UserCompanyName { pub fn new(company_name: String) -> UserResult<Self> { let company_name = company_name.trim(); let is_empty_or_whitespace = company_name.is_empty(); let is_too_long = company_name.graphemes(true).count() > consts::user::MAX_COMPANY_NAME_LENGTH; let...
crates/router/src/types/domain/user.rs
router
impl_block
164
rust
null
UserCompanyName
null
impl UserCompanyName
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Breadpay {}
crates/hyperswitch_connectors/src/connectors/breadpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Breadpay
api::PaymentVoid for
impl api::PaymentVoid for for Breadpay
null
null
null
null
null
null
null
null
File: crates/analytics/src/payments/metrics/sessionized_metrics/payment_success_count.rs use std::collections::HashSet; use api_models::analytics::{ payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use diesel_m...
crates/analytics/src/payments/metrics/sessionized_metrics/payment_success_count.rs
analytics
full_file
980
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PayoutSync for Paypal {}
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
impl_block
9
rust
null
Paypal
api::PayoutSync for
impl api::PayoutSync for for Paypal
null
null
null
null
null
null
null
null
pub async fn generate_org_refund_report( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<ReportRequest>, ) -> impl Responder { let flow = AnalyticsFlow::GenerateRefundReport; Box::pin(api::server_wrap( flow, state.clone...
crates/router/src/analytics.rs
router
function_signature
341
rust
null
null
null
null
generate_org_refund_report
null
null
null
null
null
null
null
File: crates/router/src/routes/process_tracker.rs #[cfg(feature = "v2")] pub mod revenue_recovery;
crates/router/src/routes/process_tracker.rs
router
full_file
23
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct SilverflowPaymentsResponse { pub key: String, pub merchant_acceptor_ref: MerchantAcceptorRef, pub card: CardResponse, pub amount: Amount, #[serde(rename = "type")] pub payment_type: PaymentType, pub clearing_mode: String, pub status: PaymentStatus, pub authentication: Auth...
crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
hyperswitch_connectors
struct_definition
118
rust
SilverflowPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
impl Default for Storage<'_> { fn default() -> Self { Self { values: HashMap::new(), } } }
crates/router_env/src/logger/storage.rs
router_env
impl_block
29
rust
null
Storage
Default for
impl Default for for Storage
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/payments/payments--retrieve.mdx # Type: Doc File --- openapi: get /payments/{payment_id} ---
api-reference/v1/payments/payments--retrieve.mdx
null
doc_file
33
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct DigitalvirgoPaymentsResponse { state: DigitalvirgoPaymentStatus, transaction_id: String, consent: Option<DigitalvirgoConsentStatus>, }
crates/hyperswitch_connectors/src/connectors/digitalvirgo/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
DigitalvirgoPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct CtpServiceDetails { pub service_session_ids: Option<ServiceSessionIds>, pub merchant_details: Option<MerchantDetails>, }
crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
CtpServiceDetails
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Authipay {}
crates/hyperswitch_connectors/src/connectors/authipay.rs
hyperswitch_connectors
impl_block
9
rust
null
Authipay
api::Refund for
impl api::Refund for for Authipay
null
null
null
null
null
null
null
null
pub struct PaymentAccountFeatureInformation { health_card: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
PaymentAccountFeatureInformation
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MerchantProductType { "type": "string", "enum": [ "orchestration", "vault", "recon", "recovery", "cost_observability", "dynamic_routing" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
61
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantProductType" ]
null
null
null
null
**Full Changelog:** [`2024.01.30.1...2024.01.31.0`](https://github.com/juspay/hyperswitch/compare/2024.01.30.1...2024.01.31.0) - - - ## 2024.01.30.1 ### Features - **config:** Add iDEAL and Sofort Env Configs ([#3492](https://github.com/juspay/hyperswitch/pull/3492)) ([`46c1822`](https://github.com/juspay/hyperswi...
CHANGELOG.md#chunk41
null
doc_chunk
8,189
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Stax {}
crates/hyperswitch_connectors/src/connectors/stax.rs
hyperswitch_connectors
impl_block
9
rust
null
Stax
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Stax
null
null
null
null
null
null
null
null
impl api::RefundExecute for Paypal {}
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
impl_block
9
rust
null
Paypal
api::RefundExecute for
impl api::RefundExecute for for Paypal
null
null
null
null
null
null
null
null
pub struct PaymentMethodTypeCapRes { pub card: Option<CardCapRes>, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
PaymentMethodTypeCapRes
null
null
null
null
null
null
null
null
null
null
null
File: crates/payment_methods/src/configs/payment_connector_required_fields.rs Public functions: 3 use std::collections::{HashMap, HashSet}; use api_models::{ enums::{self, Connector, FieldType}, payment_methods::RequiredFieldInfo, }; use crate::configs::settings::{ BankRedirectConfig, ConnectorFields, M...
crates/payment_methods/src/configs/payment_connector_required_fields.rs#chunk0
payment_methods
chunk
8,185
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn seed_knowledge_graph(mcas: JsValue) -> JsResult { let mcas: Vec<api_models::admin::MerchantConnectorResponse> = serde_wasm_bindgen::from_value(mcas)?; let connectors: Vec<ast::ConnectorChoice> = mcas .iter() .map(|mca| { Ok::<_, strum::ParseError>(ast::ConnectorChoice ...
crates/euclid_wasm/src/lib.rs
euclid_wasm
function_signature
313
rust
null
null
null
null
seed_knowledge_graph
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MerchantRoutingAlgorithm { "type": "object", "description": "Routing Algorithm specific to merchants", "required": [ "id", "profile_id", "name", "description", "algorithm", "created_at", "modified_at", "algorithm_for" ], "properties": { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
230
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantRoutingAlgorithm" ]
null
null
null
null
pub async fn profile_update() {}
crates/openapi/src/routes/profile.rs
openapi
function_signature
7
rust
null
null
null
null
profile_update
null
null
null
null
null
null
null
File: crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs use api_models::routing::{ CurrentBlockThreshold, RoutableConnectorChoice, RoutableConnectorChoiceWithStatus, SuccessBasedRoutingConfig, SuccessBasedRoutingConfigBody, SuccessRateSpecificityLevel, }; use common_utils::{ext_tr...
crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs
external_services
full_file
2,325
null
null
null
null
null
null
null
null
null
null
null
null
null
utoipa::ToSchema, Copy, )] #[router_derive::diesel_enum(storage_type = "text")] #[serde(rename_all = "snake_case")] #[strum(serialize_all = "snake_case")] pub enum DecoupledAuthenticationType { #[default] Challenge, Frictionless, } #[derive( Clone, Debug, Eq, Default, Hash, ...
crates/common_enums/src/enums.rs#chunk7
common_enums
chunk
7,453
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn new(gateway_name: String, gateway_id: Option<String>) -> Self { Self { gateway_name, gateway_id, } }
crates/router/src/core/payments/routing/utils.rs
router
function_signature
33
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Trustpayments { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplem...
crates/hyperswitch_connectors/src/connectors/trustpayments.rs
hyperswitch_connectors
impl_block
210
rust
null
Trustpayments
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Trustpayments
null
null
null
null
null
null
null
null
/// Panics if `json_payload` array does not contain one `GetAuthEventMetricRequest` element. pub async fn get_profile_auth_event_metrics( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<[GetAuthEventMetricRequest; 1]>, ) -> impl Responder { // saf...
crates/router/src/analytics.rs
router
function_signature
353
rust
null
null
null
null
get_profile_auth_event_metrics
null
null
null
null
null
null
null
File: crates/analytics/src/active_payments/metrics.rs Public structs: 1 use std::collections::HashSet; use api_models::analytics::{ active_payments::{ActivePaymentsMetrics, ActivePaymentsMetricsBucketIdentifier}, Granularity, TimeRange, }; use time::PrimitiveDateTime; use crate::{ query::{Aggregate, Gro...
crates/analytics/src/active_payments/metrics.rs
analytics
full_file
454
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct StandardResponse { pub response: Response, pub responsetext: String, pub authcode: Option<String>, pub transactionid: String, pub avsresponse: Option<String>, pub cvvresponse: Option<String>, pub orderid: String, pub response_code: String, pub customer_vault_id: Option<Sec...
crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
hyperswitch_connectors
struct_definition
80
rust
StandardResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn toggle_extended_card_info( state: web::Data<AppState>, req: HttpRequest, path: web::Path<( common_utils::id_type::MerchantId, common_utils::id_type::ProfileId, )
crates/router/src/routes/profiles.rs
router
function_signature
52
rust
null
null
null
null
toggle_extended_card_info
null
null
null
null
null
null
null
impl GenericLink { pub async fn find_generic_link_by_link_id( conn: &PgPooledConn, link_id: &str, ) -> StorageResult<GenericLinkState> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::link_id.eq(link_id.to_owned()), ) .aw...
crates/diesel_models/src/query/generic_link.rs
diesel_models
impl_block
391
rust
null
GenericLink
null
impl GenericLink
null
null
null
null
null
null
null
null
pub async fn list_de_euclid_active_routing_algorithm( state: &SessionState, created_by: String, ) -> RoutingResult<Vec<api_routing::RoutingDictionaryRecord>> { logger::debug!("decision_engine_euclid: list api call for euclid active routing algorithm"); let response: Vec<RoutingAlgorithmRecord> = EuclidA...
crates/router/src/core/payments/routing/utils.rs
router
function_signature
194
rust
null
null
null
null
list_de_euclid_active_routing_algorithm
null
null
null
null
null
null
null
impl Payment for Riskified {}
crates/hyperswitch_connectors/src/connectors/riskified.rs
hyperswitch_connectors
impl_block
6
rust
null
Riskified
Payment for
impl Payment for for Riskified
null
null
null
null
null
null
null
null
pub fn get_refund_id_as_string(&self) -> String { self.id.get_string_repr().to_owned() }
crates/api_models/src/refunds.rs
api_models
function_signature
26
rust
null
null
null
null
get_refund_id_as_string
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<User> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/user.rs
diesel_models
function_signature
33
rust
null
null
null
null
insert
null
null
null
null
null
null
null
pub fn get_payment_method_type(&self) -> Option<api_enums::PaymentMethodType> { Some(self.payment_method_type) }
crates/api_models/src/payment_methods.rs
api_models
function_signature
30
rust
null
null
null
null
get_payment_method_type
null
null
null
null
null
null
null
pub fn get_order_error_response( &self, res: Response, event_builder: Option<&mut ConnectorEvent>, ) -> CustomResult<ErrorResponse, errors::ConnectorError> { //Handled error response separately for Orders as the end point is different for Orders - (Authorize) and Payments - (Capture,...
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
function_signature
489
rust
null
null
null
null
get_order_error_response
null
null
null
null
null
null
null
impl super::KafkaMessage for KafkaPaymentAttemptEvent<'_> { #[cfg(feature = "v1")] fn key(&self) -> String { format!( "{}_{}_{}", self.merchant_id.get_string_repr(), self.payment_id.get_string_repr(), self.attempt_id ) } #[cfg(feature = "v2...
crates/router/src/services/kafka/payment_attempt_event.rs
router
impl_block
152
rust
null
KafkaPaymentAttemptEvent
super::KafkaMessage for
impl super::KafkaMessage for for KafkaPaymentAttemptEvent
null
null
null
null
null
null
null
null
pub async fn verify_email( state: web::Data<AppState>, http_req: HttpRequest, json_payload: web::Json<user_api::VerifyEmailRequest>, ) -> HttpResponse { let flow = Flow::VerifyEmail; Box::pin(api::server_wrap( flow.clone(), state, &http_req, json_payload.into_inner(),...
crates/router/src/routes/user.rs
router
function_signature
138
rust
null
null
null
null
verify_email
null
null
null
null
null
null
null
pub fn billing_country_to_dir_value(c: api_enums::Country) -> dir::DirValue { dir::DirValue::BillingCountry(get_dir_country_dir_value(c)) }
crates/kgraph_utils/src/transformers.rs
kgraph_utils
function_signature
37
rust
null
null
null
null
billing_country_to_dir_value
null
null
null
null
null
null
null
pub fn get_metadata(&self) -> Option<Secret<Value>> { match self { Self::MerchantConnectorAccount(merchant_connector_account) => { merchant_connector_account.metadata.to_owned() } Self::MerchantConnectorDetails(_) => None, } }
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
55
rust
null
null
null
null
get_metadata
null
null
null
null
null
null
null
impl ConnectorResponseData { pub fn with_additional_payment_method_data( additional_payment_method_data: AdditionalPaymentMethodConnectorResponse, ) -> Self { Self { additional_payment_method_data: Some(additional_payment_method_data), extended_authorization_response_data...
crates/hyperswitch_domain_models/src/router_data.rs
hyperswitch_domain_models
impl_block
157
rust
null
ConnectorResponseData
null
impl ConnectorResponseData
null
null
null
null
null
null
null
null
/// Builds the connection to the gRPC service pub async fn build_connections(config: &GrpcClientSettings) -> Option<Self> { match &config.unified_connector_service { Some(unified_connector_service_client_config) => { let uri: Uri = match unified_connector_service_client_config ...
crates/external_services/src/grpc_client/unified_connector_service.rs
external_services
function_signature
292
rust
null
null
null
null
build_connections
null
null
null
null
null
null
null
pub struct DisputeTransaction { pub seller_transaction_id: String, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
DisputeTransaction
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/auth_events/metrics/authentication_error_message.rs use std::collections::HashSet; use api_models::analytics::{ auth_events::{AuthEventDimensions, AuthEventFilters, AuthEventMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_enums::AuthenticationStatus; use common_utils...
crates/analytics/src/auth_events/metrics/authentication_error_message.rs
analytics
full_file
1,119
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_multiple_merchant_accounts( conn: &PgPooledConn, merchant_ids: Vec<common_utils::id_type::MerchantId>, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as HasTable>::Table, _, <<Self as HasTable>::Table as Table>::Primary...
crates/diesel_models/src/query/merchant_account.rs
diesel_models
function_signature
103
rust
null
null
null
null
list_multiple_merchant_accounts
null
null
null
null
null
null
null
impl api::PaymentSync for Custombilling {}
crates/hyperswitch_connectors/src/connectors/custombilling.rs
hyperswitch_connectors
impl_block
9
rust
null
Custombilling
api::PaymentSync for
impl api::PaymentSync for for Custombilling
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GpayBillingAddressFormat { "type": "string", "enum": [ "FULL", "MIN" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
38
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GpayBillingAddressFormat" ]
null
null
null
null
impl api::ConnectorAccessToken for Barclaycard {}
crates/hyperswitch_connectors/src/connectors/barclaycard.rs
hyperswitch_connectors
impl_block
10
rust
null
Barclaycard
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Barclaycard
null
null
null
null
null
null
null
null
File: crates/analytics/src/payment_intents/metrics/smart_retried_amount.rs use std::collections::HashSet; use api_models::{ analytics::{ payment_intents::{ PaymentIntentDimensions, PaymentIntentFilters, PaymentIntentMetricsBucketIdentifier, }, Granularity, TimeRange, }, ...
crates/analytics/src/payment_intents/metrics/smart_retried_amount.rs
analytics
full_file
1,031
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_all_keys() -> JsResult { let excluded_keys = [ "Connector", // 3DS Decision Rule Keys should not be included in the payument routing keys "issuer_name", "issuer_country", "customer_device_platform", "customer_device_type", "customer_device_display_s...
crates/euclid_wasm/src/lib.rs
euclid_wasm
function_signature
147
rust
null
null
null
null
get_all_keys
null
null
null
null
null
null
null
pub async fn deep_health_check( state: web::Data<app::AppState>, request: HttpRequest, ) -> impl actix_web::Responder { metrics::HEALTH_METRIC.add(1, &[]); let flow = Flow::DeepHealthCheck; Box::pin(api::server_wrap( flow, state, &request, (), |state, _: (),...
crates/router/src/routes/health.rs
router
function_signature
117
rust
null
null
null
null
deep_health_check
null
null
null
null
null
null
null
pub struct ConnectorDetailsCore { pub connector_name: String, pub profile_id: common_utils::id_type::ProfileId, }
crates/router/src/core/fraud_check/types.rs
router
struct_definition
28
rust
ConnectorDetailsCore
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_filters( pool: &AnalyticsProvider, req: GetRefundFilterRequest, auth: &AuthInfo, ) -> AnalyticsResult<RefundFiltersResponse> { let mut res = RefundFiltersResponse::default(); for dim in req.group_by_names { let values = match pool { AnalyticsProvider:...
crates/analytics/src/refunds/core.rs
analytics
function_signature
675
rust
null
null
null
null
get_filters
null
null
null
null
null
null
null
pub struct FacilitapayAuthRequest { pub user: FacilitapayCredentials, }
crates/hyperswitch_connectors/src/connectors/facilitapay/requests.rs
hyperswitch_connectors
struct_definition
20
rust
FacilitapayAuthRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/retry.rs Public functions: 13 use std::vec::IntoIter; use common_utils::{ext_traits::Encode, types::MinorUnit}; use diesel_models::enums as storage_enums; use error_stack::ResultExt; use router_env::{ logger, tracing::{self, instrument}, }; use crate::{ core::{ ...
crates/router/src/core/payments/retry.rs
router
full_file
6,154
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Santander {}
crates/hyperswitch_connectors/src/connectors/santander.rs
hyperswitch_connectors
impl_block
11
rust
null
Santander
api::MandateSetup for
impl api::MandateSetup for for Santander
null
null
null
null
null
null
null
null
pub async fn list_payments( state: SessionState, merchant_context: domain::MerchantContext, profile_id_list: Option<Vec<id_type::ProfileId>>, constraints: api::PaymentListConstraints, ) -> RouterResponse<api::PaymentListResponse> { helpers::validate_payment_list_request(&constraints)?; let merch...
crates/router/src/core/payments.rs
router
function_signature
551
rust
null
null
null
null
list_payments
null
null
null
null
null
null
null
pub struct RedsysTransaction { #[serde(rename = "Ds_SignatureVersion")] ds_signature_version: String, #[serde(rename = "Ds_MerchantParameters")] ds_merchant_parameters: Secret<String>, #[serde(rename = "Ds_Signature")] ds_signature: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
struct_definition
64
rust
RedsysTransaction
null
null
null
null
null
null
null
null
null
null
null
/// Storage model with all required capabilities for KV operations pub trait StorageModel<D: Conversion>: de::DeserializeOwned + serde::Serialize + Debug + KvStorePartition + UniqueConstraints + Sync + Send + ReverseConversion<D> { }
crates/storage_impl/src/kv_router_store.rs
storage_impl
trait_definition
63
rust
null
null
StorageModel
null
null
null
null
null
null
null
null
null