text
string
file_path
string
module
string
type
string
tokens
int64
language
string
struct_name
string
type_name
string
trait_name
string
impl_type
string
function_name
string
source
string
section
string
keys
list
macro_type
string
url
string
title
string
chunk_index
int64
pub struct Nordea { amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/nordea.rs
hyperswitch_connectors
struct_definition
27
rust
Nordea
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Braintree {}
crates/hyperswitch_connectors/src/connectors/braintree.rs
hyperswitch_connectors
impl_block
9
rust
null
Braintree
api::PaymentToken for
impl api::PaymentToken for for Braintree
null
null
null
null
null
null
null
null
fn get_webhook_source_verification_algorithm( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(crypto::Sha256)) } fn get_webhook_source_verification_signature( &self, ...
crates/hyperswitch_connectors/src/connectors/worldpay.rs#chunk1
hyperswitch_connectors
chunk
2,393
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Database { pub username: String, pub password: Secret<String>, pub host: String, pub port: u16, pub dbname: String, pub pool_size: u32, pub connection_timeout: u64, }
crates/drainer/src/settings.rs
drainer
struct_definition
56
rust
Database
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/forte/transformers.rs Public structs: 22 use cards::CardNumber; use common_enums::enums; use common_utils::types::FloatMajorUnit; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router...
crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
hyperswitch_connectors
full_file
4,576
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/square.rs use std::{str::FromStr, time::Duration}; use masking::Secret; use router::types::{self, storage::enums, PaymentsResponseData}; use test_utils::connector_auth::ConnectorAuthentication; use crate::utils::{self, get_connector_transaction_id, Connector, ConnectorActions}; ...
crates/router/tests/connectors/square.rs
router
full_file
4,294
null
null
null
null
null
null
null
null
null
null
null
null
null
} None => get_random_string(), }, description: item.router_data.connector_request_reference_id.clone(), }, customer, bill_to: item .router_data .get_optional_billing() ...
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs#chunk1
hyperswitch_connectors
chunk
8,186
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_payment_methods( state: routes::SessionState, merchant_context: domain::MerchantContext, profile: domain::Profile, payment_id: id_type::GlobalPaymentId, req: api_models::payments::ListMethodsForPaymentsRequest, header_payload: &hyperswitch_domain_models::payments::HeaderPayload...
crates/router/src/core/payments/payment_methods.rs
router
function_signature
479
rust
null
null
null
null
list_payment_methods
null
null
null
null
null
null
null
pub async fn payments_update_intent( state: web::Data<app::AppState>, req: actix_web::HttpRequest, json_payload: web::Json<payment_types::PaymentsUpdateIntentRequest>, path: web::Path<common_utils::id_type::GlobalPaymentId>, ) -> impl Responder { use hyperswitch_domain_models::payments::PaymentInten...
crates/router/src/routes/payments.rs
router
function_signature
385
rust
null
null
null
null
payments_update_intent
null
null
null
null
null
null
null
pub struct Tax { amount_to_collect: FloatMajorUnit, //calculated_tax_amount }
crates/hyperswitch_connectors/src/connectors/taxjar/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
Tax
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/celero.rs
hyperswitch_connectors
function_signature
27
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct CreditCardError { pub errors: Vec<ErrorObject>, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
CreditCardError
null
null
null
null
null
null
null
null
null
null
null
pub struct Blackhawknetwork { amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs
hyperswitch_connectors
struct_definition
28
rust
Blackhawknetwork
null
null
null
null
null
null
null
null
null
null
null
pub struct SessionObject { pub apple_pay: Option<WalletSessionData>, pub google_pay: Option<WalletSessionData>, }
crates/hyperswitch_connectors/src/connectors/zen/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
SessionObject
null
null
null
null
null
null
null
null
null
null
null
pub fn to_num(&self) -> usize { match self { #(#match_arms),* } }
crates/euclid_macros/src/inner/enum_nums.rs
euclid_macros
function_signature
26
rust
null
null
null
null
to_num
null
null
null
null
null
null
null
pub struct Dispute { pub dispute_id: String, pub amount: StringMinorUnit, pub currency: String, pub dispute_stage: storage_enums::DisputeStage, pub dispute_status: storage_enums::DisputeStatus, pub payment_id: common_utils::id_type::PaymentId, pub attempt_id: String, pub merchant_id: com...
crates/diesel_models/src/dispute.rs
diesel_models
struct_definition
288
rust
Dispute
null
null
null
null
null
null
null
null
null
null
null
pub struct DeleteCardResponse { pub card_id: Option<String>, pub external_id: Option<String>, pub card_isin: Option<Secret<String>>, pub status: String, }
crates/router/src/core/payment_methods/transformers.rs
router
struct_definition
40
rust
DeleteCardResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn new_single(value: T) -> Self { Self::Single(value) }
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs
hyperswitch_connectors
function_signature
19
rust
null
null
null
null
new_single
null
null
null
null
null
null
null
impl FraudCheckTransaction for Riskified {}
crates/hyperswitch_connectors/src/connectors/riskified.rs
hyperswitch_connectors
impl_block
8
rust
null
Riskified
FraudCheckTransaction for
impl FraudCheckTransaction for for Riskified
null
null
null
null
null
null
null
null
pub trait TransitionTo<S: State> {}
crates/router/src/core/cards_info.rs
router
trait_definition
9
rust
null
null
TransitionTo
null
null
null
null
null
null
null
null
null
pub struct NoonWebhookObject { pub order_status: NoonPaymentStatus, pub order_id: u64, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
NoonWebhookObject
null
null
null
null
null
null
null
null
null
null
null
File: crates/test_utils/tests/connectors/selenium.rs Public functions: 5 Public structs: 7 #![allow( clippy::expect_used, clippy::panic, clippy::unwrap_in_result, clippy::missing_panics_doc, clippy::unwrap_used )] use std::{ collections::{HashMap, HashSet}, env, io::Read, path::{M...
crates/test_utils/tests/connectors/selenium.rs
test_utils
full_file
7,305
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Get an organization id from String pub fn try_from_string(org_id: String) -> CustomResult<Self, ValidationError> { Self::try_from(std::borrow::Cow::from(org_id)) }
crates/common_utils/src/id_type/organization.rs
common_utils
function_signature
44
rust
null
null
null
null
try_from_string
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs Public structs: 40 use common_enums::{enums, CountryAlpha2, UsStatesAbbreviation}; use common_utils::{ id_type, pii::{self, IpAddress}, types::MinorUnit, }; use hyperswitch_domain_models::{ address::AddressDetails, payme...
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
full_file
6,546
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct InterpreterError { pub error_type: InterpreterErrorType, pub metadata: HashMap<String, serde_json::Value>, }
crates/euclid/src/backend/interpreter/types.rs
euclid
struct_definition
27
rust
InterpreterError
null
null
null
null
null
null
null
null
null
null
null
pub struct AccountInformation { pub entity_id: String, pub balance: MinorUnit, pub currency: Currency, pub status: AccountStatus, }
crates/hyperswitch_connectors/src/connectors/blackhawknetwork/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
AccountInformation
null
null
null
null
null
null
null
null
null
null
null
pub struct ScheduledToken { pub token_details: PaymentProcessorTokenDetails, pub schedule_time: time::PrimitiveDateTime, }
crates/router/src/workflows/revenue_recovery.rs
router
struct_definition
26
rust
ScheduledToken
null
null
null
null
null
null
null
null
null
null
null
pub struct PartnerFlowCredentials { pub(super) client_id: Secret<String>, pub(super) client_secret: Secret<String>, pub(super) payer_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
PartnerFlowCredentials
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Gpayments {}
crates/hyperswitch_connectors/src/connectors/gpayments.rs
hyperswitch_connectors
impl_block
9
rust
null
Gpayments
api::PaymentCapture for
impl api::PaymentCapture for for Gpayments
null
null
null
null
null
null
null
null
/// get_poll_id pub fn get_poll_id(&self, unique_id: &str) -> String { format!("poll_{}_{unique_id}", self.get_string_repr()) }
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
40
rust
null
null
null
null
get_poll_id
null
null
null
null
null
null
null
pub async fn get_frm_filter_for_dimension<T>( dimension: FrmDimensions, merchant_id: &common_utils::id_type::MerchantId, time_range: &TimeRange, pool: &T, ) -> FiltersResult<Vec<FrmFilterRow>> where T: AnalyticsDataSource + FrmFilterAnalytics, PrimitiveDateTime: ToSql<T>, AnalyticsCollection...
crates/analytics/src/frm/filters.rs
analytics
function_signature
253
rust
null
null
null
null
get_frm_filter_for_dimension
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/thunes.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, StringMinorUn...
crates/hyperswitch_connectors/src/connectors/thunes.rs
hyperswitch_connectors
full_file
4,507
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/common_utils/src/id_type/global_id/refunds.rs Public functions: 2 Public structs: 1 use error_stack::ResultExt; use crate::errors; /// A global id that can be used to identify a refund #[derive( Debug, Clone, Hash, PartialEq, Eq, serde::Serialize, serde::Deserialize, di...
crates/common_utils/src/id_type/global_id/refunds.rs
common_utils
full_file
589
null
null
null
null
null
null
null
null
null
null
null
null
null
Web Documentation: Customizable and Native Integrations | Hyperswitch # Type: Web Doc How to get started? Pick the platform / framework of your choice to get started with integrating the client SDK on your application Hyperswitch Web Hyperswitch Android Hyperswitch iOS Hyperswitch React Native Hyperswitch Flutter Paym...
https://docs.hyperswitch.io/explore-hyperswitch/merchant-controls/integration-guide
null
web_doc_file
358
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/explore-hyperswitch/merchant-controls/integration-guide
Customizable and Native Integrations | Hyperswitch
null
pub struct AciPaymentsRequest { #[serde(flatten)] pub txn_details: TransactionDetails, #[serde(flatten)] pub payment_method: PaymentDetails, #[serde(flatten)] pub instruction: Option<Instruction>, pub shopper_result_url: Option<String>, }
crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
hyperswitch_connectors
struct_definition
59
rust
AciPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct MandateWebhookLink { pub mandate: String, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
MandateWebhookLink
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/intelligent-router-api-reference/static-routing/evaluate-routing-rule.mdx # Type: Doc File --- openapi: post /euclid.EuclidService/Evaluate ---
api-reference/intelligent-router-api-reference/static-routing/evaluate-routing-rule.mdx
null
doc_file
40
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CybersoucrePaymentInstrument { id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
CybersoucrePaymentInstrument
null
null
null
null
null
null
null
null
null
null
null
File: crates/payment_methods/src/lib.rs pub mod configs; pub mod controller; pub mod core; pub mod helpers; pub mod state;
crates/payment_methods/src/lib.rs
payment_methods
full_file
29
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorRedirectResponse for Bluesnap { fn get_flow_type( &self, _query_params: &str, json_payload: Option<serde_json::Value>, action: PaymentAction, ) -> CustomResult<CallConnectorAction, errors::ConnectorError> { match action { PaymentAction::PSync | P...
crates/hyperswitch_connectors/src/connectors/bluesnap.rs
hyperswitch_connectors
impl_block
319
rust
null
Bluesnap
ConnectorRedirectResponse for
impl ConnectorRedirectResponse for for Bluesnap
null
null
null
null
null
null
null
null
impl GenericLinkNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<GenericLinkState> { generics::generic_insert(conn, self) .await .and_then(|res: GenericLink| { GenericLinkState::try_from(res) .change_context(db_errors::Database...
crates/diesel_models/src/query/generic_link.rs
diesel_models
impl_block
284
rust
null
GenericLinkNew
null
impl GenericLinkNew
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/archipel.rs Public structs: 1 use std::sync::LazyLock; use api_models::webhooks::{IncomingWebhookEvent, ObjectReferenceId}; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::{ByteSliceExt, ValueExt}, request::{Method, Request...
crates/hyperswitch_connectors/src/connectors/archipel.rs#chunk0
hyperswitch_connectors
chunk
8,188
null
null
null
null
null
null
null
null
null
null
null
null
null
Web Documentation: Process Payouts | Hyperswitch # Type: Web Doc Effortlessly facilitate swift payouts to your global network of sellers, merchants, and service providers using Hyperswitch's advanced automated system. Whether you're managing payments received through Hyperswitch or from other sources, leverage this in...
https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/payouts
null
web_doc_file
796
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/payouts
Process Payouts | Hyperswitch
null
impl Hash for AuthEventMetricsBucketIdentifier { fn hash<H: Hasher>(&self, state: &mut H) { self.authentication_status.hash(state); self.trans_status.hash(state); self.authentication_type.hash(state); self.authentication_connector.hash(state); self.message_version.hash(state)...
crates/api_models/src/analytics/auth_events.rs
api_models
impl_block
239
rust
null
AuthEventMetricsBucketIdentifier
Hash for
impl Hash for for AuthEventMetricsBucketIdentifier
null
null
null
null
null
null
null
null
pub struct TaxData { pub shipping_details: hyperswitch_domain_models::address::Address, pub payment_method_type: enums::PaymentMethodType, }
crates/router/src/core/payments.rs
router
struct_definition
32
rust
TaxData
null
null
null
null
null
null
null
null
null
null
null
pub async fn is_step_up_enabled_for_merchant_connector( state: &app::SessionState, merchant_id: &common_utils::id_type::MerchantId, connector_name: types::Connector, ) -> bool { let key = merchant_id.get_step_up_enabled_key(); let db = &*state.store; db.find_config_by_key_unwrap_or(key.as_str(),...
crates/router/src/core/payments/retry.rs
router
function_signature
205
rust
null
null
null
null
is_step_up_enabled_for_merchant_connector
null
null
null
null
null
null
null
impl api::MandateSetup for Facilitapay {}
crates/hyperswitch_connectors/src/connectors/facilitapay.rs
hyperswitch_connectors
impl_block
13
rust
null
Facilitapay
api::MandateSetup for
impl api::MandateSetup for for Facilitapay
null
null
null
null
null
null
null
null
impl Celero { pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/celero.rs
hyperswitch_connectors
impl_block
33
rust
null
Celero
null
impl Celero
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MerchantAccountRequestType { "type": "string", "enum": [ "standard", "connected" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
38
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantAccountRequestType" ]
null
null
null
null
pub fn apply_psd2_validations_during_execute( decision: ThreeDSDecision, request: &api_models::three_ds_decision_rule::ThreeDsDecisionRuleExecuteRequest, ) -> ThreeDSDecision { let issuer_in_psd2 = request .issuer .as_ref() .and_then(|issuer| issuer.country) .map(|country| PS...
crates/router/src/core/three_ds_decision_rule/utils.rs
router
function_signature
301
rust
null
null
null
null
apply_psd2_validations_during_execute
null
null
null
null
null
null
null
impl api::PaymentVoid for Wellsfargopayout {}
crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs
hyperswitch_connectors
impl_block
12
rust
null
Wellsfargopayout
api::PaymentVoid for
impl api::PaymentVoid for for Wellsfargopayout
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ExtendedCardInfoConfig { "type": "object", "required": [ "public_key" ], "properties": { "public_key": { "type": "string", "description": "Merchant public key" }, "ttl_in_secs": { "type": "integer", "format": "int32", "descript...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
129
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ExtendedCardInfoConfig" ]
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/multisafepay.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use api_models::webhooks::IncomingWebhookEvent; use common_enums::{enums, AttemptStatus}; use common_utils::{ errors::CustomResult, ext_traits::BytesExt, ...
crates/hyperswitch_connectors/src/connectors/multisafepay.rs
hyperswitch_connectors
full_file
5,802
null
null
null
null
null
null
null
null
null
null
null
null
null
impl std::ops::Deref for PaymentsMandateReference { type Target = HashMap<common_utils::id_type::MerchantConnectorAccountId, PaymentsMandateReferenceRecord>; fn deref(&self) -> &Self::Target { &self.0 } }
crates/hyperswitch_domain_models/src/mandates.rs
hyperswitch_domain_models
impl_block
60
rust
null
PaymentsMandateReference
std::ops::Deref for
impl std::ops::Deref for for PaymentsMandateReference
null
null
null
null
null
null
null
null
pub struct CustomerAgreement { #[serde(rename = "type")] pub agreement_type: CustomerAgreementType, pub stored_card_usage: Option<StoredCardUsageType>, #[serde(skip_serializing_if = "Option::is_none")] pub scheme_reference: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
hyperswitch_connectors
struct_definition
62
rust
CustomerAgreement
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Flexiti {}
crates/hyperswitch_connectors/src/connectors/flexiti.rs
hyperswitch_connectors
impl_block
8
rust
null
Flexiti
api::Payment for
impl api::Payment for for Flexiti
null
null
null
null
null
null
null
null
pub async fn retrieve_routing_algorithm_from_algorithm_id( state: SessionState, merchant_context: domain::MerchantContext, authentication_profile_id: Option<common_utils::id_type::ProfileId>, algorithm_id: common_utils::id_type::RoutingId, ) -> RouterResponse<routing_types::MerchantRoutingAlgorithm> { ...
crates/router/src/core/routing.rs
router
function_signature
326
rust
null
null
null
null
retrieve_routing_algorithm_from_algorithm_id
null
null
null
null
null
null
null
pub struct GpayDashboardPayLoad { #[serde(skip_serializing_if = "Option::is_none")] pub gateway_merchant_id: Option<String>, #[serde(skip_serializing_if = "Option::is_none", rename = "stripe:version")] pub stripe_version: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] #[serde(...
crates/connector_configs/src/common_config.rs
connector_configs
struct_definition
165
rust
GpayDashboardPayLoad
null
null
null
null
null
null
null
null
null
null
null
/// Get should call gsm key for payment pub fn get_should_call_gsm_key(&self) -> String { format!("should_call_gsm_{}", self.get_string_repr()) }
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
41
rust
null
null
null
null
get_should_call_gsm_key
null
null
null
null
null
null
null
impl State for PmTokenStored {}
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
impl_block
8
rust
null
PmTokenStored
State for
impl State for for PmTokenStored
null
null
null
null
null
null
null
null
pub async fn retrieve_value_from_vault( state: &routes::SessionState, request: pm_types::VaultRetrieveRequest, ) -> CustomResult<serde_json::value::Value, errors::VaultError> { let payload = request .encode_to_vec() .change_context(errors::VaultError::RequestEncodingFailed) .attach_p...
crates/router/src/core/payment_methods/vault.rs
router
function_signature
191
rust
null
null
null
null
retrieve_value_from_vault
null
null
null
null
null
null
null
pub struct RiskifiedCustomer { email: Option<Email>, first_name: Option<Secret<String>>, last_name: Option<Secret<String>>, #[serde(with = "common_utils::custom_serde::iso8601")] created_at: PrimitiveDateTime, verified_email: bool, id: id_type::CustomerId, account_type: CustomerAccountTy...
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
96
rust
RiskifiedCustomer
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentDataFilledCount;
crates/api_models/src/analytics/sdk_events.rs
api_models
struct_definition
7
rust
PaymentDataFilledCount
null
null
null
null
null
null
null
null
null
null
null
pub struct UpdateEliminationBucketEventResponse { pub status: EliminationUpdationStatusEventResponse, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
23
rust
UpdateEliminationBucketEventResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<GatewayStatusMap> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/gsm.rs
diesel_models
function_signature
36
rust
null
null
null
null
insert
null
null
null
null
null
null
null
pub fn get_no_level_user_role( self, role_id: String, user_status: UserStatus, ) -> NewUserRole<NoLevel> { let now = common_utils::date_time::now(); let user_id = self.get_user_id(); NewUserRole { status: user_status, created_by: user_id.clone...
crates/router/src/types/domain/user.rs
router
function_signature
113
rust
null
null
null
null
get_no_level_user_role
null
null
null
null
null
null
null
impl ConnectorRedirectResponse for Digitalvirgo { fn get_flow_type( &self, _query_params: &str, _json_payload: Option<serde_json::Value>, action: enums::PaymentAction, ) -> CustomResult<enums::CallConnectorAction, errors::ConnectorError> { match action { enums...
crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs
hyperswitch_connectors
impl_block
119
rust
null
Digitalvirgo
ConnectorRedirectResponse for
impl ConnectorRedirectResponse for for Digitalvirgo
null
null
null
null
null
null
null
null
pub struct EncryptionTransferRequest { #[serde(flatten)] pub identifier: Identifier, pub key: String, }
crates/common_utils/src/types/keymanager.rs
common_utils
struct_definition
25
rust
EncryptionTransferRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct DecisionEngineSuccessRateData { pub default_latency_threshold: Option<f64>, pub default_bucket_size: Option<i32>, pub default_hedging_percent: Option<f64>, pub default_lower_reset_factor: Option<f64>, pub default_upper_reset_factor: Option<f64>, pub default_gateway_extra_score: Option...
crates/api_models/src/open_router.rs
api_models
struct_definition
104
rust
DecisionEngineSuccessRateData
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentRequest { /// #[schema(min_length = 10, max_length = 255)] /// pub description: String, /// /// #[schema(example = "https://example.com/return", max_length = 255)] /// pub return_url: Option<Url>, /// /// // Field without constraints /// pub amount: u64, /// }
crates/router_derive/src/lib.rs
router_derive
struct_definition
83
rust
PaymentRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Iatapay {}
crates/hyperswitch_connectors/src/connectors/iatapay.rs
hyperswitch_connectors
impl_block
11
rust
null
Iatapay
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Iatapay
null
null
null
null
null
null
null
null
pub struct PaypalAuthUpdateRequest { grant_type: String, client_id: Secret<String>, client_secret: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
PaypalAuthUpdateRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentUpdateMetadata;
crates/router/src/core/payments/operations/payment_update_metadata.rs
router
struct_definition
6
rust
PaymentUpdateMetadata
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Celero { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&CELERO_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*CELERO_SUPPORTED_PAYMENT_METHODS) } fn get_support...
crates/hyperswitch_connectors/src/connectors/celero.rs
hyperswitch_connectors
impl_block
96
rust
null
Celero
ConnectorSpecifications for
impl ConnectorSpecifications for for Celero
null
null
null
null
null
null
null
null
impl api::MandateSetup for Amazonpay {}
crates/hyperswitch_connectors/src/connectors/amazonpay.rs
hyperswitch_connectors
impl_block
11
rust
null
Amazonpay
api::MandateSetup for
impl api::MandateSetup for for Amazonpay
null
null
null
null
null
null
null
null
pub async fn psync_response_handler( &self, state: &SessionState, payment_intent: &PaymentIntent, psync_task_process: &storage::ProcessTracker, revenue_recovery_metadata: &mut PaymentRevenueRecoveryMetadata, revenue_recovery_payment_data: &storage::revenue_recovery::Reven...
crates/router/src/core/revenue_recovery/types.rs
router
function_signature
1,396
rust
null
null
null
null
psync_response_handler
null
null
null
null
null
null
null
pub struct Response { /// headers pub headers: Option<http::HeaderMap>, /// response pub response: bytes::Bytes, /// status code pub status_code: u16, }
crates/hyperswitch_interfaces/src/types.rs
hyperswitch_interfaces
struct_definition
46
rust
Response
null
null
null
null
null
null
null
null
null
null
null
pub struct CreateProfileDetails { create_profile: bool, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
CreateProfileDetails
null
null
null
null
null
null
null
null
null
null
null
impl std::ops::Deref for TtlForExtendedCardInfo { type Target = u16; fn deref(&self) -> &Self::Target { &self.0 } }
crates/api_models/src/admin.rs
api_models
impl_block
45
rust
null
TtlForExtendedCardInfo
std::ops::Deref for
impl std::ops::Deref for for TtlForExtendedCardInfo
null
null
null
null
null
null
null
null
pub async fn delete_by_merchant_id_fingerprint( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, fingerprint: &str, ) -> StorageResult<Self> { generics::generic_delete_one_with_result::<<Self as HasTable>::Table, _, _>( conn, dsl::merchant...
crates/diesel_models/src/query/blocklist_lookup.rs
diesel_models
function_signature
109
rust
null
null
null
null
delete_by_merchant_id_fingerprint
null
null
null
null
null
null
null
File: crates/diesel_models/src/mandate.rs Public functions: 5 Public structs: 4 use common_enums::MerchantStorageScheme; use common_utils::pii; use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable}; use masking::Secret; use time::PrimitiveDateTime; use crate::{enums as storage_enums, schema::ma...
crates/diesel_models/src/mandate.rs
diesel_models
full_file
2,172
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct EpsRedirectionResponse { name: Option<Secret<String>>, country_code: Option<enums::CountryAlpha2>, bic: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
EpsRedirectionResponse
null
null
null
null
null
null
null
null
null
null
null
- **deps:** Bump phonenumber from 0.3.2+8.13.9 to 0.3.3+8.13.9 ([#2255](https://github.com/juspay/hyperswitch/pull/2255)) ([`8f3721d`](https://github.com/juspay/hyperswitch/commit/8f3721d16b27962923bff0968f7074cef2471e36)) **Full Changelog:** [`v1.43.1...v1.44.0`](https://github.com/juspay/hyperswitch/compare/v1.43.1....
CHANGELOG.md#chunk51
null
doc_chunk
8,185
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Redirects { cancel_url: Option<String>, success_url: Option<String>, will_redirect_after_success: bool, }
crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
Redirects
null
null
null
null
null
null
null
null
null
null
null
pub struct BreadpayRefundRequest { pub amount: StringMinorUnit, #[serde(rename = "type")] pub transaction_type: BreadpayTransactionType, }
crates/hyperswitch_connectors/src/connectors/breadpay/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
BreadpayRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct MifinityAuthType { pub(super) key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
MifinityAuthType
null
null
null
null
null
null
null
null
null
null
null
impl TokenizationInterface for KafkaStore {}
crates/router/src/db/kafka_store.rs
router
impl_block
8
rust
null
KafkaStore
TokenizationInterface for
impl TokenizationInterface for for KafkaStore
null
null
null
null
null
null
null
null
pub struct GpayAllowedMethodsParameters { pub allowed_auth_methods: Vec<String>, pub allowed_card_networks: Vec<String>, pub assurance_details_required: Option<bool>, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
GpayAllowedMethodsParameters
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RevokeApiKeyResponse { "type": "object", "description": "The response body for revoking an API Key.", "required": [ "merchant_id", "key_id", "revoked" ], "properties": { "merchant_id": { "type": "string", "description": "The identifier for the...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
224
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RevokeApiKeyResponse" ]
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs Public functions: 2 Public structs: 15 use bytes::Bytes; use common_enums::enums; use common_utils::{ date_time::DateFormat, errors::CustomResult, ext_traits::ValueExt, types::MinorUnit, }; use error_stack::ResultExt; use hyperswitch_domai...
crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs#chunk0
hyperswitch_connectors
chunk
8,189
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GetSankey; let payload = json_payload.into_inner(); Box::pin(api::server_wrap( flow, state, &req, payload, |state, auth: AuthenticationData, req, _| async move { let org_id = au...
crates/router/src/analytics.rs
router
impl_block
189
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/routing/routing--retrieve.mdx # Type: Doc File --- openapi: get /routing/{routing_algorithm_id} ---
api-reference/v1/routing/routing--retrieve.mdx
null
doc_file
34
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/euclid/src/dssa/truth.rs use std::sync::LazyLock; use euclid_macros::knowledge; use crate::{dssa::graph::euclid_graph_prelude, frontend::dir}; pub static ANALYSIS_GRAPH: LazyLock<hyperswitch_constraint_graph::ConstraintGraph<dir::DirValue>> = LazyLock::new(|| { knowledge! { // P...
crates/euclid/src/dssa/truth.rs
euclid
full_file
323
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CountAccumulator { pub count: Option<i64>, }
crates/analytics/src/payments/accumulator.rs
analytics
struct_definition
17
rust
CountAccumulator
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_with_attempt_id( self, conn: &PgPooledConn, payout_attempt_update: PayoutAttemptUpdate, ) -> StorageResult<Self> { match generics::generic_update_with_unique_predicate_get_result::< <Self as HasTable>::Table, _, _, _...
crates/diesel_models/src/query/payout_attempt.rs
diesel_models
function_signature
171
rust
null
null
null
null
update_with_attempt_id
null
null
null
null
null
null
null
pub struct ApplepayVerifiedDomainsResponse { pub verified_domains: Vec<String>, }
crates/api_models/src/verifications.rs
api_models
struct_definition
17
rust
ApplepayVerifiedDomainsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct BillingAddress { pub address1: Secret<String>, #[serde(skip_serializing_if = "Option::is_none")] pub address2: Option<Secret<String>>, #[serde(skip_serializing_if = "Option::is_none")] pub address3: Option<Secret<String>>, pub city: String, #[serde(skip_serializing_if = "Option::i...
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
hyperswitch_connectors
struct_definition
112
rust
BillingAddress
null
null
null
null
null
null
null
null
null
null
null
File: crates/common_utils/src/id_type/global_id/payment_methods.rs Public functions: 6 Public structs: 2 use error_stack::ResultExt; use crate::{ errors::CustomResult, id_type::global_id::{CellId, GlobalEntity, GlobalId}, }; /// A global id that can be used to identify a payment method #[derive( Debug,...
crates/common_utils/src/id_type/global_id/payment_methods.rs
common_utils
full_file
1,345
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Routing;
crates/router/src/routes/app.rs
router
struct_definition
4
rust
Routing
null
null
null
null
null
null
null
null
null
null
null
pub struct ChallengeFlowCount;
crates/api_models/src/analytics/auth_events.rs
api_models
struct_definition
6
rust
ChallengeFlowCount
null
null
null
null
null
null
null
null
null
null
null