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 ConnectorData { pub connector: ConnectorEnum, pub connector_name: types::Connector, pub get_token: GetToken, pub merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>, }
crates/router/src/types/api/connector_mapping.rs
router
struct_definition
48
rust
ConnectorData
null
null
null
null
null
null
null
null
null
null
null
impl<const T: u8> PaymentSync for DummyConnector<T> {}
crates/hyperswitch_connectors/src/connectors/dummyconnector.rs
hyperswitch_connectors
impl_block
15
rust
null
DummyConnector
PaymentSync for
impl PaymentSync for for DummyConnector
null
null
null
null
null
null
null
null
pub struct CustomerDeviceData { /// The platform of the customer's device (e.g., Web, Android, iOS). pub platform: Option<CustomerDevicePlatform>, /// The type of the customer's device (e.g., Mobile, Tablet, Desktop). pub device_type: Option<CustomerDeviceType>, /// The display size of the customer'...
crates/api_models/src/three_ds_decision_rule.rs
api_models
struct_definition
86
rust
CustomerDeviceData
null
null
null
null
null
null
null
null
null
null
null
pub fn get_id(&self) -> &common_utils::id_type::GlobalPaymentMethodId { &self.id }
crates/diesel_models/src/payment_method.rs
diesel_models
function_signature
27
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
pub struct CeleroCard { entry_type: CeleroEntryType, number: cards::CardNumber, expiration_date: Secret<String>, cvc: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
CeleroCard
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::Verification; let merchant_id = path.into_inner(); Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inner(), |state, auth: auth::AuthenticationData, body, _| { verification::verify_merchant_creds_for_applepa...
crates/router/src/routes/verification.rs
router
impl_block
171
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Opennode {}
crates/hyperswitch_connectors/src/connectors/opennode.rs
hyperswitch_connectors
impl_block
10
rust
null
Opennode
api::PaymentVoid for
impl api::PaymentVoid for for Opennode
null
null
null
null
null
null
null
null
File: crates/common_utils/src/id_type/refunds.rs crate::id_type!(RefundReferenceId, "A type for refund_reference_id"); crate::impl_id_type_methods!(RefundReferenceId, "refund_reference_id"); // This is to display the `RefundReferenceId` as RefundReferenceId(abcd) crate::impl_debug_id_type!(RefundReferenceId); crate::...
crates/common_utils/src/id_type/refunds.rs
common_utils
full_file
145
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router_env/src/logger.rs //! Logger of the system. pub use tracing::{debug, error, event as log, info, warn}; pub use tracing_attributes::instrument; pub mod config; mod defaults; pub use crate::config::Config; // mod macros; pub mod types; pub use types::{Category, Flow, Level, Tag}; mod setup; pub u...
crates/router_env/src/logger.rs
router_env
full_file
110
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthenticationErrorInformation { pub rmsg: String, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
AuthenticationErrorInformation
null
null
null
null
null
null
null
null
null
null
null
impl Parse for StorageType { fn parse(input: syn::parse::ParseStream<'_>) -> syn::Result<Self> { let text = input.parse::<syn::LitStr>()?; let value = text.value(); value.as_str().parse().map_err(|_| { syn::Error::new_spanned( &text, format!( ...
crates/router_derive/src/macros/diesel.rs
router_derive
impl_block
113
rust
null
StorageType
Parse for
impl Parse for for StorageType
null
null
null
null
null
null
null
null
impl api::RefundSync for Razorpay {}
crates/hyperswitch_connectors/src/connectors/razorpay.rs
hyperswitch_connectors
impl_block
10
rust
null
Razorpay
api::RefundSync for
impl api::RefundSync for for Razorpay
null
null
null
null
null
null
null
null
File: crates/kgraph_utils/src/types.rs Public structs: 4 use std::collections::{HashMap, HashSet}; use api_models::enums as api_enums; use serde::Deserialize; #[derive(Debug, Deserialize, Clone, Default)] pub struct CountryCurrencyFilter { pub connector_configs: HashMap<api_enums::RoutableConnectors, PaymentMet...
crates/kgraph_utils/src/types.rs
kgraph_utils
full_file
277
null
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: crates/redis_interface/README.md # Type: Doc File # Redis Interface A user-friendly interface to Redis.
crates/redis_interface/README.md
null
doc_file
27
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Globepay { fn id(&self) -> &'static str { "globepay" } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.globepay.base_url.as_ref() } fn build...
crates/hyperswitch_connectors/src/connectors/globepay.rs
hyperswitch_connectors
impl_block
281
rust
null
Globepay
ConnectorCommon for
impl ConnectorCommon for for Globepay
null
null
null
null
null
null
null
null
pub struct OpennodeAuthType { pub(super) api_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/opennode/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
OpennodeAuthType
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Trustpayments {}
crates/hyperswitch_connectors/src/connectors/trustpayments.rs
hyperswitch_connectors
impl_block
9
rust
null
Trustpayments
api::PaymentVoid for
impl api::PaymentVoid for for Trustpayments
null
null
null
null
null
null
null
null
pub async fn payouts_fulfill() {}
crates/openapi/src/routes/payouts.rs
openapi
function_signature
8
rust
null
null
null
null
payouts_fulfill
null
null
null
null
null
null
null
pub struct Tenant { pub tenant_id: id_type::TenantId, pub base_url: String, pub schema: String, pub accounts_schema: String, pub redis_key_prefix: String, pub clickhouse_database: String, }
crates/drainer/src/settings.rs
drainer
struct_definition
52
rust
Tenant
null
null
null
null
null
null
null
null
null
null
null
pub struct Comparison { /// The left hand side which will always be a domain input identifier like "payment.method.cardtype" pub lhs: String, /// The comparison operator pub comparison: ComparisonType, /// The value to compare against pub value: ValueType, /// Additional metadata that the St...
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
124
rust
Comparison
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CashappQr { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
23
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CashappQr" ]
null
null
null
null
pub struct CaptureResponseStatus { pub environment: String, pub response_type: String, pub response_code: ForteResponseCode, pub response_desc: String, pub authorization_code: String, }
crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
hyperswitch_connectors
struct_definition
43
rust
CaptureResponseStatus
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/payments/payments--get-intent.mdx # Type: Doc File --- openapi: get /v2/payments/{id}/get-intent ---
api-reference/v2/payments/payments--get-intent.mdx
null
doc_file
41
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn organization_retrieve( state: web::Data<AppState>, req: HttpRequest, org_id: web::Path<common_utils::id_type::OrganizationId>, ) -> HttpResponse { let flow = Flow::OrganizationRetrieve; let organization_id = org_id.into_inner(); let payload = admin::OrganizationId { organiza...
crates/router/src/routes/admin.rs
router
function_signature
202
rust
null
null
null
null
organization_retrieve
null
null
null
null
null
null
null
pub struct TransactionConfirmRequest { transaction_type: TransactionType, payment: PaypalPaymentConfirm, ref_trans_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
TransactionConfirmRequest
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/payment-methods/payment-method--delete.mdx # Type: Doc File --- openapi: delete /payment_methods/{method_id} ---
api-reference/v1/payment-methods/payment-method--delete.mdx
null
doc_file
35
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/api/payment_methods.rs #[cfg(feature = "v2")] pub use api_models::payment_methods::{ CardDetail, CardDetailFromLocker, CardDetailsPaymentMethod, CardNetworkTokenizeRequest, CardNetworkTokenizeResponse, CardType, CustomerPaymentMethodResponseItem, DeleteTokenizeByTokenRequest, ...
crates/router/src/types/api/payment_methods.rs
router
full_file
1,081
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CustomerDeviceDisplaySize { "type": "string", "enum": [ "size320x568", "size375x667", "size390x844", "size414x896", "size428x926", "size768x1024", "size834x1112", "size834x1194", "size1024x1366", "size1280x720", "size1366x768", "...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
264
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CustomerDeviceDisplaySize" ]
null
null
null
null
pub struct TaxjarErrorResponse { pub status: i64, pub error: String, pub detail: String, }
crates/hyperswitch_connectors/src/connectors/taxjar/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
TaxjarErrorResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/routes/verify_connector.rs Public functions: 1 use actix_web::{web, HttpRequest, HttpResponse}; use api_models::verify_connector::VerifyConnectorRequest; use router_env::{instrument, tracing, Flow}; use super::AppState; use crate::{ core::{api_locking, verify_connector}, services::{se...
crates/router/src/routes/verify_connector.rs
router
full_file
248
null
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/disputes/disputes--list.mdx # Type: Doc File --- openapi: get /disputes/list ---
api-reference/v1/disputes/disputes--list.mdx
null
doc_file
35
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Products { item_name: String, item_price: i64, item_quantity: i32, item_id: Option<String>, item_category: Option<String>, item_sub_category: Option<String>, item_is_digital: Option<bool>, }
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs
hyperswitch_connectors
struct_definition
58
rust
Products
null
null
null
null
null
null
null
null
null
null
null
pub struct CreateCustomerRequest { merchant_authentication: AuthorizedotnetAuthType, profile: Profile, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
CreateCustomerRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct AciRefundRequest { pub amount: StringMajorUnit, pub currency: String, pub payment_type: AciPaymentType, pub entity_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
AciRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodRecord { pub customer_id: id_type::CustomerId, pub name: Option<masking::Secret<String>>, pub email: Option<pii::Email>, pub phone: Option<masking::Secret<String>>, pub phone_country_code: Option<String>, pub merchant_id: Option<id_type::MerchantId>, pub payment_metho...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
444
rust
PaymentMethodRecord
null
null
null
null
null
null
null
null
null
null
null
impl<K> Keys<K> { fn new(range: ops::Range<usize>) -> Self { Self { inner: range, _marker: PhantomData, } } }
crates/hyperswitch_constraint_graph/src/dense_map.rs
hyperswitch_constraint_graph
impl_block
40
rust
null
Keys
null
impl Keys
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CreateApiKeyResponse { "type": "object", "description": "The response body for creating an API Key.", "required": [ "key_id", "merchant_id", "name", "api_key", "created", "expiration" ], "properties": { "key_id": { "type": "string", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
451
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CreateApiKeyResponse" ]
null
null
null
null
pub struct JWTAuthMerchantFromHeader { pub required_permission: Permission, }
crates/router/src/services/authentication.rs
router
struct_definition
16
rust
JWTAuthMerchantFromHeader
null
null
null
null
null
null
null
null
null
null
null
pub fn is_confirm_operation(&self) -> bool { match self { Self::Update(value) => value.is_confirm_operation, _ => false, } }
crates/hyperswitch_domain_models/src/payments/payment_intent.rs
hyperswitch_domain_models
function_signature
36
rust
null
null
null
null
is_confirm_operation
null
null
null
null
null
null
null
pub async fn remove_entry_from_blocklist( state: SessionState, merchant_context: domain::MerchantContext, body: api_blocklist::DeleteFromBlocklistRequest, ) -> RouterResponse<api_blocklist::DeleteFromBlocklistResponse> { utils::delete_entry_from_blocklist( &state, merchant_context.get_me...
crates/router/src/core/blocklist.rs
router
function_signature
98
rust
null
null
null
null
remove_entry_from_blocklist
null
null
null
null
null
null
null
impl ConnectorPostAuthentication for Gpayments {}
crates/hyperswitch_connectors/src/connectors/gpayments.rs
hyperswitch_connectors
impl_block
8
rust
null
Gpayments
ConnectorPostAuthentication for
impl ConnectorPostAuthentication for for Gpayments
null
null
null
null
null
null
null
null
pub fn set_token_details( self, network_token: &'a NetworkTokenizationResponse, ) -> NetworkTokenizationBuilder<'a, PmTokenized> { NetworkTokenizationBuilder { state: std::marker::PhantomData, network_token: Some(&network_token.0), card_tokenized: true, ...
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
function_signature
141
rust
null
null
null
null
set_token_details
null
null
null
null
null
null
null
pub struct Opayo { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/opayo.rs
hyperswitch_connectors
struct_definition
26
rust
Opayo
null
null
null
null
null
null
null
null
null
null
null
impl<'a> NetworkTokenizationBuilder<'a, TokenizeWithCard> { pub fn new() -> Self { Self { state: std::marker::PhantomData, customer: None, card: None, card_cvc: None, network_token: None, stored_card: None, stored_token: Non...
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
impl_block
232
rust
null
NetworkTokenizationBuilder
null
impl NetworkTokenizationBuilder
null
null
null
null
null
null
null
null
pub async fn complete_payout_retrieve( state: &SessionState, merchant_context: &domain::MerchantContext, connector_call_type: api::ConnectorCallType, payout_data: &mut PayoutData, ) -> RouterResult<()> { match connector_call_type { api::ConnectorCallType::PreDetermined(routing_data) => { ...
crates/router/src/core/payouts.rs
router
function_signature
182
rust
null
null
null
null
complete_payout_retrieve
null
null
null
null
null
null
null
impl api::PaymentVoid for UnifiedAuthenticationService {}
crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs
hyperswitch_connectors
impl_block
10
rust
null
UnifiedAuthenticationService
api::PaymentVoid for
impl api::PaymentVoid for for UnifiedAuthenticationService
null
null
null
null
null
null
null
null
pub struct Payee { merchant_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
Payee
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Stax {}
crates/hyperswitch_connectors/src/connectors/stax.rs
hyperswitch_connectors
impl_block
9
rust
null
Stax
api::PaymentVoid for
impl api::PaymentVoid for for Stax
null
null
null
null
null
null
null
null
impl events::ApiEventMetric for DecisionManagerRecord { fn get_api_event_type(&self) -> Option<events::ApiEventsType> { Some(events::ApiEventsType::Routing) } }
crates/common_types/src/payments.rs
common_types
impl_block
43
rust
null
DecisionManagerRecord
events::ApiEventMetric for
impl events::ApiEventMetric for for DecisionManagerRecord
null
null
null
null
null
null
null
null
pub struct QrTxnData { pub request_data: QrRequestData, }
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
QrTxnData
null
null
null
null
null
null
null
null
null
null
null
pub fn set_card_details( self, card_req: &'a domain::TokenizeCardRequest, optional_card_info: Option<diesel_models::CardInfo>, ) -> NetworkTokenizationBuilder<'a, CardDetailsAssigned> { let card = domain::CardDetail { card_number: card_req.raw_card_number.clone(), ...
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
function_signature
436
rust
null
null
null
null
set_card_details
null
null
null
null
null
null
null
pub struct DeleteTokenDataResponse { /// Unique identifier returned by the tokenization service #[schema(value_type = String, example = "12345_tok_01926c58bc6e77c09e809964e72af8c8")] pub id: id_type::GlobalTokenId, }
crates/api_models/src/tokenization.rs
api_models
struct_definition
79
rust
DeleteTokenDataResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct PazeAddress { pub name: Option<Secret<String>>, pub line1: Option<Secret<String>>, pub line2: Option<Secret<String>>, pub line3: Option<Secret<String>>, pub city: Option<Secret<String>>, pub state: Option<Secret<String>>, pub zip: Option<Secret<String>>, pub country_code: Opti...
crates/hyperswitch_domain_models/src/router_data.rs
hyperswitch_domain_models
struct_definition
90
rust
PazeAddress
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_profile( state: SessionState, request: api::ProfileCreate, merchant_context: domain::MerchantContext, ) -> RouterResponse<api_models::admin::ProfileResponse> { let db = state.store.as_ref(); let key_manager_state = &(&state).into(); #[cfg(feature = "v1")] let business_pr...
crates/router/src/core/admin.rs
router
function_signature
422
rust
null
null
null
null
create_profile
null
null
null
null
null
null
null
pub struct CustomerData { pub name: Option<Secret<String>>, pub email: Option<Email>, pub phone: Option<Secret<String>>, pub phone_country_code: Option<String>, pub tax_registration_id: Option<Secret<String>>, }
crates/hyperswitch_domain_models/src/payments/payment_intent.rs
hyperswitch_domain_models
struct_definition
52
rust
CustomerData
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthorizationError { #[serde(with = "common_utils::custom_serde::iso8601")] created_at: PrimitiveDateTime, error_code: Option<String>, message: Option<String>, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
45
rust
AuthorizationError
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Nordea { fn id(&self) -> &'static str { "nordea" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a ...
crates/hyperswitch_connectors/src/connectors/nordea.rs
hyperswitch_connectors
impl_block
355
rust
null
Nordea
ConnectorCommon for
impl ConnectorCommon for for Nordea
null
null
null
null
null
null
null
null
/// get_access_token_key pub fn get_access_token_key( &self, merchant_connector_id_or_connector_name: impl Display, ) -> String { format!( "access_token_{}_{merchant_connector_id_or_connector_name}", self.get_string_repr() ) }
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
61
rust
null
null
null
null
get_access_token_key
null
null
null
null
null
null
null
pub struct ItaubankPaymentsSyncResponse { status: ItaubankPaymentStatus, txid: String, pix: Vec<ItaubankPixResponse>, }
crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
ItaubankPaymentsSyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ConnectorParamsWithModeType { /// base url pub base_url: String, /// secondary base url pub secondary_base_url: Option<String>, /// Can take values like Test or Live for Noon pub key_mode: String, }
crates/hyperswitch_domain_models/src/connector_endpoints.rs
hyperswitch_domain_models
struct_definition
55
rust
ConnectorParamsWithModeType
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_metadata_by_profile_id( conn: &PgPooledConn, profile_id: &common_utils::id_type::ProfileId, limit: i64, offset: i64, ) -> StorageResult<Vec<RoutingProfileMetadata>> { Ok(Self::table() .select(( dsl::algorithm_id, d...
crates/diesel_models/src/query/routing_algorithm.rs
diesel_models
function_signature
310
rust
null
null
null
null
list_metadata_by_profile_id
null
null
null
null
null
null
null
Documentation: crates/common_utils/README.md # Type: Doc File # Common Utils Utilities shared across `router` and other crates.
crates/common_utils/README.md
null
doc_file
29
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ConnectorCustomerData { pub description: Option<String>, pub email: Option<pii::Email>, pub phone: Option<Secret<String>>, pub name: Option<Secret<String>>, pub preprocessing_id: Option<String>, pub payment_method_data: Option<PaymentMethodData>, pub split_payments: Option<common_...
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
114
rust
ConnectorCustomerData
null
null
null
null
null
null
null
null
null
null
null
pub struct AffirmCaptureRequest { pub order_id: Option<String>, pub reference_id: Option<String>, pub amount: MinorUnit, pub shipping_carrier: Option<String>, pub shipping_confirmation: Option<String>, }
crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
hyperswitch_connectors
struct_definition
48
rust
AffirmCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_payment_data_by_attempt_id( state: &SessionState, attempt_id: String, ) -> types::DummyConnectorResult<types::DummyConnectorPaymentData> { let redis_conn = state .store .get_redis_conn() .change_context(errors::DummyConnectorErrors::InternalServerError) .atta...
crates/router/src/routes/dummy_connector/utils.rs
router
function_signature
182
rust
null
null
null
null
get_payment_data_by_attempt_id
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { #[allow(unused_mut)] let mut route = web::scope("/routing") .app_data(web::Data::new(state.clone())) .service( web::resource("/active").route(web::get().to(|state, req, query_params| { routing::routing_...
crates/router/src/routes/app.rs
router
function_signature
1,473
rust
null
null
null
null
server
null
null
null
null
null
null
null
File: crates/openapi/src/routes/mandates.rs Public functions: 4 /// Mandates - Retrieve Mandate /// /// Retrieves a mandate created using the Payments/Create API #[utoipa::path( get, path = "/mandates/{mandate_id}", params( ("mandate_id" = String, Path, description = "The identifier for mandate") ...
crates/openapi/src/routes/mandates.rs
openapi
full_file
803
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ItaubankMetaData { pub pix_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
ItaubankMetaData
null
null
null
null
null
null
null
null
null
null
null
pub struct WellsfargopayoutRefundRequest { pub amount: StringMinorUnit, }
crates/hyperswitch_connectors/src/connectors/wellsfargopayout/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
WellsfargopayoutRefundRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Bamboraapac {}
crates/hyperswitch_connectors/src/connectors/bamboraapac.rs
hyperswitch_connectors
impl_block
13
rust
null
Bamboraapac
api::RefundExecute for
impl api::RefundExecute for for Bamboraapac
null
null
null
null
null
null
null
null
pub struct FiuuGooglePayData { txn_channel: TxnChannel, #[serde(rename = "GooglePay[apiVersion]")] api_version: u8, #[serde(rename = "GooglePay[apiVersionMinor]")] api_version_minor: u8, #[serde(rename = "GooglePay[paymentMethodData][info][assuranceDetails][accountVerified]")] account_verifi...
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
288
rust
FiuuGooglePayData
null
null
null
null
null
null
null
null
null
null
null
pub struct ContractBasedRoutingSetupPayloadWrapper { pub config: Option<ContractBasedRoutingConfig>, pub profile_id: common_utils::id_type::ProfileId, pub features_to_enable: DynamicRoutingFeatures, }
crates/api_models/src/routing.rs
api_models
struct_definition
45
rust
ContractBasedRoutingSetupPayloadWrapper
null
null
null
null
null
null
null
null
null
null
null
impl<T: SchedulerInterface> AsSchedulerInterface for T { fn as_scheduler(&self) -> &dyn SchedulerInterface { self } }
crates/scheduler/src/scheduler.rs
scheduler
impl_block
31
rust
null
T
AsSchedulerInterface for
impl AsSchedulerInterface for for T
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<DashboardMetadata> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/dashboard_metadata.rs
diesel_models
function_signature
35
rust
null
null
null
null
insert
null
null
null
null
null
null
null
pub fn get_order_amount(&self) -> MinorUnit { self.order_amount }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
19
rust
null
null
null
null
get_order_amount
null
null
null
null
null
null
null
impl NextFlow { pub async fn from_origin( origin: Origin, user: UserFromStorage, state: &SessionState, ) -> UserResult<Self> { let flows = origin.get_flows(); let path = vec![]; for flow in flows { if flow .is_required(&user, &path, sta...
crates/router/src/types/domain/user/decision_manager.rs
router
impl_block
740
rust
null
NextFlow
null
impl NextFlow
null
null
null
null
null
null
null
null
pub struct ApplePayTokenPaymentInformation { fluid_data: FluidData, tokenized_card: ApplePayTokenizedCard, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
ApplePayTokenPaymentInformation
null
null
null
null
null
null
null
null
null
null
null
pub struct CreditCardMethodData { billing_address: Option<Address>, shipping_address: Option<Address>, card_token: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
CreditCardMethodData
null
null
null
null
null
null
null
null
null
null
null
pub struct RevenueRecoveryWorkflowTrackingData { pub merchant_id: id_type::MerchantId, pub profile_id: id_type::ProfileId, pub global_payment_id: id_type::GlobalPaymentId, pub payment_attempt_id: id_type::GlobalAttemptId, pub billing_mca_id: id_type::MerchantConnectorAccountId, pub revenue_recov...
crates/router/src/types/storage/revenue_recovery.rs
router
struct_definition
100
rust
RevenueRecoveryWorkflowTrackingData
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.DefaultPaymentMethod { "type": "object", "required": [ "customer_id", "payment_method_id" ], "properties": { "customer_id": { "type": "string", "example": "cus_y3oqhf46pyzuxjbcn2giaqnb44", "maxLength": 64, "minLength": 1 }, "paym...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
119
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "DefaultPaymentMethod" ]
null
null
null
null
pub struct Event { pub api_version: String, pub created_at: String, pub data: CoinbasePaymentResponseData, pub id: String, pub resource: String, #[serde(rename = "type")] pub event_type: WebhookEventType, }
crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
hyperswitch_connectors
struct_definition
57
rust
Event
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Tsys {}
crates/hyperswitch_connectors/src/connectors/tsys.rs
hyperswitch_connectors
impl_block
9
rust
null
Tsys
api::PaymentCapture for
impl api::PaymentCapture for for Tsys
null
null
null
null
null
null
null
null
pub struct CashtocodePaymentsResponseData { pub pay_url: url::Url, }
crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
CashtocodePaymentsResponseData
null
null
null
null
null
null
null
null
null
null
null
pub async fn new( store: Store, mut kafka_producer: KafkaProducer, tenant_id: TenantID, tenant_config: &dyn TenantConfig, ) -> Self { kafka_producer.set_tenancy(tenant_config); Self { kafka_producer, diesel_store: store, tenant_id, ...
crates/router/src/db/kafka_store.rs
router
function_signature
73
rust
null
null
null
null
new
null
null
null
null
null
null
null
File: crates/router/src/routes/proxy.rs Public functions: 1 use actix_web::{web, Responder}; use router_env::{instrument, tracing, Flow}; use crate::{ self as app, core::{api_locking, proxy}, services::{api, authentication as auth}, types::domain, }; #[instrument(skip_all, fields(flow = ?Flow::Proxy...
crates/router/src/routes/proxy.rs
router
full_file
263
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Celero {}
crates/hyperswitch_connectors/src/connectors/celero.rs
hyperswitch_connectors
impl_block
9
rust
null
Celero
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Celero
null
null
null
null
null
null
null
null
impl api::PaymentToken for Xendit {}
crates/hyperswitch_connectors/src/connectors/xendit.rs
hyperswitch_connectors
impl_block
10
rust
null
Xendit
api::PaymentToken for
impl api::PaymentToken for for Xendit
null
null
null
null
null
null
null
null
pub struct TransactionSuccessRequest { order: SuccessfulTransactionData, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
14
rust
TransactionSuccessRequest
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Barclaycard { fn id(&self) -> &'static str { "barclaycard" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connec...
crates/hyperswitch_connectors/src/connectors/barclaycard.rs
hyperswitch_connectors
impl_block
824
rust
null
Barclaycard
ConnectorCommon for
impl ConnectorCommon for for Barclaycard
null
null
null
null
null
null
null
null
pub trait ForeignFrom<F> { fn foreign_from(from: F) -> Self; }
crates/payment_methods/src/helpers.rs
payment_methods
trait_definition
19
rust
null
null
ForeignFrom
null
null
null
null
null
null
null
null
null
pub async fn get_dispute_metrics( &self, metric: &DisputeMetrics, dimensions: &[DisputeDimensions], auth: &AuthInfo, filters: &DisputeFilters, granularity: Option<Granularity>, time_range: &TimeRange, ) -> types::MetricsResult<HashSet<(DisputeMetricsBucketIden...
crates/analytics/src/lib.rs
analytics
function_signature
573
rust
null
null
null
null
get_dispute_metrics
null
null
null
null
null
null
null
pub fn get_locale_from_header(headers: &actix_web::http::header::HeaderMap) -> String { get_header_value_by_key(ACCEPT_LANGUAGE.into(), headers) .ok() .flatten() .map(|val| val.to_string()) .unwrap_or(common_utils::consts::DEFAULT_LOCALE.to_string()) }
crates/router/src/utils.rs
router
function_signature
70
rust
null
null
null
null
get_locale_from_header
null
null
null
null
null
null
null
pub struct NovalnetCustom { lang: String, }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
NovalnetCustom
null
null
null
null
null
null
null
null
null
null
null
pub struct JpmorganPaymentMethodTypeCancelResponse { pub card: CardCancelResponse, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
JpmorganPaymentMethodTypeCancelResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/errors/user.rs Public functions: 1 use common_utils::errors::CustomResult; use crate::services::ApplicationResponse; pub type UserResult<T> = CustomResult<T, UserErrors>; pub type UserResponse<T> = CustomResult<ApplicationResponse<T>, UserErrors>; pub mod sample_data; #[derive(Debug, t...
crates/router/src/core/errors/user.rs
router
full_file
3,675
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/workflows/payment_method_status_update.rs Public structs: 1 use common_utils::ext_traits::ValueExt; use error_stack::ResultExt; use scheduler::{ consumer::types::process_data, utils as pt_utils, workflows::ProcessTrackerWorkflow, }; use crate::{ errors, logger::error, routes::...
crates/router/src/workflows/payment_method_status_update.rs
router
full_file
914
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct RiskifiedWebhookBody { pub id: String, pub status: RiskifiedWebhookStatus, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
25
rust
RiskifiedWebhookBody
null
null
null
null
null
null
null
null
null
null
null
pub struct ShopperDetails { reference: id_type::CustomerId, email: Option<Email>, first_name: Secret<String>, last_name: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/volt/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
ShopperDetails
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Custombilling {}
crates/hyperswitch_connectors/src/connectors/custombilling.rs
hyperswitch_connectors
impl_block
7
rust
null
Custombilling
ConnectorSpecifications for
impl ConnectorSpecifications for for Custombilling
null
null
null
null
null
null
null
null
pub async fn network_token_incoming_webhooks_wrapper<W: types::OutgoingWebhookType>( flow: &impl router_env::types::FlowMetric, state: SessionState, req: &actix_web::HttpRequest, body: actix_web::web::Bytes, ) -> RouterResponse<serde_json::Value> { let start_instant = Instant::now(); let reques...
crates/router/src/core/webhooks/incoming.rs
router
function_signature
464
rust
null
null
null
null
network_token_incoming_webhooks_wrapper
null
null
null
null
null
null
null