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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
impl api::PaymentVoid for Tsys {} | crates/hyperswitch_connectors/src/connectors/tsys.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Tsys | api::PaymentVoid for | impl api::PaymentVoid for for Tsys | null | null | null | null | null | null | null | null |
pub async fn disable_dynamic_routing_algorithm(
state: &SessionState,
key_store: domain::MerchantKeyStore,
business_profile: domain::Profile,
dynamic_routing_algo_ref: routing_types::DynamicRoutingAlgorithmRef,
dynamic_routing_type: routing_types::DynamicRoutingType,
) -> RouterResult<ApplicationRes... | crates/router/src/core/routing/helpers.rs | router | function_signature | 1,385 | rust | null | null | null | null | disable_dynamic_routing_algorithm | null | null | null | null | null | null | null |
pub async fn insert_org_in_db(self, state: SessionState) -> UserResult<Organization> {
state
.accounts_store
.insert_organization(self.0)
.await
.map_err(|e| {
if e.current_context().is_db_unique_violation() {
e.change_context(U... | crates/router/src/types/domain/user.rs | router | function_signature | 104 | rust | null | null | null | null | insert_org_in_db | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/fiuu.rs
Public functions: 3
Public structs: 1
pub mod transformers;
use std::{
any::type_name,
borrow::Cow,
collections::{HashMap, HashSet},
sync::LazyLock,
};
use common_enums::{CaptureMethod, PaymentMethod, PaymentMethodType};
use common_utils::{... | crates/hyperswitch_connectors/src/connectors/fiuu.rs#chunk0 | hyperswitch_connectors | chunk | 8,182 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct AmazonpayAuthType {
pub(super) public_key: Secret<String>,
pub(super) private_key: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | AmazonpayAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub fn server(state: AppState) -> Scope {
web::scope("/profile_acquirer")
.app_data(web::Data::new(state))
.service(
web::resource("").route(web::post().to(profile_acquirer::create_profile_acquirer)),
)
.service(
web::resource("/{pr... | crates/router/src/routes/app.rs | router | function_signature | 94 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
pub fn get_masked_keys(&self) -> Self {
match self {
Self::TemporaryAuth => Self::TemporaryAuth,
Self::NoKey => Self::NoKey,
Self::HeaderKey { api_key } => Self::HeaderKey {
api_key: self.mask_key(api_key.clone().expose()),
},
Self::Bod... | crates/hyperswitch_domain_models/src/router_data.rs | hyperswitch_domain_models | function_signature | 361 | rust | null | null | null | null | get_masked_keys | null | null | null | null | null | null | null |
pub fn three_ds_decision_rule_execute() {} | crates/openapi/src/routes/three_ds_decision_rule.rs | openapi | function_signature | 9 | rust | null | null | null | null | three_ds_decision_rule_execute | null | null | null | null | null | null | null |
pub struct SilverflowVoidRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub replacement_amount: Option<i64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub reference: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs | hyperswitch_connectors | struct_definition | 53 | rust | SilverflowVoidRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct RedirectionData {
pub return_url: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | RedirectionData | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_constraint_graph/src/graph.rs
Public functions: 5
Public structs: 1
use std::sync::{Arc, Weak};
use rustc_hash::{FxHashMap, FxHashSet};
use crate::{
builder,
dense_map::DenseMap,
error::{self, AnalysisTrace, GraphError},
types::{
CheckingContext, CycleCheck, DomainI... | crates/hyperswitch_constraint_graph/src/graph.rs | hyperswitch_constraint_graph | full_file | 5,131 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/lib.rs
Public functions: 2
Public structs: 4
pub mod address;
pub mod api_keys;
pub mod blocklist_lookup;
pub mod business_profile;
pub mod capture;
pub mod cards_info;
pub mod configs;
pub mod authentication;
pub mod authorization;
pub mod blocklist;
pub mod blocklist_fingerprint;
pu... | crates/diesel_models/src/lib.rs | diesel_models | full_file | 2,034 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ChargebeeInvoiceBody {
pub content: ChargebeeInvoiceContent,
pub event_type: ChargebeeEventType,
} | crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | ChargebeeInvoiceBody | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentAccountCardInformation {
#[serde(rename = "type")]
card_type: Option<String>,
hashed_number: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 30 | rust | PaymentAccountCardInformation | null | null | null | null | null | null | null | null | null | null | null |
pub async fn find_optional_by_customer_id_merchant_id(
conn: &PgPooledConn,
customer_id: &id_type::CustomerId,
merchant_id: &id_type::MerchantId,
) -> StorageResult<Option<Self>> {
generics::generic_find_by_id_optional::<<Self as HasTable>::Table, _, _>(
conn,
... | crates/diesel_models/src/query/customers.rs | diesel_models | function_signature | 94 | rust | null | null | null | null | find_optional_by_customer_id_merchant_id | null | null | null | null | null | null | null |
Documentation: api-reference/locker-api-reference/key-custodian/unlock-the-locker.mdx
# Type: Doc File
---
openapi: rust_locker_open_api_spec post /custodian/decrypt
--- | api-reference/locker-api-reference/key-custodian/unlock-the-locker.mdx | null | doc_file | 44 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/amazonpay.rs
Public functions: 2
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use base64::{engine::general_purpose::STANDARD, Engine};
use chrono::Utc;
use common_enums::enums;
use common_utils::{
crypto::{RsaPssSha256, SignMessage},
er... | crates/hyperswitch_connectors/src/connectors/amazonpay.rs | hyperswitch_connectors | full_file | 5,948 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn add_default_headers(&mut self) {
self.headers.extend(default_request_headers());
} | crates/common_utils/src/request.rs | common_utils | function_signature | 20 | rust | null | null | null | null | add_default_headers | null | null | null | null | null | null | null |
pub struct CardDetail {
pub card_number: cards::CardNumber,
pub card_exp_month: Secret<String>,
pub card_exp_year: Secret<String>,
pub card_issuer: Option<String>,
pub card_network: Option<api_enums::CardNetwork>,
pub card_type: Option<String>,
pub card_issuing_country: Option<String>,
p... | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 124 | rust | CardDetail | null | null | null | null | null | null | null | null | null | null | null |
pub async fn retrieve_disputes_list(
state: SessionState,
merchant_context: domain::MerchantContext,
profile_id_list: Option<Vec<common_utils::id_type::ProfileId>>,
constraints: api_models::disputes::DisputeListGetConstraints,
) -> RouterResponse<Vec<api_models::disputes::DisputeResponse>> {
let dis... | crates/router/src/core/disputes.rs | router | function_signature | 207 | rust | null | null | null | null | retrieve_disputes_list | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.BHNGiftCardDetails
{
"type": "object",
"required": [
"account_number",
"pin",
"cvv2",
"expiration_date"
],
"properties": {
"account_number": {
"type": "string",
"description": "The gift card or account number"
},
"pin": {
"type... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 182 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"BHNGiftCardDetails"
] | null | null | null | null |
impl api::PaymentSession for Mifinity {} | crates/hyperswitch_connectors/src/connectors/mifinity.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Mifinity | api::PaymentSession for | impl api::PaymentSession for for Mifinity | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentProcessingDetailsAt
{
"oneOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/PaymentProcessingDetails"
},
{
"type": "object",
"required": [
"payment_processing_details_at"
],
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 194 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentProcessingDetailsAt"
] | null | null | null | null |
pub struct MandatePaymentInformation {
payment_instrument: CybersoucrePaymentInstrument,
tokenized_card: MandatePaymentTokenizedCard,
card: Option<MandateCard>,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 41 | rust | MandatePaymentInformation | null | null | null | null | null | null | null | null | null | null | null |
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Profile> {
generics::generic_insert(conn, self).await
} | crates/diesel_models/src/query/business_profile.rs | diesel_models | function_signature | 34 | rust | null | null | null | null | insert | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Globalpay {} | crates/hyperswitch_connectors/src/connectors/globalpay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Globalpay | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Globalpay | null | null | null | null | null | null | null | null |
pub struct FrmFulfillmentRequest {
///unique payment_id for the transaction
#[schema(max_length = 255, example = "pay_qiYfHcDou1ycIaxVXKHF")]
pub payment_id: common_utils::id_type::PaymentId,
///unique order_id for the order_details in the transaction
#[schema(max_length = 255, example = "pay_qiYfHc... | crates/hyperswitch_domain_models/src/router_request_types/fraud_check.rs | hyperswitch_domain_models | struct_definition | 374 | rust | FrmFulfillmentRequest | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/merchant-account/merchant-account--delete.mdx
# Type: Doc File
---
openapi: delete /accounts/{account_id}
--- | api-reference/v1/merchant-account/merchant-account--delete.mdx | null | doc_file | 35 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CancelTransactionData {
reversal: CancelResponseTransactionBody,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | CancelTransactionData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn count_initial_attempts_by_constraints(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
profile_id: Option<common_utils::id_type::ProfileId>,
created_after: time::PrimitiveDateTime,
created_before: time::PrimitiveDateTime,
event_types: Ha... | crates/diesel_models/src/query/events.rs | diesel_models | function_signature | 354 | rust | null | null | null | null | count_initial_attempts_by_constraints | null | null | null | null | null | null | null |
pub struct WiseTransferDetails {
transfer_purpose: Option<String>,
source_of_funds: Option<String>,
transfer_purpose_sub_transfer_purpose: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/wise/transformers.rs | hyperswitch_connectors | struct_definition | 36 | rust | WiseTransferDetails | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
// safety: This shouldn't panic owing to the data type
#[allow(clippy::expect_used)]
let payload = json_payload
.into_inner()
.to_vec()
.pop()
.expect("Couldn't get GetPaymentMetricRequest");
let flow = AnalyticsFlow::GetPa... | crates/router/src/analytics.rs | router | impl_block | 284 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::CreateDynamicRoutingConfig;
let wrapper = routing_types::CreateDynamicRoutingWrapper {
feature_to_enable: query.into_inner().enable,
profile_id: path.into_inner().profile_id,
payload: api_models::routing::DynamicRoutingPayload::EliminationRoutingPayload(... | crates/router/src/routes/routing.rs | router | impl_block | 294 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct SilverflowTokenizationRequest {
pub reference: String,
pub card_data: SilverflowCardData,
} | crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | SilverflowTokenizationRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct ZenItemObject {
name: String,
price: String,
quantity: u16,
line_amount_total: String,
} | crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | hyperswitch_connectors | struct_definition | 31 | rust | ZenItemObject | null | null | null | null | null | null | null | null | null | null | null |
pub async fn connector_update() {} | crates/openapi/src/routes/merchant_connector_account.rs | openapi | function_signature | 7 | rust | null | null | null | null | connector_update | null | null | null | null | null | null | null |
impl SdkEventMetricsBucketIdentifier {
pub fn new(
payment_method: Option<String>,
platform: Option<String>,
browser_name: Option<String>,
source: Option<String>,
component: Option<String>,
payment_experience: Option<String>,
time_bucket: Option<String>,
)... | crates/api_models/src/analytics/sdk_events.rs | api_models | impl_block | 97 | rust | null | SdkEventMetricsBucketIdentifier | null | impl SdkEventMetricsBucketIdentifier | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::PaymentsRedirect;
let (payment_id, publishable_key, profile_id) = path.into_inner();
let param_string = req.query_string();
tracing::Span::current().record("payment_id", payment_id.get_string_repr());
let payload = payments::PaymentsRedirectResponseData {
... | crates/router/src/routes/payments.rs | router | impl_block | 266 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub fn validate(&self) -> Result<(), ApplicationError> {
common_utils::fp_utils::when(self.stream_name.is_default_or_empty(), || {
Err(ApplicationError::InvalidConfigurationValueError(
"drainer stream name must not be empty".into(),
))
})
} | crates/scheduler/src/settings.rs | scheduler | function_signature | 60 | rust | null | null | null | null | validate | null | null | null | null | null | null | null |
impl std::ops::DerefMut for PaymentsTokenReference {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
} | crates/diesel_models/src/payment_method.rs | diesel_models | impl_block | 39 | rust | null | PaymentsTokenReference | std::ops::DerefMut for | impl std::ops::DerefMut for for PaymentsTokenReference | null | null | null | null | null | null | null | null |
pub struct PaymentMethodUpdateInternal {
metadata: Option<serde_json::Value>,
payment_method_data: Option<Encryption>,
last_used_at: Option<PrimitiveDateTime>,
network_transaction_id: Option<String>,
status: Option<storage_enums::PaymentMethodStatus>,
locker_id: Option<String>,
network_token... | crates/diesel_models/src/payment_method.rs | diesel_models | struct_definition | 168 | rust | PaymentMethodUpdateInternal | null | null | null | null | null | null | null | null | null | null | null |
pub async fn generate_access_token(state: SessionState) -> RouterResult<types::AccessToken> {
let connector = enums::Connector::Paypal;
let boxed_connector =
types::api::ConnectorData::convert_connector(connector.to_string().as_str())?;
let connector_auth =
super::get_connector_auth(connecto... | crates/router/src/utils/connector_onboarding/paypal.rs | router | function_signature | 191 | rust | null | null | null | null | generate_access_token | null | null | null | null | null | null | null |
pub struct GenerateFingerprintRequest {
pub card: Card,
pub hash_key: StrongSecret<String>,
} | crates/api_models/src/blocklist.rs | api_models | struct_definition | 23 | rust | GenerateFingerprintRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Shift4 {} | crates/hyperswitch_connectors/src/connectors/shift4.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Shift4 | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Shift4 | null | null | null | null | null | null | null | null |
File: crates/router/src/types/storage/payment_link.rs
use async_bb8_diesel::AsyncRunQueryDsl;
use diesel::{associations::HasTable, ExpressionMethods, QueryDsl};
pub use diesel_models::{
payment_link::{PaymentLink, PaymentLinkNew},
schema::payment_link::dsl,
};
use error_stack::ResultExt;
use crate::{
conn... | crates/router/src/types/storage/payment_link.rs | router | full_file | 599 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn time_future<F, R>(future: F) -> (R, time::Duration)
where
F: futures::Future<Output = R>,
{
let start = time::Instant::now();
let result = future.await;
let time_spent = start.elapsed();
(result, time_spent)
} | crates/common_utils/src/metrics/utils.rs | common_utils | function_signature | 70 | rust | null | null | null | null | time_future | null | null | null | null | null | null | null |
pub struct NetceteraErrorDetails {
/// Universally unique identifier for the transaction assigned by the 3DS Server.
#[serde(rename = "threeDSServerTransID")]
pub three_ds_server_trans_id: Option<String>,
/// Universally Unique identifier for the transaction assigned by the ACS.
#[serde(rename = "a... | crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs | hyperswitch_connectors | struct_definition | 252 | rust | NetceteraErrorDetails | null | null | null | null | null | null | null | null | null | null | null |
pub async fn api_key_revoke(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<common_utils::id_type::ApiKeyId>,
) -> impl Responder {
let flow = Flow::ApiKeyRevoke;
let key_id = path.into_inner();
Box::pin(api::server_wrap(
flow,
state,
&req,
&key_id... | crates/router/src/routes/api_keys.rs | router | function_signature | 198 | rust | null | null | null | null | api_key_revoke | null | null | null | null | null | null | null |
pub fn validate(&self) -> Result<(), ApplicationError> {
use common_utils::{fp_utils::when, id_type};
when(self == &Self::default(), || {
Err(ApplicationError::InvalidConfigurationValueError(
"CellId cannot be set to a default".into(),
))
})
} | crates/router/src/configs/validations.rs | router | function_signature | 66 | rust | null | null | null | null | validate | null | null | null | null | null | null | null |
pub async fn call_surcharge_decision_management_for_saved_card(
state: &routes::SessionState,
merchant_context: &domain::MerchantContext,
business_profile: &Profile,
payment_attempt: &storage::PaymentAttempt,
payment_intent: storage::PaymentIntent,
customer_payment_method_response: &mut api::Cus... | crates/router/src/core/payment_methods/cards.rs | router | function_signature | 447 | rust | null | null | null | null | call_surcharge_decision_management_for_saved_card | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMinorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/nexixpay.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.EliminationRoutingConfig
{
"type": "object",
"required": [
"decision_engine_configs"
],
"properties": {
"params": {
"type": "array",
"items": {
"$ref": "#/components/schemas/DynamicRoutingConfigParams"
},
"nullable": true
},
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 163 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"EliminationRoutingConfig"
] | null | null | null | null |
pub async fn find_by_capture_id(conn: &PgPooledConn, capture_id: &str) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
dsl::capture_id.eq(capture_id.to_owned()),
)
.await
} | crates/diesel_models/src/query/capture.rs | diesel_models | function_signature | 69 | rust | null | null | null | null | find_by_capture_id | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.TokenDataType
{
"type": "string",
"description": "The type of token data to fetch for get-token endpoint",
"enum": [
"single_use_token",
"multi_use_token",
"network_token"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 61 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"TokenDataType"
] | null | null | null | null |
pub struct Nexinets; | crates/hyperswitch_connectors/src/connectors/nexinets.rs | hyperswitch_connectors | struct_definition | 6 | rust | Nexinets | null | null | null | null | null | null | null | null | null | null | null |
pub async fn list_payment_attempts(
state: web::Data<app::AppState>,
req: actix_web::HttpRequest,
path: web::Path<common_utils::id_type::GlobalPaymentId>,
) -> impl Responder {
let flow = Flow::PaymentAttemptsList;
let payment_intent_id = path.into_inner();
let payload = api_models::payments::P... | crates/router/src/routes/payments.rs | router | function_signature | 415 | rust | null | null | null | null | list_payment_attempts | null | null | null | null | null | null | null |
impl api::RefundSync for Dwolla {} | crates/hyperswitch_connectors/src/connectors/dwolla.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Dwolla | api::RefundSync for | impl api::RefundSync for for Dwolla | null | null | null | null | null | null | null | null |
pub fn setter(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
let input = syn::parse_macro_input!(input as syn::DeriveInput);
let ident = &input.ident;
// All the fields in the parent struct
let fields = if let syn::Data::Struct(syn::DataStruct {
fields: syn::Fields::Named(syn::Fiel... | crates/router_derive/src/lib.rs | router_derive | function_signature | 396 | rust | null | null | null | null | setter | null | null | null | null | null | null | null |
pub async fn get_filters(
pool: &AnalyticsProvider,
req: GetAuthEventFilterRequest,
auth: &AuthInfo,
) -> AnalyticsResult<AuthEventFiltersResponse> {
let mut res = AuthEventFiltersResponse::default();
for dim in req.group_by_names {
let values = match pool {
Analytics... | crates/analytics/src/auth_events/core.rs | analytics | function_signature | 860 | rust | null | null | null | null | get_filters | null | null | null | null | null | null | null |
pub fn is_payout_initiated(status: api_enums::PayoutStatus) -> bool {
!matches!(
status,
api_enums::PayoutStatus::RequiresCreation
| api_enums::PayoutStatus::RequiresConfirmation
| api_enums::PayoutStatus::RequiresPayoutMethodData
| api_enums::PayoutStatus::Requir... | crates/router/src/core/payouts/helpers.rs | router | function_signature | 99 | rust | null | null | null | null | is_payout_initiated | null | null | null | null | null | null | null |
impl common_utils::events::ApiEventMetric for SchedulerHealthCheckResponse {} | crates/api_models/src/health_check.rs | api_models | impl_block | 15 | rust | null | SchedulerHealthCheckResponse | common_utils::events::ApiEventMetric for | impl common_utils::events::ApiEventMetric for for SchedulerHealthCheckResponse | null | null | null | null | null | null | null | null |
pub struct InputData {
credit_card: CreditCardData,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | InputData | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundResponse {
pub gateway_response: GatewayResponse,
pub payment_receipt: PaymentReceipt,
} | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct BluesnapRedirectionResponse {
pub authentication_response: String,
} | crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | BluesnapRedirectionResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::Refund for Paybox {} | crates/hyperswitch_connectors/src/connectors/paybox.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Paybox | api::Refund for | impl api::Refund for for Paybox | null | null | null | null | null | null | null | null |
pub struct BillTo {
first_name: Option<Secret<String>>,
last_name: Option<Secret<String>>,
address1: Option<Secret<String>>,
locality: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
administrative_area: Option<Secret<String>>,
#[serde(skip_serializing_if = "Option::is_none... | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 103 | rust | BillTo | null | null | null | null | null | null | null | null | null | null | null |
pub struct ReconStatus {
pub is_order_data_set: bool,
pub is_processor_data_set: bool,
} | crates/api_models/src/user/dashboard_metadata.rs | api_models | struct_definition | 24 | rust | ReconStatus | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/merchant-connector-account/merchant-connector--delete.mdx
# Type: Doc File
---
openapi: delete /accounts/{account_id}/connectors/{connector_id}
--- | api-reference/v1/merchant-connector-account/merchant-connector--delete.mdx | null | doc_file | 44 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/api_event/filters.rs
Public functions: 1
Public structs: 1
use api_models::analytics::{api_event::ApiEventDimensions, Granularity, TimeRange};
use common_utils::errors::ReportSwitchExt;
use error_stack::ResultExt;
use time::PrimitiveDateTime;
use crate::{
query::{Aggregate, GroupByCla... | crates/analytics/src/api_event/filters.rs | analytics | full_file | 426 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_order_fulfillment_time(&self) -> Option<i64> {
self.intent_fulfillment_time
} | crates/hyperswitch_domain_models/src/business_profile.rs | hyperswitch_domain_models | function_signature | 28 | rust | null | null | null | null | get_order_fulfillment_time | null | null | null | null | null | null | null |
impl EliminationRoutingAlgorithm {
pub fn new(
algorithm_id_with_timestamp: DynamicAlgorithmWithTimestamp<
common_utils::id_type::RoutingId,
>,
) -> Self {
Self {
algorithm_id_with_timestamp,
enabled_feature: DynamicRoutingFeatures::None,
}
... | crates/api_models/src/routing.rs | api_models | impl_block | 64 | rust | null | EliminationRoutingAlgorithm | null | impl EliminationRoutingAlgorithm | null | null | null | null | null | null | null | null |
pub(super) fn validate_payout_list_request_for_joins(
limit: u32,
) -> CustomResult<(), errors::ApiErrorResponse> {
use common_utils::consts::PAYOUTS_LIST_MAX_LIMIT_POST;
utils::when(!(1..=PAYOUTS_LIST_MAX_LIMIT_POST).contains(&limit), || {
Err(errors::ApiErrorResponse::InvalidRequestData {
... | crates/router/src/core/payouts/validator.rs | router | function_signature | 111 | rust | null | null | null | null | validate_payout_list_request_for_joins | null | null | null | null | null | null | null |
pub struct BamboraPaymentsRequest {
order_number: String,
amount: FloatMajorUnit,
payment_method: PaymentMethod,
customer_ip: Option<Secret<String, IpAddress>>,
term_url: Option<String>,
card: BamboraCard,
billing: AddressData,
} | crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs | hyperswitch_connectors | struct_definition | 62 | rust | BamboraPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/core/payments/operations/payment_session_intent.rs
Public structs: 1
use std::{collections::HashMap, marker::PhantomData};
use api_models::payments::PaymentsSessionRequest;
use async_trait::async_trait;
use common_utils::{errors::CustomResult, ext_traits::Encode};
use error_stack::ResultExt;
... | crates/router/src/core/payments/operations/payment_session_intent.rs | router | full_file | 3,143 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn forgot_password(
state: web::Data<AppState>,
req: HttpRequest,
payload: web::Json<user_api::ForgotPasswordRequest>,
query: web::Query<user_api::AuthIdAndThemeIdQueryParam>,
) -> HttpResponse {
let flow = Flow::ForgotPassword;
let query_params = query.into_inner();
Box::pin(api::... | crates/router/src/routes/user.rs | router | function_signature | 165 | rust | null | null | null | null | forgot_password | null | null | null | null | null | null | null |
pub async fn find_by_merchant_id_connector_name(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
connector_name: &str,
) -> StorageResult<Vec<Self>> {
generics::generic_filter::<
<Self as HasTable>::Table,
_,
<<Self as HasTabl... | crates/diesel_models/src/query/merchant_connector_account.rs | diesel_models | function_signature | 139 | rust | null | null | null | null | find_by_merchant_id_connector_name | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/fiserv.rs
Public functions: 2
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use base64::Engine;
use common_enums::enums;
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, Reque... | crates/hyperswitch_connectors/src/connectors/fiserv.rs | hyperswitch_connectors | full_file | 7,771 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_payments_aggregates(
state: web::Data<app::AppState>,
req: actix_web::HttpRequest,
payload: web::Query<common_utils::types::TimeRange>,
) -> impl Responder {
let flow = Flow::PaymentsAggregate;
let payload = payload.into_inner();
Box::pin(api::server_wrap(
flow,
... | crates/router/src/routes/payments.rs | router | function_signature | 192 | rust | null | null | null | null | get_payments_aggregates | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/wise/transformers.rs
Public functions: 2
Public structs: 19
#[cfg(feature = "payouts")]
use api_models::payouts::Bank;
#[cfg(feature = "payouts")]
use api_models::payouts::PayoutMethodData;
#[cfg(feature = "payouts")]
use common_enums::PayoutEntityType;
#[cfg(featur... | crates/hyperswitch_connectors/src/connectors/wise/transformers.rs | hyperswitch_connectors | full_file | 5,786 | null | null | null | null | null | null | null | null | null | null | null | null | null |
event_builder: Option<&mut ConnectorEvent>,
res: Response,
) -> CustomResult<PaymentsAuthorizeRouterData, errors::ConnectorError> {
let response: PaypalAuthResponse =
res.response
.parse_struct("paypal PaypalAuthResponse")
.change_context(errors::C... | crates/hyperswitch_connectors/src/connectors/paypal.rs#chunk1 | hyperswitch_connectors | chunk | 8,175 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/db/health_check.rs
use async_bb8_diesel::{AsyncConnection, AsyncRunQueryDsl};
use diesel_models::ConfigNew;
use error_stack::ResultExt;
use router_env::{instrument, logger, tracing};
use super::{MockDb, Store};
use crate::{
connection,
core::errors::{self, CustomResult},
types::sto... | crates/router/src/db/health_check.rs | router | full_file | 510 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct BreadpayCartRequest {
custom_total: StringMinorUnit,
options: Option<BreadpayCartOptions>,
} | crates/hyperswitch_connectors/src/connectors/breadpay/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | BreadpayCartRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct RoleUpdateInternal {
groups: Option<Vec<enums::PermissionGroup>>,
role_name: Option<String>,
last_modified_by: String,
last_modified_at: PrimitiveDateTime,
} | crates/diesel_models/src/role.rs | diesel_models | struct_definition | 40 | rust | RoleUpdateInternal | null | null | null | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/capture.rs
Public functions: 1
Public structs: 3
use common_utils::types::{ConnectorTransactionId, MinorUnit};
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use serde::{Deserialize, Serialize};
use time::PrimitiveDateTime;
use crate::{enums as storage_enu... | crates/diesel_models/src/capture.rs | diesel_models | full_file | 1,219 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/customers.rs
Public functions: 12
Public structs: 11
use common_utils::{crypto, custom_serde, id_type, pii, types::Description};
use masking::Secret;
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;
use crate::payments;
/// The customer details
#[cfg(feature = "v1")]
#[derive(... | crates/api_models/src/customers.rs | api_models | full_file | 4,661 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl NewUser {
pub fn get_user_id(&self) -> String {
self.user_id.clone()
}
pub fn get_email(&self) -> UserEmail {
self.email.clone()
}
pub fn get_name(&self) -> Secret<String> {
self.name.clone().get_secret()
}
pub fn get_new_merchant(&self) -> NewUserMerchant {
... | crates/router/src/types/domain/user.rs | router | impl_block | 704 | rust | null | NewUser | null | impl NewUser | null | null | null | null | null | null | null | null |
File: crates/masking/src/serde.rs
Public functions: 1
//! Serde-related.
pub use erased_serde::Serialize as ErasedSerialize;
pub use serde::{de, Deserialize, Serialize, Serializer};
use serde_json::{value::Serializer as JsonValueSerializer, Value};
use crate::{Secret, Strategy, StrongSecret, ZeroizableSecret};
///... | crates/masking/src/serde.rs | masking | full_file | 3,963 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct TokenizeCreditCard {
tokenize_credit_card: TokenizeCreditCardData,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | TokenizeCreditCard | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/frm/core.rs
Public functions: 2
#![allow(dead_code)]
use std::collections::HashMap;
use api_models::analytics::{
frm::{FrmDimensions, FrmMetrics, FrmMetricsBucketIdentifier, FrmMetricsBucketResponse},
AnalyticsMetadata, FrmFilterValue, FrmFiltersResponse, GetFrmFilterRequest,
G... | crates/analytics/src/frm/core.rs | analytics | full_file | 1,416 | null | null | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/customers/customers--delete.mdx
# Type: Doc File
---
openapi: delete /customers/{customer_id}
--- | api-reference/v1/customers/customers--delete.mdx | null | doc_file | 33 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/compatibility/stripe/app.rs
Public functions: 6
Public structs: 6
use actix_web::{web, Scope};
#[cfg(feature = "v1")]
use super::{customers::*, payment_intents::*, setup_intents::*};
use super::{refunds::*, webhooks::*};
use crate::routes::{self, mandates, webhooks};
pub struct PaymentInten... | crates/router/src/compatibility/stripe/app.rs | router | full_file | 960 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct BankAccount {
account_holder: Option<Secret<String>>,
bank_name: Option<Secret<String>>,
bic: Option<Secret<String>>,
iban: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | hyperswitch_connectors | struct_definition | 41 | rust | BankAccount | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/bluecode.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use common_enums::enums;
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestCont... | crates/hyperswitch_connectors/src/connectors/bluecode.rs | hyperswitch_connectors | full_file | 5,688 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Ebanx {
//TODO: implement functions when support enabled
} | crates/hyperswitch_connectors/src/connectors/ebanx.rs | hyperswitch_connectors | impl_block | 19 | rust | null | Ebanx | ConnectorValidation for | impl ConnectorValidation for for Ebanx | null | null | null | null | null | null | null | null |
pub struct StripeConnectPayoutFulfillRequest {
amount: i64,
currency: Currency,
} | crates/hyperswitch_connectors/src/connectors/stripe/transformers/connect.rs | hyperswitch_connectors | struct_definition | 23 | rust | StripeConnectPayoutFulfillRequest | null | null | null | null | null | null | null | null | null | null | null |
impl PaymentMethodUpdate {
pub fn convert_to_payment_method_update(
self,
storage_scheme: MerchantStorageScheme,
) -> PaymentMethodUpdateInternal {
let mut update_internal: PaymentMethodUpdateInternal = self.into();
update_internal.updated_by = Some(storage_scheme.to_string());
... | crates/diesel_models/src/payment_method.rs | diesel_models | impl_block | 66 | rust | null | PaymentMethodUpdate | null | impl PaymentMethodUpdate | null | null | null | null | null | null | null | null |
impl ForexMetric for PaymentMetrics {
fn is_forex_metric(&self) -> bool {
matches!(
self,
Self::PaymentProcessedAmount
| Self::AvgTicketSize
| Self::DebitRouting
| Self::SessionizedPaymentProcessedAmount
| Self::Sessioni... | crates/api_models/src/analytics/payments.rs | api_models | impl_block | 83 | rust | null | PaymentMetrics | ForexMetric for | impl ForexMetric for for PaymentMetrics | null | null | null | null | null | null | null | null |
pub fn generate_newman_command_for_users() -> Result<ReturnArgs> {
let args = Args::parse();
let base_url = args.base_url;
let admin_api_key = args.admin_api_key;
let path = env::var("CONNECTOR_AUTH_FILE_PATH")
.with_context(|| "connector authentication file path not set")?;
let authentica... | crates/test_utils/src/newman_runner.rs | test_utils | function_signature | 455 | rust | null | null | null | null | generate_newman_command_for_users | null | null | null | null | null | null | null |
pub struct WebhookDetails {
///The version for Webhook
#[schema(max_length = 255, max_length = 255, example = "1.0.2")]
pub webhook_version: Option<String>,
///The user name for Webhook login
#[schema(max_length = 255, max_length = 255, example = "ekart_retail")]
pub webhook_username: Option<St... | crates/api_models/src/admin.rs | api_models | struct_definition | 476 | rust | WebhookDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct ConfigApiClient; | crates/router/src/core/payments/routing/utils.rs | router | struct_definition | 5 | rust | ConfigApiClient | 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.