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
/// Fee information for Split Payments to be charged on the payment being collected for Adyen pub struct AdyenSplitData { /// The store identifier pub store: Option<String>, /// Data for the split items pub split_items: Vec<AdyenSplitItem>, }
crates/common_types/src/domain.rs
common_types
struct_definition
59
rust
AdyenSplitData
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_refunds( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<Vec<Refund>> { let query = diesel::delete(<Refund>::table()) .filter(refund_dsl::merchant_id.eq(merchant_id.to_owned())) .filter(refund_dsl::payment_id.like("test_%")); ...
crates/diesel_models/src/query/user/sample_data.rs
diesel_models
function_signature
218
rust
null
null
null
null
delete_refunds
null
null
null
null
null
null
null
pub fn get_merchant_details_as_secret( &self, ) -> CustomResult<Option<pii::SecretSerdeValue>, errors::ParsingError> { self.merchant_details .as_ref() .map(|merchant_details| merchant_details.encode_to_value().map(Secret::new)) .transpose() }
crates/api_models/src/admin.rs
api_models
function_signature
69
rust
null
null
null
null
get_merchant_details_as_secret
null
null
null
null
null
null
null
pub fn new_password_without_validation(password: Secret<String>) -> UserResult<Self> { let password = password.expose(); if password.is_empty() { return Err(UserErrors::PasswordParsingError.into()); } Ok(Self(password.into())) }
crates/router/src/types/domain/user.rs
router
function_signature
53
rust
null
null
null
null
new_password_without_validation
null
null
null
null
null
null
null
pub struct Thunes { amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/thunes.rs
hyperswitch_connectors
struct_definition
27
rust
Thunes
null
null
null
null
null
null
null
null
null
null
null
Web Documentation: Setup Payment Methods | Hyperswitch # Type: Web Doc The checkout page marks the final step of a customer's exploration on your website or app, and the payment methods presented at this juncture can determine whether the experience is smooth and seamless or poses a potential obstacle. There is no one...
https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/quickstart/payment-methods-setup
null
web_doc_file
279
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/quickstart/payment-methods-setup
Setup Payment Methods | Hyperswitch
null
pub async fn get_profile_dispute_filters( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<api_models::analytics::GetDisputeFilterRequest>, ) -> impl Responder { let flow = AnalyticsFlow::GetDisputeFilters; Box::pin(api::server_wrap( ...
crates/router/src/analytics.rs
router
function_signature
279
rust
null
null
null
null
get_profile_dispute_filters
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Gocardless {}
crates/hyperswitch_connectors/src/connectors/gocardless.rs
hyperswitch_connectors
impl_block
10
rust
null
Gocardless
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Gocardless
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Iatapay {}
crates/hyperswitch_connectors/src/connectors/iatapay.rs
hyperswitch_connectors
impl_block
11
rust
null
Iatapay
api::PaymentCapture for
impl api::PaymentCapture for for Iatapay
null
null
null
null
null
null
null
null
pub struct StoreConfig { pub drainer_stream_name: String, pub drainer_num_partitions: u8, pub use_legacy_version: bool, }
crates/drainer/src/services.rs
drainer
struct_definition
33
rust
StoreConfig
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/platform/platform--create.mdx # Type: Doc File --- openapi: post /user/create_platform ---
api-reference/v1/platform/platform--create.mdx
null
doc_file
30
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentsResponse { pub reference_no: String, #[serde(rename = "TxnID")] pub txn_id: String, pub txn_type: TxnType, pub txn_currency: Currency, pub txn_amount: StringMajorUnit, pub txn_channel: String, pub txn_data: TxnData, }
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
71
rust
PaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct SantanderPaymentsCancelRequest { pub status: Option<SantanderVoidStatus>, }
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
SantanderPaymentsCancelRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn set_amount_to_capture(&mut self, amount_to_capture: MinorUnit) { self.amount_to_capture = Some(amount_to_capture); }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
31
rust
null
null
null
null
set_amount_to_capture
null
null
null
null
null
null
null
pub async fn enable_specific_routing_algorithm<A>( state: &SessionState, key_store: domain::MerchantKeyStore, business_profile: domain::Profile, feature_to_enable: routing_types::DynamicRoutingFeatures, mut dynamic_routing_algo_ref: routing_types::DynamicRoutingAlgorithmRef, dynamic_routing_type...
crates/router/src/core/routing/helpers.rs
router
function_signature
624
rust
null
null
null
null
enable_specific_routing_algorithm
null
null
null
null
null
null
null
pub struct Charges { object: &'static str, data: Vec<String>, has_more: bool, total_count: i32, url: String, }
crates/router/src/compatibility/stripe/payment_intents/types.rs
router
struct_definition
37
rust
Charges
null
null
null
null
null
null
null
null
null
null
null
impl StrongEq for Vec<u8> { fn strong_eq(&self, other: &Self) -> bool { let lhs = &self; let rhs = &other; bool::from(lhs.ct_eq(rhs)) } }
crates/masking/src/strong_secret.rs
masking
impl_block
50
rust
null
Vec
StrongEq for
impl StrongEq for for Vec
null
null
null
null
null
null
null
null
pub struct CommitRequest { pub source_id: Secret<String>, pub id: String, pub destination_id: Secret<String>, pub payment_reference: String, pub amount: FloatMajorUnit, pub currency_code: Currency, pub purpose: String, pub description: String, pub internal_memo: String, }
crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs
hyperswitch_connectors
struct_definition
70
rust
CommitRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn validate_schema_derive(input: syn::DeriveInput) -> syn::Result<proc_macro2::TokenStream> { let name = &input.ident; // Extract struct fields let fields = macro_helpers::get_struct_fields(input.data) .map_err(|error| syn::Error::new(proc_macro2::Span::call_site(), error))?; // Map over e...
crates/router_derive/src/macros/schema.rs
router_derive
function_signature
557
rust
null
null
null
null
validate_schema_derive
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.XenditChargeResponseData { "oneOf": [ { "type": "object", "required": [ "multiple_splits" ], "properties": { "multiple_splits": { "$ref": "#/components/schemas/XenditMultipleSplitResponse" } } }, { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
142
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "XenditChargeResponseData" ]
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/riskified/transformers/auth.rs Public structs: 1 use error_stack; use hyperswitch_domain_models::router_data::ConnectorAuthType; use hyperswitch_interfaces::errors::ConnectorError; use masking::{ExposeInterface, Secret}; pub struct RiskifiedAuthType { pub secret...
crates/hyperswitch_connectors/src/connectors/riskified/transformers/auth.rs
hyperswitch_connectors
full_file
199
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn verify_checksum( &self, headers: &HeaderMap, algo: impl VerifySignature, secret: &[u8], ) -> bool { let output = || { let checksum = headers.get(HEADER_CHECKSUM)?.to_str().ok()?; let payload = self.generate_payload(); algo.verify_si...
crates/router/src/services/authentication/detached.rs
router
function_signature
100
rust
null
null
null
null
verify_checksum
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
181
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl api::PaymentToken for Nomupay {}
crates/hyperswitch_connectors/src/connectors/nomupay.rs
hyperswitch_connectors
impl_block
10
rust
null
Nomupay
api::PaymentToken for
impl api::PaymentToken for for Nomupay
null
null
null
null
null
null
null
null
impl api::Payment for Dlocal {}
crates/hyperswitch_connectors/src/connectors/dlocal.rs
hyperswitch_connectors
impl_block
8
rust
null
Dlocal
api::Payment for
impl api::Payment for for Dlocal
null
null
null
null
null
null
null
null
impl PayoutAttemptInterface for KafkaStore { type Error = errors::StorageError; async fn find_payout_attempt_by_merchant_id_merchant_order_reference_id( &self, merchant_id: &id_type::MerchantId, merchant_order_reference_id: &str, storage_scheme: MerchantStorageScheme, ) -> C...
crates/router/src/db/kafka_store.rs
router
impl_block
885
rust
null
KafkaStore
PayoutAttemptInterface for
impl PayoutAttemptInterface for for KafkaStore
null
null
null
null
null
null
null
null
pub async fn delete_by_customer_id_merchant_id( conn: &PgPooledConn, customer_id: &id_type::CustomerId, merchant_id: &id_type::MerchantId, ) -> StorageResult<bool> { generics::generic_delete::<<Self as HasTable>::Table, _>( conn, dsl::customer_id ...
crates/diesel_models/src/query/customers.rs
diesel_models
function_signature
106
rust
null
null
null
null
delete_by_customer_id_merchant_id
null
null
null
null
null
null
null
pub struct BillingAddress { #[serde(rename = "payment_method[billing_address][city]")] pub city: String, #[serde(rename = "payment_method[billing_address][country_code]")] pub country: common_enums::CountryAlpha2, #[serde(rename = "payment_method[billing_address][postal_code]")] pub postal_code:...
crates/hyperswitch_connectors/src/connectors/payload/requests.rs
hyperswitch_connectors
struct_definition
122
rust
BillingAddress
null
null
null
null
null
null
null
null
null
null
null
File: crates/router_env/src/logger/setup.rs Public functions: 1 Public structs: 1 //! Setup logging subsystem. use std::time::Duration; use ::config::ConfigError; use serde_json::ser::{CompactFormatter, PrettyFormatter}; use tracing_appender::non_blocking::WorkerGuard; use tracing_subscriber::{fmt, prelude::*, uti...
crates/router_env/src/logger/setup.rs
router_env
full_file
2,859
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn api_key_list() {}
crates/openapi/src/routes/api_keys.rs
openapi
function_signature
8
rust
null
null
null
null
api_key_list
null
null
null
null
null
null
null
pub async fn pg_connection_read<T: storage_impl::DatabaseStore>( store: &T, ) -> errors::CustomResult< PooledConnection<'_, async_bb8_diesel::ConnectionManager<PgConnection>>, storage_errors::StorageError, > { // If only OLAP is enabled get replica pool. #[cfg(all(feature = "olap", not(feature = "ol...
crates/router/src/connection.rs
router
function_signature
237
rust
null
null
null
null
pg_connection_read
null
null
null
null
null
null
null
pub struct PayPalWalletData { /// Token generated for the Apple pay pub token: String, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
22
rust
PayPalWalletData
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Placetopay { fn id(&self) -> &'static str { "placetopay" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connect...
crates/hyperswitch_connectors/src/connectors/placetopay.rs
hyperswitch_connectors
impl_block
307
rust
null
Placetopay
ConnectorCommon for
impl ConnectorCommon for for Placetopay
null
null
null
null
null
null
null
null
pub fn validate(&self) -> Result<(), &str> { let host_domain_valid = self .domain_name .clone() .map(|host_domain| link_utils::validate_strict_domain(&host_domain)) .unwrap_or(true); if !host_domain_valid { return Err("Invalid host domain name ...
crates/api_models/src/admin.rs
api_models
function_signature
167
rust
null
null
null
null
validate
null
null
null
null
null
null
null
impl api::PaymentToken for Archipel {}
crates/hyperswitch_connectors/src/connectors/archipel.rs
hyperswitch_connectors
impl_block
9
rust
null
Archipel
api::PaymentToken for
impl api::PaymentToken for for Archipel
null
null
null
null
null
null
null
null
pub struct TenantID(pub String);
crates/router/src/db/kafka_store.rs
router
struct_definition
7
rust
TenantID
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<PaymentMethod> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/payment_method.rs
diesel_models
function_signature
35
rust
null
null
null
null
insert
null
null
null
null
null
null
null
pub async fn list_profile_by_merchant_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as HasTable>::Table, _, <<Self as HasTable>::Table as Table>::PrimaryKey, ...
crates/diesel_models/src/query/business_profile.rs
diesel_models
function_signature
113
rust
null
null
null
null
list_profile_by_merchant_id
null
null
null
null
null
null
null
pub struct FiuuCardWithNTI { #[serde(rename = "TxnChannel")] txn_channel: TxnChannel, cc_pan: CardNumber, cc_month: Secret<String>, cc_year: Secret<String>, #[serde(rename = "OriginalSchemeID")] original_scheme_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
68
rust
FiuuCardWithNTI
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Worldpayvantiv { fn id(&self) -> &'static str { "worldpayvantiv" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "text/xml" } fn base_url<'a>(&self, connect...
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
524
rust
null
Worldpayvantiv
ConnectorCommon for
impl ConnectorCommon for for Worldpayvantiv
null
null
null
null
null
null
null
null
pub struct BluesnapCompletePaymentsRequest { amount: StringMajorUnit, currency: enums::Currency, card_transaction_type: BluesnapTxnType, pf_token: Secret<String>, three_d_secure: Option<BluesnapThreeDSecureInfo>, transaction_fraud_info: Option<TransactionFraudInfo>, card_holder_info: Option<...
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
102
rust
BluesnapCompletePaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct MandateDetails { pub update_mandate_id: Option<String>, }
crates/diesel_models/src/enums.rs
diesel_models
struct_definition
18
rust
MandateDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct RedirectionAuthResponse { #[serde(rename = "ID3D")] three_ds_data: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
RedirectionAuthResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/blackhawknetwork/transformers.rs Public structs: 12 use common_enums::{enums, Currency}; use common_utils::types::{MinorUnit, StringMajorUnit}; use error_stack::ResultExt; use hyperswitch_domain_models::{ payment_method_data::{GiftCardData, PaymentMethodData}, ...
crates/hyperswitch_connectors/src/connectors/blackhawknetwork/transformers.rs
hyperswitch_connectors
full_file
2,886
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentSessionUpdate;
crates/router/src/core/payments/operations/tax_calculation.rs
router
struct_definition
6
rust
PaymentSessionUpdate
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.WalletResponseData { "oneOf": [ { "type": "object", "required": [ "apple_pay" ], "properties": { "apple_pay": { "$ref": "#/components/schemas/WalletAdditionalDataForCard" } } }, { "type": "object",...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
252
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "WalletResponseData" ]
null
null
null
null
impl api::PaymentSession for Phonepe {}
crates/hyperswitch_connectors/src/connectors/phonepe.rs
hyperswitch_connectors
impl_block
9
rust
null
Phonepe
api::PaymentSession for
impl api::PaymentSession for for Phonepe
null
null
null
null
null
null
null
null
pub struct CardToken { #[serde(rename = "token-id")] pub token_id: Secret<String>, #[serde(rename = "masked-account-number")] pub masked_account_number: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
42
rust
CardToken
null
null
null
null
null
null
null
null
null
null
null
pub async fn check_two_factor_auth_status( state: SessionState, user_token: auth::UserFromToken, ) -> UserResponse<user_api::TwoFactorAuthStatusResponse> { Ok(ApplicationResponse::Json( user_api::TwoFactorAuthStatusResponse { totp: tfa_utils::check_totp_in_redis(&state, &user_token.user_...
crates/router/src/core/user.rs
router
function_signature
112
rust
null
null
null
null
check_two_factor_auth_status
null
null
null
null
null
null
null
pub struct AuthorizedotnetCreateSyncRequest { get_transaction_details_request: TransactionDetails, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
AuthorizedotnetCreateSyncRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/stripebilling.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::collections::HashMap; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestConte...
crates/hyperswitch_connectors/src/connectors/stripebilling.rs
hyperswitch_connectors
full_file
7,355
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BillingAddress { first_name: Secret<String>, last_name: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
BillingAddress
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::Verification; let merchant_id = path.into_inner(); Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inner(), |state, auth: auth::AuthenticationData, body, _| { verification::verify_merchant_creds_for_applepa...
crates/router/src/routes/verification.rs
router
impl_block
173
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub async fn update_by_theme_id( conn: &PgPooledConn, theme_id: String, update: ThemeUpdate, ) -> StorageResult<Self> { let update_internal: ThemeUpdateInternal = update.into(); let predicate = dsl::theme_id.eq(theme_id); generics::generic_update_with_unique_predicat...
crates/diesel_models/src/query/user/theme.rs
diesel_models
function_signature
107
rust
null
null
null
null
update_by_theme_id
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs Public functions: 6 Public structs: 30 use common_enums::enums; use common_utils::types::MinorUnit; use error_stack::ResultExt; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthTy...
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
full_file
7,131
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CardTestingGuardConfig { "type": "object", "required": [ "card_ip_blocking_status", "card_ip_blocking_threshold", "guest_user_card_blocking_status", "guest_user_card_blocking_threshold", "customer_id_blocking_status", "customer_id_blocking_threshold", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
337
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CardTestingGuardConfig" ]
null
null
null
null
pub struct UnifiedAuthenticationServicePostAuthenticateResponse { pub authentication_details: AuthenticationDetails, }
crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
UnifiedAuthenticationServicePostAuthenticateResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_outgoing_webhook_event<T>( merchant_id: &common_utils::id_type::MerchantId, query_param: OutgoingWebhookLogsRequest, pool: &T, ) -> FiltersResult<Vec<OutgoingWebhookLogsResult>> where T: AnalyticsDataSource + OutgoingWebhookLogsFilterAnalytics, PrimitiveDateTime: ToSql<T>, Analy...
crates/analytics/src/outgoing_webhook_event/events.rs
analytics
function_signature
501
rust
null
null
null
null
get_outgoing_webhook_event
null
null
null
null
null
null
null
impl api::Payment for Silverflow {}
crates/hyperswitch_connectors/src/connectors/silverflow.rs
hyperswitch_connectors
impl_block
8
rust
null
Silverflow
api::Payment for
impl api::Payment for for Silverflow
null
null
null
null
null
null
null
null
pub trait RouterDataAuthorize { fn decide_authentication_type(&mut self); /// to decide if we need to proceed with authorize or not, Eg: If any of the pretask returns `redirection_response` then we should not proceed with authorize call fn should_proceed_with_authorize(&self) -> bool; }
crates/router/src/core/payments/flows/authorize_flow.rs
router
trait_definition
67
rust
null
null
RouterDataAuthorize
null
null
null
null
null
null
null
null
null
pub struct RefundAggregateResponse { /// The list of refund status with their count pub status_with_count: HashMap<enums::RefundStatus, i64>, }
crates/api_models/src/refunds.rs
api_models
struct_definition
37
rust
RefundAggregateResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Prophetpay {}
crates/hyperswitch_connectors/src/connectors/prophetpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Prophetpay
api::PaymentSync for
impl api::PaymentSync for for Prophetpay
null
null
null
null
null
null
null
null
pub struct CheckTokenStatus { pub card_reference: String, pub customer_id: id_type::GlobalCustomerId, }
crates/router/src/types/payment_methods.rs
router
struct_definition
25
rust
CheckTokenStatus
null
null
null
null
null
null
null
null
null
null
null
pub struct EmvThreedsData { three_d_s_info: RedsysThreeDsInfo, protocol_version: Option<String>, browser_accept_header: Option<String>, browser_user_agent: Option<String>, browser_java_enabled: Option<bool>, browser_javascript_enabled: Option<bool>, browser_language: Option<String>, brow...
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
struct_definition
189
rust
EmvThreedsData
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Riskified {}
crates/hyperswitch_connectors/src/connectors/riskified.rs
hyperswitch_connectors
impl_block
7
rust
null
Riskified
ConnectorValidation for
impl ConnectorValidation for for Riskified
null
null
null
null
null
null
null
null
pub(crate) fn get_token_data(&self) -> Option<PaymentTokenData> { match self { Self::Card { token_data, .. } | Self::Bank { token_data } | Self::BankTransfer { token_data, .. } | Self::TemporaryToken { token_data } => token_data.clone(), } }
crates/router/src/types/storage/payment_method.rs
router
function_signature
72
rust
null
null
null
null
get_token_data
null
null
null
null
null
null
null
pub struct TokenizedBankRedirectValue2 { pub customer_id: Option<id_type::CustomerId>, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
22
rust
TokenizedBankRedirectValue2
null
null
null
null
null
null
null
null
null
null
null
pub trait UserRoleInterface { async fn insert_user_role( &self, user_role: storage::UserRoleNew, ) -> CustomResult<storage::UserRole, errors::StorageError>; async fn find_user_role_by_user_id_and_lineage( &self, user_id: &str, tenant_id: &id_type::TenantId, o...
crates/router/src/db/user_role.rs
router
trait_definition
472
rust
null
null
UserRoleInterface
null
null
null
null
null
null
null
null
null
impl api::Refund for Payeezy {}
crates/hyperswitch_connectors/src/connectors/payeezy.rs
hyperswitch_connectors
impl_block
10
rust
null
Payeezy
api::Refund for
impl api::Refund for for Payeezy
null
null
null
null
null
null
null
null
impl api::RefundSync for Worldpay {}
crates/hyperswitch_connectors/src/connectors/worldpay.rs
hyperswitch_connectors
impl_block
10
rust
null
Worldpay
api::RefundSync for
impl api::RefundSync for for Worldpay
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Klarna { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&KLARNA_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*KLARNA_SUPPORTED_PAYMENT_METHODS) } fn get_support...
crates/hyperswitch_connectors/src/connectors/klarna.rs
hyperswitch_connectors
impl_block
108
rust
null
Klarna
ConnectorSpecifications for
impl ConnectorSpecifications for for Klarna
null
null
null
null
null
null
null
null
impl Dispute for Checkout {}
crates/hyperswitch_connectors/src/connectors/checkout.rs
hyperswitch_connectors
impl_block
6
rust
null
Checkout
Dispute for
impl Dispute for for Checkout
null
null
null
null
null
null
null
null
pub struct TokenioApiWrapper { pub payment: PaymentResponse, }
crates/hyperswitch_connectors/src/connectors/tokenio/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
TokenioApiWrapper
null
null
null
null
null
null
null
null
null
null
null
/// Get a merchant connector account id from String pub fn wrap(merchant_connector_account_id: String) -> CustomResult<Self, ValidationError> { Self::try_from(std::borrow::Cow::from(merchant_connector_account_id)) }
crates/common_utils/src/id_type/merchant_connector_account.rs
common_utils
function_signature
50
rust
null
null
null
null
wrap
null
null
null
null
null
null
null
pub struct UserNew { pub user_id: String, pub email: pii::Email, pub name: Secret<String>, pub password: Option<Secret<String>>, pub is_verified: bool, pub created_at: Option<PrimitiveDateTime>, pub last_modified_at: Option<PrimitiveDateTime>, pub totp_status: TotpStatus, pub totp_se...
crates/diesel_models/src/user.rs
diesel_models
struct_definition
122
rust
UserNew
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthenticationNew { 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>, ...
crates/diesel_models/src/authentication.rs
diesel_models
struct_definition
589
rust
AuthenticationNew
null
null
null
null
null
null
null
null
null
null
null
impl common_utils::events::ApiEventMetric for CardNetworkTokenizeRequest {}
crates/api_models/src/payment_methods.rs
api_models
impl_block
16
rust
null
CardNetworkTokenizeRequest
common_utils::events::ApiEventMetric for
impl common_utils::events::ApiEventMetric for for CardNetworkTokenizeRequest
null
null
null
null
null
null
null
null
pub async fn pg_connection_read<T: DatabaseStore>( store: &T, ) -> error_stack::Result< PooledConnection<'_, async_bb8_diesel::ConnectionManager<PgConnection>>, StorageError, > { // If only OLAP is enabled get replica pool. #[cfg(all(feature = "olap", not(feature = "oltp")))] let pool = store.ge...
crates/storage_impl/src/utils.rs
storage_impl
function_signature
229
rust
null
null
null
null
pg_connection_read
null
null
null
null
null
null
null
impl DecisionEngineEliminationData { pub fn update(&mut self, new_config: Self) { self.threshold = new_config.threshold; } }
crates/api_models/src/open_router.rs
api_models
impl_block
32
rust
null
DecisionEngineEliminationData
null
impl DecisionEngineEliminationData
null
null
null
null
null
null
null
null
pub struct SquarePaymentsRequestExternalDetails { source: String, #[serde(rename = "type")] source_type: String, }
crates/hyperswitch_connectors/src/connectors/square/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
SquarePaymentsRequestExternalDetails
null
null
null
null
null
null
null
null
null
null
null
pub fn apply_changeset(self, source: MerchantAccount) -> MerchantAccount { let Self { merchant_name, merchant_details, publishable_key, storage_scheme, metadata, modified_at, organization_id, recon_status, ...
crates/diesel_models/src/merchant_account.rs
diesel_models
function_signature
218
rust
null
null
null
null
apply_changeset
null
null
null
null
null
null
null
pub struct FiuuPaymentCancelResponse { #[serde(rename = "TranID")] tran_id: String, stat_code: String, #[serde(rename = "miscellaneous")] miscellaneous: Option<HashMap<String, Secret<String>>>, }
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
52
rust
FiuuPaymentCancelResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct StatusReasonInformation { pub reason: Reason, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
StatusReasonInformation
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Nordea {}
crates/hyperswitch_connectors/src/connectors/nordea.rs
hyperswitch_connectors
impl_block
9
rust
null
Nordea
api::PaymentToken for
impl api::PaymentToken for for Nordea
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs Public structs: 29 use bytes::Bytes; use common_enums::{ self, AttemptStatus, AuthorizationStatus, CaptureMethod, Currency, FutureUsage, PaymentMethodStatus, RefundStatus, }; use common_utils::{date_time, ext_traits::Encode, pii, type...
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs#chunk0
hyperswitch_connectors
chunk
8,192
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_payout( state: &SessionState, merchant_context: &domain::MerchantContext, connector_data: &api::ConnectorData, payout_data: &mut PayoutData, ) -> RouterResult<()> { // 1. Form Router data let mut router_data = core_utils::construct_payout_router_data( state, c...
crates/router/src/core/payouts.rs
router
function_signature
1,168
rust
null
null
null
null
create_payout
null
null
null
null
null
null
null
impl api::PaymentsPreProcessing for Cybersource {}
crates/hyperswitch_connectors/src/connectors/cybersource.rs
hyperswitch_connectors
impl_block
11
rust
null
Cybersource
api::PaymentsPreProcessing for
impl api::PaymentsPreProcessing for for Cybersource
null
null
null
null
null
null
null
null
File: crates/analytics/src/refunds/filters.rs Public functions: 1 Public structs: 1 use api_models::analytics::{ refunds::{RefundDimensions, RefundType}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use diesel_models::enums::{Currency, RefundStatus}; use error_stack::ResultExt; use t...
crates/analytics/src/refunds/filters.rs
analytics
full_file
495
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct HelcimBillingAddress { name: Secret<String>, street1: Secret<String>, postal_code: Secret<String>, #[serde(skip_serializing_if = "Option::is_none")] street2: Option<Secret<String>>, #[serde(skip_serializing_if = "Option::is_none")] city: Option<String>, #[serde(skip_serializin...
crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs
hyperswitch_connectors
struct_definition
93
rust
HelcimBillingAddress
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/payments/payments--capture.mdx # Type: Doc File --- openapi: post /payments/{payment_id}/capture ---
api-reference/v1/payments/payments--capture.mdx
null
doc_file
35
doc
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/routing/routing--create.mdx # Type: Doc File --- openapi: post /v2/routing-algorithms ---
api-reference/v2/routing/routing--create.mdx
null
doc_file
35
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn authentication_authenticate_core( state: SessionState, merchant_context: domain::MerchantContext, req: AuthenticationAuthenticateRequest, auth_flow: AuthFlow, ) -> RouterResponse<AuthenticationAuthenticateResponse> { let authentication_id = req.authentication_id.clone(); let merchan...
crates/router/src/core/unified_authentication_service.rs
router
function_signature
1,114
rust
null
null
null
null
authentication_authenticate_core
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Adyenplatform {}
crates/hyperswitch_connectors/src/connectors/adyenplatform.rs
hyperswitch_connectors
impl_block
10
rust
null
Adyenplatform
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Adyenplatform
null
null
null
null
null
null
null
null
pub async fn kv_for_merchant( state: SessionState, merchant_id: id_type::MerchantId, enable: bool, ) -> RouterResponse<api_models::admin::ToggleKVResponse> { let db = state.store.as_ref(); let key_manager_state = &(&state).into(); let key_store = db .get_merchant_key_store_by_merchant_id...
crates/router/src/core/admin.rs
router
function_signature
533
rust
null
null
null
null
kv_for_merchant
null
null
null
null
null
null
null
pub async fn update_gateway_score_open_router( state: SessionState, req_body: UpdateScorePayload, ) -> RouterResponse<UpdateScoreResponse> { let response = if state.conf.open_router.dynamic_routing_enabled { SRApiClient::send_decision_engine_request( &state, Method::Post, ...
crates/router/src/core/routing.rs
router
function_signature
184
rust
null
null
null
null
update_gateway_score_open_router
null
null
null
null
null
null
null
Documentation: api-reference/locker-api-reference/overview.mdx # Type: Doc File The Hyperswitch Card Vault is a highly performant and a secure vault to save sensitive data such as payment card details, bank account details etc. It is designed in an polymorphic manner to handle and store any type of sensitive informat...
api-reference/locker-api-reference/overview.mdx
null
doc_file
357
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Helcim {}
crates/hyperswitch_connectors/src/connectors/helcim.rs
hyperswitch_connectors
impl_block
10
rust
null
Helcim
api::PaymentCapture for
impl api::PaymentCapture for for Helcim
null
null
null
null
null
null
null
null
..Default::default() } } } #[cfg(feature = "v2")] #[derive(Clone)] pub struct PaymentIntentData<F> where F: Clone, { pub flow: PhantomData<F>, pub payment_intent: PaymentIntent, pub sessions_token: Vec<SessionToken>, pub client_secret: Option<Secret<String>>, pub vault_s...
crates/hyperswitch_domain_models/src/payments.rs#chunk1
hyperswitch_domain_models
chunk
2,774
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PayoutFulfill for Adyen {}
crates/hyperswitch_connectors/src/connectors/adyen.rs
hyperswitch_connectors
impl_block
11
rust
null
Adyen
api::PayoutFulfill for
impl api::PayoutFulfill for for Adyen
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Zsl {}
crates/hyperswitch_connectors/src/connectors/zsl.rs
hyperswitch_connectors
impl_block
9
rust
null
Zsl
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Zsl
null
null
null
null
null
null
null
null