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::ConnectorAccessToken for Checkbook {}
crates/hyperswitch_connectors/src/connectors/checkbook.rs
hyperswitch_connectors
impl_block
9
rust
null
Checkbook
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Checkbook
null
null
null
null
null
null
null
null
File: crates/router/build.rs fn main() { // Set thread stack size to 10 MiB for debug builds // Reference: https://doc.rust-lang.org/std/thread/#stack-size #[cfg(debug_assertions)] println!("cargo:rustc-env=RUST_MIN_STACK=10485760"); // 10 * 1024 * 1024 = 10 MiB #[cfg(feature = "vergen")] rout...
crates/router/build.rs
router
full_file
118
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct FluidData { value: Secret<String>, #[serde(skip_serializing_if = "Option::is_none")] descriptor: Option<String>, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
FluidData
null
null
null
null
null
null
null
null
null
null
null
impl PaymentCapture for Riskified {}
crates/hyperswitch_connectors/src/connectors/riskified.rs
hyperswitch_connectors
impl_block
7
rust
null
Riskified
PaymentCapture for
impl PaymentCapture for for Riskified
null
null
null
null
null
null
null
null
impl SingleUsePaymentMethodToken { pub fn get_single_use_token_from_payment_method_token( token: Secret<String>, mca_id: id_type::MerchantConnectorAccountId, ) -> Self { Self { token, merchant_connector_id: mca_id, } } }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
impl_block
62
rust
null
SingleUsePaymentMethodToken
null
impl SingleUsePaymentMethodToken
null
null
null
null
null
null
null
null
pub struct StripebillingInvoiceBody { #[serde(rename = "type")] pub event_type: StripebillingEventType, pub data: StripebillingInvoiceData, }
crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
StripebillingInvoiceBody
null
null
null
null
null
null
null
null
null
null
null
pub struct SupportedPaymentMethodTypesForMandate( pub HashMap<enums::PaymentMethodType, SupportedConnectorsForMandate>, );
crates/payment_methods/src/configs/settings.rs
payment_methods
struct_definition
30
rust
SupportedPaymentMethodTypesForMandate
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for UnifiedAuthenticationService {}
crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs
hyperswitch_connectors
impl_block
10
rust
null
UnifiedAuthenticationService
api::PaymentAuthorize for
impl api::PaymentAuthorize for for UnifiedAuthenticationService
null
null
null
null
null
null
null
null
pub struct MultiAuthKey { pub api_key: Secret<String>, pub key1: Secret<String>, pub api_secret: Secret<String>, pub key2: Secret<String>, }
crates/test_utils/src/connector_auth.rs
test_utils
struct_definition
39
rust
MultiAuthKey
null
null
null
null
null
null
null
null
null
null
null
impl<T> EncryptedJsonType<T> { pub fn inner(&self) -> &T { &self.0 } pub fn into_inner(self) -> T { self.0 } }
crates/hyperswitch_domain_models/src/type_encryption.rs
hyperswitch_domain_models
impl_block
47
rust
null
EncryptedJsonType
null
impl EncryptedJsonType
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Taxjar {}
crates/hyperswitch_connectors/src/connectors/taxjar.rs
hyperswitch_connectors
impl_block
9
rust
null
Taxjar
api::PaymentCapture for
impl api::PaymentCapture for for Taxjar
null
null
null
null
null
null
null
null
pub async fn check_totp_in_redis(state: &SessionState, user_id: &str) -> UserResult<bool> { let redis_conn = super::get_redis_connection_for_global_tenant(state)?; let key = format!("{}{}", consts::user::REDIS_TOTP_PREFIX, user_id); redis_conn .exists::<()>(&key.into()) .await .chang...
crates/router/src/utils/user/two_factor_auth.rs
router
function_signature
89
rust
null
null
null
null
check_totp_in_redis
null
null
null
null
null
null
null
File: crates/diesel_models/src/query.rs pub mod address; pub mod api_keys; pub mod blocklist_lookup; pub mod business_profile; mod capture; pub mod cards_info; pub mod configs; pub mod authentication; pub mod authorization; pub mod blocklist; pub mod blocklist_fingerprint; pub mod callback_mapper; pub mod customers; ...
crates/diesel_models/src/query.rs
diesel_models
full_file
249
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthenticationCreateRequest { /// The unique identifier for this authentication. #[schema(value_type = Option<String>, example = "auth_mbabizu24mvu3mela5njyhpit4")] pub authentication_id: Option<id_type::AuthenticationId>, /// The business profile that is associated with this authentication ...
crates/api_models/src/authentication.rs
api_models
struct_definition
425
rust
AuthenticationCreateRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn payments_complete_authorize_redirect_with_creds_identifier( state: web::Data<app::AppState>, req: actix_web::HttpRequest, json_payload: Option<web::Form<serde_json::Value>>, path: web::Path<( common_utils::id_type::PaymentId, common_utils::id_type::MerchantId, String...
crates/router/src/routes/payments.rs
router
function_signature
84
rust
null
null
null
null
payments_complete_authorize_redirect_with_creds_identifier
null
null
null
null
null
null
null
pub struct PlaidPaymentsResponse { status: PlaidPaymentStatus, payment_id: String, }
crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
PlaidPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct AciWebhookAuthenticationDetails { #[serde(rename = "entityId")] pub entity_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
AciWebhookAuthenticationDetails
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentData { "type": "object", "description": "Represents the payment data used in the 3DS decision rule.", "required": [ "amount", "currency" ], "properties": { "amount": { "type": "integer", "format": "int64", "description": "The amount o...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
125
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentData" ]
null
null
null
null
pub trait Metadata: erased_serde::Serialize + Any + Send + Sync + fmt::Debug {}
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
trait_definition
20
rust
null
null
Metadata
null
null
null
null
null
null
null
null
null
pub struct FlexitiAccessTokenResponse { access_token: Secret<String>, expires_in: i64, }
crates/hyperswitch_connectors/src/connectors/flexiti/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
FlexitiAccessTokenResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct AciRedirectionData { method: Option<Method>, parameters: Vec<Parameters>, url: Url, }
crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
AciRedirectionData
null
null
null
null
null
null
null
null
null
null
null
"Kyustendil Province" => Ok(Self::KyustendilProvince), "Lovech Province" => Ok(Self::LovechProvince), "Montana Province" => Ok(Self::MontanaProvince), "Pazardzhik Province" => Ok(Self::PazardzhikProvince), "Pernik Province" => Ok(Self::Pern...
crates/hyperswitch_connectors/src/utils.rs#chunk6
hyperswitch_connectors
chunk
8,192
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PayloadWebhookEvent { pub object: String, // Added to match actual webhook structure pub trigger: PayloadWebhooksTrigger, pub webhook_id: String, pub triggered_at: String, // Added to match actual webhook structure // Webhooks Payload pub triggered_on: PayloadEventDetails, pub url...
crates/hyperswitch_connectors/src/connectors/payload/responses.rs
hyperswitch_connectors
struct_definition
74
rust
PayloadWebhookEvent
null
null
null
null
null
null
null
null
null
null
null
File: crates/openapi/src/lib.rs pub mod routes;
crates/openapi/src/lib.rs
openapi
full_file
13
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Cybersource { fn id(&self) -> &'static str { "cybersource" } fn common_get_content_type(&self) -> &'static str { "application/json;charset=utf-8" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.cybersource.base_url.as_re...
crates/hyperswitch_connectors/src/connectors/cybersource.rs
hyperswitch_connectors
impl_block
1,032
rust
null
Cybersource
ConnectorCommon for
impl ConnectorCommon for for Cybersource
null
null
null
null
null
null
null
null
impl PayoutsNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Payouts> { generics::generic_insert(conn, self).await } }
crates/diesel_models/src/query/payouts.rs
diesel_models
impl_block
43
rust
null
PayoutsNew
null
impl PayoutsNew
null
null
null
null
null
null
null
null
pub struct VaultRetrieveResponse { pub data: domain::PaymentMethodVaultingData, }
crates/router/src/types/payment_methods.rs
router
struct_definition
19
rust
VaultRetrieveResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct FrmConfigsObject { pub frm_enabled_pm: Option<PaymentMethod>, pub frm_enabled_gateway: Option<api_models::enums::Connector>, pub frm_preferred_flow_type: api_enums::FrmPreferredFlowTypes, }
crates/router/src/core/fraud_check/types.rs
router
struct_definition
51
rust
FrmConfigsObject
null
null
null
null
null
null
null
null
null
null
null
pub struct BamboraPaymentsCaptureRequest { amount: FloatMajorUnit, payment_method: PaymentMethod, }
crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
BamboraPaymentsCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalRedirection { /// paypal's email address pub email: Option<Email>, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
22
rust
PaypalRedirection
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.IntentStatus { "type": "string", "description": "Represents the overall status of a payment intent.\nThe status transitions through various states depending on the payment method, confirmation, capture method, and any subsequent actions (like customer authentication or manual ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
161
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "IntentStatus" ]
null
null
null
null
pub struct CreateThemeRequest { pub lineage: ThemeLineage, pub theme_name: String, pub theme_data: ThemeData, pub email_config: Option<EmailThemeConfig>, }
crates/api_models/src/user/theme.rs
api_models
struct_definition
40
rust
CreateThemeRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct RoutingLinkWrapper { pub profile_id: common_utils::id_type::ProfileId, pub algorithm_id: RoutingAlgorithmId, }
crates/api_models/src/routing.rs
api_models
struct_definition
30
rust
RoutingLinkWrapper
null
null
null
null
null
null
null
null
null
null
null
pub fn get_co_badged_card_data(&self) -> Option<payment_methods::CoBadgedCardData> { if let Self::Card(card) = self { card.co_badged_card_data.clone() } else { None } }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
function_signature
55
rust
null
null
null
null
get_co_badged_card_data
null
null
null
null
null
null
null
impl CardInfoBuilder<CardInfoAdd> { fn set_added_card_info( self, card_info: card_info_models::CardInfo, ) -> CardInfoBuilder<CardInfoResponse> { CardInfoBuilder { state: std::marker::PhantomData, card_info: Some(card_info), } } }
crates/router/src/core/cards_info.rs
router
impl_block
70
rust
null
CardInfoBuilder
null
impl CardInfoBuilder
null
null
null
null
null
null
null
null
pub async fn customers_list( state: web::Data<AppState>, req: HttpRequest, query: web::Query<customers::CustomerListRequest>, ) -> HttpResponse { let flow = Flow::CustomersList; let payload = query.into_inner(); Box::pin(api::server_wrap( flow, state, &req, paylo...
crates/router/src/routes/customers.rs
router
function_signature
199
rust
null
null
null
null
customers_list
null
null
null
null
null
null
null
pub struct Cache;
crates/router/src/routes/app.rs
router
struct_definition
4
rust
Cache
null
null
null
null
null
null
null
null
null
null
null
pub async fn decide_gateway_open_router( state: SessionState, req_body: OpenRouterDecideGatewayRequest, ) -> RouterResponse<DecideGatewayResponse> { let response = if state.conf.open_router.dynamic_routing_enabled { SRApiClient::send_decision_engine_request( &state, Method::P...
crates/router/src/core/routing.rs
router
function_signature
186
rust
null
null
null
null
decide_gateway_open_router
null
null
null
null
null
null
null
pub struct NmiVaultRequest { security_key: Secret<String>, ccnumber: CardNumber, ccexp: Secret<String>, cvv: Secret<String>, first_name: Secret<String>, last_name: Secret<String>, address1: Option<Secret<String>>, address2: Option<Secret<String>>, city: Option<String>, state: Opt...
crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
hyperswitch_connectors
struct_definition
107
rust
NmiVaultRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct Data { #[serde(rename = "type")] pub payment_type: Option<String>, pub order_id: String, pub currency: Option<String>, pub amount: Option<MinorUnit>, pub description: Option<String>, pub capture: Option<String>, pub payment_url: Option<Url>, pub status: Option<Multisafepay...
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
struct_definition
111
rust
Data
null
null
null
null
null
null
null
null
null
null
null
pub struct StripebillingRecordBackResponse { pub id: String, }
crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
StripebillingRecordBackResponse
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/organization/organization--update.mdx # Type: Doc File --- openapi: put /v2/organizations/{id} ---
api-reference/v2/organization/organization--update.mdx
null
doc_file
35
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl CommonMandateReference { pub fn get_mandate_details_value(&self) -> CustomResult<serde_json::Value, ParsingError> { let mut payments = self .payments .as_ref() .map_or_else(|| Ok(serde_json::json!({})), serde_json::to_value) .change_context(ParsingError::...
crates/diesel_models/src/payment_method.rs
diesel_models
impl_block
339
rust
null
CommonMandateReference
null
impl CommonMandateReference
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RecurringDetails { "oneOf": [ { "type": "object", "required": [ "type", "data" ], "properties": { "type": { "type": "string", "enum": [ "mandate_id" ] }, "data": { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
364
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RecurringDetails" ]
null
null
null
null
impl PlatformOrgAdminAuthWithMerchantIdFromRoute { async fn fetch_key_store_and_account<A: SessionStateInfo + Sync>( merchant_id: &id_type::MerchantId, state: &A, ) -> RouterResult<(domain::MerchantKeyStore, domain::MerchantAccount)> { let key_manager_state = &(&state.session_state()).in...
crates/router/src/services/authentication.rs
router
impl_block
200
rust
null
PlatformOrgAdminAuthWithMerchantIdFromRoute
null
impl PlatformOrgAdminAuthWithMerchantIdFromRoute
null
null
null
null
null
null
null
null
pub fn get_payment_intent_dimensions() -> Vec<NameDescription> { vec![ PaymentIntentDimensions::PaymentIntentStatus, PaymentIntentDimensions::Currency, PaymentIntentDimensions::ProfileId, PaymentIntentDimensions::Connector, PaymentIntentDimensions::AuthType, PaymentIn...
crates/analytics/src/utils.rs
analytics
function_signature
109
rust
null
null
null
null
get_payment_intent_dimensions
null
null
null
null
null
null
null
pub struct PaypalRelatedIds { pub order_id: String, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
PaypalRelatedIds
null
null
null
null
null
null
null
null
null
null
null
pub struct DirectDebitMethodData { consumer_name: Option<Secret<String>>, consumer_account: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
DirectDebitMethodData
null
null
null
null
null
null
null
null
null
null
null
pub struct FrictionlessSuccessCount;
crates/api_models/src/analytics/auth_events.rs
api_models
struct_definition
8
rust
FrictionlessSuccessCount
null
null
null
null
null
null
null
null
null
null
null
todo!() } fn get_recurring_details(&self) -> Option<&RecurringDetails> { todo!() } fn get_payment_intent_profile_id(&self) -> Option<&id_type::ProfileId> { Some(&self.payment_intent.profile_id) } fn get_currency(&self) -> storage_enums::Currency { self.payment_...
crates/router/src/core/payments.rs#chunk10
router
chunk
8,183
null
null
null
null
null
null
null
null
null
null
null
null
null
impl behaviour::Conversion for PaymentAttempt { type DstType = DieselPaymentAttempt; type NewDstType = DieselPaymentAttemptNew; async fn convert(self) -> CustomResult<Self::DstType, ValidationError> { let card_network = self .payment_method_data .as_ref() .and_th...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
impl_block
2,757
rust
null
PaymentAttempt
behaviour::Conversion for
impl behaviour::Conversion for for PaymentAttempt
null
null
null
null
null
null
null
null
File: crates/api_models/src/blocklist.rs Public structs: 7 use common_enums::enums; use common_utils::events::ApiEventMetric; use masking::StrongSecret; use utoipa::ToSchema; #[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)] #[serde(rename_all = "snake_case", tag = "type", content = "data")] pu...
crates/api_models/src/blocklist.rs
api_models
full_file
592
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct WebhookDeliveryRetryRequestInternal { pub merchant_id: common_utils::id_type::MerchantId, pub event_id: String, }
crates/api_models/src/webhook_events.rs
api_models
struct_definition
31
rust
WebhookDeliveryRetryRequestInternal
null
null
null
null
null
null
null
null
null
null
null
impl RoleInterface for KafkaStore { async fn insert_role( &self, role: storage::RoleNew, ) -> CustomResult<storage::Role, errors::StorageError> { self.diesel_store.insert_role(role).await } async fn find_role_by_role_id( &self, role_id: &str, ) -> CustomResul...
crates/router/src/db/kafka_store.rs
router
impl_block
686
rust
null
KafkaStore
RoleInterface for
impl RoleInterface for for KafkaStore
null
null
null
null
null
null
null
null
pub struct AuthorizedotnetWebhookEventType { pub event_type: AuthorizedotnetIncomingWebhookEventType, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
AuthorizedotnetWebhookEventType
null
null
null
null
null
null
null
null
null
null
null
pub struct DeutschebankBankAccount { account_holder: Secret<String>, iban: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
DeutschebankBankAccount
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_dispute( state: web::Data<AppState>, req: HttpRequest, path: web::Path<String>, json_payload: web::Query<dispute_models::DisputeRetrieveBody>, ) -> HttpResponse { let flow = Flow::DisputesRetrieve; let payload = dispute_models::DisputeRetrieveRequest { dispute_id: p...
crates/router/src/routes/disputes.rs
router
function_signature
256
rust
null
null
null
null
retrieve_dispute
null
null
null
null
null
null
null
pub async fn get_with_payment_id( conn: &PgPooledConn, payment_id: common_utils::id_type::PaymentId, merchant_id: common_utils::id_type::MerchantId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::payment_id...
crates/diesel_models/src/query/fraud_check.rs
diesel_models
function_signature
106
rust
null
null
null
null
get_with_payment_id
null
null
null
null
null
null
null
File: crates/analytics/src/refunds/types.rs use api_models::analytics::refunds::{RefundDimensions, RefundFilters}; use error_stack::ResultExt; use crate::{ query::{QueryBuilder, QueryFilter, QueryResult, ToSql}, types::{AnalyticsCollection, AnalyticsDataSource}, }; impl<T> QueryFilter<T> for RefundFilters wh...
crates/analytics/src/refunds/types.rs
analytics
full_file
465
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_default_fallback_routing( state: SessionState, merchant_context: domain::MerchantContext, profile_id: common_utils::id_type::ProfileId, updated_list_of_connectors: Vec<routing_types::RoutableConnectorChoice>, ) -> RouterResponse<Vec<routing_types::RoutableConnectorChoice>> { metr...
crates/router/src/core/routing.rs
router
function_signature
553
rust
null
null
null
null
update_default_fallback_routing
null
null
null
null
null
null
null
pub struct NmiCompleteRequest { amount: FloatMajorUnit, #[serde(rename = "type")] transaction_type: TransactionType, security_key: Secret<String>, orderid: Option<String>, customer_vault_id: Secret<String>, email: Option<Email>, cardholder_auth: Option<String>, cavv: Option<String>, ...
crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
hyperswitch_connectors
struct_definition
114
rust
NmiCompleteRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethod { #[serde(rename = "type")] method_type: PaymentMethodType, billing: Billing, }
crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
PaymentMethod
null
null
null
null
null
null
null
null
null
null
null
impl FromEncoded for Secret<String> { fn from_encoded(input: String) -> Option<Self> { Some(input.into()) } }
crates/external_services/src/hashicorp_vault/core.rs
external_services
impl_block
29
rust
null
Secret
FromEncoded for
impl FromEncoded for for Secret
null
null
null
null
null
null
null
null
impl<T: Serialize + ErasedSerialize> ErasedMaskSerialize for T { fn masked_serialize(&self) -> Result<Value, serde_json::Error> { masked_serialize(self) } }
crates/masking/src/serde.rs
masking
impl_block
41
rust
null
T
ErasedMaskSerialize for
impl ErasedMaskSerialize for for T
null
null
null
null
null
null
null
null
Documentation: docs/rfcs/000-resolution-template.md # Type: Doc File ## RFC 000: [Title] ### I. Status The final status of the RFC (Accepted / Rejected) ### II. Resolution A description of the final resolution of the RFC, including any modifications or adjustments made during the discussion and review process ### I...
docs/rfcs/000-resolution-template.md
null
doc_file
123
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ConnectorResponse { pub merchant_id: common_utils::id_type::MerchantId, pub connector: String, pub payment_id: common_utils::id_type::PaymentId, pub amount: i64, pub connector_transaction_id: String, pub return_url: Option<String>, pub three_ds_form: Option<services::RedirectForm>...
crates/router/src/types.rs
router
struct_definition
77
rust
ConnectorResponse
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Stripebilling { //TODO: implement functions when support enabled }
crates/hyperswitch_connectors/src/connectors/stripebilling.rs
hyperswitch_connectors
impl_block
18
rust
null
Stripebilling
ConnectorValidation for
impl ConnectorValidation for for Stripebilling
null
null
null
null
null
null
null
null
File: crates/pm_auth/src/consts.rs pub const REQUEST_TIME_OUT: u64 = 30; // will timeout after the mentioned limit pub const REQUEST_TIMEOUT_ERROR_CODE: &str = "TIMEOUT"; // timeout error code pub const REQUEST_TIMEOUT_ERROR_MESSAGE: &str = "Connector did not respond in specified time"; // error message for timed out ...
crates/pm_auth/src/consts.rs
pm_auth
full_file
106
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SepaBankDebitAdditionalData { "type": "object", "required": [ "iban" ], "properties": { "iban": { "type": "string", "description": "Partially masked international bank account number (iban) for SEPA", "example": "DE8937******013000" }, "ba...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
137
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SepaBankDebitAdditionalData" ]
null
null
null
null
pub struct PayoutsNew { pub payout_id: common_utils::id_type::PayoutId, pub merchant_id: common_utils::id_type::MerchantId, pub customer_id: Option<common_utils::id_type::CustomerId>, pub address_id: Option<String>, pub payout_type: Option<storage_enums::PayoutType>, pub payout_method_id: Option...
crates/diesel_models/src/payouts.rs
diesel_models
struct_definition
297
rust
PayoutsNew
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/surcharge_decision_config.rs Public functions: 5 use api_models::surcharge_decision_configs::{ SurchargeDecisionConfigReq, SurchargeDecisionManagerRecord, SurchargeDecisionManagerResponse, }; use common_utils::ext_traits::StringExt; use error_stack::ResultExt; use crate::{ core::...
crates/router/src/core/surcharge_decision_config.rs
router
full_file
1,840
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn upload_and_get_provider_provider_file_id_profile_id( state: &SessionState, merchant_context: &domain::MerchantContext, create_file_request: &api::CreateFileRequest, file_key: String, ) -> CustomResult< ( String, api_models::enums::FileUploadProvider, Option<commo...
crates/router/src/core/files/helpers.rs
router
function_signature
824
rust
null
null
null
null
upload_and_get_provider_provider_file_id_profile_id
null
null
null
null
null
null
null
pub fn get_token(transaction_data: Option<&Self>) -> Option<String> { if let Some(data) = transaction_data { match &data.payment_data { Some(NovalnetResponsePaymentData::Card(card_data)) => { card_data.token.clone().map(|token| token.expose()) } ...
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
function_signature
118
rust
null
null
null
null
get_token
null
null
null
null
null
null
null
pub struct ItaubankRouterData<T> { pub amount: StringMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
ItaubankRouterData
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/sdk_events/metrics.rs Public structs: 1 use std::collections::HashSet; use api_models::analytics::{ sdk_events::{ SdkEventDimensions, SdkEventFilters, SdkEventMetrics, SdkEventMetricsBucketIdentifier, }, Granularity, TimeRange, }; use time::PrimitiveDateTime; use crate...
crates/analytics/src/sdk_events/metrics.rs
analytics
full_file
1,003
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn set_customer( self, customer: &'a api::CustomerDetails, ) -> NetworkTokenizationBuilder<'a, CustomerAssigned> { NetworkTokenizationBuilder { state: std::marker::PhantomData, customer: Some(customer), card: self.card, card_cvc: self.card_...
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
function_signature
137
rust
null
null
null
null
set_customer
null
null
null
null
null
null
null
pub async fn refunds_retrieve() {}
crates/openapi/src/routes/refunds.rs
openapi
function_signature
8
rust
null
null
null
null
refunds_retrieve
null
null
null
null
null
null
null
File: crates/api_models/src/files.rs Public structs: 3 use utoipa::ToSchema; #[derive(Debug, serde::Serialize, ToSchema)] pub struct CreateFileResponse { /// ID of the file created pub file_id: String, } #[derive(Debug, serde::Serialize, ToSchema, Clone)] pub struct FileMetadataResponse { /// ID of the ...
crates/api_models/src/files.rs
api_models
full_file
182
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.WalletData { "oneOf": [ { "type": "object", "title": "AliPayHkRedirect", "required": [ "ali_pay_hk_redirect" ], "properties": { "ali_pay_hk_redirect": { "$ref": "#/components/schemas/AliPayHkRedirection" } ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
2,252
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "WalletData" ]
null
null
null
null
pub async fn create_connector_customer<F: Clone, T: Clone>( state: &SessionState, connector: &api::ConnectorData, router_data: &types::RouterData<F, T, types::PaymentsResponseData>, customer_request_data: types::ConnectorCustomerData, ) -> RouterResult<Option<String>> { let connector_integration: se...
crates/router/src/core/payments/customers.rs
router
function_signature
364
rust
null
null
null
null
create_connector_customer
null
null
null
null
null
null
null
pub fn get_payment_metrics_info() -> Vec<NameDescription> { PaymentMetrics::iter().map(Into::into).collect() }
crates/analytics/src/utils.rs
analytics
function_signature
29
rust
null
null
null
null
get_payment_metrics_info
null
null
null
null
null
null
null
pub fn get_id(&self) -> &common_utils::id_type::ProfileId { &self.profile_id }
crates/diesel_models/src/business_profile.rs
diesel_models
function_signature
26
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
pub fn check_service_type( &self, required_service_type: &ExternalServiceType, ) -> RouterResult<()> { Ok(fp_utils::when( &self.external_service_type != required_service_type, || { Err(errors::ApiErrorResponse::AccessForbidden { res...
crates/router/src/services/authentication.rs
router
function_signature
76
rust
null
null
null
null
check_service_type
null
null
null
null
null
null
null
Documentation: docs/try_sandbox.md # Type: Doc File # Try out hyperswitch sandbox environment **Table Of Contents:** - [Set up your accounts](#set-up-your-accounts) - [Try out our APIs](#try-out-our-apis) - [Create a payment](#create-a-payment) - [Create a refund](#create-a-refund) ## Set up your accounts 1. S...
docs/try_sandbox.md
null
doc_file
1,193
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub fn set_ip_address_if_required( request: &mut SetMetaDataRequest, headers: &HeaderMap, ) -> UserResult<()> { if let SetMetaDataRequest::ProductionAgreement(req) = request { let ip_address_from_request: Secret<String, common_utils::pii::IpAddress> = headers .get(headers::X_FORWARDED_FO...
crates/router/src/utils/user/dashboard_metadata.rs
router
function_signature
227
rust
null
null
null
null
set_ip_address_if_required
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PayoutCreatePayoutLinkConfig { "allOf": [ { "allOf": [ { "$ref": "#/components/schemas/GenericLinkUiConfig" } ], "nullable": true }, { "type": "object", "properties": { "payout_link_id": { "typ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
354
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PayoutCreatePayoutLinkConfig" ]
null
null
null
null
pub async fn list_merchant_account( state: SessionState, req: api_models::admin::MerchantAccountListRequest, org_data_from_auth: Option<authentication::AuthenticationDataWithOrg>, ) -> RouterResponse<Vec<api::MerchantAccountResponse>> { if let Some(auth) = org_data_from_auth { if auth.organizati...
crates/router/src/core/admin.rs
router
function_signature
253
rust
null
null
null
null
list_merchant_account
null
null
null
null
null
null
null
pub struct CoinbasePaymentsResponse { // status: CoinbasePaymentStatus, // id: String, data: CoinbasePaymentResponseData, }
crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
CoinbasePaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct DeutschebankMeansOfPayment { bank_account: DeutschebankBankAccount, }
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
DeutschebankMeansOfPayment
null
null
null
null
null
null
null
null
null
null
null
pub async fn pg_connection_write<T: DatabaseStore>( store: &T, ) -> error_stack::Result< PooledConnection<'_, async_bb8_diesel::ConnectionManager<PgConnection>>, StorageError, > { // Since all writes should happen to master DB only choose master DB. let pool = store.get_master_pool(); pool.get(...
crates/storage_impl/src/utils.rs
storage_impl
function_signature
93
rust
null
null
null
null
pg_connection_write
null
null
null
null
null
null
null
impl api::PaymentCapture for Payu {}
crates/hyperswitch_connectors/src/connectors/payu.rs
hyperswitch_connectors
impl_block
9
rust
null
Payu
api::PaymentCapture for
impl api::PaymentCapture for for Payu
null
null
null
null
null
null
null
null
pub async fn success_based_routing_update_configs() {}
crates/openapi/src/routes/routing.rs
openapi
function_signature
10
rust
null
null
null
null
success_based_routing_update_configs
null
null
null
null
null
null
null
pub struct WorldlineRouterData<T> { amount: i64, router_data: T, }
crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
WorldlineRouterData
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Moneris {}
crates/hyperswitch_connectors/src/connectors/moneris.rs
hyperswitch_connectors
impl_block
9
rust
null
Moneris
api::Payment for
impl api::Payment for for Moneris
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/user/dashboard_metadata.rs Public structs: 3 use common_utils::id_type; use diesel::{query_builder::AsChangeset, Identifiable, Insertable, Queryable, Selectable}; use masking::Secret; use time::PrimitiveDateTime; use crate::{enums, schema::dashboard_metadata}; #[derive(Clone, Debug, I...
crates/diesel_models/src/user/dashboard_metadata.rs
diesel_models
full_file
556
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_resource<D, R, M>( &self, state: &KeyManagerState, key_store: &MerchantKeyStore, storage_scheme: MerchantStorageScheme, update_resource_fut: R, updated_resource: M, UpdateResourceParams { updateable, operation, }...
crates/storage_impl/src/kv_router_store.rs
storage_impl
function_signature
468
rust
null
null
null
null
update_resource
null
null
null
null
null
null
null
pub struct ItaubankPixResponse { #[serde(rename = "endToEndId")] pix_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
ItaubankPixResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/workflows.rs #[cfg(feature = "email")] pub mod api_key_expiry; #[cfg(feature = "payouts")] pub mod attach_payout_account_workflow; pub mod outgoing_webhook_retry; pub mod payment_method_status_update; pub mod payment_sync; pub mod refund_router; pub mod tokenized_data; pub mod revenue_recove...
crates/router/src/workflows.rs
router
full_file
85
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Billwerk {}
crates/hyperswitch_connectors/src/connectors/billwerk.rs
hyperswitch_connectors
impl_block
9
rust
null
Billwerk
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Billwerk
null
null
null
null
null
null
null
null
pub trait GroupByClause<T> where T: AnalyticsDataSource, AnalyticsCollection: ToSql<T>, { fn set_group_by_clause(&self, builder: &mut QueryBuilder<T>) -> QueryResult<()>; }
crates/analytics/src/query.rs
analytics
trait_definition
48
rust
null
null
GroupByClause
null
null
null
null
null
null
null
null
null