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::ConnectorVerifyWebhookSource for Paypal {} | crates/hyperswitch_connectors/src/connectors/paypal.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Paypal | api::ConnectorVerifyWebhookSource for | impl api::ConnectorVerifyWebhookSource for for Paypal | null | null | null | null | null | null | null | null |
pub struct OnboardTransferMethodResponse {
pub parent_id: Secret<String>,
pub account_id: Secret<String>,
pub sub_account_id: Secret<String>,
pub id: String,
pub status: String,
pub created_on: String,
pub last_updated: String,
pub country_code: String,
pub currency_code: Currency,
... | crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs | hyperswitch_connectors | struct_definition | 111 | rust | OnboardTransferMethodResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_auth_event_dimensions() -> Vec<NameDescription> {
vec![
AuthEventDimensions::AuthenticationConnector,
AuthEventDimensions::MessageVersion,
AuthEventDimensions::AcsReferenceNumber,
AuthEventDimensions::Platform,
AuthEventDimensions::Mcc,
AuthEventDimensions:... | crates/analytics/src/utils.rs | analytics | function_signature | 235 | rust | null | null | null | null | get_auth_event_dimensions | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_convertor: &FloatMajorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/bambora.rs | hyperswitch_connectors | function_signature | 29 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
impl ApiEventMetric for CardInfoCreateRequest {} | crates/api_models/src/cards_info.rs | api_models | impl_block | 10 | rust | null | CardInfoCreateRequest | ApiEventMetric for | impl ApiEventMetric for for CardInfoCreateRequest | null | null | null | null | null | null | null | null |
pub struct MollieErrorResponse {
pub status: u16,
pub title: Option<String>,
pub detail: String,
pub field: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs | hyperswitch_connectors | struct_definition | 36 | rust | MollieErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct ScoreDataEventResponse {
pub score: f64,
pub label: String,
pub current_count: u64,
} | crates/router/src/core/payments/routing/utils.rs | router | struct_definition | 31 | rust | ScoreDataEventResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct HubspotRequest {
/// Indicates whether Hubspot should be used.
#[serde(rename = "useHubspot")]
pub use_hubspot: bool,
/// The country of the user or company.
pub country: String,
/// The ID of the Hubspot form being submitted.
#[serde(rename = "hubspotFormId")]
pub hubspot_f... | crates/external_services/src/hubspot_proxy.rs | external_services | struct_definition | 295 | rust | HubspotRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundResponse {
#[serde(deserialize_with = "str_or_i32")]
pub id: String,
pub authorizing_merchant_id: i32,
#[serde(deserialize_with = "str_or_i32")]
pub approved: String,
#[serde(deserialize_with = "str_or_i32")]
pub message_id: String,
pub message: String,
pub auth_code... | crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs | hyperswitch_connectors | struct_definition | 233 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct Extra {
#[serde(skip_serializing_if = "Option::is_none")]
pub payment_id: Option<common_utils::id_type::PaymentId>,
#[serde(skip_serializing_if = "Option::is_none")]
pub data: Option<serde_json::Value>,
#[serde(skip_serializing_if = "Option::is_none")]
pub connector: Option<String>,
... | crates/api_models/src/errors/types.rs | api_models | struct_definition | 146 | rust | Extra | null | null | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/events/payouts.rs
use common_utils::events::{ApiEventMetric, ApiEventsType};
use crate::payouts::{
PayoutActionRequest, PayoutCreateRequest, PayoutCreateResponse, PayoutLinkInitiateRequest,
PayoutListConstraints, PayoutListFilterConstraints, PayoutListFilters, PayoutListResponse,
... | crates/api_models/src/events/payouts.rs | api_models | full_file | 515 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl RefundDistributionAccumulator for RefundReasonDistributionAccumulator {
type DistributionOutput = Option<Vec<ReasonsResult>>;
fn add_distribution_bucket(&mut self, distribution: &RefundDistributionRow) {
self.refund_reason_vec.push(RefundReasonDistributionRow {
count: distribution.coun... | crates/analytics/src/refunds/accumulator.rs | analytics | impl_block | 309 | rust | null | RefundReasonDistributionAccumulator | RefundDistributionAccumulator for | impl RefundDistributionAccumulator for for RefundReasonDistributionAccumulator | null | null | null | null | null | null | null | null |
pub struct NmiWebhookObjectReference {
pub event_body: NmiReferenceBody,
} | crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | NmiWebhookObjectReference | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/active_payments/core.rs
Public functions: 1
use std::collections::HashMap;
use api_models::analytics::{
active_payments::{
ActivePaymentsMetrics, ActivePaymentsMetricsBucketIdentifier, MetricsBucketResponse,
},
AnalyticsMetadata, GetActivePaymentsMetricRequest, MetricsR... | crates/analytics/src/active_payments/core.rs | analytics | full_file | 573 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/common_utils/tests/percentage.rs
#![allow(clippy::panic_in_result_fn)]
use common_utils::{errors::PercentageError, types::Percentage};
const PRECISION_2: u8 = 2;
const PRECISION_0: u8 = 0;
#[test]
fn invalid_range_more_than_100() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let percentag... | crates/common_utils/tests/percentage.rs | common_utils | full_file | 1,557 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ChargesPaymentRequest {
source: Source,
transaction_interaction: Option<TransactionInteraction>,
transaction_details: TransactionDetails,
} | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | ChargesPaymentRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct ProcessorResponse {
name: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 12 | rust | ProcessorResponse | null | null | null | null | null | null | null | null | null | null | null |
impl RoleInfo {
pub fn get_role_id(&self) -> &str {
&self.role_id
}
pub fn get_role_name(&self) -> &str {
&self.role_name
}
pub fn get_permission_groups(&self) -> Vec<PermissionGroup> {
self.groups
.iter()
.flat_map(|group| group.accessible_groups())... | crates/router/src/services/authorization/roles.rs | router | impl_block | 907 | rust | null | RoleInfo | null | impl RoleInfo | null | null | null | null | null | null | null | null |
pub struct ConnectAccountRequest {
pub email: pii::Email,
} | crates/api_models/src/user.rs | api_models | struct_definition | 15 | rust | ConnectAccountRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentCancel; | crates/router/src/core/payments/operations/payment_cancel.rs | router | struct_definition | 5 | rust | PaymentCancel | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Paysafe {} | crates/hyperswitch_connectors/src/connectors/paysafe.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Paysafe | api::PaymentVoid for | impl api::PaymentVoid for for Paysafe | null | null | null | null | null | null | null | null |
File: crates/scheduler/src/consumer/types/process_data.rs
Public structs: 5
use std::collections::HashMap;
use diesel_models::enums;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct RetryMapping {
pub start_after: i32,
pub frequencies: Vec<(i32, i32)>, // (freq... | crates/scheduler/src/consumer/types/process_data.rs | scheduler | full_file | 1,004 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Zsl {} | crates/hyperswitch_connectors/src/connectors/zsl.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Zsl | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Zsl | null | null | null | null | null | null | null | null |
File: crates/storage_impl/src/metrics.rs
use router_env::{counter_metric, gauge_metric, global_meter};
global_meter!(GLOBAL_METER, "ROUTER_API");
counter_metric!(KV_MISS, GLOBAL_METER); // No. of KV misses
// Metrics for KV
counter_metric!(KV_OPERATION_SUCCESSFUL, GLOBAL_METER);
counter_metric!(KV_OPERATION_FAILED,... | crates/storage_impl/src/metrics.rs | storage_impl | full_file | 185 | null | null | null | null | null | null | null | null | null | null | null | null | null |
let html = match payment_response.status {
IntentStatus::RequiresCustomerAction => {
// Request poll id sent to client for retrieve_poll_status api
let req_poll_id = get_external_authentication_request_poll_id(&payment_id);
let poll_frequency = poll_config... | crates/router/src/core/utils.rs#chunk2 | router | chunk | 4,649 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardPaymentInformation {
card: Card,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 12 | rust | CardPaymentInformation | null | null | null | null | null | null | null | null | null | null | null |
pub struct FailureReasonsDistributionAccumulator {
pub count: u64,
pub count_without_retries: u64,
} | crates/analytics/src/payments/accumulator.rs | analytics | struct_definition | 30 | rust | FailureReasonsDistributionAccumulator | null | null | null | null | null | null | null | null | null | null | null |
pub struct FiuuPaymentSyncRequest {
amount: StringMajorUnit,
#[serde(rename = "txID")]
tx_id: String,
domain: String,
skey: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | 44 | rust | FiuuPaymentSyncRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct AuthEventMetricRow {
pub count: Option<i64>,
pub authentication_status: Option<DBEnumWrapper<storage_enums::AuthenticationStatus>>,
pub trans_status: Option<DBEnumWrapper<storage_enums::TransactionStatus>>,
pub authentication_type: Option<DBEnumWrapper<storage_enums::DecoupledAuthenticationTy... | crates/analytics/src/auth_events/metrics.rs | analytics | struct_definition | 358 | rust | AuthEventMetricRow | null | null | null | null | null | null | null | null | null | null | null |
pub struct GpaymentsRouterData<T> {
pub amount: MinorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc.
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/gpayments/transformers.rs | hyperswitch_connectors | struct_definition | 49 | rust | GpaymentsRouterData | null | null | null | null | null | null | null | null | null | null | null |
merchant_context.get_merchant_account().get_id(),
)
.await?;
match business_profile {
Some(business_profile) => {
core_utils::validate_profile_id_from_auth_layer(
authentication_profile_id,
&business_profile,
)?;
let routin... | crates/router/src/core/routing.rs#chunk1 | router | chunk | 8,187 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Redsys {
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMinorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/redsys.rs | hyperswitch_connectors | impl_block | 34 | rust | null | Redsys | null | impl Redsys | null | null | null | null | null | null | null | null |
impl api::Payment for Katapult {} | crates/hyperswitch_connectors/src/connectors/katapult.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Katapult | api::Payment for | impl api::Payment for for Katapult | null | null | null | null | null | null | null | null |
impl ApiEventMetric for ToggleBlocklistQuery {} | crates/api_models/src/blocklist.rs | api_models | impl_block | 10 | rust | null | ToggleBlocklistQuery | ApiEventMetric for | impl ApiEventMetric for for ToggleBlocklistQuery | null | null | null | null | null | null | null | null |
pub fn get_valid_webhook_status(key: &str) -> JsResult {
let event_class = EventClass::from_str(key)
.map_err(|_| "Invalid webhook event type received".to_string())
.err_to_js()?;
match event_class {
EventClass::Payments => {
let statuses: Vec<IntentStatus> = IntentStatus::i... | crates/euclid_wasm/src/lib.rs | euclid_wasm | function_signature | 374 | rust | null | null | null | null | get_valid_webhook_status | null | null | null | null | null | null | null |
impl FraudCheckConnectorData {
pub fn get_connector_by_name(name: &str) -> CustomResult<Self, errors::ApiErrorResponse> {
let connector_name = enums::FrmConnectors::from_str(name)
.change_context(errors::ApiErrorResponse::IncorrectConnectorNameGiven)
.attach_printable_lazy(|| {
... | crates/router/src/types/api/fraud_check.rs | router | impl_block | 215 | rust | null | FraudCheckConnectorData | null | impl FraudCheckConnectorData | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Fiuu {} | crates/hyperswitch_connectors/src/connectors/fiuu.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Fiuu | api::PaymentSession for | impl api::PaymentSession for for Fiuu | null | null | null | null | null | null | null | null |
pub struct SquareTokenResponse {
card_nonce: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/square/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | SquareTokenResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/core/payment_link/validator.rs
Public functions: 1
use actix_http::header;
use api_models::admin::PaymentLinkConfig;
use common_utils::validation::validate_domain_against_allowed_domains;
use error_stack::{report, ResultExt};
use url::Url;
use crate::{
core::errors::{self, RouterResult},
... | crates/router/src/core/payment_link/validator.rs | router | full_file | 822 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct JpmorganRouterData<T> {
pub amount: MinorUnit,
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | JpmorganRouterData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn render_payout_link(
state: web::Data<AppState>,
req: actix_web::HttpRequest,
path: web::Path<(
common_utils::id_type::MerchantId,
common_utils::id_type::PayoutId,
) | crates/router/src/routes/payout_link.rs | router | function_signature | 57 | rust | null | null | null | null | render_payout_link | null | null | null | null | null | null | null |
pub struct SilverflowTokenizationResponse {
pub key: String,
#[serde(rename = "agentKey")]
pub agent_key: String,
pub last4: String,
pub status: String,
pub reference: String,
#[serde(rename = "cardInfo")]
pub card_info: Vec<CardInfo>,
pub created: String,
#[serde(rename = "cvcPr... | crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs | hyperswitch_connectors | struct_definition | 100 | rust | SilverflowTokenizationResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct BamboraVoidRequest {
amount: FloatMajorUnit,
} | crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | BamboraVoidRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Trustpayments {} | crates/hyperswitch_connectors/src/connectors/trustpayments.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Trustpayments | api::PaymentSession for | impl api::PaymentSession for for Trustpayments | null | null | null | null | null | null | null | null |
impl fmt::Display for ApiMethod {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Self::Grpc => write!(f, "Grpc"),
Self::Rest(method) => write!(f, "Rest ({method})"),
}
}
} | crates/hyperswitch_interfaces/src/events/routing_api_logs.rs | hyperswitch_interfaces | impl_block | 69 | rust | null | ApiMethod | fmt::Display for | impl fmt::Display for for ApiMethod | null | null | null | null | null | null | null | null |
pub struct GocardlessBankAccountResponse {
customer_bank_accounts: CustomerBankAccountResponse,
} | crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | GocardlessBankAccountResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct NexixpayRefundRequest {
pub amount: StringMinorUnit,
pub currency: Currency,
} | crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | hyperswitch_connectors | struct_definition | 24 | rust | NexixpayRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn health() -> impl actix_web::Responder {
metrics::HEALTH_METRIC.add(1, &[]);
logger::info!("Health was called");
actix_web::HttpResponse::Ok().body("health is good")
} | crates/router/src/routes/health.rs | router | function_signature | 51 | rust | null | null | null | null | health | null | null | null | null | null | null | null |
impl api::Refund for Adyenplatform {} | crates/hyperswitch_connectors/src/connectors/adyenplatform.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Adyenplatform | api::Refund for | impl api::Refund for for Adyenplatform | null | null | null | null | null | null | null | null |
pub struct MerchantCategoryCodeWithName {
pub code: MerchantCategoryCode,
pub name: MerchantCategory,
} | crates/common_enums/src/enums.rs | common_enums | struct_definition | 23 | rust | MerchantCategoryCodeWithName | null | null | null | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/payment_attempt.rs
Public functions: 6
Public structs: 11
#[cfg(feature = "v2")]
use common_types::payments as common_payments_types;
use common_types::primitive_wrappers::{
ExtendedAuthorizationAppliedBool, RequestExtendedAuthorizationBool,
};
use common_utils::{
id_type, pii,... | crates/diesel_models/src/payment_attempt.rs#chunk0 | diesel_models | chunk | 8,186 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PSync; | crates/hyperswitch_domain_models/src/router_flow_types/payments.rs | hyperswitch_domain_models | struct_definition | 5 | rust | PSync | null | null | null | null | null | null | null | null | null | null | null |
impl Authorization {
pub fn new(header: Option<&HeaderValue>) -> Self {
Self {
header: header.cloned(),
}
}
pub async fn verify_webhook_source(
self,
nt_service: &settings::NetworkTokenizationService,
) -> CustomResult<(), errors::ApiErrorResponse> {
... | crates/router/src/core/webhooks/network_tokenization_incoming.rs | router | impl_block | 210 | rust | null | Authorization | null | impl Authorization | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Flexiti {} | crates/hyperswitch_connectors/src/connectors/flexiti.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Flexiti | api::RefundExecute for | impl api::RefundExecute for for Flexiti | null | null | null | null | null | null | null | null |
pub struct CybersourceConsumerAuthInformationRequest {
return_url: String,
reference_id: String,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | CybersourceConsumerAuthInformationRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_filters_for_payments(
state: web::Data<app::AppState>,
req: actix_web::HttpRequest,
payload: web::Json<common_utils::types::TimeRange>,
) -> impl Responder {
let flow = Flow::PaymentsList;
let payload = payload.into_inner();
Box::pin(api::server_wrap(
flow,
state... | crates/router/src/routes/payments.rs | router | function_signature | 187 | rust | null | null | null | null | get_filters_for_payments | null | null | null | null | null | null | null |
pub struct NovalnetCancelRequest {
pub transaction: NovalnetCancelTransaction,
pub custom: NovalnetCustom,
} | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | NovalnetCancelRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn refund_update(
state: web::Data<routes::AppState>,
req: HttpRequest,
path: web::Path<String>,
form_payload: web::Form<types::StripeUpdateRefundRequest>,
) -> HttpResponse {
let mut payload = form_payload.into_inner();
payload.refund_id = path.into_inner();
let create_refund_upda... | crates/router/src/compatibility/stripe/refunds.rs | router | function_signature | 273 | rust | null | null | null | null | refund_update | null | null | null | null | null | null | null |
pub async fn get_payment_filters_profile(
state: web::Data<app::AppState>,
req: actix_web::HttpRequest,
) -> impl Responder {
let flow = Flow::PaymentsFilters;
Box::pin(api::server_wrap(
flow,
state,
&req,
(),
|state, auth: auth::AuthenticationData, _, _| {
... | crates/router/src/routes/payments.rs | router | function_signature | 176 | rust | null | null | null | null | get_payment_filters_profile | null | null | null | null | null | null | null |
impl api::PaymentCapture for Boku {} | crates/hyperswitch_connectors/src/connectors/boku.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Boku | api::PaymentCapture for | impl api::PaymentCapture for for Boku | null | null | null | null | null | null | null | null |
pub struct LabelWithScoreEventResponse {
pub score: f64,
pub label: String,
} | crates/router/src/core/payments/routing/utils.rs | router | struct_definition | 23 | rust | LabelWithScoreEventResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentsSessionData {
pub amount: i64,
pub currency: common_enums::Currency,
pub country: Option<common_enums::CountryAlpha2>,
pub surcharge_details: Option<SurchargeDetails>,
pub order_details: Option<Vec<OrderDetailsWithAmount>>,
pub email: Option<pii::Email>,
// Minor Unit amou... | crates/hyperswitch_domain_models/src/router_request_types.rs | hyperswitch_domain_models | struct_definition | 157 | rust | PaymentsSessionData | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentMethodContainer {
#[serde(rename = "payment-method")]
pub payment_method: Vec<PaymentMethod>,
} | crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | PaymentMethodContainer | 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/opayo.rs | hyperswitch_connectors | function_signature | 27 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct NewUserOrganization(diesel_org::OrganizationNew); | crates/router/src/types/domain/user.rs | router | struct_definition | 12 | rust | NewUserOrganization | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_entity(&self) -> Option<&Entity> {
self.entity.as_ref()
} | crates/router/src/services/email/types.rs | router | function_signature | 21 | rust | null | null | null | null | get_entity | null | null | null | null | null | null | null |
pub struct WebhookEventDataResourceEvent {
pub notify_type: NotifyType,
} | crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | hyperswitch_connectors | struct_definition | 17 | rust | WebhookEventDataResourceEvent | null | null | null | null | null | null | null | null | null | null | null |
impl Clone for PIISerializer {
fn clone(&self) -> Self {
Self {
inner: JsonValueSerializer,
}
}
} | crates/masking/src/serde.rs | masking | impl_block | 32 | rust | null | PIISerializer | Clone for | impl Clone for for PIISerializer | null | null | null | null | null | null | null | null |
File: crates/test_utils/src/main.rs
#![allow(clippy::print_stdout, clippy::print_stderr)]
use std::process::{exit, Command};
use anyhow::Result;
use test_utils::newman_runner;
fn main() -> Result<()> {
let mut runner = newman_runner::generate_runner()?;
// Execute the newman command
let output = runner... | crates/test_utils/src/main.rs | test_utils | full_file | 384 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub trait FrmFilterAnalytics: LoadRow<FrmFilterRow> {} | crates/analytics/src/frm/filters.rs | analytics | trait_definition | 14 | rust | null | null | FrmFilterAnalytics | null | null | null | null | null | null | null | null | null |
impl SurchargeMetadata {
pub fn new(payment_attempt_id: String) -> Self {
Self {
surcharge_results: HashMap::new(),
payment_attempt_id,
}
}
pub fn is_empty_result(&self) -> bool {
self.surcharge_results.is_empty()
}
pub fn get_surcharge_results_size(&s... | crates/router/src/core/payments/types.rs | router | impl_block | 934 | rust | null | SurchargeMetadata | null | impl SurchargeMetadata | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Nuvei {} | crates/hyperswitch_connectors/src/connectors/nuvei.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Nuvei | api::PaymentVoid for | impl api::PaymentVoid for for Nuvei | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Celero {} | crates/hyperswitch_connectors/src/connectors/celero.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Celero | api::MandateSetup for | impl api::MandateSetup for for Celero | null | null | null | null | null | null | null | null |
pub struct TrustpayCreateIntentRequest {
pub amount: StringMajorUnit,
pub currency: String,
// If true, Apple Pay will be initialized
pub init_apple_pay: Option<bool>,
// If true, Google pay will be initialized
pub init_google_pay: Option<bool>,
pub reference: String,
} | crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | hyperswitch_connectors | struct_definition | 70 | rust | TrustpayCreateIntentRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::UnifiedAuthenticationService for UnifiedAuthenticationService {} | crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs | hyperswitch_connectors | impl_block | 11 | rust | null | UnifiedAuthenticationService | api::UnifiedAuthenticationService for | impl api::UnifiedAuthenticationService for for UnifiedAuthenticationService | null | null | null | null | null | null | null | null |
pub struct Profile {
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_payment_response_hash: bool,
pub payment_response... | crates/diesel_models/src/business_profile.rs | diesel_models | struct_definition | 865 | rust | Profile | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentStatus {
pub authentication: String,
pub authorization: SilverflowAuthorizationStatus,
pub clearing: SilverflowClearingStatus,
} | crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs | hyperswitch_connectors | struct_definition | 31 | rust | PaymentStatus | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentsCompleteAuthorize for Redsys {} | crates/hyperswitch_connectors/src/connectors/redsys.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Redsys | api::PaymentsCompleteAuthorize for | impl api::PaymentsCompleteAuthorize for for Redsys | null | null | null | null | null | null | null | null |
impl CardNetworkTokenizeExecutor<'_, domain::TokenizePaymentMethodRequest> {
pub async fn fetch_payment_method(
&self,
payment_method_id: &str,
) -> RouterResult<domain::PaymentMethod> {
self.state
.store
.find_payment_method(
&self.state.into(),
... | crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs | router | impl_block | 1,091 | rust | null | CardNetworkTokenizeExecutor | null | impl CardNetworkTokenizeExecutor | null | null | null | null | null | null | null | null |
impl PaymentIntentMetricAccumulator for PaymentsDistributionAccumulator {
type MetricOutput = (Option<f64>, Option<f64>);
fn add_metrics_bucket(&mut self, metrics: &PaymentIntentMetricRow) {
let first_attempt = metrics.first_attempt.unwrap_or(0);
if let Some(ref status) = metrics.status {
... | crates/analytics/src/payment_intents/accumulator.rs | analytics | impl_block | 546 | rust | null | PaymentsDistributionAccumulator | PaymentIntentMetricAccumulator for | impl PaymentIntentMetricAccumulator for for PaymentsDistributionAccumulator | null | null | null | null | null | null | null | null |
impl NetworkTokenizationBuilder<'_, PaymentMethodCreated> {
pub fn build(self) -> api::CardNetworkTokenizeResponse {
api::CardNetworkTokenizeResponse {
payment_method_response: self.payment_method_response,
customer: self.customer.cloned(),
card_tokenized: self.card_token... | crates/router/src/core/payment_methods/tokenize/card_executor.rs | router | impl_block | 111 | rust | null | NetworkTokenizationBuilder | null | impl NetworkTokenizationBuilder | null | null | null | null | null | null | null | null |
pub async fn routing_update_default_config(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<Vec<routing_types::RoutableConnectorChoice>>,
transaction_type: &enums::TransactionType,
) -> impl Responder {
Box::pin(oss_api::server_wrap(
Flow::RoutingUpdateDefaultConfig,
... | crates/router/src/routes/routing.rs | router | function_signature | 238 | rust | null | null | null | null | routing_update_default_config | null | null | null | null | null | null | null |
pub struct PaymentIntentsMetricsResponse<T> {
pub query_data: Vec<T>,
pub meta_data: [PaymentIntentsAnalyticsMetadata; 1],
} | crates/api_models/src/analytics.rs | api_models | struct_definition | 34 | rust | PaymentIntentsMetricsResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct AirwallexWebhookData {
pub source_id: Option<String>,
pub name: AirwallexWebhookEventType,
pub data: AirwallexObjectData,
} | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | 39 | rust | AirwallexWebhookData | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Juspaythreedsserver {
//TODO: implement functions when support enabled
} | crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs | hyperswitch_connectors | impl_block | 23 | rust | null | Juspaythreedsserver | ConnectorValidation for | impl ConnectorValidation for for Juspaythreedsserver | null | null | null | null | null | null | null | null |
impl Refund for Wise {} | crates/hyperswitch_connectors/src/connectors/wise.rs | hyperswitch_connectors | impl_block | 6 | rust | null | Wise | Refund for | impl Refund for for Wise | null | null | null | null | null | null | null | null |
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Self> {
generics::generic_insert(conn, self).await
} | crates/diesel_models/src/query/callback_mapper.rs | diesel_models | function_signature | 33 | rust | null | null | null | null | insert | null | null | null | null | null | null | null |
pub struct ClickToPayMetaData {
pub dpa_id: String,
pub dpa_name: String,
pub locale: String,
pub card_brands: Vec<String>,
pub acquirer_bin: String,
pub acquirer_merchant_id: String,
pub merchant_category_code: String,
pub merchant_country_code: String,
pub dpa_client_id: Option<Str... | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | struct_definition | 83 | rust | ClickToPayMetaData | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Deutschebank {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&DEUTSCHEBANK_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*DEUTSCHEBANK_SUPPORTED_PAYMENT_METHODS)
}
... | crates/hyperswitch_connectors/src/connectors/deutschebank.rs | hyperswitch_connectors | impl_block | 117 | rust | null | Deutschebank | ConnectorSpecifications for | impl ConnectorSpecifications for for Deutschebank | null | null | null | null | null | null | null | null |
PomoravljeDistrict,
#[strum(serialize = "14")]
PčinjaDistrict,
#[strum(serialize = "15")]
RasinaDistrict,
#[strum(serialize = "16")]
RaškaDistrict,
#[strum(serialize = "17")]
SouthBanatDistrict,
#[strum(serialize = "18")]
SouthBačkaDistrict,
#[strum(serialize = "19"... | crates/common_enums/src/enums.rs#chunk6 | common_enums | chunk | 8,192 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct InespayAuthType {
pub(super) api_key: Secret<String>,
pub authorization: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/inespay/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | InespayAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub struct FlexitiPaymentsRequest {
merchant_order_id: Option<String>,
lang: String,
flow: FlexitiFlow,
amount_requested: FloatMajorUnit,
email: Option<Email>,
fname: Secret<String>,
billing_information: BillingInformation,
shipping_information: ShippingInformation,
} | crates/hyperswitch_connectors/src/connectors/flexiti/transformers.rs | hyperswitch_connectors | struct_definition | 63 | rust | FlexitiPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
pub(crate) fn get_idempotent_event_id(
primary_object_id: &str,
event_type: types::storage::enums::EventType,
delivery_attempt: types::storage::enums::WebhookDeliveryAttempt,
) -> String {
use crate::types::storage::enums::WebhookDeliveryAttempt;
const EVENT_ID_SUFFIX_LENGTH: usize = 8;
let co... | crates/router/src/core/webhooks/utils.rs | router | function_signature | 146 | rust | null | null | null | null | get_idempotent_event_id | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.UpiAdditionalData
{
"oneOf": [
{
"type": "object",
"required": [
"upi_collect"
],
"properties": {
"upi_collect": {
"$ref": "#/components/schemas/UpiCollectAdditionalData"
}
}
},
{
"type": "object",... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 134 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"UpiAdditionalData"
] | null | null | null | null |
pub struct TokenizedWalletValue2 {
pub customer_id: Option<id_type::CustomerId>,
} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 21 | rust | TokenizedWalletValue2 | null | null | null | null | null | null | null | null | null | null | null |
pub(super) struct SerializeVec<T: Serializer> {
vec: Vec<Value>,
ser: T,
} | crates/masking/src/serde.rs | masking | struct_definition | 24 | rust | SerializeVec | null | null | null | null | null | null | null | null | null | null | null |
pub trait AnalyticsDataSource
where
Self: Sized + Sync + Send,
{
type Row;
async fn load_results<T>(&self, query: &str) -> CustomResult<Vec<T>, QueryExecutionError>
where
Self: LoadRow<T>;
fn get_table_engine(_table: AnalyticsCollection) -> TableEngine {
TableEngine::BasicTree
}... | crates/analytics/src/types.rs | analytics | trait_definition | 80 | rust | null | null | AnalyticsDataSource | null | null | null | null | null | null | null | null | null |
pub fn get_gsm_decision(
option_gsm: Option<hyperswitch_domain_models::gsm::GatewayStatusMap>,
) -> storage_enums::GsmDecision {
let option_gsm_decision = option_gsm
.as_ref()
.map(|gsm| gsm.feature_data.get_decision());
if option_gsm_decision.is_some() {
metrics::AUTO_RETRY_GSM_MAT... | crates/router/src/core/payments/retry.rs | router | function_signature | 104 | rust | null | null | null | null | get_gsm_decision | null | null | null | null | null | null | null |
impl<const T: u8> PaymentVoid for DummyConnector<T> {} | crates/hyperswitch_connectors/src/connectors/dummyconnector.rs | hyperswitch_connectors | impl_block | 15 | rust | null | DummyConnector | PaymentVoid for | impl PaymentVoid for for DummyConnector | null | null | null | null | null | null | null | null |
pub async fn create_routing_algorithm_under_profile(
state: SessionState,
merchant_context: domain::MerchantContext,
authentication_profile_id: Option<common_utils::id_type::ProfileId>,
request: routing_types::RoutingConfigRequest,
transaction_type: enums::TransactionType,
) -> RouterResponse<routin... | crates/router/src/core/routing.rs | router | function_signature | 544 | rust | null | null | null | null | create_routing_algorithm_under_profile | 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.