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/api_models/src/gsm.rs
crates/api_models/src/gsm.rs
use utoipa::ToSchema; use crate::enums as api_enums; #[derive(Debug, serde::Deserialize, serde::Serialize, ToSchema)] pub struct GsmCreateRequest { /// The connector through which payment has gone through #[schema(value_type = Connector)] pub connector: api_enums::Connector, /// The flow in which the ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/payment_methods.rs
crates/api_models/src/payment_methods.rs
use std::collections::{HashMap, HashSet}; #[cfg(feature = "v2")] use std::str::FromStr; use cards::CardNumber; #[cfg(feature = "v1")] use common_utils::crypto::OptionalEncryptableName; use common_utils::{ consts::SURCHARGE_PERCENTAGE_PRECISION_LENGTH, errors, ext_traits::OptionExt, id_type, link_utils,...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/currency.rs
crates/api_models/src/currency.rs
use common_utils::{events::ApiEventMetric, types::MinorUnit}; /// QueryParams to be send to convert the amount -> from_currency -> to_currency #[derive(Debug, serde::Deserialize)] #[serde(rename_all = "snake_case")] pub struct CurrencyConversionParams { pub amount: MinorUnit, pub to_currency: String, pub f...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/authentication.rs
crates/api_models/src/authentication.rs
use common_enums::{enums, AuthenticationConnectors}; #[cfg(feature = "v1")] use common_utils::errors::{self, CustomResult}; use common_utils::{ events::{ApiEventMetric, ApiEventsType}, id_type, }; #[cfg(feature = "v1")] use error_stack::ResultExt; use serde::{Deserialize, Serialize}; use time::PrimitiveDateTime...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/files.rs
crates/api_models/src/files.rs
use utoipa::ToSchema; #[derive(Debug, serde::Serialize, ToSchema)] pub struct CreateFileResponse { /// ID of the file created pub file_id: String, } #[derive(Debug, serde::Serialize, ToSchema, Clone)] pub struct FileMetadataResponse { /// ID of the file created pub file_id: String, /// Name of the...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events.rs
crates/api_models/src/events.rs
pub mod apple_pay_certificates_migration; pub mod chat; pub mod connector_onboarding; pub mod customer; pub mod dispute; pub mod external_service_auth; pub mod gsm; mod locker_migration; pub mod payment; #[cfg(feature = "payouts")] pub mod payouts; #[cfg(feature = "recon")] pub mod recon; pub mod refund; #[cfg(feature ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/recon.rs
crates/api_models/src/recon.rs
use common_utils::{id_type, pii}; use masking::Secret; use crate::enums; #[derive(serde::Deserialize, Debug, serde::Serialize)] pub struct ReconUpdateMerchantRequest { pub recon_status: enums::ReconStatus, pub user_email: pii::Email, } #[derive(Debug, serde::Serialize)] pub struct ReconTokenResponse { pu...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/locker_migration.rs
crates/api_models/src/locker_migration.rs
#[derive(Debug, Clone, serde::Serialize)] #[serde(rename_all = "camelCase")] pub struct MigrateCardResponse { pub status_message: String, pub status_code: String, pub customers_moved: usize, pub cards_moved: usize, }
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/proxy.rs
crates/api_models/src/proxy.rs
use std::collections::HashMap; use common_utils::request::Method; use reqwest::header::HeaderMap; use serde::{Deserialize, Serialize}; use serde_json::Value; use utoipa::ToSchema; #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Headers(pub HashMap<String, String>); impl Headers { pub fn as_map(&self) ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/surcharge_decision_configs.rs
crates/api_models/src/surcharge_decision_configs.rs
use common_utils::{ consts::SURCHARGE_PERCENTAGE_PRECISION_LENGTH, events, types::{MinorUnit, Percentage}, }; use euclid::frontend::{ ast::Program, dir::{DirKeyKind, EuclidDirFilter}, }; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(rename_a...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/payments.rs
crates/api_models/src/payments.rs
#[cfg(feature = "v1")] use std::fmt; use std::{ collections::{HashMap, HashSet}, num::NonZeroI64, }; pub mod additional_info; pub mod trait_impls; use cards::{CardNumber, NetworkToken}; #[cfg(feature = "v2")] use common_enums::enums::PaymentConnectorTransmission; use common_enums::{GooglePayCardFundingSource, P...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/connector_enums.rs
crates/api_models/src/connector_enums.rs
pub use common_enums::connector_enums::Connector;
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/external_service_auth.rs
crates/api_models/src/external_service_auth.rs
use common_utils::{id_type, pii}; use masking::Secret; #[derive(Debug, serde::Serialize)] pub struct ExternalTokenResponse { pub token: Secret<String>, } #[derive(Debug, serde::Serialize, serde::Deserialize)] pub struct ExternalVerifyTokenRequest { pub token: Secret<String>, } #[derive(Debug, serde::Serialize...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/tokenization.rs
crates/api_models/src/tokenization.rs
use common_utils::id_type; use serde::{Deserialize, Serialize}; use time::PrimitiveDateTime; use utoipa::{schema, ToSchema}; #[cfg(all(feature = "v2", feature = "tokenization_v2"))] #[derive(Debug, Serialize, Deserialize, ToSchema)] pub struct GenericTokenizationResponse { /// Unique identifier returned by the tok...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/analytics.rs
crates/api_models/src/analytics.rs
use std::collections::HashSet; pub use common_utils::types::TimeRange; use common_utils::{events::ApiEventMetric, pii::EmailStrategy, types::authentication::AuthInfo}; use masking::Secret; use self::{ active_payments::ActivePaymentsMetrics, api_event::{ApiEventDimensions, ApiEventMetrics}, auth_events::{A...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/payments/trait_impls.rs
crates/api_models/src/payments/trait_impls.rs
#[cfg(feature = "v1")] use common_enums::enums; #[cfg(feature = "v1")] use common_utils::errors; #[cfg(feature = "v1")] use crate::payments; #[cfg(feature = "v1")] impl crate::ValidateFieldAndGet<payments::PaymentsRequest> for common_types::primitive_wrappers::RequestExtendedAuthorizationBool { fn validate_fi...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/payments/additional_info.rs
crates/api_models/src/payments/additional_info.rs
use common_utils::new_type::{ MaskedBankAccount, MaskedIban, MaskedRoutingNumber, MaskedSortCode, MaskedUpiVpaId, }; use masking::Secret; use smithy::SmithyModel; use utoipa::ToSchema; use crate::enums as api_enums; #[derive( Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema, SmithyM...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/user_role/role.rs
crates/api_models/src/user_role/role.rs
use common_enums::{ EntityType, ParentGroup, PermissionGroup, PermissionScope, Resource, RoleScope, }; #[derive(Debug, serde::Deserialize, serde::Serialize)] pub struct CreateRoleRequest { pub role_name: String, pub groups: Vec<PermissionGroup>, pub role_scope: RoleScope, pub entity_type: Option<En...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/user/theme.rs
crates/api_models/src/user/theme.rs
use actix_multipart::form::{bytes::Bytes, text::Text, MultipartForm}; use common_enums::EntityType; use common_utils::{ id_type, types::user::{EmailThemeConfig, ThemeLineage}, }; use masking::Secret; use serde::{Deserialize, Serialize}; #[derive(Debug, Serialize)] pub struct GetThemeResponse { pub theme_id...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/user/sample_data.rs
crates/api_models/src/user/sample_data.rs
use common_enums::{AuthenticationType, CountryAlpha2}; use time::PrimitiveDateTime; use crate::enums::Connector; #[derive(serde::Deserialize, Debug, serde::Serialize)] pub struct SampleDataRequest { pub record: Option<usize>, pub connector: Option<Vec<Connector>>, #[serde(default, with = "common_utils::cu...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/user/dashboard_metadata.rs
crates/api_models/src/user/dashboard_metadata.rs
use common_enums::{CountryAlpha2, MerchantProductType}; use common_types::primitive_wrappers::SafeString; use common_utils::{id_type, pii}; use masking::Secret; use strum::EnumString; #[derive(Debug, serde::Deserialize, serde::Serialize)] pub enum SetMetaDataRequest { ProductionAgreement(ProductionAgreementRequest...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/errors/actix.rs
crates/api_models/src/errors/actix.rs
use super::types::ApiErrorResponse; impl actix_web::ResponseError for ApiErrorResponse { fn status_code(&self) -> reqwest::StatusCode { use reqwest::StatusCode; match self { Self::Unauthorized(_) => StatusCode::UNAUTHORIZED, Self::ForbiddenCommonResource(_) => StatusCode::F...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/errors/types.rs
crates/api_models/src/errors/types.rs
use reqwest::StatusCode; use router_derive::PolymorphicSchema; use serde::Serialize; use utoipa::ToSchema; #[derive(Debug, serde::Serialize)] pub enum ErrorType { InvalidRequestError, RouterError, ConnectorError, } #[derive(Debug, serde::Serialize, Clone)] pub struct ApiError { pub sub_code: &'static ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/process_tracker/revenue_recovery.rs
crates/api_models/src/process_tracker/revenue_recovery.rs
use common_utils::id_type; use serde::{Deserialize, Serialize}; use time::PrimitiveDateTime; use utoipa::ToSchema; use crate::enums; #[derive(Debug, Clone, Serialize, Deserialize, ToSchema)] pub struct RevenueRecoveryResponse { pub id: String, pub name: Option<String>, #[schema(example = "2022-09-10T10:11:...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/user.rs
crates/api_models/src/events/user.rs
use common_utils::events::{ApiEventMetric, ApiEventsType}; #[cfg(feature = "dummy_connector")] use crate::user::sample_data::SampleDataRequest; #[cfg(feature = "control_center_theme")] use crate::user::theme::{ CreateThemeRequest, CreateUserThemeRequest, GetThemeResponse, UpdateThemeRequest, UploadFileRequest,...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/connector_onboarding.rs
crates/api_models/src/events/connector_onboarding.rs
use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::connector_onboarding::{ ActionUrlRequest, ActionUrlResponse, OnboardingStatus, OnboardingSyncRequest, ResetTrackingIdRequest, }; common_utils::impl_api_event_type!( Miscellaneous, ( ActionUrlRequest, ActionUrlRespons...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/routing.rs
crates/api_models/src/events/routing.rs
use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::routing::{ ContractBasedRoutingPayloadWrapper, ContractBasedRoutingSetupPayloadWrapper, CreateDynamicRoutingWrapper, DynamicRoutingUpdateConfigQuery, EliminationRoutingPayloadWrapper, LinkedRoutingConfigRetrieveResponse, MerchantRoutingA...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/revenue_recovery.rs
crates/api_models/src/events/revenue_recovery.rs
use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::process_tracker::revenue_recovery::{ RevenueRecoveryId, RevenueRecoveryResponse, RevenueRecoveryRetriggerRequest, }; impl ApiEventMetric for RevenueRecoveryResponse { fn get_api_event_type(&self) -> Option<ApiEventsType> { Some(ApiE...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/dispute.rs
crates/api_models/src/events/dispute.rs
use common_utils::events::{ApiEventMetric, ApiEventsType}; use super::{ DeleteEvidenceRequest, DisputeResponse, DisputeResponsePaymentsRetrieve, DisputeRetrieveRequest, DisputesAggregateResponse, SubmitEvidenceRequest, }; impl ApiEventMetric for SubmitEvidenceRequest { fn get_api_event_type(&self) -> Opti...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/apple_pay_certificates_migration.rs
crates/api_models/src/events/apple_pay_certificates_migration.rs
use common_utils::events::ApiEventMetric; use crate::apple_pay_certificates_migration::ApplePayCertificatesMigrationResponse; impl ApiEventMetric for ApplePayCertificatesMigrationResponse { fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType> { Some(common_utils::events::ApiEventsTy...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/user_role.rs
crates/api_models/src/events/user_role.rs
use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::user_role::{ role::{ CreateRoleRequest, CreateRoleV2Request, GetParentGroupsInfoQueryParams, GetRoleRequest, GroupsAndResources, ListRolesAtEntityLevelRequest, ListRolesQueryParams, ListRolesResponse, ParentGroupInfoReque...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/payouts.rs
crates/api_models/src/events/payouts.rs
use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::payouts::{ PayoutActionRequest, PayoutCreateRequest, PayoutCreateResponse, PayoutLinkInitiateRequest, PayoutListConstraints, PayoutListFilterConstraints, PayoutListFilters, PayoutListFiltersV2, PayoutListResponse, PayoutRetrieveRequest, ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/payment.rs
crates/api_models/src/events/payment.rs
use common_utils::events::{ApiEventMetric, ApiEventsType}; #[cfg(feature = "v2")] use super::{ PaymentAttemptListRequest, PaymentAttemptListResponse, PaymentStartRedirectionRequest, PaymentsCreateIntentRequest, PaymentsGetIntentRequest, PaymentsIntentResponse, PaymentsRequest, RecoveryPaymentListResponse, ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/chat.rs
crates/api_models/src/events/chat.rs
use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::chat::{ChatListRequest, ChatListResponse, ChatRequest, ChatResponse}; common_utils::impl_api_event_type!( Chat, (ChatRequest, ChatResponse, ChatListRequest, ChatListResponse) );
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/gsm.rs
crates/api_models/src/events/gsm.rs
use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::gsm; impl ApiEventMetric for gsm::GsmCreateRequest { fn get_api_event_type(&self) -> Option<ApiEventsType> { Some(ApiEventsType::Gsm) } } impl ApiEventMetric for gsm::GsmUpdateRequest { fn get_api_event_type(&self) -> Option<Ap...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/customer.rs
crates/api_models/src/events/customer.rs
use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::customers::{ CustomerDeleteResponse, CustomerListRequestWithConstraints, CustomerListResponse, CustomerRequest, CustomerResponse, CustomerUpdateRequestInternal, }; #[cfg(feature = "v1")] impl ApiEventMetric for CustomerDeleteResponse { ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/recon.rs
crates/api_models/src/events/recon.rs
use common_utils::events::{ApiEventMetric, ApiEventsType}; use masking::PeekInterface; use crate::recon::{ ReconStatusResponse, ReconTokenResponse, ReconUpdateMerchantRequest, VerifyTokenResponse, }; impl ApiEventMetric for ReconUpdateMerchantRequest { fn get_api_event_type(&self) -> Option<ApiEventsType> { ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/refund.rs
crates/api_models/src/events/refund.rs
use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::refunds::{ self, RefundAggregateResponse, RefundListFilters, RefundListMetaData, RefundListRequest, RefundListResponse, }; #[cfg(feature = "v1")] use crate::refunds::{ RefundManualUpdateRequest, RefundRequest, RefundUpdateRequest, Refund...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/locker_migration.rs
crates/api_models/src/events/locker_migration.rs
use common_utils::events::ApiEventMetric; use crate::locker_migration::MigrateCardResponse; impl ApiEventMetric for MigrateCardResponse { fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType> { Some(common_utils::events::ApiEventsType::RustLocker) } }
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/events/external_service_auth.rs
crates/api_models/src/events/external_service_auth.rs
use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::external_service_auth::{ ExternalSignoutTokenRequest, ExternalTokenResponse, ExternalVerifyTokenRequest, ExternalVerifyTokenResponse, }; impl ApiEventMetric for ExternalTokenResponse { fn get_api_event_type(&self) -> Option<ApiEventsTyp...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/analytics/outgoing_webhook_event.rs
crates/api_models/src/analytics/outgoing_webhook_event.rs
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)] pub struct OutgoingWebhookLogsRequest { pub payment_id: common_utils::id_type::PaymentId, pub event_id: Option<String>, pub refund_id: Option<String>, pub dispute_id: Option<String>, pub mandate_id: Option<String>, pub payment_method_...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/analytics/auth_events.rs
crates/api_models/src/analytics/auth_events.rs
use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, }; use common_enums::{ AuthenticationConnectors, AuthenticationStatus, Currency, DecoupledAuthenticationType, TransactionStatus, }; use super::{NameDescription, TimeRange}; #[derive(Clone, Debug, Default, serde::Deserialize, serde...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/analytics/refunds.rs
crates/api_models/src/analytics/refunds.rs
use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, }; use common_utils::id_type; use crate::enums::{Currency, RefundStatus}; #[derive( Clone, Copy, Debug, Hash, Eq, PartialEq, serde::Serialize, serde::Deserialize, strum::Display, strum::EnumString, ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/analytics/routing_events.rs
crates/api_models/src/analytics/routing_events.rs
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)] pub struct RoutingEventsRequest { pub payment_id: common_utils::id_type::PaymentId, pub refund_id: Option<String>, pub dispute_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/api_models/src/analytics/sdk_events.rs
crates/api_models/src/analytics/sdk_events.rs
use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, }; use super::{NameDescription, TimeRange}; #[derive(Clone, Debug, serde::Deserialize, serde::Serialize)] #[serde(rename_all = "camelCase")] pub struct SdkEventsRequest { pub payment_id: common_utils::id_type::PaymentId, pub time_r...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/analytics/active_payments.rs
crates/api_models/src/analytics/active_payments.rs
use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, }; use super::NameDescription; #[derive( Clone, Debug, Hash, PartialEq, Eq, serde::Serialize, serde::Deserialize, strum::Display, strum::EnumIter, strum::AsRefStr, )] #[strum(serialize_all = "snake_c...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/analytics/disputes.rs
crates/api_models/src/analytics/disputes.rs
use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, }; use super::{ForexMetric, NameDescription, TimeRange}; use crate::enums::{Currency, DisputeStage}; #[derive( Clone, Debug, Hash, PartialEq, Eq, serde::Serialize, serde::Deserialize, strum::Display, str...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/analytics/connector_events.rs
crates/api_models/src/analytics/connector_events.rs
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)] pub struct ConnectorEventsRequest { pub payment_id: common_utils::id_type::PaymentId, pub refund_id: Option<String>, pub dispute_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/api_models/src/analytics/search.rs
crates/api_models/src/analytics/search.rs
use common_utils::{hashing::HashedString, types::TimeRange}; use masking::WithType; use serde_json::Value; #[derive(Clone, Debug, Default, serde::Deserialize, serde::Serialize)] pub struct SearchFilters { pub payment_method: Option<Vec<String>>, pub currency: Option<Vec<String>>, pub status: Option<Vec<Str...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/analytics/payment_intents.rs
crates/api_models/src/analytics/payment_intents.rs
use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, }; use common_utils::id_type; use super::{ForexMetric, NameDescription, TimeRange}; use crate::enums::{ AuthenticationType, Connector, Currency, IntentStatus, PaymentMethod, PaymentMethodType, }; #[derive(Clone, Debug, Default, serde:...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/analytics/frm.rs
crates/api_models/src/analytics/frm.rs
use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, }; use common_enums::enums::FraudCheckStatus; #[derive( Clone, Copy, Debug, Default, Eq, PartialEq, serde::Serialize, serde::Deserialize, strum::Display, strum::EnumString, )] #[serde(rename_all = "s...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/analytics/api_event.rs
crates/api_models/src/analytics/api_event.rs
use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, }; use super::{NameDescription, TimeRange}; #[derive(Clone, Debug, serde::Deserialize, serde::Serialize)] pub struct ApiLogsRequest { #[serde(flatten)] pub query_param: QueryType, } pub enum FilterType { ApiCountFilter, Lat...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/api_models/src/analytics/payments.rs
crates/api_models/src/analytics/payments.rs
use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, }; use common_utils::id_type; use super::{ForexMetric, NameDescription, TimeRange}; use crate::enums::{ AttemptStatus, AuthenticationType, CardNetwork, Connector, Currency, PaymentMethod, PaymentMethodType, RoutingApproach, }; #[d...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/build.rs
crates/external_services/build.rs
fn main() -> Result<(), Box<dyn std::error::Error>> { // Compilation for revenue recovery protos #[cfg(feature = "revenue_recovery")] { let proto_base_path = router_env::workspace_path().join("proto"); let out_dir = std::path::PathBuf::from(std::env::var("OUT_DIR")?); let recovery_pr...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/http_client.rs
crates/external_services/src/http_client.rs
use common_utils::{consts, errors::CustomResult, request::Request}; use hyperswitch_interfaces::{errors::HttpClientError, types::Proxy}; use request::{HeaderExt, RequestBuilderExt}; use router_env::{instrument, logger, tracing}; /// client module pub mod client; /// metrics module pub mod metrics; /// request module pu...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/no_encryption.rs
crates/external_services/src/no_encryption.rs
//! No encryption functionalities pub mod core; pub mod implementers;
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/email.rs
crates/external_services/src/email.rs
//! Interactions with the AWS SES SDK use aws_sdk_sesv2::types::Body; use common_utils::{errors::CustomResult, pii}; use serde::Deserialize; /// Implementation of aws ses client pub mod ses; /// Implementation of SMTP server client pub mod smtp; /// Implementation of Email client when email support is disabled pub ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/lib.rs
crates/external_services/src/lib.rs
//! Interactions with external systems. #![warn(missing_docs, missing_debug_implementations)] #[cfg(feature = "aws_kms")] pub mod aws_kms; /// crm module pub mod crm; #[cfg(feature = "email")] pub mod email; pub mod file_storage; /// Building grpc clients to communicate with the server pub mod grpc_client; #[cfg(feat...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/grpc_client.rs
crates/external_services/src/grpc_client.rs
/// Dyanimc Routing Client interface implementation #[cfg(feature = "dynamic_routing")] pub mod dynamic_routing; /// gRPC based Heath Check Client interface implementation #[cfg(feature = "dynamic_routing")] pub mod health_check_client; /// gRPC based Recovery Trainer Client interface implementation #[cfg(feature = "re...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/hubspot_proxy.rs
crates/external_services/src/hubspot_proxy.rs
use masking::Secret; /// Lead source constant for Hubspot pub const HUBSPOT_LEAD_SOURCE: &str = "Hyperswitch Dashboard"; /// Struct representing a request to Hubspot #[derive(Clone, Debug, serde::Serialize, Default)] pub struct HubspotRequest { /// Indicates whether Hubspot should be used. #[serde(rename = "u...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/superposition.rs
crates/external_services/src/superposition.rs
//! Superposition client for dynamic configuration management /// Type definitions for Superposition integration pub mod types; use std::collections::HashMap; use common_utils::errors::CustomResult; use error_stack::report; use masking::ExposeInterface; pub use self::types::{ConfigContext, SuperpositionClientConfig...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/utils.rs
crates/external_services/src/utils.rs
//! Custom deserializers for external services configuration use std::collections::HashSet; use serde::Deserialize; /// Parses a comma-separated string into a HashSet of typed values. /// /// # Arguments /// /// * `value` - String or string reference containing comma-separated values /// /// # Returns /// /// * `Ok(...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/file_storage.rs
crates/external_services/src/file_storage.rs
//! Module for managing file storage operations with support for multiple storage schemes. use std::{ fmt::{Display, Formatter}, sync::Arc, }; use common_utils::errors::CustomResult; /// Includes functionality for AWS S3 storage operations. #[cfg(feature = "aws_s3")] mod aws_s3; mod file_system; /// Enum r...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/managers.rs
crates/external_services/src/managers.rs
//! Config and client managers pub mod encryption_management; pub mod secrets_management;
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/aws_kms.rs
crates/external_services/src/aws_kms.rs
//! Interactions with the AWS KMS SDK pub mod core; pub mod implementers;
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/crm.rs
crates/external_services/src/crm.rs
use std::sync::Arc; use common_utils::{ errors::CustomResult, ext_traits::ConfigExt, request::{Method, Request, RequestBuilder, RequestContent}, }; use error_stack::ResultExt; use http::header; use hyperswitch_interfaces::{ crm::{CrmInterface, CrmPayload}, errors::HttpClientError, types::Proxy,...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/hashicorp_vault.rs
crates/external_services/src/hashicorp_vault.rs
//! Interactions with the HashiCorp Vault pub mod core; pub mod implementers;
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/superposition/types.rs
crates/external_services/src/superposition/types.rs
//! Type definitions for Superposition integration use std::collections::HashMap; use common_utils::{errors::CustomResult, fp_utils::when}; use masking::{ExposeInterface, Secret}; /// Wrapper type for JSON values from Superposition #[derive(Debug, Clone)] pub struct JsonValue(serde_json::Value); impl JsonValue { ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/managers/secrets_management.rs
crates/external_services/src/managers/secrets_management.rs
//! Secrets management util module use common_utils::errors::CustomResult; #[cfg(feature = "hashicorp-vault")] use error_stack::ResultExt; use hyperswitch_interfaces::secrets_interface::{ SecretManagementInterface, SecretsManagementError, }; #[cfg(feature = "aws_kms")] use crate::aws_kms; #[cfg(feature = "hashico...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/managers/encryption_management.rs
crates/external_services/src/managers/encryption_management.rs
//! Encryption management util module use std::sync::Arc; use common_utils::errors::CustomResult; use hyperswitch_interfaces::encryption_interface::{ EncryptionError, EncryptionManagementInterface, }; #[cfg(feature = "aws_kms")] use crate::aws_kms; use crate::no_encryption::core::NoEncryption; /// Enum represen...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/grpc_client/dynamic_routing.rs
crates/external_services/src/grpc_client/dynamic_routing.rs
/// Module for Contract based routing pub mod contract_routing_client; use std::fmt::Debug; use common_utils::errors::CustomResult; use router_env::logger; /// Elimination Routing Client Interface Implementation pub mod elimination_based_client; /// Success Routing Client Interface Implementation pub mod success_rate...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/grpc_client/revenue_recovery.rs
crates/external_services/src/grpc_client/revenue_recovery.rs
/// Recovery Decider client pub mod recovery_decider_client; use std::fmt::Debug; use common_utils::consts; use router_env::logger; /// Contains recovery grpc headers #[derive(Debug)] pub struct GrpcRecoveryHeaders { /// Request id pub request_id: Option<String>, } /// Trait to add necessary recovery header...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/grpc_client/health_check_client.rs
crates/external_services/src/grpc_client/health_check_client.rs
use std::{collections::HashMap, fmt::Debug}; use api_models::health_check::{HealthCheckMap, HealthCheckServices}; use common_utils::{errors::CustomResult, ext_traits::AsyncExt}; use error_stack::ResultExt; pub use health_check::{ health_check_response::ServingStatus, health_client::HealthClient, HealthCheckRequest...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/grpc_client/unified_connector_service.rs
crates/external_services/src/grpc_client/unified_connector_service.rs
use std::collections::{HashMap, HashSet}; use common_enums::connector_enums::Connector; use common_utils::{consts as common_utils_consts, errors::CustomResult, types::Url}; use error_stack::ResultExt; pub use hyperswitch_interfaces::unified_connector_service::transformers::UnifiedConnectorServiceError; use masking::{P...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/grpc_client/dynamic_routing/contract_routing_client.rs
crates/external_services/src/grpc_client/dynamic_routing/contract_routing_client.rs
use api_models::routing::{ ContractBasedRoutingConfig, ContractBasedRoutingConfigBody, ContractBasedTimeScale, LabelInformation, RoutableConnectorChoice, RoutableConnectorChoiceWithStatus, }; use common_utils::{ ext_traits::OptionExt, transformers::{ForeignFrom, ForeignTryFrom}, }; pub use contract_rout...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs
crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs
use api_models::routing::{ CurrentBlockThreshold, RoutableConnectorChoice, RoutableConnectorChoiceWithStatus, SuccessBasedRoutingConfig, SuccessBasedRoutingConfigBody, SuccessRateSpecificityLevel, }; use common_utils::{ext_traits::OptionExt, transformers::ForeignTryFrom}; use error_stack::ResultExt; use router_...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/grpc_client/dynamic_routing/elimination_based_client.rs
crates/external_services/src/grpc_client/dynamic_routing/elimination_based_client.rs
use api_models::routing::{ EliminationAnalyserConfig as EliminationConfig, RoutableConnectorChoice, RoutableConnectorChoiceWithBucketName, }; use common_utils::{ext_traits::OptionExt, transformers::ForeignTryFrom}; pub use elimination_rate::{ elimination_analyser_client::EliminationAnalyserClient, Eliminati...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/grpc_client/revenue_recovery/recovery_decider_client.rs
crates/external_services/src/grpc_client/revenue_recovery/recovery_decider_client.rs
use std::fmt::Debug; use common_utils::errors::CustomResult; use error_stack::{Report, ResultExt}; use router_env::logger; use crate::grpc_client::Client; #[allow( missing_docs, unused_qualifications, clippy::unwrap_used, clippy::as_conversions, clippy::use_self )] pub mod decider { tonic::in...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/email/smtp.rs
crates/external_services/src/email/smtp.rs
use std::time::Duration; use common_utils::{errors::CustomResult, pii}; use error_stack::ResultExt; use lettre::{ address::AddressError, error, message::{header::ContentType, Mailbox}, transport::smtp::{self, authentication::Credentials}, Message, SmtpTransport, Transport, }; use masking::{PeekInte...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/email/no_email.rs
crates/external_services/src/email/no_email.rs
use common_utils::{errors::CustomResult, pii}; use router_env::logger; use crate::email::{EmailClient, EmailError, EmailResult, IntermediateString}; /// Client when email support is disabled #[derive(Debug, Clone, Default, serde::Deserialize)] pub struct NoEmailClient {} impl NoEmailClient { /// Constructs a new...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/email/ses.rs
crates/external_services/src/email/ses.rs
use std::time::{Duration, SystemTime}; use aws_sdk_sesv2::{ config::Region, operation::send_email::SendEmailError, types::{Body, Content, Destination, EmailContent, Message}, Client, }; use aws_sdk_sts::config::Credentials; use aws_smithy_runtime::client::http::hyper_014::HyperClientBuilder; use common...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/aws_kms/core.rs
crates/external_services/src/aws_kms/core.rs
//! Interactions with the AWS KMS SDK use std::time::Instant; use aws_config::meta::region::RegionProviderChain; use aws_sdk_kms::{config::Region, primitives::Blob, Client}; use base64::Engine; use common_utils::errors::CustomResult; use error_stack::{report, ResultExt}; use router_env::logger; use crate::{consts, m...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/aws_kms/implementers.rs
crates/external_services/src/aws_kms/implementers.rs
//! Trait implementations for aws kms client use common_utils::errors::CustomResult; use error_stack::ResultExt; use hyperswitch_interfaces::{ encryption_interface::{EncryptionError, EncryptionManagementInterface}, secrets_interface::{SecretManagementInterface, SecretsManagementError}, }; use masking::{PeekInt...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/hashicorp_vault/core.rs
crates/external_services/src/hashicorp_vault/core.rs
//! Interactions with the HashiCorp Vault use std::{collections::HashMap, future::Future, pin::Pin}; use common_utils::{ext_traits::ConfigExt, fp_utils::when}; use error_stack::{Report, ResultExt}; use masking::{PeekInterface, Secret}; use vaultrs::client::{VaultClient, VaultClientSettingsBuilder}; static HC_CLIENT:...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/hashicorp_vault/implementers.rs
crates/external_services/src/hashicorp_vault/implementers.rs
//! Trait implementations for Hashicorp vault client use common_utils::errors::CustomResult; use error_stack::ResultExt; use hyperswitch_interfaces::secrets_interface::{ SecretManagementInterface, SecretsManagementError, }; use masking::{ExposeInterface, Secret}; use crate::hashicorp_vault::core::{HashiCorpVault,...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/file_storage/file_system.rs
crates/external_services/src/file_storage/file_system.rs
//! Module for local file system storage operations use std::{ fs::{remove_file, File}, io::{Read, Write}, path::PathBuf, }; use common_utils::errors::CustomResult; use error_stack::ResultExt; use crate::file_storage::{FileStorageError, FileStorageInterface}; /// Constructs the file path for a given fil...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/file_storage/aws_s3.rs
crates/external_services/src/file_storage/aws_s3.rs
use aws_config::meta::region::RegionProviderChain; use aws_sdk_s3::{ operation::{ delete_object::DeleteObjectError, get_object::GetObjectError, put_object::PutObjectError, }, Client, }; use aws_sdk_sts::config::Region; use common_utils::{errors::CustomResult, ext_traits::ConfigExt}; use error_stack:...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/http_client/client.rs
crates/external_services/src/http_client/client.rs
use std::{collections::HashMap, sync::RwLock, time::Duration}; use base64::Engine; use common_utils::consts::BASE64_ENGINE; pub use common_utils::errors::CustomResult; use error_stack::ResultExt; use hyperswitch_interfaces::{errors::HttpClientError, types::Proxy}; use masking::ExposeInterface; use once_cell::sync::Onc...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/http_client/metrics.rs
crates/external_services/src/http_client/metrics.rs
use router_env::{counter_metric, global_meter, histogram_metric_f64}; global_meter!(GLOBAL_METER, "ROUTER_API"); counter_metric!(REQUEST_BUILD_FAILURE, GLOBAL_METER); histogram_metric_f64!(EXTERNAL_REQUEST_TIME, GLOBAL_METER); counter_metric!(AUTO_RETRY_CONNECTION_CLOSED, GLOBAL_METER); // HTTP Client creation met...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/http_client/request.rs
crates/external_services/src/http_client/request.rs
use std::str::FromStr; use common_utils::request::Headers; pub use common_utils::{errors::CustomResult, request::ContentType}; use error_stack::ResultExt; use hyperswitch_interfaces::errors::HttpClientError; pub use masking::{Mask, Maskable}; use router_env::{instrument, tracing}; #[allow(missing_docs)] pub trait Hea...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/no_encryption/core.rs
crates/external_services/src/no_encryption/core.rs
//! No encryption core functionalities /// No encryption type #[derive(Debug, Clone)] pub struct NoEncryption; impl NoEncryption { /// Encryption functionality pub fn encrypt(&self, data: impl AsRef<[u8]>) -> Vec<u8> { data.as_ref().into() } /// Decryption functionality pub fn decrypt(&se...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/external_services/src/no_encryption/implementers.rs
crates/external_services/src/no_encryption/implementers.rs
//! Trait implementations for No encryption client use common_utils::errors::CustomResult; use error_stack::ResultExt; use hyperswitch_interfaces::{ encryption_interface::{EncryptionError, EncryptionManagementInterface}, secrets_interface::{SecretManagementInterface, SecretsManagementError}, }; use masking::{E...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/subscriptions/src/lib.rs
crates/subscriptions/src/lib.rs
//! Subscription management crate for Hyperswitch //! //! This crate provides functionality for managing subscriptions, including: //! - Subscription creation and management //! - Invoice handling //! - Billing processor integration //! - Payment processing for subscriptions #[cfg(feature = "v1")] pub mod core; pub mo...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/subscriptions/src/helpers.rs
crates/subscriptions/src/helpers.rs
pub use hyperswitch_domain_models::errors::api_error_response; pub const X_PROFILE_ID: &str = "X-Profile-Id"; pub const X_TENANT_ID: &str = "x-tenant-id"; pub const X_MERCHANT_ID: &str = "X-Merchant-Id"; pub const X_INTERNAL_API_KEY: &str = "X-Internal-Api-Key"; pub trait ForeignFrom<F> { fn foreign_from(from: F)...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/subscriptions/src/state.rs
crates/subscriptions/src/state.rs
use common_utils::types::keymanager; use hyperswitch_domain_models::{ business_profile, configs as domain_configs, customer, invoice as invoice_domain, master_key, merchant_account, merchant_connector_account, merchant_key_store, subscription as subscription_domain, }; use hyperswitch_interfaces::configs; u...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/subscriptions/src/core.rs
crates/subscriptions/src/core.rs
use api_models::subscription::{self as subscription_types, SubscriptionResponse}; use common_enums::connector_enums; use common_utils::id_type::GenerateId; use error_stack::ResultExt; use hyperswitch_domain_models::{ api::ApplicationResponse, invoice::InvoiceUpdateRequest, platform::Platform, subscription::Subs...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/subscriptions/src/workflows.rs
crates/subscriptions/src/workflows.rs
//! Workflows module for subscription functionality //! //! This module contains workflow definitions for subscription-related operations pub mod invoice_sync; // Re-export workflow types for easier access pub use invoice_sync::*;
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/subscriptions/src/webhooks.rs
crates/subscriptions/src/webhooks.rs
use std::str::FromStr; use api_models::webhooks::WebhookResponseTracker; use common_enums::{connector_enums::Connector, InvoiceStatus}; use common_utils::{consts, errors::CustomResult, generate_id}; use error_stack::{report, ResultExt}; use hyperswitch_domain_models::{ business_profile, errors::api_error_response ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/subscriptions/src/types.rs
crates/subscriptions/src/types.rs
//! Types module for subscription functionality //! //! This module contains type definitions and storage types for subscriptions pub mod storage; // Re-export subscription types from api_models for convenience pub use api_models::subscription as subscription_types;
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/subscriptions/src/workflows/invoice_sync.rs
crates/subscriptions/src/workflows/invoice_sync.rs
use std::str::FromStr; #[cfg(feature = "v1")] use api_models::subscription as subscription_types; use common_utils::{errors::CustomResult, ext_traits::StringExt}; use error_stack::ResultExt; use hyperswitch_domain_models::{self as domain, invoice::InvoiceUpdateRequest}; use router_env::logger; use scheduler::{ err...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false