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
OpenAPI Block Path: components.schemas.PaymentMethodListResponse { "type": "object", "required": [ "currency", "payment_methods", "mandate_payment", "show_surcharge_breakup_screen", "request_external_three_ds_authentication", "is_tax_calculation_enabled" ], "properties": { "redirect_...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
475
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentMethodListResponse" ]
null
null
null
null
pub struct SantanderBoletoPSyncResponse { pub link: Option<Url>, }
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
SantanderBoletoPSyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn search_results( client: &OpenSearchClient, req: GetSearchRequestWithIndex, search_params: Vec<AuthInfo>, ) -> CustomResult<GetSearchResponse, OpenSearchError> { let search_req = req.search_req; if search_req.query.trim().is_empty() && search_req .filters ...
crates/analytics/src/search.rs
analytics
function_signature
1,289
rust
null
null
null
null
search_results
null
null
null
null
null
null
null
impl api::PaymentCapture for Barclaycard {}
crates/hyperswitch_connectors/src/connectors/barclaycard.rs
hyperswitch_connectors
impl_block
10
rust
null
Barclaycard
api::PaymentCapture for
impl api::PaymentCapture for for Barclaycard
null
null
null
null
null
null
null
null
pub struct NexinetsOrder { pub order_id: String, }
crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
NexinetsOrder
null
null
null
null
null
null
null
null
null
null
null
pub struct ErrorObject { #[serde(rename = "_code")] pub code: Option<i64>, #[serde(rename = "_field")] pub field: Option<String>, #[serde(rename = "_message")] pub message: String, }
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
54
rust
ErrorObject
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use common_enums::{enums, enums::PaymentMethodType}; use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, Requ...
crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs
hyperswitch_connectors
full_file
4,452
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentsDistributionAccumulator { pub success: u32, pub failed: u32, pub total: u32, pub success_without_retries: u32, pub success_with_only_retries: u32, pub failed_without_retries: u32, pub failed_with_only_retries: u32, pub total_without_retries: u32, pub total_with_onl...
crates/analytics/src/payments/accumulator.rs
analytics
struct_definition
102
rust
PaymentsDistributionAccumulator
null
null
null
null
null
null
null
null
null
null
null
pub struct PostAuthenticate;
crates/hyperswitch_domain_models/src/router_flow_types/unified_authentication_service.rs
hyperswitch_domain_models
struct_definition
5
rust
PostAuthenticate
null
null
null
null
null
null
null
null
null
null
null
impl<V: ValueNode> DerefMut for Memoization<V> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } }
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
impl_block
41
rust
null
Memoization
DerefMut for
impl DerefMut for for Memoization
null
null
null
null
null
null
null
null
pub struct PaypalSupplementaryData { pub related_ids: PaypalRelatedIds, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
PaypalSupplementaryData
null
null
null
null
null
null
null
null
null
null
null
pub fn update_conditional_config_id(&mut self, ids: String) { self.config_algo_id = Some(ids); self.timestamp = common_utils::date_time::now_unix_timestamp(); }
crates/api_models/src/routing.rs
api_models
function_signature
41
rust
null
null
null
null
update_conditional_config_id
null
null
null
null
null
null
null
impl Config { pub async fn find_by_key(conn: &PgPooledConn, key: &str) -> StorageResult<Self> { generics::generic_find_by_id::<<Self as HasTable>::Table, _, _>(conn, key.to_owned()).await } pub async fn update_by_key( conn: &PgPooledConn, key: &str, config_update: ConfigUpda...
crates/diesel_models/src/query/configs.rs
diesel_models
impl_block
284
rust
null
Config
null
impl Config
null
null
null
null
null
null
null
null
pub fn generate_pm_vaulting_req_from_update_request( pm_create: domain::PaymentMethodVaultingData, pm_update: api::PaymentMethodUpdateData, ) -> domain::PaymentMethodVaultingData { match (pm_create, pm_update) { ( domain::PaymentMethodVaultingData::Card(card_create), api::Pay...
crates/router/src/core/payment_methods/transformers.rs
router
function_signature
252
rust
null
null
null
null
generate_pm_vaulting_req_from_update_request
null
null
null
null
null
null
null
impl api::PaymentCapture for HyperswitchVault {}
crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs
hyperswitch_connectors
impl_block
11
rust
null
HyperswitchVault
api::PaymentCapture for
impl api::PaymentCapture for for HyperswitchVault
null
null
null
null
null
null
null
null
pub struct NexinetsPaymentsRequest { initial_amount: i64, currency: enums::Currency, channel: NexinetsChannel, product: NexinetsProduct, payment: Option<NexinetsPaymentDetails>, #[serde(rename = "async")] nexinets_async: NexinetsAsyncDetails, merchant_order_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs
hyperswitch_connectors
struct_definition
79
rust
NexinetsPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_start.rs Public structs: 1 use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use error_stack::ResultExt; use router_derive::PaymentOperation; use router_env::{instrument, tracing}; use super::{BoxedOperation, Do...
crates/router/src/core/payments/operations/payment_start.rs
router
full_file
2,645
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Getnet {}
crates/hyperswitch_connectors/src/connectors/getnet.rs
hyperswitch_connectors
impl_block
8
rust
null
Getnet
api::Payment for
impl api::Payment for for Getnet
null
null
null
null
null
null
null
null
pub async fn delete_by_merchant_id( conn: &PgPooledConn, identifier: &common_utils::id_type::MerchantId, ) -> StorageResult<bool> { generics::generic_delete::<<Self as HasTable>::Table, _>( conn, dsl::id.eq(identifier.to_owned()), ) .await }
crates/diesel_models/src/query/merchant_account.rs
diesel_models
function_signature
76
rust
null
null
null
null
delete_by_merchant_id
null
null
null
null
null
null
null
pub fn setup( config: &config::Log, service_name: &str, crates_to_filter: impl AsRef<[&'static str]>, ) -> error_stack::Result<TelemetryGuard, ConfigError> { let mut guards = Vec::new(); // Setup OpenTelemetry traces and metrics let traces_layer = if config.telemetry.traces_enabled { se...
crates/router_env/src/logger/setup.rs
router_env
function_signature
702
rust
null
null
null
null
setup
null
null
null
null
null
null
null
pub struct BankRedirectRefundResponse { pub payment_request_id: i64, pub result_info: ResultInfo, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
BankRedirectRefundResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs Public functions: 1 Public structs: 1 pub mod transformers; use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, StringMinorUnit, ...
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
hyperswitch_connectors
full_file
5,086
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ChargebeeMetadata { pub(super) site: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
ChargebeeMetadata
null
null
null
null
null
null
null
null
null
null
null
pub async fn complete_create_recipient( state: &SessionState, merchant_context: &domain::MerchantContext, connector_data: &api::ConnectorData, payout_data: &mut PayoutData, ) -> RouterResult<()> { if !payout_data.should_terminate && matches!( payout_data.payout_attempt.status, ...
crates/router/src/core/payouts.rs
router
function_signature
191
rust
null
null
null
null
complete_create_recipient
null
null
null
null
null
null
null
pub fn set_limit_by(&mut self, limit: u64, columns: &[impl ToSql<T>]) -> QueryResult<()> { let columns = columns .iter() .map(|col| col.to_sql(&self.table_engine)) .collect::<Result<Vec<String>, _>>() .change_context(QueryBuildingError::SqlSerializeError) ...
crates/analytics/src/query.rs
analytics
function_signature
110
rust
null
null
null
null
set_limit_by
null
null
null
null
null
null
null
pub fn validate(&self) -> Result<(), ApplicationError> { common_utils::fp_utils::when(self.lock_key.is_default_or_empty(), || { Err(ApplicationError::InvalidConfigurationValueError( "producer lock key must not be empty".into(), )) }) }
crates/scheduler/src/configs/validations.rs
scheduler
function_signature
59
rust
null
null
null
null
validate
null
null
null
null
null
null
null
File: crates/router/src/utils/ext_traits.rs pub use hyperswitch_domain_models::ext_traits::OptionExt; use crate::core::errors::{self, CustomResult}; pub trait ValidateCall<T, F> { fn validate_opt(self, func: F) -> CustomResult<(), errors::ValidationError>; } impl<T, F> ValidateCall<T, F> for Option<&T> where ...
crates/router/src/utils/ext_traits.rs
router
full_file
139
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn send_request_to_key_service_for_merchant( state: &SessionState, keys: Vec<MerchantKeyStore>, ) -> errors::CustomResult<usize, errors::ApiErrorResponse> { let total = keys.len(); for key in keys { let key_encoded = BASE64_ENGINE.encode(key.key.clone().into_inner().expose()); ...
crates/router/src/core/encryption.rs
router
function_signature
137
rust
null
null
null
null
send_request_to_key_service_for_merchant
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.FrmMessage { "type": "object", "description": "frm message is an object sent inside the payments response...when frm is invoked, its value is Some(...), else its None", "required": [ "frm_name" ], "properties": { "frm_name": { "type": "string" }, "f...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
216
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "FrmMessage" ]
null
null
null
null
pub async fn payment_data( state: SessionState, req: types::DummyConnectorPaymentRetrieveRequest, ) -> types::DummyConnectorResponse<types::DummyConnectorPaymentResponse> { utils::tokio_mock_sleep( state.conf.dummy_connector.payment_retrieve_duration, state.conf.dummy_connector.payment_retri...
crates/router/src/routes/dummy_connector/core.rs
router
function_signature
110
rust
null
null
null
null
payment_data
null
null
null
null
null
null
null
pub fn supports_vendor_disburse_account_create_for_payout(self) -> bool { matches!(self, Self::Stripe | Self::Nomupay) }
crates/common_enums/src/connector_enums.rs
common_enums
function_signature
33
rust
null
null
null
null
supports_vendor_disburse_account_create_for_payout
null
null
null
null
null
null
null
impl api::MandateSetup for Payeezy {}
crates/hyperswitch_connectors/src/connectors/payeezy.rs
hyperswitch_connectors
impl_block
12
rust
null
Payeezy
api::MandateSetup for
impl api::MandateSetup for for Payeezy
null
null
null
null
null
null
null
null
pub struct Tsys { amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/tsys.rs
hyperswitch_connectors
struct_definition
27
rust
Tsys
null
null
null
null
null
null
null
null
null
null
null
impl Dwolla { pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/dwolla.rs
hyperswitch_connectors
impl_block
34
rust
null
Dwolla
null
impl Dwolla
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Thunes { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&THUNES_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { None } fn get_supported_webhook_flows(&self) -> Option<&'...
crates/hyperswitch_connectors/src/connectors/thunes.rs
hyperswitch_connectors
impl_block
93
rust
null
Thunes
ConnectorSpecifications for
impl ConnectorSpecifications for for Thunes
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/custombilling/transformers.rs Public structs: 7 use common_enums::enums; use common_utils::types::StringMinorUnit; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::RouterData, router_flow_types::refunds::{Execute, RSyn...
crates/hyperswitch_connectors/src/connectors/custombilling/transformers.rs
hyperswitch_connectors
full_file
1,556
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.DecideGatewayResponse { "type": "object", "properties": { "decided_gateway": { "type": "string", "nullable": true }, "gateway_priority_map": { "nullable": true }, "filter_wise_gateways": { "nullable": true }, "priority_logic_...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
320
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "DecideGatewayResponse" ]
null
null
null
null
impl ConnectorSpecifications for Authipay { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&AUTHIPAY_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*AUTHIPAY_SUPPORTED_PAYMENT_METHODS) } fn get_s...
crates/hyperswitch_connectors/src/connectors/authipay.rs
hyperswitch_connectors
impl_block
108
rust
null
Authipay
ConnectorSpecifications for
impl ConnectorSpecifications for for Authipay
null
null
null
null
null
null
null
null
pub struct ClientRiskInformation { rules: Option<Vec<ClientRiskInformationRules>>, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
ClientRiskInformation
null
null
null
null
null
null
null
null
null
null
null
pub struct StripeChargeResponseData { /// Identifier for charge created for the payment pub charge_id: Option<String>, /// Type of charge (connector specific) #[schema(value_type = PaymentChargeType, example = "direct")] pub charge_type: enums::PaymentChargeType, /// Platform fees collected on...
crates/common_types/src/payments.rs
common_types
struct_definition
124
rust
StripeChargeResponseData
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorRedirectResponse for Checkout { fn get_flow_type( &self, _query_params: &str, _json_payload: Option<serde_json::Value>, action: PaymentAction, ) -> CustomResult<CallConnectorAction, errors::ConnectorError> { match action { PaymentAction::PSy...
crates/hyperswitch_connectors/src/connectors/checkout.rs
hyperswitch_connectors
impl_block
106
rust
null
Checkout
api::ConnectorRedirectResponse for
impl api::ConnectorRedirectResponse for for Checkout
null
null
null
null
null
null
null
null
impl DisputeInterface for KafkaStore { async fn insert_dispute( &self, dispute_new: storage::DisputeNew, ) -> CustomResult<storage::Dispute, errors::StorageError> { let dispute = self.diesel_store.insert_dispute(dispute_new).await?; if let Err(er) = self .kafka_produ...
crates/router/src/db/kafka_store.rs
router
impl_block
762
rust
null
KafkaStore
DisputeInterface for
impl DisputeInterface for for KafkaStore
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ApplePayBillingContactFields { "type": "array", "items": { "$ref": "#/components/schemas/ApplePayAddressParameters" } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
46
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ApplePayBillingContactFields" ]
null
null
null
null
pub struct MifinityErrorResponse { pub errors: Vec<MifinityErrorList>, }
crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
MifinityErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn set_role_info_in_cache_by_role_id_org_id( state: &SessionState, role_id: &str, org_id: &id_type::OrganizationId, tenant_id: &id_type::TenantId, ) -> bool { set_role_info_in_cache_if_required(state, role_id, org_id, tenant_id) .await .map_err(|e| logger::error!("Error set...
crates/router/src/utils/user_role.rs
router
function_signature
102
rust
null
null
null
null
set_role_info_in_cache_by_role_id_org_id
null
null
null
null
null
null
null
pub struct InstructionNarrative { pub line1: String, }
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
hyperswitch_connectors
struct_definition
14
rust
InstructionNarrative
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSelection { pub fn get_connector_list(&self) -> Vec<RoutableConnectorChoice> { match self { Self::Priority(list) => list.clone(), Self::VolumeSplit(splits) => { splits.iter().map(|split| split.connector.clone()).collect() } } } }
crates/api_models/src/routing.rs
api_models
impl_block
67
rust
null
ConnectorSelection
null
impl ConnectorSelection
null
null
null
null
null
null
null
null
pub struct Silverflow;
crates/hyperswitch_connectors/src/connectors/silverflow.rs
hyperswitch_connectors
struct_definition
5
rust
Silverflow
null
null
null
null
null
null
null
null
null
null
null
/// get step up enabled key pub fn get_step_up_enabled_key(&self) -> String { format!("step_up_enabled_{}", self.get_string_repr()) }
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
36
rust
null
null
null
null
get_step_up_enabled_key
null
null
null
null
null
null
null
Documentation: api-reference/locker-api-reference/key-custodian/provide-key-1.mdx # Type: Doc File --- openapi: rust_locker_open_api_spec post /custodian/key1 ---
api-reference/locker-api-reference/key-custodian/provide-key-1.mdx
null
doc_file
44
doc
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/organization/organization--retrieve.mdx # Type: Doc File --- openapi: get /organization/{id} ---
api-reference/v1/organization/organization--retrieve.mdx
null
doc_file
32
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Itaubank {}
crates/hyperswitch_connectors/src/connectors/itaubank.rs
hyperswitch_connectors
impl_block
12
rust
null
Itaubank
api::MandateSetup for
impl api::MandateSetup for for Itaubank
null
null
null
null
null
null
null
null
pub struct CardHolder { cardholder_name: Secret<String>, email: Email, }
crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
CardHolder
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentsStoredCredentials { cardbrand_original_transaction_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
PaymentsStoredCredentials
null
null
null
null
null
null
null
null
null
null
null
File: crates/external_services/src/hashicorp_vault.rs //! Interactions with the HashiCorp Vault pub mod core; pub mod implementers;
crates/external_services/src/hashicorp_vault.rs
external_services
full_file
33
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/riskified.rs Public functions: 2 Public structs: 1 pub mod transformers; #[cfg(feature = "frm")] use api_models::webhooks::{ConnectorWebhookSecrets, IncomingWebhookEvent, ObjectReferenceId}; #[cfg(feature = "frm")] use base64::Engine; #[cfg(feature = "frm")] use com...
crates/hyperswitch_connectors/src/connectors/riskified.rs
hyperswitch_connectors
full_file
5,090
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn link_de_euclid_routing_algorithm( state: &SessionState, routing_request: ActivateRoutingConfigRequest, ) -> RoutingResult<()> { logger::debug!("decision_engine_euclid: link api call for euclid routing algorithm"); EuclidApiClient::send_decision_engine_request::<_, String>( state, ...
crates/router/src/core/payments/routing/utils.rs
router
function_signature
143
rust
null
null
null
null
link_de_euclid_routing_algorithm
null
null
null
null
null
null
null
message: error_code.clone(), reason: Some(error_code), status_code: item.http_code, attempt_status: None, connector_transaction_id: None, network_advice_code: None, network_decline...
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs#chunk2
hyperswitch_connectors
chunk
705
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CryptopayPaymentsRequest { price_amount: StringMajorUnit, price_currency: enums::Currency, pay_currency: String, #[serde(skip_serializing_if = "Option::is_none")] network: Option<String>, success_redirect_url: Option<String>, unsuccess_redirect_url: Option<String>, #[serde(ski...
crates/hyperswitch_connectors/src/connectors/cryptopay/transformers.rs
hyperswitch_connectors
struct_definition
100
rust
CryptopayPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn convert_forex( state: web::Data<AppState>, req: HttpRequest, params: web::Query<api_models::currency::CurrencyConversionParams>, ) -> HttpResponse { let flow = Flow::RetrieveForexFlow; let amount = params.amount; let to_currency = &params.to_currency; let from_currency = &params...
crates/router/src/routes/currency.rs
router
function_signature
216
rust
null
null
null
null
convert_forex
null
null
null
null
null
null
null
impl Responder { Box::pin(oss_api::server_wrap( Flow::RoutingRetrieveDefaultConfig, state, &req, (), |state, auth: auth::AuthenticationData, _, _| { let merchant_context = domain::MerchantContext::NormalMerchant(Box::new( domain::Context(auth.merch...
crates/router/src/routes/routing.rs
router
impl_block
253
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub async fn find_payment_intent_from_mandate_id_type( state: &SessionState, mandate_id_type: webhooks::MandateIdType, merchant_context: &domain::MerchantContext, ) -> CustomResult<PaymentIntent, errors::ApiErrorResponse> { let db = &*state.store; let mandate = match mandate_id_type { webhoo...
crates/router/src/utils.rs
router
function_signature
368
rust
null
null
null
null
find_payment_intent_from_mandate_id_type
null
null
null
null
null
null
null
impl api::PaymentCapture for Checkout {}
crates/hyperswitch_connectors/src/connectors/checkout.rs
hyperswitch_connectors
impl_block
8
rust
null
Checkout
api::PaymentCapture for
impl api::PaymentCapture for for Checkout
null
null
null
null
null
null
null
null
pub struct ConnectorParamsWithThreeUrls { /// base url pub base_url: String, /// secondary base url pub secondary_base_url: String, /// third base url pub third_base_url: String, }
crates/hyperswitch_domain_models/src/connector_endpoints.rs
hyperswitch_domain_models
struct_definition
49
rust
ConnectorParamsWithThreeUrls
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/account/{account_id}/profile").app_data(web::Data::new(state)) }
crates/router/src/routes/app.rs
router
function_signature
33
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub struct Error { pub code: String, pub message: String, }
crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
Error
null
null
null
null
null
null
null
null
null
null
null
pub struct WebhookRefundEntity { // pub id: String, // pub status: RazorpayWebhookRefundEvent, // }
crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
WebhookRefundEntity
null
null
null
null
null
null
null
null
null
null
null
pub fn from_bytes(val: Vec<u8>) -> Self { Self { inner: FredRedisValue::Bytes(val.into()), } }
crates/redis_interface/src/types.rs
redis_interface
function_signature
31
rust
null
null
null
null
from_bytes
null
null
null
null
null
null
null
pub async fn retrieve_routing_config_under_profile( state: SessionState, merchant_context: domain::MerchantContext, query_params: RoutingRetrieveQuery, profile_id: common_utils::id_type::ProfileId, transaction_type: &enums::TransactionType, ) -> RouterResponse<routing_types::LinkedRoutingConfigRetri...
crates/router/src/core/routing.rs
router
function_signature
336
rust
null
null
null
null
retrieve_routing_config_under_profile
null
null
null
null
null
null
null
impl api::PaymentSession for Boku {}
crates/hyperswitch_connectors/src/connectors/boku.rs
hyperswitch_connectors
impl_block
9
rust
null
Boku
api::PaymentSession for
impl api::PaymentSession for for Boku
null
null
null
null
null
null
null
null
pub struct GatewayStatusMapperUpdateInternal { pub connector: Option<String>, pub flow: Option<String>, pub sub_flow: Option<String>, pub code: Option<String>, pub message: Option<String>, pub status: Option<String>, pub router_error: Option<Option<String>>, pub decision: Option<String>,...
crates/diesel_models/src/gsm.rs
diesel_models
struct_definition
151
rust
GatewayStatusMapperUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
impl<Secret: ZeroizableSecret, MaskingStrategy> Drop for StrongSecret<Secret, MaskingStrategy> { fn drop(&mut self) { self.inner_secret.zeroize(); } }
crates/masking/src/strong_secret.rs
masking
impl_block
42
rust
null
StrongSecret
Drop for
impl Drop for for StrongSecret
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/elavon.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct CreateDynamicRoutingWrapper { pub profile_id: common_utils::id_type::ProfileId, pub feature_to_enable: DynamicRoutingFeatures, pub payload: DynamicRoutingPayload, }
crates/api_models/src/routing.rs
api_models
struct_definition
40
rust
CreateDynamicRoutingWrapper
null
null
null
null
null
null
null
null
null
null
null
Web Documentation: Intelligent Routing | Hyperswitch # Type: Web Doc The Hyperswitch Intelligent Routing module augments your payment processing by dynamically switching between processors in real-time for every transaction to optimally maximise first attempt auth rates and minimise processing cost. Types of Intellige...
https://docs.hyperswitch.io/about-hyperswitch/payments-modules/intelligent-routing
null
web_doc_file
389
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/about-hyperswitch/payments-modules/intelligent-routing
Intelligent Routing | Hyperswitch
null
pub struct HelcimLineItems { description: String, quantity: u8, price: FloatMajorUnit, total: FloatMajorUnit, }
crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
HelcimLineItems
null
null
null
null
null
null
null
null
null
null
null
pub async fn perform_surcharge_decision_management_for_saved_cards( // state: &SessionState, // algorithm_ref: routing::RoutingAlgorithmRef, // payment_attempt: &storage::PaymentAttempt, // payment_intent: &storage::PaymentIntent, // customer_payment_method_list: &mut [api_models::payment_methods::C...
crates/router/src/core/payment_methods/surcharge_decision_configs.rs
router
function_signature
681
rust
null
null
null
null
perform_surcharge_decision_management_for_saved_cards
null
null
null
null
null
null
null
impl ToTokens for SchemaParameterVariant { fn to_tokens(&self, tokens: &mut TokenStream) { match self { Self::ValueType { keyword, .. } => keyword.to_tokens(tokens), Self::MinLength { keyword, .. } => keyword.to_tokens(tokens), Self::MaxLength { keyword, .. } => keyword.t...
crates/router_derive/src/macros/schema/helpers.rs
router_derive
impl_block
93
rust
null
SchemaParameterVariant
ToTokens for
impl ToTokens for for SchemaParameterVariant
null
null
null
null
null
null
null
null
pub struct NovalnetPaymentsResponseTransactionData { pub amount: Option<MinorUnit>, pub currency: Option<common_enums::Currency>, pub date: Option<String>, pub order_no: Option<String>, pub payment_data: Option<NovalnetResponsePaymentData>, pub payment_type: Option<String>, pub status_code: ...
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
133
rust
NovalnetPaymentsResponseTransactionData
null
null
null
null
null
null
null
null
null
null
null
pub struct ConnectorResponseData { pub additional_payment_method_data: Option<AdditionalPaymentMethodConnectorResponse>, extended_authorization_response_data: Option<ExtendedAuthorizationResponseData>, }
crates/hyperswitch_domain_models/src/router_data.rs
hyperswitch_domain_models
struct_definition
36
rust
ConnectorResponseData
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/routing/feedback" { "post": { "tags": [ "Routing" ], "summary": "Routing - Feedback", "description": "Update gateway scores for dynamic routing", "operationId": "Update gateway scores", "requestBody": { "content": { "application/json": { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
279
.json
null
null
null
null
null
openapi_spec
paths
[ "/routing/feedback" ]
null
null
null
null
impl Nmi { pub const fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/nmi.rs
hyperswitch_connectors
impl_block
35
rust
null
Nmi
null
impl Nmi
null
null
null
null
null
null
null
null
File: crates/openapi/src/routes/refunds.rs Public functions: 11 /// Refunds - Create /// /// Creates a refund against an already processed payment. In case of some processors, you can even opt to refund only a partial amount multiple times until the original charge amount has been refunded #[utoipa::path( post, ...
crates/openapi/src/routes/refunds.rs
openapi
full_file
2,115
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Address { /// line1: String, /// line2: String, /// zip: String, /// }
crates/router_derive/src/lib.rs
router_derive
struct_definition
26
rust
Address
null
null
null
null
null
null
null
null
null
null
null
impl TotalEventsResponse { pub fn new(total_count: i64, events: Vec<EventListItemResponse>) -> Self { Self { events, total_count, } } }
crates/api_models/src/webhook_events.rs
api_models
impl_block
41
rust
null
TotalEventsResponse
null
impl TotalEventsResponse
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Breadpay {}
crates/hyperswitch_connectors/src/connectors/breadpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Breadpay
api::PaymentCapture for
impl api::PaymentCapture for for Breadpay
null
null
null
null
null
null
null
null
impl Profile { pub fn get_is_tax_connector_enabled(&self) -> bool { let is_tax_connector_enabled = self.is_tax_connector_enabled; match &self.tax_connector_id { Some(_id) => is_tax_connector_enabled, _ => false, } } #[cfg(feature = "v1")] pub fn get_order...
crates/hyperswitch_domain_models/src/business_profile.rs
hyperswitch_domain_models
impl_block
1,123
rust
null
Profile
null
impl Profile
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RetrievePaymentLinkResponse { "type": "object", "required": [ "payment_link_id", "merchant_id", "link_to_pay", "amount", "created_at", "status" ], "properties": { "payment_link_id": { "type": "string", "description": "Identifier for ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
412
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RetrievePaymentLinkResponse" ]
null
null
null
null
OpenAPI Block Path: components.schemas.SizeVariants { "type": "string", "enum": [ "cover", "contain" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
36
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SizeVariants" ]
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/gpayments/transformers.rs Public structs: 3 use api_models::payments::DeviceChannel; use base64::Engine; use common_utils::{consts::BASE64_ENGINE, date_time, types::MinorUnit}; use error_stack::ResultExt; use hyperswitch_domain_models::{ router_data::{ConnectorAu...
crates/hyperswitch_connectors/src/connectors/gpayments/transformers.rs
hyperswitch_connectors
full_file
2,940
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/pm_auth/src/connector.rs pub mod plaid; pub use self::plaid::Plaid;
crates/pm_auth/src/connector.rs
pm_auth
full_file
25
null
null
null
null
null
null
null
null
null
null
null
null
null
impl EmailData for ReconActivation { async fn get_email_data(&self, _base_url: &str) -> CustomResult<EmailContents, EmailError> { let body = html::get_html_body(EmailBody::ReconActivation { user_name: self.user_name.clone().get_secret().expose(), }); Ok(EmailContents { ...
crates/router/src/services/email/types.rs
router
impl_block
113
rust
null
ReconActivation
EmailData for
impl EmailData for for ReconActivation
null
null
null
null
null
null
null
null
pub struct KafkaSettings { brokers: Vec<String>, fraud_check_analytics_topic: String, intent_analytics_topic: String, attempt_analytics_topic: String, refund_analytics_topic: String, api_logs_topic: String, connector_logs_topic: String, outgoing_webhook_logs_topic: String, dispute_an...
crates/router/src/services/kafka.rs
router
struct_definition
130
rust
KafkaSettings
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Paybox {}
crates/hyperswitch_connectors/src/connectors/paybox.rs
hyperswitch_connectors
impl_block
9
rust
null
Paybox
api::PaymentSync for
impl api::PaymentSync for for Paybox
null
null
null
null
null
null
null
null
pub fn set_response(&mut self, response: Res) { self.response = Some(response); }
crates/router/src/core/payments/routing/utils.rs
router
function_signature
22
rust
null
null
null
null
set_response
null
null
null
null
null
null
null
pub struct TransactionTiming { when: String, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
11
rust
TransactionTiming
null
null
null
null
null
null
null
null
null
null
null
pub struct AttachEvidenceRequest { pub create_file_request: types::api::CreateFileRequest, pub evidence_type: EvidenceType, }
crates/router/src/types/api/disputes.rs
router
struct_definition
29
rust
AttachEvidenceRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_theme( state: SessionState, request: theme_api::CreateThemeRequest, ) -> UserResponse<theme_api::GetThemeResponse> { theme_utils::validate_lineage(&state, &request.lineage).await?; let email_config = if cfg!(feature = "email") { request.email_config.ok_or(UserErrors::Missing...
crates/router/src/core/user/theme.rs
router
function_signature
398
rust
null
null
null
null
create_theme
null
null
null
null
null
null
null
pub struct NoonGooglePay { api_version_minor: u8, api_version: u8, payment_method_data: GooglePayWalletData, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
NoonGooglePay
null
null
null
null
null
null
null
null
null
null
null
pub fn enum_value_string(input: &str) -> ParseResult<&str, String> { combinator::map( sequence::pair( complete::take_while1(|c: char| c.is_ascii_alphabetic() || c == '_'), complete::take_while(|c: char| c.is_ascii_alphanumeric() || c == '_'), ), |out: (&str, &str)| ou...
crates/euclid/src/frontend/ast/parser.rs
euclid
function_signature
102
rust
null
null
null
null
enum_value_string
null
null
null
null
null
null
null