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 Amazonpay {
amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/amazonpay.rs | hyperswitch_connectors | struct_definition | 27 | rust | Amazonpay | null | null | null | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/relay.rs
Public structs: 3
use common_utils::pii;
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use time::PrimitiveDateTime;
use crate::{enums as storage_enums, schema::relay};
#[derive(
Clone,
Debug,
Eq,
Identifiable,
Queryable,
S... | crates/diesel_models/src/relay.rs | diesel_models | full_file | 646 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct Href {
#[serde(rename = "href")]
redirection_url: Url,
} | crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | Href | null | null | null | null | null | null | null | null | null | null | null |
impl AuditEvent {
pub fn new(event_type: AuditEventType) -> Self {
Self {
event_type,
created_at: common_utils::date_time::now(),
}
}
} | crates/router/src/events/audit_events.rs | router | impl_block | 41 | rust | null | AuditEvent | null | impl AuditEvent | null | null | null | null | null | null | null | null |
pub async fn get_authorization_info_with_group_tag(
) -> UserResponse<user_role_api::AuthorizationInfoResponse> {
static GROUPS_WITH_PARENT_TAGS: LazyLock<Vec<user_role_api::ParentInfo>> =
LazyLock::new(|| {
PermissionGroup::iter()
.map(|group| (group.parent(), group))
... | crates/router/src/core/user_role.rs | router | function_signature | 230 | rust | null | null | null | null | get_authorization_info_with_group_tag | null | null | null | null | null | null | null |
pub struct RevenueRecoveryMetadata {
pub max_retry_count: u16,
pub billing_connector_retry_threshold: u16,
pub mca_reference: AccountReferenceMap,
} | crates/hyperswitch_domain_models/src/merchant_connector_account.rs | hyperswitch_domain_models | struct_definition | 39 | rust | RevenueRecoveryMetadata | null | null | null | null | null | null | null | null | null | null | null |
pub struct FiservemeaOrder {
order_id: String,
} | crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | FiservemeaOrder | null | null | null | null | null | null | null | null | null | null | null |
pub struct MifinityPsyncPayload {
status: MifinityPaymentStatus,
payment_response: Option<PaymentResponse>,
} | crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | MifinityPsyncPayload | null | null | null | null | null | null | null | null | null | null | null |
File: crates/test_utils/tests/connectors/stripe_ui.rs
use serial_test::serial;
use thirtyfour::{prelude::*, WebDriver};
use crate::{selenium::*, tester};
struct StripeSeleniumTest;
impl SeleniumTest for StripeSeleniumTest {
fn get_connector_name(&self) -> String {
"stripe".to_string()
}
}
async fn ... | crates/test_utils/tests/connectors/stripe_ui.rs | test_utils | full_file | 4,838 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Payeezy {} | crates/hyperswitch_connectors/src/connectors/payeezy.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Payeezy | api::PaymentSession for | impl api::PaymentSession for for Payeezy | null | null | null | null | null | null | null | null |
pub fn get_metadata(&self) -> Option<pii::SecretSerdeValue> {
self.metadata.clone()
} | crates/hyperswitch_domain_models/src/mandates.rs | hyperswitch_domain_models | function_signature | 25 | rust | null | null | null | null | get_metadata | null | null | null | null | null | null | null |
File: crates/router/src/db/events.rs
use std::collections::HashSet;
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use error_stack::{report, ResultExt};
use router_env::{instrument, tracing};
use super::{MockDb, Store};
use crate::{
connection,
core::errors::{self, CustomResult... | crates/router/src/db/events.rs#chunk0 | router | chunk | 8,189 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/db/organization.rs
use common_utils::{errors::CustomResult, id_type};
use diesel_models::{organization as storage, organization::OrganizationBridge};
use error_stack::report;
use router_env::{instrument, tracing};
use crate::{connection, core::errors, services::Store};
#[async_trait::async_tr... | crates/router/src/db/organization.rs | router | full_file | 997 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn refunds_retrieve_with_body() {} | crates/openapi/src/routes/refunds.rs | openapi | function_signature | 10 | rust | null | null | null | null | refunds_retrieve_with_body | null | null | null | null | null | null | null |
File: crates/router/src/types/api/enums.rs
pub use api_models::enums::*;
| crates/router/src/types/api/enums.rs | router | full_file | 18 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/paytm/transformers.rs
Public structs: 8
use common_enums::enums;
use common_utils::types::StringMinorUnit;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterData},
router_flow_types::refunds::{... | crates/hyperswitch_connectors/src/connectors/paytm/transformers.rs | hyperswitch_connectors | full_file | 1,707 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ConnectorWalletDetailsConfig {
pub samsung_pay: Option<Vec<InputData>>,
pub paze: Option<Vec<InputData>>,
pub google_pay: Option<Vec<InputData>>,
pub amazon_pay: Option<Vec<InputData>>,
} | crates/connector_configs/src/connector.rs | connector_configs | struct_definition | 48 | rust | ConnectorWalletDetailsConfig | null | null | null | null | null | null | null | null | null | null | null |
pub struct ContextStruct {
return_url: Option<String>,
cancel_url: Option<String>,
user_action: Option<UserAction>,
shipping_preference: ShippingPreference,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 35 | rust | ContextStruct | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_temp_password() -> Secret<String> {
let uuid_pass = uuid::Uuid::new_v4().to_string();
let mut rng = rand::thread_rng();
let special_chars: Vec<char> = "!@#$%^&*()-_=+[]{}|;:,.<>?".chars().collect();
let special_char = special_chars.choose(&mut rng).unwrap_or(&'@');
Secret::new(format!(
... | crates/router/src/utils/user/password.rs | router | function_signature | 142 | rust | null | null | null | null | get_temp_password | null | null | null | null | null | null | null |
/// Get string representation of the id
pub fn get_string_repr(&self) -> &str {
self.0.get_string_repr()
} | crates/common_utils/src/id_type/global_id/payment_methods.rs | common_utils | function_signature | 31 | rust | null | null | null | null | get_string_repr | null | null | null | null | null | null | null |
impl api::PaymentToken for Bambora {} | crates/hyperswitch_connectors/src/connectors/bambora.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Bambora | api::PaymentToken for | impl api::PaymentToken for for Bambora | null | null | null | null | null | null | null | null |
pub async fn decide_unified_connector_service_call<F, RouterDReq, ApiRequest, D>(
state: &SessionState,
req_state: ReqState,
merchant_context: &domain::MerchantContext,
connector: api::ConnectorData,
operation: &BoxedOperation<'_, F, ApiRequest, D>,
payment_data: &mut D,
customer: &Option<do... | crates/router/src/core/payments.rs | router | function_signature | 927 | rust | null | null | null | null | decide_unified_connector_service_call | null | null | null | null | null | null | null |
impl Refunds {
pub fn server(state: AppState) -> Scope {
let mut route = web::scope("/refunds").app_data(web::Data::new(state));
#[cfg(feature = "olap")]
{
route = route
.service(web::resource("/list").route(web::post().to(refunds_list)))
.service... | crates/router/src/routes/app.rs | router | impl_block | 348 | rust | null | Refunds | null | impl Refunds | null | null | null | null | null | null | null | null |
pub struct RedsysErrorResponse {
pub error_code: String,
} | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | RedsysErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct BillingConnectorPaymentsSyncResponse {
/// transaction amount against invoice, accepted in minor unit.
pub amount: MinorUnit,
/// currency of the transaction
pub currency: common_enums::enums::Currency,
/// merchant reference id at billing connector. ex: invoice_id
pub merchant_refere... | crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.rs | hyperswitch_domain_models | struct_definition | 334 | rust | BillingConnectorPaymentsSyncResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct AffirmCompleteAuthorizeRequest {
pub order_id: Option<String>,
pub reference_id: Option<String>,
pub transaction_id: String,
} | crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs | hyperswitch_connectors | struct_definition | 32 | rust | AffirmCompleteAuthorizeRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/query/capture.rs
Public functions: 4
use common_utils::types::ConnectorTransactionIdTrait;
use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods};
use super::generics;
use crate::{
capture::{Capture, CaptureNew, CaptureUpdate, CaptureUpdateInternal},
err... | crates/diesel_models/src/query/capture.rs | diesel_models | full_file | 636 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn http_not_implemented() -> actix_web::HttpResponse<BoxBody> {
ApiErrorResponse::NotImplemented {
message: NotImplementedMessage::Default,
}
.error_response()
} | crates/router/src/core/errors.rs | router | function_signature | 40 | rust | null | null | null | null | http_not_implemented | null | null | null | null | null | null | null |
impl ConnectorCommon for Checkbook {
fn id(&self) -> &'static str {
"checkbook"
}
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Base
}
fn common_get_content_type(&self) -> &'static str {
"application/json"
}
fn base_url<'a>(&self, connectors... | crates/hyperswitch_connectors/src/connectors/checkbook.rs | hyperswitch_connectors | impl_block | 413 | rust | null | Checkbook | ConnectorCommon for | impl ConnectorCommon for for Checkbook | null | null | null | null | null | null | null | null |
pub struct CustomerGeneralUpdate {
pub name: crypto::OptionalEncryptableName,
pub email: Box<crypto::OptionalEncryptableEmail>,
pub phone: Box<crypto::OptionalEncryptablePhone>,
pub description: Option<Description>,
pub phone_country_code: Option<String>,
pub metadata: Option<pii::SecretSerdeVal... | crates/hyperswitch_domain_models/src/customer.rs | hyperswitch_domain_models | struct_definition | 152 | rust | CustomerGeneralUpdate | null | null | null | null | null | null | null | null | null | null | null |
pub struct StandardFlowCredentials {
pub(super) client_id: Secret<String>,
pub(super) client_secret: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | StandardFlowCredentials | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.MerchantAccountUpdate
{
"type": "object",
"required": [
"merchant_id"
],
"properties": {
"merchant_id": {
"type": "string",
"description": "The identifier for the Merchant Account",
"example": "y3oqhf46pyzuxjbcn2giaqnb44",
"maxLength": 64
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 977 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"MerchantAccountUpdate"
] | null | null | null | null |
impl ValidateStatusForOperation for PaymentSessionIntent {
/// 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_session_intent.rs | router | impl_block | 308 | rust | null | PaymentSessionIntent | ValidateStatusForOperation for | impl ValidateStatusForOperation for for PaymentSessionIntent | null | null | null | null | null | null | null | null |
pub struct AmazonPayWalletData {
pub checkout_session_id: String,
} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 16 | rust | AmazonPayWalletData | null | null | null | null | null | null | null | null | null | null | null |
pub fn set_debit_routing_savings(&mut self, debit_routing_savings: Option<&MinorUnit>) {
self.debit_routing_savings = debit_routing_savings.copied();
} | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | function_signature | 41 | rust | null | null | null | null | set_debit_routing_savings | null | null | null | null | null | null | null |
File: crates/test_utils/tests/connectors/shift4_ui.rs
use serial_test::serial;
use thirtyfour::{prelude::*, WebDriver};
use crate::{selenium::*, tester};
struct Shift4SeleniumTest;
impl SeleniumTest for Shift4SeleniumTest {
fn get_connector_name(&self) -> String {
"shift4".to_string()
}
}
async fn ... | crates/test_utils/tests/connectors/shift4_ui.rs | test_utils | full_file | 943 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorCustomer for Dwolla {} | crates/hyperswitch_connectors/src/connectors/dwolla.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Dwolla | api::ConnectorCustomer for | impl api::ConnectorCustomer for for Dwolla | null | null | null | null | null | null | null | null |
pub fn get_store_key(&self) -> &str {
&self.0
} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | function_signature | 20 | rust | null | null | null | null | get_store_key | null | null | null | null | null | null | null |
pub struct MigrateNetworkTokenDetail {
/// Network token details
pub network_token_data: MigrateNetworkTokenData,
/// Network token requestor reference id
pub network_token_requestor_ref_id: String,
} | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 47 | rust | MigrateNetworkTokenDetail | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_status_count(&self) -> HashMap<storage_enums::CaptureStatus, i16> {
let mut hash_map: HashMap<storage_enums::CaptureStatus, i16> = HashMap::new();
hash_map.insert(storage_enums::CaptureStatus::Charged, 0);
hash_map.insert(storage_enums::CaptureStatus::Pending, 0);
hash_map.ins... | crates/router/src/core/payments/types.rs | router | function_signature | 177 | rust | null | null | null | null | get_status_count | null | null | null | null | null | null | null |
pub struct ErrorInformation {
pub message: String,
pub reason: String,
pub details: Option<Vec<Details>>,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | ErrorInformation | null | null | null | null | null | null | null | null | null | null | null |
File: crates/scheduler/src/utils.rs
Public functions: 15
use std::sync;
use common_utils::errors::CustomResult;
use diesel_models::enums::{self, ProcessTrackerStatus};
pub use diesel_models::process_tracker as storage;
use error_stack::{report, ResultExt};
use redis_interface::{RedisConnectionPool, RedisEntryId};
us... | crates/scheduler/src/utils.rs | scheduler | full_file | 3,448 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct Juspaythreedsserver {
amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs | hyperswitch_connectors | struct_definition | 32 | rust | Juspaythreedsserver | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/routes/process_tracker/revenue_recovery.rs
Public functions: 1
use actix_web::{web, HttpRequest, HttpResponse};
use api_models::process_tracker::revenue_recovery as revenue_recovery_api;
use router_env::Flow;
use crate::{
core::{api_locking, revenue_recovery},
routes::AppState,
se... | crates/router/src/routes/process_tracker/revenue_recovery.rs | router | full_file | 267 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn entity_type(&self) -> EntityType {
match self {
#(#entity_impl_per),*
}
} | crates/router_derive/src/macros/generate_permissions.rs | router_derive | function_signature | 26 | rust | null | null | null | null | entity_type | null | null | null | null | null | null | null |
pub struct CheckoutDisputeWebhookBody {
#[serde(rename = "type")]
pub transaction_type: CheckoutDisputeTransactionType,
pub data: CheckoutDisputeWebhookData,
#[serde(default, with = "common_utils::custom_serde::iso8601::option")]
pub created_on: Option<PrimitiveDateTime>,
} | crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs | hyperswitch_connectors | struct_definition | 73 | rust | CheckoutDisputeWebhookBody | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_string_val(
&self,
params: &Vec<routing_types::DynamicRoutingConfigParams>,
) -> String {
let mut parts: Vec<String> = Vec::new();
for param in params {
let val = match param {
routing_types::DynamicRoutingConfigParams::PaymentMethod => self
... | crates/router/src/core/routing/helpers.rs | router | function_signature | 326 | rust | null | null | null | null | get_string_val | null | null | null | null | null | null | null |
pub struct AuthEventMetricsBucketValue {
pub authentication_count: Option<u64>,
pub authentication_attempt_count: Option<u64>,
pub authentication_success_count: Option<u64>,
pub challenge_flow_count: Option<u64>,
pub challenge_attempt_count: Option<u64>,
pub challenge_success_count: Option<u64>,... | crates/api_models/src/analytics/auth_events.rs | api_models | struct_definition | 146 | rust | AuthEventMetricsBucketValue | null | null | null | null | null | null | null | null | null | null | null |
pub async fn receive_incoming_webhook<W: types::OutgoingWebhookType>(
state: web::Data<AppState>,
req: HttpRequest,
body: web::Bytes,
path: web::Path<(common_utils::id_type::MerchantId, String) | crates/router/src/routes/webhooks.rs | router | function_signature | 57 | rust | null | null | null | null | receive_incoming_webhook | null | null | null | null | null | null | null |
pub struct TokenizedBankDebitValue2 {
pub customer_id: Option<id_type::CustomerId>,
} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 23 | rust | TokenizedBankDebitValue2 | null | null | null | null | null | null | null | null | null | null | null |
impl fmt::Display for Order {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Self::Ascending => write!(f, "asc"),
Self::Descending => write!(f, "desc"),
}
}
} | crates/analytics/src/query.rs | analytics | impl_block | 61 | rust | null | Order | fmt::Display for | impl fmt::Display for for Order | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/query/cards_info.rs
Public functions: 3
use diesel::{associations::HasTable, ExpressionMethods};
use error_stack::report;
use crate::{
cards_info::{CardInfo, UpdateCardInfo},
errors,
query::generics,
schema::cards_info::dsl,
PgPooledConn, StorageResult,
};
impl Car... | crates/diesel_models/src/query/cards_info.rs | diesel_models | full_file | 311 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn create_jwe_body_for_vault(
jwekey: &settings::Jwekey,
jws: &str,
) -> CustomResult<encryption::JweBody, errors::VaultError> {
let jws_payload: Vec<&str> = jws.split('.').collect();
let generate_jws_body = |payload: Vec<&str>| -> Option<encryption::JwsBody> {
Some(encryption::JwsBod... | crates/router/src/core/payment_methods/transformers.rs | router | function_signature | 410 | rust | null | null | null | null | create_jwe_body_for_vault | null | null | null | null | null | null | null |
pub struct StripePaymentListConstraints {
pub customer: Option<id_type::CustomerId>,
pub starting_after: Option<id_type::PaymentId>,
pub ending_before: Option<id_type::PaymentId>,
#[serde(default = "default_limit")]
pub limit: u32,
pub created: Option<i64>,
#[serde(rename = "created[lt]")]
... | crates/router/src/compatibility/stripe/payment_intents/types.rs | router | struct_definition | 153 | rust | StripePaymentListConstraints | null | null | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/analytics/connector_events.rs
Public structs: 1
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct ConnectorEventsRequest {
pub payment_id: common_utils::id_type::PaymentId,
pub refund_id: Option<String>,
pub dispute_id: Option<String>,
}
| crates/api_models/src/analytics/connector_events.rs | api_models | full_file | 70 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl common_utils::events::ApiEventMetric for ThreeDsDecisionRuleExecuteResponse {
fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType> {
Some(common_utils::events::ApiEventsType::ThreeDsDecisionRule)
}
} | crates/api_models/src/three_ds_decision_rule.rs | api_models | impl_block | 58 | rust | null | ThreeDsDecisionRuleExecuteResponse | common_utils::events::ApiEventMetric for | impl common_utils::events::ApiEventMetric for for ThreeDsDecisionRuleExecuteResponse | null | null | null | null | null | null | null | null |
pub struct CustomerUpdateInternal {
pub name: Option<Encryption>,
pub email: Option<Encryption>,
pub phone: Option<Encryption>,
pub description: Option<Description>,
pub phone_country_code: Option<String>,
pub metadata: Option<pii::SecretSerdeValue>,
pub modified_at: PrimitiveDateTime,
p... | crates/diesel_models/src/customers.rs | diesel_models | struct_definition | 120 | rust | CustomerUpdateInternal | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = AnalyticsFlow::GetOutgoingWebhookEvents;
Box::pin(api::server_wrap(
flow,
state,
&req,
json_payload.into_inner(),
|state, auth: AuthenticationData, req, _| async move {
utils::check_if_profile_id_is_p... | crates/router/src/analytics.rs | router | impl_block | 174 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct NoonWebhookBody {
pub order_id: u64,
pub order_status: NoonPaymentStatus,
pub event_type: NoonWebhookEventTypes,
pub event_id: String,
pub time_stamp: String,
} | crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | hyperswitch_connectors | struct_definition | 51 | rust | NoonWebhookBody | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Dlocal {} | crates/hyperswitch_connectors/src/connectors/dlocal.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Dlocal | api::RefundExecute for | impl api::RefundExecute for for Dlocal | null | null | null | null | null | null | null | null |
pub async fn decide_frm_flow(
router_data: &mut FrmCheckoutRouterData,
state: &SessionState,
connector: &FraudCheckConnectorData,
call_connector_action: payments::CallConnectorAction,
_merchant_context: &domain::MerchantContext,
) -> RouterResult<FrmCheckoutRouterData> {
let connector_integratio... | crates/router/src/core/fraud_check/flows/checkout_flow.rs | router | function_signature | 162 | rust | null | null | null | null | decide_frm_flow | null | null | null | null | null | null | null |
File: crates/injector/src/lib.rs
pub mod injector;
pub mod types;
// Re-export all functionality
pub use injector::*;
pub use types::*;
| crates/injector/src/lib.rs | injector | full_file | 32 | null | null | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/blocklist/get-blocklist.mdx
# Type: Doc File
---
openapi: get /blocklist
--- | api-reference/v1/blocklist/get-blocklist.mdx | null | doc_file | 30 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
#[serde(rename = "618")]
#[strum(serialize = "618")]
HardDeclineIssueWithPayPalRefund,
#[serde(rename = "619")]
#[strum(serialize = "619")]
HardDeclinePayPalCredentialsIssue,
#[serde(rename = "620")]
#[strum(serialize = "620")]
HardDeclinePayPalAuthorizationVoidedOrExpired,
#[ser... | crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs#chunk3 | hyperswitch_connectors | chunk | 8,187 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/recon.rs
Public structs: 4
use common_utils::{id_type, pii};
use masking::Secret;
use crate::enums;
#[derive(serde::Deserialize, Debug, serde::Serialize)]
pub struct ReconUpdateMerchantRequest {
pub recon_status: enums::ReconStatus,
pub user_email: pii::Email,
}
#[derive(Debug, ... | crates/api_models/src/recon.rs | api_models | full_file | 181 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs
Public structs: 1
use common_utils::errors::CustomResult;
use error_stack::report;
use hyperswitch_domain_models::{
router_data::{AccessToken, RouterData},
router_flow_types::{
access_token_auth::AccessTokenAuth,
payments::{A... | crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs | hyperswitch_connectors | full_file | 1,036 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ZenWebhookSignature {
pub hash: String,
} | crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | ZenWebhookSignature | null | null | null | null | null | null | null | null | null | null | null |
impl ApiEventMetric for AuthenticationAuthenticateRequest {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Authentication {
authentication_id: self.authentication_id.clone(),
})
}
} | crates/api_models/src/authentication.rs | api_models | impl_block | 48 | rust | null | AuthenticationAuthenticateRequest | ApiEventMetric for | impl ApiEventMetric for for AuthenticationAuthenticateRequest | null | null | null | null | null | null | null | null |
Documentation: monitoring/README.md
# Type: Doc File
# Service Monitoring
## Components
[Promtail](https://grafana.com/docs/loki/latest/clients/promtail/#:~:text=Promtail%20is%20an%20agent%20which,Attaches%20labels%20to%20log%20streams)
: is a collector which ships the contents of local logs to a private Grafana Lok... | monitoring/README.md | null | doc_file | 762 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Facilitapay {} | crates/hyperswitch_connectors/src/connectors/facilitapay.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Facilitapay | api::PaymentSession for | impl api::PaymentSession for for Facilitapay | null | null | null | null | null | null | null | null |
pub struct ArchipelPaymentsCancelRequest {
tenant_id: ArchipelTenantId,
} | crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | ArchipelPaymentsCancelRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn payment_intents_create(
state: web::Data<routes::AppState>,
qs_config: web::Data<serde_qs::Config>,
req: HttpRequest,
form_payload: web::Bytes,
) -> HttpResponse {
let payload: types::StripePaymentIntentRequest = match qs_config
.deserialize_bytes(&form_payload)
.map_err... | crates/router/src/compatibility/stripe/payment_intents.rs | router | function_signature | 546 | rust | null | null | null | null | payment_intents_create | null | null | null | null | null | null | null |
impl std::error::Error for InvalidFileStorageConfig {} | crates/external_services/src/file_storage.rs | external_services | impl_block | 12 | rust | null | InvalidFileStorageConfig | std::error::Error for | impl std::error::Error for for InvalidFileStorageConfig | null | null | null | null | null | null | null | null |
pub struct RecipientCreateAddress {
pub street: String,
pub city: String,
pub postal_code: String,
pub country: CountryAlpha2,
} | crates/pm_auth/src/types.rs | pm_auth | struct_definition | 35 | rust | RecipientCreateAddress | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundExecute for UnifiedAuthenticationService {} | crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs | hyperswitch_connectors | impl_block | 11 | rust | null | UnifiedAuthenticationService | api::RefundExecute for | impl api::RefundExecute for for UnifiedAuthenticationService | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMajorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/mifinity.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct PaymentMethodsUpdateForm {
#[multipart(limit = "1MB")]
pub file: bytes::Bytes,
pub merchant_id: text::Text<id_type::MerchantId>,
} | crates/router/src/core/payment_methods/migration.rs | router | struct_definition | 40 | rust | PaymentMethodsUpdateForm | null | null | null | null | null | null | null | null | null | null | null |
pub struct DeliveryObject {
first_name: Secret<String>,
last_name: Secret<String>,
address1: Secret<String>,
house_number: Secret<String>,
zip_code: Secret<String>,
city: String,
country: api_models::enums::CountryAlpha2,
} | crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs | hyperswitch_connectors | struct_definition | 58 | rust | DeliveryObject | null | null | null | null | null | null | null | null | null | null | null |
pub async fn sync_merchant_onboarding_status(
state: SessionState,
tracking_id: String,
) -> RouterResult<api::OnboardingStatus> {
let access_token = utils::paypal::generate_access_token(state.clone()).await?;
let Some(seller_status_response) =
find_paypal_merchant_by_tracking_id(state.clone(),... | crates/router/src/core/connector_onboarding/paypal.rs | router | function_signature | 301 | rust | null | null | null | null | sync_merchant_onboarding_status | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/braintree.rs
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::BASE64_ENGINE,
crypt... | crates/hyperswitch_connectors/src/connectors/braintree.rs#chunk0 | hyperswitch_connectors | chunk | 8,180 | null | null | null | null | null | null | null | null | null | null | null | null | null |
}
let are_allowed_domains_valid = self
.allowed_domains
.clone()
.iter()
.all(|allowed_domain| link_utils::validate_wildcard_domain(allowed_domain));
if !are_allowed_domains_valid {
return Err("Invalid allowed domain names received in ... | crates/api_models/src/admin.rs#chunk4 | api_models | chunk | 2,792 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct UnifiedTranslations {
pub unified_code: String,
pub unified_message: String,
pub locale: String,
pub translation: String,
pub created_at: PrimitiveDateTime,
pub last_modified_at: PrimitiveDateTime,
} | crates/diesel_models/src/unified_translations.rs | diesel_models | struct_definition | 49 | rust | UnifiedTranslations | null | null | null | null | null | null | null | null | null | null | null |
pub struct CreditorBank {
/// Address
pub address: Option<NordeaAddress>,
/// Bank code
pub bank_code: Option<String>,
/// Business identifier code (BIC) of the creditor bank.
/// This information is required, if the creditor account number is not in IBAN format.
#[serde(rename = "bic")]
... | crates/hyperswitch_connectors/src/connectors/nordea/requests.rs | hyperswitch_connectors | struct_definition | 146 | rust | CreditorBank | null | null | null | null | null | null | null | null | null | null | null |
pub fn new(
tenant_id: common_utils::id_type::TenantId,
routable_connectors: String,
flow: &str,
request: serde_json::Value,
url: String,
method: ApiMethod,
payment_id: String,
profile_id: common_utils::id_type::ProfileId,
merchant_id: common_utils... | crates/hyperswitch_interfaces/src/events/routing_api_logs.rs | hyperswitch_interfaces | function_signature | 238 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct AffirmCompleteAuthorizeResponse {
pub id: String,
pub status: AffirmTransactionStatus,
pub amount: MinorUnit,
pub amount_refunded: MinorUnit,
pub authorization_expiration: String,
pub checkout_id: String,
pub created: String,
pub currency: Currency,
pub events: Vec<Transac... | crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs | hyperswitch_connectors | struct_definition | 212 | rust | AffirmCompleteAuthorizeResponse | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.SwishQrData
{
"type": "object"
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 23 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"SwishQrData"
] | null | null | null | null |
OpenAPI Block Path: paths."/authentication"
{
"post": {
"tags": [
"Authentication"
],
"summary": "Authentication - Create",
"description": "Create a new authentication for accessing our APIs from your servers.\n",
"operationId": "Create an Authentication",
"requestBody": {
"content... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 210 | .json | null | null | null | null | null | openapi_spec | paths | [
"/authentication"
] | null | null | null | null |
pub struct PayoutAttempt {
pub payout_attempt_id: String,
pub payout_id: common_utils::id_type::PayoutId,
pub customer_id: Option<common_utils::id_type::CustomerId>,
pub merchant_id: common_utils::id_type::MerchantId,
pub address_id: Option<String>,
pub connector: Option<String>,
pub connect... | crates/diesel_models/src/payout_attempt.rs | diesel_models | struct_definition | 302 | rust | PayoutAttempt | null | null | null | null | null | null | null | null | null | null | null |
pub struct ErrorDetails {
pub field: String,
pub issue: String,
} | crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | ErrorDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct ArchipelCaptureRequest {
order: ArchipelCaptureOrderRequest,
} | crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs | hyperswitch_connectors | struct_definition | 17 | rust | ArchipelCaptureRequest | null | null | null | null | null | null | null | null | null | null | null |
impl Default for DisputePollingIntervalInHours {
/// Default for `ShouldCollectCvvDuringPayment` is `true`
fn default() -> Self {
Self(DEFAULT_DISPUTE_POLLING_INTERVAL_IN_HOURS)
}
} | crates/common_types/src/primitive_wrappers.rs | common_types | impl_block | 50 | rust | null | DisputePollingIntervalInHours | Default for | impl Default for for DisputePollingIntervalInHours | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Bankofamerica {
fn validate_mandate_payment(
&self,
pm_type: Option<enums::PaymentMethodType>,
pm_data: PaymentMethodData,
) -> CustomResult<(), errors::ConnectorError> {
let mandate_supported_pmd = std::collections::HashSet::from([
Paymen... | crates/hyperswitch_connectors/src/connectors/bankofamerica.rs | hyperswitch_connectors | impl_block | 118 | rust | null | Bankofamerica | ConnectorValidation for | impl ConnectorValidation for for Bankofamerica | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Deutschebank {} | crates/hyperswitch_connectors/src/connectors/deutschebank.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Deutschebank | api::PaymentToken for | impl api::PaymentToken for for Deutschebank | null | null | null | null | null | null | null | null |
pub struct PaymentResponse {
pub id: String,
pub status: PaymentStatus,
pub status_reason_information: Option<String>,
pub authentication: Option<Authentication>,
pub error_info: Option<ErrorInfo>,
} | crates/hyperswitch_connectors/src/connectors/tokenio/transformers.rs | hyperswitch_connectors | struct_definition | 46 | rust | PaymentResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn api_key_revoke(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<(
common_utils::id_type::MerchantId,
common_utils::id_type::ApiKeyId,
) | crates/router/src/routes/api_keys.rs | router | function_signature | 52 | rust | null | null | null | null | api_key_revoke | null | null | null | null | null | null | null |
impl api::MandateSetup for Archipel {} | crates/hyperswitch_connectors/src/connectors/archipel.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Archipel | api::MandateSetup for | impl api::MandateSetup for for Archipel | null | null | null | null | null | null | null | null |
pub async fn find_optional_resource_by_id<D, R, M>(
&self,
state: &KeyManagerState,
key_store: &MerchantKeyStore,
storage_scheme: MerchantStorageScheme,
find_resource_db_fut: R,
find_by: FindResourceBy<'_>,
) -> error_stack::Result<Option<D>, errors::StorageError>
... | crates/storage_impl/src/kv_router_store.rs | storage_impl | function_signature | 491 | rust | null | null | null | null | find_optional_resource_by_id | null | null | null | null | null | null | null |
impl api::RefundSync for Paypal {} | crates/hyperswitch_connectors/src/connectors/paypal.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Paypal | api::RefundSync for | impl api::RefundSync for for Paypal | null | null | null | null | null | null | null | null |
pub trait HasSchemaParameters {
fn get_schema_parameters(&self) -> syn::Result<SchemaParameters>;
} | crates/router_derive/src/macros/schema/helpers.rs | router_derive | trait_definition | 23 | rust | null | null | HasSchemaParameters | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/webhooks.rs
Public functions: 6
Public structs: 3
use common_utils::custom_serde;
use serde::{Deserialize, Serialize};
use time::PrimitiveDateTime;
use utoipa::ToSchema;
#[cfg(feature = "payouts")]
use crate::payouts;
use crate::{disputes, enums as api_enums, mandates, payments, refunds}... | crates/api_models/src/webhooks.rs | api_models | full_file | 3,998 | null | null | 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.