text string | file_path string | module string | type string | tokens int64 | language string | struct_name string | type_name string | trait_name string | impl_type string | function_name string | source string | section string | keys list | macro_type string | url string | title string | chunk_index int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pub struct WisePayoutQuoteResponse {
source_amount: f64,
client_id: String,
id: String,
status: WiseStatus,
profile: i64,
rate: Option<i8>,
source_currency: Option<String>,
target_currency: Option<String>,
user: Option<i64>,
rate_type: Option<WiseRateType>,
pay_out: Option<Wi... | crates/hyperswitch_connectors/src/connectors/wise/transformers.rs | hyperswitch_connectors | struct_definition | 91 | rust | WisePayoutQuoteResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_metrics(
pool: &AnalyticsProvider,
merchant_id: &common_utils::id_type::MerchantId,
req: GetFrmMetricRequest,
) -> AnalyticsResult<MetricsResponse<FrmMetricsBucketResponse>> {
let mut metrics_accumulator: HashMap<FrmMetricsBucketIdentifier, FrmMetricsAccumulator> =
HashMap::new(... | crates/analytics/src/frm/core.rs | analytics | function_signature | 644 | rust | null | null | null | null | get_metrics | null | null | null | null | null | null | null |
pub fn get_destination_url(&self) -> &str {
self.0.destination_url.as_str()
} | crates/router/src/core/proxy/utils.rs | router | function_signature | 23 | rust | null | null | null | null | get_destination_url | null | null | null | null | null | null | null |
pub struct Shift4WebhookObjectEventType {
#[serde(rename = "type")]
pub event_type: Shift4WebhookEvent,
} | crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | hyperswitch_connectors | struct_definition | 29 | rust | Shift4WebhookObjectEventType | null | null | null | null | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Paytm {
fn get_webhook_object_reference_id(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> {
Err(report!(errors::ConnectorError::WebhooksNotImplemented))
... | crates/hyperswitch_connectors/src/connectors/paytm.rs | hyperswitch_connectors | impl_block | 210 | rust | null | Paytm | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Paytm | null | null | null | null | null | null | null | null |
pub struct NoonApplePayHeader {
ephemeral_public_key: Secret<String>,
public_key_hash: Secret<String>,
transaction_id: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | hyperswitch_connectors | struct_definition | 32 | rust | NoonApplePayHeader | null | null | null | null | null | null | null | null | null | null | null |
pub fn new(profile: domain::Profile) -> Self {
Self { profile }
} | crates/router/src/core/admin.rs | router | function_signature | 19 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::PaymentsList;
let payload = payload.into_inner();
Box::pin(api::server_wrap(
flow,
state,
&req,
payload,
|state, auth: auth::AuthenticationData, req, _| {
let merchant_context = domain::MerchantContext::NormalMerchant(Box:... | crates/router/src/routes/payments.rs | router | impl_block | 177 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub fn payments_create() {} | crates/openapi/src/routes/payments.rs | openapi | function_signature | 6 | rust | null | null | null | null | payments_create | null | null | null | null | null | null | null |
impl ConnectorValidation for Hipay {} | crates/hyperswitch_connectors/src/connectors/hipay.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Hipay | ConnectorValidation for | impl ConnectorValidation for for Hipay | null | null | null | null | null | null | null | null |
/// Returns the token_type string if encrypted data exists, otherwise returns an error
pub fn get_encrypted_token_type(&self) -> Result<String, errors::ValidationError> {
Ok(self
.get_encrypted_google_pay_payment_data_mandatory()?
.token_type
.clone())
} | crates/common_types/src/payments.rs | common_types | function_signature | 64 | rust | null | null | null | null | get_encrypted_token_type | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentProcessingDetails
{
"type": "object",
"required": [
"payment_processing_certificate",
"payment_processing_certificate_key"
],
"properties": {
"payment_processing_certificate": {
"type": "string"
},
"payment_processing_certificate_key": {
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 81 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentProcessingDetails"
] | null | null | null | null |
)?;
let payment_id = request
.payment_id
.clone()
.ok_or(report!(errors::ApiErrorResponse::PaymentNotFound))?;
let _request_straight_through: Option<api::routing::StraightThroughAlgorithm> = request
.routing
.clone()
.map(... | crates/router/src/core/payments/operations/payment_confirm.rs#chunk2 | router | chunk | 207 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Bitpay {} | crates/hyperswitch_connectors/src/connectors/bitpay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Bitpay | api::PaymentToken for | impl api::PaymentToken for for Bitpay | null | null | null | null | null | null | null | null |
impl ApiEventMetric for PollId {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Poll {
poll_id: self.poll_id.clone(),
})
}
} | crates/router/src/events/api_logs.rs | router | impl_block | 47 | rust | null | PollId | ApiEventMetric for | impl ApiEventMetric for for PollId | null | null | null | null | null | null | null | null |
pub fn new(payment_method_id: Option<String>, status: Option<String>) -> Self {
Self {
payment_method_id,
status,
modified_at: common_utils::date_time::now(),
}
} | crates/diesel_models/src/subscription.rs | diesel_models | function_signature | 45 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/hyperswitch_vault/transformers.rs
Public structs: 7
use common_utils::pii::Email;
use hyperswitch_domain_models::{
router_data::{ConnectorAuthType, RouterData},
router_flow_types::vault::ExternalVaultCreateFlow,
router_response_types::{PaymentsResponseDat... | crates/hyperswitch_connectors/src/connectors/hyperswitch_vault/transformers.rs | hyperswitch_connectors | full_file | 932 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct SepaBankTransferAdditionalData {
/// Partially masked international bank account number (iban) for SEPA
#[schema(value_type = String, example = "DE8937******013000")]
pub iban: MaskedIban,
/// Bank name
#[schema(value_type = Option<String>, example = "Deutsche Bank")]
pub bank_name: ... | crates/common_utils/src/payout_method_utils.rs | common_utils | struct_definition | 221 | rust | SepaBankTransferAdditionalData | null | null | null | null | null | null | null | null | null | null | null |
File: crates/common_enums/src/connector_enums.rs
Public functions: 16
use std::collections::HashSet;
use utoipa::ToSchema;
pub use super::enums::{PaymentMethod, PayoutType};
pub use crate::PaymentMethodType;
#[derive(
Clone,
Copy,
Debug,
Eq,
Hash,
PartialEq,
serde::Serialize,
serde:... | crates/common_enums/src/connector_enums.rs | common_enums | full_file | 7,610 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentsCompleteAuthorize for Mollie {} | crates/hyperswitch_connectors/src/connectors/mollie.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Mollie | api::PaymentsCompleteAuthorize for | impl api::PaymentsCompleteAuthorize for for Mollie | null | null | null | null | null | null | null | null |
File: crates/analytics/src/payments/metrics/sessionized_metrics/payments_distribution.rs
use std::collections::HashSet;
use api_models::analytics::{
payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier},
Granularity, TimeRange,
};
use common_utils::errors::ReportSwitchExt;
use error_st... | crates/analytics/src/payments/metrics/sessionized_metrics/payments_distribution.rs | analytics | full_file | 997 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundSync for Dlocal {} | crates/hyperswitch_connectors/src/connectors/dlocal.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Dlocal | api::RefundSync for | impl api::RefundSync for for Dlocal | null | null | null | null | null | null | null | null |
impl MerchantConnectorResponse {
pub fn to_merchant_connector_info(&self, connector_label: &String) -> MerchantConnectorInfo {
MerchantConnectorInfo {
connector_label: connector_label.to_string(),
merchant_connector_id: self.id.clone(),
}
}
} | crates/api_models/src/admin.rs | api_models | impl_block | 55 | rust | null | MerchantConnectorResponse | null | impl MerchantConnectorResponse | null | null | null | null | null | null | null | null |
impl ConnectorRedirectResponse for Airwallex {
fn get_flow_type(
&self,
_query_params: &str,
_json_payload: Option<serde_json::Value>,
action: PaymentAction,
) -> CustomResult<CallConnectorAction, errors::ConnectorError> {
match action {
PaymentAction::PSync
... | crates/hyperswitch_connectors/src/connectors/airwallex.rs | hyperswitch_connectors | impl_block | 106 | rust | null | Airwallex | ConnectorRedirectResponse for | impl ConnectorRedirectResponse for for Airwallex | null | null | null | null | null | null | null | null |
pub fn payments_capture() {} | crates/openapi/src/routes/payments.rs | openapi | function_signature | 6 | rust | null | null | null | null | payments_capture | null | null | null | null | null | null | null |
File: crates/openapi/src/routes/customers.rs
Public functions: 10
/// Customers - Create
///
/// Creates a customer object and stores the customer details to be reused for future payments.
/// Incase the customer already exists in the system, this API will respond with the customer details.
#[utoipa::path(
post,
... | crates/openapi/src/routes/customers.rs | openapi | full_file | 1,638 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl MerchantConnectorAccountTypeDetails {
pub fn get_connector_account_details(
&self,
) -> error_stack::Result<router_data::ConnectorAuthType, common_utils::errors::ParsingError>
{
match self {
Self::MerchantConnectorAccount(merchant_connector_account) => {
merc... | crates/hyperswitch_domain_models/src/merchant_connector_account.rs | hyperswitch_domain_models | impl_block | 513 | rust | null | MerchantConnectorAccountTypeDetails | null | impl MerchantConnectorAccountTypeDetails | null | null | null | null | null | null | null | null |
impl AuthToken {
pub async fn new_token(
user_id: String,
merchant_id: id_type::MerchantId,
role_id: String,
settings: &Settings,
org_id: id_type::OrganizationId,
profile_id: id_type::ProfileId,
tenant_id: Option<id_type::TenantId>,
) -> UserResult<String>... | crates/router/src/services/authentication.rs | router | impl_block | 168 | rust | null | AuthToken | null | impl AuthToken | null | null | null | null | null | null | null | null |
pub struct PaymentSession; | crates/router/src/core/payments/operations/payment_session.rs | router | struct_definition | 5 | rust | PaymentSession | null | null | null | null | null | null | null | null | null | null | null |
pub struct PayoutsUpdateInternal {
pub amount: Option<MinorUnit>,
pub destination_currency: Option<storage_enums::Currency>,
pub source_currency: Option<storage_enums::Currency>,
pub description: Option<String>,
pub recurring: Option<bool>,
pub auto_fulfill: Option<bool>,
pub return_url: Opt... | crates/hyperswitch_domain_models/src/payouts/payouts.rs | hyperswitch_domain_models | struct_definition | 191 | rust | PayoutsUpdateInternal | null | null | null | null | null | null | null | null | null | null | null |
pub fn from_store(
store: RouterStore<T>,
drainer_stream_name: String,
drainer_num_partitions: u8,
ttl_for_kv: u32,
soft_kill: Option<bool>,
) -> Self {
let request_id = store.request_id.clone();
Self {
router_store: store,
drainer_str... | crates/storage_impl/src/kv_router_store.rs | storage_impl | function_signature | 105 | rust | null | null | null | null | from_store | null | null | null | null | null | null | null |
File: crates/router/src/events/api_logs.rs
Public functions: 1
Public structs: 1
use actix_web::HttpRequest;
pub use common_utils::events::{ApiEventMetric, ApiEventsType};
use common_utils::impl_api_event_type;
use router_env::{tracing_actix_web::RequestId, types::FlowMetric};
use serde::Serialize;
use time::OffsetD... | crates/router/src/events/api_logs.rs | router | full_file | 1,206 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorRedirectResponse for Globalpay {
fn get_flow_type(
&self,
_query_params: &str,
_json_payload: Option<Value>,
action: PaymentAction,
) -> CustomResult<CallConnectorAction, errors::ConnectorError> {
match action {
PaymentAction::PSync
|... | crates/hyperswitch_connectors/src/connectors/globalpay.rs | hyperswitch_connectors | impl_block | 101 | rust | null | Globalpay | ConnectorRedirectResponse for | impl ConnectorRedirectResponse for for Globalpay | null | null | null | null | null | null | null | null |
File: crates/router/src/core/debit_routing.rs
Public functions: 4
Public structs: 1
use std::{collections::HashSet, fmt::Debug};
use api_models::{enums as api_enums, open_router};
use common_enums::enums;
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, id_type, types::keymanager::KeyManagerState... | crates/router/src/core/debit_routing.rs | router | full_file | 5,653 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn delete_card_from_hs_locker<'a>(
state: &routes::SessionState,
customer_id: &id_type::CustomerId,
merchant_id: &id_type::MerchantId,
card_reference: &'a str,
) -> errors::CustomResult<payment_methods::DeleteCardResp, errors::VaultError> {
let locker = &state.conf.locker;
let jwekey =... | crates/router/src/core/payment_methods/cards.rs | router | function_signature | 283 | rust | null | null | null | null | delete_card_from_hs_locker | null | null | null | null | null | null | null |
impl api::Refund for Datatrans {} | crates/hyperswitch_connectors/src/connectors/datatrans.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Datatrans | api::Refund for | impl api::Refund for for Datatrans | null | null | null | null | null | null | null | null |
pub async fn insert_process(self, conn: &PgPooledConn) -> StorageResult<ProcessTracker> {
generics::generic_insert(conn, self).await
} | crates/diesel_models/src/query/process_tracker.rs | diesel_models | function_signature | 36 | rust | null | null | null | null | insert_process | null | null | null | null | null | null | null |
impl fred::types::FromRedis for HsetnxReply {
fn from_value(value: fred::types::RedisValue) -> Result<Self, fred::error::RedisError> {
match value {
fred::types::RedisValue::Integer(1) => Ok(Self::KeySet),
fred::types::RedisValue::Integer(0) => Ok(Self::KeyNotSet),
_ => E... | crates/redis_interface/src/types.rs | redis_interface | impl_block | 122 | rust | null | HsetnxReply | fred::types::FromRedis for | impl fred::types::FromRedis for for HsetnxReply | null | null | null | null | null | null | null | null |
impl Capturable for CompleteAuthorizeData {
fn get_captured_amount<F>(
&self,
amount_captured: Option<i64>,
payment_data: &PaymentData<F>,
) -> Option<i64>
where
F: Clone,
{
amount_captured.or(Some(
payment_data
.payment_attempt
... | crates/router/src/types.rs | router | impl_block | 554 | rust | null | CompleteAuthorizeData | Capturable for | impl Capturable for for CompleteAuthorizeData | null | null | null | null | null | null | null | null |
pub struct AdminApiAuthWithMerchantIdFromRoute(pub id_type::MerchantId); | crates/router/src/services/authentication.rs | router | struct_definition | 17 | rust | AdminApiAuthWithMerchantIdFromRoute | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentMethodUpdateResponse {
pub payment_method_id: String,
pub status: Option<common_enums::PaymentMethodStatus>,
pub network_transaction_id: Option<String>,
pub connector_mandate_details: Option<pii::SecretSerdeValue>,
pub update_status: UpdateStatus,
#[serde(skip_serializing_if = ... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 96 | rust | PaymentMethodUpdateResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/core/user/theme.rs
Public functions: 13
use api_models::user::theme as theme_api;
use common_enums::EntityType;
use common_utils::{
ext_traits::{ByteSliceExt, Encode},
types::user::ThemeLineage,
};
use diesel_models::user::theme::{ThemeNew, ThemeUpdate};
use error_stack::ResultExt;
use... | crates/router/src/core/user/theme.rs | router | full_file | 3,980 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ZenMerchantActionData {
redirect_url: url::Url,
} | crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | ZenMerchantActionData | null | null | null | null | null | null | null | null | null | null | null |
impl QueueInterface for KafkaStore {
async fn fetch_consumer_tasks(
&self,
stream_name: &str,
group_name: &str,
consumer_name: &str,
) -> CustomResult<Vec<storage::ProcessTracker>, ProcessTrackerError> {
self.diesel_store
.fetch_consumer_tasks(stream_name, gro... | crates/router/src/db/kafka_store.rs | router | impl_block | 378 | rust | null | KafkaStore | QueueInterface for | impl QueueInterface for for KafkaStore | null | null | null | null | null | null | null | null |
Web Documentation: Previous Roadmap - Q1 2025 | Hyperswitch
# Type: Web Doc
🗺️ Our Roadmap typically pans out over a 3-month period and we establish topics we work on upfront.
👂And as always, we listen to your feedback and adapt our plans if needed.
Recap of Q4 2024
Dynamic Tax updater for express checkout wallets (... | https://docs.hyperswitch.io/about-hyperswitch/roadmap/roadmap-q1-2025 | null | web_doc_file | 1,645 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/about-hyperswitch/roadmap/roadmap-q1-2025 | Previous Roadmap - Q1 2025 | Hyperswitch | null |
Documentation: api-reference/v2/connector-account/connector-account--update.mdx
# Type: Doc File
---
openapi: put /v2/connector-accounts/{id}
--- | api-reference/v2/connector-account/connector-account--update.mdx | null | doc_file | 39 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/analytics/search.rs
Public functions: 1
Public structs: 12
use common_utils::{hashing::HashedString, types::TimeRange};
use masking::WithType;
use serde_json::Value;
#[derive(Clone, Debug, Default, serde::Deserialize, serde::Serialize)]
pub struct SearchFilters {
pub payment_method: ... | crates/api_models/src/analytics/search.rs | api_models | full_file | 958 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Breadpay {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&BREADPAY_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*BREADPAY_SUPPORTED_PAYMENT_METHODS)
}
fn get_s... | crates/hyperswitch_connectors/src/connectors/breadpay.rs | hyperswitch_connectors | impl_block | 108 | rust | null | Breadpay | ConnectorSpecifications for | impl ConnectorSpecifications for for Breadpay | null | null | null | null | null | null | null | null |
pub struct AirwallexPaymentsCaptureRequest {
// Unique ID to be sent for each transaction/operation request to the connector
request_id: String,
amount: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | 39 | rust | AirwallexPaymentsCaptureRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn find_processes_to_clean(
conn: &PgPooledConn,
time_lower_limit: PrimitiveDateTime,
time_upper_limit: PrimitiveDateTime,
runner: &str,
limit: usize,
) -> StorageResult<Vec<Self>> {
let mut x: Vec<Self> = generics::generic_filter::<
<Self as Has... | crates/diesel_models/src/query/process_tracker.rs | diesel_models | function_signature | 197 | rust | null | null | null | null | find_processes_to_clean | null | null | null | null | null | null | null |
Documentation: api-reference/v2/payment-methods/payment-method--payment-methods-list.mdx
# Type: Doc File
---
openapi: get /v2/payment-methods/{id}/list-enabled-payment-methods
---
| api-reference/v2/payment-methods/payment-method--payment-methods-list.mdx | null | doc_file | 46 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentService {
#[serde(rename = "@version")]
version: String,
#[serde(rename = "@merchantCode")]
merchant_code: Secret<String>,
#[serde(skip_serializing_if = "Option::is_none")]
submit: Option<Submit>,
#[serde(skip_serializing_if = "Option::is_none")]
pub reply: Option<Reply... | crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs | hyperswitch_connectors | struct_definition | 121 | rust | PaymentService | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_key_type(key: &str) -> Result<String, String> {
let key = dir::DirKeyKind::from_str(key).map_err(|_| "Invalid key received".to_string())?;
let key_str = key.get_type().to_string();
Ok(key_str)
} | crates/euclid_wasm/src/lib.rs | euclid_wasm | function_signature | 62 | rust | null | null | null | null | get_key_type | null | null | null | null | null | null | null |
pub struct DataKeyCreateResponse {
#[serde(flatten)]
pub identifier: Identifier,
pub key_version: String,
} | crates/common_utils/src/types/keymanager.rs | common_utils | struct_definition | 27 | rust | DataKeyCreateResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct Customer {
pub merchant_id: common_utils::id_type::MerchantId,
pub name: Option<Encryption>,
pub email: Option<Encryption>,
pub phone: Option<Encryption>,
pub phone_country_code: Option<String>,
pub description: Option<Description>,
pub created_at: PrimitiveDateTime,
pub metad... | crates/diesel_models/src/customers.rs | diesel_models | struct_definition | 224 | rust | Customer | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_fingerprint_id_from_vault<D: domain::VaultingDataInterface + serde::Serialize>(
state: &routes::SessionState,
data: &D,
key: String,
) -> CustomResult<String, errors::VaultError> {
let data = serde_json::to_string(data)
.change_context(errors::VaultError::RequestEncodingFailed)
... | crates/router/src/core/payment_methods/vault.rs | router | function_signature | 261 | rust | null | null | null | null | get_fingerprint_id_from_vault | null | null | null | null | null | null | null |
pub fn get_external_vault_connector_by_name(
_connectors: &Connectors,
connector: &enums::Connector,
connector_type: GetToken,
connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>,
) -> CustomResult<Self, errors::ApiErrorResponse> {
let connector_enum = Sel... | crates/router/src/types/api/connector_mapping.rs | router | function_signature | 199 | rust | null | null | null | null | get_external_vault_connector_by_name | null | null | null | null | null | null | null |
pub struct WellsfargoStandardErrorResponse {
pub error_information: Option<ErrorInformation>,
pub status: Option<String>,
pub message: Option<String>,
pub reason: Option<String>,
pub details: Option<Vec<Details>>,
} | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 49 | rust | WellsfargoStandardErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_merchant_id(&self) -> Option<&id_type::MerchantId> {
match self {
Self::ApiKey {
merchant_id,
key_id: _,
}
| Self::AdminApiAuthWithMerchantId { merchant_id }
| Self::MerchantId { merchant_id }
| Self::Publisha... | crates/router/src/services/authentication.rs | router | function_signature | 185 | rust | null | null | null | null | get_merchant_id | null | null | null | null | null | null | null |
File: crates/storage_impl/src/payments.rs
pub mod payment_attempt;
pub mod payment_intent;
use diesel_models::{payment_attempt::PaymentAttempt, PaymentIntent};
use crate::redis::kv_store::KvStorePartition;
impl KvStorePartition for PaymentIntent {}
impl KvStorePartition for PaymentAttempt {}
| crates/storage_impl/src/payments.rs | storage_impl | full_file | 62 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Coinbase {} | crates/hyperswitch_connectors/src/connectors/coinbase.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Coinbase | api::PaymentVoid for | impl api::PaymentVoid for for Coinbase | null | null | null | null | null | null | null | null |
pub struct GrpcClients {
/// The routing client
#[cfg(feature = "dynamic_routing")]
pub dynamic_routing: Option<RoutingStrategy>,
/// Health Check client for all gRPC services
#[cfg(feature = "dynamic_routing")]
pub health_client: HealthCheckClient,
/// Recovery Decider Client
#[cfg(feat... | crates/external_services/src/grpc_client.rs | external_services | struct_definition | 115 | rust | GrpcClients | null | null | null | null | null | null | null | null | null | null | null |
pub struct NovalnetPaymentsRequestMerchant {
signature: Secret<String>,
tariff: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | NovalnetPaymentsRequestMerchant | null | null | null | null | null | null | null | null | null | null | null |
impl<T> SecretStateContainer<T, SecuredSecret> {
/// Transition the secret state from `SecuredSecret` to `RawSecret`
pub fn transition_state(
mut self,
decryptor_fn: impl FnOnce(T) -> T,
) -> SecretStateContainer<T, RawSecret> {
self.inner = decryptor_fn(self.inner);
SecretSt... | crates/hyperswitch_interfaces/src/secrets_interface/secret_state.rs | hyperswitch_interfaces | impl_block | 97 | rust | null | SecretStateContainer | null | impl SecretStateContainer | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Braintree {} | crates/hyperswitch_connectors/src/connectors/braintree.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Braintree | api::MandateSetup for | impl api::MandateSetup for for Braintree | null | null | null | null | null | null | null | null |
pub fn get_payer_id(&self) -> Option<Secret<String>> {
match self {
Self::StandardIntegration(_) => None,
Self::PartnerIntegration(item) => Some(item.payer_id.clone()),
}
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | function_signature | 48 | rust | null | null | null | null | get_payer_id | null | null | null | null | null | null | null |
pub fn strip_jwt_token(token: &str) -> RouterResult<&str> {
token
.strip_prefix("Bearer ")
.ok_or_else(|| errors::ApiErrorResponse::InvalidJwtToken.into())
} | crates/router/src/services/authentication.rs | router | function_signature | 44 | rust | null | null | null | null | strip_jwt_token | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Volt {} | crates/hyperswitch_connectors/src/connectors/volt.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Volt | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Volt | null | null | null | null | null | null | null | null |
impl api::Payment for Bluesnap {} | crates/hyperswitch_connectors/src/connectors/bluesnap.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Bluesnap | api::Payment for | impl api::Payment for for Bluesnap | null | null | null | null | null | null | null | null |
File: crates/common_utils/src/request.rs
Public functions: 19
Public structs: 2
use masking::{Maskable, Secret};
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;
pub type Headers = std::collections::HashSet<(String, Maskable<String>)>;
#[derive(
Clone,
Copy,
Debug,
Eq,
PartialEq,
... | crates/common_utils/src/request.rs | common_utils | full_file | 1,327 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn construct_payment_router_data_for_capture<'a>(
state: &'a SessionState,
payment_data: hyperswitch_domain_models::payments::PaymentCaptureData<api::Capture>,
connector_id: &str,
merchant_context: &domain::MerchantContext,
customer: &'a Option<domain::Customer>,
merchant_connector_acc... | crates/router/src/core/payments/transformers.rs | router | function_signature | 1,373 | rust | null | null | null | null | construct_payment_router_data_for_capture | null | null | null | null | null | null | null |
/// Data for the split items
pub struct AdyenSplitItem {
/// The amount of the split item
#[schema(value_type = i64, example = 6540)]
pub amount: Option<MinorUnit>,
/// Defines type of split item
#[schema(value_type = AdyenSplitType, example = "BalanceAccount")]
pub split_type: enums::AdyenSplit... | crates/common_types/src/domain.rs | common_types | struct_definition | 151 | rust | AdyenSplitItem | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ApplePayRecurringDetails
{
"type": "object",
"required": [
"payment_description",
"regular_billing",
"management_url"
],
"properties": {
"payment_description": {
"type": "string",
"description": "A description of the recurring payment that Apple... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 215 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ApplePayRecurringDetails"
] | null | null | null | null |
pub struct NexixpayOperationResponse {
operation_id: String,
} | crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | NexixpayOperationResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/zen.rs
Public structs: 1
pub mod transformers;
use std::{fmt::Debug, sync::LazyLock};
use api_models::webhooks::IncomingWebhookEvent;
use common_enums::{enums, CallConnectorAction, PaymentAction};
use common_utils::{
crypto,
errors::CustomResult,
ext_tra... | crates/hyperswitch_connectors/src/connectors/zen.rs | hyperswitch_connectors | full_file | 6,823 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn enable_decision_engine_dynamic_routing_setup(
state: &SessionState,
profile_id: &id_type::ProfileId,
dynamic_routing_type: routing_types::DynamicRoutingType,
dynamic_routing_algo_ref: &mut routing_types::DynamicRoutingAlgorithmRef,
payload: Option<routing_types::DynamicRoutingPayload>,
... | crates/router/src/core/routing/helpers.rs | router | function_signature | 646 | rust | null | null | null | null | enable_decision_engine_dynamic_routing_setup | null | null | null | null | null | null | null |
pub async fn merchant_account_enable_platform_account(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<common_utils::id_type::MerchantId>,
) -> HttpResponse {
let flow = Flow::EnablePlatformAccount;
let merchant_id = path.into_inner();
Box::pin(api::server_wrap(
flow,
... | crates/router/src/routes/admin.rs | router | function_signature | 127 | rust | null | null | null | null | merchant_account_enable_platform_account | null | null | null | null | null | null | null |
pub struct UserRoleUpdateInternal {
role_id: Option<String>,
status: Option<enums::UserStatus>,
last_modified_by: Option<String>,
last_modified: PrimitiveDateTime,
} | crates/diesel_models/src/user_role.rs | diesel_models | struct_definition | 39 | rust | UserRoleUpdateInternal | null | null | null | null | null | null | null | null | null | null | null |
pub struct BillwerkTokenRequest {
number: cards::CardNumber,
month: Secret<String>,
year: Secret<String>,
cvv: Secret<String>,
pkey: Secret<String>,
recurring: Option<bool>,
intent: Option<BillwerkTokenRequestIntent>,
strong_authentication_rule: Option<BillwerkStrongAuthRule>,
} | crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | hyperswitch_connectors | struct_definition | 72 | rust | BillwerkTokenRequest | null | null | null | null | null | null | null | null | null | null | null |
/// Indicates whether the payment intent is in terminal state or not
pub fn is_in_terminal_state(self) -> bool {
match self {
Self::Succeeded
| Self::Failed
| Self::Cancelled
| Self::CancelledPostCapture
| Self::PartiallyCaptured
| Self... | crates/common_enums/src/enums.rs | common_enums | function_signature | 151 | rust | null | null | null | null | is_in_terminal_state | null | null | null | null | null | null | null |
pub struct CreditorAccountReference {
/// RF or Invoice for FI Sepa payments, OCR for NO Kid payments and 01, 04, 15, 71, 73 or 75 for Danish Transfer Form payments.
#[serde(rename = "_type")]
pub creditor_reference_type: String,
/// Actual reference number
#[serde(skip_serializing_if = "Option::is_... | crates/hyperswitch_connectors/src/connectors/nordea/requests.rs | hyperswitch_connectors | struct_definition | 98 | rust | CreditorAccountReference | null | null | null | null | null | null | null | null | null | null | null |
pub async fn delete_by_theme_id(conn: &PgPooledConn, theme_id: String) -> StorageResult<Self> {
generics::generic_delete_one_with_result::<<Self as HasTable>::Table, _, _>(
conn,
dsl::theme_id.eq(theme_id),
)
.await
} | crates/diesel_models/src/query/user/theme.rs | diesel_models | function_signature | 67 | rust | null | null | null | null | delete_by_theme_id | null | null | null | null | null | null | null |
pub fn generate_exp(
exp_duration: std::time::Duration,
) -> CustomResult<std::time::Duration, UserErrors> {
std::time::SystemTime::now()
.checked_add(exp_duration)
.ok_or(UserErrors::InternalServerError)?
.duration_since(std::time::UNIX_EPOCH)
.change_context(UserErrors::Interna... | crates/router/src/services/jwt.rs | router | function_signature | 77 | rust | null | null | null | null | generate_exp | null | null | null | null | null | null | null |
pub struct DummyConnectorPaymentRequest {
pub amount: i64,
pub currency: Currency,
pub payment_method_data: DummyConnectorPaymentMethodData,
pub return_url: Option<String>,
pub connector: DummyConnectors,
} | crates/router/src/routes/dummy_connector/types.rs | router | struct_definition | 50 | rust | DummyConnectorPaymentRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/external_services/src/no_encryption/core.rs
Public functions: 2
Public structs: 1
//! No encryption core functionalities
/// No encryption type
#[derive(Debug, Clone)]
pub struct NoEncryption;
impl NoEncryption {
/// Encryption functionality
pub fn encrypt(&self, data: impl AsRef<[u8]>) -> Vec... | crates/external_services/src/no_encryption/core.rs | external_services | full_file | 127 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentCapture for Mifinity {} | crates/hyperswitch_connectors/src/connectors/mifinity.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Mifinity | api::PaymentCapture for | impl api::PaymentCapture for for Mifinity | null | null | null | null | null | null | null | null |
impl ToTokens for DieselEnumMeta {
fn to_tokens(&self, tokens: &mut TokenStream) {
match self {
Self::StorageTypeEnum { keyword, .. } => keyword.to_tokens(tokens),
}
}
} | crates/router_derive/src/macros/diesel.rs | router_derive | impl_block | 48 | rust | null | DieselEnumMeta | ToTokens for | impl ToTokens for for DieselEnumMeta | null | null | null | null | null | null | null | null |
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<GenericLinkState> {
generics::generic_insert(conn, self)
.await
.and_then(|res: GenericLink| {
GenericLinkState::try_from(res)
.change_context(db_errors::DatabaseError::Others)
... | crates/diesel_models/src/query/generic_link.rs | diesel_models | function_signature | 87 | rust | null | null | null | null | insert | null | null | null | null | null | null | null |
pub struct HelcimPaymentsRequest {
amount: FloatMajorUnit,
currency: enums::Currency,
ip_address: Secret<String, IpAddress>,
card_data: HelcimCard,
invoice: HelcimInvoice,
billing_address: HelcimBillingAddress,
//The ecommerce field is an optional field in Connector Helcim.
//Setting the... | crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | hyperswitch_connectors | struct_definition | 111 | rust | HelcimPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
impl super::KafkaMessage for KafkaRefundEvent<'_> {
fn key(&self) -> String {
format!(
"{}_{}_{}_{}",
self.merchant_id.get_string_repr(),
self.payment_id.get_string_repr(),
self.attempt_id,
self.refund_id
)
}
fn event_type(&self) ->... | crates/router/src/services/kafka/refund_event.rs | router | impl_block | 89 | rust | null | KafkaRefundEvent | super::KafkaMessage for | impl super::KafkaMessage for for KafkaRefundEvent | null | null | null | null | null | null | null | null |
let connector = payment_attempt
.connector
.clone()
.ok_or(errors::ApiErrorResponse::InternalServerError)
.attach_printable("No connector populated in payment attempt")?;
let (connector_transaction_id, processor_transaction_data) =
common_utils_types::ConnectorTransactio... | crates/router/src/core/refunds_v2.rs#chunk1 | router | chunk | 2,540 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct Bankofamerica {
amount_convertor: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/bankofamerica.rs | hyperswitch_connectors | struct_definition | 30 | rust | Bankofamerica | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/core/errors.rs
Public functions: 1
Public structs: 2
pub mod chat;
pub mod customers_error_response;
pub mod error_handlers;
pub mod transformers;
#[cfg(feature = "olap")]
pub mod user;
pub mod utils;
use std::fmt::Display;
pub use ::payment_methods::core::errors::VaultError;
use actix_web:... | crates/router/src/core/errors.rs | router | full_file | 4,143 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Worldpayvantiv {
fn validate_mandate_payment(
&self,
pm_type: Option<api_models::enums::PaymentMethodType>,
pm_data: PaymentMethodData,
) -> CustomResult<(), errors::ConnectorError> {
let mandate_supported_pmd = std::collections::HashSet::from([
... | crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs | hyperswitch_connectors | impl_block | 131 | rust | null | Worldpayvantiv | ConnectorValidation for | impl ConnectorValidation for for Worldpayvantiv | null | null | null | null | null | null | null | null |
Web Documentation: Previous Roadmap - Q2 2024 | Hyperswitch
# Type: Web Doc
🗺️ Our Roadmap typically pans out over a 3-month period and we establish topics we work on upfront.
👂And as always, we listen to your feedback and adapt our plans if needed.
Recap of Q1 2024
Lets start with a short recap on what was released... | https://docs.hyperswitch.io/about-hyperswitch/roadmap/roadmap-q2-2024 | null | web_doc_file | 1,232 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/about-hyperswitch/roadmap/roadmap-q2-2024 | Previous Roadmap - Q2 2024 | Hyperswitch | null |
impl SearchFilters {
pub fn is_all_none(&self) -> bool {
self.payment_method.is_none()
&& self.currency.is_none()
&& self.status.is_none()
&& self.customer_email.is_none()
&& self.search_tags.is_none()
&& self.connector.is_none()
&& sel... | crates/api_models/src/analytics/search.rs | api_models | impl_block | 113 | rust | null | SearchFilters | null | impl SearchFilters | null | null | null | null | null | null | null | null |
pub struct PayuAccessTokenErrorResponse {
pub error: String,
pub error_description: String,
} | crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | PayuAccessTokenErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct FiuuRecurringResponse {
status: FiuuRecurringStautus,
#[serde(rename = "orderid")]
order_id: String,
#[serde(rename = "tranID")]
tran_id: Option<String>,
reason: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | 58 | rust | FiuuRecurringResponse | null | null | null | null | null | null | null | null | null | null | null |
impl MerchantAccountUpdate {
pub fn get_merchant_details_as_secret(
&self,
) -> CustomResult<Option<pii::SecretSerdeValue>, errors::ParsingError> {
self.merchant_details
.as_ref()
.map(|merchant_details| merchant_details.encode_to_value().map(Secret::new))
.tr... | crates/api_models/src/admin.rs | api_models | impl_block | 140 | rust | null | MerchantAccountUpdate | null | impl MerchantAccountUpdate | null | null | null | null | null | null | null | null |
pub async fn get_client_secret_or_add_payment_method(
state: &routes::SessionState,
req: api::PaymentMethodCreate,
merchant_context: &domain::MerchantContext,
) -> errors::RouterResponse<api::PaymentMethodResponse> {
let merchant_id = merchant_context.get_merchant_account().get_id();
let customer_id... | crates/router/src/core/payment_methods/cards.rs | router | function_signature | 571 | rust | null | null | null | null | get_client_secret_or_add_payment_method | 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.