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 CustomerDetails {
pub customer_id: Option<id_type::CustomerId>,
pub name: Option<Secret<String, masking::WithType>>,
pub email: Option<pii::Email>,
pub phone: Option<Secret<String, masking::WithType>>,
pub phone_country_code: Option<String>,
pub tax_registration_id: Option<Secret<Stri... | crates/hyperswitch_domain_models/src/router_request_types.rs | hyperswitch_domain_models | struct_definition | 78 | rust | CustomerDetails | null | null | null | null | null | null | null | null | null | null | null |
pub async fn payouts_list_filters() {} | crates/openapi/src/routes/payouts.rs | openapi | function_signature | 8 | rust | null | null | null | null | payouts_list_filters | null | null | null | null | null | null | null |
pub async fn config_should_call_gsm(
db: &dyn StorageInterface,
merchant_id: &common_utils::id_type::MerchantId,
profile: &domain::Profile,
) -> bool {
let merchant_config_gsm = get_merchant_config_for_gsm(db, merchant_id).await;
let profile_config_gsm = profile.is_auto_retries_enabled;
merchant... | crates/router/src/core/payments/retry.rs | router | function_signature | 90 | rust | null | null | null | null | config_should_call_gsm | null | null | null | null | null | null | null |
Documentation: api-reference/v1/payment-methods/payment-method--update.mdx
# Type: Doc File
---
openapi: post /payment_methods/{method_id}/update
--- | api-reference/v1/payment-methods/payment-method--update.mdx | null | doc_file | 37 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn internal_payments_operation_core<F, Req, Op, FData, D>(
state: &SessionState,
req_state: ReqState,
merchant_context: domain::MerchantContext,
profile: &domain::Profile,
operation: Op,
req: Req,
get_tracker_response: operations::GetTrackerResponse<D>,
call_connector_action: C... | crates/router/src/core/payments.rs | router | function_signature | 765 | rust | null | null | null | null | internal_payments_operation_core | null | null | null | null | null | null | null |
pub async fn retrieve_disputes_list_profile(
state: web::Data<AppState>,
req: HttpRequest,
payload: web::Query<dispute_models::DisputeListGetConstraints>,
) -> HttpResponse {
let flow = Flow::DisputesList;
let payload = payload.into_inner();
Box::pin(api::server_wrap(
flow,
state... | crates/router/src/routes/disputes.rs | router | function_signature | 246 | rust | null | null | null | null | retrieve_disputes_list_profile | null | null | null | null | null | null | null |
File: crates/masking/src/string.rs
//! Secret strings
//!
//! There is not alias type by design.
use alloc::{
str::FromStr,
string::{String, ToString},
};
#[cfg(feature = "serde")]
use super::SerializableSecret;
use super::{Secret, Strategy};
use crate::StrongSecret;
#[cfg(feature = "serde")]
impl Serializa... | crates/masking/src/string.rs | masking | full_file | 204 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub trait PaymentMetric<T>
where
T: AnalyticsDataSource + PaymentMetricAnalytics,
{
async fn load_metrics(
&self,
dimensions: &[PaymentDimensions],
auth: &AuthInfo,
filters: &PaymentFilters,
granularity: Option<Granularity>,
time_range: &TimeRange,
pool: &... | crates/analytics/src/payments/metrics.rs | analytics | trait_definition | 91 | rust | null | null | PaymentMetric | null | null | null | null | null | null | null | null | null |
pub struct ClientReferenceInformation {
code: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 13 | rust | ClientReferenceInformation | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_constraint_graph/src/builder.rs
Public functions: 8
Public structs: 1
use std::sync::Arc;
use rustc_hash::{FxHashMap, FxHashSet};
use crate::{
dense_map::DenseMap,
error::GraphError,
graph::ConstraintGraph,
types::{
DomainId, DomainIdentifier, DomainInfo, Edge, Edge... | crates/hyperswitch_constraint_graph/src/builder.rs | hyperswitch_constraint_graph | full_file | 2,014 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentData {
/// The amount of the payment in minor units (e.g., cents for USD).
#[schema(value_type = i64)]
pub amount: common_utils::types::MinorUnit,
/// The currency of the payment.
#[schema(value_type = Currency)]
pub currency: common_enums::Currency,
} | crates/api_models/src/three_ds_decision_rule.rs | api_models | struct_definition | 72 | rust | PaymentData | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaypalRedirection
{
"type": "object",
"properties": {
"email": {
"type": "string",
"description": "paypal's email address",
"example": "johntest@test.com",
"nullable": true,
"maxLength": 255
}
}
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 80 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaypalRedirection"
] | null | null | null | null |
pub struct ReferencesResponse {
pub payment_request_id: String,
} | crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | ReferencesResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn server(config: AppState) -> Scope {
web::scope("/v2/client-secret")
.app_data(web::Data::new(config))
.service(web::resource("").route(web::post().to(client_secret_create)))
.service(web::resource("/{id}").route(web::delete().to(client_secret_delete)))
} | crates/router/src/routes/app.rs | router | function_signature | 70 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
pub struct ExchangeRate {
pub base_currency: Option<api_models::enums::Currency>,
pub exchange_currency: Option<api_models::enums::Currency>,
} | crates/hyperswitch_connectors/src/connectors/nordea/responses.rs | hyperswitch_connectors | struct_definition | 34 | rust | ExchangeRate | null | null | null | null | null | null | null | null | null | null | null |
pub async fn check_token_status_with_tokenization_service(
state: &routes::SessionState,
customer_id: &id_type::CustomerId,
network_token_requestor_reference_id: String,
tokenization_service: &settings::NetworkTokenizationService,
) -> CustomResult<(Option<Secret<String>>, Option<Secret<String>>), error... | crates/router/src/core/payment_methods/network_tokenization.rs | router | function_signature | 593 | rust | null | null | null | null | check_token_status_with_tokenization_service | null | null | null | null | null | null | null |
pub async fn add_refund_execute_task(
db: &dyn db::StorageInterface,
refund: &diesel_refund::Refund,
runner: storage::ProcessTrackerRunner,
) -> errors::RouterResult<storage::ProcessTracker> {
let task = "EXECUTE_REFUND";
let process_tracker_id = format!("{runner}_{task}_{}", refund.id.get_string_re... | crates/router/src/core/refunds_v2.rs | router | function_signature | 275 | rust | null | null | null | null | add_refund_execute_task | null | null | null | null | null | null | null |
pub struct GetApiEventFiltersRequest {
pub time_range: TimeRange,
#[serde(default)]
pub group_by_names: Vec<ApiEventDimensions>,
} | crates/api_models/src/analytics.rs | api_models | struct_definition | 34 | rust | GetApiEventFiltersRequest | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/payouts/payouts--create.mdx
# Type: Doc File
---
openapi: post /payouts/create
--- | api-reference/v1/payouts/payouts--create.mdx | null | doc_file | 35 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Iatapay {} | crates/hyperswitch_connectors/src/connectors/iatapay.rs | hyperswitch_connectors | impl_block | 13 | rust | null | Iatapay | api::MandateSetup for | impl api::MandateSetup for for Iatapay | null | null | null | null | null | null | null | null |
pub async fn get_profile_refund_filters(
state: web::Data<AppState>,
req: actix_web::HttpRequest,
json_payload: web::Json<GetRefundFilterRequest>,
) -> impl Responder {
let flow = AnalyticsFlow::GetRefundFilters;
Box::pin(api::server_wrap(
flow,
state,... | crates/router/src/analytics.rs | router | function_signature | 279 | rust | null | null | null | null | get_profile_refund_filters | null | null | null | null | null | null | null |
pub struct RequestIdMiddleware<S> {
service: S,
} | crates/router/src/middleware.rs | router | struct_definition | 14 | rust | RequestIdMiddleware | null | null | null | null | null | null | null | null | null | null | null |
File: crates/external_services/src/aws_kms.rs
//! Interactions with the AWS KMS SDK
pub mod core;
pub mod implementers;
| crates/external_services/src/aws_kms.rs | external_services | full_file | 31 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub trait SeriesBucket {
type SeriesType;
type GranularityLevel;
fn get_lowest_common_granularity_level(&self) -> Self::GranularityLevel;
fn get_bucket_size(&self) -> u8;
fn clip_to_start(
&self,
value: Self::SeriesType,
) -> error_stack::Result<Self::SeriesType, PostProcessin... | crates/analytics/src/query.rs | analytics | trait_definition | 117 | rust | null | null | SeriesBucket | null | null | null | null | null | null | null | null | null |
pub struct Datatrans {
amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/datatrans.rs | hyperswitch_connectors | struct_definition | 27 | rust | Datatrans | null | null | null | null | null | null | null | null | null | null | null |
pub async fn initiate_secure_payment_link_flow(
state: SessionState,
merchant_context: domain::MerchantContext,
merchant_id: common_utils::id_type::MerchantId,
payment_id: common_utils::id_type::PaymentId,
request_headers: &header::HeaderMap,
) -> RouterResponse<services::PaymentLinkFormData> {
... | crates/router/src/core/payment_link.rs | router | function_signature | 869 | rust | null | null | null | null | initiate_secure_payment_link_flow | null | null | null | null | null | null | null |
File: crates/router/src/core/payment_methods.rs
Public functions: 45
Public structs: 1
pub mod cards;
pub mod migration;
pub mod network_tokenization;
pub mod surcharge_decision_configs;
#[cfg(feature = "v1")]
pub mod tokenize;
pub mod transformers;
pub mod utils;
mod validator;
pub mod vault;
use std::borrow::Cow;
... | crates/router/src/core/payment_methods.rs#chunk0 | router | chunk | 8,173 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub trait UnifiedAuthenticationService {
#[allow(clippy::too_many_arguments)]
fn get_pre_authentication_request_data(
_payment_method_data: Option<&domain::PaymentMethodData>,
_service_details: Option<payments::CtpServiceDetails>,
_amount: common_utils::types::MinorUnit,
_currenc... | crates/router/src/core/unified_authentication_service/types.rs | router | trait_definition | 1,349 | rust | null | null | UnifiedAuthenticationService | null | null | null | null | null | null | null | null | null |
pub struct OrderInformationWithBill {
amount_details: Amount,
bill_to: Option<BillTo>,
} | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | OrderInformationWithBill | null | null | null | null | null | null | null | null | null | null | null |
pub async fn api_key_revoke() {} | crates/openapi/src/routes/api_keys.rs | openapi | function_signature | 9 | rust | null | null | null | null | api_key_revoke | null | null | null | null | null | null | null |
File: crates/hyperswitch_domain_models/src/router_flow_types.rs
pub mod access_token_auth;
pub mod authentication;
pub mod dispute;
pub mod files;
pub mod fraud_check;
pub mod mandate_revoke;
pub mod payments;
pub mod payouts;
pub mod refunds;
pub mod revenue_recovery;
pub mod unified_authentication_service;
pub mod v... | crates/hyperswitch_domain_models/src/router_flow_types.rs | hyperswitch_domain_models | full_file | 127 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &MinorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/volt.rs | hyperswitch_connectors | function_signature | 27 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct MerchantConnectorAuthDetails {
/// The connector used for the payment
#[schema(value_type = Connector)]
pub connector_name: common_enums::connector_enums::Connector,
/// The merchant connector credentials used for the payment
#[schema(value_type = Object, example = r#"{
"merchant... | crates/common_types/src/domain.rs | common_types | struct_definition | 122 | rust | MerchantConnectorAuthDetails | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/noon.rs
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use api_models::webhooks::{ConnectorWebhookSecrets, IncomingWebhookEvent, ObjectReferenceId};
use base64::Engine;
use common_enums::enums;
use common_utils::{
crypto,
errors::CustomResu... | crates/hyperswitch_connectors/src/connectors/noon.rs | hyperswitch_connectors | full_file | 7,824 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn new(
authentication_status: Option<AuthenticationStatus>,
trans_status: Option<TransactionStatus>,
authentication_type: Option<DecoupledAuthenticationType>,
error_message: Option<String>,
authentication_connector: Option<AuthenticationConnectors>,
message_version: ... | crates/api_models/src/analytics/auth_events.rs | api_models | function_signature | 357 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
impl EmailData for MagicLink {
async fn get_email_data(&self, base_url: &str) -> CustomResult<EmailContents, EmailError> {
let token = EmailToken::new_token(
self.recipient_email.clone(),
None,
domain::Origin::MagicLink,
&self.settings,
)
.awai... | crates/router/src/services/email/types.rs | router | impl_block | 282 | rust | null | MagicLink | EmailData for | impl EmailData for for MagicLink | null | null | null | null | null | null | null | null |
/// Get payment receipt (like Fiserv's payment_receipt)
pub fn payment_receipt(&self) -> AuthipayPaymentReceipt {
AuthipayPaymentReceipt {
approved_amount: self.approved_amount.clone(),
processor_response_details: Some(self.processor.clone()),
}
} | crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs | hyperswitch_connectors | function_signature | 58 | rust | null | null | null | null | payment_receipt | null | null | null | null | null | null | null |
pub struct ExpiryDate {
month: Secret<String>,
year: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | ExpiryDate | null | null | null | null | null | null | null | null | null | null | null |
}
}
impl UserFromStorage {
pub fn get_user_id(&self) -> &str {
self.0.user_id.as_str()
}
pub fn compare_password(&self, candidate: &Secret<String>) -> UserResult<()> {
if let Some(password) = self.0.password.as_ref() {
match password::is_correct_password(candidate, password... | crates/router/src/types/domain/user.rs#chunk1 | router | chunk | 2,737 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl AttemptAmountDetails {
pub fn get_net_amount(&self) -> MinorUnit {
self.net_amount
}
pub fn get_amount_to_capture(&self) -> Option<MinorUnit> {
self.amount_to_capture
}
pub fn get_surcharge_amount(&self) -> Option<MinorUnit> {
self.surcharge_amount
}
pub fn ge... | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | impl_block | 297 | rust | null | AttemptAmountDetails | null | impl AttemptAmountDetails | null | null | null | null | null | null | null | null |
impl GlobalRefundId {
/// Get string representation of the id
pub fn get_string_repr(&self) -> &str {
self.0.get_string_repr()
}
/// Generate a new GlobalRefundId from a cell id
pub fn generate(cell_id: &crate::id_type::CellId) -> Self {
let global_id = super::GlobalId::generate(cel... | crates/common_utils/src/id_type/global_id/refunds.rs | common_utils | impl_block | 101 | rust | null | GlobalRefundId | null | impl GlobalRefundId | null | null | null | null | null | null | null | null |
impl<K, V> DenseMap<K, V>
where
K: EntityId,
{
pub fn push(&mut self, elem: V) -> K {
let curr_len = self.data.len();
self.data.push(elem);
K::with_id(curr_len)
}
#[inline]
pub fn get(&self, idx: K) -> Option<&V> {
self.data.get(idx.get_id())
}
#[inline]
... | crates/hyperswitch_constraint_graph/src/dense_map.rs | hyperswitch_constraint_graph | impl_block | 366 | rust | null | DenseMap | null | impl DenseMap | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Jpmorgan {
fn validate_psync_reference_id(
&self,
data: &PaymentsSyncData,
_is_three_ds: bool,
_status: enums::AttemptStatus,
_connector_meta_data: Option<common_utils::pii::SecretSerdeValue>,
) -> CustomResult<(), errors::ConnectorError> {
... | crates/hyperswitch_connectors/src/connectors/jpmorgan.rs | hyperswitch_connectors | impl_block | 131 | rust | null | Jpmorgan | ConnectorValidation for | impl ConnectorValidation for for Jpmorgan | null | null | null | null | null | null | null | null |
File: crates/analytics/src/refunds/core.rs
Public functions: 2
#![allow(dead_code)]
use std::collections::{HashMap, HashSet};
use api_models::analytics::{
refunds::{
RefundDimensions, RefundDistributions, RefundMetrics, RefundMetricsBucketIdentifier,
RefundMetricsBucketResponse,
},
GetRef... | crates/analytics/src/refunds/core.rs | analytics | full_file | 2,850 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::Payment for Worldpay {} | crates/hyperswitch_connectors/src/connectors/worldpay.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Worldpay | api::Payment for | impl api::Payment for for Worldpay | null | null | null | null | null | null | null | null |
/// fn set_error
pub fn set_error(&mut self, error: serde_json::Value) {
self.error = Some(error.to_string());
} | crates/hyperswitch_interfaces/src/events/connector_api_logs.rs | hyperswitch_interfaces | function_signature | 33 | rust | null | null | null | null | set_error | null | null | null | null | null | null | null |
impl Aci {
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMajorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/aci.rs | hyperswitch_connectors | impl_block | 34 | rust | null | Aci | null | impl Aci | null | null | null | null | null | null | null | null |
impl api::Refund for Stripe {} | crates/hyperswitch_connectors/src/connectors/stripe.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Stripe | api::Refund for | impl api::Refund for for Stripe | null | null | null | null | null | null | null | null |
/// Allow [error_stack::Report] to convert between error types
/// This serves as an alternative to [ErrorSwitch]
pub trait ErrorSwitchFrom<T> {
/// Convert to an error type that the source can be escalated into
/// This does not consume the source error since we need to keep it in context
fn switch_from(er... | crates/common_utils/src/errors.rs | common_utils | trait_definition | 79 | rust | null | null | ErrorSwitchFrom | null | null | null | null | null | null | null | null | null |
impl IntermediateString {
/// Create a new Instance of IntermediateString using a string
pub fn new(inner: String) -> Self {
Self(inner)
}
/// Get the inner String
pub fn into_inner(self) -> String {
self.0
}
} | crates/external_services/src/email.rs | external_services | impl_block | 59 | rust | null | IntermediateString | null | impl IntermediateString | null | null | null | null | null | null | null | null |
pub struct RedirectUrls {
pub success_url: Option<String>,
pub cancel_url: Option<String>,
pub error_url: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | hyperswitch_connectors | struct_definition | 30 | rust | RedirectUrls | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentMethodTokenResult {
pub payment_method_token_result: Result<Option<String>, ErrorResponse>,
pub is_payment_method_tokenization_performed: bool,
pub connector_response: Option<ConnectorResponseData>,
} | crates/router/src/types.rs | router | struct_definition | 44 | rust | PaymentMethodTokenResult | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/organization"
{
"post": {
"tags": [
"Organization"
],
"summary": "Organization - Create",
"description": "Create a new organization",
"operationId": "Create an Organization",
"requestBody": {
"content": {
"application/json": {
"schema":... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 238 | .json | null | null | null | null | null | openapi_spec | paths | [
"/organization"
] | null | null | null | null |
pub struct SilverflowCaptureRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub amount: Option<i64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub close_charge: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub reference: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs | hyperswitch_connectors | struct_definition | 74 | rust | SilverflowCaptureRequest | null | null | null | null | null | null | null | null | null | null | null |
pub fn combine(g1: &Self, g2: &Self) -> Result<Self, GraphError<V>> {
let mut node_builder = builder::ConstraintGraphBuilder::new();
let mut g1_old2new_id = DenseMap::<NodeId, NodeId>::new();
let mut g2_old2new_id = DenseMap::<NodeId, NodeId>::new();
let mut g1_old2new_domain_id = DenseM... | crates/hyperswitch_constraint_graph/src/graph.rs | hyperswitch_constraint_graph | function_signature | 857 | rust | null | null | null | null | combine | null | null | null | null | null | null | null |
pub struct NomupayInnerError {
pub error_code: String,
pub error_description: Option<String>,
pub validation_errors: Option<Vec<ValidationError>>,
} | crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs | hyperswitch_connectors | struct_definition | 34 | rust | NomupayInnerError | null | null | null | null | null | null | null | null | null | null | null |
pub struct AuthenticationRequest {
#[serde(rename = "threeDSRequestorChallengeInd")]
pub three_ds_requestor_challenge_ind: Option<ThreedsRequestorChallengeInd>,
} | crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs | hyperswitch_connectors | struct_definition | 38 | rust | AuthenticationRequest | null | null | null | null | null | null | null | null | null | null | null |
impl SupportedPaymentMethodsExt for SupportedPaymentMethods {
fn add(
&mut self,
payment_method: common_enums::PaymentMethod,
payment_method_type: common_enums::PaymentMethodType,
payment_method_details: PaymentMethodDetails,
) {
if let Some(payment_method_data) = self.ge... | crates/hyperswitch_domain_models/src/router_response_types.rs | hyperswitch_domain_models | impl_block | 134 | rust | null | SupportedPaymentMethods | SupportedPaymentMethodsExt for | impl SupportedPaymentMethodsExt for for SupportedPaymentMethods | null | null | null | null | null | null | null | null |
pub struct AdditionalAmount {
additional_amount: StringMajorUnit,
currency: String,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | AdditionalAmount | null | null | null | null | null | null | null | null | null | null | null |
impl PaymentIntent {
/// Extract customer_id from payment intent feature metadata
pub fn extract_connector_customer_id_from_payment_intent(
&self,
) -> Result<String, common_utils::errors::ValidationError> {
self.feature_metadata
.as_ref()
.and_then(|metadata| metadat... | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | impl_block | 2,308 | rust | null | PaymentIntent | null | impl PaymentIntent | null | null | null | null | null | null | null | null |
- **postman:** Remove `routing algorithm` struct from `merchant account create` ([#2032](https://github.com/juspay/hyperswitch/pull/2032)) ([`3d4f750`](https://github.com/juspay/hyperswitch/commit/3d4f750089b97f0fde0e74b833bf386327fb4a52))
**Full Changelog:** [`v1.28.0...v1.28.1`](https://github.com/juspay/hyperswitch... | CHANGELOG.md#chunk53 | null | doc_chunk | 8,101 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct GooglePayAssuranceDetails {
///indicates that Cardholder possession validation has been performed
pub card_holder_authenticated: bool,
/// indicates that identification and verifications (ID&V) was performed
pub account_verified: bool,
} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 53 | rust | GooglePayAssuranceDetails | null | null | null | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMajorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/mollie.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Stripebilling {} | crates/hyperswitch_connectors/src/connectors/stripebilling.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Stripebilling | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Stripebilling | null | null | null | null | null | null | null | null |
File: crates/router/src/utils/storage_partitioning.rs
pub use storage_impl::redis::kv_store::{KvStorePartition, PartitionKey};
| crates/router/src/utils/storage_partitioning.rs | router | full_file | 29 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl FlattenedPaymentMethodsEnabled {
/// This functions flattens the payment methods enabled from the connector accounts
/// Retains the connector name and payment method in every flattened element
pub fn from_payment_connectors_list(payment_connectors: Vec<MerchantConnectorAccount>) -> Self {
let ... | crates/hyperswitch_domain_models/src/merchant_connector_account.rs | hyperswitch_domain_models | impl_block | 319 | rust | null | FlattenedPaymentMethodsEnabled | null | impl FlattenedPaymentMethodsEnabled | null | null | null | null | null | null | null | null |
pub struct RequestBuilder {
pub url: String,
pub headers: Headers,
pub method: Method,
pub certificate: Option<Secret<String>>,
pub certificate_key: Option<Secret<String>>,
pub body: Option<RequestContent>,
pub ca_certificate: Option<Secret<String>>,
} | crates/common_utils/src/request.rs | common_utils | struct_definition | 62 | rust | RequestBuilder | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundSync for Amazonpay {} | crates/hyperswitch_connectors/src/connectors/amazonpay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Amazonpay | api::RefundSync for | impl api::RefundSync for for Amazonpay | null | null | null | null | null | null | null | null |
pub struct ExchangeTokenResponse {
pub access_token: String,
} | crates/pm_auth/src/types.rs | pm_auth | struct_definition | 14 | rust | ExchangeTokenResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardDetails {
#[serde(rename = "card.number")]
pub card_number: cards::CardNumber,
#[serde(rename = "card.holder")]
pub card_holder: Secret<String>,
#[serde(rename = "card.expiryMonth")]
pub card_expiry_month: Secret<String>,
#[serde(rename = "card.expiryYear")]
pub card_expir... | crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | hyperswitch_connectors | struct_definition | 102 | rust | CardDetails | null | null | null | null | null | null | null | null | null | null | null |
impl MerchantConnectorAccount {
pub async fn update(
self,
conn: &PgPooledConn,
merchant_connector_account: MerchantConnectorAccountUpdateInternal,
) -> StorageResult<Self> {
match generics::generic_update_by_id::<<Self as HasTable>::Table, _, _, _>(
conn,
... | crates/diesel_models/src/query/merchant_connector_account.rs | diesel_models | impl_block | 707 | rust | null | MerchantConnectorAccount | null | impl MerchantConnectorAccount | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Worldline {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&WORLDLINE_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*WORLDLINE_SUPPORTED_PAYMENT_METHODS)
}
fn ge... | crates/hyperswitch_connectors/src/connectors/worldline.rs | hyperswitch_connectors | impl_block | 108 | rust | null | Worldline | ConnectorSpecifications for | impl ConnectorSpecifications for for Worldline | null | null | null | null | null | null | null | null |
pub struct TokenizePaymentMethodRequest {
/// Payment method's ID
#[serde(skip_deserializing)]
pub payment_method_id: String,
/// The CVC number for the card
#[schema(value_type = Option<String>, example = "242")]
pub card_cvc: Option<masking::Secret<String>>,
} | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 73 | rust | TokenizePaymentMethodRequest | null | null | null | null | null | null | null | null | null | null | null |
pub fn generate_secret_key(&self) -> String {
format!("cs_{}", self.secret.peek())
} | crates/diesel_models/src/ephemeral_key.rs | diesel_models | function_signature | 23 | rust | null | null | null | null | generate_secret_key | null | null | null | null | null | null | null |
impl api::RefundSync for Placetopay {} | crates/hyperswitch_connectors/src/connectors/placetopay.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Placetopay | api::RefundSync for | impl api::RefundSync for for Placetopay | null | null | null | null | null | null | null | null |
impl AuthInfo for AuthenticationDataWithMultipleProfiles {
fn get_merchant_id(&self) -> Option<&id_type::MerchantId> {
Some(self.merchant_account.get_id())
}
} | crates/router/src/services/authentication.rs | router | impl_block | 41 | rust | null | AuthenticationDataWithMultipleProfiles | AuthInfo for | impl AuthInfo for for AuthenticationDataWithMultipleProfiles | null | null | null | null | null | null | null | null |
impl SubmitEvidence for Adyen {} | crates/hyperswitch_connectors/src/connectors/adyen.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Adyen | SubmitEvidence for | impl SubmitEvidence for for Adyen | null | null | null | null | null | null | null | null |
impl RoutingDecisionData {
pub fn apply_routing_decision<F, D>(&self, payment_data: &mut D)
where
F: Send + Clone,
D: OperationSessionGetters<F> + OperationSessionSetters<F> + Send + Sync + Clone,
{
match self {
Self::DebitRouting(data) => data.apply_debit_routing_decisio... | crates/router/src/core/routing/helpers.rs | router | impl_block | 156 | rust | null | RoutingDecisionData | null | impl RoutingDecisionData | null | null | null | null | null | null | null | null |
pub struct RefundMetricsBucketIdentifier {
pub currency: Option<Currency>,
pub refund_status: Option<String>,
pub connector: Option<String>,
pub refund_type: Option<String>,
pub profile_id: Option<String>,
pub refund_reason: Option<String>,
pub refund_error_message: Option<String>,
#[ser... | crates/api_models/src/analytics/refunds.rs | api_models | struct_definition | 121 | rust | RefundMetricsBucketIdentifier | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/nordea/transformers.rs
Public functions: 1
Public structs: 2
use std::collections::HashMap;
use common_utils::{pii, request::Method, types::StringMajorUnit};
use error_stack::ResultExt;
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, Payme... | crates/hyperswitch_connectors/src/connectors/nordea/transformers.rs | hyperswitch_connectors | full_file | 4,375 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PayloadRefundRequest {
#[serde(rename = "type")]
pub transaction_type: TransactionTypes,
pub amount: StringMajorUnit,
#[serde(rename = "ledger[0][assoc_transaction_id]")]
pub ledger_assoc_transaction_id: String,
} | crates/hyperswitch_connectors/src/connectors/payload/requests.rs | hyperswitch_connectors | struct_definition | 55 | rust | PayloadRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_or_update_dispute_object(
state: SessionState,
option_dispute: Option<diesel_models::dispute::Dispute>,
dispute_details: api::disputes::DisputePayload,
merchant_id: &common_utils::id_type::MerchantId,
organization_id: &common_utils::id_type::OrganizationId,
payment_attempt: &Pay... | crates/router/src/core/webhooks/incoming.rs | router | function_signature | 735 | rust | null | null | null | null | get_or_update_dispute_object | null | null | null | null | null | null | null |
impl ConnectorValidation for Wellsfargopayout {
//TODO: implement functions when support enabled
} | crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs | hyperswitch_connectors | impl_block | 21 | rust | null | Wellsfargopayout | ConnectorValidation for | impl ConnectorValidation for for Wellsfargopayout | null | null | null | null | null | null | null | null |
pub struct BarclaycardRedirectionAuthResponse {
pub transaction_id: String,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | BarclaycardRedirectionAuthResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_interfaces/src/lib.rs
//! Hyperswitch interface
#![warn(missing_docs, missing_debug_implementations)]
pub mod api;
pub mod authentication;
/// Configuration related functionalities
pub mod configs;
/// Connector integration interface module
pub mod connector_integration_interface;
/// definit... | crates/hyperswitch_interfaces/src/lib.rs | hyperswitch_interfaces | full_file | 151 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct RedirectErrorMessage {
pub errors: Option<Vec<String>>,
} | crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | RedirectErrorMessage | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Moneris {} | crates/hyperswitch_connectors/src/connectors/moneris.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Moneris | api::PaymentVoid for | impl api::PaymentVoid for for Moneris | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Rapyd {} | crates/hyperswitch_connectors/src/connectors/rapyd.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Rapyd | api::PaymentToken for | impl api::PaymentToken for for Rapyd | null | null | null | null | null | null | null | null |
pub struct Shift4AuthType {
pub(super) api_key: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | Shift4AuthType | null | null | null | null | null | null | null | null | null | null | null |
pub struct AuthEventFilterRow {
pub authentication_status: Option<DBEnumWrapper<AuthenticationStatus>>,
pub trans_status: Option<DBEnumWrapper<TransactionStatus>>,
pub authentication_type: Option<DBEnumWrapper<DecoupledAuthenticationType>>,
pub error_message: Option<String>,
pub authentication_conne... | crates/analytics/src/auth_events/filters.rs | analytics | struct_definition | 266 | rust | AuthEventFilterRow | null | null | null | null | null | null | null | null | null | null | null |
pub async fn find_by_payment_id_merchant_id(
conn: &PgPooledConn,
payment_id: &common_utils::id_type::PaymentId,
merchant_id: &common_utils::id_type::MerchantId,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
ds... | crates/diesel_models/src/query/payment_intent.rs | diesel_models | function_signature | 115 | rust | null | null | null | null | find_by_payment_id_merchant_id | null | null | null | null | null | null | null |
impl api::MandateSetup for Custombilling {} | crates/hyperswitch_connectors/src/connectors/custombilling.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Custombilling | api::MandateSetup for | impl api::MandateSetup for for Custombilling | null | null | null | null | null | null | null | null |
pub fn remove_quotes_for_integer_values(
connector_name: &str,
) -> Result<(&str, Option<String>), io::Error> {
let collection_path = get_collection_path(connector_name);
let collection_dir_path = get_dir_path(connector_name);
let values_to_replace = [
"amount",
"another_random_number",... | crates/test_utils/src/newman_runner.rs | test_utils | function_signature | 243 | rust | null | null | null | null | remove_quotes_for_integer_values | null | null | null | null | null | null | null |
pub async fn perform_session_token_routing<F, D>(
state: SessionState,
merchant_context: &domain::MerchantContext,
business_profile: &domain::Profile,
payment_data: &mut D,
connectors: api::SessionConnectorDatas,
) -> RouterResult<api::SessionConnectorDatas>
where
F: Clone,
D: OperationSessi... | crates/router/src/core/payments.rs | router | function_signature | 303 | rust | null | null | null | null | perform_session_token_routing | null | null | null | null | null | null | null |
impl MerchantConnectorUpdate {
pub fn get_frm_config_as_secret(&self) -> Option<Vec<Secret<serde_json::Value>>> {
match self.frm_configs.as_ref() {
Some(frm_value) => {
let configs_for_frm_value: Vec<Secret<serde_json::Value>> = frm_value
.iter()
... | crates/api_models/src/admin.rs | api_models | impl_block | 122 | rust | null | MerchantConnectorUpdate | null | impl MerchantConnectorUpdate | null | null | null | null | null | null | null | null |
impl super::api_event::filters::ApiEventFilterAnalytics for ClickhouseClient {} | crates/analytics/src/clickhouse.rs | analytics | impl_block | 17 | rust | null | ClickhouseClient | super::api_event::filters::ApiEventFilterAnalytics for | impl super::api_event::filters::ApiEventFilterAnalytics for for ClickhouseClient | null | null | null | null | null | null | null | null |
impl PayoutLink {
pub fn server(state: AppState) -> Scope {
let mut route = web::scope("/payout_link").app_data(web::Data::new(state));
route = route.service(
web::resource("/{merchant_id}/{payout_id}").route(web::get().to(render_payout_link)),
);
route
}
} | crates/router/src/routes/app.rs | router | impl_block | 76 | rust | null | PayoutLink | null | impl PayoutLink | null | null | null | null | null | null | null | null |
File: crates/scheduler/src/configs/defaults.rs
impl Default for super::settings::SchedulerSettings {
fn default() -> Self {
Self {
stream: "SCHEDULER_STREAM".into(),
producer: super::settings::ProducerSettings::default(),
consumer: super::settings::ConsumerSettings::defa... | crates/scheduler/src/configs/defaults.rs | scheduler | full_file | 274 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl UnifiedAuthenticationService for ClickToPay {
fn get_pre_authentication_request_data(
_payment_method_data: Option<&domain::PaymentMethodData>,
service_details: Option<payments::CtpServiceDetails>,
amount: common_utils::types::MinorUnit,
currency: Option<common_enums::Currency>,... | crates/router/src/core/unified_authentication_service.rs | router | impl_block | 1,723 | rust | null | ClickToPay | UnifiedAuthenticationService for | impl UnifiedAuthenticationService for for ClickToPay | null | null | null | null | null | null | null | null |
pub struct BamboraBrowserInfo {
accept_header: String,
java_enabled: bool,
language: String,
color_depth: u8,
screen_height: u32,
screen_width: u32,
time_zone: i32,
user_agent: String,
javascript_enabled: bool,
} | crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs | hyperswitch_connectors | struct_definition | 69 | rust | BamboraBrowserInfo | null | null | null | null | null | null | null | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.