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 Amount { currency: enums::Currency, amount: MinorUnit, }
crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
Amount
null
null
null
null
null
null
null
null
null
null
null
pub trait AuthInfo { fn get_merchant_id(&self) -> Option<&id_type::MerchantId>; }
crates/router/src/services/authentication.rs
router
trait_definition
24
rust
null
null
AuthInfo
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Fiservemea { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplement...
crates/hyperswitch_connectors/src/connectors/fiservemea.rs
hyperswitch_connectors
impl_block
213
rust
null
Fiservemea
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Fiservemea
null
null
null
null
null
null
null
null
File: crates/masking/tests/basic.rs Public structs: 5 #![allow(dead_code, clippy::unwrap_used, clippy::panic_in_result_fn)] use masking::Secret; #[cfg(feature = "serde")] use masking::SerializableSecret; #[cfg(feature = "alloc")] use masking::ZeroizableSecret; #[cfg(feature = "serde")] use serde::Serialize; #[test]...
crates/masking/tests/basic.rs
masking
full_file
1,042
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.EventListItemResponse { "type": "object", "description": "The response body for each item when listing events.", "required": [ "event_id", "merchant_id", "profile_id", "object_id", "event_type", "event_class", "initial_attempt_id", "created" ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
587
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "EventListItemResponse" ]
null
null
null
null
pub fn get_mca_id(&self) -> Option<id_type::MerchantConnectorAccountId> { match self { Self::MerchantConnectorAccount(merchant_connector_account) => { Some(merchant_connector_account.get_id()) } Self::MerchantConnectorDetails(_) => None, } }
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
62
rust
null
null
null
null
get_mca_id
null
null
null
null
null
null
null
pub fn get_id(&self) -> String { match self { Self::ForeignID(id) => id.clone(), Self::Object(i) => i.foreign_id(), } }
crates/hyperswitch_domain_models/src/lib.rs
hyperswitch_domain_models
function_signature
41
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
File: crates/masking/src/vec.rs //! Secret `Vec` types //! //! There is not alias type by design. #[cfg(feature = "serde")] use super::{SerializableSecret, Serialize}; #[cfg(feature = "serde")] impl<S: Serialize> SerializableSecret for Vec<S> {}
crates/masking/src/vec.rs
masking
full_file
61
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Datatrans {}
crates/hyperswitch_connectors/src/connectors/datatrans.rs
hyperswitch_connectors
impl_block
10
rust
null
Datatrans
api::PaymentCapture for
impl api::PaymentCapture for for Datatrans
null
null
null
null
null
null
null
null
state, req_state, merchant_context, auth.profile_id, payments::PaymentSession, payload, api::AuthFlow::Client, payments::CallConnectorAction::Trigger, None, hea...
crates/router/src/routes/payments.rs#chunk1
router
chunk
8,190
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct MandateConnectorDetails { pub connector: String, pub merchant_connector_id: Option<id_type::MerchantConnectorAccountId>, }
crates/router/src/core/payments.rs
router
struct_definition
29
rust
MandateConnectorDetails
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/sift.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 SiftTest; impl Con...
crates/router/tests/connectors/sift.rs
router
full_file
2,924
null
null
null
null
null
null
null
null
null
null
null
null
null
impl PaymentCapture for Threedsecureio {}
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
hyperswitch_connectors
impl_block
9
rust
null
Threedsecureio
PaymentCapture for
impl PaymentCapture for for Threedsecureio
null
null
null
null
null
null
null
null
pub struct EmailToken { email: String, flow: domain::Origin, exp: u64, entity: Option<Entity>, }
crates/router/src/services/email/types.rs
router
struct_definition
31
rust
EmailToken
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Inespay {}
crates/hyperswitch_connectors/src/connectors/inespay.rs
hyperswitch_connectors
impl_block
10
rust
null
Inespay
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Inespay
null
null
null
null
null
null
null
null
pub struct ErrorDistributionAccumulator { pub error_vec: Vec<ErrorDistributionRow>, }
crates/analytics/src/payment_intents/accumulator.rs
analytics
struct_definition
20
rust
ErrorDistributionAccumulator
null
null
null
null
null
null
null
null
null
null
null
impl Responder { // safety: This shouldn't panic owing to the data type #[allow(clippy::expect_used)] let payload = json_payload .into_inner() .to_vec() .pop() .expect("Couldn't get GetPaymentIntentMetricRequest"); let flow = AnalyticsFlow:...
crates/router/src/analytics.rs
router
impl_block
303
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl api::MandateSetup for Barclaycard {}
crates/hyperswitch_connectors/src/connectors/barclaycard.rs
hyperswitch_connectors
impl_block
12
rust
null
Barclaycard
api::MandateSetup for
impl api::MandateSetup for for Barclaycard
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/deutschebank.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 Deutscheba...
crates/router/tests/connectors/deutschebank.rs
router
full_file
2,930
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Archipel {}
crates/hyperswitch_connectors/src/connectors/archipel.rs
hyperswitch_connectors
impl_block
9
rust
null
Archipel
api::PaymentCapture for
impl api::PaymentCapture for for Archipel
null
null
null
null
null
null
null
null
pub struct AddAcceptLanguageHeaderMiddleware<S> { service: std::rc::Rc<S>, }
crates/router/src/middleware.rs
router
struct_definition
22
rust
AddAcceptLanguageHeaderMiddleware
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentAttemptCore { pub attempt_id: String, pub payment_details: Option<PaymentDetails>, pub amount: Amount, }
crates/router/src/core/fraud_check/types.rs
router
struct_definition
30
rust
PaymentAttemptCore
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Amazonpay { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemente...
crates/hyperswitch_connectors/src/connectors/amazonpay.rs
hyperswitch_connectors
impl_block
210
rust
null
Amazonpay
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Amazonpay
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MerchantConnectorDetails { "type": "object", "properties": { "connector_account_details": { "type": "object", "description": "Account details of the Connector. You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 character...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
143
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantConnectorDetails" ]
null
null
null
null
pub async fn profile_payments_list( state: web::Data<app::AppState>, req: actix_web::HttpRequest, payload: web::Query<payment_types::PaymentListConstraints>, ) -> impl Responder { let flow = Flow::PaymentsList; let payload = payload.into_inner(); Box::pin(api::server_wrap( flow, ...
crates/router/src/routes/payments.rs
router
function_signature
242
rust
null
null
null
null
profile_payments_list
null
null
null
null
null
null
null
pub struct ThunesAuthType { pub(super) api_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
ThunesAuthType
null
null
null
null
null
null
null
null
null
null
null
pub async fn check_existence_and_add_domain_to_db( state: &SessionState, merchant_id: common_utils::id_type::MerchantId, profile_id_from_auth_layer: Option<common_utils::id_type::ProfileId>, merchant_connector_id: common_utils::id_type::MerchantConnectorAccountId, domain_from_req: Vec<String>, ) -> ...
crates/router/src/core/verification/utils.rs
router
function_signature
792
rust
null
null
null
null
check_existence_and_add_domain_to_db
null
null
null
null
null
null
null
impl super::api_event::metrics::ApiEventMetricAnalytics for ClickhouseClient {}
crates/analytics/src/clickhouse.rs
analytics
impl_block
17
rust
null
ClickhouseClient
super::api_event::metrics::ApiEventMetricAnalytics for
impl super::api_event::metrics::ApiEventMetricAnalytics for for ClickhouseClient
null
null
null
null
null
null
null
null
pub struct NordeaPaymentsInitiateResponse { /// Payment information #[serde(rename = "response")] pub payments_response: Option<NordeaPaymentsInitiateResponseData>, /// External response header pub group_header: Option<NordeaGroupHeader>, }
crates/hyperswitch_connectors/src/connectors/nordea/responses.rs
hyperswitch_connectors
struct_definition
56
rust
NordeaPaymentsInitiateResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ClientSecretTypeNew { pub id: common_utils::id_type::ClientSecretId, pub merchant_id: common_utils::id_type::MerchantId, pub secret: Secret<String>, pub resource_id: common_utils::types::authentication::ResourceId, }
crates/diesel_models/src/ephemeral_key.rs
diesel_models
struct_definition
57
rust
ClientSecretTypeNew
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantAccountUpdateInternal { pub merchant_name: Option<Encryption>, pub merchant_details: Option<Encryption>, pub publishable_key: Option<String>, pub storage_scheme: Option<storage_enums::MerchantStorageScheme>, pub metadata: Option<pii::SecretSerdeValue>, pub modified_at: time::P...
crates/diesel_models/src/merchant_account.rs
diesel_models
struct_definition
128
rust
MerchantAccountUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
pub struct NordeaPaymentsInitiateResponseData { /// Unique payment identifier assigned for new payment #[serde(rename = "_id")] pub payment_id: String, /// HATEOAS inspired links: 'rel' and 'href'. Context specific link (only GET supported) #[serde(rename = "_links")] pub links: Option<Vec<Norde...
crates/hyperswitch_connectors/src/connectors/nordea/responses.rs
hyperswitch_connectors
struct_definition
893
rust
NordeaPaymentsInitiateResponseData
null
null
null
null
null
null
null
null
null
null
null
pub struct BusinessPayoutLinkConfig { #[serde(flatten)] pub config: BusinessGenericLinkConfig, pub form_layout: Option<UIWidgetFormLayout>, pub payout_test_mode: Option<bool>, }
crates/diesel_models/src/business_profile.rs
diesel_models
struct_definition
45
rust
BusinessPayoutLinkConfig
null
null
null
null
null
null
null
null
null
null
null
pub async fn start_server(conf: settings::Settings<SecuredSecret>) -> ApplicationResult<Server> { logger::debug!(startup_config=?conf); let server = conf.server.clone(); let (tx, rx) = oneshot::channel(); let api_client = Box::new(services::ProxyClient::new(&conf.proxy).map_err(|error| { errors:...
crates/router/src/lib.rs
router
function_signature
651
rust
null
null
null
null
start_server
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<UnifiedTranslations> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/unified_translations.rs
diesel_models
function_signature
35
rust
null
null
null
null
insert
null
null
null
null
null
null
null
pub fn get_merchant_reference_id(&self) -> Option<id_type::CustomerId> { Some(self.customer_id.clone()) }
crates/api_models/src/customers.rs
api_models
function_signature
28
rust
null
null
null
null
get_merchant_reference_id
null
null
null
null
null
null
null
pub struct CalSuccessRateConfigEventRequest { pub min_aggregates_size: Option<u32>, pub default_success_rate: Option<f64>, pub specificity_level: SuccessRateSpecificityLevel, pub exploration_percent: Option<f64>, }
crates/api_models/src/routing.rs
api_models
struct_definition
55
rust
CalSuccessRateConfigEventRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct SkipTwoFactorAuthQueryParam { pub skip_two_factor_auth: Option<bool>, }
crates/api_models/src/user.rs
api_models
struct_definition
19
rust
SkipTwoFactorAuthQueryParam
null
null
null
null
null
null
null
null
null
null
null
pub trait KvStorePartition { fn partition_number(key: PartitionKey<'_>, num_partitions: u8) -> u32 { crc32fast::hash(key.to_string().as_bytes()) % u32::from(num_partitions) } fn shard_key(key: PartitionKey<'_>, num_partitions: u8) -> String { format!("shard_{}", Self::partition_number(key, ...
crates/storage_impl/src/redis/kv_store.rs
storage_impl
trait_definition
92
rust
null
null
KvStorePartition
null
null
null
null
null
null
null
null
null
pub struct PayoutLink;
crates/router/src/routes/app.rs
router
struct_definition
6
rust
PayoutLink
null
null
null
null
null
null
null
null
null
null
null
impl StreamData { pub fn from_hashmap( hashmap: HashMap<String, String>, ) -> errors::CustomResult<Self, errors::ParsingError> { let iter = MapDeserializer::< '_, std::collections::hash_map::IntoIter<String, String>, serde_json::error::Error, >::new(ha...
crates/drainer/src/types.rs
drainer
impl_block
100
rust
null
StreamData
null
impl StreamData
null
null
null
null
null
null
null
null
pub fn get_payment_methods_data(&self) -> payment_method_data::PaymentMethodsData { match self { Self::Card(card) => payment_method_data::PaymentMethodsData::Card( payment_method_data::CardDetailsPaymentMethod::from(card.clone()), ), #[cfg(feature = "v2")] ...
crates/hyperswitch_domain_models/src/vault.rs
hyperswitch_domain_models
function_signature
114
rust
null
null
null
null
get_payment_methods_data
null
null
null
null
null
null
null
pub struct PayoutActionRequest { /// Unique identifier for the payout. This ensures idempotency for multiple payouts /// that have been done by a single merchant. This field is auto generated and is returned in the API response. #[schema( value_type = String, min_length = 30, max_len...
crates/api_models/src/payouts.rs
api_models
struct_definition
128
rust
PayoutActionRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct ThreeDSRequestorAuthenticationInformation { /// Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Accepted values are: /// - 01 -> No 3DS Requestor authentication occurred (i.e. cardholder "logged in" as guest) /// - 02 -> Login to the cardholder account at the 3DS Requestor ...
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs
hyperswitch_connectors
struct_definition
594
rust
ThreeDSRequestorAuthenticationInformation
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Flexiti {}
crates/hyperswitch_connectors/src/connectors/flexiti.rs
hyperswitch_connectors
impl_block
9
rust
null
Flexiti
api::PaymentToken for
impl api::PaymentToken for for Flexiti
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AuthorizationStatus { "type": "string", "enum": [ "success", "failure", "processing", "unresolved" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
44
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AuthorizationStatus" ]
null
null
null
null
pub struct ProphetpayTokenResponse { hosted_tokenize_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
ProphetpayTokenResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn from_config( db_conf: T::Config, tenant_config: &dyn config::TenantConfig, encryption_key: StrongSecret<Vec<u8>>, cache_store: Arc<RedisStore>, inmemory_cache_stream: &str, ) -> error_stack::Result<Self, StorageError> { let db_store = T::new(db_conf, tena...
crates/storage_impl/src/lib.rs
storage_impl
function_signature
217
rust
null
null
null
null
from_config
null
null
null
null
null
null
null
pub struct CeleroAuthType { pub(super) api_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
CeleroAuthType
null
null
null
null
null
null
null
null
null
null
null
pub struct TaxObject { pub default: DefaultObject, }
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
TaxObject
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_count_by_merchant_id_status( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, status: common_enums::PaymentMethodStatus, ) -> StorageResult<i64> { let query = <Self as HasTable>::table().count().filter( dsl::merchant_id ...
crates/diesel_models/src/query/payment_method.rs
diesel_models
function_signature
202
rust
null
null
null
null
get_count_by_merchant_id_status
null
null
null
null
null
null
null
pub fn set_protocol_version(mut self, protocol_version: String) -> Self { self.protocol_version = Some(protocol_version); self }
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
function_signature
30
rust
null
null
null
null
set_protocol_version
null
null
null
null
null
null
null
pub async fn payments_start_redirection( state: web::Data<app::AppState>, req: actix_web::HttpRequest, payload: web::Query<api_models::payments::PaymentStartRedirectionParams>, path: web::Path<common_utils::id_type::GlobalPaymentId>, ) -> impl Responder { let flow = Flow::PaymentStartRedirection; ...
crates/router/src/routes/payments.rs
router
function_signature
362
rust
null
null
null
null
payments_start_redirection
null
null
null
null
null
null
null
pub struct RecoveryCodes { pub recovery_codes: Vec<Secret<String>>, }
crates/api_models/src/user.rs
api_models
struct_definition
16
rust
RecoveryCodes
null
null
null
null
null
null
null
null
null
null
null
pub struct ExchangeTokenCreateResponse { pub access_token: String, }
crates/api_models/src/pm_auth.rs
api_models
struct_definition
15
rust
ExchangeTokenCreateResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct KatapultPaymentsResponse { status: KatapultPaymentStatus, id: String, }
crates/hyperswitch_connectors/src/connectors/katapult/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
KatapultPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
impl Default for ShouldCollectCvvDuringPayment { /// Default for `ShouldCollectCvvDuringPayment` is `true` fn default() -> Self { Self(true) } }
crates/common_types/src/primitive_wrappers.rs
common_types
impl_block
41
rust
null
ShouldCollectCvvDuringPayment
Default for
impl Default for for ShouldCollectCvvDuringPayment
null
null
null
null
null
null
null
null
pub async fn list_enabled_by_profile_id( conn: &PgPooledConn, profile_id: &common_utils::id_type::ProfileId, connector_type: common_enums::ConnectorType, ) -> StorageResult<Vec<Self>> { generics::generic_filter::<<Self as HasTable>::Table, _, _, _>( conn, dsl:...
crates/diesel_models/src/query/merchant_connector_account.rs
diesel_models
function_signature
134
rust
null
null
null
null
list_enabled_by_profile_id
null
null
null
null
null
null
null
pub struct RuleMigrationError { pub profile_id: common_utils::id_type::ProfileId, pub algorithm_id: common_utils::id_type::RoutingId, pub error: String, }
crates/api_models/src/routing.rs
api_models
struct_definition
41
rust
RuleMigrationError
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/storage/user_authentication_method.rs pub use diesel_models::user_authentication_method::*;
crates/router/src/types/storage/user_authentication_method.rs
router
full_file
21
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodNew { pub customer_id: common_utils::id_type::GlobalCustomerId, pub merchant_id: common_utils::id_type::MerchantId, pub created_at: PrimitiveDateTime, pub last_modified: PrimitiveDateTime, pub payment_method_data: Option<Encryption>, pub locker_id: Option<String>, pub...
crates/diesel_models/src/payment_method.rs
diesel_models
struct_definition
273
rust
PaymentMethodNew
null
null
null
null
null
null
null
null
null
null
null
pub struct ZenErrorBody { pub message: String, pub code: String, }
crates/hyperswitch_connectors/src/connectors/zen/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
ZenErrorBody
null
null
null
null
null
null
null
null
null
null
null
File: crates/external_services/src/hashicorp_vault/core.rs Public functions: 4 Public structs: 2 //! Interactions with the HashiCorp Vault use std::{collections::HashMap, future::Future, pin::Pin}; use common_utils::{ext_traits::ConfigExt, fp_utils::when}; use error_stack::{Report, ResultExt}; use masking::{PeekIn...
crates/external_services/src/hashicorp_vault/core.rs
external_services
full_file
1,859
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_connector_account_details( &self, ) -> error_stack::Result<router_data::ConnectorAuthType, common_utils::errors::ParsingError> { self.connector_account_details .get_inner() .clone() .parse_value("ConnectorAuthType") }
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
62
rust
null
null
null
null
get_connector_account_details
null
null
null
null
null
null
null
impl IncomingWebhook for Razorpay { fn get_webhook_object_reference_id( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented)) } fn get...
crates/hyperswitch_connectors/src/connectors/razorpay.rs
hyperswitch_connectors
impl_block
201
rust
null
Razorpay
IncomingWebhook for
impl IncomingWebhook for for Razorpay
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/vgs.rs use masking::Secret; use router::types::{self, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct VgsTest; impl ConnectorActions for VgsTest {} impl utils::Connector for VgsTest { fn get_da...
crates/router/tests/connectors/vgs.rs
router
full_file
2,923
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct HiPayTokenRequest { pub card_number: cards::CardNumber, pub card_expiry_month: Secret<String>, pub card_expiry_year: Secret<String>, pub card_holder: Secret<String>, pub cvc: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs
hyperswitch_connectors
struct_definition
52
rust
HiPayTokenRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Payeezy {}
crates/hyperswitch_connectors/src/connectors/payeezy.rs
hyperswitch_connectors
impl_block
10
rust
null
Payeezy
api::PaymentSync for
impl api::PaymentSync for for Payeezy
null
null
null
null
null
null
null
null
impl crate::core::payments::Operation for Point3 { /// fn to_validate_request(&self) -> RouterResult<&dyn ValidateRequest> { /// Ok(self) /// } /// fn to_get_tracker(&self) -> RouterResult<&dyn GetTracker<PaymentData>> { /// Ok(self) /// } /// }
crates/router_derive/src/lib.rs
router_derive
impl_block
70
rust
null
Point3
crate::core::payments::Operation for
impl crate::core::payments::Operation for for Point3
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaypalSessionTokenResponse { "type": "object", "required": [ "connector", "session_token", "sdk_next_action" ], "properties": { "connector": { "type": "string", "description": "Name of the connector" }, "session_token": { "type": "...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
125
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaypalSessionTokenResponse" ]
null
null
null
null
impl AnalyticsProvider { #[instrument(skip_all)] pub async fn get_payment_metrics( &self, metric: &PaymentMetrics, dimensions: &[PaymentDimensions], auth: &AuthInfo, filters: &PaymentFilters, granularity: Option<Granularity>, time_range: &TimeRange, ) ...
crates/analytics/src/lib.rs
analytics
impl_block
5,300
rust
null
AnalyticsProvider
null
impl AnalyticsProvider
null
null
null
null
null
null
null
null
pub struct PaymentGetIntent;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
6
rust
PaymentGetIntent
null
null
null
null
null
null
null
null
null
null
null
pub struct OnlineMandate { pub ip_address: masking::Secret<String, IpAddress>, pub user_agent: String, }
crates/router/src/compatibility/stripe/payment_intents/types.rs
router
struct_definition
28
rust
OnlineMandate
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/multisafepay.rs use hyperswitch_domain_models::address::{Address, AddressDetails}; use masking::Secret; use router::types::{self, domain, storage::enums, PaymentAddress}; use crate::{ connector_auth, utils::{self, ConnectorActions, PaymentInfo}, }; #[derive(Clone, Copy)] ...
crates/router/tests/connectors/multisafepay.rs
router
full_file
3,190
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn apply_changeset(self, source: Authentication) -> Authentication { let Self { connector_authentication_id, payment_method_id, authentication_type, authentication_status, authentication_lifecycle_status, modified_at: _, err...
crates/diesel_models/src/authentication.rs
diesel_models
function_signature
805
rust
null
null
null
null
apply_changeset
null
null
null
null
null
null
null
impl RecurlyWebhookBody { pub fn get_webhook_object_from_body(body: &[u8]) -> CustomResult<Self, errors::ConnectorError> { let webhook_body = body .parse_struct::<Self>("RecurlyWebhookBody") .change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?; Ok(webhook_body)...
crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs
hyperswitch_connectors
impl_block
80
rust
null
RecurlyWebhookBody
null
impl RecurlyWebhookBody
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Prophetpay {}
crates/hyperswitch_connectors/src/connectors/prophetpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Prophetpay
api::PaymentCapture for
impl api::PaymentCapture for for Prophetpay
null
null
null
null
null
null
null
null
pub struct PlaidBankAccountCredentialsRequest { access_token: String, options: Option<BankAccountCredentialsOptions>, }
crates/pm_auth/src/connector/plaid/transformers.rs
pm_auth
struct_definition
26
rust
PlaidBankAccountCredentialsRequest
null
null
null
null
null
null
null
null
null
null
null
impl IncomingWebhookEvent { pub fn is_recovery_transaction_event(&self) -> bool { matches!( self, Self::RecoveryPaymentFailure | Self::RecoveryPaymentSuccess | Self::RecoveryPaymentPending ) } }
crates/api_models/src/webhooks.rs
api_models
impl_block
56
rust
null
IncomingWebhookEvent
null
impl IncomingWebhookEvent
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs Public functions: 2 Public structs: 16 use common_enums::enums; use common_utils::{ext_traits::OptionExt as _, types::SemanticVersion}; use error_stack::ResultExt; use hyperswitch_domain_models::{ router_data::{ConnectorAuthType, ErrorR...
crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
hyperswitch_connectors
full_file
6,651
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn generate_digest_from_request(&self, payload: &RequestContent) -> String { let payload_bytes = match payload { RequestContent::RawBytes(bytes) => bytes.clone(), _ => payload.get_inner_value().expose().as_bytes().to_vec(), }; self.generate_digest(&payload_bytes) ...
crates/hyperswitch_connectors/src/connectors/nordea.rs
hyperswitch_connectors
function_signature
67
rust
null
null
null
null
generate_digest_from_request
null
null
null
null
null
null
null
impl std::ops::Deref for ConnectorCustomerMap { type Target = std::collections::HashMap<common_utils::id_type::MerchantConnectorAccountId, String>; fn deref(&self) -> &Self::Target { &self.0 } }
crates/common_types/src/customers.rs
common_types
impl_block
57
rust
null
ConnectorCustomerMap
std::ops::Deref for
impl std::ops::Deref for for ConnectorCustomerMap
null
null
null
null
null
null
null
null
pub async fn get_extended_card_info( state: SessionState, merchant_id: id_type::MerchantId, payment_id: id_type::PaymentId, ) -> RouterResponse<payments_api::ExtendedCardInfoResponse> { let redis_conn = state .store .get_redis_conn() .change_context(errors::ApiErrorResponse::Inte...
crates/router/src/core/payments.rs
router
function_signature
170
rust
null
null
null
null
get_extended_card_info
null
null
null
null
null
null
null
pub struct Customers;
crates/router/src/compatibility/stripe/app.rs
router
struct_definition
4
rust
Customers
null
null
null
null
null
null
null
null
null
null
null
pub async fn user_from_email( state: SessionState, req: user_api::UserFromEmailRequest, ) -> UserResponse<user_api::TokenResponse> { let token = req.token.expose(); let email_token = auth::decode_jwt::<email_types::EmailToken>(&token, &state) .await .change_context(UserErrors::LinkInvali...
crates/router/src/core/user.rs
router
function_signature
232
rust
null
null
null
null
user_from_email
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/events/routing_api_logs.rs Public functions: 12 Public structs: 1 //! Routing API logs interface use std::fmt; use api_models::routing::RoutableConnectorChoice; use common_utils::request::Method; use router_env::tracing_actix_web::RequestId; use serde::Serialize; use serde_j...
crates/hyperswitch_interfaces/src/events/routing_api_logs.rs
hyperswitch_interfaces
full_file
1,247
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Silverflow {}
crates/hyperswitch_connectors/src/connectors/silverflow.rs
hyperswitch_connectors
impl_block
9
rust
null
Silverflow
api::Refund for
impl api::Refund for for Silverflow
null
null
null
null
null
null
null
null
pub struct CardInformation { pub card_number: CardNumber, pub expiry_month: Secret<String>, pub expiry_year: Secret<String>, #[serde(skip_serializing_if = "Option::is_none")] pub cvv: Option<Secret<String>>, pub cardholder_name: Secret<String>, pub cardholder_email: pii::Email, pub cardh...
crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs
hyperswitch_connectors
struct_definition
83
rust
CardInformation
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Role> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/role.rs
diesel_models
function_signature
33
rust
null
null
null
null
insert
null
null
null
null
null
null
null
pub struct AcceptDisputeResponse { pub dispute_status: api_models::enums::DisputeStatus, pub connector_status: Option<String>, }
crates/hyperswitch_domain_models/src/router_response_types/disputes.rs
hyperswitch_domain_models
struct_definition
30
rust
AcceptDisputeResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/domain/user/user_authentication_method.rs use std::sync::LazyLock; use common_enums::{Owner, UserAuthType}; use diesel_models::UserAuthenticationMethod; pub static DEFAULT_USER_AUTH_METHOD: LazyLock<UserAuthenticationMethod> = LazyLock::new(|| UserAuthenticationMethod { id: ...
crates/router/src/types/domain/user/user_authentication_method.rs
router
full_file
175
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/api/authentication.rs Public functions: 1 Public structs: 4 use std::str::FromStr; use api_models::enums; use common_utils::errors::CustomResult; use error_stack::ResultExt; pub use hyperswitch_domain_models::{ router_flow_types::authentication::{ Authentication, PostAuthen...
crates/router/src/types/api/authentication.rs
router
full_file
934
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn new( state: &SessionState, data: ProdIntent, theme_id: Option<String>, theme_config: EmailThemeConfig, ) -> UserResult<Self> { Ok(Self { recipient_email: domain::UserEmail::from_pii_email( state.conf.email.prod_intent_recipient_email.clone()...
crates/router/src/services/email/types.rs
router
function_signature
178
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn find_by_role_id(conn: &PgPooledConn, role_id: &str) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::role_id.eq(role_id.to_owned()), ) .await }
crates/diesel_models/src/query/role.rs
diesel_models
function_signature
68
rust
null
null
null
null
find_by_role_id
null
null
null
null
null
null
null
pub struct TransactionQuery { sale_status: SaleStatus, payme_transaction_id: String, }
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
TransactionQuery
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_user_authentication_method( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<user_api::CreateUserAuthenticationMethodRequest>, ) -> HttpResponse { let flow = Flow::CreateUserAuthenticationMethod; Box::pin(api::server_wrap( flow, state.clone()...
crates/router/src/routes/user.rs
router
function_signature
128
rust
null
null
null
null
create_user_authentication_method
null
null
null
null
null
null
null
File: crates/external_services/src/grpc_client/dynamic_routing/contract_routing_client.rs use api_models::routing::{ ContractBasedRoutingConfig, ContractBasedRoutingConfigBody, ContractBasedTimeScale, LabelInformation, RoutableConnectorChoice, RoutableConnectorChoiceWithStatus, }; use common_utils::{ ext_t...
crates/external_services/src/grpc_client/dynamic_routing/contract_routing_client.rs
external_services
full_file
1,351
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthipayPaymentsRequest { request_type: &'static str, transaction_amount: Amount, payment_method: PaymentMethod, // split_shipment: Option<SplitShipment>, // incremental_flag: Option<bool>, }
crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs
hyperswitch_connectors
struct_definition
49
rust
AuthipayPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn new( conf: settings::Settings<SecuredSecret>, shut_down_signal: oneshot::Sender<()
crates/router/src/routes/app.rs
router
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct BizEmailProd { pub recipient_email: domain::UserEmail, pub user_name: Secret<String>, pub poc_email: Secret<String>, pub legal_business_name: String, pub business_location: String, pub business_website: String, pub settings: std::sync::Arc<configs::Settings>, pub theme_id: Opt...
crates/router/src/services/email/types.rs
router
struct_definition
95
rust
BizEmailProd
null
null
null
null
null
null
null
null
null
null
null