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 KafkaPaymentIntentEvent<'a> { pub payment_id: &'a id_type::GlobalPaymentId, pub merchant_id: &'a id_type::MerchantId, pub status: storage_enums::IntentStatus, pub amount: common_types::MinorUnit, pub currency: storage_enums::Currency, pub amount_captured: Option<common_types::MinorUni...
crates/router/src/services/kafka/payment_intent_event.rs
router
struct_definition
912
rust
KafkaPaymentIntentEvent
null
null
null
null
null
null
null
null
null
null
null
pub struct DwollaFundingSourceRequest { routing_number: Secret<String>, account_number: Secret<String>, #[serde(rename = "type")] account_type: common_enums::BankType, name: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
hyperswitch_connectors
struct_definition
49
rust
DwollaFundingSourceRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Nmi {}
crates/hyperswitch_connectors/src/connectors/nmi.rs
hyperswitch_connectors
impl_block
9
rust
null
Nmi
api::PaymentToken for
impl api::PaymentToken for for Nmi
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.Connector { "type": "string", "enum": [ "authipay", "adyenplatform", "stripe_billing_test", "phonypay", "fauxpay", "pretendpay", "stripe_test", "adyen_test", "checkout_test", "paypal_test", "aci", "adyen", "affirm", "airw...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
720
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "Connector" ]
null
null
null
null
pub fn get_order_tax_amount(&self) -> Option<MinorUnit> { self.order_tax_amount }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
24
rust
null
null
null
null
get_order_tax_amount
null
null
null
null
null
null
null
File: crates/analytics/src/refunds/metrics/refund_count.rs use std::collections::HashSet; use api_models::analytics::{ refunds::{RefundDimensions, RefundFilters, RefundMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use error_stack::ResultExt; use time::Primitiv...
crates/analytics/src/refunds/metrics/refund_count.rs
analytics
full_file
865
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentIntentFilterRow { pub status: Option<DBEnumWrapper<IntentStatus>>, pub currency: Option<DBEnumWrapper<Currency>>, pub profile_id: Option<String>, pub connector: Option<String>, pub authentication_type: Option<DBEnumWrapper<AuthenticationType>>, pub payment_method: Option<String...
crates/analytics/src/payment_intents/filters.rs
analytics
struct_definition
130
rust
PaymentIntentFilterRow
null
null
null
null
null
null
null
null
null
null
null
impl SecretsHandler for Database { async fn convert_to_raw_secret( value: SecretStateContainer<Self, SecuredSecret>, secret_management_client: &dyn SecretManagementInterface, ) -> CustomResult<SecretStateContainer<Self, RawSecret>, SecretsManagementError> { let secured_db_config = value....
crates/drainer/src/secrets_transformers.rs
drainer
impl_block
117
rust
null
Database
SecretsHandler for
impl SecretsHandler for for Database
null
null
null
null
null
null
null
null
pub struct JpmorganValidationErrors { pub code: Option<String>, pub message: Option<String>, pub entity: Option<String>, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
JpmorganValidationErrors
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/routes/metrics/bg_metrics_collector.rs Public functions: 1 use storage_impl::redis::cache; const DEFAULT_BG_METRICS_COLLECTION_INTERVAL_IN_SECS: u16 = 15; pub fn spawn_metrics_collector(metrics_collection_interval_in_secs: Option<u16>) { let metrics_collection_interval = metrics_collecti...
crates/router/src/routes/metrics/bg_metrics_collector.rs
router
full_file
260
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn network_tokenize_and_vault_the_pmd( state: &SessionState, payment_method_data: &domain::PaymentMethodVaultingData, merchant_context: &domain::MerchantContext, network_tokenization: Option<common_types::payment_methods::NetworkTokenization>, network_tokenization_enabled_for_profile: bool...
crates/router/src/core/payment_methods.rs
router
function_signature
561
rust
null
null
null
null
network_tokenize_and_vault_the_pmd
null
null
null
null
null
null
null
pub struct PaymentDetails { pub pan: cards::CardNumber, pub digital_card_id: Option<String>, pub payment_data_type: Option<String>, pub encrypted_src_card_details: Option<String>, pub card_expiry_month: Secret<String>, pub card_expiry_year: Secret<String>, pub cardholder_name: Option<Secret<...
crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
hyperswitch_domain_models
struct_definition
109
rust
PaymentDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct ClientReferenceInformation { code: Option<String>, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
ClientReferenceInformation
null
null
null
null
null
null
null
null
null
null
null
pub fn update_target_count(&mut self, new: &Self) { self.target_count = new.target_count; }
crates/api_models/src/routing.rs
api_models
function_signature
26
rust
null
null
null
null
update_target_count
null
null
null
null
null
null
null
impl AuthenticationType { pub fn get_merchant_id(&self) -> Option<&id_type::MerchantId> { match self { Self::ApiKey { merchant_id, key_id: _, } | Self::AdminApiAuthWithMerchantId { merchant_id } | Self::MerchantId { merchant_id ...
crates/router/src/services/authentication.rs
router
impl_block
191
rust
null
AuthenticationType
null
impl AuthenticationType
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/customers.rs Public functions: 10 Public structs: 1 use common_utils::id_type; use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods}; use super::generics; #[cfg(feature = "v1")] use crate::schema::customers::dsl; #[cfg(feature = "v2")] use crate::schema_...
crates/diesel_models/src/query/customers.rs
diesel_models
full_file
1,274
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn set_order_amount(&mut self, order_amount: MinorUnit) { self.order_amount = order_amount; }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
26
rust
null
null
null
null
set_order_amount
null
null
null
null
null
null
null
pub struct UpdateNexixpayConnectorMetaData { pub three_d_s_auth_result: Option<ThreeDSAuthResult>, pub three_d_s_auth_response: Option<Secret<String>>, pub authorization_operation_id: Option<String>, pub capture_operation_id: Option<String>, pub cancel_operation_id: Option<String>, pub psync_flo...
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
98
rust
UpdateNexixpayConnectorMetaData
null
null
null
null
null
null
null
null
null
null
null
pub struct GlobalpayRefreshTokenRequest { pub app_id: Secret<String>, pub nonce: Secret<String>, pub secret: Secret<String>, pub grant_type: String, }
crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs
hyperswitch_connectors
struct_definition
38
rust
GlobalpayRefreshTokenRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct WorkflowRunner;
crates/router/src/bin/scheduler.rs
router
struct_definition
5
rust
WorkflowRunner
null
null
null
null
null
null
null
null
null
null
null
impl<F> PaymentAttemptRecordData<F> where F: Clone, { pub fn get_updated_feature_metadata( &self, ) -> CustomResult<Option<FeatureMetadata>, errors::api_error_response::ApiErrorResponse> { let payment_intent_feature_metadata = self.payment_intent.get_feature_metadata(); let revenue_r...
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
impl_block
987
rust
null
PaymentAttemptRecordData
null
impl PaymentAttemptRecordData
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Ebanx { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&EBANX_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { None } fn get_supported_webhook_flows(&self) -> Option<&'st...
crates/hyperswitch_connectors/src/connectors/ebanx.rs
hyperswitch_connectors
impl_block
94
rust
null
Ebanx
ConnectorSpecifications for
impl ConnectorSpecifications for for Ebanx
null
null
null
null
null
null
null
null
pub struct ExternalVaultDeleteFlow;
crates/hyperswitch_domain_models/src/router_flow_types/vault.rs
hyperswitch_domain_models
struct_definition
7
rust
ExternalVaultDeleteFlow
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Shift4 {}
crates/hyperswitch_connectors/src/connectors/shift4.rs
hyperswitch_connectors
impl_block
10
rust
null
Shift4
api::RefundSync for
impl api::RefundSync for for Shift4
null
null
null
null
null
null
null
null
pub struct DetailsType { pub loc: Vec<String>, #[serde(rename = "type")] pub error_type: String, }
crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
DetailsType
null
null
null
null
null
null
null
null
null
null
null
pub fn number_comparison_array_value(input: &str) -> ParseResult<&str, ast::ValueType> { let many_with_comma = multi::many0(sequence::preceded( skip_ws(complete::tag(",")), skip_ws(number_comparison), )); let full_sequence = sequence::pair(skip_ws(number_comparison), many_with_comma); ...
crates/euclid/src/frontend/ast/parser.rs
euclid
function_signature
180
rust
null
null
null
null
number_comparison_array_value
null
null
null
null
null
null
null
pub struct PaymeErrorResponse { pub status_code: u16, pub status_error_details: String, pub status_additional_info: serde_json::Value, pub status_error_code: u32, }
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
45
rust
PaymeErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct DummyConnectorRefundRequest { pub amount: i64, pub payment_id: Option<common_utils::id_type::PaymentId>, }
crates/router/src/routes/dummy_connector/types.rs
router
struct_definition
33
rust
DummyConnectorRefundRequest
null
null
null
null
null
null
null
null
null
null
null
impl AuthenticationNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Authentication> { generics::generic_insert(conn, self).await } }
crates/diesel_models/src/query/authentication.rs
diesel_models
impl_block
40
rust
null
AuthenticationNew
null
impl AuthenticationNew
null
null
null
null
null
null
null
null
impl ConnectorCommon for Zen { fn id(&self) -> &'static str { "zen" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { mime::APPLICATION_JSON.essence_str() } fn base_url<'a>(&self, conn...
crates/hyperswitch_connectors/src/connectors/zen.rs
hyperswitch_connectors
impl_block
421
rust
null
Zen
ConnectorCommon for
impl ConnectorCommon for for Zen
null
null
null
null
null
null
null
null
pub struct Recurly { // amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/recurly.rs
hyperswitch_connectors
struct_definition
29
rust
Recurly
null
null
null
null
null
null
null
null
null
null
null
pub struct GlobalPayPaymentMethodsRequest { pub reference: String, #[serde(skip_serializing_if = "Option::is_none")] pub usage_mode: Option<UsageMode>, #[serde(skip_serializing_if = "Option::is_none")] pub card: Option<Card>, }
crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs
hyperswitch_connectors
struct_definition
60
rust
GlobalPayPaymentMethodsRequest
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/payouts/payouts--fulfill.mdx # Type: Doc File --- openapi: post /payouts/{payout_id}/fulfill ---
api-reference/v1/payouts/payouts--fulfill.mdx
null
doc_file
42
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ValuedComparison { pub values: Vec<EuclidValue>, pub logic: ValuedComparisonLogic, pub metadata: Metadata, }
crates/euclid/src/frontend/vir.rs
euclid
struct_definition
32
rust
ValuedComparison
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_by_merchant_id_payment_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, payment_id: &common_utils::id_type::PaymentId, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as HasTable>::Table, _, ...
crates/diesel_models/src/query/dispute.rs
diesel_models
function_signature
145
rust
null
null
null
null
find_by_merchant_id_payment_id
null
null
null
null
null
null
null
pub struct TaxjarPaymentsResponse { tax: Tax, }
crates/hyperswitch_connectors/src/connectors/taxjar/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
TaxjarPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorCustomer for Facilitapay {}
crates/hyperswitch_connectors/src/connectors/facilitapay.rs
hyperswitch_connectors
impl_block
11
rust
null
Facilitapay
api::ConnectorCustomer for
impl api::ConnectorCustomer for for Facilitapay
null
null
null
null
null
null
null
null
pub struct BamboraapacErrorResponse { pub declined_code: Option<String>, pub declined_message: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
BamboraapacErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Wellsfargo { fn id(&self) -> &'static str { "wellsfargo" } fn common_get_content_type(&self) -> &'static str { "application/json;charset=utf-8" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.wellsfargo.base_url.as_ref()...
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs
hyperswitch_connectors
impl_block
1,040
rust
null
Wellsfargo
ConnectorCommon for
impl ConnectorCommon for for Wellsfargo
null
null
null
null
null
null
null
null
pub async fn refresh_pm_filters_cache( state: &SessionState, key: &str, graph: cgraph::ConstraintGraph<dir::DirValue>, ) -> Arc<hyperswitch_constraint_graph::ConstraintGraph<dir::DirValue>> { let pm_filter_graph = Arc::new(graph); PM_FILTERS_CGRAPH_CACHE .push( CacheKey { ...
crates/router/src/core/payment_methods/utils.rs
router
function_signature
119
rust
null
null
null
null
refresh_pm_filters_cache
null
null
null
null
null
null
null
pub fn generate_signature( &self, auth: cybersource::CybersourceAuthType, host: String, resource: &str, payload: &String, date: OffsetDateTime, http_method: Method, ) -> CustomResult<String, errors::ConnectorError> { let cybersource::CybersourceAuthTyp...
crates/hyperswitch_connectors/src/connectors/cybersource.rs
hyperswitch_connectors
function_signature
478
rust
null
null
null
null
generate_signature
null
null
null
null
null
null
null
impl api::PaymentCapture for Nmi {}
crates/hyperswitch_connectors/src/connectors/nmi.rs
hyperswitch_connectors
impl_block
9
rust
null
Nmi
api::PaymentCapture for
impl api::PaymentCapture for for Nmi
null
null
null
null
null
null
null
null
pub async fn update_by_customer_id_merchant_id( conn: &PgPooledConn, customer_id: id_type::CustomerId, merchant_id: id_type::MerchantId, customer: CustomerUpdateInternal, ) -> StorageResult<Self> { match generics::generic_update_by_id::<<Self as HasTable>::Table, _, _, _>( ...
crates/diesel_models/src/query/customers.rs
diesel_models
function_signature
176
rust
null
null
null
null
update_by_customer_id_merchant_id
null
null
null
null
null
null
null
/// Getter for the `module_name` field pub fn get_module_name(&self) -> Option<Module> { self.module_name }
crates/test_utils/src/newman_runner.rs
test_utils
function_signature
32
rust
null
null
null
null
get_module_name
null
null
null
null
null
null
null
pub async fn payouts_list_profile() {}
crates/openapi/src/routes/payouts.rs
openapi
function_signature
8
rust
null
null
null
null
payouts_list_profile
null
null
null
null
null
null
null
impl<T, I> Serialize for Secret<T, I> where T: SerializableSecret + Serialize + Sized, I: Strategy<T>, { fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer, { pii_serializer::pii_serialize(self, serializer) } }
crates/masking/src/serde.rs
masking
impl_block
75
rust
null
Secret
Serialize for
impl Serialize for for Secret
null
null
null
null
null
null
null
null
pub struct Payload { amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
struct_definition
26
rust
Payload
null
null
null
null
null
null
null
null
null
null
null
pub struct IndomaretVoucherData {}
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
9
rust
IndomaretVoucherData
null
null
null
null
null
null
null
null
null
null
null
impl Configs { pub fn server(config: AppState) -> Scope { web::scope("/configs") .app_data(web::Data::new(config)) .service(web::resource("/").route(web::post().to(config_key_create))) .service( web::resource("/{key}") .route(web::get()...
crates/router/src/routes/app.rs
router
impl_block
104
rust
null
Configs
null
impl Configs
null
null
null
null
null
null
null
null
pub struct ConnectorAgnosticMitChoice { pub enabled: bool, }
crates/api_models/src/admin.rs
api_models
struct_definition
17
rust
ConnectorAgnosticMitChoice
null
null
null
null
null
null
null
null
null
null
null
pub struct PreProcessing;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
5
rust
PreProcessing
null
null
null
null
null
null
null
null
null
null
null
pub async fn start_web_server( state: routes::AppState, service: String, ) -> errors::ApplicationResult<Server> { let server = state .conf .scheduler .as_ref() .ok_or(ApplicationError::InvalidConfigurationValueError( "Scheduler server is invalidly configured".into...
crates/router/src/bin/scheduler.rs
router
function_signature
167
rust
null
null
null
null
start_web_server
null
null
null
null
null
null
null
pub struct RecurlyInvoiceTransactionsStatus { pub status: String, }
crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
RecurlyInvoiceTransactionsStatus
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::PaymentsList; let payload = payload.into_inner(); Box::pin(api::server_wrap( flow, state, &req, payload, |state, auth: auth::AuthenticationData, req, _| { let merchant_context = domain::MerchantContext::NormalMerchant(Box:...
crates/router/src/routes/payments.rs
router
impl_block
162
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct PaymentIntents;
crates/router/src/compatibility/stripe/app.rs
router
struct_definition
6
rust
PaymentIntents
null
null
null
null
null
null
null
null
null
null
null
pub struct FiuuWebhookStatus { pub capture_method: Option<CaptureMethod>, pub status: FiuuPaymentWebhookStatus, }
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
FiuuWebhookStatus
null
null
null
null
null
null
null
null
null
null
null
for key in DirKeyKind::iter() { if matches!(key, DirKeyKind::Connector) { continue; } let json_str = if let DirKeyKind::MetaData = key { r#""metadata""#.to_string() } else { serde_json::to_string(&key).expect("JSON ...
crates/euclid/src/frontend/dir.rs#chunk1
euclid
chunk
672
null
null
null
null
null
null
null
null
null
null
null
null
null
backend_input, eligible_connectors, profile_id, &api_enums::TransactionType::from(transaction_data), ) .await } pub async fn perform_fallback_routing( state: &SessionState, key_store: &domain::MerchantKeyStore, transaction_data: &routing::TransactionData<'_>, eli...
crates/router/src/core/payments/routing.rs#chunk1
router
chunk
8,187
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalSyncBatchResponse { pub payout_batch_id: Option<String>, pub sender_batch_id: Option<String>, pub batch_status: PaypalFulfillStatus, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
PaypalSyncBatchResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn get_resolved_relation(prev_relation: Self, curr_relation: Self) -> Self { if prev_relation != curr_relation { Self::Contradiction } else { curr_relation } }
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
function_signature
46
rust
null
null
null
null
get_resolved_relation
null
null
null
null
null
null
null
pub struct Program<O> { pub default_selection: O, #[schema(value_type=RuleConnectorSelection)] pub rules: Vec<Rule<O>>, #[schema(value_type=HashMap<String, serde_json::Value>)] pub metadata: Metadata, }
crates/euclid/src/frontend/ast.rs
euclid
struct_definition
54
rust
Program
null
null
null
null
null
null
null
null
null
null
null
pub async fn payouts_list_by_filter() {}
crates/openapi/src/routes/payouts.rs
openapi
function_signature
9
rust
null
null
null
null
payouts_list_by_filter
null
null
null
null
null
null
null
pub struct PaymentStatus;
crates/router/src/core/payments/operations/payment_status.rs
router
struct_definition
5
rust
PaymentStatus
null
null
null
null
null
null
null
null
null
null
null
pub fn check_presence(&self, value: &EuclidValue) -> bool { let key = value.get_key(); match key.key_type() { types::DataType::MetadataValue => self.atomic_values.contains(value), types::DataType::StrValue => self.atomic_values.contains(value), types::DataType::EnumV...
crates/euclid/src/backend/vir_interpreter/types.rs
euclid
function_signature
275
rust
null
null
null
null
check_presence
null
null
null
null
null
null
null
File: crates/diesel_models/src/dynamic_routing_stats.rs Public structs: 3 use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable}; use crate::schema::dynamic_routing_stats; #[derive(Clone, Debug, Eq, Insertable, PartialEq)] #[diesel(table_name = dynamic_routing_stats)] pub struct DynamicRoutingSt...
crates/diesel_models/src/dynamic_routing_stats.rs
diesel_models
full_file
709
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Display for CustomJsonError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.write_str( serde_json::to_string(&serde_json::json!({ "error": { "error_type": "invalid_request", "message": s...
crates/router/src/utils.rs
router
impl_block
108
rust
null
CustomJsonError
Display for
impl Display for for CustomJsonError
null
null
null
null
null
null
null
null
pub fn perform_integrity_check<F>( mut router_data: RouterData<F, types::RefundsData, types::RefundsResponseData>, ) -> RouterData<F, types::RefundsData, types::RefundsResponseData> where F: Debug + Clone + 'static, { // Initiating Integrity check let integrity_result = check_refund_integrity(&router_da...
crates/router/src/core/refunds_v2.rs
router
function_signature
104
rust
null
null
null
null
perform_integrity_check
null
null
null
null
null
null
null
pub async fn routing_unlink_config( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::ProfileId>, transaction_type: &enums::TransactionType, ) -> impl Responder { let flow = Flow::RoutingUnlinkConfig; let path = path.into_inner(); Box::pin(oss_api::server_w...
crates/router/src/routes/routing.rs
router
function_signature
301
rust
null
null
null
null
routing_unlink_config
null
null
null
null
null
null
null
pub struct StripebillingErrorResponse { pub status_code: u16, pub code: String, pub message: String, pub reason: Option<String>, }
crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
StripebillingErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct AirwallexAuthType { pub x_api_key: Secret<String>, pub x_client_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
AirwallexAuthType
null
null
null
null
null
null
null
null
null
null
null
pub struct InitPayment;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
5
rust
InitPayment
null
null
null
null
null
null
null
null
null
null
null
pub struct MandateRevokeRequestData { pub mandate_id: String, pub connector_mandate_id: Option<String>, }
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
28
rust
MandateRevokeRequestData
null
null
null
null
null
null
null
null
null
null
null
pub struct FlexitiPaymentsResponse { redirection_url: url::Url, online_order_id: String, }
crates/hyperswitch_connectors/src/connectors/flexiti/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
FlexitiPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct DlocalPaymentsCancelResponse { status: DlocalPaymentStatus, order_id: String, }
crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
DlocalPaymentsCancelResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct SCAResult { pub version: String, pub directory_server_trans_id: String, }
crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
SCAResult
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_surcharge_decision_manager_config( state: web::Data<AppState>, req: HttpRequest, ) -> impl Responder { let flow = Flow::DecisionManagerRetrieveConfig; Box::pin(oss_api::server_wrap( flow, state, &req, (), |state, auth: auth::AuthenticationDat...
crates/router/src/routes/routing.rs
router
function_signature
245
rust
null
null
null
null
retrieve_surcharge_decision_manager_config
null
null
null
null
null
null
null
pub struct FacilitapayCardDetails { #[serde(rename = "card_number")] pub number: cards::CardNumber, #[serde(rename = "card_expiration_date")] pub expiry_date: Secret<String>, // Format: "MM/YYYY" #[serde(rename = "card_security_code")] pub cvc: Secret<String>, #[serde(rename = "card_brand")]...
crates/hyperswitch_connectors/src/connectors/facilitapay/requests.rs
hyperswitch_connectors
struct_definition
94
rust
FacilitapayCardDetails
null
null
null
null
null
null
null
null
null
null
null
File: crates/test_utils/tests/connectors/bluesnap_wh_ui.rs use thirtyfour::{prelude::*, WebDriver}; use crate::{selenium::*, tester}; struct BluesnapSeleniumTest; impl SeleniumTest for BluesnapSeleniumTest { fn get_connector_name(&self) -> String { "bluesnap".to_string() } } async fn should_make_we...
crates/test_utils/tests/connectors/bluesnap_wh_ui.rs
test_utils
full_file
204
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/payment_methods.rs Public functions: 14 Public structs: 7 #[cfg(feature = "v2")] use api_models::payment_methods::PaymentMethodsData; use api_models::{customers, payment_methods, payments}; // specific imports because of using the macro use common_enums::enums::MerchantStor...
crates/hyperswitch_domain_models/src/payment_methods.rs#chunk0
hyperswitch_domain_models
chunk
8,187
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn set_card_details( self, card_from_locker: &'a api_models::payment_methods::Card, optional_card_info: Option<diesel_models::CardInfo>, card_cvc: Option<Secret<String>>, ) -> NetworkTokenizationBuilder<'a, PmAssigned> { let card = domain::CardDetail { card_nu...
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
function_signature
414
rust
null
null
null
null
set_card_details
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/organization.rs Public functions: 3 use common_utils::id_type; use diesel::{associations::HasTable, ExpressionMethods}; #[cfg(feature = "v1")] use crate::schema::organization::dsl::org_id as dsl_identifier; #[cfg(feature = "v2")] use crate::schema_v2::organization::dsl::id as dsl...
crates/diesel_models/src/query/organization.rs
diesel_models
full_file
324
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/compatibility/stripe/payment_intents.rs Public functions: 8 pub mod types; use actix_web::{web, HttpRequest, HttpResponse}; use api_models::payments as payment_types; #[cfg(feature = "v1")] use error_stack::report; #[cfg(feature = "v1")] use router_env::Tag; use router_env::{instrument, traci...
crates/router/src/compatibility/stripe/payment_intents.rs
router
full_file
4,320
null
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/merchant-connector-account/connector-account--update.mdx # Type: Doc File --- openapi: put /v2/connector-accounts/{id} ---
api-reference/v2/merchant-connector-account/connector-account--update.mdx
null
doc_file
41
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_filters( pool: &AnalyticsProvider, req: GetDisputeFilterRequest, auth: &AuthInfo, ) -> AnalyticsResult<DisputeFiltersResponse> { let mut res = DisputeFiltersResponse::default(); for dim in req.group_by_names { let values = match pool { AnalyticsProvid...
crates/analytics/src/disputes/core.rs
analytics
function_signature
600
rust
null
null
null
null
get_filters
null
null
null
null
null
null
null
pub async fn organization_create( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<admin::OrganizationCreateRequest>, ) -> HttpResponse { let flow = Flow::OrganizationCreate; Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inner(),...
crates/router/src/routes/admin.rs
router
function_signature
113
rust
null
null
null
null
organization_create
null
null
null
null
null
null
null
pub struct CardExpiration { pub month: CardExpirationMonth, pub year: CardExpirationYear, }
crates/cards/src/lib.rs
cards
struct_definition
22
rust
CardExpiration
null
null
null
null
null
null
null
null
null
null
null
pub struct Trustpay { amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), amount_converter_to_float_major_unit: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), amount_converter_to_string_minor_unit: &'static (dyn AmountConvertor<Output = StringM...
crates/hyperswitch_connectors/src/connectors/trustpay.rs
hyperswitch_connectors
struct_definition
79
rust
Trustpay
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentDetails { pub amount: i64, pub currency: Option<storage_enums::Currency>, pub payment_method: Option<PaymentMethod>, pub payment_method_type: Option<PaymentMethodType>, pub refund_transaction_id: Option<String>, }
crates/router/src/core/fraud_check/types.rs
router
struct_definition
57
rust
PaymentDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalRedirectsWebhooks { pub purchase_units: Vec<PurchaseUnitItem>, pub links: Vec<PaypalLinks>, pub id: String, pub intent: PaypalPaymentIntent, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
PaypalRedirectsWebhooks
null
null
null
null
null
null
null
null
null
null
null
pub async fn decide_storage_scheme<T, D>( store: &KVRouterStore<T>, storage_scheme: MerchantStorageScheme, operation: Op<'_>, ) -> MerchantStorageScheme where D: de::DeserializeOwned + serde::Serialize + Debug + KvStorePartition + UniqueConstraints + Sync, T: ...
crates/storage_impl/src/redis/kv_store.rs
storage_impl
function_signature
347
rust
null
null
null
null
decide_storage_scheme
null
null
null
null
null
null
null