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 fn get_poll_config_key(connector: String) -> String { format!("poll_config_external_three_ds_{connector}") }
crates/router/src/types.rs
router
function_signature
27
rust
null
null
null
null
get_poll_config_key
null
null
null
null
null
null
null
pub trait AuthServiceConnector: AuthService + Send + Debug + PaymentInitiation {}
crates/pm_auth/src/types/api.rs
pm_auth
trait_definition
15
rust
null
null
AuthServiceConnector
null
null
null
null
null
null
null
null
null
pub struct CommonPaymentMethodData { #[serde(flatten)] pub payment_method_data: PaymentMethodData, pub entry_mode: PaymentMethodEntryMode, }
crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs
hyperswitch_connectors
struct_definition
34
rust
CommonPaymentMethodData
null
null
null
null
null
null
null
null
null
null
null
pub struct VaultConnectorFlowData { pub merchant_id: common_utils::id_type::MerchantId, }
crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs
hyperswitch_domain_models
struct_definition
22
rust
VaultConnectorFlowData
null
null
null
null
null
null
null
null
null
null
null
impl Capturable for PaymentsPostSessionTokensData {}
crates/router/src/types.rs
router
impl_block
10
rust
null
PaymentsPostSessionTokensData
Capturable for
impl Capturable for for PaymentsPostSessionTokensData
null
null
null
null
null
null
null
null
impl Responder { let flow: Flow = Flow::FeatureMatrix; let payload = json_payload .map(|json_request| json_request.into_inner()) .unwrap_or_else(|| payment_types::FeatureMatrixRequest { connectors: None }); Box::pin(api::server_wrap( flow, state, &req, payloa...
crates/router/src/routes/feature_matrix.rs
router
impl_block
110
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/tokenio.rs use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct TokenioTest; im...
crates/router/tests/connectors/tokenio.rs
router
full_file
2,924
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_session_state<E, F>( self: Arc<Self>, tenant: &id_type::TenantId, locale: Option<String>, err: F, ) -> Result<SessionState, E> where F: FnOnce() -> E + Copy, { let tenant_conf = self.conf.multitenancy.get_tenant(tenant).ok_or_else(err)?; let...
crates/router/src/routes/app.rs
router
function_signature
357
rust
null
null
null
null
get_session_state
null
null
null
null
null
null
null
pub struct SenderInformation { payment_information: Option<PaymentInformationResponse>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
SenderInformation
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Fiservemea {}
crates/hyperswitch_connectors/src/connectors/fiservemea.rs
hyperswitch_connectors
impl_block
12
rust
null
Fiservemea
api::PaymentSession for
impl api::PaymentSession for for Fiservemea
null
null
null
null
null
null
null
null
} } } impl TryFrom<( &WellsfargoRouterData<&PaymentsAuthorizeRouterData>, BankDebitData, )> for WellsfargoPaymentsRequest { type Error = error_stack::Report<errors::ConnectorError>; fn try_from( (item, bank_debit_data): ( &WellsfargoRouterData<&PaymentsAu...
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs#chunk1
hyperswitch_connectors
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct DeutschebankThreeDSInitializeRequestCustomerData { billing_address: DeutschebankThreeDSInitializeRequestCustomerBillingData, cardholder_email: Email, }
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
DeutschebankThreeDSInitializeRequestCustomerData
null
null
null
null
null
null
null
null
null
null
null
pub struct GetPaymentFiltersRequest { pub time_range: TimeRange, #[serde(default)] pub group_by_names: Vec<PaymentDimensions>, }
crates/api_models/src/analytics.rs
api_models
struct_definition
32
rust
GetPaymentFiltersRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Moneris {}
crates/hyperswitch_connectors/src/connectors/moneris.rs
hyperswitch_connectors
impl_block
10
rust
null
Moneris
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Moneris
null
null
null
null
null
null
null
null
pub struct Amount { pub value: FloatMajorUnit, pub currency: enums::Currency, }
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
Amount
null
null
null
null
null
null
null
null
null
null
null
pub async fn fetch_payment_method_for_network_token_webhooks( state: &SessionState, merchant_account: &domain::MerchantAccount, key_store: &domain::MerchantKeyStore, payment_method_id: &str, ) -> RouterResult<domain::PaymentMethod> { let db = &*state.store; let key_manager_state = &(state).into(...
crates/router/src/core/webhooks/network_tokenization_incoming.rs
router
function_signature
154
rust
null
null
null
null
fetch_payment_method_for_network_token_webhooks
null
null
null
null
null
null
null
pub struct GocardlessPaymentsResponse { payments: PaymentResponse, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
GocardlessPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn generic_find_one<T, P, R>(conn: &PgPooledConn, predicate: P) -> StorageResult<R> where T: FilterDsl<P> + HasTable<Table = T> + Table + 'static, Filter<T, P>: LoadQuery<'static, PgConnection, R> + QueryFragment<Pg> + Send + 'static, R: Send + 'static, { generic_find_one_core::<T, _, _>(conn,...
crates/diesel_models/src/query/generics.rs
diesel_models
function_signature
108
rust
null
null
null
null
generic_find_one
null
null
null
null
null
null
null
impl ConnectorSpecifications for Paybox { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&PAYBOX_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*PAYBOX_SUPPORTED_PAYMENT_METHODS) } fn get_support...
crates/hyperswitch_connectors/src/connectors/paybox.rs
hyperswitch_connectors
impl_block
105
rust
null
Paybox
ConnectorSpecifications for
impl ConnectorSpecifications for for Paybox
null
null
null
null
null
null
null
null
impl SinglePurposeToken { pub async fn new_token( user_id: String, purpose: TokenPurpose, origin: domain::Origin, settings: &Settings, path: Vec<TokenPurpose>, tenant_id: Option<id_type::TenantId>, ) -> UserResult<String> { let exp_duration = s...
crates/router/src/services/authentication.rs
router
impl_block
150
rust
null
SinglePurposeToken
null
impl SinglePurposeToken
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/dummyconnector.rs use std::str::FromStr; use cards::CardNumber; use masking::Secret; use router::types::{self, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct DummyConnectorTest; impl ConnectorAct...
crates/router/tests/connectors/dummyconnector.rs
router
full_file
3,103
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AdyenTransferErrorResponse { pub error_code: String, #[serde(rename = "type")] pub error_type: String, pub status: u16, pub title: String, pub detail: Option<String>, pub request_id: Option<String>, pub invalid_fields: Option<Vec<AdyenInvalidField>>, }
crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs
hyperswitch_connectors
struct_definition
72
rust
AdyenTransferErrorResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ProductType { "type": "string", "enum": [ "physical", "digital", "travel", "ride", "event", "accommodation" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
52
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ProductType" ]
null
null
null
null
/// Construct a new GlobalPaymentMethodId from a string pub fn generate_from_string(value: String) -> CustomResult<Self, GlobalPaymentMethodIdError> { let id = GlobalId::from_string(value.into()) .change_context(GlobalPaymentMethodIdError::ConstructionError)?; Ok(Self(id)) }
crates/common_utils/src/id_type/global_id/payment_methods.rs
common_utils
function_signature
66
rust
null
null
null
null
generate_from_string
null
null
null
null
null
null
null
File: crates/api_models/src/relay.rs Public structs: 6 use common_utils::types::MinorUnit; use serde::{Deserialize, Serialize}; use utoipa::ToSchema; use crate::enums as api_enums; #[derive(Debug, ToSchema, Clone, Deserialize, Serialize)] pub struct RelayRequest { /// The identifier that is associated to a reso...
crates/api_models/src/relay.rs
api_models
full_file
1,035
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TrustpayAccessTokenErrorResponse { pub result_info: ResultInfo, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
TrustpayAccessTokenErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct CtpServiceDetails { pub service_session_ids: Option<ServiceSessionIds>, pub payment_details: Option<PaymentDetails>, }
crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
hyperswitch_domain_models
struct_definition
29
rust
CtpServiceDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct CustomerPaymentMethod { /// Token for payment method in temporary card locker which gets refreshed often #[schema(example = "7ebf443f-a050-4067-84e5-e6f6d4800aef")] pub payment_token: String, /// The unique identifier of the customer. #[schema(example = "pm_iouuy468iyuowqs")] pub paym...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
1,010
rust
CustomerPaymentMethod
null
null
null
null
null
null
null
null
null
null
null
is_iframe_redirection_enabled: is_iframe_redirection_enabled .or(source.is_iframe_redirection_enabled), // Fields from source merchant_id: source.merchant_id, customer_id: source.customer_id, created_at: source.created_at, last_sync...
crates/diesel_models/src/payment_intent.rs#chunk1
diesel_models
chunk
7,926
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BlockedRateAccumulator { pub fraud: i64, pub total: i64, }
crates/analytics/src/frm/accumulator.rs
analytics
struct_definition
25
rust
BlockedRateAccumulator
null
null
null
null
null
null
null
null
null
null
null
/// Macro to implement From trait for types wrapped in RequiredFromNullable #[macro_export] macro_rules! impl_from_required_from_nullable { ($($type:ty),* $(,)?) => { $( impl From<$crate::RequiredFromNullable<$type>> for $type { fn from(wrapper: $crate::Re...
crates/diesel_models/src/lib.rs
diesel_models
macro
94
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
pub struct MandateBodyResponse { tokenise_credit_card_response: TokeniseCreditCardResponse, }
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
MandateBodyResponse
null
null
null
null
null
null
null
null
null
null
null
impl UserFromToken { pub async fn get_merchant_account_from_db( &self, state: SessionState, ) -> UserResult<MerchantAccount> { let key_manager_state = &(&state).into(); let key_store = state .store .get_merchant_key_store_by_merchant_id( ke...
crates/router/src/utils/user.rs
router
impl_block
403
rust
null
UserFromToken
null
impl UserFromToken
null
null
null
null
null
null
null
null
pub async fn update_process_status_by_ids( conn: &PgPooledConn, task_ids: Vec<String>, task_update: ProcessTrackerUpdate, ) -> StorageResult<usize> { generics::generic_update::<<Self as HasTable>::Table, _, _>( conn, dsl::id.eq_any(task_ids), Proce...
crates/diesel_models/src/query/process_tracker.rs
diesel_models
function_signature
89
rust
null
null
null
null
update_process_status_by_ids
null
null
null
null
null
null
null
Documentation: api-reference/v1/payments/payments--external-3ds-authentication.mdx # Type: Doc File --- openapi: post /payments/{payment_id}/3ds/authentication ---
api-reference/v1/payments/payments--external-3ds-authentication.mdx
null
doc_file
42
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CardDetailsForNetworkTransactionId { pub card_number: cards::CardNumber, pub card_exp_month: Secret<String>, pub card_exp_year: Secret<String>, pub card_issuer: Option<String>, pub card_network: Option<common_enums::CardNetwork>, pub card_type: Option<String>, pub card_issuing_cou...
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
109
rust
CardDetailsForNetworkTransactionId
null
null
null
null
null
null
null
null
null
null
null
pub struct IatapayRefundWebhookBody { pub status: IatapayRefundWebhookStatus, pub iata_refund_id: String, pub merchant_refund_id: Option<String>, pub failure_code: Option<String>, pub failure_details: Option<String>, pub amount: FloatMajorUnit, pub currency: String, }
crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs
hyperswitch_connectors
struct_definition
77
rust
IatapayRefundWebhookBody
null
null
null
null
null
null
null
null
null
null
null
pub fn update_dispute_evidence( dispute_evidence: DisputeEvidence, evidence_type: api::EvidenceType, file_id: String, ) -> DisputeEvidence { match evidence_type { api::EvidenceType::CancellationPolicy => DisputeEvidence { cancellation_policy: Some(file_id), ..dispute_evid...
crates/router/src/core/disputes/transformers.rs
router
function_signature
361
rust
null
null
null
null
update_dispute_evidence
null
null
null
null
null
null
null
pub async fn retrieve_connector( state: SessionState, merchant_id: id_type::MerchantId, profile_id: Option<id_type::ProfileId>, merchant_connector_id: id_type::MerchantConnectorAccountId, ) -> RouterResponse<api_models::admin::MerchantConnectorResponse> { let store = state.store.as_ref(); let ke...
crates/router/src/core/admin.rs
router
function_signature
314
rust
null
null
null
null
retrieve_connector
null
null
null
null
null
null
null
pub struct RoutingEventsResponse<Res> where Res: Serialize + serde::de::DeserializeOwned + Clone, { pub event: Option<routing_events::RoutingEvent>, pub response: Option<Res>, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
46
rust
RoutingEventsResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn get_inner(&self) -> &Secret<Vec<u8>, EncryptionStrategy> { &self.inner }
crates/common_utils/src/encryption.rs
common_utils
function_signature
25
rust
null
null
null
null
get_inner
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/account/payment_methods" { "get": { "tags": [ "Payment Methods" ], "summary": "List payment methods for a Merchant", "description": "Lists the applicable payment methods for a particular Merchant ID.\nUse the client secret and publishable key authorization to list all...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
817
.json
null
null
null
null
null
openapi_spec
paths
[ "/account/payment_methods" ]
null
null
null
null
pub struct MandateLink { customer_bank_account: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
MandateLink
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Sift { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented)) ...
crates/hyperswitch_connectors/src/connectors/sift.rs
hyperswitch_connectors
impl_block
210
rust
null
Sift
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Sift
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CardPayout { "type": "object", "required": [ "card_number", "expiry_month", "expiry_year", "card_holder_name" ], "properties": { "card_number": { "type": "string", "description": "The card number", "example": "4242424242424242" }, ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
189
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CardPayout" ]
null
null
null
null
File: crates/router/src/db/role.rs use common_utils::id_type; use diesel_models::{ enums::{EntityType, RoleScope}, role as storage, }; use error_stack::report; use router_env::{instrument, tracing}; use super::MockDb; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, };...
crates/router/src/db/role.rs
router
full_file
3,515
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BillwerkTokenResponse { id: Secret<String>, recurring: Option<bool>, }
crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
BillwerkTokenResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Opayo {}
crates/hyperswitch_connectors/src/connectors/opayo.rs
hyperswitch_connectors
impl_block
9
rust
null
Opayo
api::Refund for
impl api::Refund for for Opayo
null
null
null
null
null
null
null
null
pub fn get_flow(&self) -> domain::Origin { self.flow.clone() }
crates/router/src/services/email/types.rs
router
function_signature
19
rust
null
null
null
null
get_flow
null
null
null
null
null
null
null
pub async fn invalidate( state: SessionState, key: &str, ) -> CustomResult<services::api::ApplicationResponse<serde_json::Value>, errors::ApiErrorResponse> { let store = state.store.as_ref(); let result = redact_from_redis_and_publish( store.get_cache_store().as_ref(), [CacheKind::All(ke...
crates/router/src/core/cache.rs
router
function_signature
164
rust
null
null
null
null
invalidate
null
null
null
null
null
null
null
pub struct CeleroCaptureRequest { pub amount: MinorUnit, #[serde(skip_serializing_if = "Option::is_none")] pub order_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
CeleroCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
Documentation: crates/common_enums/README.md # Type: Doc File # Common Enums Enums shared across the request/response types and database types.
crates/common_enums/README.md
null
doc_file
31
doc
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.XenditSplitRoute { "type": "object", "description": "Fee information to be charged on the payment being collected via xendit", "required": [ "currency", "destination_account_id", "reference_id" ], "properties": { "flat_amount": { "allOf": [ ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
252
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "XenditSplitRoute" ]
null
null
null
null
impl api::PaymentSession for Bitpay {}
crates/hyperswitch_connectors/src/connectors/bitpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Bitpay
api::PaymentSession for
impl api::PaymentSession for for Bitpay
null
null
null
null
null
null
null
null
pub struct BluecodeMetadataObject { pub shop_name: String, }
crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
BluecodeMetadataObject
null
null
null
null
null
null
null
null
null
null
null
pub fn derive_to_encryption( input: syn::DeriveInput, ) -> Result<proc_macro2::TokenStream, syn::Error> { let struct_name = input.ident; let fields = get_encryptable_fields(get_struct_fields(input.data)?); generate_to_encryptable(struct_name, fields) }
crates/router_derive/src/macros/to_encryptable.rs
router_derive
function_signature
66
rust
null
null
null
null
derive_to_encryption
null
null
null
null
null
null
null
pub struct BankOfAmericaPaymentInitiator { #[serde(rename = "type")] initiator_type: Option<BankOfAmericaPaymentInitiatorTypes>, credential_stored_on_file: Option<bool>, stored_credential_used: Option<bool>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
BankOfAmericaPaymentInitiator
null
null
null
null
null
null
null
null
null
null
null
impl Default for OutgoingWebhookRetryProcessTrackerMapping { fn default() -> Self { Self { default_mapping: RetryMapping { // 1st attempt happens after 1 minute start_after: 60, frequencies: vec![ // 2nd and 3rd attempts happen...
crates/scheduler/src/consumer/types/process_data.rs
scheduler
impl_block
235
rust
null
OutgoingWebhookRetryProcessTrackerMapping
Default for
impl Default for for OutgoingWebhookRetryProcessTrackerMapping
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/router_response_types.rs Public functions: 7 Public structs: 11 pub mod disputes; pub mod fraud_check; pub mod revenue_recovery; use std::collections::HashMap; use common_utils::{pii, request::Method, types::MinorUnit}; pub use disputes::{ AcceptDisputeResponse, Defend...
crates/hyperswitch_domain_models/src/router_response_types.rs
hyperswitch_domain_models
full_file
4,570
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AlfamartVoucherData {}
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
9
rust
AlfamartVoucherData
null
null
null
null
null
null
null
null
null
null
null
impl api::UasPreAuthentication for Juspaythreedsserver {}
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
hyperswitch_connectors
impl_block
16
rust
null
Juspaythreedsserver
api::UasPreAuthentication for
impl api::UasPreAuthentication for for Juspaythreedsserver
null
null
null
null
null
null
null
null
pub struct BreadpayTransactionRequest { #[serde(rename = "type")] pub transaction_type: BreadpayTransactionType, }
crates/hyperswitch_connectors/src/connectors/breadpay/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
BreadpayTransactionRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_initial_webhook_delivery_attempts_with_jwtauth( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<EventListConstraints>, ) -> impl Responder { let flow = Flow::WebhookEventInitialDeliveryAttemptList; let constraints = json_payload.into_inner(); let request_...
crates/router/src/routes/webhook_events.rs
router
function_signature
245
rust
null
null
null
null
list_initial_webhook_delivery_attempts_with_jwtauth
null
null
null
null
null
null
null
impl RefundMetricsAccumulator { pub fn collect(self) -> RefundMetricsBucketValue { let (successful_refunds, total_refunds, refund_success_rate) = self.refund_success_rate.collect(); let (refund_processed_amount, refund_processed_count, refund_processed_amount_in_usd) = self.p...
crates/analytics/src/refunds/accumulator.rs
analytics
impl_block
187
rust
null
RefundMetricsAccumulator
null
impl RefundMetricsAccumulator
null
null
null
null
null
null
null
null
/// Construct config builder extending it by fall-back defaults and setting config file to load. pub fn builder( environment: &str, ) -> Result<config::ConfigBuilder<config::builder::DefaultState>, config::ConfigError> { config::Config::builder() // Here, it should be `set_override()...
crates/router_env/src/logger/config.rs
router_env
function_signature
108
rust
null
null
null
null
builder
null
null
null
null
null
null
null
File: crates/router/src/types/storage/cards_info.rs pub use diesel_models::cards_info::{CardInfo, UpdateCardInfo};
crates/router/src/types/storage/cards_info.rs
router
full_file
26
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CeleroCaptureResponse { pub status: CeleroResponseStatus, pub msg: Option<String>, pub data: Option<serde_json::Value>, // Usually null for capture responses }
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
CeleroCaptureResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Nexixpay {}
crates/hyperswitch_connectors/src/connectors/nexixpay.rs
hyperswitch_connectors
impl_block
10
rust
null
Nexixpay
api::PaymentVoid for
impl api::PaymentVoid for for Nexixpay
null
null
null
null
null
null
null
null
impl api::PaymentSync for Bitpay {}
crates/hyperswitch_connectors/src/connectors/bitpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Bitpay
api::PaymentSync for
impl api::PaymentSync for for Bitpay
null
null
null
null
null
null
null
null
pub struct BlocklistResponse { pub fingerprint_id: String, #[schema(value_type = BlocklistDataKind)] pub data_kind: enums::BlocklistDataKind, #[serde(with = "common_utils::custom_serde::iso8601")] pub created_at: time::PrimitiveDateTime, }
crates/api_models/src/blocklist.rs
api_models
struct_definition
66
rust
BlocklistResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Globalpay {}
crates/hyperswitch_connectors/src/connectors/globalpay.rs
hyperswitch_connectors
impl_block
8
rust
null
Globalpay
api::Payment for
impl api::Payment for for Globalpay
null
null
null
null
null
null
null
null
pub fn payments_retrieve() {}
crates/openapi/src/routes/payments.rs
openapi
function_signature
7
rust
null
null
null
null
payments_retrieve
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ApplePayWalletData { "type": "object", "required": [ "payment_data", "payment_method", "transaction_identifier" ], "properties": { "payment_data": { "$ref": "#/components/schemas/ApplePayPaymentData" }, "payment_method": { "$ref": "#/com...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
125
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ApplePayWalletData" ]
null
null
null
null
pub fn get_network_config(&self, network: Option<CardNetwork>) -> &NetworkRetryConfig { // Hardcoded fallback default config static DEFAULT_CONFIG: NetworkRetryConfig = NetworkRetryConfig { max_retries_per_day: 20, max_retry_count_for_thirty_day: 20, }; if let So...
crates/router/src/types/storage/revenue_recovery.rs
router
function_signature
116
rust
null
null
null
null
get_network_config
null
null
null
null
null
null
null
pub(crate) fn error_type(&self) -> &'static str { match self { Self::Unauthorized(_) | Self::ForbiddenCommonResource(_) | Self::ForbiddenPrivateResource(_) | Self::Conflict(_) | Self::Gone(_) | Self::Unprocessable(_) | Self::Not...
crates/api_models/src/errors/types.rs
api_models
function_signature
133
rust
null
null
null
null
error_type
null
null
null
null
null
null
null
File: crates/euclid/src/dssa/utils.rs Public structs: 1 pub struct Unpacker;
crates/euclid/src/dssa/utils.rs
euclid
full_file
24
null
null
null
null
null
null
null
null
null
null
null
null
null
pub trait ConstructFlowSpecificData<F, Req, Res> { #[cfg(feature = "v1")] async fn construct_router_data<'a>( &self, state: &SessionState, connector_id: &str, merchant_context: &domain::MerchantContext, customer: &Option<domain::Customer>, merchant_connector_accou...
crates/router/src/core/payments/flows.rs
router
trait_definition
335
rust
null
null
ConstructFlowSpecificData
null
null
null
null
null
null
null
null
null
pub struct RecurlyErrorResponse { pub status_code: u16, pub code: String, pub message: String, pub reason: Option<String>, }
crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
RecurlyErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantConnectorAccount { pub merchant_id: id_type::MerchantId, pub connector_name: String, #[encrypt] pub connector_account_details: Encryptable<Secret<Value>>, pub test_mode: Option<bool>, pub disabled: Option<bool>, pub merchant_connector_id: id_type::MerchantConnectorAccountI...
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
struct_definition
294
rust
MerchantConnectorAccount
null
null
null
null
null
null
null
null
null
null
null
/// Returns an option of the resource if it exists pub async fn find_resource<D, R>( &self, state: &KeyManagerState, key_store: &MerchantKeyStore, resources: MutexGuard<'_, Vec<D>>, filter_fn: impl Fn(&&D) -> bool, ) -> CustomResult<Option<R>, StorageError> where ...
crates/storage_impl/src/mock_db.rs
storage_impl
function_signature
179
rust
null
null
null
null
find_resource
null
null
null
null
null
null
null
pub async fn do_list_customer_pm_fetch_customer_if_not_passed( state: routes::SessionState, merchant_context: domain::MerchantContext, req: Option<api::PaymentMethodListRequest>, customer_id: Option<&id_type::CustomerId>, ephemeral_api_key: Option<&str>, ) -> errors::RouterResponse<api::CustomerPaym...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
417
rust
null
null
null
null
do_list_customer_pm_fetch_customer_if_not_passed
null
null
null
null
null
null
null
impl api::PaymentSync for Silverflow {}
crates/hyperswitch_connectors/src/connectors/silverflow.rs
hyperswitch_connectors
impl_block
9
rust
null
Silverflow
api::PaymentSync for
impl api::PaymentSync for for Silverflow
null
null
null
null
null
null
null
null
File: crates/router/src/routes/metrics/request.rs Public functions: 1 use crate::services::ApplicationResponse; pub fn track_response_status_code<Q>(response: &ApplicationResponse<Q>) -> i64 { match response { ApplicationResponse::Json(_) | ApplicationResponse::StatusOk | ApplicationRespo...
crates/router/src/routes/metrics/request.rs
router
full_file
143
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct EliminationRoutingEventRequest { pub id: String, pub params: String, pub labels: Vec<String>, pub config: Option<EliminationRoutingEventBucketConfig>, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
41
rust
EliminationRoutingEventRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct FrmFilters { #[serde(default)] pub frm_status: Vec<FraudCheckStatus>, #[serde(default)] pub frm_name: Vec<String>, #[serde(default)] pub frm_transaction_type: Vec<FrmTransactionType>, }
crates/api_models/src/analytics/frm.rs
api_models
struct_definition
52
rust
FrmFilters
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/flows.rs Public functions: 2 pub mod approve_flow; pub mod authorize_flow; pub mod cancel_flow; pub mod cancel_post_capture_flow; pub mod capture_flow; pub mod complete_authorize_flow; #[cfg(feature = "v2")] pub mod external_proxy_flow; pub mod incremental_authorization_flow; pub...
crates/router/src/core/payments/flows.rs
router
full_file
2,547
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn number_of_digits_after_decimal_point(self) -> u8 { if self.is_zero_decimal_currency() { 0 } else if self.is_three_decimal_currency() { 3 } else if self.is_four_decimal_currency() { 4 } else { 2 } }
crates/common_enums/src/enums.rs
common_enums
function_signature
69
rust
null
null
null
null
number_of_digits_after_decimal_point
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CustomerDeviceData { "type": "object", "description": "Represents data about the customer's device used in the 3DS decision rule.", "properties": { "platform": { "allOf": [ { "$ref": "#/components/schemas/CustomerDevicePlatform" } ],...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
170
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CustomerDeviceData" ]
null
null
null
null
pub async fn migrate_routing_rules_for_profile( state: web::Data<AppState>, req: HttpRequest, query: web::Query<routing_types::RuleMigrationQuery>, ) -> HttpResponse { let flow = Flow::DecisionEngineRuleMigration; Box::pin(oss_api::server_wrap( flow, state, &req, que...
crates/router/src/routes/routing.rs
router
function_signature
227
rust
null
null
null
null
migrate_routing_rules_for_profile
null
null
null
null
null
null
null
pub struct GetnetCaptureResponse { payment: CaptureResponseData, }
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
GetnetCaptureResponse
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Nomupay { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&NOMUPAY_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { None } fn get_supported_webhook_flows(&self) -> Option<...
crates/hyperswitch_connectors/src/connectors/nomupay.rs
hyperswitch_connectors
impl_block
95
rust
null
Nomupay
ConnectorSpecifications for
impl ConnectorSpecifications for for Nomupay
null
null
null
null
null
null
null
null
pub fn get_parent_group_description(group: ParentGroup) -> Option<&'static str> { match group { ParentGroup::Operations => Some("Payments, Refunds, Payouts, Mandates, Disputes and Customers"), ParentGroup::Connectors => Some("Create, modify and delete connectors like Payment Processors, Payout Proce...
crates/router/src/services/authorization/info.rs
router
function_signature
237
rust
null
null
null
null
get_parent_group_description
null
null
null
null
null
null
null
Web Documentation: Troubleshooting | Hyperswitch # Type: Web Doc System Health Check Hyperswitch provides a deep health check endpoint to check if the various components involved are up and running. To check the readiness of the application, you can run the following command. curl The above command will check the Dat...
https://docs.hyperswitch.io/hyperswitch-open-source/troubleshooting
null
web_doc_file
365
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/hyperswitch-open-source/troubleshooting
Troubleshooting | Hyperswitch
null
impl DecryptedData { pub fn from_data(data: StrongSecret<Vec<u8>>) -> Self { Self(data) } pub fn inner(self) -> StrongSecret<Vec<u8>> { self.0 } }
crates/common_utils/src/types/keymanager.rs
common_utils
impl_block
49
rust
null
DecryptedData
null
impl DecryptedData
null
null
null
null
null
null
null
null
pub trait Validate { type Error: error_stack::Context; fn validate(&self) -> Result<(), Self::Error>; }
crates/router/src/core/relay.rs
router
trait_definition
27
rust
null
null
Validate
null
null
null
null
null
null
null
null
null
pub async fn payments_cancel_post_capture( state: web::Data<app::AppState>, req: actix_web::HttpRequest, json_payload: web::Json<payment_types::PaymentsCancelPostCaptureRequest>, path: web::Path<common_utils::id_type::PaymentId>, ) -> impl Responder { let flow = Flow::PaymentsCancelPostCapture; ...
crates/router/src/routes/payments.rs
router
function_signature
348
rust
null
null
null
null
payments_cancel_post_capture
null
null
null
null
null
null
null
File: crates/router/src/core/errors/utils.rs use common_utils::errors::CustomResult; use crate::{core::errors, logger}; pub trait StorageErrorExt<T, E> { #[track_caller] fn to_not_found_response(self, not_found_response: E) -> error_stack::Result<T, E>; #[track_caller] fn to_duplicate_response(self,...
crates/router/src/core/errors/utils.rs
router
full_file
5,769
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::CreateDynamicRoutingConfig; let wrapper = routing_types::CreateDynamicRoutingWrapper { feature_to_enable: query.into_inner().enable, profile_id: path.into_inner().profile_id, payload: api_models::routing::DynamicRoutingPayload::SuccessBasedRoutingPayload...
crates/router/src/routes/routing.rs
router
impl_block
296
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub async fn get_search_results( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<GetSearchRequest>, index: web::Path<SearchIndex>, ) -> impl Responder { let index = index.into_inner(); let flow = AnalyticsFlow::GetSearchResults; ...
crates/router/src/analytics.rs
router
function_signature
1,161
rust
null
null
null
null
get_search_results
null
null
null
null
null
null
null
File: crates/pm_auth/src/core.rs pub mod errors;
crates/pm_auth/src/core.rs
pm_auth
full_file
13
null
null
null
null
null
null
null
null
null
null
null
null
null