text
string
file_path
string
module
string
type
string
tokens
int64
language
string
struct_name
string
type_name
string
trait_name
string
impl_type
string
function_name
string
source
string
section
string
keys
list
macro_type
string
url
string
title
string
chunk_index
int64
impl BlocklistFingerprintNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<BlocklistFingerprint> { generics::generic_insert(conn, self).await } }
crates/diesel_models/src/query/blocklist_fingerprint.rs
diesel_models
impl_block
45
rust
null
BlocklistFingerprintNew
null
impl BlocklistFingerprintNew
null
null
null
null
null
null
null
null
pub struct Purchase { /// Indicates the maximum number of authorisations permitted for instalment payments. /// /// The field is limited to a maximum of 3 characters and value shall be greater than 1. /// /// The field is required if the Merchant and Cardholder have agreed to installment payments, i...
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs
hyperswitch_connectors
struct_definition
1,931
rust
Purchase
null
null
null
null
null
null
null
null
null
null
null
impl Responder { use hyperswitch_domain_models::payments::PaymentCaptureData; let flow = Flow::PaymentsCapture; let global_payment_id = path.into_inner(); tracing::Span::current().record("payment_id", global_payment_id.get_string_repr()); let internal_payload = internal_payload_types::PaymentsGene...
crates/router/src/routes/payments.rs
router
impl_block
410
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct PlaidBankAccountCredentialsACH { pub account_id: String, pub account: String, pub routing: String, pub wire_routing: Option<String>, }
crates/pm_auth/src/connector/plaid/transformers.rs
pm_auth
struct_definition
37
rust
PlaidBankAccountCredentialsACH
null
null
null
null
null
null
null
null
null
null
null
impl FacilitapayAuthRequest { fn from_auth_type(auth: &FacilitapayAuthType) -> Self { Self { user: FacilitapayCredentials { username: auth.username.clone(), password: auth.password.clone(), }, } } }
crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs
hyperswitch_connectors
impl_block
59
rust
null
FacilitapayAuthRequest
null
impl FacilitapayAuthRequest
null
null
null
null
null
null
null
null
impl Digitalvirgo { pub fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs
hyperswitch_connectors
impl_block
35
rust
null
Digitalvirgo
null
impl Digitalvirgo
null
null
null
null
null
null
null
null
pub struct RecordAttempt;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
5
rust
RecordAttempt
null
null
null
null
null
null
null
null
null
null
null
File: crates/api_models/src/cards_info.rs Public structs: 7 use std::fmt::Debug; use common_utils::events::ApiEventMetric; use utoipa::ToSchema; use crate::enums; #[derive(serde::Deserialize, ToSchema)] pub struct CardsInfoRequestParams { #[schema(example = "pay_OSERgeV9qAy7tlK7aKpc_secret_TuDUoh11Msxh12sXn3Yp...
crates/api_models/src/cards_info.rs
api_models
full_file
971
null
null
null
null
null
null
null
null
null
null
null
null
null
impl DecisionEngineApiHandler for EuclidApiClient { async fn send_decision_engine_request<Req, Res>( state: &SessionState, http_method: services::Method, path: &str, request_body: Option<Req>, // Option to handle GET/DELETE requests without body timeout: Option<u64>, ...
crates/router/src/core/payments/routing/utils.rs
router
impl_block
292
rust
null
EuclidApiClient
DecisionEngineApiHandler for
impl DecisionEngineApiHandler for for EuclidApiClient
null
null
null
null
null
null
null
null
pub struct ApplePayWalletDetails { pub data: Secret<String>, pub header: ApplePayHeader, pub signature: Secret<String>, pub version: Secret<String>, #[serde(skip_serializing_if = "Option::is_none")] pub application_data: Option<Secret<String>>, pub apple_pay_merchant_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
72
rust
ApplePayWalletDetails
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/storage/revenue_recovery_redis_operation.rs Public functions: 15 Public structs: 5 use std::collections::HashMap; use common_enums::enums::CardNetwork; use common_utils::{date_time, errors::CustomResult, id_type}; use error_stack::ResultExt; use masking::Secret; use redis_interface::{D...
crates/router/src/types/storage/revenue_recovery_redis_operation.rs
router
full_file
4,961
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BrowserInformation { pub color_depth: Option<u8>, pub java_enabled: Option<bool>, pub java_script_enabled: Option<bool>, pub language: Option<String>, pub screen_height: Option<u32>, pub screen_width: Option<u32>, pub time_zone: Option<i32>, pub ip_address: Option<std::net::Ip...
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
130
rust
BrowserInformation
null
null
null
null
null
null
null
null
null
null
null
pub struct NoonPaymentsActionRequest { api_operation: NoonApiOperations, order: NoonActionOrder, transaction: NoonActionTransaction, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
NoonPaymentsActionRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/card_testing_guard.rs pub mod utils; use crate::core::errors;
crates/router/src/core/card_testing_guard.rs
router
full_file
22
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/euclid/src/dssa/graph.rs Public functions: 3 Public structs: 1 use std::{fmt::Debug, sync::Weak}; use hyperswitch_constraint_graph as cgraph; use rustc_hash::{FxHashMap, FxHashSet}; use crate::{ dssa::types, frontend::dir, types::{DataType, Metadata}, }; pub mod euclid_graph_prelude { ...
crates/euclid/src/dssa/graph.rs
euclid
full_file
8,126
null
null
null
null
null
null
null
null
null
null
null
null
null
impl super::behaviour::Conversion for MerchantAccount { type DstType = diesel_models::merchant_account::MerchantAccount; type NewDstType = diesel_models::merchant_account::MerchantAccountNew; async fn convert(self) -> CustomResult<Self::DstType, ValidationError> { let id = self.get_id().to_owned(); ...
crates/hyperswitch_domain_models/src/merchant_account.rs
hyperswitch_domain_models
impl_block
839
rust
null
MerchantAccount
super::behaviour::Conversion for
impl super::behaviour::Conversion for for MerchantAccount
null
null
null
null
null
null
null
null
pub async fn delete_conditional_config( state: SessionState, merchant_context: domain::MerchantContext, ) -> RouterResponse<()> { use common_utils::ext_traits::ValueExt; use storage_impl::redis::cache; use super::routing::helpers::update_merchant_active_algorithm_ref; let db = state.store.as_r...
crates/router/src/core/conditional_config.rs
router
function_signature
320
rust
null
null
null
null
delete_conditional_config
null
null
null
null
null
null
null
pub async fn get_metrics( pool: &AnalyticsProvider, publishable_key: &String, req: GetSdkEventMetricRequest, ) -> AnalyticsResult<MetricsResponse<MetricsBucketResponse>> { let mut metrics_accumulator: HashMap< SdkEventMetricsBucketIdentifier, SdkEventMetricsAccumulator, > = HashMap::...
crates/analytics/src/sdk_events/core.rs
analytics
function_signature
635
rust
null
null
null
null
get_metrics
null
null
null
null
null
null
null
/// Panics if `json_payload` array does not contain one `GetPaymentIntentMetricRequest` element. pub async fn get_merchant_payment_intent_metrics( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<[GetPaymentIntentMetricRequest; 1]>, ) -> impl Responder { ...
crates/router/src/analytics.rs
router
function_signature
360
rust
null
null
null
null
get_merchant_payment_intent_metrics
null
null
null
null
null
null
null
pub struct IdealInfo { pub issuer_id: MultisafepayBankNames, }
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
IdealInfo
null
null
null
null
null
null
null
null
null
null
null
impl<'a> MerchantReferenceIdForCustomer<'a> { async fn verify_if_merchant_reference_not_present_by_optional_merchant_reference_id( &self, db: &dyn StorageInterface, ) -> Result<Option<()>, error_stack::Report<errors::CustomersErrorResponse>> { self.merchant_reference_id .asyn...
crates/router/src/core/customers.rs
router
impl_block
277
rust
null
MerchantReferenceIdForCustomer
null
impl MerchantReferenceIdForCustomer
null
null
null
null
null
null
null
null
impl api::PaymentSession for Coingate {}
crates/hyperswitch_connectors/src/connectors/coingate.rs
hyperswitch_connectors
impl_block
10
rust
null
Coingate
api::PaymentSession for
impl api::PaymentSession for for Coingate
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SurchargeDetailsResponse { "type": "object", "required": [ "surcharge", "display_surcharge_amount", "display_tax_on_surcharge_amount", "display_total_surcharge_amount" ], "properties": { "surcharge": { "$ref": "#/components/schemas/SurchargeRespon...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
250
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SurchargeDetailsResponse" ]
null
null
null
null
pub struct IntegrityCheckError { /// Field names for which integrity check failed! pub field_names: String, /// Connector transaction reference id pub connector_transaction_id: Option<String>, }
crates/common_utils/src/errors.rs
common_utils
struct_definition
40
rust
IntegrityCheckError
null
null
null
null
null
null
null
null
null
null
null
pub struct PayoutAttemptResponse { /// Unique identifier for the attempt pub attempt_id: String, /// The status of the attempt #[schema(value_type = PayoutStatus, example = "failed")] pub status: api_enums::PayoutStatus, /// The payout attempt amount. Amount for the payout in lowest denomination...
crates/api_models/src/payouts.rs
api_models
struct_definition
491
rust
PayoutAttemptResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_customer( state: SessionState, merchant_context: domain::MerchantContext, update_customer: customers::CustomerUpdateRequestInternal, ) -> errors::CustomerResponse<customers::CustomerResponse> { let db = state.store.as_ref(); let key_manager_state = &(&state).into(); //Add thi...
crates/router/src/core/customers.rs
router
function_signature
292
rust
null
null
null
null
update_customer
null
null
null
null
null
null
null
impl<T> EmailService for T where T: EmailClient, <Self as EmailClient>::RichText: Send, { async fn compose_and_send_email( &self, base_url: &str, email_data: Box<dyn EmailData + Send>, proxy_url: Option<&String>, ) -> EmailResult<()> { let email_data = email_data....
crates/external_services/src/email.rs
external_services
impl_block
153
rust
null
T
EmailService for
impl EmailService for for T
null
null
null
null
null
null
null
null
pub struct ChargebeeCustomer { pub payment_method: ChargebeePaymentMethod, }
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
ChargebeeCustomer
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_user_theme_using_lineage( state: SessionState, user_from_token: UserFromToken, entity_type: EntityType, ) -> UserResponse<theme_api::GetThemeResponse> { let lineage = theme_utils::get_theme_lineage_from_user_token(&user_from_token, &state, &entity_type) .await?; ...
crates/router/src/core/user/theme.rs
router
function_signature
266
rust
null
null
null
null
get_user_theme_using_lineage
null
null
null
null
null
null
null
File: crates/router/src/bin/router.rs use error_stack::ResultExt; use router::{ configs::settings::{CmdLineConf, Settings}, core::errors::{ApplicationError, ApplicationResult}, logger, routes::metrics, }; #[tokio::main] async fn main() -> ApplicationResult<()> { // get commandline config before in...
crates/router/src/bin/router.rs
router
full_file
376
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn apply_filters_on_payments( state: SessionState, merchant_context: domain::MerchantContext, profile_id_list: Option<Vec<id_type::ProfileId>>, constraints: api::PaymentListFilterConstraints, ) -> RouterResponse<api::PaymentListResponseV2> { common_utils::metrics::utils::record_operation_t...
crates/router/src/core/payments.rs
router
function_signature
550
rust
null
null
null
null
apply_filters_on_payments
null
null
null
null
null
null
null
pub fn get_tenant_ids(&self) -> Vec<id_type::TenantId> { self.tenants .0 .values() .map(|tenant| tenant.tenant_id.clone()) .collect() }
crates/drainer/src/settings.rs
drainer
function_signature
51
rust
null
null
null
null
get_tenant_ids
null
null
null
null
null
null
null
pub struct SuccessBasedRoutingPayloadWrapper { pub updated_config: SuccessBasedRoutingConfig, pub algorithm_id: common_utils::id_type::RoutingId, pub profile_id: common_utils::id_type::ProfileId, }
crates/api_models/src/routing.rs
api_models
struct_definition
47
rust
SuccessBasedRoutingPayloadWrapper
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentLinkShowSdkTerms { "type": "string", "enum": [ "always", "auto", "never" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
42
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentLinkShowSdkTerms" ]
null
null
null
null
pub struct RefundResponse { id: u64, status: u16, }
crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentsCompleteAuthorize for Braintree {}
crates/hyperswitch_connectors/src/connectors/braintree.rs
hyperswitch_connectors
impl_block
10
rust
null
Braintree
api::PaymentsCompleteAuthorize for
impl api::PaymentsCompleteAuthorize for for Braintree
null
null
null
null
null
null
null
null
pub struct Card { pub card_number: CardNumber, pub name_on_card: Option<masking::Secret<String>>, pub card_exp_month: masking::Secret<String>, pub card_exp_year: masking::Secret<String>, pub card_brand: Option<String>, pub card_isin: Option<String>, pub nick_name: Option<String>, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
74
rust
Card
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_revenue_recovery_algorithm_under_profile( self, db: &dyn StorageInterface, key_manager_state: &KeyManagerState, merchant_key_store: &domain::MerchantKeyStore, revenue_recovery_retry_algorithm_type: common_enums::RevenueRecoveryAlgorithmType, ) -> RouterRes...
crates/router/src/core/admin.rs
router
function_signature
208
rust
null
null
null
null
update_revenue_recovery_algorithm_under_profile
null
null
null
null
null
null
null
/// set response status code pub fn set_routable_connectors(&mut self, connectors: Vec<RoutableConnectorChoice>) { let connectors = connectors .into_iter() .map(|c| { format!( "{:?}:{:?}", c.connector, c.merc...
crates/hyperswitch_interfaces/src/events/routing_api_logs.rs
hyperswitch_interfaces
function_signature
117
rust
null
null
null
null
set_routable_connectors
null
null
null
null
null
null
null
pub struct FileInfo { pub file_data: Option<Vec<u8>>, pub provider_file_id: Option<String>, pub file_type: Option<String>, }
crates/hyperswitch_domain_models/src/router_response_types/disputes.rs
hyperswitch_domain_models
struct_definition
32
rust
FileInfo
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/access_token.rs Public functions: 4 use std::fmt::Debug; use common_utils::ext_traits::AsyncExt; use error_stack::ResultExt; use hyperswitch_interfaces::api::ConnectorSpecifications; use crate::{ consts, core::{ errors::{self, RouterResult}, payments, ...
crates/router/src/core/payments/access_token.rs
router
full_file
2,484
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_total_surcharge_amount(&self) -> Option<MinorUnit> { self.amount_details.surcharge_amount }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
28
rust
null
null
null
null
get_total_surcharge_amount
null
null
null
null
null
null
null
pub struct WebhookEvents;
crates/router/src/routes/app.rs
router
struct_definition
6
rust
WebhookEvents
null
null
null
null
null
null
null
null
null
null
null
pub async fn accept_invitations_v2( state: SessionState, user_from_token: auth::UserFromToken, req: user_role_api::AcceptInvitationsV2Request, ) -> UserResponse<()> { let lineages = futures::future::try_join_all(req.into_iter().map(|entity| { utils::user_role::get_lineage_for_user_id_and_entity_...
crates/router/src/core/user_role.rs
router
function_signature
424
rust
null
null
null
null
accept_invitations_v2
null
null
null
null
null
null
null
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, diesel::AsExpression)] #[diesel(sql_type = diesel::sql_types::Jsonb)] pub struct CardTestingGuardConfig { pub is_card_ip_blocking_enabled: bool, pub card_ip_blocking_threshold: i32, pub is_guest_user_card_blocking_enabled: bool, pub guest_use...
crates/diesel_models/src/business_profile.rs#chunk1
diesel_models
chunk
1,249
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn merchant_account_toggle_kv( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::MerchantId>, json_payload: web::Json<admin::ToggleKVRequest>, ) -> HttpResponse { let flow = Flow::ConfigKeyUpdate; let mut payload = json_payload.into_inner(); paylo...
crates/router/src/routes/admin.rs
router
function_signature
156
rust
null
null
null
null
merchant_account_toggle_kv
null
null
null
null
null
null
null
pub struct ChargebeeTransactionData { id_at_gateway: Option<String>, status: ChargebeeTranasactionStatus, error_code: Option<String>, error_text: Option<String>, gateway_account_id: String, currency_code: enums::Currency, amount: MinorUnit, #[serde(default, with = "common_utils::custom_s...
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
struct_definition
105
rust
ChargebeeTransactionData
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::ToggleDynamicRouting; let wrapper = routing_types::ToggleDynamicRoutingWrapper { feature_to_enable: query.into_inner().enable, profile_id: path.into_inner().profile_id, }; Box::pin(oss_api::server_wrap( flow, state, &req, ...
crates/router/src/routes/routing.rs
router
impl_block
265
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct OrderErrorDetails { pub code: u16, pub message: String, pub field: Option<String>, }
crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
OrderErrorDetails
null
null
null
null
null
null
null
null
null
null
null
req, payload, &TransactionType::Payment, ) })), ) .service(web::resource("/rule/migrate").route(web::post().to( |state, req, query: web::Query<RuleMigrationQuery>| { ...
crates/router/src/routes/app.rs#chunk1
router
chunk
8,192
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/frm/types.rs use api_models::analytics::frm::{FrmDimensions, FrmFilters}; use error_stack::ResultExt; use crate::{ query::{QueryBuilder, QueryFilter, QueryResult, ToSql}, types::{AnalyticsCollection, AnalyticsDataSource}, }; impl<T> QueryFilter<T> for FrmFilters where T: Analyt...
crates/analytics/src/frm/types.rs
analytics
full_file
273
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct RoutingAlgorithmRef { pub algorithm_id: Option<common_utils::id_type::RoutingId>, pub timestamp: i64, pub config_algo_id: Option<String>, pub surcharge_config_algo_id: Option<String>, }
crates/api_models/src/routing.rs
api_models
struct_definition
51
rust
RoutingAlgorithmRef
null
null
null
null
null
null
null
null
null
null
null
pub struct ConnectorAuthMetadata { /// Name of the connector (e.g., "stripe", "paypal"). pub connector_name: String, /// Type of authentication used (e.g., "HeaderKey", "BodyKey", "SignatureKey"). pub auth_type: String, /// Optional API key used for authentication. pub api_key: Option<Secret<S...
crates/external_services/src/grpc_client/unified_connector_service.rs
external_services
struct_definition
178
rust
ConnectorAuthMetadata
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentIntentUpdateMems { pub orig: PaymentIntent, pub update_data: PaymentIntentUpdate, }
crates/diesel_models/src/kv.rs
diesel_models
struct_definition
25
rust
PaymentIntentUpdateMems
null
null
null
null
null
null
null
null
null
null
null
pub struct Iatapay { amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/iatapay.rs
hyperswitch_connectors
struct_definition
29
rust
Iatapay
null
null
null
null
null
null
null
null
null
null
null
pub struct SiftErrorResponse { pub status_code: u16, pub code: String, pub message: String, pub reason: Option<String>, pub network_advice_code: Option<String>, pub network_decline_code: Option<String>, pub network_error_message: Option<String>, }
crates/hyperswitch_connectors/src/connectors/sift/transformers.rs
hyperswitch_connectors
struct_definition
64
rust
SiftErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl Paypal { pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, amount_converter_webhooks: &StringMinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
impl_block
46
rust
null
Paypal
null
impl Paypal
null
null
null
null
null
null
null
null
pub async fn get_token_with_schedule_time_based_on_retry_algorithm_type( state: &SessionState, connector_customer_id: &str, payment_intent: &PaymentIntent, retry_algorithm_type: RevenueRecoveryAlgorithmType, retry_count: i32, ) -> CustomResult<Option<time::PrimitiveDateTime>, errors::ProcessTrackerE...
crates/router/src/workflows/revenue_recovery.rs
router
function_signature
277
rust
null
null
null
null
get_token_with_schedule_time_based_on_retry_algorithm_type
null
null
null
null
null
null
null
pub fn get_connector_data( connectors: &mut IntoIter<api::ConnectorRoutingData>, ) -> RouterResult<api::ConnectorRoutingData> { connectors .next() .ok_or(errors::ApiErrorResponse::InternalServerError) .attach_printable("Connector not found in connectors iterator") }
crates/router/src/core/payments.rs
router
function_signature
64
rust
null
null
null
null
get_connector_data
null
null
null
null
null
null
null
pub async fn get_payment_intent_filter_for_dimension<T>( dimension: PaymentIntentDimensions, merchant_id: &common_utils::id_type::MerchantId, time_range: &TimeRange, pool: &T, ) -> FiltersResult<Vec<PaymentIntentFilterRow>> where T: AnalyticsDataSource + PaymentIntentFilterAnalytics, PrimitiveDa...
crates/analytics/src/payment_intents/filters.rs
analytics
function_signature
256
rust
null
null
null
null
get_payment_intent_filter_for_dimension
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Razorpay {}
crates/hyperswitch_connectors/src/connectors/razorpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Razorpay
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Razorpay
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RelayError { "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "The error code" }, "message": { "type": "string", "description": "The error message" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
89
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RelayError" ]
null
null
null
null
pub struct JpmorganRefundRequest { pub merchant: MerchantRefundReq, pub amount: MinorUnit, pub currency: common_enums::Currency, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
JpmorganRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct CreateCustomerResponse { pub id: id_type::CustomerId, pub object: String, pub created: u64, pub description: Option<Description>, pub email: Option<Email>, pub metadata: Option<pii::SecretSerdeValue>, pub name: Option<masking::Secret<String>>, pub phone: Option<masking::Secret...
crates/router/src/compatibility/stripe/customers/types.rs
router
struct_definition
87
rust
CreateCustomerResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ExternalToken { pub user_id: String, pub merchant_id: id_type::MerchantId, pub exp: u64, pub external_service_type: ExternalServiceType, }
crates/router/src/services/authentication.rs
router
struct_definition
42
rust
ExternalToken
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/hypersense") .app_data(web::Data::new(state)) .service( web::resource("/token") .route(web::get().to(hypersense_routes::get_hypersense_token)), ) .service( w...
crates/router/src/routes/app.rs
router
function_signature
137
rust
null
null
null
null
server
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AmazonPayRedirectData { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
24
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AmazonPayRedirectData" ]
null
null
null
null
File: crates/router/src/connector.rs pub mod utils; #[cfg(feature = "dummy_connector")] pub use hyperswitch_connectors::connectors::DummyConnector; pub use hyperswitch_connectors::connectors::{ aci, aci::Aci, adyen, adyen::Adyen, adyenplatform, adyenplatform::Adyenplatform, affirm, affirm::Affirm, airwallex, ...
crates/router/src/connector.rs
router
full_file
1,412
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BarclaycardTransactionResponse { id: String, application_information: ApplicationInformation, client_reference_information: Option<ClientReferenceInformation>, processor_information: Option<ClientProcessorInformation>, processing_information: Option<ProcessingInformationResponse>, pay...
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
126
rust
BarclaycardTransactionResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/lib.rs Public functions: 1 pub mod address; pub mod api; pub mod authentication; pub mod behaviour; pub mod bulk_tokenization; pub mod business_profile; pub mod callback_mapper; pub mod card_testing_guard_data; pub mod cards_info; pub mod chat; pub mod connector_endpoints; p...
crates/hyperswitch_domain_models/src/lib.rs
hyperswitch_domain_models
full_file
5,208
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct NoonPaymentsCancelRequest { api_operation: NoonApiOperations, order: NoonActionOrder, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
NoonPaymentsCancelRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/external_services/src/grpc_client/unified_connector_service.rs Public functions: 7 Public structs: 4 use std::collections::{HashMap, HashSet}; use common_enums::connector_enums::Connector; use common_utils::{consts as common_utils_consts, errors::CustomResult, types::Url}; use error_stack::ResultExt; u...
crates/external_services/src/grpc_client/unified_connector_service.rs
external_services
full_file
3,317
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct DeviceRenderOptions { pub sdk_interface: String, pub sdk_ui_type: Vec<String>, }
crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
DeviceRenderOptions
null
null
null
null
null
null
null
null
null
null
null
pub struct CybersourcePaymentsCaptureRequest { processing_information: ProcessingInformation, order_information: OrderInformationWithBill, client_reference_information: ClientReferenceInformation, #[serde(skip_serializing_if = "Option::is_none")] merchant_defined_information: Option<Vec<MerchantDefi...
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
61
rust
CybersourcePaymentsCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Event> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/events.rs
diesel_models
function_signature
33
rust
null
null
null
null
insert
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/celero/transformers.rs Public functions: 4 Public structs: 19 use common_enums::{enums, Currency}; use common_utils::{id_type::CustomerId, pii::Email, types::MinorUnit}; use hyperswitch_domain_models::{ address::Address as DomainAddress, payment_method_data:...
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
full_file
7,943
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodTokenizationData { pub payment_method_data: PaymentMethodData, pub browser_info: Option<BrowserInformation>, pub currency: storage_enums::Currency, pub amount: Option<i64>, pub split_payments: Option<common_types::payments::SplitPaymentsRequest>, pub customer_acceptance: ...
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
130
rust
PaymentMethodTokenizationData
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Payload { fn id(&self) -> &'static str { "payload" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/x-www-form-urlencoded" } fn base_url<'a>(&se...
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
impl_block
492
rust
null
Payload
ConnectorCommon for
impl ConnectorCommon for for Payload
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ApplepayPaymentMethod { "type": "object", "required": [ "display_name", "network", "type" ], "properties": { "display_name": { "type": "string", "description": "The name to be displayed on Apple Pay button" }, "network": { "type": ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
134
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ApplepayPaymentMethod" ]
null
null
null
null
OpenAPI Block Path: components.schemas.IncrementalAuthorizationResponse { "type": "object", "required": [ "authorization_id", "amount", "status", "previously_authorized_amount" ], "properties": { "authorization_id": { "type": "string", "description": "The unique identifier of aut...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
244
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "IncrementalAuthorizationResponse" ]
null
null
null
null
File: crates/router/tests/connectors/paybox.rs use masking::Secret; use router::types::{self, api, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct PayboxTest; impl ConnectorActions for PayboxTest {} impl utils::Connector for PayboxTes...
crates/router/tests/connectors/paybox.rs
router
full_file
2,923
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AdyenRawCardIdentification { #[serde(rename = "number")] card_number: cards::CardNumber, expiry_month: Secret<String>, expiry_year: Secret<String>, issue_number: Option<String>, start_month: Option<String>, start_year: Option<String>, }
crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs
hyperswitch_connectors
struct_definition
61
rust
AdyenRawCardIdentification
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_default_payout_connector( _state: &SessionState, request_connector: Option<serde_json::Value>, ) -> CustomResult<api::ConnectorChoice, errors::ApiErrorResponse> { Ok(request_connector.map_or( api::ConnectorChoice::Decide, api::ConnectorChoice::StraightThrough, )) }
crates/router/src/core/payouts/helpers.rs
router
function_signature
72
rust
null
null
null
null
get_default_payout_connector
null
null
null
null
null
null
null
pub struct CustomerPaymentMethodsListResponse { /// List of payment methods for customer pub customer_payment_methods: Vec<CustomerPaymentMethod>, /// Returns whether a customer id is not tied to a payment intent (only when the request is made against a client secret) pub is_guest_customer: Option<bool>...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
64
rust
CustomerPaymentMethodsListResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/api/files_v2.rs pub use hyperswitch_domain_models::router_flow_types::files::{Retrieve, Upload}; pub use hyperswitch_interfaces::api::files_v2::{FileUploadV2, RetrieveFileV2, UploadFileV2};
crates/router/src/types/api/files_v2.rs
router
full_file
56
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Cashtocode { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&CASHTOCODE_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*CASHTOCODE_SUPPORTED_PAYMENT_METHODS) } fn...
crates/hyperswitch_connectors/src/connectors/cashtocode.rs
hyperswitch_connectors
impl_block
112
rust
null
Cashtocode
ConnectorSpecifications for
impl ConnectorSpecifications for for Cashtocode
null
null
null
null
null
null
null
null
impl PaymentAuthorize for Plaid {}
crates/hyperswitch_connectors/src/connectors/plaid.rs
hyperswitch_connectors
impl_block
7
rust
null
Plaid
PaymentAuthorize for
impl PaymentAuthorize for for Plaid
null
null
null
null
null
null
null
null
pub struct SdkEventFilter { pub payment_method: Option<String>, pub platform: Option<String>, pub browser_name: Option<String>, pub source: Option<String>, pub component: Option<String>, pub payment_experience: Option<String>, }
crates/analytics/src/sdk_events/filters.rs
analytics
struct_definition
53
rust
SdkEventFilter
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/domain.rs pub mod behaviour { pub use hyperswitch_domain_models::behaviour::{Conversion, ReverseConversion}; } mod payment_attempt { pub use hyperswitch_domain_models::payments::payment_attempt::*; } mod merchant_account { pub use hyperswitch_domain_models::merchant_account:...
crates/router/src/types/domain.rs
router
full_file
488
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AdyenPlatformConnectorMetadataObject { source_balance_account: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs
hyperswitch_connectors
struct_definition
20
rust
AdyenPlatformConnectorMetadataObject
null
null
null
null
null
null
null
null
null
null
null
pub struct ExternalTokenResponse { pub token: Secret<String>, }
crates/api_models/src/external_service_auth.rs
api_models
struct_definition
14
rust
ExternalTokenResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn is_update_required(metadata: &UserResult<DashboardMetadata>) -> bool { match metadata { Ok(_) => false, Err(e) => matches!(e.current_context(), UserErrors::MetadataAlreadySet), } }
crates/router/src/utils/user/dashboard_metadata.rs
router
function_signature
48
rust
null
null
null
null
is_update_required
null
null
null
null
null
null
null
pub async fn upload_and_get_provider_provider_file_id_profile_id( state: &SessionState, merchant_context: &domain::MerchantContext, create_file_request: &api::CreateFileRequest, file_key: String, ) -> CustomResult< ( String, api_models::enums::FileUploadProvider, Option<commo...
crates/router/src/core/files/helpers.rs
router
function_signature
108
rust
null
null
null
null
upload_and_get_provider_provider_file_id_profile_id
null
null
null
null
null
null
null
pub struct Evidence;
crates/hyperswitch_domain_models/src/router_flow_types/dispute.rs
hyperswitch_domain_models
struct_definition
4
rust
Evidence
null
null
null
null
null
null
null
null
null
null
null
pub struct BankAssociationDetails { pub association_response_code: Option<String>, pub avs_security_code_response: Option<AvsSecurityCodeResponse>, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
BankAssociationDetails
null
null
null
null
null
null
null
null
null
null
null
impl PaymentMethod { pub async fn delete_by_payment_method_id( conn: &PgPooledConn, payment_method_id: String, ) -> StorageResult<Self> { generics::generic_delete_one_with_result::<<Self as HasTable>::Table, _, Self>( conn, dsl::payment_method_id.eq(payment_method...
crates/diesel_models/src/query/payment_method.rs
diesel_models
impl_block
1,353
rust
null
PaymentMethod
null
impl PaymentMethod
null
null
null
null
null
null
null
null
impl api::RefundExecute for Tsys {}
crates/hyperswitch_connectors/src/connectors/tsys.rs
hyperswitch_connectors
impl_block
10
rust
null
Tsys
api::RefundExecute for
impl api::RefundExecute for for Tsys
null
null
null
null
null
null
null
null
pub struct CustomerResponse { /// Unique identifier for the customer #[schema( min_length = 32, max_length = 64, example = "12345_cus_01926c58bc6e77c09e809964e72af8c8", value_type = String )] pub id: id_type::GlobalCustomerId, /// The identifier for the customer objec...
crates/api_models/src/customers.rs
api_models
struct_definition
840
rust
CustomerResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn revoke_mandate() {}
crates/openapi/src/routes/mandates.rs
openapi
function_signature
9
rust
null
null
null
null
revoke_mandate
null
null
null
null
null
null
null
pub fn get_surcharge_amount(&self) -> Option<MinorUnit> { self.surcharge_amount }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
25
rust
null
null
null
null
get_surcharge_amount
null
null
null
null
null
null
null