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/disputes/transformers.rs
crates/router/src/core/disputes/transformers.rs
use api_models::disputes::EvidenceType; use common_utils::errors::CustomResult; use error_stack::ResultExt; use crate::{ core::{errors, files::helpers::retrieve_file_and_provider_file_id_from_file_id}, routes::SessionState, types::{ api::{self, DisputeEvidence}, domain, transformers...
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/fraud_check/flows.rs
crates/router/src/core/fraud_check/flows.rs
pub mod checkout_flow; pub mod fulfillment_flow; pub mod record_return; pub mod sale_flow; pub mod transaction_flow; use async_trait::async_trait; use crate::{ core::{ errors::RouterResult, payments::{self, flows::ConstructFlowSpecificData}, }, routes::SessionState, services, types...
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/fraud_check/types.rs
crates/router/src/core/fraud_check/types.rs
use api_models::{ enums as api_enums, enums::{PaymentMethod, PaymentMethodType}, payments::Amount, refunds::RefundResponse, }; use common_enums::FrmSuggestion; use common_utils::pii::SecretSerdeValue; use hyperswitch_domain_models::payments::{payment_attempt::PaymentAttempt, PaymentIntent}; pub use hype...
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/fraud_check/operation.rs
crates/router/src/core/fraud_check/operation.rs
pub mod fraud_check_post; pub mod fraud_check_pre; use async_trait::async_trait; use common_enums::FrmSuggestion; use error_stack::{report, ResultExt}; pub use self::{fraud_check_post::FraudCheckPost, fraud_check_pre::FraudCheckPre}; use super::{ types::{ConnectorDetailsCore, FrmConfigsObject, PaymentToFrmData}, ...
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/fraud_check/flows/fulfillment_flow.rs
crates/router/src/core/fraud_check/flows/fulfillment_flow.rs
use common_utils::ext_traits::{OptionExt, ValueExt}; use error_stack::ResultExt; use router_env::tracing::{self, instrument}; use crate::{ core::{ errors::RouterResult, fraud_check::frm_core_types::FrmFulfillmentRequest, payments::helpers, utils as core_utils, }, errors, types::{ ...
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/fraud_check/flows/transaction_flow.rs
crates/router/src/core/fraud_check/flows/transaction_flow.rs
use async_trait::async_trait; use common_utils::ext_traits::ValueExt; use error_stack::ResultExt; use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, fraud_check::{FeatureFrm, FrmData}, payments::{self, flows::ConstructFlowSpecificData, helpers}, }, errors, services, ...
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/fraud_check/flows/checkout_flow.rs
crates/router/src/core/fraud_check/flows/checkout_flow.rs
use async_trait::async_trait; use common_utils::{ext_traits::ValueExt, pii::Email}; use error_stack::ResultExt; use masking::ExposeInterface; use super::{ConstructFlowSpecificData, FeatureFrm}; use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, fraud_check::types::FrmData, paym...
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/fraud_check/flows/sale_flow.rs
crates/router/src/core/fraud_check/flows/sale_flow.rs
use async_trait::async_trait; use common_utils::{ext_traits::ValueExt, pii::Email}; use error_stack::ResultExt; use masking::ExposeInterface; use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, fraud_check::{FeatureFrm, FraudCheckConnectorData, FrmData}, payments::{self, flows::...
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/fraud_check/flows/record_return.rs
crates/router/src/core/fraud_check/flows/record_return.rs
use async_trait::async_trait; use common_utils::ext_traits::ValueExt; use error_stack::ResultExt; use crate::{ connector::signifyd::transformers::RefundMethod, core::{ errors::{ConnectorErrorExt, RouterResult}, fraud_check::{FeatureFrm, FraudCheckConnectorData, FrmData}, payments::{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/fraud_check/operation/fraud_check_pre.rs
crates/router/src/core/fraud_check/operation/fraud_check_pre.rs
use async_trait::async_trait; use common_enums::FrmSuggestion; use common_utils::ext_traits::Encode; use diesel_models::enums::FraudCheckLastStep; use router_env::{instrument, tracing}; use uuid::Uuid; use super::{Domain, FraudCheckOperation, GetTracker, UpdateTracker}; use crate::{ core::{ errors::RouterR...
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/fraud_check/operation/fraud_check_post.rs
crates/router/src/core/fraud_check/operation/fraud_check_post.rs
use async_trait::async_trait; use common_enums::{CaptureMethod, FrmSuggestion}; use common_utils::ext_traits::Encode; use hyperswitch_domain_models::payments::{ payment_attempt::PaymentAttemptUpdate, payment_intent::PaymentIntentUpdate, HeaderPayload, }; use router_env::{instrument, logger, tracing}; use super::{D...
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/pm_auth/helpers.rs
crates/router/src/core/pm_auth/helpers.rs
use common_utils::ext_traits::ValueExt; use error_stack::ResultExt; use pm_auth::types::{self as pm_auth_types, api::BoxedPaymentAuthConnector}; use crate::{ core::errors::{self, ApiErrorResponse}, types::{self, domain, transformers::ForeignTryFrom}, }; pub trait PaymentAuthConnectorDataExt { fn get_conne...
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/pm_auth/transformers.rs
crates/router/src/core/pm_auth/transformers.rs
use pm_auth::types as pm_auth_types; use crate::{core::errors, types, types::transformers::ForeignTryFrom}; impl From<types::MerchantAccountData> for pm_auth_types::MerchantAccountData { fn from(from: types::MerchantAccountData) -> Self { match from { types::MerchantAccountData::Iban { iban, 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/compatibility/stripe.rs
crates/router/src/compatibility/stripe.rs
pub mod app; pub mod customers; pub mod payment_intents; pub mod refunds; pub mod setup_intents; pub mod webhooks; #[cfg(feature = "v1")] use actix_web::{web, Scope}; pub mod errors; #[cfg(feature = "v1")] use crate::routes; #[cfg(feature = "v1")] pub struct StripeApis; #[cfg(feature = "v1")] impl StripeApis { 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/compatibility/wrap.rs
crates/router/src/compatibility/wrap.rs
use std::{future::Future, sync::Arc, time::Instant}; use actix_web::{HttpRequest, HttpResponse, Responder}; use common_utils::errors::{CustomResult, ErrorSwitch}; use router_env::{instrument, tracing, Tag}; use serde::Serialize; use crate::{ core::{api_locking, errors}, events::api_logs::ApiEventMetric, r...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/compatibility/stripe/app.rs
crates/router/src/compatibility/stripe/app.rs
use actix_web::{web, Scope}; #[cfg(feature = "v1")] use super::{customers::*, payment_intents::*, setup_intents::*}; use super::{refunds::*, webhooks::*}; use crate::routes::{self, mandates, webhooks}; pub struct PaymentIntents; #[cfg(feature = "v1")] impl PaymentIntents { pub fn server(state: routes::AppState) ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/compatibility/stripe/errors.rs
crates/router/src/compatibility/stripe/errors.rs
use common_utils::{errors::ErrorSwitch, id_type}; use hyperswitch_domain_models::errors::api_error_response as errors; use crate::core::errors::CustomersErrorResponse; #[derive(Debug, router_derive::ApiError, Clone)] #[error(error_type_enum = StripeErrorType)] pub enum StripeErrorCode { /* "error": { ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/compatibility/stripe/refunds.rs
crates/router/src/compatibility/stripe/refunds.rs
pub mod types; use actix_web::{web, HttpRequest, HttpResponse}; use error_stack::report; use router_env::{instrument, tracing, Flow, Tag}; use crate::{ compatibility::{stripe::errors, wrap}, core::{api_locking, refunds}, logger, routes, services::{api, authentication as auth}, types::api::refunds ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/compatibility/stripe/customers.rs
crates/router/src/compatibility/stripe/customers.rs
pub mod types; #[cfg(feature = "v1")] use actix_web::{web, HttpRequest, HttpResponse}; #[cfg(feature = "v1")] use common_utils::id_type; #[cfg(feature = "v1")] use error_stack::report; #[cfg(feature = "v1")] use router_env::{instrument, tracing, Flow}; #[cfg(feature = "v1")] use crate::{ compatibility::{stripe::er...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/compatibility/stripe/setup_intents.rs
crates/router/src/compatibility/stripe/setup_intents.rs
pub mod types; #[cfg(feature = "v1")] use actix_web::{web, HttpRequest, HttpResponse}; #[cfg(feature = "v1")] use api_models::payments as payment_types; #[cfg(feature = "v1")] use error_stack::report; #[cfg(feature = "v1")] use router_env::{instrument, tracing, Flow}; #[cfg(feature = "v1")] use crate::{ compatibil...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/compatibility/stripe/webhooks.rs
crates/router/src/compatibility/stripe/webhooks.rs
#[cfg(feature = "payouts")] use api_models::payouts as payout_models; use api_models::{ enums::{Currency, DisputeStatus, MandateStatus}, webhooks::{self as api}, }; use common_utils::{crypto::SignMessage, date_time, ext_traits::Encode}; #[cfg(feature = "payouts")] use common_utils::{ id_type, pii::{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/compatibility/stripe/payment_intents.rs
crates/router/src/compatibility/stripe/payment_intents.rs
pub mod types; use actix_web::{web, HttpRequest, HttpResponse}; use api_models::payments as payment_types; #[cfg(feature = "v1")] use error_stack::report; #[cfg(feature = "v1")] use router_env::Tag; use router_env::{instrument, tracing, Flow}; use crate::{ compatibility::{stripe::errors, wrap}, core::payments...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/compatibility/stripe/refunds/types.rs
crates/router/src/compatibility/stripe/refunds/types.rs
use std::{convert::From, default::Default}; use common_utils::pii; use serde::{Deserialize, Serialize}; use crate::types::api::{admin, refunds}; #[derive(Clone, Serialize, Deserialize, PartialEq, Eq, Debug)] pub struct StripeCreateRefundRequest { pub refund_id: Option<String>, pub amount: Option<i64>, 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/compatibility/stripe/setup_intents/types.rs
crates/router/src/compatibility/stripe/setup_intents/types.rs
use std::str::FromStr; use api_models::payments; use common_utils::{date_time, ext_traits::StringExt, id_type, pii as secret}; use error_stack::ResultExt; use router_env::logger; use serde::{Deserialize, Serialize}; use serde_json::Value; use crate::{ compatibility::stripe::{ payment_intents::types as pay...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/compatibility/stripe/payment_intents/types.rs
crates/router/src/compatibility/stripe/payment_intents/types.rs
use std::str::FromStr; use api_models::payments; use common_types::payments as common_payments_types; use common_utils::{ crypto::Encryptable, date_time, ext_traits::StringExt, id_type, pii::{IpAddress, SecretSerdeValue, UpiVpaMaskingStrategy}, types::MinorUnit, }; use error_stack::ResultExt; u...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/src/compatibility/stripe/customers/types.rs
crates/router/src/compatibility/stripe/customers/types.rs
use std::{convert::From, default::Default}; #[cfg(feature = "v1")] use api_models::payment_methods as api_types; use api_models::payments; #[cfg(feature = "v1")] use common_utils::{crypto::Encryptable, date_time}; use common_utils::{ id_type, pii::{self, Email}, types::Description, }; use serde::{Deseriali...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/integration_demo.rs
crates/router/tests/integration_demo.rs
mod utils; use masking::PeekInterface; use test_utils::connector_auth::ConnectorAuthentication; use utils::{mk_service, ApiKey, AppClient, MerchantId, PaymentId, Status}; /// Example of unit test /// Kind of test: output-based testing /// 1) Create Merchant account #[actix_web::test] async fn create_merchant_account()...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/services.rs
crates/router/tests/services.rs
use std::sync::{atomic, Arc}; use router::{configs::settings::Settings, routes, services}; mod utils; #[tokio::test] #[should_panic] async fn get_redis_conn_failure() { // Arrange utils::setup().await; let (tx, _) = tokio::sync::oneshot::channel(); let app_state = Box::pin(routes::AppState::new( ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/refunds.rs
crates/router/tests/refunds.rs
use utils::{mk_service, AppClient}; mod utils; // setting the connector in environment variables doesn't work when run in parallel. Neither does passing the paymentid // do we'll test refund and payment in same tests and later implement thread_local variables. // When test-connector feature is enabled, you can pass t...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/customers.rs
crates/router/tests/customers.rs
mod utils; // setting the connector in environment variables doesn't work when run in parallel. Neither does passing the paymentid // do we'll test refund and payment in same tests and later implement thread_local variables. // When test-connector feature is enabled, you can pass the connector name in description #[a...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/webhooks.rs
crates/router/tests/webhooks.rs
// use std::sync; // use router::{configs::settings, connection, core::webhooks, types::api}; // mod utils; // fn get_config() -> settings::Settings { // settings::Settings::new().expect("Settings") // } // struct TestApp { // redis_conn: connection::RedisPool, // } // impl TestApp { // async fn init() ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/health_check.rs
crates/router/tests/health_check.rs
mod utils; use utils::{mk_service, AppClient}; #[actix_web::test] async fn health_check() { let server = Box::pin(mk_service()).await; let client = AppClient::guest(); assert_eq!(client.health(&server).await, "health is good"); }
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/payouts.rs
crates/router/tests/payouts.rs
mod utils; #[actix_web::test] async fn payouts_todo() { Box::pin(utils::setup()).await; let client = awc::Client::default(); let mut response; let mut response_body; let get_endpoints = vec!["retrieve", "accounts"]; let post_endpoints = vec!["create", "update", "reverse", "cancel"]; for e...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/utils.rs
crates/router/tests/utils.rs
#![allow( unused, clippy::expect_used, clippy::missing_panics_doc, clippy::unwrap_used )] use actix_http::{body::MessageBody, Request}; use actix_web::{ dev::{Service, ServiceResponse}, test::{call_and_read_body_json, TestRequest}, }; use derive_deref::Deref; use router::{configs::settings::Set...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/macros.rs
crates/router/tests/macros.rs
#[cfg(test)] mod flat_struct_test { use std::collections::HashMap; use router_derive::FlatStruct; use serde::Serialize; #[test] fn test_flat_struct() { #[derive(FlatStruct, Serialize)] struct User { address: Address, } #[derive(Serialize)] struc...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/payments2.rs
crates/router/tests/payments2.rs
#![allow(clippy::unwrap_in_result)] mod utils; use std::{borrow::Cow, sync::Arc}; use common_utils::{id_type, types::MinorUnit}; use router::{ core::payments, db::StorageImpl, types::api::{self, enums as api_enums}, *, }; use time::macros::datetime; use tokio::sync::oneshot; use uuid::Uuid; #[test] ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/cache.rs
crates/router/tests/cache.rs
use std::sync::Arc; use router::{configs::settings::Settings, routes, services}; use storage_impl::redis::cache::{self, CacheKey}; mod utils; #[actix_web::test] async fn invalidate_existing_cache_success() { // Arrange Box::pin(utils::setup()).await; let (tx, _) = tokio::sync::oneshot::channel(); let...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/payments.rs
crates/router/tests/payments.rs
#![allow(clippy::unwrap_in_result)] mod utils; use std::{borrow::Cow, sync::Arc}; use common_utils::{id_type, types::MinorUnit}; use router::{ configs, core::payments, db::StorageImpl, routes, services, types::{ self, api::{self, enums as api_enums}, }, }; use time::macros::da...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/worldpayvantiv.rs
crates/router/tests/connectors/worldpayvantiv.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct WorldpayvantivTest; impl ConnectorActions for WorldpayvantivTest...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/bamboraapac.rs
crates/router/tests/connectors/bamboraapac.rs
use masking::Secret; use router::types::{self, api, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct BamboraapacTest; impl ConnectorActions for BamboraapacTest {} impl utils::Connector for BamboraapacTest { fn get_data(&self) -> api...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/airwallex.rs
crates/router/tests/connectors/airwallex.rs
use std::str::FromStr; use hyperswitch_domain_models::address::{Address, AddressDetails}; use masking::{PeekInterface, Secret}; use router::types::{self, domain, storage::enums, AccessToken}; use crate::{ connector_auth, utils::{self, Connector, ConnectorActions}, }; #[derive(Clone, Copy)] struct AirwallexTe...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/stripe.rs
crates/router/tests/connectors/stripe.rs
use std::str::FromStr; use masking::Secret; use router::types::{self, domain, storage::enums}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; struct Stripe; impl ConnectorActions for Stripe {} impl utils::Connector for Stripe { fn get_data(&self) -> types::api::ConnectorData { u...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/mifinity.rs
crates/router/tests/connectors/mifinity.rs
use masking::Secret; use router::types::{self, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct MifinityTest; impl ConnectorActions for MifinityTest {} impl utils::Connector for MifinityTest { fn get_data(&self) -> types::api::Conne...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/tesouro.rs
crates/router/tests/connectors/tesouro.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct TesouroTest; impl ConnectorActions for TesouroTest {} impl utils...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/bambora.rs
crates/router/tests/connectors/bambora.rs
use std::str::FromStr; use common_utils::types::MinorUnit; use masking::Secret; use router::types::{self, domain, storage::enums}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[derive(Clone, Copy)] struct BamboraTest; impl ConnectorActions for BamboraTest {} impl utils::Connector for Bam...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/hyperswitch_vault.rs
crates/router/tests/connectors/hyperswitch_vault.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct HyperswitchVaultTest; impl ConnectorActions for HyperswitchVault...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/phonepe.rs
crates/router/tests/connectors/phonepe.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct PhonepeTest; impl ConnectorActions for PhonepeTest {} impl utils...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/coingate.rs
crates/router/tests/connectors/coingate.rs
use masking::Secret; use router::types::{self, api, storage::enums}; use crate::utils::{self, ConnectorActions}; use test_utils::connector_auth; #[derive(Clone, Copy)] struct CoingateTest; impl ConnectorActions for CoingateTest {} impl utils::Connector for CoingateTest { fn get_data(&self) -> api::ConnectorData {...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/globepay.rs
crates/router/tests/connectors/globepay.rs
use masking::Secret; use router::types::{self, domain, storage::enums}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[derive(Clone, Copy)] struct GlobepayTest; impl ConnectorActions for GlobepayTest {} impl utils::Connector for GlobepayTest { fn get_data(&self) -> types::api::Connecto...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/bluesnap.rs
crates/router/tests/connectors/bluesnap.rs
use std::str::FromStr; use common_utils::pii::Email; use hyperswitch_domain_models::address::{Address, AddressDetails}; use masking::Secret; use router::types::{self, domain, storage::enums, ConnectorAuthType, PaymentAddress}; use crate::{ connector_auth, utils::{self, ConnectorActions, PaymentInfo}, }; #[de...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/authipay.rs
crates/router/tests/connectors/authipay.rs
use std::str::FromStr; use masking::Secret; use router::{ core::errors, types::{self, api, storage::enums}, }; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct AuthipayTest; impl ConnectorActions for AuthipayTest {} impl utils::Connector for AuthipayTe...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/plaid.rs
crates/router/tests/connectors/plaid.rs
use masking::Secret; use router::types::{self, api, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, Connector, ConnectorActions}; #[derive(Clone, Copy)] struct PlaidTest; impl ConnectorActions for PlaidTest {} static CONNECTOR: PlaidTest = PlaidTest {}; impl Connector for PlaidTest...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/authorizedotnet.rs
crates/router/tests/connectors/authorizedotnet.rs
use std::str::FromStr; use masking::Secret; use router::types::{self, domain, storage::enums}; use crate::{ connector_auth, utils::{self, ConnectorActions, PaymentInfo}, }; #[derive(Clone, Copy)] struct AuthorizedotnetTest; impl ConnectorActions for AuthorizedotnetTest {} impl utils::Connector for Authorized...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/dwolla.rs
crates/router/tests/connectors/dwolla.rs
use masking::Secret; use router::types::{self, api, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct DwollaTest; impl ConnectorActions for DwollaTest {} impl utils::Connector for DwollaTest { fn get_data(&self) -> api::ConnectorData...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/gpayments.rs
crates/router/tests/connectors/gpayments.rs
use router::types; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] #[allow(dead_code)] struct GpaymentsTest; impl ConnectorActions for GpaymentsTest {} impl utils::Connector for GpaymentsTest { fn get_data(&self) -> types::api::ConnectorData { use router:...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/amazonpay.rs
crates/router/tests/connectors/amazonpay.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct AmazonpayTest; impl ConnectorActions for AmazonpayTest {} impl u...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/vgs.rs
crates/router/tests/connectors/vgs.rs
use masking::Secret; use router::types::{self, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct VgsTest; impl ConnectorActions for VgsTest {} impl utils::Connector for VgsTest { fn get_data(&self) -> types::api::ConnectorData { ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/opayo.rs
crates/router/tests/connectors/opayo.rs
use std::str::FromStr; use masking::Secret; use router::types::{self, domain, storage::enums}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[derive(Clone, Copy)] struct OpayoTest; impl ConnectorActions for OpayoTest {} impl utils::Connector for OpayoTest { fn get_data(&self) -> types...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/paystack.rs
crates/router/tests/connectors/paystack.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct PaystackTest; impl ConnectorActions for PaystackTest {} impl uti...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/boku.rs
crates/router/tests/connectors/boku.rs
use masking::Secret; use router::types::{self, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct BokuTest; impl ConnectorActions for BokuTest {} impl utils::Connector for BokuTest { fn get_data(&self) -> types::api::ConnectorData { ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/jpmorgan.rs
crates/router/tests/connectors/jpmorgan.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct JpmorganTest; impl JpmorganTest { #[allow(dead_code)] fn...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/santander.rs
crates/router/tests/connectors/santander.rs
use masking::Secret; use router::types::{self, api, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct SantanderTest; impl ConnectorActions for SantanderTest {} impl utils::Connector for SantanderTest { fn get_data(&self) -> api::Conn...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/mollie.rs
crates/router/tests/connectors/mollie.rs
use router::types; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[allow(dead_code)] #[derive(Clone, Copy)] struct MollieTest; impl ConnectorActions for MollieTest {} impl utils::Connector for MollieTest { fn get_data(&self) -> types::api::ConnectorData { use router::connector::...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/paypal.rs
crates/router/tests/connectors/paypal.rs
use std::str::FromStr; use common_utils::types::MinorUnit; use masking::Secret; use router::types::{self, domain, storage::enums, AccessToken, ConnectorAuthType}; use crate::{ connector_auth, utils::{self, Connector, ConnectorActions}, }; struct PaypalTest; impl ConnectorActions for PaypalTest {} impl Connec...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/trustpayments.rs
crates/router/tests/connectors/trustpayments.rs
use std::str::FromStr; use masking::Secret; use router::types::{self, api, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct TrustpaymentsTest; impl ConnectorActions for TrustpaymentsTest {} impl utils::Connector for TrustpaymentsTest {...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/hipay.rs
crates/router/tests/connectors/hipay.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct HipayTest; impl ConnectorActions for HipayTest {} impl utils::Co...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/juspaythreedsserver.rs
crates/router/tests/connectors/juspaythreedsserver.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct JuspaythreedsserverTest; impl JuspaythreedsserverTest { #[al...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/flexiti.rs
crates/router/tests/connectors/flexiti.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct FlexitiTest; impl ConnectorActions for FlexitiTest {} impl utils...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/silverflow.rs
crates/router/tests/connectors/silverflow.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct SilverflowTest; impl ConnectorActions for SilverflowTest {} impl...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/worldpayxml.rs
crates/router/tests/connectors/worldpayxml.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct WorldpayxmlTest; impl ConnectorActions for WorldpayxmlTest {} im...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/itaubank.rs
crates/router/tests/connectors/itaubank.rs
use masking::Secret; use router::types::{self, api, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct ItaubankTest; impl ConnectorActions for ItaubankTest {} impl utils::Connector for ItaubankTest { fn get_data(&self) -> api::Connect...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/katapult.rs
crates/router/tests/connectors/katapult.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct KatapultTest; impl ConnectorActions for KatapultTest {} impl uti...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/helcim.rs
crates/router/tests/connectors/helcim.rs
use masking::Secret; use router::types::{self, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct HelcimTest; impl ConnectorActions for HelcimTest {} impl utils::Connector for HelcimTest { fn get_data(&self) -> types::api::ConnectorDa...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/nexinets.rs
crates/router/tests/connectors/nexinets.rs
use std::str::FromStr; use cards::CardNumber; use common_utils::types::MinorUnit; use masking::Secret; use router::types::{self, domain, storage::enums, PaymentsAuthorizeData}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[derive(Clone, Copy)] struct NexinetsTest; impl ConnectorActions f...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/datatrans.rs
crates/router/tests/connectors/datatrans.rs
use masking::Secret; use router::types::{self, api, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct DatatransTest; impl ConnectorActions for DatatransTest {} impl utils::Connector for DatatransTest { fn get_data(&self) -> api::Conn...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/aci.rs
crates/router/tests/connectors/aci.rs
use std::str::FromStr; use hyperswitch_domain_models::{ address::{Address, AddressDetails, PhoneDetails}, payment_method_data::{Card, PaymentMethodData}, router_request_types::AuthenticationData, }; use masking::Secret; use router::types::{self, storage::enums, PaymentAddress}; use crate::{ connector_...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/nomupay.rs
crates/router/tests/connectors/nomupay.rs
use api_models::payments::{Address, AddressDetails}; use masking::Secret; use router::types::{self, api, storage::enums, PaymentAddress}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions, PaymentInfo}; #[derive(Clone, Copy)] struct NomupayTest; impl ConnectorActions for NomupayTest {} impl u...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/checkbook.rs
crates/router/tests/connectors/checkbook.rs
use std::str::FromStr; use hyperswitch_domain_models::address::{Address, AddressDetails}; use masking::Secret; use router::types::{self, api, storage::enums, Email}; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct CheckbookTest; impl ConnectorActions for CheckbookTest {} impl utils::Connect...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/affirm.rs
crates/router/tests/connectors/affirm.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct AffirmTest; impl ConnectorActions for AffirmTest {} impl utils::...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/gigadat.rs
crates/router/tests/connectors/gigadat.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct GigadatTest; impl ConnectorActions for GigadatTest {} impl utils...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/dlocal.rs
crates/router/tests/connectors/dlocal.rs
use std::str::FromStr; use hyperswitch_domain_models::address::{Address, AddressDetails}; use masking::Secret; use router::types::{self, api, domain, storage::enums, PaymentAddress}; use crate::{ connector_auth, utils::{self, ConnectorActions, PaymentInfo}, }; #[derive(Clone, Copy)] struct DlocalTest; impl C...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/paysafe.rs
crates/router/tests/connectors/paysafe.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct PaysafeTest; impl ConnectorActions for PaysafeTest {} impl utils...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/tokenex.rs
crates/router/tests/connectors/tokenex.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct TokenexTest; impl ConnectorActions for TokenexTest {} impl utils...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/shift4.rs
crates/router/tests/connectors/shift4.rs
use std::str::FromStr; use masking::Secret; use router::types::{self, domain, storage::enums}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[derive(Clone, Copy)] struct Shift4Test; impl ConnectorActions for Shift4Test {} impl utils::Connector for Shift4Test { fn get_data(&self) -> ty...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/nordea.rs
crates/router/tests/connectors/nordea.rs
use masking::Secret; use router::types::{self, api, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct NordeaTest; impl ConnectorActions for NordeaTest {} impl utils::Connector for NordeaTest { fn get_data(&self) -> api::ConnectorData...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/custombilling.rs
crates/router/tests/connectors/custombilling.rs
use masking::Secret; use router::{ types::{self, api, storage::enums, }}; use crate::utils::{self, ConnectorActions}; use test_utils::connector_auth; #[derive(Clone, Copy)] struct CustombillingTest; impl ConnectorActions for CustombillingTest {} impl utils::Connector for CustombillingTest { fn get_data(&self)...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/fiserv.rs
crates/router/tests/connectors/fiserv.rs
use std::str::FromStr; use masking::Secret; use router::types::{self, domain, storage::enums}; use serde_json::json; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[derive(Clone, Copy)] struct FiservTest; impl ConnectorActions for FiservTest {} impl utils::Connector for FiservTest { fn...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/checkout.rs
crates/router/tests/connectors/checkout.rs
use masking::Secret; use router::types::{self, domain, storage::enums}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[derive(Clone, Copy)] struct CheckoutTest; impl ConnectorActions for CheckoutTest {} impl utils::Connector for CheckoutTest { fn get_data(&self) -> types::api::Connector...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/novalnet.rs
crates/router/tests/connectors/novalnet.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct NovalnetTest; impl ConnectorActions for NovalnetTest {} impl uti...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/payone.rs
crates/router/tests/connectors/payone.rs
use masking::Secret; use router::types::{self, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct PayoneTest; impl ConnectorActions for PayoneTest {} impl utils::Connector for PayoneTest { fn get_data(&self) -> types::api::ConnectorDa...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/blackhawknetwork.rs
crates/router/tests/connectors/blackhawknetwork.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct BlackhawknetworkTest; impl ConnectorActions for Blackhawknetwork...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/tsys.rs
crates/router/tests/connectors/tsys.rs
use std::{str::FromStr, time::Duration}; use cards::CardNumber; use masking::Secret; use router::types::{self, domain, storage::enums}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[derive(Clone, Copy)] struct TsysTest; impl ConnectorActions for TsysTest {} impl utils::Connector for Tsys...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/taxjar.rs
crates/router/tests/connectors/taxjar.rs
use masking::Secret; use router::types::{self, api, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct TaxjarTest; impl ConnectorActions for TaxjarTest {} impl utils::Connector for TaxjarTest { fn get_data(&self) -> api::ConnectorData...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/worldline.rs
crates/router/tests/connectors/worldline.rs
use std::str::FromStr; use hyperswitch_domain_models::address::{Address, AddressDetails}; use masking::Secret; use router::{ connector::Worldline, core::errors, types::{self, storage::enums, PaymentAddress}, }; use crate::{ connector_auth::ConnectorAuthentication, utils::{self, ConnectorActions, P...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/payu.rs
crates/router/tests/connectors/payu.rs
use common_enums::GooglePayCardFundingSource; use masking::PeekInterface; use router::types::{self, domain, storage::enums, AccessToken, ConnectorAuthType}; use crate::{ connector_auth, utils::{self, Connector, ConnectorActions, PaymentAuthorizeType}, }; struct Payu; impl ConnectorActions for Payu {} impl Conn...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/unified_authentication_service.rs
crates/router/tests/connectors/unified_authentication_service.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct UnifiedAuthenticationServiceTest; impl ConnectorActions for Unif...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/volt.rs
crates/router/tests/connectors/volt.rs
use masking::Secret; use router::types::{self, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct VoltTest; impl ConnectorActions for VoltTest {} impl utils::Connector for VoltTest { fn get_data(&self) -> types::api::ConnectorData { ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/loonio.rs
crates/router/tests/connectors/loonio.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct LoonioTest; impl ConnectorActions for LoonioTest {} impl utils::...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/facilitapay.rs
crates/router/tests/connectors/facilitapay.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct FacilitapayTest; impl ConnectorActions for FacilitapayTest {} im...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/router/tests/connectors/mpgs.rs
crates/router/tests/connectors/mpgs.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct MpgsTest; impl ConnectorActions for MpgsTest {} impl utils::Conn...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false