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 struct GooglePayData { googlepay_payment_data: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
GooglePayData
null
null
null
null
null
null
null
null
null
null
null
pub struct VantivSyncResponse { pub payment_id: u64, pub request_uuid: String, pub payment_status: PaymentStatus, pub payment_detail: Option<PaymentDetail>, }
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
43
rust
VantivSyncResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/bankofamerica.rs Public functions: 3 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use base64::Engine; use common_enums::enums; use common_utils::{ consts, errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, Re...
crates/hyperswitch_connectors/src/connectors/bankofamerica.rs#chunk0
hyperswitch_connectors
chunk
8,189
null
null
null
null
null
null
null
null
null
null
null
null
null
impl State for PmValidated {}
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
impl_block
8
rust
null
PmValidated
State for
impl State for for PmValidated
null
null
null
null
null
null
null
null
pub fn parse_string_to_enums(query: String) -> UserResult<GetMultipleMetaDataPayload> { Ok(GetMultipleMetaDataPayload { results: query .split(',') .map(GetMetaDataRequest::from_str) .collect::<Result<Vec<GetMetaDataRequest>, _>>() .change_context(UserErrors::I...
crates/router/src/utils/user/dashboard_metadata.rs
router
function_signature
89
rust
null
null
null
null
parse_string_to_enums
null
null
null
null
null
null
null
impl RequiredFieldsForEnabledPaymentMethodTypes { fn generate_response_for_session( self, customer_payment_methods: Vec<payment_methods::CustomerPaymentMethodResponseItem>, ) -> payment_methods::PaymentMethodListResponseForSession { let response_payment_methods = self .0 ...
crates/router/src/core/payment_methods.rs
router
impl_block
161
rust
null
RequiredFieldsForEnabledPaymentMethodTypes
null
impl RequiredFieldsForEnabledPaymentMethodTypes
null
null
null
null
null
null
null
null
impl api::PaymentToken for Coinbase {}
crates/hyperswitch_connectors/src/connectors/coinbase.rs
hyperswitch_connectors
impl_block
8
rust
null
Coinbase
api::PaymentToken for
impl api::PaymentToken for for Coinbase
null
null
null
null
null
null
null
null
pub struct VirInterpreterBackend<O> { program: vir::ValuedProgram<O>, }
crates/euclid/src/backend/vir_interpreter.rs
euclid
struct_definition
19
rust
VirInterpreterBackend
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/events.rs Public functions: 11 use std::collections::HashSet; use diesel::{ associations::HasTable, BoolExpressionMethods, ExpressionMethods, NullableExpressionMethods, }; use super::generics; use crate::{ events::{Event, EventNew, EventUpdateInternal}, schema::event...
crates/diesel_models/src/query/events.rs
diesel_models
full_file
2,668
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TDS2ApiError { pub error_code: String, pub error_component: Option<String>, pub error_description: String, pub error_detail: Option<String>, pub error_message_type: Option<String>, /// Always returns 'Error' to indicate that this message is an error. /// /// Example: "Error" ...
crates/hyperswitch_connectors/src/connectors/gpayments/gpayments_types.rs
hyperswitch_connectors
struct_definition
131
rust
TDS2ApiError
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentIntentListParams { pub offset: u32, pub starting_at: Option<PrimitiveDateTime>, pub ending_at: Option<PrimitiveDateTime>, pub amount_filter: Option<api_models::payments::AmountFilter>, pub connector: Option<Vec<api_models::enums::Connector>>, pub currency: Option<Vec<common_enu...
crates/hyperswitch_domain_models/src/payments/payment_intent.rs
hyperswitch_domain_models
struct_definition
270
rust
PaymentIntentListParams
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_by_global_customer_id( conn: &PgPooledConn, customer_id: &common_utils::id_type::GlobalCustomerId, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as HasTable>::Table, _, <<Self as HasTable>::Table as Table>::PrimaryKey,...
crates/diesel_models/src/query/mandate.rs
diesel_models
function_signature
111
rust
null
null
null
null
find_by_global_customer_id
null
null
null
null
null
null
null
impl FraudCheck { pub async fn update_with_attempt_id( self, conn: &PgPooledConn, fraud_check: FraudCheckUpdate, ) -> StorageResult<Self> { match generics::generic_update_with_unique_predicate_get_result::< <Self as HasTable>::Table, _, _, ...
crates/diesel_models/src/query/fraud_check.rs
diesel_models
impl_block
390
rust
null
FraudCheck
null
impl FraudCheck
null
null
null
null
null
null
null
null
impl api::MandateSetup for Thunes {}
crates/hyperswitch_connectors/src/connectors/thunes.rs
hyperswitch_connectors
impl_block
11
rust
null
Thunes
api::MandateSetup for
impl api::MandateSetup for for Thunes
null
null
null
null
null
null
null
null
File: crates/api_models/src/analytics/sdk_events.rs Public functions: 1 Public structs: 13 use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, }; use super::{NameDescription, TimeRange}; #[derive(Clone, Debug, serde::Deserialize, serde::Serialize)] #[serde(rename_all = "camelCase")] pub ...
crates/api_models/src/analytics/sdk_events.rs
api_models
full_file
1,310
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Amazonpay {}
crates/hyperswitch_connectors/src/connectors/amazonpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Amazonpay
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Amazonpay
null
null
null
null
null
null
null
null
impl UserRole { pub fn get_entity_id_and_type(&self) -> Option<(String, EntityType)> { match (self.version, self.entity_type, self.role_id.as_str()) { (enums::UserRoleVersion::V1, None, consts::ROLE_ID_ORGANIZATION_ADMIN) => { let org_id = self.org_id.clone()?.get_string_repr().t...
crates/diesel_models/src/user_role.rs
diesel_models
impl_block
193
rust
null
UserRole
null
impl UserRole
null
null
null
null
null
null
null
null
impl ConnectorRedirectResponse for Nmi { fn get_flow_type( &self, _query_params: &str, json_payload: Option<serde_json::Value>, action: PaymentAction, ) -> CustomResult<CallConnectorAction, ConnectorError> { match action { PaymentAction::CompleteAuthorize => {...
crates/hyperswitch_connectors/src/connectors/nmi.rs
hyperswitch_connectors
impl_block
270
rust
null
Nmi
ConnectorRedirectResponse for
impl ConnectorRedirectResponse for for Nmi
null
null
null
null
null
null
null
null
pub async fn perform_elimination_routing( state: &SessionState, routable_connectors: Vec<api_routing::RoutableConnectorChoice>, profile_id: &common_utils::id_type::ProfileId, merchant_id: &common_utils::id_type::MerchantId, payment_id: &common_utils::id_type::PaymentId, elimination_routing_confi...
crates/router/src/core/payments/routing.rs
router
function_signature
1,518
rust
null
null
null
null
perform_elimination_routing
null
null
null
null
null
null
null
impl api::PaymentToken for Checkbook {}
crates/hyperswitch_connectors/src/connectors/checkbook.rs
hyperswitch_connectors
impl_block
9
rust
null
Checkbook
api::PaymentToken for
impl api::PaymentToken for for Checkbook
null
null
null
null
null
null
null
null
impl api::PaymentSync for Worldpayxml {}
crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
hyperswitch_connectors
impl_block
10
rust
null
Worldpayxml
api::PaymentSync for
impl api::PaymentSync for for Worldpayxml
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/payments/list" { "get": { "tags": [ "Payments" ], "summary": "Payments - List", "description": "To list the *payments*", "operationId": "List all Payments", "parameters": [ { "name": "customer_id", "in": "query", "description": "T...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
770
.json
null
null
null
null
null
openapi_spec
paths
[ "/payments/list" ]
null
null
null
null
pub struct TenantConfig(pub HashMap<id_type::TenantId, Tenant>);
crates/drainer/src/settings.rs
drainer
struct_definition
16
rust
TenantConfig
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Stripe {}
crates/hyperswitch_connectors/src/connectors/stripe.rs
hyperswitch_connectors
impl_block
8
rust
null
Stripe
api::PaymentSession for
impl api::PaymentSession for for Stripe
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/callback_mapper.rs Public functions: 2 use diesel::{associations::HasTable, ExpressionMethods}; use super::generics; use crate::{ callback_mapper::CallbackMapper, schema::callback_mapper::dsl, PgPooledConn, StorageResult, }; impl CallbackMapper { pub async fn insert(self...
crates/diesel_models/src/query/callback_mapper.rs
diesel_models
full_file
166
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_by_algorithm_id_profile_id( conn: &PgPooledConn, algorithm_id: &common_utils::id_type::RoutingId, profile_id: &common_utils::id_type::ProfileId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, d...
crates/diesel_models/src/query/routing_algorithm.rs
diesel_models
function_signature
114
rust
null
null
null
null
find_by_algorithm_id_profile_id
null
null
null
null
null
null
null
File: crates/api_models/src/tokenization.rs Public structs: 4 use common_enums; use common_utils::id_type; use serde::{Deserialize, Serialize}; use time::PrimitiveDateTime; use utoipa::{schema, ToSchema}; #[cfg(all(feature = "v2", feature = "tokenization_v2"))] #[derive(Debug, Serialize, Deserialize, ToSchema)] pub ...
crates/api_models/src/tokenization.rs
api_models
full_file
692
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_payout_link_data(&self) -> Result<&PayoutLinkData, String> { match self { Self::PayoutLink(pl) => Ok(pl), _ => Err("Invalid link type for fetching payout link data".to_string()), } }
crates/diesel_models/src/generic_link.rs
diesel_models
function_signature
58
rust
null
null
null
null
get_payout_link_data
null
null
null
null
null
null
null
pub async fn try_redis_get_else_try_database_get<F, RFut, DFut, T>( redis_fut: RFut, database_call_closure: F, ) -> error_stack::Result<T, StorageError> where F: FnOnce() -> DFut, RFut: futures::Future<Output = error_stack::Result<T, redis_interface::errors::RedisError>>, DFut: futures::Future<Outpu...
crates/storage_impl/src/utils.rs
storage_impl
function_signature
202
rust
null
null
null
null
try_redis_get_else_try_database_get
null
null
null
null
null
null
null
File: crates/router/src/db/fraud_check.rs use diesel_models::fraud_check::{self as storage, FraudCheck, FraudCheckUpdate}; use error_stack::report; use router_env::{instrument, tracing}; use super::MockDb; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; #[async_trait::asy...
crates/router/src/db/fraud_check.rs
router
full_file
989
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Organization;
crates/router/src/routes/app.rs
router
struct_definition
4
rust
Organization
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payouts/helpers.rs Public functions: 20 use ::payment_methods::controller::PaymentMethodsController; use api_models::{enums, payment_methods::Card, payouts}; use common_utils::{ crypto::Encryptable, encryption::Encryption, errors::CustomResult, ext_traits::{AsyncExt, Strin...
crates/router/src/core/payouts/helpers.rs#chunk0
router
chunk
8,190
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Authorizedotnet { fn id(&self) -> &'static str { "authorizedotnet" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self...
crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs
hyperswitch_connectors
impl_block
107
rust
null
Authorizedotnet
ConnectorCommon for
impl ConnectorCommon for for Authorizedotnet
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/novalnet.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 NovalnetTest; ...
crates/router/tests/connectors/novalnet.rs
router
full_file
2,935
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn rust_locker_migration( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::MerchantId>, ) -> HttpResponse { let flow = Flow::RustLockerMigration; let merchant_id = path.into_inner(); Box::pin(api::server_wrap( flow, state, &re...
crates/router/src/routes/locker_migration.rs
router
function_signature
133
rust
null
null
null
null
rust_locker_migration
null
null
null
null
null
null
null
pub struct BillingConnectorInvoiceSyncResponse { /// transaction amount against invoice, accepted in minor unit. pub amount: MinorUnit, /// currency of the transaction pub currency: common_enums::enums::Currency, /// merchant reference id at billing connector. ex: invoice_id pub merchant_referen...
crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.rs
hyperswitch_domain_models
struct_definition
157
rust
BillingConnectorInvoiceSyncResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/stripe.rs use std::str::FromStr; use masking::Secret; use router::types::{self, domain, storage::enums}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; struct Stripe; impl ConnectorActions for Stripe {} impl utils::Connector for Stripe { fn get_data...
crates/router/tests/connectors/stripe.rs
router
full_file
2,818
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundSyncResponse { id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
RefundSyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn refunds_create() {}
crates/openapi/src/routes/refunds.rs
openapi
function_signature
7
rust
null
null
null
null
refunds_create
null
null
null
null
null
null
null
pub struct PlaidRecipientCreateResponse { pub recipient_id: String, }
crates/pm_auth/src/connector/plaid/transformers.rs
pm_auth
struct_definition
16
rust
PlaidRecipientCreateResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct MandateRequest { currency: enums::Currency, sale_price: MinorUnit, transaction_id: String, product_name: String, sale_return_url: String, seller_payme_id: Secret<String>, sale_callback_url: String, buyer_key: Secret<String>, language: String, }
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
68
rust
MandateRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct StripeApis;
crates/router/src/compatibility/stripe.rs
router
struct_definition
5
rust
StripeApis
null
null
null
null
null
null
null
null
null
null
null
pub struct JpmorganCancelRequest { pub amount: Option<i64>, pub is_void: Option<bool>, pub reversal_reason: Option<ReversalReason>, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
JpmorganCancelRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundInputData { amount: StringMajorUnit, merchant_account_id: Secret<String>, #[serde(skip_serializing_if = "Option::is_none")] order_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
RefundInputData
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CustomerDeviceType { "type": "string", "enum": [ "mobile", "tablet", "desktop", "gaming_console" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
46
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CustomerDeviceType" ]
null
null
null
null
pub struct WebhookResponse { pub response: reqwest::Response, }
crates/router/src/core/webhooks/types.rs
router
struct_definition
16
rust
WebhookResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthEventsAnalyticsMetadata { pub total_error_message_count: Option<u64>, }
crates/api_models/src/analytics.rs
api_models
struct_definition
20
rust
AuthEventsAnalyticsMetadata
null
null
null
null
null
null
null
null
null
null
null
pub async fn verify_recon_token(state: web::Data<AppState>, http_req: HttpRequest) -> HttpResponse { let flow = Flow::ReconVerifyToken; Box::pin(api::server_wrap( flow, state.clone(), &http_req, (), |state, user, _req, _| recon::verify_recon_token(state, user), &a...
crates/router/src/routes/recon.rs
router
function_signature
116
rust
null
null
null
null
verify_recon_token
null
null
null
null
null
null
null
pub async fn payment_authorize( state: SessionState, req: types::DummyConnectorPaymentConfirmRequest, ) -> types::DummyConnectorResponse<String> { let payment_data = utils::get_payment_data_by_attempt_id(&state, req.attempt_id.clone()).await; let dummy_connector_conf = &state.conf.dummy_connector; ...
crates/router/src/routes/dummy_connector/core.rs
router
function_signature
206
rust
null
null
null
null
payment_authorize
null
null
null
null
null
null
null
pub struct CybersourceAccountInfo { funds_source: CybersourcePayoutFundSourceType, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
CybersourceAccountInfo
null
null
null
null
null
null
null
null
null
null
null
pub async fn toggle_elimination_routing( state: web::Data<AppState>, req: HttpRequest, query: web::Query<api_models::routing::ToggleDynamicRoutingQuery>, path: web::Path<routing_types::ToggleDynamicRoutingPath>, ) -> impl Responder { let flow = Flow::ToggleDynamicRouting; let wrapper = routing_t...
crates/router/src/routes/routing.rs
router
function_signature
320
rust
null
null
null
null
toggle_elimination_routing
null
null
null
null
null
null
null
pub struct RefundSuccessRate;
crates/api_models/src/analytics/refunds.rs
api_models
struct_definition
7
rust
RefundSuccessRate
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/db/subscription.rs use error_stack::report; use router_env::{instrument, tracing}; use storage_impl::MockDb; use super::Store; use crate::{ connection, core::errors::{self, CustomResult}, db::kafka_store::KafkaStore, types::storage, }; #[async_trait::async_trait] pub trait Sub...
crates/router/src/db/subscription.rs
router
full_file
1,025
null
null
null
null
null
null
null
null
null
null
null
null
null
impl IncomingWebhook for Netcetera { fn get_webhook_object_reference_id( &self, request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<ObjectReferenceId, ConnectorError> { let webhook_body: netcetera::ResultsResponseData = request .body .parse_struct("netc...
crates/hyperswitch_connectors/src/connectors/netcetera.rs
hyperswitch_connectors
impl_block
539
rust
null
Netcetera
IncomingWebhook for
impl IncomingWebhook for for Netcetera
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Affirm {}
crates/hyperswitch_connectors/src/connectors/affirm.rs
hyperswitch_connectors
impl_block
9
rust
null
Affirm
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Affirm
null
null
null
null
null
null
null
null
pub fn construct_file_upload_request( file_upload_router_data: UploadFileRouterData, ) -> CustomResult<reqwest::multipart::Form, errors::ConnectorError> { let request = file_upload_router_data.request; let mut multipart = reqwest::multipart::Form::new(); multipart = multipart.text("purpose", "dispute_ev...
crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
hyperswitch_connectors
function_signature
189
rust
null
null
null
null
construct_file_upload_request
null
null
null
null
null
null
null
File: crates/analytics/src/auth_events/metrics/authentication_funnel.rs use std::collections::HashSet; use api_models::analytics::{ auth_events::{AuthEventDimensions, AuthEventFilters, AuthEventMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use error_stack::Res...
crates/analytics/src/auth_events/metrics/authentication_funnel.rs
analytics
full_file
1,067
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn decide_multiplex_connector_for_normal_or_recurring_payment<F: Clone, D>( state: &SessionState, payment_data: &mut D, routing_data: &mut storage::RoutingData, connectors: Vec<api::ConnectorRoutingData>, mandate_type: Option<api::MandateTransactionType>, is_connector_agnostic_mit_enab...
crates/router/src/core/payments.rs
router
function_signature
1,212
rust
null
null
null
null
decide_multiplex_connector_for_normal_or_recurring_payment
null
null
null
null
null
null
null
pub fn get_refund_webhook_statuses(&self) -> Cow<'_, [common_enums::RefundStatus]> { self.webhook_details .as_ref() .and_then(|details| details.refund_statuses_enabled.as_ref()) .filter(|statuses_vec| !statuses_vec.is_empty()) .map(|statuses_vec| Cow::Borrowed(sta...
crates/hyperswitch_domain_models/src/business_profile.rs
hyperswitch_domain_models
function_signature
113
rust
null
null
null
null
get_refund_webhook_statuses
null
null
null
null
null
null
null
pub struct CardDetailsPaymentMethod { pub last4_digits: Option<String>, pub issuer_country: Option<String>, pub expiry_month: Option<masking::Secret<String>>, pub expiry_year: Option<masking::Secret<String>>, pub nick_name: Option<masking::Secret<String>>, pub card_holder_name: Option<masking::S...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
158
rust
CardDetailsPaymentMethod
null
null
null
null
null
null
null
null
null
null
null
pub struct CallbackMapper { pub id: String, pub type_: common_enums::CallbackMapperIdType, pub data: CallbackMapperData, pub created_at: time::PrimitiveDateTime, pub last_modified_at: time::PrimitiveDateTime, }
crates/diesel_models/src/callback_mapper.rs
diesel_models
struct_definition
54
rust
CallbackMapper
null
null
null
null
null
null
null
null
null
null
null
impl ForexMetric for DisputeMetrics { fn is_forex_metric(&self) -> bool { matches!( self, Self::TotalAmountDisputed | Self::TotalDisputeLostAmount ) } }
crates/api_models/src/analytics/disputes.rs
api_models
impl_block
47
rust
null
DisputeMetrics
ForexMetric for
impl ForexMetric for for DisputeMetrics
null
null
null
null
null
null
null
null
pub fn from_secret_value( value: common_utils::pii::SecretSerdeValue, ) -> common_utils::errors::CustomResult<Self, common_utils::errors::ParsingError> { value .parse_value::<Self>("ConnectorAuthType") .change_context(common_utils::errors::ParsingError::StructParseFailure( ...
crates/hyperswitch_domain_models/src/router_data.rs
hyperswitch_domain_models
function_signature
80
rust
null
null
null
null
from_secret_value
null
null
null
null
null
null
null
pub async fn msearch_results( client: &OpenSearchClient, req: GetGlobalSearchRequest, search_params: Vec<AuthInfo>, indexes: Vec<SearchIndex>, ) -> CustomResult<Vec<GetSearchResponse>, OpenSearchError> { if req.query.trim().is_empty() && req .filters .as_ref() ...
crates/analytics/src/search.rs
analytics
function_signature
1,287
rust
null
null
null
null
msearch_results
null
null
null
null
null
null
null
pub async fn update_dispute_data( state: &SessionState, merchant_context: domain::MerchantContext, business_profile: domain::Profile, option_dispute: Option<diesel_models::dispute::Dispute>, dispute_details: DisputeSyncResponse, payment_attempt: domain::PaymentAttempt, connector_name: &str, ...
crates/router/src/core/disputes.rs
router
function_signature
336
rust
null
null
null
null
update_dispute_data
null
null
null
null
null
null
null
File: crates/router/src/core/payments/types.rs Public functions: 25 Public structs: 2 use std::{collections::HashMap, num::TryFromIntError}; use api_models::payment_methods::SurchargeDetailsResponse; use common_utils::{ errors::CustomResult, ext_traits::{Encode, OptionExt}, types::{self as common_types,...
crates/router/src/core/payments/types.rs
router
full_file
3,338
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentLinkConfigRequest { "type": "object", "properties": { "theme": { "type": "string", "description": "custom theme for the payment link", "example": "#4E6ADD", "nullable": true, "maxLength": 255 }, "logo": { "type": "string",...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
1,205
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentLinkConfigRequest" ]
null
null
null
null
pub fn get_frm_config_as_secret(&self) -> Option<Vec<Secret<serde_json::Value>>> { match self.frm_configs.as_ref() { Some(frm_value) => { let configs_for_frm_value: Vec<Secret<serde_json::Value>> = frm_value .iter() .map(|config| config.encode_...
crates/api_models/src/admin.rs
api_models
function_signature
115
rust
null
null
null
null
get_frm_config_as_secret
null
null
null
null
null
null
null
impl api::RefundExecute for Juspaythreedsserver {}
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
hyperswitch_connectors
impl_block
15
rust
null
Juspaythreedsserver
api::RefundExecute for
impl api::RefundExecute for for Juspaythreedsserver
null
null
null
null
null
null
null
null
pub struct DashboardPaymentMethodPayload { pub payment_method: api_models::enums::PaymentMethod, pub payment_method_type: String, pub provider: Option<Vec<Provider>>, pub card_provider: Option<Vec<CardProvider>>, }
crates/connector_configs/src/common_config.rs
connector_configs
struct_definition
48
rust
DashboardPaymentMethodPayload
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PlatformAccountCreateResponse { "type": "object", "required": [ "org_id", "org_type", "merchant_id", "merchant_account_type" ], "properties": { "org_id": { "type": "string", "example": "org_abc", "maxLength": 64, "minLength": 1 ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
195
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PlatformAccountCreateResponse" ]
null
null
null
null
pub struct ResponseRouterData<Flow, R, Request, Response> { pub response: R, pub data: RouterData<Flow, Request, Response>, pub http_code: u16, }
crates/router/src/types.rs
router
struct_definition
44
rust
ResponseRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct TransactionDetails { pub entity_id: Secret<String>, pub amount: StringMajorUnit, pub currency: String, pub payment_type: AciPaymentType, }
crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
TransactionDetails
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CaptureStatus { "type": "string", "enum": [ "started", "charged", "pending", "failed" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
44
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CaptureStatus" ]
null
null
null
null
impl Bitpay { pub fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/bitpay.rs
hyperswitch_connectors
impl_block
34
rust
null
Bitpay
null
impl Bitpay
null
null
null
null
null
null
null
null
impl api::RefundSync for Checkout {}
crates/hyperswitch_connectors/src/connectors/checkout.rs
hyperswitch_connectors
impl_block
9
rust
null
Checkout
api::RefundSync for
impl api::RefundSync for for Checkout
null
null
null
null
null
null
null
null
pub struct AffirmRefundResponse { pub id: String, pub amount: MinorUnit, pub created: String, pub currency: Currency, pub fee: Option<MinorUnit>, pub fee_refunded: Option<MinorUnit>, pub reference_id: Option<String>, #[serde(rename = "type")] pub event_type: AffirmEventType, pub ...
crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
hyperswitch_connectors
struct_definition
144
rust
AffirmRefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_by_merchant_id_profile_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, profile_id: &common_utils::id_type::ProfileId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, ds...
crates/diesel_models/src/query/business_profile.rs
diesel_models
function_signature
113
rust
null
null
null
null
find_by_merchant_id_profile_id
null
null
null
null
null
null
null
pub fn from_storage(refund: &'a Refund) -> Self { let Refund { payment_id, merchant_id, connector_transaction_id, connector, connector_refund_id, external_reference_id, refund_type, total_amount, currency...
crates/router/src/services/kafka/refund.rs
router
function_signature
437
rust
null
null
null
null
from_storage
null
null
null
null
null
null
null
File: crates/router/src/core/unified_authentication_service/utils.rs Public functions: 5 use std::marker::PhantomData; use common_enums::enums::PaymentMethod; use common_utils::ext_traits::{AsyncExt, ValueExt}; use error_stack::{report, ResultExt}; use hyperswitch_domain_models::{ errors::api_error_response::Api...
crates/router/src/core/unified_authentication_service/utils.rs
router
full_file
2,768
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn log_payment_attempt( &self, attempt: &PaymentAttempt, old_attempt: Option<PaymentAttempt>, tenant_id: TenantID, ) -> MQResult<()> { if let Some(negative_event) = old_attempt { self.log_event(&KafkaEvent::old( &KafkaPaymentAttempt::from...
crates/router/src/services/kafka.rs
router
function_signature
236
rust
null
null
null
null
log_payment_attempt
null
null
null
null
null
null
null
pub struct CloneConnectorRequest { pub source: CloneConnectorSource, pub destination: CloneConnectorDestination, }
crates/api_models/src/user.rs
api_models
struct_definition
23
rust
CloneConnectorRequest
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Volt { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&*VOLT_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*VOLT_SUPPORTED_PAYMENT_METHODS) } fn get_supported_we...
crates/hyperswitch_connectors/src/connectors/volt.rs
hyperswitch_connectors
impl_block
106
rust
null
Volt
ConnectorSpecifications for
impl ConnectorSpecifications for for Volt
null
null
null
null
null
null
null
null
File: crates/router_env/src/logger/defaults.rs impl Default for super::config::LogFile { fn default() -> Self { Self { enabled: true, path: "logs".into(), file_name: "debug.log".into(), level: super::config::Level(tracing::Level::DEBUG), filtering...
crates/router_env/src/logger/defaults.rs
router_env
full_file
145
null
null
null
null
null
null
null
null
null
null
null
null
null
impl<const T: u8> RefundExecute for DummyConnector<T> {}
crates/hyperswitch_connectors/src/connectors/dummyconnector.rs
hyperswitch_connectors
impl_block
16
rust
null
DummyConnector
RefundExecute for
impl RefundExecute for for DummyConnector
null
null
null
null
null
null
null
null
pub struct ProfileGeneralUpdate { pub profile_name: Option<String>, pub return_url: Option<common_utils::types::Url>, pub enable_payment_response_hash: Option<bool>, pub payment_response_hash_key: Option<String>, pub redirect_to_merchant_with_http_post: Option<bool>, pub webhook_details: Option<...
crates/hyperswitch_domain_models/src/business_profile.rs
hyperswitch_domain_models
struct_definition
507
rust
ProfileGeneralUpdate
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_dispute_filter_for_dimension<T>( dimension: DisputeDimensions, auth: &AuthInfo, time_range: &TimeRange, pool: &T, ) -> FiltersResult<Vec<DisputeFilterRow>> where T: AnalyticsDataSource + DisputeFilterAnalytics, PrimitiveDateTime: ToSql<T>, AnalyticsCollection: ToSql<T>, ...
crates/analytics/src/disputes/filters.rs
analytics
function_signature
241
rust
null
null
null
null
get_dispute_filter_for_dimension
null
null
null
null
null
null
null
pub fn get_card_networks(&self) -> Vec<common_enums::CardNetwork> { self.0.iter().map(|info| info.network.clone()).collect() }
crates/api_models/src/open_router.rs
api_models
function_signature
38
rust
null
null
null
null
get_card_networks
null
null
null
null
null
null
null
impl api::Payment for Braintree {}
crates/hyperswitch_connectors/src/connectors/braintree.rs
hyperswitch_connectors
impl_block
8
rust
null
Braintree
api::Payment for
impl api::Payment for for Braintree
null
null
null
null
null
null
null
null
pub struct RefundResponse { pub id: String, pub status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ExchangeRates { pub base_currency: Currency, pub conversion: HashMap<Currency, CurrencyFactors>, }
crates/currency_conversion/src/types.rs
currency_conversion
struct_definition
24
rust
ExchangeRates
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Trustpayments {}
crates/hyperswitch_connectors/src/connectors/trustpayments.rs
hyperswitch_connectors
impl_block
10
rust
null
Trustpayments
api::RefundExecute for
impl api::RefundExecute for for Trustpayments
null
null
null
null
null
null
null
null
File: crates/analytics/src/sdk_events/metrics/average_payment_time.rs use std::collections::HashSet; use api_models::analytics::{ sdk_events::{ SdkEventDimensions, SdkEventFilters, SdkEventMetricsBucketIdentifier, SdkEventNames, }, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchE...
crates/analytics/src/sdk_events/metrics/average_payment_time.rs
analytics
full_file
837
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Create a global [`Meter`][Meter] with the specified name and an optional description. /// /// [Meter]: opentelemetry::metrics::Meter #[macro_export] macro_rules! global_meter { ($name:ident) => { static $name: ::std::sync::LazyLock<$crate::opentelemetry::metrics::Meter> = ::std::sync::LazyLo...
crates/router_env/src/metrics.rs
router_env
macro
170
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
File: crates/router/src/core/tokenization.rs Public functions: 3 #[cfg(all(feature = "v2", feature = "tokenization_v2"))] use actix_web::{web, HttpRequest, HttpResponse}; #[cfg(all(feature = "v2", feature = "tokenization_v2"))] use api_models; #[cfg(all(feature = "v2", feature = "tokenization_v2"))] use common_enums:...
crates/router/src/core/tokenization.rs
router
full_file
1,875
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct DwollaCustomerRequest { first_name: Secret<String>, last_name: Secret<String>, email: common_utils::pii::Email, }
crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
DwollaCustomerRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct Organization { org_id: id_type::OrganizationId, org_name: Option<String>, pub organization_details: Option<pii::SecretSerdeValue>, pub metadata: Option<pii::SecretSerdeValue>, pub created_at: time::PrimitiveDateTime, pub modified_at: time::PrimitiveDateTime, #[allow(dead_code)] ...
crates/diesel_models/src/organization.rs
diesel_models
struct_definition
139
rust
Organization
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/redsys.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 RedsysTest; impl...
crates/router/tests/connectors/redsys.rs
router
full_file
2,925
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn call_connector_service_for_external_vault_proxy<F, RouterDReq, ApiRequest, D>( state: &SessionState, req_state: ReqState, merchant_context: &domain::MerchantContext, connector: api::ConnectorData, operation: &BoxedOperation<'_, F, ApiRequest, D>, payment_data: &mut D, call_conne...
crates/router/src/core/payments.rs
router
function_signature
810
rust
null
null
null
null
call_connector_service_for_external_vault_proxy
null
null
null
null
null
null
null
impl api::MandateSetup for Adyen {}
crates/hyperswitch_connectors/src/connectors/adyen.rs
hyperswitch_connectors
impl_block
11
rust
null
Adyen
api::MandateSetup for
impl api::MandateSetup for for Adyen
null
null
null
null
null
null
null
null