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_domain_models/src/payment_method_data.rs Public functions: 18 Public structs: 71 #[cfg(feature = "v2")] use std::str::FromStr; use api_models::{ mandates, payment_methods::{self}, payments::{additional_info as payment_additional_types, ExtendedCardInfo}, }; use common_enums::enu...
crates/hyperswitch_domain_models/src/payment_method_data.rs#chunk0
hyperswitch_domain_models
chunk
8,185
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ItaubankUpdateTokenResponse { access_token: Secret<String>, expires_in: i64, }
crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
ItaubankUpdateTokenResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/facilitapay/requests.rs Public structs: 9 use common_enums::CountryAlpha2; use common_utils::{new_type::MaskedBankAccount, pii, types::StringMajorUnit}; use masking::Secret; use serde::{Deserialize, Serialize}; use time::PrimitiveDateTime; pub struct FacilitapayRout...
crates/hyperswitch_connectors/src/connectors/facilitapay/requests.rs
hyperswitch_connectors
full_file
1,416
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CardTokenData { pub payment_method_id: Option<String>, pub locker_id: Option<String>, pub token: String, pub network_token_locker_id: Option<String>, }
crates/router/src/types/storage/payment_method.rs
router
struct_definition
41
rust
CardTokenData
null
null
null
null
null
null
null
null
null
null
null
pub async fn start_producer<T, U, F>( state: &T, scheduler_settings: Arc<SchedulerSettings>, (tx, mut rx)
crates/scheduler/src/producer.rs
scheduler
function_signature
34
rust
null
null
null
null
start_producer
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/v2/health") .app_data(web::Data::new(state)) .service(web::resource("").route(web::get().to(health))) .service(web::resource("/ready").route(web::get().to(deep_health_check))) }
crates/router/src/routes/app.rs
router
function_signature
69
rust
null
null
null
null
server
null
null
null
null
null
null
null
/// Retrieves the retry feature data if it exists. pub fn get_retry_feature_data(&self) -> Option<RetryFeatureData> { match self { Self::Retry(data) => Some(data.clone()), } }
crates/common_types/src/domain.rs
common_types
function_signature
47
rust
null
null
null
null
get_retry_feature_data
null
null
null
null
null
null
null
pub fn is_enabled( connector: types::Connector, conf: &settings::ConnectorOnboarding, ) -> Option<bool> { match connector { enums::Connector::Paypal => Some(conf.paypal.enabled), _ => None, } }
crates/router/src/utils/connector_onboarding.rs
router
function_signature
54
rust
null
null
null
null
is_enabled
null
null
null
null
null
null
null
File: crates/redis_interface/src/errors.rs //! Errors specific to this custom redis interface #[derive(Debug, thiserror::Error, PartialEq)] pub enum RedisError { #[error("Invalid Redis configuration: {0}")] InvalidConfiguration(String), #[error("Failed to set key value in Redis")] SetFailed, #[err...
crates/redis_interface/src/errors.rs
redis_interface
full_file
673
null
null
null
null
null
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
246
rust
null
MerchantConnectorCreate
null
impl MerchantConnectorCreate
null
null
null
null
null
null
null
null
File: crates/router/src/types/storage/blocklist_lookup.rs pub use diesel_models::blocklist_lookup::{BlocklistLookup, BlocklistLookupNew};
crates/router/src/types/storage/blocklist_lookup.rs
router
full_file
30
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PoRecipientAccount;
crates/hyperswitch_domain_models/src/router_flow_types/payouts.rs
hyperswitch_domain_models
struct_definition
6
rust
PoRecipientAccount
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RefundStatus { "type": "string", "description": "The status for refunds", "enum": [ "succeeded", "failed", "pending", "review" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
55
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RefundStatus" ]
null
null
null
null
impl api::PaymentSession for Stripebilling {}
crates/hyperswitch_connectors/src/connectors/stripebilling.rs
hyperswitch_connectors
impl_block
9
rust
null
Stripebilling
api::PaymentSession for
impl api::PaymentSession for for Stripebilling
null
null
null
null
null
null
null
null
impl api::PaymentSessionUpdate for Paypal {}
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
impl_block
9
rust
null
Paypal
api::PaymentSessionUpdate for
impl api::PaymentSessionUpdate for for Paypal
null
null
null
null
null
null
null
null
.map(|three_ds_method_data| three_ds_method_data.expose()) .unwrap_or_default(), ), ( "token".to_string(), response_url_data .data .token .map(|token: Secret<String...
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs#chunk1
hyperswitch_connectors
chunk
4,161
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router_derive/src/macros/helpers.rs Public functions: 2 use proc_macro2::Span; use quote::ToTokens; use syn::{parse::Parse, punctuated::Punctuated, spanned::Spanned, Attribute, Token}; pub fn non_enum_error() -> syn::Error { syn::Error::new(Span::call_site(), "This macro only supports enums.") } pu...
crates/router_derive/src/macros/helpers.rs
router_derive
full_file
508
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn call_frm_before_connector_call<F, Req, D>( operation: &BoxedOperation<'_, F, Req, D>, merchant_context: &domain::MerchantContext, payment_data: &mut D, state: &SessionState, frm_info: &mut Option<FrmInfo<F, D>>, customer: &Option<domain::Customer>, should_continue_transaction: &...
crates/router/src/core/fraud_check.rs
router
function_signature
540
rust
null
null
null
null
call_frm_before_connector_call
null
null
null
null
null
null
null
impl Responder { let flow = Flow::RoutingLinkConfig; Box::pin(oss_api::server_wrap( flow, state, &req, path.into_inner(), |state, auth: auth::AuthenticationData, algorithm, _| { let merchant_context = domain::MerchantContext::NormalMerchant(Box::new( ...
crates/router/src/routes/routing.rs
router
impl_block
212
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
///Convert the higher decimal amount to its base absolute units pub fn to_currency_lower_unit(self, amount: String) -> Result<String, ParseFloatError> { let amount_f64 = amount.parse::<f64>()?; let amount_string = if self.is_zero_decimal_currency() { amount_f64 } else if self.is_...
crates/common_enums/src/enums.rs
common_enums
function_signature
123
rust
null
null
null
null
to_currency_lower_unit
null
null
null
null
null
null
null
pub trait SchedulerInterface: ProcessTrackerInterface + QueueInterface + AsSchedulerInterface { }
crates/scheduler/src/scheduler.rs
scheduler
trait_definition
19
rust
null
null
SchedulerInterface
null
null
null
null
null
null
null
null
null
pub async fn reset_process_sync_task( db: &dyn StorageInterface, payment_attempt: &storage::PaymentAttempt, schedule_time: time::PrimitiveDateTime, ) -> Result<(), errors::ProcessTrackerError> { todo!() }
crates/router/src/core/payments.rs
router
function_signature
51
rust
null
null
null
null
reset_process_sync_task
null
null
null
null
null
null
null
impl GrpcClientSettings { /// # Panics /// /// This function will panic if it fails to establish a connection with the gRPC server. /// This function will be called at service startup. #[allow(clippy::expect_used)] pub async fn get_grpc_client_interface(&self) -> Arc<GrpcClients> { #[cfg...
crates/external_services/src/grpc_client.rs
external_services
impl_block
495
rust
null
GrpcClientSettings
null
impl GrpcClientSettings
null
null
null
null
null
null
null
null
pub struct PaypalPayoutSyncResponse { batch_header: PaypalSyncBatchResponse, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
PaypalPayoutSyncResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PixBankTransferAdditionalData { "type": "object", "properties": { "pix_key": { "type": "string", "description": "Partially masked unique key for pix transfer", "example": "a1f4102e ****** 6fa48899c1d1", "nullable": true }, "cpf": { "ty...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
418
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PixBankTransferAdditionalData" ]
null
null
null
null
pub trait ForeignIDRef { fn foreign_id(&self) -> String; }
crates/hyperswitch_domain_models/src/lib.rs
hyperswitch_domain_models
trait_definition
17
rust
null
null
ForeignIDRef
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Silverflow { fn validate_connector_against_payment_request( &self, capture_method: Option<enums::CaptureMethod>, _payment_method: enums::PaymentMethod, _pmt: Option<enums::PaymentMethodType>, ) -> CustomResult<(), errors::ConnectorError> { let...
crates/hyperswitch_connectors/src/connectors/silverflow.rs
hyperswitch_connectors
impl_block
170
rust
null
Silverflow
ConnectorValidation for
impl ConnectorValidation for for Silverflow
null
null
null
null
null
null
null
null
/// A helper function to create ses client pub async fn create_client( conf: &EmailSettings, ses_config: &SESConfig, proxy_url: Option<impl AsRef<str>>, ) -> CustomResult<Client, AwsSesError> { let sts_config = Self::get_shared_config(conf.aws_region.to_owned(), proxy_url.as_ref(...
crates/external_services/src/email/ses.rs
external_services
function_signature
394
rust
null
null
null
null
create_client
null
null
null
null
null
null
null
pub struct EventLinks { #[serde(rename = "payments:events", skip_serializing_if = "Option::is_none")] pub events: Option<String>, }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
struct_definition
34
rust
EventLinks
null
null
null
null
null
null
null
null
null
null
null
pub struct BokuRefundRequest { refund_amount: MinorUnit, merchant_id: Secret<String>, merchant_request_id: String, merchant_refund_id: Secret<String>, charge_id: String, reason_code: String, }
crates/hyperswitch_connectors/src/connectors/boku/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
BokuRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn revoke_by_merchant_id_key_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, key_id: &common_utils::id_type::ApiKeyId, ) -> StorageResult<bool> { generics::generic_delete::<<Self as HasTable>::Table, _>( conn, dsl::merchant_...
crates/diesel_models/src/query/api_keys.rs
diesel_models
function_signature
113
rust
null
null
null
null
revoke_by_merchant_id_key_id
null
null
null
null
null
null
null
pub struct PhonepeRefundRequest { pub amount: StringMinorUnit, }
crates/hyperswitch_connectors/src/connectors/phonepe/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
PhonepeRefundRequest
null
null
null
null
null
null
null
null
null
null
null
/// Trait to add necessary recovery headers to the tonic Request pub(crate) trait AddRecoveryHeaders { /// Add necessary recovery header fields to the tonic Request fn add_recovery_headers(&mut self, headers: GrpcRecoveryHeaders); }
crates/external_services/src/grpc_client/revenue_recovery.rs
external_services
trait_definition
51
rust
null
null
AddRecoveryHeaders
null
null
null
null
null
null
null
null
null
pub struct ParentGroupInfo { pub name: ParentGroup, pub description: String, pub scopes: Vec<PermissionScope>, }
crates/api_models/src/user_role/role.rs
api_models
struct_definition
29
rust
ParentGroupInfo
null
null
null
null
null
null
null
null
null
null
null
pub struct PayloadCurrencyAuthKeyType { pub api_key: String, pub processing_account_id: String, }
crates/connector_configs/src/connector.rs
connector_configs
struct_definition
23
rust
PayloadCurrencyAuthKeyType
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/novalnet.rs Public functions: 1 Public structs: 1 pub mod transformers; use core::str; use std::{collections::HashSet, sync::LazyLock}; use base64::Engine; use common_enums::enums; use common_utils::{ crypto, errors::CustomResult, ext_traits::{ByteSlice...
crates/hyperswitch_connectors/src/connectors/novalnet.rs#chunk0
hyperswitch_connectors
chunk
8,188
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Ebanx {}
crates/hyperswitch_connectors/src/connectors/ebanx.rs
hyperswitch_connectors
impl_block
12
rust
null
Ebanx
api::MandateSetup for
impl api::MandateSetup for for Ebanx
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/vault_session.rs Public functions: 3 use std::{fmt::Debug, str::FromStr}; pub use common_enums::enums::CallConnectorAction; use common_utils::id_type; use error_stack::ResultExt; pub use hyperswitch_domain_models::{ mandates::MandateData, payment_address::PaymentAddress,...
crates/router/src/core/payments/vault_session.rs
router
full_file
2,762
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ApplicationInformation { status: Option<BarclaycardPaymentStatus>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
ApplicationInformation
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_tenant_user( state: SessionState, request: user_api::CreateTenantUserRequest, ) -> UserResponse<()> { let key_manager_state = &(&state).into(); let (merchant_id, org_id) = state .store .list_merchant_and_org_ids(key_manager_state, 1, None) .await .cha...
crates/router/src/core/user.rs
router
function_signature
367
rust
null
null
null
null
create_tenant_user
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/payment_attempt.rs Public functions: 19 #[cfg(feature = "v1")] use std::collections::HashSet; use async_bb8_diesel::AsyncRunQueryDsl; #[cfg(feature = "v1")] use diesel::Table; use diesel::{ associations::HasTable, debug_query, pg::Pg, BoolExpressionMethods, ExpressionMethods,...
crates/diesel_models/src/query/payment_attempt.rs
diesel_models
full_file
4,488
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct JuspaythreedsserverErrorResponse { pub status_code: u16, pub code: String, pub message: String, pub reason: Option<String>, }
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs
hyperswitch_connectors
struct_definition
40
rust
JuspaythreedsserverErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct AffirmCaptureResponse { pub id: String, pub amount: MinorUnit, pub created: String, pub currency: Currency, pub fee: Option<MinorUnit>, pub fee_refunded: Option<MinorUnit>, pub reference_id: Option<String>, #[serde(rename = "type")] pub event_type: AffirmEventType, pub...
crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
hyperswitch_connectors
struct_definition
143
rust
AffirmCaptureResponse
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Nuvei { fn id(&self) -> &'static str { "nuvei" } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.nuvei.base_url.as_ref() } fn get_auth_heade...
crates/hyperswitch_connectors/src/connectors/nuvei.rs
hyperswitch_connectors
impl_block
131
rust
null
Nuvei
ConnectorCommon for
impl ConnectorCommon for for Nuvei
null
null
null
null
null
null
null
null
impl api::RefundExecute for Bluesnap {}
crates/hyperswitch_connectors/src/connectors/bluesnap.rs
hyperswitch_connectors
impl_block
10
rust
null
Bluesnap
api::RefundExecute for
impl api::RefundExecute for for Bluesnap
null
null
null
null
null
null
null
null
File: crates/storage_impl/src/mock_db/payment_intent.rs use common_utils::{errors::CustomResult, types::keymanager::KeyManagerState}; use diesel_models::enums as storage_enums; #[cfg(feature = "v1")] use error_stack::ResultExt; #[cfg(feature = "v1")] use hyperswitch_domain_models::behaviour::Conversion; use hyperswitc...
crates/storage_impl/src/mock_db/payment_intent.rs
storage_impl
full_file
2,120
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Boku { fn id(&self) -> &'static str { "boku" } fn common_get_content_type(&self) -> &'static str { "text/xml;charset=utf-8" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.boku.base_url.as_ref() } fn build_error...
crates/hyperswitch_connectors/src/connectors/boku.rs
hyperswitch_connectors
impl_block
307
rust
null
Boku
ConnectorCommon for
impl ConnectorCommon for for Boku
null
null
null
null
null
null
null
null
impl api::Payment for Gpayments {}
crates/hyperswitch_connectors/src/connectors/gpayments.rs
hyperswitch_connectors
impl_block
8
rust
null
Gpayments
api::Payment for
impl api::Payment for for Gpayments
null
null
null
null
null
null
null
null
impl api::PaymentSession for Globalpay {}
crates/hyperswitch_connectors/src/connectors/globalpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Globalpay
api::PaymentSession for
impl api::PaymentSession for for Globalpay
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Payload {}
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
impl_block
8
rust
null
Payload
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Payload
null
null
null
null
null
null
null
null
pub async fn delete_totp_secret_from_redis(state: &SessionState, user_id: &str) -> UserResult<()> { let redis_conn = super::get_redis_connection_for_global_tenant(state)?; redis_conn .delete_key(&get_totp_secret_key(user_id).into()) .await .change_context(UserErrors::InternalServerError)...
crates/router/src/utils/user/two_factor_auth.rs
router
function_signature
81
rust
null
null
null
null
delete_totp_secret_from_redis
null
null
null
null
null
null
null
pub async fn payments_incremental_authorization( state: web::Data<app::AppState>, req: actix_web::HttpRequest, json_payload: web::Json<payment_types::PaymentsIncrementalAuthorizationRequest>, path: web::Path<common_utils::id_type::PaymentId>, ) -> impl Responder { let flow = Flow::PaymentsIncrementa...
crates/router/src/routes/payments.rs
router
function_signature
349
rust
null
null
null
null
payments_incremental_authorization
null
null
null
null
null
null
null
pub struct AuthenticationConnectorDetails { pub authentication_connectors: Vec<AuthenticationConnectors>, pub three_ds_requestor_url: String, pub three_ds_requestor_app_url: Option<String>, }
crates/diesel_models/src/business_profile.rs
diesel_models
struct_definition
41
rust
AuthenticationConnectorDetails
null
null
null
null
null
null
null
null
null
null
null
pub fn generate_password_hash( password: Secret<String>, ) -> CustomResult<Secret<String>, UserErrors> { let salt = SaltString::generate(&mut OsRng); let argon2 = Argon2::default(); let password_hash = argon2 .hash_password(password.expose().as_bytes(), &salt) .change_context(UserErrors...
crates/router/src/utils/user/password.rs
router
function_signature
94
rust
null
null
null
null
generate_password_hash
null
null
null
null
null
null
null
external_latency, )) } #[cfg(feature = "v1")] // This function is intended for use when the feature being implemented is not aligned with the // core payment operations. #[allow(clippy::too_many_arguments, clippy::type_complexity)] #[instrument(skip_all, fields(payment_id, merchant_id))] pub async fn proxy...
crates/router/src/core/payments.rs#chunk1
router
chunk
8,178
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Affirm {}
crates/hyperswitch_connectors/src/connectors/affirm.rs
hyperswitch_connectors
impl_block
9
rust
null
Affirm
api::PaymentVoid for
impl api::PaymentVoid for for Affirm
null
null
null
null
null
null
null
null
impl Tokenizable for CompleteAuthorizeData { fn set_session_token(&mut self, _token: Option<String>) {} }
crates/router/src/types.rs
router
impl_block
25
rust
null
CompleteAuthorizeData
Tokenizable for
impl Tokenizable for for CompleteAuthorizeData
null
null
null
null
null
null
null
null
pub struct PaymentMethodSessionDeleteSavedPaymentMethod { /// The payment method id of the payment method to be updated #[schema(value_type = String, example = "12345_pm_01926c58bc6e77c09e809964e72af8c8")] pub payment_method_id: id_type::GlobalPaymentMethodId, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
88
rust
PaymentMethodSessionDeleteSavedPaymentMethod
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/netcetera.rs Public structs: 1 pub mod netcetera_types; pub mod transformers; use std::fmt::Debug; use api_models::webhooks::{AuthenticationIdType, IncomingWebhookEvent, ObjectReferenceId}; use common_utils::{ errors::CustomResult, ext_traits::ByteSliceExt,...
crates/hyperswitch_connectors/src/connectors/netcetera.rs
hyperswitch_connectors
full_file
3,642
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_webhook_delivery_attempts( state: web::Data<AppState>, req: HttpRequest, path: web::Path<(common_utils::id_type::MerchantId, String)
crates/router/src/routes/webhook_events.rs
router
function_signature
41
rust
null
null
null
null
list_webhook_delivery_attempts
null
null
null
null
null
null
null
pub struct ReturnArgs { pub newman_command: Command, pub modified_file_paths: Vec<Option<String>>, pub collection_path: String, }
crates/test_utils/src/newman_runner.rs
test_utils
struct_definition
31
rust
ReturnArgs
null
null
null
null
null
null
null
null
null
null
null
pub struct Balances { available_to_capture: i32, }
crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
Balances
null
null
null
null
null
null
null
null
null
null
null
pub async fn connector_delete( state: web::Data<AppState>, req: HttpRequest, path: web::Path<( common_utils::id_type::MerchantId, common_utils::id_type::MerchantConnectorAccountId, )
crates/router/src/routes/admin.rs
router
function_signature
51
rust
null
null
null
null
connector_delete
null
null
null
null
null
null
null
pub async fn insert_payment_intents( conn: &PgPooledConn, batch: Vec<PaymentIntentNew>, ) -> StorageResult<Vec<PaymentIntent>> { let query = diesel::insert_into(<PaymentIntent>::table()).values(batch); logger::debug!(query = %debug_query::<diesel::pg::Pg,_>(&query).to_string()); query .get...
crates/diesel_models/src/query/user/sample_data.rs
diesel_models
function_signature
115
rust
null
null
null
null
insert_payment_intents
null
null
null
null
null
null
null
impl MultipleCaptureData { pub fn new_for_sync( captures: Vec<storage::Capture>, expand_captures: Option<bool>, ) -> RouterResult<Self> { let latest_capture = captures .last() .ok_or(errors::ApiErrorResponse::InternalServerError) .attach_printable("Can...
crates/router/src/core/payments/types.rs
router
impl_block
1,331
rust
null
MultipleCaptureData
null
impl MultipleCaptureData
null
null
null
null
null
null
null
null
impl ForexMetric for PaymentIntentMetrics { fn is_forex_metric(&self) -> bool { matches!( self, Self::PaymentProcessedAmount | Self::SmartRetriedAmount | Self::SessionizedPaymentProcessedAmount | Self::SessionizedSmartRetriedAmount ...
crates/api_models/src/analytics/payment_intents.rs
api_models
impl_block
68
rust
null
PaymentIntentMetrics
ForexMetric for
impl ForexMetric for for PaymentIntentMetrics
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Digitalvirgo {}
crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs
hyperswitch_connectors
impl_block
10
rust
null
Digitalvirgo
api::PaymentCapture for
impl api::PaymentCapture for for Digitalvirgo
null
null
null
null
null
null
null
null
impl api::UnifiedAuthenticationService for Juspaythreedsserver {}
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
hyperswitch_connectors
impl_block
15
rust
null
Juspaythreedsserver
api::UnifiedAuthenticationService for
impl api::UnifiedAuthenticationService for for Juspaythreedsserver
null
null
null
null
null
null
null
null
pub struct TrustpayCreateIntentResponse { // TrustPay's authorization secrets used by client pub secrets: SdkSecretInfo, // Data object to be used for Apple Pay or Google Pay #[serde(flatten)] pub init_result_data: InitResultData, // Unique operation/transaction identifier pub instance_id: ...
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
75
rust
TrustpayCreateIntentResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Juspaythreedsserver {}
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
hyperswitch_connectors
impl_block
14
rust
null
Juspaythreedsserver
api::PaymentSync for
impl api::PaymentSync for for Juspaythreedsserver
null
null
null
null
null
null
null
null
impl CustomerNew { pub fn update_storage_scheme(&mut self, storage_scheme: common_enums::MerchantStorageScheme) { self.updated_by = Some(storage_scheme.to_string()); } }
crates/diesel_models/src/customers.rs
diesel_models
impl_block
40
rust
null
CustomerNew
null
impl CustomerNew
null
null
null
null
null
null
null
null
File: crates/router/src/routes/chat.rs Public functions: 1 use actix_web::{web, HttpRequest, HttpResponse}; #[cfg(feature = "olap")] use api_models::chat as chat_api; use router_env::{instrument, tracing, Flow}; use super::AppState; use crate::{ core::{api_locking, chat as chat_core}, routes::metrics, se...
crates/router/src/routes/chat.rs
router
full_file
356
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/workflows/tokenized_data.rs Public structs: 1 use scheduler::consumer::workflows::ProcessTrackerWorkflow; #[cfg(feature = "v1")] use crate::core::payment_methods::vault; use crate::{errors, logger::error, routes::SessionState, types::storage}; pub struct DeleteTokenizeDataWorkflow; #[async_...
crates/router/src/workflows/tokenized_data.rs
router
full_file
296
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn do_gsm_actions<F, ApiRequest, FData, D>( state: &app::SessionState, req_state: ReqState, payment_data: &mut D, mut connector_routing_data: IntoIter<api::ConnectorRoutingData>, original_connector_data: &api::ConnectorData, mut router_data: types::RouterData<F, FData, types::PaymentsR...
crates/router/src/core/payments/retry.rs
router
function_signature
1,248
rust
null
null
null
null
do_gsm_actions
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Payu {}
crates/hyperswitch_connectors/src/connectors/payu.rs
hyperswitch_connectors
impl_block
9
rust
null
Payu
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Payu
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SamsungPayWebWalletData { "type": "object", "required": [ "card_brand", "card_last4digits", "3_d_s" ], "properties": { "method": { "type": "string", "description": "Specifies authentication method used", "nullable": true }, "recurr...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
200
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SamsungPayWebWalletData" ]
null
null
null
null
pub struct ProfileResponse { /// The identifier for Merchant Account #[schema(max_length = 64, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = String)] pub merchant_id: id_type::MerchantId, /// The identifier for profile. This must be used for creating merchant accounts, payments and payouts #...
crates/api_models/src/admin.rs
api_models
struct_definition
1,839
rust
ProfileResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct Amount { total_amount: StringMajorUnit, currency: api_models::enums::Currency, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
Amount
null
null
null
null
null
null
null
null
null
null
null
pub async fn diesel_make_pg_pool( database: &Database, _test_transaction: bool, schema: &str, ) -> PgPool { let database_url = database.get_database_url(schema); let manager = async_bb8_diesel::ConnectionManager::<PgConnection>::new(database_url); let pool = bb8::Pool::builder() .max_siz...
crates/drainer/src/connection.rs
drainer
function_signature
119
rust
null
null
null
null
diesel_make_pg_pool
null
null
null
null
null
null
null
impl api::PaymentToken for Mpgs {}
crates/hyperswitch_connectors/src/connectors/mpgs.rs
hyperswitch_connectors
impl_block
10
rust
null
Mpgs
api::PaymentToken for
impl api::PaymentToken for for Mpgs
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/boku.rs
hyperswitch_connectors
function_signature
27
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/dummyconnector.rs
hyperswitch_connectors
function_signature
27
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub trait EmailData { /// Get the email contents async fn get_email_data(&self, base_url: &str) -> CustomResult<EmailContents, EmailError>; }
crates/external_services/src/email.rs
external_services
trait_definition
38
rust
null
null
EmailData
null
null
null
null
null
null
null
null
null
pub struct Nomupay { #[cfg(feature = "payouts")] amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/nomupay.rs
hyperswitch_connectors
struct_definition
38
rust
Nomupay
null
null
null
null
null
null
null
null
null
null
null
pub struct Paypal { amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), amount_converter_webhooks: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
struct_definition
49
rust
Paypal
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { let mut routes = web::scope("/accounts") .service(web::resource("").route(web::post().to(admin::merchant_account_create))) .service(web::resource("/list").route(web::get().to(admin::merchant_account_list))) .service( w...
crates/router/src/routes/app.rs
router
function_signature
274
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub struct BankRedirectConfig(pub HashMap<enums::PaymentMethodType, ConnectorBankNames>);
crates/payment_methods/src/configs/settings.rs
payment_methods
struct_definition
19
rust
BankRedirectConfig
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorCustomer for Gocardless {}
crates/hyperswitch_connectors/src/connectors/gocardless.rs
hyperswitch_connectors
impl_block
10
rust
null
Gocardless
api::ConnectorCustomer for
impl api::ConnectorCustomer for for Gocardless
null
null
null
null
null
null
null
null
pub struct PaymentsCancelPostCaptureData { pub currency: Option<storage_enums::Currency>, pub connector_transaction_id: String, pub cancellation_reason: Option<String>, pub connector_meta: Option<serde_json::Value>, // minor amount data for amount framework pub minor_amount: Option<MinorUnit>, }
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
68
rust
PaymentsCancelPostCaptureData
null
null
null
null
null
null
null
null
null
null
null
pub async fn customers_mandates_list() {}
crates/openapi/src/routes/mandates.rs
openapi
function_signature
10
rust
null
null
null
null
customers_mandates_list
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GpaySessionTokenResponse { "oneOf": [ { "$ref": "#/components/schemas/GooglePayThirdPartySdk" }, { "$ref": "#/components/schemas/GooglePaySessionResponse" } ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
63
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GpaySessionTokenResponse" ]
null
null
null
null
pub async fn accept_invitations_pre_auth( state: SessionState, user_token: auth::UserFromSinglePurposeToken, req: user_role_api::AcceptInvitationsPreAuthRequest, ) -> UserResponse<user_api::TokenResponse> { let lineages = futures::future::try_join_all(req.into_iter().map(|entity| { utils::user_r...
crates/router/src/core/user_role.rs
router
function_signature
565
rust
null
null
null
null
accept_invitations_pre_auth
null
null
null
null
null
null
null
File: crates/router/src/types/domain/address.rs Public structs: 3 use async_trait::async_trait; use common_utils::{ crypto::{self, Encryptable}, date_time, encryption::Encryption, errors::{CustomResult, ValidationError}, id_type, pii, type_name, types::keymanager::{Identifier, KeyManagerState,...
crates/router/src/types/domain/address.rs
router
full_file
2,611
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentAttemptBatchNew { // pub payment_id: common_utils::id_type::PaymentId, // pub merchant_id: common_utils::id_type::MerchantId, // pub status: AttemptStatus, // pub error_message: Option<String>, // pub surcharge_amount: Option<i64>, // pub tax_on_surcharge: Option<i64>, // p...
crates/diesel_models/src/user/sample_data.rs
diesel_models
struct_definition
522
rust
PaymentAttemptBatchNew
null
null
null
null
null
null
null
null
null
null
null
/// Validates Hubspot configuration pub(super) fn validate(&self) -> Result<(), InvalidCrmConfig> { use common_utils::fp_utils::when; when(self.request_url.is_default_or_empty(), || { Err(InvalidCrmConfig("request url must not be empty")) })?; when(self.form_id.is_defau...
crates/external_services/src/crm.rs
external_services
function_signature
95
rust
null
null
null
null
validate
null
null
null
null
null
null
null
pub async fn get_merchant_fingerprint_secret( state: &SessionState, merchant_id: &common_utils::id_type::MerchantId, ) -> RouterResult<String> { let key = merchant_id.get_merchant_fingerprint_secret_key(); let config_fetch_result = state.store.find_config_by_key(&key).await; match config_fetch_resu...
crates/router/src/core/blocklist/utils.rs
router
function_signature
236
rust
null
null
null
null
get_merchant_fingerprint_secret
null
null
null
null
null
null
null
pub fn set_validate_result( self, customer: &'a api::CustomerDetails, ) -> NetworkTokenizationBuilder<'a, PmValidated> { NetworkTokenizationBuilder { state: std::marker::PhantomData, customer: Some(customer), card: self.card, card_cvc: self.car...
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
function_signature
140
rust
null
null
null
null
set_validate_result
null
null
null
null
null
null
null
pub struct RoutingEventsRequest { pub payment_id: common_utils::id_type::PaymentId, pub refund_id: Option<String>, pub dispute_id: Option<String>, }
crates/api_models/src/analytics/routing_events.rs
api_models
struct_definition
37
rust
RoutingEventsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthenticationDetails { pub authn_flow_type: super::authentication::AuthNFlowType, pub authentication_value: Option<Secret<String>>, pub trans_status: common_enums::TransactionStatus, pub connector_metadata: Option<serde_json::Value>, pub ds_trans_id: Option<String>, pub eci: Option<S...
crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
hyperswitch_domain_models
struct_definition
115
rust
AuthenticationDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct ProcessorResponse { name: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
12
rust
ProcessorResponse
null
null
null
null
null
null
null
null
null
null
null