text
string
file_path
string
module
string
type
string
tokens
int64
language
string
struct_name
string
type_name
string
trait_name
string
impl_type
string
function_name
string
source
string
section
string
keys
list
macro_type
string
url
string
title
string
chunk_index
int64
impl api::PaymentSession for Archipel {}
crates/hyperswitch_connectors/src/connectors/archipel.rs
hyperswitch_connectors
impl_block
9
rust
null
Archipel
api::PaymentSession for
impl api::PaymentSession for for Archipel
null
null
null
null
null
null
null
null
pub struct SantanderAdditionalInfo { #[serde(rename = "nome")] pub name: String, #[serde(rename = "valor")] pub value: String, }
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
SantanderAdditionalInfo
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Silverflow {}
crates/hyperswitch_connectors/src/connectors/silverflow.rs
hyperswitch_connectors
impl_block
9
rust
null
Silverflow
api::PaymentSession for
impl api::PaymentSession for for Silverflow
null
null
null
null
null
null
null
null
pub fn set_routing_event(&mut self, routing_event: routing_events::RoutingEvent) { self.routing_event = Some(routing_event); }
crates/router/src/core/payments/routing/utils.rs
router
function_signature
31
rust
null
null
null
null
set_routing_event
null
null
null
null
null
null
null
File: crates/external_services/src/hashicorp_vault/implementers.rs //! Trait implementations for Hashicorp vault client use common_utils::errors::CustomResult; use error_stack::ResultExt; use hyperswitch_interfaces::secrets_interface::{ SecretManagementInterface, SecretsManagementError, }; use masking::{ExposeInt...
crates/external_services/src/hashicorp_vault/implementers.rs
external_services
full_file
193
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct FrmMetricsBucketValue { pub frm_triggered_attempts: Option<u64>, pub frm_blocked_rate: Option<f64>, }
crates/api_models/src/analytics/frm.rs
api_models
struct_definition
30
rust
FrmMetricsBucketValue
null
null
null
null
null
null
null
null
null
null
null
pub struct RecipientCreateRequest { pub name: String, pub account_data: RecipientAccountData, pub address: Option<RecipientCreateAddress>, }
crates/pm_auth/src/types.rs
pm_auth
struct_definition
34
rust
RecipientCreateRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/routes/locker_migration.rs Public functions: 1 use actix_web::{web, HttpRequest, HttpResponse}; use router_env::Flow; use super::AppState; use crate::{ core::{api_locking, locker_migration}, services::{api, authentication as auth}, }; pub async fn rust_locker_migration( state: we...
crates/router/src/routes/locker_migration.rs
router
full_file
195
null
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/routing/routing--create.mdx # Type: Doc File --- openapi: post /routing ---
api-reference/v1/routing/routing--create.mdx
null
doc_file
30
doc
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/payouts/list" { "get": { "tags": [ "Payouts" ], "summary": "Payouts - List", "operationId": "List payouts using generic constraints", "parameters": [ { "name": "customer_id", "in": "query", "description": "The identifier for customer"...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
712
.json
null
null
null
null
null
openapi_spec
paths
[ "/payouts/list" ]
null
null
null
null
pub struct AccountHolder { #[serde(rename = "first-name")] pub first_name: Option<Secret<String>>, #[serde(rename = "last-name")] pub last_name: Option<Secret<String>>, pub email: Option<Email>, pub phone: Option<Secret<String>>, pub address: Option<Address>, }
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
68
rust
AccountHolder
null
null
null
null
null
null
null
null
null
null
null
pub fn capture_status_from_transaction_state(getnet_status: GetnetPaymentStatus) -> AttemptStatus { match getnet_status { GetnetPaymentStatus::Success => AttemptStatus::Charged, GetnetPaymentStatus::InProgress => AttemptStatus::Pending, GetnetPaymentStatus::Failed => AttemptStatus::Authorize...
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
function_signature
69
rust
null
null
null
null
capture_status_from_transaction_state
null
null
null
null
null
null
null
pub async fn get_ephemeral_or_other_auth<T>( headers: &HeaderMap, is_merchant_flow: bool, payload: Option<&impl ClientSecretFetch>, api_auth: ApiKeyAuth, ) -> RouterResult<( Box<dyn AuthenticateAndFetch<AuthenticationData, T>>, api::AuthFlow, bool, )> where T: SessionStateInfo + Sync + S...
crates/router/src/services/authentication.rs
router
function_signature
263
rust
null
null
null
null
get_ephemeral_or_other_auth
null
null
null
null
null
null
null
impl api::PaymentSession for Stax {}
crates/hyperswitch_connectors/src/connectors/stax.rs
hyperswitch_connectors
impl_block
9
rust
null
Stax
api::PaymentSession for
impl api::PaymentSession for for Stax
null
null
null
null
null
null
null
null
pub struct Action { pub method: MethodType, pub url: String, }
crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
Action
null
null
null
null
null
null
null
null
null
null
null
fn build_request( &self, req: &AcceptDisputeRouterData, connectors: &Connectors, ) -> CustomResult<Option<Request>, errors::ConnectorError> { Ok(Some( RequestBuilder::new() .method(Method::Post) .url(&AcceptDisputeType::get_url(self, re...
crates/hyperswitch_connectors/src/connectors/adyen.rs#chunk2
hyperswitch_connectors
chunk
7,652
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/external_services/src/aws_kms/core.rs Public functions: 4 Public structs: 2 //! Interactions with the AWS KMS SDK use std::time::Instant; use aws_config::meta::region::RegionProviderChain; use aws_sdk_kms::{config::Region, primitives::Blob, Client}; use base64::Engine; use common_utils::errors::Custom...
crates/external_services/src/aws_kms/core.rs
external_services
full_file
1,825
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct GetPaymentMetricRequest { pub time_series: Option<TimeSeries>, pub time_range: TimeRange, #[serde(default)] pub group_by_names: Vec<PaymentDimensions>, #[serde(default)] pub filters: payments::PaymentFilters, pub metrics: HashSet<PaymentMetrics>, pub distribution: Option<Payme...
crates/api_models/src/analytics.rs
api_models
struct_definition
86
rust
GetPaymentMetricRequest
null
null
null
null
null
null
null
null
null
null
null
impl common_utils::events::ApiEventMetric for WebhookDeliveryAttemptListRequestInternal { fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType> { Some(common_utils::events::ApiEventsType::Events { merchant_id: self.merchant_id.clone(), }) } }
crates/api_models/src/webhook_events.rs
api_models
impl_block
68
rust
null
WebhookDeliveryAttemptListRequestInternal
common_utils::events::ApiEventMetric for
impl common_utils::events::ApiEventMetric for for WebhookDeliveryAttemptListRequestInternal
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.UpiResponse { "allOf": [ { "allOf": [ { "$ref": "#/components/schemas/UpiAdditionalData" } ], "nullable": true }, { "type": "object" } ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
70
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "UpiResponse" ]
null
null
null
null
impl PaymentMethodUpdateInternal { pub fn apply_changeset(self, source: PaymentMethod) -> PaymentMethod { let Self { metadata, payment_method_data, last_used_at, network_transaction_id, status, locker_id, network_token_reque...
crates/diesel_models/src/payment_method.rs
diesel_models
impl_block
525
rust
null
PaymentMethodUpdateInternal
null
impl PaymentMethodUpdateInternal
null
null
null
null
null
null
null
null
url: payout_link_data.link.to_string().into(), return_url, expiry: common_utils::date_time::now() + Duration::seconds(payout_link_data.session_expiry.into()), ..Default::default() }; db.insert_payout_link(payout_link) .await .to_duplicate_response(err...
crates/router/src/core/payouts.rs#chunk3
router
chunk
240
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct OrganizationLevel { pub tenant_id: id_type::TenantId, pub org_id: id_type::OrganizationId, }
crates/router/src/types/domain/user.rs
router
struct_definition
28
rust
OrganizationLevel
null
null
null
null
null
null
null
null
null
null
null
impl super::payment_intents::metrics::PaymentIntentMetricAnalytics for SqlxClient {}
crates/analytics/src/sqlx.rs
analytics
impl_block
18
rust
null
SqlxClient
super::payment_intents::metrics::PaymentIntentMetricAnalytics for
impl super::payment_intents::metrics::PaymentIntentMetricAnalytics for for SqlxClient
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/types.rs pub use diesel_models::types::OrderDetailsWithAmount; use crate::{ router_data::{AccessToken, AccessTokenAuthenticationResponse, RouterData}, router_data_v2::{self, RouterDataV2}, router_flow_types::{ mandate_revoke::MandateRevoke, revenue_recove...
crates/hyperswitch_domain_models/src/types.rs
hyperswitch_domain_models
full_file
1,676
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_with_id( self, conn: &PgPooledConn, payment_method: payment_method::PaymentMethodUpdateInternal, ) -> StorageResult<Self> { match generics::generic_update_with_unique_predicate_get_result::< <Self as HasTable>::Table, _, _, ...
crates/diesel_models/src/query/payment_method.rs
diesel_models
function_signature
132
rust
null
null
null
null
update_with_id
null
null
null
null
null
null
null
impl Klarna { pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/klarna.rs
hyperswitch_connectors
impl_block
33
rust
null
Klarna
null
impl Klarna
null
null
null
null
null
null
null
null
pub struct NordeaPaymentsResponseWrapper { pub payments: Vec<NordeaPaymentsInitiateResponseData>, }
crates/hyperswitch_connectors/src/connectors/nordea/responses.rs
hyperswitch_connectors
struct_definition
23
rust
NordeaPaymentsResponseWrapper
null
null
null
null
null
null
null
null
null
null
null
pub trait AuthenticateAndFetch<T, A> where A: SessionStateInfo, { async fn authenticate_and_fetch( &self, request_headers: &HeaderMap, state: &A, ) -> RouterResult<(T, AuthenticationType)>; }
crates/router/src/services/authentication.rs
router
trait_definition
57
rust
null
null
AuthenticateAndFetch
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/router_flow_types/vault.rs Public structs: 4 #[derive(Debug, Clone)] pub struct ExternalVaultInsertFlow; #[derive(Debug, Clone)] pub struct ExternalVaultRetrieveFlow; #[derive(Debug, Clone)] pub struct ExternalVaultDeleteFlow; #[derive(Debug, Clone)] pub struct ExternalVa...
crates/hyperswitch_domain_models/src/router_flow_types/vault.rs
hyperswitch_domain_models
full_file
75
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CybersourceRefundRequest { order_information: OrderInformation, client_reference_information: ClientReferenceInformation, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
CybersourceRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct Redsys { amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/redsys.rs
hyperswitch_connectors
struct_definition
27
rust
Redsys
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Opennode {}
crates/hyperswitch_connectors/src/connectors/opennode.rs
hyperswitch_connectors
impl_block
10
rust
null
Opennode
api::PaymentToken for
impl api::PaymentToken for for Opennode
null
null
null
null
null
null
null
null
impl std::fmt::Display for PartitionKey<'_> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match *self { PartitionKey::MerchantIdPaymentId { merchant_id, payment_id, } => f.write_str(&format!( "mid_{}_pid_{}", ...
crates/storage_impl/src/redis/kv_store.rs
storage_impl
impl_block
445
rust
null
PartitionKey
std::fmt::Display for
impl std::fmt::Display for for PartitionKey
null
null
null
null
null
null
null
null
impl api::PaymentSync for Hyperwallet {}
crates/hyperswitch_connectors/src/connectors/hyperwallet.rs
hyperswitch_connectors
impl_block
9
rust
null
Hyperwallet
api::PaymentSync for
impl api::PaymentSync for for Hyperwallet
null
null
null
null
null
null
null
null
pub fn get_sdk_event_metrics_info() -> Vec<NameDescription> { SdkEventMetrics::iter().map(Into::into).collect() }
crates/analytics/src/utils.rs
analytics
function_signature
32
rust
null
null
null
null
get_sdk_event_metrics_info
null
null
null
null
null
null
null
pub async fn customers_update( state: web::Data<AppState>, req: HttpRequest, path: web::Path<id_type::CustomerId>, json_payload: web::Json<customers::CustomerUpdateRequest>, ) -> HttpResponse { let flow = Flow::CustomersUpdate; let customer_id = path.into_inner(); let request = json_payload....
crates/router/src/routes/customers.rs
router
function_signature
253
rust
null
null
null
null
customers_update
null
null
null
null
null
null
null
File: crates/common_types/src/payments.rs Public functions: 22 Public structs: 15 //! Payment related types use std::collections::HashMap; use common_enums::enums; use common_utils::{ date_time, errors, events, ext_traits::OptionExt, impl_to_sql_from_sql_json, pii, types::MinorUnit, }; use diesel::{ sq...
crates/common_types/src/payments.rs
common_types
full_file
5,937
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/connector_events.rs mod core; pub mod events; pub trait ConnectorEventAnalytics: events::ConnectorEventLogAnalytics {} pub use self::core::connector_events_core;
crates/analytics/src/connector_events.rs
analytics
full_file
41
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct OrderInformation { amount_details: Amount, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
12
rust
OrderInformation
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_groups_and_resources_for_role_from_token( state: web::Data<AppState>, req: HttpRequest, ) -> HttpResponse { let flow = Flow::GetRoleFromTokenV2; Box::pin(api::server_wrap( flow, state.clone(), &req, (), |state, user, _, _| async move { ...
crates/router/src/routes/user_role.rs
router
function_signature
124
rust
null
null
null
null
get_groups_and_resources_for_role_from_token
null
null
null
null
null
null
null
impl api::PaymentSession for Santander {}
crates/hyperswitch_connectors/src/connectors/santander.rs
hyperswitch_connectors
impl_block
9
rust
null
Santander
api::PaymentSession for
impl api::PaymentSession for for Santander
null
null
null
null
null
null
null
null
pub struct VoltPaymentWebhookObjectResource { #[serde(alias = "id")] pub payment: String, pub merchant_internal_reference: Option<String>, pub status: VoltWebhookPaymentStatus, pub detailed_status: Option<VoltDetailedStatus>, }
crates/hyperswitch_connectors/src/connectors/volt/transformers.rs
hyperswitch_connectors
struct_definition
54
rust
VoltPaymentWebhookObjectResource
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GpayTransactionInfo { "type": "object", "required": [ "country_code", "currency_code", "total_price_status", "total_price" ], "properties": { "country_code": { "$ref": "#/components/schemas/CountryAlpha2" }, "currency_code": { "$ref"...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
165
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GpayTransactionInfo" ]
null
null
null
null
impl api::MandateSetup for Hyperwallet {}
crates/hyperswitch_connectors/src/connectors/hyperwallet.rs
hyperswitch_connectors
impl_block
11
rust
null
Hyperwallet
api::MandateSetup for
impl api::MandateSetup for for Hyperwallet
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Wellsfargopayout {}
crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs
hyperswitch_connectors
impl_block
12
rust
null
Wellsfargopayout
api::PaymentCapture for
impl api::PaymentCapture for for Wellsfargopayout
null
null
null
null
null
null
null
null
impl super::KafkaMessage for KafkaDisputeEvent<'_> { fn key(&self) -> String { format!( "{}_{}_{}", self.merchant_id.get_string_repr(), self.payment_id.get_string_repr(), self.dispute_id ) } fn event_type(&self) -> crate::events::EventType { ...
crates/router/src/services/kafka/dispute_event.rs
router
impl_block
86
rust
null
KafkaDisputeEvent
super::KafkaMessage for
impl super::KafkaMessage for for KafkaDisputeEvent
null
null
null
null
null
null
null
null
File: crates/router/src/db/authorization.rs use diesel_models::authorization::AuthorizationUpdateInternal; use error_stack::report; use router_env::{instrument, tracing}; use super::{MockDb, Store}; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; #[async_trait::async_trait...
crates/router/src/db/authorization.rs
router
full_file
1,167
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentsPreProcessing for Adyen {}
crates/hyperswitch_connectors/src/connectors/adyen.rs
hyperswitch_connectors
impl_block
10
rust
null
Adyen
api::PaymentsPreProcessing for
impl api::PaymentsPreProcessing for for Adyen
null
null
null
null
null
null
null
null
pub struct Shipments { destination: Destination, fulfillment_method: Option<FulfillmentMethod>, }
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs
hyperswitch_connectors
struct_definition
21
rust
Shipments
null
null
null
null
null
null
null
null
null
null
null
impl State for PmTokenUpdated {}
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
impl_block
8
rust
null
PmTokenUpdated
State for
impl State for for PmTokenUpdated
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Cryptopay { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&CRYPTOPAY_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*CRYPTOPAY_SUPPORTED_PAYMENT_METHODS) } fn ge...
crates/hyperswitch_connectors/src/connectors/cryptopay.rs
hyperswitch_connectors
impl_block
109
rust
null
Cryptopay
ConnectorSpecifications for
impl ConnectorSpecifications for for Cryptopay
null
null
null
null
null
null
null
null
pub fn generate_surcharge_details_and_populate_surcharge_metadata( &self, backend_input: &backend::BackendInput, payment_attempt: &storage::PaymentAttempt, surcharge_metadata_and_key: (&mut types::SurchargeMetadata, types::SurchargeKey)
crates/router/src/core/payment_methods/surcharge_decision_configs.rs
router
function_signature
58
rust
null
null
null
null
generate_surcharge_details_and_populate_surcharge_metadata
null
null
null
null
null
null
null
impl api::PaymentSync for Placetopay {}
crates/hyperswitch_connectors/src/connectors/placetopay.rs
hyperswitch_connectors
impl_block
11
rust
null
Placetopay
api::PaymentSync for
impl api::PaymentSync for for Placetopay
null
null
null
null
null
null
null
null
impl fred::types::FromRedis for SaddReply { fn from_value(value: fred::types::RedisValue) -> Result<Self, fred::error::RedisError> { match value { fred::types::RedisValue::Integer(1) => Ok(Self::KeySet), fred::types::RedisValue::Integer(0) => Ok(Self::KeyNotSet), _ => Err...
crates/redis_interface/src/types.rs
redis_interface
impl_block
118
rust
null
SaddReply
fred::types::FromRedis for
impl fred::types::FromRedis for for SaddReply
null
null
null
null
null
null
null
null
pub struct StraightThroughAlgorithmTypeSingle(pub serde_json::Value);
crates/router/src/core/routing.rs
router
struct_definition
13
rust
StraightThroughAlgorithmTypeSingle
null
null
null
null
null
null
null
null
null
null
null
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_recovery = self.payment_intent.get_revenue_recovery_metadata();...
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
function_signature
968
rust
null
null
null
null
get_updated_feature_metadata
null
null
null
null
null
null
null
pub fn set_stored_token_response( self, store_token_response: &'a pm_transformers::StoreCardRespPayload, ) -> NetworkTokenizationBuilder<'a, PmTokenStored> { NetworkTokenizationBuilder { state: std::marker::PhantomData, stored_token: Some(store_token_response), ...
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
function_signature
148
rust
null
null
null
null
set_stored_token_response
null
null
null
null
null
null
null
File: crates/analytics/src/payment_intents/types.rs use api_models::analytics::payment_intents::{PaymentIntentDimensions, PaymentIntentFilters}; use error_stack::ResultExt; use crate::{ query::{QueryBuilder, QueryFilter, QueryResult, ToSql}, types::{AnalyticsCollection, AnalyticsDataSource}, }; impl<T> Query...
crates/analytics/src/payment_intents/types.rs
analytics
full_file
767
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn migrate_rules_for_profile( state: SessionState, merchant_context: domain::MerchantContext, query_params: routing_types::RuleMigrationQuery, ) -> RouterResult<routing_types::RuleMigrationResult> { use api_models::routing::StaticRoutingAlgorithm as EuclidAlgorithm; let profile_id = query...
crates/router/src/core/routing.rs
router
function_signature
1,318
rust
null
null
null
null
migrate_rules_for_profile
null
null
null
null
null
null
null
File: crates/router/tests/connectors/breadpay.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 BreadpayTest; ...
crates/router/tests/connectors/breadpay.rs
router
full_file
2,927
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodCollectLinkResponse { /// The unique identifier for the collect link. #[schema(value_type = String, example = "pm_collect_link_2bdacf398vwzq5n422S1")] pub pm_collect_link_id: String, /// The unique identifier of the customer. #[schema(value_type = String, example = "cus_92dn...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
434
rust
PaymentMethodCollectLinkResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct MandateData { pub customer_acceptance: CustomerAcceptance, pub mandate_type: Option<StripeMandateType>, pub amount: Option<i64>, #[serde(default, with = "common_utils::custom_serde::timestamp::option")] pub start_date: Option<PrimitiveDateTime>, #[serde(default, with = "common_utils::...
crates/router/src/compatibility/stripe/payment_intents/types.rs
router
struct_definition
97
rust
MandateData
null
null
null
null
null
null
null
null
null
null
null
impl fred::types::FromRedis for SetnxReply { fn from_value(value: fred::types::RedisValue) -> Result<Self, fred::error::RedisError> { match value { // Returns String ( "OK" ) in case of success fred::types::RedisValue::String(_) => Ok(Self::KeySet), // Return Null in case...
crates/redis_interface/src/types.rs
redis_interface
impl_block
143
rust
null
SetnxReply
fred::types::FromRedis for
impl fred::types::FromRedis for for SetnxReply
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Square { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&*SQUARE_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*SQUARE_SUPPORTED_PAYMENT_METHODS) } fn get_suppor...
crates/hyperswitch_connectors/src/connectors/square.rs
hyperswitch_connectors
impl_block
106
rust
null
Square
ConnectorSpecifications for
impl ConnectorSpecifications for for Square
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/vgs.rs Public structs: 1 pub mod transformers; use base64::Engine; use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, }; use error_stack::{report, ResultExt}; use hyperswitch_domain...
crates/hyperswitch_connectors/src/connectors/vgs.rs
hyperswitch_connectors
full_file
2,578
null
null
null
null
null
null
null
null
null
null
null
null
null
.build(), )) } fn handle_response( &self, data: &PaymentsIncrementalAuthorizationRouterData, event_builder: Option<&mut ConnectorEvent>, res: Response, ) -> CustomResult< RouterData< IncrementalAuthorization, PaymentsIn...
crates/hyperswitch_connectors/src/connectors/stripe.rs#chunk1
hyperswitch_connectors
chunk
8,192
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Parse for Conversion { fn parse(input: syn::parse::ParseStream<'_>) -> syn::Result<Self> { let text = input.parse::<syn::LitStr>()?; let value = text.value(); value.as_str().parse().map_err(|_| { syn::Error::new_spanned( &text, format!( ...
crates/router_derive/src/macros/operation.rs
router_derive
impl_block
111
rust
null
Conversion
Parse for
impl Parse for for Conversion
null
null
null
null
null
null
null
null
impl api::PayoutCreate for Wise {}
crates/hyperswitch_connectors/src/connectors/wise.rs
hyperswitch_connectors
impl_block
9
rust
null
Wise
api::PayoutCreate for
impl api::PayoutCreate for for Wise
null
null
null
null
null
null
null
null
impl IncomingWebhook for Bamboraapac { fn get_webhook_object_reference_id( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented)) } fn get_webhook_event_type...
crates/hyperswitch_connectors/src/connectors/bamboraapac.rs
hyperswitch_connectors
impl_block
188
rust
null
Bamboraapac
IncomingWebhook for
impl IncomingWebhook for for Bamboraapac
null
null
null
null
null
null
null
null
pub struct RoutingDictionary { #[schema(value_type = String)] pub merchant_id: common_utils::id_type::MerchantId, pub active_id: Option<String>, pub records: Vec<RoutingDictionaryRecord>, }
crates/api_models/src/routing.rs
api_models
struct_definition
46
rust
RoutingDictionary
null
null
null
null
null
null
null
null
null
null
null
impl GetPaymentMethodType for BankDebitData { fn get_payment_method_type(&self) -> api_enums::PaymentMethodType { match self { Self::AchBankDebit { .. } => api_enums::PaymentMethodType::Ach, Self::SepaBankDebit { .. } => api_enums::PaymentMethodType::Sepa, Self::BecsBankD...
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
impl_block
130
rust
null
BankDebitData
GetPaymentMethodType for
impl GetPaymentMethodType for for BankDebitData
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.EliminationAnalyserConfig { "type": "object", "properties": { "bucket_size": { "type": "integer", "format": "int64", "nullable": true, "minimum": 0 }, "bucket_leak_interval_in_secs": { "type": "integer", "format": "int64", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
116
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "EliminationAnalyserConfig" ]
null
null
null
null
File: crates/analytics/src/active_payments.rs pub mod accumulator; mod core; pub mod metrics; pub use accumulator::{ActivePaymentsMetricAccumulator, ActivePaymentsMetricsAccumulator}; pub use self::core::get_metrics;
crates/analytics/src/active_payments.rs
analytics
full_file
49
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.NoThirdPartySdkSessionResponse { "type": "object", "required": [ "epoch_timestamp", "expires_at", "merchant_session_identifier", "nonce", "merchant_identifier", "domain_name", "display_name", "signature", "operational_analytics_identifier", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
460
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "NoThirdPartySdkSessionResponse" ]
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
impl api::PaymentCapture for Payeezy {}
crates/hyperswitch_connectors/src/connectors/payeezy.rs
hyperswitch_connectors
impl_block
10
rust
null
Payeezy
api::PaymentCapture for
impl api::PaymentCapture for for Payeezy
null
null
null
null
null
null
null
null
pub struct PSyncResponse { data: PSyncResponseData, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
PSyncResponse
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Fiserv { fn id(&self) -> &'static str { "fiserv" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a ...
crates/hyperswitch_connectors/src/connectors/fiserv.rs
hyperswitch_connectors
impl_block
530
rust
null
Fiserv
ConnectorCommon for
impl ConnectorCommon for for Fiserv
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_get_intent.rs Public structs: 1 use std::marker::PhantomData; use api_models::{enums::FrmSuggestion, payments::PaymentsGetIntentRequest}; use async_trait::async_trait; use common_utils::errors::CustomResult; use router_env::{instrument, tracing}; use super::{...
crates/router/src/core/payments/operations/payment_get_intent.rs
router
full_file
1,755
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct FrmFulfillmentSignifydApiResponse { ///unique order_id for the transaction #[schema(max_length = 255, example = "pay_qiYfHcDou1ycIaxVXKHF")] pub order_id: String, ///shipment_ids used in the fulfillment overall...also data from previous fulfillments for the same transactions/order is sent ...
crates/router/src/core/fraud_check/types.rs
router
struct_definition
113
rust
FrmFulfillmentSignifydApiResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct PayoutAttemptNew { pub payout_attempt_id: String, pub payout_id: common_utils::id_type::PayoutId, pub customer_id: Option<common_utils::id_type::CustomerId>, pub merchant_id: common_utils::id_type::MerchantId, pub address_id: Option<String>, pub connector: Option<String>, pub conn...
crates/diesel_models/src/payout_attempt.rs
diesel_models
struct_definition
303
rust
PayoutAttemptNew
null
null
null
null
null
null
null
null
null
null
null
pub struct CalContractScoreEventRequest { pub id: String, pub params: String, pub labels: Vec<String>, pub config: Option<api_routing::ContractBasedRoutingConfig>, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
42
rust
CalContractScoreEventRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/common_types/src/payment_methods.rs Public functions: 3 Public structs: 4 //! Common types to be used in payment methods use diesel::{ backend::Backend, deserialize, deserialize::FromSql, serialize::ToSql, sql_types::{Json, Jsonb}, AsExpression, Queryable, }; use serde::{Deseria...
crates/common_types/src/payment_methods.rs
common_types
full_file
2,342
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct NordeaAuthType { pub(super) client_id: Secret<String>, pub(super) client_secret: Secret<String>, /// PEM format private key for eIDAS signing /// Should be base64 encoded pub(super) eidas_private_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/nordea/transformers.rs
hyperswitch_connectors
struct_definition
61
rust
NordeaAuthType
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Facilitapay {}
crates/hyperswitch_connectors/src/connectors/facilitapay.rs
hyperswitch_connectors
impl_block
11
rust
null
Facilitapay
api::PaymentSync for
impl api::PaymentSync for for Facilitapay
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Zen {}
crates/hyperswitch_connectors/src/connectors/zen.rs
hyperswitch_connectors
impl_block
8
rust
null
Zen
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Zen
null
null
null
null
null
null
null
null
/// Get 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.rs
common_utils
function_signature
31
rust
null
null
null
null
get_string_repr
null
null
null
null
null
null
null
pub struct CardData { pub card_number: CardNumber, pub exp_month: Secret<String>, pub exp_year: Secret<String>, #[serde(skip_serializing_if = "Option::is_none")] pub card_security_code: Option<Secret<String>>, }
crates/router/src/types/payment_methods.rs
router
struct_definition
55
rust
CardData
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/v2/gsm") .app_data(web::Data::new(state)) .service(web::resource("").route(web::post().to(gsm::create_gsm_rule))) .service(web::resource("/get").route(web::post().to(gsm::get_gsm_rule))) .service(web::resource...
crates/router/src/routes/app.rs
router
function_signature
123
rust
null
null
null
null
server
null
null
null
null
null
null
null
File: crates/router/src/core/cards_info.rs Public functions: 6 Public structs: 7 use actix_multipart::form::{bytes::Bytes, MultipartForm}; use api_models::cards_info as cards_info_api_types; use common_utils::fp_utils::when; use csv::Reader; use diesel_models::cards_info as card_info_models; use error_stack::{report...
crates/router/src/core/cards_info.rs
router
full_file
2,601
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorRedirectResponse for Authorizedotnet { fn get_flow_type( &self, _query_params: &str, _json_payload: Option<serde_json::Value>, action: PaymentAction, ) -> CustomResult<enums::CallConnectorAction, errors::ConnectorError> { match action { Paym...
crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs
hyperswitch_connectors
impl_block
113
rust
null
Authorizedotnet
api::ConnectorRedirectResponse for
impl api::ConnectorRedirectResponse for for Authorizedotnet
null
null
null
null
null
null
null
null
pub async fn payments_retrieve( state: web::Data<app::AppState>, req: actix_web::HttpRequest, path: web::Path<common_utils::id_type::PaymentId>, json_payload: web::Query<payment_types::PaymentRetrieveBody>, ) -> impl Responder { let flow = match json_payload.force_sync { Some(true) => Flow::...
crates/router/src/routes/payments.rs
router
function_signature
591
rust
null
null
null
null
payments_retrieve
null
null
null
null
null
null
null
pub struct ConnectorTokenReferenceRecord { pub connector_token: String, pub payment_method_subtype: Option<common_enums::PaymentMethodType>, pub original_payment_authorized_amount: Option<common_utils::types::MinorUnit>, pub original_payment_authorized_currency: Option<common_enums::Currency>, pub m...
crates/diesel_models/src/payment_method.rs
diesel_models
struct_definition
103
rust
ConnectorTokenReferenceRecord
null
null
null
null
null
null
null
null
null
null
null
pub fn set_surcharge_details( &mut self, surcharge_details: Option<router_request_types::SurchargeDetails>, ) { self.surcharge_amount = surcharge_details .clone() .map(|details| details.surcharge_amount); self.tax_on_surcharge = surcharge_details.map(|details|...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
80
rust
null
null
null
null
set_surcharge_details
null
null
null
null
null
null
null
pub struct NordeaFailures { /// Failure code pub code: Option<String>, /// Failure description pub description: Option<String>, /// JSON path of the failing element if applicable pub path: Option<String>, /// Type of the validation error, e.g. NotNull #[serde(rename = "type")] pub fa...
crates/hyperswitch_connectors/src/connectors/nordea/responses.rs
hyperswitch_connectors
struct_definition
80
rust
NordeaFailures
null
null
null
null
null
null
null
null
null
null
null
pub trait EmailClient: Sync + Send + dyn_clone::DynClone { /// The rich text type of the email client type RichText; /// Sends an email to the specified recipient with the given subject and body. async fn send_email( &self, recipient: pii::Email, subject: String, body: S...
crates/external_services/src/email.rs
external_services
trait_definition
168
rust
null
null
EmailClient
null
null
null
null
null
null
null
null
null
pub struct Forte { amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/forte.rs
hyperswitch_connectors
struct_definition
27
rust
Forte
null
null
null
null
null
null
null
null
null
null
null
pub fn create_merchant_publishable_key() -> String { format!( "pk_{}_{}", router_env::env::prefix_for_env(), Uuid::new_v4().simple() ) }
crates/router/src/core/admin.rs
router
function_signature
45
rust
null
null
null
null
create_merchant_publishable_key
null
null
null
null
null
null
null
.filter(|cn| network_tokenization_supported_card_networks.contains(cn)) .is_some() { let optional_card_cvc = Some(card_data.card_cvc.clone()); match network_tokenization::make_card_network_tokenization_request( state, ...
crates/router/src/core/payments/tokenization.rs#chunk1
router
chunk
4,277
null
null
null
null
null
null
null
null
null
null
null
null
null