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 super::KafkaMessage for KafkaPaymentAttempt<'_> { #[cfg(feature = "v1")] fn key(&self) -> String { format!( "{}_{}_{}", self.merchant_id.get_string_repr(), self.payment_id.get_string_repr(), self.attempt_id ) } #[cfg(feature = "v2")] ...
crates/router/src/services/kafka/payment_attempt.rs
router
impl_block
151
rust
null
KafkaPaymentAttempt
super::KafkaMessage for
impl super::KafkaMessage for for KafkaPaymentAttempt
null
null
null
null
null
null
null
null
pub fn get_connector_account_details( &self, ) -> error_stack::Result<router_data::ConnectorAuthType, common_utils::errors::ParsingError> { match self { Self::MerchantConnectorAccount(merchant_connector_account) => { merchant_connector_account .con...
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
131
rust
null
null
null
null
get_connector_account_details
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Hyperwallet {}
crates/hyperswitch_connectors/src/connectors/hyperwallet.rs
hyperswitch_connectors
impl_block
9
rust
null
Hyperwallet
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Hyperwallet
null
null
null
null
null
null
null
null
impl api::PaymentSession for Wellsfargopayout {}
crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs
hyperswitch_connectors
impl_block
12
rust
null
Wellsfargopayout
api::PaymentSession for
impl api::PaymentSession for for Wellsfargopayout
null
null
null
null
null
null
null
null
pub struct DeutschebankThreeDSInitializeRequestCommunicationData { method_notification_url: String, cres_notification_url: String, }
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
DeutschebankThreeDSInitializeRequestCommunicationData
null
null
null
null
null
null
null
null
null
null
null
pub async fn connector_create( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<admin::MerchantConnectorCreate>, ) -> HttpResponse { let flow = Flow::MerchantConnectorsCreate; let payload = json_payload.into_inner(); Box::pin(api::server_wrap( flow, state, ...
crates/router/src/routes/admin.rs
router
function_signature
209
rust
null
null
null
null
connector_create
null
null
null
null
null
null
null
pub fn get_default_fallback_list_of_connector_under_profile( &self, ) -> RouterResult<Vec<routing_types::RoutableConnectorChoice>> { let fallback_connectors = if let Some(default_fallback_routing) = self.profile.default_fallback_routing.clone() { default_fallback_routing ...
crates/router/src/core/admin.rs
router
function_signature
142
rust
null
null
null
null
get_default_fallback_list_of_connector_under_profile
null
null
null
null
null
null
null
pub struct FailDetails { reason: Option<String>, message: Option<String>, }
crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
FailDetails
null
null
null
null
null
null
null
null
null
null
null
Ideal { /// The billing details for bank redirection billing_details: Option<BankRedirectBilling>, /// The hyperswitch bank code for ideal #[schema(value_type = BankNames, example = "abn_amro")] bank_name: Option<common_enums::BankNames>, /// The country for bank pa...
crates/api_models/src/payments.rs#chunk4
api_models
chunk
8,179
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CheckTokenStatus { pub card_reference: String, pub customer_id: id_type::CustomerId, }
crates/router/src/types/payment_methods.rs
router
struct_definition
24
rust
CheckTokenStatus
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Nexinets {}
crates/hyperswitch_connectors/src/connectors/nexinets.rs
hyperswitch_connectors
impl_block
10
rust
null
Nexinets
api::PaymentSync for
impl api::PaymentSync for for Nexinets
null
null
null
null
null
null
null
null
impl PaymentResourceUpdateStatus { pub fn is_success(&self) -> bool { matches!(self, Self::Success) } }
crates/common_enums/src/enums.rs
common_enums
impl_block
29
rust
null
PaymentResourceUpdateStatus
null
impl PaymentResourceUpdateStatus
null
null
null
null
null
null
null
null
pub struct Amount { total_amount: StringMajorUnit, currency: api_models::enums::Currency, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
Amount
null
null
null
null
null
null
null
null
null
null
null
File: crates/api_models/src/process_tracker/revenue_recovery.rs Public structs: 2 use common_utils::id_type; use serde::{Deserialize, Serialize}; use time::PrimitiveDateTime; use utoipa::ToSchema; use crate::enums; #[derive(Debug, Clone, Serialize, Deserialize, ToSchema)] pub struct RevenueRecoveryResponse { pub...
crates/api_models/src/process_tracker/revenue_recovery.rs
api_models
full_file
177
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/types.rs Public structs: 2 //! Types interface use hyperswitch_domain_models::{ router_data::{AccessToken, AccessTokenAuthenticationResponse}, router_data_v2::flow_common_types, router_flow_types::{ access_token_auth::AccessTokenAuth, dispute::{Acce...
crates/hyperswitch_interfaces/src/types.rs
hyperswitch_interfaces
full_file
3,773
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { let mut route = web::scope("/v2/payment-methods").app_data(web::Data::new(state)); #[cfg(feature = "olap")] { route = route.service(web::resource("/filter").route( web::get().to( pa...
crates/router/src/routes/app.rs
router
function_signature
323
rust
null
null
null
null
server
null
null
null
null
null
null
null
impl<T: DatabaseStore> RedisConnInterface for RouterStore<T> { fn get_redis_conn(&self) -> error_stack::Result<Arc<RedisConnectionPool>, RedisError> { self.cache_store.get_redis_conn() } }
crates/storage_impl/src/lib.rs
storage_impl
impl_block
50
rust
null
RouterStore
RedisConnInterface for
impl RedisConnInterface for for RouterStore
null
null
null
null
null
null
null
null
File: crates/router/src/core/mandate/utils.rs Public functions: 1 use std::marker::PhantomData; use common_utils::{errors::CustomResult, ext_traits::ValueExt}; use diesel_models::Mandate; use error_stack::ResultExt; use crate::{ core::{errors, payments::helpers}, types::{self, domain, PaymentAddress}, S...
crates/router/src/core/mandate/utils.rs
router
full_file
815
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<PaymentAttempt> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/payment_attempt.rs
diesel_models
function_signature
35
rust
null
null
null
null
insert
null
null
null
null
null
null
null
pub struct RefundResponse { id: String, status: RefundStatus, reject_code: Option<String>, reject_reason: Option<String>, }
crates/hyperswitch_connectors/src/connectors/zen/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct OnboardingSyncRequest { pub profile_id: id_type::ProfileId, pub connector_id: id_type::MerchantConnectorAccountId, pub connector: enums::Connector, }
crates/api_models/src/connector_onboarding.rs
api_models
struct_definition
39
rust
OnboardingSyncRequest
null
null
null
null
null
null
null
null
null
null
null
impl MerchantConnectorAccount { pub fn server(state: AppState) -> Scope { let mut route = web::scope("/v2/connector-accounts").app_data(web::Data::new(state)); #[cfg(feature = "olap")] { use super::admin::*; route = route .service(web::resource("").r...
crates/router/src/routes/app.rs
router
impl_block
138
rust
null
MerchantConnectorAccount
null
impl MerchantConnectorAccount
null
null
null
null
null
null
null
null
pub struct RuleRequest { /// [`tag`] similar to a partition key, which can be used by the decision service to tag rules /// by partitioning identifiers. (e.g. `tenant_id`) pub tag: String, /// [`variant`] is the type of authentication method to be registered. #[serde(flatten)] pub variant: AuthR...
crates/router/src/services/authentication/decision.rs
router
struct_definition
108
rust
RuleRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/connector_validation.rs Public functions: 1 Public structs: 1 use api_models::enums as api_enums; use common_utils::pii; use error_stack::ResultExt; use external_services::http_client::client; use masking::PeekInterface; use pm_auth::connector::plaid::transformers::PlaidAuthType; use cr...
crates/router/src/core/connector_validation.rs
router
full_file
5,772
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Coinbase { fn id(&self) -> &'static str { "coinbase" } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.coinbase.base_url.as_ref() } fn get_a...
crates/hyperswitch_connectors/src/connectors/coinbase.rs
hyperswitch_connectors
impl_block
376
rust
null
Coinbase
ConnectorCommon for
impl ConnectorCommon for for Coinbase
null
null
null
null
null
null
null
null
pub struct GetTrackerResponse<D> { pub payment_data: D, }
crates/router/src/core/payments/operations.rs
router
struct_definition
16
rust
GetTrackerResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentListResponse { "type": "object", "required": [ "size", "data" ], "properties": { "size": { "type": "integer", "description": "The number of payments included in the list", "minimum": 0 }, "data": { "type": "array", "...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
113
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentListResponse" ]
null
null
null
null
pub struct ListUsersInEntityResponse { pub email: pii::Email, pub roles: Vec<role::MinimalRoleInfo>, }
crates/api_models/src/user_role.rs
api_models
struct_definition
29
rust
ListUsersInEntityResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthorizedotnetPaymentsResponse { pub transaction_response: Option<TransactionResponse>, pub profile_response: Option<AuthorizedotnetNonZeroMandateResponse>, pub messages: ResponseMessages, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
42
rust
AuthorizedotnetPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Chargebee {}
crates/hyperswitch_connectors/src/connectors/chargebee.rs
hyperswitch_connectors
impl_block
9
rust
null
Chargebee
api::PaymentToken for
impl api::PaymentToken for for Chargebee
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/klarna.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use api_models::webhooks::IncomingWebhookEvent; use base64::Engine; use common_enums::enums; use common_utils::{ consts::BASE64_ENGINE, errors::CustomResult, ...
crates/hyperswitch_connectors/src/connectors/klarna.rs#chunk0
hyperswitch_connectors
chunk
8,179
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Breadpay {}
crates/hyperswitch_connectors/src/connectors/breadpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Breadpay
api::PaymentSession for
impl api::PaymentSession for for Breadpay
null
null
null
null
null
null
null
null
impl api::Payouts for Stripe {}
crates/hyperswitch_connectors/src/connectors/stripe.rs
hyperswitch_connectors
impl_block
9
rust
null
Stripe
api::Payouts for
impl api::Payouts for for Stripe
null
null
null
null
null
null
null
null
impl api::Refund for Placetopay {}
crates/hyperswitch_connectors/src/connectors/placetopay.rs
hyperswitch_connectors
impl_block
11
rust
null
Placetopay
api::Refund for
impl api::Refund for for Placetopay
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/payment_link.rs Public structs: 2 use common_utils::types::MinorUnit; use diesel::{Identifiable, Insertable, Queryable, Selectable}; use serde::{self, Deserialize, Serialize}; use time::PrimitiveDateTime; use crate::{enums as storage_enums, schema::payment_link}; #[derive(Clone, Debug...
crates/diesel_models/src/payment_link.rs
diesel_models
full_file
591
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct HyperswitchVaultErrorResponse { pub error: HyperswitchVaultErrorDetails, }
crates/hyperswitch_connectors/src/connectors/hyperswitch_vault/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
HyperswitchVaultErrorResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/api_models/src/consts.rs /// Max payment intent fulfillment expiry pub const MAX_ORDER_FULFILLMENT_EXPIRY: i64 = 1800; /// Min payment intent fulfillment expiry pub const MIN_ORDER_FULFILLMENT_EXPIRY: i64 = 60;
crates/api_models/src/consts.rs
api_models
full_file
66
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ChargeAmount { amount: StringMajorUnit, currency_code: common_enums::Currency, }
crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
ChargeAmount
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Cryptopay {}
crates/hyperswitch_connectors/src/connectors/cryptopay.rs
hyperswitch_connectors
impl_block
10
rust
null
Cryptopay
api::PaymentVoid for
impl api::PaymentVoid for for Cryptopay
null
null
null
null
null
null
null
null
impl Responder { // safety: This shouldn't panic owing to the data type #[allow(clippy::expect_used)] let payload = json_payload .into_inner() .to_vec() .pop() .expect("Couldn't get GetPaymentIntentMetricRequest"); let flow = AnalyticsFlow:...
crates/router/src/analytics.rs
router
impl_block
288
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl UserInterface for KafkaStore { async fn insert_user( &self, user_data: storage::UserNew, ) -> CustomResult<storage::User, errors::StorageError> { self.diesel_store.insert_user(user_data).await } async fn find_user_by_email( &self, user_email: &domain::UserEm...
crates/router/src/db/kafka_store.rs
router
impl_block
403
rust
null
KafkaStore
UserInterface for
impl UserInterface for for KafkaStore
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentsRetrieveRequest { "type": "object", "required": [ "resource_id", "force_sync" ], "properties": { "resource_id": { "type": "string", "description": "The type of ID (ex: payment intent id, payment attempt id or connector txn id)" }, "m...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
472
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentsRetrieveRequest" ]
null
null
null
null
File: crates/diesel_models/src/query/unified_translations.rs Public functions: 4 use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods}; use error_stack::report; use crate::{ errors, query::generics, schema::unified_translations::dsl, unified_translations::{UnifiedTranslations...
crates/diesel_models/src/query/unified_translations.rs
diesel_models
full_file
547
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Boku {}
crates/hyperswitch_connectors/src/connectors/boku.rs
hyperswitch_connectors
impl_block
9
rust
null
Boku
api::Refund for
impl api::Refund for for Boku
null
null
null
null
null
null
null
null
pub struct PartnerReferralResponse { pub links: Vec<HateoasLink>, }
crates/router/src/types/api/connector_onboarding/paypal.rs
router
struct_definition
19
rust
PartnerReferralResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct UnifiedError { pub code: String, pub user_message: String, pub developer_message: String, }
crates/api_models/src/open_router.rs
api_models
struct_definition
26
rust
UnifiedError
null
null
null
null
null
null
null
null
null
null
null
impl RefundSync for Wellsfargo {}
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs
hyperswitch_connectors
impl_block
9
rust
null
Wellsfargo
RefundSync for
impl RefundSync for for Wellsfargo
null
null
null
null
null
null
null
null
pub fn is_connection_closed_before_message_could_complete(&self) -> bool { self == &Self::ConnectionClosedIncompleteMessage }
crates/common_enums/src/enums.rs
common_enums
function_signature
29
rust
null
null
null
null
is_connection_closed_before_message_could_complete
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.BankRedirectDetails { "oneOf": [ { "type": "object", "required": [ "BancontactCard" ], "properties": { "BancontactCard": { "$ref": "#/components/schemas/BancontactBankRedirectAdditionalData" } } }, { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
192
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "BankRedirectDetails" ]
null
null
null
null
pub struct OrderInformationIncrementalAuthorization { amount_details: AdditionalAmount, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
OrderInformationIncrementalAuthorization
null
null
null
null
null
null
null
null
null
null
null
impl SdkEventMetricsAccumulator { #[allow(dead_code)] pub fn collect(self) -> SdkEventMetricsBucketValue { SdkEventMetricsBucketValue { payment_attempts: self.payment_attempts.collect(), payment_methods_call_count: self.payment_methods_call_count.collect(), average_pa...
crates/analytics/src/sdk_events/accumulator.rs
analytics
impl_block
136
rust
null
SdkEventMetricsAccumulator
null
impl SdkEventMetricsAccumulator
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Opennode {}
crates/hyperswitch_connectors/src/connectors/opennode.rs
hyperswitch_connectors
impl_block
10
rust
null
Opennode
api::PaymentCapture for
impl api::PaymentCapture for for Opennode
null
null
null
null
null
null
null
null
impl ConnectorMetadata<'_> { fn validate_apple_pay_certificates_in_mca_metadata(&self) -> RouterResult<()> { self.connector_metadata .clone() .map(api_models::payments::ConnectorMetadata::from_value) .transpose() .change_context(errors::ApiErrorResponse::Inval...
crates/router/src/core/admin.rs
router
impl_block
169
rust
null
ConnectorMetadata
null
impl ConnectorMetadata
null
null
null
null
null
null
null
null
pub struct RefundListResponse { /// The number of refunds included in the list pub count: usize, /// The total number of refunds in the list pub total_count: i64, /// The List of refund response object pub data: Vec<RefundResponse>, }
crates/api_models/src/refunds.rs
api_models
struct_definition
64
rust
RefundListResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_metadata_by_merchant_id_transaction_type( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, transaction_type: &enums::TransactionType, limit: i64, offset: i64, ) -> StorageResult<Vec<RoutingProfileMetadata>> { Ok(Self::table() ...
crates/diesel_models/src/query/routing_algorithm.rs
diesel_models
function_signature
348
rust
null
null
null
null
list_metadata_by_merchant_id_transaction_type
null
null
null
null
null
null
null
File: crates/router/tests/connectors/taxjar.rs use masking::Secret; use router::types::{self, api, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct TaxjarTest; impl ConnectorActions for TaxjarTest {} impl utils::Connector for TaxjarTes...
crates/router/tests/connectors/taxjar.rs
router
full_file
2,924
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Connectors { /// fn validate(&self) -> Result<(), ApplicationError> { /// self.stripe.validate()?; /// self.checkout.validate()?; /// } /// }
crates/router_derive/src/lib.rs
router_derive
impl_block
37
rust
null
Connectors
null
impl Connectors
null
null
null
null
null
null
null
null
impl TransactionType { pub fn is_three_ds_authentication(self) -> bool { matches!(self, Self::ThreeDsAuthentication) } }
crates/common_enums/src/enums.rs
common_enums
impl_block
30
rust
null
TransactionType
null
impl TransactionType
null
null
null
null
null
null
null
null
pub struct AuthenticationResponse { pub version: String, }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
struct_definition
12
rust
AuthenticationResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct Adyenplatform { #[cfg(feature = "payouts")] amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/adyenplatform.rs
hyperswitch_connectors
struct_definition
37
rust
Adyenplatform
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/shift4.rs use std::str::FromStr; use masking::Secret; use router::types::{self, domain, storage::enums}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[derive(Clone, Copy)] struct Shift4Test; impl ConnectorActions for Shift4Test {} impl utils::Connect...
crates/router/tests/connectors/shift4.rs
router
full_file
2,857
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router_derive/src/macros/misc.rs Public functions: 3 pub fn get_field_type(field_type: syn::Type) -> Option<syn::Ident> { if let syn::Type::Path(path) = field_type { path.path .segments .last() .map(|last_path_segment| last_path_segment.ident.to_owned()) ...
crates/router_derive/src/macros/misc.rs
router_derive
full_file
529
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Custombilling {}
crates/hyperswitch_connectors/src/connectors/custombilling.rs
hyperswitch_connectors
impl_block
10
rust
null
Custombilling
api::RefundSync for
impl api::RefundSync for for Custombilling
null
null
null
null
null
null
null
null
pub struct VoltErrorResponse { pub exception: VoltErrorException, }
crates/hyperswitch_connectors/src/connectors/volt/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
VoltErrorResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/payments/payment_attempt.rs Public functions: 46 Public structs: 11 #[cfg(all(feature = "v1", feature = "olap"))] use api_models::enums::Connector; use common_enums as storage_enums; #[cfg(feature = "v2")] use common_types::payments as common_payments_types; #[cfg(feature =...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs#chunk0
hyperswitch_domain_models
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/type_encryption.rs Public functions: 3 Public structs: 1 use async_trait::async_trait; use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{...
crates/hyperswitch_domain_models/src/type_encryption.rs#chunk0
hyperswitch_domain_models
chunk
8,188
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AddressDetails { "type": "object", "description": "Address details", "properties": { "city": { "type": "string", "description": "The city, district, suburb, town, or village of the address.", "example": "New York", "nullable": true, "maxLeng...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
556
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AddressDetails" ]
null
null
null
null
pub struct Paystack { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/paystack.rs
hyperswitch_connectors
struct_definition
26
rust
Paystack
null
null
null
null
null
null
null
null
null
null
null
pub struct CardSpecificFeatures { /// Indicates whether three_ds card payments are supported #[schema(value_type = FeatureStatus)] pub three_ds: common_enums::FeatureStatus, /// Indicates whether non three_ds card payments are supported #[schema(value_type = FeatureStatus)] pub no_three_ds: comm...
crates/api_models/src/feature_matrix.rs
api_models
struct_definition
108
rust
CardSpecificFeatures
null
null
null
null
null
null
null
null
null
null
null
///Mock api for local testing pub async fn mock_call_to_locker_hs( db: &dyn db::StorageInterface, card_id: &str, payload: &payment_methods::StoreLockerReq, card_cvc: Option<String>, payment_method_id: Option<String>, customer_id: Option<&id_type::CustomerId>, ) -> errors::CustomResult<payment_me...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
567
rust
null
null
null
null
mock_call_to_locker_hs
null
null
null
null
null
null
null
/// Create a key for fetching the access token from redis pub fn create_access_token_key( merchant_id: &id_type::MerchantId, merchant_connector_id_or_connector_name: impl Display, ) -> String { merchant_id.get_access_token_key(merchant_connector_id_or_connector_name) }
crates/common_utils/src/access_token.rs
common_utils
function_signature
61
rust
null
null
null
null
create_access_token_key
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Getnet {}
crates/hyperswitch_connectors/src/connectors/getnet.rs
hyperswitch_connectors
impl_block
9
rust
null
Getnet
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Getnet
null
null
null
null
null
null
null
null
pub struct InespayRefundRequest { single_payin_id: String, amount: Option<MinorUnit>, }
crates/hyperswitch_connectors/src/connectors/inespay/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
InespayRefundRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/drainer/src/utils.rs Public functions: 2 use std::sync::{atomic, Arc}; use error_stack::report; use redis_interface as redis; use serde::de::Deserialize; use crate::{ errors, kv, metrics, stream::{StreamEntries, StreamReadResult}, }; pub fn parse_stream_entries<'a>( read_result: &'a Stream...
crates/drainer/src/utils.rs
drainer
full_file
626
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct JpmorganMerchant { merchant_software: JpmorganMerchantSoftware, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
JpmorganMerchant
null
null
null
null
null
null
null
null
null
null
null
pub async fn payments_list( state: web::Data<app::AppState>, req: actix_web::HttpRequest, payload: web::Query<payment_types::PaymentListConstraints>, ) -> impl Responder { let flow = Flow::PaymentsList; let payload = payload.into_inner(); Box::pin(api::server_wrap( flow, state, ...
crates/router/src/routes/payments.rs
router
function_signature
219
rust
null
null
null
null
payments_list
null
null
null
null
null
null
null
pub fn from_storage(intent: &'a PaymentIntent, infra_values: Option<Value>) -> Self { Self { payment_id: &intent.payment_id, merchant_id: &intent.merchant_id, status: intent.status, amount: intent.amount, currency: intent.currency, amount_c...
crates/router/src/services/kafka/payment_intent_event.rs
router
function_signature
423
rust
null
null
null
null
from_storage
null
null
null
null
null
null
null
&(&state).into(), type_name!(storage_user::User), domain::types::CryptoOperation::Encrypt(totp.get_secret_base32().into()), Identifier::User(key_store.user_id.clone()), key_store.key.peek(), ...
crates/router/src/core/user.rs#chunk2
router
chunk
8,190
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ReversalInformation { amount_details: Amount, reason: String, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
ReversalInformation
null
null
null
null
null
null
null
null
null
null
null
pub fn get_payout_connector_by_name( _connectors: &Connectors, name: &str, connector_type: GetToken, connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>, ) -> CustomResult<Self, errors::ApiErrorResponse> { let connector = Self::convert_connector(name)?; ...
crates/router/src/types/api/connector_mapping.rs
router
function_signature
176
rust
null
null
null
null
get_payout_connector_by_name
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.DisplayAmountOnSdk { "type": "object", "required": [ "net_amount", "order_tax_amount", "shipping_cost" ], "properties": { "net_amount": { "type": "string", "description": "net amount = amount + order_tax_amount + shipping_cost" }, "order...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
139
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "DisplayAmountOnSdk" ]
null
null
null
null
pub trait AuthEventFilterAnalytics: LoadRow<AuthEventFilterRow> {}
crates/analytics/src/auth_events/filters.rs
analytics
trait_definition
16
rust
null
null
AuthEventFilterAnalytics
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Custombilling {}
crates/hyperswitch_connectors/src/connectors/custombilling.rs
hyperswitch_connectors
impl_block
10
rust
null
Custombilling
api::RefundExecute for
impl api::RefundExecute for for Custombilling
null
null
null
null
null
null
null
null
impl ConnectorValidation for Sift { fn validate_mandate_payment( &self, _pm_type: Option<enums::PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { match pm_data { PaymentMethodData::Card(_) => Err(errors::ConnectorError::No...
crates/hyperswitch_connectors/src/connectors/sift.rs
hyperswitch_connectors
impl_block
179
rust
null
Sift
ConnectorValidation for
impl ConnectorValidation for for Sift
null
null
null
null
null
null
null
null
pub async fn find_payment_intent_from_refund_id_type( state: &SessionState, refund_id_type: webhooks::RefundIdType, merchant_context: &domain::MerchantContext, connector_name: &str, ) -> CustomResult<PaymentIntent, errors::ApiErrorResponse> { let db = &*state.store; let refund = match refund_id_...
crates/router/src/utils.rs
router
function_signature
388
rust
null
null
null
null
find_payment_intent_from_refund_id_type
null
null
null
null
null
null
null
pub struct AuthenticationConfirmation;
crates/hyperswitch_domain_models/src/router_flow_types/unified_authentication_service.rs
hyperswitch_domain_models
struct_definition
5
rust
AuthenticationConfirmation
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Hipay {}
crates/hyperswitch_connectors/src/connectors/hipay.rs
hyperswitch_connectors
impl_block
9
rust
null
Hipay
api::PaymentSession for
impl api::PaymentSession for for Hipay
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MobilePaymentResponse { "allOf": [ { "allOf": [ { "$ref": "#/components/schemas/MobilePaymentData" } ], "nullable": true }, { "type": "object" } ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
69
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MobilePaymentResponse" ]
null
null
null
null
RequiredField::ShippingAddressZip.to_tuple(), RequiredField::ShippingAddressCountries(vec!["ALL"]).to_tuple(), RequiredField::ShippingAddressLine1.to_tuple(), RequiredField::ShippingPhone.to_tuple(), RequiredField::ShippingPhoneCountryCode.to_tuple(), RequiredField::Shipp...
crates/payment_methods/src/configs/payment_connector_required_fields.rs#chunk1
payment_methods
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/essentials/authentication.mdx # Type: Doc File --- title: Authentication Types description: Overview of authentication types and authorization keys available in Hyperswitch. --- import Note from '@site/src/components/Note' import Table from '@site/src/components/Table' import Check from '...
api-reference/essentials/authentication.mdx
null
doc_file
1,111
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl ProducerSettings { pub fn validate(&self) -> Result<(), ApplicationError> { common_utils::fp_utils::when(self.lock_key.is_default_or_empty(), || { Err(ApplicationError::InvalidConfigurationValueError( "producer lock key must not be empty".into(), )) }) ...
crates/scheduler/src/settings.rs
scheduler
impl_block
65
rust
null
ProducerSettings
null
impl ProducerSettings
null
null
null
null
null
null
null
null
pub struct TwoFactorAuthStatusResponse { pub totp: bool, pub recovery_code: bool, }
crates/api_models/src/user.rs
api_models
struct_definition
23
rust
TwoFactorAuthStatusResponse
null
null
null
null
null
null
null
null
null
null
null
impl CeleroErrorDetails { pub fn from_transaction_response(response: &CeleroCardResponse, msg: String) -> Self { // Map specific error codes based on common response patterns let decline_reason = Self::map_processor_error(&response.processor_response_code, &msg); Self { error_co...
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
impl_block
464
rust
null
CeleroErrorDetails
null
impl CeleroErrorDetails
null
null
null
null
null
null
null
null
pub struct WellsfargoServerErrorResponse { pub status: Option<String>, pub message: Option<String>, pub reason: Option<Reason>, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
WellsfargoServerErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct FortePaymentsResponse { pub transaction_id: String, pub location_id: Secret<String>, pub action: ForteAction, pub authorization_amount: Option<FloatMajorUnit>, pub authorization_code: String, pub entered_by: String, pub billing_address: Option<BillingAddress>, pub card: Option...
crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
hyperswitch_connectors
struct_definition
80
rust
FortePaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ClientRiskInformationRules { name: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
ClientRiskInformationRules
null
null
null
null
null
null
null
null
null
null
null
pub struct CeleroTransactionResponseData { pub id: String, #[serde(rename = "type")] pub transaction_type: TransactionType, pub amount: i64, pub currency: String, pub response: CeleroPaymentMethodResponse, pub billing_address: Option<CeleroAddressResponse>, pub shipping_address: Option<C...
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
122
rust
CeleroTransactionResponseData
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for HyperswitchVault {}
crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs
hyperswitch_connectors
impl_block
11
rust
null
HyperswitchVault
api::PaymentSession for
impl api::PaymentSession for for HyperswitchVault
null
null
null
null
null
null
null
null
pub struct RazorpayMetaData { pub order_id: String, }
crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
RazorpayMetaData
null
null
null
null
null
null
null
null
null
null
null
pub struct ApplepayHeader { ephemeral_public_key: Secret<String>, public_key_hash: Secret<String>, transaction_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
ApplepayHeader
null
null
null
null
null
null
null
null
null
null
null