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 ClientProcessorInformation { avs: Option<Avs>, card_verification: Option<CardVerification>, processor: Option<ProcessorResponse>, network_transaction_id: Option<Secret<String>>, approval_code: Option<String>, merchant_advice: Option<MerchantAdvice>, response_code: Option<String>, ...
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
126
rust
ClientProcessorInformation
null
null
null
null
null
null
null
null
null
null
null
pub struct Bambora3DsResponse { #[serde(rename = "3d_session_data")] three_d_session_data: Secret<String>, contents: String, }
crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
Bambora3DsResponse
null
null
null
null
null
null
null
null
null
null
null
impl Mandate { /// Returns customer_user_agent_extended with customer_user_agent as fallback pub fn get_user_agent_extended(&self) -> Option<String> { self.customer_user_agent_extended .clone() .or_else(|| self.customer_user_agent.clone()) } }
crates/diesel_models/src/mandate.rs
diesel_models
impl_block
58
rust
null
Mandate
null
impl Mandate
null
null
null
null
null
null
null
null
Documentation: api-reference/intelligent-router-api-reference/success-rate/fetch-success-rate-for-an-entity.mdx # Type: Doc File --- openapi: post /success_rate.SuccessRateCalculator/FetchSuccessRate ---
api-reference/intelligent-router-api-reference/success-rate/fetch-success-rate-for-an-entity.mdx
null
doc_file
45
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub fn is_merchant_connector_account_id_in_connector_mandate_details( &self, profile_id: Option<&id_type::ProfileId>, connector_mandate_details: &CommonMandateReference, ) -> bool { let mca_ids = self .iter() .filter(|mca| { ...
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
180
rust
null
null
null
null
is_merchant_connector_account_id_in_connector_mandate_details
null
null
null
null
null
null
null
File: crates/router/src/types/storage/file.rs pub use diesel_models::file::{ FileMetadata, FileMetadataNew, FileMetadataUpdate, FileMetadataUpdateInternal, };
crates/router/src/types/storage/file.rs
router
full_file
35
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Entity { pub entity_id: String, pub entity_type: common_enums::EntityType, }
crates/api_models/src/user_role.rs
api_models
struct_definition
23
rust
Entity
null
null
null
null
null
null
null
null
null
null
null
pub struct JuspaythreedsserverRefundRequest { pub amount: StringMinorUnit, }
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
JuspaythreedsserverRefundRequest
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Worldpayxml { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemen...
crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
hyperswitch_connectors
impl_block
211
rust
null
Worldpayxml
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Worldpayxml
null
null
null
null
null
null
null
null
File: crates/router/src/types/storage/ephemeral_key.rs #[cfg(feature = "v2")] pub use diesel_models::ephemeral_key::{ClientSecretType, ClientSecretTypeNew}; pub use diesel_models::ephemeral_key::{EphemeralKey, EphemeralKeyNew}; #[cfg(feature = "v2")] use crate::db::errors; #[cfg(feature = "v2")] use crate::types::tra...
crates/router/src/types/storage/ephemeral_key.rs
router
full_file
300
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_optional_by_address_id( conn: &PgPooledConn, address_id: &str, ) -> StorageResult<Option<Self>> { generics::generic_find_by_id_optional::<<Self as HasTable>::Table, _, _>( conn, address_id.to_owned(), ) .await }
crates/diesel_models/src/query/address.rs
diesel_models
function_signature
71
rust
null
null
null
null
find_optional_by_address_id
null
null
null
null
null
null
null
pub async fn connector_update( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::MerchantConnectorAccountId>, json_payload: web::Json<api_models::admin::MerchantConnectorUpdate>, ) -> HttpResponse { let flow = Flow::MerchantConnectorsUpdate; let id = path.into_...
crates/router/src/routes/admin.rs
router
function_signature
213
rust
null
null
null
null
connector_update
null
null
null
null
null
null
null
impl Capturable for PaymentsApproveData {}
crates/router/src/types.rs
router
impl_block
9
rust
null
PaymentsApproveData
Capturable for
impl Capturable for for PaymentsApproveData
null
null
null
null
null
null
null
null
impl api::PaymentCapture for CtpMastercard {}
crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs
hyperswitch_connectors
impl_block
11
rust
null
CtpMastercard
api::PaymentCapture for
impl api::PaymentCapture for for CtpMastercard
null
null
null
null
null
null
null
null
impl ResourceId { /// Get string representation of enclosed ID type pub fn to_str(&self) -> &str { match self { Self::Payment(id) => id.get_string_repr(), Self::Customer(id) => id.get_string_repr(), Self::PaymentMethodSession(id) => id.get_string_repr(), } ...
crates/common_utils/src/types/authentication.rs
common_utils
impl_block
73
rust
null
ResourceId
null
impl ResourceId
null
null
null
null
null
null
null
null
impl ConnectorValidation for HyperswitchVault {}
crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs
hyperswitch_connectors
impl_block
9
rust
null
HyperswitchVault
ConnectorValidation for
impl ConnectorValidation for for HyperswitchVault
null
null
null
null
null
null
null
null
pub struct SamsungPayTokenData { #[serde(rename = "type")] pub three_ds_type: Option<String>, pub version: String, pub data: Secret<String>, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
38
rust
SamsungPayTokenData
null
null
null
null
null
null
null
null
null
null
null
pub struct NoonApplePay { payment_info: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
NoonApplePay
null
null
null
null
null
null
null
null
null
null
null
pub struct ConnectorParamsWithKeys { /// base url pub base_url: String, /// api key pub api_key: Secret<String>, /// merchant ID pub merchant_id: Secret<String>, }
crates/hyperswitch_domain_models/src/connector_endpoints.rs
hyperswitch_domain_models
struct_definition
46
rust
ConnectorParamsWithKeys
null
null
null
null
null
null
null
null
null
null
null
pub struct CustomerDeleteResponse { /// The identifier for the customer object #[schema(value_type = String, max_length = 255, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")] pub customer_id: id_type::CustomerId, /// Whether customer was deleted or not #[schema(example = false)] pub customer_delete...
crates/api_models/src/customers.rs
api_models
struct_definition
136
rust
CustomerDeleteResponse
null
null
null
null
null
null
null
null
null
null
null
impl PayoutsInterface for KafkaStore { type Error = errors::StorageError; async fn find_payout_by_merchant_id_payout_id( &self, merchant_id: &id_type::MerchantId, payout_id: &id_type::PayoutId, storage_scheme: MerchantStorageScheme, ) -> CustomResult<storage::Payouts, errors:...
crates/router/src/db/kafka_store.rs
router
impl_block
1,128
rust
null
KafkaStore
PayoutsInterface for
impl PayoutsInterface for for KafkaStore
null
null
null
null
null
null
null
null
pub fn get_inner_db_merchant_connector_account(&self) -> Option<&MerchantConnectorAccount> { match self { Self::MerchantConnectorAccount(merchant_connector_account) => { Some(merchant_connector_account) } Self::MerchantConnectorDetails(_) => None, } ...
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
60
rust
null
null
null
null
get_inner_db_merchant_connector_account
null
null
null
null
null
null
null
impl Refund for Signifyd {}
crates/hyperswitch_connectors/src/connectors/signifyd.rs
hyperswitch_connectors
impl_block
8
rust
null
Signifyd
Refund for
impl Refund for for Signifyd
null
null
null
null
null
null
null
null
pub struct TokenDetails { pub exp_month: Secret<String>, pub exp_year: Secret<String>, }
crates/router/src/types/payment_methods.rs
router
struct_definition
22
rust
TokenDetails
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/zen.rs use std::str::FromStr; use cards::CardNumber; use common_utils::{pii::Email, types::MinorUnit}; use hyperswitch_domain_models::types::OrderDetailsWithAmount; use masking::Secret; use router::types::{self, domain, storage::enums}; use crate::{ connector_auth, utils:...
crates/router/tests/connectors/zen.rs
router
full_file
4,244
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_pm_link_config_as_value( &self, ) -> CustomResult<Option<serde_json::Value>, errors::ParsingError> { self.pm_collect_link_config .as_ref() .map(|pm_collect_link_config| pm_collect_link_config.encode_to_value()) .transpose() }
crates/api_models/src/admin.rs
api_models
function_signature
66
rust
null
null
null
null
get_pm_link_config_as_value
null
null
null
null
null
null
null
impl super::api_event::events::ApiLogsFilterAnalytics for ClickhouseClient {}
crates/analytics/src/clickhouse.rs
analytics
impl_block
17
rust
null
ClickhouseClient
super::api_event::events::ApiLogsFilterAnalytics for
impl super::api_event::events::ApiLogsFilterAnalytics for for ClickhouseClient
null
null
null
null
null
null
null
null
pub struct AddressNew { pub address_id: String, pub city: Option<String>, pub country: Option<enums::CountryAlpha2>, pub line1: Option<Encryption>, pub line2: Option<Encryption>, pub line3: Option<Encryption>, pub state: Option<Encryption>, pub zip: Option<Encryption>, pub first_name...
crates/diesel_models/src/address.rs
diesel_models
struct_definition
195
rust
AddressNew
null
null
null
null
null
null
null
null
null
null
null
pub async fn reset_tracking_id( state: web::Data<AppState>, http_req: HttpRequest, json_payload: web::Json<api_types::ResetTrackingIdRequest>, ) -> HttpResponse { let flow = Flow::ResetTrackingId; let req_payload = json_payload.into_inner(); Box::pin(api::server_wrap( flow.clone(), ...
crates/router/src/routes/connector_onboarding.rs
router
function_signature
132
rust
null
null
null
null
reset_tracking_id
null
null
null
null
null
null
null
pub struct AmountOfMoney { amount: MinorUnit, currency_code: String, }
crates/hyperswitch_connectors/src/connectors/payone/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
AmountOfMoney
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/organization.rs Public functions: 6 Public structs: 6 use common_utils::{id_type, pii}; use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable}; #[cfg(feature = "v1")] use crate::schema::organization; #[cfg(feature = "v2")] use crate::schema_v2::organization; pub tr...
crates/diesel_models/src/organization.rs
diesel_models
full_file
2,134
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentsResponse { id: String, amount: Option<MinorUnit>, currency: Option<String>, action_id: Option<String>, status: CheckoutPaymentStatus, #[serde(rename = "_links")] links: Links, balances: Option<Balances>, reference: Option<String>, response_code: Option<String>,...
crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
hyperswitch_connectors
struct_definition
93
rust
PaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_post_session_tokens.rs Public structs: 1 use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use common_utils::types::keymanager::KeyManagerState; use error_stack::ResultExt; use masking::PeekInterface; use router_...
crates/router/src/core/payments/operations/payment_post_session_tokens.rs
router
full_file
2,254
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CartDetails { line_items: Vec<String>, delivery_options: Vec<DeliveryOptions>, }
crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
CartDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct RazorpayOrderRequest { pub amount: MinorUnit, pub currency: enums::Currency, pub receipt: String, pub partial_payment: Option<bool>, pub first_payment_min_amount: Option<MinorUnit>, pub notes: Option<RazorpayNotes>, }
crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs
hyperswitch_connectors
struct_definition
59
rust
RazorpayOrderRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct ResetPasswordRequest { pub token: Secret<String>, pub password: Secret<String>, }
crates/api_models/src/user.rs
api_models
struct_definition
21
rust
ResetPasswordRequest
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentId { "type": "string", "description": "A type for payment_id that can be used for payment ids" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
38
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentId" ]
null
null
null
null
impl api::PaymentSession for Flexiti {}
crates/hyperswitch_connectors/src/connectors/flexiti.rs
hyperswitch_connectors
impl_block
9
rust
null
Flexiti
api::PaymentSession for
impl api::PaymentSession for for Flexiti
null
null
null
null
null
null
null
null
impl Server { pub fn validate(&self) -> Result<(), errors::DrainerError> { common_utils::fp_utils::when(self.host.is_default_or_empty(), || { Err(errors::DrainerError::ConfigParsingError( "server host must not be empty".into(), )) }) } }
crates/drainer/src/settings.rs
drainer
impl_block
67
rust
null
Server
null
impl Server
null
null
null
null
null
null
null
null
File: crates/router/src/utils/user.rs Public functions: 20 use std::sync::Arc; #[cfg(feature = "v1")] use api_models::admin as admin_api; use api_models::user as user_api; #[cfg(feature = "v1")] use common_enums::connector_enums; use common_enums::UserAuthType; #[cfg(feature = "v1")] use common_utils::ext_traits::Va...
crates/router/src/utils/user.rs
router
full_file
3,729
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct NoonErrorResponse { pub result_code: u32, pub message: String, pub class_description: String, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
NoonErrorResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/merchant_connector_account.rs Public functions: 4 Public structs: 9 #[cfg(feature = "v2")] use std::collections::HashMap; use std::fmt::Debug; use common_utils::{encryption::Encryption, id_type, pii}; #[cfg(feature = "v2")] use diesel::{sql_types::Jsonb, AsExpression}; use diesel::{As...
crates/diesel_models/src/merchant_connector_account.rs
diesel_models
full_file
3,064
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PayoutListFilters { pub connector: Vec<PayoutConnectors>, pub currency: Vec<storage_enums::Currency>, pub status: Vec<storage_enums::PayoutStatus>, pub payout_method: Vec<storage_enums::PayoutType>, }
crates/hyperswitch_domain_models/src/payouts/payout_attempt.rs
hyperswitch_domain_models
struct_definition
59
rust
PayoutListFilters
null
null
null
null
null
null
null
null
null
null
null
pub struct GroupInfo { pub group: PermissionGroup, pub description: &'static str, }
crates/api_models/src/user_role.rs
api_models
struct_definition
21
rust
GroupInfo
null
null
null
null
null
null
null
null
null
null
null
impl api::payments::PaymentsCompleteAuthorize for Prophetpay {}
crates/hyperswitch_connectors/src/connectors/prophetpay.rs
hyperswitch_connectors
impl_block
12
rust
null
Prophetpay
api::payments::PaymentsCompleteAuthorize for
impl api::payments::PaymentsCompleteAuthorize for for Prophetpay
null
null
null
null
null
null
null
null
pub async fn store_card_and_token_in_locker( &self, network_token: &NetworkTokenizationResponse, card: &domain::CardDetail, customer_id: &id_type::CustomerId, ) -> RouterResult<StoreLockerResponse> { let stored_card_resp = self.store_card_in_locker(card, customer_id).await?; ...
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
function_signature
158
rust
null
null
null
null
store_card_and_token_in_locker
null
null
null
null
null
null
null
pub async fn verify_recovery_code( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<user_api::VerifyRecoveryCodeRequest>, ) -> HttpResponse { let flow = Flow::RecoveryCodeVerify; Box::pin(api::server_wrap( flow, state.clone(), &req, json_payload.i...
crates/router/src/routes/user.rs
router
function_signature
137
rust
null
null
null
null
verify_recovery_code
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ApplePayShippingContactFields { "type": "array", "items": { "$ref": "#/components/schemas/ApplePayAddressParameters" } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
46
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ApplePayShippingContactFields" ]
null
null
null
null
impl api::Payment for Checkbook {}
crates/hyperswitch_connectors/src/connectors/checkbook.rs
hyperswitch_connectors
impl_block
8
rust
null
Checkbook
api::Payment for
impl api::Payment for for Checkbook
null
null
null
null
null
null
null
null
/// Get external authentication request poll id pub fn get_external_authentication_request_poll_id(&self) -> String { format!("external_authentication_{}", self.get_string_repr()) }
crates/common_utils/src/id_type/payment.rs
common_utils
function_signature
37
rust
null
null
null
null
get_external_authentication_request_poll_id
null
null
null
null
null
null
null
pub struct SantanderPixQRCodeRequest { #[serde(rename = "calendario")] pub calender: SantanderCalendar, #[serde(rename = "devedor")] pub debtor: SantanderDebtor, #[serde(rename = "valor")] pub value: SantanderValue, #[serde(rename = "chave")] pub key: Secret<String>, #[serde(rename =...
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
126
rust
SantanderPixQRCodeRequest
null
null
null
null
null
null
null
null
null
null
null
impl<T: DatabaseStore + 'static> PaymentMethodsStorageInterface for RouterStore<T> {}
crates/payment_methods/src/state.rs
payment_methods
impl_block
19
rust
null
RouterStore
PaymentMethodsStorageInterface for
impl PaymentMethodsStorageInterface for for RouterStore
null
null
null
null
null
null
null
null
impl IncomingWebhook for Wellsfargopayout { fn get_webhook_object_reference_id( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<ObjectReferenceId, ConnectorError> { Err(report!(ConnectorError::WebhooksNotImplemented)) } fn get_webhook_event_type( &...
crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs
hyperswitch_connectors
impl_block
176
rust
null
Wellsfargopayout
IncomingWebhook for
impl IncomingWebhook for for Wellsfargopayout
null
null
null
null
null
null
null
null
pub struct CheckoutOptions { pub validate_cart: Option<bool>, pub tax_tables: TaxObject, }
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
CheckoutOptions
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CountryAlpha2 { "type": "string", "enum": [ "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
1,035
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CountryAlpha2" ]
null
null
null
null
OpenAPI Block Path: paths."/disputes/{dispute_id}" { "get": { "tags": [ "Disputes" ], "summary": "Disputes - Retrieve Dispute", "description": "Retrieves a dispute", "operationId": "Retrieve a Dispute", "parameters": [ { "name": "dispute_id", "in": "path", "...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
296
.json
null
null
null
null
null
openapi_spec
paths
[ "/disputes/{dispute_id}" ]
null
null
null
null
File: crates/api_models/src/mandates.rs Public functions: 1 Public structs: 7 use common_types::payments as common_payments_types; use masking::Secret; use serde::{Deserialize, Serialize}; use time::PrimitiveDateTime; use utoipa::ToSchema; use crate::enums as api_enums; #[derive(Default, Debug, Deserialize, Serial...
crates/api_models/src/mandates.rs
api_models
full_file
1,761
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CardTokenAdditionalData { "type": "object", "required": [ "card_holder_name" ], "properties": { "card_holder_name": { "type": "string", "description": "The card holder's name", "example": "John Test" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
77
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CardTokenAdditionalData" ]
null
null
null
null
pub struct AccessTokenRequestData { pub app_id: Secret<String>, pub id: Option<Secret<String>>, pub authentication_token: Option<AccessTokenAuthenticationResponse>, // Add more keys if required }
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
43
rust
AccessTokenRequestData
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Wellsfargo {}
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs
hyperswitch_connectors
impl_block
10
rust
null
Wellsfargo
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Wellsfargo
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/errors.rs pub mod api_error_response;
crates/hyperswitch_domain_models/src/errors.rs
hyperswitch_domain_models
full_file
19
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct DummyConnector<const T: u8> { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/dummyconnector.rs
hyperswitch_connectors
struct_definition
32
rust
DummyConnector
null
null
null
null
null
null
null
null
null
null
null
impl StorageError { pub fn is_db_not_found(&self) -> bool { match self { Self::DatabaseError(err) => matches!(err.current_context(), DatabaseError::NotFound), Self::ValueNotFound(_) => true, Self::RedisError(err) => matches!(err.current_context(), RedisError::NotFound), ...
crates/storage_impl/src/errors.rs
storage_impl
impl_block
141
rust
null
StorageError
null
impl StorageError
null
null
null
null
null
null
null
null
pub async fn merchant_account_kv_status( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::MerchantId>, ) -> HttpResponse { let flow = Flow::ConfigKeyFetch; let merchant_id = path.into_inner(); api::server_wrap( flow, state, &req, ...
crates/router/src/routes/admin.rs
router
function_signature
128
rust
null
null
null
null
merchant_account_kv_status
null
null
null
null
null
null
null
pub struct Browser { java_enabled: bool, javascript_enabled: bool, user_agent: String, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
Browser
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/routes/mandates.rs Public functions: 3 use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, mandate}, services::{api, authentication as auth, authorization::permissions::Permission}, ...
crates/router/src/routes/mandates.rs
router
full_file
800
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn run_producer_flow<T>( state: &T, settings: &SchedulerSettings, ) -> CustomResult<(), errors::ProcessTrackerError> where T: SchedulerSessionState, { lock_acquire_release::<_, _, _>(state.get_db().as_scheduler(), settings, move || async { let tasks = fetch_producer_tasks(state.get_db(...
crates/scheduler/src/producer.rs
scheduler
function_signature
154
rust
null
null
null
null
run_producer_flow
null
null
null
null
null
null
null
pub struct ThreeDsMethodData { pub three_ds_method_data_submission: bool, pub three_ds_method_data: String, pub three_ds_method_url: Option<String>, }
crates/hyperswitch_domain_models/src/router_request_types/authentication.rs
hyperswitch_domain_models
struct_definition
37
rust
ThreeDsMethodData
null
null
null
null
null
null
null
null
null
null
null
pub struct EbanxPayoutResponse { payout: EbanxPayoutResponseDetails, }
crates/hyperswitch_connectors/src/connectors/ebanx/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
EbanxPayoutResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn generic_find_by_id<T, Pk, R>(conn: &PgPooledConn, id: Pk) -> StorageResult<R> where T: FindDsl<Pk> + HasTable<Table = T> + LimitDsl + Table + 'static, Find<T, Pk>: LimitDsl + QueryFragment<Pg> + RunQueryDsl<PgConnection> + Send + 'static, Limit<Find<T, Pk>>: LoadQuery<'static, PgConnection, R>,...
crates/diesel_models/src/query/generics.rs
diesel_models
function_signature
148
rust
null
null
null
null
generic_find_by_id
null
null
null
null
null
null
null
impl api::Payment for Gocardless {}
crates/hyperswitch_connectors/src/connectors/gocardless.rs
hyperswitch_connectors
impl_block
9
rust
null
Gocardless
api::Payment for
impl api::Payment for for Gocardless
null
null
null
null
null
null
null
null
impl ConnectorValidation for Threedsecureio {}
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
hyperswitch_connectors
impl_block
9
rust
null
Threedsecureio
ConnectorValidation for
impl ConnectorValidation for for Threedsecureio
null
null
null
null
null
null
null
null
impl api::PaymentSync for Braintree {}
crates/hyperswitch_connectors/src/connectors/braintree.rs
hyperswitch_connectors
impl_block
9
rust
null
Braintree
api::PaymentSync for
impl api::PaymentSync for for Braintree
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AchBankDebitAdditionalData { "type": "object", "required": [ "account_number", "routing_number" ], "properties": { "account_number": { "type": "string", "description": "Partially masked account number for ach bank debit payment", "example": "0...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
340
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AchBankDebitAdditionalData" ]
null
null
null
null
pub fn get_reqwest_client( &self, client_certificate: Option<masking::Secret<String>>, client_certificate_key: Option<masking::Secret<String>>, ) -> CustomResult<reqwest::Client, ApiClientError> { match (client_certificate, client_certificate_key) { (Some(certificate), So...
crates/router/src/services/api/client.rs
router
function_signature
178
rust
null
null
null
null
get_reqwest_client
null
null
null
null
null
null
null
pub fn set_event(&mut self, event: routing_events::RoutingEvent) { self.event = Some(event); }
crates/router/src/core/payments/routing/utils.rs
router
function_signature
26
rust
null
null
null
null
set_event
null
null
null
null
null
null
null
impl AttemptStatus { pub fn is_terminal_status(self) -> bool { match self { Self::RouterDeclined | Self::Charged | Self::AutoRefunded | Self::Voided | Self::VoidedPostCharge | Self::VoidFailed | Self::CaptureFailed ...
crates/common_enums/src/enums.rs
common_enums
impl_block
264
rust
null
AttemptStatus
null
impl AttemptStatus
null
null
null
null
null
null
null
null
Web Documentation: E-commerce Platform Plugins by Hyperswitch | Hyperswitch # Type: Web Doc Hyperswitch plugins enable businesses to extend and enhance the functionality of leading E-commerce platforms, offering seamless integration and advanced capabilities for payment optimization, user experience, and analytics. Fr...
https://docs.hyperswitch.io/explore-hyperswitch/e-commerce-platform-plugins
null
web_doc_file
205
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/explore-hyperswitch/e-commerce-platform-plugins
E-commerce Platform Plugins by Hyperswitch | Hyperswitch
null
/// Should the connector be called for this operation pub trait ShouldCallConnector { fn should_call_connector( &self, intent_status: common_enums::IntentStatus, force_sync: Option<bool>, ) -> bool; }
crates/router/src/core/payments/operations.rs
router
trait_definition
50
rust
null
null
ShouldCallConnector
null
null
null
null
null
null
null
null
null
impl api::PaymentsCompleteAuthorize for Bambora {}
crates/hyperswitch_connectors/src/connectors/bambora.rs
hyperswitch_connectors
impl_block
11
rust
null
Bambora
api::PaymentsCompleteAuthorize for
impl api::PaymentsCompleteAuthorize for for Bambora
null
null
null
null
null
null
null
null
pub struct TaxjarRouterData<T> { pub amount: FloatMajorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc. pub order_amount: FloatMajorUnit, pub shipping: FloatMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/taxjar/transformers.rs
hyperswitch_connectors
struct_definition
67
rust
TaxjarRouterData
null
null
null
null
null
null
null
null
null
null
null
pub trait PayoutAttemptInterface {}
crates/hyperswitch_domain_models/src/lib.rs
hyperswitch_domain_models
trait_definition
7
rust
null
null
PayoutAttemptInterface
null
null
null
null
null
null
null
null
null
pub struct DeutschebankThreeDSInitializeResponse { outcome: DeutschebankThreeDSInitializeResponseOutcome, challenge_required: Option<DeutschebankThreeDSInitializeResponseChallengeRequired>, processed: Option<DeutschebankThreeDSInitializeResponseProcessed>, }
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
DeutschebankThreeDSInitializeResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RealTimePaymentDataResponse { "allOf": [ { "allOf": [ { "$ref": "#/components/schemas/RealTimePaymentData" } ], "nullable": true }, { "type": "object" } ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
72
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RealTimePaymentDataResponse" ]
null
null
null
null
pub trait PaymentIntentFilterAnalytics: LoadRow<PaymentIntentFilterRow> {}
crates/analytics/src/payment_intents/filters.rs
analytics
trait_definition
16
rust
null
null
PaymentIntentFilterAnalytics
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/blocklist/post-blocklisttoggle.mdx # Type: Doc File --- openapi: post /blocklist/toggle ---
api-reference/v1/blocklist/post-blocklisttoggle.mdx
null
doc_file
33
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct OrderErrorDetails { pub issue: String, pub description: String, pub value: Option<String>, pub field: Option<String>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
OrderErrorDetails
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Globalpay {}
crates/hyperswitch_connectors/src/connectors/globalpay.rs
hyperswitch_connectors
impl_block
10
rust
null
Globalpay
api::RefundSync for
impl api::RefundSync for for Globalpay
null
null
null
null
null
null
null
null
impl ApiError { pub fn new( sub_code: &'static str, error_identifier: u16, error_message: impl ToString, extra: Option<Extra>, ) -> Self { Self { sub_code, error_identifier, error_message: error_message.to_string(), extra, ...
crates/api_models/src/errors/types.rs
api_models
impl_block
88
rust
null
ApiError
null
impl ApiError
null
null
null
null
null
null
null
null
pub struct ErrorInfo { pub http_error_code: i32, pub message: Option<String>, pub token_external_error: Option<bool>, pub token_trace_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/tokenio/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
ErrorInfo
null
null
null
null
null
null
null
null
null
null
null
pub fn get_attempt_merchant_connector_account_id( &self, ) -> CustomResult< id_type::MerchantConnectorAccountId, errors::api_error_response::ApiErrorResponse, > { let merchant_connector_id = self .merchant_connector_id .clone() .get_required_va...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
106
rust
null
null
null
null
get_attempt_merchant_connector_account_id
null
null
null
null
null
null
null
pub struct ErrorResponse { pub error: ApiErrorResponse, }
crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs
hyperswitch_connectors
struct_definition
12
rust
ErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl Profile { pub async fn update_by_profile_id( self, conn: &PgPooledConn, business_profile: ProfileUpdateInternal, ) -> StorageResult<Self> { match generics::generic_update_by_id::<<Self as HasTable>::Table, _, _, _>( conn, self.get_id().to_owned(), ...
crates/diesel_models/src/query/business_profile.rs
diesel_models
impl_block
654
rust
null
Profile
null
impl Profile
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Volt {}
crates/hyperswitch_connectors/src/connectors/volt.rs
hyperswitch_connectors
impl_block
8
rust
null
Volt
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Volt
null
null
null
null
null
null
null
null
impl PaymentMethodType { pub fn should_check_for_customer_saved_payment_method_type(self) -> bool { matches!( self, Self::ApplePay | Self::GooglePay | Self::SamsungPay | Self::Paypal | Self::Klarna ) } pub fn to_display_name(&self) -> String { let display_name...
crates/common_enums/src/enums.rs
common_enums
impl_block
1,380
rust
null
PaymentMethodType
null
impl PaymentMethodType
null
null
null
null
null
null
null
null
pub struct Barclaycard { amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/barclaycard.rs
hyperswitch_connectors
struct_definition
28
rust
Barclaycard
null
null
null
null
null
null
null
null
null
null
null
pub async fn perform_payment_ops( &self, state: &SessionState, parent_payment_method_token: Option<String>, pma: &api::CustomerPaymentMethodResponseItem, pm_list_context: PaymentMethodListContext, ) -> RouterResult<()> { let token = parent_payment_method_token ...
crates/router/src/core/payment_methods.rs
router
function_signature
196
rust
null
null
null
null
perform_payment_ops
null
null
null
null
null
null
null
pub struct PlaidRouterData<T> { pub amount: FloatMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
PlaidRouterData
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/authentication.rs Public functions: 3 pub(crate) mod utils; pub mod transformers; pub mod types; use api_models::payments; use common_enums::Currency; use common_utils::errors::CustomResult; use error_stack::ResultExt; use masking::ExposeInterface; use super::errors::StorageErrorExt; u...
crates/router/src/core/authentication.rs
router
full_file
2,001
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Opayo {}
crates/hyperswitch_connectors/src/connectors/opayo.rs
hyperswitch_connectors
impl_block
9
rust
null
Opayo
api::PaymentCapture for
impl api::PaymentCapture for for Opayo
null
null
null
null
null
null
null
null