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
File: crates/hyperswitch_connectors/src/connectors/fiservemea.rs Public functions: 2 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use base64::Engine; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, R...
crates/hyperswitch_connectors/src/connectors/fiservemea.rs
hyperswitch_connectors
full_file
6,690
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct NmiReferenceBody { pub order_id: String, pub action: NmiActionBody, }
crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
NmiReferenceBody
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthorizeSessionToken;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
7
rust
AuthorizeSessionToken
null
null
null
null
null
null
null
null
null
null
null
pub fn auth_type<'a, T, A>( default_auth: &'a dyn AuthenticateAndFetch<T, A>, jwt_auth_type: &'a dyn AuthenticateAndFetch<T, A>, headers: &HeaderMap, ) -> &'a dyn AuthenticateAndFetch<T, A> where { if is_jwt_auth(headers) { return jwt_auth_type; } default_auth }
crates/router/src/services/authentication.rs
router
function_signature
83
rust
null
null
null
null
auth_type
null
null
null
null
null
null
null
pub struct TopN { pub columns: String, pub count: u64, pub order_column: String, pub order: Order, }
crates/analytics/src/query.rs
analytics
struct_definition
33
rust
TopN
null
null
null
null
null
null
null
null
null
null
null
Web Documentation: Customizable and Native Integrations | Hyperswitch # Type: Web Doc How to get started? Pick the platform / framework of your choice to get started with integrating the client SDK on your application Hyperswitch Web Hyperswitch Android Hyperswitch iOS Hyperswitch React Native Hyperswitch Flutter Paym...
https://docs.hyperswitch.io/explore-hyperswitch/merchant-controls/integration-guide
null
web_doc_file
358
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/explore-hyperswitch/merchant-controls/integration-guide
Customizable and Native Integrations | Hyperswitch
null
pub fn set_payment_method( self, payment_method: &domain::PaymentMethod, ) -> NetworkTokenizationBuilder<'a, PmFetched> { let payment_method_response = api::PaymentMethodResponse { merchant_id: payment_method.merchant_id.clone(), customer_id: Some(payment_method.custo...
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
function_signature
279
rust
null
null
null
null
set_payment_method
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Fiuu {}
crates/hyperswitch_connectors/src/connectors/fiuu.rs
hyperswitch_connectors
impl_block
10
rust
null
Fiuu
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Fiuu
null
null
null
null
null
null
null
null
pub struct DummyConnectorCard { pub name: Secret<String>, pub number: cards::CardNumber, pub expiry_month: Secret<String>, pub expiry_year: Secret<String>, pub cvc: Secret<String>, }
crates/router/src/routes/dummy_connector/types.rs
router
struct_definition
47
rust
DummyConnectorCard
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PayoutListResponse { "type": "object", "required": [ "size", "data" ], "properties": { "size": { "type": "integer", "description": "The number of payouts included in the list", "minimum": 0 }, "data": { "type": "array", "it...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
171
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PayoutListResponse" ]
null
null
null
null
pub struct TokenioPaymentObjectV2 { pub id: String, pub status: TokenioPaymentStatus, }
crates/hyperswitch_connectors/src/connectors/tokenio/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
TokenioPaymentObjectV2
null
null
null
null
null
null
null
null
null
null
null
pub struct NoonWebhookOrderId { pub order_id: u64, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
NoonWebhookOrderId
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Paytm {}
crates/hyperswitch_connectors/src/connectors/paytm.rs
hyperswitch_connectors
impl_block
9
rust
null
Paytm
api::PaymentSync for
impl api::PaymentSync for for Paytm
null
null
null
null
null
null
null
null
pub struct OpensearchHits { pub total: OpensearchResultsTotal, pub hits: Vec<OpensearchHit>, }
crates/api_models/src/analytics/search.rs
api_models
struct_definition
29
rust
OpensearchHits
null
null
null
null
null
null
null
null
null
null
null
impl Opennode { pub fn new() -> &'static Self { &Self { amount_convertor: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/opennode.rs
hyperswitch_connectors
impl_block
35
rust
null
Opennode
null
impl Opennode
null
null
null
null
null
null
null
null
pub async fn parse_jwt_payload<A, T>(headers: &HeaderMap, state: &A) -> RouterResult<T> where T: serde::de::DeserializeOwned, A: SessionStateInfo + Sync, { let cookie_token_result = get_cookie_from_header(headers).and_then(cookies::get_jwt_from_cookies); let auth_header_token_result = get_jwt_fr...
crates/router/src/services/authentication.rs
router
function_signature
229
rust
null
null
null
null
parse_jwt_payload
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Theme> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/user/theme.rs
diesel_models
function_signature
34
rust
null
null
null
null
insert
null
null
null
null
null
null
null
pub fn get_status_field(&self, index: SearchIndex) -> &str { match index { SearchIndex::Refunds | SearchIndex::SessionizerRefunds => "refund_status.keyword", SearchIndex::Disputes | SearchIndex::SessionizerDisputes => "dispute_status.keyword", _ => "status.keyword", }...
crates/analytics/src/opensearch.rs
analytics
function_signature
75
rust
null
null
null
null
get_status_field
null
null
null
null
null
null
null
pub struct MultisafepayRouterData<T> { amount: MinorUnit, router_data: T, }
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
MultisafepayRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct RecoveryPaymentAttempt { pub attempt_id: id_type::GlobalAttemptId, pub attempt_status: common_enums::AttemptStatus, pub feature_metadata: Option<api_payments::PaymentAttemptFeatureMetadata>, pub amount: util_types::MinorUnit, pub network_advice_code: Option<String>, pub network_declin...
crates/hyperswitch_domain_models/src/revenue_recovery.rs
hyperswitch_domain_models
struct_definition
92
rust
RecoveryPaymentAttempt
null
null
null
null
null
null
null
null
null
null
null
pub struct Coingate { amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/coingate.rs
hyperswitch_connectors
struct_definition
28
rust
Coingate
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MerchantConnectorDetailsWrap { "type": "object", "description": "Merchant connector details used to make payments.", "required": [ "creds_identifier" ], "properties": { "creds_identifier": { "type": "string", "description": "Creds Identifier is to uni...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
149
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantConnectorDetailsWrap" ]
null
null
null
null
pub struct StripeBillingCardDetails { pub network: StripebillingCardNetwork, pub funding: StripebillingFundingTypes, }
crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
StripeBillingCardDetails
null
null
null
null
null
null
null
null
null
null
null
pub fn from_data(data: StrongSecret<Vec<u8>>) -> Self { Self(data) }
crates/common_utils/src/types/keymanager.rs
common_utils
function_signature
21
rust
null
null
null
null
from_data
null
null
null
null
null
null
null
pub fn get_error_code(&self) -> String { match self { Self::Json { error_code, .. } => { error_code.as_deref().unwrap_or(NO_ERROR_CODE).to_string() } Self::Text(_) => NO_ERROR_CODE.to_string(), } }
crates/hyperswitch_connectors/src/connectors/tokenio/transformers.rs
hyperswitch_connectors
function_signature
61
rust
null
null
null
null
get_error_code
null
null
null
null
null
null
null
File: crates/api_models/src/verifications.rs Public structs: 5 use common_utils::id_type; /// The request body for verification of merchant (everything except domain_names are prefilled) #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] #[serde(rename_all = "camelCase")] pub struct ApplepayMerchantVerifi...
crates/api_models/src/verifications.rs
api_models
full_file
342
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn generate_default_totp( email: pii::Email, secret: Option<masking::Secret<String>>, issuer: String, ) -> UserResult<TOTP> { let secret = secret .map(|sec| totp_rs::Secret::Encoded(sec.expose())) .unwrap_or_else(totp_rs::Secret::generate_secret) .to_bytes() .change_c...
crates/router/src/utils/user/two_factor_auth.rs
router
function_signature
163
rust
null
null
null
null
generate_default_totp
null
null
null
null
null
null
null
impl Paytm { pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/paytm.rs
hyperswitch_connectors
impl_block
34
rust
null
Paytm
null
impl Paytm
null
null
null
null
null
null
null
null
pub async fn list_payment_methods( state: web::Data<app::AppState>, req: actix_web::HttpRequest, path: web::Path<common_utils::id_type::GlobalPaymentId>, query_payload: web::Query<api_models::payments::ListMethodsForPaymentsRequest>, ) -> impl Responder { use crate::db::domain::merchant_context; ...
crates/router/src/routes/payments.rs
router
function_signature
351
rust
null
null
null
null
list_payment_methods
null
null
null
null
null
null
null
pub struct Gateways { pub mistercash: Option<Mistercash>, }
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
Gateways
null
null
null
null
null
null
null
null
null
null
null
impl CardNetworkTokenizeExecutor<'_, domain::TokenizeCardRequest> { pub async fn validate_request_and_fetch_optional_customer( &self, ) -> RouterResult<Option<api::CustomerDetails>> { // Validate card's expiry migration::validate_card_expiry(&self.data.card_expiry_month, &self.data.card_...
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
impl_block
2,251
rust
null
CardNetworkTokenizeExecutor
null
impl CardNetworkTokenizeExecutor
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GpayAllowedMethodsParameters { "type": "object", "required": [ "allowed_auth_methods", "allowed_card_networks" ], "properties": { "allowed_auth_methods": { "type": "array", "items": { "type": "string" }, "description": "The list ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
265
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GpayAllowedMethodsParameters" ]
null
null
null
null
pub struct Zen;
crates/hyperswitch_connectors/src/connectors/zen.rs
hyperswitch_connectors
struct_definition
4
rust
Zen
null
null
null
null
null
null
null
null
null
null
null
pub struct MandatePaymentMethodData { pub entry_mode: PaymentMethodEntryMode, pub id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs
hyperswitch_connectors
struct_definition
26
rust
MandatePaymentMethodData
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthorizationInfoResponse(pub Vec<AuthorizationInfo>);
crates/api_models/src/user_role.rs
api_models
struct_definition
12
rust
AuthorizationInfoResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::revenue_recovery::RevenueRecoveryRecordBack for Chargebee {}
crates/hyperswitch_connectors/src/connectors/chargebee.rs
hyperswitch_connectors
impl_block
16
rust
null
Chargebee
api::revenue_recovery::RevenueRecoveryRecordBack for
impl api::revenue_recovery::RevenueRecoveryRecordBack for for Chargebee
null
null
null
null
null
null
null
null
pub async fn construct_public_and_private_db_configs( state: &SessionState, auth_config: &user_api::AuthConfig, encryption_key: &[u8], id: String, ) -> UserResult<(Option<Encryption>, Option<serde_json::Value>)> { match auth_config { user_api::AuthConfig::OpenIdConnect { private_...
crates/router/src/utils/user.rs
router
function_signature
310
rust
null
null
null
null
construct_public_and_private_db_configs
null
null
null
null
null
null
null
File: crates/redis_interface/src/types.rs Public functions: 10 Public structs: 3 //! Data types and type conversions //! from `fred`'s internal data-types to custom data-types use common_utils::errors::CustomResult; use fred::types::RedisValue as FredRedisValue; use crate::{errors, RedisConnectionPool}; pub struc...
crates/redis_interface/src/types.rs
redis_interface
full_file
2,296
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ProviderMetadata { provider_reference_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
ProviderMetadata
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Celero {}
crates/hyperswitch_connectors/src/connectors/celero.rs
hyperswitch_connectors
impl_block
9
rust
null
Celero
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Celero
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::PaymentsUpdate; let mut payload = json_payload.into_inner(); if let Err(err) = payload .validate() .map_err(|message| errors::ApiErrorResponse::InvalidRequestData { message }) { return api::log_and_return_error_response(err.into()); }; i...
crates/router/src/routes/payments.rs
router
impl_block
366
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct ChargebeeSubscriptionData { #[serde(default, with = "common_utils::custom_serde::timestamp::option")] pub current_term_start: Option<PrimitiveDateTime>, #[serde(default, with = "common_utils::custom_serde::timestamp::option")] pub next_billing_at: Option<PrimitiveDateTime>, }
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
struct_definition
68
rust
ChargebeeSubscriptionData
null
null
null
null
null
null
null
null
null
null
null
impl Responder { // safety: This shouldn't panic owing to the data type #[allow(clippy::expect_used)] let payload = json_payload .into_inner() .to_vec() .pop() .expect("Couldn't get GetDisputeMetricRequest"); let flow = AnalyticsFlow::GetDi...
crates/router/src/analytics.rs
router
impl_block
284
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct PayoutsResponseData { pub status: Option<common_enums::PayoutStatus>, pub connector_payout_id: Option<String>, pub payout_eligible: Option<bool>, pub should_add_next_step_to_process_tracker: bool, pub error_code: Option<String>, pub error_message: Option<String>, }
crates/hyperswitch_domain_models/src/router_response_types.rs
hyperswitch_domain_models
struct_definition
71
rust
PayoutsResponseData
null
null
null
null
null
null
null
null
null
null
null
pub struct DummyConnectorRefundRetrieveRequest { pub refund_id: String, }
crates/router/src/routes/dummy_connector/types.rs
router
struct_definition
17
rust
DummyConnectorRefundRetrieveRequest
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::PaymentsCancelPostCapture; let mut payload = json_payload.into_inner(); let payment_id = path.into_inner(); tracing::Span::current().record("payment_id", payment_id.get_string_repr()); payload.payment_id = payment_id; let locking_action = payload.get_locking_i...
crates/router/src/routes/payments.rs
router
impl_block
285
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct EliminationRoutingConfig { pub params: Option<Vec<DynamicRoutingConfigParams>>, pub elimination_analyser_config: Option<EliminationAnalyserConfig>, #[schema(value_type = DecisionEngineEliminationData)] pub decision_engine_configs: Option<open_router::DecisionEngineEliminationData>, }
crates/api_models/src/routing.rs
api_models
struct_definition
65
rust
EliminationRoutingConfig
null
null
null
null
null
null
null
null
null
null
null
pub struct CustombillingRouterData<T> { pub amount: StringMinorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc. pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/custombilling/transformers.rs
hyperswitch_connectors
struct_definition
50
rust
CustombillingRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct DecryptedWalletDetails { pub card: WalletCardData, #[serde(rename = "cavv")] pub cryptogram: Secret<String>, #[serde(rename = "xid")] pub transaction_id: Secret<String>, pub wallet_type: FiservWalletType, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
62
rust
DecryptedWalletDetails
null
null
null
null
null
null
null
null
null
null
null
impl<T: DatabaseStore> PayoutsInterface for KVRouterStore<T> {}
crates/storage_impl/src/kv_router_store.rs
storage_impl
impl_block
17
rust
null
KVRouterStore
PayoutsInterface for
impl PayoutsInterface for for KVRouterStore
null
null
null
null
null
null
null
null
pub async fn validate_request_and_initiate_payment_method_collect_link( _state: &SessionState, _merchant_context: &domain::MerchantContext, _req: &PaymentMethodCollectLinkRequest, ) -> RouterResult<PaymentMethodCollectLinkData> { todo!() }
crates/router/src/core/payment_methods/validator.rs
router
function_signature
60
rust
null
null
null
null
validate_request_and_initiate_payment_method_collect_link
null
null
null
null
null
null
null
pub struct SquareSessionResponse { session_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/square/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
SquareSessionResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentSuccessRate;
crates/api_models/src/analytics/payments.rs
api_models
struct_definition
6
rust
PaymentSuccessRate
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundResponse { id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn connector_list( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::ProfileId>, ) -> HttpResponse { let flow = Flow::MerchantConnectorsList; let profile_id = path.into_inner(); Box::pin(api::server_wrap( flow, state, &req, ...
crates/router/src/routes/admin.rs
router
function_signature
186
rust
null
null
null
null
connector_list
null
null
null
null
null
null
null
impl Hipay { pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/hipay.rs
hyperswitch_connectors
impl_block
34
rust
null
Hipay
null
impl Hipay
null
null
null
null
null
null
null
null
Web Documentation: Smart Retries | Hyperswitch # Type: Web Doc Smart retry is a Hyperswitch feature to improve the payment success rates in a multi-processor setup. If the payment fails through the primary processor due to specific reasons, the payment will be retried with an alternative payment processor to increase ...
https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/smart-retries
null
web_doc_file
909
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/smart-retries
Smart Retries | Hyperswitch
null
/// Validation for the SMTP server client specific configs pub fn validate(&self) -> Result<(), &'static str> { use common_utils::{ext_traits::ConfigExt, fp_utils::when}; when(self.host.is_default_or_empty(), || { Err("email.smtp.host must not be empty") })?; self.usernam...
crates/external_services/src/email/smtp.rs
external_services
function_signature
152
rust
null
null
null
null
validate
null
null
null
null
null
null
null
pub struct AuthorizedotnetRSyncResponse { transaction: Option<RSyncTransactionResponse>, messages: ResponseMessages, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
AuthorizedotnetRSyncResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GooglePayThirdPartySdk { "type": "object", "required": [ "delayed_session_token", "connector", "sdk_next_action" ], "properties": { "delayed_session_token": { "type": "boolean", "description": "Identifier for the delayed session response" },...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
131
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GooglePayThirdPartySdk" ]
null
null
null
null
pub struct StripebillingInvoiceData { pub object: StripebillingWebhookObject, }
crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
StripebillingInvoiceData
null
null
null
null
null
null
null
null
null
null
null
pub struct WorldpayPaymentsRequest { pub transaction_reference: String, pub merchant: Merchant, pub instruction: Instruction, #[serde(skip_serializing_if = "Option::is_none")] pub customer: Option<Customer>, }
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
hyperswitch_connectors
struct_definition
48
rust
WorldpayPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::AuthenticationAuthenticate; let authentication_id = path.into_inner(); let api_auth = auth::ApiKeyAuth::default(); let payload = AuthenticationAuthenticateRequest { authentication_id, ..json_payload.into_inner() }; let (auth, auth_flow) = ...
crates/router/src/routes/authentication.rs
router
impl_block
236
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub async fn connector_events_core( pool: &AnalyticsProvider, req: ConnectorEventsRequest, merchant_id: &common_utils::id_type::MerchantId, ) -> AnalyticsResult<Vec<ConnectorEventsResult>> { let data = match pool { AnalyticsProvider::Sqlx(_) => Err(FiltersError::NotImplemented( "Conn...
crates/analytics/src/connector_events/core.rs
analytics
function_signature
164
rust
null
null
null
null
connector_events_core
null
null
null
null
null
null
null
impl Jpmorgan { pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/jpmorgan.rs
hyperswitch_connectors
impl_block
34
rust
null
Jpmorgan
null
impl Jpmorgan
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentMethodType { "type": "string", "description": "Indicates the sub type of payment method. Eg: 'google_pay' & 'apple_pay' for wallets.", "enum": [ "ach", "affirm", "afterpay_clearpay", "alfamart", "ali_pay", "ali_pay_hk", "alma", "amazon_...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
685
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentMethodType" ]
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/zsl.rs Public structs: 1 pub mod transformers; use std::fmt::Debug; use api_models::webhooks::{IncomingWebhookEvent, ObjectReferenceId}; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::{BytesExt, ValueExt}, request::{Metho...
crates/hyperswitch_connectors/src/connectors/zsl.rs
hyperswitch_connectors
full_file
3,768
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Score { factor_codes: Option<Vec<String>>, result: Option<RiskResult>, model_used: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
Score
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.NextActionCall { "type": "string", "enum": [ "post_session_tokens", "confirm", "sync", "complete_authorize" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
48
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "NextActionCall" ]
null
null
null
null
impl MandateInterface for KafkaStore { async fn find_mandate_by_merchant_id_mandate_id( &self, merchant_id: &id_type::MerchantId, mandate_id: &str, storage_scheme: MerchantStorageScheme, ) -> CustomResult<storage::Mandate, errors::StorageError> { self.diesel_store ...
crates/router/src/db/kafka_store.rs
router
impl_block
685
rust
null
KafkaStore
MandateInterface for
impl MandateInterface for for KafkaStore
null
null
null
null
null
null
null
null
pub struct FiservSessionObject { pub terminal_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
FiservSessionObject
null
null
null
null
null
null
null
null
null
null
null
pub struct ArchipelRefundRequest { pub order: ArchipelRefundOrder, pub tenant_id: ArchipelTenantId, }
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
ArchipelRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthoriseIntegrityObject { /// Authorise amount pub amount: MinorUnit, /// Authorise currency pub currency: storage_enums::Currency, }
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
38
rust
AuthoriseIntegrityObject
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/taxjar/transformers.rs Public structs: 8 use common_enums::enums; use common_utils::types::{FloatMajorUnit, FloatMajorUnitForConnector}; use error_stack::report; use hyperswitch_domain_models::{ router_data::{ConnectorAuthType, RouterData}, router_request_typ...
crates/hyperswitch_connectors/src/connectors/taxjar/transformers.rs
hyperswitch_connectors
full_file
1,254
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ApplePayCryptogramDataInternal { pub online_payment_cryptogram: Secret<String>, pub eci_indicator: Option<String>, }
crates/hyperswitch_domain_models/src/router_data.rs
hyperswitch_domain_models
struct_definition
30
rust
ApplePayCryptogramDataInternal
null
null
null
null
null
null
null
null
null
null
null
impl PaymentToken for Threedsecureio {}
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
hyperswitch_connectors
impl_block
9
rust
null
Threedsecureio
PaymentToken for
impl PaymentToken for for Threedsecureio
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.OpenBankingSessionToken { "type": "object", "required": [ "open_banking_session_token" ], "properties": { "open_banking_session_token": { "type": "string", "description": "The session token for OpenBanking Connectors" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
78
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "OpenBankingSessionToken" ]
null
null
null
null
pub struct Webhooks;
crates/router/src/routes/app.rs
router
struct_definition
5
rust
Webhooks
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/unified_authentication_service.rs Public functions: 6 pub mod types; use std::str::FromStr; pub mod utils; #[cfg(feature = "v1")] use api_models::authentication::{ AuthenticationEligibilityRequest, AuthenticationEligibilityResponse, AuthenticationSyncPostUpdateRequest, Authentica...
crates/router/src/core/unified_authentication_service.rs#chunk0
router
chunk
8,190
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct DisputeMetricRow { pub dispute_stage: Option<DBEnumWrapper<storage_enums::DisputeStage>>, pub dispute_status: Option<DBEnumWrapper<storage_enums::DisputeStatus>>, pub connector: Option<String>, pub currency: Option<DBEnumWrapper<storage_enums::Currency>>, pub total: Option<bigdecimal::Big...
crates/analytics/src/disputes/metrics.rs
analytics
struct_definition
151
rust
DisputeMetricRow
null
null
null
null
null
null
null
null
null
null
null
let profile = state .store() .find_business_profile_by_merchant_id_profile_id( key_manager_state, &key_store, &merchant_id, &profile_id, ) .await .to_not_found_response(errors::ApiErrorRes...
crates/router/src/services/authentication.rs#chunk2
router
chunk
8,190
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn if_not_create_change_operation<'a, Op, F>( status: storage_enums::IntentStatus, confirm: Option<bool>, current: &'a Op, ) -> BoxedOperation<'a, F, api::PaymentsRequest, PaymentData<F>> where F: Send + Clone + Sync, Op: Operation<F, api::PaymentsRequest, Data = PaymentData<F>> + Send + Sync, ...
crates/router/src/core/payments.rs
router
function_signature
228
rust
null
null
null
null
if_not_create_change_operation
null
null
null
null
null
null
null
pub struct PaymentCancelPostCapture;
crates/router/src/core/payments/operations/payment_cancel_post_capture.rs
router
struct_definition
7
rust
PaymentCancelPostCapture
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/volt.rs Public functions: 1 Public structs: 1 pub mod transformers; use api_models::webhooks::IncomingWebhookEvent; use common_enums::enums; use common_utils::{ crypto, errors::CustomResult, ext_traits::ByteSliceExt, request::{Method, Request, Reque...
crates/hyperswitch_connectors/src/connectors/volt.rs
hyperswitch_connectors
full_file
5,795
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Globalpay { amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/globalpay.rs
hyperswitch_connectors
struct_definition
27
rust
Globalpay
null
null
null
null
null
null
null
null
null
null
null
pub struct GetMultipleMetaDataPayload { pub results: Vec<GetMetaDataRequest>, }
crates/api_models/src/user/dashboard_metadata.rs
api_models
struct_definition
18
rust
GetMultipleMetaDataPayload
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Flexiti { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&FLEXITI_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*FLEXITI_SUPPORTED_PAYMENT_METHODS) } fn get_supp...
crates/hyperswitch_connectors/src/connectors/flexiti.rs
hyperswitch_connectors
impl_block
111
rust
null
Flexiti
ConnectorSpecifications for
impl ConnectorSpecifications for for Flexiti
null
null
null
null
null
null
null
null
pub struct PaymentsAuthorizeData { pub payment_method_data: PaymentMethodData, /// total amount (original_amount + surcharge_amount + tax_on_surcharge_amount) /// If connector supports separate field for surcharge amount, consider using below functions defined on `PaymentsAuthorizeData` to fetch original am...
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
689
rust
PaymentsAuthorizeData
null
null
null
null
null
null
null
null
null
null
null
File: crates/api_models/src/analytics/disputes.rs Public functions: 1 Public structs: 4 use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, }; use super::{ForexMetric, NameDescription, TimeRange}; use crate::enums::{Currency, DisputeStage}; #[derive( Clone, Debug, Hash, P...
crates/api_models/src/analytics/disputes.rs
api_models
full_file
959
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Klarna { fn id(&self) -> &'static str { "klarna" } 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...
crates/hyperswitch_connectors/src/connectors/klarna.rs
hyperswitch_connectors
impl_block
490
rust
null
Klarna
ConnectorCommon for
impl ConnectorCommon for for Klarna
null
null
null
null
null
null
null
null
pub async fn create_merchant_account( state: SessionState, user_from_token: auth::UserFromToken, req: user_api::UserMerchantCreate, ) -> UserResponse<user_api::UserMerchantAccountResponse> { let user_from_db = user_from_token.get_user_from_db(&state).await?; let new_merchant = domain::NewUserMercha...
crates/router/src/core/user.rs
router
function_signature
203
rust
null
null
null
null
create_merchant_account
null
null
null
null
null
null
null
pub struct Customer { pub customer_id: common_utils::id_type::CustomerId, pub merchant_id: common_utils::id_type::MerchantId, pub name: Option<Encryption>, pub email: Option<Encryption>, pub phone: Option<Encryption>, pub phone_country_code: Option<String>, pub description: Option<Descriptio...
crates/diesel_models/src/customers.rs
diesel_models
struct_definition
159
rust
Customer
null
null
null
null
null
null
null
null
null
null
null
pub(crate) async fn update_pt_status_based_on_attempt_status_for_execute_payment( &self, db: &dyn StorageInterface, execute_task_process: &storage::ProcessTracker, ) -> Result<(), errors::ProcessTrackerError> { logger::info!("Entering update_pt_status_based_on_attempt_status_for_exec...
crates/router/src/core/revenue_recovery/types.rs
router
function_signature
243
rust
null
null
null
null
update_pt_status_based_on_attempt_status_for_execute_payment
null
null
null
null
null
null
null
impl ConnectorValidation for Globepay {}
crates/hyperswitch_connectors/src/connectors/globepay.rs
hyperswitch_connectors
impl_block
8
rust
null
Globepay
ConnectorValidation for
impl ConnectorValidation for for Globepay
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Blocklist> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/blocklist.rs
diesel_models
function_signature
34
rust
null
null
null
null
insert
null
null
null
null
null
null
null
impl ConnectorAuthTypeAndMetadataValidation<'_> { pub fn validate_auth_and_metadata_type( &self, ) -> Result<(), error_stack::Report<errors::ApiErrorResponse>> { let connector_auth_type_validation = ConnectorAuthTypeValidation { auth_type: self.auth_type, }; connector...
crates/router/src/core/connector_validation.rs
router
impl_block
4,953
rust
null
ConnectorAuthTypeAndMetadataValidation
null
impl ConnectorAuthTypeAndMetadataValidation
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs Public structs: 15 use api_models::payments::OpenBankingSessionToken; use common_enums::{AttemptStatus, Currency}; use common_utils::types::FloatMajorUnit; use hyperswitch_domain_models::{ payment_method_data::{OpenBankingData, PaymentMethod...
crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs
hyperswitch_connectors
full_file
3,107
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Payu {}
crates/hyperswitch_connectors/src/connectors/payu.rs
hyperswitch_connectors
impl_block
11
rust
null
Payu
api::MandateSetup for
impl api::MandateSetup for for Payu
null
null
null
null
null
null
null
null
File: crates/router/src/compatibility/stripe/setup_intents/types.rs Public structs: 11 use std::str::FromStr; use api_models::payments; use common_utils::{date_time, ext_traits::StringExt, id_type, pii as secret}; use error_stack::ResultExt; use router_env::logger; use serde::{Deserialize, Serialize}; use serde_json...
crates/router/src/compatibility/stripe/setup_intents/types.rs
router
full_file
4,722
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Santander {}
crates/hyperswitch_connectors/src/connectors/santander.rs
hyperswitch_connectors
impl_block
9
rust
null
Santander
api::PaymentToken for
impl api::PaymentToken for for Santander
null
null
null
null
null
null
null
null