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 DatabaseStore for Store { type Config = Database; async fn new( config: Database, tenant_config: &dyn TenantConfig, test_transaction: bool, ) -> StorageResult<Self> { Ok(Self { master_pool: diesel_make_pg_pool(&config, tenant_config.get_schema(), test_transac...
crates/storage_impl/src/database/store.rs
storage_impl
impl_block
195
rust
null
Store
DatabaseStore for
impl DatabaseStore for for Store
null
null
null
null
null
null
null
null
pub async fn delete_from_stream( &self, stream_name: &str, entry_id: &str, ) -> errors::DrainerResult<()> { let (_trim_result, execution_time) = common_utils::date_time::time_it::<errors::DrainerResult<_>, _, _>(|| async { self.redis_conn ...
crates/drainer/src/stream.rs
drainer
function_signature
146
rust
null
null
null
null
delete_from_stream
null
null
null
null
null
null
null
File: crates/router/tests/connectors/digitalvirgo.rs use masking::Secret; use router::{ types::{self, api, storage::enums, }}; use crate::utils::{self, ConnectorActions}; use test_utils::connector_auth; #[derive(Clone, Copy)] struct DigitalvirgoTest; impl ConnectorActions for DigitalvirgoTest {} impl utils::Conn...
crates/router/tests/connectors/digitalvirgo.rs
router
full_file
2,910
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_by_locker_id(conn: &PgPooledConn, locker_id: &str) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::locker_id.eq(locker_id.to_owned()), ) .await }
crates/diesel_models/src/query/payment_method.rs
diesel_models
function_signature
70
rust
null
null
null
null
find_by_locker_id
null
null
null
null
null
null
null
impl api::UasAuthenticationConfirmation for Juspaythreedsserver {}
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
hyperswitch_connectors
impl_block
16
rust
null
Juspaythreedsserver
api::UasAuthenticationConfirmation for
impl api::UasAuthenticationConfirmation for for Juspaythreedsserver
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/getnet.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl api::PaymentToken for Hyperwallet {}
crates/hyperswitch_connectors/src/connectors/hyperwallet.rs
hyperswitch_connectors
impl_block
9
rust
null
Hyperwallet
api::PaymentToken for
impl api::PaymentToken for for Hyperwallet
null
null
null
null
null
null
null
null
impl AuthenticationEligibilityRequest { pub fn get_next_action_api( &self, base_url: String, authentication_id: String, ) -> CustomResult<NextAction, errors::ParsingError> { let url = format!("{base_url}/authentication/{authentication_id}/authenticate"); Ok(NextAction { ...
crates/api_models/src/authentication.rs
api_models
impl_block
177
rust
null
AuthenticationEligibilityRequest
null
impl AuthenticationEligibilityRequest
null
null
null
null
null
null
null
null
pub struct MessagesResponseData { version: VersionResponseData, }
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
MessagesResponseData
null
null
null
null
null
null
null
null
null
null
null
pub struct VgsErrorResponse { pub errors: Vec<VgsErrorItem>, pub trace_id: String, }
crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
VgsErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn get_id(&self) -> &str { &self.attempt_id }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
20
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs Public functions: 1 Public structs: 1 pub mod transformers; use api_models::webhooks::{IncomingWebhookEvent, ObjectReferenceId}; use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilde...
crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs
hyperswitch_connectors
full_file
4,607
null
null
null
null
null
null
null
null
null
null
null
null
null
impl NuveiPaymentsGenericResponse for CompleteAuthorize {}
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
impl_block
11
rust
null
CompleteAuthorize
NuveiPaymentsGenericResponse for
impl NuveiPaymentsGenericResponse for for CompleteAuthorize
null
null
null
null
null
null
null
null
impl ConnectorEvent { /// fn new ConnectorEvent #[allow(clippy::too_many_arguments)] pub fn new( tenant_id: common_utils::id_type::TenantId, connector_name: String, flow: &str, request: serde_json::Value, url: String, method: Method, payment_id: String...
crates/hyperswitch_interfaces/src/events/connector_api_logs.rs
hyperswitch_interfaces
impl_block
483
rust
null
ConnectorEvent
null
impl ConnectorEvent
null
null
null
null
null
null
null
null
impl api::RefundExecute for Payload {}
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
impl_block
9
rust
null
Payload
api::RefundExecute for
impl api::RefundExecute for for Payload
null
null
null
null
null
null
null
null
pub struct Getnet { amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/getnet.rs
hyperswitch_connectors
struct_definition
27
rust
Getnet
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Cybersource {}
crates/hyperswitch_connectors/src/connectors/cybersource.rs
hyperswitch_connectors
impl_block
10
rust
null
Cybersource
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Cybersource
null
null
null
null
null
null
null
null
pub async fn upsert_decision_manager_config( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<api_models::conditional_configs::DecisionManagerRequest>, ) -> impl Responder { let flow = Flow::DecisionManagerUpsertConfig; Box::pin(oss_api::server_wrap( flow, state,...
crates/router/src/routes/routing.rs
router
function_signature
248
rust
null
null
null
null
upsert_decision_manager_config
null
null
null
null
null
null
null
pub struct FeesType { #[serde(rename = "type")] pub fees_type: String, pub fees: FloatMajorUnit, pub currency_code: Currency, }
crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
FeesType
null
null
null
null
null
null
null
null
null
null
null
pub async fn populate_bin_details_for_payment_method_create( _card_details: api_models::payment_methods::CardDetail, _db: &dyn state::PaymentMethodsStorageInterface, ) -> api_models::payment_methods::CardDetail { todo!() }
crates/payment_methods/src/helpers.rs
payment_methods
function_signature
54
rust
null
null
null
null
populate_bin_details_for_payment_method_create
null
null
null
null
null
null
null
pub fn parse_routing_algorithm( value: Option<pii::SecretSerdeValue>, ) -> Result<Option<Self>, error_stack::Report<ParsingError>> { value .map(|val| val.parse_value::<Self>("RoutingAlgorithmRef")) .transpose() }
crates/api_models/src/routing.rs
api_models
function_signature
59
rust
null
null
null
null
parse_routing_algorithm
null
null
null
null
null
null
null
pub struct TransferKeyResponse { /// The identifier for the Merchant Account #[schema(example = 32)] pub total_transferred: usize, }
crates/api_models/src/admin.rs
api_models
struct_definition
33
rust
TransferKeyResponse
null
null
null
null
null
null
null
null
null
null
null
impl PaymentMethodNew { pub fn update_storage_scheme(&mut self, storage_scheme: MerchantStorageScheme) { self.updated_by = Some(storage_scheme.to_string()); } #[cfg(feature = "v1")] pub fn get_id(&self) -> &String { &self.payment_method_id } #[cfg(feature = "v2")] pub fn ge...
crates/diesel_models/src/payment_method.rs
diesel_models
impl_block
104
rust
null
PaymentMethodNew
null
impl PaymentMethodNew
null
null
null
null
null
null
null
null
pub fn get_year(&self) -> &CardExpirationYear { &self.year }
crates/cards/src/lib.rs
cards
function_signature
20
rust
null
null
null
null
get_year
null
null
null
null
null
null
null
pub async fn delete_card_from_hs_locker_by_global_id<'a>( state: &routes::SessionState, id: &str, merchant_id: &id_type::MerchantId, card_reference: &'a str, ) -> errors::RouterResult<payment_methods::DeleteCardResp> { todo!() }
crates/router/src/core/payment_methods/cards.rs
router
function_signature
69
rust
null
null
null
null
delete_card_from_hs_locker_by_global_id
null
null
null
null
null
null
null
pub struct CeleroRefundResponse { pub status: CeleroResponseStatus, pub msg: String, pub data: Option<serde_json::Value>, // Usually null for refund responses }
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
CeleroRefundResponse
null
null
null
null
null
null
null
null
null
null
null
Web Documentation: For B2B SaaS Businesses | Hyperswitch # Type: Web Doc Hyperswitch empowers B2B SaaS providers with a modular, flexible, and robust payment infrastructure designed for both their clients and end users. For B2B SaaS businesses, it is particularly valuable for onboarding large enterprises as clients wh...
https://docs.hyperswitch.io/use-cases/for-b2b-saas-businesses
null
web_doc_file
352
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/use-cases/for-b2b-saas-businesses
For B2B SaaS Businesses | Hyperswitch
null
pub fn get_challenge_request(&self) -> Option<String> { if let Self::Challenge(challenge_params) = self { challenge_params.challenge_request.clone() } else { None } }
crates/hyperswitch_domain_models/src/router_request_types/authentication.rs
hyperswitch_domain_models
function_signature
45
rust
null
null
null
null
get_challenge_request
null
null
null
null
null
null
null
/// Build profile, either debug or release. /// /// Example: `release`. #[macro_export] macro_rules! profile { () => { env!("CARGO_PROFILE") }; }
crates/router_env/src/env.rs
router_env
macro
40
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
File: crates/router/tests/connectors/bankofamerica.rs use masking::Secret; use router::types::{self, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct BankofamericaTest; impl ConnectorActions for BankofamericaTest {} impl utils::Connect...
crates/router/tests/connectors/bankofamerica.rs
router
full_file
2,972
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct LockerMockUpNew { pub card_id: String, pub external_id: String, pub card_fingerprint: String, pub card_global_fingerprint: String, pub merchant_id: common_utils::id_type::MerchantId, pub card_number: String, pub card_exp_year: String, pub card_exp_month: String, pub name_o...
crates/diesel_models/src/locker_mock_up.rs
diesel_models
struct_definition
134
rust
LockerMockUpNew
null
null
null
null
null
null
null
null
null
null
null
pub struct BillingConnectorPaymentsSyncResponseData( revenue_recovery_response::BillingConnectorPaymentsSyncResponse, );
crates/router/src/core/webhooks/recovery_incoming.rs
router
struct_definition
21
rust
BillingConnectorPaymentsSyncResponseData
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_connector( state: SessionState, merchant_id: id_type::MerchantId, merchant_connector_id: id_type::MerchantConnectorAccountId, ) -> RouterResponse<api::MerchantConnectorDeleteResponse> { let db = state.store.as_ref(); let key_manager_state = &(&state).into(); let key_store = d...
crates/router/src/core/admin.rs
router
function_signature
529
rust
null
null
null
null
delete_connector
null
null
null
null
null
null
null
pub async fn payouts_list_core( state: SessionState, merchant_context: domain::MerchantContext, profile_id_list: Option<Vec<id_type::ProfileId>>, constraints: payouts::PayoutListConstraints, ) -> RouterResponse<payouts::PayoutListResponse> { validator::validate_payout_list_request(&constraints)?; ...
crates/router/src/core/payouts.rs
router
function_signature
822
rust
null
null
null
null
payouts_list_core
null
null
null
null
null
null
null
pub struct CardTestingGuardConfig { pub is_card_ip_blocking_enabled: bool, pub card_ip_blocking_threshold: i32, pub is_guest_user_card_blocking_enabled: bool, pub guest_user_card_blocking_threshold: i32, pub is_customer_id_blocking_enabled: bool, pub customer_id_blocking_threshold: i32, pub ...
crates/diesel_models/src/business_profile.rs
diesel_models
struct_definition
84
rust
CardTestingGuardConfig
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/nuvei.rs use std::str::FromStr; use masking::Secret; use router::types::{self, storage::enums}; use serde_json::json; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[derive(Clone, Copy)] struct NuveiTest; impl ConnectorActions for NuveiTest {} impl uti...
crates/router/tests/connectors/nuvei.rs
router
full_file
2,754
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalPaymentsRequest { intent: PaypalPaymentIntent, purchase_units: Vec<PurchaseUnitRequest>, payment_source: Option<PaymentSourceItem>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
PaypalPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct BillingConnectorInvoiceSyncFlowData;
crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs
hyperswitch_domain_models
struct_definition
9
rust
BillingConnectorInvoiceSyncFlowData
null
null
null
null
null
null
null
null
null
null
null
pub struct LineItem { id: Option<String>, quantity: Option<u16>, product_tax_code: Option<String>, unit_price: Option<FloatMajorUnit>, }
crates/hyperswitch_connectors/src/connectors/taxjar/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
LineItem
null
null
null
null
null
null
null
null
null
null
null
pub fn list_payment_methods() {}
crates/openapi/src/routes/payments.rs
openapi
function_signature
7
rust
null
null
null
null
list_payment_methods
null
null
null
null
null
null
null
pub struct BitpayAuthType { pub(super) api_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
BitpayAuthType
null
null
null
null
null
null
null
null
null
null
null
| common_enums::PaymentMethodType::ClassicReward | common_enums::PaymentMethodType::Credit | common_enums::PaymentMethodType::CryptoCurrency | common_enums::PaymentMethodType::Cashapp | common_enums::...
crates/hyperswitch_connectors/src/connectors/klarna.rs#chunk1
hyperswitch_connectors
chunk
5,968
null
null
null
null
null
null
null
null
null
null
null
null
null
impl IncomingWebhook for Stripe { fn get_webhook_source_verification_algorithm( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, ConnectorError> { Ok(Box::new(crypto::HmacSha256)) } fn get_webhook_source_verification...
crates/hyperswitch_connectors/src/connectors/stripe.rs
hyperswitch_connectors
impl_block
2,324
rust
null
Stripe
IncomingWebhook for
impl IncomingWebhook for for Stripe
null
null
null
null
null
null
null
null
pub trait AuthEventMetric<T> where T: AnalyticsDataSource + AuthEventMetricAnalytics, { async fn load_metrics( &self, auth: &AuthInfo, dimensions: &[AuthEventDimensions], filters: &AuthEventFilters, granularity: Option<Granularity>, time_range: &TimeRange, ...
crates/analytics/src/auth_events/metrics.rs
analytics
trait_definition
97
rust
null
null
AuthEventMetric
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Hyperwallet { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&HYPERWALLET_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*HYPERWALLET_SUPPORTED_PAYMENT_METHODS) } ...
crates/hyperswitch_connectors/src/connectors/hyperwallet.rs
hyperswitch_connectors
impl_block
114
rust
null
Hyperwallet
ConnectorSpecifications for
impl ConnectorSpecifications for for Hyperwallet
null
null
null
null
null
null
null
null
impl UserKeyStore { pub async fn get_all_user_key_stores( conn: &PgPooledConn, from: u32, limit: u32, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as HasTable>::Table, _, <<Self as HasTable>::Table as diesel::Table>::Primar...
crates/diesel_models/src/query/user_key_store.rs
diesel_models
impl_block
198
rust
null
UserKeyStore
null
impl UserKeyStore
null
null
null
null
null
null
null
null
pub struct SyncCardDetails { pub alias: Option<String>, }
crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
SyncCardDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentLinkStatusData { pub js_script: String, pub css_script: String, }
crates/hyperswitch_domain_models/src/api.rs
hyperswitch_domain_models
struct_definition
22
rust
PaymentLinkStatusData
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Mifinity { //TODO: implement functions when support enabled }
crates/hyperswitch_connectors/src/connectors/mifinity.rs
hyperswitch_connectors
impl_block
19
rust
null
Mifinity
ConnectorValidation for
impl ConnectorValidation for for Mifinity
null
null
null
null
null
null
null
null
pub struct StripeUpi { pub vpa_id: masking::Secret<String, UpiVpaMaskingStrategy>, }
crates/router/src/compatibility/stripe/payment_intents/types.rs
router
struct_definition
26
rust
StripeUpi
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SamsungPayCardBrand { "type": "string", "enum": [ "visa", "mastercard", "amex", "discover", "unknown" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
52
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SamsungPayCardBrand" ]
null
null
null
null
Ok(()) } Err(err) => { logger::error!("open_router_update_gateway_score_error: {:?}", err); Err(errors::RoutingError::OpenRouterError( "Failed to update gateway score in open_router".into(), )) } }?; Ok(()) } /// success ...
crates/router/src/core/payments/routing.rs#chunk2
router
chunk
4,836
null
null
null
null
null
null
null
null
null
null
null
null
null
Web Documentation: Account setup | Hyperswitch # Type: Web Doc This guide is aimed at helping you create a Hyperswitch account and create payment processors as per your requirement. You can choose any of the following methods for this: Via Control Centre Hosted on Sandbox/Self Hosted Sign up to the control center and ...
https://docs.hyperswitch.io/hyperswitch-open-source/account-setup
null
web_doc_file
109
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/hyperswitch-open-source/account-setup
Account setup | Hyperswitch
null
pub struct NexinetsRefundRequest { pub initial_amount: i64, pub currency: enums::Currency, }
crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
NexinetsRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn connector_create() {}
crates/openapi/src/routes/merchant_connector_account.rs
openapi
function_signature
7
rust
null
null
null
null
connector_create
null
null
null
null
null
null
null
pub struct AmazonpayErrorResponse { pub reason_code: String, pub message: String, }
crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
AmazonpayErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Datatrans {}
crates/hyperswitch_connectors/src/connectors/datatrans.rs
hyperswitch_connectors
impl_block
11
rust
null
Datatrans
api::RefundExecute for
impl api::RefundExecute for for Datatrans
null
null
null
null
null
null
null
null
pub struct VoltPsyncResponse { status: VoltPaymentStatus, id: String, merchant_internal_reference: Option<String>, }
crates/hyperswitch_connectors/src/connectors/volt/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
VoltPsyncResponse
null
null
null
null
null
null
null
null
null
null
null
impl<T: DatabaseStore + 'static> PaymentMethodsStorageInterface for KVRouterStore<T> {}
crates/payment_methods/src/state.rs
payment_methods
impl_block
20
rust
null
KVRouterStore
PaymentMethodsStorageInterface for
impl PaymentMethodsStorageInterface for for KVRouterStore
null
null
null
null
null
null
null
null
File: crates/external_services/src/managers.rs //! Config and client managers pub mod encryption_management; pub mod secrets_management;
crates/external_services/src/managers.rs
external_services
full_file
27
null
null
null
null
null
null
null
null
null
null
null
null
null
pub trait ConnectorIntegrationAny<T, Req, Resp>: Send + Sync + 'static { fn get_connector_integration(&self) -> BoxedConnectorIntegration<'_, T, Req, Resp>; }
crates/pm_auth/src/types/api.rs
pm_auth
trait_definition
40
rust
null
null
ConnectorIntegrationAny
null
null
null
null
null
null
null
null
null
impl ApiEventMetric for PaymentsRedirectResponseData { fn get_api_event_type(&self) -> Option<ApiEventsType> { Some(ApiEventsType::PaymentRedirectionResponse { payment_id: self.payment_id.clone(), }) } }
crates/router/src/events/api_logs.rs
router
impl_block
52
rust
null
PaymentsRedirectResponseData
ApiEventMetric for
impl ApiEventMetric for for PaymentsRedirectResponseData
null
null
null
null
null
null
null
null
pub struct PaysafeCaptureRequest { pub merchant_ref_num: String, #[serde(skip_serializing_if = "Option::is_none")] pub amount: Option<MinorUnit>, }
crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs
hyperswitch_connectors
struct_definition
39
rust
PaysafeCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
impl common_utils::events::ApiEventMetric for RelayRequest {}
crates/api_models/src/relay.rs
api_models
impl_block
13
rust
null
RelayRequest
common_utils::events::ApiEventMetric for
impl common_utils::events::ApiEventMetric for for RelayRequest
null
null
null
null
null
null
null
null
pub async fn organization_update( state: web::Data<AppState>, req: HttpRequest, org_id: web::Path<common_utils::id_type::OrganizationId>, json_payload: web::Json<admin::OrganizationUpdateRequest>, ) -> HttpResponse { let flow = Flow::OrganizationUpdate; let organization_id = org_id.into_inner();...
crates/router/src/routes/admin.rs
router
function_signature
223
rust
null
null
null
null
organization_update
null
null
null
null
null
null
null
impl NewUserOrganization { pub async fn insert_org_in_db(self, state: SessionState) -> UserResult<Organization> { state .accounts_store .insert_organization(self.0) .await .map_err(|e| { if e.current_context().is_db_unique_violation() { ...
crates/router/src/types/domain/user.rs
router
impl_block
137
rust
null
NewUserOrganization
null
impl NewUserOrganization
null
null
null
null
null
null
null
null
pub async fn complete_payout_retrieve( state: &SessionState, merchant_context: &domain::MerchantContext, connector_call_type: api::ConnectorCallType, payout_data: &mut PayoutData, ) -> RouterResult<()> { todo!() }
crates/router/src/core/payouts.rs
router
function_signature
58
rust
null
null
null
null
complete_payout_retrieve
null
null
null
null
null
null
null
pub struct Connectors { pub aci: ConnectorParams, pub authipay: ConnectorParams, pub adyen: AdyenParamsWithThreeBaseUrls, pub adyenplatform: ConnectorParams, pub affirm: ConnectorParams, pub airwallex: ConnectorParams, pub amazonpay: ConnectorParams, pub applepay: ConnectorParams, pu...
crates/hyperswitch_domain_models/src/connector_endpoints.rs
hyperswitch_domain_models
struct_definition
1,135
rust
Connectors
null
null
null
null
null
null
null
null
null
null
null
pub async fn signal_handler(mut sig: signal_hook_tokio::Signals, sender: mpsc::Sender<()
crates/common_utils/src/signals.rs
common_utils
function_signature
23
rust
null
null
null
null
signal_handler
null
null
null
null
null
null
null
pub struct PaymentsCaptureData { pub amount_to_capture: i64, pub currency: storage_enums::Currency, pub connector_transaction_id: String, pub payment_amount: i64, pub multiple_capture_data: Option<MultipleCaptureRequestData>, pub connector_meta: Option<serde_json::Value>, pub browser_info: O...
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
185
rust
PaymentsCaptureData
null
null
null
null
null
null
null
null
null
null
null
pub fn get_index_for_correct_recovery_code( candidate: &Secret<String>, recovery_codes: &[Secret<String>], ) -> CustomResult<Option<usize>, UserErrors> { for (index, recovery_code) in recovery_codes.iter().enumerate() { let is_match = is_correct_password(candidate, recovery_code)?; if is_mat...
crates/router/src/utils/user/password.rs
router
function_signature
85
rust
null
null
null
null
get_index_for_correct_recovery_code
null
null
null
null
null
null
null
pub struct WellsfargoAuthorizationOptions { initiator: Option<WellsfargoPaymentInitiator>, merchant_intitiated_transaction: Option<MerchantInitiatedTransaction>, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
WellsfargoAuthorizationOptions
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_payment_method_from_vault_using_payment_token( state: &routes::SessionState, merchant_context: &domain::MerchantContext, profile: &domain::Profile, payment_token: &String, payment_method_type: &common_enums::PaymentMethod, ) -> RouterResult<(domain::PaymentMethod, domain::Payme...
crates/router/src/core/payment_methods/vault.rs
router
function_signature
415
rust
null
null
null
null
retrieve_payment_method_from_vault_using_payment_token
null
null
null
null
null
null
null
File: crates/api_models/src/proxy.rs Public functions: 2 Public structs: 3 use std::collections::HashMap; use common_utils::request::Method; use reqwest::header::HeaderMap; use serde::{Deserialize, Serialize}; use serde_json::Value; use utoipa::ToSchema; #[derive(Clone, Debug, Deserialize, Serialize)] pub struct H...
crates/api_models/src/proxy.rs
api_models
full_file
584
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct DatatransSuccessResponse { pub transaction_id: String, pub acquirer_authorization_code: String, }
crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
DatatransSuccessResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_payment_method_and_last_used( state: &routes::SessionState, key_store: &domain::MerchantKeyStore, db: &dyn db::StorageInterface, pm: domain::PaymentMethod, payment_method_update: Option<Encryption>, storage_scheme: MerchantStorageScheme, card_scheme: Option<String>, ) -> ...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
179
rust
null
null
null
null
update_payment_method_and_last_used
null
null
null
null
null
null
null
File: crates/test_utils/tests/connectors/checkout_ui.rs use serial_test::serial; use thirtyfour::{prelude::*, WebDriver}; use crate::{selenium::*, tester}; struct CheckoutSeleniumTest; impl SeleniumTest for CheckoutSeleniumTest { fn get_connector_name(&self) -> String { "checkout".to_string() } } a...
crates/test_utils/tests/connectors/checkout_ui.rs
test_utils
full_file
809
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct MandatePaymentInformation { payment_instrument: WellsfargoPaymentInstrument, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
MandatePaymentInformation
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/fraud_check/types.rs Public structs: 12 use api_models::{ enums as api_enums, enums::{PaymentMethod, PaymentMethodType}, payments::Amount, refunds::RefundResponse, }; use common_enums::FrmSuggestion; use common_utils::pii::SecretSerdeValue; use hyperswitch_domain_models::p...
crates/router/src/core/fraud_check/types.rs
router
full_file
1,160
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Novalnet { pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/novalnet.rs
hyperswitch_connectors
impl_block
35
rust
null
Novalnet
null
impl Novalnet
null
null
null
null
null
null
null
null
pub fn program<O: EuclidParsable + 'static>(input: &str) -> ParseResult<&str, ast::Program<O>> { error::context( "program", combinator::map( sequence::pair(default_output, multi::many1(skip_ws(rule::<O>))), |tup: (O, Vec<ast::Rule<O>>)| ast::Program { default_...
crates/euclid/src/frontend/ast/parser.rs
euclid
function_signature
119
rust
null
null
null
null
program
null
null
null
null
null
null
null
pub async fn customers_delete() {}
crates/openapi/src/routes/customers.rs
openapi
function_signature
7
rust
null
null
null
null
customers_delete
null
null
null
null
null
null
null
pub async fn get_profile_connector_events( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Query<api_models::analytics::connector_events::ConnectorEventsRequest>, ) -> impl Responder { let flow = AnalyticsFlow::GetConnectorEvents; Box::pin(api::ser...
crates/router/src/analytics.rs
router
function_signature
218
rust
null
null
null
null
get_profile_connector_events
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/nuvei.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use api_models::{payments::PaymentIdType, webhooks::IncomingWebhookEvent}; use common_enums::{enums, CallConnectorAction, PaymentAction}; use common_utils::{ crypto, ...
crates/hyperswitch_connectors/src/connectors/nuvei.rs#chunk0
hyperswitch_connectors
chunk
8,172
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_email_client( settings: &settings::Settings<RawSecret>, ) -> Box<dyn EmailService> { match &settings.email.client_config { EmailClientConfigs::Ses { aws_ses } => Box::new( AwsSes::create( &settings.email, aws_ses, settings.p...
crates/router/src/routes/app.rs
router
function_signature
142
rust
null
null
null
null
create_email_client
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Ebanx {}
crates/hyperswitch_connectors/src/connectors/ebanx.rs
hyperswitch_connectors
impl_block
10
rust
null
Ebanx
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Ebanx
null
null
null
null
null
null
null
null
pub async fn get_metrics( pool: &AnalyticsProvider, ex_rates: &Option<ExchangeRates>, auth: &AuthInfo, req: GetRefundMetricRequest, ) -> AnalyticsResult<RefundsMetricsResponse<RefundMetricsBucketResponse>> { let mut metrics_accumulator: HashMap<RefundMetricsBucketIdentifier, RefundMetricsAccumulator...
crates/analytics/src/refunds/core.rs
analytics
function_signature
1,851
rust
null
null
null
null
get_metrics
null
null
null
null
null
null
null
pub struct RiskifiedAuthType { pub secret_token: Secret<String>, pub domain_name: String, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/auth.rs
hyperswitch_connectors
struct_definition
23
rust
RiskifiedAuthType
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/callback_mapper.rs Public structs: 1 use common_enums::enums as common_enums; use common_types::callback_mapper::CallbackMapperData; use diesel::{Identifiable, Insertable, Queryable, Selectable}; use crate::schema::callback_mapper; #[derive(Clone, Debug, Eq, PartialEq, Identifiable, Q...
crates/diesel_models/src/callback_mapper.rs
diesel_models
full_file
164
null
null
null
null
null
null
null
null
null
null
null
null
null
impl GenericLinkInterface for KafkaStore { async fn find_generic_link_by_link_id( &self, link_id: &str, ) -> CustomResult<storage::GenericLinkState, errors::StorageError> { self.diesel_store .find_generic_link_by_link_id(link_id) .await } async fn find_pm...
crates/router/src/db/kafka_store.rs
router
impl_block
450
rust
null
KafkaStore
GenericLinkInterface for
impl GenericLinkInterface for for KafkaStore
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs Public structs: 17 use common_enums::enums; use common_utils::{ ext_traits::OptionExt, request::Method, types::{FloatMajorUnit, MinorUnit}, }; use error_stack::ResultExt; use hyperswitch_domain_models::{ payment_method_data::{Pay...
crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs
hyperswitch_connectors
full_file
4,440
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn parse_evidence_type( field: &mut Field, ) -> CustomResult<Option<disputes::EvidenceType>, errors::ApiErrorResponse> { let purpose = helpers::read_string(field).await; match purpose { Some(evidence_type) => Ok(Some( evidence_type .parse_enum("Evidence Type") ...
crates/router/src/routes/disputes/utils.rs
router
function_signature
106
rust
null
null
null
null
parse_evidence_type
null
null
null
null
null
null
null
impl api::PaymentVoid for Trustpay {}
crates/hyperswitch_connectors/src/connectors/trustpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Trustpay
api::PaymentVoid for
impl api::PaymentVoid for for Trustpay
null
null
null
null
null
null
null
null
pub struct DwollaPaymentsRequest { #[serde(rename = "_links")] links: DwollaPaymentLinks, amount: DwollaAmount, correlation_id: String, }
crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
DwollaPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct CustomerMetaData { crm_id: Option<Secret<id_type::CustomerId>>, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
CustomerMetaData
null
null
null
null
null
null
null
null
null
null
null
impl IncomingWebhook for Adyenplatform { #[cfg(feature = "payouts")] fn get_webhook_source_verification_algorithm( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, ConnectorError> { Ok(Box::new(crypto::HmacSha256)) } ...
crates/hyperswitch_connectors/src/connectors/adyenplatform.rs
hyperswitch_connectors
impl_block
1,372
rust
null
Adyenplatform
IncomingWebhook for
impl IncomingWebhook for for Adyenplatform
null
null
null
null
null
null
null
null
impl ThreeDSDecision { /// Checks if the decision is to mandate a 3DS challenge pub fn should_force_3ds_challenge(self) -> bool { matches!(self, Self::ChallengeRequested) } }
crates/common_types/src/three_ds_decision_rule_engine.rs
common_types
impl_block
47
rust
null
ThreeDSDecision
null
impl ThreeDSDecision
null
null
null
null
null
null
null
null
File: crates/router/src/core/encryption.rs Public functions: 3 use api_models::admin::MerchantKeyTransferRequest; use base64::Engine; use common_utils::{ keymanager::transfer_key_to_key_manager, types::keymanager::{EncryptionTransferRequest, Identifier}, }; use error_stack::ResultExt; use hyperswitch_domain_m...
crates/router/src/core/encryption.rs
router
full_file
517
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Aci {}
crates/hyperswitch_connectors/src/connectors/aci.rs
hyperswitch_connectors
impl_block
9
rust
null
Aci
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Aci
null
null
null
null
null
null
null
null
pub fn rule<O: EuclidParsable>(input: &str) -> ParseResult<&str, ast::Rule<O>> { let rule_name = error::context( "rule_name", combinator::map( skip_ws(sequence::pair( complete::take_while1(|c: char| c.is_ascii_alphabetic() || c == '_'), complete::take_whil...
crates/euclid/src/frontend/ast/parser.rs
euclid
function_signature
240
rust
null
null
null
null
rule
null
null
null
null
null
null
null