text
string
file_path
string
module
string
type
string
tokens
int64
language
string
struct_name
string
type_name
string
trait_name
string
impl_type
string
function_name
string
source
string
section
string
keys
list
macro_type
string
url
string
title
string
chunk_index
int64
pub struct PixTransactionRequest { pub subject_id: Secret<String>, // Customer ID (UUID) pub from_bank_account_id: MaskedBankAccount, // UUID pub to_bank_account_id: MaskedBankAccount, // UUID pub currency: api_models::enums::Currency, pub exchange_currency: api_models::enums::Currenc...
crates/hyperswitch_connectors/src/connectors/facilitapay/requests.rs
hyperswitch_connectors
struct_definition
124
rust
PixTransactionRequest
null
null
null
null
null
null
null
null
null
null
null
pub trait PaymentDistribution<T> where T: AnalyticsDataSource + PaymentDistributionAnalytics, { #[allow(clippy::too_many_arguments)] async fn load_distribution( &self, distribution: &PaymentDistributionBody, dimensions: &[PaymentDimensions], auth: &AuthInfo, filters: ...
crates/analytics/src/payments/distribution.rs
analytics
trait_definition
108
rust
null
null
PaymentDistribution
null
null
null
null
null
null
null
null
null
pub async fn fetch_forex_rates_from_fallback_api( state: &SessionState, ) -> CustomResult<FxExchangeRatesCacheEntry, ForexError> { let fallback_forex_api_key = state.conf.forex_api.get_inner().fallback_api_key.peek(); let fallback_forex_url: String = format!("{FALLBACK_FOREX_BASE_URL}{fallback_forex_api_ke...
crates/router/src/utils/currency.rs
router
function_signature
629
rust
null
null
null
null
fetch_forex_rates_from_fallback_api
null
null
null
null
null
null
null
pub fn new(email: Secret<String, pii::EmailStrategy>) -> UserResult<Self> { use validator::ValidateEmail; let email_string = email.expose().to_lowercase(); let email = pii::Email::from_str(&email_string).change_context(UserErrors::EmailParsingError)?; if email_string.valida...
crates/router/src/types/domain/user.rs
router
function_signature
162
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl RefundSync for Cybersource {}
crates/hyperswitch_connectors/src/connectors/cybersource.rs
hyperswitch_connectors
impl_block
9
rust
null
Cybersource
RefundSync for
impl RefundSync for for Cybersource
null
null
null
null
null
null
null
null
pub struct AuthReversal { #[serde(rename = "@id")] pub id: String, #[serde(rename = "@reportGroup")] pub report_group: String, pub cnp_txn_id: String, }
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
47
rust
AuthReversal
null
null
null
null
null
null
null
null
null
null
null
pub fn format_emv_field(id: &str, value: &str) -> String { format!("{id}{:02}{value}", value.len()) }
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
function_signature
34
rust
null
null
null
null
format_emv_field
null
null
null
null
null
null
null
pub struct RazorpayRefundRequest { pub amount: MinorUnit, }
crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
RazorpayRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundManualUpdateRequest { #[serde(skip)] pub refund_id: String, /// Merchant ID #[schema(value_type = String)] pub merchant_id: common_utils::id_type::MerchantId, /// The status for refund pub status: Option<RefundStatus>, /// The code for the error pub error_code: Optio...
crates/api_models/src/refunds.rs
api_models
struct_definition
95
rust
RefundManualUpdateRequest
null
null
null
null
null
null
null
null
null
null
null
impl DummyConnectors { pub fn get_dummy_connector_id(self) -> &'static str { match self { Self::PhonyPay => "phonypay", Self::FauxPay => "fauxpay", Self::PretendPay => "pretendpay", Self::StripeTest => "stripe_test", Self::AdyenTest => "adyen_test"...
crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs
hyperswitch_connectors
impl_block
108
rust
null
DummyConnectors
null
impl DummyConnectors
null
null
null
null
null
null
null
null
pub const fn new() -> &'static Self { &Self { #[cfg(feature = "payouts")] amount_converter: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/adyenplatform.rs
hyperswitch_connectors
function_signature
38
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn find_by_connector_transaction_id_payment_id_merchant_id( conn: &PgPooledConn, connector_transaction_id: &common_utils::types::ConnectorTransactionId, payment_id: &common_utils::id_type::PaymentId, merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<Self> ...
crates/diesel_models/src/query/payment_attempt.rs
diesel_models
function_signature
153
rust
null
null
null
null
find_by_connector_transaction_id_payment_id_merchant_id
null
null
null
null
null
null
null
pub struct Upload;
crates/hyperswitch_domain_models/src/router_flow_types/files.rs
hyperswitch_domain_models
struct_definition
4
rust
Upload
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/chargebee.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 ChargebeeTest...
crates/router/tests/connectors/chargebee.rs
router
full_file
2,926
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct HipayRouterData<T> { pub amount: StringMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
HipayRouterData
null
null
null
null
null
null
null
null
null
null
null
File: crates/test_utils/tests/connectors/adyen_uk_wh_ui.rs use thirtyfour::{prelude::*, WebDriver}; use crate::{selenium::*, tester}; struct AdyenSeleniumTest; impl SeleniumTest for AdyenSeleniumTest { fn get_connector_name(&self) -> String { "adyen_uk".to_string() } } async fn should_make_webhook(...
crates/test_utils/tests/connectors/adyen_uk_wh_ui.rs
test_utils
full_file
207
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn find( conn: &PgPooledConn, connector: String, flow: String, sub_flow: String, code: String, message: String, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::connector ...
crates/diesel_models/src/query/gsm.rs
diesel_models
function_signature
131
rust
null
null
null
null
find
null
null
null
null
null
null
null
File: crates/euclid/src/frontend/ast/parser.rs Public functions: 24 use common_utils::types::MinorUnit; use nom::{ branch, bytes::complete, character::complete as pchar, combinator, error, multi, sequence, }; use crate::{frontend::ast, types::DummyOutput}; pub type ParseResult<T, U> = nom::IResult<T, U, error::V...
crates/euclid/src/frontend/ast/parser.rs
euclid
full_file
3,354
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Stripe {}
crates/hyperswitch_connectors/src/connectors/stripe.rs
hyperswitch_connectors
impl_block
7
rust
null
Stripe
api::Payment for
impl api::Payment for for Stripe
null
null
null
null
null
null
null
null
Documentation: api-reference/intelligent-router-api-reference/static-routing/create-a-routing-rule.mdx # Type: Doc File --- openapi: post /euclid.EuclidService/Create ---
api-reference/intelligent-router-api-reference/static-routing/create-a-routing-rule.mdx
null
doc_file
39
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn refunds_metadata_update( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<refunds::RefundMetadataUpdateRequest>, path: web::Path<common_utils::id_type::GlobalRefundId>, ) -> HttpResponse { let flow = Flow::RefundsUpdate; let global_refund_id = path.into_inner()...
crates/router/src/routes/refunds.rs
router
function_signature
237
rust
null
null
null
null
refunds_metadata_update
null
null
null
null
null
null
null
pub struct AffirmCancelRequest { pub reference_id: Option<String>, pub amount: i64, pub merchant_transaction_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
AffirmCancelRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn upsert_conditional_config( state: SessionState, merchant_context: domain::MerchantContext, request: DecisionManager, ) -> RouterResponse<DecisionManagerRecord> { use common_utils::ext_traits::{Encode, OptionExt, ValueExt}; use diesel_models::configs; use storage_impl::redis::cache; ...
crates/router/src/core/conditional_config.rs
router
function_signature
1,100
rust
null
null
null
null
upsert_conditional_config
null
null
null
null
null
null
null
Documentation: api-reference/v2/revenue-recovery/revenue-recovery--retrieve.mdx # Type: Doc File --- openapi: get /v2/process-trackers/revenue-recovery-workflow/{revenue_recovery_id} ---
api-reference/v2/revenue-recovery/revenue-recovery--retrieve.mdx
null
doc_file
49
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct StripePaymentIntentRequest { pub id: Option<id_type::PaymentId>, pub amount: Option<i64>, // amount in cents, hence passed as integer pub connector: Option<Vec<api_enums::RoutableConnectors>>, pub currency: Option<String>, #[serde(rename = "amount_to_capture")] pub amount_capturable: ...
crates/router/src/compatibility/stripe/payment_intents/types.rs
router
struct_definition
396
rust
StripePaymentIntentRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn upsert_surcharge_decision_config( state: SessionState, merchant_context: domain::MerchantContext, request: SurchargeDecisionConfigReq, ) -> RouterResponse<SurchargeDecisionManagerRecord> { use common_utils::ext_traits::{Encode, OptionExt, ValueExt}; use diesel_models::configs; use s...
crates/router/src/core/surcharge_decision_config.rs
router
function_signature
1,063
rust
null
null
null
null
upsert_surcharge_decision_config
null
null
null
null
null
null
null
pub fn option_to_result<T>(opt: Option<T>) -> Result<T, errors::ConnectorError> { opt.ok_or(errors::ConnectorError::WebhookBodyDecodingFailed) }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
function_signature
39
rust
null
null
null
null
option_to_result
null
null
null
null
null
null
null
File: crates/router/src/db/reverse_lookup.rs use super::{MockDb, Store}; use crate::{ errors::{self, CustomResult}, types::storage::{ enums, reverse_lookup::{ReverseLookup, ReverseLookupNew}, }, }; #[async_trait::async_trait] pub trait ReverseLookupInterface { async fn insert_reverse_l...
crates/router/src/db/reverse_lookup.rs
router
full_file
1,529
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AdyenSplitType { "type": "string", "enum": [ "BalanceAccount", "AcquiringFees", "PaymentFee", "AdyenFees", "AdyenCommission", "AdyenMarkup", "Interchange", "SchemeFee", "Commission", "TopUp", "Vat" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
90
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AdyenSplitType" ]
null
null
null
null
File: crates/router/src/core/fraud_check/flows/sale_flow.rs Public functions: 1 use async_trait::async_trait; use common_utils::{ext_traits::ValueExt, pii::Email}; use error_stack::ResultExt; use masking::ExposeInterface; use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, fraud_check...
crates/router/src/core/fraud_check/flows/sale_flow.rs
router
full_file
1,479
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct VaultToken { pub card_cvc: Secret<String>, pub card_holder_name: Option<Secret<String>>, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
26
rust
VaultToken
null
null
null
null
null
null
null
null
null
null
null
pub struct Product { pub item_name: String, pub item_quantity: i64, pub item_id: String, }
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs
hyperswitch_connectors
struct_definition
28
rust
Product
null
null
null
null
null
null
null
null
null
null
null
impl RevenueRecoveryAlgorithmData { pub fn has_exceeded_monitoring_threshold(&self, monitoring_threshold_in_seconds: i64) -> bool { let total_threshold_time = self.monitoring_configured_timestamp + Duration::seconds(monitoring_threshold_in_seconds); common_utils::date_time::now() >= tota...
crates/diesel_models/src/business_profile.rs
diesel_models
impl_block
73
rust
null
RevenueRecoveryAlgorithmData
null
impl RevenueRecoveryAlgorithmData
null
null
null
null
null
null
null
null
impl ApiKeys { pub fn server(state: AppState) -> Scope { web::scope("/api_keys/{merchant_id}") .app_data(web::Data::new(state)) .service(web::resource("").route(web::post().to(api_keys::api_key_create))) .service(web::resource("/list").route(web::get().to(api_keys::api_ke...
crates/router/src/routes/app.rs
router
impl_block
143
rust
null
ApiKeys
null
impl ApiKeys
null
null
null
null
null
null
null
null
pub fn new(item: Secret<Vec<u8>, EncryptionStrategy>) -> Self { Self { inner: item } }
crates/common_utils/src/encryption.rs
common_utils
function_signature
25
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct Errors { pub code: i64, pub description: String, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
Errors
null
null
null
null
null
null
null
null
null
null
null
pub struct Tokenization;
crates/router/src/routes/app.rs
router
struct_definition
5
rust
Tokenization
null
null
null
null
null
null
null
null
null
null
null
File: crates/api_models/src/events/recon.rs use common_utils::events::{ApiEventMetric, ApiEventsType}; use masking::PeekInterface; use crate::recon::{ ReconStatusResponse, ReconTokenResponse, ReconUpdateMerchantRequest, VerifyTokenResponse, }; impl ApiEventMetric for ReconUpdateMerchantRequest { fn get_api_e...
crates/api_models/src/events/recon.rs
api_models
full_file
223
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/services/api/generic_link_response/context.rs Public functions: 2 use common_utils::consts::DEFAULT_LOCALE; use rust_i18n::t; use tera::Context; fn get_language(locale_str: &str) -> String { let lowercase_str = locale_str.to_lowercase(); let primary_locale = lowercase_str.split(',').n...
crates/router/src/services/api/generic_link_response/context.rs
router
full_file
1,495
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/relay" { "post": { "tags": [ "Relay" ], "summary": "Relay - Create", "description": "Creates a relay request.", "operationId": "Relay Request", "parameters": [ { "name": "X-Profile-Id", "in": "header", "description": "Profile ID f...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
440
.json
null
null
null
null
null
openapi_spec
paths
[ "/relay" ]
null
null
null
null
OpenAPI Block Path: components.schemas.AcceptanceType { "type": "string", "description": "This is used to indicate if the mandate was accepted online or offline", "enum": [ "online", "offline" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
55
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AcceptanceType" ]
null
null
null
null
pub fn get_payment_processor_token_id_from_payment_attempt( payment_attempt: &PaymentAttempt, ) -> Option<String> { let used_token = payment_attempt .connector_token_details .as_ref() .and_then(|t| t.connector_mandate_id.clone()); logger::info!("Used token in the payment attempt : {:...
crates/router/src/core/revenue_recovery/types.rs
router
function_signature
80
rust
null
null
null
null
get_payment_processor_token_id_from_payment_attempt
null
null
null
null
null
null
null
pub struct SyncTransactionResponse { #[serde(rename = "transId")] transaction_id: String, transaction_status: SyncStatus, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
SyncTransactionResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct NovalnetPaymentsRequestTransaction { test_mode: i8, payment_type: NovalNetPaymentTypes, amount: NovalNetAmount, currency: common_enums::Currency, order_no: String, payment_data: Option<NovalNetPaymentData>, hook_url: Option<String>, return_url: Option<String>, error_return...
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
130
rust
NovalnetPaymentsRequestTransaction
null
null
null
null
null
null
null
null
null
null
null
pub struct StaxCustomerResponse { id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/stax/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
StaxCustomerResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct EdgeId(usize);
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
struct_definition
7
rust
EdgeId
null
null
null
null
null
null
null
null
null
null
null
impl ArchipelFlowStatus { fn new(status: ArchipelPaymentStatus, flow: ArchipelPaymentFlow) -> Self { Self { status, flow } } }
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
hyperswitch_connectors
impl_block
36
rust
null
ArchipelFlowStatus
null
impl ArchipelFlowStatus
null
null
null
null
null
null
null
null
impl ConnectorValidation for Aci { fn validate_mandate_payment( &self, pm_type: Option<enums::PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { let mandate_supported_pmd = std::collections::HashSet::from([PaymentMethodDataType::Card])...
crates/hyperswitch_connectors/src/connectors/aci.rs
hyperswitch_connectors
impl_block
95
rust
null
Aci
ConnectorValidation for
impl ConnectorValidation for for Aci
null
null
null
null
null
null
null
null
pub fn new( pm_type: RequestPaymentMethodTypes, connector: String, merchant_connector_id: String, pm: api_enums::PaymentMethod, ) -> Self { Self { payment_method_type: pm_type.payment_method_type, payment_experience: pm_type.payment_experience, ...
crates/api_models/src/payment_methods.rs
api_models
function_signature
92
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl Deref for CardSecurityCode { type Target = StrongSecret<u16>; fn deref(&self) -> &Self::Target { &self.0 } }
crates/cards/src/lib.rs
cards
impl_block
40
rust
null
CardSecurityCode
Deref for
impl Deref for for CardSecurityCode
null
null
null
null
null
null
null
null
/// Creates a new `MerchantCountryCode` instance from a string. pub fn new(country_code: String) -> Self { Self(country_code) }
crates/common_types/src/payments.rs
common_types
function_signature
33
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl<'a> NetworkTokenizationBuilder<'a, PmAssigned> { pub fn get_optional_card_and_cvc( &self, ) -> (Option<domain::CardDetail>, Option<Secret<String>>) { (self.card.clone(), self.card_cvc.clone()) } pub fn set_token_details( self, network_token: &'a NetworkTokenizationRe...
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
impl_block
204
rust
null
NetworkTokenizationBuilder
null
impl NetworkTokenizationBuilder
null
null
null
null
null
null
null
null
pub struct CeleroRouterData<T> { pub amount: MinorUnit, // CeleroCommerce expects integer cents pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
CeleroRouterData
null
null
null
null
null
null
null
null
null
null
null
/// Get the string representation of the id pub fn get_string_repr(&self) -> &str { self.0.get_string_repr() }
crates/common_utils/src/id_type/global_id/payment_methods.rs
common_utils
function_signature
32
rust
null
null
null
null
get_string_repr
null
null
null
null
null
null
null
pub struct ChargebeeRouterData<T> { pub amount: MinorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc. pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
struct_definition
49
rust
ChargebeeRouterData
null
null
null
null
null
null
null
null
null
null
null
impl super::refunds::distribution::RefundDistributionAnalytics for SqlxClient {}
crates/analytics/src/sqlx.rs
analytics
impl_block
17
rust
null
SqlxClient
super::refunds::distribution::RefundDistributionAnalytics for
impl super::refunds::distribution::RefundDistributionAnalytics for for SqlxClient
null
null
null
null
null
null
null
null
pub struct Payu { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/payu.rs
hyperswitch_connectors
struct_definition
26
rust
Payu
null
null
null
null
null
null
null
null
null
null
null
pub struct PaytmPaymentsResponse { status: PaytmPaymentStatus, id: String, }
crates/hyperswitch_connectors/src/connectors/paytm/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
PaytmPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn check_token_status_with_tokenization_service( _state: &routes::SessionState, _customer_id: &id_type::GlobalCustomerId, _network_token_requestor_reference_id: String, _tokenization_service: &settings::NetworkTokenizationService, ) -> CustomResult<(Option<Secret<String>>, Option<Secret<String...
crates/router/src/core/payment_methods/network_tokenization.rs
router
function_signature
87
rust
null
null
null
null
check_token_status_with_tokenization_service
null
null
null
null
null
null
null
pub fn tenant_aware_key(&self, pool: &RedisConnectionPool) -> String { pool.add_prefix(&self.0) }
crates/redis_interface/src/types.rs
redis_interface
function_signature
30
rust
null
null
null
null
tenant_aware_key
null
null
null
null
null
null
null
impl Responder { let mut payload = json_payload.into_inner(); let payment_id = path.into_inner(); tracing::Span::current().record("payment_id", payment_id.get_string_repr()); payload.payment_id = payment_id; let flow = Flow::PaymentsReject; let fpayload = FPaymentsRejectRequest(&payload); ...
crates/router/src/routes/payments.rs
router
impl_block
402
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct CountAccumulator { pub count: Option<i64>, }
crates/analytics/src/auth_events/accumulator.rs
analytics
struct_definition
17
rust
CountAccumulator
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.Paypal { "type": "object", "required": [ "email", "telephone_number", "paypal_id" ], "properties": { "email": { "type": "string", "description": "Email linked with paypal account", "example": "john.doe@example.com" }, "telephone_nu...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
171
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "Paypal" ]
null
null
null
null
pub trait CrmInterface: Send + Sync { /// Make body for the request async fn make_body(&self, details: CrmPayload) -> RequestContent; /// Encrypt the given input data async fn make_request(&self, body: RequestContent, origin_base_url: String) -> Request; /// Decrypt the given input data async ...
crates/hyperswitch_interfaces/src/crm.rs
hyperswitch_interfaces
trait_definition
110
rust
null
null
CrmInterface
null
null
null
null
null
null
null
null
null
pub struct JpmorganRefundSyncResponse { transaction_id: String, request_id: String, transaction_state: JpmorganTransactionState, amount: MinorUnit, currency: common_enums::Currency, response_status: JpmorganResponseStatus, response_code: String, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
63
rust
JpmorganRefundSyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct TokenizeWithPmId;
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
struct_definition
9
rust
TokenizeWithPmId
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Forte {}
crates/hyperswitch_connectors/src/connectors/forte.rs
hyperswitch_connectors
impl_block
9
rust
null
Forte
api::PaymentSession for
impl api::PaymentSession for for Forte
null
null
null
null
null
null
null
null
pub struct CheckoutApplePayData { version: Secret<String>, data: Secret<String>, signature: Secret<String>, header: CheckoutApplePayHeader, }
crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
CheckoutApplePayData
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorRedirectResponse for Stripe { fn get_flow_type( &self, _query_params: &str, _json_payload: Option<serde_json::Value>, action: PaymentAction, ) -> CustomResult<CallConnectorAction, ConnectorError> { match action { PaymentAction::PSync ...
crates/hyperswitch_connectors/src/connectors/stripe.rs
hyperswitch_connectors
impl_block
102
rust
null
Stripe
ConnectorRedirectResponse for
impl ConnectorRedirectResponse for for Stripe
null
null
null
null
null
null
null
null
pub fn get_transaction_id( meta: &NexinetsPaymentsMetadata, ) -> Result<String, error_stack::Report<errors::ConnectorError>> { let transaction_id = meta.transaction_id.clone().ok_or( errors::ConnectorError::MissingConnectorRelatedTransactionID { id: "transaction_id".to_string(), }, ...
crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs
hyperswitch_connectors
function_signature
79
rust
null
null
null
null
get_transaction_id
null
null
null
null
null
null
null
pub async fn user_connect_account( state: web::Data<AppState>, http_req: HttpRequest, json_payload: web::Json<user_api::ConnectAccountRequest>, query: web::Query<user_api::AuthIdAndThemeIdQueryParam>, ) -> HttpResponse { let flow = Flow::UserConnectAccount; let req_payload = json_payload.into_in...
crates/router/src/routes/user.rs
router
function_signature
182
rust
null
null
null
null
user_connect_account
null
null
null
null
null
null
null
pub struct Card { card_number: cards::CardNumber, expiration_month: Secret<String>, expiration_year: Secret<String>, security_code: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
Card
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthChargeCreditCard { transaction: TransactionAuthChargeResponseBody, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
AuthChargeCreditCard
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/affirm.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 AffirmTest; impl...
crates/router/tests/connectors/affirm.rs
router
full_file
2,926
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CustomerListRequest { /// Offset #[schema(example = 32)] pub offset: Option<u32>, /// Limit #[schema(example = 32)] pub limit: Option<u16>, }
crates/api_models/src/customers.rs
api_models
struct_definition
51
rust
CustomerListRequest
null
null
null
null
null
null
null
null
null
null
null
impl MaskedHeaders { fn mask_value(value: &str) -> String { let value_len = value.len(); let masked_value = if value_len <= 4 { "*".repeat(value_len) } else { value .char_indices() .map(|(index, ch)| { if index < 2 ...
crates/api_models/src/admin.rs
api_models
impl_block
193
rust
null
MaskedHeaders
null
impl MaskedHeaders
null
null
null
null
null
null
null
null
impl SessionState { pub fn get_req_state(&self) -> ReqState { ReqState { event_context: events::EventContext::new(self.event_handler.clone()), } } pub fn get_grpc_headers(&self) -> GrpcHeaders { GrpcHeaders { tenant_id: self.tenant.tenant_id.get_string_repr()....
crates/router/src/routes/app.rs
router
impl_block
167
rust
null
SessionState
null
impl SessionState
null
null
null
null
null
null
null
null
pub fn new( relay_request: &api_models::relay::RelayRequest, merchant_id: &id_type::MerchantId, profile_id: &id_type::ProfileId, ) -> Self { let relay_id = id_type::RelayId::generate(); Self { id: relay_id.clone(), connector_resource_id: relay_request....
crates/hyperswitch_domain_models/src/relay.rs
hyperswitch_domain_models
function_signature
203
rust
null
null
null
null
new
null
null
null
null
null
null
null
File: crates/drainer/src/settings.rs Public functions: 8 Public structs: 9 use std::{collections::HashMap, path::PathBuf, sync::Arc}; use common_utils::{ext_traits::ConfigExt, id_type, DbConnectionParams}; use config::{Environment, File}; use external_services::managers::{ encryption_management::EncryptionManag...
crates/drainer/src/settings.rs
drainer
full_file
2,477
null
null
null
null
null
null
null
null
null
null
null
null
null
pub const fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/noon.rs
hyperswitch_connectors
function_signature
29
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl Payu { pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/payu.rs
hyperswitch_connectors
impl_block
33
rust
null
Payu
null
impl Payu
null
null
null
null
null
null
null
null
pub fn is_expired(&self) -> Result<bool, error_stack::Report<errors::ValidationError>> { let current_datetime_utc = date_time::now(); let expiration_month = time::Month::try_from(*self.month.peek()).map_err(|_| { report!(errors::ValidationError::InvalidValue { message: "inva...
crates/cards/src/lib.rs
cards
function_signature
275
rust
null
null
null
null
is_expired
null
null
null
null
null
null
null
File: crates/router/src/workflows/revenue_recovery.rs Public functions: 6 Public structs: 2 #[cfg(feature = "v2")] use std::collections::HashMap; #[cfg(feature = "v2")] use api_models::{enums::RevenueRecoveryAlgorithmType, payments::PaymentsGetIntentRequest}; use common_utils::errors::CustomResult; #[cfg(feature = ...
crates/router/src/workflows/revenue_recovery.rs
router
full_file
5,743
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Issuer { pub authorization_code: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
struct_definition
14
rust
Issuer
null
null
null
null
null
null
null
null
null
null
null
pub struct Authorizedotnet { amount_convertor: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs
hyperswitch_connectors
struct_definition
29
rust
Authorizedotnet
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Opayo {}
crates/hyperswitch_connectors/src/connectors/opayo.rs
hyperswitch_connectors
impl_block
9
rust
null
Opayo
api::PaymentSync for
impl api::PaymentSync for for Opayo
null
null
null
null
null
null
null
null
impl PaymentAttempt { pub fn get_total_amount(&self) -> MinorUnit { self.net_amount.get_total_amount() } pub fn get_total_surcharge_amount(&self) -> Option<MinorUnit> { self.net_amount.get_total_surcharge_amount() } pub fn set_debit_routing_savings(&mut self, debit_routing_savings:...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
impl_block
305
rust
null
PaymentAttempt
null
impl PaymentAttempt
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Multisafepay { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&MULTISAFEPAY_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*MULTISAFEPAY_SUPPORTED_PAYMENT_METHODS) } ...
crates/hyperswitch_connectors/src/connectors/multisafepay.rs
hyperswitch_connectors
impl_block
117
rust
null
Multisafepay
ConnectorSpecifications for
impl ConnectorSpecifications for for Multisafepay
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::PaymentsRedirect; let (payment_id, merchant_id, connector) = path.into_inner(); let param_string = req.query_string(); tracing::Span::current().record("payment_id", payment_id.get_string_repr()); let payload = payments::PaymentsRedirectResponseData { resou...
crates/router/src/routes/payments.rs
router
impl_block
286
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct CancelResponseTransactionBody { id: String, status: BraintreePaymentStatus, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
CancelResponseTransactionBody
null
null
null
null
null
null
null
null
null
null
null
pub fn get_action( event_type: webhooks::IncomingWebhookEvent, attempt_triggered_by: Option<common_enums::TriggeredBy>, ) -> common_types::payments::RecoveryAction { match event_type { webhooks::IncomingWebhookEvent::PaymentIntentFailure | webhooks::IncomingWebhookEve...
crates/router/src/core/webhooks/recovery_incoming.rs
router
function_signature
819
rust
null
null
null
null
get_action
null
null
null
null
null
null
null
pub struct PlatformAccountCreateResponse { #[schema(value_type = String, max_length = 64, min_length = 1, example = "org_abc")] pub org_id: id_type::OrganizationId, #[schema(value_type = Option<String>, example = "organization_abc")] pub org_name: Option<String>, #[schema(value_type = OrganizationT...
crates/api_models/src/user.rs
api_models
struct_definition
153
rust
PlatformAccountCreateResponse
null
null
null
null
null
null
null
null
null
null
null
pub(crate) async fn get_schedule_time_for_smart_retry( state: &SessionState, payment_intent: &PaymentIntent, retry_after_time: Option<prost_types::Timestamp>, token_with_retry_info: &PaymentProcessorTokenWithRetryInfo, ) -> Result<Option<time::PrimitiveDateTime>, errors::ProcessTrackerError> { let c...
crates/router/src/workflows/revenue_recovery.rs
router
function_signature
1,195
rust
null
null
null
null
get_schedule_time_for_smart_retry
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Flexiti {}
crates/hyperswitch_connectors/src/connectors/flexiti.rs
hyperswitch_connectors
impl_block
9
rust
null
Flexiti
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Flexiti
null
null
null
null
null
null
null
null
pub struct CustomerDetails { id: String, email: Option<Email>, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
CustomerDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct MonerisAuthType { pub(super) client_id: Secret<String>, pub(super) client_secret: Secret<String>, pub(super) merchant_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs
hyperswitch_connectors
struct_definition
39
rust
MonerisAuthType
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GetFrmFilters; Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inner(), |state, auth: AuthenticationData, req: GetFrmFilterRequest, _| async move { analytics::frm::get_f...
crates/router/src/analytics.rs
router
impl_block
134
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub async fn reset_tracking_id( state: SessionState, user_from_token: auth::UserFromToken, request: api::ResetTrackingIdRequest, _req_state: ReqState, ) -> RouterResponse<()> { utils::check_if_connector_exists(&state, &request.connector_id, &user_from_token.merchant_id) .await?; utils::s...
crates/router/src/core/connector_onboarding.rs
router
function_signature
105
rust
null
null
null
null
reset_tracking_id
null
null
null
null
null
null
null
pub struct PaymeQueryTransactionResponse { items: Vec<TransactionQuery>, }
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
PaymeQueryTransactionResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct BluecodeRefundRequest { pub amount: FloatMajorUnit, }
crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
BluecodeRefundRequest
null
null
null
null
null
null
null
null
null
null
null