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/router/src/core/refunds_v2.rs Public functions: 18 use std::{fmt::Debug, str::FromStr}; use api_models::{enums::Connector, refunds::RefundErrorDetails}; use common_utils::{id_type, types as common_utils_types}; use diesel_models::refund as diesel_refund; use error_stack::{report, ResultExt}; use hypersw...
crates/router/src/core/refunds_v2.rs#chunk0
router
chunk
8,190
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/api_models/src/routing.rs Public functions: 40 Public structs: 64 use std::fmt::Debug; use common_types::three_ds_decision_rule_engine::{ThreeDSDecision, ThreeDSDecisionRule}; use common_utils::{ errors::{ParsingError, ValidationError}, ext_traits::ValueExt, pii, }; use euclid::frontend::as...
crates/api_models/src/routing.rs#chunk0
api_models
chunk
8,188
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn fetch_consumer_tasks( db: &dyn ProcessTrackerInterface, redis_conn: &RedisConnectionPool, stream_name: &str, group_name: &str, consumer_name: &str, ) -> CustomResult<Vec<storage::ProcessTracker>, errors::ProcessTrackerError> { let batches = pt_utils::get_batches(redis_conn, stream_n...
crates/scheduler/src/consumer.rs
scheduler
function_signature
322
rust
null
null
null
null
fetch_consumer_tasks
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MerchantRecipientData { "oneOf": [ { "type": "object", "required": [ "connector_recipient_id" ], "properties": { "connector_recipient_id": { "type": "string", "nullable": true } } }, { "t...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
181
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantRecipientData" ]
null
null
null
null
**Full Changelog:** [`2024.03.13.0...2024.03.13.1`](https://github.com/juspay/hyperswitch/compare/2024.03.13.0...2024.03.13.1) - - - ## 2024.03.13.0 ### Features - **connector:** [AUTHORIZEDOTNET] Audit Connector ([#4035](https://github.com/juspay/hyperswitch/pull/4035)) ([`7840bdb`](https://github.com/juspay/hyper...
CHANGELOG.md#chunk37
null
doc_chunk
8,172
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ThreedsecureioPreAuthenticationRequest { acct_number: cards::CardNumber, ds: Option<DirectoryServer>, }
crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
ThreedsecureioPreAuthenticationRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn get_captures_count(&self) -> RouterResult<i16> { i16::try_from(self.all_captures.len()) .change_context(errors::ApiErrorResponse::InternalServerError) .attach_printable("Error while converting from usize to i16") }
crates/router/src/core/payments/types.rs
router
function_signature
61
rust
null
null
null
null
get_captures_count
null
null
null
null
null
null
null
pub struct CybersourceErrorInformationResponse { id: String, error_information: CybersourceErrorInformation, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
CybersourceErrorInformationResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn generate_jwt( self, state: &SessionState, next_flow: &NextFlow, user_role: &UserRole, ) -> UserResult<Secret<String>> { let user_id = next_flow.user.get_user_id(); // Fetch lineage context from DB let lineage_context_from_db = state .g...
crates/router/src/types/domain/user/decision_manager.rs
router
function_signature
618
rust
null
null
null
null
generate_jwt
null
null
null
null
null
null
null
pub struct TwoFactorStatus { pub status: Option<TwoFactorAuthStatusResponseWithAttempts>, pub is_skippable: bool, }
crates/api_models/src/user.rs
api_models
struct_definition
30
rust
TwoFactorStatus
null
null
null
null
null
null
null
null
null
null
null
impl RedisConnInterface for RedisStore { fn get_redis_conn( &self, ) -> error_stack::Result< Arc<redis_interface::RedisConnectionPool>, redis_interface::errors::RedisError, > { if self .redis_conn .is_redis_available .load(atomic::Ordering:...
crates/storage_impl/src/redis.rs
storage_impl
impl_block
109
rust
null
RedisStore
RedisConnInterface for
impl RedisConnInterface for for RedisStore
null
null
null
null
null
null
null
null
impl NewUserRole<NoLevel> { pub fn add_entity<T>(self, entity: T) -> NewUserRole<T> where T: Clone, { NewUserRole { entity, user_id: self.user_id, role_id: self.role_id, status: self.status, created_by: self.created_by, ...
crates/router/src/types/domain/user.rs
router
impl_block
104
rust
null
NewUserRole
null
impl NewUserRole
null
null
null
null
null
null
null
null
pub struct TotpSecret { pub secret: Secret<String>, pub totp_url: Secret<String>, }
crates/api_models/src/user.rs
api_models
struct_definition
23
rust
TotpSecret
null
null
null
null
null
null
null
null
null
null
null
pub fn resource(&self) -> Resource { match self { #(#resource_impl_per),* } }
crates/router_derive/src/macros/generate_permissions.rs
router_derive
function_signature
25
rust
null
null
null
null
resource
null
null
null
null
null
null
null
pub struct Card { card_holder_name: Secret<String>, card_number: CardNumber, expiry_date: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/payone/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
Card
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/business_profile.rs Public functions: 7 use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, Table}; use super::generics; #[cfg(feature = "v1")] use crate::schema::business_profile::dsl::{self, profile_id as dsl_identifier}; #[cfg(feature = "v2")] use cr...
crates/diesel_models/src/query/business_profile.rs
diesel_models
full_file
819
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentAttemptUpdateMems { pub orig: PaymentAttempt, pub update_data: PaymentAttemptUpdateInternal, }
crates/diesel_models/src/kv.rs
diesel_models
struct_definition
26
rust
PaymentAttemptUpdateMems
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs Public structs: 40 use std::collections::HashMap; use api_models::{ payments::{ AmountInfo, ApplePayPaymentRequest, ApplePaySessionResponse, ApplepayCombinedSessionTokenData, ApplepaySessionTokenData, ApplepaySessionToken...
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs#chunk0
hyperswitch_connectors
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/scheduler/src/flow.rs #[derive(Copy, Clone, Debug, strum::Display, strum::EnumString)] #[strum(serialize_all = "snake_case")] pub enum SchedulerFlow { Producer, Consumer, Cleaner, }
crates/scheduler/src/flow.rs
scheduler
full_file
56
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn routing_create_config() {}
crates/openapi/src/routes/routing.rs
openapi
function_signature
8
rust
null
null
null
null
routing_create_config
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AuthenticationEligibilityRequest { "type": "object", "required": [ "payment_method_data", "payment_method" ], "properties": { "payment_method_data": { "$ref": "#/components/schemas/PaymentMethodData" }, "payment_method": { "$ref": "#/compone...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
362
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AuthenticationEligibilityRequest" ]
null
null
null
null
impl CardRange { pub fn get_three_ds_method_url(&self) -> Option<String> { self.acs_protocol_versions .iter() .find(|acs_protocol_version| { acs_protocol_version.version == self.highest_common_supported_version }) .and_then(|acs_version| acs_ve...
crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
hyperswitch_connectors
impl_block
77
rust
null
CardRange
null
impl CardRange
null
null
null
null
null
null
null
null
pub struct MomoRedirection {}
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
7
rust
MomoRedirection
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MifinityData { "type": "object", "required": [ "date_of_birth" ], "properties": { "date_of_birth": { "type": "string", "format": "date" }, "language_preference": { "type": "string", "nullable": true } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
86
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MifinityData" ]
null
null
null
null
} fn get_error_response( &self, res: Response, event_builder: Option<&mut ConnectorEvent>, ) -> CustomResult<ErrorResponse, errors::ConnectorError> { self.build_error_response(res, event_builder) } fn get_5xx_error_response( &self, res: Response, ...
crates/hyperswitch_connectors/src/connectors/cybersource.rs#chunk1
hyperswitch_connectors
chunk
6,373
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorRedirectResponse for Mollie { 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::Paym...
crates/hyperswitch_connectors/src/connectors/mollie.rs
hyperswitch_connectors
impl_block
119
rust
null
Mollie
ConnectorRedirectResponse for
impl ConnectorRedirectResponse for for Mollie
null
null
null
null
null
null
null
null
pub struct ApplePayCertificatesMigration;
crates/router/src/routes/app.rs
router
struct_definition
7
rust
ApplePayCertificatesMigration
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Dlocal {}
crates/hyperswitch_connectors/src/connectors/dlocal.rs
hyperswitch_connectors
impl_block
9
rust
null
Dlocal
api::PaymentToken for
impl api::PaymentToken for for Dlocal
null
null
null
null
null
null
null
null
/// Name of current environment. Either "development", "sandbox" or "production". pub fn which() -> Env { #[cfg(debug_assertions)] let default_env = Env::Development; #[cfg(not(debug_assertions))] let default_env = Env::Production; std::env::var(vars::RUN_ENV).map_or_else(|_| default_env, |v| v.par...
crates/router_env/src/env.rs
router_env
function_signature
88
rust
null
null
null
null
which
null
null
null
null
null
null
null
pub fn get_base_url(state: &SessionState) -> &str { if !state.conf.multitenancy.enabled { &state.conf.user.base_url } else { &state.tenant.user.control_center_url } }
crates/router/src/utils/user.rs
router
function_signature
50
rust
null
null
null
null
get_base_url
null
null
null
null
null
null
null
pub async fn decrypt_generic_data<T>( state: &routes::SessionState, data: Option<Encryption>, key_store: &domain::MerchantKeyStore, ) -> errors::RouterResult<Option<T>> where T: serde::de::DeserializeOwned, { let key = key_store.key.get_inner().peek(); let identifier = Identifier::Merchant(key_s...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
253
rust
null
null
null
null
decrypt_generic_data
null
null
null
null
null
null
null
File: crates/router/src/core/payments/flows/approve_flow.rs use async_trait::async_trait; use super::{ConstructFlowSpecificData, Feature}; use crate::{ core::{ errors::{ApiErrorResponse, NotImplementedMessage, RouterResult}, payments::{self, access_token, helpers, transformers, PaymentData}, }...
crates/router/src/core/payments/flows/approve_flow.rs
router
full_file
795
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/pm_auth/src/types/api/auth_service.rs Public structs: 4 use crate::types::{ BankAccountCredentialsRequest, BankAccountCredentialsResponse, ExchangeTokenRequest, ExchangeTokenResponse, LinkTokenRequest, LinkTokenResponse, RecipientCreateRequest, RecipientCreateResponse, }; pub trait AuthServi...
crates/pm_auth/src/types/api/auth_service.rs
pm_auth
full_file
268
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/api/payments.rs //! Payments interface use hyperswitch_domain_models::{ router_flow_types::{ payments::{ Approve, Authorize, AuthorizeSessionToken, CalculateTax, Capture, CompleteAuthorize, CreateConnectorCustomer, IncrementalAuthorization, P...
crates/hyperswitch_interfaces/src/api/payments.rs
hyperswitch_interfaces
full_file
1,128
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn terminate_two_factor_auth( state: web::Data<AppState>, req: HttpRequest, query: web::Query<user_api::SkipTwoFactorAuthQueryParam>, ) -> HttpResponse { let flow = Flow::TerminateTwoFactorAuth; let skip_two_factor_auth = query.into_inner().skip_two_factor_auth.unwrap_or(false); Box::...
crates/router/src/routes/user.rs
router
function_signature
151
rust
null
null
null
null
terminate_two_factor_auth
null
null
null
null
null
null
null
pub struct BluesnapThreeDsReference { three_d_secure_reference_id: String, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
BluesnapThreeDsReference
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/macros.rs pub use common_utils::newtype; #[macro_export] macro_rules! get_payment_link_config_value_based_on_priority { ($config:expr, $business_config:expr, $field:ident, $default:expr) => { $config .as_ref() .and_then(|pc_config| pc_config.theme_config.$fi...
crates/router/src/macros.rs
router
full_file
395
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GetDisputeFilters; Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inner(), |state, auth: AuthenticationData, req, _| async move { let org_id = auth.merchant_account.get...
crates/router/src/analytics.rs
router
impl_block
199
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct Authentication { pub user: Secret<String>, pub password: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
Authentication
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/routing_events.rs mod core; pub mod events; pub trait RoutingEventAnalytics: events::RoutingEventLogAnalytics {} pub use self::core::routing_events_core;
crates/analytics/src/routing_events.rs
analytics
full_file
41
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_merchant_refund_filters( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<GetRefundFilterRequest>, ) -> impl Responder { let flow = AnalyticsFlow::GetRefundFilters; Box::pin(api::server_wrap( flow, state...
crates/router/src/analytics.rs
router
function_signature
234
rust
null
null
null
null
get_merchant_refund_filters
null
null
null
null
null
null
null
impl api::MandateSetup for Deutschebank {}
crates/hyperswitch_connectors/src/connectors/deutschebank.rs
hyperswitch_connectors
impl_block
11
rust
null
Deutschebank
api::MandateSetup for
impl api::MandateSetup for for Deutschebank
null
null
null
null
null
null
null
null
impl Gocardless { pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/gocardless.rs
hyperswitch_connectors
impl_block
34
rust
null
Gocardless
null
impl Gocardless
null
null
null
null
null
null
null
null
impl MerchantConnectorCreate { pub fn get_transaction_type(&self) -> api_enums::TransactionType { match self.connector_type { #[cfg(feature = "payouts")] api_enums::ConnectorType::PayoutProcessor => api_enums::TransactionType::Payout, _ => api_enums::TransactionType::Paym...
crates/api_models/src/admin.rs
api_models
impl_block
193
rust
null
MerchantConnectorCreate
null
impl MerchantConnectorCreate
null
null
null
null
null
null
null
null
pub struct NetceteraAuthenticationFailureResponse { pub error_details: NetceteraErrorDetails, }
crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
NetceteraAuthenticationFailureResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ErrorDetails { pub issue: String, pub description: Option<String>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
ErrorDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentsDslInput<'a> { pub setup_mandate: Option<&'a mandates::MandateData>, pub payment_attempt: &'a storage::PaymentAttempt, pub payment_intent: &'a storage::PaymentIntent, pub payment_method_data: Option<&'a domain::PaymentMethodData>, pub address: &'a payment_address::PaymentAddress, ...
crates/router/src/core/routing.rs
router
struct_definition
107
rust
PaymentsDslInput
null
null
null
null
null
null
null
null
null
null
null
pub struct RoutingDictionaryRecord { pub rule_id: String, pub name: String, pub created_at: time::PrimitiveDateTime, pub modified_at: time::PrimitiveDateTime, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
40
rust
RoutingDictionaryRecord
null
null
null
null
null
null
null
null
null
null
null
impl BillingConnectorInvoiceSyncResponseData { async fn handle_billing_connector_invoice_sync_call( state: &SessionState, merchant_context: &domain::MerchantContext, merchant_connector_account: &hyperswitch_domain_models::merchant_connector_account::MerchantConnectorAccount, connecto...
crates/router/src/core/webhooks/recovery_incoming.rs
router
impl_block
721
rust
null
BillingConnectorInvoiceSyncResponseData
null
impl BillingConnectorInvoiceSyncResponseData
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PayoutMethodDataResponse { "oneOf": [ { "type": "object", "required": [ "card" ], "properties": { "card": { "$ref": "#/components/schemas/CardAdditionalData" } } }, { "type": "object", "requi...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
185
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PayoutMethodDataResponse" ]
null
null
null
null
pub async fn refunds_manual_update( state: web::Data<AppState>, req: HttpRequest, payload: web::Json<api_models::refunds::RefundManualUpdateRequest>, path: web::Path<String>, ) -> HttpResponse { let flow = Flow::RefundsManualUpdate; let mut refund_manual_update_req = payload.into_inner(); re...
crates/router/src/routes/refunds.rs
router
function_signature
157
rust
null
null
null
null
refunds_manual_update
null
null
null
null
null
null
null
pub async fn list_routing_configs() {}
crates/openapi/src/routes/routing.rs
openapi
function_signature
8
rust
null
null
null
null
list_routing_configs
null
null
null
null
null
null
null
pub struct RefundResponse { response_code: AuthorizedotnetRefundStatus, #[serde(rename = "transId")] transaction_id: String, #[allow(dead_code)] network_trans_id: Option<Secret<String>>, pub account_number: Option<Secret<String>>, pub errors: Option<Vec<ErrorMessage>>, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
68
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct UpdatePaymentMethodRecord { pub payment_method_id: String, pub status: Option<common_enums::PaymentMethodStatus>, pub network_transaction_id: Option<String>, pub line_number: Option<i64>, pub payment_instrument_id: Option<masking::Secret<String>>, pub merchant_connector_id: Option<id_...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
79
rust
UpdatePaymentMethodRecord
null
null
null
null
null
null
null
null
null
null
null
pub struct WorldpayRouterData<T> { amount: i64, router_data: T, }
crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
WorldpayRouterData
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Opayo { fn validate_connector_against_payment_request( &self, capture_method: Option<enums::CaptureMethod>, _payment_method: enums::PaymentMethod, _pmt: Option<enums::PaymentMethodType>, ) -> CustomResult<(), errors::ConnectorError> { let capt...
crates/hyperswitch_connectors/src/connectors/opayo.rs
hyperswitch_connectors
impl_block
154
rust
null
Opayo
ConnectorValidation for
impl ConnectorValidation for for Opayo
null
null
null
null
null
null
null
null
pub async fn create_decision_engine_merchant( state: &SessionState, profile_id: &id_type::ProfileId, ) -> RouterResult<()> { let merchant_account_req = open_router::MerchantAccount { merchant_id: profile_id.get_string_repr().to_string(), gateway_success_rate_based_decider_input: None, };...
crates/router/src/core/routing/helpers.rs
router
function_signature
158
rust
null
null
null
null
create_decision_engine_merchant
null
null
null
null
null
null
null
pub struct ThreeDSRequestChallenge { pub return_url: String, #[serde(skip_serializing_if = "Option::is_none")] pub preference: Option<ThreeDsPreference>, }
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
hyperswitch_connectors
struct_definition
39
rust
ThreeDSRequestChallenge
null
null
null
null
null
null
null
null
null
null
null
File: crates/euclid/src/dssa/types.rs Public functions: 5 Public structs: 3 use std::{collections::HashMap, fmt}; use serde::Serialize; use crate::{ dssa::{self, graph}, frontend::{ast, dir}, types::{DataType, EuclidValue, Metadata}, }; pub trait EuclidAnalysable: Sized { fn get_dir_value_for_anal...
crates/euclid/src/dssa/types.rs
euclid
full_file
1,231
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::CustomersGetMandates; let customer_id = path.into_inner(); Box::pin(api::server_wrap( flow, state, &req, customer_id, |state, auth: auth::AuthenticationData, customer_id, _| { let merchant_context = domain::MerchantContex...
crates/router/src/routes/customers.rs
router
impl_block
196
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Bankofamerica { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplem...
crates/hyperswitch_connectors/src/connectors/bankofamerica.rs
hyperswitch_connectors
impl_block
215
rust
null
Bankofamerica
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Bankofamerica
null
null
null
null
null
null
null
null
pub struct ProfileNew;
crates/router/src/routes/app.rs
router
struct_definition
5
rust
ProfileNew
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthenticationErrorInformation { pub rmsg: String, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
AuthenticationErrorInformation
null
null
null
null
null
null
null
null
null
null
null
impl auth_service::AuthServiceBankAccountCredentials for Plaid {}
crates/pm_auth/src/connector/plaid.rs
pm_auth
impl_block
12
rust
null
Plaid
auth_service::AuthServiceBankAccountCredentials for
impl auth_service::AuthServiceBankAccountCredentials for for Plaid
null
null
null
null
null
null
null
null
pub fn add_connector_http_status_code_metrics(option_status_code: Option<u16>) { if let Some(status_code) = option_status_code { let status_code_type = get_http_status_code_type(status_code).ok(); match status_code_type.as_deref() { Some("1xx") => metrics::CONNECTOR_HTTP_STATUS_CODE_1XX_...
crates/router/src/utils.rs
router
function_signature
224
rust
null
null
null
null
add_connector_http_status_code_metrics
null
null
null
null
null
null
null
pub struct PaymentAdditionalData<'a, F> where F: Clone, { router_base_url: String, connector_name: String, payment_data: PaymentData<F>, state: &'a SessionState, customer_data: &'a Option<domain::Customer>, }
crates/router/src/core/payments/transformers.rs
router
struct_definition
60
rust
PaymentAdditionalData
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantConnectorDetails { /// Account details of the Connector. You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Useful for storing additional, structured information on an object. #[schema(value_type = Option<Object>,example = json!({ "aut...
crates/api_models/src/admin.rs
api_models
struct_definition
171
rust
MerchantConnectorDetails
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for CtpMastercard {}
crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs
hyperswitch_connectors
impl_block
11
rust
null
CtpMastercard
api::Refund for
impl api::Refund for for CtpMastercard
null
null
null
null
null
null
null
null
pub struct CeleroAddress { first_name: Option<Secret<String>>, last_name: Option<Secret<String>>, address_line_1: Option<Secret<String>>, address_line_2: Option<Secret<String>>, city: Option<String>, state: Option<Secret<String>>, postal_code: Option<Secret<String>>, country: Option<comm...
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
98
rust
CeleroAddress
null
null
null
null
null
null
null
null
null
null
null
pub struct Card { number: cards::CardNumber, expiration_month: Secret<String>, expiration_year: Secret<String>, security_code: Option<Secret<String>>, #[serde(rename = "type")] card_type: Option<String>, type_selection_indicator: Option<String>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
59
rust
Card
null
null
null
null
null
null
null
null
null
null
null
pub struct GlobalpayCancelRouterData<T> { pub amount: Option<StringMinorUnit>, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs
hyperswitch_connectors
struct_definition
27
rust
GlobalpayCancelRouterData
null
null
null
null
null
null
null
null
null
null
null
pub trait TransitionTo<S: State> {}
crates/router/src/core/payment_methods/tokenize.rs
router
trait_definition
9
rust
null
null
TransitionTo
null
null
null
null
null
null
null
null
null
impl MergedEnabledPaymentMethodTypes { fn get_required_fields( self, input: RequiredFieldsInput, ) -> RequiredFieldsForEnabledPaymentMethodTypes { let required_fields_config = input.required_fields_config; let is_cit_transaction = input.setup_future_usage == common_enums::FutureU...
crates/router/src/core/payments/payment_methods.rs
router
impl_block
421
rust
null
MergedEnabledPaymentMethodTypes
null
impl MergedEnabledPaymentMethodTypes
null
null
null
null
null
null
null
null
pub fn get_pending_captures_without_connector_capture_id(&self) -> Vec<&storage::Capture> { self.get_pending_captures() .into_iter() .filter(|capture| capture.get_optional_connector_transaction_id().is_none()) .collect() }
crates/router/src/core/payments/types.rs
router
function_signature
57
rust
null
null
null
null
get_pending_captures_without_connector_capture_id
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Fiserv {}
crates/hyperswitch_connectors/src/connectors/fiserv.rs
hyperswitch_connectors
impl_block
10
rust
null
Fiserv
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Fiserv
null
null
null
null
null
null
null
null
pub struct SilverflowCardData { pub number: String, pub expiry_month: Secret<String>, pub expiry_year: Secret<String>, pub cvc: String, pub holder_name: String, }
crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
SilverflowCardData
null
null
null
null
null
null
null
null
null
null
null
pub fn get_value(&self) -> &T { match self { Self::ValueSet(value) => value, Self::ValueExists(value) => value, } }
crates/redis_interface/src/types.rs
redis_interface
function_signature
39
rust
null
null
null
null
get_value
null
null
null
null
null
null
null
pub struct Advice { pub code: Option<String>, }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
struct_definition
12
rust
Advice
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs Public structs: 22 #[cfg(feature = "payouts")] use common_enums::enums::PayoutEntityType; use common_enums::{enums, Currency, PayoutStatus}; use common_utils::{pii::Email, types::FloatMajorUnit}; use hyperswitch_domain_models::router_data::Con...
crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs
hyperswitch_connectors
full_file
3,924
null
null
null
null
null
null
null
null
null
null
null
null
null
impl masking::SerializableSecret for Address {}
crates/hyperswitch_domain_models/src/address.rs
hyperswitch_domain_models
impl_block
8
rust
null
Address
masking::SerializableSecret for
impl masking::SerializableSecret for for Address
null
null
null
null
null
null
null
null
impl ResourceExt for Resource { fn entities(&self) -> Vec<EntityType> { match self { #(#entity_impl_res),* } } }
crates/router_derive/src/macros/generate_permissions.rs
router_derive
impl_block
36
rust
null
Resource
ResourceExt for
impl ResourceExt for for Resource
null
null
null
null
null
null
null
null
pub async fn customer_retrieve( state: web::Data<routes::AppState>, req: HttpRequest, path: web::Path<id_type::CustomerId>, ) -> HttpResponse { let customer_id = path.into_inner(); let flow = Flow::CustomersRetrieve; Box::pin(wrap::compatibility_api_wrap::< _, _, _, ...
crates/router/src/compatibility/stripe/customers.rs
router
function_signature
230
rust
null
null
null
null
customer_retrieve
null
null
null
null
null
null
null
Documentation: api-reference/v2/merchant-account/merchant-account--profile-list.mdx # Type: Doc File --- openapi: get /v2/merchant-accounts/{id}/profiles ---
api-reference/v2/merchant-account/merchant-account--profile-list.mdx
null
doc_file
42
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct MandatePaymentRequest { pub amount: FloatMajorUnit, pub currency: Currency, pub capture_method: String, pub payment_method_id: Secret<String>, pub channel_properties: ChannelProperties, }
crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs
hyperswitch_connectors
struct_definition
46
rust
MandatePaymentRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct CaptureNew { pub capture_id: String, pub payment_id: common_utils::id_type::PaymentId, pub merchant_id: common_utils::id_type::MerchantId, pub status: storage_enums::CaptureStatus, pub amount: MinorUnit, pub currency: Option<storage_enums::Currency>, pub connector: String, pub...
crates/diesel_models/src/capture.rs
diesel_models
struct_definition
237
rust
CaptureNew
null
null
null
null
null
null
null
null
null
null
null
pub struct AirwallexPaymentsResponse { status: AirwallexPaymentStatus, //Unique identifier for the PaymentIntent id: String, amount: Option<f32>, //ID of the PaymentConsent related to this PaymentIntent payment_consent_id: Option<Secret<String>>, next_action: Option<AirwallexPaymentsNextActi...
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
78
rust
AirwallexPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/api_models/src/analytics/active_payments.rs Public functions: 1 Public structs: 4 use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, }; use super::NameDescription; #[derive( Clone, Debug, Hash, PartialEq, Eq, serde::Serialize, serde::Deserialize,...
crates/api_models/src/analytics/active_payments.rs
api_models
full_file
428
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorPreAuthentication for Threedsecureio {}
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
hyperswitch_connectors
impl_block
10
rust
null
Threedsecureio
ConnectorPreAuthentication for
impl ConnectorPreAuthentication for for Threedsecureio
null
null
null
null
null
null
null
null
impl ConnectorCommon for Hipay { fn id(&self) -> &'static str { "hipay" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.hipay.base_url.as_ref() } fn get_auth_h...
crates/hyperswitch_connectors/src/connectors/hipay.rs
hyperswitch_connectors
impl_block
401
rust
null
Hipay
ConnectorCommon for
impl ConnectorCommon for for Hipay
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Santander {}
crates/hyperswitch_connectors/src/connectors/santander.rs
hyperswitch_connectors
impl_block
9
rust
null
Santander
api::PaymentCapture for
impl api::PaymentCapture for for Santander
null
null
null
null
null
null
null
null
pub struct LabelWithStatusEliminationEventResponse { pub label: String, pub elimination_information: Option<EliminationInformationEventResponse>, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
30
rust
LabelWithStatusEliminationEventResponse
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/payments/payments--confirm-intent.mdx # Type: Doc File --- openapi: post /v2/payments/{id}/confirm-intent ---
api-reference/v2/payments/payments--confirm-intent.mdx
null
doc_file
41
doc
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: crates/api_models/README.md # Type: Doc File # API Models Request/response models for the `router` crate.
crates/api_models/README.md
null
doc_file
29
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct VoidStatus { pub authorization: SilverflowVoidAuthorizationStatus, }
crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
VoidStatus
null
null
null
null
null
null
null
null
null
null
null
pub struct ArchipelWalletInformation { wallet_indicator: Option<String>, wallet_provider: ArchipelWalletProvider, wallet_cryptogram: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
ArchipelWalletInformation
null
null
null
null
null
null
null
null
null
null
null
pub struct ExchangeTokenRequest { pub public_token: String, }
crates/pm_auth/src/types.rs
pm_auth
struct_definition
14
rust
ExchangeTokenRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/openapi/src/routes/poll.rs Public functions: 1 /// Poll - Retrieve Poll Status #[utoipa::path( get, path = "/poll/status/{poll_id}", params( ("poll_id" = String, Path, description = "The identifier for poll") ), responses( (status = 200, description = "The poll status ...
crates/openapi/src/routes/poll.rs
openapi
full_file
145
null
null
null
null
null
null
null
null
null
null
null
null
null
let router_data = payment_data .construct_router_data( state, connector.connector.id(), merchant_context, customer, &merchant_connector_account_type_details, None, None, ) .await?; Ok(( merchant...
crates/router/src/core/payments.rs#chunk4
router
chunk
8,184
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Inespay {}
crates/hyperswitch_connectors/src/connectors/inespay.rs
hyperswitch_connectors
impl_block
12
rust
null
Inespay
api::MandateSetup for
impl api::MandateSetup for for Inespay
null
null
null
null
null
null
null
null
impl ConnectorAuthenticationMap { pub fn inner(&self) -> &HashMap<String, ConnectorAuthType> { &self.0 } /// # Panics /// /// Will panic if `CONNECTOR_AUTH_FILE_PATH` env is not set #[allow(clippy::expect_used)] pub fn new() -> Self { // Do `export CONNECTOR_AUTH_FILE_PATH=...
crates/test_utils/src/connector_auth.rs
test_utils
impl_block
971
rust
null
ConnectorAuthenticationMap
null
impl ConnectorAuthenticationMap
null
null
null
null
null
null
null
null