text string | file_path string | module string | type string | tokens int64 | language string | struct_name string | type_name string | trait_name string | impl_type string | function_name string | source string | section string | keys list | macro_type string | url string | title string | chunk_index int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pub struct RefundsCreateRequest {
/// The payment id against which refund is initiated
#[schema(
max_length = 30,
min_length = 30,
example = "pay_mbabizu24mvu3mela5njyhpit4",
value_type = String,
)]
pub payment_id: common_utils::id_type::GlobalPaymentId,
/// Unique I... | crates/api_models/src/refunds.rs | api_models | struct_definition | 520 | rust | RefundsCreateRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_mca_status(
state: &routes::SessionState,
key_store: &domain::MerchantKeyStore,
profile_id: Option<id_type::ProfileId>,
merchant_id: &id_type::MerchantId,
is_connector_agnostic_mit_enabled: bool,
connector_mandate_details: Option<&CommonMandateReference>,
network_transaction... | crates/router/src/core/payment_methods/cards.rs | router | function_signature | 185 | rust | null | null | null | null | get_mca_status | null | null | null | null | null | null | null |
pub struct ProfileSetter {
pub id: common_utils::id_type::ProfileId,
pub merchant_id: common_utils::id_type::MerchantId,
pub profile_name: String,
pub created_at: time::PrimitiveDateTime,
pub modified_at: time::PrimitiveDateTime,
pub return_url: Option<common_utils::types::Url>,
pub enable_p... | crates/hyperswitch_domain_models/src/business_profile.rs | hyperswitch_domain_models | struct_definition | 704 | rust | ProfileSetter | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Bluecode {} | crates/hyperswitch_connectors/src/connectors/bluecode.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Bluecode | api::RefundExecute for | impl api::RefundExecute for for Bluecode | null | null | null | null | null | null | null | null |
pub struct KlarnaConnectorMetadataObject {
pub klarna_region: Option<KlarnaEndpoint>,
} | crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | KlarnaConnectorMetadataObject | null | null | null | null | null | null | null | null | null | null | null |
pub async fn internal_call_connector_service_prerequisites<F, RouterDReq, ApiRequest, D>(
state: &SessionState,
merchant_context: &domain::MerchantContext,
connector: api::ConnectorData,
operation: &BoxedOperation<'_, F, ApiRequest, D>,
payment_data: &mut D,
business_profile: &domain::Profile,
)... | crates/router/src/core/payments.rs | router | function_signature | 426 | rust | null | null | null | null | internal_call_connector_service_prerequisites | null | null | null | null | null | null | null |
pub async fn update_payout_link(
self,
conn: &PgPooledConn,
payout_link_update: PayoutLinkUpdate,
) -> StorageResult<Self> {
generics::generic_update_with_results::<<Self as HasTable>::Table, _, _, _>(
conn,
dsl::link_id.eq(self.link_id.to_owned()),
... | crates/diesel_models/src/query/generic_link.rs | diesel_models | function_signature | 166 | rust | null | null | null | null | update_payout_link | null | null | null | null | null | null | null |
pub async fn record_operation_time<F, R, T>(
future: F,
metric: &router_env::opentelemetry::metrics::Histogram<f64>,
metric_name: &T,
source: &crate::AnalyticsProvider,
) -> R
where
F: futures::Future<Output = R>,
T: ToString,
{
let (result, time) = common_utils::metrics::utils::time_future(... | crates/analytics/src/metrics/request.rs | analytics | function_signature | 168 | rust | null | null | null | null | record_operation_time | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/trustpay.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use base64::Engine;
use common_enums::{enums, PaymentAction};
use common_utils::{
crypto,
errors::{CustomResult, ReportSwitchExt},
ext_traits::ByteSliceExt,... | crates/hyperswitch_connectors/src/connectors/trustpay.rs#chunk0 | hyperswitch_connectors | chunk | 8,191 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_role_from_token(state: web::Data<AppState>, req: HttpRequest) -> HttpResponse {
let flow = Flow::GetRoleFromToken;
Box::pin(api::server_wrap(
flow,
state.clone(),
&req,
(),
|state, user, _, _| async move {
role_core::get_role_from_token_with_... | crates/router/src/routes/user_role.rs | router | function_signature | 112 | rust | null | null | null | null | get_role_from_token | null | null | null | null | null | null | null |
pub trait DecisionEngineErrorsInterface {
fn get_error_message(&self) -> String;
fn get_error_code(&self) -> String;
fn get_error_data(&self) -> Option<String>;
} | crates/router/src/core/payments/routing/utils.rs | router | trait_definition | 42 | rust | null | null | DecisionEngineErrorsInterface | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Adyenplatform {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&ADYENPLATFORM_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
None
}
fn get_supported_webhook_flows(&self... | crates/hyperswitch_connectors/src/connectors/adyenplatform.rs | hyperswitch_connectors | impl_block | 95 | rust | null | Adyenplatform | ConnectorSpecifications for | impl ConnectorSpecifications for for Adyenplatform | null | null | null | null | null | null | null | null |
pub fn connector_transaction_id(
&self,
connector_meta: Option<&serde_json::Value>,
) -> CustomResult<Option<String>, errors::ConnectorError> {
let meta: helcim::HelcimMetaData = to_connector_meta(connector_meta.cloned())?;
Ok(Some(meta.preauth_transaction_id.to_string()))
} | crates/hyperswitch_connectors/src/connectors/helcim.rs | hyperswitch_connectors | function_signature | 71 | rust | null | null | null | null | connector_transaction_id | null | null | null | null | null | null | null |
pub fn into_inner(self) -> T {
self.inner
} | crates/hyperswitch_interfaces/src/secrets_interface/secret_state.rs | hyperswitch_interfaces | function_signature | 15 | rust | null | null | null | null | into_inner | null | null | null | null | null | null | null |
pub fn temporary_generic(token: String) -> Self {
Self::TemporaryGeneric(GenericTokenData { token })
} | crates/router/src/types/storage/payment_method.rs | router | function_signature | 25 | rust | null | null | null | null | temporary_generic | null | null | null | null | null | null | null |
impl api::PaymentToken for Nexinets {} | crates/hyperswitch_connectors/src/connectors/nexinets.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Nexinets | api::PaymentToken for | impl api::PaymentToken for for Nexinets | null | null | null | null | null | null | null | null |
pub fn get_expired_page(dummy_connector_conf: &settings::DummyConnector) -> String {
html! {
head {
title { "Authorize Payment" }
style { (consts::THREE_DS_CSS) }
link rel="icon" href="https://app.hyperswitch.io/HyperswitchFavicon.png" {}
}
body {
... | crates/router/src/routes/dummy_connector/utils.rs | router | function_signature | 354 | rust | null | null | null | null | get_expired_page | null | null | null | null | null | null | null |
pub async fn refunds_create(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<refunds::RefundRequest>,
) -> HttpResponse {
let flow = Flow::RefundsCreate;
Box::pin(api::server_wrap(
flow,
state,
&req,
json_payload.into_inner(),
|state, aut... | crates/router/src/routes/refunds.rs | router | function_signature | 214 | rust | null | null | null | null | refunds_create | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ProgramThreeDsDecisionRule
{
"type": "object",
"required": [
"defaultSelection",
"rules",
"metadata"
],
"properties": {
"defaultSelection": {
"$ref": "#/components/schemas/ThreeDSDecisionRule"
},
"rules": {
"$ref": "#/components/schemas/... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 116 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ProgramThreeDsDecisionRule"
] | null | null | null | null |
pub struct NovalnetGooglePay {
wallet_data: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | NovalnetGooglePay | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_pm_authentication_processor_config(
connector: PmAuthConnectors,
) -> Result<Option<ConnectorTomlConfig>, String> {
let connector_data = Self::new()?;
match connector {
PmAuthConnectors::Plaid => Ok(connector_data.plaid),
}
} | crates/connector_configs/src/connector.rs | connector_configs | function_signature | 65 | rust | null | null | null | null | get_pm_authentication_processor_config | null | null | null | null | null | null | null |
pub struct KafkaPaymentAttemptEvent<'a> {
pub payment_id: &'a id_type::PaymentId,
pub merchant_id: &'a id_type::MerchantId,
pub attempt_id: &'a String,
pub status: storage_enums::AttemptStatus,
pub amount: MinorUnit,
pub currency: Option<storage_enums::Currency>,
pub save_to_locker: Option<b... | crates/router/src/services/kafka/payment_attempt_event.rs | router | struct_definition | 639 | rust | KafkaPaymentAttemptEvent | null | null | null | null | null | null | null | null | null | null | null |
pub struct RecordMigrationStatus {
pub card_migrated: Option<bool>,
pub network_token_migrated: Option<bool>,
pub connector_mandate_details_migrated: Option<bool>,
pub network_transaction_migrated: Option<bool>,
} | crates/payment_methods/src/core/migration.rs | payment_methods | struct_definition | 49 | rust | RecordMigrationStatus | null | null | null | null | null | null | null | null | null | null | null |
impl FromStr for ReversalReason {
type Err = error_stack::Report<errors::ConnectorError>;
fn from_str(s: &str) -> Result<Self, Self::Err> {
match s.to_uppercase().as_str() {
"NO_RESPONSE" => Ok(Self::NoResponse),
"LATE_RESPONSE" => Ok(Self::LateResponse),
"UNABLE_TO_... | crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | hyperswitch_connectors | impl_block | 218 | rust | null | ReversalReason | FromStr for | impl FromStr for for ReversalReason | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs
Public structs: 21
use std::collections::HashMap;
use api_models::payments::{self, AdditionalPaymentData};
use common_enums::enums;
use common_utils::{pii::Email, request::Method, types::MinorUnit};
use hyperswitch_domain_models::{
paym... | crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | hyperswitch_connectors | full_file | 6,917 | null | null | null | null | null | null | null | null | null | null | null | null | null |
None,
HeaderPayload::with_source(common_enums::PaymentSource::Webhook),
))
.await
} else {
Err(report!(
errors::ApiErrorResponse::WebhookAuthenticationFailed
))
};
match response? {
services::ApplicationResponse::JsonWithHeaders((p... | crates/router/src/core/webhooks/incoming.rs#chunk2 | router | chunk | 3,227 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/routes/hypersense.rs
Public functions: 3
use actix_web::{web, HttpRequest, HttpResponse};
use api_models::external_service_auth as external_service_auth_api;
use router_env::Flow;
use super::AppState;
use crate::{
core::{api_locking, external_service_auth},
services::{
api,
... | crates/router/src/routes/hypersense.rs | router | full_file | 506 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ListUsersInEntityRequest {
pub entity_type: Option<common_enums::EntityType>,
} | crates/api_models/src/user_role.rs | api_models | struct_definition | 22 | rust | ListUsersInEntityRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/globepay/transformers.rs
Public structs: 9
use common_enums::enums;
use common_utils::{ext_traits::Encode, types::MinorUnit};
use error_stack::ResultExt;
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{Conn... | crates/hyperswitch_connectors/src/connectors/globepay/transformers.rs | hyperswitch_connectors | full_file | 3,337 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ApiEventMetric for AuthenticationCreateRequest {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
self.authentication_id
.as_ref()
.map(|id| ApiEventsType::Authentication {
authentication_id: id.clone(),
})
}
} | crates/api_models/src/authentication.rs | api_models | impl_block | 60 | rust | null | AuthenticationCreateRequest | ApiEventMetric for | impl ApiEventMetric for for AuthenticationCreateRequest | null | null | null | null | null | null | null | null |
pub struct GsmDeleteResponse {
pub gsm_rule_delete: bool,
/// The connector through which payment has gone through
pub connector: String,
/// The flow in which the code and message occurred for a connector
pub flow: String,
/// The sub_flow in which the code and message occurred for a connector... | crates/api_models/src/gsm.rs | api_models | struct_definition | 93 | rust | GsmDeleteResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn decision_engine_routing(
state: &SessionState,
backend_input: BackendInput,
business_profile: &domain::Profile,
payment_id: String,
merchant_fallback_config: Vec<RoutableConnectorChoice>,
) -> RoutingResult<Vec<RoutableConnectorChoice>> {
let routing_events_wrapper = RoutingEventsWr... | crates/router/src/core/payments/routing/utils.rs | router | function_signature | 358 | rust | null | null | null | null | decision_engine_routing | null | null | null | null | null | null | null |
pub struct AirwallexRedirectResponse {
status: AirwallexPaymentStatus,
id: String,
amount: Option<f32>,
payment_consent_id: Option<Secret<String>>,
next_action: Option<AirwallexRedirectNextAction>,
} | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | 55 | rust | AirwallexRedirectResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct UnifiedTranslationsUpdateInternal {
pub translation: Option<String>,
pub last_modified_at: PrimitiveDateTime,
} | crates/diesel_models/src/unified_translations.rs | diesel_models | struct_definition | 24 | rust | UnifiedTranslationsUpdateInternal | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Adyenplatform {} | crates/hyperswitch_connectors/src/connectors/adyenplatform.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Adyenplatform | api::PaymentSession for | impl api::PaymentSession for for Adyenplatform | null | null | null | null | null | null | null | null |
pub async fn delete_payment_intents(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
) -> StorageResult<Vec<PaymentIntent>> {
let query = diesel::delete(<PaymentIntent>::table())
.filter(payment_intent_dsl::merchant_id.eq(merchant_id.to_owned()))
.filter(payment_intent_... | crates/diesel_models/src/query/user/sample_data.rs | diesel_models | function_signature | 221 | rust | null | null | null | null | delete_payment_intents | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.MerchantConnectorResponse
{
"type": "object",
"description": "Response of creating a new Merchant Connector for the merchant account.\"",
"required": [
"connector_type",
"connector_name",
"merchant_connector_id",
"profile_id",
"status"
],
"properties"... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 1,241 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"MerchantConnectorResponse"
] | null | null | null | null |
pub struct PaymentMethodCollectLinkRequest {
/// The unique identifier for the collect link.
#[schema(value_type = Option<String>, example = "pm_collect_link_2bdacf398vwzq5n422S1")]
pub pm_collect_link_id: Option<String>,
/// The unique identifier of the customer.
#[schema(value_type = String, exam... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 343 | rust | PaymentMethodCollectLinkRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentAccountFeatureInformation {
health_card: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | PaymentAccountFeatureInformation | null | null | null | null | null | null | null | null | null | null | null |
merchant_account: storage::MerchantAccountUpdate,
key_store: &domain::MerchantKeyStore,
) -> CustomResult<domain::MerchantAccount, errors::StorageError> {
self.diesel_store
.update_specific_fields_in_merchant(state, merchant_id, merchant_account, key_store)
.await
... | crates/router/src/db/kafka_store.rs#chunk1 | router | chunk | 8,189 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn verify_totp(
state: SessionState,
user_token: auth::UserIdFromAuth,
req: user_api::VerifyTotpRequest,
) -> UserResponse<user_api::TokenResponse> {
let user_from_db: domain::UserFromStorage = state
.global_store
.find_user_by_id(&user_token.user_id)
.await
.ch... | crates/router/src/core/user.rs | router | function_signature | 391 | rust | null | null | null | null | verify_totp | null | null | null | null | null | null | null |
File: crates/router/src/core/fraud_check/flows/transaction_flow.rs
Public functions: 1
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},
paym... | crates/router/src/core/fraud_check/flows/transaction_flow.rs | router | full_file | 1,492 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct FailedTransactionData {
id: String,
payment_details: Vec<DeclinedPaymentDetails>,
} | crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs | hyperswitch_connectors | struct_definition | 23 | rust | FailedTransactionData | null | null | null | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/cards_info.rs
Public structs: 2
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use time::PrimitiveDateTime;
use crate::{enums as storage_enums, schema::cards_info};
#[derive(
Clone,
Debug,
Queryable,
Identifiable,
Selectable,
serde:... | crates/diesel_models/src/cards_info.rs | diesel_models | full_file | 372 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_metrics(
pool: &AnalyticsProvider,
auth: &AuthInfo,
req: GetAuthEventMetricRequest,
) -> AnalyticsResult<AuthEventMetricsResponse<MetricsBucketResponse>> {
let mut metrics_accumulator: HashMap<
AuthEventMetricsBucketIdentifier,
AuthEventMetricsAccumulator,
> = HashMa... | crates/analytics/src/auth_events/core.rs | analytics | function_signature | 750 | rust | null | null | null | null | get_metrics | null | null | null | null | null | null | null |
pub fn validate_and_get_payment_method_records(self) -> MigrationValidationResult {
// Step 1: Validate form-level conflicts
let form_has_single_id = self.merchant_connector_id.is_some();
let form_has_multiple_ids = self.merchant_connector_ids.is_some();
if form_has_single_id && form_ha... | crates/payment_methods/src/core/migration.rs | payment_methods | function_signature | 396 | rust | null | null | null | null | validate_and_get_payment_method_records | null | null | null | null | null | null | null |
pub struct PayoutRetrieveBody {
pub force_sync: Option<bool>,
#[schema(value_type = Option<String>)]
pub merchant_id: Option<id_type::MerchantId>,
} | crates/api_models/src/payouts.rs | api_models | struct_definition | 39 | rust | PayoutRetrieveBody | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundMetricsBucketValue {
pub successful_refunds: Option<u32>,
pub total_refunds: Option<u32>,
pub refund_success_rate: Option<f64>,
pub refund_count: Option<u64>,
pub refund_success_count: Option<u64>,
pub refund_processed_amount: Option<u64>,
pub refund_processed_amount_in_usd:... | crates/api_models/src/analytics/refunds.rs | api_models | struct_definition | 149 | rust | RefundMetricsBucketValue | null | null | null | null | null | null | null | null | null | null | null |
impl<Flow, ResourceCommonData, FlowSpecificRequest, FlowSpecificResponse> Deref
for RouterDataV2<Flow, ResourceCommonData, FlowSpecificRequest, FlowSpecificResponse>
{
type Target = ResourceCommonData;
fn deref(&self) -> &Self::Target {
&self.resource_common_data
}
} | crates/hyperswitch_domain_models/src/router_data_v2.rs | hyperswitch_domain_models | impl_block | 72 | rust | null | RouterDataV2 | Deref
for | impl Deref
for for RouterDataV2 | null | null | null | null | null | null | null | null |
impl NuveiPaymentsResponse {
/// returns amount_captured and minor_amount_capturable
pub fn get_amount_captured(
&self,
) -> Result<(Option<i64>, Option<MinorUnit>), error_stack::Report<errors::ConnectorError>> {
match &self.partial_approval {
Some(partial_approval) => {
... | crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | hyperswitch_connectors | impl_block | 305 | rust | null | NuveiPaymentsResponse | null | impl NuveiPaymentsResponse | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/santander.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use base64::Engine;
use common_enums::enums;
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::{ByteSliceExt, BytesExt},
request::{Method,... | crates/hyperswitch_connectors/src/connectors/santander.rs | hyperswitch_connectors | full_file | 8,002 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/services/kafka/fraud_check_event.rs
Public functions: 1
Public structs: 1
use diesel_models::{
enums as storage_enums,
enums::{FraudCheckLastStep, FraudCheckStatus, FraudCheckType},
fraud_check::FraudCheck,
};
use time::OffsetDateTime;
#[derive(serde::Serialize, Debug)]
pub struc... | crates/router/src/services/kafka/fraud_check_event.rs | router | full_file | 653 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl super::behaviour::Conversion for Relay {
type DstType = diesel_models::relay::Relay;
type NewDstType = diesel_models::relay::RelayNew;
async fn convert(self) -> CustomResult<Self::DstType, ValidationError> {
Ok(diesel_models::relay::Relay {
id: self.id,
connector_resour... | crates/hyperswitch_domain_models/src/relay.rs | hyperswitch_domain_models | impl_block | 689 | rust | null | Relay | super::behaviour::Conversion for | impl super::behaviour::Conversion for for Relay | null | null | null | null | null | null | null | null |
pub struct RefundResponse {
status: HelcimPaymentStatus,
transaction_id: u64,
#[serde(rename = "type")]
transaction_type: HelcimRefundTransactionType,
} | crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | hyperswitch_connectors | struct_definition | 44 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentIncrementalAuthorization for Wellsfargo {} | crates/hyperswitch_connectors/src/connectors/wellsfargo.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Wellsfargo | api::PaymentIncrementalAuthorization for | impl api::PaymentIncrementalAuthorization for for Wellsfargo | null | null | null | null | null | null | null | null |
pub struct WeChatPayRedirection {} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 8 | rust | WeChatPayRedirection | null | null | null | null | null | null | null | null | null | null | null |
pub fn server(state: AppState) -> Scope {
web::scope("/relay")
.app_data(web::Data::new(state))
.service(web::resource("").route(web::post().to(relay::relay)))
.service(web::resource("/{relay_id}").route(web::get().to(relay::relay_retrieve)))
} | crates/router/src/routes/app.rs | router | function_signature | 72 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
pub async fn list_by_merchant_id(
conn: &PgPooledConn,
merchant_id: &id_type::MerchantId,
constraints: CustomerListConstraints,
) -> StorageResult<Vec<Self>> {
generics::generic_filter::<<Self as HasTable>::Table, _, _, _>(
conn,
dsl::merchant_id.eq(merchant_i... | crates/diesel_models/src/query/customers.rs | diesel_models | function_signature | 105 | rust | null | null | null | null | list_by_merchant_id | null | null | null | null | null | null | null |
impl SchedulerInterface for MockDb {} | crates/scheduler/src/scheduler.rs | scheduler | impl_block | 7 | rust | null | MockDb | SchedulerInterface for | impl SchedulerInterface for for MockDb | null | null | null | null | null | null | null | null |
File: crates/analytics/src/refunds/metrics/sessionized_metrics/refund_count.rs
use std::collections::HashSet;
use api_models::analytics::{
refunds::{RefundDimensions, RefundFilters, RefundMetricsBucketIdentifier},
Granularity, TimeRange,
};
use common_utils::errors::ReportSwitchExt;
use error_stack::ResultExt... | crates/analytics/src/refunds/metrics/sessionized_metrics/refund_count.rs | analytics | full_file | 871 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn insert_totp_in_redis(state: &SessionState, user_id: &str) -> UserResult<()> {
let redis_conn = super::get_redis_connection_for_global_tenant(state)?;
let key = format!("{}{}", consts::user::REDIS_TOTP_PREFIX, user_id);
redis_conn
.set_key_with_expiry(
&key.as_str().into(),
... | crates/router/src/utils/user/two_factor_auth.rs | router | function_signature | 118 | rust | null | null | null | null | insert_totp_in_redis | null | null | null | null | null | null | null |
impl SerializableSecret for i64 {} | crates/masking/src/serde.rs | masking | impl_block | 8 | rust | null | i64 | SerializableSecret for | impl SerializableSecret for for i64 | null | null | null | null | null | null | null | null |
pub struct BokuErrorResponse {
pub status_code: u16,
pub code: String,
pub message: String,
pub reason: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/boku/transformers.rs | hyperswitch_connectors | struct_definition | 35 | rust | BokuErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_trans_id(
details: &AuthorizedotnetWebhookObjectId,
) -> Result<String, errors::ConnectorError> {
details
.payload
.id
.clone()
.ok_or(errors::ConnectorError::WebhookReferenceIdNotFound)
} | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs | hyperswitch_connectors | function_signature | 59 | rust | null | null | null | null | get_trans_id | null | null | null | null | null | null | null |
pub async fn create_and_insert_business_profile(
state: &SessionState,
request: api::ProfileCreate,
merchant_account: domain::MerchantAccount,
key_store: &domain::MerchantKeyStore,
) -> RouterResult<domain::Profile> {
let business_profile_new =
admin::create_profile_from_merchant_account(sta... | crates/router/src/core/admin.rs | router | function_signature | 177 | rust | null | null | null | null | create_and_insert_business_profile | null | null | null | null | null | null | null |
pub fn get_vault_response_for_delete_payment_method_data<F>(
router_data: VaultRouterData<F>,
customer_id: id_type::GlobalCustomerId,
) -> RouterResult<pm_types::VaultDeleteResponse> {
match router_data.response {
Ok(response) => match response {
types::VaultResponseData::ExternalVaultDe... | crates/router/src/core/payment_methods/vault.rs | router | function_signature | 222 | rust | null | null | null | null | get_vault_response_for_delete_payment_method_data | null | null | null | null | null | null | null |
pub struct ProfileNew {
pub profile_id: common_utils::id_type::ProfileId,
pub merchant_id: common_utils::id_type::MerchantId,
pub profile_name: String,
pub created_at: time::PrimitiveDateTime,
pub modified_at: time::PrimitiveDateTime,
pub return_url: Option<String>,
pub enable_payment_respon... | crates/diesel_models/src/business_profile.rs | diesel_models | struct_definition | 653 | rust | ProfileNew | null | null | null | null | null | null | null | null | null | null | null |
pub struct BusinessPaymentLinkConfig {
pub domain_name: Option<String>,
#[serde(flatten)]
pub default_config: Option<PaymentLinkConfigRequest>,
pub business_specific_configs: Option<HashMap<String, PaymentLinkConfigRequest>>,
pub allowed_domains: Option<HashSet<String>>,
pub branding_visibility:... | crates/diesel_models/src/business_profile.rs | diesel_models | struct_definition | 67 | rust | BusinessPaymentLinkConfig | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/payouts/payouts--list-filters.mdx
# Type: Doc File
---
openapi: post /payouts/filter
--- | api-reference/v1/payouts/payouts--list-filters.mdx | null | doc_file | 37 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct KlarnaPaymentsRequest {
order_lines: Vec<OrderLines>,
order_amount: MinorUnit,
purchase_country: enums::CountryAlpha2,
purchase_currency: enums::Currency,
merchant_reference1: Option<String>,
merchant_reference2: Option<String>,
shipping_address: Option<KlarnaShippingAddress>,
... | crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs | hyperswitch_connectors | struct_definition | 104 | rust | KlarnaPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Shift4 {} | crates/hyperswitch_connectors/src/connectors/shift4.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Shift4 | api::PaymentSync for | impl api::PaymentSync for for Shift4 | null | null | null | null | null | null | null | null |
pub struct BankAccountCredentialsOptions {
account_ids: Vec<String>,
} | crates/pm_auth/src/connector/plaid/transformers.rs | pm_auth | struct_definition | 15 | rust | BankAccountCredentialsOptions | null | null | null | null | null | null | null | null | null | null | null |
pub struct OpayoPaymentsResponse {
status: OpayoPaymentStatus,
id: String,
transaction_id: String,
} | crates/hyperswitch_connectors/src/connectors/opayo/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | OpayoPaymentsResponse | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Nordea {} | crates/hyperswitch_connectors/src/connectors/nordea.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Nordea | ConnectorValidation for | impl ConnectorValidation for for Nordea | null | null | null | null | null | null | null | null |
pub struct SenderInformation {
payment_information: Option<PaymentInformationResponse>,
} | crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | SenderInformation | null | null | null | null | null | null | null | null | null | null | null |
pub struct VoltAuthErrorResponse {
pub code: u64,
pub message: String,
} | crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | VoltAuthErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct SamsungPayTokenizedCard {
transaction_type: TransactionType,
} | crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | SamsungPayTokenizedCard | null | null | null | null | null | null | null | null | null | null | null |
pub async fn organization_update() {} | crates/openapi/src/routes/organization.rs | openapi | function_signature | 7 | rust | null | null | null | null | organization_update | null | null | null | null | null | null | null |
impl OutgoingWebhookEventMetric for OutgoingWebhookContent {
fn get_outgoing_webhook_event_content(&self) -> Option<OutgoingWebhookEventContent> {
match self {
Self::PaymentDetails(payment_payload) => Some(OutgoingWebhookEventContent::Payment {
payment_id: payment_payload.id.clon... | crates/router/src/events/outgoing_webhook_logs.rs | router | impl_block | 366 | rust | null | OutgoingWebhookContent | OutgoingWebhookEventMetric for | impl OutgoingWebhookEventMetric for for OutgoingWebhookContent | null | null | null | null | null | null | null | null |
impl api::PaymentCapture for Cybersource {} | crates/hyperswitch_connectors/src/connectors/cybersource.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Cybersource | api::PaymentCapture for | impl api::PaymentCapture for for Cybersource | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Mollie {} | crates/hyperswitch_connectors/src/connectors/mollie.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Mollie | api::RefundExecute for | impl api::RefundExecute for for Mollie | null | null | null | null | null | null | null | null |
pub struct V2AdminApiAuth; | crates/router/src/services/authentication.rs | router | struct_definition | 8 | rust | V2AdminApiAuth | null | null | null | null | null | null | null | null | null | null | null |
impl api::Payment for Payme {} | crates/hyperswitch_connectors/src/connectors/payme.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Payme | api::Payment for | impl api::Payment for for Payme | null | null | null | null | null | null | null | null |
pub fn set_three_d_s_server_trans_i_d(mut self, three_d_s_server_trans_i_d: String) -> Self {
self.three_d_s_server_trans_i_d = Some(three_d_s_server_trans_i_d);
self
} | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | function_signature | 52 | rust | null | null | null | null | set_three_d_s_server_trans_i_d | null | null | null | null | null | null | null |
pub(crate) fn diesel_enum_derive_inner(ast: &DeriveInput) -> syn::Result<TokenStream> {
let storage_type = ast.get_metadata()?;
match storage_type
.first()
.ok_or(syn::Error::new(
Span::call_site(),
"Storage type must be specified",
))?
.get_storage_type(... | crates/router_derive/src/macros/diesel.rs | router_derive | function_signature | 112 | rust | null | null | null | null | diesel_enum_derive_inner | null | null | null | null | null | null | null |
impl Capturable for PaymentsTaxCalculationData {} | crates/router/src/types.rs | router | impl_block | 10 | rust | null | PaymentsTaxCalculationData | Capturable for | impl Capturable for for PaymentsTaxCalculationData | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Thunes {
//TODO: implement functions when support enabled
} | crates/hyperswitch_connectors/src/connectors/thunes.rs | hyperswitch_connectors | impl_block | 18 | rust | null | Thunes | ConnectorValidation for | impl ConnectorValidation for for Thunes | null | null | null | null | null | null | null | null |
where
F: Send + Clone + Sync,
Req: Send + Sync + Authenticate,
FData: Send + Sync + Clone,
Op: Operation<F, Req, Data = D> + ValidateStatusForOperation + Send + Sync + Clone,
Req: Debug,
D: OperationSessionGetters<F>
+ OperationSessionSetters<F>
+ transformers::GenerateResponse<R... | crates/router/src/core/payments.rs#chunk2 | router | chunk | 8,181 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CustomerUpdateRequestInternal {
pub id: id_type::GlobalCustomerId,
pub request: CustomerUpdateRequest,
} | crates/api_models/src/customers.rs | api_models | struct_definition | 26 | rust | CustomerUpdateRequestInternal | null | null | null | null | null | null | null | null | null | null | null |
pub async fn toggle_elimination_routing() {} | crates/openapi/src/routes/routing.rs | openapi | function_signature | 9 | rust | null | null | null | null | toggle_elimination_routing | null | null | null | null | null | null | null |
pub struct CybersourcePaymentInitiator {
#[serde(rename = "type")]
initiator_type: Option<CybersourcePaymentInitiatorTypes>,
credential_stored_on_file: Option<bool>,
stored_credential_used: Option<bool>,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 51 | rust | CybersourcePaymentInitiator | null | null | null | null | null | null | null | null | null | null | null |
pub async fn from_role_id_org_id_tenant_id(
state: &SessionState,
role_id: &str,
org_id: &id_type::OrganizationId,
tenant_id: &id_type::TenantId,
) -> CustomResult<Self, errors::StorageError> {
if let Some(role) = predefined_roles::PREDEFINED_ROLES.get(role_id) {
... | crates/router/src/services/authorization/roles.rs | router | function_signature | 132 | rust | null | null | null | null | from_role_id_org_id_tenant_id | null | null | null | null | null | null | null |
},
card_acceptor_tax_id: l2_l3_data.merchant_tax_registration_id.clone(),
tax_amount: l2_l3_data.order_details.as_ref().map(|orders| {
orders
.iter()
.filter_map(|order| order.total_tax_amount)
... | crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs#chunk1 | hyperswitch_connectors | chunk | 8,187 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl IncomingWebhook for Billwerk {
fn get_webhook_object_reference_id(
&self,
_request: &IncomingWebhookRequestDetails<'_>,
) -> CustomResult<ObjectReferenceId, errors::ConnectorError> {
Err(report!(errors::ConnectorError::WebhooksNotImplemented))
}
fn get_webhook_event_type(
... | crates/hyperswitch_connectors/src/connectors/billwerk.rs | hyperswitch_connectors | impl_block | 185 | rust | null | Billwerk | IncomingWebhook for | impl IncomingWebhook for for Billwerk | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/mpgs.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use common_enums::enums;
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types:... | crates/hyperswitch_connectors/src/connectors/mpgs.rs | hyperswitch_connectors | full_file | 4,748 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct SantanderDebtor {
pub cpf: Secret<String>,
#[serde(rename = "nome")]
pub name: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/santander/transformers.rs | hyperswitch_connectors | struct_definition | 31 | rust | SantanderDebtor | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_tax_on_surcharge(&self) -> Option<MinorUnit> {
self.tax_on_surcharge
} | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | function_signature | 26 | rust | null | null | null | null | get_tax_on_surcharge | null | null | null | null | null | null | null |
impl ConnectorValidation for Airwallex {} | crates/hyperswitch_connectors/src/connectors/airwallex.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Airwallex | ConnectorValidation for | impl ConnectorValidation for for Airwallex | null | null | null | null | null | null | null | null |
pub struct BraintreeRefundTransaction {
pub refund: BraintreeRefundTransactionBody,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | BraintreeRefundTransaction | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.TokenizePaymentMethodRequest
{
"type": "object",
"properties": {
"card_cvc": {
"type": "string",
"description": "The CVC number for the card",
"example": "242",
"nullable": true
}
}
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 74 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"TokenizePaymentMethodRequest"
] | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.