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 fn is_elimination_enabled(&self) -> bool { self.elimination_routing_algorithm .as_ref() .map(|elimination_routing| { elimination_routing.enabled_feature == DynamicRoutingFeatures::DynamicConnectorSelection || elimination_routing...
crates/api_models/src/routing.rs
api_models
function_signature
73
rust
null
null
null
null
is_elimination_enabled
null
null
null
null
null
null
null
File: crates/common_utils/src/lib.rs Public functions: 18 Public structs: 4 #![warn(missing_docs, missing_debug_implementations)] #![doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR" ), "/", "README.md"))] use masking::{PeekInterface, Secret}; pub mod access_token; pub mod consts; pub mod crypto; pub mod custom...
crates/common_utils/src/lib.rs
common_utils
full_file
3,226
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_topic(&self, event: EventType) -> &str { match event { EventType::FraudCheck => &self.fraud_check_analytics_topic, EventType::ApiLogs => &self.api_logs_topic, EventType::PaymentAttempt => &self.attempt_analytics_topic, EventType::PaymentIntent => &self....
crates/router/src/services/kafka.rs
router
function_signature
228
rust
null
null
null
null
get_topic
null
null
null
null
null
null
null
pub struct KafkaPaymentIntentEvent<'a> { pub payment_id: &'a id_type::PaymentId, pub merchant_id: &'a id_type::MerchantId, pub status: storage_enums::IntentStatus, pub amount: common_types::MinorUnit, pub currency: Option<storage_enums::Currency>, pub amount_captured: Option<common_types::MinorU...
crates/router/src/services/kafka/payment_intent_event.rs
router
struct_definition
439
rust
KafkaPaymentIntentEvent
null
null
null
null
null
null
null
null
null
null
null
pub struct MetricsBucketResponse { #[serde(flatten)] pub values: ActivePaymentsMetricsBucketValue, #[serde(flatten)] pub dimensions: ActivePaymentsMetricsBucketIdentifier, }
crates/api_models/src/analytics/active_payments.rs
api_models
struct_definition
39
rust
MetricsBucketResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct HipayBrowserInfo { java_enabled: Option<bool>, javascript_enabled: Option<bool>, ipaddr: Option<std::net::IpAddr>, http_accept: String, http_user_agent: Option<String>, language: Option<String>, color_depth: Option<u8>, screen_height: Option<u32>, screen_width: Option<u32>...
crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs
hyperswitch_connectors
struct_definition
88
rust
HipayBrowserInfo
null
null
null
null
null
null
null
null
null
null
null
apple_pay_predecrypt_data .application_primary_account_number .clone(), ), last4_digits: Some(Secret::new( apple_pay_predecrypt_data .application_pr...
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs#chunk1
hyperswitch_connectors
chunk
8,190
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct NuveiInitPaymentRequest { pub session_token: Secret<String>, pub merchant_id: Secret<String>, pub merchant_site_id: Secret<String>, pub client_request_id: String, pub amount: StringMajorUnit, pub currency: String, pub payment_option: PaymentOption, pub checksum: Secret<String>...
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
72
rust
NuveiInitPaymentRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn get_default_customer_billing_address(&self) -> Option<payments::AddressDetails> { self.default_billing_address.clone() }
crates/api_models/src/customers.rs
api_models
function_signature
29
rust
null
null
null
null
get_default_customer_billing_address
null
null
null
null
null
null
null
pub struct RequestPaymentMethodTypes { /// The payment method subtype #[schema(value_type = PaymentMethodType)] pub payment_method_subtype: common_enums::PaymentMethodType, /// The payment experience for the payment method #[schema(value_type = Option<PaymentExperience>)] pub payment_experience...
crates/common_types/src/payment_methods.rs
common_types
struct_definition
453
rust
RequestPaymentMethodTypes
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Bambora { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&*BAMBORA_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*BAMBORA_SUPPORTED_PAYMENT_METHODS) } fn get_sup...
crates/hyperswitch_connectors/src/connectors/bambora.rs
hyperswitch_connectors
impl_block
111
rust
null
Bambora
ConnectorSpecifications for
impl ConnectorSpecifications for for Bambora
null
null
null
null
null
null
null
null
pub trait PaymentIntentMetricAccumulator { type MetricOutput; fn add_metrics_bucket(&mut self, metrics: &PaymentIntentMetricRow); fn collect(self) -> Self::MetricOutput; }
crates/analytics/src/payment_intents/accumulator.rs
analytics
trait_definition
43
rust
null
null
PaymentIntentMetricAccumulator
null
null
null
null
null
null
null
null
null
pub trait RemoveNewLine { fn remove_new_line(&self) -> Self; }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
trait_definition
18
rust
null
null
RemoveNewLine
null
null
null
null
null
null
null
null
null
pub struct VersionResponseData { #[serde(rename = "@ds_version")] ds_version: String, message: MessageResponseType, }
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
VersionResponseData
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Gpayments {}
crates/hyperswitch_connectors/src/connectors/gpayments.rs
hyperswitch_connectors
impl_block
9
rust
null
Gpayments
api::PaymentVoid for
impl api::PaymentVoid for for Gpayments
null
null
null
null
null
null
null
null
pub struct SubmitEvidenceResponse { pub dispute_status: api_models::enums::DisputeStatus, pub connector_status: Option<String>, }
crates/hyperswitch_domain_models/src/router_response_types/disputes.rs
hyperswitch_domain_models
struct_definition
29
rust
SubmitEvidenceResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct SantanderBoletoPaymentsResponse { pub environment: Environment, pub nsu_code: String, pub nsu_date: String, pub covenant_code: String, pub bank_number: String, pub client_number: Option<id_type::CustomerId>, pub due_date: String, pub issue_date: String, pub participant_cod...
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
328
rust
SantanderBoletoPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/routes/ephemeral_key.rs Public functions: 4 use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::AppState; #[cfg(feature = "v2")] use crate::types::domain; use crate::{ core::{api_locking, payments::helpers}, services::{api, authenti...
crates/router/src/routes/ephemeral_key.rs
router
full_file
858
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn collect(self) -> FrmMetricsBucketValue { FrmMetricsBucketValue { frm_blocked_rate: self.frm_blocked_rate.collect(), frm_triggered_attempts: self.frm_triggered_attempts.collect(), } }
crates/analytics/src/frm/accumulator.rs
analytics
function_signature
45
rust
null
null
null
null
collect
null
null
null
null
null
null
null
pub fn new(base_currency: Currency, conversion: HashMap<Currency, CurrencyFactors>) -> Self { Self { base_currency, conversion, } }
crates/currency_conversion/src/types.rs
currency_conversion
function_signature
34
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct ArchipelWalletAuthorizationRequest { order: ArchipelOrderRequest, card: ArchipelTokenizedCard, cardholder: Option<ArchipelCardHolder>, wallet: ArchipelWalletInformation, #[serde(rename = "3DS")] three_ds: Option<Archipel3DS>, credential_indicator: Option<ArchipelCredentialIndicato...
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
hyperswitch_connectors
struct_definition
92
rust
ArchipelWalletAuthorizationRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct CoinbaseAuthType { pub(super) api_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
CoinbaseAuthType
null
null
null
null
null
null
null
null
null
null
null
pub struct IssuerInformation { country: Option<enums::CountryAlpha2>, discretionary_data: Option<String>, country_specific_discretionary_data: Option<String>, response_code: Option<String>, pin_request_indicator: Option<String>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
IssuerInformation
null
null
null
null
null
null
null
null
null
null
null
impl common_utils::events::ApiEventMetric for TotalPaymentMethodCountResponse {}
crates/api_models/src/payment_methods.rs
api_models
impl_block
16
rust
null
TotalPaymentMethodCountResponse
common_utils::events::ApiEventMetric for
impl common_utils::events::ApiEventMetric for for TotalPaymentMethodCountResponse
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Payload {}
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
impl_block
8
rust
null
Payload
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Payload
null
null
null
null
null
null
null
null
pub async fn get_card_details_from_locker( state: &routes::SessionState, pm: &domain::PaymentMethod, ) -> errors::RouterResult<api::CardDetailFromLocker> { let card = get_card_from_locker( state, &pm.customer_id, &pm.merchant_id, pm.locker_id.as_ref().unwrap_or(pm.get_id()), ...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
148
rust
null
null
null
null
get_card_details_from_locker
null
null
null
null
null
null
null
pub struct SESConfig { /// The arn of email role pub email_role_arn: String, /// The name of sts_session role pub sts_role_session_name: String, }
crates/external_services/src/email/ses.rs
external_services
struct_definition
42
rust
SESConfig
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GsmUpdateRequest { "type": "object", "required": [ "connector", "flow", "sub_flow", "code", "message" ], "properties": { "connector": { "type": "string", "description": "The connector through which payment has gone through" }, "f...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
616
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GsmUpdateRequest" ]
null
null
null
null
impl ConnectorValidation for Square {}
crates/hyperswitch_connectors/src/connectors/square.rs
hyperswitch_connectors
impl_block
6
rust
null
Square
ConnectorValidation for
impl ConnectorValidation for for Square
null
null
null
null
null
null
null
null
pub fn to_redis_field_value_pairs( &self, ) -> CustomResult<Vec<(&str, String)>, errors::ProcessTrackerError> { Ok(vec![ ("id", self.id.to_string()), ("group_name", self.group_name.to_string()), ("stream_name", self.stream_name.to_string()), ("connecti...
crates/scheduler/src/consumer/types/batch.rs
scheduler
function_signature
171
rust
null
null
null
null
to_redis_field_value_pairs
null
null
null
null
null
null
null
pub struct EventNew { pub event_id: String, pub event_type: storage_enums::EventType, pub event_class: storage_enums::EventClass, pub is_webhook_notified: bool, pub primary_object_id: String, pub primary_object_type: storage_enums::EventObjectType, pub created_at: PrimitiveDateTime, pub ...
crates/diesel_models/src/events.rs
diesel_models
struct_definition
191
rust
EventNew
null
null
null
null
null
null
null
null
null
null
null
pub struct ChargebackRetrievalResponse { #[serde(rename = "@xmlns")] pub xmlns: String, pub transaction_id: String, pub chargeback_case: Option<Vec<ChargebackCase>>, }
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
ChargebackRetrievalResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct PayoutLinkStatusDetails { pub payout_link_id: String, pub payout_id: id_type::PayoutId, pub customer_id: id_type::CustomerId, #[serde(with = "common_utils::custom_serde::iso8601")] pub session_expiry: PrimitiveDateTime, pub return_url: Option<url::Url>, pub status: api_enums::Payo...
crates/api_models/src/payouts.rs
api_models
struct_definition
136
rust
PayoutLinkStatusDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct NoonWebhookSignature { pub signature: String, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
NoonWebhookSignature
null
null
null
null
null
null
null
null
null
null
null
impl<F: Clone> PaymentConfirmData<F> { pub fn get_connector_customer_id( &self, customer: Option<&customer::Customer>, merchant_connector_account: &MerchantConnectorAccountTypeDetails, ) -> Option<String> { match merchant_connector_account { MerchantConnectorAccountTy...
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
impl_block
247
rust
null
PaymentConfirmData
null
impl PaymentConfirmData
null
null
null
null
null
null
null
null
File: crates/analytics/src/payments/metrics/sessionized_metrics/failure_reasons.rs use std::collections::HashSet; use api_models::analytics::{ payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use diesel_models:...
crates/analytics/src/payments/metrics/sessionized_metrics/failure_reasons.rs
analytics
full_file
1,382
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AcceptedCurrencies { "oneOf": [ { "type": "object", "required": [ "type", "list" ], "properties": { "type": { "type": "string", "enum": [ "enable_only" ] }, "list": { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
277
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AcceptedCurrencies" ]
null
null
null
null
pub struct GooglePayPaymentProcessingDetails { pub google_pay_private_key: Secret<String>, pub google_pay_root_signing_keys: Secret<String>, pub google_pay_recipient_id: Secret<String>, }
crates/router/src/core/payments.rs
router
struct_definition
42
rust
GooglePayPaymentProcessingDetails
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/routing/default" { "post": { "tags": [ "Routing" ], "summary": "Routing - Update Default Config", "description": "Update default fallback config", "operationId": "Update default fallback config", "requestBody": { "content": { "application/json": ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
457
.json
null
null
null
null
null
openapi_spec
paths
[ "/routing/default" ]
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/aci.rs Public functions: 1 Public structs: 1 mod aci_result_codes; pub mod transformers; use std::sync::LazyLock; use api_models::webhooks::IncomingWebhookEvent; use common_enums::enums; use common_utils::{ crypto, errors::{CryptoError, CustomResult}, ...
crates/hyperswitch_connectors/src/connectors/aci.rs#chunk0
hyperswitch_connectors
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/three_ds_decision") .app_data(web::Data::new(state)) .service( web::resource("/execute") .route(web::post().to(three_ds_decision_rule::execute_decision_rule)), ) }
crates/router/src/routes/app.rs
router
function_signature
63
rust
null
null
null
null
server
null
null
null
null
null
null
null
impl api::PaymentCapture for Blackhawknetwork {}
crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs
hyperswitch_connectors
impl_block
10
rust
null
Blackhawknetwork
api::PaymentCapture for
impl api::PaymentCapture for for Blackhawknetwork
null
null
null
null
null
null
null
null
pub async fn find_by_merchant_id_fingerprint_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, fingerprint_id: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::merchant_id ...
crates/diesel_models/src/query/blocklist_fingerprint.rs
diesel_models
function_signature
111
rust
null
null
null
null
find_by_merchant_id_fingerprint_id
null
null
null
null
null
null
null
pub fn wait_screen_next_steps_check( payment_attempt: storage::PaymentAttempt, ) -> RouterResult<Option<api_models::payments::WaitScreenInstructions>> { let display_info_with_timer_steps: Option< Result<api_models::payments::WaitScreenInstructions, _>, > = payment_attempt .connector_metadata...
crates/router/src/core/payments/transformers.rs
router
function_signature
111
rust
null
null
null
null
wait_screen_next_steps_check
null
null
null
null
null
null
null
impl ConfigInterface for KafkaStore { async fn insert_config( &self, config: storage::ConfigNew, ) -> CustomResult<storage::Config, errors::StorageError> { self.diesel_store.insert_config(config).await } async fn find_config_by_key( &self, key: &str, ) -> Cus...
crates/router/src/db/kafka_store.rs
router
impl_block
408
rust
null
KafkaStore
ConfigInterface for
impl ConfigInterface for for KafkaStore
null
null
null
null
null
null
null
null
pub struct MultisafepayPaymentsRequest { #[serde(rename = "type")] pub payment_type: Type, pub gateway: Option<Gateway>, pub order_id: String, pub currency: String, pub amount: MinorUnit, pub description: String, pub payment_options: Option<PaymentOptions>, pub customer: Option<Custo...
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
struct_definition
195
rust
MultisafepayPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Zsl {}
crates/hyperswitch_connectors/src/connectors/zsl.rs
hyperswitch_connectors
impl_block
9
rust
null
Zsl
api::Refund for
impl api::Refund for for Zsl
null
null
null
null
null
null
null
null
pub fn get_merchant_reference_id(&self) -> Option<id_type::CustomerId> { self.merchant_reference_id.clone() }
crates/api_models/src/customers.rs
api_models
function_signature
29
rust
null
null
null
null
get_merchant_reference_id
null
null
null
null
null
null
null
pub struct CeleroRefundRequest { pub amount: MinorUnit, pub surcharge: MinorUnit, // Required field as per API specification }
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
CeleroRefundRequest
null
null
null
null
null
null
null
null
null
null
null
impl behaviour::Conversion for Address { type DstType = diesel_models::address::Address; type NewDstType = diesel_models::address::AddressNew; async fn convert(self) -> CustomResult<Self::DstType, ValidationError> { Ok(diesel_models::address::Address { address_id: self.address_id, ...
crates/router/src/types/domain/address.rs
router
impl_block
998
rust
null
Address
behaviour::Conversion for
impl behaviour::Conversion for for Address
null
null
null
null
null
null
null
null
pub struct PaymentMethodUpdate { /// Payment method details to be updated for the payment_method pub payment_method_data: Option<PaymentMethodUpdateData>, /// The connector token details to be updated for the payment_method pub connector_token_details: Option<ConnectorTokenDetails>, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
60
rust
PaymentMethodUpdate
null
null
null
null
null
null
null
null
null
null
null
} }); Ok(Self { shipping_address: shipping, billing_address: unified_payment_method_billing.or(billing), }) } } impl ForeignTryFrom<AuthenticationType> for payments_grpc::AuthenticationType { type Error = error_stack::Report<UnifiedConnectorSe...
crates/router/src/core/unified_connector_service/transformers.rs#chunk1
router
chunk
2,871
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Thunes {}
crates/hyperswitch_connectors/src/connectors/thunes.rs
hyperswitch_connectors
impl_block
9
rust
null
Thunes
api::PaymentVoid for
impl api::PaymentVoid for for Thunes
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/paybox.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use api_models::webhooks::{IncomingWebhookEvent, ObjectReferenceId}; use common_enums::{enums, CallConnectorAction, PaymentAction}; use common_utils::{ errors::Custom...
crates/hyperswitch_connectors/src/connectors/paybox.rs
hyperswitch_connectors
full_file
5,823
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct FraudCheckPost;
crates/router/src/core/fraud_check/operation/fraud_check_post.rs
router
struct_definition
6
rust
FraudCheckPost
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { let mut route = web::scope("/refunds").app_data(web::Data::new(state)); #[cfg(feature = "olap")] { route = route .service(web::resource("/list").route(web::post().to(refunds_list))) .service(web::resource("/pr...
crates/router/src/routes/app.rs
router
function_signature
342
rust
null
null
null
null
server
null
null
null
null
null
null
null
File: crates/router/src/db/relay.rs use common_utils::types::keymanager::KeyManagerState; use diesel_models; use error_stack::{report, ResultExt}; use hyperswitch_domain_models::behaviour::{Conversion, ReverseConversion}; use storage_impl::MockDb; use super::domain; use crate::{ connection, core::errors::{sel...
crates/router/src/db/relay.rs
router
full_file
2,060
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BillingConnectorInvoiceSyncResponseData( revenue_recovery_response::BillingConnectorInvoiceSyncResponse, );
crates/router/src/core/webhooks/recovery_incoming.rs
router
struct_definition
21
rust
BillingConnectorInvoiceSyncResponseData
null
null
null
null
null
null
null
null
null
null
null
pub struct EphemeralKeyCreateResponse { /// customer_id to which this ephemeral key belongs to #[schema(value_type = String, max_length = 64, min_length = 1, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")] pub customer_id: id_type::CustomerId, /// time at which this ephemeral key was created pub create...
crates/api_models/src/ephemeral_key.rs
api_models
struct_definition
131
rust
EphemeralKeyCreateResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_user_scoped_metadata( state: &SessionState, user_id: String, merchant_id: id_type::MerchantId, org_id: id_type::OrganizationId, metadata_key: DBEnum, metadata_value: impl serde::Serialize, ) -> UserResult<DashboardMetadata> { let data_value = serde_json::to_value(metadata...
crates/router/src/utils/user/dashboard_metadata.rs
router
function_signature
186
rust
null
null
null
null
update_user_scoped_metadata
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Amazonpay {}
crates/hyperswitch_connectors/src/connectors/amazonpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Amazonpay
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Amazonpay
null
null
null
null
null
null
null
null
impl NuveiAuthorizePreprocessingCommon for PaymentsPreProcessingData { fn get_browser_info(&self) -> Option<BrowserInformation> { self.browser_info.clone() } fn get_related_transaction_id(&self) -> Option<String> { self.related_transaction_id.clone() } fn get_is_moto(&self) -> Opti...
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
impl_block
516
rust
null
PaymentsPreProcessingData
NuveiAuthorizePreprocessingCommon for
impl NuveiAuthorizePreprocessingCommon for for PaymentsPreProcessingData
null
null
null
null
null
null
null
null
/// Returns the most verbose [`tracing::Level`] pub fn into_level(self) -> tracing::Level { self.0 }
crates/router_env/src/logger/config.rs
router_env
function_signature
31
rust
null
null
null
null
into_level
null
null
null
null
null
null
null
File: crates/diesel_models/src/customers.rs Public functions: 4 Public structs: 6 use common_enums::ApiVersion; use common_utils::{encryption::Encryption, pii, types::Description}; use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable}; use time::PrimitiveDateTime; #[cfg(feature = "v1")] use cra...
crates/diesel_models/src/customers.rs
diesel_models
full_file
2,425
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Generates different schemas with the ability to mark few fields as mandatory for certain schema /// Usage /// ``` /// use router_derive::PolymorphicSchema; /// /// #[derive(PolymorphicSchema)] /// #[generate_schemas(PaymentsCreateRequest, PaymentsConfirmRequest)] /// struct PaymentsRequest { /// #[mandatory_in(...
crates/router_derive/src/lib.rs
router_derive
macro
370
rust
null
null
null
null
null
null
null
null
proc_derive
null
null
null
pub struct Relay;
crates/router/src/routes/app.rs
router
struct_definition
4
rust
Relay
null
null
null
null
null
null
null
null
null
null
null
pub fn new_list(value: Vec<T>) -> Self { Self::List(value) }
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs
hyperswitch_connectors
function_signature
20
rust
null
null
null
null
new_list
null
null
null
null
null
null
null
impl api::RefundSync for Stripe {}
crates/hyperswitch_connectors/src/connectors/stripe.rs
hyperswitch_connectors
impl_block
9
rust
null
Stripe
api::RefundSync for
impl api::RefundSync for for Stripe
null
null
null
null
null
null
null
null
pub struct RefundResponse { id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct BankTransferTypes { /// The list of eligible connectors for a given payment experience #[schema(example = json!(["stripe", "adyen"]))] pub eligible_connectors: Vec<String>, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
44
rust
BankTransferTypes
null
null
null
null
null
null
null
null
null
null
null
pub struct RevolutPayData {}
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
7
rust
RevolutPayData
null
null
null
null
null
null
null
null
null
null
null
impl std::ops::DerefMut for PayoutsMandateReference { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } }
crates/hyperswitch_domain_models/src/mandates.rs
hyperswitch_domain_models
impl_block
43
rust
null
PayoutsMandateReference
std::ops::DerefMut for
impl std::ops::DerefMut for for PayoutsMandateReference
null
null
null
null
null
null
null
null
File: crates/router/src/services/authentication.rs Public functions: 27 Public structs: 43 use std::str::FromStr; use actix_web::http::header::HeaderMap; #[cfg(feature = "v2")] use api_models::payment_methods::PaymentMethodIntentConfirm; #[cfg(feature = "v1")] use api_models::payment_methods::{PaymentMethodCreate, ...
crates/router/src/services/authentication.rs#chunk0
router
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Authorizedotnet {}
crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs
hyperswitch_connectors
impl_block
10
rust
null
Authorizedotnet
api::PaymentSession for
impl api::PaymentSession for for Authorizedotnet
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.BraintreeData { "type": "object", "required": [ "merchant_account_id", "merchant_config_currency" ], "properties": { "merchant_account_id": { "type": "string", "description": "Information about the merchant_account_id that merchant wants to specify ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
120
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "BraintreeData" ]
null
null
null
null
pub struct MerchantConnectorListResponse { /// Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking. #[schema(value_type = ConnectorType, example = "payment_processor")] pub connector_type: api_enums::ConnectorType, /// Name of the Connector #[schema(...
crates/api_models/src/admin.rs
api_models
struct_definition
431
rust
MerchantConnectorListResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn routing_link_config( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::ProfileId>, json_payload: web::Json<routing_types::RoutingAlgorithmId>, transaction_type: &enums::TransactionType, ) -> impl Responder { let flow = Flow::RoutingLinkConfig; ...
crates/router/src/routes/routing.rs
router
function_signature
350
rust
null
null
null
null
routing_link_config
null
null
null
null
null
null
null
pub struct DashboardNoPermissionAuth;
crates/router/src/services/authentication.rs
router
struct_definition
7
rust
DashboardNoPermissionAuth
null
null
null
null
null
null
null
null
null
null
null
pub struct PayeezyRefundRequest { transaction_tag: String, transaction_type: PayeezyTransactionType, amount: String, currency_code: String, }
crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
PayeezyRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct CybersourceErrorInformation { reason: Option<String>, message: Option<String>, details: Option<Vec<Details>>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
CybersourceErrorInformation
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.BusinessPaymentLinkConfig { "allOf": [ { "$ref": "#/components/schemas/PaymentLinkConfigRequest" }, { "type": "object", "properties": { "domain_name": { "type": "string", "description": "Custom domain name to be used for ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
259
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "BusinessPaymentLinkConfig" ]
null
null
null
null
File: crates/analytics/src/refunds/metrics/refund_success_count.rs use std::collections::HashSet; use api_models::analytics::{ refunds::{RefundDimensions, RefundFilters, RefundMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use diesel_models::enums as storage_en...
crates/analytics/src/refunds/metrics/refund_success_count.rs
analytics
full_file
885
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn authentication_sync( state: web::Data<app::AppState>, req: HttpRequest, path: web::Path<( common_utils::id_type::MerchantId, common_utils::id_type::AuthenticationId, )
crates/router/src/routes/authentication.rs
router
function_signature
52
rust
null
null
null
null
authentication_sync
null
null
null
null
null
null
null
pub async fn update_by_address_id( conn: &PgPooledConn, address_id: String, address: AddressUpdateInternal, ) -> StorageResult<Self> { match generics::generic_update_by_id::<<Self as HasTable>::Table, _, _, _>( conn, address_id.clone(), address, ...
crates/diesel_models/src/query/address.rs
diesel_models
function_signature
179
rust
null
null
null
null
update_by_address_id
null
null
null
null
null
null
null
pub struct ResponseData { pub id: String, pub amount: i64, pub status: RapydPaymentStatus, pub next_action: NextAction, pub redirect_url: Option<String>, pub original_amount: Option<i64>, pub is_partial: Option<bool>, pub currency_code: Option<enums::Currency>, pub country_code: Opti...
crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs
hyperswitch_connectors
struct_definition
129
rust
ResponseData
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/account/{account_id}/connectors" { "post": { "tags": [ "Merchant Connector Account" ], "summary": "Merchant Connector - Create", "description": "Creates a new Merchant Connector for the merchant account. The connector could be a payment processor/facilitator/acquirer ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
823
.json
null
null
null
null
null
openapi_spec
paths
[ "/account/{account_id}/connectors" ]
null
null
null
null
pub struct Placetopay { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/placetopay.rs
hyperswitch_connectors
struct_definition
28
rust
Placetopay
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentsPostSessionTokensData { // amount here would include amount, surcharge_amount and shipping_cost pub amount: MinorUnit, /// original amount sent by the merchant pub order_amount: MinorUnit, pub currency: storage_enums::Currency, pub capture_method: Option<storage_enums::Capture...
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
172
rust
PaymentsPostSessionTokensData
null
null
null
null
null
null
null
null
null
null
null
/// Panics if `json_payload` array does not contain one `GetAuthEventMetricRequest` element. pub async fn get_org_auth_event_metrics( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<[GetAuthEventMetricRequest; 1]>, ) -> impl Responder { // safety:...
crates/router/src/analytics.rs
router
function_signature
322
rust
null
null
null
null
get_org_auth_event_metrics
null
null
null
null
null
null
null
pub async fn api_key_revoke() {}
crates/openapi/src/routes/api_keys.rs
openapi
function_signature
9
rust
null
null
null
null
api_key_revoke
null
null
null
null
null
null
null
pub struct SiftCard { number: cards::CardNumber, expiry_month: Secret<String>, expiry_year: Secret<String>, cvc: Secret<String>, complete: bool, }
crates/hyperswitch_connectors/src/connectors/sift/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
SiftCard
null
null
null
null
null
null
null
null
null
null
null
impl Hash for PaymentMetricsBucketIdentifier { fn hash<H: Hasher>(&self, state: &mut H) { self.currency.hash(state); self.status.map(|i| i.to_string()).hash(state); self.connector.hash(state); self.auth_type.map(|i| i.to_string()).hash(state); self.payment_method.hash(state);...
crates/api_models/src/analytics/payments.rs
api_models
impl_block
203
rust
null
PaymentMetricsBucketIdentifier
Hash for
impl Hash for for PaymentMetricsBucketIdentifier
null
null
null
null
null
null
null
null
impl api::RefundExecute for Billwerk {}
crates/hyperswitch_connectors/src/connectors/billwerk.rs
hyperswitch_connectors
impl_block
10
rust
null
Billwerk
api::RefundExecute for
impl api::RefundExecute for for Billwerk
null
null
null
null
null
null
null
null
pub struct CryptopayRouterData<T> { pub amount: StringMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/cryptopay/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
CryptopayRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct Bamboraapac { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/bamboraapac.rs
hyperswitch_connectors
struct_definition
29
rust
Bamboraapac
null
null
null
null
null
null
null
null
null
null
null
pub struct ConnectorAuthTypeAndMetadataValidation<'a> { pub connector_name: &'a api_models::enums::Connector, pub auth_type: &'a types::ConnectorAuthType, pub connector_meta_data: &'a Option<pii::SecretSerdeValue>, }
crates/router/src/core/connector_validation.rs
router
struct_definition
57
rust
ConnectorAuthTypeAndMetadataValidation
null
null
null
null
null
null
null
null
null
null
null
pub struct MpgsPaymentsRequest { amount: StringMinorUnit, card: MpgsCard, }
crates/hyperswitch_connectors/src/connectors/mpgs/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
MpgsPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct ChargebeeWebhookBody { pub content: ChargebeeWebhookContent, pub event_type: ChargebeeEventType, }
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
ChargebeeWebhookBody
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/revenue_recovery/types.rs Public functions: 8 use std::{marker::PhantomData, str::FromStr}; use api_models::{ enums as api_enums, payments::{ AmountDetails, PaymentRevenueRecoveryMetadata, PaymentsUpdateIntentRequest, ProxyPaymentsRequest, }, }; use common_uti...
crates/router/src/core/revenue_recovery/types.rs#chunk0
router
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/dwolla.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 DwollaTest; impl ConnectorActions for DwollaTest {} impl utils::Connector for DwollaTes...
crates/router/tests/connectors/dwolla.rs
router
full_file
2,926
null
null
null
null
null
null
null
null
null
null
null
null
null