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 api::PaymentCapture for Placetopay {}
crates/hyperswitch_connectors/src/connectors/placetopay.rs
hyperswitch_connectors
impl_block
11
rust
null
Placetopay
api::PaymentCapture for
impl api::PaymentCapture for for Placetopay
null
null
null
null
null
null
null
null
pub async fn payments_session_core<F, Res, Req, Op, FData, D>( state: SessionState, req_state: ReqState, merchant_context: domain::MerchantContext, profile: domain::Profile, operation: Op, req: Req, payment_id: id_type::GlobalPaymentId, call_connector_action: CallConnectorAction, hea...
crates/router/src/core/payments/session_operation.rs
router
function_signature
398
rust
null
null
null
null
payments_session_core
null
null
null
null
null
null
null
pub struct SquareRefundRequest { amount_money: SquarePaymentsAmountData, idempotency_key: Secret<String>, payment_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/square/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
SquareRefundRequest
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Flexiti { fn id(&self) -> &'static str { "flexiti" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/x-www-form-urlencoded" } fn base_url<'a>(&sel...
crates/hyperswitch_connectors/src/connectors/flexiti.rs
hyperswitch_connectors
impl_block
345
rust
null
Flexiti
ConnectorCommon for
impl ConnectorCommon for for Flexiti
null
null
null
null
null
null
null
null
/// Holds the payment methods enabled for a connector pub struct FlattenedPaymentMethodsEnabled { pub payment_methods_enabled: Vec<PaymentMethodsEnabledForConnector>, }
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
struct_definition
34
rust
FlattenedPaymentMethodsEnabled
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let payload = json_payload.into_inner(); let flow = Flow::GsmRuleUpdate; Box::pin(api::server_wrap( flow, state.clone(), &req, payload, |state, _, payload, _| gsm::update_gsm_rule(state, payload), &ADMIN_API_AUTH, api_locking::LockAct...
crates/router/src/routes/gsm.rs
router
impl_block
91
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub fn validate(&self) -> Result<(), ApplicationError> { use common_utils::fp_utils::when; when(!self.enabled && self.allow_connected_merchants, || { Err(ApplicationError::InvalidConfigurationValueError( "platform.allow_connected_merchants cannot be true when platform.enable...
crates/router/src/configs/validations.rs
router
function_signature
75
rust
null
null
null
null
validate
null
null
null
null
null
null
null
impl api::Refund for Coingate {}
crates/hyperswitch_connectors/src/connectors/coingate.rs
hyperswitch_connectors
impl_block
10
rust
null
Coingate
api::Refund for
impl api::Refund for for Coingate
null
null
null
null
null
null
null
null
pub struct ContractBasedRoutingConfigBody { pub constants: Option<Vec<f64>>, pub time_scale: Option<ContractBasedTimeScale>, }
crates/api_models/src/routing.rs
api_models
struct_definition
31
rust
ContractBasedRoutingConfigBody
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/blocklist" { "delete": { "tags": [ "Blocklist" ], "operationId": "Unblock a Fingerprint", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BlocklistRequest" } } },...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
558
.json
null
null
null
null
null
openapi_spec
paths
[ "/blocklist" ]
null
null
null
null
impl EliminationRoutingConfig { pub fn update(&mut self, new: Self) { if let Some(params) = new.params { self.params = Some(params) } if let Some(new_config) = new.elimination_analyser_config { self.elimination_analyser_config .as_mut() ...
crates/api_models/src/routing.rs
api_models
impl_block
265
rust
null
EliminationRoutingConfig
null
impl EliminationRoutingConfig
null
null
null
null
null
null
null
null
pub struct CtpMastercard;
crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs
hyperswitch_connectors
struct_definition
7
rust
CtpMastercard
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/services/kafka/payment_intent.rs Public functions: 2 Public structs: 2 #[cfg(feature = "v2")] use ::common_types::{payments, primitive_wrappers::RequestExtendedAuthorizationBool}; #[cfg(feature = "v2")] use common_enums; #[cfg(feature = "v2")] use common_enums::RequestIncrementalAuthorization...
crates/router/src/services/kafka/payment_intent.rs
router
full_file
3,127
null
null
null
null
null
null
null
null
null
null
null
null
null
impl KafkaPaymentIntentEvent<'_> { #[cfg(feature = "v1")] pub fn get_id(&self) -> &id_type::PaymentId { self.payment_id } #[cfg(feature = "v2")] pub fn get_id(&self) -> &id_type::GlobalPaymentId { self.payment_id } }
crates/router/src/services/kafka/payment_intent_event.rs
router
impl_block
74
rust
null
KafkaPaymentIntentEvent
null
impl KafkaPaymentIntentEvent
null
null
null
null
null
null
null
null
impl AddressConstructor for BillingAddress { fn new( name: Option<Secret<String>>, street: Option<Secret<String>>, city: Option<String>, post_code: Option<Secret<String>>, country: Option<enums::CountryAlpha2>, ) -> Self { Self { name, stre...
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
impl_block
82
rust
null
BillingAddress
AddressConstructor for
impl AddressConstructor for for BillingAddress
null
null
null
null
null
null
null
null
pub struct PlacetopayPaymentsRequest { auth: PlacetopayAuth, payment: PlacetopayPayment, instrument: PlacetopayInstrument, ip_address: Secret<String, common_utils::pii::IpAddress>, user_agent: String, }
crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs
hyperswitch_connectors
struct_definition
57
rust
PlacetopayPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Square {}
crates/hyperswitch_connectors/src/connectors/square.rs
hyperswitch_connectors
impl_block
8
rust
null
Square
api::PaymentSession for
impl api::PaymentSession for for Square
null
null
null
null
null
null
null
null
File: crates/external_services/src/grpc_client/health_check_client.rs Public functions: 2 Public structs: 1 use std::{collections::HashMap, fmt::Debug}; use api_models::health_check::{HealthCheckMap, HealthCheckServices}; use common_utils::{errors::CustomResult, ext_traits::AsyncExt}; use error_stack::ResultExt; pu...
crates/external_services/src/grpc_client/health_check_client.rs
external_services
full_file
1,028
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CaptureTransactionData { transaction: CaptureResponseTransactionBody, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
CaptureTransactionData
null
null
null
null
null
null
null
null
null
null
null
pub struct Merchant { pub public_api_key: Secret<String>, pub user_confirmation_url: String, pub user_cancel_url: String, pub user_confirmation_url_action: Option<String>, pub use_vcn: Option<String>, pub name: Option<String>, }
crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
hyperswitch_connectors
struct_definition
56
rust
Merchant
null
null
null
null
null
null
null
null
null
null
null
pub fn increment_webhook_outgoing_not_received_count( merchant_id: &common_utils::id_type::MerchantId, ) { metrics::WEBHOOK_OUTGOING_NOT_RECEIVED_COUNT.add( 1, router_env::metric_attributes!((MERCHANT_ID, merchant_id.clone())), ); }
crates/router/src/core/webhooks/utils.rs
router
function_signature
63
rust
null
null
null
null
increment_webhook_outgoing_not_received_count
null
null
null
null
null
null
null
pub async fn terminate_two_factor_auth( state: SessionState, user_token: auth::UserFromSinglePurposeToken, skip_two_factor_auth: bool, ) -> UserResponse<user_api::TokenResponse> { let user_from_db: domain::UserFromStorage = state .global_store .find_user_by_id(&user_token.user_id) ...
crates/router/src/core/user.rs
router
function_signature
479
rust
null
null
null
null
terminate_two_factor_auth
null
null
null
null
null
null
null
pub async fn get_sso_auth_url( state: SessionState, request: user_api::GetSsoAuthUrlRequest, ) -> UserResponse<()> { let user_authentication_method = state .store .get_user_authentication_method_by_id(request.id.as_str()) .await .to_not_found_response(UserErrors::InvalidUserA...
crates/router/src/core/user.rs
router
function_signature
383
rust
null
null
null
null
get_sso_auth_url
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SamsungPayTokenData { "type": "object", "required": [ "version", "data" ], "properties": { "type": { "type": "string", "description": "3DS type used by Samsung Pay", "nullable": true }, "version": { "type": "string", "descr...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
131
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SamsungPayTokenData" ]
null
null
null
null
impl RefundMetricAccumulator for RefundProcessedAmountAccumulator { type MetricOutput = (Option<u64>, Option<u64>, Option<u64>); #[inline] fn add_metrics_bucket(&mut self, metrics: &RefundMetricRow) { self.total = match ( self.total, metrics.total.as_ref().and_then(ToPrimitiv...
crates/analytics/src/refunds/accumulator.rs
analytics
impl_block
263
rust
null
RefundProcessedAmountAccumulator
RefundMetricAccumulator for
impl RefundMetricAccumulator for for RefundProcessedAmountAccumulator
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/merchant_connector_account.rs Public functions: 29 Public structs: 8 #[cfg(feature = "v2")] use std::collections::HashMap; use common_utils::{ crypto::Encryptable, date_time, encryption::Encryption, errors::{CustomResult, ValidationError}, ext_traits::V...
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
full_file
7,506
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Derives the boilerplate code required for using an enum with `diesel` and a PostgreSQL database. /// /// Storage Type can either be "text" or "db_enum" /// Choosing text will store the enum as text in the database, whereas db_enum will map it to the /// corresponding database enum /// /// Works in tandem with the [...
crates/router_derive/src/lib.rs
router_derive
macro
388
rust
null
null
null
null
null
null
null
null
proc_attribute
null
null
null
pub struct ReversalInformation { amount_details: Amount, reason: String, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
ReversalInformation
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Payme { fn validate_connector_against_payment_request( &self, capture_method: Option<enums::CaptureMethod>, _payment_method: enums::PaymentMethod, _pmt: Option<enums::PaymentMethodType>, ) -> CustomResult<(), errors::ConnectorError> { let capt...
crates/hyperswitch_connectors/src/connectors/payme.rs
hyperswitch_connectors
impl_block
259
rust
null
Payme
ConnectorValidation for
impl ConnectorValidation for for Payme
null
null
null
null
null
null
null
null
File: crates/router/src/core/admin.rs Public functions: 41 Public structs: 1 use std::str::FromStr; use api_models::{ admin::{self as admin_types}, enums as api_enums, routing as routing_types, }; use common_enums::{MerchantAccountRequestType, MerchantAccountType, OrganizationType}; use common_utils::{ ...
crates/router/src/core/admin.rs#chunk0
router
chunk
8,181
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ActivePaymentsMetricsAccumulator { pub active_payments: CountAccumulator, }
crates/analytics/src/active_payments/accumulator.rs
analytics
struct_definition
20
rust
ActivePaymentsMetricsAccumulator
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs Public structs: 10 use common_enums::enums; use common_utils::{request::Method, types::FloatMajorUnit}; use hyperswitch_domain_models::{ router_data::{ConnectorAuthType, RouterData}, router_flow_types::refunds::{Execute, RSync}, rou...
crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs
hyperswitch_connectors
full_file
2,223
null
null
null
null
null
null
null
null
null
null
null
null
null
/// The shipping address for the payment. This will override the shipping address provided in the create-intent request pub shipping: Option<Address>, /// This "CustomerAcceptance" object is passed during Payments-Confirm request, it enlists the type, time, and mode of acceptance properties related to an a...
crates/api_models/src/payments.rs#chunk7
api_models
chunk
8,185
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Taxjar { amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/taxjar.rs
hyperswitch_connectors
struct_definition
27
rust
Taxjar
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Nexixpay {}
crates/hyperswitch_connectors/src/connectors/nexixpay.rs
hyperswitch_connectors
impl_block
12
rust
null
Nexixpay
api::MandateSetup for
impl api::MandateSetup for for Nexixpay
null
null
null
null
null
null
null
null
File: crates/euclid/src/frontend/ast/lowering.rs Public functions: 2 //! Analysis for the Lowering logic in ast //! //!Certain functions that can be used to perform the complete lowering of ast to dir. //!This includes lowering of enums, numbers, strings as well as Comparison logics. use std::str::FromStr; use crat...
crates/euclid/src/frontend/ast/lowering.rs
euclid
full_file
3,113
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs Public functions: 3 Public structs: 33 use common_enums::{enums, CaptureMethod, CardNetwork, FutureUsage, PaymentChannel}; use common_types::payments::{ApplePayPaymentData, GpayTokenizationData}; use common_utils::{ crypto::{self, GenerateD...
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs#chunk0
hyperswitch_connectors
chunk
8,186
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Panics if `json_payload` array does not contain one `GetPaymentMetricRequest` element. pub async fn get_org_payment_metrics( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<[GetPaymentMetricRequest; 1]>, ) -> impl Responder { // safety: This s...
crates/router/src/analytics.rs
router
function_signature
367
rust
null
null
null
null
get_org_payment_metrics
null
null
null
null
null
null
null
pub struct ApiEventMetricsBucketValue { pub latency: Option<u64>, pub api_count: Option<u64>, pub status_code_count: Option<u64>, }
crates/api_models/src/analytics/api_event.rs
api_models
struct_definition
39
rust
ApiEventMetricsBucketValue
null
null
null
null
null
null
null
null
null
null
null
pub fn is_operation_complete_authorize<Op: Debug>(operation: &Op) -> bool { matches!(format!("{operation:?}").as_str(), "CompleteAuthorize") }
crates/router/src/core/payments.rs
router
function_signature
37
rust
null
null
null
null
is_operation_complete_authorize
null
null
null
null
null
null
null
File: crates/router/src/db/user_authentication_method.rs use diesel_models::user_authentication_method as storage; use error_stack::report; use router_env::{instrument, tracing}; use super::MockDb; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; #[async_trait::async_trait...
crates/router/src/db/user_authentication_method.rs
router
full_file
2,103
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn generate_org_payment_report( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<ReportRequest>, ) -> impl Responder { let flow = AnalyticsFlow::GeneratePaymentReport; Box::pin(api::server_wrap( flow, state.clo...
crates/router/src/analytics.rs
router
function_signature
338
rust
null
null
null
null
generate_org_payment_report
null
null
null
null
null
null
null
pub struct PaypalRefundRequest { pub amount: OrderAmount, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
PaypalRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_user_role( state: SessionState, user_from_token: auth::UserFromToken, request: user_role_api::DeleteUserRoleRequest, _req_state: ReqState, ) -> UserResponse<()> { let user_from_db: domain::UserFromStorage = state .global_store .find_user_by_email(&domain::UserEmai...
crates/router/src/core/user_role.rs
router
function_signature
1,620
rust
null
null
null
null
delete_user_role
null
null
null
null
null
null
null
pub fn get_payment_id(&self) -> Option<common_utils::id_type::GlobalPaymentId> { match self { Self::Payment { payment_id, .. } | Self::Refund { payment_id, .. } | Self::Dispute { payment_id, .. } => Some(payment_id.to_owned()), Self::NoEffect | Self::Mandate { .. ...
crates/api_models/src/webhooks.rs
api_models
function_signature
120
rust
null
null
null
null
get_payment_id
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/payment_link/{payment_link_id}" { "get": { "tags": [ "Payments" ], "summary": "Payments Link - Retrieve", "description": "To retrieve the properties of a Payment Link. This may be used to get the status of a previously initiated payment or next action for an ongoing p...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
334
.json
null
null
null
null
null
openapi_spec
paths
[ "/payment_link/{payment_link_id}" ]
null
null
null
null
pub struct RevenueRecoveryAlgorithmData { pub monitoring_configured_timestamp: time::PrimitiveDateTime, }
crates/diesel_models/src/business_profile.rs
diesel_models
struct_definition
21
rust
RevenueRecoveryAlgorithmData
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Stax { fn validate_connector_against_payment_request( &self, capture_method: Option<enums::CaptureMethod>, _payment_method: enums::PaymentMethod, _pmt: Option<enums::PaymentMethodType>, ) -> CustomResult<(), errors::ConnectorError> { let captu...
crates/hyperswitch_connectors/src/connectors/stax.rs
hyperswitch_connectors
impl_block
152
rust
null
Stax
ConnectorValidation for
impl ConnectorValidation for for Stax
null
null
null
null
null
null
null
null
impl ConnectorValidation for Globalpay { fn validate_mandate_payment( &self, pm_type: Option<enums::PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { let mandate_supported_pmd = std::collections::HashSet::from([ PaymentMet...
crates/hyperswitch_connectors/src/connectors/globalpay.rs
hyperswitch_connectors
impl_block
148
rust
null
Globalpay
ConnectorValidation for
impl ConnectorValidation for for Globalpay
null
null
null
null
null
null
null
null
pub struct ConfigMetadata { pub merchant_config_currency: Option<InputData>, pub merchant_account_id: Option<InputData>, pub account_name: Option<InputData>, pub account_type: Option<InputData>, pub terminal_id: Option<InputData>, pub google_pay: Option<Vec<InputData>>, pub apple_pay: Option...
crates/connector_configs/src/connector.rs
connector_configs
struct_definition
390
rust
ConfigMetadata
null
null
null
null
null
null
null
null
null
null
null
pub struct AvsResponse { street_match: Option<String>, postal_code_match: Option<String>, }
crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
AvsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct Algorithm { data: serde_json::Value, }
crates/router/src/core/three_ds_decision_rule.rs
router
struct_definition
13
rust
Algorithm
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Paybox {}
crates/hyperswitch_connectors/src/connectors/paybox.rs
hyperswitch_connectors
impl_block
9
rust
null
Paybox
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Paybox
null
null
null
null
null
null
null
null
impl api::PaymentSession for UnifiedAuthenticationService {}
crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs
hyperswitch_connectors
impl_block
10
rust
null
UnifiedAuthenticationService
api::PaymentSession for
impl api::PaymentSession for for UnifiedAuthenticationService
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for HyperswitchVault { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImp...
crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs
hyperswitch_connectors
impl_block
212
rust
null
HyperswitchVault
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for HyperswitchVault
null
null
null
null
null
null
null
null
pub struct BlocklistFingerprint { pub merchant_id: common_utils::id_type::MerchantId, pub fingerprint_id: String, pub data_kind: common_enums::BlocklistDataKind, pub encrypted_fingerprint: String, pub created_at: time::PrimitiveDateTime, }
crates/diesel_models/src/blocklist_fingerprint.rs
diesel_models
struct_definition
61
rust
BlocklistFingerprint
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/blocklist_fingerprint.rs Public functions: 2 use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods}; use super::generics; use crate::{ blocklist_fingerprint::{BlocklistFingerprint, BlocklistFingerprintNew}, schema::blocklist_fingerprint::dsl, P...
crates/diesel_models/src/query/blocklist_fingerprint.rs
diesel_models
full_file
246
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/three_ds_decision_rule.rs Public functions: 2 Public structs: 1 pub mod utils; use common_types::three_ds_decision_rule_engine::ThreeDSDecisionRule; use common_utils::ext_traits::ValueExt; use error_stack::ResultExt; use euclid::{ backend::{self, inputs as dsl_inputs, EuclidBackend}...
crates/router/src/core/three_ds_decision_rule.rs
router
full_file
712
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/external_services/src/file_storage/aws_s3.rs Public structs: 1 use aws_config::meta::region::RegionProviderChain; use aws_sdk_s3::{ operation::{ delete_object::DeleteObjectError, get_object::GetObjectError, put_object::PutObjectError, }, Client, }; use aws_sdk_sts::config::Region; use...
crates/external_services/src/file_storage/aws_s3.rs
external_services
full_file
1,192
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/boku/transformers.rs Public structs: 17 use std::fmt; use common_enums::enums; use common_utils::{request::Method, types::MinorUnit}; use hyperswitch_domain_models::{ payment_method_data::{PaymentMethodData, WalletData}, router_data::{ConnectorAuthType, Rout...
crates/hyperswitch_connectors/src/connectors/boku/transformers.rs
hyperswitch_connectors
full_file
4,007
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ErrorDetails { #[serde(rename = "type")] pub error_type: Option<String>, pub code: Option<String>, pub field: Option<String>, pub message: Option<String>, pub additional_info: Option<String>, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
ErrorDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentDetails { payment_intent: String, can_handle_pending_authorization: bool, charge_amount: ChargeAmount, total_order_amount: ChargeAmount, presentment_currency: String, soft_descriptor: String, allow_overcharge: bool, extend_expiration: bool, }
crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
hyperswitch_connectors
struct_definition
63
rust
PaymentDetails
null
null
null
null
null
null
null
null
null
null
null
pub fn is_zero_decimal_currency(self) -> bool { match self { Self::BIF | Self::CLP | Self::DJF | Self::GNF | Self::IRR | Self::JPY | Self::KMF | Self::KRW | Self::MGA | Self::PYG |...
crates/common_enums/src/enums.rs
common_enums
function_signature
1,121
rust
null
null
null
null
is_zero_decimal_currency
null
null
null
null
null
null
null
pub fn get_id(&self) -> &id_type::GlobalPaymentId { &self.id }
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
function_signature
23
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
pub struct RevenueRecoveryPaymentProcessTrackerMapping { /// Default (fallback) retry configuration used when no merchant-specific retry configuration /// exists. pub default_mapping: RetryMapping, /// Merchant-specific retry configuration. pub custom_merchant_mapping: HashMap<common_utils::id_type...
crates/scheduler/src/consumer/types/process_data.rs
scheduler
struct_definition
67
rust
RevenueRecoveryPaymentProcessTrackerMapping
null
null
null
null
null
null
null
null
null
null
null
impl<const T: u8> ConnectorAccessToken for DummyConnector<T> {}
crates/hyperswitch_connectors/src/connectors/dummyconnector.rs
hyperswitch_connectors
impl_block
15
rust
null
DummyConnector
ConnectorAccessToken for
impl ConnectorAccessToken for for DummyConnector
null
null
null
null
null
null
null
null
impl OrganizationNew { pub fn new(org_type: OrganizationType, org_name: Option<String>) -> Self { Self { org_id: id_type::OrganizationId::default(), org_type, org_name, } } }
crates/api_models/src/organization.rs
api_models
impl_block
51
rust
null
OrganizationNew
null
impl OrganizationNew
null
null
null
null
null
null
null
null
impl api::RefundSync for Wellsfargopayout {}
crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs
hyperswitch_connectors
impl_block
13
rust
null
Wellsfargopayout
api::RefundSync for
impl api::RefundSync for for Wellsfargopayout
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/trustpay.rs use std::str::FromStr; use hyperswitch_domain_models::address::{Address, AddressDetails}; use masking::Secret; use router::types::{self, api, domain, storage::enums, BrowserInformation}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[deriv...
crates/router/tests/connectors/trustpay.rs
router
full_file
1,750
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn route_connector_v1_for_payouts( state: &SessionState, merchant_context: &domain::MerchantContext, business_profile: &domain::Profile, transaction_data: &payouts::PayoutData, routing_data: &mut storage::RoutingData, eligible_connectors: Option<Vec<enums::RoutableConnectors>>, ) -> Ro...
crates/router/src/core/payments.rs
router
function_signature
527
rust
null
null
null
null
route_connector_v1_for_payouts
null
null
null
null
null
null
null
/// A message that can be sent. pub trait Message { /// The type of the event used for categorization by the event publisher. type Class; /// The type of the event used for categorization by the event publisher. fn get_message_class(&self) -> Self::Class; /// The (unique) identifier of the event. ...
crates/events/src/lib.rs
events
trait_definition
82
rust
null
null
Message
null
null
null
null
null
null
null
null
null
pub async fn payments_capture( state: web::Data<app::AppState>, req: actix_web::HttpRequest, json_payload: web::Json<payment_types::PaymentsCaptureRequest>, path: web::Path<common_utils::id_type::PaymentId>, ) -> impl Responder { let payment_id = path.into_inner(); tracing::Span::current().recor...
crates/router/src/routes/payments.rs
router
function_signature
342
rust
null
null
null
null
payments_capture
null
null
null
null
null
null
null
pub struct Profile { id: common_utils::id_type::ProfileId, pub merchant_id: common_utils::id_type::MerchantId, pub profile_name: String, pub created_at: time::PrimitiveDateTime, pub modified_at: time::PrimitiveDateTime, pub return_url: Option<common_utils::types::Url>, pub enable_payment_res...
crates/hyperswitch_domain_models/src/business_profile.rs
hyperswitch_domain_models
struct_definition
713
rust
Profile
null
null
null
null
null
null
null
null
null
null
null
impl Eq for RoutableConnectorChoice {}
crates/api_models/src/routing.rs
api_models
impl_block
8
rust
null
RoutableConnectorChoice
Eq for
impl Eq for for RoutableConnectorChoice
null
null
null
null
null
null
null
null
pub struct PlacetopayRsyncRequest { auth: PlacetopayAuth, internal_reference: u64, }
crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
PlacetopayRsyncRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct MifinityPaymentsResponse { payload: Vec<MifinityPayload>, }
crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
MifinityPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/event/events--manual-retry.mdx # Type: Doc File --- openapi: post /events/{merchant_id}/{event_id}/retry ---
api-reference/v1/event/events--manual-retry.mdx
null
doc_file
38
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct QueryBuilder<T> where T: AnalyticsDataSource, AnalyticsCollection: ToSql<T>, { columns: Vec<String>, filters: Filter, group_by: Vec<String>, order_by: Vec<String>, having: Option<Vec<(String, FilterTypes, String)>>, limit_by: Option<LimitByClause>, outer_select: Vec<String...
crates/analytics/src/query.rs
analytics
struct_definition
115
rust
QueryBuilder
null
null
null
null
null
null
null
null
null
null
null
impl UserKeyStoreNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<UserKeyStore> { generics::generic_insert(conn, self).await } }
crates/diesel_models/src/query/user_key_store.rs
diesel_models
impl_block
43
rust
null
UserKeyStoreNew
null
impl UserKeyStoreNew
null
null
null
null
null
null
null
null
pub struct DummyConnectorUpiCollect { vpa_id: Secret<String, pii::UpiVpaMaskingStrategy>, }
crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
DummyConnectorUpiCollect
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Flexiti {}
crates/hyperswitch_connectors/src/connectors/flexiti.rs
hyperswitch_connectors
impl_block
9
rust
null
Flexiti
api::PaymentCapture for
impl api::PaymentCapture for for Flexiti
null
null
null
null
null
null
null
null
pub struct GetPaymentIntentFiltersRequest { pub time_range: TimeRange, #[serde(default)] pub group_by_names: Vec<PaymentIntentDimensions>, }
crates/api_models/src/analytics.rs
api_models
struct_definition
34
rust
GetPaymentIntentFiltersRequest
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/merchant-connector-account/merchant-connector--update.mdx # Type: Doc File --- openapi: post /accounts/{account_id}/connectors/{connector_id} ---
api-reference/v1/merchant-connector-account/merchant-connector--update.mdx
null
doc_file
44
doc
null
null
null
null
null
null
null
null
null
null
null
null
/// Calculate retry counts for exactly the last 30 days pub fn payment_processor_token_retry_info( state: &SessionState, token: &PaymentProcessorTokenStatus, today: Date, network_type: Option<CardNetwork>, ) -> TokenRetryInfo { let card_config = &state.conf.revenue_recove...
crates/router/src/types/storage/revenue_recovery_redis_operation.rs
router
function_signature
343
rust
null
null
null
null
payment_processor_token_retry_info
null
null
null
null
null
null
null
Documentation: api-reference/v2/proxy/proxy.mdx # Type: Doc File --- openapi: post /proxy ---
api-reference/v2/proxy/proxy.mdx
null
doc_file
28
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/euclid/src/backend/vir_interpreter.rs Public structs: 1 pub mod types; use std::fmt::Debug; use serde::{Deserialize, Serialize}; use crate::{ backend::{self, inputs, EuclidBackend}, frontend::{ ast, dir::{self, EuclidDirFilter}, vir, }, }; #[derive(Serialize, Deser...
crates/euclid/src/backend/vir_interpreter.rs
euclid
full_file
5,247
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Void;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
4
rust
Void
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_mca_from_profile_id( state: &SessionState, merchant_context: &domain::MerchantContext, profile_id: &id_type::ProfileId, connector_name: &str, merchant_connector_id: Option<&id_type::MerchantConnectorAccountId>, ) -> RouterResult<payment_helpers::MerchantConnectorAccountType> { l...
crates/router/src/core/payouts.rs
router
function_signature
141
rust
null
null
null
null
get_mca_from_profile_id
null
null
null
null
null
null
null
pub trait SdkEventFilterAnalytics: LoadRow<SdkEventFilter> {}
crates/analytics/src/sdk_events/filters.rs
analytics
trait_definition
16
rust
null
null
SdkEventFilterAnalytics
null
null
null
null
null
null
null
null
null
pub async fn request_for_recon(state: web::Data<AppState>, http_req: HttpRequest) -> HttpResponse { let flow = Flow::ReconServiceRequest; Box::pin(api::server_wrap( flow, state, &http_req, (), |state, user, _, _| recon::send_recon_request(state, user), &authentica...
crates/router/src/routes/recon.rs
router
function_signature
111
rust
null
null
null
null
request_for_recon
null
null
null
null
null
null
null
pub struct DlocalPaymentsRequest { pub amount: MinorUnit, pub currency: enums::Currency, pub country: String, pub payment_method_id: PaymentMethodId, pub payment_method_flow: PaymentMethodFlow, pub payer: Payer, pub card: Option<Card>, pub order_id: String, pub three_dsecure: Option<...
crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs
hyperswitch_connectors
struct_definition
99
rust
DlocalPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/storage_impl/src/mock_db/payouts.rs use common_utils::errors::CustomResult; use diesel_models::enums as storage_enums; use hyperswitch_domain_models::payouts::{ payout_attempt::PayoutAttempt, payouts::{Payouts, PayoutsInterface, PayoutsNew, PayoutsUpdate}, }; use crate::{errors::StorageError, Moc...
crates/storage_impl/src/mock_db/payouts.rs
storage_impl
full_file
1,080
null
null
null
null
null
null
null
null
null
null
null
null
null
"Pāvilosta Municipality" => Ok(Self::PāvilostaMunicipality), "Pļaviņas Municipality" => Ok(Self::PļaviņasMunicipality), "Rauna Municipality" => Ok(Self::RaunaMunicipality), "Riebiņi Municipality" => Ok(Self::RiebiņiMunicipality), "Riga" => ...
crates/hyperswitch_connectors/src/utils.rs#chunk5
hyperswitch_connectors
chunk
8,177
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct DeutschebankThreeDSInitializeResponseProcessed { rc: String, message: String, tx_id: String, }
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
DeutschebankThreeDSInitializeResponseProcessed
null
null
null
null
null
null
null
null
null
null
null
pub fn get_oidc_sso_redirect_url(state: &SessionState, provider: &str) -> String { format!("{}/redirect/oidc/{}", state.conf.user.base_url, provider) }
crates/router/src/utils/user.rs
router
function_signature
42
rust
null
null
null
null
get_oidc_sso_redirect_url
null
null
null
null
null
null
null
pub fn call_decision_manager<F>( state: &SessionState, record: common_types::payments::DecisionManagerRecord, payment_data: &PaymentConfirmData<F>, ) -> RouterResult<Option<enums::AuthenticationType>> where F: Clone, { let payment_method_data = payment_data.get_payment_method_data(); let payment...
crates/router/src/core/payments.rs
router
function_signature
173
rust
null
null
null
null
call_decision_manager
null
null
null
null
null
null
null
impl common_utils::events::ApiEventMetric for EphemeralKey { fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType> { Some(common_utils::events::ApiEventsType::Miscellaneous) } }
crates/diesel_models/src/ephemeral_key.rs
diesel_models
impl_block
54
rust
null
EphemeralKey
common_utils::events::ApiEventMetric for
impl common_utils::events::ApiEventMetric for for EphemeralKey
null
null
null
null
null
null
null
null
File: crates/analytics/src/payments/metrics/payment_success_count.rs use std::collections::HashSet; use api_models::analytics::{ payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use diesel_models::enums as stor...
crates/analytics/src/payments/metrics/payment_success_count.rs
analytics
full_file
974
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Get current date in `yyyy-mm-dd` format. pub fn get_current_date() -> String { let today = date_time::now().date(); let (year, month, day) = (today.year(), today.month(), today.day()); format!("{year:04}-{month:02}-{day:02}",) }
crates/router/src/types/storage/revenue_recovery_redis_operation.rs
router
function_signature
74
rust
null
null
null
null
get_current_date
null
null
null
null
null
null
null
pub struct ExternalVerifyTokenRequest { pub token: Secret<String>, }
crates/api_models/src/external_service_auth.rs
api_models
struct_definition
15
rust
ExternalVerifyTokenRequest
null
null
null
null
null
null
null
null
null
null
null