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 api::PaymentVoid for Jpmorgan {}
crates/hyperswitch_connectors/src/connectors/jpmorgan.rs
hyperswitch_connectors
impl_block
10
rust
null
Jpmorgan
api::PaymentVoid for
impl api::PaymentVoid for for Jpmorgan
null
null
null
null
null
null
null
null
pub struct AcsProtocolVersion { pub version: SemanticVersion, #[serde(rename = "threeDSMethodURL")] pub three_ds_method_url: Option<String>, }
crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
AcsProtocolVersion
null
null
null
null
null
null
null
null
null
null
null
Ok(Some(api::MandateTransactionType::NewMandateTransaction)) } Some(api::MandateTransactionType::RecurringMandateTransaction) => { validate_recurring_mandate(req)?; Ok(Some( api::MandateTransactionType::RecurringMandateTransaction, )) ...
crates/router/src/core/payments/helpers.rs#chunk1
router
chunk
8,187
null
null
null
null
null
null
null
null
null
null
null
null
null
impl SecretState for SecuredSecret {}
crates/hyperswitch_interfaces/src/secrets_interface/secret_state.rs
hyperswitch_interfaces
impl_block
8
rust
null
SecuredSecret
SecretState for
impl SecretState for for SecuredSecret
null
null
null
null
null
null
null
null
pub struct Authentication { pub authentication_id: common_utils::id_type::AuthenticationId, pub merchant_id: common_utils::id_type::MerchantId, pub authentication_connector: Option<String>, pub connector_authentication_id: Option<String>, pub authentication_data: Option<serde_json::Value>, pub p...
crates/diesel_models/src/authentication.rs
diesel_models
struct_definition
645
rust
Authentication
null
null
null
null
null
null
null
null
null
null
null
impl PaymentsResponseScheme { pub fn new(reference: String) -> Self { Self { reference } } }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
impl_block
24
rust
null
PaymentsResponseScheme
null
impl PaymentsResponseScheme
null
null
null
null
null
null
null
null
pub struct RefundResponse { //A unique number that tags a credit or debit card transaction when it goes from the merchant's bank through to the cardholder's bank. acquirer_reference_number: Option<String>, amount: f32, //Unique identifier for the Refund id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
73
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/router_data_v2.rs Public structs: 1 pub mod flow_common_types; use std::{marker::PhantomData, ops::Deref}; use common_utils::id_type; #[cfg(feature = "frm")] pub use flow_common_types::FrmFlowData; #[cfg(feature = "payouts")] pub use flow_common_types::PayoutFlowData; pub ...
crates/hyperswitch_domain_models/src/router_data_v2.rs
hyperswitch_domain_models
full_file
363
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn validate_role_groups(groups: &[PermissionGroup]) -> UserResult<()> { if groups.is_empty() { return Err(report!(UserErrors::InvalidRoleOperation)) .attach_printable("Role groups cannot be empty"); } let unique_groups: HashSet<_> = groups.iter().copied().collect(); if unique_g...
crates/router/src/utils/user_role.rs
router
function_signature
160
rust
null
null
null
null
validate_role_groups
null
null
null
null
null
null
null
File: crates/router/src/types/domain/user/dashboard_metadata.rs Public structs: 1 use api_models::user::dashboard_metadata as api; use diesel_models::enums::DashboardMetadata as DBEnum; use masking::Secret; use time::PrimitiveDateTime; pub enum MetaData { ProductionAgreement(ProductionAgreementValue), SetupP...
crates/router/src/types/domain/user/dashboard_metadata.rs
router
full_file
661
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Shift4 {}
crates/hyperswitch_connectors/src/connectors/shift4.rs
hyperswitch_connectors
impl_block
7
rust
null
Shift4
ConnectorValidation for
impl ConnectorValidation for for Shift4
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Coingate { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&COINGATE_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*COINGATE_SUPPORTED_PAYMENT_METHODS) } fn get_s...
crates/hyperswitch_connectors/src/connectors/coingate.rs
hyperswitch_connectors
impl_block
109
rust
null
Coingate
ConnectorSpecifications for
impl ConnectorSpecifications for for Coingate
null
null
null
null
null
null
null
null
impl ProcessTrackerInterface for KafkaStore { async fn reinitialize_limbo_processes( &self, ids: Vec<String>, schedule_time: PrimitiveDateTime, ) -> CustomResult<usize, errors::StorageError> { self.diesel_store .reinitialize_limbo_processes(ids, schedule_time) ...
crates/router/src/db/kafka_store.rs
router
impl_block
567
rust
null
KafkaStore
ProcessTrackerInterface for
impl ProcessTrackerInterface for for KafkaStore
null
null
null
null
null
null
null
null
File: crates/router/src/types/authentication.rs pub use hyperswitch_domain_models::{ router_request_types::authentication::{ AcquirerDetails, AuthNFlowType, ChallengeParams, ConnectorAuthenticationRequestData, ConnectorPostAuthenticationRequestData, PreAuthNRequestData, PreAuthenticationData, }...
crates/router/src/types/authentication.rs
router
full_file
324
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn merchant_account_toggle_all_kv( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<admin::ToggleAllKVRequest>, ) -> HttpResponse { let flow = Flow::MerchantTransferKey; let payload = json_payload.into_inner(); api::server_wrap( flow, state, ...
crates/router/src/routes/admin.rs
router
function_signature
129
rust
null
null
null
null
merchant_account_toggle_all_kv
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GpayMerchantInfo { "type": "object", "required": [ "merchant_name" ], "properties": { "merchant_id": { "type": "string", "description": "The merchant Identifier that needs to be passed while invoking Gpay SDK", "nullable": true }, "merchan...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
117
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GpayMerchantInfo" ]
null
null
null
null
pub struct MerchantAccountListRequest { pub organization_id: id_type::OrganizationId, }
crates/api_models/src/admin.rs
api_models
struct_definition
19
rust
MerchantAccountListRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/router_flow_types/mandate_revoke.rs Public structs: 1 #[derive(Clone, Debug)] pub struct MandateRevoke;
crates/hyperswitch_domain_models/src/router_flow_types/mandate_revoke.rs
hyperswitch_domain_models
full_file
39
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert_totp_secret_in_redis( state: &SessionState, user_id: &str, secret: &masking::Secret<String>, ) -> UserResult<()> { let redis_conn = super::get_redis_connection_for_global_tenant(state)?; redis_conn .set_key_with_expiry( &get_totp_secret_key(user_id).into(), ...
crates/router/src/utils/user/two_factor_auth.rs
router
function_signature
114
rust
null
null
null
null
insert_totp_secret_in_redis
null
null
null
null
null
null
null
File: crates/router/src/services/authentication/blacklist.rs Public functions: 6 use std::sync::Arc; #[cfg(feature = "olap")] use common_utils::date_time; use error_stack::ResultExt; use redis_interface::RedisConnectionPool; use super::AuthToken; #[cfg(feature = "olap")] use super::{SinglePurposeOrLoginToken, Singl...
crates/router/src/services/authentication/blacklist.rs
router
full_file
1,539
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ExtendedCardInfoResponse { "type": "object", "required": [ "payload" ], "properties": { "payload": { "type": "string" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
55
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ExtendedCardInfoResponse" ]
null
null
null
null
pub struct PaymentsResponse { order_id: String, fraud_status: KlarnaFraudStatus, authorized_payment_method: Option<AuthorizedPaymentMethod>, }
crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
PaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct InfoCodes { address: Option<Vec<String>>, identity_change: Option<Vec<String>>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
InfoCodes
null
null
null
null
null
null
null
null
null
null
null
pub struct AlternativePaymentMethod { pub payment_method: AlternativePaymentMethodType, #[serde(rename = "BIC")] pub bank_id: Option<NuveiBIC>, }
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
AlternativePaymentMethod
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::PaymentsList; 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(Box:...
crates/router/src/routes/payments.rs
router
impl_block
144
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub trait Tokenizable { fn set_session_token(&mut self, token: Option<String>); }
crates/router/src/types.rs
router
trait_definition
20
rust
null
null
Tokenizable
null
null
null
null
null
null
null
null
null
pub fn string_str(input: &str) -> ParseResult<&str, String> { error::context( "String", combinator::map( sequence::delimited( complete::tag("\""), complete::take_while1(|c: char| c != '"'), complete::tag("\""), ), |v...
crates/euclid/src/frontend/ast/parser.rs
euclid
function_signature
86
rust
null
null
null
null
string_str
null
null
null
null
null
null
null
impl ConnectorCommon for Paypal { fn id(&self) -> &'static str { "paypal" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a ...
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
impl_block
665
rust
null
Paypal
ConnectorCommon for
impl ConnectorCommon for for Paypal
null
null
null
null
null
null
null
null
pub struct FiuuFPXData { #[serde(rename = "non_3DS")] non_3ds: i32, txn_channel: FPXTxnChannel, }
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
40
rust
FiuuFPXData
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.WeChatPay { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
21
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "WeChatPay" ]
null
null
null
null
pub struct RedirectRequest { name: Secret<String>, country_code: enums::CountryAlpha2, experience_context: ContextStruct, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
RedirectRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct DlocalRefundRequest { pub amount: String, pub payment_id: String, pub currency: enums::Currency, pub id: String, }
crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
DlocalRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert_recovery_code_attempts_in_redis( state: &SessionState, user_id: &str, user_recovery_code_attempts: u8, ) -> UserResult<()> { let redis_conn = super::get_redis_connection_for_global_tenant(state)?; redis_conn .set_key_with_expiry( &get_recovery_code_attempts_ke...
crates/router/src/utils/user/two_factor_auth.rs
router
function_signature
118
rust
null
null
null
null
insert_recovery_code_attempts_in_redis
null
null
null
null
null
null
null
/// Executes a capture request by building a connector-specific request and deciding /// the appropriate flow to send it to the payment connector. pub async fn call_capture_request( mut capture_router_data: types::RouterData< api::Capture, PaymentsCaptureData, types::PaymentsResponseData, ...
crates/router/src/core/payments/flows.rs
router
function_signature
236
rust
null
null
null
null
call_capture_request
null
null
null
null
null
null
null
impl super::sdk_events::metrics::SdkEventMetricAnalytics for ClickhouseClient {}
crates/analytics/src/clickhouse.rs
analytics
impl_block
17
rust
null
ClickhouseClient
super::sdk_events::metrics::SdkEventMetricAnalytics for
impl super::sdk_events::metrics::SdkEventMetricAnalytics for for ClickhouseClient
null
null
null
null
null
null
null
null
File: crates/cards/src/lib.rs Public functions: 6 Public structs: 4 pub mod validate; use std::ops::Deref; use common_utils::{date_time, errors}; use error_stack::report; use masking::{PeekInterface, StrongSecret}; use serde::{de, Deserialize, Serialize}; use time::{Date, Duration, PrimitiveDateTime, Time}; pub us...
crates/cards/src/lib.rs
cards
full_file
1,382
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Aci {}
crates/hyperswitch_connectors/src/connectors/aci.rs
hyperswitch_connectors
impl_block
8
rust
null
Aci
api::Payment for
impl api::Payment for for Aci
null
null
null
null
null
null
null
null
impl IncomingWebhook for Multisafepay { fn get_webhook_object_reference_id( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented)) } fn...
crates/hyperswitch_connectors/src/connectors/multisafepay.rs
hyperswitch_connectors
impl_block
193
rust
null
Multisafepay
IncomingWebhook for
impl IncomingWebhook for for Multisafepay
null
null
null
null
null
null
null
null
pub struct ConfirmIntentResponseUpdate { pub status: storage_enums::AttemptStatus, pub connector_payment_id: Option<String>, pub updated_by: String, pub redirection_data: Option<router_response_types::RedirectForm>, pub connector_metadata: Option<pii::SecretSerdeValue>, pub amount_capturable: Op...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
struct_definition
100
rust
ConfirmIntentResponseUpdate
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/gocardless.rs
hyperswitch_connectors
function_signature
27
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl api::PaymentToken for Authipay {}
crates/hyperswitch_connectors/src/connectors/authipay.rs
hyperswitch_connectors
impl_block
9
rust
null
Authipay
api::PaymentToken for
impl api::PaymentToken for for Authipay
null
null
null
null
null
null
null
null
pub struct BankOfAmericaAuthenticationErrorResponse { pub response: AuthenticationErrorInformation, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
BankOfAmericaAuthenticationErrorResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_approve.rs Public structs: 1 use std::marker::PhantomData; use api_models::enums::{AttemptStatus, FrmSuggestion, IntentStatus}; use async_trait::async_trait; use error_stack::ResultExt; use router_derive::PaymentOperation; use router_env::{instrument, tracing}...
crates/router/src/core/payments/operations/payment_approve.rs
router
full_file
2,329
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Default for AnalyticsConfig { fn default() -> Self { Self::Sqlx { sqlx: Database::default(), forex_enabled: false, } } }
crates/analytics/src/lib.rs
analytics
impl_block
38
rust
null
AnalyticsConfig
Default for
impl Default for for AnalyticsConfig
null
null
null
null
null
null
null
null
File: crates/router/src/types/domain/merchant_connector_account.rs pub use hyperswitch_domain_models::merchant_connector_account::*;
crates/router/src/types/domain/merchant_connector_account.rs
router
full_file
24
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct DecideConnector;
crates/router/src/core/routing.rs
router
struct_definition
5
rust
DecideConnector
null
null
null
null
null
null
null
null
null
null
null
pub fn get_wallet_data(&self) -> Option<&WalletData> { if let Self::Wallet(wallet_data) = self { Some(wallet_data) } else { None } }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
function_signature
43
rust
null
null
null
null
get_wallet_data
null
null
null
null
null
null
null
impl RefundMetricsBucketIdentifier { #[allow(clippy::too_many_arguments)] pub fn new( currency: Option<Currency>, refund_status: Option<String>, connector: Option<String>, refund_type: Option<String>, profile_id: Option<String>, refund_reason: Option<String>, ...
crates/api_models/src/analytics/refunds.rs
api_models
impl_block
137
rust
null
RefundMetricsBucketIdentifier
null
impl RefundMetricsBucketIdentifier
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs Public structs: 18 use common_enums::{enums, Currency}; use common_utils::{consts::BASE64_ENGINE, date_time, types::MinorUnit}; use error_stack::ResultExt; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, rou...
crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs
hyperswitch_connectors
full_file
3,933
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.OrganizationResponse { "type": "object", "required": [ "organization_id", "modified_at", "created_at" ], "properties": { "organization_id": { "type": "string", "description": "The unique identifier for the Organization", "example": "org_q9...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
300
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "OrganizationResponse" ]
null
null
null
null
pub async fn validate_file_upload( state: &SessionState, merchant_context: domain::MerchantContext, create_file_request: api::CreateFileRequest, ) -> CustomResult<(), errors::ApiErrorResponse> { //File Validation based on the purpose of file upload match create_file_request.purpose { api::Fi...
crates/router/src/core/files/helpers.rs
router
function_signature
386
rust
null
null
null
null
validate_file_upload
null
null
null
null
null
null
null
impl ConnectorValidation for Tsys {}
crates/hyperswitch_connectors/src/connectors/tsys.rs
hyperswitch_connectors
impl_block
7
rust
null
Tsys
ConnectorValidation for
impl ConnectorValidation for for Tsys
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Bamboraapac {}
crates/hyperswitch_connectors/src/connectors/bamboraapac.rs
hyperswitch_connectors
impl_block
12
rust
null
Bamboraapac
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Bamboraapac
null
null
null
null
null
null
null
null
pub fn derive_to_encryption_attr(input: proc_macro::TokenStream) -> proc_macro::TokenStream { let input = syn::parse_macro_input!(input as syn::DeriveInput); macros::derive_to_encryption(input) .unwrap_or_else(|err| err.into_compile_error()) .into() }
crates/router_derive/src/lib.rs
router_derive
function_signature
67
rust
null
null
null
null
derive_to_encryption_attr
null
null
null
null
null
null
null
impl api::RefundSync for Trustpayments {}
crates/hyperswitch_connectors/src/connectors/trustpayments.rs
hyperswitch_connectors
impl_block
10
rust
null
Trustpayments
api::RefundSync for
impl api::RefundSync for for Trustpayments
null
null
null
null
null
null
null
null
pub fn get_payment_body( req: &BamboraapacRouterData<&types::PaymentsAuthorizeRouterData>, ) -> Result<Vec<u8>, Error> { let transaction_data = get_transaction_body(req)?; let body = format!( r#" <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmln...
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
function_signature
180
rust
null
null
null
null
get_payment_body
null
null
null
null
null
null
null
impl SuccessBasedRoutingConfig { pub fn update(&mut self, new: Self) { if let Some(params) = new.params { self.params = Some(params) } if let Some(new_config) = new.config { self.config.as_mut().map(|config| config.update(new_config)); } if let Some(ne...
crates/api_models/src/routing.rs
api_models
impl_block
385
rust
null
SuccessBasedRoutingConfig
null
impl SuccessBasedRoutingConfig
null
null
null
null
null
null
null
null
File: crates/analytics/src/auth_events/types.rs use api_models::analytics::auth_events::{AuthEventDimensions, AuthEventFilters}; use error_stack::ResultExt; use crate::{ query::{QueryBuilder, QueryFilter, QueryResult, ToSql}, types::{AnalyticsCollection, AnalyticsDataSource}, }; impl<T> QueryFilter<T> for Au...
crates/analytics/src/auth_events/types.rs
analytics
full_file
1,524
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn execute_payment_task_response_handler( &self, state: &SessionState, payment_intent: &PaymentIntent, execute_task_process: &storage::ProcessTracker, revenue_recovery_payment_data: &storage::revenue_recovery::RevenueRecoveryPaymentData, revenue_recovery_metadat...
crates/router/src/core/revenue_recovery/types.rs
router
function_signature
1,234
rust
null
null
null
null
execute_payment_task_response_handler
null
null
null
null
null
null
null
File: crates/common_enums/src/enums/payments.rs use serde; use utoipa::ToSchema; #[derive(Debug, Default, Eq, PartialEq, serde::Deserialize, serde::Serialize, Clone, ToSchema)] #[serde(rename_all = "snake_case")] pub enum ProductType { #[default] Physical, Digital, Travel, Ride, Event, Acc...
crates/common_enums/src/enums/payments.rs
common_enums
full_file
85
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Jpmorgan {}
crates/hyperswitch_connectors/src/connectors/jpmorgan.rs
hyperswitch_connectors
impl_block
9
rust
null
Jpmorgan
api::Payment for
impl api::Payment for for Jpmorgan
null
null
null
null
null
null
null
null
pub fn get_redis_connection_for_global_tenant( state: &SessionState, ) -> UserResult<Arc<RedisConnectionPool>> { state .global_store .get_redis_conn() .change_context(UserErrors::InternalServerError) .attach_printable("Failed to get redis connection") }
crates/router/src/utils/user.rs
router
function_signature
65
rust
null
null
null
null
get_redis_connection_for_global_tenant
null
null
null
null
null
null
null
pub struct TokenizationData { cnp_token: Secret<String>, exp_date: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
TokenizationData
null
null
null
null
null
null
null
null
null
null
null
pub struct PlaidExchangeTokenRequest { public_token: String, }
crates/pm_auth/src/connector/plaid/transformers.rs
pm_auth
struct_definition
15
rust
PlaidExchangeTokenRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct NoonCard { name_on_card: Option<Secret<String>>, number_plain: cards::CardNumber, expiry_month: Secret<String>, expiry_year: Secret<String>, cvv: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
46
rust
NoonCard
null
null
null
null
null
null
null
null
null
null
null
pub fn parse_routing_algorithm(&self) -> CustomResult<(), errors::ParsingError> { match self.routing_algorithm { Some(ref routing_algorithm) => { let _: routing::StaticRoutingAlgorithm = routing_algorithm .clone() .parse_value("StaticRoutingAlg...
crates/api_models/src/admin.rs
api_models
function_signature
73
rust
null
null
null
null
parse_routing_algorithm
null
null
null
null
null
null
null
/// Get a merchant id from String pub fn wrap(merchant_id: String) -> CustomResult<Self, ValidationError> { Self::try_from(std::borrow::Cow::from(merchant_id)) }
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
44
rust
null
null
null
null
wrap
null
null
null
null
null
null
null
impl AccountsStorageInterface for MockDb {}
crates/router/src/db.rs
router
impl_block
8
rust
null
MockDb
AccountsStorageInterface for
impl AccountsStorageInterface for for MockDb
null
null
null
null
null
null
null
null
pub struct NovalnetTransaction { tid: String, amount: Option<StringMinorUnit>, capture: Capture, }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
NovalnetTransaction
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorValidation for Adyenplatform {}
crates/hyperswitch_connectors/src/connectors/adyenplatform.rs
hyperswitch_connectors
impl_block
10
rust
null
Adyenplatform
api::ConnectorValidation for
impl api::ConnectorValidation for for Adyenplatform
null
null
null
null
null
null
null
null
impl api::PaymentsCompleteAuthorize for Shift4 {}
crates/hyperswitch_connectors/src/connectors/shift4.rs
hyperswitch_connectors
impl_block
10
rust
null
Shift4
api::PaymentsCompleteAuthorize for
impl api::PaymentsCompleteAuthorize for for Shift4
null
null
null
null
null
null
null
null
impl api::Payment for Forte {}
crates/hyperswitch_connectors/src/connectors/forte.rs
hyperswitch_connectors
impl_block
8
rust
null
Forte
api::Payment for
impl api::Payment for for Forte
null
null
null
null
null
null
null
null
impl api::RefundExecute for Fiservemea {}
crates/hyperswitch_connectors/src/connectors/fiservemea.rs
hyperswitch_connectors
impl_block
13
rust
null
Fiservemea
api::RefundExecute for
impl api::RefundExecute for for Fiservemea
null
null
null
null
null
null
null
null
pub struct DummyConnectorUpiFlow { pub status: DummyConnectorStatus, pub error: Option<DummyConnectorErrors>, pub is_next_action_required: bool, }
crates/router/src/routes/dummy_connector/types.rs
router
struct_definition
36
rust
DummyConnectorUpiFlow
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.BankTransferData { "oneOf": [ { "type": "object", "required": [ "ach_bank_transfer" ], "properties": { "ach_bank_transfer": { "type": "object", "properties": { "billing_details": { "allOf":...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
1,930
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "BankTransferData" ]
null
null
null
null
pub fn from_storage(dispute: &'a Dispute) -> Self { let currency = dispute.dispute_currency.unwrap_or( dispute .currency .to_uppercase() .parse_enum("Currency") .unwrap_or_default(), ); Self { dispute_id: &di...
crates/router/src/services/kafka/dispute.rs
router
function_signature
370
rust
null
null
null
null
from_storage
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CardNetworkTokenizeResponse { "type": "object", "required": [ "customer", "card_tokenized" ], "properties": { "payment_method_response": { "allOf": [ { "$ref": "#/components/schemas/PaymentMethodResponse" } ], "nullab...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
235
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CardNetworkTokenizeResponse" ]
null
null
null
null
impl GetPaymentMethodDetails for DummyConnectorPayLater { fn get_name(&self) -> &'static str { match self { Self::Klarna => "Klarna", Self::Affirm => "Affirm", Self::AfterPayClearPay => "Afterpay Clearpay", } } fn get_image_link(&self, base_url: &str) -> S...
crates/router/src/routes/dummy_connector/types.rs
router
impl_block
144
rust
null
DummyConnectorPayLater
GetPaymentMethodDetails for
impl GetPaymentMethodDetails for for DummyConnectorPayLater
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Custombilling {}
crates/hyperswitch_connectors/src/connectors/custombilling.rs
hyperswitch_connectors
impl_block
9
rust
null
Custombilling
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Custombilling
null
null
null
null
null
null
null
null
pub struct CheckoutWebhookObjectResource { pub data: serde_json::Value, }
crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
CheckoutWebhookObjectResource
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/api/revenue_recovery_v2.rs //! Revenue Recovery Interface V2 use hyperswitch_domain_models::{ router_data_v2::flow_common_types::{ BillingConnectorInvoiceSyncFlowData, BillingConnectorPaymentsSyncFlowData, RevenueRecoveryRecordBackData, }, router_flo...
crates/hyperswitch_interfaces/src/api/revenue_recovery_v2.rs
hyperswitch_interfaces
full_file
435
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PayLaterInfo { pub email: Option<Email>, }
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
PayLaterInfo
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/user/sample_data.rs Public structs: 2 #[cfg(feature = "v1")] use common_enums::{ AttemptStatus, AuthenticationType, CaptureMethod, Currency, PaymentExperience, PaymentMethod, PaymentMethodType, }; #[cfg(feature = "v1")] use common_types::primitive_wrappers::{ ExtendedAuthori...
crates/diesel_models/src/user/sample_data.rs
diesel_models
full_file
3,164
null
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: docs/try_local_system.md # Type: Doc File # Try out hyperswitch on your system The simplest way to run hyperswitch locally is [with Docker Compose](#run-hyperswitch-using-docker-compose) by pulling the latest images from Docker Hub. However, if you're willing to modify the code and run it, or are a dev...
docs/try_local_system.md
null
doc_file
6,290
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/utils.rs Public functions: 23 Public structs: 6 use std::{ collections::{HashMap, HashSet}, marker::PhantomData, str::FromStr, sync::LazyLock, }; use api_models::payments; #[cfg(feature = "payouts")] use api_models::payouts::PayoutVendorAccountDetails; use bas...
crates/hyperswitch_connectors/src/utils.rs#chunk0
hyperswitch_connectors
chunk
8,187
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct SyncDetails { fail: Option<FailDetails>, }
crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
SyncDetails
null
null
null
null
null
null
null
null
null
null
null
pub fn should_call_connector_create_customer<'a>( state: &SessionState, connector: &api::ConnectorData, customer: &'a Option<domain::Customer>, connector_label: &str, ) -> (bool, Option<&'a str>) { // Check if create customer is required for the connector let connector_needs_customer = state ...
crates/router/src/core/payments/customers.rs
router
function_signature
200
rust
null
null
null
null
should_call_connector_create_customer
null
null
null
null
null
null
null
pub struct FiuuCardData { #[serde(rename = "non_3DS")] non_3ds: i32, #[serde(rename = "TxnChannel")] txn_channel: TxnChannel, cc_pan: CardNumber, cc_cvv2: Secret<String>, cc_month: Secret<String>, cc_year: Secret<String>, #[serde(rename = "mpstokenstatus")] mps_token_status: Opti...
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
118
rust
FiuuCardData
null
null
null
null
null
null
null
null
null
null
null
pub fn event_types(self) -> HashSet<EventType> { match self { Self::Payments => HashSet::from([ EventType::PaymentSucceeded, EventType::PaymentFailed, EventType::PaymentProcessing, EventType::PaymentCancelled, EventType:...
crates/common_enums/src/enums.rs
common_enums
function_signature
276
rust
null
null
null
null
event_types
null
null
null
null
null
null
null
pub fn get_scope_name(scope: PermissionScope) -> &'static str { match scope { PermissionScope::Read => "View", PermissionScope::Write => "View and Manage", } }
crates/router/src/services/authorization/permissions.rs
router
function_signature
42
rust
null
null
null
null
get_scope_name
null
null
null
null
null
null
null
File: crates/router/src/compatibility/stripe/customers.rs Public functions: 5 pub mod types; #[cfg(feature = "v1")] use actix_web::{web, HttpRequest, HttpResponse}; #[cfg(feature = "v1")] use common_utils::id_type; #[cfg(feature = "v1")] use error_stack::report; #[cfg(feature = "v1")] use router_env::{instrument, tra...
crates/router/src/compatibility/stripe/customers.rs
router
full_file
1,645
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_blocked_payment_methods() {}
crates/openapi/src/routes/blocklist.rs
openapi
function_signature
9
rust
null
null
null
null
list_blocked_payment_methods
null
null
null
null
null
null
null
impl AwsFileStorageConfig { /// Validates the AWS S3 file storage configuration. pub(super) fn validate(&self) -> Result<(), InvalidFileStorageConfig> { use common_utils::fp_utils::when; when(self.region.is_default_or_empty(), || { Err(InvalidFileStorageConfig("aws s3 region must no...
crates/external_services/src/file_storage/aws_s3.rs
external_services
impl_block
115
rust
null
AwsFileStorageConfig
null
impl AwsFileStorageConfig
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 async fn find_by_customer_id_merchant_id( conn: &PgPooledConn, customer_id: &common_utils::id_type::CustomerId, merchant_id: &common_utils::id_type::MerchantId, limit: Option<i64>, ) -> StorageResult<Vec<Self>> { generics::generic_filter::<<Self as HasTable>::Table, _, _,...
crates/diesel_models/src/query/payment_method.rs
diesel_models
function_signature
139
rust
null
null
null
null
find_by_customer_id_merchant_id
null
null
null
null
null
null
null
pub async fn create_payment_method( state: &SessionState, request_state: &routes::app::ReqState, req: api::PaymentMethodCreate, merchant_context: &domain::MerchantContext, profile: &domain::Profile, ) -> RouterResponse<api::PaymentMethodResponse> { // payment_method is for internal use, can neve...
crates/router/src/core/payment_methods.rs
router
function_signature
134
rust
null
null
null
null
create_payment_method
null
null
null
null
null
null
null
pub struct Giropay { pub bank_account_iban: BankAccountIban, }
crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
Giropay
null
null
null
null
null
null
null
null
null
null
null
pub fn get_co_badged_card_data(&self) -> Option<&payment_methods::CoBadgedCardData> { if let Self::Card(card) = self { card.co_badged_card_data.as_ref() } else { None } }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
function_signature
56
rust
null
null
null
null
get_co_badged_card_data
null
null
null
null
null
null
null
pub async fn routing_create_config( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<routing_types::RoutingConfigRequest>, transaction_type: Option<enums::TransactionType>, ) -> impl Responder { let flow = Flow::RoutingCreateConfig; Box::pin(oss_api::server_wrap( flo...
crates/router/src/routes/routing.rs
router
function_signature
264
rust
null
null
null
null
routing_create_config
null
null
null
null
null
null
null
pub fn is_password_rotate_required(&self, state: &SessionState) -> UserResult<bool> { let last_password_modified_at = if let Some(last_password_modified_at) = self.0.last_password_modified_at { last_password_modified_at.date() } else { return Ok(true); ...
crates/router/src/types/domain/user.rs
router
function_signature
163
rust
null
null
null
null
is_password_rotate_required
null
null
null
null
null
null
null