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/tests/connectors/celero.rs
use masking::Secret;
use router::types::{self, api, domain, storage::enums};
use test_utils::connector_auth;
use crate::utils::{self, ConnectorActions};
#[derive(Clone, Copy)]
struct CeleroTest;
impl ConnectorActions for CeleroTest {}
impl utils::Connector for CeleroTes... | crates/router/tests/connectors/celero.rs | router | full_file | 2,924 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn migrate_payment_method(
state: &state::PaymentMethodsState,
req: pm_api::PaymentMethodMigrate,
merchant_id: &id_type::MerchantId,
merchant_context: &merchant_context::MerchantContext,
controller: &dyn PaymentMethodsController,
) -> CustomResult<ApplicationResponse<pm_api::PaymentMethodM... | crates/payment_methods/src/core/migration/payment_methods.rs | payment_methods | function_signature | 886 | rust | null | null | null | null | migrate_payment_method | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ThreeDsMethodData
{
"oneOf": [
{
"type": "object",
"required": [
"three_ds_method_data_submission",
"three_ds_method_key"
],
"properties": {
"three_ds_method_data_submission": {
"type": "boolean",
"descripti... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 211 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ThreeDsMethodData"
] | null | null | null | null |
pub async fn get_org_refund_filters(
state: web::Data<AppState>,
req: actix_web::HttpRequest,
json_payload: web::Json<GetRefundFilterRequest>,
) -> impl Responder {
let flow = AnalyticsFlow::GetRefundFilters;
Box::pin(api::server_wrap(
flow,
state,
... | crates/router/src/analytics.rs | router | function_signature | 248 | rust | null | null | null | null | get_org_refund_filters | null | null | null | null | null | null | null |
pub fn get_payment_method_data(&self) -> Option<api_models::payments::AdditionalPaymentData> {
self.payment_method_data
.clone()
.and_then(|data| match data {
serde_json::Value::Null => None,
_ => Some(data.parse_value("AdditionalPaymentData")),
... | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | function_signature | 102 | rust | null | null | null | null | get_payment_method_data | null | null | null | null | null | null | null |
pub async fn tokio_mock_sleep(delay: u64, tolerance: u64) {
let mut rng = rand::thread_rng();
// TODO: change this to `Uniform::try_from`
// this would require changing the fn signature
// to return a Result
let effective_delay = Uniform::from((delay - tolerance)..(delay + tolerance));
tokio::sl... | crates/router/src/routes/dummy_connector/utils.rs | router | function_signature | 107 | rust | null | null | null | null | tokio_mock_sleep | null | null | null | null | null | null | null |
impl GlobalPaymentMethodSessionId {
/// Create a new GlobalPaymentMethodSessionId from cell id information
pub fn generate(
cell_id: &CellId,
) -> error_stack::Result<Self, GlobalPaymentMethodSessionIdError> {
let global_id = GlobalId::generate(cell_id, GlobalEntity::PaymentMethodSession);
... | crates/common_utils/src/id_type/global_id/payment_methods.rs | common_utils | impl_block | 155 | rust | null | GlobalPaymentMethodSessionId | null | impl GlobalPaymentMethodSessionId | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/facilitapay/responses.rs
Public structs: 16
use common_utils::{pii, types::StringMajorUnit};
use masking::Secret;
use serde::{Deserialize, Serialize};
use super::requests::DocumentType;
// Response body for POST /sign_in
#[derive(Debug, Deserialize, Serialize)]
pub... | crates/hyperswitch_connectors/src/connectors/facilitapay/responses.rs | hyperswitch_connectors | full_file | 2,518 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors.rs
pub mod aci;
pub mod adyen;
pub mod adyenplatform;
pub mod affirm;
pub mod airwallex;
pub mod amazonpay;
pub mod archipel;
pub mod authipay;
pub mod authorizedotnet;
pub mod bambora;
pub mod bamboraapac;
pub mod bankofamerica;
pub mod barclaycard;
pub mod billwerk;... | crates/hyperswitch_connectors/src/connectors.rs | hyperswitch_connectors | full_file | 1,656 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentGet; | crates/router/src/core/payments/operations/payment_get.rs | router | struct_definition | 5 | rust | PaymentGet | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/nomupay.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::time::{Duration, SystemTime, UNIX_EPOCH};
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
pii,
request::{Method, RequestContent},
};
#[cfg(feature = "pa... | crates/hyperswitch_connectors/src/connectors/nomupay.rs | hyperswitch_connectors | full_file | 6,297 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn set_distinct(&mut self) {
self.distinct = true
} | crates/analytics/src/query.rs | analytics | function_signature | 19 | rust | null | null | null | null | set_distinct | null | null | null | null | null | null | null |
impl PaymentMethodsStorageInterface for KafkaStore {} | crates/router/src/db/kafka_store.rs | router | impl_block | 9 | rust | null | KafkaStore | PaymentMethodsStorageInterface for | impl PaymentMethodsStorageInterface for for KafkaStore | null | null | null | null | null | null | null | null |
pub fn to_json_string<T: Serialize>(value: &T) -> String {
serde_json::to_string(value)
.map_err(|_| errors::RoutingError::GenericConversionError {
from: "T".to_string(),
to: "JsonValue".to_string(),
})
.unwrap_or_default()
} | crates/router/src/core/payments/routing/utils.rs | router | function_signature | 67 | rust | null | null | null | null | to_json_string | null | null | null | null | null | null | null |
File: crates/api_models/src/errors/types.rs
Public functions: 2
Public structs: 3
use reqwest::StatusCode;
use router_derive::PolymorphicSchema;
use serde::Serialize;
use utoipa::ToSchema;
#[derive(Debug, serde::Serialize)]
pub enum ErrorType {
InvalidRequestError,
RouterError,
ConnectorError,
}
#[deri... | crates/api_models/src/errors/types.rs | api_models | full_file | 1,290 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct GpaymentsConnectorMetaData {
pub authentication_url: String,
pub three_ds_requestor_trans_id: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/gpayments/gpayments_types.rs | hyperswitch_connectors | struct_definition | 27 | rust | GpaymentsConnectorMetaData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn tokenize_card_using_pm_api() {} | crates/openapi/src/routes/payment_method.rs | openapi | function_signature | 10 | rust | null | null | null | null | tokenize_card_using_pm_api | null | null | null | null | null | null | null |
File: crates/analytics/src/sqlx.rs
Public functions: 1
Public structs: 1
use std::{fmt::Display, str::FromStr};
use api_models::{
analytics::{frm::FrmTransactionType, refunds::RefundType},
enums::{DisputeStage, DisputeStatus},
};
use common_enums::{
AuthenticationConnectors, AuthenticationStatus, Decoup... | crates/analytics/src/sqlx.rs#chunk0 | analytics | chunk | 8,191 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/currency_conversion/src/error.rs
#[derive(Debug, thiserror::Error, serde::Serialize)]
#[serde(tag = "type", content = "info", rename_all = "snake_case")]
pub enum CurrencyConversionError {
#[error("Currency Conversion isn't possible")]
DecimalMultiplicationFailed,
#[error("Currency not support... | crates/currency_conversion/src/error.rs | currency_conversion | full_file | 83 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct BankAccountDetail {
pub routing_number: Option<Secret<String>>,
pub pix_info: Option<PixInfo>,
pub owner_name: Option<Secret<String>>,
pub owner_document_type: Option<String>,
pub owner_document_number: Option<Secret<String>>,
pub owner_company: Option<OwnerCompany>,
pub internal:... | crates/hyperswitch_connectors/src/connectors/facilitapay/responses.rs | hyperswitch_connectors | struct_definition | 195 | rust | BankAccountDetail | null | null | null | null | null | null | null | null | null | null | null |
pub async fn pg_connection(
pool: &PgPool,
) -> PooledConnection<'_, async_bb8_diesel::ConnectionManager<PgConnection>> {
pool.get()
.await
.expect("Couldn't retrieve PostgreSQL connection")
} | crates/drainer/src/connection.rs | drainer | function_signature | 52 | rust | null | null | null | null | pg_connection | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.CtpServiceProvider
{
"type": "string",
"enum": [
"visa",
"mastercard"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 37 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"CtpServiceProvider"
] | null | null | null | null |
pub struct CalSuccessRateEventRequest {
pub id: String,
pub params: String,
pub labels: Vec<String>,
pub config: Option<CalSuccessRateConfigEventRequest>,
} | crates/router/src/core/payments/routing/utils.rs | router | struct_definition | 41 | rust | CalSuccessRateEventRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaypalPayoutItem {
amount: PayoutAmount,
note: Option<String>,
notification_language: String,
#[serde(flatten)]
payout_method_data: PaypalPayoutMethodData,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 44 | rust | PaypalPayoutItem | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/bluesnap.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use api_models::webhooks::IncomingWebhookEvent;
use base64::Engine;
use common_enums::{enums, CallConnectorAction, PaymentAction};
use common_utils::{
consts::BASE... | crates/hyperswitch_connectors/src/connectors/bluesnap.rs#chunk0 | hyperswitch_connectors | chunk | 8,187 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl UserRoleInterface for KafkaStore {
async fn insert_user_role(
&self,
user_role: storage::UserRoleNew,
) -> CustomResult<user_storage::UserRole, errors::StorageError> {
self.diesel_store.insert_user_role(user_role).await
}
async fn find_user_role_by_user_id_and_lineage(
... | crates/router/src/db/kafka_store.rs | router | impl_block | 702 | rust | null | KafkaStore | UserRoleInterface for | impl UserRoleInterface for for KafkaStore | null | null | null | null | null | null | null | null |
pub struct GetUserAuthenticationMethodsRequest {
pub auth_id: Option<String>,
pub email_domain: Option<String>,
} | crates/api_models/src/user.rs | api_models | struct_definition | 24 | rust | GetUserAuthenticationMethodsRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::PayoutCancel for Wise {} | crates/hyperswitch_connectors/src/connectors/wise.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Wise | api::PayoutCancel for | impl api::PayoutCancel for for Wise | null | null | null | null | null | null | null | null |
pub fn new(
id: String,
callback_mapper_id_type: common_enums::CallbackMapperIdType,
data: CallbackMapperData,
created_at: time::PrimitiveDateTime,
last_modified_at: time::PrimitiveDateTime,
) -> Self {
Self {
id,
callback_mapper_id_type,
... | crates/hyperswitch_domain_models/src/callback_mapper.rs | hyperswitch_domain_models | function_signature | 83 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct CancelResponseData {
pub statuses: Statuses,
pub descriptor: String,
pub notifications: NotificationContainer,
#[serde(rename = "merchant-account-id")]
pub merchant_account_id: MerchantAccountId,
#[serde(rename = "transaction-id")]
pub transaction_id: String,
#[serde(rename = ... | crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | hyperswitch_connectors | struct_definition | 301 | rust | CancelResponseData | null | null | null | null | null | null | null | null | null | null | null |
pub fn validate_payment_order_age(
created_at: &PrimitiveDateTime,
refund_max_age: i64,
) -> CustomResult<(), RefundValidationError> {
let current_time = common_utils::date_time::now();
utils::when(
(current_time - *created_at).whole_days() > refund_max_age,
|| Err(report!(RefundValidat... | crates/router/src/core/utils/refunds_validator.rs | router | function_signature | 84 | rust | null | null | null | null | validate_payment_order_age | null | null | null | null | null | null | null |
pub struct FiservChargesResponse {
pub gateway_response: GatewayResponse,
pub payment_receipt: PaymentReceipt,
} | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | FiservChargesResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_connector_by_connector_name(
state: &SessionState,
connector_name: &str,
merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>,
) -> CustomResult<(ConnectorEnum, String), errors::ApiErrorResponse> {
let authentication_connector =
api_models::enums::convert_a... | crates/router/src/core/webhooks/incoming.rs | router | function_signature | 321 | rust | null | null | null | null | get_connector_by_connector_name | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
Public functions: 2
Public structs: 57
use api_models::payments;
use base64::Engine;
use common_enums::{enums, FutureUsage};
use common_types::payments::ApplePayPredecryptData;
use common_utils::{
consts, pii,
types::{SemanticVersi... | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs#chunk0 | hyperswitch_connectors | chunk | 8,191 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/plaid.rs
use masking::Secret;
use router::types::{self, api, domain, storage::enums};
use test_utils::connector_auth;
use crate::utils::{self, Connector, ConnectorActions};
#[derive(Clone, Copy)]
struct PlaidTest;
impl ConnectorActions for PlaidTest {}
static CONNECTOR: PlaidTes... | crates/router/tests/connectors/plaid.rs | router | full_file | 2,920 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct VgsTokenRequestItem {
value: Secret<String>,
classifiers: Vec<String>,
format: String,
} | crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | VgsTokenRequestItem | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_status(&self) -> String {
match self {
Self::String(val) => val.clone(),
Self::Number(val) => val.to_string(),
}
} | crates/hyperswitch_connectors/src/connectors/wise/transformers.rs | hyperswitch_connectors | function_signature | 39 | rust | null | null | null | null | get_status | null | null | null | null | null | null | null |
pub async fn find_mca_from_authentication_id_type(
state: &SessionState,
authentication_id_type: webhooks::AuthenticationIdType,
merchant_context: &domain::MerchantContext,
) -> CustomResult<domain::MerchantConnectorAccount, errors::ApiErrorResponse> {
let db = &*state.store;
let authentication = ma... | crates/router/src/utils.rs | router | function_signature | 413 | rust | null | null | null | null | find_mca_from_authentication_id_type | null | null | null | null | null | null | null |
pub struct ResponsePaymentMethodIntermediate {
pub payment_method_type: api_enums::PaymentMethodType,
pub payment_experience: Option<api_enums::PaymentExperience>,
pub card_networks: Option<Vec<api_enums::CardNetwork>>,
pub payment_method: api_enums::PaymentMethod,
pub connector: String,
pub mer... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 78 | rust | ResponsePaymentMethodIntermediate | null | null | null | null | null | null | null | null | null | null | null |
pub struct PlatformOrgAdminAuth {
pub is_admin_auth_allowed: bool,
pub organization_id: Option<id_type::OrganizationId>,
} | crates/router/src/services/authentication.rs | router | struct_definition | 30 | rust | PlatformOrgAdminAuth | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Mpgs {} | crates/hyperswitch_connectors/src/connectors/mpgs.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Mpgs | api::PaymentSync for | impl api::PaymentSync for for Mpgs | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::ToggleDynamicRouting;
let routing_payload_wrapper = routing_types::ContractBasedRoutingSetupPayloadWrapper {
config: json_payload.map(|json| json.into_inner()),
profile_id: path.into_inner().profile_id,
features_to_enable: query.into_inner().enable,
... | crates/router/src/routes/routing.rs | router | impl_block | 288 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct XenditRouterData<T> {
pub amount: FloatMajorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc.
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | hyperswitch_connectors | struct_definition | 51 | rust | XenditRouterData | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/routing/routing--evaluate.mdx
# Type: Doc File
---
openapi: post /routing/evaluate
---
| api-reference/v1/routing/routing--evaluate.mdx | null | doc_file | 32 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn find_merchant_scoped_dashboard_metadata(
conn: &PgPooledConn,
merchant_id: id_type::MerchantId,
org_id: id_type::OrganizationId,
data_types: Vec<enums::DashboardMetadata>,
) -> StorageResult<Vec<Self>> {
let predicate = dsl::merchant_id
.eq(merchant_i... | crates/diesel_models/src/query/dashboard_metadata.rs | diesel_models | function_signature | 150 | rust | null | null | null | null | find_merchant_scoped_dashboard_metadata | null | null | null | null | null | null | null |
pub struct AmazonpayFinalizeResponse {
checkout_session_id: String,
web_checkout_details: WebCheckoutDetails,
product_type: Option<String>,
payment_details: Option<PaymentDetails>,
cart_details: CartDetails,
charge_permission_type: String,
order_type: Option<String>,
recurring_metadata: ... | crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs | hyperswitch_connectors | struct_definition | 267 | rust | AmazonpayFinalizeResponse | null | null | null | null | null | null | null | null | null | null | null |
/// Payments - List
///
/// To list the *payments*
#[cfg(feature = "v1")]
#[utoipa::path(
get,
path = "/payments/list",
params(
("customer_id" = Option<String>, Query, description = "The identifier for the customer"),
("starting_after" = Option<String>, Query, description = "A cursor for us... | crates/openapi/src/routes/payments.rs#chunk1 | openapi | chunk | 3,617 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/connector_configs/src/lib.rs
pub mod common_config;
pub mod connector;
pub mod response_modifier;
pub mod transformer;
| crates/connector_configs/src/lib.rs | connector_configs | full_file | 28 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundResponse {
charge_id: String,
refund_status: String,
} | crates/hyperswitch_connectors/src/connectors/boku/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ApiKeyExpiration
{
"oneOf": [
{
"type": "string",
"enum": [
"never"
]
},
{
"type": "string",
"format": "date-time"
}
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 63 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ApiKeyExpiration"
] | null | null | null | null |
pub async fn add_entry_to_blocklist(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<api_blocklist::AddToBlocklistRequest>,
) -> HttpResponse {
let flow = Flow::AddToBlocklist;
Box::pin(api::server_wrap(
flow,
state,
&req,
json_payload.into_inner... | crates/router/src/routes/blocklist.rs | router | function_signature | 221 | rust | null | null | null | null | add_entry_to_blocklist | null | null | null | null | null | null | null |
impl api::PaymentVoid for Deutschebank {} | crates/hyperswitch_connectors/src/connectors/deutschebank.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Deutschebank | api::PaymentVoid for | impl api::PaymentVoid for for Deutschebank | null | null | null | null | null | null | null | null |
impl ApiKey {
pub async fn update_by_merchant_id_key_id(
conn: &PgPooledConn,
merchant_id: common_utils::id_type::MerchantId,
key_id: common_utils::id_type::ApiKeyId,
api_key_update: ApiKeyUpdate,
) -> StorageResult<Self> {
match generics::generic_update_with_unique_predi... | crates/diesel_models/src/query/api_keys.rs | diesel_models | impl_block | 712 | rust | null | ApiKey | null | impl ApiKey | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.BlocklistResponse
{
"type": "object",
"required": [
"fingerprint_id",
"data_kind",
"created_at"
],
"properties": {
"fingerprint_id": {
"type": "string"
},
"data_kind": {
"$ref": "#/components/schemas/BlocklistDataKind"
},
"create... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 113 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"BlocklistResponse"
] | null | null | null | null |
pub struct BankRedirectionPMData {
payment_brand: PaymentBrand,
#[serde(rename = "bankAccount.country")]
bank_account_country: Option<api_models::enums::CountryAlpha2>,
#[serde(rename = "bankAccount.bankName")]
bank_account_bank_name: Option<common_enums::BankNames>,
#[serde(rename = "bankAccoun... | crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | hyperswitch_connectors | struct_definition | 188 | rust | BankRedirectionPMData | null | null | null | null | null | null | null | null | null | null | null |
Web Documentation: Security and Compliance | Hyperswitch
# Type: Web Doc
At Hyperswitch, we redefine how businesses handle payments by delivering secure, reliable, and scalable solutions tailored to your unique needs. Whether you're managing subscriptions, running a global marketplace, or scaling your e-commerce platf... | https://docs.hyperswitch.io/explore-hyperswitch/security-and-compliance | null | web_doc_file | 291 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/explore-hyperswitch/security-and-compliance | Security and Compliance | Hyperswitch | null |
pub fn get_dispute_status(
dispute_cycle: String,
dispute_activities: Vec<Activity>,
) -> Result<common_enums::DisputeStatus, error_stack::Report<errors::ConnectorError>> {
if let Some(activity) = get_last_non_auxiliary_activity_type(dispute_activities) {
match activity.as_ref() {
"Merch... | crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs | hyperswitch_connectors | function_signature | 798 | rust | null | null | null | null | get_dispute_status | null | null | null | null | null | null | null |
pub struct ReverseLookup {
/// Primary key. The key id.
pub lookup_id: String,
/// the `field` in KV database. Which is used to differentiate between two same keys
pub sk_id: String,
/// the value id. i.e the id you want to access KV table.
pub pk_id: String,
/// the source of insertion for ... | crates/diesel_models/src/reverse_lookup.rs | diesel_models | struct_definition | 95 | rust | ReverseLookup | null | null | null | null | null | null | null | null | null | null | null |
pub async fn pg_accounts_connection_write<T: storage_impl::DatabaseStore>(
store: &T,
) -> errors::CustomResult<
PooledConnection<'_, async_bb8_diesel::ConnectionManager<PgConnection>>,
storage_errors::StorageError,
> {
// Since all writes should happen to master DB only choose master DB.
let pool =... | crates/router/src/connection.rs | router | function_signature | 103 | rust | null | null | null | null | pg_accounts_connection_write | null | null | null | null | null | null | null |
pub struct ToggleBlocklistQuery {
#[schema(value_type = BlocklistDataKind)]
pub status: bool,
} | crates/api_models/src/blocklist.rs | api_models | struct_definition | 25 | rust | ToggleBlocklistQuery | null | null | null | null | null | null | null | null | null | null | null |
impl ThreeDSDecisionRule {
/// Returns the decision
pub fn get_decision(&self) -> ThreeDSDecision {
self.decision
}
} | crates/common_types/src/three_ds_decision_rule_engine.rs | common_types | impl_block | 33 | rust | null | ThreeDSDecisionRule | null | impl ThreeDSDecisionRule | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMinorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/worldpayxml.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct BluesnapDisputeWebhookBody {
pub invoice_charge_amount: FloatMajorUnit,
pub currency: enums::Currency,
pub reversal_reason: Option<String>,
pub reversal_ref_num: String,
pub cb_status: String,
} | crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | hyperswitch_connectors | struct_definition | 52 | rust | BluesnapDisputeWebhookBody | null | null | null | null | null | null | null | null | null | null | null |
pub struct SignifydRefund {
method: RefundMethod,
amount: String,
currency: Currency,
} | crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs | hyperswitch_connectors | struct_definition | 26 | rust | SignifydRefund | null | null | null | null | null | null | null | null | null | null | null |
pub struct HeaderPayload {
/// The source with which the payment is confirmed.
pub payment_confirm_source: Option<common_enums::PaymentSource>,
// pub client_source: Option<String>,
// pub client_version: Option<String>,
pub x_hs_latency: Option<bool>,
pub browser_name: Option<common_enums::Brow... | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | struct_definition | 123 | rust | HeaderPayload | null | null | null | null | null | null | null | null | null | null | null |
pub struct Event {
pub code: i64,
pub name: WebhookEventType,
} | crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | Event | null | null | null | null | null | null | null | null | null | null | null |
/// Panics if Failed to create store
pub async fn get_store_interface(
storage_impl: &StorageImpl,
event_handler: &EventsHandler,
conf: &Settings,
tenant: &dyn TenantConfig,
cache_store: Arc<RedisStore>,
testable: bool,
) -> Box<dyn CommonStorageInterface> {
... | crates/router/src/routes/app.rs | router | function_signature | 292 | rust | null | null | null | null | get_store_interface | null | null | null | null | null | null | null |
pub struct MerchantKeyTransferRequest {
/// Offset for merchant account
#[schema(example = 32)]
pub from: u32,
/// Limit for merchant account
#[schema(example = 32)]
pub limit: u32,
} | crates/api_models/src/admin.rs | api_models | struct_definition | 56 | rust | MerchantKeyTransferRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/aci.rs
#![allow(clippy::print_stdout)]
use std::{borrow::Cow, marker::PhantomData, str::FromStr, sync::Arc};
use common_utils::id_type;
use hyperswitch_domain_models::address::{Address, AddressDetails, PhoneDetails};
use masking::Secret;
use router::{
configs::settings::Setti... | crates/router/tests/connectors/aci.rs | router | full_file | 3,471 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct MessagePagination {
/// Resource listing may return a continuationKey if there's more results available.
/// Request may be retried with the continuationKey, but otherwise same parameters, in order to get more results.
pub continuation_key: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/nordea/responses.rs | hyperswitch_connectors | struct_definition | 54 | rust | MessagePagination | null | null | null | null | null | null | null | null | null | null | null |
pub async fn payments_manual_update(
state: web::Data<app::AppState>,
req: actix_web::HttpRequest,
json_payload: web::Json<payment_types::PaymentsManualUpdateRequest>,
path: web::Path<common_utils::id_type::PaymentId>,
) -> impl Responder {
let flow = Flow::PaymentsManualUpdate;
let mut payload ... | crates/router/src/routes/payments.rs | router | function_signature | 201 | rust | null | null | null | null | payments_manual_update | null | null | null | null | null | null | null |
impl api::PaymentSync for Globalpay {} | crates/hyperswitch_connectors/src/connectors/globalpay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Globalpay | api::PaymentSync for | impl api::PaymentSync for for Globalpay | null | null | null | null | null | null | null | null |
impl ToTokens for TryGetEnumMeta {
fn to_tokens(&self, _: &mut proc_macro2::TokenStream) {}
} | crates/router_derive/src/macros/try_get_enum.rs | router_derive | impl_block | 28 | rust | null | TryGetEnumMeta | ToTokens for | impl ToTokens for for TryGetEnumMeta | null | null | null | null | null | null | null | null |
impl ConnectorCommon for Affirm {
fn id(&self) -> &'static str {
"affirm"
}
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Minor
}
fn common_get_content_type(&self) -> &'static str {
"application/json"
}
fn base_url<'a>(&self, connectors: &'a... | crates/hyperswitch_connectors/src/connectors/affirm.rs | hyperswitch_connectors | impl_block | 424 | rust | null | Affirm | ConnectorCommon for | impl ConnectorCommon for for Affirm | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_domain_models/src/routing.rs
Public structs: 4
use std::collections::HashMap;
use api_models::{enums as api_enums, routing};
use common_utils::id_type;
use serde;
#[cfg(feature = "v1")]
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct RoutingData {
pub routed_thr... | crates/hyperswitch_domain_models/src/routing.rs | hyperswitch_domain_models | full_file | 616 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn find_by_role_id_in_lineage(
conn: &PgPooledConn,
role_id: &str,
merchant_id: &id_type::MerchantId,
org_id: &id_type::OrganizationId,
profile_id: &id_type::ProfileId,
tenant_id: &id_type::TenantId,
) -> StorageResult<Self> {
generics::generic_find_... | crates/diesel_models/src/query/role.rs | diesel_models | function_signature | 233 | rust | null | null | null | null | find_by_role_id_in_lineage | null | null | null | null | null | null | null |
pub struct OrganizationUpdateInternal {
organization_name: Option<String>,
organization_details: Option<pii::SecretSerdeValue>,
metadata: Option<pii::SecretSerdeValue>,
modified_at: time::PrimitiveDateTime,
platform_merchant_id: Option<id_type::MerchantId>,
} | crates/diesel_models/src/organization.rs | diesel_models | struct_definition | 62 | rust | OrganizationUpdateInternal | null | null | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/user_role.rs
Public structs: 9
use common_enums::{ParentGroup, PermissionGroup};
use common_utils::pii;
use masking::Secret;
pub mod role;
#[derive(Debug, serde::Serialize)]
pub struct AuthorizationInfoResponse(pub Vec<AuthorizationInfo>);
#[derive(Debug, serde::Serialize)]
#[serde(unta... | crates/api_models/src/user_role.rs | api_models | full_file | 439 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct FeatureMatrixConnectorData {} | crates/router/src/types/api/feature_matrix.rs | router | struct_definition | 7 | rust | FeatureMatrixConnectorData | null | null | null | null | null | null | null | null | null | null | null |
pub struct SecuredSecret {} | crates/hyperswitch_interfaces/src/secrets_interface/secret_state.rs | hyperswitch_interfaces | struct_definition | 6 | rust | SecuredSecret | null | null | null | null | null | null | null | null | null | null | null |
}
}
}
}
fn nexixpay_threeds_link(
request: NexixpayRedirectionRequest,
) -> CustomResult<RedirectForm, errors::ConnectorError> {
let mut form_fields = HashMap::<String, String>::new();
form_fields.insert(String::from("ThreeDsRequest"), request.three_ds_request);
form_fields.inse... | crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs#chunk1 | hyperswitch_connectors | chunk | 4,124 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub trait CallConnector<F, D, RouterDReq: Send>: Send {
async fn call_connector<'b>(
&'b self,
db: &'b SessionState,
req_state: ReqState,
payment_data: D,
key_store: &domain::MerchantKeyStore,
call_connector_action: common_enums::CallConnectorAction,
connector... | crates/router/src/core/payments/operations.rs | router | trait_definition | 179 | rust | null | null | CallConnector | null | null | null | null | null | null | null | null | null |
pub async fn push_metrics_with_update_window_for_contract_based_routing(
state: &SessionState,
payment_attempt: &storage::PaymentAttempt,
routable_connectors: Vec<routing_types::RoutableConnectorChoice>,
profile_id: &id_type::ProfileId,
dynamic_routing_algo_ref: routing_types::DynamicRoutingAlgorith... | crates/router/src/core/routing/helpers.rs | router | function_signature | 2,124 | rust | null | null | null | null | push_metrics_with_update_window_for_contract_based_routing | null | null | null | null | null | null | null |
pub struct CoingateConnectorMetadataObject {
pub currency_id: i32,
pub platform_id: i32,
pub ledger_account_id: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs | hyperswitch_connectors | struct_definition | 37 | rust | CoingateConnectorMetadataObject | null | null | null | null | null | null | null | null | null | null | null |
pub struct BamboraAuthType {
pub(super) api_key: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | BamboraAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub struct PazeConsumer {
// This is consumer data not customer data.
pub first_name: Option<Secret<String>>,
pub last_name: Option<Secret<String>>,
pub full_name: Secret<String>,
pub email_address: common_utils::pii::Email,
pub mobile_number: Option<PazePhoneNumber>,
pub country_code: Optio... | crates/hyperswitch_domain_models/src/router_data.rs | hyperswitch_domain_models | struct_definition | 92 | rust | PazeConsumer | null | null | null | null | null | null | null | null | null | null | null |
impl MandateUpdate {
pub fn convert_to_mandate_update(
self,
storage_scheme: MerchantStorageScheme,
) -> MandateUpdateInternal {
let mut updated_object = MandateUpdateInternal::from(self);
updated_object.updated_by = Some(storage_scheme.to_string());
updated_object
}
... | crates/diesel_models/src/mandate.rs | diesel_models | impl_block | 67 | rust | null | MandateUpdate | null | impl MandateUpdate | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/elavon.rs
Public functions: 2
Public structs: 1
pub mod transformers;
use std::{collections::HashMap, str, sync::LazyLock};
use common_enums::{enums, CaptureMethod, PaymentMethod, PaymentMethodType};
use common_utils::{
errors::CustomResult,
request::{Metho... | crates/hyperswitch_connectors/src/connectors/elavon.rs | hyperswitch_connectors | full_file | 5,247 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Fiservemea {} | crates/hyperswitch_connectors/src/connectors/fiservemea.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Fiservemea | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Fiservemea | null | null | null | null | null | null | null | null |
RiebiņiMunicipality,
#[strum(serialize = "RIX")]
Riga,
#[strum(serialize = "079")]
RojaMunicipality,
#[strum(serialize = "080")]
RopažiMunicipality,
#[strum(serialize = "081")]
RucavaMunicipality,
#[strum(serialize = "082")]
RugājiMunicipality,
#[strum(serialize = "083")]... | crates/common_enums/src/enums.rs#chunk4 | common_enums | chunk | 8,188 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/errors.rs
#[derive(Copy, Clone, Debug, thiserror::Error)]
pub enum DatabaseError {
#[error("An error occurred when obtaining database connection")]
DatabaseConnectionError,
#[error("The requested resource was not found in the database")]
NotFound,
#[error("A unique co... | crates/diesel_models/src/errors.rs | diesel_models | full_file | 236 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/core/poll.rs
Public functions: 1
use api_models::poll::PollResponse;
use common_utils::ext_traits::StringExt;
use error_stack::ResultExt;
use router_env::{instrument, tracing};
use super::errors;
use crate::{
core::errors::RouterResponse, services::ApplicationResponse, types::domain, Sess... | crates/router/src/core/poll.rs | router | full_file | 406 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct BillwerkErrorResponse {
pub code: Option<i32>,
pub error: String,
pub message: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | hyperswitch_connectors | struct_definition | 29 | rust | BillwerkErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn create_role_v2(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<role_api::CreateRoleV2Request>,
) -> HttpResponse {
let flow = Flow::CreateRoleV2;
Box::pin(api::server_wrap(
flow,
state.clone(),
&req,
json_payload.into_inner(),
... | crates/router/src/routes/user_role.rs | router | function_signature | 126 | rust | null | null | null | null | create_role_v2 | null | null | null | null | null | null | null |
pub struct AdyenCardDetails {
card_holder: AdyenAccountHolder,
card_identification: AdyenCardIdentification,
} | crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs | hyperswitch_connectors | struct_definition | 27 | rust | AdyenCardDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct BokuPsyncRequest {
country: String,
merchant_id: Secret<String>,
merchant_transaction_id: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/boku/transformers.rs | hyperswitch_connectors | struct_definition | 29 | rust | BokuPsyncRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Custombilling {} | crates/hyperswitch_connectors/src/connectors/custombilling.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Custombilling | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Custombilling | null | null | null | null | null | null | null | null |
impl ValidateStatusForOperation for PaymentIntentConfirm {
/// Validate if the current operation can be performed on the current status of the payment intent
fn validate_status_for_operation(
&self,
intent_status: common_enums::IntentStatus,
) -> Result<(), errors::ApiErrorResponse> {
... | crates/router/src/core/payments/operations/payment_confirm_intent.rs | router | impl_block | 323 | rust | null | PaymentIntentConfirm | ValidateStatusForOperation for | impl ValidateStatusForOperation for for PaymentIntentConfirm | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Nomupay {} | crates/hyperswitch_connectors/src/connectors/nomupay.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Nomupay | ConnectorValidation for | impl ConnectorValidation for for Nomupay | null | null | null | null | null | null | null | null |
impl HashiCorpVault {
/// Creates a new instance of HashiCorpVault based on the provided configuration.
///
/// # Parameters
///
/// - `config`: A reference to a `HashiCorpVaultConfig` containing the configuration details.
pub fn new(config: &HashiCorpVaultConfig) -> error_stack::Result<Self, Ha... | crates/external_services/src/hashicorp_vault/core.rs | external_services | impl_block | 423 | rust | null | HashiCorpVault | null | impl HashiCorpVault | null | null | null | null | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.