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 FraudHighRiskResponse { pub score: f32, pub reason: Vec<String>, }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
struct_definition
23
rust
FraudHighRiskResponse
null
null
null
null
null
null
null
null
null
null
null
impl Handler { pub fn from_conf( conf: DrainerSettings, stores: HashMap<id_type::TenantId, Arc<Store>>, ) -> Self { let shutdown_interval = Duration::from_millis(conf.shutdown_interval.into()); let loop_interval = Duration::from_millis(conf.loop_interval.into()); let act...
crates/drainer/src/handler.rs
drainer
impl_block
833
rust
null
Handler
null
impl Handler
null
null
null
null
null
null
null
null
impl api::Payment for Zsl {}
crates/hyperswitch_connectors/src/connectors/zsl.rs
hyperswitch_connectors
impl_block
8
rust
null
Zsl
api::Payment for
impl api::Payment for for Zsl
null
null
null
null
null
null
null
null
pub async fn validate_request_and_fetch_optional_customer( &self, ) -> RouterResult<Option<api::CustomerDetails>> { // Validate card's expiry migration::validate_card_expiry(&self.data.card_expiry_month, &self.data.card_expiry_year)?; // Validate customer ID let customer_id ...
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
function_signature
441
rust
null
null
null
null
validate_request_and_fetch_optional_customer
null
null
null
null
null
null
null
pub struct CardRequestStruct { billing_address: Option<Address>, expiry: Option<Secret<String>>, name: Option<Secret<String>>, number: Option<cards::CardNumber>, security_code: Option<Secret<String>>, attributes: Option<CardRequestAttributes>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
57
rust
CardRequestStruct
null
null
null
null
null
null
null
null
null
null
null
pub struct OpayoPaymentsRequest { amount: MinorUnit, card: OpayoCard, }
crates/hyperswitch_connectors/src/connectors/opayo/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
OpayoPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct RelayResponse { /// The unique identifier for the Relay #[schema(example = "relay_mbabizu24mvu3mela5njyhpit4", value_type = String)] pub id: common_utils::id_type::RelayId, /// The status of the relay request #[schema(value_type = RelayStatus)] pub status: api_enums::RelayStatus, ...
crates/api_models/src/relay.rs
api_models
struct_definition
396
rust
RelayResponse
null
null
null
null
null
null
null
null
null
null
null
/// Get the decrypted Apple Pay payment data if it exists pub fn get_decrypted_apple_pay_payment_data_optional(&self) -> Option<&ApplePayPredecryptData> { match self { Self::Encrypted(_) => None, Self::Decrypted(decrypted_data) => Some(decrypted_data), } }
crates/common_types/src/payments.rs
common_types
function_signature
69
rust
null
null
null
null
get_decrypted_apple_pay_payment_data_optional
null
null
null
null
null
null
null
File: crates/analytics/src/payments/distribution.rs Public structs: 1 use api_models::analytics::{ payments::{ PaymentDimensions, PaymentDistributions, PaymentFilters, PaymentMetricsBucketIdentifier, }, Granularity, PaymentDistributionBody, TimeRange, }; use diesel_models::enums as storage_enums; ...
crates/analytics/src/payments/distribution.rs
analytics
full_file
779
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/unified_authentication_service/types.rs Public structs: 2 use api_models::payments; use hyperswitch_domain_models::{ errors::api_error_response::{self as errors, NotImplementedMessage}, router_request_types::{ authentication::MessageCategory, unified_authentication...
crates/router/src/core/unified_authentication_service/types.rs
router
full_file
1,586
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/ebanx/transformers.rs Public structs: 12 #[cfg(feature = "payouts")] use api_models::enums::Currency; #[cfg(feature = "payouts")] use api_models::payouts::{Bank, PayoutMethodData}; #[cfg(feature = "payouts")] use common_enums::{PayoutStatus, PayoutType}; #[cfg(featur...
crates/hyperswitch_connectors/src/connectors/ebanx/transformers.rs
hyperswitch_connectors
full_file
3,134
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn generate_digest(&self, payload: &[u8]) -> String { let payload_digest = digest::digest(&digest::SHA256, payload); consts::BASE64_ENGINE.encode(payload_digest) }
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs
hyperswitch_connectors
function_signature
47
rust
null
null
null
null
generate_digest
null
null
null
null
null
null
null
pub struct RequiredFields(pub HashMap<enums::PaymentMethod, PaymentMethodType>);
crates/payment_methods/src/configs/settings.rs
payment_methods
struct_definition
17
rust
RequiredFields
null
null
null
null
null
null
null
null
null
null
null
pub struct Capture { pub capture_id: String, pub payment_id: common_utils::id_type::PaymentId, pub merchant_id: common_utils::id_type::MerchantId, pub status: storage_enums::CaptureStatus, pub amount: MinorUnit, pub currency: Option<storage_enums::Currency>, pub connector: String, pub er...
crates/diesel_models/src/capture.rs
diesel_models
struct_definition
246
rust
Capture
null
null
null
null
null
null
null
null
null
null
null
pub struct DeleteNetworkTokenResponse { pub status: DeleteNetworkTokenStatus, }
crates/router/src/types/payment_methods.rs
router
struct_definition
17
rust
DeleteNetworkTokenResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Bamboraapac {}
crates/hyperswitch_connectors/src/connectors/bamboraapac.rs
hyperswitch_connectors
impl_block
11
rust
null
Bamboraapac
api::Payment for
impl api::Payment for for Bamboraapac
null
null
null
null
null
null
null
null
pub struct Transactions { transaction_id: String, gateway_status_code: String, payment_method: PaymentMethod, amount: i64, currency: Currency, gateway: Option<String>, }
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs
hyperswitch_connectors
struct_definition
43
rust
Transactions
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/nmi.rs use std::{str::FromStr, time::Duration}; use router::types::{self, domain, storage::enums}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; struct NmiTest; impl ConnectorActions for NmiTest {} impl utils::Connector for NmiTest { fn get_data(&s...
crates/router/tests/connectors/nmi.rs
router
full_file
4,885
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Shift4 { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&SHIFT4_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*SHIFT4_SUPPORTED_PAYMENT_METHODS) } fn get_support...
crates/hyperswitch_connectors/src/connectors/shift4.rs
hyperswitch_connectors
impl_block
105
rust
null
Shift4
ConnectorSpecifications for
impl ConnectorSpecifications for for Shift4
null
null
null
null
null
null
null
null
pub struct PayuOrderResponseProperty { name: String, value: String, }
crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
PayuOrderResponseProperty
null
null
null
null
null
null
null
null
null
null
null
/// Panics if `json_payload` array does not contain one `GetAuthEventMetricRequest` element. pub async fn get_merchant_auth_event_metrics( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<[GetAuthEventMetricRequest; 1]>, ) -> impl Responder { // sa...
crates/router/src/analytics.rs
router
function_signature
308
rust
null
null
null
null
get_merchant_auth_event_metrics
null
null
null
null
null
null
null
impl api::Payment for Datatrans {}
crates/hyperswitch_connectors/src/connectors/datatrans.rs
hyperswitch_connectors
impl_block
9
rust
null
Datatrans
api::Payment for
impl api::Payment for for Datatrans
null
null
null
null
null
null
null
null
File: crates/router/src/types/storage/dispute.rs use async_bb8_diesel::AsyncRunQueryDsl; use common_utils::errors::CustomResult; use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, QueryDsl}; pub use diesel_models::dispute::{Dispute, DisputeNew, DisputeUpdate}; use diesel_models::{errors, qu...
crates/router/src/types/storage/dispute.rs
router
full_file
1,396
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn user_from_email( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<user_api::UserFromEmailRequest>, ) -> HttpResponse { let flow = Flow::UserFromEmail; Box::pin(api::server_wrap( flow, state.clone(), &req, json_payload.into_inner(), ...
crates/router/src/routes/user.rs
router
function_signature
124
rust
null
null
null
null
user_from_email
null
null
null
null
null
null
null
File: crates/common_types/src/primitive_wrappers.rs Public functions: 1 Public structs: 5 pub use bool_wrappers::*; pub use u32_wrappers::*; mod bool_wrappers { use std::ops::Deref; use serde::{Deserialize, Serialize}; /// Bool that represents if Extended Authorization is Applied or not #[derive( ...
crates/common_types/src/primitive_wrappers.rs
common_types
full_file
2,012
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BluesnapWebhookObjectResource { reference_number: String, transaction_type: BluesnapWebhookEvents, reversal_ref_num: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
BluesnapWebhookObjectResource
null
null
null
null
null
null
null
null
null
null
null
pub struct WebhookResponseData { pub statuses: Statuses, pub descriptor: String, pub notifications: NotificationContainer, #[serde(rename = "merchant-account-id")] pub merchant_account_id: MerchantAccountId, #[serde(rename = "transaction-id")] pub transaction_id: String, #[serde(rename =...
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
381
rust
WebhookResponseData
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SepaBankTransfer { "type": "object", "required": [ "iban", "bic" ], "properties": { "bank_name": { "type": "string", "description": "Bank name", "example": "Deutsche Bank", "nullable": true }, "bank_country_code": { "allOf"...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
289
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SepaBankTransfer" ]
null
null
null
null
pub struct SubmitSingleCaptureResponse { submit_single_capture_result: SubmitSingleCaptureResult, }
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
SubmitSingleCaptureResponse
null
null
null
null
null
null
null
null
null
null
null
impl VaultingInterface for GetVaultFingerprint { fn get_vaulting_request_url() -> &'static str { consts::VAULT_FINGERPRINT_REQUEST_URL } fn get_vaulting_flow_name() -> &'static str { consts::VAULT_GET_FINGERPRINT_FLOW_TYPE } }
crates/router/src/types/payment_methods.rs
router
impl_block
66
rust
null
GetVaultFingerprint
VaultingInterface for
impl VaultingInterface for for GetVaultFingerprint
null
null
null
null
null
null
null
null
pub struct PaypalPaymentsSyncResponse { id: String, status: PaypalPaymentStatus, amount: OrderAmount, invoice_id: Option<String>, supplementary_data: PaypalSupplementaryData, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
42
rust
PaypalPaymentsSyncResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Nexinets {}
crates/hyperswitch_connectors/src/connectors/nexinets.rs
hyperswitch_connectors
impl_block
11
rust
null
Nexinets
api::RefundExecute for
impl api::RefundExecute for for Nexinets
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/routing/routing--activate-config.mdx # Type: Doc File --- openapi: post /routing/{routing_algorithm_id}/activate ---
api-reference/v1/routing/routing--activate-config.mdx
null
doc_file
37
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub fn from_storage(refund: &'a Refund) -> Self { Self { internal_reference_id: &refund.internal_reference_id, refund_id: &refund.refund_id, payment_id: &refund.payment_id, merchant_id: &refund.merchant_id, connector_transaction_id: refund.get_connecto...
crates/router/src/services/kafka/refund_event.rs
router
function_signature
272
rust
null
null
null
null
from_storage
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/payment_methods/{method_id}/update" { "post": { "tags": [ "Payment Methods" ], "summary": "Payment Method - Update", "description": "Update an existing payment method of a customer.\nThis API is useful for use cases such as updating the card number for expired cards t...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
316
.json
null
null
null
null
null
openapi_spec
paths
[ "/payment_methods/{method_id}/update" ]
null
null
null
null
/// For backwards compatibility, whenever new business labels are passed in /// primary_business_details, create a profile pub async fn create_profile_from_business_labels( state: &SessionState, db: &dyn StorageInterface, key_store: &domain::MerchantKeyStore, merchant_id: &id_type::MerchantId, new_b...
crates/router/src/core/admin.rs
router
function_signature
498
rust
null
null
null
null
create_profile_from_business_labels
null
null
null
null
null
null
null
pub struct ExternalVaultProxy;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
6
rust
ExternalVaultProxy
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/wellsfargo.rs use masking::Secret; use router::types::{self, api, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct WellsfargoTest; impl ConnectorActions for WellsfargoTest {} impl utils::Connector f...
crates/router/tests/connectors/wellsfargo.rs
router
full_file
2,939
null
null
null
null
null
null
null
null
null
null
null
null
null
impl<O> VirInterpreterBackend<O> where O: Clone, { #[inline] fn eval_comparison(comp: &vir::ValuedComparison, ctx: &types::Context) -> bool { match &comp.logic { vir::ValuedComparisonLogic::PositiveDisjunction => { comp.values.iter().any(|v| ctx.check_presence(v)) ...
crates/euclid/src/backend/vir_interpreter.rs
euclid
impl_block
419
rust
null
VirInterpreterBackend
null
impl VirInterpreterBackend
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Coingate {}
crates/hyperswitch_connectors/src/connectors/coingate.rs
hyperswitch_connectors
impl_block
10
rust
null
Coingate
api::PaymentVoid for
impl api::PaymentVoid for for Coingate
null
null
null
null
null
null
null
null
pub struct CybersourceConsumerAuthInformation { ucaf_collection_indicator: Option<String>, cavv: Option<Secret<String>>, ucaf_authentication_data: Option<Secret<String>>, xid: Option<String>, directory_server_transaction_id: Option<Secret<String>>, specification_version: Option<SemanticVersion>,...
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
506
rust
CybersourceConsumerAuthInformation
null
null
null
null
null
null
null
null
null
null
null
pub async fn generate_merchant_authentication_report( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<ReportRequest>, ) -> impl Responder { let flow = AnalyticsFlow::GenerateAuthenticationReport; Box::pin(api::server_wrap( flow, ...
crates/router/src/analytics.rs
router
function_signature
365
rust
null
null
null
null
generate_merchant_authentication_report
null
null
null
null
null
null
null
pub struct CardInfoFetch;
crates/router/src/core/cards_info.rs
router
struct_definition
6
rust
CardInfoFetch
null
null
null
null
null
null
null
null
null
null
null
impl PaymentAddress { pub fn new( shipping: Option<Address>, billing: Option<Address>, payment_method_billing: Option<Address>, should_unify_address: Option<bool>, ) -> Self { // billing -> .billing, this is the billing details passed in the root of payments request ...
crates/hyperswitch_domain_models/src/payment_address.rs
hyperswitch_domain_models
impl_block
685
rust
null
PaymentAddress
null
impl PaymentAddress
null
null
null
null
null
null
null
null
/// Generate a new GlobalAttemptId from a cell id pub fn generate(cell_id: &super::CellId) -> Self { let global_id = super::GlobalId::generate(cell_id, super::GlobalEntity::Attempt); Self(global_id) }
crates/common_utils/src/id_type/global_id/payment.rs
common_utils
function_signature
56
rust
null
null
null
null
generate
null
null
null
null
null
null
null
File: crates/api_models/src/events/locker_migration.rs use common_utils::events::ApiEventMetric; use crate::locker_migration::MigrateCardResponse; impl ApiEventMetric for MigrateCardResponse { fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType> { Some(common_utils::events::ApiEven...
crates/api_models/src/events/locker_migration.rs
api_models
full_file
83
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Novalnet {}
crates/hyperswitch_connectors/src/connectors/novalnet.rs
hyperswitch_connectors
impl_block
10
rust
null
Novalnet
api::PaymentVoid for
impl api::PaymentVoid for for Novalnet
null
null
null
null
null
null
null
null
File: crates/router/src/core/cache.rs Public functions: 1 use common_utils::errors::CustomResult; use error_stack::{report, ResultExt}; use storage_impl::redis::cache::{redact_from_redis_and_publish, CacheKind}; use super::errors; use crate::{routes::SessionState, services}; pub async fn invalidate( state: Sess...
crates/router/src/core/cache.rs
router
full_file
230
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Opayo { pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/opayo.rs
hyperswitch_connectors
impl_block
33
rust
null
Opayo
null
impl Opayo
null
null
null
null
null
null
null
null
impl Noon { pub const fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/noon.rs
hyperswitch_connectors
impl_block
34
rust
null
Noon
null
impl Noon
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/refunds/{refund_id}" { "get": { "tags": [ "Refunds" ], "summary": "Refunds - Retrieve", "description": "Retrieves a Refund. This may be used to get the status of a previously initiated refund", "operationId": "Retrieve a Refund", "parameters": [ { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
580
.json
null
null
null
null
null
openapi_spec
paths
[ "/refunds/{refund_id}" ]
null
null
null
null
pub async fn api_key_list( state: web::Data<AppState>, req: HttpRequest, query: web::Query<api_types::ListApiKeyConstraints>, ) -> impl Responder { let flow = Flow::ApiKeyList; let payload = query.into_inner(); Box::pin(api::server_wrap( flow, state, &req, payloa...
crates/router/src/routes/api_keys.rs
router
function_signature
208
rust
null
null
null
null
api_key_list
null
null
null
null
null
null
null
shipping_address_id: storage_model.shipping_address_id, billing_address_id: storage_model.billing_address_id, statement_descriptor_name: storage_model.statement_descriptor_name, statement_descriptor_suffix: storage_model.statement_descriptor_suffix, ...
crates/hyperswitch_domain_models/src/payments/payment_intent.rs#chunk2
hyperswitch_domain_models
chunk
1,447
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TokenizedCardData { card_data: ArchipelTokenizedCard, wallet_information: ArchipelWalletInformation, }
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
TokenizedCardData
null
null
null
null
null
null
null
null
null
null
null
pub struct NordeaOAuthExchangeRequest { /// authorization_code flow #[serde(skip_serializing_if = "Option::is_none")] pub code: Option<Secret<String>>, pub grant_type: GrantType, #[serde(skip_serializing_if = "Option::is_none")] pub redirect_uri: Option<String>, /// refresh_token flow #[...
crates/hyperswitch_connectors/src/connectors/nordea/requests.rs
hyperswitch_connectors
struct_definition
98
rust
NordeaOAuthExchangeRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Rapyd {}
crates/hyperswitch_connectors/src/connectors/rapyd.rs
hyperswitch_connectors
impl_block
9
rust
null
Rapyd
api::Payment for
impl api::Payment for for Rapyd
null
null
null
null
null
null
null
null
#[proc_macro] pub fn knowledge(ts: TokenStream) -> TokenStream { match inner::knowledge_inner(ts.into()) { Ok(ts) => ts.into(), Err(e) => e.into_compile_error().into(), } }
crates/euclid_macros/src/lib.rs
euclid_macros
macro
50
rust
null
null
null
null
null
null
null
null
proc_function_like
null
null
null
pub fn get_all_captures(&self) -> Vec<&storage::Capture> { self.all_captures .iter() .map(|key_value| key_value.1) .collect() }
crates/router/src/core/payments/types.rs
router
function_signature
47
rust
null
null
null
null
get_all_captures
null
null
null
null
null
null
null
pub trait DecryptedDataConversion<T: Clone, S: Strategy<T> + Send>: Sized { fn convert( value: &DecryptedData, encryption: Encryption, ) -> CustomResult<Self, errors::CryptoError>; }
crates/common_utils/src/types/keymanager.rs
common_utils
trait_definition
50
rust
null
null
DecryptedDataConversion
null
null
null
null
null
null
null
null
null
impl RefundMetricAccumulator for CountAccumulator { type MetricOutput = Option<u64>; #[inline] fn add_metrics_bucket(&mut self, metrics: &RefundMetricRow) { self.count = match (self.count, metrics.count) { (None, None) => None, (None, i @ Some(_)) | (i @ Some(_), None) => i, ...
crates/analytics/src/refunds/accumulator.rs
analytics
impl_block
142
rust
null
CountAccumulator
RefundMetricAccumulator for
impl RefundMetricAccumulator for for CountAccumulator
null
null
null
null
null
null
null
null
pub async fn get_filters_for_payments( state: SessionState, merchant_context: domain::MerchantContext, time_range: common_utils::types::TimeRange, ) -> RouterResponse<api::PaymentListFilters> { let db = state.store.as_ref(); let pi = db .filter_payment_intents_by_time_range_constraints( ...
crates/router/src/core/payments.rs
router
function_signature
283
rust
null
null
null
null
get_filters_for_payments
null
null
null
null
null
null
null
pub async fn verify_email_request( state: web::Data<AppState>, http_req: HttpRequest, json_payload: web::Json<user_api::SendVerifyEmailRequest>, query: web::Query<user_api::AuthIdAndThemeIdQueryParam>, ) -> HttpResponse { let flow = Flow::VerifyEmailRequest; let query_params = query.into_inner()...
crates/router/src/routes/user.rs
router
function_signature
175
rust
null
null
null
null
verify_email_request
null
null
null
null
null
null
null
pub struct SignifydErrorResponse { pub messages: Vec<String>, pub errors: serde_json::Value, }
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs
hyperswitch_connectors
struct_definition
24
rust
SignifydErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Zen {}
crates/hyperswitch_connectors/src/connectors/zen.rs
hyperswitch_connectors
impl_block
8
rust
null
Zen
api::Refund for
impl api::Refund for for Zen
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/gsm.rs Public structs: 2 use common_utils::{errors::ValidationError, ext_traits::StringExt}; use serde::{self, Deserialize, Serialize}; #[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq)] pub struct GatewayStatusMap { pub connector: String, pub flow: Stri...
crates/hyperswitch_domain_models/src/gsm.rs
hyperswitch_domain_models
full_file
1,075
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PayloadRefundResponse { pub amount: f64, #[serde(rename = "id")] pub transaction_id: String, pub ledger: Vec<RefundsLedger>, #[serde(rename = "payment_method_id")] pub connector_payment_method_id: Option<Secret<String>>, pub processing_id: Option<Secret<String>>, pub ref_numbe...
crates/hyperswitch_connectors/src/connectors/payload/responses.rs
hyperswitch_connectors
struct_definition
106
rust
PayloadRefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn generate_signature( &self, auth: bankofamerica::BankOfAmericaAuthType, host: String, resource: &str, payload: &String, date: OffsetDateTime, http_method: Method, ) -> CustomResult<String, errors::ConnectorError> { let bankofamerica::BankOfAmeric...
crates/hyperswitch_connectors/src/connectors/bankofamerica.rs
hyperswitch_connectors
function_signature
389
rust
null
null
null
null
generate_signature
null
null
null
null
null
null
null
pub fn get_connector_payment_id(&self) -> Option<&str> { self.connector_payment_id.as_deref() }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
26
rust
null
null
null
null
get_connector_payment_id
null
null
null
null
null
null
null
Documentation: api-reference/v1/payments/payments--session-token.mdx # Type: Doc File --- openapi: post /payments/session_tokens ---
api-reference/v1/payments/payments--session-token.mdx
null
doc_file
33
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PayuPaymentsResponse { pub status: PayuPaymentStatusData, pub redirect_uri: String, pub iframe_allowed: Option<bool>, pub three_ds_protocol_version: Option<String>, pub order_id: String, pub ext_order_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
hyperswitch_connectors
struct_definition
59
rust
PayuPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_connector_mandate_id( db: &dyn StorageInterface, merchant_id: &id_type::MerchantId, mandate_ids_opt: Option<String>, payment_method_id: Option<String>, resp: Result<types::PaymentsResponseData, types::ErrorResponse>, storage_scheme: MerchantStorageScheme, ) -> RouterResponse<...
crates/router/src/core/mandate.rs
router
function_signature
469
rust
null
null
null
null
update_connector_mandate_id
null
null
null
null
null
null
null
pub struct EbanxPayoutDetails { name: Secret<String>, email: Option<Email>, document: Option<Secret<String>>, document_type: Option<EbanxDocumentType>, bank_info: EbanxBankDetails, }
crates/hyperswitch_connectors/src/connectors/ebanx/transformers.rs
hyperswitch_connectors
struct_definition
52
rust
EbanxPayoutDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct GooglePayPaymentMethodInfo { /// The name of the card network pub card_network: String, /// The details of the card pub card_details: String, //assurance_details of the card pub assurance_details: Option<GooglePayAssuranceDetails>, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
61
rust
GooglePayPaymentMethodInfo
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_gsm_rule( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<gsm_api_types::GsmDeleteRequest>, ) -> impl Responder { let payload = json_payload.into_inner(); let flow = Flow::GsmRuleDelete; Box::pin(api::server_wrap( flow, state, &...
crates/router/src/routes/gsm.rs
router
function_signature
131
rust
null
null
null
null
delete_gsm_rule
null
null
null
null
null
null
null
File: crates/common_utils/src/ext_traits.rs //! This module holds traits for extending functionalities for existing datatypes //! & inbuilt datatypes. use error_stack::ResultExt; use masking::{ExposeInterface, PeekInterface, Secret, Strategy}; use quick_xml::de; #[cfg(all(feature = "logs", feature = "async_ext"))] us...
crates/common_utils/src/ext_traits.rs
common_utils
full_file
4,745
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PmTokenStored;
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
struct_definition
7
rust
PmTokenStored
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Fiuu {}
crates/hyperswitch_connectors/src/connectors/fiuu.rs
hyperswitch_connectors
impl_block
10
rust
null
Fiuu
api::PaymentCapture for
impl api::PaymentCapture for for Fiuu
null
null
null
null
null
null
null
null
pub struct PaymentInput { pub amount: common_utils::types::MinorUnit, pub currency: enums::Currency, pub authentication_type: Option<enums::AuthenticationType>, pub card_bin: Option<String>, pub capture_method: Option<enums::CaptureMethod>, pub business_country: Option<enums::Country>, pub b...
crates/euclid/src/backend/inputs.rs
euclid
struct_definition
102
rust
PaymentInput
null
null
null
null
null
null
null
null
null
null
null
File: crates/scheduler/src/errors.rs pub use common_utils::errors::{ParsingError, ValidationError}; #[cfg(feature = "email")] use external_services::email::EmailError; use hyperswitch_domain_models::errors::api_error_response::ApiErrorResponse; pub use redis_interface::errors::RedisError; pub use storage_impl::errors:...
crates/scheduler/src/errors.rs
scheduler
full_file
1,144
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct HelcimAuthType { pub(super) api_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
HelcimAuthType
null
null
null
null
null
null
null
null
null
null
null
pub async fn decrypt_oidc_private_config( state: &SessionState, encrypted_config: Option<Encryption>, id: String, ) -> UserResult<user_api::OpenIdConnectPrivateConfig> { let user_auth_key = hex::decode( state .conf .user_auth_methods .get_inner() ....
crates/router/src/utils/user.rs
router
function_signature
291
rust
null
null
null
null
decrypt_oidc_private_config
null
null
null
null
null
null
null
pub struct ApplePayPaymentInformation { tokenized_card: TokenizedCard, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
ApplePayPaymentInformation
null
null
null
null
null
null
null
null
null
null
null
impl Organization { pub fn server(state: AppState) -> Scope { web::scope("/v2/organizations") .app_data(web::Data::new(state)) .service(web::resource("").route(web::post().to(admin::organization_create))) .service( web::scope("/{id}") ....
crates/router/src/routes/app.rs
router
impl_block
136
rust
null
Organization
null
impl Organization
null
null
null
null
null
null
null
null
pub trait RoutingEventsInterface { fn get_routable_connectors(&self) -> Option<Vec<RoutableConnectorChoice>>; fn get_payment_connector(&self) -> Option<RoutableConnectorChoice>; }
crates/router/src/core/payments/routing/utils.rs
router
trait_definition
43
rust
null
null
RoutingEventsInterface
null
null
null
null
null
null
null
null
null
pub async fn get_recovery_code_attempts_from_redis( state: &SessionState, user_id: &str, ) -> UserResult<u8> { let redis_conn = super::get_redis_connection_for_global_tenant(state)?; redis_conn .get_key::<Option<u8>>(&get_recovery_code_attempts_key(user_id).into()) .await .change...
crates/router/src/utils/user/two_factor_auth.rs
router
function_signature
98
rust
null
null
null
null
get_recovery_code_attempts_from_redis
null
null
null
null
null
null
null
pub struct JWTAuthMerchantAndProfileFromRoute { pub merchant_id: id_type::MerchantId, pub profile_id: id_type::ProfileId, pub required_permission: Permission, }
crates/router/src/services/authentication.rs
router
struct_definition
40
rust
JWTAuthMerchantAndProfileFromRoute
null
null
null
null
null
null
null
null
null
null
null
pub fn get_optional_card_and_cvc( &self, ) -> (Option<domain::CardDetail>, Option<Secret<String>>) { (self.card.clone(), self.card_cvc.clone()) }
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
function_signature
44
rust
null
null
null
null
get_optional_card_and_cvc
null
null
null
null
null
null
null
pub async fn check_two_factor_auth_status_with_attempts( 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_fact...
crates/router/src/routes/user.rs
router
function_signature
119
rust
null
null
null
null
check_two_factor_auth_status_with_attempts
null
null
null
null
null
null
null
pub async fn set_dynamic_routing_volume_split( state: web::Data<AppState>, req: HttpRequest, query: web::Query<api_models::routing::DynamicRoutingVolumeSplitQuery>, path: web::Path<routing_types::ToggleDynamicRoutingPath>, ) -> impl Responder { let flow = Flow::VolumeSplitOnRoutingType; let rout...
crates/router/src/routes/routing.rs
router
function_signature
346
rust
null
null
null
null
set_dynamic_routing_volume_split
null
null
null
null
null
null
null
pub struct RequestPaymentMethodTypes { #[schema(value_type = PaymentMethodType)] pub payment_method_type: api_enums::PaymentMethodType, #[schema(value_type = Option<PaymentExperience>)] pub payment_experience: Option<api_enums::PaymentExperience>, #[schema(value_type = Option<Vec<CardNetwork>>)] ...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
404
rust
RequestPaymentMethodTypes
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_network_token( state: &routes::SessionState, customer_id: &id_type::GlobalCustomerId, network_token_requestor_ref_id: String, tokenization_service: &settings::NetworkTokenizationService, ) -> CustomResult<pm_types::TokenResponse, errors::NetworkTokenizationError> { let mut request =...
crates/router/src/core/payment_methods/network_tokenization.rs
router
function_signature
524
rust
null
null
null
null
get_network_token
null
null
null
null
null
null
null
pub struct PaymentMethodAuth { pub redis_expiry: i64, pub pm_auth_key: Secret<String>, }
crates/payment_methods/src/configs/settings.rs
payment_methods
struct_definition
25
rust
PaymentMethodAuth
null
null
null
null
null
null
null
null
null
null
null
pub struct WisePayoutCreateRequest { target_account: i64, quote_uuid: String, customer_transaction_id: String, details: WiseTransferDetails, }
crates/hyperswitch_connectors/src/connectors/wise/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
WisePayoutCreateRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct StripeSetupIntentRequest { pub confirm: Option<bool>, pub customer: Option<id_type::CustomerId>, pub connector: Option<Vec<api_enums::RoutableConnectors>>, pub description: Option<String>, pub currency: Option<String>, pub payment_method_data: Option<StripePaymentMethodData>, pub ...
crates/router/src/compatibility/stripe/setup_intents/types.rs
router
struct_definition
252
rust
StripeSetupIntentRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_card_from_locker( state: &routes::SessionState, customer_id: &id_type::CustomerId, merchant_id: &id_type::MerchantId, card_reference: &str, ) -> errors::RouterResult<Card> { metrics::GET_FROM_LOCKER.add(1, &[]); let get_card_from_rs_locker_resp = common_utils::metrics::utils::r...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
259
rust
null
null
null
null
get_card_from_locker
null
null
null
null
null
null
null
pub struct StripebillingInvoiceObject { #[serde(rename = "id")] pub invoice_id: String, #[serde(deserialize_with = "convert_uppercase")] pub currency: enums::Currency, #[serde(rename = "amount_remaining")] pub amount: common_utils::types::MinorUnit, pub attempt_count: Option<u16>, }
crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
hyperswitch_connectors
struct_definition
74
rust
StripebillingInvoiceObject
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Ebanx {}
crates/hyperswitch_connectors/src/connectors/ebanx.rs
hyperswitch_connectors
impl_block
10
rust
null
Ebanx
api::PaymentToken for
impl api::PaymentToken for for Ebanx
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Checkout { fn get_webhook_source_verification_algorithm( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(crypto::HmacSha256)) } fn ge...
crates/hyperswitch_connectors/src/connectors/checkout.rs
hyperswitch_connectors
impl_block
1,291
rust
null
Checkout
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Checkout
null
null
null
null
null
null
null
null
pub async fn refund_response_wrapper<F, Fut, T, Req>( state: SessionState, merchant_context: domain::MerchantContext, profile_id: Option<common_utils::id_type::ProfileId>, request: Req, f: F, ) -> RouterResponse<refunds::RefundResponse> where F: Fn( SessionState, domain::Merchant...
crates/router/src/core/refunds.rs
router
function_signature
164
rust
null
null
null
null
refund_response_wrapper
null
null
null
null
null
null
null
impl api::ConnectorCustomer for Stax {}
crates/hyperswitch_connectors/src/connectors/stax.rs
hyperswitch_connectors
impl_block
9
rust
null
Stax
api::ConnectorCustomer for
impl api::ConnectorCustomer for for Stax
null
null
null
null
null
null
null
null