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 AdyenAccountHolder { address: Option<AdyenAddress>, first_name: Option<Secret<String>>, last_name: Option<Secret<String>>, full_name: Option<Secret<String>>, email: Option<pii::Email>, #[serde(rename = "reference")] customer_id: Option<String>, #[serde(rename = "type")] en...
crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs
hyperswitch_connectors
struct_definition
84
rust
AdyenAccountHolder
null
null
null
null
null
null
null
null
null
null
null
pub fn is_outgoing_webhook_disabled( state: &SessionState, webhook_url_result: &Result<String, Report<errors::WebhooksFlowError>>, business_profile: &domain::Profile, idempotent_event_id: &str, ) -> bool { if !state.conf.webhooks.outgoing_enabled || webhook_url_result.is_err() || web...
crates/router/src/core/webhooks/utils.rs
router
function_signature
159
rust
null
null
null
null
is_outgoing_webhook_disabled
null
null
null
null
null
null
null
impl<'a, T: KafkaMessage> KafkaConsolidatedEvent<'a, T> { fn new(event: &'a T, tenant_id: TenantID) -> Self { Self { log: KafkaConsolidatedLog { event, tenant_id }, log_type: event.event_type(), } } }
crates/router/src/services/kafka.rs
router
impl_block
68
rust
null
KafkaConsolidatedEvent
null
impl KafkaConsolidatedEvent
null
null
null
null
null
null
null
null
pub async fn find_by_merchant_id_connector_transaction_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, connector_transaction_id: &str, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as HasTable>::Table, _, ...
crates/diesel_models/src/query/refund.rs
diesel_models
function_signature
143
rust
null
null
null
null
find_by_merchant_id_connector_transaction_id
null
null
null
null
null
null
null
/// ``` pub fn new( service: &str, dst_writer: W, formatter: F, ) -> error_stack::Result<Self, ConfigError> { Self::new_with_implicit_entries(service, dst_writer, HashMap::new(), formatter) }
crates/router_env/src/logger/formatter.rs
router_env
function_signature
58
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn revenue_recovery_pt_retrieve_api( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::GlobalPaymentId>, ) -> HttpResponse { let flow = Flow::RevenueRecoveryRetrieve; let id = path.into_inner(); let payload = revenue_recovery_api::RevenueRecoveryId { ...
crates/router/src/routes/process_tracker/revenue_recovery.rs
router
function_signature
182
rust
null
null
null
null
revenue_recovery_pt_retrieve_api
null
null
null
null
null
null
null
pub struct MerchantConnectorInfo { pub connector_label: String, #[schema(value_type = String)] pub merchant_connector_id: id_type::MerchantConnectorAccountId, }
crates/api_models/src/admin.rs
api_models
struct_definition
35
rust
MerchantConnectorInfo
null
null
null
null
null
null
null
null
null
null
null
impl<Res> RoutingEventsResponse<Res> where Res: Serialize + serde::de::DeserializeOwned + Clone, { pub fn new(event: Option<routing_events::RoutingEvent>, response: Option<Res>) -> Self { Self { event, response } } pub fn set_response(&mut self, response: Res) { self.response = Some(res...
crates/router/src/core/payments/routing/utils.rs
router
impl_block
110
rust
null
RoutingEventsResponse
null
impl RoutingEventsResponse
null
null
null
null
null
null
null
null
pub async fn refresh_connector_auth( state: &SessionState, connector: &api_types::ConnectorData, _merchant_context: &domain::MerchantContext, router_data: &types::RouterData< api_types::AccessTokenAuth, types::AccessTokenRequestData, types::AccessToken, >, ) -> RouterResult<R...
crates/router/src/core/payments/access_token.rs
router
function_signature
443
rust
null
null
null
null
refresh_connector_auth
null
null
null
null
null
null
null
pub struct PlaidErrorResponse { pub display_message: Option<String>, pub error_code: Option<String>, pub error_message: String, pub error_type: Option<String>, }
crates/pm_auth/src/connector/plaid/transformers.rs
pm_auth
struct_definition
38
rust
PlaidErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct CurrentFlow { origin: Origin, current_flow_index: usize, path: Vec<TokenPurpose>, tenant_id: Option<id_type::TenantId>, }
crates/router/src/types/domain/user/decision_manager.rs
router
struct_definition
37
rust
CurrentFlow
null
null
null
null
null
null
null
null
null
null
null
pub struct ApplePayEncodedPaymentData { data: String, header: Option<ApplepayHeader>, signature: String, version: String, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
ApplePayEncodedPaymentData
null
null
null
null
null
null
null
null
null
null
null
pub struct UnifiedTranslationsNew { pub unified_code: String, pub unified_message: String, pub locale: String, pub translation: String, pub created_at: PrimitiveDateTime, pub last_modified_at: PrimitiveDateTime, }
crates/diesel_models/src/unified_translations.rs
diesel_models
struct_definition
50
rust
UnifiedTranslationsNew
null
null
null
null
null
null
null
null
null
null
null
pub struct PayoutsUpdateInternal { pub amount: Option<MinorUnit>, pub destination_currency: Option<storage_enums::Currency>, pub source_currency: Option<storage_enums::Currency>, pub description: Option<String>, pub recurring: Option<bool>, pub auto_fulfill: Option<bool>, pub return_url: Opt...
crates/diesel_models/src/payouts.rs
diesel_models
struct_definition
206
rust
PayoutsUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
pub async fn route_connector_v1_for_payouts( state: &SessionState, merchant_context: &domain::MerchantContext, business_profile: &domain::Profile, transaction_data: &payouts::PayoutData, routing_data: &mut storage::RoutingData, eligible_connectors: Option<Vec<enums::RoutableConnectors>>, ) -> Ro...
crates/router/src/core/payments.rs
router
function_signature
93
rust
null
null
null
null
route_connector_v1_for_payouts
null
null
null
null
null
null
null
pub trait SchedulerAppState: Send + Sync + Clone { fn get_tenants(&self) -> Vec<id_type::TenantId>; }
crates/scheduler/src/scheduler.rs
scheduler
trait_definition
29
rust
null
null
SchedulerAppState
null
null
null
null
null
null
null
null
null
impl PartialEq for PaymentMetricsBucketIdentifier { fn eq(&self, other: &Self) -> bool { let mut left = DefaultHasher::new(); self.hash(&mut left); let mut right = DefaultHasher::new(); other.hash(&mut right); left.finish() == right.finish() } }
crates/api_models/src/analytics/payments.rs
api_models
impl_block
69
rust
null
PaymentMetricsBucketIdentifier
PartialEq for
impl PartialEq for for PaymentMetricsBucketIdentifier
null
null
null
null
null
null
null
null
pub async fn delete_file_using_file_id( state: &SessionState, file_key: String, merchant_context: &domain::MerchantContext, ) -> CustomResult<(), errors::ApiErrorResponse> { let file_metadata_object = state .store .find_file_metadata_by_merchant_id_file_id( merchant_context.g...
crates/router/src/core/files/helpers.rs
router
function_signature
270
rust
null
null
null
null
delete_file_using_file_id
null
null
null
null
null
null
null
impl std::error::Error for RedisError {}
crates/router_derive/src/lib.rs
router_derive
impl_block
10
rust
null
RedisError
std::error::Error for
impl std::error::Error for for RedisError
null
null
null
null
null
null
null
null
pub struct TsysReturnRequest { #[serde(rename = "deviceID")] device_id: Secret<String>, transaction_key: Secret<String>, transaction_amount: StringMinorUnit, #[serde(rename = "transactionID")] transaction_id: String, }
crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs
hyperswitch_connectors
struct_definition
54
rust
TsysReturnRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct HyperswitchAiDataRequest { pub merchant_id: id_type::MerchantId, pub profile_id: id_type::ProfileId, pub org_id: id_type::OrganizationId, pub query: GetDataMessage, }
crates/hyperswitch_domain_models/src/chat.rs
hyperswitch_domain_models
struct_definition
50
rust
HyperswitchAiDataRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Zsl {}
crates/hyperswitch_connectors/src/connectors/zsl.rs
hyperswitch_connectors
impl_block
9
rust
null
Zsl
api::PaymentSync for
impl api::PaymentSync for for Zsl
null
null
null
null
null
null
null
null
pub async fn construct_payment_router_data_for_sdk_session<'a>( state: &'a SessionState, payment_data: hyperswitch_domain_models::payments::PaymentIntentData<api::Session>, connector_id: &str, merchant_context: &domain::MerchantContext, customer: &'a Option<domain::Customer>, merchant_connector_...
crates/router/src/core/payments/transformers.rs
router
function_signature
1,570
rust
null
null
null
null
construct_payment_router_data_for_sdk_session
null
null
null
null
null
null
null
pub struct NuveiMandateMeta { pub frequency: String, }
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
NuveiMandateMeta
null
null
null
null
null
null
null
null
null
null
null
pub struct FileRetrieveRequest { pub file_id: String, pub dispute_id: Option<String>, }
crates/router/src/types/api/files.rs
router
struct_definition
22
rust
FileRetrieveRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundSyncResponse { status: RefundStatus, transaction_id: String, }
crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
RefundSyncResponse
null
null
null
null
null
null
null
null
null
null
null
impl fmt::Debug for SecretBytesMut { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "SecretBytesMut([REDACTED])") } }
crates/masking/src/bytes.rs
masking
impl_block
49
rust
null
SecretBytesMut
fmt::Debug for
impl fmt::Debug for for SecretBytesMut
null
null
null
null
null
null
null
null
pub async fn create_role( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<role_api::CreateRoleRequest>, ) -> HttpResponse { let flow = Flow::CreateRole; Box::pin(api::server_wrap( flow, state.clone(), &req, json_payload.into_inner(), role...
crates/router/src/routes/user_role.rs
router
function_signature
118
rust
null
null
null
null
create_role
null
null
null
null
null
null
null
pub async fn list_saved_payment_methods_for_customer( state: SessionState, merchant_context: domain::MerchantContext, customer_id: id_type::GlobalCustomerId, ) -> RouterResponse<payment_methods::CustomerPaymentMethodsListResponse> { let customer_payment_methods = list_payment_methods_core(&state...
crates/router/src/core/payment_methods.rs
router
function_signature
98
rust
null
null
null
null
list_saved_payment_methods_for_customer
null
null
null
null
null
null
null
File: crates/euclid_wasm/src/lib.rs Public functions: 29 #![allow(non_upper_case_globals)] mod types; mod utils; use std::{ collections::{HashMap, HashSet}, str::FromStr, sync::OnceLock, }; use api_models::{ enums as api_model_enums, routing::ConnectorSelection, surcharge_decision_configs::Surcha...
crates/euclid_wasm/src/lib.rs
euclid_wasm
full_file
5,337
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs Public functions: 3 Public structs: 35 use common_enums::enums::{self, AttemptStatus}; use common_utils::{ errors::{CustomResult, ParsingError}, ext_traits::ByteSliceExt, request::Method, types::MinorUnit, }; use error_stack:...
crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs#chunk0
hyperswitch_connectors
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct MetadataValue { pub key: String, pub value: String, }
crates/api_models/src/routing.rs
api_models
struct_definition
18
rust
MetadataValue
null
null
null
null
null
null
null
null
null
null
null
pub struct DeutschebankThreeDSInitializeResponseChallengeRequired { acs_url: String, creq: String, }
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
DeutschebankThreeDSInitializeResponseChallengeRequired
null
null
null
null
null
null
null
null
null
null
null
impl FetchDisputes for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
11
rust
null
Worldpayvantiv
FetchDisputes for
impl FetchDisputes for for Worldpayvantiv
null
null
null
null
null
null
null
null
File: crates/router/src/services/api/request.rs pub use common_utils::request::ContentType; pub use masking::{Mask, Maskable};
crates/router/src/services/api/request.rs
router
full_file
28
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Authipay {}
crates/hyperswitch_connectors/src/connectors/authipay.rs
hyperswitch_connectors
impl_block
9
rust
null
Authipay
api::PaymentSync for
impl api::PaymentSync for for Authipay
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/payments/payments--list.mdx # Type: Doc File --- openapi: get /payments/list ---
api-reference/v1/payments/payments--list.mdx
null
doc_file
31
doc
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: crates/router/src/utils/user/blocker_emails.txt # Type: Doc File 020.co.uk 123.com 123box.net 123india.com 123mail.cl 123mail.org 123qwe.co.uk 138mail.com 141.ro 150mail.com 150ml.com 16mail.com 1963chevrolet.com 1963pontiac.com 1netdrive.com 1st-website.com 1stpd.net 2-mail.com 20after4.com 21cn.com 24...
crates/router/src/utils/user/blocker_emails.txt#chunk0
null
doc_chunk
8,189
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_connector( state: SessionState, merchant_id: &id_type::MerchantId, profile_id: Option<id_type::ProfileId>, merchant_connector_id: &id_type::MerchantConnectorAccountId, req: api_models::admin::MerchantConnectorUpdate, ) -> RouterResponse<api_models::admin::MerchantConnectorRespons...
crates/router/src/core/admin.rs
router
function_signature
513
rust
null
null
null
null
update_connector
null
null
null
null
null
null
null
pub async fn refunds_filter_list() {}
crates/openapi/src/routes/refunds.rs
openapi
function_signature
8
rust
null
null
null
null
refunds_filter_list
null
null
null
null
null
null
null
pub async fn from_role_id_in_lineage( state: &SessionState, role_id: &str, merchant_id: &id_type::MerchantId, org_id: &id_type::OrganizationId, profile_id: &id_type::ProfileId, tenant_id: &id_type::TenantId, ) -> CustomResult<Self, errors::StorageError> { if l...
crates/router/src/services/authorization/roles.rs
router
function_signature
165
rust
null
null
null
null
from_role_id_in_lineage
null
null
null
null
null
null
null
.... Processors(BREADPAY), Processors(BLUECODE), Processors(YourNewConnector) ] // Add display name mapping at the bottom let getConnectorNameString = (connectorName: connectorName) => switch connectorName { | BREADPAY => "breadpay" | BLUECODE => "bluecode" | YourNewConnector => "Your New Connecto...
add_connector.md#chunk2
null
doc_chunk
1,064
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Worldpayxml { amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
hyperswitch_connectors
struct_definition
28
rust
Worldpayxml
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/api/verify_connector/stripe.rs use error_stack::ResultExt; use router_env::env; use super::VerifyConnector; use crate::{ connector, core::errors, services, types, types::api::verify_connector::BoxedConnectorIntegrationInterface, }; #[async_trait::async_trait] impl VerifyConnecto...
crates/router/src/types/api/verify_connector/stripe.rs
router
full_file
293
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantId { pub merchant_id: id_type::MerchantId, }
crates/api_models/src/admin.rs
api_models
struct_definition
17
rust
MerchantId
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_payment_method_api() {}
crates/openapi/src/routes/payment_method.rs
openapi
function_signature
9
rust
null
null
null
null
create_payment_method_api
null
null
null
null
null
null
null
pub struct PaystackPSyncResponseData { status: bool, message: String, data: PaystackPSyncData, }
crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
PaystackPSyncResponseData
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> Self { Self(FxHashMap::default()) }
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
function_signature
17
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl Default for NetworkTokenizationBuilder<'_, TokenizeWithCard> { fn default() -> Self { Self::new() } }
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
impl_block
30
rust
null
NetworkTokenizationBuilder
Default for
impl Default for for NetworkTokenizationBuilder
null
null
null
null
null
null
null
null
/// Generates hscan field pattern. Suppose the field is pa_1234_ref_1211 it will generate /// pa_1234_ref_* pub fn generate_hscan_pattern_for_refund(sk: &str) -> String { sk.split('_') .take(3) .chain(["*"]) .collect::<Vec<&str>>() .join("_") }
crates/router/src/utils/db_utils.rs
router
function_signature
86
rust
null
null
null
null
generate_hscan_pattern_for_refund
null
null
null
null
null
null
null
pub fn get_payment_method_type(&self) -> Option<common_enums::PaymentMethod> { self.payment_revenue_recovery_metadata .as_ref() .map(|recovery_metadata| recovery_metadata.payment_method_type) }
crates/diesel_models/src/types.rs
diesel_models
function_signature
49
rust
null
null
null
null
get_payment_method_type
null
null
null
null
null
null
null
File: crates/router/src/types/storage/mandate.rs use async_bb8_diesel::AsyncRunQueryDsl; use common_utils::errors::CustomResult; use diesel::{associations::HasTable, ExpressionMethods, QueryDsl}; pub use diesel_models::mandate::{ Mandate, MandateNew, MandateUpdate, MandateUpdateInternal, SingleUseMandate, }; use d...
crates/router/src/types/storage/mandate.rs
router
full_file
702
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ConnectorSelection { "oneOf": [ { "type": "object", "required": [ "type", "data" ], "properties": { "type": { "type": "string", "enum": [ "priority" ] }, "data": { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
225
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ConnectorSelection" ]
null
null
null
null
impl PaymentVoid for Netcetera {}
crates/hyperswitch_connectors/src/connectors/netcetera.rs
hyperswitch_connectors
impl_block
9
rust
null
Netcetera
PaymentVoid for
impl PaymentVoid for for Netcetera
null
null
null
null
null
null
null
null
pub struct BillwerkCaptureRequest { amount: MinorUnit, }
crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
BillwerkCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn into_inner(self) -> Secret<Vec<u8>, EncryptionStrategy> { self.inner }
crates/common_utils/src/encryption.rs
common_utils
function_signature
22
rust
null
null
null
null
into_inner
null
null
null
null
null
null
null
impl Decision { pub async fn get_decision_based_on_params( state: &SessionState, intent_status: enums::IntentStatus, called_connector: enums::PaymentConnectorTransmission, active_attempt_id: Option<id_type::GlobalAttemptId>, revenue_recovery_data: &storage::revenue_recovery::...
crates/router/src/core/revenue_recovery/types.rs
router
impl_block
497
rust
null
Decision
null
impl Decision
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Dlocal {}
crates/hyperswitch_connectors/src/connectors/dlocal.rs
hyperswitch_connectors
impl_block
9
rust
null
Dlocal
api::PaymentCapture for
impl api::PaymentCapture for for Dlocal
null
null
null
null
null
null
null
null
pub struct Instruction { #[serde(rename = "standingInstruction.mode")] mode: InstructionMode, #[serde(rename = "standingInstruction.type")] transaction_type: InstructionType, #[serde(rename = "standingInstruction.source")] source: InstructionSource, create_registration: Option<bool>, }
crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
hyperswitch_connectors
struct_definition
61
rust
Instruction
null
null
null
null
null
null
null
null
null
null
null
impl PaymentToken for Payone {}
crates/hyperswitch_connectors/src/connectors/payone.rs
hyperswitch_connectors
impl_block
7
rust
null
Payone
PaymentToken for
impl PaymentToken for for Payone
null
null
null
null
null
null
null
null
pub struct CnpOnlineResponse { #[serde(rename = "@version")] pub version: String, #[serde(rename = "@response")] pub response_code: String, #[serde(rename = "@message")] pub message: String, pub authorization_response: Option<PaymentResponse>, pub sale_response: Option<PaymentResponse>, ...
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
116
rust
CnpOnlineResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundResponse { return_response: TsysResponseTypes, }
crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/masking/src/diesel.rs //! Diesel-related. use diesel::{ backend::Backend, deserialize::{self, FromSql, Queryable}, expression::AsExpression, internal::derives::as_expression::Bound, serialize::{self, Output, ToSql}, sql_types, }; use crate::{Secret, Strategy, StrongSecret, Zeroiz...
crates/masking/src/diesel.rs
masking
full_file
1,029
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Rapyd {}
crates/hyperswitch_connectors/src/connectors/rapyd.rs
hyperswitch_connectors
impl_block
10
rust
null
Rapyd
api::PaymentCapture for
impl api::PaymentCapture for for Rapyd
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.DeviceChannel { "type": "string", "description": "Device Channel indicating whether request is coming from App or Browser", "enum": [ "APP", "BRW" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
53
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "DeviceChannel" ]
null
null
null
null
pub fn mk_add_card_response_hs( card: api::CardDetail, card_reference: String, req: api::PaymentMethodCreate, merchant_id: &id_type::MerchantId, ) -> api::PaymentMethodResponse { todo!() }
crates/router/src/core/payment_methods/transformers.rs
router
function_signature
55
rust
null
null
null
null
mk_add_card_response_hs
null
null
null
null
null
null
null
pub struct MobilePayRedirection {}
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
7
rust
MobilePayRedirection
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Nmi {}
crates/hyperswitch_connectors/src/connectors/nmi.rs
hyperswitch_connectors
impl_block
9
rust
null
Nmi
api::Refund for
impl api::Refund for for Nmi
null
null
null
null
null
null
null
null
impl api::MandateSetup for Razorpay {}
crates/hyperswitch_connectors/src/connectors/razorpay.rs
hyperswitch_connectors
impl_block
11
rust
null
Razorpay
api::MandateSetup for
impl api::MandateSetup for for Razorpay
null
null
null
null
null
null
null
null
pub fn set_order_tax_amount(&mut self, order_tax_amount: Option<MinorUnit>) { self.order_tax_amount = order_tax_amount; }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
32
rust
null
null
null
null
set_order_tax_amount
null
null
null
null
null
null
null
pub struct Avs { code: Option<String>, code_raw: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
Avs
null
null
null
null
null
null
null
null
null
null
null
pub struct AdyenStoredCardIdentification { stored_payment_method_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs
hyperswitch_connectors
struct_definition
18
rust
AdyenStoredCardIdentification
null
null
null
null
null
null
null
null
null
null
null
pub struct BillTo { first_name: Secret<String>, last_name: Secret<String>, address1: Secret<String>, locality: String, administrative_area: Secret<String>, postal_code: Secret<String>, country: enums::CountryAlpha2, email: pii::Email, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
62
rust
BillTo
null
null
null
null
null
null
null
null
null
null
null
pub struct ProfileUpdate { /// The name of profile #[schema(max_length = 64)] pub profile_name: Option<String>, /// The URL to redirect after the completion of the operation #[schema(value_type = Option<String>, max_length = 255, example = "https://www.example.com/success")] pub return_url: Opt...
crates/api_models/src/admin.rs
api_models
struct_definition
1,934
rust
ProfileUpdate
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodListResponse { /// Redirect URL of the merchant #[schema(example = "https://www.google.com")] pub redirect_url: Option<String>, /// currency of the Payment to be done #[schema(example = "USD", value_type = Currency)] pub currency: Option<api_enums::Currency>, /// In...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
330
rust
PaymentMethodListResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct CommonMandateReference { pub payments: Option<PaymentsTokenReference>, pub payouts: Option<PayoutsMandateReference>, }
crates/hyperswitch_domain_models/src/mandates.rs
hyperswitch_domain_models
struct_definition
32
rust
CommonMandateReference
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Placetopay {}
crates/hyperswitch_connectors/src/connectors/placetopay.rs
hyperswitch_connectors
impl_block
11
rust
null
Placetopay
api::PaymentSession for
impl api::PaymentSession for for Placetopay
null
null
null
null
null
null
null
null
pub struct PurchaseUnitItem { pub reference_id: Option<String>, pub invoice_id: Option<String>, pub payments: PaymentsCollection, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
PurchaseUnitItem
null
null
null
null
null
null
null
null
null
null
null
pub async fn construct_profile_id_and_get_mca<'a, F, D>( state: &'a SessionState, merchant_context: &domain::MerchantContext, payment_data: &D, connector_name: &str, merchant_connector_id: Option<&id_type::MerchantConnectorAccountId>, _should_validate: bool, ) -> RouterResult<helpers::MerchantCo...
crates/router/src/core/payments.rs
router
function_signature
267
rust
null
null
null
null
construct_profile_id_and_get_mca
null
null
null
null
null
null
null
pub struct AuthenticationEligibilityResponse { /// The unique identifier for this authentication. #[schema(value_type = String, example = "auth_mbabizu24mvu3mela5njyhpit4")] pub authentication_id: id_type::AuthenticationId, /// The URL to which the user should be redirected after authentication. #[s...
crates/api_models/src/authentication.rs
api_models
struct_definition
440
rust
AuthenticationEligibilityResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct NexixpayPaymentsCancelRequest { description: Option<String>, amount: StringMinorUnit, currency: Currency, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
NexixpayPaymentsCancelRequest
null
null
null
null
null
null
null
null
null
null
null
impl Shift4 { pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/shift4.rs
hyperswitch_connectors
impl_block
33
rust
null
Shift4
null
impl Shift4
null
null
null
null
null
null
null
null
pub struct ApiLogsResult { pub merchant_id: common_utils::id_type::MerchantId, pub payment_id: Option<common_utils::id_type::PaymentId>, pub refund_id: Option<String>, pub payment_method_id: Option<String>, pub payment_method: Option<String>, pub payment_method_type: Option<String>, pub cust...
crates/analytics/src/api_event/events.rs
analytics
struct_definition
242
rust
ApiLogsResult
null
null
null
null
null
null
null
null
null
null
null
impl<W, F> FormattingLayer<W, F> where W: for<'a> MakeWriter<'a> + 'static, F: Formatter + Clone, { /// Constructor of `FormattingLayer`. /// /// A `name` will be attached to all records during formatting. /// A `dst_writer` to forward all records. /// /// ## Example /// ```rust ...
crates/router_env/src/logger/formatter.rs
router_env
impl_block
1,992
rust
null
FormattingLayer
null
impl FormattingLayer
null
null
null
null
null
null
null
null
pub struct AdyenBankAccountDetails { account_holder: AdyenAccountHolder, account_identification: AdyenBankAccountIdentification, }
crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs
hyperswitch_connectors
struct_definition
29
rust
AdyenBankAccountDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentsIncrementalAuthorizationData { pub total_amount: i64, pub additional_amount: i64, pub currency: storage_enums::Currency, pub reason: Option<String>, pub connector_transaction_id: String, pub connector_meta: Option<serde_json::Value>, }
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
64
rust
PaymentsIncrementalAuthorizationData
null
null
null
null
null
null
null
null
null
null
null
pub async fn setup_intents_create( state: web::Data<routes::AppState>, qs_config: web::Data<serde_qs::Config>, req: HttpRequest, form_payload: web::Bytes, ) -> HttpResponse { let payload: types::StripeSetupIntentRequest = match qs_config.deserialize_bytes(&form_payload) { Ok(p) => p, ...
crates/router/src/compatibility/stripe/setup_intents.rs
router
function_signature
433
rust
null
null
null
null
setup_intents_create
null
null
null
null
null
null
null
File: crates/router/src/db/kafka_store.rs Public functions: 1 Public structs: 2 use std::{collections::HashSet, sync::Arc}; use ::payment_methods::state::PaymentMethodsStorageInterface; use common_enums::enums::MerchantStorageScheme; use common_utils::{ errors::CustomResult, id_type, types::{keymanager:...
crates/router/src/db/kafka_store.rs#chunk0
router
chunk
8,188
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn profile_retrieve() {}
crates/openapi/src/routes/profile.rs
openapi
function_signature
8
rust
null
null
null
null
profile_retrieve
null
null
null
null
null
null
null
pub struct PollResponse { /// The poll id pub poll_id: String, /// Status of the poll pub status: PollStatus, }
crates/api_models/src/poll.rs
api_models
struct_definition
33
rust
PollResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs Public functions: 4 Public structs: 17 use std::collections::HashMap; use common_utils::{pii::Email, types::SemanticVersion}; use hyperswitch_domain_models::router_request_types::{ authentication::MessageCategory, BrowserInformation...
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs#chunk0
hyperswitch_connectors
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/payment_intents/metrics/payment_processed_amount.rs use std::collections::HashSet; use api_models::analytics::{ payment_intents::{ PaymentIntentDimensions, PaymentIntentFilters, PaymentIntentMetricsBucketIdentifier, }, Granularity, TimeRange, }; use common_utils::errors:...
crates/analytics/src/payment_intents/metrics/payment_processed_amount.rs
analytics
full_file
1,049
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn connector_create( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::MerchantId>, json_payload: web::Json<admin::MerchantConnectorCreate>, ) -> HttpResponse { let flow = Flow::MerchantConnectorsCreate; let payload = json_payload.into_inner(); le...
crates/router/src/routes/admin.rs
router
function_signature
247
rust
null
null
null
null
connector_create
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Worldline {}
crates/hyperswitch_connectors/src/connectors/worldline.rs
hyperswitch_connectors
impl_block
9
rust
null
Worldline
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Worldline
null
null
null
null
null
null
null
null
pub async fn get_aggregates_for_refunds( state: SessionState, merchant_context: domain::MerchantContext, profile_id_list: Option<Vec<common_utils::id_type::ProfileId>>, time_range: common_utils::types::TimeRange, ) -> RouterResponse<api_models::refunds::RefundAggregateResponse> { let db = state.stor...
crates/router/src/core/refunds.rs
router
function_signature
249
rust
null
null
null
null
get_aggregates_for_refunds
null
null
null
null
null
null
null
pub struct FiservPaymentMethod { provider: FiservWallet, #[serde(rename = "type")] wallet_type: FiservWalletType, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
FiservPaymentMethod
null
null
null
null
null
null
null
null
null
null
null
pub struct StripePaymentMethodData { #[serde(rename = "type")] pub stype: StripePaymentMethodType, pub billing_details: Option<StripeBillingDetails>, #[serde(flatten)] pub payment_method_details: Option<StripePaymentMethodDetails>, // enum pub metadata: Option<SecretSerdeValue>, }
crates/router/src/compatibility/stripe/payment_intents/types.rs
router
struct_definition
70
rust
StripePaymentMethodData
null
null
null
null
null
null
null
null
null
null
null
macro_rules! lower_metadata { ($key:ident, $value:ident) => { match $value { ast::ValueType::MetadataVariant(md) => { Ok(vec![dir::DirValue::$key(types::MetadataValue { key: md.key, value: md.value, })]) } ...
crates/euclid/src/frontend/ast/lowering.rs
euclid
macro
116
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
impl PaymentId { /// Get the hash key to be stored in redis pub fn get_hash_key_for_kv_store(&self) -> String { format!("pi_{}", self.0 .0 .0) } // This function should be removed once we have a better way to handle mandatory payment id in other flows /// Get payment id in the format of irr...
crates/common_utils/src/id_type/payment.rs
common_utils
impl_block
427
rust
null
PaymentId
null
impl PaymentId
null
null
null
null
null
null
null
null
pub async fn skip_locker_call_and_migrate_payment_method( state: &state::PaymentMethodsState, req: &pm_api::PaymentMethodMigrate, merchant_id: id_type::MerchantId, merchant_context: &merchant_context::MerchantContext, card: pm_api::CardDetailFromLocker, should_require_connector_mandate_details: ...
crates/payment_methods/src/core/migration/payment_methods.rs
payment_methods
function_signature
1,360
rust
null
null
null
null
skip_locker_call_and_migrate_payment_method
null
null
null
null
null
null
null