text
string
file_path
string
module
string
type
string
tokens
int64
language
string
struct_name
string
type_name
string
trait_name
string
impl_type
string
function_name
string
source
string
section
string
keys
list
macro_type
string
url
string
title
string
chunk_index
int64
pub struct ExternalVaultConnectorMetadata { pub proxy_url: common_utils::types::Url, pub certificate: Secret<String>, }
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
struct_definition
27
rust
ExternalVaultConnectorMetadata
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_metadata_by_algorithm_id_profile_id( conn: &PgPooledConn, algorithm_id: &common_utils::id_type::RoutingId, profile_id: &common_utils::id_type::ProfileId, ) -> StorageResult<RoutingProfileMetadata> { Self::table() .select(( dsl::profile_id...
crates/diesel_models/src/query/routing_algorithm.rs
diesel_models
function_signature
339
rust
null
null
null
null
find_metadata_by_algorithm_id_profile_id
null
null
null
null
null
null
null
pub struct GetInfoResponse { pub metrics: Vec<NameDescription>, pub download_dimensions: Option<Vec<NameDescription>>, pub dimensions: Vec<NameDescription>, }
crates/api_models/src/analytics.rs
api_models
struct_definition
36
rust
GetInfoResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct MonerisCard { card_number: cards::CardNumber, expiry_month: Secret<i64>, expiry_year: Secret<i64>, card_security_code: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs
hyperswitch_connectors
struct_definition
43
rust
MonerisCard
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Prophetpay {}
crates/hyperswitch_connectors/src/connectors/prophetpay.rs
hyperswitch_connectors
impl_block
8
rust
null
Prophetpay
api::Payment for
impl api::Payment for for Prophetpay
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::WebhookEventDeliveryAttemptList; let (merchant_id, initial_attempt_id) = path.into_inner(); let request_internal = WebhookDeliveryAttemptListRequestInternal { merchant_id: merchant_id.clone(), initial_attempt_id, }; Box::pin(api::server_wrap( ...
crates/router/src/routes/webhook_events.rs
router
impl_block
189
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/itaubank.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 ItaubankTest; impl ConnectorActions for ItaubankTest {} impl utils::Connector for Ita...
crates/router/tests/connectors/itaubank.rs
router
full_file
2,934
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_routing_algorithm_id<'a>( &'a self, transaction_data: &'a routing::TransactionData<'_>, ) -> Option<id_type::RoutingId> { match transaction_data { routing::TransactionData::Payment(_) => self.profile.routing_algorithm_id.clone(), #[cfg(feature = "payouts")]...
crates/router/src/core/admin.rs
router
function_signature
93
rust
null
null
null
null
get_routing_algorithm_id
null
null
null
null
null
null
null
pub struct Purchase { #[serde(with = "common_utils::custom_serde::iso8601")] created_at: PrimitiveDateTime, order_channel: OrderChannel, total_price: i64, products: Vec<Products>, shipments: Shipments, currency: Option<Currency>, total_shipping_cost: Option<i64>, confirmation_email: ...
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs
hyperswitch_connectors
struct_definition
93
rust
Purchase
null
null
null
null
null
null
null
null
null
null
null
pub struct BraintreeThreeDsErrorResponse { pub code: String, pub message: String, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
BraintreeThreeDsErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Bamboraapac {}
crates/hyperswitch_connectors/src/connectors/bamboraapac.rs
hyperswitch_connectors
impl_block
12
rust
null
Bamboraapac
api::Refund for
impl api::Refund for for Bamboraapac
null
null
null
null
null
null
null
null
File: crates/analytics/src/outgoing_webhook_event.rs mod core; pub mod events; pub trait OutgoingWebhookEventAnalytics: events::OutgoingWebhookLogsFilterAnalytics {} pub use self::core::outgoing_webhook_events_core;
crates/analytics/src/outgoing_webhook_event.rs
analytics
full_file
52
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Payone { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&PAYONE_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { None } fn get_supported_webhook_flows(&self) -> Option<&'...
crates/hyperswitch_connectors/src/connectors/payone.rs
hyperswitch_connectors
impl_block
92
rust
null
Payone
ConnectorSpecifications for
impl ConnectorSpecifications for for Payone
null
null
null
null
null
null
null
null
pub struct RoutingActivatePayload { pub transaction_type: Option<TransactionType>, }
crates/api_models/src/routing.rs
api_models
struct_definition
16
rust
RoutingActivatePayload
null
null
null
null
null
null
null
null
null
null
null
pub struct OperationProperties { operations: Vec<Conversion>, flows: Vec<Derives>, }
crates/router_derive/src/macros/operation.rs
router_derive
struct_definition
21
rust
OperationProperties
null
null
null
null
null
null
null
null
null
null
null
impl std::ops::Deref for RedisValue { type Target = FredRedisValue; fn deref(&self) -> &Self::Target { &self.inner } }
crates/redis_interface/src/types.rs
redis_interface
impl_block
40
rust
null
RedisValue
std::ops::Deref for
impl std::ops::Deref for for RedisValue
null
null
null
null
null
null
null
null
pub fn new( status: DummyConnectorStatus, id: String, currency: Currency, created: PrimitiveDateTime, payment_amount: i64, refund_amount: i64, ) -> Self { Self { status, id, currency, created, payment...
crates/router/src/routes/dummy_connector/types.rs
router
function_signature
75
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub fn server(config: AppState) -> Scope { web::scope("/poll") .app_data(web::Data::new(config)) .service( web::resource("/status/{poll_id}").route(web::get().to(poll::retrieve_poll_status)), ) }
crates/router/src/routes/app.rs
router
function_signature
60
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub struct DisputeNew { pub dispute_id: String, pub amount: StringMinorUnit, pub currency: String, pub dispute_stage: storage_enums::DisputeStage, pub dispute_status: storage_enums::DisputeStatus, pub payment_id: common_utils::id_type::PaymentId, pub attempt_id: String, pub merchant_id: ...
crates/diesel_models/src/dispute.rs
diesel_models
struct_definition
243
rust
DisputeNew
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundData { amount: u64, currency: common_enums::Currency, payment_type: Option<String>, tid: Option<Secret<i64>>, }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
40
rust
RefundData
null
null
null
null
null
null
null
null
null
null
null
pub struct ValuedRule<O> { pub name: String, pub connector_selection: O, pub statements: Vec<ValuedIfStatement>, }
crates/euclid/src/frontend/vir.rs
euclid
struct_definition
33
rust
ValuedRule
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Worldpayxml {}
crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
hyperswitch_connectors
impl_block
10
rust
null
Worldpayxml
api::PaymentToken for
impl api::PaymentToken for for Worldpayxml
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/merchant_context.rs Public functions: 2 Public structs: 1 pub use crate::{merchant_account::MerchantAccount, merchant_key_store::MerchantKeyStore}; /// `MerchantContext` represents the authentication and operational context for a merchant. /// /// This enum encapsulates th...
crates/hyperswitch_domain_models/src/merchant_context.rs
hyperswitch_domain_models
full_file
257
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/payouts/{payout_id}/fulfill" { "post": { "tags": [ "Payouts" ], "summary": "Payouts - Fulfill", "operationId": "Fulfill a Payout", "parameters": [ { "name": "payout_id", "in": "path", "description": "The identifier for payout", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
268
.json
null
null
null
null
null
openapi_spec
paths
[ "/payouts/{payout_id}/fulfill" ]
null
null
null
null
pub struct TokenizedCardValue2 { pub card_security_code: Option<String>, pub card_fingerprint: Option<String>, pub external_id: Option<String>, pub customer_id: Option<id_type::CustomerId>, pub payment_method_id: Option<String>, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
56
rust
TokenizedCardValue2
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Trustpay { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&TRUSTPAY_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*TRUSTPAY_SUPPORTED_PAYMENT_METHODS) } fn get_s...
crates/hyperswitch_connectors/src/connectors/trustpay.rs
hyperswitch_connectors
impl_block
108
rust
null
Trustpay
ConnectorSpecifications for
impl ConnectorSpecifications for for Trustpay
null
null
null
null
null
null
null
null
impl ApiEventMetric for AuthenticationResponse { fn get_api_event_type(&self) -> Option<ApiEventsType> { Some(ApiEventsType::Authentication { authentication_id: self.authentication_id.clone(), }) } }
crates/api_models/src/authentication.rs
api_models
impl_block
47
rust
null
AuthenticationResponse
ApiEventMetric for
impl ApiEventMetric for for AuthenticationResponse
null
null
null
null
null
null
null
null
File: crates/router/src/cors.rs Public functions: 1 // use actix_web::http::header; use crate::configs::settings; pub fn cors(config: settings::CorsSettings) -> actix_cors::Cors { let allowed_methods = config.allowed_methods.iter().map(|s| s.as_str()); let mut cors = actix_cors::Cors::default() .al...
crates/router/src/cors.rs
router
full_file
200
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BarclaycardVoidRequest { client_reference_information: ClientReferenceInformation, reversal_information: ReversalInformation, #[serde(skip_serializing_if = "Option::is_none")] merchant_defined_information: Option<Vec<MerchantDefinedInformation>>, // The connector documentation does not me...
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
80
rust
BarclaycardVoidRequest
null
null
null
null
null
null
null
null
null
null
null
request_return_url: Option<&String>, client_secret: Option<&masking::Secret<String>>, manual_retry_allowed: Option<bool>, ) -> RouterResult<String> { // take return url if provided in the request else use merchant return url let url = request_return_url .or(business_profile.return_url.as_ref...
crates/router/src/core/payments/helpers.rs#chunk3
router
chunk
8,185
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Capturable for PaymentsUpdateMetadataData {}
crates/router/src/types.rs
router
impl_block
9
rust
null
PaymentsUpdateMetadataData
Capturable for
impl Capturable for for PaymentsUpdateMetadataData
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RealTimePaymentData { "oneOf": [ { "type": "object", "required": [ "fps" ], "properties": { "fps": { "type": "object" } } }, { "type": "object", "required": [ "duit_now" ], ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
205
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RealTimePaymentData" ]
null
null
null
null
pub async fn find_by_merchant_id_dispute_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, dispute_id: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::merchant_id ...
crates/diesel_models/src/query/dispute.rs
diesel_models
function_signature
111
rust
null
null
null
null
find_by_merchant_id_dispute_id
null
null
null
null
null
null
null
File: crates/router_derive/src/macros/operation.rs Public functions: 1 Public structs: 1 use std::str::FromStr; use proc_macro2::{Span, TokenStream}; use quote::{quote, ToTokens}; use strum::IntoEnumIterator; use syn::{self, parse::Parse, DeriveInput}; use crate::macros::helpers; #[derive(Debug, Clone, Copy, stru...
crates/router_derive/src/macros/operation.rs
router_derive
full_file
3,569
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_convertor: &FloatMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs
hyperswitch_connectors
function_signature
29
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct CybersourceVoidRequest { client_reference_information: ClientReferenceInformation, reversal_information: ReversalInformation, #[serde(skip_serializing_if = "Option::is_none")] merchant_defined_information: Option<Vec<MerchantDefinedInformation>>, // The connector documentation does not me...
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
80
rust
CybersourceVoidRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct ActivePaymentsMetricsBucketValue { pub active_payments: Option<u64>, }
crates/api_models/src/analytics/active_payments.rs
api_models
struct_definition
19
rust
ActivePaymentsMetricsBucketValue
null
null
null
null
null
null
null
null
null
null
null
pub fn get_user_id(&self) -> &str { self.0.user_id.as_str() }
crates/router/src/types/domain/user.rs
router
function_signature
23
rust
null
null
null
null
get_user_id
null
null
null
null
null
null
null
pub struct ExternalVaultCreateFlow;
crates/hyperswitch_domain_models/src/router_flow_types/vault.rs
hyperswitch_domain_models
struct_definition
7
rust
ExternalVaultCreateFlow
null
null
null
null
null
null
null
null
null
null
null
pub fn new(reference: String) -> Self { Self { reference } }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
function_signature
17
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl ConnectorErrorTypeMapping for Payone { fn get_connector_error_type( &self, error_code: String, _error_message: String, ) -> ConnectorErrorType { match error_code.as_str() { "30001101" => ConnectorErrorType::BusinessError, "30001100" => ConnectorErrorT...
crates/hyperswitch_connectors/src/connectors/payone.rs
hyperswitch_connectors
impl_block
671
rust
null
Payone
ConnectorErrorTypeMapping for
impl ConnectorErrorTypeMapping for for Payone
null
null
null
null
null
null
null
null
impl api::RefundSync for Santander {}
crates/hyperswitch_connectors/src/connectors/santander.rs
hyperswitch_connectors
impl_block
10
rust
null
Santander
api::RefundSync for
impl api::RefundSync for for Santander
null
null
null
null
null
null
null
null
pub async fn refunds_list( state: web::Data<AppState>, req: HttpRequest, payload: web::Json<api_models::refunds::RefundListRequest>, ) -> HttpResponse { let flow = Flow::RefundsList; Box::pin(api::server_wrap( flow, state, &req, payload.into_inner(), |state, a...
crates/router/src/routes/refunds.rs
router
function_signature
183
rust
null
null
null
null
refunds_list
null
null
null
null
null
null
null
pub async fn refund_filter_list( state: SessionState, merchant_context: domain::MerchantContext, req: common_utils::types::TimeRange, ) -> RouterResponse<api_models::refunds::RefundListMetaData> { let db = state.store; let filter_list = db .filter_refund_by_meta_constraints( merc...
crates/router/src/core/refunds.rs
router
function_signature
133
rust
null
null
null
null
refund_filter_list
null
null
null
null
null
null
null
pub struct KafkaPaymentIntent<'a> { pub payment_id: &'a id_type::GlobalPaymentId, pub merchant_id: &'a id_type::MerchantId, pub status: storage_enums::IntentStatus, pub amount: common_types::MinorUnit, pub currency: storage_enums::Currency, pub amount_captured: Option<common_types::MinorUnit>, ...
crates/router/src/services/kafka/payment_intent.rs
router
struct_definition
899
rust
KafkaPaymentIntent
null
null
null
null
null
null
null
null
null
null
null
## 2024.06.04.0 ### Features - **connector:** [AUTHORIZEDOTNET] Support payment_method_id in recurring mandate payment ([#4841](https://github.com/juspay/hyperswitch/pull/4841)) ([`a1788b8`](https://github.com/juspay/hyperswitch/commit/a1788b8da942f0e32a80b37eac4eecece2bef77d)) - **consolidated-kafka-events:** Add co...
CHANGELOG.md#chunk31
null
doc_chunk
8,092
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ServiceSessionIds { pub client_id: Option<String>, pub service_id: Option<String>, pub correlation_id: Option<String>, pub client_reference_id: Option<String>, pub merchant_transaction_id: Option<String>, pub x_src_flow_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
hyperswitch_connectors
struct_definition
59
rust
ServiceSessionIds
null
null
null
null
null
null
null
null
null
null
null
pub struct SmtpServer { /// sender email id pub sender: String, /// SMTP server specific configs pub smtp_config: SmtpServerConfig, }
crates/external_services/src/email/smtp.rs
external_services
struct_definition
36
rust
SmtpServer
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { let mut route = web::scope("/user").app_data(web::Data::new(state.clone())); route = route .service(web::resource("").route(web::get().to(user::get_user_details))) .service(web::resource("/signin").route(web::post().to(user::user_signin)...
crates/router/src/routes/app.rs
router
function_signature
2,667
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub async fn accept_invitations_pre_auth( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<user_role_api::AcceptInvitationsPreAuthRequest>, ) -> HttpResponse { let flow = Flow::AcceptInvitationsPreAuth; let payload = json_payload.into_inner(); Box::pin(api::server_wrap( ...
crates/router/src/routes/user_role.rs
router
function_signature
157
rust
null
null
null
null
accept_invitations_pre_auth
null
null
null
null
null
null
null
impl Payment for Threedsecureio {}
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
hyperswitch_connectors
impl_block
8
rust
null
Threedsecureio
Payment for
impl Payment for for Threedsecureio
null
null
null
null
null
null
null
null
pub fn get_dispute_dimensions() -> Vec<NameDescription> { DisputeDimensions::iter().map(Into::into).collect() }
crates/analytics/src/utils.rs
analytics
function_signature
30
rust
null
null
null
null
get_dispute_dimensions
null
null
null
null
null
null
null
pub struct Nuvei { pub amount_convertor: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/nuvei.rs
hyperswitch_connectors
struct_definition
30
rust
Nuvei
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Breadpay {}
crates/hyperswitch_connectors/src/connectors/breadpay.rs
hyperswitch_connectors
impl_block
10
rust
null
Breadpay
api::RefundSync for
impl api::RefundSync for for Breadpay
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::ApiKeyCreate; let payload = json_payload.into_inner(); let merchant_id = path.into_inner(); Box::pin(api::server_wrap( flow, state, &req, payload, |state, auth_data, payload, _| async { api_keys::create_api_key(state,...
crates/router/src/routes/api_keys.rs
router
impl_block
180
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct RiskifiedFulfillmentRequest { order: OrderFulfillment, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
18
rust
RiskifiedFulfillmentRequest
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ThreeDSDecisionRule { "type": "object", "description": "Struct representing the output configuration for the 3DS Decision Rule Engine.", "required": [ "decision" ], "properties": { "decision": { "$ref": "#/components/schemas/ThreeDSDecision" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
81
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ThreeDSDecisionRule" ]
null
null
null
null
impl GetAuthType for PublishableKeyAuth { fn get_auth_type(&self) -> detached::PayloadType { detached::PayloadType::PublishableKey } }
crates/router/src/services/authentication.rs
router
impl_block
37
rust
null
PublishableKeyAuth
GetAuthType for
impl GetAuthType for for PublishableKeyAuth
null
null
null
null
null
null
null
null
pub struct GenericLinkNew { pub link_id: String, pub primary_reference: String, pub merchant_id: common_utils::id_type::MerchantId, #[serde(with = "common_utils::custom_serde::iso8601::option")] pub created_at: Option<PrimitiveDateTime>, #[serde(with = "common_utils::custom_serde::iso8601::optio...
crates/diesel_models/src/generic_link.rs
diesel_models
struct_definition
171
rust
GenericLinkNew
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/bulk_tokenization.rs Public structs: 4 use api_models::{payment_methods as payment_methods_api, payments as payments_api}; use cards::CardNumber; use common_enums as enums; use common_utils::{ errors, ext_traits::OptionExt, id_type, pii, transformers::{Foreig...
crates/hyperswitch_domain_models/src/bulk_tokenization.rs
hyperswitch_domain_models
full_file
2,535
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AnyPurposeOrLoginTokenAuth;
crates/router/src/services/authentication.rs
router
struct_definition
9
rust
AnyPurposeOrLoginTokenAuth
null
null
null
null
null
null
null
null
null
null
null
pub struct VariableDeletePaymentMethodFromVaultInput { input: DeletePaymentMethodFromVaultInputData, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
VariableDeletePaymentMethodFromVaultInput
null
null
null
null
null
null
null
null
null
null
null
/// Provides us with all the configured configs of the Merchant in the ascending time configured /// manner and chooses the first of them pub async fn get_merchant_default_config( db: &dyn StorageInterface, // Cannot make this as merchant id domain type because, we are passing profile id also here merchant_...
crates/router/src/core/routing/helpers.rs
router
function_signature
368
rust
null
null
null
null
get_merchant_default_config
null
null
null
null
null
null
null
pub async fn call_surcharge_decision_management( state: routes::SessionState, merchant_context: &domain::MerchantContext, business_profile: &Profile, payment_attempt: &storage::PaymentAttempt, payment_intent: storage::PaymentIntent, billing_address: Option<domain::Address>, response_payment_...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
490
rust
null
null
null
null
call_surcharge_decision_management
null
null
null
null
null
null
null
pub async fn organization_retrieve() {}
crates/openapi/src/routes/organization.rs
openapi
function_signature
8
rust
null
null
null
null
organization_retrieve
null
null
null
null
null
null
null
"type": "disable_only", "list": ["FR", "DE","IN"] }, "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ]))] pub payment_methods_enabled: Option<Vec<...
crates/api_models/src/admin.rs#chunk2
api_models
chunk
8,174
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Jpmorgan {}
crates/hyperswitch_connectors/src/connectors/jpmorgan.rs
hyperswitch_connectors
impl_block
11
rust
null
Jpmorgan
api::RefundSync for
impl api::RefundSync for for Jpmorgan
null
null
null
null
null
null
null
null
pub struct RefundProcessedAmount;
crates/api_models/src/analytics/refunds.rs
api_models
struct_definition
7
rust
RefundProcessedAmount
null
null
null
null
null
null
null
null
null
null
null
impl Cards { pub fn server(state: AppState) -> Scope { web::scope("/cards") .app_data(web::Data::new(state)) .service(web::resource("/create").route(web::post().to(create_cards_info))) .service(web::resource("/update").route(web::post().to(update_cards_info))) ...
crates/router/src/routes/app.rs
router
impl_block
116
rust
null
Cards
null
impl Cards
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ToggleDynamicRoutingQuery { "type": "object", "required": [ "enable" ], "properties": { "enable": { "$ref": "#/components/schemas/DynamicRoutingFeatures" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
61
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ToggleDynamicRoutingQuery" ]
null
null
null
null
pub(super) async fn get_or_create_customer_details( _state: &SessionState, _customer_details: &CustomerDetails, _merchant_context: &domain::MerchantContext, ) -> RouterResult<Option<domain::Customer>> { todo!() }
crates/router/src/core/payouts/helpers.rs
router
function_signature
55
rust
null
null
null
null
get_or_create_customer_details
null
null
null
null
null
null
null
pub struct UnifiedAuthenticationService { amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs
hyperswitch_connectors
struct_definition
28
rust
UnifiedAuthenticationService
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::VolumeSplitOnRoutingType; let payload = path.into_inner(); Box::pin(oss_api::server_wrap( flow, state, &req, payload.clone(), |state, auth: auth::AuthenticationData, payload, _| { let merchant_context = domain::MerchantCo...
crates/router/src/routes/routing.rs
router
impl_block
208
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct Settings { pub coupons: Option<Coupons>, pub gateways: Option<Gateways>, }
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
Settings
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/api/payouts.rs //! Payouts interface use hyperswitch_domain_models::{ router_flow_types::payouts::{ PoCancel, PoCreate, PoEligibility, PoFulfill, PoQuote, PoRecipient, PoRecipientAccount, PoSync, }, router_request_types::PayoutsData, router_respo...
crates/hyperswitch_interfaces/src/api/payouts.rs
hyperswitch_interfaces
full_file
468
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ApplicationInformation { status: Option<BankofamericaPaymentStatus>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
ApplicationInformation
null
null
null
null
null
null
null
null
null
null
null
impl Responder { use crate::db::domain::merchant_context; let flow = Flow::PaymentsRetrieveUsingMerchantReferenceId; let header_payload = match HeaderPayload::foreign_try_from(req.headers()) { Ok(headers) => headers, Err(err) => { return api::log_and_return_error_response(err); ...
crates/router/src/routes/payments.rs
router
impl_block
245
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub fn validate_payment_method_update( card_updation_obj: CardDetailUpdate, existing_card_data: api::CardDetailFromLocker, ) -> bool { // Return true If any one of the below condition returns true, // If a field is not passed in the update request, return false. // If the field is present, it depend...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
386
rust
null
null
null
null
validate_payment_method_update
null
null
null
null
null
null
null
pub async fn customers_create( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<customers::CustomerRequest>, ) -> HttpResponse { let flow = Flow::CustomersCreate; Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inner(), |st...
crates/router/src/routes/customers.rs
router
function_signature
207
rust
null
null
null
null
customers_create
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/payouts/filter" { "post": { "tags": [ "Payouts" ], "summary": "Payouts - List available filters", "operationId": "List available payout filters", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/compone...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
184
.json
null
null
null
null
null
openapi_spec
paths
[ "/payouts/filter" ]
null
null
null
null
pub async fn reset_totp( state: SessionState, user_token: auth::UserFromToken, ) -> UserResponse<user_api::BeginTotpResponse> { let user_from_db: domain::UserFromStorage = state .global_store .find_user_by_id(&user_token.user_id) .await .change_context(UserErrors::InternalSer...
crates/router/src/core/user.rs
router
function_signature
300
rust
null
null
null
null
reset_totp
null
null
null
null
null
null
null
pub struct RefundsData { pub refund_id: String, pub connector_transaction_id: String, pub connector_refund_id: Option<String>, pub currency: storage_enums::Currency, /// Amount for the payment against which this refund is issued pub payment_amount: i64, pub reason: Option<String>, pub ...
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
273
rust
RefundsData
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentsCancelPostCaptureRequest { "type": "object", "description": "Request to cancel a payment when the payment is already captured", "properties": { "cancellation_reason": { "type": "string", "description": "The reason for the payment cancel", "nulla...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
82
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentsCancelPostCaptureRequest" ]
null
null
null
null
pub struct PayuAuthType { pub(super) api_key: Secret<String>, pub(super) merchant_pos_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
PayuAuthType
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Ebanx {}
crates/hyperswitch_connectors/src/connectors/ebanx.rs
hyperswitch_connectors
impl_block
11
rust
null
Ebanx
api::RefundSync for
impl api::RefundSync for for Ebanx
null
null
null
null
null
null
null
null
pub fn get_total_amount(&self) -> MinorUnit { self.amount_details.get_net_amount() }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
22
rust
null
null
null
null
get_total_amount
null
null
null
null
null
null
null
File: crates/router/src/consts/opensearch.rs use api_models::analytics::search::SearchIndex; pub const fn get_search_indexes() -> [SearchIndex; 8] { [ SearchIndex::PaymentAttempts, SearchIndex::PaymentIntents, SearchIndex::Refunds, SearchIndex::Disputes, SearchIndex::Sessio...
crates/router/src/consts/opensearch.rs
router
full_file
130
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Nmi {}
crates/hyperswitch_connectors/src/connectors/nmi.rs
hyperswitch_connectors
impl_block
11
rust
null
Nmi
api::MandateSetup for
impl api::MandateSetup for for Nmi
null
null
null
null
null
null
null
null
impl RefundExecute for Netcetera {}
crates/hyperswitch_connectors/src/connectors/netcetera.rs
hyperswitch_connectors
impl_block
10
rust
null
Netcetera
RefundExecute for
impl RefundExecute for for Netcetera
null
null
null
null
null
null
null
null
pub fn get_dotted_jws(jws: encryption::JwsBody) -> String { let header = jws.header; let payload = jws.payload; let signature = jws.signature; format!("{header}.{payload}.{signature}") }
crates/router/src/core/payment_methods/transformers.rs
router
function_signature
53
rust
null
null
null
null
get_dotted_jws
null
null
null
null
null
null
null
impl ConnectorValidation for Multisafepay { fn validate_mandate_payment( &self, pm_type: Option<enums::PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { let mandate_supported_pmd = std::collections::HashSet::from([ Payment...
crates/hyperswitch_connectors/src/connectors/multisafepay.rs
hyperswitch_connectors
impl_block
109
rust
null
Multisafepay
ConnectorValidation for
impl ConnectorValidation for for Multisafepay
null
null
null
null
null
null
null
null
pub struct ThreeDsResponseData { pub three_ds_auth_response: ThreeDsAuthDetails, }
crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
ThreeDsResponseData
null
null
null
null
null
null
null
null
null
null
null
pub struct ThreeDSMethodDataForm { // base64 encoded value for 3ds method data collection #[serde(rename = "threeDSMethodData")] pub three_ds_method_data: String, }
crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
ThreeDSMethodDataForm
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Authorizedotnet {}
crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs
hyperswitch_connectors
impl_block
10
rust
null
Authorizedotnet
api::PaymentVoid for
impl api::PaymentVoid for for Authorizedotnet
null
null
null
null
null
null
null
null
Web Documentation: Reconciliation V1 | Hyperswitch # Type: Web Doc The Reconciliation module in Hyperswitch automates financial reconciliation, providing businesses with greater accuracy and control over their financial processes. It simplifies transaction matching for financial operations (FinOps) teams, ensuring sea...
https://docs.hyperswitch.io/about-hyperswitch/payments-modules/reconciliation
null
web_doc_file
1,031
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/about-hyperswitch/payments-modules/reconciliation
Reconciliation V1 | Hyperswitch
null
OpenAPI Block Path: components.schemas.MerchantAccountType { "type": "string", "enum": [ "standard", "platform", "connected" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
41
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantAccountType" ]
null
null
null
null
pub struct RequestResponseMetricsMiddleware<S> { service: std::rc::Rc<S>, }
crates/router/src/middleware.rs
router
struct_definition
21
rust
RequestResponseMetricsMiddleware
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Mollie {}
crates/hyperswitch_connectors/src/connectors/mollie.rs
hyperswitch_connectors
impl_block
8
rust
null
Mollie
ConnectorValidation for
impl ConnectorValidation for for Mollie
null
null
null
null
null
null
null
null
impl Razorpay { pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/razorpay.rs
hyperswitch_connectors
impl_block
33
rust
null
Razorpay
null
impl Razorpay
null
null
null
null
null
null
null
null
impl ConnectorRedirectResponse for Paypal { fn get_flow_type( &self, _query_params: &str, _json_payload: Option<serde_json::Value>, action: PaymentAction, ) -> CustomResult<CallConnectorAction, errors::ConnectorError> { match action { PaymentAction::PSync ...
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
impl_block
104
rust
null
Paypal
ConnectorRedirectResponse for
impl ConnectorRedirectResponse for for Paypal
null
null
null
null
null
null
null
null