repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/gateway/psync_gateway.rs
crates/router/src/core/payments/gateway/psync_gateway.rs
use std::str::FromStr; use async_trait::async_trait; use common_enums::{CallConnectorAction, ExecutionPath}; use common_utils::{errors::CustomResult, id_type, request::Request, ucs_types}; use error_stack::ResultExt; use hyperswitch_domain_models::{router_data::RouterData, router_flow_types as domain}; use hyperswitch...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/gateway/capture_gateway.rs
crates/router/src/core/payments/gateway/capture_gateway.rs
use std::str::FromStr; use async_trait::async_trait; use common_enums::{CallConnectorAction, ExecutionPath}; use common_utils::{errors::CustomResult, id_type, request::Request, ucs_types}; use error_stack::ResultExt; use hyperswitch_domain_models::{router_data::RouterData, router_flow_types as domain}; use hyperswitch...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/gateway/create_order_gateway.rs
crates/router/src/core/payments/gateway/create_order_gateway.rs
use std::str::FromStr; use async_trait::async_trait; use common_enums::{CallConnectorAction, ExecutionPath}; use common_utils::{errors::CustomResult, id_type, request::Request, ucs_types}; use error_stack::ResultExt; use hyperswitch_domain_models::{router_data::RouterData, router_flow_types as domain}; use hyperswitch...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/gateway/post_authenticate_gateway.rs
crates/router/src/core/payments/gateway/post_authenticate_gateway.rs
use async_trait::async_trait; use common_enums::{CallConnectorAction, ExecutionPath}; use common_utils::{errors::CustomResult, request::Request}; use hyperswitch_domain_models::{ router_data::RouterData, router_flow_types as domain, router_request_types, }; use hyperswitch_interfaces::{ api::gateway as payment_...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/gateway/context.rs
crates/router/src/core/payments/gateway/context.rs
//! Gateway execution context for router crate //! //! This module defines the RouterGatewayContext type, which contains all the //! information needed for executing payment operations through either direct //! connector integration or Unified Connector Service (UCS). use common_enums::{ExecutionMode, ExecutionPath, G...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/gateway/complete_authorize_gateway.rs
crates/router/src/core/payments/gateway/complete_authorize_gateway.rs
use std::str::FromStr; use async_trait::async_trait; use common_enums::{CallConnectorAction, ExecutionPath}; use common_utils::{errors::CustomResult, id_type, request::Request, ucs_types}; use error_stack::ResultExt; use hyperswitch_domain_models::{router_data::RouterData, router_flow_types as domain}; use hyperswitch...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/gateway/cancel_gateway.rs
crates/router/src/core/payments/gateway/cancel_gateway.rs
use std::str::FromStr; use async_trait::async_trait; use common_enums::{CallConnectorAction, ExecutionPath}; use common_utils::{errors::CustomResult, id_type, request::Request, ucs_types}; use error_stack::ResultExt; use hyperswitch_domain_models::{router_data::RouterData, router_flow_types as domain}; use hyperswitch...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/gateway/session_gateway.rs
crates/router/src/core/payments/gateway/session_gateway.rs
use std::str::FromStr; use async_trait::async_trait; use common_enums::{CallConnectorAction, ExecutionPath}; use common_utils::{errors::CustomResult, id_type, request::Request, ucs_types}; use error_stack::ResultExt; use hyperswitch_domain_models::{router_data::RouterData, router_flow_types as domain}; use hyperswitch...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_confirm.rs
crates/router/src/core/payments/operations/payment_confirm.rs
use std::marker::PhantomData; #[cfg(feature = "v1")] use api_models::payment_methods::PaymentMethodsData; use api_models::{ admin::ExtendedCardInfoConfig, enums::FrmSuggestion, payments::{ConnectorMandateReferenceId, ExtendedCardInfo, GetAddressFromPaymentMethodData}, }; use async_trait::async_trait; use c...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_get.rs
crates/router/src/core/payments/operations/payment_get.rs
use api_models::{enums::FrmSuggestion, payments::PaymentsRetrieveRequest}; use async_trait::async_trait; use common_utils::ext_traits::AsyncExt; use error_stack::ResultExt; use hyperswitch_domain_models::payments::PaymentStatusData; use router_env::{instrument, tracing}; use super::{Domain, GetTracker, Operation, Upda...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_complete_authorize.rs
crates/router/src/core/payments/operations/payment_complete_authorize.rs
use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use error_stack::{report, ResultExt}; use router_derive::PaymentOperation; use router_env::{instrument, tracing}; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateRequest}; use crate::{ ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_attempt_record.rs
crates/router/src/core/payments/operations/payment_attempt_record.rs
use std::marker::PhantomData; use api_models::{enums::FrmSuggestion, payments::PaymentsAttemptRecordRequest}; use async_trait::async_trait; use common_utils::{ errors::CustomResult, ext_traits::{AsyncExt, Encode, ValueExt}, types::{keymanager::ToEncryptable, MinorUnit}, }; use error_stack::ResultExt; use h...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_confirm_intent.rs
crates/router/src/core/payments/operations/payment_confirm_intent.rs
use api_models::{enums::FrmSuggestion, payments::PaymentsConfirmIntentRequest}; use async_trait::async_trait; use common_utils::{ext_traits::Encode, fp_utils::when, id_type, types::keymanager::ToEncryptable}; use error_stack::ResultExt; use hyperswitch_domain_models::payments::PaymentConfirmData; use hyperswitch_interf...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_get_intent.rs
crates/router/src/core/payments/operations/payment_get_intent.rs
use std::marker::PhantomData; use api_models::{enums::FrmSuggestion, payments::PaymentsGetIntentRequest}; use async_trait::async_trait; use common_utils::errors::CustomResult; use router_env::{instrument, tracing}; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateRequest}; use crate::...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_create_intent.rs
crates/router/src/core/payments/operations/payment_create_intent.rs
use std::marker::PhantomData; use api_models::{enums::FrmSuggestion, payments::PaymentsCreateIntentRequest}; use async_trait::async_trait; use common_utils::{ errors::CustomResult, ext_traits::Encode, types::{authentication, keymanager::ToEncryptable}, }; use error_stack::ResultExt; use masking::PeekInterf...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_cancel.rs
crates/router/src/core/payments/operations/payment_cancel.rs
use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use common_utils::ext_traits::AsyncExt; use error_stack::ResultExt; use router_env::{instrument, tracing}; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateRequest}; use crate::{ core...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_create.rs
crates/router/src/core/payments/operations/payment_create.rs
use std::marker::PhantomData; use api_models::{ enums::FrmSuggestion, mandates::RecurringDetails, payment_methods::PaymentMethodsData, payments::GetAddressFromPaymentMethodData, }; use async_trait::async_trait; use common_types::payments as common_payments_types; use common_utils::{ ext_traits::{AsyncExt, ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_reject.rs
crates/router/src/core/payments/operations/payment_reject.rs
use std::marker::PhantomData; use api_models::{enums::FrmSuggestion, payments::PaymentsCancelRequest}; use async_trait::async_trait; use error_stack::ResultExt; use router_env::{instrument, tracing}; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateRequest}; use crate::{ core::{ ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_post_session_tokens.rs
crates/router/src/core/payments/operations/payment_post_session_tokens.rs
use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use error_stack::ResultExt; use masking::PeekInterface; use router_derive::PaymentOperation; use router_env::{instrument, tracing}; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateReques...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/external_vault_proxy_payment_intent.rs
crates/router/src/core/payments/operations/external_vault_proxy_payment_intent.rs
use api_models::payments::ExternalVaultProxyPaymentsRequest; use async_trait::async_trait; use common_enums::enums; use common_utils::{ crypto::Encryptable, ext_traits::{AsyncExt, ValueExt}, types::keymanager::ToEncryptable, }; use error_stack::{report, ResultExt}; use hyperswitch_domain_models::{ payme...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/proxy_payments_intent.rs
crates/router/src/core/payments/operations/proxy_payments_intent.rs
use api_models::payments::ProxyPaymentsRequest; use async_trait::async_trait; use common_enums::enums; use common_utils::types::keymanager::ToEncryptable; use error_stack::ResultExt; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, payments::PaymentConfirmData, }; use hyperswitch_interfaces:...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_start.rs
crates/router/src/core/payments/operations/payment_start.rs
use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use error_stack::ResultExt; use router_derive::PaymentOperation; use router_env::{instrument, tracing}; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateRequest}; use crate::{ core::{...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_approve.rs
crates/router/src/core/payments/operations/payment_approve.rs
use std::marker::PhantomData; use api_models::enums::{AttemptStatus, FrmSuggestion, IntentStatus}; use async_trait::async_trait; use error_stack::ResultExt; use router_derive::PaymentOperation; use router_env::{instrument, tracing}; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateReq...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_cancel_v2.rs
crates/router/src/core/payments/operations/payment_cancel_v2.rs
use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use common_utils::{ext_traits::AsyncExt, id_type::GlobalPaymentId}; use error_stack::ResultExt; use router_env::{instrument, tracing}; use super::{ BoxedOperation, Domain, GetTracker, Operation, OperationSessionSette...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_status.rs
crates/router/src/core/payments/operations/payment_status.rs
use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use common_utils::ext_traits::AsyncExt; use error_stack::ResultExt; use router_derive::PaymentOperation; use router_env::{instrument, logger, tracing}; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTra...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/tax_calculation.rs
crates/router/src/core/payments/operations/tax_calculation.rs
use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use common_utils::ext_traits::AsyncExt; use error_stack::ResultExt; use masking::PeekInterface; use router_derive::PaymentOperation; use router_env::{instrument, tracing}; use super::{BoxedOperation, Domain, GetTracker, ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_capture_v2.rs
crates/router/src/core/payments/operations/payment_capture_v2.rs
use api_models::{enums::FrmSuggestion, payments::PaymentsCaptureRequest}; use async_trait::async_trait; use error_stack::ResultExt; use hyperswitch_domain_models::payments::PaymentCaptureData; use router_env::{instrument, tracing}; use super::{Domain, GetTracker, Operation, UpdateTracker, ValidateRequest}; use crate::...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_update.rs
crates/router/src/core/payments/operations/payment_update.rs
use std::marker::PhantomData; use api_models::{ enums::FrmSuggestion, mandates::RecurringDetails, payments::RequestSurchargeDetails, }; use async_trait::async_trait; use common_utils::{ ext_traits::{AsyncExt, Encode, ValueExt}, pii::Email, }; use error_stack::{report, ResultExt}; use hyperswitch_domain_mod...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_update_metadata.rs
crates/router/src/core/payments/operations/payment_update_metadata.rs
use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use error_stack::ResultExt; use masking::ExposeInterface; use router_derive::PaymentOperation; use router_env::{instrument, tracing}; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateRequ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payments_incremental_authorization.rs
crates/router/src/core/payments/operations/payments_incremental_authorization.rs
use std::marker::PhantomData; use api_models::{enums::FrmSuggestion, payments::PaymentsIncrementalAuthorizationRequest}; use async_trait::async_trait; use common_utils::errors::CustomResult; use diesel_models::authorization::AuthorizationNew; use error_stack::{report, ResultExt}; use router_env::{instrument, tracing};...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_update_intent.rs
crates/router/src/core/payments/operations/payment_update_intent.rs
use std::marker::PhantomData; use api_models::{ enums::{FrmSuggestion, UpdateActiveAttempt}, payments::PaymentsUpdateIntentRequest, }; use async_trait::async_trait; use common_utils::{ errors::CustomResult, ext_traits::{Encode, ValueExt}, types::keymanager::ToEncryptable, }; use diesel_models::type...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payments_extend_authorization.rs
crates/router/src/core/payments/operations/payments_extend_authorization.rs
use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use error_stack::ResultExt; use router_env::{instrument, tracing}; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateRequest}; use crate::{ core::{ errors::{self, RouterResult,...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_response.rs
crates/router/src/core/payments/operations/payment_response.rs
use std::{collections::HashMap, ops::Deref}; use api_models::payments::{ConnectorMandateReferenceId, MandateReferenceId}; #[cfg(feature = "dynamic_routing")] use api_models::routing::RoutableConnectorChoice; use async_trait::async_trait; use common_enums::AuthorizationStatus; #[cfg(all(feature = "v1", feature = "dynam...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_capture.rs
crates/router/src/core/payments/operations/payment_capture.rs
use std::{marker::PhantomData, ops::Deref}; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use common_utils::ext_traits::AsyncExt; use error_stack::ResultExt; use router_env::{instrument, tracing}; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateRequest}; use cra...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_session.rs
crates/router/src/core/payments/operations/payment_session.rs
use std::marker::PhantomData; use api_models::{admin::PaymentMethodsEnabled, enums::FrmSuggestion}; use async_trait::async_trait; use common_utils::ext_traits::{AsyncExt, ValueExt}; use error_stack::ResultExt; use router_derive::PaymentOperation; use router_env::{instrument, logger, tracing}; use super::{BoxedOperati...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_cancel_post_capture.rs
crates/router/src/core/payments/operations/payment_cancel_post_capture.rs
use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use error_stack::ResultExt; use router_env::{instrument, tracing}; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateRequest}; use crate::{ core::{ errors::{self, RouterResult,...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_session_intent.rs
crates/router/src/core/payments/operations/payment_session_intent.rs
use std::{collections::HashMap, marker::PhantomData}; use api_models::payments::PaymentsSessionRequest; use async_trait::async_trait; use common_utils::{errors::CustomResult, ext_traits::Encode}; use error_stack::ResultExt; use hyperswitch_domain_models::customer; use router_env::{instrument, logger, tracing}; use su...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payments/operations/payment_attempt_list.rs
crates/router/src/core/payments/operations/payment_attempt_list.rs
use std::marker::PhantomData; #[cfg(feature = "v2")] use api_models::{enums::FrmSuggestion, payments::PaymentAttemptListRequest}; use async_trait::async_trait; use common_utils::errors::CustomResult; use router_env::{instrument, tracing}; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, Valid...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/user_role/role.rs
crates/router/src/core/user_role/role.rs
use std::{cmp, collections::HashSet, ops::Not}; use api_models::user_role::role as role_api; use common_enums::{EntityType, ParentGroup, PermissionGroup}; use common_utils::generate_id_with_default_len; use diesel_models::role::{ListRolesByEntityPayload, RoleNew, RoleUpdate}; use error_stack::{report, ResultExt}; use...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/blocklist/utils.rs
crates/router/src/core/blocklist/utils.rs
use api_models::blocklist as api_blocklist; use common_enums::MerchantDecision; use common_utils::errors::CustomResult; use diesel_models::configs; use error_stack::ResultExt; use masking::StrongSecret; use super::{errors, transformers::generate_fingerprint, SessionState}; use crate::{ consts, core::{ ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/blocklist/transformers.rs
crates/router/src/core/blocklist/transformers.rs
use api_models::blocklist; use error_stack::ResultExt; use masking::StrongSecret; use router_env::{instrument, tracing}; use crate::{ core::{ errors::{self, CustomResult}, payment_methods::transformers as payment_methods, }, routes, types::{storage, transformers::ForeignFrom}, }; const...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/unified_connector_service/transformers.rs
crates/router/src/core/unified_connector_service/transformers.rs
use std::{collections::HashMap, str::FromStr}; use api_models::payments::{ AmountInfo, ApplePayAddressParameters, ApplePayPaymentRequest, ApplePaySessionResponse, ApplepaySessionTokenResponse, GooglePaySessionResponse, GpayAllowedMethodsParameters, GpayAllowedPaymentMethods, GpayBillingAddressFormat, GpayB...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payouts/access_token.rs
crates/router/src/core/payouts/access_token.rs
use common_utils::ext_traits::AsyncExt; use error_stack::ResultExt; use hyperswitch_interfaces::api::{ConnectorAccessTokenSuffix, ConnectorCommon}; use crate::{ consts, core::{ errors::{self, RouterResult}, payments, }, routes::{metrics, SessionState}, services, types::{self, ap...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payouts/helpers.rs
crates/router/src/core/payouts/helpers.rs
use ::payment_methods::controller::PaymentMethodsController; use api_models::{enums, payment_methods::Card, payouts}; use common_utils::{ crypto::Encryptable, encryption::Encryption, errors::CustomResult, ext_traits::{AsyncExt, StringExt, ValueExt}, fp_utils, id_type, payout_method_utils as payout_a...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payouts/validator.rs
crates/router/src/core/payouts/validator.rs
use std::collections::HashSet; use actix_web::http::header; #[cfg(feature = "olap")] use common_utils::errors::CustomResult; use common_utils::{ id_type::{self, GenerateId}, validation::validate_domain_against_allowed_domains, }; use diesel_models::generic_link::PayoutLink; use error_stack::{report, ResultExt}...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payouts/transformers.rs
crates/router/src/core/payouts/transformers.rs
use std::collections::HashMap; use common_utils::link_utils::EnabledPaymentMethod; #[cfg(all(feature = "v1", feature = "olap"))] use crate::types::transformers::ForeignInto; #[cfg(feature = "olap")] use crate::types::{api::payments, domain, storage}; use crate::{ settings::PayoutRequiredFields, types::{api, t...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payouts/retry.rs
crates/router/src/core/payouts/retry.rs
use std::vec::IntoIter; use common_enums::PayoutRetryType; use error_stack::ResultExt; use router_env::{ logger, tracing::{self, instrument}, }; use super::{call_connector_payout, PayoutData}; use crate::{ consts, core::{ errors::{self, RouterResult, StorageErrorExt}, payouts, }, ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/routing/helpers.rs
crates/router/src/core/routing/helpers.rs
//! Analysis for usage of all helper functions for use case of routing //! //! Functions that are used to perform the retrieval of merchant's //! routing dict, configs, defaults use std::fmt::Debug; #[cfg(all(feature = "dynamic_routing", feature = "v1"))] use std::str::FromStr; #[cfg(all(feature = "dynamic_routing", fe...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/routing/transformers.rs
crates/router/src/core/routing/transformers.rs
use api_models::routing::{ DynamicRoutingAlgorithm, MerchantRoutingAlgorithm, RoutingAlgorithmKind, RoutingAlgorithmWrapper, RoutingDictionaryRecord, }; #[cfg(feature = "v1")] use api_models::{ open_router::{OpenRouterDecideGatewayRequest, PaymentInfo, RankingAlgorithm}, routing::RoutableConnectorChoice...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/proxy/utils.rs
crates/router/src/core/proxy/utils.rs
use api_models::{payment_methods::PaymentMethodId, proxy as proxy_api_models}; use common_utils::{ crypto::{DecodeMessage, GcmAes256}, encryption::Encryption, ext_traits::{BytesExt, Encode, OptionExt}, id_type, }; use error_stack::ResultExt; use hyperswitch_domain_models::{behaviour::Conversion, payment...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payment_link/validator.rs
crates/router/src/core/payment_link/validator.rs
use actix_http::header; use api_models::admin::PaymentLinkConfig; use common_utils::validation::validate_domain_against_allowed_domains; use error_stack::{report, ResultExt}; use url::Url; use crate::{ core::errors::{self, RouterResult}, types::storage::PaymentLink, }; pub fn validate_secure_payment_link_rend...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/user/theme.rs
crates/router/src/core/user/theme.rs
use api_models::user::theme as theme_api; use common_enums::EntityType; use common_utils::{ ext_traits::{ByteSliceExt, Encode}, types::user::ThemeLineage, }; use diesel_models::user::theme::{ThemeNew, ThemeUpdate}; use error_stack::ResultExt; use hyperswitch_domain_models::api::ApplicationResponse; use masking:...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/user/sample_data.rs
crates/router/src/core/user/sample_data.rs
use api_models::user::sample_data::SampleDataRequest; use common_utils::errors::ReportSwitchExt; use diesel_models::{DisputeNew, RefundNew}; use error_stack::ResultExt; use hyperswitch_domain_models::payments::PaymentIntent; pub type SampleDataApiResponse<T> = SampleDataResult<ApplicationResponse<T>>; use crate::{ ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/user/dashboard_metadata.rs
crates/router/src/core/user/dashboard_metadata.rs
use api_models::user::dashboard_metadata::{self as api, GetMultipleMetaDataPayload}; #[cfg(feature = "email")] use common_enums::EntityType; use diesel_models::{ enums::DashboardMetadata as DBEnum, user::dashboard_metadata::DashboardMetadata, }; use error_stack::{report, ResultExt}; use hyperswitch_interfaces::crm:...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/relay/utils.rs
crates/router/src/core/relay/utils.rs
use std::str::FromStr; use common_utils::{ext_traits::OptionExt, id_type}; use error_stack::ResultExt; use hyperswitch_domain_models::{router_data::ErrorResponse, types}; use crate::{ core::payments, db::{ domain, errors::{self, RouterResult}, }, routes::SessionState, }; const IRRELEV...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/errors/user.rs
crates/router/src/core/errors/user.rs
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, thiserror::Error)] pub enum UserErrors { #[error("User Internal...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/errors/error_handlers.rs
crates/router/src/core/errors/error_handlers.rs
use actix_web::{body, dev::ServiceResponse, middleware::ErrorHandlerResponse, ResponseError}; use http::StatusCode; use super::ApiErrorResponse; use crate::logger; pub fn custom_error_handlers<B: body::MessageBody + 'static>( res: ServiceResponse<B>, ) -> actix_web::Result<ErrorHandlerResponse<B>> { let error_...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/errors/utils.rs
crates/router/src/core/errors/utils.rs
use common_utils::errors::CustomResult; use crate::{core::errors, logger}; pub trait StorageErrorExt<T, E> { #[track_caller] fn to_not_found_response(self, not_found_response: E) -> error_stack::Result<T, E>; #[track_caller] fn to_duplicate_response(self, duplicate_response: E) -> error_stack::Result...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/errors/chat.rs
crates/router/src/core/errors/chat.rs
#[derive(Debug, thiserror::Error)] pub enum ChatErrors { #[error("User InternalServerError")] InternalServerError, #[error("Missing Config error")] MissingConfigError, #[error("Chat response deserialization failed")] ChatResponseDeserializationFailed, #[error("Unauthorized access")] Unau...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/errors/transformers.rs
crates/router/src/core/errors/transformers.rs
use common_utils::errors::ErrorSwitch; use hyperswitch_domain_models::errors::api_error_response::ApiErrorResponse; use super::{CustomersErrorResponse, StorageError}; impl ErrorSwitch<api_models::errors::types::ApiErrorResponse> for CustomersErrorResponse { fn switch(&self) -> api_models::errors::types::ApiErrorR...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/errors/customers_error_response.rs
crates/router/src/core/errors/customers_error_response.rs
use http::StatusCode; #[derive(Debug, thiserror::Error)] pub enum CustomersErrorResponse { #[error("Customer has already been redacted")] CustomerRedacted, #[error("Something went wrong")] InternalServerError, #[error("Invalid request data: {message}")] InvalidRequestData { message: String },...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/errors/user/sample_data.rs
crates/router/src/core/errors/user/sample_data.rs
use api_models::errors::types::{ApiError, ApiErrorResponse}; use common_utils::errors::{CustomResult, ErrorSwitch, ErrorSwitchFrom}; use storage_impl::errors::StorageError; pub type SampleDataResult<T> = CustomResult<T, SampleDataError>; #[derive(Debug, Clone, serde::Serialize, thiserror::Error)] pub enum SampleDataE...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/authentication/types.rs
crates/router/src/core/authentication/types.rs
use error_stack::{Report, ResultExt}; pub use hyperswitch_domain_models::{ authentication, router_request_types::authentication::{ AcquirerDetails, ExternalThreeDSConnectorMetadata, PreAuthenticationData, ThreeDsMethodData, }, }; use crate::{core::errors, types::transformers::ForeignTryFrom, utils:...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/authentication/utils.rs
crates/router/src/core/authentication/utils.rs
use common_utils::{ext_traits::AsyncExt, types::keymanager::ToEncryptable}; use error_stack::ResultExt; use hyperswitch_domain_models::{ authentication, router_data_v2::ExternalAuthenticationFlowData, router_request_types, type_encryption::AsyncLift, }; use masking::{ExposeInterface, PeekInterface}; use crate:...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/authentication/transformers.rs
crates/router/src/core/authentication/transformers.rs
use std::marker::PhantomData; use api_models::payments; use common_enums::PaymentMethod; use common_utils::ext_traits::ValueExt; use error_stack::ResultExt; use hyperswitch_domain_models::authentication; use crate::{ core::{ errors::{self, RouterResult}, payments::helpers as payments_helpers, ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/unified_authentication_service/types.rs
crates/router/src/core/unified_authentication_service/types.rs
use api_models::payments; use hyperswitch_domain_models::{ errors::api_error_response::{self as errors, NotImplementedMessage}, router_request_types::{ authentication::MessageCategory, unified_authentication_service::{ UasAuthenticationRequestData, UasPostAuthenticationRequestData, ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/unified_authentication_service/utils.rs
crates/router/src/core/unified_authentication_service/utils.rs
use std::marker::PhantomData; #[cfg(feature = "v1")] use api_models::payments::BrowserInformation; use common_enums::enums::PaymentMethod; use common_utils::{ ext_traits::{AsyncExt, ValueExt}, types::keymanager::ToEncryptable, }; use error_stack::{report, ResultExt}; use hyperswitch_domain_models::{ busine...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/revenue_recovery/api.rs
crates/router/src/core/revenue_recovery/api.rs
use actix_web::{web, Responder}; use api_models::{payments as payments_api, payments as api_payments}; use common_utils::id_type; use error_stack::{report, FutureExt, ResultExt}; use hyperswitch_domain_models::{payments as payments_domain, platform::Platform}; use crate::{ core::{ errors::{self, RouterResu...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/revenue_recovery/types.rs
crates/router/src/core/revenue_recovery/types.rs
use std::{marker::PhantomData, str::FromStr}; use api_models::{ enums as api_enums, payments::{ AmountDetails, PaymentRevenueRecoveryMetadata, PaymentsUpdateIntentRequest, ProxyPaymentsRequest, }, }; use common_utils::{ self, ext_traits::{AsyncExt, OptionExt, ValueExt}, id_type,...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/revenue_recovery/transformers.rs
crates/router/src/core/revenue_recovery/transformers.rs
use common_enums::IntentStatus; use masking::PeekInterface; use crate::{ core::revenue_recovery::types::RevenueRecoveryPaymentIntentStatus, types::transformers::ForeignFrom, }; impl ForeignFrom<IntentStatus> for RevenueRecoveryPaymentIntentStatus { fn foreign_from(status: IntentStatus) -> Self { m...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payment_methods/vault.rs
crates/router/src/core/payment_methods/vault.rs
use common_enums::PaymentMethodType; #[cfg(feature = "v2")] use common_utils::request; use common_utils::{ crypto::{DecodeMessage, EncodeMessage, GcmAes256}, ext_traits::{BytesExt, Encode}, generate_id_with_default_len, id_type, pii::Email, }; use error_stack::{report, ResultExt}; #[cfg(feature = "v2")]...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payment_methods/access_token.rs
crates/router/src/core/payment_methods/access_token.rs
use common_utils::ext_traits::AsyncExt; use error_stack::ResultExt; use hyperswitch_domain_models::types::VaultRouterData; use crate::{ consts, core::{ errors::{self, RouterResult}, payments, }, routes::{metrics, SessionState}, services, types::{ self, api::{self...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payment_methods/network_tokenization.rs
crates/router/src/core/payment_methods/network_tokenization.rs
#[cfg(feature = "v2")] use std::fmt::Debug; #[cfg(feature = "v2")] use std::str::FromStr; use ::payment_methods::controller::PaymentMethodsController; use api_models::payment_methods as api_payment_methods; #[cfg(feature = "v2")] use cards::{CardNumber, NetworkToken}; use common_utils::{ errors::CustomResult, ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payment_methods/utils.rs
crates/router/src/core/payment_methods/utils.rs
use std::{str::FromStr, sync::Arc}; use api_models::{ admin::{self, PaymentMethodsEnabled}, enums as api_enums, payment_methods::RequestPaymentMethodTypes, }; use common_enums::enums; #[cfg(feature = "v2")] use common_utils::ext_traits::{OptionExt, StringExt}; #[cfg(feature = "v2")] use error_stack::Result...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payment_methods/validator.rs
crates/router/src/core/payment_methods/validator.rs
use api_models::{admin, payment_methods::PaymentMethodCollectLinkRequest}; use common_utils::link_utils; use diesel_models::generic_link::PaymentMethodCollectLinkData; use error_stack::ResultExt; use masking::Secret; use crate::{ consts, core::{ errors::{self, RouterResult}, utils as core_utils...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payment_methods/transformers.rs
crates/router/src/core/payment_methods/transformers.rs
pub use ::payment_methods::controller::{DataDuplicationCheck, DeleteCardResp}; use api_models::payment_methods::Card; #[cfg(feature = "v2")] use api_models::{enums as api_enums, payment_methods::PaymentMethodResponseItem}; use common_enums::CardNetwork; use common_utils::{ ext_traits::{Encode, StringExt}, id_ty...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payment_methods/tokenize.rs
crates/router/src/core/payment_methods/tokenize.rs
use actix_multipart::form::{bytes::Bytes, text::Text, MultipartForm}; use api_models::{enums as api_enums, payment_methods as payment_methods_api}; use cards::CardNumber; use common_utils::{ crypto::Encryptable, id_type, transformers::{ForeignFrom, ForeignTryFrom}, }; use error_stack::{report, ResultExt}; u...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payment_methods/batch_retrieve.rs
crates/router/src/core/payment_methods/batch_retrieve.rs
use std::collections::{HashMap, HashSet}; use actix_multipart::form::{bytes::Bytes, text::Text, MultipartForm}; use api_models::payment_methods::{ PaymentMethodsBatchRecord, PaymentMethodsBatchRetrieveResponse, PaymentMethodsData, }; use common_utils::{ext_traits::ValueExt, id_type}; use error_stack::ResultExt; us...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payment_methods/cards.rs
crates/router/src/core/payment_methods/cards.rs
use std::{ collections::{HashMap, HashSet}, fmt::Debug, str::FromStr, }; use ::payment_methods::{ configs::payment_connector_required_fields::{ get_billing_required_fields, get_shipping_required_fields, }, controller::PaymentMethodsController, }; #[cfg(feature = "v1")] use api_models::a...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payment_methods/migration.rs
crates/router/src/core/payment_methods/migration.rs
use actix_multipart::form::{self, bytes, text}; use api_models::payment_methods as pm_api; use common_utils::{errors::CustomResult, id_type}; use csv::Reader; use error_stack::ResultExt; use hyperswitch_domain_models::{ api::ApplicationResponse, errors::api_error_response as errors, payment_methods::PaymentMeth...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payment_methods/surcharge_decision_configs.rs
crates/router/src/core/payment_methods/surcharge_decision_configs.rs
use api_models::{ payment_methods::SurchargeDetailsResponse, payments, routing, surcharge_decision_configs::{self, SurchargeDecisionConfigs, SurchargeDecisionManagerRecord}, }; #[cfg(feature = "v1")] use common_utils::{ext_traits::StringExt, types as common_utils_types}; #[cfg(feature = "v2")] use common_ut...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payment_methods/tokenize/card_executor.rs
crates/router/src/core/payment_methods/tokenize/card_executor.rs
use std::str::FromStr; use ::payment_methods::{controller::PaymentMethodsController, core::migration}; use api_models::{enums as api_enums, payment_methods as payment_methods_api}; use common_utils::{ consts, ext_traits::OptionExt, generate_customer_id_of_default_length, id_type, pii::Email, type_n...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
use api_models::enums as api_enums; use common_utils::{ext_traits::OptionExt, fp_utils::when, pii::Email}; use error_stack::{report, ResultExt}; use masking::Secret; use router_env::logger; use super::{ CardNetworkTokenizeExecutor, NetworkTokenizationBuilder, NetworkTokenizationProcess, NetworkTokenizationResp...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/card_testing_guard/utils.rs
crates/router/src/core/card_testing_guard/utils.rs
use error_stack::ResultExt; use hyperswitch_domain_models::{ card_testing_guard_data::CardTestingGuardData, router_request_types::BrowserInformation, }; use masking::{PeekInterface, Secret}; use router_env::logger; use super::errors; use crate::{ core::{errors::RouterResult, payments::helpers}, routes::Ses...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/connector_onboarding/paypal.rs
crates/router/src/core/connector_onboarding/paypal.rs
use api_models::{admin::MerchantConnectorUpdate, connector_onboarding as api}; use common_utils::ext_traits::Encode; use error_stack::ResultExt; pub use external_services::http_client; use masking::{ExposeInterface, PeekInterface, Secret}; use crate::{ core::{ admin, errors::{ApiErrorResponse, Rout...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/files/helpers.rs
crates/router/src/core/files/helpers.rs
use actix_multipart::Field; use common_utils::errors::CustomResult; use error_stack::ResultExt; use futures::TryStreamExt; use hyperswitch_domain_models::router_response_types::disputes::FileInfo; use crate::{ core::{ errors::{self, utils::ConnectorErrorExt, StorageErrorExt}, payments, utils, }...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/utils/refunds_transformers.rs
crates/router/src/core/utils/refunds_transformers.rs
pub struct SplitRefundInput { pub refund_request: Option<common_types::refunds::SplitRefund>, pub payment_charges: Option<common_types::payments::ConnectorChargeResponseData>, pub split_payment_request: Option<common_types::payments::SplitPaymentsRequest>, pub charge_id: Option<String>, }
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/utils/refunds_validator.rs
crates/router/src/core/utils/refunds_validator.rs
use diesel_models::refund as diesel_refund; use error_stack::report; use router_env::{instrument, tracing}; use time::PrimitiveDateTime; use crate::{ core::errors::{self, CustomResult, RouterResult}, types::{ self, api::enums as api_enums, storage::{self, enums}, }, utils::{self...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/webhooks/recovery_incoming.rs
crates/router/src/core/webhooks/recovery_incoming.rs
use std::{collections::HashMap, marker::PhantomData, str::FromStr}; use api_models::{enums as api_enums, payments as api_payments, webhooks}; use common_utils::{ ext_traits::{AsyncExt, ValueExt}, id_type, }; use diesel_models::process_tracker as storage; use error_stack::{report, ResultExt}; use futures::strea...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/webhooks/outgoing_v2.rs
crates/router/src/core/webhooks/outgoing_v2.rs
use std::collections::HashMap; use api_models::{webhook_events, webhooks}; use common_utils::{ext_traits, request, type_name, types::keymanager}; use diesel_models::process_tracker::business_status; use error_stack::{report, Report, ResultExt}; use hyperswitch_domain_models::type_encryption::{crypto_operation, CryptoO...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/webhooks/webhook_events.rs
crates/router/src/core/webhooks/webhook_events.rs
use std::collections::HashSet; use common_utils::{self, errors::CustomResult, fp_utils}; use error_stack::ResultExt; use masking::PeekInterface; use router_env::{instrument, tracing}; use crate::{ core::errors::{self, RouterResponse, StorageErrorExt}, routes::SessionState, services::ApplicationResponse, ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/webhooks/network_tokenization_incoming.rs
crates/router/src/core/webhooks/network_tokenization_incoming.rs
use std::str::FromStr; use ::payment_methods::controller::PaymentMethodsController; use api_models::webhooks::WebhookResponseTracker; use async_trait::async_trait; use common_utils::{ crypto::Encryptable, ext_traits::{AsyncExt, ByteSliceExt, ValueExt}, id_type, }; use error_stack::{report, ResultExt}; use ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/webhooks/types.rs
crates/router/src/core/webhooks/types.rs
use api_models::{webhook_events, webhooks}; use common_utils::{crypto::SignMessage, ext_traits::Encode}; use error_stack::ResultExt; use masking::Secret; use serde::Serialize; use crate::{ core::errors, headers, logger, services::request::Maskable, types::storage::{self, enums}, }; #[derive(Debug)] pu...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/webhooks/utils.rs
crates/router/src/core/webhooks/utils.rs
use std::marker::PhantomData; use base64::Engine; use common_utils::{ consts, crypto::{self, GenerateDigest}, errors::CustomResult, ext_traits::ValueExt, }; use error_stack::{Report, ResultExt}; use redis_interface as redis; use router_env::tracing; use super::MERCHANT_ID; use crate::{ core::{ ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/webhooks/incoming_v2.rs
crates/router/src/core/webhooks/incoming_v2.rs
use std::{marker::PhantomData, str::FromStr, time::Instant}; use actix_web::FromRequest; use api_models::webhooks::{self, WebhookResponseTracker}; use common_utils::{ errors::ReportSwitchExt, events::ApiEventsType, types::keymanager::KeyManagerState, }; use error_stack::ResultExt; use hyperswitch_domain_models::{ ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/webhooks/outgoing.rs
crates/router/src/core/webhooks/outgoing.rs
use std::collections::HashMap; use api_models::{ webhook_events::{OutgoingWebhookRequestContent, OutgoingWebhookResponseContent}, webhooks, }; use common_utils::{ ext_traits::{Encode, StringExt}, request::RequestContent, type_name, types::keymanager::Identifier, }; use diesel_models::process_tr...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/webhooks/incoming.rs
crates/router/src/core/webhooks/incoming.rs
use std::{str::FromStr, time::Instant}; use actix_web::FromRequest; #[cfg(feature = "payouts")] use api_models::payouts as payout_models; use api_models::{ enums::Connector, webhooks::{self, WebhookResponseTracker}, }; pub use common_enums::{connector_enums::InvoiceStatus, enums::ProcessTrackerRunner}; use com...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/three_ds_decision_rule/utils.rs
crates/router/src/core/three_ds_decision_rule/utils.rs
use api_models::three_ds_decision_rule as api_threedsecure; use common_types::three_ds_decision_rule_engine::ThreeDSDecision; use euclid::backend::inputs as dsl_inputs; use crate::{consts::PSD2_COUNTRIES, types::transformers::ForeignFrom}; // function to apply PSD2 validations to the decision pub fn apply_psd2_valida...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/mandate/helpers.rs
crates/router/src/core/mandate/helpers.rs
use api_models::payments as api_payments; use common_enums::enums; use common_types::payments as common_payments_types; use common_utils::errors::CustomResult; use diesel_models::Mandate; use error_stack::ResultExt; use hyperswitch_domain_models::mandates::MandateData; use crate::{ core::{errors, payments}, ro...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/core/mandate/utils.rs
crates/router/src/core/mandate/utils.rs
use std::marker::PhantomData; use common_utils::{errors::CustomResult, ext_traits::ValueExt}; use diesel_models::Mandate; use error_stack::ResultExt; use crate::{ core::{errors, payments::helpers}, types::{self, domain, PaymentAddress}, SessionState, }; const IRRELEVANT_ATTEMPT_ID_IN_MANDATE_REVOKE_FLOW:...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false