text
string
file_path
string
module
string
type
string
tokens
int64
language
string
struct_name
string
type_name
string
trait_name
string
impl_type
string
function_name
string
source
string
section
string
keys
list
macro_type
string
url
string
title
string
chunk_index
int64
impl ProfileUpdateInternal { pub fn apply_changeset(self, source: Profile) -> Profile { let Self { profile_name, modified_at, return_url, enable_payment_response_hash, payment_response_hash_key, redirect_to_merchant_with_http_post, ...
crates/diesel_models/src/business_profile.rs
diesel_models
impl_block
1,478
rust
null
ProfileUpdateInternal
null
impl ProfileUpdateInternal
null
null
null
null
null
null
null
null
pub struct UnifiedAuthenticationServicePreAuthenticateRequest { pub authenticate_by: String, pub session_id: common_utils::id_type::AuthenticationId, pub source_authentication_id: common_utils::id_type::AuthenticationId, pub authentication_info: Option<AuthenticationInfo>, pub service_details: Optio...
crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
hyperswitch_connectors
struct_definition
127
rust
UnifiedAuthenticationServicePreAuthenticateRequest
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.KakaoPayRedirection { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
24
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "KakaoPayRedirection" ]
null
null
null
null
let payment_information = PaymentInformation::GooglePay(Box::new(GooglePayPaymentInformation { tokenized_card: TokenizedCard { number: google_pay_decrypted_data .application_primary_account_number .clone(), ...
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs#chunk2
hyperswitch_connectors
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_cancel.rs Public structs: 1 use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use common_utils::ext_traits::AsyncExt; use error_stack::ResultExt; use router_derive; use router_env::{instrument, tracing}; use sup...
crates/router/src/core/payments/operations/payment_cancel.rs
router
full_file
2,261
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_amount_captured(&self) -> Option<MinorUnit> { match self { Self::Success { amount, .. } | Self::Error { amount, .. } => *amount, } }
crates/hyperswitch_domain_models/src/router_response_types.rs
hyperswitch_domain_models
function_signature
46
rust
null
null
null
null
get_amount_captured
null
null
null
null
null
null
null
pub struct BraintreeRouterData<T> { pub amount: StringMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
BraintreeRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct ErrorInformation { pub message: String, pub reason: String, pub details: Option<Vec<Details>>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
ErrorInformation
null
null
null
null
null
null
null
null
null
null
null
pub struct VoucherRequest { flow: Flow, payment_method: PaymentMethod, }
crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
VoucherRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct BraintreeRefundTransactionBody { pub id: String, pub status: BraintreeRefundStatus, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
BraintreeRefundTransactionBody
null
null
null
null
null
null
null
null
null
null
null
pub fn new( hash_map: HashMap<id_type::MerchantConnectorAccountId, String>, ) -> Result<Self, api_error_response::ApiErrorResponse> { Self::validate(&hash_map)?; let recovery_to_billing = hash_map.clone(); let mut billing_to_recovery = HashMap::new(); for (key, value) in &h...
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
105
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl api::Refund for Worldline {}
crates/hyperswitch_connectors/src/connectors/worldline.rs
hyperswitch_connectors
impl_block
9
rust
null
Worldline
api::Refund for
impl api::Refund for for Worldline
null
null
null
null
null
null
null
null
pub struct DwollaAccessTokenResponse { access_token: Secret<String>, expires_in: i64, token_type: String, }
crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
DwollaAccessTokenResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct AirwallexOrderData { products: Vec<AirwallexProductData>, shipping: Option<AirwallexShippingData>, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
AirwallexOrderData
null
null
null
null
null
null
null
null
null
null
null
pub struct RevenueRecoveryId { pub revenue_recovery_id: id_type::GlobalPaymentId, }
crates/api_models/src/process_tracker/revenue_recovery.rs
api_models
struct_definition
21
rust
RevenueRecoveryId
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_by_iin(conn: &PgPooledConn, card_iin: &str) -> StorageResult<Option<Self>> { generics::generic_find_by_id_optional::<<Self as HasTable>::Table, _, _>( conn, card_iin.to_owned(), ) .await }
crates/diesel_models/src/query/cards_info.rs
diesel_models
function_signature
67
rust
null
null
null
null
find_by_iin
null
null
null
null
null
null
null
pub struct StaxRefundRequest { pub total: f64, }
crates/hyperswitch_connectors/src/connectors/stax/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
StaxRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct DeutschebankThreeDSInitializeRequestCreditCard { number: CardNumber, expiry_date: DeutschebankThreeDSInitializeRequestCreditCardExpiry, code: Secret<String>, cardholder: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
hyperswitch_connectors
struct_definition
46
rust
DeutschebankThreeDSInitializeRequestCreditCard
null
null
null
null
null
null
null
null
null
null
null
pub trait TenantConfig: Send + Sync { fn get_tenant_id(&self) -> &id_type::TenantId; fn get_schema(&self) -> &str; fn get_accounts_schema(&self) -> &str; fn get_redis_key_prefix(&self) -> &str; fn get_clickhouse_database(&self) -> &str; }
crates/storage_impl/src/config.rs
storage_impl
trait_definition
76
rust
null
null
TenantConfig
null
null
null
null
null
null
null
null
null
pub struct MandateId { pub mandate_id: String, }
crates/api_models/src/mandates.rs
api_models
struct_definition
14
rust
MandateId
null
null
null
null
null
null
null
null
null
null
null
pub struct PayuOrderResponseData { order_id: String, ext_order_id: Option<String>, order_create_date: String, notify_url: Option<String>, customer_ip: Secret<String, IpAddress>, merchant_pos_id: Secret<String>, description: String, validity_time: Option<String>, currency_code: enums:...
crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
hyperswitch_connectors
struct_definition
124
rust
PayuOrderResponseData
null
null
null
null
null
null
null
null
null
null
null
impl HealthCheck for ClickhouseClient { async fn deep_health_check( &self, ) -> common_utils::errors::CustomResult<(), QueryExecutionError> { self.execute_query("SELECT 1") .await .map(|_| ()) .change_context(QueryExecutionError::DatabaseError) } }
crates/analytics/src/clickhouse.rs
analytics
impl_block
68
rust
null
ClickhouseClient
HealthCheck for
impl HealthCheck for for ClickhouseClient
null
null
null
null
null
null
null
null
pub async fn fetch_payment_method( &self, payment_method_id: &str, ) -> RouterResult<domain::PaymentMethod> { self.state .store .find_payment_method( &self.state.into(), self.key_store, payment_method_id, ...
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
function_signature
222
rust
null
null
null
null
fetch_payment_method
null
null
null
null
null
null
null
impl api::PaymentSync for Zen {}
crates/hyperswitch_connectors/src/connectors/zen.rs
hyperswitch_connectors
impl_block
8
rust
null
Zen
api::PaymentSync for
impl api::PaymentSync for for Zen
null
null
null
null
null
null
null
null
pub struct AciCancelRequest { pub entity_id: Secret<String>, pub payment_type: AciPaymentType, }
crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
AciCancelRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn get_payout_connector_config(key: &str) -> JsResult { let key = api_model_enums::PayoutConnectors::from_str(key) .map_err(|_| "Invalid key received".to_string())?; let res = connector::ConnectorConfig::get_payout_connector_config(key)?; Ok(serde_wasm_bindgen::to_value(&res)?) }
crates/euclid_wasm/src/lib.rs
euclid_wasm
function_signature
81
rust
null
null
null
null
get_payout_connector_config
null
null
null
null
null
null
null
File: crates/storage_impl/src/utils.rs Public functions: 4 use bb8::PooledConnection; use diesel::PgConnection; use error_stack::ResultExt; use crate::{ errors::{RedisErrorExt, StorageError}, metrics, DatabaseStore, }; pub async fn pg_connection_read<T: DatabaseStore>( store: &T, ) -> error_stack::Resul...
crates/storage_impl/src/utils.rs
storage_impl
full_file
1,097
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ConnectNameAndMCAIdForProfile<'a>( pub FxHashSet<( &'a common_enums::connector_enums::Connector, id_type::MerchantConnectorAccountId, )>, );
crates/router/src/core/routing/helpers.rs
router
struct_definition
46
rust
ConnectNameAndMCAIdForProfile
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/worldpay.rs use futures::future::OptionFuture; use router::types::{self, domain, storage::enums}; use serde_json::json; use serial_test::serial; use wiremock::{ matchers::{body_json, method, path}, Mock, ResponseTemplate, }; use crate::{ connector_auth, utils::{sel...
crates/router/tests/connectors/worldpay.rs
router
full_file
2,797
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn validate_payment_method_data_against_payment_method( payment_method_type: api_enums::PaymentMethod, payment_method_data: PaymentMethodCreateData, ) -> bool { match payment_method_type { api_enums::PaymentMethod::Card => { matches!( payme...
crates/api_models/src/payment_methods.rs
api_models
function_signature
94
rust
null
null
null
null
validate_payment_method_data_against_payment_method
null
null
null
null
null
null
null
Documentation: api-reference/v1/business-profile/business-profile--create.mdx # Type: Doc File --- openapi: post /account/{account_id}/business_profile ---
api-reference/v1/business-profile/business-profile--create.mdx
null
doc_file
36
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn payment_sync_call( state: &SessionState, revenue_recovery_payment_data: &storage::revenue_recovery::RevenueRecoveryPaymentData, payment_intent: &PaymentIntent, process: &storage::ProcessTracker, profile: &domain::Profile, merchant_context: domain::MerchantCon...
crates/router/src/core/revenue_recovery/types.rs
router
function_signature
772
rust
null
null
null
null
payment_sync_call
null
null
null
null
null
null
null
pub fn get_error_reason( error_info: Option<String>, detailed_error_info: Option<String>, avs_error_info: Option<String>, ) -> Option<String> { match (error_info, detailed_error_info, avs_error_info) { (Some(message), Some(details), Some(avs_message)) => Some(format!( "{message}, det...
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
function_signature
237
rust
null
null
null
null
get_error_reason
null
null
null
null
null
null
null
pub fn get_flow_from_upi_collect( self, ) -> types::DummyConnectorResult<types::DummyConnectorUpiFlow> { let vpa_id = self.vpa_id.peek(); match vpa_id.as_str() { consts::DUMMY_CONNECTOR_UPI_FAILURE_VPA_ID => Ok(types::DummyConnectorUpiFlow { status: types::DummyCo...
crates/router/src/routes/dummy_connector/utils.rs
router
function_signature
220
rust
null
null
null
null
get_flow_from_upi_collect
null
null
null
null
null
null
null
File: crates/router/tests/connectors/getnet.rs use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct GetnetTest; impl...
crates/router/tests/connectors/getnet.rs
router
full_file
2,924
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentElement { pub net: CoinbaseProcessingFee, pub block: Block, pub value: CoinbaseProcessingFee, pub status: String, pub network: String, pub deposited: Deposited, pub payment_id: String, pub detected_at: String, pub transaction_id: String, pub coinbase_processing_...
crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
hyperswitch_connectors
struct_definition
79
rust
PaymentElement
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_metadata_by_merchant_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, limit: i64, offset: i64, ) -> StorageResult<Vec<RoutingProfileMetadata>> { Ok(Self::table() .select(( dsl::profile_id, ...
crates/diesel_models/src/query/routing_algorithm.rs
diesel_models
function_signature
322
rust
null
null
null
null
list_metadata_by_merchant_id
null
null
null
null
null
null
null
pub fn permission_groups_to_parent_group_info( permission_groups: &[PermissionGroup], entity_type: EntityType, ) -> Vec<role_api::ParentGroupInfo> { let parent_groups_map: HashMap<ParentGroup, Vec<common_enums::PermissionScope>> = permission_groups .iter() .fold(HashMap::new(...
crates/router/src/utils/user_role.rs
router
function_signature
229
rust
null
null
null
null
permission_groups_to_parent_group_info
null
null
null
null
null
null
null
pub async fn call_connector_service<F, RouterDReq, ApiRequest, D>( state: &SessionState, req_state: ReqState, merchant_context: &domain::MerchantContext, connector: api::ConnectorData, operation: &BoxedOperation<'_, F, ApiRequest, D>, payment_data: &mut D, customer: &Option<domain::Customer>...
crates/router/src/core/payments.rs
router
function_signature
1,350
rust
null
null
null
null
call_connector_service
null
null
null
null
null
null
null
pub fn get_id(&self) -> &masking::Secret<String> { &self.0 }
crates/hyperswitch_domain_models/src/router_flow_types/webhooks.rs
hyperswitch_domain_models
function_signature
24
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
pub struct CheckoutPaymentsRequest { order: FiservOrder, payment_method: FiservPaymentMethod, interactions: FiservInteractions, transaction_details: TransactionDetails, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
CheckoutPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct HandlerInner { shutdown_interval: Duration, loop_interval: Duration, active_tasks: Arc<atomic::AtomicU64>, conf: DrainerSettings, stores: HashMap<id_type::TenantId, Arc<Store>>, running: Arc<atomic::AtomicBool>, }
crates/drainer/src/handler.rs
drainer
struct_definition
63
rust
HandlerInner
null
null
null
null
null
null
null
null
null
null
null
pub struct Iter<'a, K, V> { inner: iter::Enumerate<slice::Iter<'a, V>>, _marker: PhantomData<K>, }
crates/hyperswitch_constraint_graph/src/dense_map.rs
hyperswitch_constraint_graph
struct_definition
36
rust
Iter
null
null
null
null
null
null
null
null
null
null
null
pub fn get_three_ds_keys() -> JsResult { let keys = <common_types::payments::ConditionalConfigs as EuclidDirFilter>::ALLOWED; Ok(serde_wasm_bindgen::to_value(keys)?) }
crates/euclid_wasm/src/lib.rs
euclid_wasm
function_signature
47
rust
null
null
null
null
get_three_ds_keys
null
null
null
null
null
null
null
pub fn update_surcharge_config_id(&mut self, ids: String) { self.surcharge_config_algo_id = Some(ids); self.timestamp = common_utils::date_time::now_unix_timestamp(); }
crates/api_models/src/routing.rs
api_models
function_signature
44
rust
null
null
null
null
update_surcharge_config_id
null
null
null
null
null
null
null
pub struct ApplepayPaymentMethod { pub display_name: String, pub network: String, pub pm_type: String, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
28
rust
ApplepayPaymentMethod
null
null
null
null
null
null
null
null
null
null
null
pub struct PayonePayoutFulfillResponse { id: String, payout_output: PayoutOutput, status: PayoneStatus, }
crates/hyperswitch_connectors/src/connectors/payone/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
PayonePayoutFulfillResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct TrustpaymentsRouterData<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/trustpayments/transformers.rs
hyperswitch_connectors
struct_definition
50
rust
TrustpaymentsRouterData
null
null
null
null
null
null
null
null
null
null
null
pub fn network_token_migrated(&mut self, network_token_migrated: Option<bool>) { self.network_token_migrated = network_token_migrated; }
crates/payment_methods/src/core/migration.rs
payment_methods
function_signature
33
rust
null
null
null
null
network_token_migrated
null
null
null
null
null
null
null
File: crates/kgraph_utils/src/transformers.rs Public functions: 3 use api_models::enums as api_enums; use euclid::{ backend::BackendInput, dirval, dssa::types::AnalysisErrorType, frontend::{ast, dir}, types::{NumValue, StrValue}, }; use crate::error::KgraphError; pub trait IntoContext { fn i...
crates/kgraph_utils/src/transformers.rs#chunk0
kgraph_utils
chunk
8,177
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Bankofamerica {}
crates/hyperswitch_connectors/src/connectors/bankofamerica.rs
hyperswitch_connectors
impl_block
12
rust
null
Bankofamerica
api::RefundSync for
impl api::RefundSync for for Bankofamerica
null
null
null
null
null
null
null
null
pub async fn execute(self, conn: &PgPooledConn) -> crate::StorageResult<DBResult> { Ok(match self { Self::Insert { insertable } => match *insertable { Insertable::PaymentIntent(a) => { DBResult::PaymentIntent(Box::new(a.insert(conn).await?)) } ...
crates/diesel_models/src/kv.rs
diesel_models
function_signature
992
rust
null
null
null
null
execute
null
null
null
null
null
null
null
is_recon_enabled: item.is_recon_enabled, applepay_verified_domains: item.applepay_verified_domains, payment_link_config: item.payment_link_config, session_expiry: item.session_expiry, authentication_connector_details: item.authentication_co...
crates/hyperswitch_domain_models/src/business_profile.rs#chunk1
hyperswitch_domain_models
chunk
8,187
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct NoonPaymentsTransactionResponse { id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
NoonPaymentsTransactionResponse
null
null
null
null
null
null
null
null
null
null
null
#[serde(rename = "type")] pub error_type: Option<String>, pub message: Option<String>, } #[derive(Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct CybersourceServerErrorResponse { pub status: Option<String>, pub message: Option<String>, pub reason: Option<Reason>, }...
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs#chunk4
hyperswitch_connectors
chunk
1,469
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct SamsungPayWalletData { pub payment_credential: SamsungPayWalletCredentials, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
19
rust
SamsungPayWalletData
null
null
null
null
null
null
null
null
null
null
null
impl ValidateStatusForOperation for ExternalVaultProxyPaymentIntent { /// Validate if the current operation can be performed on the current status of the payment intent fn validate_status_for_operation( &self, intent_status: common_enums::IntentStatus, ) -> Result<(), errors::ApiErrorRespons...
crates/router/src/core/payments/operations/external_vault_proxy_payment_intent.rs
router
impl_block
328
rust
null
ExternalVaultProxyPaymentIntent
ValidateStatusForOperation for
impl ValidateStatusForOperation for for ExternalVaultProxyPaymentIntent
null
null
null
null
null
null
null
null
pub fn card_migrated(&mut self, card_migrated: bool) { self.card_migrated = Some(card_migrated); }
crates/payment_methods/src/core/migration.rs
payment_methods
function_signature
29
rust
null
null
null
null
card_migrated
null
null
null
null
null
null
null
impl api::PayoutQuote for Nomupay {}
crates/hyperswitch_connectors/src/connectors/nomupay.rs
hyperswitch_connectors
impl_block
11
rust
null
Nomupay
api::PayoutQuote for
impl api::PayoutQuote for for Nomupay
null
null
null
null
null
null
null
null
impl GetRequestIncrementalAuthorization for PaymentsSyncData { fn get_request_incremental_authorization(&self) -> Option<bool> { None } }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
impl_block
33
rust
null
PaymentsSyncData
GetRequestIncrementalAuthorization for
impl GetRequestIncrementalAuthorization for for PaymentsSyncData
null
null
null
null
null
null
null
null
File: crates/router/src/core/payment_methods/surcharge_decision_configs.rs Public functions: 8 Public structs: 1 use api_models::{ payment_methods::SurchargeDetailsResponse, payments, routing, surcharge_decision_configs::{self, SurchargeDecisionConfigs, SurchargeDecisionManagerRecord}, }; #[cfg(feature =...
crates/router/src/core/payment_methods/surcharge_decision_configs.rs
router
full_file
4,303
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct RevenueRecoveryData { pub billing_connector_id: id_type::MerchantConnectorAccountId, pub processor_payment_method_token: String, pub connector_customer_id: String, pub retry_count: Option<u16>, pub invoice_next_billing_time: Option<PrimitiveDateTime>, pub triggered_by: storage_enums::...
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
struct_definition
97
rust
RevenueRecoveryData
null
null
null
null
null
null
null
null
null
null
null
pub struct PlaidSyncResponse { payment_id: String, amount: PlaidAmount, status: PlaidPaymentStatus, recipient_id: String, reference: String, last_status_update: String, adjusted_reference: Option<String>, schedule: Option<PlaidSchedule>, iban: Option<Secret<String>>, bacs: Option...
crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs
hyperswitch_connectors
struct_definition
102
rust
PlaidSyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct RetrieveFileResponse { pub file_data: Vec<u8>, }
crates/hyperswitch_domain_models/src/router_response_types.rs
hyperswitch_domain_models
struct_definition
16
rust
RetrieveFileResponse
null
null
null
null
null
null
null
null
null
null
null
pub(crate) fn new(node_type: NodeType<V>) -> Self { Self { node_type, preds: Vec::new(), succs: Vec::new(), } }
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
function_signature
40
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl api::PaymentCapture for Adyen {}
crates/hyperswitch_connectors/src/connectors/adyen.rs
hyperswitch_connectors
impl_block
9
rust
null
Adyen
api::PaymentCapture for
impl api::PaymentCapture for for Adyen
null
null
null
null
null
null
null
null
pub async fn rotate_password( state: SessionState, user_token: auth::UserFromSinglePurposeToken, request: user_api::RotatePasswordRequest, _req_state: ReqState, ) -> UserResponse<()> { let user: domain::UserFromStorage = state .global_store .find_user_by_id(&user_token.user_id) ...
crates/router/src/core/user.rs
router
function_signature
264
rust
null
null
null
null
rotate_password
null
null
null
null
null
null
null
impl PaymentIntent { #[cfg(feature = "v2")] pub async fn update( self, conn: &PgPooledConn, payment_intent_update: payment_intent::PaymentIntentUpdateInternal, ) -> StorageResult<Self> { match generics::generic_update_by_id::<<Self as HasTable>::Table, _, _, _>( c...
crates/diesel_models/src/query/payment_intent.rs
diesel_models
impl_block
1,100
rust
null
PaymentIntent
null
impl PaymentIntent
null
null
null
null
null
null
null
null
pub async fn delete_payment_attempts( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<Vec<PaymentAttempt>> { let query = diesel::delete(<PaymentAttempt>::table()) .filter(payment_attempt_dsl::merchant_id.eq(merchant_id.to_owned())) .filter(payment_att...
crates/diesel_models/src/query/user/sample_data.rs
diesel_models
function_signature
219
rust
null
null
null
null
delete_payment_attempts
null
null
null
null
null
null
null
pub struct Fetch;
crates/hyperswitch_domain_models/src/router_flow_types/dispute.rs
hyperswitch_domain_models
struct_definition
4
rust
Fetch
null
null
null
null
null
null
null
null
null
null
null
pub struct ChargebackNotification { #[serde(rename = "ppp_TransactionID")] pub ppp_transaction_id: Option<String>, pub merchant_unique_id: Option<String>, pub merchant_id: Option<String>, pub merchant_site_id: Option<String>, pub request_version: Option<String>, pub message: Option<String>, ...
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
190
rust
ChargebackNotification
null
null
null
null
null
null
null
null
null
null
null
pub struct DBEnumWrapper<T: FromStr + Display>(pub T);
crates/analytics/src/types.rs
analytics
struct_definition
15
rust
DBEnumWrapper
null
null
null
null
null
null
null
null
null
null
null
impl SellerStatusResponse { pub fn extract_merchant_details_url(self, paypal_base_url: &str) -> RouterResult<String> { self.links .first() .and_then(|link| link.href.strip_prefix('/')) .map(|link| format!("{paypal_base_url}{link}")) .ok_or(ApiErrorResponse::In...
crates/router/src/types/api/connector_onboarding/paypal.rs
router
impl_block
91
rust
null
SellerStatusResponse
null
impl SellerStatusResponse
null
null
null
null
null
null
null
null
pub fn is_eligible_for_local_payout_cancellation(status: api_enums::PayoutStatus) -> bool { matches!( status, api_enums::PayoutStatus::RequiresCreation | api_enums::PayoutStatus::RequiresConfirmation | api_enums::PayoutStatus::RequiresPayoutMethodData | api_enums:...
crates/router/src/core/payouts/helpers.rs
router
function_signature
90
rust
null
null
null
null
is_eligible_for_local_payout_cancellation
null
null
null
null
null
null
null
pub struct ClientSecretCreateRequest { /// Resource ID for which a client secret must be created pub resource_id: ResourceId, }
crates/api_models/src/ephemeral_key.rs
api_models
struct_definition
29
rust
ClientSecretCreateRequest
null
null
null
null
null
null
null
null
null
null
null
impl Default for RecoveryTimestamp { fn default() -> Self { Self { initial_timestamp_in_seconds: 1, job_schedule_buffer_time_in_seconds: 15, reopen_workflow_buffer_time_in_seconds: 60, max_random_schedule_delay_in_seconds: 300, } } }
crates/router/src/types/storage/revenue_recovery.rs
router
impl_block
67
rust
null
RecoveryTimestamp
Default for
impl Default for for RecoveryTimestamp
null
null
null
null
null
null
null
null
pub struct NomupayRouterData<T> { pub amount: FloatMajorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc. pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
NomupayRouterData
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::RoutingUnlinkConfig; Box::pin(oss_api::server_wrap( flow, state, &req, payload.into_inner(), |state, auth: auth::AuthenticationData, payload_req, _| { let merchant_context = domain::MerchantContext::NormalMerchant(Box::new( ...
crates/router/src/routes/routing.rs
router
impl_block
216
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/mod.rs #[cfg(all(feature = "v2", feature = "tokenization_v2"))] pub mod tokenization;
crates/diesel_models/src/mod.rs
diesel_models
full_file
33
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn build_payment_sync_request(item: &PaymentsSyncRouterData) -> Result<Vec<u8>, Error> { let transaction_type = get_transaction_type(item.status, item.request.capture_method)?; let auth = RedsysAuthType::try_from(&item.connector_auth_type)?; let connector_transaction_id = item .request ....
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
function_signature
110
rust
null
null
null
null
build_payment_sync_request
null
null
null
null
null
null
null
pub async fn get_pm_list_context( state: &routes::SessionState, payment_method: &enums::PaymentMethod, #[cfg(feature = "payouts")
crates/router/src/core/payment_methods/cards.rs
router
function_signature
37
rust
null
null
null
null
get_pm_list_context
null
null
null
null
null
null
null
impl api::PaymentVoid for Mifinity {}
crates/hyperswitch_connectors/src/connectors/mifinity.rs
hyperswitch_connectors
impl_block
10
rust
null
Mifinity
api::PaymentVoid for
impl api::PaymentVoid for for Mifinity
null
null
null
null
null
null
null
null
pub struct BluesnapMetadata { meta_data: Vec<RequestMetadata>, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
BluesnapMetadata
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundResponse { id: String, }
crates/hyperswitch_connectors/src/connectors/volt/transformers.rs
hyperswitch_connectors
struct_definition
12
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct NordeaOriginalRequest { /// Original request url #[serde(rename = "url")] pub nordea_url: Option<String>, }
crates/hyperswitch_connectors/src/connectors/nordea/responses.rs
hyperswitch_connectors
struct_definition
31
rust
NordeaOriginalRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Nexinets {}
crates/hyperswitch_connectors/src/connectors/nexinets.rs
hyperswitch_connectors
impl_block
10
rust
null
Nexinets
api::PaymentVoid for
impl api::PaymentVoid for for Nexinets
null
null
null
null
null
null
null
null
pub async fn delete_by_role_id(conn: &PgPooledConn, role_id: &str) -> StorageResult<Self> { generics::generic_delete_one_with_result::<<Self as HasTable>::Table, _, _>( conn, dsl::role_id.eq(role_id.to_owned()), ) .await }
crates/diesel_models/src/query/role.rs
diesel_models
function_signature
70
rust
null
null
null
null
delete_by_role_id
null
null
null
null
null
null
null
pub struct TrustpaymentsAuthType { pub(super) api_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
TrustpaymentsAuthType
null
null
null
null
null
null
null
null
null
null
null
impl AddressUpdateInternal { pub fn create_address(self, source: Address) -> Address { Address { city: self.city, country: self.country, line1: self.line1, line2: self.line2, line3: self.line3, state: self.state, zip: self.z...
crates/diesel_models/src/address.rs
diesel_models
impl_block
135
rust
null
AddressUpdateInternal
null
impl AddressUpdateInternal
null
null
null
null
null
null
null
null
pub struct BillingContact { // first_name: Secret<String>, // last_name: Secret<String>, // email: Option<Email>, // address: Secret<String>, // city: Secret<String>, // state: Secret<String>, // }
crates/hyperswitch_connectors/src/connectors/breadpay/transformers.rs
hyperswitch_connectors
struct_definition
52
rust
BillingContact
null
null
null
null
null
null
null
null
null
null
null
pub struct ApplePayDetails { payment_data: serde_json::Value, payment_method: ApplepayPaymentMethod, transaction_identifier: String, }
crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
ApplePayDetails
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/routes/routing.rs Public functions: 40 //! Analysis for usage of Routing in Payment flows //! //! Functions that are used to perform the api level configuration, retrieval, updation //! of Routing configs. use actix_web::{web, HttpRequest, Responder}; use api_models::{ enums, routing:...
crates/router/src/routes/routing.rs#chunk0
router
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
self.encryption_management .validate() .map_err(|err| ApplicationError::InvalidConfigurationValueError(err.into()))?; self.secrets_management .validate() .map_err(|err| ApplicationError::InvalidConfigurationValueError(err.into()))?; self.generic_...
crates/router/src/configs/settings.rs#chunk1
router
chunk
3,656
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn validate_card_expiry( card_exp_month: &masking::Secret<String>, card_exp_year: &masking::Secret<String>, ) -> errors::CustomResult<(), errors::ApiErrorResponse> { let exp_month = card_exp_month .peek() .to_string() .parse::<u8>() .change_context(errors::ApiErrorRespons...
crates/payment_methods/src/core/migration.rs
payment_methods
function_signature
191
rust
null
null
null
null
validate_card_expiry
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Hipay {}
crates/hyperswitch_connectors/src/connectors/hipay.rs
hyperswitch_connectors
impl_block
9
rust
null
Hipay
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Hipay
null
null
null
null
null
null
null
null
Web Documentation: Going live | Hyperswitch # Type: Web Doc Before going live with Hyperswitch, ensure that your integration is production-ready by following our comprehensive setup checklists. These checklists help you verify that your payment processing is optimized, secure, and fully functional for a seamless merch...
https://docs.hyperswitch.io/check-list-for-production/going-live
null
web_doc_file
217
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/check-list-for-production/going-live
Going live | Hyperswitch
null
impl ConnectorOnboarding { pub fn server(state: AppState) -> Scope { web::scope("/connector_onboarding") .app_data(web::Data::new(state)) .service( web::resource("/action_url") .route(web::post().to(connector_onboarding::get_action_url)), ...
crates/router/src/routes/app.rs
router
impl_block
133
rust
null
ConnectorOnboarding
null
impl ConnectorOnboarding
null
null
null
null
null
null
null
null
Self::Voucher(From::from(voucher_data)) } api_models::payments::PaymentMethodData::GiftCard(gift_card) => { Self::GiftCard(Box::new(From::from(*gift_card))) } api_models::payments::PaymentMethodData::CardToken(card_token) => { ...
crates/hyperswitch_domain_models/src/payment_method_data.rs#chunk1
hyperswitch_domain_models
chunk
8,179
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Normalize retry window to exactly `RETRY_WINDOW_DAYS` days (today to `RETRY_WINDOW_DAYS - 1` days ago). pub fn normalize_retry_window( payment_processor_token: &mut PaymentProcessorTokenStatus, today: Date, ) { let mut normalized_retry_history: HashMap<Date, i32> = HashMap::new(); ...
crates/router/src/types/storage/revenue_recovery_redis_operation.rs
router
function_signature
156
rust
null
null
null
null
normalize_retry_window
null
null
null
null
null
null
null
Documentation: api-reference/v1/mandates/mandates--retrieve-mandate.mdx # Type: Doc File --- openapi: get /mandates/{mandate_id} ---
api-reference/v1/mandates/mandates--retrieve-mandate.mdx
null
doc_file
40
doc
null
null
null
null
null
null
null
null
null
null
null
null