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/euclid/src/backend.rs
Public functions: 1
Public structs: 1
pub mod inputs;
pub mod interpreter;
#[cfg(feature = "valued_jit")]
pub mod vir_interpreter;
pub use inputs::BackendInput;
pub use interpreter::InterpreterBackend;
#[cfg(feature = "valued_jit")]
pub use vir_interpreter::VirInterpreterBackend;
... | crates/euclid/src/backend.rs | euclid | full_file | 214 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/payme.rs
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use api_models::enums::AuthenticationType;
use common_enums::enums;
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBu... | crates/hyperswitch_connectors/src/connectors/payme.rs#chunk0 | hyperswitch_connectors | chunk | 8,187 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn payments_connector_session() {} | crates/openapi/src/routes/payments.rs | openapi | function_signature | 7 | rust | null | null | null | null | payments_connector_session | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMinorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/katapult.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub fn get_default_routing_configs_from_profile(
&self,
) -> RouterResult<routing_types::ProfileDefaultRoutingConfig> {
let profile_id = self.profile.get_id().to_owned();
let connectors = self.get_default_fallback_list_of_connector_under_profile()?;
Ok(routing_types::ProfileDefaultR... | crates/router/src/core/admin.rs | router | function_signature | 79 | rust | null | null | null | null | get_default_routing_configs_from_profile | null | null | null | null | null | null | null |
impl api::PaymentSync for Authorizedotnet {} | crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Authorizedotnet | api::PaymentSync for | impl api::PaymentSync for for Authorizedotnet | null | null | null | null | null | null | null | null |
pub struct CalSuccessRateEventRequest {
pub id: String,
pub params: String,
pub labels: Vec<String>,
pub config: Option<CalSuccessRateConfigEventRequest>,
} | crates/api_models/src/routing.rs | api_models | struct_definition | 41 | rust | CalSuccessRateEventRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentsGenericRequestWithResourceId<T: serde::Serialize> {
pub global_payment_id: common_utils::id_type::GlobalPaymentId,
#[serde(flatten)]
pub payload: T,
} | crates/router/src/routes/payments.rs | router | struct_definition | 44 | rust | PaymentsGenericRequestWithResourceId | null | null | null | null | null | null | null | null | null | null | null |
pub struct NoonRouterData<T> {
pub amount: StringMajorUnit,
pub router_data: T,
pub mandate_amount: Option<StringMajorUnit>,
} | crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | hyperswitch_connectors | struct_definition | 34 | rust | NoonRouterData | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorCommon for Mpgs {
fn id(&self) -> &'static str {
"mpgs"
}
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Minor
// TODO! Check connector documentation, on which unit they are processing the currency.
// If the connector accepts amoun... | crates/hyperswitch_connectors/src/connectors/mpgs.rs | hyperswitch_connectors | impl_block | 465 | rust | null | Mpgs | ConnectorCommon for | impl ConnectorCommon for for Mpgs | null | null | null | null | null | null | null | null |
impl api::Payment for Square {} | crates/hyperswitch_connectors/src/connectors/square.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Square | api::Payment for | impl api::Payment for for Square | null | null | null | null | null | null | null | null |
impl MerchantId {
/// get step up enabled key
pub fn get_step_up_enabled_key(&self) -> String {
format!("step_up_enabled_{}", self.get_string_repr())
}
/// get_max_auto_retries_enabled key
pub fn get_max_auto_retries_enabled(&self) -> String {
format!("max_auto_retries_enabled_{}", ... | crates/common_utils/src/id_type/merchant.rs | common_utils | impl_block | 1,003 | rust | null | MerchantId | null | impl MerchantId | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/refund.rs
Public functions: 8
Public structs: 8
use common_utils::{
id_type, pii,
types::{ChargeRefunds, ConnectorTransactionId, ConnectorTransactionIdTrait, MinorUnit},
};
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use serde::{Deserialize, Seri... | crates/diesel_models/src/refund.rs | diesel_models | full_file | 6,723 | null | null | null | null | null | null | null | null | null | null | null | null | null |
| Self::CNY
| Self::COP
| Self::CRC
| Self::CUC
| Self::CUP
| Self::CVE
| Self::CZK
| Self::DJF
| Self::DKK
| Self::DOP
| Self::DZD
| Self::EGP
| Self::ERN
... | crates/common_enums/src/enums.rs#chunk1 | common_enums | chunk | 8,184 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn from_storage(attempt: &'a PaymentAttempt) -> Self {
use masking::PeekInterface;
let PaymentAttempt {
payment_id,
merchant_id,
amount_details,
status,
connector,
error,
authentication_type,
created_at,
... | crates/router/src/services/kafka/payment_attempt.rs | router | function_signature | 1,232 | rust | null | null | null | null | from_storage | null | null | null | null | null | null | null |
impl api::PaymentSession for Paystack {} | crates/hyperswitch_connectors/src/connectors/paystack.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Paystack | api::PaymentSession for | impl api::PaymentSession for for Paystack | null | null | null | null | null | null | null | null |
File: crates/router/src/core/routing/transformers.rs
use api_models::routing::{
DynamicRoutingAlgorithm, MerchantRoutingAlgorithm, RoutingAlgorithmKind,
RoutingAlgorithmWrapper, RoutingDictionaryRecord,
};
#[cfg(feature = "v1")]
use api_models::{
open_router::{OpenRouterDecideGatewayRequest, PaymentInfo, R... | crates/router/src/core/routing/transformers.rs | router | full_file | 1,535 | null | null | null | null | null | null | null | null | null | null | null | null | null |
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: String,
pub amount: StringMajorUnit,
pub status: FiuuRefundsWebhookStatus,
pub signature: Secret<String>,
}
... | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs#chunk2 | hyperswitch_connectors | chunk | 800 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/paytm.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData};
use masking::Secret;
use router::types::{self, api, storage::enums};
use test_utils::connector_auth;
use crate::utils::{self, ConnectorActions};
#[derive(Clone, Copy)]
struct PaytmTest;
impl C... | crates/router/tests/connectors/paytm.rs | router | full_file | 2,925 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn refunds_list_profile(
state: web::Data<AppState>,
req: HttpRequest,
payload: web::Json<api_models::refunds::RefundListRequest>,
) -> HttpResponse {
let flow = Flow::RefundsList;
Box::pin(api::server_wrap(
flow,
state,
&req,
payload.into_inner(),
|... | crates/router/src/routes/refunds.rs | router | function_signature | 232 | rust | null | null | null | null | refunds_list_profile | null | null | null | null | null | null | null |
pub struct DeutschebankThreeDSInitializeRequestCustomerBillingData {
street: Secret<String>,
postal_code: Secret<String>,
city: String,
state: Secret<String>,
country: String,
} | crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | hyperswitch_connectors | struct_definition | 42 | rust | DeutschebankThreeDSInitializeRequestCustomerBillingData | null | null | null | null | null | null | null | null | null | null | null |
pub struct ApplepayMerchantResponse {
pub status_message: String,
} | crates/api_models/src/verifications.rs | api_models | struct_definition | 15 | rust | ApplepayMerchantResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn should_perform_elimination_routing(self) -> bool {
match self {
Self::ProcessorDowntime | Self::ProcessorDeclineUnauthorized => true,
Self::IssueWithPaymentMethod
| Self::ProcessorDeclineIncorrectData
| Self::FrmDecline
| Self::HardDecline
... | crates/common_enums/src/enums.rs | common_enums | function_signature | 83 | rust | null | null | null | null | should_perform_elimination_routing | null | null | null | null | null | null | null |
pub struct BarclaycardServerErrorResponse {
pub status: Option<String>,
pub message: Option<String>,
pub reason: Option<Reason>,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 31 | rust | BarclaycardServerErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/customers"
{
"post": {
"tags": [
"Customers"
],
"summary": "Customers - Create",
"description": "Creates a customer object and stores the customer details to be reused for future payments.\nIncase the customer already exists in the system, this API will respond with t... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 275 | .json | null | null | null | null | null | openapi_spec | paths | [
"/customers"
] | null | null | null | null |
pub struct NovalnetRouterData<T> {
pub amount: StringMinorUnit,
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | NovalnetRouterData | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentCapture for Cashtocode {} | crates/hyperswitch_connectors/src/connectors/cashtocode.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Cashtocode | api::PaymentCapture for | impl api::PaymentCapture for for Cashtocode | null | null | null | null | null | null | null | null |
Web Documentation: Community | Hyperswitch
# Type: Web Doc
Hyperswitch Community
Hyperswitch is more than an open-source payments orchestration engine. It’s a global community of developers, product people, and payments experts who collaborate to make payments transparent, reliable, and developer-first. Whether you wa... | https://docs.hyperswitch.io/learn-more/community | null | web_doc_file | 445 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/learn-more/community | Community | Hyperswitch | null |
Web Documentation: Payment Methods Management | Hyperswitch
# Type: Web Doc
This section guides you through the Hyperswitch Payment Methods Management, and how to integrate it.
Key Features of Payment Method Management in Hyperswitch
Hyperswitch simplifies the complexities of payment method management, so you can offe... | https://docs.hyperswitch.io/explore-hyperswitch/merchant-controls/payment-features/payment-methods-management | null | web_doc_file | 1,381 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/explore-hyperswitch/merchant-controls/payment-features/payment-methods-management | Payment Methods Management | Hyperswitch | null |
File: crates/router/src/events/connector_api_logs.rs
pub use hyperswitch_interfaces::events::connector_api_logs::ConnectorEvent;
use super::EventType;
use crate::services::kafka::KafkaMessage;
impl KafkaMessage for ConnectorEvent {
fn event_type(&self) -> EventType {
EventType::ConnectorApiLogs
}
... | crates/router/src/events/connector_api_logs.rs | router | full_file | 88 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn assertion(value: &'a dir::DirValue, metadata: &'a Metadata) -> Self {
Self {
value: CtxValueKind::Assertion(value),
metadata,
}
} | crates/euclid/src/dssa/types.rs | euclid | function_signature | 42 | rust | null | null | null | null | assertion | null | null | null | null | null | null | null |
Documentation: api-reference/v1/payouts/payouts--update.mdx
# Type: Doc File
---
openapi: post /payouts/{payout_id}
--- | api-reference/v1/payouts/payouts--update.mdx | null | doc_file | 38 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
Web Documentation: Vault | Hyperswitch
# Type: Web Doc
Hyperswitch Vault Service is a standalone vault that allows you to tokenize and secure your customers' card data in our PCI-compliant vault without having to use our payment solutions.
With Hyperswitch Vault, you can:
Use our PCI-compliant
Vault SDK
to collect and... | https://docs.hyperswitch.io/about-hyperswitch/payments-modules/vault | null | web_doc_file | 937 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/about-hyperswitch/payments-modules/vault | Vault | Hyperswitch | null |
pub fn get_client_builder(
proxy_config: &Proxy,
) -> CustomResult<reqwest::ClientBuilder, HttpClientError> {
let mut client_builder = reqwest::Client::builder()
.redirect(reqwest::redirect::Policy::none())
.pool_idle_timeout(Duration::from_secs(
proxy_config
.idle_po... | crates/external_services/src/http_client/client.rs | external_services | function_signature | 281 | rust | null | null | null | null | get_client_builder | null | null | null | null | null | null | null |
impl Theme {
fn lineage_filter(
lineage: ThemeLineage,
) -> Box<
dyn diesel::BoxableExpression<<Self as HasTable>::Table, Pg, SqlType = Nullable<Bool>>
+ 'static,
> {
match lineage {
ThemeLineage::Tenant { tenant_id } => Box::new(
dsl::tenant_i... | crates/diesel_models/src/query/user/theme.rs | diesel_models | impl_block | 1,510 | rust | null | Theme | null | impl Theme | null | null | null | null | null | null | null | null |
pub struct RefundsRetrieveBody {
pub force_sync: Option<bool>,
} | crates/api_models/src/refunds.rs | api_models | struct_definition | 16 | rust | RefundsRetrieveBody | null | null | null | null | null | null | null | null | null | null | null |
pub async fn retrieve_disputes_list() {} | crates/openapi/src/routes/disputes.rs | openapi | function_signature | 10 | rust | null | null | null | null | retrieve_disputes_list | null | null | null | null | null | null | null |
File: crates/hyperswitch_domain_models/src/router_flow_types/authentication.rs
Public structs: 4
#[derive(Debug, Clone)]
pub struct PreAuthentication;
#[derive(Debug, Clone)]
pub struct PreAuthenticationVersionCall;
#[derive(Debug, Clone)]
pub struct Authentication;
#[derive(Debug, Clone)]
pub struct PostAuthentic... | crates/hyperswitch_domain_models/src/router_flow_types/authentication.rs | hyperswitch_domain_models | full_file | 67 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/nordea.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 NordeaTest;
impl ConnectorActions for NordeaTest {}
impl utils::Connector for NordeaTes... | crates/router/tests/connectors/nordea.rs | router | full_file | 2,925 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PayoutRetrieveRequest {
/// Unique identifier for the payout. This ensures idempotency for multiple payouts
/// that have been done by a single merchant. This field is auto generated and is returned in the API response.
#[schema(
value_type = String,
min_length = 30,
max_l... | crates/api_models/src/payouts.rs | api_models | struct_definition | 207 | rust | PayoutRetrieveRequest | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorValidation for UnifiedAuthenticationService {
//TODO: implement functions when support enabled
} | crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs | hyperswitch_connectors | impl_block | 19 | rust | null | UnifiedAuthenticationService | ConnectorValidation for | impl ConnectorValidation for for UnifiedAuthenticationService | null | null | null | null | null | null | null | null |
pub async fn retrieve_customer(
state: SessionState,
merchant_context: domain::MerchantContext,
id: id_type::GlobalCustomerId,
) -> errors::CustomerResponse<customers::CustomerResponse> {
let db = state.store.as_ref();
let key_manager_state = &(&state).into();
let response = db
.find_cu... | crates/router/src/core/customers.rs | router | function_signature | 141 | rust | null | null | null | null | retrieve_customer | null | null | null | null | null | null | null |
pub fn spawn_tracked_job<E, F>(future: F, request_type: &'static str) | crates/router/src/services/authentication/decision.rs | router | function_signature | 21 | rust | null | null | null | null | spawn_tracked_job | null | null | null | null | null | null | null |
pub struct RedirectPaymentFlowResponse<D> {
pub payment_data: D,
pub profile: domain::Profile,
} | crates/router/src/types.rs | router | struct_definition | 25 | rust | RedirectPaymentFlowResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaypalThreeDsSyncResponse {
id: String,
status: PaypalOrderStatus,
// provided to separated response of card's 3DS from other
payment_source: CardsData,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 43 | rust | PaypalThreeDsSyncResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn toggle_kv_for_all_merchants(
state: SessionState,
enable: bool,
) -> RouterResponse<api_models::admin::ToggleAllKVResponse> {
let db = state.store.as_ref();
let storage_scheme = if enable {
MerchantStorageScheme::RedisKv
} else {
MerchantStorageScheme::PostgresOnly
}... | crates/router/src/core/admin.rs | router | function_signature | 193 | rust | null | null | null | null | toggle_kv_for_all_merchants | null | null | null | null | null | null | null |
impl SerializableSecret for i32 {} | crates/masking/src/serde.rs | masking | impl_block | 8 | rust | null | i32 | SerializableSecret for | impl SerializableSecret for for i32 | null | null | null | null | null | null | null | null |
pub fn get_shipping(&self) -> Option<&Address> {
self.shipping.as_ref()
} | crates/hyperswitch_domain_models/src/payment_address.rs | hyperswitch_domain_models | function_signature | 22 | rust | null | null | null | null | get_shipping | null | null | null | null | null | null | null |
pub async fn retrieve_forex(
state: SessionState,
) -> CustomResult<ApplicationResponse<currency::FxExchangeRatesCacheEntry>, ApiErrorResponse> {
let forex_api = state.conf.forex_api.get_inner();
Ok(ApplicationResponse::Json(
get_forex_rates(&state, forex_api.data_expiration_delay_in_seconds)
... | crates/router/src/core/currency.rs | router | function_signature | 102 | rust | null | null | null | null | retrieve_forex | null | null | null | null | null | null | null |
pub struct RoleInfoWithParents {
pub role_id: String,
pub parent_groups: Vec<ParentGroupInfo>,
pub role_name: String,
pub role_scope: RoleScope,
} | crates/api_models/src/user_role/role.rs | api_models | struct_definition | 41 | rust | RoleInfoWithParents | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_flow_from_card_number(
self,
connector: DummyConnectors,
) -> types::DummyConnectorResult<types::DummyConnectorCardFlow> {
let card_number = self.number.peek();
match card_number.as_str() {
"4111111111111111" | "4242424242424242" | "5555555555554444" | "3800000... | crates/router/src/routes/dummy_connector/utils.rs | router | function_signature | 611 | rust | null | null | null | null | get_flow_from_card_number | null | null | null | null | null | null | null |
pub async fn get_additional_payout_data(
pm_data: &api::PayoutMethodData,
db: &dyn StorageInterface,
profile_id: &id_type::ProfileId,
) -> Option<payout_additional::AdditionalPayoutMethodData> {
match pm_data {
api::PayoutMethodData::Card(card_data) => {
let card_isin = Some(card_dat... | crates/router/src/core/payouts/helpers.rs | router | function_signature | 669 | rust | null | null | null | null | get_additional_payout_data | null | null | null | null | null | null | null |
pub struct GetFrmMetricRequest {
pub time_series: Option<TimeSeries>,
pub time_range: TimeRange,
#[serde(default)]
pub group_by_names: Vec<FrmDimensions>,
#[serde(default)]
pub filters: frm::FrmFilters,
pub metrics: HashSet<FrmMetrics>,
#[serde(default)]
pub delta: bool,
} | crates/api_models/src/analytics.rs | api_models | struct_definition | 78 | rust | GetFrmMetricRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Coinbase {} | crates/hyperswitch_connectors/src/connectors/coinbase.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Coinbase | api::PaymentSession for | impl api::PaymentSession for for Coinbase | null | null | null | null | null | null | null | null |
pub fn convert_backend_input_to_routing_eval(
created_by: String,
input: BackendInput,
fallback_output: Vec<DeRoutableConnectorChoice>,
) -> RoutingResult<RoutingEvaluateRequest> {
let mut params: HashMap<String, Option<ValueType>> = HashMap::new();
// Payment
params.insert(
"amount".to... | crates/router/src/core/payments/routing/utils.rs | router | function_signature | 862 | rust | null | null | null | null | convert_backend_input_to_routing_eval | null | null | null | null | null | null | null |
impl api::RefundExecute for Cashtocode {} | crates/hyperswitch_connectors/src/connectors/cashtocode.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Cashtocode | api::RefundExecute for | impl api::RefundExecute for for Cashtocode | null | null | null | null | null | null | null | null |
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<PaymentLink> {
generics::generic_insert(conn, self).await
} | crates/diesel_models/src/query/payment_link.rs | diesel_models | function_signature | 35 | rust | null | null | null | null | insert | null | null | null | null | null | null | null |
pub struct IatapayRouterData<T> {
amount: FloatMajorUnit,
router_data: T,
} | crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | IatapayRouterData | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/account/{account_id}/business_profile"
{
"post": {
"tags": [
"Profile"
],
"summary": "Profile - Create",
"description": "Creates a new *profile* for a merchant",
"operationId": "Create A Profile",
"parameters": [
{
"name": "account_id",
"... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 518 | .json | null | null | null | null | null | openapi_spec | paths | [
"/account/{account_id}/business_profile"
] | null | null | null | null |
pub async fn retrieve_payment_method_from_vault_internal(
state: &routes::SessionState,
merchant_context: &domain::MerchantContext,
vault_id: &domain::VaultId,
customer_id: &id_type::GlobalCustomerId,
) -> CustomResult<pm_types::VaultRetrieveResponse, errors::VaultError> {
let payload = pm_types::Va... | crates/router/src/core/payment_methods/vault.rs | router | function_signature | 243 | rust | null | null | null | null | retrieve_payment_method_from_vault_internal | null | null | null | null | null | null | null |
File: crates/diesel_models/src/subscription.rs
Public functions: 2
Public structs: 3
use common_utils::pii::SecretSerdeValue;
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use serde::{Deserialize, Serialize};
use crate::schema::subscription;
#[derive(Clone, Debug, Eq, Insertable, Part... | crates/diesel_models/src/subscription.rs | diesel_models | full_file | 739 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/compatibility/stripe/refunds.rs
Public functions: 4
pub mod types;
use actix_web::{web, HttpRequest, HttpResponse};
use error_stack::report;
use router_env::{instrument, tracing, Flow, Tag};
use crate::{
compatibility::{stripe::errors, wrap},
core::{api_locking, refunds},
db::dom... | crates/router/src/compatibility/stripe/refunds.rs | router | full_file | 1,431 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ExternalVaultConnectorDetails {
pub vault_connector_id: common_utils::id_type::MerchantConnectorAccountId,
pub vault_sdk: Option<VaultSdk>,
} | crates/diesel_models/src/business_profile.rs | diesel_models | struct_definition | 34 | rust | ExternalVaultConnectorDetails | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.DokuBillingDetails
{
"type": "object",
"properties": {
"first_name": {
"type": "string",
"description": "The billing first name for Doku",
"example": "Jane",
"nullable": true
},
"last_name": {
"type": "string",
"description": "Th... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 155 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"DokuBillingDetails"
] | null | null | null | null |
impl CardExpiration {
pub fn is_expired(&self) -> Result<bool, error_stack::Report<errors::ValidationError>> {
let current_datetime_utc = date_time::now();
let expiration_month = time::Month::try_from(*self.month.peek()).map_err(|_| {
report!(errors::ValidationError::InvalidValue {
... | crates/cards/src/lib.rs | cards | impl_block | 323 | rust | null | CardExpiration | null | impl CardExpiration | null | null | null | null | null | null | null | null |
pub struct ClientDetails {
user_agent: Option<String>,
accept_language: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs | hyperswitch_connectors | struct_definition | 20 | rust | ClientDetails | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_mandate_reference(&self) -> Box<Option<MandateReference>> {
if self.payment_method_id.is_some() {
Box::new(Some(MandateReference {
connector_mandate_id: None,
payment_method_id: self.payment_method_id.clone(),
mandate_metadata: None,
... | crates/hyperswitch_connectors/src/connectors/celero/transformers.rs | hyperswitch_connectors | function_signature | 95 | rust | null | null | null | null | get_mandate_reference | null | null | null | null | null | null | null |
pub struct GenericLinkStatusData {
pub js_data: String,
pub css_data: String,
} | crates/hyperswitch_domain_models/src/api.rs | hyperswitch_domain_models | struct_definition | 22 | rust | GenericLinkStatusData | null | null | null | null | null | null | null | null | null | null | null |
pub struct StripePaymentMethod {
#[serde(rename = "id")]
payment_method_id: String,
object: &'static str,
card: Option<StripeCard>,
created: u64,
#[serde(rename = "type")]
method_type: String,
livemode: bool,
} | crates/router/src/compatibility/stripe/payment_intents/types.rs | router | struct_definition | 64 | rust | StripePaymentMethod | null | null | null | null | null | null | null | null | null | null | null |
pub struct NordeaAddress {
/// First line of the address. e.g. Street address
pub line1: Option<Secret<String>>,
/// Second line of the address (optional). e.g. Postal address
pub line2: Option<Secret<String>>,
/// Third line of the address (optional). e.g. Country
pub line3: Option<Secret<Strin... | crates/hyperswitch_connectors/src/connectors/nordea/requests.rs | hyperswitch_connectors | struct_definition | 82 | rust | NordeaAddress | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.RoutingAlgorithmKind
{
"type": "string",
"enum": [
"single",
"priority",
"volume_split",
"advanced",
"dynamic",
"three_ds_decision_rule"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 57 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"RoutingAlgorithmKind"
] | null | null | null | null |
File: crates/diesel_models/src/payout_attempt.rs
Public functions: 1
Public structs: 3
use common_utils::{
payout_method_utils,
types::{UnifiedCode, UnifiedMessage},
};
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use serde::{self, Deserialize, Serialize};
use time::PrimitiveDa... | crates/diesel_models/src/payout_attempt.rs | diesel_models | full_file | 2,068 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/external_services/build.rs
#[allow(clippy::expect_used)]
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Compilation for revenue recovery protos
#[cfg(feature = "revenue_recovery")]
{
let proto_base_path = router_env::workspace_path().join("proto");
let out_dir = std::... | crates/external_services/build.rs | external_services | full_file | 390 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundSync for Digitalvirgo {} | crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Digitalvirgo | api::RefundSync for | impl api::RefundSync for for Digitalvirgo | null | null | null | null | null | null | null | null |
pub fn get_internal_error_mut(&mut self) -> &mut ApiError {
match self {
Self::Unauthorized(i)
| Self::ForbiddenCommonResource(i)
| Self::ForbiddenPrivateResource(i)
| Self::Conflict(i)
| Self::Gone(i)
| Self::Unprocessable(i)
|... | crates/api_models/src/errors/types.rs | api_models | function_signature | 128 | rust | null | null | null | null | get_internal_error_mut | null | null | null | null | null | null | null |
pub async fn insert_user_and_merchant_in_db(
&self,
state: SessionState,
) -> UserResult<UserFromStorage> {
self.check_if_already_exists_in_db(state.clone()).await?;
let db = state.global_store.as_ref();
let merchant_id = self.get_new_merchant().get_merchant_id();
sel... | crates/router/src/types/domain/user.rs | router | function_signature | 139 | rust | null | null | null | null | insert_user_and_merchant_in_db | null | null | null | null | null | null | null |
pub struct AmountDetails {
total: Option<f64>,
currency: Option<common_enums::Currency>,
components: Option<Components>,
} | crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs | hyperswitch_connectors | struct_definition | 32 | rust | AmountDetails | null | null | null | null | null | null | null | null | null | null | null |
impl std::ops::Deref for PayoutsMandateReference {
type Target =
HashMap<common_utils::id_type::MerchantConnectorAccountId, PayoutsMandateReferenceRecord>;
fn deref(&self) -> &Self::Target {
&self.0
}
} | crates/hyperswitch_domain_models/src/mandates.rs | hyperswitch_domain_models | impl_block | 64 | rust | null | PayoutsMandateReference | std::ops::Deref for | impl std::ops::Deref for for PayoutsMandateReference | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_interfaces/src/crm.rs
Public structs: 1
use common_enums::CountryAlpha2;
use common_utils::{
errors::CustomResult,
request::{Request, RequestContent},
};
use masking::Secret;
use super::types::Proxy;
use crate::errors::HttpClientError;
/// Crm Payload structure
#[derive(Clone, Debug... | crates/hyperswitch_interfaces/src/crm.rs | hyperswitch_interfaces | full_file | 516 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn master_key(&self) -> &StrongSecret<Vec<u8>> {
self.router_store.master_key()
} | crates/storage_impl/src/kv_router_store.rs | storage_impl | function_signature | 25 | rust | null | null | null | null | master_key | null | null | null | null | null | null | null |
pub struct CreateTransactionRequest {
create_transaction_request: AuthorizedotnetPaymentsRequest,
} | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | CreateTransactionRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct SilverflowError {
pub code: String,
pub message: String,
pub details: Option<ErrorDetails>,
} | crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | SilverflowError | null | null | null | null | null | null | null | null | null | null | null |
pub struct QrRequestData {
pub qr_data: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | QrRequestData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn complete_create_payout(
state: &SessionState,
merchant_context: &domain::MerchantContext,
connector_data: &api::ConnectorData,
payout_data: &mut PayoutData,
) -> RouterResult<()> {
if !payout_data.should_terminate
&& matches!(
payout_data.payout_attempt.status,
... | crates/router/src/core/payouts.rs | router | function_signature | 512 | rust | null | null | null | null | complete_create_payout | null | null | null | null | null | null | null |
impl<T: ApiEventMetric> ApiEventMetric for ApplicationResponse<T> {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
match self {
Self::Json(r) => r.get_api_event_type(),
Self::JsonWithHeaders((r, _)) => r.get_api_event_type(),
_ => None,
}
}
} | crates/hyperswitch_domain_models/src/api.rs | hyperswitch_domain_models | impl_block | 78 | rust | null | ApplicationResponse | ApiEventMetric for | impl ApiEventMetric for for ApplicationResponse | null | null | null | null | null | null | null | null |
pub struct BraintreeWebhookResponse {
pub bt_signature: String,
pub bt_payload: String,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | BraintreeWebhookResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundResponse {
id: String,
status: WellsfargopayoutRefundStatus,
} | crates/hyperswitch_connectors/src/connectors/wellsfargopayout/transformers.rs | hyperswitch_connectors | struct_definition | 24 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Digitalvirgo {} | crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Digitalvirgo | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Digitalvirgo | null | null | null | null | null | null | null | null |
pub struct ResetPassword {
pub recipient_email: domain::UserEmail,
pub user_name: domain::UserName,
pub settings: std::sync::Arc<configs::Settings>,
pub auth_id: Option<String>,
pub theme_id: Option<String>,
pub theme_config: EmailThemeConfig,
} | crates/router/src/services/email/types.rs | router | struct_definition | 64 | rust | ResetPassword | null | null | null | null | null | null | null | null | null | null | null |
impl Chat {
pub fn server(state: AppState) -> Scope {
let mut route = web::scope("/chat").app_data(web::Data::new(state.clone()));
if state.conf.chat.enabled {
route = route.service(
web::scope("/ai").service(
web::resource("/data")
... | crates/router/src/routes/app.rs | router | impl_block | 96 | rust | null | Chat | null | impl Chat | null | null | null | null | null | null | null | null |
pub struct SdkEventFilterValue {
pub dimension: SdkEventDimensions,
pub values: Vec<String>,
} | crates/api_models/src/analytics.rs | api_models | struct_definition | 25 | rust | SdkEventFilterValue | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Taxjar {} | crates/hyperswitch_connectors/src/connectors/taxjar.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Taxjar | api::PaymentToken for | impl api::PaymentToken for for Taxjar | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Paystack {} | crates/hyperswitch_connectors/src/connectors/paystack.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Paystack | api::PaymentSync for | impl api::PaymentSync for for Paystack | null | null | null | null | null | null | null | null |
pub struct NoAuth; | crates/router/src/services/authentication.rs | router | struct_definition | 5 | rust | NoAuth | null | null | null | null | null | null | null | null | null | null | null |
impl PaymentMethods {
pub fn server(state: AppState) -> Scope {
let mut route = web::scope("/payment_methods").app_data(web::Data::new(state));
#[cfg(feature = "olap")]
{
route =
route.service(web::resource("/filter").route(
web::get().to(
... | crates/router/src/routes/app.rs | router | impl_block | 601 | rust | null | PaymentMethods | null | impl PaymentMethods | null | null | null | null | null | null | null | null |
pub trait DisputeFilterAnalytics: LoadRow<DisputeFilterRow> {} | crates/analytics/src/disputes/filters.rs | analytics | trait_definition | 16 | rust | null | null | DisputeFilterAnalytics | null | null | null | null | null | null | null | null | null |
/// Will panic if `CONNECTOR_AUTH_FILE_PATH` is not set
pub async fn test_store(
db_conf: T::Config,
tenant_config: &dyn config::TenantConfig,
cache_conf: &redis_interface::RedisSettings,
encryption_key: StrongSecret<Vec<u8>>,
) -> error_stack::Result<Self, StorageError> {
... | crates/storage_impl/src/lib.rs | storage_impl | function_signature | 184 | rust | null | null | null | null | test_store | null | null | null | null | null | null | null |
pub struct ProcessTrackerBatch {
pub id: String,
pub group_name: String,
pub stream_name: String,
pub connection_name: String,
pub created_time: PrimitiveDateTime,
pub rule: String, // is it required?
pub trackers: Vec<ProcessTracker>, /* FIXME: Add sized also here, list */... | crates/scheduler/src/consumer/types/batch.rs | scheduler | struct_definition | 74 | rust | ProcessTrackerBatch | null | null | null | null | null | null | null | null | null | null | null |
pub async fn send_encryption_request<T>(
state: &KeyManagerState,
headers: HeaderMap,
url: String,
method: Method,
request_body: T,
) -> errors::CustomResult<reqwest::Response, errors::KeyManagerClientError>
where
T: ConvertRaw,
{
let client = get_api_encryption_client(state)?;
let url =... | crates/common_utils/src/keymanager.rs | common_utils | function_signature | 173 | rust | null | null | null | null | send_encryption_request | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/disputes/list"
{
"get": {
"tags": [
"Disputes"
],
"summary": "Disputes - List Disputes",
"description": "Lists all the Disputes for a merchant",
"operationId": "List Disputes",
"parameters": [
{
"name": "limit",
"in": "query",
"de... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 865 | .json | null | null | null | null | null | openapi_spec | paths | [
"/disputes/list"
] | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.