text string | file_path string | module string | type string | tokens int64 | language string | struct_name string | type_name string | trait_name string | impl_type string | function_name string | source string | section string | keys list | macro_type string | url string | title string | chunk_index int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
impl ApiEventMetric for FxExchangeRatesCacheEntry {} | crates/router/src/utils/currency.rs | router | impl_block | 12 | rust | null | FxExchangeRatesCacheEntry | ApiEventMetric for | impl ApiEventMetric for for FxExchangeRatesCacheEntry | null | null | null | null | null | null | null | null |
impl IncomingWebhook for Zsl {
fn get_webhook_object_reference_id(
&self,
request: &IncomingWebhookRequestDetails<'_>,
) -> CustomResult<ObjectReferenceId, errors::ConnectorError> {
let notif = get_webhook_object_from_body(request.body)
.change_context(errors::ConnectorError:... | crates/hyperswitch_connectors/src/connectors/zsl.rs | hyperswitch_connectors | impl_block | 655 | rust | null | Zsl | IncomingWebhook for | impl IncomingWebhook for for Zsl | null | null | null | null | null | null | null | null |
Web Documentation: Subscriptions | Hyperswitch
# Type: Web Doc
Hyperswitch enables you to work with your preferred subscription provider while having the flexibility to connect with multiple payment processors and payment methods. The benefits you gain by using Hyperswitch integration as a supplement to your Subscript... | https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/subscriptions | null | web_doc_file | 1,339 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/subscriptions | Subscriptions | Hyperswitch | null |
impl api::MandateSetup for Tsys {} | crates/hyperswitch_connectors/src/connectors/tsys.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Tsys | api::MandateSetup for | impl api::MandateSetup for for Tsys | null | null | null | null | null | null | null | null |
pub struct AdyenplatformInstantStatus {
status: Option<InstantPriorityStatus>,
estimated_arrival_time: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs | hyperswitch_connectors | struct_definition | 27 | rust | AdyenplatformInstantStatus | null | null | null | null | null | null | null | null | null | null | null |
pub struct CreateUserAuthenticationMethodRequest {
pub owner_id: String,
pub owner_type: common_enums::Owner,
pub auth_method: AuthConfig,
pub allow_signup: bool,
pub email_domain: Option<String>,
} | crates/api_models/src/user.rs | api_models | struct_definition | 49 | rust | CreateUserAuthenticationMethodRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct UrlDetails {
pub success_url: String,
pub failure_url: String,
pub pending_url: String,
} | crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | UrlDetails | null | null | null | null | null | null | null | null | null | null | null |
impl api::Refund for Custombilling {} | crates/hyperswitch_connectors/src/connectors/custombilling.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Custombilling | api::Refund for | impl api::Refund for for Custombilling | null | null | null | null | null | null | null | null |
pub struct PaymentIntentMetricRow {
pub status: Option<DBEnumWrapper<storage_enums::IntentStatus>>,
pub currency: Option<DBEnumWrapper<storage_enums::Currency>>,
pub profile_id: Option<String>,
pub connector: Option<String>,
pub authentication_type: Option<DBEnumWrapper<storage_enums::Authentication... | crates/analytics/src/payment_intents/metrics.rs | analytics | struct_definition | 226 | rust | PaymentIntentMetricRow | null | null | null | null | null | null | null | null | null | null | null |
impl<'a> NetworkTokenizationBuilder<'a, CardStored> {
pub fn set_stored_token_response(
self,
store_token_response: &'a StoreLockerResponse,
) -> NetworkTokenizationBuilder<'a, CardTokenStored> {
NetworkTokenizationBuilder {
state: std::marker::PhantomData,
card_t... | crates/router/src/core/payment_methods/tokenize/card_executor.rs | router | impl_block | 160 | rust | null | NetworkTokenizationBuilder | null | impl NetworkTokenizationBuilder | null | null | null | null | null | null | null | null |
impl DummySignal {
/// Dummy handler for signals in windows (empty)
pub fn handle(&self) -> Self {
self.clone()
}
/// Hollow implementation, for windows compatibility
pub fn close(self) {}
} | crates/common_utils/src/signals.rs | common_utils | impl_block | 48 | rust | null | DummySignal | null | impl DummySignal | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Nuvei {} | crates/hyperswitch_connectors/src/connectors/nuvei.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Nuvei | api::RefundExecute for | impl api::RefundExecute for for Nuvei | null | null | null | null | null | null | null | null |
pub struct SmartRetriedAmountAccumulator {
pub amount: Option<i64>,
pub amount_without_retries: Option<i64>,
} | crates/analytics/src/payment_intents/accumulator.rs | analytics | struct_definition | 32 | rust | SmartRetriedAmountAccumulator | null | null | null | null | null | null | null | null | null | null | null |
impl FeatureMatrix {
pub fn server(state: AppState) -> Scope {
web::scope("/feature_matrix")
.app_data(web::Data::new(state))
.service(web::resource("").route(web::get().to(feature_matrix::fetch_feature_matrix)))
}
} | crates/router/src/routes/app.rs | router | impl_block | 57 | rust | null | FeatureMatrix | null | impl FeatureMatrix | null | null | null | null | null | null | null | null |
pub async fn perform_locking_action<A>(
self,
state: &A,
merchant_id: common_utils::id_type::MerchantId,
) -> RouterResult<()>
where
A: SessionStateInfo,
{
match self {
Self::HoldMultiple { inputs } => {
let lock_retries = inputs
... | crates/router/src/core/api_locking.rs | router | function_signature | 788 | rust | null | null | null | null | perform_locking_action | null | null | null | null | null | null | null |
pub async fn decide_action_type(
state: &SessionState,
is_connector_agnostic_mit_enabled: Option<bool>,
is_network_tokenization_enabled: bool,
payment_method_info: &domain::PaymentMethod,
filtered_nt_supported_connectors: Vec<api::ConnectorRoutingData>, //network tokenization supported connectors
) ... | crates/router/src/core/payments.rs | router | function_signature | 279 | rust | null | null | null | null | decide_action_type | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/account/{account_id}/business_profile/{profile_id}/dynamic_routing/success_based/toggle"
{
"post": {
"tags": [
"Routing"
],
"summary": "Routing - Toggle success based dynamic routing for profile",
"description": "Create a success based dynamic routing algorithm",
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 431 | .json | null | null | null | null | null | openapi_spec | paths | [
"/account/{account_id}/business_profile/{profile_id}/dynamic_routing/success_based/toggle"
] | null | null | null | null |
pub struct AwsSes {
sender: String,
ses_config: SESConfig,
settings: EmailSettings,
} | crates/external_services/src/email/ses.rs | external_services | struct_definition | 25 | rust | AwsSes | null | null | null | null | null | null | null | null | null | null | null |
pub struct MerchantInitiatedTransaction {
reason: Option<String>,
previous_transaction_id: Option<Secret<String>>,
//Required for recurring mandates payment
original_authorized_amount: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 41 | rust | MerchantInitiatedTransaction | null | null | null | null | null | null | null | null | null | null | null |
pub async fn add_card_to_hs_locker(
state: &routes::SessionState,
payload: &payment_methods::StoreLockerReq,
customer_id: &id_type::CustomerId,
locker_choice: api_enums::LockerChoice,
) -> errors::CustomResult<payment_methods::StoreCardRespPayload, errors::VaultError> {
let locker = &state.conf.lock... | crates/router/src/core/payment_methods/cards.rs | router | function_signature | 311 | rust | null | null | null | null | add_card_to_hs_locker | null | null | null | null | null | null | null |
File: crates/diesel_models/src/api_keys.rs
Public functions: 1
Public structs: 4
use diesel::{AsChangeset, AsExpression, Identifiable, Insertable, Queryable, Selectable};
use serde::{Deserialize, Serialize};
use time::PrimitiveDateTime;
use crate::schema::api_keys;
#[derive(
serde::Serialize, serde::Deserializ... | crates/diesel_models/src/api_keys.rs | diesel_models | full_file | 1,029 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct StoredCredential {
/// Indicates the transaction processing model being executed when using stored
/// credentials.
pub model: Option<Model>,
/// Indicates the order of this transaction in the sequence of a planned repeating
/// transaction processing model.
pub sequence: Option<Seque... | crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs | hyperswitch_connectors | struct_definition | 60 | rust | StoredCredential | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.Method
{
"type": "string",
"enum": [
"GET",
"POST",
"PUT",
"DELETE",
"PATCH"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 46 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"Method"
] | null | null | null | null |
impl<T: opentelemetry_sdk::trace::ShouldSample + Clone + 'static>
opentelemetry_sdk::trace::ShouldSample for ConditionalSampler<T>
{
fn should_sample(
&self,
parent_context: Option<&opentelemetry::Context>,
trace_id: opentelemetry::trace::TraceId,
name: &str,
span_kind: &... | crates/router_env/src/logger/setup.rs | router_env | impl_block | 302 | rust | null | ConditionalSampler | opentelemetry_sdk::trace::ShouldSample for | impl opentelemetry_sdk::trace::ShouldSample for for ConditionalSampler | null | null | null | null | null | null | null | null |
pub async fn retry_delete_tokenize(
db: &dyn db::StorageInterface,
pm: enums::PaymentMethod,
pt: storage::ProcessTracker,
) -> Result<(), errors::ProcessTrackerError> {
let schedule_time = get_delete_tokenize_schedule_time(db, pm, pt.retry_count).await;
match schedule_time {
Some(s_time) =>... | crates/router/src/core/payment_methods/vault.rs | router | function_signature | 201 | rust | null | null | null | null | retry_delete_tokenize | null | null | null | null | null | null | null |
impl api::PaymentCapture for Coinbase {} | crates/hyperswitch_connectors/src/connectors/coinbase.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Coinbase | api::PaymentCapture for | impl api::PaymentCapture for for Coinbase | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Wellsfargopayout {} | crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs | hyperswitch_connectors | impl_block | 14 | rust | null | Wellsfargopayout | api::MandateSetup for | impl api::MandateSetup for for Wellsfargopayout | null | null | null | null | null | null | null | null |
pub async fn upload_file_to_theme_storage(
state: SessionState,
theme_id: String,
request: theme_api::UploadFileRequest,
) -> UserResponse<()> {
let db_theme = state
.store
.find_theme_by_theme_id(theme_id)
.await
.to_not_found_response(UserErrors::ThemeNotFound)?;
t... | crates/router/src/core/user/theme.rs | router | function_signature | 130 | rust | null | null | null | null | upload_file_to_theme_storage | 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.merchant_connector_id.clone(),
}
}
} | crates/api_models/src/admin.rs | api_models | impl_block | 58 | rust | null | MerchantConnectorResponse | null | impl MerchantConnectorResponse | null | null | null | null | null | null | null | null |
pub struct BarclaycardErrorInformation {
reason: Option<String>,
message: Option<String>,
details: Option<Vec<Details>>,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 29 | rust | BarclaycardErrorInformation | null | null | null | null | null | null | null | null | null | null | null |
pub struct XenditSplitRequestData {
#[serde(flatten)]
pub split_data: XenditSplitRequest,
} | crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | XenditSplitRequestData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn internal_trigger_refund_to_gateway(
state: &SessionState,
refund: &diesel_refund::Refund,
merchant_context: &domain::MerchantContext,
payment_attempt: &storage::PaymentAttempt,
payment_intent: &storage::PaymentIntent,
merchant_connector_details: common_types::domain::MerchantConnect... | crates/router/src/core/refunds_v2.rs | router | function_signature | 607 | rust | null | null | null | null | internal_trigger_refund_to_gateway | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs
Public structs: 20
use common_enums::enums;
use common_utils::types::StringMajorUnit;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterData},
router_flow_types::refu... | crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs | hyperswitch_connectors | full_file | 4,139 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/payments/filters.rs
Public functions: 1
Public structs: 1
use api_models::analytics::{payments::PaymentDimensions, Granularity, TimeRange};
use common_utils::errors::ReportSwitchExt;
use diesel_models::enums::{AttemptStatus, AuthenticationType, Currency, RoutingApproach};
use error_stack::... | crates/analytics/src/payments/filters.rs | analytics | full_file | 594 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn new(
frm_status: Option<String>,
frm_name: Option<String>,
frm_transaction_type: Option<String>,
normalized_time_range: TimeRange,
) -> Self {
Self {
frm_status,
frm_name,
frm_transaction_type,
time_bucket: normalized_tim... | crates/api_models/src/analytics/frm.rs | api_models | function_signature | 77 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
impl ConnectorAccessToken for KafkaStore {
async fn get_access_token(
&self,
merchant_id: &id_type::MerchantId,
merchant_connector_id: &str,
) -> CustomResult<Option<AccessToken>, errors::StorageError> {
self.diesel_store
.get_access_token(merchant_id, merchant_connec... | crates/router/src/db/kafka_store.rs | router | impl_block | 154 | rust | null | KafkaStore | ConnectorAccessToken for | impl ConnectorAccessToken for for KafkaStore | null | null | null | null | null | null | null | null |
pub trait ValidateRequest<F, R, D> {
fn validate_request(
&self,
request: &R,
merchant_context: &domain::MerchantContext,
) -> RouterResult<ValidateResult>;
} | crates/router/src/core/payments/operations.rs | router | trait_definition | 46 | rust | null | null | ValidateRequest | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::RoutingRetrieveDictionary;
Box::pin(oss_api::server_wrap(
flow,
state,
&req,
query.into_inner(),
|state, auth: auth::AuthenticationData, query_params, _| {
let merchant_context = domain::MerchantContext::NormalMerchant(Box::ne... | crates/router/src/routes/routing.rs | router | impl_block | 226 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMinorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/novalnet.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct TokenizationData {
pub brand_reference: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs | hyperswitch_connectors | struct_definition | 15 | rust | TokenizationData | null | null | null | null | null | null | null | null | null | null | null |
pub struct AuthenticationAuthenticateRequest {
/// Authentication ID for the authentication
#[serde(skip_deserializing)]
pub authentication_id: id_type::AuthenticationId,
/// Client secret for the authentication
#[schema(value_type = String)]
pub client_secret: Option<masking::Secret<String>>,
... | crates/api_models/src/authentication.rs | api_models | struct_definition | 134 | rust | AuthenticationAuthenticateRequest | null | null | null | null | null | null | null | null | null | null | null |
/// Build connections to all gRPC services
pub async fn build_connections(
config: &GrpcClientSettings,
client: Client,
) -> Result<Self, Box<dyn std::error::Error>> {
let dynamic_routing_config = &config.dynamic_routing_client;
let connection = match dynamic_routing_config {
... | crates/external_services/src/grpc_client/health_check_client.rs | external_services | function_signature | 200 | rust | null | null | null | null | build_connections | null | null | null | null | null | null | null |
pub struct RoutableConnectorChoice {
#[serde(skip)]
pub choice_kind: RoutableChoiceKind,
pub connector: RoutableConnectors,
pub merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>,
} | crates/euclid/src/frontend/ast.rs | euclid | struct_definition | 50 | rust | RoutableConnectorChoice | null | null | null | null | null | null | null | null | null | null | null |
pub struct UpdateEliminationBucketEventRequest {
pub id: String,
pub params: String,
pub labels_with_bucket_name: Vec<LabelWithBucketNameEventRequest>,
pub config: Option<EliminationRoutingEventBucketConfig>,
} | crates/router/src/core/payments/routing/utils.rs | router | struct_definition | 51 | rust | UpdateEliminationBucketEventRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn frm_fulfillment(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<frm_core::types::FrmFulfillmentRequest>,
) -> HttpResponse {
let flow = Flow::FrmFulfillment;
Box::pin(api::server_wrap(
flow,
state.clone(),
&req,
json_payload.into_in... | crates/router/src/routes/fraud_check.rs | router | function_signature | 194 | rust | null | null | null | null | frm_fulfillment | null | null | null | null | null | null | null |
pub async fn api_key_update() {} | crates/openapi/src/routes/api_keys.rs | openapi | function_signature | 8 | rust | null | null | null | null | api_key_update | null | null | null | null | null | null | null |
pub async fn check_merchant_account_kv_status(
state: SessionState,
merchant_id: id_type::MerchantId,
) -> RouterResponse<api_models::admin::ToggleKVResponse> {
let db = state.store.as_ref();
let key_manager_state = &(&state).into();
let key_store = db
.get_merchant_key_store_by_merchant_id(... | crates/router/src/core/admin.rs | router | function_signature | 249 | rust | null | null | null | null | check_merchant_account_kv_status | null | null | null | null | null | null | null |
pub struct Authentication; | crates/hyperswitch_domain_models/src/router_flow_types/authentication.rs | hyperswitch_domain_models | struct_definition | 4 | rust | Authentication | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Bamboraapac {} | crates/hyperswitch_connectors/src/connectors/bamboraapac.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Bamboraapac | api::PaymentVoid for | impl api::PaymentVoid for for Bamboraapac | null | null | null | null | null | null | null | null |
pub struct AddVaultResponse {
pub entity_id: Option<id_type::GlobalCustomerId>,
pub vault_id: domain::VaultId,
pub fingerprint_id: Option<String>,
} | crates/router/src/types/payment_methods.rs | router | struct_definition | 38 | rust | AddVaultResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn perform_volume_split(
mut splits: Vec<routing_types::ConnectorVolumeSplit>,
) -> RoutingResult<Vec<routing_types::RoutableConnectorChoice>> {
let weights: Vec<u8> = splits.iter().map(|sp| sp.split).collect();
let weighted_index = distributions::WeightedIndex::new(weights)
.change_context(erro... | crates/router/src/core/payments/routing.rs | router | function_signature | 220 | rust | null | null | null | null | perform_volume_split | null | null | null | null | null | null | null |
pub async fn routing_retrieve_default_config() {} | crates/openapi/src/routes/routing.rs | openapi | function_signature | 10 | rust | null | null | null | null | routing_retrieve_default_config | 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 GetAuthEventMetricRequest");
let flow = AnalyticsFlow::Get... | crates/router/src/analytics.rs | router | impl_block | 251 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
Documentation: api-reference/intelligent-router-api-reference/elimination/fetch-eliminated-processor-list.mdx
# Type: Doc File
---
openapi: post /elimination.EliminationAnalyser/GetEliminationStatus
--- | api-reference/intelligent-router-api-reference/elimination/fetch-eliminated-processor-list.mdx | null | doc_file | 49 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_filters(
pool: &AnalyticsProvider,
req: GetPaymentFiltersRequest,
auth: &AuthInfo,
) -> AnalyticsResult<PaymentFiltersResponse> {
let mut res = PaymentFiltersResponse::default();
for dim in req.group_by_names {
let values = match pool {
AnalyticsProv... | crates/analytics/src/payments/core.rs | analytics | function_signature | 810 | rust | null | null | null | null | get_filters | null | null | null | null | null | null | null |
pub struct StripebillingPaymentsResponse {
status: StripebillingPaymentStatus,
id: String,
} | crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | StripebillingPaymentsResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn update_config(
state: SessionState,
config_update: &api::ConfigUpdate,
) -> RouterResponse<api::Config> {
let store = state.store.as_ref();
let config = store
.update_config_by_key(&config_update.key, config_update.foreign_into())
.await
.to_not_found_response(errors... | crates/router/src/core/configs.rs | router | function_signature | 94 | rust | null | null | null | null | update_config | null | null | null | null | null | null | null |
impl api::PaymentToken for Opayo {} | crates/hyperswitch_connectors/src/connectors/opayo.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Opayo | api::PaymentToken for | impl api::PaymentToken for for Opayo | null | null | null | null | null | null | null | null |
pub struct RefundResponse {
id: String,
status: RefundStatus,
} | crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_bank_from_hs_locker(
state: &routes::SessionState,
key_store: &domain::MerchantKeyStore,
temp_token: Option<&String>,
customer_id: &id_type::CustomerId,
merchant_id: &id_type::MerchantId,
token_ref: &str,
) -> errors::RouterResult<api::BankPayout> {
let payment_method = get_... | crates/router/src/core/payment_methods/cards.rs | router | function_signature | 392 | rust | null | null | null | null | get_bank_from_hs_locker | null | null | null | null | null | null | null |
pub struct HeaderAuth<I>(pub I); | crates/router/src/services/authentication.rs | router | struct_definition | 9 | rust | HeaderAuth | null | null | null | null | null | null | null | null | null | null | null |
pub async fn merchant_account_toggle_kv(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<common_utils::id_type::MerchantId>,
json_payload: web::Json<admin::ToggleKVRequest>,
) -> HttpResponse {
let flow = Flow::ConfigKeyUpdate;
let mut payload = json_payload.into_inner();
paylo... | crates/router/src/routes/admin.rs | router | function_signature | 158 | rust | null | null | null | null | merchant_account_toggle_kv | null | null | null | null | null | null | null |
pub struct VerifyConnectorRequest {
pub connector_name: enums::Connector,
pub connector_account_details: admin::ConnectorAuthType,
} | crates/api_models/src/verify_connector.rs | api_models | struct_definition | 28 | rust | VerifyConnectorRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct FiuuWebhooksRefundResponse {
pub refund_type: FiuuWebhooksRefundType,
#[serde(rename = "MerchantID")]
pub merchant_id: Secret<String>,
#[serde(rename = "RefID")]
pub ref_id: String,
#[serde(rename = "RefundID")]
pub refund_id: String,
#[serde(rename = "TxnID")]
pub txn_id:... | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | 121 | rust | FiuuWebhooksRefundResponse | null | null | null | null | null | null | null | null | null | null | null |
impl AuthenticationUpdateInternal {
pub fn apply_changeset(self, source: Authentication) -> Authentication {
let Self {
connector_authentication_id,
payment_method_id,
authentication_type,
authentication_status,
authentication_lifecycle_status,
... | crates/diesel_models/src/authentication.rs | diesel_models | impl_block | 812 | rust | null | AuthenticationUpdateInternal | null | impl AuthenticationUpdateInternal | null | null | null | null | null | null | null | null |
pub async fn deep_health_check(
conf: web::Data<Settings>,
stores: web::Data<HashMap<String, Arc<Store>>>,
) -> impl actix_web::Responder {
let mut deep_health_res = HashMap::new();
for (tenant, store) in stores.iter() {
logger::info!("Tenant: {:?}", tenant);
let response = match deep_h... | crates/drainer/src/health_check.rs | drainer | function_signature | 202 | rust | null | null | null | null | deep_health_check | null | null | null | null | null | null | null |
#[schema(example = "USD", value_type = Currency)]
pub currency: common_enums::Currency,
/// The shipping cost of the order. This has to be collected from the merchant
pub shipping_cost: Option<MinorUnit>,
/// Tax amount related to the order. This will be calculated by the external tax provider
p... | crates/api_models/src/payments.rs#chunk1 | api_models | chunk | 8,184 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundSync for Opennode {} | crates/hyperswitch_connectors/src/connectors/opennode.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Opennode | api::RefundSync for | impl api::RefundSync for for Opennode | null | null | null | null | null | null | null | null |
pub struct BillwerkPaymentsResponse {
state: BillwerkPaymentState,
handle: String,
error: Option<String>,
error_state: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | hyperswitch_connectors | struct_definition | 34 | rust | BillwerkPaymentsResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn organization_create(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<admin::OrganizationCreateRequest>,
) -> HttpResponse {
let flow = Flow::OrganizationCreate;
Box::pin(api::server_wrap(
flow,
state,
&req,
json_payload.into_inner(),... | crates/router/src/routes/admin.rs | router | function_signature | 115 | rust | null | null | null | null | organization_create | null | null | null | null | null | null | null |
impl Responder {
use hyperswitch_domain_models::payments::PaymentIntentData;
let flow = Flow::PaymentsUpdateIntent;
let header_payload = match HeaderPayload::foreign_try_from(req.headers()) {
Ok(headers) => headers,
Err(err) => {
return api::log_and_return_error_response(err);
... | crates/router/src/routes/payments.rs | router | impl_block | 323 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::UpdateDynamicRoutingConfigs;
let routing_payload_wrapper = routing_types::EliminationRoutingPayloadWrapper {
updated_config: json_payload.into_inner(),
algorithm_id: path.clone().algorithm_id,
profile_id: path.clone().profile_id,
};
Box::pin(oss_... | crates/router/src/routes/routing.rs | router | impl_block | 236 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Self> {
generics::generic_insert(conn, self).await
} | crates/diesel_models/src/query/cards_info.rs | diesel_models | function_signature | 33 | rust | null | null | null | null | insert | null | null | null | null | null | null | null |
File: crates/diesel_models/src/user_authentication_method.rs
Public structs: 3
use common_utils::encryption::Encryption;
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use time::PrimitiveDateTime;
use crate::{enums, schema::user_authentication_methods};
#[derive(Clone, Debug, Identifiab... | crates/diesel_models/src/user_authentication_method.rs | diesel_models | full_file | 584 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/common_utils/src/types/primitive_wrappers.rs
Public functions: 1
Public structs: 3
pub(crate) mod bool_wrappers {
use serde::{Deserialize, Serialize};
/// Bool that represents if Extended Authorization is Applied or not
#[derive(
Clone, Copy, Debug, Eq, PartialEq, Serialize, Deseria... | crates/common_utils/src/types/primitive_wrappers.rs | common_utils | full_file | 952 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn profile_acquirer_update() { /* … */
} | crates/openapi/src/routes/profile_acquirer.rs | openapi | function_signature | 13 | rust | null | null | null | null | profile_acquirer_update | null | null | null | null | null | null | null |
.clone()
.and_then(|mandate_ids| mandate_ids.mandate_id));
let m_router_data_response = router_data.response.clone();
let mandate_update_fut = tokio::spawn(
async move {
mandate::update_connector_mandate_id(
m_db.as_ref(),
&m_ro... | crates/router/src/core/payments/operations/payment_response.rs#chunk2 | router | chunk | 7,593 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_permission_groups(&self) -> Vec<PermissionGroup> {
self.groups
.iter()
.flat_map(|group| group.accessible_groups())
.collect::<HashSet<_>>()
.into_iter()
.collect()
} | crates/router/src/services/authorization/roles.rs | router | function_signature | 54 | rust | null | null | null | null | get_permission_groups | null | null | null | null | null | null | null |
File: crates/router/src/core/payments/flows/session_update_flow.rs
use async_trait::async_trait;
use super::ConstructFlowSpecificData;
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
payments::{self, access_token, helpers, transformers, Feature, PaymentData},
},
routes::Ses... | crates/router/src/core/payments/flows/session_update_flow.rs | router | full_file | 949 | null | null | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/merchant-account/merchant-account--create.mdx
# Type: Doc File
---
openapi: post /accounts
--- | api-reference/v1/merchant-account/merchant-account--create.mdx | null | doc_file | 32 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PlacetopayNextActionRequest {
auth: PlacetopayAuth,
internal_reference: u64,
action: PlacetopayNextAction,
} | crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs | hyperswitch_connectors | struct_definition | 38 | rust | PlacetopayNextActionRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn refunds_retrieve_with_gateway_creds(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<common_utils::id_type::GlobalRefundId>,
payload: web::Json<api_models::refunds::RefundsRetrievePayload>,
) -> HttpResponse {
let flow = match payload.force_sync {
Some(true) => Flo... | crates/router/src/routes/refunds.rs | router | function_signature | 365 | rust | null | null | null | null | refunds_retrieve_with_gateway_creds | null | null | null | null | null | null | null |
pub struct UsersConfigs {
pub user_email: String,
pub user_password: String,
pub wrong_password: String,
pub user_base_email_for_signup: String,
pub user_domain_for_signup: String,
} | crates/test_utils/src/connector_auth.rs | test_utils | struct_definition | 46 | rust | UsersConfigs | null | null | null | null | null | null | null | null | null | null | null |
impl FraudCheckRecordReturn for Riskified {} | crates/hyperswitch_connectors/src/connectors/riskified.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Riskified | FraudCheckRecordReturn for | impl FraudCheckRecordReturn for for Riskified | null | null | null | null | null | null | null | null |
pub async fn add_process_dispute_task_to_pt(
db: &dyn StorageInterface,
connector_name: &str,
dispute_payload: &DisputeSyncResponse,
merchant_id: common_utils::id_type::MerchantId,
schedule_time: Option<time::PrimitiveDateTime>,
) -> common_utils::errors::CustomResult<(), errors::StorageError> {
... | crates/router/src/core/disputes.rs | router | function_signature | 317 | rust | null | null | null | null | add_process_dispute_task_to_pt | null | null | null | null | null | null | null |
pub struct PaypalIncrementalAuthStatusDetails {
reason: PaypalStatusPendingReason,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | PaypalIncrementalAuthStatusDetails | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/customers/customers--list.mdx
# Type: Doc File
---
openapi: get /customers/list
--- | api-reference/v1/customers/customers--list.mdx | null | doc_file | 31 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl ProfileNew {
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Profile> {
generics::generic_insert(conn, self).await
}
} | crates/diesel_models/src/query/business_profile.rs | diesel_models | impl_block | 40 | rust | null | ProfileNew | null | impl ProfileNew | null | null | null | null | null | null | null | null |
pub async fn update_by_user_email(
conn: &PgPooledConn,
user_email: &pii::Email,
user_update: UserUpdate,
) -> StorageResult<Self> {
generics::generic_update_with_unique_predicate_get_result::<
<Self as HasTable>::Table,
_,
_,
_,
... | crates/diesel_models/src/query/user.rs | diesel_models | function_signature | 106 | rust | null | null | null | null | update_by_user_email | null | null | null | null | null | null | null |
pub async fn relay_flow_decider(
state: SessionState,
merchant_context: domain::MerchantContext,
profile_id_optional: Option<id_type::ProfileId>,
request: relay_api_models::RelayRequest,
) -> RouterResponse<relay_api_models::RelayResponse> {
let relay_flow_request = match request.relay_type {
... | crates/router/src/core/relay.rs | router | function_signature | 133 | rust | null | null | null | null | relay_flow_decider | null | null | null | null | null | null | null |
pub async fn initiate_pm_collect_link(
state: SessionState,
merchant_context: domain::MerchantContext,
req: payment_methods::PaymentMethodCollectLinkRequest,
) -> RouterResponse<payment_methods::PaymentMethodCollectLinkResponse> {
// Validate request and initiate flow
let pm_collect_link_data =
... | crates/router/src/core/payment_methods.rs | router | function_signature | 343 | rust | null | null | null | null | initiate_pm_collect_link | null | null | null | null | null | null | null |
impl DummyConnector {
pub fn server(state: AppState) -> Scope {
let mut routes_with_restricted_access = web::scope("");
#[cfg(not(feature = "external_access_dc"))]
{
routes_with_restricted_access =
routes_with_restricted_access.guard(actix_web::guard::Host("localh... | crates/router/src/routes/app.rs | router | impl_block | 132 | rust | null | DummyConnector | null | impl DummyConnector | null | null | null | null | null | null | null | null |
| WalletData::AmazonPay(_)
| WalletData::AmazonPayRedirect(_)
| WalletData::Paysera(_)
| WalletData::Skrill(_)
| WalletData::BluecodeRedirect {}
| WalletData::MomoRedirect(_)
| WalletData::KakaoPayRedirect(_)
| WalletData::GoPayRedirect(_)
| Wallet... | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs#chunk2 | hyperswitch_connectors | chunk | 1,005 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub trait VaultingInterface {
fn get_vaulting_request_url() -> &'static str;
fn get_vaulting_flow_name() -> &'static str;
} | crates/router/src/types/payment_methods.rs | router | trait_definition | 35 | rust | null | null | VaultingInterface | null | null | null | null | null | null | null | null | null |
impl SPTFlow {
async fn is_required(
&self,
user: &UserFromStorage,
path: &[TokenPurpose],
state: &SessionState,
user_tenant_id: &id_type::TenantId,
) -> UserResult<bool> {
match self {
// Auth
Self::AuthSelect => Ok(true),
Self... | crates/router/src/types/domain/user/decision_manager.rs | router | impl_block | 403 | rust | null | SPTFlow | null | impl SPTFlow | null | null | null | null | null | null | null | null |
pub async fn find_by_id(conn: &PgPooledConn, id: &str) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
dsl::id.eq(id.to_owned()),
)
.await
} | crates/diesel_models/src/query/callback_mapper.rs | diesel_models | function_signature | 64 | rust | null | null | null | null | find_by_id | null | null | null | null | null | null | null |
pub fn add_bool_filter_clause(
&mut self,
key: impl ToSql<T>,
value: impl ToSql<T>,
) -> QueryResult<()> {
self.add_custom_filter_clause(key, value, FilterTypes::EqualBool)
} | crates/analytics/src/query.rs | analytics | function_signature | 53 | rust | null | null | null | null | add_bool_filter_clause | null | null | null | null | null | null | null |
File: crates/diesel_models/src/blocklist_fingerprint.rs
Public structs: 2
use diesel::{Identifiable, Insertable, Queryable, Selectable};
use serde::{Deserialize, Serialize};
use crate::schema::blocklist_fingerprint;
#[derive(Clone, Debug, Eq, Insertable, PartialEq, Serialize, Deserialize)]
#[diesel(table_name = blo... | crates/diesel_models/src/blocklist_fingerprint.rs | diesel_models | full_file | 258 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl FileUpload for Stripe {
fn validate_file_upload(
&self,
purpose: FilePurpose,
file_size: i32,
file_type: mime::Mime,
) -> CustomResult<(), ConnectorError> {
match purpose {
FilePurpose::DisputeEvidence => {
let supported_file_types = ["ima... | crates/hyperswitch_connectors/src/connectors/stripe.rs | hyperswitch_connectors | impl_block | 201 | rust | null | Stripe | FileUpload for | impl FileUpload for for Stripe | null | null | null | null | null | null | null | null |
pub struct ZenBrowserDetails {
color_depth: String,
java_enabled: bool,
lang: String,
screen_height: String,
screen_width: String,
timezone: String,
accept_header: String,
window_size: String,
user_agent: String,
} | crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | hyperswitch_connectors | struct_definition | 59 | rust | ZenBrowserDetails | null | null | null | 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.