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
impl ConnectorCommon for Signifyd { fn id(&self) -> &'static str { "signifyd" } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.signifyd.base_url.as_ref() } #[cfg(fea...
crates/hyperswitch_connectors/src/connectors/signifyd.rs
hyperswitch_connectors
impl_block
416
rust
null
Signifyd
ConnectorCommon for
impl ConnectorCommon for for Signifyd
null
null
null
null
null
null
null
null
connectors::Tsys, connectors::UnifiedAuthenticationService, connectors::Wise, connectors::Worldline, connectors::Worldpay, connectors::Worldpayvantiv, connectors::Worldpayxml, connectors::Wellsfargo, connectors::Wellsfargopayout, connectors::Volt, connectors::Xendit, conn...
crates/hyperswitch_connectors/src/default_implementations.rs#chunk4
hyperswitch_connectors
chunk
8,192
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ResultsResponseData { /// Universally unique transaction identifier assigned by the 3DS Server to identify a single transaction. /// It has the same value as the authentication request and conforms to the format defined in IETF RFC 4122. #[serde(rename = "threeDSServerTransID")] pub three_ds_...
crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
hyperswitch_connectors
struct_definition
432
rust
ResultsResponseData
null
null
null
null
null
null
null
null
null
null
null
pub struct BankOfAmericaRsyncResponse { id: String, application_information: Option<RsyncApplicationInformation>, error_information: Option<BankOfAmericaErrorInformation>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
BankOfAmericaRsyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct SurchargeDetailsOutput { pub surcharge: SurchargeOutput, pub tax_on_surcharge: Option<Percentage<SURCHARGE_PERCENTAGE_PRECISION_LENGTH>>, }
crates/api_models/src/surcharge_decision_configs.rs
api_models
struct_definition
37
rust
SurchargeDetailsOutput
null
null
null
null
null
null
null
null
null
null
null
pub struct DisputeListConstraints { pub dispute_id: Option<String>, pub payment_id: Option<common_utils::id_type::PaymentId>, pub limit: Option<u32>, pub offset: Option<u32>, pub profile_id: Option<Vec<common_utils::id_type::ProfileId>>, pub dispute_status: Option<Vec<common_enums::DisputeStatus...
crates/hyperswitch_domain_models/src/disputes.rs
hyperswitch_domain_models
struct_definition
160
rust
DisputeListConstraints
null
null
null
null
null
null
null
null
null
null
null
pub struct CapturePaymentData { #[serde(rename = "merchant-account-id")] pub merchant_account_id: MerchantAccountId, #[serde(rename = "request-id")] pub request_id: String, #[serde(rename = "transaction-type")] pub transaction_type: GetnetTransactionType, #[serde(rename = "parent-transaction...
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
126
rust
CapturePaymentData
null
null
null
null
null
null
null
null
null
null
null
impl FraudCheckInterface for KafkaStore { async fn insert_fraud_check_response( &self, new: storage::FraudCheckNew, ) -> CustomResult<FraudCheck, StorageError> { let frm = self.diesel_store.insert_fraud_check_response(new).await?; if let Err(er) = self .kafka_producer...
crates/router/src/db.rs
router
impl_block
602
rust
null
KafkaStore
FraudCheckInterface for
impl FraudCheckInterface for for KafkaStore
null
null
null
null
null
null
null
null
pub fn get_min_entity( user_entity: EntityType, filter_entity: Option<EntityType>, ) -> UserResult<EntityType> { let Some(filter_entity) = filter_entity else { return Ok(user_entity); }; if user_entity < filter_entity { return Err(report!(UserErrors::InvalidRoleOperation)).attach_pr...
crates/router/src/utils/user_role.rs
router
function_signature
105
rust
null
null
null
null
get_min_entity
null
null
null
null
null
null
null
/// Get all the variants of a enum in the form of a string pub fn get_possible_values_for_enum<T>() -> String where T: strum::IntoEnumIterator + ToString, { T::iter() .map(|variants| variants.to_string()) .collect::<Vec<_>>() .join(", ") }
crates/router_derive/src/macros/helpers.rs
router_derive
function_signature
71
rust
null
null
null
null
get_possible_values_for_enum
null
null
null
null
null
null
null
impl MerchantAccountCreate { pub fn get_merchant_reference_id(&self) -> id_type::MerchantId { id_type::MerchantId::from_merchant_name(self.merchant_name.clone().expose()) } pub fn get_merchant_details_as_secret( &self, ) -> CustomResult<Option<pii::SecretSerdeValue>, errors::ParsingErro...
crates/api_models/src/admin.rs
api_models
impl_block
225
rust
null
MerchantAccountCreate
null
impl MerchantAccountCreate
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/adyenplatform.rs
crates/router/tests/connectors/adyenplatform.rs
router
full_file
13
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PayoutFulfill for Stripe {}
crates/hyperswitch_connectors/src/connectors/stripe.rs
hyperswitch_connectors
impl_block
10
rust
null
Stripe
api::PayoutFulfill for
impl api::PayoutFulfill for for Stripe
null
null
null
null
null
null
null
null
pub async fn customer_delete( state: web::Data<routes::AppState>, req: HttpRequest, path: web::Path<id_type::CustomerId>, ) -> HttpResponse { let customer_id = path.into_inner(); let flow = Flow::CustomersDelete; Box::pin(wrap::compatibility_api_wrap::< _, _, _, ...
crates/router/src/compatibility/stripe/customers.rs
router
function_signature
227
rust
null
null
null
null
customer_delete
null
null
null
null
null
null
null
impl RoutingApproach { pub fn from_decision_engine_approach(approach: &str) -> Self { match approach { "SR_SELECTION_V3_ROUTING" => Self::Exploitation, "SR_V3_HEDGING" => Self::Exploration, _ => Self::Default, } } }
crates/api_models/src/routing.rs
api_models
impl_block
69
rust
null
RoutingApproach
null
impl RoutingApproach
null
null
null
null
null
null
null
null
/// Perform health check for all services involved pub async fn perform_health_check( &self, config: &GrpcClientSettings, ) -> HealthCheckResult<HealthCheckMap> { let dynamic_routing_config = &config.dynamic_routing_client; let connection = match dynamic_routing_config { ...
crates/external_services/src/grpc_client/health_check_client.rs
external_services
function_signature
333
rust
null
null
null
null
perform_health_check
null
null
null
null
null
null
null
pub trait ApiModelToDieselModelConvertor<F> { /// Convert from a foreign type to the current type fn convert_from(from: F) -> Self; fn convert_back(self) -> F; }
crates/hyperswitch_domain_models/src/lib.rs
hyperswitch_domain_models
trait_definition
46
rust
null
null
ApiModelToDieselModelConvertor
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Sift { fn id(&self) -> &'static str { "sift" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor // TODO! Check connector documentation, on which unit they are processing the currency. // If the connector accepts amoun...
crates/hyperswitch_connectors/src/connectors/sift.rs
hyperswitch_connectors
impl_block
458
rust
null
Sift
ConnectorCommon for
impl ConnectorCommon for for Sift
null
null
null
null
null
null
null
null
pub async fn trigger_refund_to_gateway( state: &SessionState, refund: &diesel_refund::Refund, merchant_context: &domain::MerchantContext, payment_attempt: &storage::PaymentAttempt, payment_intent: &storage::PaymentIntent, creds_identifier: Option<String>, split_refunds: Option<SplitRefundsRe...
crates/router/src/core/refunds.rs
router
function_signature
2,124
rust
null
null
null
null
trigger_refund_to_gateway
null
null
null
null
null
null
null
pub async fn find_resource_by_id<D, R, M>( &self, state: &KeyManagerState, key_store: &MerchantKeyStore, storage_scheme: MerchantStorageScheme, find_resource_db_fut: R, find_by: FindResourceBy<'_>, ) -> error_stack::Result<D, errors::StorageError> where D:...
crates/storage_impl/src/kv_router_store.rs
storage_impl
function_signature
461
rust
null
null
null
null
find_resource_by_id
null
null
null
null
null
null
null
impl super::disputes::metrics::DisputeMetricAnalytics for ClickhouseClient {}
crates/analytics/src/clickhouse.rs
analytics
impl_block
18
rust
null
ClickhouseClient
super::disputes::metrics::DisputeMetricAnalytics for
impl super::disputes::metrics::DisputeMetricAnalytics for for ClickhouseClient
null
null
null
null
null
null
null
null
pub async fn get_eligibility_status(&self) -> RouterResult<api::PayPalOnboardingStatus> { Ok(self .check_payments_receivable() .or(self.check_email_confirmation()) .or(self.check_ppcp_custom_status()) .unwrap_or(api::PayPalOnboardingStatus::Success( ...
crates/router/src/types/api/connector_onboarding/paypal.rs
router
function_signature
94
rust
null
null
null
null
get_eligibility_status
null
null
null
null
null
null
null
pub async fn customer_create( state: web::Data<routes::AppState>, qs_config: web::Data<serde_qs::Config>, req: HttpRequest, form_payload: web::Bytes, ) -> HttpResponse { let payload: types::CreateCustomerRequest = match qs_config.deserialize_bytes(&form_payload) { Ok(p) => p, Err(err...
crates/router/src/compatibility/stripe/customers.rs
router
function_signature
299
rust
null
null
null
null
customer_create
null
null
null
null
null
null
null
impl Thunes { pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/thunes.rs
hyperswitch_connectors
impl_block
34
rust
null
Thunes
null
impl Thunes
null
null
null
null
null
null
null
null
/// Hollow implementation, for windows compatibility pub fn close(self) {}
crates/common_utils/src/signals.rs
common_utils
function_signature
15
rust
null
null
null
null
close
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.BankHolderType { "type": "string", "enum": [ "personal", "business" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
37
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "BankHolderType" ]
null
null
null
null
impl api::PaymentSync for Moneris {}
crates/hyperswitch_connectors/src/connectors/moneris.rs
hyperswitch_connectors
impl_block
10
rust
null
Moneris
api::PaymentSync for
impl api::PaymentSync for for Moneris
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Stripebilling { fn get_webhook_source_verification_algorithm( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn common_utils::crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(common_utils:...
crates/hyperswitch_connectors/src/connectors/stripebilling.rs
hyperswitch_connectors
impl_block
1,383
rust
null
Stripebilling
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Stripebilling
null
null
null
null
null
null
null
null
Self(data) } } impl Default for PaymentCaptureType { fn default() -> Self { Self(types::PaymentsCaptureData { amount_to_capture: 100, currency: enums::Currency::USD, connector_transaction_id: "".to_string(), payment_amount: 100, ..Defa...
crates/router/tests/connectors/utils.rs#chunk1
router
chunk
1,512
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/payload/transformers.rs Public structs: 3 use std::collections::HashMap; use api_models::webhooks::IncomingWebhookEvent; use common_enums::enums; use common_utils::{ext_traits::ValueExt, types::StringMajorUnit}; use error_stack::ResultExt; use hyperswitch_domain_mod...
crates/hyperswitch_connectors/src/connectors/payload/transformers.rs
hyperswitch_connectors
full_file
3,445
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Metadata { pub order_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
Metadata
null
null
null
null
null
null
null
null
null
null
null
impl CrmInterface for HubspotProxyConfig { async fn make_body(&self, details: CrmPayload) -> RequestContent { RequestContent::FormUrlEncoded(Box::new(HubspotRequest::new( details.business_country_name.unwrap_or_default(), self.form_id.clone(), details.poc_name.unwrap_or_d...
crates/external_services/src/crm.rs
external_services
impl_block
246
rust
null
HubspotProxyConfig
CrmInterface for
impl CrmInterface for for HubspotProxyConfig
null
null
null
null
null
null
null
null
pub struct NuveiWebhookTransactionId { #[serde(rename = "ppp_TransactionID")] pub ppp_transaction_id: String, }
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
NuveiWebhookTransactionId
null
null
null
null
null
null
null
null
null
null
null
pub struct LineItem { price: StringMajorUnit, quantity: i32, title: String, product_type: Option<common_enums::ProductType>, requires_shipping: Option<bool>, product_id: Option<String>, category: Option<String>, brand: Option<String>, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
64
rust
LineItem
null
null
null
null
null
null
null
null
null
null
null
} impl<DB> Queryable<sql_types::Text, DB> for StatementDescriptor where DB: Backend, Self: FromSql<sql_types::Text, DB>, { type Row = Self; fn build(row: Self::Row) -> deserialize::Result<Self> { Ok(row) } } impl<DB> FromSql<sql_types::Text, DB> for StatementDescriptor where DB: Backe...
crates/common_utils/src/types.rs#chunk1
common_utils
chunk
3,065
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CustomerResponseObject { customer_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
CustomerResponseObject
null
null
null
null
null
null
null
null
null
null
null
pub struct TokenizedBankDebitValue1 { pub data: BankDebitData, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
20
rust
TokenizedBankDebitValue1
null
null
null
null
null
null
null
null
null
null
null
pub async fn generic_update_by_id<T, V, Pk, R>( conn: &PgPooledConn, id: Pk, values: V, ) -> StorageResult<R> where T: FindDsl<Pk> + HasTable<Table = T> + LimitDsl + Table + 'static, V: AsChangeset<Target = <Find<T, Pk> as HasTable>::Table> + Debug, Find<T, Pk>: IntoUpdateTarget + QueryFragment<...
crates/diesel_models/src/query/generics.rs
diesel_models
function_signature
552
rust
null
null
null
null
generic_update_by_id
null
null
null
null
null
null
null
pub struct NetworkTokenDetailsPaymentMethod { pub last4_digits: Option<String>, #[schema(value_type = Option<CountryAlpha2>)] pub issuer_country: Option<common_enums::CountryAlpha2>, #[schema(value_type = Option<String>)] pub network_token_expiry_month: Option<masking::Secret<String>>, #[schema(...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
215
rust
NetworkTokenDetailsPaymentMethod
null
null
null
null
null
null
null
null
null
null
null
impl super::active_payments::metrics::ActivePaymentsMetricAnalytics for ClickhouseClient {}
crates/analytics/src/clickhouse.rs
analytics
impl_block
17
rust
null
ClickhouseClient
super::active_payments::metrics::ActivePaymentsMetricAnalytics for
impl super::active_payments::metrics::ActivePaymentsMetricAnalytics for for ClickhouseClient
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::DecisionManagerDeleteConfig; Box::pin(oss_api::server_wrap( flow, state, &req, (), |state, auth: auth::AuthenticationData, (), _| { let merchant_context = domain::MerchantContext::NormalMerchant(Box::new( domai...
crates/router/src/routes/routing.rs
router
impl_block
219
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub async fn payments_capture( state: web::Data<app::AppState>, req: actix_web::HttpRequest, payload: web::Json<api_models::payments::PaymentsCaptureRequest>, path: web::Path<common_utils::id_type::GlobalPaymentId>, ) -> impl Responder { use hyperswitch_domain_models::payments::PaymentCaptureData; ...
crates/router/src/routes/payments.rs
router
function_signature
471
rust
null
null
null
null
payments_capture
null
null
null
null
null
null
null
impl ConnectorCommon for Recurly { fn id(&self) -> &'static str { "recurly" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor // TODO! Check connector documentation, on which unit they are processing the currency. // If the connector accepts...
crates/hyperswitch_connectors/src/connectors/recurly.rs
hyperswitch_connectors
impl_block
509
rust
null
Recurly
ConnectorCommon for
impl ConnectorCommon for for Recurly
null
null
null
null
null
null
null
null
pub struct Metadata { #[serde(skip_serializing_if = "Option::is_none")] pub shipping_type: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub entity_name: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub platform_type: Option<String>, #[serde(skip_seri...
crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
hyperswitch_connectors
struct_definition
256
rust
Metadata
null
null
null
null
null
null
null
null
null
null
null
pub struct WellsfargoPaymentsRequest { processing_information: ProcessingInformation, payment_information: PaymentInformation, order_information: OrderInformationWithBill, client_reference_information: ClientReferenceInformation, #[serde(skip_serializing_if = "Option::is_none")] consumer_authent...
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
95
rust
WellsfargoPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/juspaythreedsserver.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 Jus...
crates/router/tests/connectors/juspaythreedsserver.rs
router
full_file
3,003
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Card { pub card_number: cards::CardNumber, pub cardholder_name: Secret<String>, pub cvv: Secret<String>, pub expiry_date: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
hyperswitch_connectors
struct_definition
40
rust
Card
null
null
null
null
null
null
null
null
null
null
null
impl Custombilling { pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/custombilling.rs
hyperswitch_connectors
impl_block
34
rust
null
Custombilling
null
impl Custombilling
null
null
null
null
null
null
null
null
impl quote::ToTokens for SchemaMeta { fn to_tokens(&self, _: &mut proc_macro2::TokenStream) {} }
crates/router_derive/src/macros/generate_schema.rs
router_derive
impl_block
28
rust
null
SchemaMeta
quote::ToTokens for
impl quote::ToTokens for for SchemaMeta
null
null
null
null
null
null
null
null
pub struct ProphetpayCompleteRequest { amount: f64, ref_info: String, inquiry_reference: String, profile: Secret<String>, action_type: i8, card_token: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs
hyperswitch_connectors
struct_definition
47
rust
ProphetpayCompleteRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct SingleChargeData { total_amount: MinorUnit, currency: String, country: String, merchant_id: Secret<String>, merchant_transaction_id: Secret<String>, merchant_request_id: String, merchant_item_description: String, notification_url: Option<String>, payment_method: String, ...
crates/hyperswitch_connectors/src/connectors/boku/transformers.rs
hyperswitch_connectors
struct_definition
82
rust
SingleChargeData
null
null
null
null
null
null
null
null
null
null
null
pub struct WaitScreenData { display_from_timestamp: i128, display_to_timestamp: Option<i128>, poll_config: Option<PollConfig>, }
crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
WaitScreenData
null
null
null
null
null
null
null
null
null
null
null
pub struct PlacetopayAmount { currency: Currency, total: MinorUnit, }
crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
PlacetopayAmount
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Coingate {}
crates/hyperswitch_connectors/src/connectors/coingate.rs
hyperswitch_connectors
impl_block
10
rust
null
Coingate
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Coingate
null
null
null
null
null
null
null
null
impl FeatureMetadata { pub fn get_payment_method_sub_type(&self) -> Option<common_enums::PaymentMethodType> { self.payment_revenue_recovery_metadata .as_ref() .map(|rrm| rrm.payment_method_subtype) } pub fn get_payment_method_type(&self) -> Option<common_enums::PaymentMethod...
crates/diesel_models/src/types.rs
diesel_models
impl_block
203
rust
null
FeatureMetadata
null
impl FeatureMetadata
null
null
null
null
null
null
null
null
pub struct CybersourceSenderInfo { reference_number: String, account: CybersourceAccountInfo, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
CybersourceSenderInfo
null
null
null
null
null
null
null
null
null
null
null
pub struct RetryMapping { pub start_after: i32, pub frequencies: Vec<(i32, i32)>, // (frequency, count) }
crates/scheduler/src/consumer/types/process_data.rs
scheduler
struct_definition
36
rust
RetryMapping
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_decision_manager_config( state: web::Data<AppState>, req: HttpRequest, ) -> impl Responder { let flow = Flow::DecisionManagerRetrieveConfig; Box::pin(oss_api::server_wrap( flow, state, &req, (), |state, auth: auth::AuthenticationData, _, _| {...
crates/router/src/routes/routing.rs
router
function_signature
240
rust
null
null
null
null
retrieve_decision_manager_config
null
null
null
null
null
null
null
pub struct NuveiPartialApproval { pub requested_amount: StringMajorUnit, pub requested_currency: enums::Currency, pub processed_amount: StringMajorUnit, pub processed_currency: enums::Currency, }
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
45
rust
NuveiPartialApproval
null
null
null
null
null
null
null
null
null
null
null
pub async fn check_two_factor_auth_status( state: web::Data<AppState>, req: HttpRequest, ) -> HttpResponse { let flow = Flow::TwoFactorAuthStatus; Box::pin(api::server_wrap( flow, state.clone(), &req, (), |state, user, _, _| user_core::check_two_factor_auth_status...
crates/router/src/routes/user.rs
router
function_signature
108
rust
null
null
null
null
check_two_factor_auth_status
null
null
null
null
null
null
null
impl Default for PayoutAttemptUpdateInternal { fn default() -> Self { Self { payout_token: None, connector_payout_id: None, status: None, error_message: None, error_code: None, is_eligible: None, business_country: None, ...
crates/diesel_models/src/payout_attempt.rs
diesel_models
impl_block
147
rust
null
PayoutAttemptUpdateInternal
Default for
impl Default for for PayoutAttemptUpdateInternal
null
null
null
null
null
null
null
null
pub struct BarclaycardCaptureRequest { order_information: OrderInformation, client_reference_information: ClientReferenceInformation, #[serde(skip_serializing_if = "Option::is_none")] merchant_defined_information: Option<Vec<MerchantDefinedInformation>>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
BarclaycardCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/fraud_check.rs Public functions: 4 use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods}; use crate::{ errors, fraud_check::*, query::generics, schema::fraud_check::dsl, PgPooledConn, StorageResult, }; impl FraudCheckNew { pub async fn insert(sel...
crates/diesel_models/src/query/fraud_check.rs
diesel_models
full_file
499
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs Public structs: 11 use common_enums::enums; use common_utils::{ id_type, pii::{Email, SecretSerdeValue}, types::MinorUnit, }; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{Connector...
crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs
hyperswitch_connectors
full_file
2,926
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct IatapayPaymentWebhookBody { pub status: IatapayWebhookStatus, pub iata_payment_id: String, pub merchant_payment_id: Option<String>, pub failure_code: Option<String>, pub failure_details: Option<String>, pub amount: FloatMajorUnit, pub currency: String, pub checkout_methods: Op...
crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs
hyperswitch_connectors
struct_definition
82
rust
IatapayPaymentWebhookBody
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Cryptopay {}
crates/hyperswitch_connectors/src/connectors/cryptopay.rs
hyperswitch_connectors
impl_block
10
rust
null
Cryptopay
api::PaymentToken for
impl api::PaymentToken for for Cryptopay
null
null
null
null
null
null
null
null
pub struct InviteUserRequest { pub email: pii::Email, pub name: Secret<String>, pub role_id: String, }
crates/api_models/src/user.rs
api_models
struct_definition
29
rust
InviteUserRequest
null
null
null
null
null
null
null
null
null
null
null
pub trait MasterKeyInterface { fn get_master_key(&self) -> &[u8]; }
crates/router/src/db.rs
router
trait_definition
20
rust
null
null
MasterKeyInterface
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::PaymentsAggregate; let payload = payload.into_inner(); Box::pin(api::server_wrap( flow, state, &req, payload, |state, auth: auth::AuthenticationData, req, _| { let merchant_context = domain::MerchantContext::NormalMerchant...
crates/router/src/routes/payments.rs
router
impl_block
164
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct JpmorganErrorResponse { pub response_status: JpmorganTransactionStatus, pub response_code: String, pub response_message: Option<String>, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
JpmorganErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl Paysafe { pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/paysafe.rs
hyperswitch_connectors
impl_block
33
rust
null
Paysafe
null
impl Paysafe
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PayoutAttemptResponse { "type": "object", "required": [ "attempt_id", "status", "amount" ], "properties": { "attempt_id": { "type": "string", "description": "Unique identifier for the attempt" }, "status": { "$ref": "#/components/s...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
611
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PayoutAttemptResponse" ]
null
null
null
null
Web Documentation: Wallets | Hyperswitch # Type: Web Doc Hyperswitch supports leading international wallets which include: Digital wallets such as PayPal which enable customers to pay through wallet balance that they could load Card container wallets such as Google Pay and Apple Pay which enable customers to save thei...
https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/quickstart/payment-methods-setup/wallets
null
web_doc_file
88
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/quickstart/payment-methods-setup/wallets
Wallets | Hyperswitch
null
pub struct EphemeralKeyAuth;
crates/router/src/services/authentication.rs
router
struct_definition
8
rust
EphemeralKeyAuth
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodTypeInfo { pub payment_method_type: common_enums::PaymentMethodType, pub required_fields: Option<HashMap<String, RequiredFieldInfo>>, }
crates/api_models/src/payouts.rs
api_models
struct_definition
34
rust
PaymentMethodTypeInfo
null
null
null
null
null
null
null
null
null
null
null
pub struct BraintreeRevokeMandateRequest { query: String, variables: VariableDeletePaymentMethodFromVaultInput, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
BraintreeRevokeMandateRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/api_models/src/health_check.rs Public structs: 2 use std::collections::hash_map::HashMap; #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] pub struct RouterHealthCheckResponse { pub database: bool, pub redis: bool, #[serde(skip_serializing_if = "Option::is_none")] pub vault: ...
crates/api_models/src/health_check.rs
api_models
full_file
435
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_card_detail( pm: &domain::PaymentMethod, response: Card, ) -> CustomResult<api::CardDetailFromLocker, errors::VaultError> { let card_number = response.card_number; let last4_digits = card_number.clone().get_last4(); //fetch form card bin let card_detail = api::CardDetailFromLocker { ...
crates/router/src/core/payment_methods/transformers.rs
router
function_signature
214
rust
null
null
null
null
get_card_detail
null
null
null
null
null
null
null
pub struct KafkaPaymentAttempt<'a> { pub payment_id: &'a id_type::GlobalPaymentId, pub merchant_id: &'a id_type::MerchantId, pub attempt_id: &'a id_type::GlobalAttemptId, pub status: storage_enums::AttemptStatus, pub amount: MinorUnit, pub connector: Option<&'a String>, pub error_message: Op...
crates/router/src/services/kafka/payment_attempt.rs
router
struct_definition
861
rust
KafkaPaymentAttempt
null
null
null
null
null
null
null
null
null
null
null
impl Recon { pub fn server(state: AppState) -> Scope { web::scope("/recon") .app_data(web::Data::new(state)) .service( web::resource("/{merchant_id}/update") .route(web::post().to(recon_routes::update_merchant)), ) .service(...
crates/router/src/routes/app.rs
router
impl_block
151
rust
null
Recon
null
impl Recon
null
null
null
null
null
null
null
null
pub struct CybersourceThreeDSMetadata { three_ds_data: CybersourceConsumerAuthValidateResponse, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
CybersourceThreeDSMetadata
null
null
null
null
null
null
null
null
null
null
null
impl Facilitapay { pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/facilitapay.rs
hyperswitch_connectors
impl_block
36
rust
null
Facilitapay
null
impl Facilitapay
null
null
null
null
null
null
null
null
pub async fn list_initial_attempts_by_merchant_id_constraints( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, created_after: time::PrimitiveDateTime, created_before: time::PrimitiveDateTime, limit: Option<i64>, offset: Option<i64>, event_typ...
crates/diesel_models/src/query/events.rs
diesel_models
function_signature
364
rust
null
null
null
null
list_initial_attempts_by_merchant_id_constraints
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/tokenio/transformers.rs Public functions: 3 Public structs: 12 use std::collections::HashMap; use api_models::admin::{AdditionalMerchantData, MerchantAccountData, MerchantRecipientData}; use common_enums::enums; use common_utils::{id_type::MerchantId, request::Meth...
crates/hyperswitch_connectors/src/connectors/tokenio/transformers.rs
hyperswitch_connectors
full_file
4,520
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentLinkNew { pub payment_link_id: String, pub payment_id: common_utils::id_type::PaymentId, pub link_to_pay: String, pub merchant_id: common_utils::id_type::MerchantId, pub amount: MinorUnit, pub currency: Option<storage_enums::Currency>, #[serde(with = "common_utils::custom_s...
crates/diesel_models/src/payment_link.rs
diesel_models
struct_definition
219
rust
PaymentLinkNew
null
null
null
null
null
null
null
null
null
null
null
pub fn update(&mut self, new_config: Self) { self.gateway_name = new_config.gateway_name; self.gateway_sigma_factor = new_config.gateway_sigma_factor; }
crates/api_models/src/open_router.rs
api_models
function_signature
37
rust
null
null
null
null
update
null
null
null
null
null
null
null
impl UserRoleInterface for Store { #[instrument(skip_all)] async fn insert_user_role( &self, user_role: storage::UserRoleNew, ) -> CustomResult<storage::UserRole, errors::StorageError> { let conn = connection::pg_connection_write(self).await?; user_role .insert(&...
crates/router/src/db/user_role.rs
router
impl_block
1,106
rust
null
Store
UserRoleInterface for
impl UserRoleInterface for for Store
null
null
null
null
null
null
null
null
pub struct NoonCancelSubscriptionObject { status: NoonRevokeStatus, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
NoonCancelSubscriptionObject
null
null
null
null
null
null
null
null
null
null
null
pub struct CoingateRefundResponse { pub status: CoingateRefundStatus, pub id: i64, }
crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
CoingateRefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct UserField { name: String, value: String, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
UserField
null
null
null
null
null
null
null
null
null
null
null
pub struct BamboraThreedsContinueRequest { pub(crate) payment_method: String, pub card_response: CardResponse, }
crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
BamboraThreedsContinueRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct Forex;
crates/router/src/routes/app.rs
router
struct_definition
4
rust
Forex
null
null
null
null
null
null
null
null
null
null
null
impl std::fmt::Debug for ConnectorEnum { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { Self::Old(_) => f .debug_tuple("Old") .field(&std::any::type_name::<BoxedConnector>().to_string()) .finish(), Sel...
crates/hyperswitch_interfaces/src/connector_integration_interface.rs
hyperswitch_interfaces
impl_block
120
rust
null
ConnectorEnum
std::fmt::Debug for
impl std::fmt::Debug for for ConnectorEnum
null
null
null
null
null
null
null
null
pub struct ArchipelCredentialIndicator { status: ArchipelCredentialIndicatorStatus, recurring: Option<bool>, transaction_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
ArchipelCredentialIndicator
null
null
null
null
null
null
null
null
null
null
null
pub struct NoonSubscription { subscription_identifier: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
NoonSubscription
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Blackhawknetwork {}
crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs
hyperswitch_connectors
impl_block
12
rust
null
Blackhawknetwork
api::MandateSetup for
impl api::MandateSetup for for Blackhawknetwork
null
null
null
null
null
null
null
null
MerchantStorageScheme::RedisKv => { // We assume that PaymentAttempt <=> PaymentIntent is a one-to-one relation for now let lookup_id = format!( "pa_conn_trans_{}_{}", merchant_id.get_string_repr(), connector_transac...
crates/storage_impl/src/payments/payment_attempt.rs#chunk1
storage_impl
chunk
8,189
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RoutingDictionary { "type": "object", "required": [ "merchant_id", "records" ], "properties": { "merchant_id": { "type": "string" }, "active_id": { "type": "string", "nullable": true }, "records": { "type": "array", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
115
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RoutingDictionary" ]
null
null
null
null
/// mandate restricts sending this information. ship_addr_post_code: Option<masking::Secret<String>>, /// The state or province of the shipping address associated with the card used for this purchase. /// /// This field is limited to 3 characters. The value should be the country subdivision code de...
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs#chunk1
hyperswitch_connectors
chunk
8,184
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ArchipelRefundResponse { order: ArchipelRefundOrderResponse, status: ArchipelRefundStatus, transaction_result: ArchipelPaymentStatus, transaction_id: Option<String>, transaction_date: Option<String>, error: Option<ArchipelErrorMessage>, }
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
hyperswitch_connectors
struct_definition
60
rust
ArchipelRefundResponse
null
null
null
null
null
null
null
null
null
null
null