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 async fn check_user_in_blacklist<A: SessionStateInfo>( state: &A, user_id: &str, token_expiry: u64, ) -> RouterResult<bool> { let token = format!("{USER_BLACKLIST_PREFIX}{user_id}"); let token_issued_at = expiry_to_i64(token_expiry - JWT_TOKEN_TIME_IN_SECS)?; let redis_conn = get_redis_conne...
crates/router/src/services/authentication/blacklist.rs
router
function_signature
141
rust
null
null
null
null
check_user_in_blacklist
null
null
null
null
null
null
null
File: crates/pm_auth/src/connector/plaid.rs Public structs: 1 pub mod transformers; use std::fmt::Debug; use common_utils::{ ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, }; use error_stack::ResultExt; use masking::{Mask, Maskable}; use transformers as plaid; use crate::...
crates/pm_auth/src/connector/plaid.rs
pm_auth
full_file
3,149
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn generic_find_by_id_optional<T, Pk, R>( conn: &PgPooledConn, id: Pk, ) -> StorageResult<Option<R>> where T: FindDsl<Pk> + HasTable<Table = T> + LimitDsl + Table + 'static, <T as HasTable>::Table: FindDsl<Pk>, Find<T, Pk>: LimitDsl + QueryFragment<Pg> + RunQueryDsl<PgConnection> + Send + ...
crates/diesel_models/src/query/generics.rs
diesel_models
function_signature
171
rust
null
null
null
null
generic_find_by_id_optional
null
null
null
null
null
null
null
Documentation: api-reference/v1/payment-methods/list-payment-methods-for-a-merchant.mdx # Type: Doc File --- openapi: get /account/payment_methods ---
api-reference/v1/payment-methods/list-payment-methods-for-a-merchant.mdx
null
doc_file
37
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub fn generate_signature( &self, auth: wellsfargo::WellsfargoAuthType, host: String, resource: &str, payload: &String, date: OffsetDateTime, http_method: Method, ) -> CustomResult<String, errors::ConnectorError> { let wellsfargo::WellsfargoAuthType { ...
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs
hyperswitch_connectors
function_signature
480
rust
null
null
null
null
generate_signature
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for UnifiedAuthenticationService {}
crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs
hyperswitch_connectors
impl_block
10
rust
null
UnifiedAuthenticationService
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for UnifiedAuthenticationService
null
null
null
null
null
null
null
null
pub struct Bitpay { amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/bitpay.rs
hyperswitch_connectors
struct_definition
27
rust
Bitpay
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Gpayments {}
crates/hyperswitch_connectors/src/connectors/gpayments.rs
hyperswitch_connectors
impl_block
9
rust
null
Gpayments
api::PaymentToken for
impl api::PaymentToken for for Gpayments
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Gocardless {}
crates/hyperswitch_connectors/src/connectors/gocardless.rs
hyperswitch_connectors
impl_block
10
rust
null
Gocardless
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Gocardless
null
null
null
null
null
null
null
null
impl DynamicRoutingConfigParamsInterpolator { pub fn new( payment_method: Option<common_enums::PaymentMethod>, payment_method_type: Option<common_enums::PaymentMethodType>, authentication_type: Option<common_enums::AuthenticationType>, currency: Option<common_enums::Currency>, ...
crates/router/src/core/routing/helpers.rs
router
impl_block
458
rust
null
DynamicRoutingConfigParamsInterpolator
null
impl DynamicRoutingConfigParamsInterpolator
null
null
null
null
null
null
null
null
pub fn new() -> Self { Self { state: std::marker::PhantomData, customer: None, card: None, card_cvc: None, network_token: None, stored_card: None, stored_token: None, payment_method_response: None, card_t...
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
function_signature
86
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct RevenueRecoveryRecordBackResponse { pub merchant_reference_id: common_utils::id_type::PaymentReferenceId, }
crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.rs
hyperswitch_domain_models
struct_definition
26
rust
RevenueRecoveryRecordBackResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn generate_signature( &self, auth: &rapyd::RapydAuthType, http_method: &str, url_path: &str, body: &str, timestamp: i64, salt: &str, ) -> CustomResult<String, errors::ConnectorError> { let rapyd::RapydAuthType { access_key, ...
crates/hyperswitch_connectors/src/connectors/rapyd.rs
hyperswitch_connectors
function_signature
202
rust
null
null
null
null
generate_signature
null
null
null
null
null
null
null
pub struct FiservCheckoutResponse { pub gateway_response: GatewayResponse, pub payment_receipt: PaymentReceipt, pub interactions: FiservResponseInteractions, pub order: Option<FiservResponseOrders>, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
47
rust
FiservCheckoutResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_profile_outgoing_webhook_events( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Query< api_models::analytics::outgoing_webhook_event::OutgoingWebhookLogsRequest, >, ) -> impl Responder { let flow = AnalyticsFlow::GetOu...
crates/router/src/analytics.rs
router
function_signature
236
rust
null
null
null
null
get_profile_outgoing_webhook_events
null
null
null
null
null
null
null
File: crates/router/src/types/api/fraud_check.rs Public functions: 1 Public structs: 2 use std::str::FromStr; use api_models::enums; use common_utils::errors::CustomResult; use error_stack::ResultExt; pub use hyperswitch_domain_models::router_flow_types::fraud_check::{ Checkout, Fulfillment, RecordReturn, Sale,...
crates/router/src/types/api/fraud_check.rs
router
full_file
512
null
null
null
null
null
null
null
null
null
null
null
null
null
- [jpmorgan] implement refund flow ([#8436](https://github.com/juspay/hyperswitch/pull/8436)) ([`cf92e1a`](https://github.com/juspay/hyperswitch/commit/cf92e1a5e10fe5e1a2f939038bf0a94bcaf01e92)) ### Refactors - **router:** Remove `refunds_v2` feature flag ([#8310](https://github.com/juspay/hyperswitch/pull/8310)) (...
CHANGELOG.md#chunk5
null
doc_chunk
8,150
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/paypal.rs Public functions: 2 Public structs: 1 pub mod transformers; use std::{fmt::Write, sync::LazyLock}; use base64::Engine; use common_enums::{enums, CallConnectorAction, PaymentAction}; use common_utils::{ consts, errors::CustomResult, ext_traits:...
crates/hyperswitch_connectors/src/connectors/paypal.rs#chunk0
hyperswitch_connectors
chunk
8,182
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CeleroErrorResponse { pub status: CeleroResponseStatus, pub msg: String, #[serde(skip_serializing_if = "Option::is_none")] pub data: Option<serde_json::Value>, }
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
46
rust
CeleroErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ConnectorMandateDetails { pub connector_mandate_id: masking::Secret<String>, }
crates/hyperswitch_domain_models/src/router_flow_types/webhooks.rs
hyperswitch_domain_models
struct_definition
22
rust
ConnectorMandateDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct NuveiRedirectionResponse { pub cres: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
NuveiRedirectionResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_role( state: web::Data<AppState>, req: HttpRequest, path: web::Path<String>, ) -> HttpResponse { let flow = Flow::GetRole; let request_payload = user_role_api::role::GetRoleRequest { role_id: path.into_inner(), }; Box::pin(api::server_wrap( flow, stat...
crates/router/src/routes/user_role.rs
router
function_signature
157
rust
null
null
null
null
get_role
null
null
null
null
null
null
null
pub struct ThreedsecureioPostAuthenticationResponse { pub authentication_value: Option<Secret<String>>, pub trans_status: ThreedsecureioTransStatus, pub eci: Option<String>, }
crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
ThreedsecureioPostAuthenticationResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct PayloadRouterData<T> { pub amount: StringMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/payload/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
PayloadRouterData
null
null
null
null
null
null
null
null
null
null
null
pub async fn profile_create() {}
crates/openapi/src/routes/profile.rs
openapi
function_signature
7
rust
null
null
null
null
profile_create
null
null
null
null
null
null
null
pub struct CybersourceAuthEnrollmentRequest { payment_information: PaymentInformation, client_reference_information: ClientReferenceInformation, consumer_authentication_information: CybersourceConsumerAuthInformationRequest, order_information: OrderInformationWithBill, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
49
rust
CybersourceAuthEnrollmentRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> Self { // Do `export CONNECTOR_AUTH_FILE_PATH="/hyperswitch/crates/router/tests/connectors/sample_auth.toml"` // before running tests in shell let path = env::var("CONNECTOR_AUTH_FILE_PATH") .expect("connector authentication file path not set"); // Read the f...
crates/test_utils/src/connector_auth.rs
test_utils
function_signature
904
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct CardNetworkTokenizeRecord { // Card details pub raw_card_number: Option<CardNumber>, pub card_expiry_month: Option<masking::Secret<String>>, pub card_expiry_year: Option<masking::Secret<String>>, pub card_cvc: Option<masking::Secret<String>>, pub card_holder_name: Option<masking::Secr...
crates/hyperswitch_domain_models/src/bulk_tokenization.rs
hyperswitch_domain_models
struct_definition
497
rust
CardNetworkTokenizeRecord
null
null
null
null
null
null
null
null
null
null
null
pub async fn proxy_create_domain_model( payment_intent: &super::PaymentIntent, cell_id: id_type::CellId, storage_scheme: storage_enums::MerchantStorageScheme, request: &api_models::payments::ProxyPaymentsRequest, encrypted_data: DecryptedPaymentAttempt, ) -> CustomResult<Self...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
712
rust
null
null
null
null
proxy_create_domain_model
null
null
null
null
null
null
null
impl KafkaPaymentIntent<'_> { #[cfg(feature = "v1")] fn get_id(&self) -> &id_type::PaymentId { self.payment_id } #[cfg(feature = "v2")] fn get_id(&self) -> &id_type::GlobalPaymentId { self.payment_id } }
crates/router/src/services/kafka/payment_intent.rs
router
impl_block
71
rust
null
KafkaPaymentIntent
null
impl KafkaPaymentIntent
null
null
null
null
null
null
null
null
impl api::RefundSync for Juspaythreedsserver {}
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
hyperswitch_connectors
impl_block
15
rust
null
Juspaythreedsserver
api::RefundSync for
impl api::RefundSync for for Juspaythreedsserver
null
null
null
null
null
null
null
null
pub fn make_dsl_input_for_surcharge( _payment_attempt: &oss_storage::PaymentAttempt, _payment_intent: &oss_storage::PaymentIntent, _billing_address: Option<Address>, ) -> RoutingResult<dsl_inputs::BackendInput> { todo!() }
crates/router/src/core/payments/routing.rs
router
function_signature
59
rust
null
null
null
null
make_dsl_input_for_surcharge
null
null
null
null
null
null
null
pub fn payment_method_session_create() {}
crates/openapi/src/routes/payment_method.rs
openapi
function_signature
8
rust
null
null
null
null
payment_method_session_create
null
null
null
null
null
null
null
fn get_payment_attempt_connector(&self) -> Option<&str> { todo!() } fn get_merchant_connector_id_in_attempt(&self) -> Option<id_type::MerchantConnectorAccountId> { todo!() } fn get_connector_customer_id(&self) -> Option<String> { todo!() } fn get_billing_address(&s...
crates/router/src/core/payments.rs#chunk11
router
chunk
378
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_convertor: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/opennode.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct PaymentsMetricsResponse<T> { pub query_data: Vec<T>, pub meta_data: [PaymentsAnalyticsMetadata; 1], }
crates/api_models/src/analytics.rs
api_models
struct_definition
30
rust
PaymentsMetricsResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/worldpayxml.rs use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct Worldpayxml...
crates/router/tests/connectors/worldpayxml.rs
router
full_file
2,934
null
null
null
null
null
null
null
null
null
null
null
null
null
pub(crate) fn diesel_error_to_data_error( diesel_error: diesel_models::errors::DatabaseError, ) -> StorageError { match diesel_error { diesel_models::errors::DatabaseError::DatabaseConnectionError => { StorageError::DatabaseConnectionError } diesel_models::errors::DatabaseErr...
crates/storage_impl/src/lib.rs
storage_impl
function_signature
135
rust
null
null
null
null
diesel_error_to_data_error
null
null
null
null
null
null
null
pub struct WellsfargopayoutErrorResponse { pub status_code: u16, pub code: String, pub message: String, pub reason: Option<String>, }
crates/hyperswitch_connectors/src/connectors/wellsfargopayout/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
WellsfargopayoutErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Paytm { fn id(&self) -> &'static str { "paytm" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a C...
crates/hyperswitch_connectors/src/connectors/paytm.rs
hyperswitch_connectors
impl_block
375
rust
null
Paytm
ConnectorCommon for
impl ConnectorCommon for for Paytm
null
null
null
null
null
null
null
null
pub struct ErrorResponseBankRedirect { #[serde(rename = "ResultInfo")] pub payment_result_info: ResultInfo, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
ErrorResponseBankRedirect
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentsPostSessionTokensRequest { "type": "object", "required": [ "client_secret", "payment_method_type", "payment_method" ], "properties": { "client_secret": { "type": "string", "description": "It's a token used for client side verification." ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
128
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentsPostSessionTokensRequest" ]
null
null
null
null
pub async fn retrieve_poll_status() {}
crates/openapi/src/routes/poll.rs
openapi
function_signature
8
rust
null
null
null
null
retrieve_poll_status
null
null
null
null
null
null
null
pub fn valid_business_statuses() -> Vec<&'static str> { vec![storage::business_status::PENDING] }
crates/scheduler/src/consumer.rs
scheduler
function_signature
26
rust
null
null
null
null
valid_business_statuses
null
null
null
null
null
null
null
pub fn convert_connector_service_status_code( status_code: u32, ) -> Result<u16, error_stack::Report<UnifiedConnectorServiceError>> { u16::try_from(status_code).map_err(|err| { UnifiedConnectorServiceError::RequestEncodingFailedWithReason(format!( "Failed to convert connector service status ...
crates/router/src/core/unified_connector_service/transformers.rs
router
function_signature
89
rust
null
null
null
null
convert_connector_service_status_code
null
null
null
null
null
null
null
pub fn mk_add_bank_response_hs( bank: api::BankPayout, bank_reference: String, req: api::PaymentMethodCreate, merchant_id: &id_type::MerchantId, ) -> api::PaymentMethodResponse { api::PaymentMethodResponse { merchant_id: merchant_id.to_owned(), customer_id: req.customer_id, p...
crates/router/src/core/payment_methods/transformers.rs
router
function_signature
203
rust
null
null
null
null
mk_add_bank_response_hs
null
null
null
null
null
null
null
pub async fn find_authentication_by_merchant_id_connector_authentication_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, connector_authentication_id: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( ...
crates/diesel_models/src/query/authentication.rs
diesel_models
function_signature
114
rust
null
null
null
null
find_authentication_by_merchant_id_connector_authentication_id
null
null
null
null
null
null
null
File: crates/euclid/src/frontend/dir/transformers.rs use crate::{dirval, dssa::types::AnalysisErrorType, enums as global_enums, frontend::dir}; pub trait IntoDirValue { fn into_dir_value(self) -> Result<dir::DirValue, AnalysisErrorType>; } impl IntoDirValue for (global_enums::PaymentMethodType, global_enums::Paym...
crates/euclid/src/frontend/dir/transformers.rs
euclid
full_file
3,320
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Authorize;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
5
rust
Authorize
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MobilePayRedirection { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
22
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MobilePayRedirection" ]
null
null
null
null
pub struct CaptureResponseTransactionBody { id: String, status: BraintreePaymentStatus, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
CaptureResponseTransactionBody
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Chargebee {}
crates/hyperswitch_connectors/src/connectors/chargebee.rs
hyperswitch_connectors
impl_block
10
rust
null
Chargebee
api::RefundExecute for
impl api::RefundExecute for for Chargebee
null
null
null
null
null
null
null
null
pub struct DwollaRefundsRequest { #[serde(rename = "_links")] links: DwollaPaymentLinks, amount: DwollaAmount, correlation_id: String, }
crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
DwollaRefundsRequest
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for CtpMastercard {}
crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs
hyperswitch_connectors
impl_block
9
rust
null
CtpMastercard
ConnectorValidation for
impl ConnectorValidation for for CtpMastercard
null
null
null
null
null
null
null
null
impl api::RefundSync for Stripebilling {}
crates/hyperswitch_connectors/src/connectors/stripebilling.rs
hyperswitch_connectors
impl_block
10
rust
null
Stripebilling
api::RefundSync for
impl api::RefundSync for for Stripebilling
null
null
null
null
null
null
null
null
pub fn generate_authorization_value(&self) -> String { let auth_id = format!( "{}:{}", self.get_client_id().expose(), self.get_client_secret().expose(), ); format!("Basic {}", consts::BASE64_ENGINE.encode(auth_id)) }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
function_signature
60
rust
null
null
null
null
generate_authorization_value
null
null
null
null
null
null
null
File: crates/router/tests/connectors/trustpayments.rs use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct Trustpaym...
crates/router/tests/connectors/trustpayments.rs
router
full_file
2,926
null
null
null
null
null
null
null
null
null
null
null
null
null
impl<M> Metadata for M where M: erased_serde::Serialize + Any + Send + Sync + fmt::Debug {}
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
impl_block
25
rust
null
M
Metadata for
impl Metadata for for M
null
null
null
null
null
null
null
null
pub struct InsertResourceParams<'a> { pub insertable: kv::Insertable, pub reverse_lookups: Vec<String>, pub key: PartitionKey<'a>, // secondary key pub identifier: String, // type of resource Eg: "payment_attempt" pub resource_type: &'static str, }
crates/storage_impl/src/kv_router_store.rs
storage_impl
struct_definition
69
rust
InsertResourceParams
null
null
null
null
null
null
null
null
null
null
null
File: crates/drainer/build.rs fn main() { #[cfg(feature = "vergen")] router_env::vergen::generate_cargo_instructions(); }
crates/drainer/build.rs
drainer
full_file
34
null
null
null
null
null
null
null
null
null
null
null
null
null
/// After we get the access token, check if there was an error and if the flow should proceed further /// Returns bool /// true - Everything is well, continue with the flow /// false - There was an error, cannot proceed further pub fn update_router_data_with_access_token_result<F, Req, Res>( add_access_token_result...
crates/router/src/core/payments/access_token.rs
router
function_signature
249
rust
null
null
null
null
update_router_data_with_access_token_result
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Zen {}
crates/hyperswitch_connectors/src/connectors/zen.rs
hyperswitch_connectors
impl_block
8
rust
null
Zen
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Zen
null
null
null
null
null
null
null
null
pub struct SupportedMsgExt { pub id: String, pub version: String, }
crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
SupportedMsgExt
null
null
null
null
null
null
null
null
null
null
null
pub struct NetworkField { #[serde(rename = "@fieldNumber")] pub field_number: String, #[serde(rename = "@fieldName", skip_serializing_if = "Option::is_none")] pub field_name: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub field_value: Option<String>, #[serde(default)] ...
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
98
rust
NetworkField
null
null
null
null
null
null
null
null
null
null
null
pub async fn pg_accounts_connection_read<T: storage_impl::DatabaseStore>( store: &T, ) -> errors::CustomResult< PooledConnection<'_, async_bb8_diesel::ConnectionManager<PgConnection>>, storage_errors::StorageError, > { // If only OLAP is enabled get replica pool. #[cfg(all(feature = "olap", not(feat...
crates/router/src/connection.rs
router
function_signature
240
rust
null
null
null
null
pg_accounts_connection_read
null
null
null
null
null
null
null
pub struct PartnerConfigOverride { pub partner_logo_url: String, pub return_url: String, }
crates/router/src/types/api/connector_onboarding/paypal.rs
router
struct_definition
22
rust
PartnerConfigOverride
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ToggleBlocklistResponse { "type": "object", "required": [ "blocklist_guard_status" ], "properties": { "blocklist_guard_status": { "type": "string" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
60
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ToggleBlocklistResponse" ]
null
null
null
null
pub struct Recon;
crates/router/src/routes/app.rs
router
struct_definition
4
rust
Recon
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Wellsfargo {}
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs
hyperswitch_connectors
impl_block
10
rust
null
Wellsfargo
api::PaymentToken for
impl api::PaymentToken for for Wellsfargo
null
null
null
null
null
null
null
null
pub struct SmartRetriedAmount;
crates/api_models/src/analytics/payment_intents.rs
api_models
struct_definition
7
rust
SmartRetriedAmount
null
null
null
null
null
null
null
null
null
null
null
impl IncomingWebhook for Threedsecureio { fn get_webhook_object_reference_id( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<ObjectReferenceId, ConnectorError> { Err(report!(ConnectorError::WebhooksNotImplemented)) } fn get_webhook_event_type( &se...
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
hyperswitch_connectors
impl_block
175
rust
null
Threedsecureio
IncomingWebhook for
impl IncomingWebhook for for Threedsecureio
null
null
null
null
null
null
null
null
pub async fn get_or_create_custom_recovery_intent( data: api_models::payments::RecoveryPaymentsCreate, state: &SessionState, req_state: &ReqState, merchant_context: &domain::MerchantContext, profile: &domain::Profile, ) -> CustomResult<revenue_recovery::RecoveryPaymentIntent,...
crates/router/src/core/webhooks/recovery_incoming.rs
router
function_signature
171
rust
null
null
null
null
get_or_create_custom_recovery_intent
null
null
null
null
null
null
null
impl PMAuthConfigValidation<'_> { async fn validate_pm_auth(&self, val: &pii::SecretSerdeValue) -> RouterResponse<()> { let config = serde_json::from_value::<api_models::pm_auth::PaymentMethodAuthConfig>( val.clone().expose(), ) .change_context(errors::ApiErrorResponse::InvalidRe...
crates/router/src/core/admin.rs
router
impl_block
402
rust
null
PMAuthConfigValidation
null
impl PMAuthConfigValidation
null
null
null
null
null
null
null
null
impl api::RefundExecute for Fiserv {}
crates/hyperswitch_connectors/src/connectors/fiserv.rs
hyperswitch_connectors
impl_block
11
rust
null
Fiserv
api::RefundExecute for
impl api::RefundExecute for for Fiserv
null
null
null
null
null
null
null
null
impl super::auth_events::filters::AuthEventFilterAnalytics for ClickhouseClient {}
crates/analytics/src/clickhouse.rs
analytics
impl_block
17
rust
null
ClickhouseClient
super::auth_events::filters::AuthEventFilterAnalytics for
impl super::auth_events::filters::AuthEventFilterAnalytics for for ClickhouseClient
null
null
null
null
null
null
null
null
pub fn is_all_none(&self) -> bool { self.payment_method.is_none() && self.currency.is_none() && self.status.is_none() && self.customer_email.is_none() && self.search_tags.is_none() && self.connector.is_none() && self.payment_method_type.is_...
crates/api_models/src/analytics/search.rs
api_models
function_signature
107
rust
null
null
null
null
is_all_none
null
null
null
null
null
null
null
### Features - **connector:** - [Worldpay] Use connector_request_reference_id as reference to the connector ([#2553](https://github.com/juspay/hyperswitch/pull/2553)) ([`9ea5830`](https://github.com/juspay/hyperswitch/commit/9ea5830befe333270f8f424753e1b46a439e79bb)) - [ProphetPay] Template generation ([#2610](htt...
CHANGELOG.md#chunk48
null
doc_chunk
8,147
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct SdkEventMetricRow { pub total: Option<bigdecimal::BigDecimal>, pub count: Option<i64>, pub time_bucket: Option<String>, pub payment_method: Option<String>, pub platform: Option<String>, pub browser_name: Option<String>, pub source: Option<String>, pub component: Option<String>...
crates/analytics/src/sdk_events/metrics.rs
analytics
struct_definition
82
rust
SdkEventMetricRow
null
null
null
null
null
null
null
null
null
null
null
pub fn create_address(self, source: Address) -> Address { Address { city: self.city, country: self.country, line1: self.line1, line2: self.line2, line3: self.line3, state: self.state, zip: self.zip, first_name: self....
crates/diesel_models/src/address.rs
diesel_models
function_signature
128
rust
null
null
null
null
create_address
null
null
null
null
null
null
null
pub struct Balance;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
4
rust
Balance
null
null
null
null
null
null
null
null
null
null
null
pub struct TrustlyData { trustly: TrustlyDetails, #[serde(rename = "type")] payment_method_type: AirwallexPaymentType, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
TrustlyData
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Stripe {}
crates/hyperswitch_connectors/src/connectors/stripe.rs
hyperswitch_connectors
impl_block
8
rust
null
Stripe
api::PaymentVoid for
impl api::PaymentVoid for for Stripe
null
null
null
null
null
null
null
null
impl CardInfoBuilder<CardInfoUpdate> { fn set_updated_card_info( self, card_info: card_info_models::CardInfo, ) -> CardInfoBuilder<CardInfoResponse> { CardInfoBuilder { state: std::marker::PhantomData, card_info: Some(card_info), } } }
crates/router/src/core/cards_info.rs
router
impl_block
70
rust
null
CardInfoBuilder
null
impl CardInfoBuilder
null
null
null
null
null
null
null
null
impl DecisionEngineSRSubLevelInputConfig { pub fn update(&mut self, new_config: Self) { if let Some(payment_method_type) = new_config.payment_method_type { self.payment_method_type = Some(payment_method_type); } if let Some(payment_method) = new_config.payment_method { ...
crates/api_models/src/open_router.rs
api_models
impl_block
262
rust
null
DecisionEngineSRSubLevelInputConfig
null
impl DecisionEngineSRSubLevelInputConfig
null
null
null
null
null
null
null
null
pub struct ConsumerSettings { pub disabled: bool, pub consumer_group: String, }
crates/scheduler/src/configs/settings.rs
scheduler
struct_definition
19
rust
ConsumerSettings
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_dynamic_routing_volume_split( state: web::Data<AppState>, req: HttpRequest, path: web::Path<routing_types::ToggleDynamicRoutingPath>, ) -> impl Responder { let flow = Flow::VolumeSplitOnRoutingType; let payload = path.into_inner(); Box::pin(oss_api::server_wrap( flow, ...
crates/router/src/routes/routing.rs
router
function_signature
248
rust
null
null
null
null
get_dynamic_routing_volume_split
null
null
null
null
null
null
null
pub struct PaymentAttempt { pub payment_id: id_type::PaymentId, pub merchant_id: id_type::MerchantId, pub attempt_id: String, pub status: storage_enums::AttemptStatus, pub net_amount: NetAmount, pub currency: Option<storage_enums::Currency>, pub save_to_locker: Option<bool>, pub connecto...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
struct_definition
916
rust
PaymentAttempt
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Nomupay {}
crates/hyperswitch_connectors/src/connectors/nomupay.rs
hyperswitch_connectors
impl_block
10
rust
null
Nomupay
api::PaymentSync for
impl api::PaymentSync for for Nomupay
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/events/{merchant_id}/{event_id}/attempts" { "get": { "tags": [ "Event" ], "summary": "Events - Delivery Attempt List", "description": "List all delivery attempts for the specified Event.", "operationId": "List all delivery attempts for an Event", "parameters":...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
283
.json
null
null
null
null
null
openapi_spec
paths
[ "/events/{merchant_id}/{event_id}/attempts" ]
null
null
null
null
impl AuthInfo for AuthenticationData { fn get_merchant_id(&self) -> Option<&id_type::MerchantId> { Some(self.merchant_account.get_id()) } }
crates/router/src/services/authentication.rs
router
impl_block
38
rust
null
AuthenticationData
AuthInfo for
impl AuthInfo for for AuthenticationData
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Opayo {}
crates/hyperswitch_connectors/src/connectors/opayo.rs
hyperswitch_connectors
impl_block
7
rust
null
Opayo
ConnectorSpecifications for
impl ConnectorSpecifications for for Opayo
null
null
null
null
null
null
null
null
File: crates/currency_conversion/src/types.rs Public functions: 5 Public structs: 2 use std::collections::HashMap; use common_enums::Currency; use rust_decimal::Decimal; use rusty_money::iso; use crate::error::CurrencyConversionError; /// Cached currency store of base currency #[derive(Debug, Clone, serde::Serial...
crates/currency_conversion/src/types.rs
currency_conversion
full_file
2,238
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Recurly { pub fn new() -> &'static Self { &Self {} } fn get_signature_elements_from_header( headers: &actix_web::http::header::HeaderMap, ) -> CustomResult<Vec<Vec<u8>>, errors::ConnectorError> { let security_header = headers .get("recurly-signature") ...
crates/hyperswitch_connectors/src/connectors/recurly.rs
hyperswitch_connectors
impl_block
164
rust
null
Recurly
null
impl Recurly
null
null
null
null
null
null
null
null
pub struct ErrorMessage { pub error_code: String, pub error_text: String, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
ErrorMessage
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Payload {}
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
impl_block
7
rust
null
Payload
api::Payment for
impl api::Payment for for Payload
null
null
null
null
null
null
null
null
pub async fn update_payouts_and_payout_attempt( payout_data: &mut PayoutData, merchant_context: &domain::MerchantContext, req: &payouts::PayoutCreateRequest, state: &SessionState, ) -> CustomResult<(), errors::ApiErrorResponse> { let payout_attempt = payout_data.payout_attempt.to_owned(); let st...
crates/router/src/core/payouts/helpers.rs
router
function_signature
1,062
rust
null
null
null
null
update_payouts_and_payout_attempt
null
null
null
null
null
null
null
File: crates/analytics/src/disputes/metrics/total_amount_disputed.rs use std::collections::HashSet; use api_models::analytics::{ disputes::{DisputeDimensions, DisputeFilters, DisputeMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use error_stack::ResultExt; use ...
crates/analytics/src/disputes/metrics/total_amount_disputed.rs
analytics
full_file
847
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Datatrans {}
crates/hyperswitch_connectors/src/connectors/datatrans.rs
hyperswitch_connectors
impl_block
12
rust
null
Datatrans
api::MandateSetup for
impl api::MandateSetup for for Datatrans
null
null
null
null
null
null
null
null
impl api::PaymentToken for Tokenio {}
crates/hyperswitch_connectors/src/connectors/tokenio.rs
hyperswitch_connectors
impl_block
9
rust
null
Tokenio
api::PaymentToken for
impl api::PaymentToken for for Tokenio
null
null
null
null
null
null
null
null
pub async fn customer_update( state: web::Data<routes::AppState>, qs_config: web::Data<serde_qs::Config>, req: HttpRequest, path: web::Path<id_type::CustomerId>, form_payload: web::Bytes, ) -> HttpResponse { let payload: types::CustomerUpdateRequest = match qs_config.deserialize_bytes(&form_payl...
crates/router/src/compatibility/stripe/customers.rs
router
function_signature
342
rust
null
null
null
null
customer_update
null
null
null
null
null
null
null