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/router/src/routes/verification.rs
Public functions: 3
use actix_web::{web, HttpRequest, Responder};
use api_models::verifications;
use router_env::{instrument, tracing, Flow};
use super::app::AppState;
use crate::{
core::{api_locking, verification},
services::{api, authentication as auth, author... | crates/router/src/routes/verification.rs | router | full_file | 837 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PayoutsMandateReference(
pub HashMap<common_utils::id_type::MerchantConnectorAccountId, PayoutsMandateReferenceRecord>,
); | crates/hyperswitch_domain_models/src/mandates.rs | hyperswitch_domain_models | struct_definition | 34 | rust | PayoutsMandateReference | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.EventClass
{
"type": "string",
"enum": [
"payments",
"refunds",
"disputes",
"mandates",
"payouts"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 53 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"EventClass"
] | null | null | null | null |
impl AuthorizationNew {
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Authorization> {
generics::generic_insert(conn, self).await
}
} | crates/diesel_models/src/query/authorization.rs | diesel_models | impl_block | 40 | rust | null | AuthorizationNew | null | impl AuthorizationNew | null | null | null | null | null | null | null | null |
pub struct ExtraParameters {
pub token: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | ExtraParameters | null | null | null | null | null | null | null | null | null | null | null |
pub struct PlacetopayPayment {
reference: String,
description: String,
amount: PlacetopayAmount,
} | crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | PlacetopayPayment | null | null | null | null | null | null | null | null | null | null | null |
pub struct OpenSearchClient {
pub client: OpenSearch,
pub transport: Transport,
pub indexes: OpenSearchIndexes,
} | crates/analytics/src/opensearch.rs | analytics | struct_definition | 28 | rust | OpenSearchClient | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs
Public structs: 8
use common_enums::enums;
use common_utils::types::StringMinorUnit;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterData},
router_flow_typ... | crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs | hyperswitch_connectors | full_file | 1,832 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct NuveiPaymentRequestData {
pub amount: StringMajorUnit,
pub currency: enums::Currency,
pub related_transaction_id: Option<String>,
pub client_request_id: String,
pub connector_auth_type: ConnectorAuthType,
pub session_token: Secret<String>,
pub capture_method: Option<CaptureMethod>... | crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | hyperswitch_connectors | struct_definition | 71 | rust | NuveiPaymentRequestData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn update_payment_method_connector_mandate_details(
state: &routes::SessionState,
key_store: &domain::MerchantKeyStore,
db: &dyn db::StorageInterface,
pm: domain::PaymentMethod,
connector_mandate_details: Option<CommonMandateReference>,
storage_scheme: MerchantStorageScheme,
) -> error... | crates/router/src/core/payment_methods/cards.rs | router | function_signature | 251 | rust | null | null | null | null | update_payment_method_connector_mandate_details | null | null | null | null | null | null | null |
impl api::PaymentsPreProcessing for Redsys {} | crates/hyperswitch_connectors/src/connectors/redsys.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Redsys | api::PaymentsPreProcessing for | impl api::PaymentsPreProcessing for for Redsys | null | null | null | null | null | null | null | null |
pub struct MbWayInfo {} | crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs | hyperswitch_connectors | struct_definition | 6 | rust | MbWayInfo | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/outgoing_webhook_event/core.rs
Public functions: 1
use api_models::analytics::outgoing_webhook_event::OutgoingWebhookLogsRequest;
use common_utils::errors::ReportSwitchExt;
use error_stack::ResultExt;
use super::events::{get_outgoing_webhook_event, OutgoingWebhookLogsResult};
use crate::{e... | crates/analytics/src/outgoing_webhook_event/core.rs | analytics | full_file | 273 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn knowledge(ts: TokenStream) -> TokenStream {
match inner::knowledge_inner(ts.into()) {
Ok(ts) => ts.into(),
Err(e) => e.into_compile_error().into(),
}
} | crates/euclid_macros/src/lib.rs | euclid_macros | function_signature | 45 | rust | null | null | null | null | knowledge | null | null | null | null | null | null | null |
impl api::PaymentToken for Bluecode {} | crates/hyperswitch_connectors/src/connectors/bluecode.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Bluecode | api::PaymentToken for | impl api::PaymentToken for for Bluecode | null | null | null | null | null | null | null | null |
pub fn get_optional_connector_metadata(
&self,
) -> CustomResult<
Option<api_models::payments::ConnectorMetadata>,
common_utils::errors::ParsingError,
> {
self.connector_metadata
.clone()
.map(|cm| {
cm.parse_value::<api_models::payments::C... | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | function_signature | 80 | rust | null | null | null | null | get_optional_connector_metadata | null | null | null | null | null | null | null |
pub struct CaptureBuyerRequest {
seller_payme_id: Secret<String>,
#[serde(flatten)]
card: PaymeCard,
} | crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | hyperswitch_connectors | struct_definition | 30 | rust | CaptureBuyerRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct VoltRefundsWebhookBodyEventType {
pub status: VoltWebhookRefundsStatus,
} | crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | VoltRefundsWebhookBodyEventType | null | null | null | null | null | null | null | null | null | null | null |
pub struct ResultInfo {
pub result_code: i64,
pub additional_info: Option<String>,
pub correlation_id: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | hyperswitch_connectors | struct_definition | 31 | rust | ResultInfo | null | null | null | null | null | null | null | null | null | null | null |
impl api::Payment for Stax {} | crates/hyperswitch_connectors/src/connectors/stax.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Stax | api::Payment for | impl api::Payment for for Stax | null | null | null | null | null | null | null | null |
impl VaultOperation {
pub fn get_updated_vault_data(
existing_vault_data: Option<&Self>,
payment_method_data: &payment_method_data::PaymentMethodData,
) -> Option<Self> {
match (existing_vault_data, payment_method_data) {
(None, payment_method_data::PaymentMethodData::Card(ca... | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | impl_block | 342 | rust | null | VaultOperation | null | impl VaultOperation | null | null | null | null | null | null | null | null |
pub struct Reject; | crates/hyperswitch_domain_models/src/router_flow_types/payments.rs | hyperswitch_domain_models | struct_definition | 4 | rust | Reject | null | null | null | null | null | null | null | null | null | null | null |
pub struct DummyConnectorPaymentRetrieveRequest {
pub payment_id: String,
} | crates/router/src/routes/dummy_connector/types.rs | router | struct_definition | 16 | rust | DummyConnectorPaymentRetrieveRequest | null | null | null | null | null | null | null | null | null | null | null |
pub fn payment_method_session_update_saved_payment_method() {} | crates/openapi/src/routes/payment_method.rs | openapi | function_signature | 11 | rust | null | null | null | null | payment_method_session_update_saved_payment_method | null | null | null | null | null | null | null |
pub async fn switch_merchant_for_user_in_org(
state: web::Data<AppState>,
http_req: HttpRequest,
json_payload: web::Json<user_api::SwitchMerchantRequest>,
) -> HttpResponse {
let flow = Flow::SwitchMerchantV2;
Box::pin(api::server_wrap(
flow,
state.clone(),
&http_req,
... | crates/router/src/routes/user.rs | router | function_signature | 136 | rust | null | null | null | null | switch_merchant_for_user_in_org | null | null | null | null | null | null | null |
impl api::PaymentCapture for Phonepe {} | crates/hyperswitch_connectors/src/connectors/phonepe.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Phonepe | api::PaymentCapture for | impl api::PaymentCapture for for Phonepe | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Novalnet {} | crates/hyperswitch_connectors/src/connectors/novalnet.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Novalnet | api::MandateSetup for | impl api::MandateSetup for for Novalnet | null | null | null | null | null | null | null | null |
pub async fn find_by_user_id_tenant_id_org_id_merchant_id_profile_id(
conn: &PgPooledConn,
user_id: String,
tenant_id: id_type::TenantId,
org_id: id_type::OrganizationId,
merchant_id: id_type::MerchantId,
profile_id: id_type::ProfileId,
version: UserRoleVersion,
... | crates/diesel_models/src/query/user_role.rs | diesel_models | function_signature | 182 | rust | null | null | null | null | find_by_user_id_tenant_id_org_id_merchant_id_profile_id | null | null | null | null | null | null | null |
pub async fn payments_link_list(
state: web::Data<AppState>,
req: actix_web::HttpRequest,
payload: web::Query<api_models::payments::PaymentLinkListConstraints>,
) -> impl Responder {
let flow = Flow::PaymentLinkList;
let payload = payload.into_inner();
Box::pin(api::server_wrap(
flow,
... | crates/router/src/routes/payment_link.rs | router | function_signature | 164 | rust | null | null | null | null | payments_link_list | null | null | null | null | null | null | null |
pub async fn generic_delete<T, P>(conn: &PgPooledConn, predicate: P) -> StorageResult<bool>
where
T: FilterDsl<P> + HasTable<Table = T> + Table + 'static,
Filter<T, P>: IntoUpdateTarget,
DeleteStatement<
<Filter<T, P> as HasTable>::Table,
<Filter<T, P> as IntoUpdateTarget>::WhereClause,
... | crates/diesel_models/src/query/generics.rs | diesel_models | function_signature | 279 | rust | null | null | null | null | generic_delete | null | null | null | null | null | null | null |
pub struct PlaidLinkTokenResponse {
link_token: String,
} | crates/pm_auth/src/connector/plaid/transformers.rs | pm_auth | struct_definition | 15 | rust | PlaidLinkTokenResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentMethodsEnabled {
pub payment_method: api_models::enums::PaymentMethod,
pub payment_method_types: Option<Vec<payment_methods::RequestPaymentMethodTypes>>,
} | crates/connector_configs/src/common_config.rs | connector_configs | struct_definition | 37 | rust | PaymentMethodsEnabled | null | null | null | null | null | null | null | null | null | null | null |
pub fn flat_struct(&self) -> std::collections::HashMap<String, String> {
use serde_json::Value;
use std::collections::HashMap;
fn flatten_value(
value: &Value,
prefix: &str,
result: &mut HashMap<String, String>
... | crates/router_derive/src/lib.rs | router_derive | function_signature | 239 | rust | null | null | null | null | flat_struct | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
Public functions: 5
Public structs: 31
use error_stack::ResultExt;
use hyperswitch_interfaces::errors;
use masking::Secret;
use serde::{Deserialize, Serialize};
use url::Url;
use super::requests::*;
#[derive(Clone, Debug, PartialEq, Serialize,... | crates/hyperswitch_connectors/src/connectors/worldpay/response.rs | hyperswitch_connectors | full_file | 3,211 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Event for AuditEvent {
type EventType = super::EventType;
fn timestamp(&self) -> PrimitiveDateTime {
self.created_at
}
fn identifier(&self) -> String {
let event_type = match &self.event_type {
AuditEventType::Error { .. } => "error",
AuditEventType::Paymen... | crates/router/src/events/audit_events.rs | router | impl_block | 305 | rust | null | AuditEvent | Event for | impl Event for for AuditEvent | null | null | null | null | null | null | null | null |
pub struct AmountBreakdown {
item_total: OrderAmount,
tax_total: Option<OrderAmount>,
shipping: Option<OrderAmount>,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 29 | rust | AmountBreakdown | null | null | null | null | null | null | null | null | null | null | null |
pub struct RevenueRecoveryMetadata {
/// The maximum number of retries allowed for an invoice. This limit is set by the merchant for each `billing connector`.Once this limit is reached, no further retries will be attempted.
pub max_retry_count: u16,
/// Maximum number of `billing connector` retries before r... | crates/diesel_models/src/merchant_connector_account.rs | diesel_models | struct_definition | 139 | rust | RevenueRecoveryMetadata | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.GenericLinkUiConfig
{
"type": "object",
"description": "Object for GenericLinkUiConfig",
"properties": {
"logo": {
"type": "string",
"description": "Merchant's display logo",
"example": "https://hyperswitch.io/favicon.ico",
"nullable": true,
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 205 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"GenericLinkUiConfig"
] | null | null | null | null |
pub struct AttachPayoutAccountWorkflow; | crates/router/src/workflows/attach_payout_account_workflow.rs | router | struct_definition | 8 | rust | AttachPayoutAccountWorkflow | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/wellsfargopayout/transformers.rs
Public structs: 8
use common_enums::{AttemptStatus, RefundStatus};
use common_utils::types::StringMinorUnit;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterData}... | crates/hyperswitch_connectors/src/connectors/wellsfargopayout/transformers.rs | hyperswitch_connectors | full_file | 1,797 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn card_iin_info(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<String>,
payload: web::Query<api_models::cards_info::CardsInfoRequestParams>,
) -> impl Responder {
let card_iin = path.into_inner();
let request_params = payload.into_inner();
let payload = api_models... | crates/router/src/routes/cards_info.rs | router | function_signature | 282 | rust | null | null | null | null | card_iin_info | null | null | null | null | null | null | null |
File: crates/euclid/src/types.rs
Public functions: 4
Public structs: 4
pub mod transformers;
use common_utils::types::MinorUnit;
use euclid_macros::EnumNums;
use serde::{Deserialize, Serialize};
use strum::VariantNames;
use crate::{
dssa::types::EuclidAnalysable,
enums,
frontend::{
ast,
... | crates/euclid/src/types.rs | euclid | full_file | 2,853 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct WorldpayErrorResponse {
pub error_name: String,
pub message: String,
pub validation_errors: Option<serde_json::Value>,
} | crates/hyperswitch_connectors/src/connectors/worldpay/response.rs | hyperswitch_connectors | struct_definition | 32 | rust | WorldpayErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct MollieMetadata {
pub order_id: String,
} | crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | MollieMetadata | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundSync for UnifiedAuthenticationService {} | crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs | hyperswitch_connectors | impl_block | 11 | rust | null | UnifiedAuthenticationService | api::RefundSync for | impl api::RefundSync for for UnifiedAuthenticationService | null | null | null | null | null | null | null | null |
pub struct AirwallexCardPaymentOptions {
auto_capture: bool,
} | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | AirwallexCardPaymentOptions | null | null | null | null | null | null | null | null | null | null | null |
pub struct WellsfargoPaymentInstrument {
id: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | WellsfargoPaymentInstrument | null | null | null | null | null | null | null | null | null | null | null |
pub fn is_update_required(
&self,
data_stored_in_vault: api::payment_methods::CardDetailFromLocker,
) -> bool {
//if the expiry year and month in the vault are not the same as the ones in the requestor data,
//then we need to update the vault data with the updated expiry year and mon... | crates/router/src/types/payment_methods.rs | router | function_signature | 121 | rust | null | null | null | null | is_update_required | null | null | null | null | null | null | null |
pub fn calculate_signature(
enctype: EncodingType,
signature_data: ZslSignatureType,
) -> Result<Secret<String>, error_stack::Report<errors::ConnectorError>> {
let signature_data = match signature_data {
ZslSignatureType::RequestSignature {
txn_amt,
ccy,
mer_ref,
... | crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs | hyperswitch_connectors | function_signature | 327 | rust | null | null | null | null | calculate_signature | null | null | null | null | null | null | null |
Web Documentation: Data Security | Hyperswitch
# Type: Web Doc
At Hyperswitch, we prioritize data security and adhere to PCI DSS standards to protect sensitive information. Our platform is engineered with a robust multi-layered encryption framework to secure sensitive data, including API credentials, RSA certificates,... | https://docs.hyperswitch.io/explore-hyperswitch/security-and-compliance/security | null | web_doc_file | 1,209 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/explore-hyperswitch/security-and-compliance/security | Data Security | Hyperswitch | null |
pub trait OperationSessionSetters<F> {
// Setter functions for PaymentData
fn set_payment_intent(&mut self, payment_intent: storage::PaymentIntent);
#[cfg(feature = "v2")]
fn set_client_secret(&mut self, client_secret: Option<Secret<String>>);
fn set_payment_attempt(&mut self, payment_attempt: stora... | crates/router/src/core/payments.rs | router | trait_definition | 744 | rust | null | null | OperationSessionSetters | 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 GetPaymentIntentMetricRequest");
let flow = AnalyticsFlow:... | crates/router/src/analytics.rs | router | impl_block | 334 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub async fn get_decrypted_wallet_payment_method_token<F, Req, D>(
operation: &BoxedOperation<'_, F, Req, D>,
state: &SessionState,
merchant_context: &domain::MerchantContext,
payment_data: &mut D,
connector_call_type_optional: Option<&ConnectorCallType>,
) -> CustomResult<Option<PaymentMethodToken>... | crates/router/src/core/payments.rs | router | function_signature | 496 | rust | null | null | null | null | get_decrypted_wallet_payment_method_token | null | null | null | null | null | null | null |
pub struct ApplePayRedirectData {} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 7 | rust | ApplePayRedirectData | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/workflows/payment_sync.rs
Public functions: 2
Public structs: 1
use common_utils::ext_traits::{OptionExt, StringExt, ValueExt};
use diesel_models::process_tracker::business_status;
use error_stack::ResultExt;
use router_env::logger;
use scheduler::{
consumer::{self, types::process_data, w... | crates/router/src/workflows/payment_sync.rs | router | full_file | 2,321 | null | null | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/business-profile/merchant-connector--list.mdx
# Type: Doc File
---
openapi: get /v2/profiles/{profile_id}/connector-accounts
--- | api-reference/v2/business-profile/merchant-connector--list.mdx | null | doc_file | 42 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct Profile {
pub profile_type: ProfileType,
pub first_name: Secret<String>,
pub last_name: Secret<String>,
pub date_of_birth: Secret<String>,
pub gender: NomupayGender,
pub email_address: Email,
pub phone_number_country_code: Option<String>,
pub phone_number: Option<Secret<String... | crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs | hyperswitch_connectors | struct_definition | 80 | rust | Profile | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/services/kafka/fraud_check.rs
Public functions: 1
Public structs: 1
// use diesel_models::enums as storage_enums;
use diesel_models::{
enums as storage_enums,
enums::{FraudCheckLastStep, FraudCheckStatus, FraudCheckType},
fraud_check::FraudCheck,
};
use time::OffsetDateTime;
#[de... | crates/router/src/services/kafka/fraud_check.rs | router | full_file | 654 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct DatatransError {
pub code: String,
pub message: String,
} | crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | DatatransError | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundResponse {
id: String,
status: RefundStatus,
} | crates/hyperswitch_connectors/src/connectors/mpgs/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct TsysTransactionDetails {
#[serde(rename = "transactionID")]
transaction_id: String,
transaction_type: String,
transaction_status: TsysTransactionStatus,
} | crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs | hyperswitch_connectors | struct_definition | 38 | rust | TsysTransactionDetails | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorErrorTypeMapping for Bluesnap {
fn get_connector_error_type(
&self,
error_code: String,
error_message: String,
) -> ConnectorErrorType {
match (error_code.as_str(), error_message.as_str()) {
("7", "INVALID_TRANSACTION_TYPE") => ConnectorErrorType::UserEr... | crates/hyperswitch_connectors/src/connectors/bluesnap.rs | hyperswitch_connectors | impl_block | 2,404 | rust | null | Bluesnap | ConnectorErrorTypeMapping for | impl ConnectorErrorTypeMapping for for Bluesnap | null | null | null | null | null | null | null | null |
pub struct CybersourceRedirectionAuthResponse {
pub transaction_id: String,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | CybersourceRedirectionAuthResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn payments_list() {} | crates/openapi/src/routes/payments.rs | openapi | function_signature | 6 | rust | null | null | null | null | payments_list | null | null | null | null | null | null | null |
File: crates/router/src/db/business_profile.rs
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use error_stack::{report, ResultExt};
use router_env::{instrument, tracing};
use super::Store;
use crate::{
connection,
core::errors::{self, CustomResult},
db::MockDb,
types::{
... | crates/router/src/db/business_profile.rs | router | full_file | 3,480 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/services/encryption.rs
Public functions: 4
Public structs: 2
use std::str;
use error_stack::{report, ResultExt};
use josekit::{jwe, jws};
use serde::{Deserialize, Serialize};
use crate::{
core::errors::{self, CustomResult},
utils,
};
#[derive(Debug, Clone, Serialize, Deserialize)]
... | crates/router/src/services/encryption.rs | router | full_file | 4,403 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Inespay {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&INESPAY_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*INESPAY_SUPPORTED_PAYMENT_METHODS)
}
fn get_supp... | crates/hyperswitch_connectors/src/connectors/inespay.rs | hyperswitch_connectors | impl_block | 106 | rust | null | Inespay | ConnectorSpecifications for | impl ConnectorSpecifications for for Inespay | null | null | null | null | null | null | null | null |
pub fn is_terminal_status(self) -> bool {
match self {
Self::Started | Self::Pending => false,
Self::Success | Self::Failed => true,
}
} | crates/common_enums/src/enums.rs | common_enums | function_signature | 40 | rust | null | null | null | null | is_terminal_status | null | null | null | null | null | null | null |
pub struct PaysafeSettlementResponse {
pub merchant_ref_num: Option<String>,
pub id: String,
pub status: PaysafeSettlementStatus,
} | crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs | hyperswitch_connectors | struct_definition | 34 | rust | PaysafeSettlementResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentMethodId {
pub payment_method_id: String,
} | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 15 | rust | PaymentMethodId | null | null | null | null | null | null | null | null | null | null | null |
pub struct HyperswitchVaultCustomerCreateRequest {
name: Option<Secret<String>>,
email: Option<Email>,
} | crates/hyperswitch_connectors/src/connectors/hyperswitch_vault/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | HyperswitchVaultCustomerCreateRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn tokenize_card_api() {} | crates/openapi/src/routes/payment_method.rs | openapi | function_signature | 8 | rust | null | null | null | null | tokenize_card_api | null | null | null | null | null | null | null |
pub struct SingleUsePaymentMethodToken {
pub token: Secret<String>,
pub merchant_connector_id: id_type::MerchantConnectorAccountId,
} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 29 | rust | SingleUsePaymentMethodToken | null | null | null | null | null | null | null | null | null | null | null |
pub async fn sdk_events_core(
pool: &AnalyticsProvider,
req: SdkEventsRequest,
publishable_key: &String,
) -> AnalyticsResult<Vec<SdkEventsResult>> {
match pool {
AnalyticsProvider::Sqlx(_) => Err(FiltersError::NotImplemented(
"SDK Events not implemented for SQLX",
))
... | crates/analytics/src/sdk_events/core.rs | analytics | function_signature | 173 | rust | null | null | null | null | sdk_events_core | null | null | null | null | null | null | null |
pub async fn customers_list(
state: web::Data<AppState>,
req: HttpRequest,
query: web::Query<customers::CustomerListRequest>,
) -> HttpResponse {
let flow = Flow::CustomersList;
let payload = query.into_inner();
Box::pin(api::server_wrap(
flow,
state,
&req,
paylo... | crates/router/src/routes/customers.rs | router | function_signature | 201 | rust | null | null | null | null | customers_list | null | null | null | null | null | null | null |
impl DynamicRoutingAlgoAccessor for ContractRoutingAlgorithm {
fn get_algorithm_id_with_timestamp(
self,
) -> DynamicAlgorithmWithTimestamp<common_utils::id_type::RoutingId> {
self.algorithm_id_with_timestamp
}
fn get_enabled_features(&mut self) -> &mut DynamicRoutingFeatures {
&... | crates/api_models/src/routing.rs | api_models | impl_block | 75 | rust | null | ContractRoutingAlgorithm | DynamicRoutingAlgoAccessor for | impl DynamicRoutingAlgoAccessor for for ContractRoutingAlgorithm | null | null | null | null | null | null | null | null |
File: crates/router/src/types/storage/reverse_lookup.rs
pub use diesel_models::reverse_lookup::{ReverseLookup, ReverseLookupNew};
| crates/router/src/types/storage/reverse_lookup.rs | router | full_file | 27 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct RecoveryPaymentTuple(
revenue_recovery::RecoveryPaymentIntent,
revenue_recovery::RecoveryPaymentAttempt,
); | crates/router/src/core/webhooks/recovery_incoming.rs | router | struct_definition | 25 | rust | RecoveryPaymentTuple | null | null | null | null | null | null | null | null | null | null | null |
impl SchedulerInterface for KafkaStore {} | crates/router/src/db/kafka_store.rs | router | impl_block | 7 | rust | null | KafkaStore | SchedulerInterface for | impl SchedulerInterface for for KafkaStore | null | null | null | null | null | null | null | null |
pub fn get_connector_customer_id(
&self,
customer: Option<&customer::Customer>,
merchant_connector_account: &MerchantConnectorAccountTypeDetails,
) -> Option<String> {
match merchant_connector_account {
MerchantConnectorAccountTypeDetails::MerchantConnectorAccount(_) => c... | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | function_signature | 127 | rust | null | null | null | null | get_connector_customer_id | null | null | null | null | null | null | null |
impl Deutschebank {
pub fn new() -> &'static Self {
&Self {
amount_converter: &MinorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/deutschebank.rs | hyperswitch_connectors | impl_block | 33 | rust | null | Deutschebank | null | impl Deutschebank | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.RelayRefundRequestData
{
"type": "object",
"required": [
"amount",
"currency"
],
"properties": {
"amount": {
"type": "integer",
"format": "int64",
"description": "The amount that is being refunded",
"example": 6540
},
"currency":... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 160 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"RelayRefundRequestData"
] | null | null | null | null |
impl Responder {
let flow = Flow::DecisionEngineDecideGatewayCall;
Box::pin(oss_api::server_wrap(
flow,
state,
&req,
payload.clone(),
|state, _auth, payload, _| routing::decide_gateway_open_router(state.clone(), payload),
&auth::ApiKeyAuth {
is_connect... | crates/router/src/routes/routing.rs | router | impl_block | 106 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub fn is_disabled(&self) -> bool {
self.flag == common_enums::TokenizationFlag::Disabled
} | crates/hyperswitch_domain_models/src/tokenization.rs | hyperswitch_domain_models | function_signature | 26 | rust | null | null | null | null | is_disabled | null | null | null | null | null | null | null |
pub struct PayuErrorResponse {
pub status: PayuErrorData,
} | crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | PayuErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::Refund for Paytm {} | crates/hyperswitch_connectors/src/connectors/paytm.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Paytm | api::Refund for | impl api::Refund for for Paytm | null | null | null | null | null | null | null | null |
Documentation: crates/hyperswitch_interfaces/README.md
# Type: Doc File
# Hyperswitch Interfaces
This crate includes interfaces and its error types
| crates/hyperswitch_interfaces/README.md | null | doc_file | 33 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_profile_sankey(
state: web::Data<AppState>,
req: actix_web::HttpRequest,
json_payload: web::Json<TimeRange>,
) -> impl Responder {
let flow = AnalyticsFlow::GetSankey;
let payload = json_payload.into_inner();
Box::pin(api::server_wrap(
flo... | crates/router/src/analytics.rs | router | function_signature | 283 | rust | null | null | null | null | get_profile_sankey | null | null | null | null | null | null | null |
pub async fn validate_create_request(
_state: &SessionState,
_merchant_context: &domain::MerchantContext,
_req: &payouts::PayoutCreateRequest,
) -> RouterResult<(
String,
Option<payouts::PayoutMethodData>,
String,
Option<domain::Customer>,
Option<PaymentMethod>,
)> {
todo!()
} | crates/router/src/core/payouts/validator.rs | router | function_signature | 83 | rust | null | null | null | null | validate_create_request | null | null | null | null | null | null | null |
pub struct NomupayErrorResponse {
pub status: Option<String>,
pub code: Option<u64>,
pub error: Option<NomupayInnerError>,
pub status_code: Option<u16>,
pub detail: Option<Vec<DetailsType>>,
} | crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs | hyperswitch_connectors | struct_definition | 56 | rust | NomupayErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct SignatureKey {
pub api_key: Secret<String>,
pub key1: Secret<String>,
pub api_secret: Secret<String>,
} | crates/test_utils/src/connector_auth.rs | test_utils | struct_definition | 30 | rust | SignatureKey | null | null | null | null | null | null | null | null | null | null | null |
pub struct SessionFlowRoutingInput<'a> {
pub country: Option<CountryAlpha2>,
pub payment_intent: &'a oss_storage::PaymentIntent,
pub chosen: api::SessionConnectorDatas,
} | crates/router/src/core/payments/routing.rs | router | struct_definition | 44 | rust | SessionFlowRoutingInput | null | null | null | null | null | null | null | null | null | null | null |
pub trait LoadRow<T>
where
Self: AnalyticsDataSource,
T: Sized,
{
fn load_row(row: Self::Row) -> CustomResult<T, QueryExecutionError>;
} | crates/analytics/src/types.rs | analytics | trait_definition | 40 | rust | null | null | LoadRow | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
Public functions: 3
Public structs: 55
use common_enums::enums;
use common_utils::{
errors::ParsingError,
pii::{Email, IpAddress},
request::Method,
types::{MinorUnit, StringMajorUnit},
};
use error_stack::ResultExt;
use hype... | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs#chunk0 | hyperswitch_connectors | chunk | 8,191 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct TokenCreation {
#[serde(rename = "type")]
pub token_type: TokenCreationType,
} | crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs | hyperswitch_connectors | struct_definition | 23 | rust | TokenCreation | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/cryptopay/transformers.rs
Public structs: 8
use common_enums::enums;
use common_utils::{
pii,
types::{MinorUnit, StringMajorUnit},
};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, ErrorRespon... | crates/hyperswitch_connectors/src/connectors/cryptopay/transformers.rs | hyperswitch_connectors | full_file | 2,053 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentMethodSession {
pub id: common_utils::id_type::GlobalPaymentMethodSessionId,
pub customer_id: common_utils::id_type::GlobalCustomerId,
pub billing: Option<common_utils::encryption::Encryption>,
pub psp_tokenization: Option<common_types::payment_methods::PspTokenization>,
pub networ... | crates/diesel_models/src/payment_methods_session.rs | diesel_models | struct_definition | 191 | rust | PaymentMethodSession | null | null | null | null | null | null | null | null | null | null | null |
pub fn is_db_not_found(&self) -> bool {
match self {
Self::DatabaseError(err) => matches!(err.current_context(), DatabaseError::NotFound),
Self::ValueNotFound(_) => true,
Self::RedisError(err) => matches!(err.current_context(), RedisError::NotFound),
_ => false,
... | crates/storage_impl/src/errors.rs | storage_impl | function_signature | 72 | rust | null | null | null | null | is_db_not_found | null | null | null | null | null | null | null |
impl PaymentIntentFetchConstraints {
pub fn get_profile_id(&self) -> Option<id_type::ProfileId> {
let Self::List(pi_list_params) = self;
pi_list_params.profile_id.clone()
}
} | crates/hyperswitch_domain_models/src/payments/payment_intent.rs | hyperswitch_domain_models | impl_block | 48 | rust | null | PaymentIntentFetchConstraints | null | impl PaymentIntentFetchConstraints | null | null | null | null | null | null | null | null |
pub async fn retrieve_payment_method_with_token(
state: &SessionState,
merchant_key_store: &domain::MerchantKeyStore,
token_data: &storage::PaymentTokenData,
payment_intent: &PaymentIntent,
payment_attempt: &PaymentAttempt,
card_token_data: Option<&domain::CardToken>,
customer: &Option<domai... | crates/router/src/core/payment_methods.rs | router | function_signature | 1,090 | rust | null | null | null | null | retrieve_payment_method_with_token | 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.