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 create_merchant_in_decision_engine_if_not_exists( state: &SessionState, profile_id: &id_type::ProfileId, dynamic_routing_algo_ref: &mut routing_types::DynamicRoutingAlgorithmRef, ) { if !dynamic_routing_algo_ref.is_merchant_created_in_decision_engine { logger::debug!( "C...
crates/router/src/core/routing/helpers.rs
router
function_signature
173
rust
null
null
null
null
create_merchant_in_decision_engine_if_not_exists
null
null
null
null
null
null
null
pub struct PaytmRefundRequest { pub amount: StringMinorUnit, }
crates/hyperswitch_connectors/src/connectors/paytm/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
PaytmRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundListFilters { /// The map of available connector filters, where the key is the connector name and the value is a list of MerchantConnectorInfo instances pub connector: HashMap<String, Vec<MerchantConnectorInfo>>, /// The list of available currency filters #[schema(value_type = Vec<Curre...
crates/api_models/src/refunds.rs
api_models
struct_definition
115
rust
RefundListFilters
null
null
null
null
null
null
null
null
null
null
null
### Refactors - **connector:** Wasm changes for razorpay ([#5265](https://github.com/juspay/hyperswitch/pull/5265)) ([`c016407`](https://github.com/juspay/hyperswitch/commit/c0164076881a0ce561ced98e7da61bf6904ba60b)) **Full Changelog:** [`2024.07.10.0...2024.07.10.1`](https://github.com/juspay/hyperswitch/compare/202...
CHANGELOG.md#chunk28
null
doc_chunk
8,181
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn begin_totp( state: SessionState, user_token: auth::UserFromSinglePurposeToken, ) -> 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...
crates/router/src/core/user.rs
router
function_signature
250
rust
null
null
null
null
begin_totp
null
null
null
null
null
null
null
impl api::Refund for Taxjar {}
crates/hyperswitch_connectors/src/connectors/taxjar.rs
hyperswitch_connectors
impl_block
9
rust
null
Taxjar
api::Refund for
impl api::Refund for for Taxjar
null
null
null
null
null
null
null
null
pub struct AddressUpdateInternal { pub city: Option<String>, pub country: Option<enums::CountryAlpha2>, pub line1: Option<Encryption>, pub line2: Option<Encryption>, pub line3: Option<Encryption>, pub state: Option<Encryption>, pub zip: Option<Encryption>, pub first_name: Option<Encrypti...
crates/diesel_models/src/address.rs
diesel_models
struct_definition
136
rust
AddressUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
if customer.default_payment_method_id.as_ref() == Some(&pm_id.payment_method_id) { let customer_update = CustomerUpdate::UpdateDefaultPaymentMethod { default_payment_method_id: Some(None), }; db.update_customer_by_customer_id_merchant_id( key_m...
crates/router/src/core/payment_methods/cards.rs#chunk1
router
chunk
8,185
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let card_iin = path.into_inner(); let request_params = payload.into_inner(); let payload = api_models::cards_info::CardsInfoRequest { client_secret: request_params.client_secret, card_iin, }; let api_auth = auth::ApiKeyAuth::default(); let (auth, _) = match au...
crates/router/src/routes/cards_info.rs
router
impl_block
232
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct TokenizedBankTransferValue2 { pub customer_id: Option<id_type::CustomerId>, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
22
rust
TokenizedBankTransferValue2
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/storage/gsm.rs pub use diesel_models::gsm::{ GatewayStatusMap, GatewayStatusMapperUpdateInternal, GatewayStatusMappingNew, GatewayStatusMappingUpdate, };
crates/router/src/types/storage/gsm.rs
router
full_file
42
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn log_payout( &self, payout: &KafkaPayout<'_>, old_payout: Option<KafkaPayout<'_>>, tenant_id: TenantID, ) -> MQResult<()> { if let Some(negative_event) = old_payout { self.log_event(&KafkaEvent::old( &negative_event, ten...
crates/router/src/services/kafka.rs
router
function_signature
174
rust
null
null
null
null
log_payout
null
null
null
null
null
null
null
pub fn update_straight_through_routing<F, D>( payment_data: &mut D, request_straight_through: serde_json::Value, ) -> CustomResult<(), errors::ParsingError> where F: Send + Clone, D: OperationSessionGetters<F> + OperationSessionSetters<F> + Send + Sync + Clone, { let _: api_models::routing::StaticRo...
crates/router/src/core/payments.rs
router
function_signature
136
rust
null
null
null
null
update_straight_through_routing
null
null
null
null
null
null
null
pub struct AuthorizedotnetErrorResponse { pub error: ErrorDetails, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
AuthorizedotnetErrorResponse
null
null
null
null
null
null
null
null
null
null
null
/// Get gateway response (like Fiserv's gateway_response) pub fn gateway_response(&self) -> AuthipayGatewayResponse { AuthipayGatewayResponse { transaction_state: self.get_transaction_status(), transaction_processing_details: AuthipayTransactionProcessingDetails { ord...
crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs
hyperswitch_connectors
function_signature
79
rust
null
null
null
null
gateway_response
null
null
null
null
null
null
null
pub fn payments_to_payments_response<Op, F: Clone, D>( _payment_data: D, _captures: Option<Vec<storage::Capture>>, _customer: Option<domain::Customer>, _auth_flow: services::AuthFlow, _base_url: &str, _operation: &Op, _connector_request_reference_id_config: &ConnectorRequestReferenceIdConfig...
crates/router/src/core/payments/transformers.rs
router
function_signature
151
rust
null
null
null
null
payments_to_payments_response
null
null
null
null
null
null
null
pub struct NetworkSubField { #[serde(rename = "@fieldNumber")] pub field_number: String, pub field_value: String, }
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
NetworkSubField
null
null
null
null
null
null
null
null
null
null
null
File: crates/pm_auth/src/connector/plaid/transformers.rs Public structs: 21 use std::collections::HashMap; use common_enums::{PaymentMethod, PaymentMethodType}; use common_utils::{id_type, types as util_types}; use masking::{PeekInterface, Secret}; use serde::{Deserialize, Serialize}; use crate::{core::errors, type...
crates/pm_auth/src/connector/plaid/transformers.rs
pm_auth
full_file
3,528
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/routing" { "post": { "tags": [ "Routing" ], "summary": "Routing - Create", "description": "Create a routing config", "operationId": "Create a routing config", "requestBody": { "content": { "application/json": { "schema": { "...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
669
.json
null
null
null
null
null
openapi_spec
paths
[ "/routing" ]
null
null
null
null
pub struct SamsungPayFluidDataValue { public_key_hash: Secret<String>, version: String, data: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
SamsungPayFluidDataValue
null
null
null
null
null
null
null
null
null
null
null
/// Extract merchant_tax_registration_id from merchant_details pub fn get_merchant_tax_registration_id(&self) -> Option<Secret<String>> { self.merchant_details.as_ref().and_then(|details| { details .get_inner() .peek() .get("merchant_tax_registrati...
crates/hyperswitch_domain_models/src/merchant_account.rs
hyperswitch_domain_models
function_signature
90
rust
null
null
null
null
get_merchant_tax_registration_id
null
null
null
null
null
null
null
pub struct BreadpayCartOptions { order_ref: Option<String>, complete_url: String, callback_url: String, // billing_contact: Option<BillingContact>, }
crates/hyperswitch_connectors/src/connectors/breadpay/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
BreadpayCartOptions
null
null
null
null
null
null
null
null
null
null
null
File: crates/kgraph_utils/src/error.rs #[cfg(feature = "v2")] use common_enums::connector_enums; use euclid::{dssa::types::AnalysisErrorType, frontend::dir}; #[derive(Debug, thiserror::Error, serde::Serialize)] #[serde(tag = "type", content = "info", rename_all = "snake_case")] pub enum KgraphError { #[error("Inva...
crates/kgraph_utils/src/error.rs
kgraph_utils
full_file
217
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Klarna {}
crates/hyperswitch_connectors/src/connectors/klarna.rs
hyperswitch_connectors
impl_block
9
rust
null
Klarna
api::PaymentToken for
impl api::PaymentToken for for Klarna
null
null
null
null
null
null
null
null
impl api::Refund for Prophetpay {}
crates/hyperswitch_connectors/src/connectors/prophetpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Prophetpay
api::Refund for
impl api::Refund for for Prophetpay
null
null
null
null
null
null
null
null
pub struct Destination { full_name: Secret<String>, organization: Option<String>, email: Option<Email>, address: Address, }
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs
hyperswitch_connectors
struct_definition
30
rust
Destination
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/globalpay/response.rs Public structs: 9 use common_enums::Currency; use common_utils::types::StringMinorUnit; use masking::Secret; use serde::{Deserialize, Serialize}; use crate::utils::deserialize_optional_currency; #[derive(Debug, Serialize, Deserialize)] pub str...
crates/hyperswitch_connectors/src/connectors/globalpay/response.rs
hyperswitch_connectors
full_file
921
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs Public structs: 8 use std::collections::HashMap; use common_enums::enums; pub use common_utils::request::Method; use common_utils::{ errors::CustomResult, ext_traits::ValueExt, id_type, pii::Email, types::FloatMajorUnit, }; use error_s...
crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs
hyperswitch_connectors
full_file
2,590
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Airwallex {}
crates/hyperswitch_connectors/src/connectors/airwallex.rs
hyperswitch_connectors
impl_block
10
rust
null
Airwallex
api::Refund for
impl api::Refund for for Airwallex
null
null
null
null
null
null
null
null
pub struct WorldpayXmlErrorResponse { #[serde(rename = "@code")] pub code: String, #[serde(rename = "$value")] pub message: String, }
crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
WorldpayXmlErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn payment_confirm_intent( state: web::Data<app::AppState>, req: actix_web::HttpRequest, json_payload: web::Json<api_models::payments::PaymentsConfirmIntentRequest>, path: web::Path<common_utils::id_type::GlobalPaymentId>, ) -> impl Responder { use hyperswitch_domain_models::payments::Paym...
crates/router/src/routes/payments.rs
router
function_signature
536
rust
null
null
null
null
payment_confirm_intent
null
null
null
null
null
null
null
pub async fn retrieve_extended_card_info( state: web::Data<app::AppState>, req: actix_web::HttpRequest, path: web::Path<common_utils::id_type::PaymentId>, ) -> impl Responder { let flow = Flow::GetExtendedCardInfo; let payment_id = path.into_inner(); Box::pin(api::server_wrap( flow, ...
crates/router/src/routes/payments.rs
router
function_signature
219
rust
null
null
null
null
retrieve_extended_card_info
null
null
null
null
null
null
null
File: crates/router/src/core/payments/flows/capture_flow.rs use async_trait::async_trait; use super::ConstructFlowSpecificData; use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, Feature, PaymentData}, }, routes::SessionSta...
crates/router/src/core/payments/flows/capture_flow.rs
router
full_file
1,076
null
null
null
null
null
null
null
null
null
null
null
null
null
impl IncomingWebhook for Nexinets { fn get_webhook_object_reference_id( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented)) } fn get_webhook_event_type( ...
crates/hyperswitch_connectors/src/connectors/nexinets.rs
hyperswitch_connectors
impl_block
184
rust
null
Nexinets
IncomingWebhook for
impl IncomingWebhook for for Nexinets
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/events/profile/list" { "post": { "tags": [ "Event" ], "summary": "Events - List", "description": "List all Events associated with a Profile.", "operationId": "List all Events associated with a Profile", "requestBody": { "description": "The constraints th...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
357
.json
null
null
null
null
null
openapi_spec
paths
[ "/events/profile/list" ]
null
null
null
null
pub struct CardAdditionalData { /// Issuer of the card pub card_issuer: Option<String>, /// Card network of the card #[schema(value_type = Option<CardNetwork>)] pub card_network: Option<common_enums::CardNetwork>, /// Card type, can be either `credit` or `debit` pub card_type: Option<Strin...
crates/common_utils/src/payout_method_utils.rs
common_utils
struct_definition
281
rust
CardAdditionalData
null
null
null
null
null
null
null
null
null
null
null
impl Payouts for Payone {}
crates/hyperswitch_connectors/src/connectors/payone.rs
hyperswitch_connectors
impl_block
8
rust
null
Payone
Payouts for
impl Payouts for for Payone
null
null
null
null
null
null
null
null
pub fn update_volume_split(&mut self, volume: Option<u8>) { self.dynamic_routing_volume_split = volume }
crates/api_models/src/routing.rs
api_models
function_signature
27
rust
null
null
null
null
update_volume_split
null
null
null
null
null
null
null
File: crates/router/src/lib.rs Public functions: 4 #[cfg(all(feature = "stripe", feature = "v1"))] pub mod compatibility; pub mod configs; pub mod connection; pub mod connector; pub mod consts; pub mod core; pub mod cors; pub mod db; pub mod env; pub mod locale; pub(crate) mod macros; pub mod routes; pub mod workflo...
crates/router/src/lib.rs
router
full_file
3,489
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/flows/update_metadata_flow.rs use async_trait::async_trait; use super::ConstructFlowSpecificData; use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, Feature, PaymentData}, }, routes::Se...
crates/router/src/core/payments/flows/update_metadata_flow.rs
router
full_file
925
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Juspaythreedsserver {}
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
hyperswitch_connectors
impl_block
14
rust
null
Juspaythreedsserver
api::PaymentVoid for
impl api::PaymentVoid for for Juspaythreedsserver
null
null
null
null
null
null
null
null
impl ConnectorCommon for Threedsecureio { fn id(&self) -> &'static str { "threedsecureio" } fn get_currency_unit(&self) -> CurrencyUnit { CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connector...
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
hyperswitch_connectors
impl_block
469
rust
null
Threedsecureio
ConnectorCommon for
impl ConnectorCommon for for Threedsecureio
null
null
null
null
null
null
null
null
pub async fn get_sankey( pool: &AnalyticsProvider, auth: &AuthInfo, req: TimeRange, ) -> AnalyticsResult<Vec<SankeyRow>> { match pool { AnalyticsProvider::Sqlx(_) => Err(AnalyticsError::NotImplemented( "Sankey not implemented for sqlx", ))?, AnalyticsProvider::Clickho...
crates/analytics/src/payment_intents/core.rs
analytics
function_signature
157
rust
null
null
null
null
get_sankey
null
null
null
null
null
null
null
impl GetRoutableConnectorsForChoice for StraightThroughAlgorithmTypeSingle { async fn get_routable_connectors( &self, _db: &dyn StorageInterface, _business_profile: &domain::Profile, ) -> RouterResult<RoutableConnectors> { let straight_through_routing_algorithm = self ...
crates/router/src/core/routing.rs
router
impl_block
247
rust
null
StraightThroughAlgorithmTypeSingle
GetRoutableConnectorsForChoice for
impl GetRoutableConnectorsForChoice for for StraightThroughAlgorithmTypeSingle
null
null
null
null
null
null
null
null
impl RoutingAlgorithmRef { pub fn update_algorithm_id(&mut self, new_id: common_utils::id_type::RoutingId) { self.algorithm_id = Some(new_id); self.timestamp = common_utils::date_time::now_unix_timestamp(); } pub fn update_conditional_config_id(&mut self, ids: String) { self.config_...
crates/api_models/src/routing.rs
api_models
impl_block
201
rust
null
RoutingAlgorithmRef
null
impl RoutingAlgorithmRef
null
null
null
null
null
null
null
null
impl IncomingWebhook for Shift4 { fn get_webhook_object_reference_id( &self, request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { let details: shift4::Shift4WebhookObjectId = request .body ...
crates/hyperswitch_connectors/src/connectors/shift4.rs
hyperswitch_connectors
impl_block
512
rust
null
Shift4
IncomingWebhook for
impl IncomingWebhook for for Shift4
null
null
null
null
null
null
null
null
impl api::Refund for Hyperwallet {}
crates/hyperswitch_connectors/src/connectors/hyperwallet.rs
hyperswitch_connectors
impl_block
9
rust
null
Hyperwallet
api::Refund for
impl api::Refund for for Hyperwallet
null
null
null
null
null
null
null
null
pub struct MerchantDetails { pub merchant_id: Option<String>, pub merchant_name: Option<String>, pub merchant_category_code: Option<MerchantCategoryCode>, pub merchant_country_code: Option<MerchantCountryCode>, pub endpoint_prefix: Option<String>, pub three_ds_requestor_url: Option<String>, ...
crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
hyperswitch_domain_models
struct_definition
98
rust
MerchantDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct PayerInfo { token_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
PayerInfo
null
null
null
null
null
null
null
null
null
null
null
impl Coingate { pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/coingate.rs
hyperswitch_connectors
impl_block
35
rust
null
Coingate
null
impl Coingate
null
null
null
null
null
null
null
null
File: crates/scheduler/src/db/queue.rs use common_utils::errors::CustomResult; use diesel_models::process_tracker as storage; use redis_interface::{errors::RedisError, RedisEntryId, SetnxReply}; use router_env::logger; use storage_impl::{mock_db::MockDb, redis::kv_store::RedisConnInterface}; use crate::{errors::Proce...
crates/scheduler/src/db/queue.rs
scheduler
full_file
1,390
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<MerchantKeyStore> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/merchant_key_store.rs
diesel_models
function_signature
36
rust
null
null
null
null
insert
null
null
null
null
null
null
null
impl PayoutAttemptInterface for MockDb {}
crates/storage_impl/src/mock_db.rs
storage_impl
impl_block
9
rust
null
MockDb
PayoutAttemptInterface for
impl PayoutAttemptInterface for for MockDb
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.StringMinorUnit { "type": "string", "description": "Connector specific types to send" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
32
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "StringMinorUnit" ]
null
null
null
null
impl ConnectorValidation for Paypal { fn validate_mandate_payment( &self, pm_type: Option<enums::PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { let mandate_supported_pmd = std::collections::HashSet::from([ PaymentMethod...
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
impl_block
118
rust
null
Paypal
ConnectorValidation for
impl ConnectorValidation for for Paypal
null
null
null
null
null
null
null
null
pub fn generate_permissions(input: proc_macro::TokenStream) -> proc_macro::TokenStream { macros::generate_permissions_inner(input) }
crates/router_derive/src/lib.rs
router_derive
function_signature
28
rust
null
null
null
null
generate_permissions
null
null
null
null
null
null
null
pub fn iso_4217(self) -> &'static str { match self { Self::AED => "784", Self::AFN => "971", Self::ALL => "008", Self::AMD => "051", Self::ANG => "532", Self::AOA => "973", Self::ARS => "032", Self::AUD => "036", ...
crates/common_enums/src/enums.rs
common_enums
function_signature
1,763
rust
null
null
null
null
iso_4217
null
null
null
null
null
null
null
File: crates/router/src/utils/user/password.rs Public functions: 4 use argon2::{ password_hash::{ rand_core::OsRng, Error as argon2Err, PasswordHash, PasswordHasher, PasswordVerifier, SaltString, }, Argon2, }; use common_utils::errors::CustomResult; use error_stack::ResultExt; use masking:...
crates/router/src/utils/user/password.rs
router
full_file
553
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct NuveiMeta { pub session_token: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
NuveiMeta
null
null
null
null
null
null
null
null
null
null
null
pub fn encode_payload( payload: &[&str], ) -> Result<String, error_stack::Report<errors::ConnectorError>> { let data = payload.join(""); let digest = crypto::Sha256 .generate_digest(data.as_bytes()) .change_context(errors::ConnectorError::RequestEncodingFailed) .attach_printable("err...
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
function_signature
89
rust
null
null
null
null
encode_payload
null
null
null
null
null
null
null
pub struct SellerStatusResponse { pub merchant_id: common_utils::id_type::MerchantId, pub links: Vec<HateoasLink>, }
crates/router/src/types/api/connector_onboarding/paypal.rs
router
struct_definition
32
rust
SellerStatusResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
11
rust
null
Worldpayvantiv
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Worldpayvantiv
null
null
null
null
null
null
null
null
File: crates/euclid_wasm/src/types.rs Public structs: 2 use euclid::frontend::dir::DirKeyKind; #[cfg(feature = "payouts")] use euclid::frontend::dir::PayoutDirKeyKind; use serde::Serialize; #[derive(Serialize, Clone)] pub struct Details<'a> { pub description: Option<&'a str>, pub kind: DirKeyKind, } #[cfg(f...
crates/euclid_wasm/src/types.rs
euclid_wasm
full_file
137
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Volt {}
crates/hyperswitch_connectors/src/connectors/volt.rs
hyperswitch_connectors
impl_block
8
rust
null
Volt
api::PaymentSession for
impl api::PaymentSession for for Volt
null
null
null
null
null
null
null
null
pub async fn route_connector_v1_for_payments<F, D>( state: &SessionState, merchant_context: &domain::MerchantContext, business_profile: &domain::Profile, payment_data: &mut D, transaction_data: core_routing::PaymentsDslInput<'_>, routing_data: &mut storage::RoutingData, eligible_connectors: ...
crates/router/src/core/payments.rs
router
function_signature
1,324
rust
null
null
null
null
route_connector_v1_for_payments
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GoPayRedirection { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
22
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GoPayRedirection" ]
null
null
null
null
impl ConnectorCommon for Wellsfargopayout { fn id(&self) -> &'static str { "wellsfargopayout" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor // todo!() // TODO! Check connector documentation, on which unit they are processing the currency. ...
crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs
hyperswitch_connectors
impl_block
486
rust
null
Wellsfargopayout
ConnectorCommon for
impl ConnectorCommon for for Wellsfargopayout
null
null
null
null
null
null
null
null
pub trait EmailService: Sync + Send + dyn_clone::DynClone { /// Compose and send email using the email data async fn compose_and_send_email( &self, base_url: &str, email_data: Box<dyn EmailData + Send>, proxy_url: Option<&String>, ) -> EmailResult<()>; }
crates/external_services/src/email.rs
external_services
trait_definition
74
rust
null
null
EmailService
null
null
null
null
null
null
null
null
null
impl BlackList for AuthToken { async fn check_in_blacklist<A>(&self, state: &A) -> RouterResult<bool> where A: SessionStateInfo + Sync, { Ok( check_user_in_blacklist(state, &self.user_id, self.exp).await? || check_role_in_blacklist(state, &self.role_id, self.exp)....
crates/router/src/services/authentication/blacklist.rs
router
impl_block
87
rust
null
AuthToken
BlackList for
impl BlackList for for AuthToken
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Wellsfargo {}
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs
hyperswitch_connectors
impl_block
10
rust
null
Wellsfargo
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Wellsfargo
null
null
null
null
null
null
null
null
pub struct Restriction { pub states_or_regions: Vec<Secret<String>>, pub zip_codes: Vec<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
Restriction
null
null
null
null
null
null
null
null
null
null
null
pub fn filter_based_on_profile_and_connector_type( self, profile_id: &id_type::ProfileId, connector_type: common_enums::ConnectorType, ) -> Self { self.into_iter() .filter(|mca| &mca.profile_id == profile_id && mca.connector_type == connector_type)...
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
75
rust
null
null
null
null
filter_based_on_profile_and_connector_type
null
null
null
null
null
null
null
File: crates/common_utils/src/id_type/authentication.rs Public functions: 2 crate::id_type!( AuthenticationId, "A type for authentication_id that can be used for authentication IDs" ); crate::impl_id_type_methods!(AuthenticationId, "authentication_id"); // This is to display the `AuthenticationId` as Authent...
crates/common_utils/src/id_type/authentication.rs
common_utils
full_file
419
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TsysRefundRequest { #[serde(rename = "Return")] return_request: TsysReturnRequest, }
crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
TsysRefundRequest
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GeneratePaymentReport; Box::pin(api::server_wrap( flow, state.clone(), &req, json_payload.into_inner(), |state, (auth, user_id): auth::AuthenticationDataWithUserId, payload, _| async move { ...
crates/router/src/analytics.rs
router
impl_block
324
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct RedirectPurchaseUnitItem { pub invoice_id: String, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
RedirectPurchaseUnitItem
null
null
null
null
null
null
null
null
null
null
null
pub fn is_refund_event(event_code: &WebhookEventType) -> bool { matches!(event_code, WebhookEventType::TransactionRefund) }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
function_signature
32
rust
null
null
null
null
is_refund_event
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/paysafe.rs
hyperswitch_connectors
function_signature
27
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl api::PayoutEligibility for Nomupay {}
crates/hyperswitch_connectors/src/connectors/nomupay.rs
hyperswitch_connectors
impl_block
13
rust
null
Nomupay
api::PayoutEligibility for
impl api::PayoutEligibility for for Nomupay
null
null
null
null
null
null
null
null
impl ConnectorRedirectResponse for Novalnet { fn get_flow_type( &self, _query_params: &str, _json_payload: Option<serde_json::Value>, action: enums::PaymentAction, ) -> CustomResult<enums::CallConnectorAction, errors::ConnectorError> { match action { enums::Pa...
crates/hyperswitch_connectors/src/connectors/novalnet.rs
hyperswitch_connectors
impl_block
106
rust
null
Novalnet
ConnectorRedirectResponse for
impl ConnectorRedirectResponse for for Novalnet
null
null
null
null
null
null
null
null
pub struct TokenResponse { pub token: Secret<String>, pub token_type: TokenPurpose, }
crates/api_models/src/user.rs
api_models
struct_definition
21
rust
TokenResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ChargebeeErrorResponse { pub api_error_code: String, pub message: String, }
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
ChargebeeErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn perform_session_flow_routing( session_input: SessionFlowRoutingInput<'_>, business_profile: &domain::Profile, transaction_type: &api_enums::TransactionType, ) -> RoutingResult<( FxHashMap<api_enums::PaymentMethodType, Vec<routing_types::SessionRoutingChoice>>, Option<common_enums::Routi...
crates/router/src/core/payments/routing.rs
router
function_signature
1,136
rust
null
null
null
null
perform_session_flow_routing
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentMethodData { "oneOf": [ { "type": "object", "title": "Card", "required": [ "card" ], "properties": { "card": { "$ref": "#/components/schemas/Card" } } }, { "type": "object", "tit...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
978
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentMethodData" ]
null
null
null
null
impl api::MandateSetup for Zsl {}
crates/hyperswitch_connectors/src/connectors/zsl.rs
hyperswitch_connectors
impl_block
11
rust
null
Zsl
api::MandateSetup for
impl api::MandateSetup for for Zsl
null
null
null
null
null
null
null
null
impl Default for PayoutMethodData { fn default() -> Self { Self::Card(CardPayout::default()) } }
crates/api_models/src/payouts.rs
api_models
impl_block
28
rust
null
PayoutMethodData
Default for
impl Default for for PayoutMethodData
null
null
null
null
null
null
null
null
pub struct PayoutAttemptNew { pub payout_attempt_id: String, pub payout_id: id_type::PayoutId, pub customer_id: Option<id_type::CustomerId>, pub merchant_id: id_type::MerchantId, pub address_id: Option<String>, pub connector: Option<String>, pub connector_payout_id: Option<String>, pub p...
crates/hyperswitch_domain_models/src/payouts/payout_attempt.rs
hyperswitch_domain_models
struct_definition
250
rust
PayoutAttemptNew
null
null
null
null
null
null
null
null
null
null
null
pub struct ApplePayTokenizedCard { transaction_type: TransactionType, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
ApplePayTokenizedCard
null
null
null
null
null
null
null
null
null
null
null
pub struct SantanderPixQRCodePaymentsResponse { pub status: SantanderPaymentStatus, #[serde(rename = "calendario")] pub calendar: SantanderCalendar, #[serde(rename = "txid")] pub transaction_id: String, #[serde(rename = "revisao")] pub revision: i32, #[serde(rename = "devedor")] pub ...
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
178
rust
SantanderPixQRCodePaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct AciWebhookCardDetails { pub bin: Option<String>, #[serde(rename = "last4Digits")] pub last4_digits: Option<String>, pub holder: Option<String>, pub expiry_month: Option<Secret<String>>, pub expiry_year: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
hyperswitch_connectors
struct_definition
63
rust
AciWebhookCardDetails
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_parent_group_info( state: web::Data<AppState>, http_req: HttpRequest, query: web::Query<role_api::GetParentGroupsInfoQueryParams>, ) -> HttpResponse { let flow = Flow::GetParentGroupInfo; Box::pin(api::server_wrap( flow, state.clone(), &http_req, que...
crates/router/src/routes/user_role.rs
router
function_signature
153
rust
null
null
null
null
get_parent_group_info
null
null
null
null
null
null
null
Documentation: api-reference/intelligent-router-api-reference/success-rate/invalidate-windows.mdx # Type: Doc File --- openapi: post /success_rate.SuccessRateCalculator/InvalidateWindows ---
api-reference/intelligent-router-api-reference/success-rate/invalidate-windows.mdx
null
doc_file
41
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Dwolla {}
crates/hyperswitch_connectors/src/connectors/dwolla.rs
hyperswitch_connectors
impl_block
9
rust
null
Dwolla
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Dwolla
null
null
null
null
null
null
null
null
pub fn generate_digest(&self, payload: &[u8]) -> String { let payload_digest = digest::digest(&digest::SHA256, payload); consts::BASE64_ENGINE.encode(payload_digest) }
crates/hyperswitch_connectors/src/connectors/cybersource.rs
hyperswitch_connectors
function_signature
47
rust
null
null
null
null
generate_digest
null
null
null
null
null
null
null
pub fn get_frm_config_as_secret(&self) -> Option<Vec<Secret<serde_json::Value>>> { match self.frm_configs.as_ref() { Some(frm_value) => { let configs_for_frm_value: Vec<Secret<serde_json::Value>> = frm_value .iter() .map(|config| config.encode_...
crates/api_models/src/admin.rs
api_models
function_signature
115
rust
null
null
null
null
get_frm_config_as_secret
null
null
null
null
null
null
null
impl super::payments::distribution::PaymentDistributionAnalytics for SqlxClient {}
crates/analytics/src/sqlx.rs
analytics
impl_block
15
rust
null
SqlxClient
super::payments::distribution::PaymentDistributionAnalytics for
impl super::payments::distribution::PaymentDistributionAnalytics for for SqlxClient
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.StripeChargeType { "type": "string", "enum": [ "direct", "destination" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
37
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "StripeChargeType" ]
null
null
null
null
File: crates/external_services/src/grpc_client/dynamic_routing.rs Public functions: 1 Public structs: 1 /// Module for Contract based routing pub mod contract_routing_client; use std::fmt::Debug; use common_utils::errors::CustomResult; use router_env::logger; use serde; /// Elimination Routing Client Interface Imp...
crates/external_services/src/grpc_client/dynamic_routing.rs
external_services
full_file
773
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/active_payments/accumulator.rs Public functions: 1 Public structs: 2 use api_models::analytics::active_payments::ActivePaymentsMetricsBucketValue; use super::metrics::ActivePaymentsMetricRow; #[derive(Debug, Default)] pub struct ActivePaymentsMetricsAccumulator { pub active_payments:...
crates/analytics/src/active_payments/accumulator.rs
analytics
full_file
337
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalWebooksEventType { pub event_type: PaypalWebhookEventType, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
PaypalWebooksEventType
null
null
null
null
null
null
null
null
null
null
null