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 async fn get_filters(
pool: &AnalyticsProvider,
req: GetApiEventFiltersRequest,
merchant_id: &common_utils::id_type::MerchantId,
) -> AnalyticsResult<ApiEventFiltersResponse> {
use api_models::analytics::{api_event::ApiEventDimensions, ApiEventFilterValue};
use super::filters::get_api_event_fil... | crates/analytics/src/api_event/core.rs | analytics | function_signature | 335 | rust | null | null | null | null | get_filters | null | null | null | null | null | null | null |
pub fn get_error_response(
error_data: &Option<CybersourceErrorInformation>,
processor_information: &Option<ClientProcessorInformation>,
risk_information: &Option<ClientRiskInformation>,
attempt_status: Option<enums::AttemptStatus>,
status_code: u16,
transaction_id: String,
) -> ErrorResponse {
... | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | function_signature | 492 | rust | null | null | null | null | get_error_response | null | null | null | null | null | null | null |
pub struct GetPaymentMethodResponse {
pub payment_method: AddPaymentMethodResponse,
} | crates/router/src/core/payment_methods/transformers.rs | router | struct_definition | 18 | rust | GetPaymentMethodResponse | null | null | null | null | null | null | null | null | null | null | null |
impl RefundNew {
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Refund> {
generics::generic_insert(conn, self).await
}
} | crates/diesel_models/src/query/refund.rs | diesel_models | impl_block | 42 | rust | null | RefundNew | null | impl RefundNew | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Flexiti {} | crates/hyperswitch_connectors/src/connectors/flexiti.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Flexiti | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Flexiti | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Trustpayments {
fn validate_mandate_payment(
&self,
_pm_type: Option<enums::PaymentMethodType>,
pm_data: PaymentMethodData,
) -> CustomResult<(), errors::ConnectorError> {
match pm_data {
PaymentMethodData::Card(_) => Err(errors::Connector... | crates/hyperswitch_connectors/src/connectors/trustpayments.rs | hyperswitch_connectors | impl_block | 179 | rust | null | Trustpayments | ConnectorValidation for | impl ConnectorValidation for for Trustpayments | null | null | null | null | null | null | null | null |
File: crates/router/src/core/payments/routing/utils.rs
Public functions: 24
Public structs: 42
use std::{
collections::{HashMap, HashSet},
str::FromStr,
};
use api_models::{
open_router as or_types,
routing::{
self as api_routing, ComparisonType, ConnectorSelection, ConnectorVolumeSplit,
... | crates/router/src/core/payments/routing/utils.rs#chunk0 | router | chunk | 8,184 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct NetworkTokenizedCard {
number: NetworkTokenNumber,
expiration_month: Secret<String>,
expiration_year: Secret<String>,
cryptogram: Option<Secret<String>>,
transaction_type: TransactionType,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 45 | rust | NetworkTokenizedCard | null | null | null | null | null | null | null | null | null | null | null |
impl SerializableSecret for Value {} | crates/masking/src/serde.rs | masking | impl_block | 6 | rust | null | Value | SerializableSecret for | impl SerializableSecret for for Value | null | null | null | null | null | null | null | null |
impl State for CardInfoResponse {} | crates/router/src/core/cards_info.rs | router | impl_block | 7 | rust | null | CardInfoResponse | State for | impl State for for CardInfoResponse | null | null | null | null | null | null | null | null |
pub struct OrganizationResponse {
/// The unique identifier for the Organization
#[schema(value_type = String, max_length = 64, min_length = 1, example = "org_q98uSGAYbjEwqs0mJwnz")]
pub id: id_type::OrganizationId,
/// Name of the Organization
pub organization_name: Option<String>,
/// Detail... | crates/api_models/src/organization.rs | api_models | struct_definition | 207 | rust | OrganizationResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct AciCaptureResult {
code: String,
description: String,
} | crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | AciCaptureResult | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/payment_intents/metrics.rs
Public structs: 1
use std::collections::HashSet;
use api_models::analytics::{
payment_intents::{
PaymentIntentDimensions, PaymentIntentFilters, PaymentIntentMetrics,
PaymentIntentMetricsBucketIdentifier,
},
Granularity, TimeRange,
};
u... | crates/analytics/src/payment_intents/metrics.rs | analytics | full_file | 1,286 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ThunesRefundRequest {
pub amount: StringMinorUnit,
} | crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs | hyperswitch_connectors | struct_definition | 17 | rust | ThunesRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct Payouts {
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<St... | crates/diesel_models/src/payouts.rs | diesel_models | struct_definition | 296 | rust | Payouts | null | null | null | null | null | null | null | null | null | null | null |
impl Mollie {
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMajorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/mollie.rs | hyperswitch_connectors | impl_block | 35 | rust | null | Mollie | null | impl Mollie | null | null | null | null | null | null | null | null |
pub struct PayeezyRouterData<T> {
pub amount: String,
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs | hyperswitch_connectors | struct_definition | 24 | rust | PayeezyRouterData | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/customers/customers--update.mdx
# Type: Doc File
---
openapi: post /v2/customers/{id}
---
| api-reference/v2/customers/customers--update.mdx | null | doc_file | 35 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_filters(
pool: &AnalyticsProvider,
req: GetFrmFilterRequest,
merchant_id: &common_utils::id_type::MerchantId,
) -> AnalyticsResult<FrmFiltersResponse> {
let mut res = FrmFiltersResponse::default();
for dim in req.group_by_names {
let values = match pool {
Analyti... | crates/analytics/src/frm/core.rs | analytics | function_signature | 613 | rust | null | null | null | null | get_filters | null | null | null | null | null | null | null |
pub struct RedsysEmv3DSData {
protocol_version: String,
three_d_s_server_trans_i_d: Option<String>,
three_d_s_info: Option<RedsysThreeDsInfo>,
three_d_s_method_u_r_l: Option<String>,
acs_u_r_l: Option<String>,
creq: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | struct_definition | 72 | rust | RedsysEmv3DSData | null | null | null | null | null | null | null | null | null | null | null |
pub struct BillingConnectorPaymentsSyncRequest {
/// unique id for making billing connector psync call
pub billing_connector_psync_id: String,
/// connector params of the connector
pub connector_params: connector_endpoints::ConnectorParams,
} | crates/hyperswitch_domain_models/src/router_request_types/revenue_recovery.rs | hyperswitch_domain_models | struct_definition | 51 | rust | BillingConnectorPaymentsSyncRequest | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = AnalyticsFlow::GetPaymentFilters;
Box::pin(api::server_wrap(
flow,
state,
&req,
json_payload.into_inner(),
|state, auth: AuthenticationData, req, _| async move {
let org_id = auth.merchant_account.get... | crates/router/src/analytics.rs | router | impl_block | 196 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub async fn is_stream_available(&self, stream_index: u8) -> bool {
let stream_key_flag = self.get_stream_key_flag(stream_index);
match self
.redis_conn
.set_key_if_not_exists_with_expiry(&stream_key_flag.as_str().into(), true, None)
.await
{
Ok(r... | crates/drainer/src/stream.rs | drainer | function_signature | 116 | rust | null | null | null | null | is_stream_available | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.UpdateApiKeyRequest
{
"type": "object",
"description": "The request body for updating an API Key.",
"properties": {
"name": {
"type": "string",
"description": "A unique name for the API Key to help you identify it.",
"example": "Sandbox integration key"... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 205 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"UpdateApiKeyRequest"
] | null | null | null | null |
pub const fn new() -> &'static Self {
&Self {
amount_converter: &MinorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/worldpay.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct PayoneAuthType {
pub(super) api_key: Secret<String>,
pub merchant_account: Secret<String>,
pub api_secret: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/payone/transformers.rs | hyperswitch_connectors | struct_definition | 34 | rust | PayoneAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub async fn refund_create_core(
state: SessionState,
merchant_context: domain::MerchantContext,
req: refunds::RefundsCreateRequest,
global_refund_id: id_type::GlobalRefundId,
) -> errors::RouterResponse<refunds::RefundResponse> {
let db = &*state.store;
let (payment_intent, payment_attempt, amo... | crates/router/src/core/refunds_v2.rs | router | function_signature | 576 | rust | null | null | null | null | refund_create_core | null | null | null | null | null | null | null |
pub struct ArchipelOrderRequest {
amount: MinorUnit,
currency: String,
certainty: ArchipelPaymentCertainty,
initiator: ArchipelPaymentInitiator,
} | crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs | hyperswitch_connectors | struct_definition | 37 | rust | ArchipelOrderRequest | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Santander {
//TODO: implement functions when support enabled
} | crates/hyperswitch_connectors/src/connectors/santander.rs | hyperswitch_connectors | impl_block | 18 | rust | null | Santander | ConnectorValidation for | impl ConnectorValidation for for Santander | null | null | null | null | null | null | null | null |
pub struct GatewayResponse {
gateway_transaction_id: Option<String>,
transaction_state: FiservPaymentStatus,
transaction_processing_details: TransactionProcessingDetails,
} | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 33 | rust | GatewayResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct GetTokenizePayloadRequest {
pub lookup_key: String,
pub service_name: String,
pub get_value2: bool,
} | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 31 | rust | GetTokenizePayloadRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct AuthipayCaptureRequest {
request_type: &'static str,
transaction_amount: Amount,
} | crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | AuthipayCaptureRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct HipayAuthType {
pub(super) api_key: Secret<String>,
pub(super) key1: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | HipayAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub async fn proxy_for_payments_core<F, Res, Req, Op, FData, D>(
state: SessionState,
req_state: ReqState,
merchant_context: domain::MerchantContext,
profile_id: Option<id_type::ProfileId>,
operation: Op,
req: Req,
auth_flow: services::AuthFlow,
call_connector_action: CallConnectorAction... | crates/router/src/core/payments.rs | router | function_signature | 440 | rust | null | null | null | null | proxy_for_payments_core | null | null | null | null | null | null | null |
Web Documentation: Get Started | Hyperswitch
# Type: Web Doc
At Juspay, we believe payment infrastructure should be transparent, adaptable, and under merchants' control—not confined by vendor restrictions. That's why we've made the bold move to open-source our Payment Orchestrator.
This modular, composable platform a... | https://docs.hyperswitch.io/hyperswitch-open-source/readme-1 | null | web_doc_file | 293 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/hyperswitch-open-source/readme-1 | Get Started | Hyperswitch | null |
impl<T> EncryptedJsonType<T>
where
T: std::fmt::Debug + Clone + serde::Serialize + serde::de::DeserializeOwned,
{
fn serialize_json_bytes(&self) -> CustomResult<Secret<Vec<u8>>, errors::CryptoError> {
common_utils::ext_traits::Encode::encode_to_vec(self.inner())
.chan... | crates/hyperswitch_domain_models/src/type_encryption.rs | hyperswitch_domain_models | impl_block | 214 | rust | null | EncryptedJsonType | null | impl EncryptedJsonType | null | null | null | null | null | null | null | null |
/// Represents a hashed string using blake3's hashing strategy.
pub struct HashedString<T: Strategy<String> | crates/common_utils/src/hashing.rs | common_utils | struct_definition | 23 | rust | HashedString | null | null | null | null | null | null | null | null | null | null | null |
pub struct MerchantInitiatedTransaction {
reason: Option<String>,
previous_transaction_id: Option<Secret<String>>,
//Required for recurring mandates payment
original_authorized_amount: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 41 | rust | MerchantInitiatedTransaction | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.OpenBankingResponse
{
"allOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/OpenBankingData"
}
],
"nullable": true
},
{
"type": "object"
}
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 70 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"OpenBankingResponse"
] | null | null | null | null |
impl api::RefundExecute for Barclaycard {} | crates/hyperswitch_connectors/src/connectors/barclaycard.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Barclaycard | api::RefundExecute for | impl api::RefundExecute for for Barclaycard | null | null | null | null | null | null | null | null |
pub struct GatewayStatusMap {
pub connector: String,
pub flow: String,
pub sub_flow: String,
pub code: String,
pub message: String,
pub status: String,
pub router_error: Option<String>,
pub decision: String,
#[serde(with = "custom_serde::iso8601")]
pub created_at: PrimitiveDateTi... | crates/diesel_models/src/gsm.rs | diesel_models | struct_definition | 179 | rust | GatewayStatusMap | null | null | null | null | null | null | null | null | null | null | null |
pub async fn connector_delete() {} | crates/openapi/src/routes/merchant_connector_account.rs | openapi | function_signature | 7 | rust | null | null | null | null | connector_delete | null | null | null | null | null | null | null |
pub async fn start_web_server(
conf: Settings,
stores: HashMap<id_type::TenantId, Arc<Store>>,
) -> Result<Server, errors::DrainerError> {
let server = conf.server.clone();
let web_server = actix_web::HttpServer::new(move || {
actix_web::App::new().service(health_check::Health::server(conf.clone... | crates/drainer/src/lib.rs | drainer | function_signature | 120 | rust | null | null | null | null | start_web_server | null | null | null | null | null | null | null |
pub struct FrmConfigs {
///this is the connector that can be used for the payment
#[schema(value_type = ConnectorType, example = "payment_processor")]
pub gateway: Option<api_enums::Connector>,
///payment methods that can be used in the payment
pub payment_methods: Vec<FrmPaymentMethod>,
} | crates/api_models/src/admin.rs | api_models | struct_definition | 70 | rust | FrmConfigs | null | null | null | null | null | null | null | null | null | null | null |
File: crates/test_utils/src/lib.rs
#![allow(clippy::print_stdout, clippy::print_stderr)]
pub mod connector_auth;
pub mod newman_runner;
| crates/test_utils/src/lib.rs | test_utils | full_file | 34 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn compatibility_api_wrap<'a, 'b, U, T, Q, F, Fut, S, E, E2>(
flow: impl router_env::types::FlowMetric,
state: Arc<AppState>,
request: &'a HttpRequest,
payload: T,
func: F,
api_authentication: &dyn auth::AuthenticateAndFetch<U, SessionState>,
lock_action: api_locking::LockAction,
)... | crates/router/src/compatibility/wrap.rs | router | function_signature | 1,341 | rust | null | null | null | null | compatibility_api_wrap | null | null | null | null | null | null | null |
pub struct WellsfargoPaymentsIncrementalAuthorizationRequest {
processing_information: ProcessingInformation,
order_information: OrderInformationIncrementalAuthorization,
} | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 29 | rust | WellsfargoPaymentsIncrementalAuthorizationRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct MultisafepayAuthType {
pub(super) api_key: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | MultisafepayAuthType | null | null | null | null | null | null | null | null | null | null | null |
impl DecisionEngineSuccessRateData {
pub fn update(&mut self, new_config: Self) {
if let Some(threshold) = new_config.default_latency_threshold {
self.default_latency_threshold = Some(threshold);
}
if let Some(bucket_size) = new_config.default_bucket_size {
self.defau... | crates/api_models/src/open_router.rs | api_models | impl_block | 259 | rust | null | DecisionEngineSuccessRateData | null | impl DecisionEngineSuccessRateData | null | null | null | null | null | null | null | null |
pub struct CardInfoMigrateResponseRecord {
pub card_iin: Option<String>,
pub card_issuer: Option<String>,
pub card_network: Option<String>,
pub card_type: Option<String>,
pub card_sub_type: Option<String>,
pub card_issuing_country: Option<String>,
} | crates/api_models/src/cards_info.rs | api_models | struct_definition | 64 | rust | CardInfoMigrateResponseRecord | null | null | null | null | null | null | null | null | null | null | null |
/// Uses the [`Debug`][Debug] implementation of a type to derive its [`Display`][Display]
/// implementation.
///
/// Causes a compilation error if the type doesn't implement the [`Debug`][Debug] trait.
///
/// [Debug]: ::core::fmt::Debug
/// [Display]: ::core::fmt::Display
///
/// # Example
///
/// ```
/// use router_... | crates/router_derive/src/lib.rs | router_derive | macro | 228 | rust | null | null | null | null | null | null | null | null | proc_derive | null | null | null |
File: crates/common_utils/src/custom_serde.rs
Public functions: 14
//! Custom serialization/deserialization implementations.
/// Use the well-known ISO 8601 format when serializing and deserializing an
/// [`PrimitiveDateTime`][PrimitiveDateTime].
///
/// [PrimitiveDateTime]: ::time::PrimitiveDateTime
pub mod iso860... | crates/common_utils/src/custom_serde.rs | common_utils | full_file | 2,354 | null | null | null | null | null | null | null | null | null | null | null | null | null |
data: &PaymentsPreProcessingRouterData,
event_builder: Option<&mut ConnectorEvent>,
res: Response,
) -> CustomResult<PaymentsPreProcessingRouterData, errors::ConnectorError> {
let response: adyen::AdyenBalanceResponse = res
.response
.parse_struct("AdyenBalanc... | crates/hyperswitch_connectors/src/connectors/adyen.rs#chunk1 | hyperswitch_connectors | chunk | 8,183 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Thunes {} | crates/hyperswitch_connectors/src/connectors/thunes.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Thunes | api::PaymentToken for | impl api::PaymentToken for for Thunes | null | null | null | null | null | null | null | null |
impl api::PayoutRecipientAccount for Stripe {} | crates/hyperswitch_connectors/src/connectors/stripe.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Stripe | api::PayoutRecipientAccount for | impl api::PayoutRecipientAccount for for Stripe | null | null | null | null | null | null | null | null |
pub async fn authorize_postprocessing_steps<F: Clone>(
state: &SessionState,
router_data: &types::RouterData<F, types::PaymentsAuthorizeData, types::PaymentsResponseData>,
confirm: bool,
connector: &api::ConnectorData,
) -> RouterResult<types::RouterData<F, types::PaymentsAuthorizeData, types::PaymentsR... | crates/router/src/core/payments/flows/authorize_flow.rs | router | function_signature | 338 | rust | null | null | null | null | authorize_postprocessing_steps | null | null | null | null | null | null | null |
pub struct ThreeDSPaymentData {
#[serde(skip_serializing_if = "Option::is_none")]
pub firstname: Option<Secret<String>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub lastname: Option<Secret<String>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub email: Option<pii::Email>,
#[... | crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs | hyperswitch_connectors | struct_definition | 220 | rust | ThreeDSPaymentData | null | null | null | null | null | null | null | null | null | null | null |
pub struct ConnectorApiIntegrationPayload {
pub connector_type: String,
pub profile_id: common_utils::id_type::ProfileId,
pub connector_name: api_models::enums::Connector,
#[serde(skip_deserializing)]
#[schema(example = "stripe_US_travel")]
pub connector_label: Option<String>,
pub merchant_c... | crates/connector_configs/src/common_config.rs | connector_configs | struct_definition | 132 | rust | ConnectorApiIntegrationPayload | null | null | null | null | null | null | null | null | null | null | null |
pub struct NovalnetResponseMerchant {
pub project: Option<Secret<i64>>,
pub project_name: Option<Secret<String>>,
pub project_url: Option<url::Url>,
pub vendor: Option<Secret<i64>>,
} | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | 52 | rust | NovalnetResponseMerchant | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentsCompleteAuthorize for Paypal {} | crates/hyperswitch_connectors/src/connectors/paypal.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Paypal | api::PaymentsCompleteAuthorize for | impl api::PaymentsCompleteAuthorize for for Paypal | null | null | null | null | null | null | null | null |
pub struct ConnectorEventsRequest {
pub payment_id: common_utils::id_type::PaymentId,
pub refund_id: Option<String>,
pub dispute_id: Option<String>,
} | crates/api_models/src/analytics/connector_events.rs | api_models | struct_definition | 37 | rust | ConnectorEventsRequest | null | null | null | null | null | null | null | null | null | null | null |
pub trait OrganizationBridge {
fn get_organization_id(&self) -> id_type::OrganizationId;
fn get_organization_name(&self) -> Option<String>;
fn set_organization_name(&mut self, organization_name: String);
} | crates/diesel_models/src/organization.rs | diesel_models | trait_definition | 47 | rust | null | null | OrganizationBridge | null | null | null | null | null | null | null | null | null |
pub async fn routing_retrieve_linked_config(
state: web::Data<AppState>,
req: HttpRequest,
query: web::Query<routing_types::RoutingRetrieveLinkQuery>,
transaction_type: Option<enums::TransactionType>,
) -> impl Responder {
use crate::services::authentication::AuthenticationData;
let flow = Flow:... | crates/router/src/routes/routing.rs | router | function_signature | 506 | rust | null | null | null | null | routing_retrieve_linked_config | null | null | null | null | null | null | null |
pub struct PaystackPSyncData {
status: PaystackPSyncStatus,
reference: String,
} | crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | PaystackPSyncData | null | null | null | null | null | null | null | null | null | null | null |
pub struct RazorpayOrderResponse {
pub id: String,
} | crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | RazorpayOrderResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Braintree {} | crates/hyperswitch_connectors/src/connectors/braintree.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Braintree | api::PaymentVoid for | impl api::PaymentVoid for for Braintree | null | null | null | null | null | null | null | null |
pub struct AliPayHkRedirection {} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 9 | rust | AliPayHkRedirection | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/utils/user/theme.rs
Public functions: 10
use std::path::PathBuf;
use common_enums::EntityType;
use common_utils::{ext_traits::AsyncExt, id_type, types::user::ThemeLineage};
use diesel_models::user::theme::Theme;
use error_stack::ResultExt;
use hyperswitch_domain_models::merchant_key_store::Me... | crates/router/src/utils/user/theme.rs | router | full_file | 2,096 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl<'a> NetworkTokenizationBuilder<'a, CardRequestValidated> {
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 ... | crates/router/src/core/payment_methods/tokenize/card_executor.rs | router | impl_block | 455 | rust | null | NetworkTokenizationBuilder | null | impl NetworkTokenizationBuilder | null | null | null | null | null | null | null | null |
pub async fn flatten_join_error<T>(handle: Handle<T>) -> RouterResult<T> {
match handle.await {
Ok(Ok(t)) => Ok(t),
Ok(Err(err)) => Err(err),
Err(err) => Err(err)
.change_context(errors::ApiErrorResponse::InternalServerError)
.attach_printable("Join Error"),
}
} | crates/router/src/utils.rs | router | function_signature | 75 | rust | null | null | null | null | flatten_join_error | null | null | null | null | null | null | null |
File: crates/hyperswitch_constraint_graph/src/lib.rs
pub mod builder;
mod dense_map;
pub mod error;
pub mod graph;
pub mod types;
pub use builder::ConstraintGraphBuilder;
pub use error::{AnalysisTrace, GraphError};
pub use graph::ConstraintGraph;
#[cfg(feature = "viz")]
pub use types::NodeViz;
pub use types::{
Ch... | crates/hyperswitch_constraint_graph/src/lib.rs | hyperswitch_constraint_graph | full_file | 118 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaystackRefundsData {
status: PaystackRefundStatus,
id: i64,
} | crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | PaystackRefundsData | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/api_keys/{merchant_id}/list"
{
"get": {
"tags": [
"API Key"
],
"summary": "API Key - List",
"description": "List all the API Keys associated to a merchant account.",
"operationId": "List all API Keys associated with a merchant account",
"parameters": [
{... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 376 | .json | null | null | null | null | null | openapi_spec | paths | [
"/api_keys/{merchant_id}/list"
] | null | null | null | null |
OpenAPI Block Path: components.schemas.PixBankTransfer
{
"type": "object",
"required": [
"bank_account_number",
"pix_key"
],
"properties": {
"bank_name": {
"type": "string",
"description": "Bank name",
"example": "Deutsche Bank",
"nullable": true
},
"bank_branch": {
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 262 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PixBankTransfer"
] | null | null | null | null |
impl api::MandateSetup for Paystack {} | crates/hyperswitch_connectors/src/connectors/paystack.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Paystack | api::MandateSetup for | impl api::MandateSetup for for Paystack | null | null | null | null | null | null | null | null |
pub fn get_id(&self) -> &id_type::GlobalAttemptId {
&self.id
} | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | function_signature | 23 | rust | null | null | null | null | get_id | null | null | null | null | null | null | null |
pub struct PriorityLogicOutput {
pub is_enforcement: Option<bool>,
pub gws: Option<Vec<String>>,
pub priority_logic_tag: Option<String>,
pub gateway_reference_ids: Option<HashMap<String, String>>,
pub primary_logic: Option<PriorityLogicData>,
pub fallback_logic: Option<PriorityLogicData>,
} | crates/api_models/src/open_router.rs | api_models | struct_definition | 68 | rust | PriorityLogicOutput | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/payments/session_tokens"
{
"post": {
"tags": [
"Payments"
],
"summary": "Payments - Session token",
"description": "Creates a session object or a session token for wallets like Apple Pay, Google Pay, etc. These tokens are used by Hyperswitch's SDK to initiate these wa... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 289 | .json | null | null | null | null | null | openapi_spec | paths | [
"/payments/session_tokens"
] | null | null | null | null |
impl MerchantAccount {
pub fn server(state: AppState) -> Scope {
let mut routes = web::scope("/accounts")
.service(web::resource("").route(web::post().to(admin::merchant_account_create)))
.service(web::resource("/list").route(web::get().to(admin::merchant_account_list)))
... | crates/router/src/routes/app.rs | router | impl_block | 280 | rust | null | MerchantAccount | null | impl MerchantAccount | null | null | null | null | null | null | null | null |
pub async fn get_profile_sdk_events(
state: web::Data<AppState>,
req: actix_web::HttpRequest,
json_payload: web::Json<api_models::analytics::sdk_events::SdkEventsRequest>,
) -> impl Responder {
let flow = AnalyticsFlow::GetSdkEvents;
Box::pin(api::server_wrap(
flo... | crates/router/src/analytics.rs | router | function_signature | 220 | rust | null | null | null | null | get_profile_sdk_events | null | null | null | null | null | null | null |
File: crates/router/src/types/storage/payment_attempt.rs
use common_utils::types::MinorUnit;
use diesel_models::{capture::CaptureNew, enums};
use error_stack::ResultExt;
pub use hyperswitch_domain_models::payments::payment_attempt::{
PaymentAttempt, PaymentAttemptUpdate,
};
use crate::{
core::errors, errors::... | crates/router/src/types/storage/payment_attempt.rs | router | full_file | 3,634 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/scheduler/src/scheduler.rs
Public functions: 1
use std::sync::Arc;
use common_utils::{errors::CustomResult, id_type};
#[cfg(feature = "kv_store")]
use storage_impl::kv_router_store::KVRouterStore;
use storage_impl::mock_db::MockDb;
#[cfg(not(feature = "kv_store"))]
use storage_impl::RouterStore;
use tok... | crates/scheduler/src/scheduler.rs | scheduler | full_file | 662 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PayPalWalletData
{
"type": "object",
"required": [
"token"
],
"properties": {
"token": {
"type": "string",
"description": "Token generated for the Apple pay"
}
}
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 66 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PayPalWalletData"
] | null | null | null | null |
pub async fn payment_external_authentication(
_state: SessionState,
_merchant_context: domain::MerchantContext,
_req: api_models::payments::PaymentsExternalAuthenticationRequest,
) -> RouterResponse<api_models::payments::PaymentsExternalAuthenticationResponse> {
todo!()
} | crates/router/src/core/payments.rs | router | function_signature | 59 | rust | null | null | null | null | payment_external_authentication | null | null | null | null | null | null | null |
pub struct MandateGenericData {
pub token: Option<String>,
pub payment_method: Option<enums::PaymentMethod>,
pub payment_method_type: Option<enums::PaymentMethodType>,
pub mandate_data: Option<MandateData>,
pub recurring_mandate_payment_data:
Option<hyperswitch_domain_models::router_data::Re... | crates/router/src/core/mandate/helpers.rs | router | struct_definition | 110 | rust | MandateGenericData | null | null | null | null | null | null | null | null | null | null | null |
impl RefundSync for Netcetera {} | crates/hyperswitch_connectors/src/connectors/netcetera.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Netcetera | RefundSync for | impl RefundSync for for Netcetera | null | null | null | null | null | null | null | null |
pub struct GsmResponse {
/// The connector through which payment has gone through
pub connector: String,
/// The flow in which the code and message occurred for a connector
pub flow: String,
/// The sub_flow in which the code and message occurred for a connector
pub sub_flow: String,
/// co... | crates/api_models/src/gsm.rs | api_models | struct_definition | 475 | rust | GsmResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundMetaData {
refund_reference: String,
} | crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs | hyperswitch_connectors | struct_definition | 13 | rust | RefundMetaData | null | null | null | null | null | null | null | null | null | null | null |
pub trait StorageInterface:
Send
+ Sync
+ dyn_clone::DynClone
+ address::AddressInterface
+ api_keys::ApiKeyInterface
+ blocklist_lookup::BlocklistLookupInterface
+ configs::ConfigInterface
+ capture::CaptureInterface
+ customers::CustomerInterface<Error = StorageError>
+ dashboa... | crates/router/src/db.rs | router | trait_definition | 553 | rust | null | null | StorageInterface | null | null | null | null | null | null | null | null | null |
pub fn get_max_acs_protocol_version_if_available(&self) -> Option<AcsProtocolVersion> {
let max_acs_version =
self.acs_protocol_versions
.as_ref()
.and_then(|acs_protocol_versions| {
acs_protocol_versions
.iter()
... | crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs | hyperswitch_connectors | function_signature | 89 | rust | null | null | null | null | get_max_acs_protocol_version_if_available | null | null | null | null | null | null | null |
impl PaymentMethodsMigrateForm {
pub fn validate_and_get_payment_method_records(self) -> MigrationValidationResult {
// Step 1: Validate form-level conflicts
let form_has_single_id = self.merchant_connector_id.is_some();
let form_has_multiple_ids = self.merchant_connector_ids.is_some();
... | crates/payment_methods/src/core/migration.rs | payment_methods | impl_block | 405 | rust | null | PaymentMethodsMigrateForm | null | impl PaymentMethodsMigrateForm | null | null | null | null | null | null | null | null |
pub async fn find_most_specific_theme_in_lineage(
conn: &PgPooledConn,
lineage: ThemeLineage,
) -> StorageResult<Self> {
let query = <Self as HasTable>::table().into_boxed();
let query =
lineage
.get_same_and_higher_lineages()
.into_iter()... | crates/diesel_models/src/query/user/theme.rs | diesel_models | function_signature | 246 | rust | null | null | null | null | find_most_specific_theme_in_lineage | null | null | null | null | null | null | null |
pub struct MollieCardTokenResponse {
card_token: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs | hyperswitch_connectors | struct_definition | 17 | rust | MollieCardTokenResponse | null | null | null | null | null | null | null | null | null | null | null |
impl CaptureNew {
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Capture> {
generics::generic_insert(conn, self).await
}
} | crates/diesel_models/src/query/capture.rs | diesel_models | impl_block | 40 | rust | null | CaptureNew | null | impl CaptureNew | null | null | null | null | null | null | null | null |
pub struct TokenizedBankRedirectValue1 {
pub data: payments::BankRedirectData,
} | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 20 | rust | TokenizedBankRedirectValue1 | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Vgs {} | crates/hyperswitch_connectors/src/connectors/vgs.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Vgs | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Vgs | null | null | null | null | null | null | null | null |
pub struct CreateFileResponse {
/// ID of the file created
pub file_id: String,
} | crates/api_models/src/files.rs | api_models | struct_definition | 22 | rust | CreateFileResponse | null | null | null | null | null | null | null | null | null | null | null |
pub(crate) fn get_internal_error(&self) -> &ApiError {
match self {
Self::Unauthorized(i)
| Self::ForbiddenCommonResource(i)
| Self::ForbiddenPrivateResource(i)
| Self::Conflict(i)
| Self::Gone(i)
| Self::Unprocessable(i)
| Self... | crates/api_models/src/errors/types.rs | api_models | function_signature | 127 | rust | null | null | null | null | get_internal_error | null | null | null | null | null | null | null |
impl common_utils::events::ApiEventMetric for RelayRetrieveRequest {} | crates/api_models/src/relay.rs | api_models | impl_block | 14 | rust | null | RelayRetrieveRequest | common_utils::events::ApiEventMetric for | impl common_utils::events::ApiEventMetric for for RelayRetrieveRequest | null | null | null | null | null | null | null | null |
File: crates/router/src/services/authentication/cookies.rs
Public functions: 4
use cookie::Cookie;
#[cfg(feature = "olap")]
use cookie::{
time::{Duration, OffsetDateTime},
SameSite,
};
use error_stack::{report, ResultExt};
#[cfg(feature = "olap")]
use masking::Mask;
#[cfg(feature = "olap")]
use masking::{Expo... | crates/router/src/services/authentication/cookies.rs | router | full_file | 708 | null | null | null | null | null | 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.