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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
File: crates/diesel_models/src/authorization.rs
Public functions: 1
Public structs: 3
use common_utils::types::MinorUnit;
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use serde::{Deserialize, Serialize};
use time::PrimitiveDateTime;
use crate::{enums as storage_enums, schema::incremen... | crates/diesel_models/src/authorization.rs | diesel_models | full_file | 765 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl<const T: u8> DummyConnector<T> {
pub fn new() -> &'static Self {
&Self {
amount_converter: &MinorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/dummyconnector.rs | hyperswitch_connectors | impl_block | 41 | rust | null | DummyConnector | null | impl DummyConnector | null | null | null | null | null | null | null | null |
impl GetPaymentMethodType for CryptoData {
fn get_payment_method_type(&self) -> api_enums::PaymentMethodType {
api_enums::PaymentMethodType::CryptoCurrency
}
} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | impl_block | 42 | rust | null | CryptoData | GetPaymentMethodType for | impl GetPaymentMethodType for for CryptoData | null | null | null | null | null | null | null | null |
pub async fn find_by_merchant_id_mandate_id(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
mandate_id: &str,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
dsl::merchant_id
... | crates/diesel_models/src/query/mandate.rs | diesel_models | function_signature | 113 | rust | null | null | null | null | find_by_merchant_id_mandate_id | null | null | null | null | null | null | null |
pub fn is_dynamic_routing(self) -> bool {
self == Self::Dynamic
} | crates/api_models/src/routing.rs | api_models | function_signature | 19 | rust | null | null | null | null | is_dynamic_routing | null | null | null | null | null | null | null |
impl api::PaymentToken for Getnet {} | crates/hyperswitch_connectors/src/connectors/getnet.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Getnet | api::PaymentToken for | impl api::PaymentToken for for Getnet | null | null | null | null | null | null | null | null |
pub struct ClientToken {
client_token: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 13 | rust | ClientToken | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/checkbook/transformers.rs
Public structs: 4
use api_models::webhooks::IncomingWebhookEvent;
use common_utils::{pii, types::FloatMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::{BankTransferData, PaymentMethodData},
router_data::{ConnectorAut... | crates/hyperswitch_connectors/src/connectors/checkbook/transformers.rs | hyperswitch_connectors | full_file | 1,201 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentWebhooksLink {
pub payment: String,
} | crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | PaymentWebhooksLink | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundSync for Bluecode {} | crates/hyperswitch_connectors/src/connectors/bluecode.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Bluecode | api::RefundSync for | impl api::RefundSync for for Bluecode | null | null | null | null | null | null | null | null |
impl Responder {
use crate::services::authentication::AuthenticationData;
let flow = Flow::RoutingRetrieveActiveConfig;
let wrapper = routing_types::RoutingRetrieveLinkQueryWrapper {
routing_query: query.into_inner(),
profile_id: path.into_inner(),
};
Box::pin(oss_api::server_wrap(
... | crates/router/src/routes/routing.rs | router | impl_block | 294 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
impl api::PaymentCapture for Trustpayments {} | crates/hyperswitch_connectors/src/connectors/trustpayments.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Trustpayments | api::PaymentCapture for | impl api::PaymentCapture for for Trustpayments | null | null | null | null | null | null | null | null |
pub struct PaymentMethod {
pub gateway_token: String,
pub funding_source: RecurlyFundingTypes,
pub object: RecurlyPaymentObject,
pub card_type: common_enums::CardNetwork,
pub first_six: String,
} | crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs | hyperswitch_connectors | struct_definition | 55 | rust | PaymentMethod | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Multisafepay {} | crates/hyperswitch_connectors/src/connectors/multisafepay.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Multisafepay | api::PaymentToken for | impl api::PaymentToken for for Multisafepay | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_domain_models/src/revenue_recovery.rs
Public functions: 1
Public structs: 4
use api_models::{payments as api_payments, webhooks};
use common_enums::enums as common_enums;
use common_utils::{id_type, types as util_types};
use time::PrimitiveDateTime;
use crate::{
payments,
router_res... | crates/hyperswitch_domain_models/src/revenue_recovery.rs | hyperswitch_domain_models | full_file | 2,677 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::UasPostAuthentication for Juspaythreedsserver {} | crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs | hyperswitch_connectors | impl_block | 16 | rust | null | Juspaythreedsserver | api::UasPostAuthentication for | impl api::UasPostAuthentication for for Juspaythreedsserver | 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 GetActivePaymentsMetricRequest");
let flow = AnalyticsFlow... | crates/router/src/analytics.rs | router | impl_block | 199 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
File: crates/router/src/core/conditional_config.rs
Public functions: 6
#[cfg(feature = "v2")]
use api_models::conditional_configs::DecisionManagerRequest;
use api_models::conditional_configs::{
DecisionManager, DecisionManagerRecord, DecisionManagerResponse,
};
use common_utils::ext_traits::StringExt;
#[cfg(featu... | crates/router/src/core/conditional_config.rs | router | full_file | 2,397 | null | null | 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 | 1,064 | rust | null | MerchantConnectorAccount | null | impl MerchantConnectorAccount | null | null | null | null | null | null | null | null |
pub struct ExternalVaultProxyFlowData {
pub merchant_id: common_utils::id_type::MerchantId,
pub customer_id: Option<common_utils::id_type::CustomerId>,
pub connector_customer: Option<String>,
pub payment_id: String,
pub attempt_id: String,
pub status: common_enums::AttemptStatus,
pub payment... | crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs | hyperswitch_domain_models | struct_definition | 389 | rust | ExternalVaultProxyFlowData | null | null | null | null | null | null | null | null | null | null | null |
impl<'a> PaymentsDslInput<'a> {
pub fn new(
setup_mandate: Option<&'a mandates::MandateData>,
payment_attempt: &'a storage::PaymentAttempt,
payment_intent: &'a storage::PaymentIntent,
payment_method_data: Option<&'a domain::PaymentMethodData>,
address: &'a payment_address::Pa... | crates/router/src/core/routing.rs | router | impl_block | 148 | rust | null | PaymentsDslInput | null | impl PaymentsDslInput | null | null | null | null | null | null | null | null |
File: crates/router/src/bin/scheduler.rs
Public functions: 5
Public structs: 2
use std::{collections::HashMap, str::FromStr, sync::Arc};
use actix_web::{dev::Server, web, Scope};
use api_models::health_check::SchedulerHealthCheckResponse;
use common_utils::ext_traits::{OptionExt, StringExt};
use diesel_models::proc... | crates/router/src/bin/scheduler.rs | router | full_file | 2,725 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/events/chat.rs
use common_utils::events::{ApiEventMetric, ApiEventsType};
use crate::chat::{ChatRequest, ChatResponse};
common_utils::impl_api_event_type!(Chat, (ChatRequest, ChatResponse));
| crates/api_models/src/events/chat.rs | api_models | full_file | 52 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/routes/health.rs
Public functions: 2
use actix_web::{web, HttpRequest};
use api_models::health_check::RouterHealthCheckResponse;
use router_env::{instrument, logger, tracing, Flow};
use super::app;
use crate::{
core::{api_locking, health_check::HealthCheckInterface},
errors::{self, Ro... | crates/router/src/routes/health.rs | router | full_file | 1,245 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct MifinityClient {
first_name: Secret<String>,
last_name: Secret<String>,
phone: Secret<String>,
dialing_code: String,
nationality: api_models::enums::CountryAlpha2,
email_address: Email,
dob: Secret<Date>,
} | crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs | hyperswitch_connectors | struct_definition | 59 | rust | MifinityClient | null | null | null | null | null | null | null | null | null | null | null |
pub fn with_source(payment_confirm_source: common_enums::PaymentSource) -> Self {
Self {
payment_confirm_source: Some(payment_confirm_source),
..Default::default()
}
} | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | function_signature | 41 | rust | null | null | null | null | with_source | null | null | null | null | null | null | null |
pub(super) struct AwsFileStorageClient {
/// AWS S3 client
inner_client: Client,
/// The name of the AWS S3 bucket.
bucket_name: String,
} | crates/external_services/src/file_storage/aws_s3.rs | external_services | struct_definition | 40 | rust | AwsFileStorageClient | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Taxjar {} | crates/hyperswitch_connectors/src/connectors/taxjar.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Taxjar | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Taxjar | null | null | null | null | null | null | null | null |
pub struct NovalnetPaymentsRequestCustomer {
first_name: Option<Secret<String>>,
last_name: Option<Secret<String>>,
email: Email,
mobile: Option<Secret<String>>,
billing: Option<NovalnetPaymentsRequestBilling>,
no_nc: i64,
} | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | 61 | rust | NovalnetPaymentsRequestCustomer | null | null | null | null | null | null | null | null | null | null | null |
pub struct SchemaMeta {
struct_name: syn::Ident,
type_ident: syn::Ident,
} | crates/router_derive/src/macros/generate_schema.rs | router_derive | struct_definition | 22 | rust | SchemaMeta | null | null | null | null | null | null | null | null | null | null | null |
pub struct Parameters {
name: String,
value: String,
} | crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | Parameters | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/payments/{payment_id}/3ds/authentication"
{
"post": {
"tags": [
"Payments"
],
"summary": "Payments - External 3DS Authentication",
"description": "External 3DS Authentication is performed and returns the AuthenticationResponse",
"operationId": "Initiate external a... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 324 | .json | null | null | null | null | null | openapi_spec | paths | [
"/payments/{payment_id}/3ds/authentication"
] | null | null | null | null |
File: crates/analytics/src/api_event/metrics/latency.rs
Public structs: 1
use std::collections::HashSet;
use api_models::analytics::{
api_event::{ApiEventDimensions, ApiEventFilters, ApiEventMetricsBucketIdentifier},
Granularity, TimeRange,
};
use common_utils::errors::ReportSwitchExt;
use error_stack::Resul... | crates/analytics/src/api_event/metrics/latency.rs | analytics | full_file | 1,028 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_connector_choice<F, Req, D>(
operation: &BoxedOperation<'_, F, Req, D>,
state: &SessionState,
req: &Req,
merchant_context: &domain::MerchantContext,
business_profile: &domain::Profile,
payment_data: &mut D,
eligible_connectors: Option<Vec<enums::RoutableConnectors>>,
man... | crates/router/src/core/payments.rs | router | function_signature | 445 | rust | null | null | null | null | get_connector_choice | null | null | null | null | null | null | null |
pub struct SearchFilters {
pub payment_method: Option<Vec<String>>,
pub currency: Option<Vec<String>>,
pub status: Option<Vec<String>>,
pub customer_email: Option<Vec<HashedString<common_utils::pii::EmailStrategy>>>,
pub search_tags: Option<Vec<HashedString<WithType>>>,
pub connector: Option<Vec... | crates/api_models/src/analytics/search.rs | api_models | struct_definition | 133 | rust | SearchFilters | null | null | null | null | null | null | null | null | null | null | null |
impl<const T: u8> RefundSync for DummyConnector<T> {} | crates/hyperswitch_connectors/src/connectors/dummyconnector.rs | hyperswitch_connectors | impl_block | 16 | rust | null | DummyConnector | RefundSync for | impl RefundSync for for DummyConnector | null | null | null | null | null | null | null | null |
File: crates/router/src/core/blocklist/transformers.rs
Public functions: 1
use api_models::{blocklist, enums as api_enums};
use common_utils::{
ext_traits::{Encode, StringExt},
request::RequestContent,
};
use error_stack::ResultExt;
use josekit::jwe;
use masking::{PeekInterface, StrongSecret};
use router_env:... | crates/router/src/core/blocklist/transformers.rs | router | full_file | 1,788 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentMethodDeleteResponse
{
"type": "object",
"required": [
"payment_method_id",
"deleted"
],
"properties": {
"payment_method_id": {
"type": "string",
"description": "The unique identifier of the Payment method",
"example": "card_rGK4Vi5iSW7... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 132 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentMethodDeleteResponse"
] | null | null | null | null |
File: crates/hyperswitch_domain_models/src/ext_traits.rs
use common_utils::{
errors::{self, CustomResult},
ext_traits::ValueExt,
fp_utils::when,
};
use error_stack::ResultExt;
use crate::errors::api_error_response;
pub type DomainResult<T> = CustomResult<T, api_error_response::ApiErrorResponse>;
pub trai... | crates/hyperswitch_domain_models/src/ext_traits.rs | hyperswitch_domain_models | full_file | 719 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct SingleRefundResponseData {
refund_status: String, // quick-xml only parse string as a field
refund_id: String,
} | crates/hyperswitch_connectors/src/connectors/boku/transformers.rs | hyperswitch_connectors | struct_definition | 32 | rust | SingleRefundResponseData | null | null | null | null | null | null | null | null | null | null | null |
pub struct Authorization {
#[serde(rename = "@id")]
pub id: String,
#[serde(rename = "@reportGroup")]
pub report_group: String,
#[serde(rename = "@customerId", skip_serializing_if = "Option::is_none")]
pub customer_id: Option<String>,
pub order_id: String,
pub amount: MinorUnit,
pub ... | crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs | hyperswitch_connectors | struct_definition | 313 | rust | Authorization | null | null | null | null | null | null | null | null | null | null | null |
impl MandateUpdateInternal {
pub fn apply_changeset(self, source: Mandate) -> Mandate {
let Self {
mandate_status,
amount_captured,
connector_mandate_ids,
connector_mandate_id,
payment_method_id,
original_payment_id,
updated... | crates/diesel_models/src/mandate.rs | diesel_models | impl_block | 205 | rust | null | MandateUpdateInternal | null | impl MandateUpdateInternal | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Bankofamerica {} | crates/hyperswitch_connectors/src/connectors/bankofamerica.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Bankofamerica | api::PaymentSession for | impl api::PaymentSession for for Bankofamerica | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_interfaces/src/authentication.rs
Public structs: 1
//! Authentication interface
/// struct ExternalAuthenticationPayload
#[derive(Clone, serde::Deserialize, Debug, serde::Serialize, PartialEq, Eq)]
pub struct ExternalAuthenticationPayload {
/// trans_status
pub trans_status: common_e... | crates/hyperswitch_interfaces/src/authentication.rs | hyperswitch_interfaces | full_file | 143 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct DummyConnectorAuthType {
pub(super) api_key: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | DummyConnectorAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub(super) fn log_event<T: KafkaMessage>(&self, event: &T) {
logger::info!(event = ?event.masked_serialize().unwrap_or_else(|e| serde_json::json!({"error": e.to_string()})), event_type =? event.event_type(), event_id =? event.key(), log_type =? "event");
} | crates/router/src/events/event_logger.rs | router | function_signature | 75 | rust | null | null | null | null | log_event | null | null | null | null | null | null | null |
impl ConnectorValidation for Noon {
fn validate_connector_against_payment_request(
&self,
capture_method: Option<enums::CaptureMethod>,
_payment_method: enums::PaymentMethod,
_pmt: Option<enums::PaymentMethodType>,
) -> CustomResult<(), errors::ConnectorError> {
let captu... | crates/hyperswitch_connectors/src/connectors/noon.rs | hyperswitch_connectors | impl_block | 359 | rust | null | Noon | ConnectorValidation for | impl ConnectorValidation for for Noon | null | null | null | null | null | null | null | null |
pub fn build_paypal_post_request<T>(
url: String,
body: T,
access_token: String,
) -> RouterResult<Request>
where
T: serde::Serialize + Send + 'static,
{
Ok(RequestBuilder::new()
.method(Method::Post)
.url(&url)
.attach_default_headers()
.header(
header::A... | crates/router/src/utils/connector_onboarding/paypal.rs | router | function_signature | 142 | rust | null | null | null | null | build_paypal_post_request | null | null | null | null | null | null | null |
pub struct AddVault; | crates/router/src/types/payment_methods.rs | router | struct_definition | 5 | rust | AddVault | null | null | null | null | null | null | null | null | null | null | null |
File: crates/common_types/src/callback_mapper.rs
Public functions: 1
use common_utils::id_type;
use diesel::{AsExpression, FromSqlRow};
#[derive(
Clone, Debug, Eq, PartialEq, serde::Deserialize, serde::Serialize, AsExpression, FromSqlRow,
)]
#[diesel(sql_type = diesel::sql_types::Jsonb)]
/// Represents the data ... | crates/common_types/src/callback_mapper.rs | common_types | full_file | 300 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct NetworkTokenErrorInfo {
pub code: String,
pub developer_message: String,
} | crates/router/src/types/payment_methods.rs | router | struct_definition | 21 | rust | NetworkTokenErrorInfo | null | null | null | null | null | null | null | null | null | null | null |
pub struct DisputeFilterValue {
pub dimension: DisputeDimensions,
pub values: Vec<String>,
} | crates/api_models/src/analytics.rs | api_models | struct_definition | 23 | rust | DisputeFilterValue | null | null | null | null | null | null | null | null | null | null | null |
pub fn server(state: AppState) -> Scope {
web::scope("/v2/profiles")
.app_data(web::Data::new(state))
.service(web::resource("").route(web::post().to(profiles::profile_create)))
.service(
web::scope("/{profile_id}")
.service(
... | crates/router/src/routes/app.rs | router | function_signature | 422 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
impl CustomerUpdateInternal {
pub fn apply_changeset(self, source: Customer) -> Customer {
let Self {
name,
email,
phone,
description,
phone_country_code,
metadata,
connector_customer,
default_payment_method_id,
... | crates/diesel_models/src/customers.rs | diesel_models | impl_block | 282 | rust | null | CustomerUpdateInternal | null | impl CustomerUpdateInternal | null | null | null | null | null | null | null | null |
),
("merchant_id", merchant_id.clone()),
),
),
}
}
}
pub fn add_apple_pay_payment_status_metrics(
payment_attempt_status: enums::AttemptStatus,
apple_pay_flow: Option<domain::ApplePayFlow>,
connector: Option<String>,
mercha... | crates/router/src/utils.rs#chunk1 | router | chunk | 2,463 | null | null | null | null | null | null | null | null | null | null | null | null | null |
## 2024.04.12.0
### Features
- **connector:** [ZSL] add connector template code ([#4285](https://github.com/juspay/hyperswitch/pull/4285)) ([`086516b`](https://github.com/juspay/hyperswitch/commit/086516b7b307e074b4301bd14a4c65595b6e142c))
- **events:** Add events framework for registering events ([#4115](https://gi... | CHANGELOG.md#chunk35 | null | doc_chunk | 8,101 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn complete_payout_eligibility(
state: &SessionState,
merchant_context: &domain::MerchantContext,
connector_data: &api::ConnectorData,
payout_data: &mut PayoutData,
) -> RouterResult<()> {
let payout_attempt = &payout_data.payout_attempt.to_owned();
if !payout_data.should_terminate
... | crates/router/src/core/payouts.rs | router | function_signature | 268 | rust | null | null | null | null | complete_payout_eligibility | null | null | null | null | null | null | null |
/// from base_currency -> to_currency
pub fn backward_conversion(
&self,
amt: Decimal,
to_currency: Currency,
) -> Result<Decimal, CurrencyConversionError> {
let to_factor = self
.conversion
.get(&to_currency)
.ok_or_else(|| {
C... | crates/currency_conversion/src/types.rs | currency_conversion | function_signature | 110 | rust | null | null | null | null | backward_conversion | null | null | null | null | null | null | null |
impl super::payments::metrics::PaymentMetricAnalytics for ClickhouseClient {} | crates/analytics/src/clickhouse.rs | analytics | impl_block | 15 | rust | null | ClickhouseClient | super::payments::metrics::PaymentMetricAnalytics for | impl super::payments::metrics::PaymentMetricAnalytics for for ClickhouseClient | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Facilitapay {} | crates/hyperswitch_connectors/src/connectors/facilitapay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Facilitapay | ConnectorValidation for | impl ConnectorValidation for for Facilitapay | null | null | null | null | null | null | null | null |
File: crates/analytics/src/disputes/core.rs
Public functions: 2
use std::collections::HashMap;
use api_models::analytics::{
disputes::{
DisputeDimensions, DisputeMetrics, DisputeMetricsBucketIdentifier,
DisputeMetricsBucketResponse,
},
DisputeFilterValue, DisputeFiltersResponse, DisputesA... | crates/analytics/src/disputes/core.rs | analytics | full_file | 1,607 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ApiEventMetric for ListBlocklistQuery {} | crates/api_models/src/blocklist.rs | api_models | impl_block | 10 | rust | null | ListBlocklistQuery | ApiEventMetric for | impl ApiEventMetric for for ListBlocklistQuery | null | null | null | null | null | null | null | null |
pub struct NoonAuthType {
pub(super) api_key: Secret<String>,
pub(super) application_identifier: Secret<String>,
pub(super) business_identifier: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | hyperswitch_connectors | struct_definition | 37 | rust | NoonAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub struct Account {
pub id: String,
} | crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs | hyperswitch_connectors | struct_definition | 11 | rust | Account | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.IndomaretVoucherData
{
"type": "object",
"properties": {
"first_name": {
"type": "string",
"description": "The billing first name for Alfamart",
"example": "Jane",
"nullable": true
},
"last_name": {
"type": "string",
"description... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 160 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"IndomaretVoucherData"
] | null | null | null | null |
OpenAPI Block Path: components.schemas.ToggleDynamicRoutingPath
{
"type": "object",
"required": [
"profile_id"
],
"properties": {
"profile_id": {
"type": "string"
}
}
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 56 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ToggleDynamicRoutingPath"
] | null | null | null | null |
pub struct PlacetopayRouterData<T> {
pub amount: MinorUnit,
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | PlacetopayRouterData | null | null | null | null | null | null | null | null | null | null | null |
pub(crate) fn get_payment_method_create_request(
payment_method_data: &api_models::payments::PaymentMethodData,
payment_method_type: storage_enums::PaymentMethod,
payment_method_subtype: storage_enums::PaymentMethodType,
customer_id: id_type::GlobalCustomerId,
billing_address: Option<&api_models::pa... | crates/router/src/core/payment_methods.rs | router | function_signature | 490 | rust | null | null | null | null | get_payment_method_create_request | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs
Public functions: 2
Public structs: 32
use api_models::webhooks::IncomingWebhookEvent;
use cards::CardNumber;
use common_enums::enums;
use common_utils::{
pii::{self, SecretSerdeValue},
request::Method,
types::MinorUnit,
};
use err... | crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs#chunk0 | hyperswitch_connectors | chunk | 8,187 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Nexixpay {} | crates/hyperswitch_connectors/src/connectors/nexixpay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Nexixpay | api::PaymentSession for | impl api::PaymentSession for for Nexixpay | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
Public functions: 6
Public structs: 97
#[cfg(feature = "payouts")]
use api_models::payouts::{PayoutMethodData, Wallet as WalletPayout};
use api_models::{enums, webhooks::IncomingWebhookEvent};
use base64::Engine;
use common_enums::enums as sto... | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs#chunk0 | hyperswitch_connectors | chunk | 8,185 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::Refund for Moneris {} | crates/hyperswitch_connectors/src/connectors/moneris.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Moneris | api::Refund for | impl api::Refund for for Moneris | null | null | null | null | null | null | null | null |
pub struct OrderAmount {
pub currency_code: storage_enums::Currency,
pub value: StringMajorUnit,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | OrderAmount | null | null | null | null | null | null | null | null | null | null | null |
pub struct Avs {
code: Option<String>,
code_raw: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | Avs | null | null | null | null | null | null | null | null | null | null | null |
pub struct SignUpRequest {
pub email: pii::Email,
pub password: Secret<String>,
} | crates/api_models/src/user.rs | api_models | struct_definition | 21 | rust | SignUpRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/scheduler/src/configs/validations.rs
Public functions: 3
use common_utils::ext_traits::ConfigExt;
use storage_impl::errors::ApplicationError;
impl super::settings::SchedulerSettings {
pub fn validate(&self) -> Result<(), ApplicationError> {
use common_utils::fp_utils::when;
when(sel... | crates/scheduler/src/configs/validations.rs | scheduler | full_file | 301 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/query/file.rs
Public functions: 4
use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods};
use super::generics;
use crate::{
errors,
file::{FileMetadata, FileMetadataNew, FileMetadataUpdate, FileMetadataUpdateInternal},
schema::file_metadata::dsl,
... | crates/diesel_models/src/query/file.rs | diesel_models | full_file | 487 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/account/{account_id}/business_profile/{profile_id}"
{
"get": {
"tags": [
"Profile"
],
"summary": "Profile - Retrieve",
"description": "Retrieve existing *profile*",
"operationId": "Retrieve a Profile",
"parameters": [
{
"name": "account_id",
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 853 | .json | null | null | null | null | null | openapi_spec | paths | [
"/account/{account_id}/business_profile/{profile_id}"
] | null | null | null | null |
impl api::PaymentCapture for Braintree {} | crates/hyperswitch_connectors/src/connectors/braintree.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Braintree | api::PaymentCapture for | impl api::PaymentCapture for for Braintree | null | null | null | null | null | null | null | null |
impl DBOperation {
pub fn operation<'a>(&self) -> &'a str {
match self {
Self::Insert { .. } => "insert",
Self::Update { .. } => "update",
}
}
pub fn table<'a>(&self) -> &'a str {
match self {
Self::Insert { insertable } => match **insertable {
... | crates/diesel_models/src/kv.rs | diesel_models | impl_block | 341 | rust | null | DBOperation | null | impl DBOperation | null | null | null | null | null | null | null | null |
Documentation: docs/rfcs/text/001-compile-time-perf.md
# Type: Doc File
## RFC 001: Hyperswitch compile time optimization
### I. Objective
Optimizing the compile time of Hyperswitch while preserving (and/or improving) the runtime performance. This would ensure accessibility across machines and improve developer ex... | docs/rfcs/text/001-compile-time-perf.md | null | doc_file | 782 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct GetDataMessage {
pub message: Secret<String>,
} | crates/hyperswitch_domain_models/src/chat.rs | hyperswitch_domain_models | struct_definition | 13 | rust | GetDataMessage | null | null | null | null | null | null | null | null | null | null | null |
pub struct Approve; | crates/hyperswitch_domain_models/src/router_flow_types/payments.rs | hyperswitch_domain_models | struct_definition | 5 | rust | Approve | null | null | null | null | null | null | null | null | null | null | null |
pub struct AdyenplatformIncomingWebhook {
pub data: AdyenplatformIncomingWebhookData,
#[serde(rename = "type")]
pub webhook_type: AdyenplatformWebhookEventType,
} | crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs | hyperswitch_connectors | struct_definition | 42 | rust | AdyenplatformIncomingWebhook | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_resources<D, R>(
&self,
state: &KeyManagerState,
key_store: &MerchantKeyStore,
resources: MutexGuard<'_, Vec<D>>,
filter_fn: impl Fn(&&D) -> bool,
error_message: String,
) -> CustomResult<Vec<R>, StorageError>
where
D: Sync + ReverseConver... | crates/storage_impl/src/mock_db.rs | storage_impl | function_signature | 235 | rust | null | null | null | null | get_resources | null | null | null | null | null | null | null |
impl State for CardInfoFetch {} | crates/router/src/core/cards_info.rs | router | impl_block | 7 | rust | null | CardInfoFetch | State for | impl State for for CardInfoFetch | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Razorpay {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&*RAZORPAY_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*RAZORPAY_SUPPORTED_PAYMENT_METHODS)
}
fn get_... | crates/hyperswitch_connectors/src/connectors/razorpay.rs | hyperswitch_connectors | impl_block | 209 | rust | null | Razorpay | ConnectorSpecifications for | impl ConnectorSpecifications for for Razorpay | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/payments/payments--create-and-confirm-intent.mdx
# Type: Doc File
---
openapi: post /v2/payments
---
| api-reference/v2/payments/payments--create-and-confirm-intent.mdx | null | doc_file | 37 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Gocardless {} | crates/hyperswitch_connectors/src/connectors/gocardless.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Gocardless | api::PaymentVoid for | impl api::PaymentVoid for for Gocardless | null | null | null | null | null | null | null | null |
File: crates/router/src/types/api/ephemeral_key.rs
pub use api_models::ephemeral_key::*;
| crates/router/src/types/api/ephemeral_key.rs | router | full_file | 24 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct Chat; | crates/router/src/routes/app.rs | router | struct_definition | 4 | rust | Chat | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/disputes/metrics/sessionized_metrics.rs
mod dispute_status_metric;
mod total_amount_disputed;
mod total_dispute_lost_amount;
pub(super) use dispute_status_metric::DisputeStatusMetric;
pub(super) use total_amount_disputed::TotalAmountDisputed;
pub(super) use total_dispute_lost_amount::TotalDi... | crates/analytics/src/disputes/metrics/sessionized_metrics.rs | analytics | full_file | 95 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct WalletPMData {
payment_brand: PaymentBrand,
#[serde(rename = "virtualAccount.accountId")]
account_id: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | hyperswitch_connectors | struct_definition | 34 | rust | WalletPMData | null | null | null | null | null | null | null | null | null | null | null |
impl Derives {
fn to_operation(
self,
fns: impl Iterator<Item = TokenStream> + Clone,
struct_name: &syn::Ident,
) -> TokenStream {
let req_type = Conversion::get_req_type(self);
quote! {
#[automatically_derived]
impl<F:Send+Clone+Sync> Operation<F,... | crates/router_derive/src/macros/operation.rs | router_derive | impl_block | 212 | rust | null | Derives | null | impl Derives | null | null | null | null | null | null | null | null |
Web Documentation: Subscriptions with Modular Payments | Hyperswitch
# Type: Web Doc
Businesses that run on subscription model powered by providers viz. Chargebee, Recurly, Stripe Billing etc. can now augment it with payments orchestration by decoupling the payments from the subscription provider and using them purely... | https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/subscriptions-with-modular-payments | null | web_doc_file | 1,964 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/subscriptions-with-modular-payments | Subscriptions with Modular Payments | Hyperswitch | null |
pub struct ApplePayCertificatesMigrationResponse {
pub migration_successful: Vec<common_utils::id_type::MerchantId>,
pub migration_failed: Vec<common_utils::id_type::MerchantId>,
} | crates/api_models/src/apple_pay_certificates_migration.rs | api_models | struct_definition | 41 | rust | ApplePayCertificatesMigrationResponse | null | null | null | null | null | null | null | null | null | null | null |
impl ThemeNew {
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Theme> {
generics::generic_insert(conn, self).await
}
} | crates/diesel_models/src/query/user/theme.rs | diesel_models | impl_block | 40 | rust | null | ThemeNew | null | impl ThemeNew | null | null | null | null | null | null | null | null |
pub struct Reply {
order_status: Option<OrderStatus>,
pub error: Option<WorldpayXmlErrorResponse>,
ok: Option<OkResponse>,
} | crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs | hyperswitch_connectors | struct_definition | 32 | rust | Reply | 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/fiservemea.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
Web Documentation: For Marketplace/Platforms | Hyperswitch
# Type: Web Doc
Hyperswitch provides a powerful and adaptable payment infrastructure designed to handle the complexities of multi-party transaction flows in marketplace and platform environments.
With features like multi-rail payouts, intelligent routing, and ... | https://docs.hyperswitch.io/use-cases/for-marketplace-platforms | null | web_doc_file | 408 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/use-cases/for-marketplace-platforms | For Marketplace/Platforms | Hyperswitch | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.