text
string
file_path
string
module
string
type
string
tokens
int64
language
string
struct_name
string
type_name
string
trait_name
string
impl_type
string
function_name
string
source
string
section
string
keys
list
macro_type
string
url
string
title
string
chunk_index
int64
pub async fn get_attach_evidence_request( mut payload: Multipart, ) -> CustomResult<disputes::AttachEvidenceRequest, errors::ApiErrorResponse> { let mut option_evidence_type: Option<disputes::EvidenceType> = None; let mut dispute_id: Option<String> = None; let mut file_name: Option<String> = None; ...
crates/router/src/routes/disputes/utils.rs
router
function_signature
613
rust
null
null
null
null
get_attach_evidence_request
null
null
null
null
null
null
null
pub async fn insert_in_v2(self, state: &SessionState) -> UserResult<UserRole> { let entity = self.entity.clone(); let new_v2_role = self.convert_to_new_v2_role(entity.into()); state .global_store .insert_user_role(new_v2_role) .await .change_cont...
crates/router/src/types/domain/user.rs
router
function_signature
80
rust
null
null
null
null
insert_in_v2
null
null
null
null
null
null
null
impl api::MandateSetup for Redsys {}
crates/hyperswitch_connectors/src/connectors/redsys.rs
hyperswitch_connectors
impl_block
11
rust
null
Redsys
api::MandateSetup for
impl api::MandateSetup for for Redsys
null
null
null
null
null
null
null
null
impl Adyen { pub const fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, amount_converter_webhooks: &StringMinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/adyen.rs
hyperswitch_connectors
impl_block
47
rust
null
Adyen
null
impl Adyen
null
null
null
null
null
null
null
null
impl ConnectorValidation for Payeezy {}
crates/hyperswitch_connectors/src/connectors/payeezy.rs
hyperswitch_connectors
impl_block
8
rust
null
Payeezy
ConnectorValidation for
impl ConnectorValidation for for Payeezy
null
null
null
null
null
null
null
null
impl Mandates { pub fn server(state: AppState) -> Scope { let mut route = web::scope("/mandates").app_data(web::Data::new(state)); #[cfg(feature = "olap")] { route = route.service(web::resource("/list").route(web::get().to(retrieve_mandates_list))); r...
crates/router/src/routes/app.rs
router
impl_block
144
rust
null
Mandates
null
impl Mandates
null
null
null
null
null
null
null
null
pub struct ChargebeeMandateDetails { pub customer_id: String, pub mandate_id: String, }
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
ChargebeeMandateDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct NodeId(usize);
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
struct_definition
7
rust
NodeId
null
null
null
null
null
null
null
null
null
null
null
pub struct ProphetpayRefundResponse { pub success: bool, pub response_text: String, pub tran_seq_number: Option<String>, }
crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
ProphetpayRefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct Shift4WebhookObjectId { #[serde(rename = "type")] pub event_type: Shift4WebhookEvent, pub data: Shift4WebhookObjectData, }
crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs
hyperswitch_connectors
struct_definition
39
rust
Shift4WebhookObjectId
null
null
null
null
null
null
null
null
null
null
null
pub struct EnhancedData { #[serde(skip_serializing_if = "Option::is_none")] pub customer_reference: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub sales_tax: Option<MinorUnit>, #[serde(skip_serializing_if = "Option::is_none")] pub tax_exempt: Option<bool>, #[serde(skip...
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
280
rust
EnhancedData
null
null
null
null
null
null
null
null
null
null
null
pub struct Relay { pub id: id_type::RelayId, pub connector_resource_id: String, pub connector_id: id_type::MerchantConnectorAccountId, pub profile_id: id_type::ProfileId, pub merchant_id: id_type::MerchantId, pub relay_type: enums::RelayType, pub request_data: Option<RelayData>, pub stat...
crates/hyperswitch_domain_models/src/relay.rs
hyperswitch_domain_models
struct_definition
183
rust
Relay
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MerchantConnectorId { "type": "object", "required": [ "merchant_id", "merchant_connector_id" ], "properties": { "merchant_id": { "type": "string" }, "merchant_connector_id": { "type": "string" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
78
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantConnectorId" ]
null
null
null
null
pub struct NoonApplePayPaymentMethod { pub display_name: String, pub network: String, #[serde(rename = "type")] pub pm_type: String, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
NoonApplePayPaymentMethod
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::UpdateDynamicRoutingConfigs; let routing_payload_wrapper = routing_types::SuccessBasedRoutingPayloadWrapper { updated_config: json_payload.into_inner(), algorithm_id: path.clone().algorithm_id, profile_id: path.clone().profile_id, }; Box::pin(oss...
crates/router/src/routes/routing.rs
router
impl_block
236
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct RoleNew { pub role_name: String, pub role_id: String, pub merchant_id: Option<id_type::MerchantId>, pub org_id: id_type::OrganizationId, #[diesel(deserialize_as = super::DieselArray<enums::PermissionGroup>)] pub groups: Vec<enums::PermissionGroup>, pub scope: enums::RoleScope, ...
crates/diesel_models/src/role.rs
diesel_models
struct_definition
149
rust
RoleNew
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Placetopay {}
crates/hyperswitch_connectors/src/connectors/placetopay.rs
hyperswitch_connectors
impl_block
11
rust
null
Placetopay
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Placetopay
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RequiredFieldInfo { "type": "object", "description": "Required fields info used while listing the payment_method_data", "required": [ "required_field", "display_name", "field_type" ], "properties": { "required_field": { "type": "string", "desc...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
169
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RequiredFieldInfo" ]
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/api_keys/{merchant_id}") .app_data(web::Data::new(state)) .service(web::resource("").route(web::post().to(api_keys::api_key_create))) .service(web::resource("/list").route(web::get().to(api_keys::api_key_list))) ...
crates/router/src/routes/app.rs
router
function_signature
137
rust
null
null
null
null
server
null
null
null
null
null
null
null
impl IncomingWebhook for Prophetpay { fn get_webhook_object_reference_id( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented)) } fn get_webhook_event_type(...
crates/hyperswitch_connectors/src/connectors/prophetpay.rs
hyperswitch_connectors
impl_block
185
rust
null
Prophetpay
IncomingWebhook for
impl IncomingWebhook for for Prophetpay
null
null
null
null
null
null
null
null
pub fn create_config(self, source: Config) -> Config { Config { ..source } }
crates/diesel_models/src/configs.rs
diesel_models
function_signature
21
rust
null
null
null
null
create_config
null
null
null
null
null
null
null
pub struct Multisafepay { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/multisafepay.rs
hyperswitch_connectors
struct_definition
29
rust
Multisafepay
null
null
null
null
null
null
null
null
null
null
null
impl Capturable for SetupMandateRequestData {}
crates/router/src/types.rs
router
impl_block
11
rust
null
SetupMandateRequestData
Capturable for
impl Capturable for for SetupMandateRequestData
null
null
null
null
null
null
null
null
pub struct Vgs;
crates/hyperswitch_connectors/src/connectors/vgs.rs
hyperswitch_connectors
struct_definition
5
rust
Vgs
null
null
null
null
null
null
null
null
null
null
null
pub struct OrganizationResponse { /// The unique identifier for the Organization #[schema(value_type = String, max_length = 64, min_length = 1, example = "org_q98uSGAYbjEwqs0mJwnz")] pub organization_id: id_type::OrganizationId, /// Name of the Organization pub organization_name: Option<String>, ...
crates/api_models/src/organization.rs
api_models
struct_definition
208
rust
OrganizationResponse
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for UnifiedAuthenticationService { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::We...
crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs
hyperswitch_connectors
impl_block
211
rust
null
UnifiedAuthenticationService
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for UnifiedAuthenticationService
null
null
null
null
null
null
null
null
pub struct AuthorizedotnetPaymentCancelOrCaptureRequest { merchant_authentication: AuthorizedotnetAuthType, transaction_request: TransactionVoidOrCaptureRequest, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
AuthorizedotnetPaymentCancelOrCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
/// A trait which converts the struct to Hashmap required for encryption and back to struct pub trait ToEncryptable<T, S: Clone, E>: Sized { /// Serializes the type to a hashmap fn to_encryptable(self) -> FxHashMap<String, E>; /// Deserializes the hashmap back to the type fn from_encryptable( ha...
crates/common_utils/src/types/keymanager.rs
common_utils
trait_definition
101
rust
null
null
ToEncryptable
null
null
null
null
null
null
null
null
null
pub async fn generic_find_one_optional<T, P, R>( conn: &PgPooledConn, predicate: P, ) -> StorageResult<Option<R>> where T: FilterDsl<P> + HasTable<Table = T> + Table + 'static, Filter<T, P>: LoadQuery<'static, PgConnection, R> + QueryFragment<Pg> + Send + 'static, R: Send + 'static, { to_optiona...
crates/diesel_models/src/query/generics.rs
diesel_models
function_signature
116
rust
null
null
null
null
generic_find_one_optional
null
null
null
null
null
null
null
pub struct ThreedsecureioPreAuthenticationResponseData { pub ds_start_protocol_version: String, pub ds_end_protocol_version: String, pub acs_start_protocol_version: String, pub acs_end_protocol_version: String, #[serde(rename = "threeDSMethodURL")] pub threeds_method_url: Option<String>, #[s...
crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs
hyperswitch_connectors
struct_definition
111
rust
ThreedsecureioPreAuthenticationResponseData
null
null
null
null
null
null
null
null
null
null
null
impl VaultingInterface for AddVault { fn get_vaulting_request_url() -> &'static str { consts::ADD_VAULT_REQUEST_URL } fn get_vaulting_flow_name() -> &'static str { consts::VAULT_ADD_FLOW_TYPE } }
crates/router/src/types/payment_methods.rs
router
impl_block
60
rust
null
AddVault
VaultingInterface for
impl VaultingInterface for for AddVault
null
null
null
null
null
null
null
null
pub async fn add_external_account_addition_task( db: &dyn StorageInterface, payout_data: &PayoutData, schedule_time: time::PrimitiveDateTime, ) -> CustomResult<(), errors::StorageError> { let runner = storage::ProcessTrackerRunner::AttachPayoutAccountWorkflow; let task = "STRPE_ATTACH_EXTERNAL_ACCOU...
crates/router/src/core/payouts.rs
router
function_signature
268
rust
null
null
null
null
add_external_account_addition_task
null
null
null
null
null
null
null
impl<'a> NetworkTokenizationBuilder<'a, CustomerAssigned> { pub fn get_optional_card_and_cvc( &self, ) -> (Option<domain::CardDetail>, Option<masking::Secret<String>>) { (self.card.clone(), self.card_cvc.clone()) } pub fn set_token_details( self, network_token: &'a Networ...
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
impl_block
208
rust
null
NetworkTokenizationBuilder
null
impl NetworkTokenizationBuilder
null
null
null
null
null
null
null
null
pub fn set_shipping_data(mut self, address: Option<&Address>) -> Result<Self, Error> { self.shipping_data = address .and_then(|address| { address.address.as_ref().map(|address_details| { let state = address_details .get_optional_state() ...
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
function_signature
229
rust
null
null
null
null
set_shipping_data
null
null
null
null
null
null
null
pub async fn reset_password( state: web::Data<AppState>, req: HttpRequest, payload: web::Json<user_api::ResetPasswordRequest>, ) -> HttpResponse { let flow = Flow::ResetPassword; Box::pin(api::server_wrap( flow, state.clone(), &req, payload.into_inner(), |stat...
crates/router/src/routes/user.rs
router
function_signature
128
rust
null
null
null
null
reset_password
null
null
null
null
null
null
null
pub struct BankOfAmericaServerErrorResponse { pub status: Option<String>, pub message: Option<String>, pub reason: Option<Reason>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
BankOfAmericaServerErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn build_filter_array( &self, case_sensitive_filters: Vec<&(String, Vec<Value>)
crates/analytics/src/opensearch.rs
analytics
function_signature
23
rust
null
null
null
null
build_filter_array
null
null
null
null
null
null
null
pub struct AciWebhookRiskDetails { pub score: Option<String>, }
crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
AciWebhookRiskDetails
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Tsys { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&TSYS_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*TSYS_SUPPORTED_PAYMENT_METHODS) } fn get_supported_web...
crates/hyperswitch_connectors/src/connectors/tsys.rs
hyperswitch_connectors
impl_block
105
rust
null
Tsys
ConnectorSpecifications for
impl ConnectorSpecifications for for Tsys
null
null
null
null
null
null
null
null
pub struct RiskifiedPaymentsResponse { order: OrderResponse, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
14
rust
RiskifiedPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Volt {}
crates/hyperswitch_connectors/src/connectors/volt.rs
hyperswitch_connectors
impl_block
8
rust
null
Volt
api::PaymentSync for
impl api::PaymentSync for for Volt
null
null
null
null
null
null
null
null
File: crates/router/src/routes/connector_onboarding.rs Public functions: 3 use actix_web::{web, HttpRequest, HttpResponse}; use api_models::connector_onboarding as api_types; use router_env::Flow; use super::AppState; use crate::{ core::{api_locking, connector_onboarding as core}, services::{api, authenticat...
crates/router/src/routes/connector_onboarding.rs
router
full_file
481
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_info( state: web::Data<AppState>, req: actix_web::HttpRequest, domain: web::Path<analytics::AnalyticsDomain>, ) -> impl Responder { let flow = AnalyticsFlow::GetInfo; Box::pin(api::server_wrap( flow, state, &req, ...
crates/router/src/analytics.rs
router
function_signature
143
rust
null
null
null
null
get_info
null
null
null
null
null
null
null
pub async fn upsert_payment_processor_token( state: &SessionState, connector_customer_id: &str, token_data: PaymentProcessorTokenStatus, ) -> CustomResult<bool, errors::StorageError> { let mut token_map = Self::get_connector_customer_payment_processor_tokens(state, connec...
crates/router/src/types/storage/revenue_recovery_redis_operation.rs
router
function_signature
316
rust
null
null
null
null
upsert_payment_processor_token
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentMethodCreateData { "oneOf": [ { "type": "object", "required": [ "card" ], "properties": { "card": { "$ref": "#/components/schemas/CardDetail" } } } ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
71
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentMethodCreateData" ]
null
null
null
null
pub async fn profile_payments_list() {}
crates/openapi/src/routes/payments.rs
openapi
function_signature
8
rust
null
null
null
null
profile_payments_list
null
null
null
null
null
null
null
pub struct ServiceDetails { 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
27
rust
ServiceDetails
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/metrics/request.rs Public functions: 1 #[inline] pub async fn record_operation_time<F, R, T>( future: F, metric: &router_env::opentelemetry::metrics::Histogram<f64>, metric_name: &T, source: &crate::AnalyticsProvider, ) -> R where F: futures::Future<Output = R>, T: T...
crates/analytics/src/metrics/request.rs
analytics
full_file
188
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TokenizedBankTransferValue2 { pub customer_id: Option<id_type::CustomerId>, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
22
rust
TokenizedBankTransferValue2
null
null
null
null
null
null
null
null
null
null
null
pub struct PayRequest { buyer_name: Secret<String>, buyer_email: pii::Email, payme_sale_id: String, #[serde(flatten)] card: PaymeCard, language: String, }
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
47
rust
PayRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Bluesnap {}
crates/hyperswitch_connectors/src/connectors/bluesnap.rs
hyperswitch_connectors
impl_block
10
rust
null
Bluesnap
api::RefundSync for
impl api::RefundSync for for Bluesnap
null
null
null
null
null
null
null
null
pub struct AddCardRequest { pub card_number: cards::CardNumber, pub customer_id: id_type::CustomerId, pub card_exp_month: Secret<String>, pub card_exp_year: Secret<String>, pub merchant_id: id_type::MerchantId, pub email_address: Option<Email>, pub name_on_card: Option<Secret<String>>, p...
crates/router/src/core/payment_methods/transformers.rs
router
struct_definition
83
rust
AddCardRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn payment_start_redirection( state: SessionState, merchant_context: domain::MerchantContext, req: api_models::payments::PaymentStartRedirectionRequest, ) -> RouterResponse<serde_json::Value> { let db = &*state.store; let key_manager_state = &(&state).into(); let storage_scheme = merc...
crates/router/src/core/payments.rs
router
function_signature
464
rust
null
null
null
null
payment_start_redirection
null
null
null
null
null
null
null
pub struct MandateRevoke;
crates/hyperswitch_domain_models/src/router_flow_types/mandate_revoke.rs
hyperswitch_domain_models
struct_definition
7
rust
MandateRevoke
null
null
null
null
null
null
null
null
null
null
null
pub struct Riskified { #[cfg(feature = "frm")] amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/riskified.rs
hyperswitch_connectors
struct_definition
35
rust
Riskified
null
null
null
null
null
null
null
null
null
null
null
impl Capturable for SdkPaymentsSessionUpdateData {}
crates/router/src/types.rs
router
impl_block
11
rust
null
SdkPaymentsSessionUpdateData
Capturable for
impl Capturable for for SdkPaymentsSessionUpdateData
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Bamboraapac {}
crates/hyperswitch_connectors/src/connectors/bamboraapac.rs
hyperswitch_connectors
impl_block
12
rust
null
Bamboraapac
api::PaymentCapture for
impl api::PaymentCapture for for Bamboraapac
null
null
null
null
null
null
null
null
File: crates/router_env/src/env.rs Public functions: 3 //! Information about the current environment. use std::path::PathBuf; use serde::{Deserialize, Serialize}; /// Environment variables accessed by the application. This module aims to be the source of truth /// containing all environment variable that the appli...
crates/router_env/src/env.rs
router_env
full_file
1,201
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Adyenplatform {}
crates/hyperswitch_connectors/src/connectors/adyenplatform.rs
hyperswitch_connectors
impl_block
10
rust
null
Adyenplatform
api::PaymentVoid for
impl api::PaymentVoid for for Adyenplatform
null
null
null
null
null
null
null
null
pub async fn client_secret_create( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<api_models::ephemeral_key::ClientSecretCreateRequest>, ) -> HttpResponse { let flow = Flow::EphemeralKeyCreate; let payload = json_payload.into_inner(); Box::pin(api::server_wrap( flo...
crates/router/src/routes/ephemeral_key.rs
router
function_signature
208
rust
null
null
null
null
client_secret_create
null
null
null
null
null
null
null
impl UnifiedTranslations { pub async fn find_by_unified_code_unified_message_locale( conn: &PgPooledConn, unified_code: String, unified_message: String, locale: String, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( c...
crates/diesel_models/src/query/unified_translations.rs
diesel_models
impl_block
419
rust
null
UnifiedTranslations
null
impl UnifiedTranslations
null
null
null
null
null
null
null
null
pub(crate) async fn get_payment_method_create_request( payment_method_data: Option<&domain::PaymentMethodData>, payment_method: Option<storage_enums::PaymentMethod>, payment_method_type: Option<storage_enums::PaymentMethodType>, customer_id: &Option<id_type::CustomerId>, billing_name: Option<Secret<...
crates/router/src/core/payment_methods.rs
router
function_signature
707
rust
null
null
null
null
get_payment_method_create_request
null
null
null
null
null
null
null
pub struct Rapyd { amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), amount_converter_webhooks: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/rapyd.rs
hyperswitch_connectors
struct_definition
51
rust
Rapyd
null
null
null
null
null
null
null
null
null
null
null
pub struct GrpcHeaders { /// Tenant id pub tenant_id: String, /// Request id pub request_id: Option<String>, }
crates/external_services/src/grpc_client.rs
external_services
struct_definition
32
rust
GrpcHeaders
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentAttemptUpdateMems { pub orig: PaymentAttempt, pub update_data: PaymentAttemptUpdate, }
crates/diesel_models/src/kv.rs
diesel_models
struct_definition
25
rust
PaymentAttemptUpdateMems
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Adyenplatform {}
crates/hyperswitch_connectors/src/connectors/adyenplatform.rs
hyperswitch_connectors
impl_block
10
rust
null
Adyenplatform
api::PaymentSync for
impl api::PaymentSync for for Adyenplatform
null
null
null
null
null
null
null
null
pub async fn find_by_user_id(conn: &PgPooledConn, user_id: &str) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::user_id.eq(user_id.to_owned()), ) .await }
crates/diesel_models/src/query/user_key_store.rs
diesel_models
function_signature
68
rust
null
null
null
null
find_by_user_id
null
null
null
null
null
null
null
impl Health { pub fn server(conf: Settings, stores: HashMap<id_type::TenantId, Arc<Store>>) -> Scope { web::scope("health") .app_data(web::Data::new(conf)) .app_data(web::Data::new(stores)) .service(web::resource("").route(web::get().to(health))) .service(web:...
crates/drainer/src/health_check.rs
drainer
impl_block
97
rust
null
Health
null
impl Health
null
null
null
null
null
null
null
null
/// Emit the event. pub fn try_emit(self) -> Result<(), EventsError> { let ts = self.event.timestamp(); let metadata = self.event.metadata(); self.message_sink .send_message(FlatMapEvent(self.metadata, self.event), metadata, ts) }
crates/events/src/lib.rs
events
function_signature
60
rust
null
null
null
null
try_emit
null
null
null
null
null
null
null
pub struct NetceteraPreAuthenticationResponseData { #[serde(rename = "threeDSServerTransID")] pub three_ds_server_trans_id: String, pub card_ranges: Vec<CardRange>, }
crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
NetceteraPreAuthenticationResponseData
null
null
null
null
null
null
null
null
null
null
null
pub struct NetworkRetryConfig { pub max_retries_per_day: i32, pub max_retry_count_for_thirty_day: i32, }
crates/router/src/types/storage/revenue_recovery.rs
router
struct_definition
33
rust
NetworkRetryConfig
null
null
null
null
null
null
null
null
null
null
null
File: crates/common_types/src/refunds.rs Public structs: 1 //! Refund related types use common_utils::impl_to_sql_from_sql_json; use diesel::{sql_types::Jsonb, AsExpression, FromSqlRow}; use serde::{Deserialize, Serialize}; use utoipa::ToSchema; use crate::domain::{AdyenSplitData, XenditSplitSubMerchantData}; #[de...
crates/common_types/src/refunds.rs
common_types
full_file
416
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn construct_post_authentication_router_data( state: &SessionState, authentication_connector: String, business_profile: domain::Profile, merchant_connector_account: payments_helpers::MerchantConnectorAccountType, authentication_data: &storage::Authentication, payment_id: &common_utils::id_ty...
crates/router/src/core/authentication/transformers.rs
router
function_signature
210
rust
null
null
null
null
construct_post_authentication_router_data
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RefundType { "type": "string", "description": "To indicate whether to refund needs to be instant or scheduled", "enum": [ "scheduled", "instant" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
53
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RefundType" ]
null
null
null
null
pub struct PazeWalletData { pub complete_response: Secret<String>, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
16
rust
PazeWalletData
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Airwallex {}
crates/hyperswitch_connectors/src/connectors/airwallex.rs
hyperswitch_connectors
impl_block
11
rust
null
Airwallex
api::RefundSync for
impl api::RefundSync for for Airwallex
null
null
null
null
null
null
null
null
pub struct GocardlessMandateResponse { mandates: MandateResponse, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
GocardlessMandateResponse
null
null
null
null
null
null
null
null
null
null
null
impl ConfigNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Config> { generics::generic_insert(conn, self).await } }
crates/diesel_models/src/query/configs.rs
diesel_models
impl_block
40
rust
null
ConfigNew
null
impl ConfigNew
null
null
null
null
null
null
null
null
pub struct Initiator { merchant_initiated_transaction: Option<MerchantInitiatedTransactionResponse>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
Initiator
null
null
null
null
null
null
null
null
null
null
null
pub struct NmiRedirectResponseData { cavv: Option<String>, xid: Option<String>, eci: Option<String>, card_holder_auth: Option<String>, three_ds_version: Option<String>, order_id: Option<String>, directory_server_id: Option<Secret<String>>, customer_vault_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
hyperswitch_connectors
struct_definition
72
rust
NmiRedirectResponseData
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AmountInfo { "type": "object", "required": [ "label", "amount" ], "properties": { "label": { "type": "string", "description": "The label must be the name of the merchant." }, "type": { "type": "string", "description": "A value th...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
173
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AmountInfo" ]
null
null
null
null
File: crates/router_env/src/lib.rs #![warn(missing_debug_implementations)] //! Environment of payment router: logger, basic config, its environment awareness. #![doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR" ), "/", "README.md"))] /// Utilities to identify members of the current cargo workspace. pub mod carg...
crates/router_env/src/lib.rs
router_env
full_file
172
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Multisafepay {}
crates/hyperswitch_connectors/src/connectors/multisafepay.rs
hyperswitch_connectors
impl_block
12
rust
null
Multisafepay
api::PaymentSync for
impl api::PaymentSync for for Multisafepay
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ApplePayRegularBillingRequest { "type": "object", "required": [ "amount", "label", "payment_timing" ], "properties": { "amount": { "type": "string", "description": "The amount of the recurring payment", "example": "38.02" }, "label...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
332
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ApplePayRegularBillingRequest" ]
null
null
null
null
pub fn is_refund_event(event_code: &AirwallexWebhookEventType) -> bool { matches!( event_code, AirwallexWebhookEventType::RefundSucceeded | AirwallexWebhookEventType::RefundFailed ) }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
function_signature
54
rust
null
null
null
null
is_refund_event
null
null
null
null
null
null
null
pub struct ValuedIfStatement { pub condition: ValuedIfCondition, pub nested: Option<Vec<ValuedIfStatement>>, }
crates/euclid/src/frontend/vir.rs
euclid
struct_definition
29
rust
ValuedIfStatement
null
null
null
null
null
null
null
null
null
null
null
pub async fn merchant_account_transfer_keys( state: web::Data<AppState>, req: HttpRequest, payload: web::Json<api_models::admin::MerchantKeyTransferRequest>, ) -> HttpResponse { let flow = Flow::ConfigKeyFetch; Box::pin(api::server_wrap( flow, state, &req, payload.int...
crates/router/src/routes/admin.rs
router
function_signature
122
rust
null
null
null
null
merchant_account_transfer_keys
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/katapult/transformers.rs Public structs: 8 use common_enums::enums; use common_utils::types::StringMinorUnit; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router_flow_types::refunds...
crates/hyperswitch_connectors/src/connectors/katapult/transformers.rs
hyperswitch_connectors
full_file
1,657
null
null
null
null
null
null
null
null
null
null
null
null
null
pub trait OutgoingWebhookEventMetric { fn get_outgoing_webhook_event_content(&self) -> Option<OutgoingWebhookEventContent>; }
crates/router/src/events/outgoing_webhook_logs.rs
router
trait_definition
32
rust
null
null
OutgoingWebhookEventMetric
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Authipay {}
crates/hyperswitch_connectors/src/connectors/authipay.rs
hyperswitch_connectors
impl_block
9
rust
null
Authipay
api::PaymentSession for
impl api::PaymentSession for for Authipay
null
null
null
null
null
null
null
null
pub struct ResponsePaymentMethodTypes { /// The payment method type enabled #[schema(example = "pay_later", value_type = PaymentMethod)] pub payment_method_type: common_enums::PaymentMethod, /// The payment method subtype enabled #[schema(example = "klarna", value_type = PaymentMethodType)] pub...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
155
rust
ResponsePaymentMethodTypes
null
null
null
null
null
null
null
null
null
null
null
pub struct TokenizedBankInsensitiveValues { pub customer_id: Option<id_type::CustomerId>, pub bank_name: Option<String>, pub bank_country_code: Option<api::enums::CountryAlpha2>, pub bank_city: Option<String>, pub bank_branch: Option<String>, }
crates/router/src/core/payment_methods/vault.rs
router
struct_definition
61
rust
TokenizedBankInsensitiveValues
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Aci {}
crates/hyperswitch_connectors/src/connectors/aci.rs
hyperswitch_connectors
impl_block
9
rust
null
Aci
api::PaymentCapture for
impl api::PaymentCapture for for Aci
null
null
null
null
null
null
null
null
pub struct PayoutAttemptUpdateInternal { pub payout_token: Option<String>, pub connector_payout_id: Option<String>, pub status: Option<storage_enums::PayoutStatus>, pub error_message: Option<String>, pub error_code: Option<String>, pub is_eligible: Option<bool>, pub business_country: Option<...
crates/hyperswitch_domain_models/src/payouts/payout_attempt.rs
hyperswitch_domain_models
struct_definition
184
rust
PayoutAttemptUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
File: crates/router_env/build.rs mod vergen { include!("src/vergen.rs"); } mod cargo_workspace { include!("src/cargo_workspace.rs"); } fn main() { vergen::generate_cargo_instructions(); cargo_workspace::verify_cargo_metadata_format(); cargo_workspace::set_cargo_workspace_members_env(); }
crates/router_env/build.rs
router_env
full_file
71
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct UpdateUserAccountDetailsRequest { pub name: Option<Secret<String>>, }
crates/api_models/src/user.rs
api_models
struct_definition
18
rust
UpdateUserAccountDetailsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct Poll;
crates/router/src/routes/app.rs
router
struct_definition
4
rust
Poll
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_by_address_id(conn: &PgPooledConn, address_id: &str) -> StorageResult<Self> { generics::generic_find_by_id::<<Self as HasTable>::Table, _, _>(conn, address_id.to_owned()) .await }
crates/diesel_models/src/query/address.rs
diesel_models
function_signature
59
rust
null
null
null
null
find_by_address_id
null
null
null
null
null
null
null
pub struct RedirectionFormData { pub redirect_form: crate::router_response_types::RedirectForm, pub payment_method_data: Option<PaymentMethodData>, pub amount: String, pub currency: String, }
crates/hyperswitch_domain_models/src/api.rs
hyperswitch_domain_models
struct_definition
45
rust
RedirectionFormData
null
null
null
null
null
null
null
null
null
null
null
impl NetAmount { pub fn new( order_amount: MinorUnit, shipping_cost: Option<MinorUnit>, order_tax_amount: Option<MinorUnit>, surcharge_amount: Option<MinorUnit>, tax_on_surcharge: Option<MinorUnit>, ) -> Self { Self { order_amount, shipping...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
impl_block
945
rust
null
NetAmount
null
impl NetAmount
null
null
null
null
null
null
null
null