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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
File: crates/router/src/workflows/refund_router.rs
Public structs: 1
use scheduler::consumer::workflows::ProcessTrackerWorkflow;
#[cfg(feature = "v1")]
use crate::core::refunds as refund_flow;
use crate::{errors, logger::error, routes::SessionState, types::storage};
pub struct RefundWorkflowRouter;
#[async_trait::... | crates/router/src/workflows/refund_router.rs | router | full_file | 299 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_merchant_cgraph(
state: &SessionState,
key_store: &domain::MerchantKeyStore,
profile_id: &common_utils::id_type::ProfileId,
transaction_type: &api_enums::TransactionType,
) -> RoutingResult<Arc<hyperswitch_constraint_graph::ConstraintGraph<euclid_dir::DirValue>>> {
let merchant_id =... | crates/router/src/core/payments/routing.rs | router | function_signature | 336 | rust | null | null | null | null | get_merchant_cgraph | null | null | null | null | null | null | null |
pub async fn find_by_merchant_id_fingerprint_id(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
fingerprint_id: &str,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
dsl::merchant_id
... | crates/diesel_models/src/query/blocklist.rs | diesel_models | function_signature | 111 | rust | null | null | null | null | find_by_merchant_id_fingerprint_id | null | null | null | null | null | null | null |
impl api::PaymentVoid for Checkbook {} | crates/hyperswitch_connectors/src/connectors/checkbook.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Checkbook | api::PaymentVoid for | impl api::PaymentVoid for for Checkbook | null | null | null | null | null | null | null | null |
File: crates/router/tests/customers.rs
#![allow(clippy::unwrap_used, clippy::print_stdout)]
mod utils;
// setting the connector in environment variables doesn't work when run in parallel. Neither does passing the paymentid
// do we'll test refund and payment in same tests and later implement thread_local variables.
... | crates/router/tests/customers.rs | router | full_file | 1,542 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct WalletSource {
#[serde(rename = "type")]
pub source_type: CheckoutSourceTypes,
pub token: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs | hyperswitch_connectors | struct_definition | 30 | rust | WalletSource | null | null | null | null | null | null | null | null | null | null | null |
impl std::ops::Deref for PayoutsMandateReference {
type Target =
HashMap<common_utils::id_type::MerchantConnectorAccountId, PayoutsMandateReferenceRecord>;
fn deref(&self) -> &Self::Target {
&self.0
}
} | crates/diesel_models/src/payment_method.rs | diesel_models | impl_block | 64 | rust | null | PayoutsMandateReference | std::ops::Deref for | impl std::ops::Deref for for PayoutsMandateReference | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Breadpay {} | crates/hyperswitch_connectors/src/connectors/breadpay.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Breadpay | ConnectorValidation for | impl ConnectorValidation for for Breadpay | null | null | null | null | null | null | null | null |
pub struct AccountReferenceMap {
pub recovery_to_billing: HashMap<id_type::MerchantConnectorAccountId, String>,
pub billing_to_recovery: HashMap<String, id_type::MerchantConnectorAccountId>,
} | crates/hyperswitch_domain_models/src/merchant_connector_account.rs | hyperswitch_domain_models | struct_definition | 40 | rust | AccountReferenceMap | null | null | null | null | null | null | null | null | null | null | null |
impl RoutingApproach {
pub fn from_decision_engine_approach(approach: &str) -> Self {
match approach {
"SR_SELECTION_V3_ROUTING" => Self::SuccessRateExploitation,
"SR_V3_HEDGING" => Self::SuccessRateExploration,
"NTW_BASED_ROUTING" => Self::DebitRouting,
"DEFA... | crates/common_enums/src/enums.rs | common_enums | impl_block | 101 | rust | null | RoutingApproach | null | impl RoutingApproach | null | null | null | null | null | null | null | null |
pub struct DigitalvirgoAuthType {
pub(super) username: Secret<String>,
pub(super) password: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/digitalvirgo/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | DigitalvirgoAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub struct SofortInfo {} | crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs | hyperswitch_connectors | struct_definition | 6 | rust | SofortInfo | null | null | null | null | null | null | null | null | null | null | null |
impl api::Payment for Bankofamerica {} | crates/hyperswitch_connectors/src/connectors/bankofamerica.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Bankofamerica | api::Payment for | impl api::Payment for for Bankofamerica | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Blackhawknetwork {
fn validate_mandate_payment(
&self,
_pm_type: Option<PaymentMethodType>,
pm_data: PaymentMethodData,
) -> CustomResult<(), errors::ConnectorError> {
match pm_data {
PaymentMethodData::Card(_) => Err(errors::ConnectorErro... | crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs | hyperswitch_connectors | impl_block | 178 | rust | null | Blackhawknetwork | ConnectorValidation for | impl ConnectorValidation for for Blackhawknetwork | null | null | null | null | null | null | null | null |
pub struct JpmorganAuthUpdateRequest {
pub grant_type: String,
pub scope: String,
} | crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | JpmorganAuthUpdateRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct Headers(pub HashMap<String, String>); | crates/api_models/src/proxy.rs | api_models | struct_definition | 10 | rust | Headers | null | null | null | null | null | null | null | null | null | null | null |
// connector_metadata: None,
// payment_method_data: None,
// payment_experience: None,
// straight_through_algorithm: None,
// preprocessing_step_id: None,
// error_reason: None,
// connector_response_refere... | crates/diesel_models/src/payment_attempt.rs#chunk2 | diesel_models | chunk | 8,191 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CustomerDeleteResponse {
/// Unique identifier for the customer
#[schema(
min_length = 32,
max_length = 64,
example = "12345_cus_01926c58bc6e77c09e809964e72af8c8",
value_type = String
)]
pub id: id_type::GlobalCustomerId,
/// The identifier for the customer... | crates/api_models/src/customers.rs | api_models | struct_definition | 228 | rust | CustomerDeleteResponse | null | null | null | null | null | null | null | null | null | null | null |
pub trait State {} | crates/router/src/core/payment_methods/tokenize.rs | router | trait_definition | 4 | rust | null | null | State | null | null | null | null | null | null | null | null | null |
pub async fn find_by_merchant_id_refund_id(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
refund_id: &str,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
dsl::merchant_id
... | crates/diesel_models/src/query/refund.rs | diesel_models | function_signature | 110 | rust | null | null | null | null | find_by_merchant_id_refund_id | null | null | null | null | null | null | null |
impl Context {
pub fn check_presence(&self, value: &EuclidValue) -> bool {
let key = value.get_key();
match key.key_type() {
types::DataType::MetadataValue => self.atomic_values.contains(value),
types::DataType::StrValue => self.atomic_values.contains(value),
typ... | crates/euclid/src/backend/vir_interpreter/types.rs | euclid | impl_block | 1,161 | rust | null | Context | null | impl Context | null | null | null | null | null | null | null | null |
impl PayoutAttemptNew {
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<PayoutAttempt> {
generics::generic_insert(conn, self).await
}
} | crates/diesel_models/src/query/payout_attempt.rs | diesel_models | impl_block | 43 | rust | null | PayoutAttemptNew | null | impl PayoutAttemptNew | null | null | null | null | null | null | null | null |
pub struct RiskFactorsInner {
#[serde(rename = "type")]
pub risk_type: RiskType,
#[serde(skip_serializing_if = "Option::is_none")]
pub detail: Option<Detail>,
pub risk: Risk,
} | crates/hyperswitch_connectors/src/connectors/worldpay/response.rs | hyperswitch_connectors | struct_definition | 51 | rust | RiskFactorsInner | null | null | null | null | null | null | null | null | null | null | null |
pub struct Config {
pub key: String,
pub value: String,
} | crates/router/src/types/api/configs.rs | router | struct_definition | 17 | rust | Config | null | null | null | null | null | null | null | null | null | null | null |
pub fn drainer_stream(&self, shard_key: &str) -> String {
// Example: {shard_5}_drainer_stream
format!("{{{}}}_{}", shard_key, self.config.drainer_stream_name,)
} | crates/drainer/src/stream.rs | drainer | function_signature | 50 | rust | null | null | null | null | drainer_stream | null | null | null | null | null | null | null |
impl api::Payment for Nuvei {} | crates/hyperswitch_connectors/src/connectors/nuvei.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Nuvei | api::Payment for | impl api::Payment for for Nuvei | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/routing/routing--retrieve.mdx
# Type: Doc File
---
openapi: get /v2/routing-algorithms/{id}
--- | api-reference/v2/routing/routing--retrieve.mdx | null | doc_file | 37 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct AuthenticationFunnel; | crates/api_models/src/analytics/auth_events.rs | api_models | struct_definition | 6 | rust | AuthenticationFunnel | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.TxnStatus
{
"type": "string",
"enum": [
"STARTED",
"AUTHENTICATION_FAILED",
"JUSPAY_DECLINED",
"PENDING_VBV",
"V_B_V_SUCCESSFUL",
"AUTHORIZED",
"AUTHORIZATION_FAILED",
"CHARGED",
"AUTHORIZING",
"C_O_D_INITIATED",
"VOIDED",
"VOIDE... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 173 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"TxnStatus"
] | null | null | null | null |
impl api::PaymentToken for Nexixpay {} | crates/hyperswitch_connectors/src/connectors/nexixpay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Nexixpay | api::PaymentToken for | impl api::PaymentToken for for Nexixpay | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.IframeData
{
"oneOf": [
{
"type": "object",
"required": [
"three_ds_method_url",
"three_ds_method_data_submission",
"directory_server_id",
"method_key"
],
"properties": {
"three_ds_method_url": {
"type... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 267 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"IframeData"
] | null | null | null | null |
impl api::PaymentsPreProcessing for Nexixpay {} | crates/hyperswitch_connectors/src/connectors/nexixpay.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Nexixpay | api::PaymentsPreProcessing for | impl api::PaymentsPreProcessing for for Nexixpay | null | null | null | null | null | null | null | null |
File: crates/api_models/src/payments.rs
Public functions: 69
Public structs: 305
#[cfg(feature = "v1")]
use std::fmt;
use std::{
collections::{HashMap, HashSet},
num::NonZeroI64,
};
pub mod additional_info;
pub mod trait_impls;
use cards::CardNumber;
#[cfg(feature = "v2")]
use common_enums::enums::PaymentCon... | crates/api_models/src/payments.rs#chunk0 | api_models | chunk | 8,186 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn routing_retrieve_config(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<common_utils::id_type::RoutingId>,
) -> impl Responder {
let algorithm_id = path.into_inner();
let flow = Flow::RoutingRetrieveConfig;
Box::pin(oss_api::server_wrap(
flow,
state,
... | crates/router/src/routes/routing.rs | router | function_signature | 279 | rust | null | null | null | null | routing_retrieve_config | null | null | null | null | null | null | null |
pub struct VgsTokenResponseItem {
value: Secret<String>,
classifiers: Vec<String>,
aliases: Vec<VgsAliasItem>,
created_at: Option<String>,
storage: String,
} | crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs | hyperswitch_connectors | struct_definition | 42 | rust | VgsTokenResponseItem | null | null | null | null | null | null | null | null | null | null | null |
connector_response: None,
integrity_check: Ok(()),
additional_merchant_data: None,
header_payload,
connector_mandate_request_reference_id: None,
authentication_id: None,
psd2_sca_exemption_type: None,
raw_connector_response: None,
is_payment_id_fro... | crates/router/src/core/payments/transformers.rs#chunk1 | router | chunk | 8,191 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl UserRoleInterface for MockDb {
async fn insert_user_role(
&self,
user_role: storage::UserRoleNew,
) -> CustomResult<storage::UserRole, errors::StorageError> {
let mut db_user_roles = self.user_roles.lock().await;
if db_user_roles
.iter()
.any(|user_r... | crates/router/src/db/user_role.rs | router | impl_block | 2,496 | rust | null | MockDb | UserRoleInterface for | impl UserRoleInterface for for MockDb | null | null | null | null | null | null | null | null |
File: crates/scheduler/src/configs/settings.rs
Public structs: 4
pub use router_env::config::{Log, LogConsole, LogFile, LogTelemetry};
use serde::Deserialize;
#[derive(Debug, Clone, Deserialize)]
#[serde(default)]
pub struct SchedulerSettings {
pub stream: String,
pub producer: ProducerSettings,
pub cons... | crates/scheduler/src/configs/settings.rs | scheduler | full_file | 233 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub trait WalletFlow<F, D>: Send + Sync
where
F: Send + Clone,
D: OperationSessionGetters<F> + Send + Sync + Clone,
{
/// Check if wallet data is already decrypted and return token if so
fn check_predecrypted_token(
&self,
_payment_data: &D,
) -> CustomResult<Option<PaymentMethodToke... | crates/router/src/core/payments.rs | router | trait_definition | 208 | rust | null | null | WalletFlow | null | null | null | null | null | null | null | null | null |
pub async fn update_payment_processor_token_error_code_from_process_tracker(
state: &SessionState,
connector_customer_id: &str,
error_code: &Option<String>,
is_hard_decline: &Option<bool>,
payment_processor_token_id: Option<&str>,
) -> CustomResult<bool, errors::StorageError>... | crates/router/src/types/storage/revenue_recovery_redis_operation.rs | router | function_signature | 486 | rust | null | null | null | null | update_payment_processor_token_error_code_from_process_tracker | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.CardDetailFromLocker
{
"type": "object",
"required": [
"saved_to_locker"
],
"properties": {
"scheme": {
"type": "string",
"nullable": true
},
"issuer_country": {
"type": "string",
"nullable": true
},
"last4_digits": {
"... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 354 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"CardDetailFromLocker"
] | null | null | null | null |
pub struct PayloadMandateRequestData {
pub amount: StringMajorUnit,
#[serde(rename = "type")]
pub transaction_types: TransactionTypes,
// Based on the connectors' response, we can do recurring payment either based on a default payment method id saved in the customer profile or a specific payment method ... | crates/hyperswitch_connectors/src/connectors/payload/requests.rs | hyperswitch_connectors | struct_definition | 129 | rust | PayloadMandateRequestData | null | null | null | null | null | null | null | null | null | null | null |
File: crates/test_utils/src/connector_auth.rs
Public functions: 3
Public structs: 10
use std::{collections::HashMap, env};
use masking::Secret;
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct ConnectorAuthentication {
pub aci: Option<BodyKey>,
#[cfg(not(featu... | crates/test_utils/src/connector_auth.rs | test_utils | full_file | 3,641 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn values_mut(&mut self) -> slice::IterMut<'_, V> {
self.data.iter_mut()
} | crates/hyperswitch_constraint_graph/src/dense_map.rs | hyperswitch_constraint_graph | function_signature | 26 | rust | null | null | null | null | values_mut | null | null | null | null | null | null | null |
impl PaymentMethodCreate {
pub fn get_payment_method_create_from_payment_method_migrate(
card_number: CardNumber,
payment_method_migrate: &PaymentMethodMigrate,
) -> Self {
let card_details =
payment_method_migrate
.card
.as_ref()
... | crates/api_models/src/payment_methods.rs | api_models | impl_block | 442 | rust | null | PaymentMethodCreate | null | impl PaymentMethodCreate | null | null | null | null | null | null | null | null |
pub struct DisputeListPTData {
pub connector_name: String,
pub merchant_connector_id: common_utils::id_type::MerchantConnectorAccountId,
pub merchant_id: common_utils::id_type::MerchantId,
pub profile_id: common_utils::id_type::ProfileId,
pub created_from: time::PrimitiveDateTime,
pub created_ti... | crates/router/src/types/api/disputes.rs | router | struct_definition | 81 | rust | DisputeListPTData | null | null | null | null | null | null | null | null | null | null | null |
pub struct UnifiedAuthenticationServiceCard {
number: cards::CardNumber,
expiry_month: Secret<String>,
expiry_year: Secret<String>,
cvc: Secret<String>,
complete: bool,
} | crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs | hyperswitch_connectors | struct_definition | 42 | rust | UnifiedAuthenticationServiceCard | null | null | null | null | null | null | null | null | null | null | null |
fn handle_response(
&self,
data: &RefundSyncRouterData,
event_builder: Option<&mut ConnectorEvent>,
res: Response,
) -> CustomResult<RefundSyncRouterData, errors::ConnectorError> {
let response: bluesnap::BluesnapPaymentsResponse = res
.response
.p... | crates/hyperswitch_connectors/src/connectors/bluesnap.rs#chunk1 | hyperswitch_connectors | chunk | 5,020 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Zen {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&ZEN_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*ZEN_SUPPORTED_PAYMENT_METHODS)
}
fn get_supported_webhoo... | crates/hyperswitch_connectors/src/connectors/zen.rs | hyperswitch_connectors | impl_block | 104 | rust | null | Zen | ConnectorSpecifications for | impl ConnectorSpecifications for for Zen | null | null | null | null | null | null | null | null |
pub struct OutgoingWebhookPayloadWithSignature {
pub payload: Secret<String>,
pub signature: Option<String>,
} | crates/router/src/core/webhooks/types.rs | router | struct_definition | 25 | rust | OutgoingWebhookPayloadWithSignature | null | null | null | null | null | null | null | null | null | null | null |
pub trait Domain<F: Clone, R, D>: Send + Sync {
#[cfg(feature = "v1")]
/// This will fetch customer details, (this operation is flow specific)
async fn get_or_create_customer_details<'a>(
&'a self,
state: &SessionState,
payment_data: &mut D,
request: Option<CustomerDetails>,
... | crates/router/src/core/payments/operations.rs | router | trait_definition | 1,765 | rust | null | null | Domain | null | null | null | null | null | null | null | null | null |
impl api::Payment for Facilitapay {} | crates/hyperswitch_connectors/src/connectors/facilitapay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Facilitapay | api::Payment for | impl api::Payment for for Facilitapay | null | null | null | null | null | null | null | null |
pub struct GetMultipleMetaDataRequest {
pub keys: String,
} | crates/api_models/src/user/dashboard_metadata.rs | api_models | struct_definition | 14 | rust | GetMultipleMetaDataRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn make_card_network_tokenization_request(
state: &routes::SessionState,
card: &domain::CardDetail,
optional_cvc: Option<Secret<String>>,
customer_id: &id_type::CustomerId,
) -> CustomResult<
(pm_types::CardNetworkTokenResponsePayload, Option<String>),
errors::NetworkTokenizationError,... | crates/router/src/core/payment_methods/network_tokenization.rs | router | function_signature | 356 | rust | null | null | null | null | make_card_network_tokenization_request | null | null | null | null | null | null | null |
pub struct Refund {
refund_transaction_id: String,
amount: StringMajorUnit,
} | crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | Refund | null | null | null | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/user/theme.rs
Public functions: 2
Public structs: 3
use common_enums::EntityType;
use common_utils::{
date_time, id_type,
types::user::{EmailThemeConfig, ThemeLineage},
};
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use router_derive::DebugAsDisp... | crates/diesel_models/src/user/theme.rs | diesel_models | full_file | 896 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl IncomingWebhook for Airwallex {
fn get_webhook_source_verification_algorithm(
&self,
_request: &IncomingWebhookRequestDetails<'_>,
) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> {
Ok(Box::new(crypto::HmacSha256))
}
fn get_webhook_source_v... | crates/hyperswitch_connectors/src/connectors/airwallex.rs | hyperswitch_connectors | impl_block | 1,285 | rust | null | Airwallex | IncomingWebhook for | impl IncomingWebhook for for Airwallex | null | null | null | null | null | null | null | null |
impl Responder {
#[allow(clippy::expect_used)]
// safety: This shouldn't panic owing to the data type
let payload = json_payload
.into_inner()
.to_vec()
.pop()
.expect("Couldn't get GetFrmMetricRequest");
let flow = AnalyticsFlow::GetFrmMet... | crates/router/src/analytics.rs | router | impl_block | 182 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/katapult.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use common_enums::enums;
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
ty... | crates/hyperswitch_connectors/src/connectors/katapult.rs | hyperswitch_connectors | full_file | 4,723 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct FiservCancelRequest {
transaction_details: TransactionDetails,
merchant_details: MerchantDetails,
reference_transaction_details: ReferenceTransactionDetails,
} | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 32 | rust | FiservCancelRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct DisputeOutcome {
pub outcome_code: OutcomeCode,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | DisputeOutcome | null | null | null | null | null | null | null | null | null | null | null |
pub async fn payments_get_intent(
state: web::Data<app::AppState>,
req: actix_web::HttpRequest,
path: web::Path<common_utils::id_type::GlobalPaymentId>,
) -> impl Responder {
use api_models::payments::PaymentsGetIntentRequest;
use hyperswitch_domain_models::payments::PaymentIntentData;
let flow... | crates/router/src/routes/payments.rs | router | function_signature | 421 | rust | null | null | null | null | payments_get_intent | null | null | null | null | null | null | null |
pub struct AuthorizedotnetQueryParams {
payer_id: String,
} | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | AuthorizedotnetQueryParams | null | null | null | null | null | null | null | null | null | null | null |
pub struct ItaubankAuthType {
pub(super) client_id: Secret<String>,
pub(super) client_secret: Secret<String>,
pub(super) certificate: Option<Secret<String>>,
pub(super) certificate_key: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs | hyperswitch_connectors | struct_definition | 52 | rust | ItaubankAuthType | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_interfaces/src/events/connector_api_logs.rs
Public functions: 4
Public structs: 1
//! Connector API logs interface
use common_utils::request::Method;
use router_env::tracing_actix_web::RequestId;
use serde::Serialize;
use serde_json::json;
use time::OffsetDateTime;
/// struct ConnectorEven... | crates/hyperswitch_interfaces/src/events/connector_api_logs.rs | hyperswitch_interfaces | full_file | 695 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn from_conf(
conf: DrainerSettings,
stores: HashMap<id_type::TenantId, Arc<Store>>,
) -> Self {
let shutdown_interval = Duration::from_millis(conf.shutdown_interval.into());
let loop_interval = Duration::from_millis(conf.loop_interval.into());
let active_tasks = Arc::ne... | crates/drainer/src/handler.rs | drainer | function_signature | 143 | rust | null | null | null | null | from_conf | null | null | null | null | null | null | null |
/// Implement `ToSql` on arrays of types that impl `ToString`.
macro_rules! impl_to_sql_for_to_string {
($($type:ty),+) => {
$(
impl<T: AnalyticsDataSource> ToSql<T> for $type {
fn to_sql(&self, _table_engine: &TableEngine) -> error_stack::Result<String, ParsingError> {
... | crates/analytics/src/query.rs | analytics | macro | 95 | rust | null | null | null | null | null | null | null | null | declarative | null | null | null |
pub struct RazorpayRouterData<T> {
pub amount: MinorUnit,
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | hyperswitch_connectors | struct_definition | 24 | rust | RazorpayRouterData | null | null | null | null | null | null | null | null | null | null | null |
pub struct ThreeDSecure {
challenge_window_size: u8,
} | crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | ThreeDSecure | null | null | null | null | null | null | null | null | null | null | null |
impl UserName {
pub fn new(name: Secret<String>) -> UserResult<Self> {
let name = name.expose();
let is_empty_or_whitespace = name.trim().is_empty();
let is_too_long = name.graphemes(true).count() > consts::user::MAX_NAME_LENGTH;
let forbidden_characters = ['/', '(', ')', '"', '<', ... | crates/router/src/types/domain/user.rs | router | impl_block | 166 | rust | null | UserName | null | impl UserName | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Payeezy {} | crates/hyperswitch_connectors/src/connectors/payeezy.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Payeezy | api::PaymentToken for | impl api::PaymentToken for for Payeezy | null | null | null | null | null | null | null | null |
pub struct ThreeD {
pub method_completion_ind: Option<MethodCompletion>,
pub browser_details: Option<BrowserDetails>,
pub version: Option<String>,
#[serde(rename = "notificationURL")]
pub notification_url: Option<String>,
#[serde(rename = "merchantURL")]
pub merchant_url: Option<String>,
... | crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | hyperswitch_connectors | struct_definition | 252 | rust | ThreeD | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PayoutFulfillRequest
{
"type": "object",
"required": [
"payout_id"
],
"properties": {
"payout_id": {
"type": "string",
"description": "Unique identifier for the payout. This ensures idempotency for multiple payouts\nthat have been done by a single merch... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 158 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PayoutFulfillRequest"
] | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/nordea.rs
Public functions: 3
Public structs: 1
mod requests;
mod responses;
pub mod transformers;
use base64::Engine;
use common_enums::enums;
use common_utils::{
consts, date_time,
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Requ... | crates/hyperswitch_connectors/src/connectors/nordea.rs#chunk0 | hyperswitch_connectors | chunk | 8,191 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_organization_id(&self) -> id_type::OrganizationId {
self.0.get_organization_id()
} | crates/router/src/types/domain/user.rs | router | function_signature | 25 | rust | null | null | null | null | get_organization_id | null | null | null | null | null | null | null |
impl Responder {
let flow = AnalyticsFlow::GeneratePaymentReport;
Box::pin(api::server_wrap(
flow,
state.clone(),
&req,
json_payload.into_inner(),
|state, (auth, user_id): auth::AuthenticationDataWithUserId, payload, _| async move {
... | crates/router/src/analytics.rs | router | impl_block | 298 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.CardDetail
{
"type": "object",
"required": [
"card_number",
"card_exp_month",
"card_exp_year",
"card_holder_name"
],
"properties": {
"card_number": {
"type": "string",
"description": "Card Number",
"example": "4111111145551142"
},
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 383 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"CardDetail"
] | null | null | null | null |
pub struct VoltPaymentWebhookBodyReference {
pub payment: String,
pub merchant_internal_reference: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | VoltPaymentWebhookBodyReference | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentsMandateReference(
pub HashMap<common_utils::id_type::MerchantConnectorAccountId, PaymentsMandateReferenceRecord>,
); | crates/hyperswitch_domain_models/src/mandates.rs | hyperswitch_domain_models | struct_definition | 30 | rust | PaymentsMandateReference | null | null | null | null | null | null | null | null | null | null | null |
Success,
#[serde(alias = "TransactionFailure")]
TransactionFailure,
}
#[derive(
Clone,
Copy,
Debug,
Default,
Eq,
Hash,
PartialEq,
strum::Display,
strum::EnumString,
strum::EnumIter,
serde::Serialize,
serde::Deserialize,
ToSchema,
)]
#[router_derive::diese... | crates/common_enums/src/enums.rs#chunk2 | common_enums | chunk | 8,187 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Checkout {} | crates/hyperswitch_connectors/src/connectors/checkout.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Checkout | api::PaymentVoid for | impl api::PaymentVoid for for Checkout | null | null | null | null | null | null | null | null |
pub struct JWTAuthOrganizationFromRoute {
pub organization_id: id_type::OrganizationId,
pub required_permission: Permission,
} | crates/router/src/services/authentication.rs | router | struct_definition | 27 | rust | JWTAuthOrganizationFromRoute | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentMethodSessionRequest {
/// The customer id for which the payment methods session is to be created
#[schema(value_type = String, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")]
pub customer_id: id_type::GlobalCustomerId,
/// The billing address details of the customer. This will also be u... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 355 | rust | PaymentMethodSessionRequest | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/payment-methods/payment-method--delete.mdx
# Type: Doc File
---
openapi: delete /v2/payment-methods/{id}
--- | api-reference/v2/payment-methods/payment-method--delete.mdx | null | doc_file | 37 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ApplePayPredecryptDataInternal {
pub application_primary_account_number: cards::CardNumber,
pub application_expiration_date: String,
pub currency_code: String,
pub transaction_amount: i64,
pub device_manufacturer_identifier: Secret<String>,
pub payment_data_type: Secret<String>,
p... | crates/hyperswitch_domain_models/src/router_data.rs | hyperswitch_domain_models | struct_definition | 78 | rust | ApplePayPredecryptDataInternal | null | null | null | null | null | null | null | null | null | null | null |
pub struct FilesFlowData {
pub merchant_id: common_utils::id_type::MerchantId,
pub payment_id: String,
pub attempt_id: String,
pub connector_meta_data: Option<pii::SecretSerdeValue>,
pub connector_request_reference_id: String,
} | crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs | hyperswitch_domain_models | struct_definition | 59 | rust | FilesFlowData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn invite_multiple_user(
state: SessionState,
user_from_token: auth::UserFromToken,
requests: Vec<user_api::InviteUserRequest>,
req_state: ReqState,
auth_id: Option<String>,
) -> UserResponse<Vec<InviteMultipleUserResponse>> {
if requests.len() > 10 {
return Err(report!(UserErr... | crates/router/src/core/user.rs | router | function_signature | 235 | rust | null | null | null | null | invite_multiple_user | null | null | null | null | null | null | null |
pub fn get_qr_metadata(
response: &DuitNowQrCodeResponse,
) -> CustomResult<Option<serde_json::Value>, errors::ConnectorError> {
let image_data = QrImage::new_colored_from_data(
response.txn_data.request_data.qr_data.peek().clone(),
constants::DUIT_NOW_BRAND_COLOR,
)
.change_context(erro... | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | function_signature | 233 | rust | null | null | null | null | get_qr_metadata | null | null | null | null | null | null | null |
pub struct BlackhawknetworkPaymentsRequest {
pub account_id: String,
pub amount: StringMajorUnit,
pub currency: Currency,
} | crates/hyperswitch_connectors/src/connectors/blackhawknetwork/transformers.rs | hyperswitch_connectors | struct_definition | 30 | rust | BlackhawknetworkPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
impl FraudCheckCheckout for Signifyd {} | crates/hyperswitch_connectors/src/connectors/signifyd.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Signifyd | FraudCheckCheckout for | impl FraudCheckCheckout for for Signifyd | null | null | null | null | null | null | null | null |
pub struct GooglePayMerchantInfo {
pub merchant_name: Secret<String>,
pub merchant_id: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | hyperswitch_connectors | struct_definition | 24 | rust | GooglePayMerchantInfo | null | null | null | null | null | null | null | null | null | null | null |
pub async fn generate_sample_data(
state: &SessionState,
req: SampleDataRequest,
merchant_id: &id_type::MerchantId,
org_id: &id_type::OrganizationId,
) -> SampleDataResult<
Vec<(
PaymentIntent,
PaymentAttemptBatchNew,
Option<RefundNew>,
Option<DisputeNew>,
)>,
> {... | crates/router/src/utils/user/sample_data.rs | router | function_signature | 3,796 | rust | null | null | null | null | generate_sample_data | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Stripe {} | crates/hyperswitch_connectors/src/connectors/stripe.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Stripe | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Stripe | null | null | null | null | null | null | null | null |
pub struct CardNetworkTokenResponse {
pub payload: Secret<String>, //encrypted payload
} | crates/router/src/types/payment_methods.rs | router | struct_definition | 19 | rust | CardNetworkTokenResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundPaymentData {
#[serde(rename = "merchant-account-id")]
pub merchant_account_id: MerchantAccountId,
#[serde(rename = "request-id")]
pub request_id: String,
#[serde(rename = "transaction-type")]
pub transaction_type: GetnetTransactionType,
#[serde(rename = "parent-transaction-... | crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | hyperswitch_connectors | struct_definition | 110 | rust | RefundPaymentData | null | null | null | null | null | null | null | null | null | null | null |
pub struct BluesnapAuthType {
pub(super) api_key: Secret<String>,
pub(super) key1: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | BluesnapAuthType | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/core/webhooks.rs
#[cfg(feature = "v1")]
pub mod incoming;
#[cfg(feature = "v2")]
mod incoming_v2;
#[cfg(feature = "v1")]
mod network_tokenization_incoming;
#[cfg(feature = "v1")]
mod outgoing;
#[cfg(feature = "v2")]
mod outgoing_v2;
#[cfg(all(feature = "revenue_recovery", feature = "v2"))]
pub ... | crates/router/src/core/webhooks.rs | router | full_file | 229 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct MandateResponse {
/// The identifier for mandate
pub mandate_id: String,
/// The status for mandates
#[schema(value_type = MandateStatus)]
pub status: api_enums::MandateStatus,
/// The identifier for payment method
pub payment_method_id: String,
/// The payment method
pub ... | crates/api_models/src/mandates.rs | api_models | struct_definition | 152 | rust | MandateResponse | null | null | null | null | null | null | null | null | null | null | null |
impl RequiredFields {
pub fn new(bank_config: &BankRedirectConfig) -> Self {
let cards_required_fields = get_cards_required_fields();
let mut debit_required_fields = cards_required_fields.clone();
debit_required_fields.extend(HashMap::from([
(
Connector::Bankofame... | crates/payment_methods/src/configs/payment_connector_required_fields.rs | payment_methods | impl_block | 1,265 | rust | null | RequiredFields | null | impl RequiredFields | null | null | null | null | null | null | null | null |
impl Responder {
use crate::services::authentication::AuthenticationData;
let flow = Flow::RoutingRetrieveActiveConfig;
let query = query.into_inner();
if let Some(profile_id) = query.profile_id.clone() {
Box::pin(oss_api::server_wrap(
flow,
state,
&req,
... | crates/router/src/routes/routing.rs | router | impl_block | 455 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.