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
File: crates/hyperswitch_domain_models/src/disputes.rs Public structs: 1 use crate::errors; pub struct DisputeListConstraints { pub dispute_id: Option<String>, pub payment_id: Option<common_utils::id_type::PaymentId>, pub limit: Option<u32>, pub offset: Option<u32>, pub profile_id: Option<Vec<com...
crates/hyperswitch_domain_models/src/disputes.rs
hyperswitch_domain_models
full_file
751
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_by_profile_id_merchant_id( conn: &PgPooledConn, profile_id: &common_utils::id_type::ProfileId, merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<bool> { generics::generic_delete::<<Self as HasTable>::Table, _>( conn, dsl_i...
crates/diesel_models/src/query/business_profile.rs
diesel_models
function_signature
111
rust
null
null
null
null
delete_by_profile_id_merchant_id
null
null
null
null
null
null
null
pub async fn generate_spt( self, state: &SessionState, next_flow: &NextFlow, ) -> UserResult<Secret<String>> { auth::SinglePurposeToken::new_token( next_flow.user.get_user_id().to_string(), self.into(), next_flow.origin.clone(), &state....
crates/router/src/types/domain/user/decision_manager.rs
router
function_signature
105
rust
null
null
null
null
generate_spt
null
null
null
null
null
null
null
pub fn get_api_event_metrics_info() -> Vec<NameDescription> { ApiEventMetrics::iter().map(Into::into).collect() }
crates/analytics/src/utils.rs
analytics
function_signature
31
rust
null
null
null
null
get_api_event_metrics_info
null
null
null
null
null
null
null
impl Default for NetworkTokenizationBuilder<'_, TokenizeWithPmId> { fn default() -> Self { Self::new() } }
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
impl_block
32
rust
null
NetworkTokenizationBuilder
Default for
impl Default for for NetworkTokenizationBuilder
null
null
null
null
null
null
null
null
/// Returns the request ID of the event. pub fn get_request_id(&self) -> &str { &self.request_id }
crates/hyperswitch_interfaces/src/events/routing_api_logs.rs
hyperswitch_interfaces
function_signature
30
rust
null
null
null
null
get_request_id
null
null
null
null
null
null
null
File: crates/router/src/types/api/cards.rs
crates/router/src/types/api/cards.rs
router
full_file
10
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_merchant_account( state: web::Data<AppState>, req: HttpRequest, mid: web::Path<common_utils::id_type::MerchantId>, ) -> HttpResponse { let flow = Flow::MerchantsAccountRetrieve; let merchant_id = mid.into_inner(); let payload = admin::MerchantId { merchant_id: merch...
crates/router/src/routes/admin.rs
router
function_signature
271
rust
null
null
null
null
retrieve_merchant_account
null
null
null
null
null
null
null
pub struct ThemeNew { pub theme_id: String, pub tenant_id: id_type::TenantId, pub org_id: Option<id_type::OrganizationId>, pub merchant_id: Option<id_type::MerchantId>, pub profile_id: Option<id_type::ProfileId>, pub created_at: PrimitiveDateTime, pub last_modified_at: PrimitiveDateTime, ...
crates/diesel_models/src/user/theme.rs
diesel_models
struct_definition
136
rust
ThemeNew
null
null
null
null
null
null
null
null
null
null
null
pub async fn success_based_routing_update_configs( state: SessionState, request: routing_types::SuccessBasedRoutingConfig, algorithm_id: common_utils::id_type::RoutingId, profile_id: common_utils::id_type::ProfileId, ) -> RouterResponse<routing_types::RoutingDictionaryRecord> { metrics::ROUTING_UPDA...
crates/router/src/core/routing.rs
router
function_signature
763
rust
null
null
null
null
success_based_routing_update_configs
null
null
null
null
null
null
null
impl DbConnectionParams for Database { fn get_username(&self) -> &str { &self.username } fn get_password(&self) -> Secret<String> { self.password.clone() } fn get_host(&self) -> &str { &self.host } fn get_port(&self) -> u16 { self.port } fn get_dbname(...
crates/storage_impl/src/config.rs
storage_impl
impl_block
101
rust
null
Database
DbConnectionParams for
impl DbConnectionParams for for Database
null
null
null
null
null
null
null
null
impl api::MandateSetup for Aci {}
crates/hyperswitch_connectors/src/connectors/aci.rs
hyperswitch_connectors
impl_block
11
rust
null
Aci
api::MandateSetup for
impl api::MandateSetup for for Aci
null
null
null
null
null
null
null
null
pub fn get_novalnet_dispute_status(status: WebhookEventType) -> WebhookDisputeStatus { match status { WebhookEventType::Chargeback => WebhookDisputeStatus::DisputeOpened, WebhookEventType::Credit => WebhookDisputeStatus::DisputeWon, _ => WebhookDisputeStatus::Unknown, } }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
function_signature
75
rust
null
null
null
null
get_novalnet_dispute_status
null
null
null
null
null
null
null
pub fn generate_cargo_instructions() {}
crates/router_env/src/vergen.rs
router_env
function_signature
8
rust
null
null
null
null
generate_cargo_instructions
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/role.rs Public functions: 8 use async_bb8_diesel::AsyncRunQueryDsl; use common_enums::EntityType; use common_utils::id_type; use diesel::{ associations::HasTable, debug_query, pg::Pg, result::Error as DieselError, BoolExpressionMethods, ExpressionMethods, QueryDsl, }; use ...
crates/diesel_models/src/query/role.rs
diesel_models
full_file
1,708
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CheckoutResponse { order_id: String, status: KlarnaCheckoutStatus, html_snippet: String, }
crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
CheckoutResponse
null
null
null
null
null
null
null
null
null
null
null
impl SqlxClient { pub async fn from_conf(conf: &Database, schema: &str) -> Self { let database_url = conf.get_database_url(schema); #[allow(clippy::expect_used)] let pool = PgPoolOptions::new() .max_connections(conf.pool_size) .acquire_timeout(std::time::Duration::fro...
crates/analytics/src/sqlx.rs
analytics
impl_block
105
rust
null
SqlxClient
null
impl SqlxClient
null
null
null
null
null
null
null
null
pub async fn transfer_encryption_key( state: &SessionState, req: MerchantKeyTransferRequest, ) -> errors::CustomResult<usize, errors::ApiErrorResponse> { let db = &*state.store; let key_stores = db .get_all_key_stores( &state.into(), &db.get_master_key().to_vec().into(), ...
crates/router/src/core/encryption.rs
router
function_signature
122
rust
null
null
null
null
transfer_encryption_key
null
null
null
null
null
null
null
impl KafkaSettings { pub fn validate(&self) -> Result<(), crate::core::errors::ApplicationError> { use common_utils::ext_traits::ConfigExt; use crate::core::errors::ApplicationError; common_utils::fp_utils::when(self.brokers.is_empty(), || { Err(ApplicationError::InvalidConfigu...
crates/router/src/services/kafka.rs
router
impl_block
715
rust
null
KafkaSettings
null
impl KafkaSettings
null
null
null
null
null
null
null
null
pub struct DashboardMetadataUpdateInternal { pub data_key: enums::DashboardMetadata, pub data_value: Secret<serde_json::Value>, pub last_modified_by: String, pub last_modified_at: PrimitiveDateTime, }
crates/diesel_models/src/user/dashboard_metadata.rs
diesel_models
struct_definition
47
rust
DashboardMetadataUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Iatapay { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&*IATAPAY_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*IATAPAY_SUPPORTED_PAYMENT_METHODS) } fn get_sup...
crates/hyperswitch_connectors/src/connectors/iatapay.rs
hyperswitch_connectors
impl_block
115
rust
null
Iatapay
ConnectorSpecifications for
impl ConnectorSpecifications for for Iatapay
null
null
null
null
null
null
null
null
pub struct Notification { pub url: Option<String>, }
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
12
rust
Notification
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.EventType { "type": "string", "enum": [ "payment_succeeded", "payment_failed", "payment_processing", "payment_cancelled", "payment_cancelled_post_capture", "payment_authorized", "payment_partially_authorized", "payment_captured", "payment_ex...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
202
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "EventType" ]
null
null
null
null
pub struct CardPaymentRequest { pub ssl_transaction_type: TransactionType, pub ssl_account_id: Secret<String>, pub ssl_user_id: Secret<String>, pub ssl_pin: Secret<String>, pub ssl_amount: StringMajorUnit, pub ssl_card_number: CardNumber, pub ssl_exp_date: Secret<String>, pub ssl_cvv2cvc...
crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs
hyperswitch_connectors
struct_definition
143
rust
CardPaymentRequest
null
null
null
null
null
null
null
null
null
null
null
/// A helper function to create SMTP server client pub fn create_client(&self) -> Result<SmtpTransport, SmtpError> { let host = self.smtp_config.host.clone(); let port = self.smtp_config.port; let timeout = Some(Duration::from_secs(self.smtp_config.timeout)); let credentials = self ...
crates/external_services/src/email/smtp.rs
external_services
function_signature
317
rust
null
null
null
null
create_client
null
null
null
null
null
null
null
pub async fn payouts_list( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Query<payout_types::PayoutListConstraints>, ) -> HttpResponse { let flow = Flow::PayoutsList; let payload = json_payload.into_inner(); Box::pin(api::server_wrap( flow, state, &req...
crates/router/src/routes/payouts.rs
router
function_signature
220
rust
null
null
null
null
payouts_list
null
null
null
null
null
null
null
pub fn payments_confirm() {}
crates/openapi/src/routes/payments.rs
openapi
function_signature
6
rust
null
null
null
null
payments_confirm
null
null
null
null
null
null
null
pub fn get_cookie_header() -> String { actix_http::header::COOKIE.to_string() }
crates/router/src/services/authentication/cookies.rs
router
function_signature
21
rust
null
null
null
null
get_cookie_header
null
null
null
null
null
null
null
impl api::PaymentVoid for Zsl {}
crates/hyperswitch_connectors/src/connectors/zsl.rs
hyperswitch_connectors
impl_block
9
rust
null
Zsl
api::PaymentVoid for
impl api::PaymentVoid for for Zsl
null
null
null
null
null
null
null
null
pub struct WorldpayvantivMetadataObject { pub report_group: String, pub merchant_config_currency: common_enums::Currency, }
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
WorldpayvantivMetadataObject
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentInstrument { payment_instrument_id: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
PaymentInstrument
null
null
null
null
null
null
null
null
null
null
null
/// Verifies that the client configuration is usable pub fn validate(&self) -> Result<(), &'static str> { match self { #[cfg(feature = "aws_kms")] Self::AwsKms { aws_kms } => aws_kms.validate(), #[cfg(feature = "hashicorp-vault")] Self::HashiCorpVault { hc_vau...
crates/external_services/src/managers/secrets_management.rs
external_services
function_signature
99
rust
null
null
null
null
validate
null
null
null
null
null
null
null
impl FileUpload for Worldpayvantiv { fn validate_file_upload( &self, purpose: FilePurpose, file_size: i32, file_type: mime::Mime, ) -> CustomResult<(), errors::ConnectorError> { match purpose { FilePurpose::DisputeEvidence => { let supported_fi...
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
222
rust
null
Worldpayvantiv
FileUpload for
impl FileUpload for for Worldpayvantiv
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MerchantConnectorUpdate { "type": "object", "description": "Create a new Merchant Connector for the merchant account. The connector could be a payment processor / facilitator / acquirer or specialized services like Fraud / Accounting etc.\"", "required": [ "connector_typ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
977
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantConnectorUpdate" ]
null
null
null
null
pub struct EventListRequestInternal { pub merchant_id: common_utils::id_type::MerchantId, pub constraints: EventListConstraints, }
crates/api_models/src/webhook_events.rs
api_models
struct_definition
30
rust
EventListRequestInternal
null
null
null
null
null
null
null
null
null
null
null
pub struct CardResponse { pub name_on_card: Option<Secret<String>>, pub last_4_account_number: String, pub masked_account_number: String, pub card_type: Option<String>, }
crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
hyperswitch_connectors
struct_definition
43
rust
CardResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router_env/src/logger/storage.rs Public functions: 2 Public structs: 2 //! Storing [layer](https://docs.rs/tracing-subscriber/0.3.15/tracing_subscriber/layer/trait.Layer.html) for Router. use std::{collections::HashMap, fmt, time::Instant}; use tracing::{ field::{Field, Visit}, span::{Attribut...
crates/router_env/src/logger/storage.rs
router_env
full_file
1,392
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/api/authentication.rs use hyperswitch_domain_models::{ router_flow_types::authentication::{ Authentication, PostAuthentication, PreAuthentication, PreAuthenticationVersionCall, }, router_request_types::authentication::{ ConnectorAuthenticationRequestD...
crates/hyperswitch_interfaces/src/api/authentication.rs
hyperswitch_interfaces
full_file
261
null
null
null
null
null
null
null
null
null
null
null
null
null
impl<T: DatabaseStore> DatabaseStore for RouterStore<T> where T::Config: Send, { type Config = ( T::Config, redis_interface::RedisSettings, StrongSecret<Vec<u8>>, tokio::sync::oneshot::Sender<()>, &'static str, ); async fn new( config: Self::Config, ...
crates/storage_impl/src/lib.rs
storage_impl
impl_block
339
rust
null
RouterStore
DatabaseStore for
impl DatabaseStore for for RouterStore
null
null
null
null
null
null
null
null
pub async fn list_customer_payment_method_api_client() {}
crates/openapi/src/routes/payment_method.rs
openapi
function_signature
11
rust
null
null
null
null
list_customer_payment_method_api_client
null
null
null
null
null
null
null
pub struct RapydRouterData<T> { pub amount: FloatMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
RapydRouterData
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_gsm_rule( state: SessionState, gsm_request: gsm_api_types::GsmDeleteRequest, ) -> RouterResponse<gsm_api_types::GsmDeleteResponse> { let db = state.store.as_ref(); let gsm_api_types::GsmDeleteRequest { connector, flow, sub_flow, code, message, ...
crates/router/src/core/gsm.rs
router
function_signature
288
rust
null
null
null
null
delete_gsm_rule
null
null
null
null
null
null
null
pub struct User;
crates/router/src/routes/app.rs
router
struct_definition
4
rust
User
null
null
null
null
null
null
null
null
null
null
null
pub struct ThunesCard { number: cards::CardNumber, expiry_month: Secret<String>, expiry_year: Secret<String>, cvc: Secret<String>, complete: bool, }
crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
ThunesCard
null
null
null
null
null
null
null
null
null
null
null
pub fn get_amount_capturable(&self) -> MinorUnit { self.amount_capturable }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
23
rust
null
null
null
null
get_amount_capturable
null
null
null
null
null
null
null
Documentation: api-reference/v2/profile/profile--retrieve-default-fallback-routing-algorithm.mdx # Type: Doc File --- openapi: get /v2/profiles/{id}/fallback-routing ---
api-reference/v2/profile/profile--retrieve-default-fallback-routing-algorithm.mdx
null
doc_file
42
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl super::KafkaMessage for KafkaRefund<'_> { #[cfg(feature = "v1")] fn key(&self) -> String { format!( "{}_{}_{}_{}", self.merchant_id.get_string_repr(), self.payment_id.get_string_repr(), self.attempt_id, self.refund_id ) } #...
crates/router/src/services/kafka/refund.rs
router
impl_block
165
rust
null
KafkaRefund
super::KafkaMessage for
impl super::KafkaMessage for for KafkaRefund
null
null
null
null
null
null
null
null
pub async fn check_role_in_blacklist<A: SessionStateInfo>( state: &A, role_id: &str, token_expiry: u64, ) -> RouterResult<bool> { let token = format!("{ROLE_BLACKLIST_PREFIX}{role_id}"); let token_issued_at = expiry_to_i64(token_expiry - JWT_TOKEN_TIME_IN_SECS)?; let redis_conn = get_redis_conne...
crates/router/src/services/authentication/blacklist.rs
router
function_signature
141
rust
null
null
null
null
check_role_in_blacklist
null
null
null
null
null
null
null
pub const fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, amount_converter_to_string_minor: &StringMinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/airwallex.rs
hyperswitch_connectors
function_signature
43
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl Deref for RequestExtendedAuthorizationBool { type Target = bool; fn deref(&self) -> &Self::Target { &self.0 } }
crates/common_types/src/primitive_wrappers.rs
common_types
impl_block
38
rust
null
RequestExtendedAuthorizationBool
Deref for
impl Deref for for RequestExtendedAuthorizationBool
null
null
null
null
null
null
null
null
pub struct NovalnetResponseCustomer { pub billing: Option<NovalnetResponseBilling>, pub customer_ip: Option<Secret<String>>, pub email: Option<Email>, pub first_name: Option<Secret<String>>, pub gender: Option<Secret<String>>, pub last_name: Option<Secret<String>>, pub mobile: Option<Secret<...
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
95
rust
NovalnetResponseCustomer
null
null
null
null
null
null
null
null
null
null
null
pub struct VantivDisputeErrorResponse { #[serde(rename = "@xmlns")] pub xmlns: String, pub errors: Vec<VantivDisputeErrors>, }
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
VantivDisputeErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct BillingConnectorInvoiceSyncFlowRouterData( router_types::BillingConnectorInvoiceSyncRouterData, );
crates/router/src/core/webhooks/recovery_incoming.rs
router
struct_definition
22
rust
BillingConnectorInvoiceSyncFlowRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct AchBankTransferAdditionalData { /// Partially masked account number for ach bank debit payment #[schema(value_type = String, example = "0001****3456")] pub bank_account_number: MaskedBankAccount, /// Partially masked routing number for ach bank debit payment #[schema(value_type = String,...
crates/common_utils/src/payout_method_utils.rs
common_utils
struct_definition
198
rust
AchBankTransferAdditionalData
null
null
null
null
null
null
null
null
null
null
null
pub struct AttemptAmountDetailsSetter { /// The total amount for this payment attempt. This includes all the surcharge and tax amounts. pub net_amount: MinorUnit, /// The amount that has to be captured, pub amount_to_capture: Option<MinorUnit>, /// Surcharge amount for the payment attempt. /// T...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
struct_definition
214
rust
AttemptAmountDetailsSetter
null
null
null
null
null
null
null
null
null
null
null
PaymentMethodDetails { mandates: enums::FeatureStatus::NotSupported, refunds: enums::FeatureStatus::Supported, supported_capture_methods: supported_capture_methods.clone(), specific_features: None, }, ); aci_supported_payment_methods.add( e...
crates/hyperswitch_connectors/src/connectors/aci.rs#chunk1
hyperswitch_connectors
chunk
783
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PollConfig { pub delay_in_secs: i8, pub frequency: i8, }
crates/router/src/types.rs
router
struct_definition
22
rust
PollConfig
null
null
null
null
null
null
null
null
null
null
null
pub struct KlarnaRefundRequest { refunded_amount: MinorUnit, reference: Option<String>, }
crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
KlarnaRefundRequest
null
null
null
null
null
null
null
null
null
null
null
**Full Changelog:** [`2024.06.28.0...2024.07.01.0`](https://github.com/juspay/hyperswitch/compare/2024.06.28.0...2024.07.01.0) - - - ## 2024.06.28.0 ### Features - **router:** Skip apple pay session call if the browser is not Safari ([#5136](https://github.com/juspay/hyperswitch/pull/5136)) ([`d4dba55`](https://gi...
CHANGELOG.md#chunk29
null
doc_chunk
8,190
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/routing_events/core.rs Public functions: 1 use api_models::analytics::routing_events::RoutingEventsRequest; use common_utils::errors::ReportSwitchExt; use error_stack::ResultExt; use super::events::{get_routing_events, RoutingEventsResult}; use crate::{errors::AnalyticsResult, types::Filte...
crates/analytics/src/routing_events/core.rs
analytics
full_file
241
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn try_get_enum_variant(input: proc_macro::TokenStream) -> proc_macro::TokenStream { let input = syn::parse_macro_input!(input as syn::DeriveInput); macros::try_get_enum::try_get_enum_variant(input) .unwrap_or_else(|error| error.into_compile_error()) .into() }
crates/router_derive/src/lib.rs
router_derive
function_signature
70
rust
null
null
null
null
try_get_enum_variant
null
null
null
null
null
null
null
File: crates/api_models/src/lib.rs pub mod admin; pub mod analytics; pub mod api_keys; pub mod apple_pay_certificates_migration; pub mod authentication; pub mod blocklist; pub mod cards_info; pub mod chat; pub mod conditional_configs; pub mod connector_enums; pub mod connector_onboarding; pub mod consts; pub mod curre...
crates/api_models/src/lib.rs
api_models
full_file
339
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct OpayoAuthType { pub(super) api_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/opayo/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
OpayoAuthType
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_blocked_count_from_cache<A>( state: &A, cache_key: &str, ) -> RouterResult<Option<i32>> where A: SessionStateInfo + Sync, { let redis_conn = get_redis_connection(state)?; let value: Option<i32> = redis_conn .get_key(&cache_key.into()) .await .change_context(...
crates/router/src/services/card_testing_guard.rs
router
function_signature
94
rust
null
null
null
null
get_blocked_count_from_cache
null
null
null
null
null
null
null
pub async fn profile_delete( state: web::Data<AppState>, req: HttpRequest, path: web::Path<( common_utils::id_type::MerchantId, common_utils::id_type::ProfileId, )
crates/router/src/routes/profiles.rs
router
function_signature
50
rust
null
null
null
null
profile_delete
null
null
null
null
null
null
null
impl api::PaymentSync for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
11
rust
null
Worldpayvantiv
api::PaymentSync for
impl api::PaymentSync for for Worldpayvantiv
null
null
null
null
null
null
null
null
impl Role { fn get_entity_list( current_entity: EntityType, is_lineage_data_required: bool, ) -> Vec<EntityType> { is_lineage_data_required .then(|| { EntityType::iter() .filter(|variant| *variant <= current_entity) .col...
crates/diesel_models/src/query/role.rs
diesel_models
impl_block
1,536
rust
null
Role
null
impl Role
null
null
null
null
null
null
null
null
Web Documentation: Run Hyperswitch Locally Using Docker | Hyperswitch # Type: Web Doc This setup automatically runs all three components of Hyperswitch (Backend, Control Center, and SDK) on your machine at once using Docker. Setup using Docker You can run Hyperswitch on your system using Docker compose . We recommend ...
https://docs.hyperswitch.io/hyperswitch-open-source/readme-1/unified-local-setup-using-docker
null
web_doc_file
299
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/hyperswitch-open-source/readme-1/unified-local-setup-using-docker
Run Hyperswitch Locally Using Docker | Hyperswitch
null
pub async fn profiles_list_at_profile_level( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::MerchantId>, ) -> HttpResponse { let flow = Flow::ProfileList; let merchant_id = path.into_inner(); Box::pin(api::server_wrap( flow, state, &...
crates/router/src/routes/profiles.rs
router
function_signature
204
rust
null
null
null
null
profiles_list_at_profile_level
null
null
null
null
null
null
null
File: crates/kgraph_utils/src/lib.rs pub mod error; pub mod mca; pub mod transformers; pub mod types;
crates/kgraph_utils/src/lib.rs
kgraph_utils
full_file
27
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct NexixpayPreProcessingResponse { operation: Operation, three_d_s_auth_result: ThreeDSAuthResult, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
NexixpayPreProcessingResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/payments/metrics/connector_success_rate.rs use std::collections::HashSet; use api_models::analytics::{ payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use error_stack::ResultExt; use...
crates/analytics/src/payments/metrics/connector_success_rate.rs
analytics
full_file
986
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/authorization.rs Public functions: 3 use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods}; use super::generics; use crate::{ authorization::{ Authorization, AuthorizationNew, AuthorizationUpdate, AuthorizationUpdateInternal, }, errors...
crates/diesel_models/src/query/authorization.rs
diesel_models
full_file
529
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Sift {}
crates/hyperswitch_connectors/src/connectors/sift.rs
hyperswitch_connectors
impl_block
9
rust
null
Sift
api::PaymentCapture for
impl api::PaymentCapture for for Sift
null
null
null
null
null
null
null
null
impl ClientSecretFetch for PaymentMethodCreate { fn get_client_secret(&self) -> Option<&String> { self.client_secret.as_ref() } }
crates/router/src/services/authentication.rs
router
impl_block
33
rust
null
PaymentMethodCreate
ClientSecretFetch for
impl ClientSecretFetch for for PaymentMethodCreate
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Shift4 {}
crates/hyperswitch_connectors/src/connectors/shift4.rs
hyperswitch_connectors
impl_block
9
rust
null
Shift4
api::PaymentCapture for
impl api::PaymentCapture for for Shift4
null
null
null
null
null
null
null
null
pub async fn link_token_create( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<api_types::pm_auth::LinkTokenCreateRequest>, ) -> impl Responder { let payload = json_payload.into_inner(); let flow = Flow::PmAuthLinkTokenCreate; let api_auth = auth::ApiKeyAuth::default(); ...
crates/router/src/routes/pm_auth.rs
router
function_signature
329
rust
null
null
null
null
link_token_create
null
null
null
null
null
null
null
pub async fn list_blocklist_entries_for_merchant( state: &SessionState, merchant_id: &common_utils::id_type::MerchantId, query: api_blocklist::ListBlocklistQuery, ) -> RouterResult<Vec<api_blocklist::BlocklistResponse>> { state .store .list_blocklist_entries_by_merchant_id_data_kind( ...
crates/router/src/core/blocklist/utils.rs
router
function_signature
155
rust
null
null
null
null
list_blocklist_entries_for_merchant
null
null
null
null
null
null
null
pub fn apply_changeset(self, update_session: PaymentMethodsSessionUpdateInternal) -> Self { let Self { id, customer_id, billing, psp_tokenization, network_tokenization, tokenization_data, expires_at, return_url, ...
crates/diesel_models/src/payment_methods_session.rs
diesel_models
function_signature
172
rust
null
null
null
null
apply_changeset
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs Public structs: 24 use std::collections::HashMap; use common_enums::enums; use common_utils::{pii, request::Method, types::StringMajorUnit}; use error_stack::ResultExt; use hyperswitch_domain_models::{ router_data::{ConnectorAuthType, Ro...
crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
hyperswitch_connectors
full_file
3,154
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Coingate {}
crates/hyperswitch_connectors/src/connectors/coingate.rs
hyperswitch_connectors
impl_block
11
rust
null
Coingate
api::RefundExecute for
impl api::RefundExecute for for Coingate
null
null
null
null
null
null
null
null
impl Deref for Context { type Target = HashMap<String, Option<ValueType>>; fn deref(&self) -> &Self::Target { &self.0 } }
crates/euclid/src/backend/interpreter/types.rs
euclid
impl_block
40
rust
null
Context
Deref for
impl Deref for for Context
null
null
null
null
null
null
null
null
impl CtxValueKind<'_> { pub fn get_assertion(&self) -> Option<&dir::DirValue> { if let Self::Assertion(val) = self { Some(val) } else { None } } pub fn get_negation(&self) -> Option<&[dir::DirValue]> { if let Self::Negation(vals) = self { ...
crates/euclid/src/dssa/types.rs
euclid
impl_block
157
rust
null
CtxValueKind
null
impl CtxValueKind
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/payments/{payment_id}" { "post": { "tags": [ "Payments" ], "summary": "Payments - Update", "description": "To update the properties of a *PaymentIntent* object. This may include attaching a payment method, or attaching customer object or metadata fields after the Paym...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
1,023
.json
null
null
null
null
null
openapi_spec
paths
[ "/payments/{payment_id}" ]
null
null
null
null
pub async fn find_by_merchant_reference_id_merchant_id( conn: &PgPooledConn, merchant_reference_id: &str, merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::merc...
crates/diesel_models/src/query/payment_intent.rs
diesel_models
function_signature
114
rust
null
null
null
null
find_by_merchant_reference_id_merchant_id
null
null
null
null
null
null
null
pub struct DwollaPaymentLinks { source: DwollaRequestLink, destination: DwollaRequestLink, }
crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
DwollaPaymentLinks
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorMandateRevoke for Noon {}
crates/hyperswitch_connectors/src/connectors/noon.rs
hyperswitch_connectors
impl_block
12
rust
null
Noon
api::ConnectorMandateRevoke for
impl api::ConnectorMandateRevoke for for Noon
null
null
null
null
null
null
null
null
impl api::PaymentSession for Fiserv {}
crates/hyperswitch_connectors/src/connectors/fiserv.rs
hyperswitch_connectors
impl_block
10
rust
null
Fiserv
api::PaymentSession for
impl api::PaymentSession for for Fiserv
null
null
null
null
null
null
null
null
pub async fn get_disputes_filters_profile( state: web::Data<AppState>, req: HttpRequest, ) -> HttpResponse { let flow = Flow::DisputesFilters; Box::pin(api::server_wrap( flow, state, &req, (), |state, auth: auth::AuthenticationData, _, _| { let merchan...
crates/router/src/routes/disputes.rs
router
function_signature
217
rust
null
null
null
null
get_disputes_filters_profile
null
null
null
null
null
null
null
pub struct PaymentRequestBankTransfer { pub payment_method: TrustpayBankTransferPaymentMethod, pub merchant_identification: MerchantIdentification, pub payment_information: BankPaymentInformation, pub callback_urls: CallbackURLs, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
47
rust
PaymentRequestBankTransfer
null
null
null
null
null
null
null
null
null
null
null
pub struct Handler { inner: Arc<HandlerInner>, }
crates/drainer/src/handler.rs
drainer
struct_definition
13
rust
Handler
null
null
null
null
null
null
null
null
null
null
null
impl<O> InterpreterBackend<O> where O: Clone, { fn eval_number_comparison_array( num: MinorUnit, array: &[ast::NumberComparison], ) -> Result<bool, types::InterpreterError> { for comparison in array { let other = comparison.number; let res = match comparison.c...
crates/euclid/src/backend/interpreter.rs
euclid
impl_block
1,102
rust
null
InterpreterBackend
null
impl InterpreterBackend
null
null
null
null
null
null
null
null
pub struct PaymeAuthType { #[allow(dead_code)] pub(super) payme_public_key: Secret<String>, pub(super) seller_payme_id: Secret<String>, pub(super) payme_merchant_id: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
53
rust
PaymeAuthType
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Trustpayments {}
crates/hyperswitch_connectors/src/connectors/trustpayments.rs
hyperswitch_connectors
impl_block
11
rust
null
Trustpayments
api::MandateSetup for
impl api::MandateSetup for for Trustpayments
null
null
null
null
null
null
null
null
File: crates/openapi/src/routes/gsm.rs Public functions: 4 /// Gsm - Create /// /// Creates a GSM (Global Status Mapping) Rule. A GSM rule is used to map a connector's error message/error code combination during a particular payments flow/sub-flow to Hyperswitch's unified status/error code/error message combination. ...
crates/openapi/src/routes/gsm.rs
openapi
full_file
575
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ThunesPaymentsResponse { status: ThunesPaymentStatus, id: String, }
crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
ThunesPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Payme {}
crates/hyperswitch_connectors/src/connectors/payme.rs
hyperswitch_connectors
impl_block
9
rust
null
Payme
api::PaymentSession for
impl api::PaymentSession for for Payme
null
null
null
null
null
null
null
null
impl Capturable for PaymentsIncrementalAuthorizationData { fn get_amount_capturable<F>( &self, _payment_data: &PaymentData<F>, amount_capturable: Option<i64>, _attempt_status: common_enums::AttemptStatus, ) -> Option<i64> where F: Clone, { amount_capturabl...
crates/router/src/types.rs
router
impl_block
88
rust
null
PaymentsIncrementalAuthorizationData
Capturable for
impl Capturable for for PaymentsIncrementalAuthorizationData
null
null
null
null
null
null
null
null
pub fn get_inner(&self) -> &pii::Email { &self.0 }
crates/router/src/types/domain/user.rs
router
function_signature
21
rust
null
null
null
null
get_inner
null
null
null
null
null
null
null
pub struct MerchantData { /// ID of the merchant. This value will be used to find merchant information from the configuration. /// From the merchant configuration the 3DS Server can fill the other values (mcc, merchantCountryCode and merchantName), if provided. /// /// This field can be left out if merc...
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs
hyperswitch_connectors
struct_definition
1,191
rust
MerchantData
null
null
null
null
null
null
null
null
null
null
null