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 Responder { let flow = Flow::ConfigKeyFetch; let key = path.into_inner(); api::server_wrap( flow, state, &req, &key, |state, _, key, _| configs::read_config(state, key), &ADMIN_API_AUTH, api_locking::LockAction::NotApplicable, ) .await }
crates/router/src/routes/configs.rs
router
impl_block
83
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl IncomingWebhook for Boku { fn get_webhook_object_reference_id( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented)) } fn get_webhook_event_type( ...
crates/hyperswitch_connectors/src/connectors/boku.rs
hyperswitch_connectors
impl_block
185
rust
null
Boku
IncomingWebhook for
impl IncomingWebhook for for Boku
null
null
null
null
null
null
null
null
impl Globalpay { pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/globalpay.rs
hyperswitch_connectors
impl_block
34
rust
null
Globalpay
null
impl Globalpay
null
null
null
null
null
null
null
null
pub async fn insert_email_token_in_blacklist(state: &SessionState, token: &str) -> UserResult<()> { let redis_conn = get_redis_connection_for_global_tenant(state) .change_context(UserErrors::InternalServerError)?; let blacklist_key = format!("{EMAIL_TOKEN_BLACKLIST_PREFIX}{token}"); let expiry = ...
crates/router/src/services/authentication/blacklist.rs
router
function_signature
125
rust
null
null
null
null
insert_email_token_in_blacklist
null
null
null
null
null
null
null
impl PayoutCreateRequest { pub fn get_customer_id(&self) -> Option<&id_type::CustomerId> { self.customer_id .as_ref() .or(self.customer.as_ref().map(|customer| &customer.id)) } }
crates/api_models/src/payouts.rs
api_models
impl_block
53
rust
null
PayoutCreateRequest
null
impl PayoutCreateRequest
null
null
null
null
null
null
null
null
pub trait TypeEncryption< T, V: crypto::EncodeMessage + crypto::DecodeMessage, S: masking::Strategy<T>, >: Sized { async fn encrypt_via_api( state: &KeyManagerState, masked_data: Secret<T, S>, identifier: Identifier, key: &[u8], ...
crates/hyperswitch_domain_models/src/type_encryption.rs
hyperswitch_domain_models
trait_definition
442
rust
null
null
TypeEncryption
null
null
null
null
null
null
null
null
null
impl MerchantCountryCode { /// Returns the country code as a string. pub fn get_country_code(&self) -> String { self.0.clone() } /// Validates the country code and returns a `Country` enum variant. /// /// This method attempts to parse the country code as a u32 and convert it to a `Coun...
crates/common_types/src/payments.rs
common_types
impl_block
309
rust
null
MerchantCountryCode
null
impl MerchantCountryCode
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ToggleKVRequest { "type": "object", "required": [ "kv_enabled" ], "properties": { "kv_enabled": { "type": "boolean", "description": "Status of KV for the specific merchant", "example": true } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
74
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ToggleKVRequest" ]
null
null
null
null
Documentation: api-reference/v1/payments/payment--flows.mdx # Type: Doc File --- tags: [Payments] sidebarTitle: "Payment Flows" icon: "arrows-retweet" iconType: "solid" --- Hyperswitch provides flexible payment processing with multiple flow patterns to accommodate different business needs. The system supports one-time...
api-reference/v1/payments/payment--flows.mdx
null
doc_file
2,178
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct VgsAuthType { pub(super) username: Secret<String>, pub(super) password: Secret<String>, // vault_id is used in sessions API pub(super) _vault_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs
hyperswitch_connectors
struct_definition
47
rust
VgsAuthType
null
null
null
null
null
null
null
null
null
null
null
pub struct Fulfillment;
crates/hyperswitch_domain_models/src/router_flow_types/fraud_check.rs
hyperswitch_domain_models
struct_definition
6
rust
Fulfillment
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Forte {}
crates/hyperswitch_connectors/src/connectors/forte.rs
hyperswitch_connectors
impl_block
9
rust
null
Forte
api::PaymentToken for
impl api::PaymentToken for for Forte
null
null
null
null
null
null
null
null
pub fn update(&mut self, new: Self) { if let Some(min_aggregates_size) = new.min_aggregates_size { self.min_aggregates_size = Some(min_aggregates_size) } if let Some(default_success_rate) = new.default_success_rate { self.default_success_rate = Some(default_success_rate) ...
crates/api_models/src/routing.rs
api_models
function_signature
247
rust
null
null
null
null
update
null
null
null
null
null
null
null
impl NovalnetSyncResponseTransactionData { pub fn get_token(transaction_data: Option<&Self>) -> Option<String> { if let Some(data) = transaction_data { match &data.payment_data { Some(NovalnetResponsePaymentData::Card(card_data)) => { card_data.token.clone().m...
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
impl_block
129
rust
null
NovalnetSyncResponseTransactionData
null
impl NovalnetSyncResponseTransactionData
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::WebhookEventDeliveryRetry; let (merchant_id, event_id) = path.into_inner(); let request_internal = WebhookDeliveryRetryRequestInternal { merchant_id: merchant_id.clone(), event_id, }; Box::pin(api::server_wrap( flow, state, ...
crates/router/src/routes/webhook_events.rs
router
impl_block
184
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl api::PaymentSession for Itaubank {}
crates/hyperswitch_connectors/src/connectors/itaubank.rs
hyperswitch_connectors
impl_block
10
rust
null
Itaubank
api::PaymentSession for
impl api::PaymentSession for for Itaubank
null
null
null
null
null
null
null
null
File: crates/router/src/core/payouts/access_token.rs Public functions: 3 use common_utils::ext_traits::AsyncExt; use error_stack::ResultExt; use crate::{ consts, core::{ errors::{self, RouterResult}, payments, }, routes::{metrics, SessionState}, services, types::{self, api as ...
crates/router/src/core/payouts/access_token.rs
router
full_file
1,363
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn update_storage_scheme(&mut self, storage_scheme: MerchantStorageScheme) { self.updated_by = Some(storage_scheme.to_string()); }
crates/diesel_models/src/payment_method.rs
diesel_models
function_signature
30
rust
null
null
null
null
update_storage_scheme
null
null
null
null
null
null
null
pub struct PazeDynamicData { pub dynamic_data_value: Option<Secret<String>>, pub dynamic_data_type: Option<String>, pub dynamic_data_expiration: Option<String>, }
crates/hyperswitch_domain_models/src/router_data.rs
hyperswitch_domain_models
struct_definition
38
rust
PazeDynamicData
null
null
null
null
null
null
null
null
null
null
null
dispute_status: dispute.dispute_status, }, response: Err(ErrorResponse::default()), access_token: None, session_token: None, reference_id: None, payment_method_token: None, connector_customer: None, customer_id: None, recurring_mandate_...
crates/router/src/core/utils.rs#chunk1
router
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_email(&self) -> pii::Email { self.0.email.clone() }
crates/router/src/types/domain/user.rs
router
function_signature
21
rust
null
null
null
null
get_email
null
null
null
null
null
null
null
pub async fn find_by_role_id_org_id_tenant_id( conn: &PgPooledConn, role_id: &str, org_id: &id_type::OrganizationId, tenant_id: &id_type::TenantId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::rol...
crates/diesel_models/src/query/role.rs
diesel_models
function_signature
132
rust
null
null
null
null
find_by_role_id_org_id_tenant_id
null
null
null
null
null
null
null
pub async fn save_in_locker( state: &SessionState, merchant_context: &domain::MerchantContext, payment_method_request: api::PaymentMethodCreate, card_detail: Option<api::CardDetail>, ) -> RouterResult<( api_models::payment_methods::PaymentMethodResponse, Option<payment_methods::transformers::Dat...
crates/router/src/core/payments/tokenization.rs
router
function_signature
414
rust
null
null
null
null
save_in_locker
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/payu.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use api_models::webhooks::IncomingWebhookEvent; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::ByteSliceExt, request::{Method, R...
crates/hyperswitch_connectors/src/connectors/payu.rs
hyperswitch_connectors
full_file
6,590
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Opennode {}
crates/hyperswitch_connectors/src/connectors/opennode.rs
hyperswitch_connectors
impl_block
9
rust
null
Opennode
api::Payment for
impl api::Payment for for Opennode
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/customers/list" { "get": { "tags": [ "Customers" ], "summary": "Customers - List", "description": "Lists all the customers for a particular merchant id.", "operationId": "List all Customers for a Merchant", "parameters": [ { "name": "offset", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
319
.json
null
null
null
null
null
openapi_spec
paths
[ "/customers/list" ]
null
null
null
null
pub fn add_header(&mut self, header: &str, value: Maskable<String>) { self.headers.insert((String::from(header), value)); }
crates/common_utils/src/request.rs
common_utils
function_signature
34
rust
null
null
null
null
add_header
null
null
null
null
null
null
null
pub struct Shift4RefundRequest { charge_id: String, amount: MinorUnit, }
crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
Shift4RefundRequest
null
null
null
null
null
null
null
null
null
null
null
impl Nomupay { pub fn new() -> &'static Self { &Self { #[cfg(feature = "payouts")] amount_converter: &FloatMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/nomupay.rs
hyperswitch_connectors
impl_block
45
rust
null
Nomupay
null
impl Nomupay
null
null
null
null
null
null
null
null
/// Panics if `json_payload` array does not contain one `GetDisputeMetricRequest` element. pub async fn get_profile_dispute_metrics( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<[GetDisputeMetricRequest; 1]>, ) -> impl Responder { // safety: Th...
crates/router/src/analytics.rs
router
function_signature
355
rust
null
null
null
null
get_profile_dispute_metrics
null
null
null
null
null
null
null
pub struct BankAccountCredentials;
crates/pm_auth/src/types/api/auth_service.rs
pm_auth
struct_definition
6
rust
BankAccountCredentials
null
null
null
null
null
null
null
null
null
null
null
pub struct CoingateAuthType { pub(super) api_key: Secret<String>, pub(super) merchant_token: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
CoingateAuthType
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/worldpayxml.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use base64::Engine; use common_utils::{ errors::CustomResult, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, Strin...
crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
hyperswitch_connectors
full_file
6,449
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn from_payments_request( payments_request: &api_models::payments::PaymentsRequest, order_amount: MinorUnit, ) -> Self { let surcharge_amount = payments_request .surcharge_details .map(|surcharge_details| surcharge_details.surcharge_amount); let tax_on_sur...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
136
rust
null
null
null
null
from_payments_request
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ApplePayCryptogramData { "type": "object", "description": "This struct represents the cryptogram data for Apple Pay transactions", "required": [ "online_payment_cryptogram", "eci_indicator" ], "properties": { "online_payment_cryptogram": { "type": "stri...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
157
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ApplePayCryptogramData" ]
null
null
null
null
pub struct GenericTokenizationResponse { /// Unique identifier returned by the tokenization service #[schema(value_type = String, example = "12345_tok_01926c58bc6e77c09e809964e72af8c8")] pub id: id_type::GlobalTokenId, /// Created time of the tokenization id #[schema(value_type = PrimitiveDateTime,e...
crates/api_models/src/tokenization.rs
api_models
struct_definition
169
rust
GenericTokenizationResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_payment_method( &self, key_store: &merchant_key_store::MerchantKeyStore, merchant_account: &merchant_account::MerchantAccount, payment_method_id: String, ) -> CustomResult<pm_domain::PaymentMethod, errors::StorageError> { let db = &*self.store; let k...
crates/payment_methods/src/state.rs
payment_methods
function_signature
197
rust
null
null
null
null
find_payment_method
null
null
null
null
null
null
null
File: crates/router/src/core/payment_methods/migration.rs Public functions: 3 Public structs: 1 use actix_multipart::form::{self, bytes, text}; use api_models::payment_methods as pm_api; use common_utils::{errors::CustomResult, id_type}; use csv::Reader; use error_stack::ResultExt; use hyperswitch_domain_models::{ ...
crates/router/src/core/payment_methods/migration.rs
router
full_file
2,011
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_default_routing_config( state: SessionState, profile_id: Option<common_utils::id_type::ProfileId>, merchant_context: domain::MerchantContext, transaction_type: &enums::TransactionType, ) -> RouterResponse<Vec<routing_types::RoutableConnectorChoice>> { metrics::ROUTING_RETRIEVE_...
crates/router/src/core/routing.rs
router
function_signature
210
rust
null
null
null
null
retrieve_default_routing_config
null
null
null
null
null
null
null
impl api::PaymentToken for Payu {}
crates/hyperswitch_connectors/src/connectors/payu.rs
hyperswitch_connectors
impl_block
9
rust
null
Payu
api::PaymentToken for
impl api::PaymentToken for for Payu
null
null
null
null
null
null
null
null
File: crates/openapi/src/routes/revenue_recovery.rs Public functions: 1 #[cfg(feature = "v2")] /// Revenue Recovery - Retrieve /// /// Retrieve the Revenue Recovery Payment Info #[utoipa::path( get, path = "/v2/process-trackers/revenue-recovery-workflow/{revenue_recovery_id}", params( ("recovery_r...
crates/openapi/src/routes/revenue_recovery.rs
openapi
full_file
225
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ErrorCategory { "type": "string", "enum": [ "frm_decline", "processor_downtime", "processor_decline_unauthorized", "issue_with_payment_method", "processor_decline_incorrect_data", "hard_decline", "soft_decline" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
76
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ErrorCategory" ]
null
null
null
null
pub async fn check_if_connector_exists( state: &SessionState, connector_id: &common_utils::id_type::MerchantConnectorAccountId, merchant_id: &common_utils::id_type::MerchantId, ) -> RouterResult<()> { let key_manager_state = &state.into(); let key_store = state .store .get_merchant_k...
crates/router/src/utils/connector_onboarding.rs
router
function_signature
248
rust
null
null
null
null
check_if_connector_exists
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/globalpay.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
File: crates/router/tests/connectors/coinbase.rs use hyperswitch_domain_models::address::{Address, AddressDetails, PhoneDetails}; use masking::Secret; use router::types::{self, api, domain, storage::enums, PaymentAddress}; use serde_json::json; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; ...
crates/router/tests/connectors/coinbase.rs
router
full_file
1,412
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CardTokenAdditionalData { /// The card holder's name #[schema(value_type = String, example = "John Test")] pub card_holder_name: Option<Secret<String>>, }
crates/api_models/src/payments/additional_info.rs
api_models
struct_definition
41
rust
CardTokenAdditionalData
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentResponseData { pub statuses: Statuses, pub descriptor: Option<String>, pub notifications: NotificationContainer, #[serde(rename = "merchant-account-id")] pub merchant_account_id: MerchantAccountId, #[serde(rename = "transaction-id")] pub transaction_id: String, #[serde(...
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
263
rust
PaymentResponseData
null
null
null
null
null
null
null
null
null
null
null
pub fn from_storage(intent: &'a PaymentIntent, infra_values: Option<Value>) -> Self { Self { payment_id: &intent.payment_id, merchant_id: &intent.merchant_id, status: intent.status, amount: intent.amount, currency: intent.currency, amount_c...
crates/router/src/services/kafka/payment_intent.rs
router
function_signature
419
rust
null
null
null
null
from_storage
null
null
null
null
null
null
null
pub async fn delete_surcharge_decision_config( _state: SessionState, _merchant_context: domain::MerchantContext, ) -> RouterResponse<()> { todo!() }
crates/router/src/core/surcharge_decision_config.rs
router
function_signature
37
rust
null
null
null
null
delete_surcharge_decision_config
null
null
null
null
null
null
null
File: crates/router/src/core/payments/helpers.rs Public functions: 139 Public structs: 9 use std::{borrow::Cow, collections::HashSet, net::IpAddr, str::FromStr}; pub use ::payment_methods::helpers::{ populate_bin_details_for_payment_method_create, validate_payment_method_type_against_payment_method, }; #[cf...
crates/router/src/core/payments/helpers.rs#chunk0
router
chunk
8,183
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CmdLineConf { /// Config file. /// Application will look for "config/config.toml" if this option isn't specified. #[arg(short = 'f', long, value_name = "FILE")] pub config_path: Option<PathBuf>, }
crates/drainer/src/settings.rs
drainer
struct_definition
56
rust
CmdLineConf
null
null
null
null
null
null
null
null
null
null
null
pub struct Gocardless { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/gocardless.rs
hyperswitch_connectors
struct_definition
27
rust
Gocardless
null
null
null
null
null
null
null
null
null
null
null
pub trait PaymentIntentMetric<T> where T: AnalyticsDataSource + PaymentIntentMetricAnalytics, { async fn load_metrics( &self, dimensions: &[PaymentIntentDimensions], auth: &AuthInfo, filters: &PaymentIntentFilters, granularity: Option<Granularity>, time_range: &Ti...
crates/analytics/src/payment_intents/metrics.rs
analytics
trait_definition
97
rust
null
null
PaymentIntentMetric
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/api/payouts_v2.rs //! Payouts V2 interface use hyperswitch_domain_models::{ router_data_v2::flow_common_types::PayoutFlowData, router_flow_types::payouts::{ PoCancel, PoCreate, PoEligibility, PoFulfill, PoQuote, PoRecipient, PoRecipientAccount, PoSync, ...
crates/hyperswitch_interfaces/src/api/payouts_v2.rs
hyperswitch_interfaces
full_file
607
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn relay<T: RelayInterface>( state: SessionState, merchant_context: domain::MerchantContext, profile_id_optional: Option<id_type::ProfileId>, req: RelayRequestInner<T>, ) -> RouterResponse<relay_api_models::RelayResponse> { let db = state.store.as_ref(); let key_manager_state = &(&stat...
crates/router/src/core/relay.rs
router
function_signature
618
rust
null
null
null
null
relay
null
null
null
null
null
null
null
pub struct EliminationRoutingEventRequest { pub id: String, pub params: String, pub labels: Vec<String>, pub config: Option<EliminationRoutingEventBucketConfig>, }
crates/api_models/src/routing.rs
api_models
struct_definition
41
rust
EliminationRoutingEventRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/storage/user.rs pub use diesel_models::user::*;
crates/router/src/types/storage/user.rs
router
full_file
17
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ContractBasedRoutingPayloadWrapper { pub updated_config: ContractBasedRoutingConfig, pub algorithm_id: common_utils::id_type::RoutingId, pub profile_id: common_utils::id_type::ProfileId, }
crates/api_models/src/routing.rs
api_models
struct_definition
47
rust
ContractBasedRoutingPayloadWrapper
null
null
null
null
null
null
null
null
null
null
null
impl State for CardInfoAdd {}
crates/router/src/core/cards_info.rs
router
impl_block
7
rust
null
CardInfoAdd
State for
impl State for for CardInfoAdd
null
null
null
null
null
null
null
null
pub async fn list_roles_at_entity_level( state: SessionState, user_from_token: UserFromToken, req: role_api::ListRolesAtEntityLevelRequest, check_type: role_api::RoleCheckType, ) -> UserResponse<Vec<role_api::MinimalRoleInfo>> { let user_entity_type = user_from_token .get_role_info_from_db(&...
crates/router/src/core/user_role/role.rs
router
function_signature
658
rust
null
null
null
null
list_roles_at_entity_level
null
null
null
null
null
null
null
pub struct PaymentLinkConfigRequest { pub theme: Option<String>, pub logo: Option<String>, pub seller_name: Option<String>, pub sdk_layout: Option<String>, pub display_sdk_only: Option<bool>, pub enabled_saved_payment_method: Option<bool>, pub hide_card_nickname_field: Option<bool>, pub ...
crates/diesel_models/src/business_profile.rs
diesel_models
struct_definition
280
rust
PaymentLinkConfigRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct DeutschebankAccessTokenResponse { pub access_token: Secret<String>, pub expires_in: i64, pub expires_on: i64, pub scope: String, pub token_type: String, }
crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
hyperswitch_connectors
struct_definition
47
rust
DeutschebankAccessTokenResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn get_payment_webhook_statuses(&self) -> Cow<'_, [common_enums::IntentStatus]> { self.webhook_details .as_ref() .and_then(|details| details.payment_statuses_enabled.as_ref()) .filter(|statuses_vec| !statuses_vec.is_empty()) .map(|statuses_vec| Cow::Borrowed(s...
crates/hyperswitch_domain_models/src/business_profile.rs
hyperswitch_domain_models
function_signature
109
rust
null
null
null
null
get_payment_webhook_statuses
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentMethod { "type": "string", "description": "Indicates the type of payment method. Eg: 'card', 'wallet', etc.", "enum": [ "card", "card_redirect", "pay_later", "wallet", "bank_redirect", "bank_transfer", "crypto", "bank_debit", "rewar...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
124
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentMethod" ]
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GenerateAuthenticationReport; Box::pin(api::server_wrap( flow, state.clone(), &req, json_payload.into_inner(), |state, (auth, user_id): auth::AuthenticationDataWithUserId, payload, _| async move { ...
crates/router/src/analytics.rs
router
impl_block
370
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
File: crates/analytics/src/refunds/metrics/sessionized_metrics.rs mod refund_count; mod refund_error_message; mod refund_processed_amount; mod refund_reason; mod refund_success_count; mod refund_success_rate; pub(super) use refund_count::RefundCount; pub(super) use refund_error_message::RefundErrorMessage; pub(super)...
crates/analytics/src/refunds/metrics/sessionized_metrics.rs
analytics
full_file
134
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Ebanx {}
crates/hyperswitch_connectors/src/connectors/ebanx.rs
hyperswitch_connectors
impl_block
10
rust
null
Ebanx
api::PaymentSession for
impl api::PaymentSession for for Ebanx
null
null
null
null
null
null
null
null
pub struct AutoSettlement { pub auto: bool, }
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
hyperswitch_connectors
struct_definition
13
rust
AutoSettlement
null
null
null
null
null
null
null
null
null
null
null
impl<T> SingleOrListElement<T> { fn get_version_checked(message_version: SemanticVersion, value: T) -> Self { if message_version.get_major() >= 2 && message_version.get_minor() >= 3 { Self::List(vec![value]) } else { Self::Single(value) } } }
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs
hyperswitch_connectors
impl_block
71
rust
null
SingleOrListElement
null
impl SingleOrListElement
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Worldpayvantiv { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&WORLDPAYVANTIV_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*WORLDPAYVANTIV_SUPPORTED_PAYMENT_METHODS) ...
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
402
rust
null
Worldpayvantiv
ConnectorSpecifications for
impl ConnectorSpecifications for for Worldpayvantiv
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Forte {}
crates/hyperswitch_connectors/src/connectors/forte.rs
hyperswitch_connectors
impl_block
9
rust
null
Forte
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Forte
null
null
null
null
null
null
null
null
pub struct WellsfargoRefundResponse { id: String, status: WellsfargoRefundStatus, error_information: Option<WellsfargoErrorInformation>, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
WellsfargoRefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn make_dsl_input( payments_dsl_input: &routing::PaymentsDslInput<'_>, ) -> RoutingResult<dsl_inputs::BackendInput> { let mandate_data = dsl_inputs::MandateData { mandate_acceptance_type: payments_dsl_input.setup_mandate.as_ref().and_then( |mandate_data| { mandate_data ...
crates/router/src/core/payments/routing.rs
router
function_signature
890
rust
null
null
null
null
make_dsl_input
null
null
null
null
null
null
null
pub async fn validate_connectors_in_routing_config( state: &SessionState, key_store: &domain::MerchantKeyStore, merchant_id: &id_type::MerchantId, profile_id: &id_type::ProfileId, routing_algorithm: &routing_types::StaticRoutingAlgorithm, ) -> RouterResult<()> { let all_mcas = state .sto...
crates/router/src/core/routing/helpers.rs
router
function_signature
697
rust
null
null
null
null
validate_connectors_in_routing_config
null
null
null
null
null
null
null
pub struct AttemptAmountDetails { /// The total amount for this payment attempt. This includes all the surcharge and tax amounts. net_amount: MinorUnit, /// The amount that has to be captured, amount_to_capture: Option<MinorUnit>, /// Surcharge amount for the payment attempt. /// This is either ...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
struct_definition
206
rust
AttemptAmountDetails
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Mifinity { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&*MIFINITY_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*MIFINITY_SUPPORTED_PAYMENT_METHODS) } fn get_...
crates/hyperswitch_connectors/src/connectors/mifinity.rs
hyperswitch_connectors
impl_block
114
rust
null
Mifinity
ConnectorSpecifications for
impl ConnectorSpecifications for for Mifinity
null
null
null
null
null
null
null
null
impl Responder { let payload = json_payload.into_inner(); let flow = Flow::CardsInfoCreate; Box::pin(api::server_wrap( flow, state.clone(), &req, payload, |state, _, payload, _| cards_info::create_card_info(state, payload), &auth::AdminApiAuth, api_loc...
crates/router/src/routes/cards_info.rs
router
impl_block
91
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Aci {}
crates/hyperswitch_connectors/src/connectors/aci.rs
hyperswitch_connectors
impl_block
9
rust
null
Aci
api::PaymentVoid for
impl api::PaymentVoid for for Aci
null
null
null
null
null
null
null
null
impl std::fmt::Display for RoutableConnectorChoice { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { let base = self.connector.to_string(); if let Some(mca_id) = &self.merchant_connector_id { return write!(f, "{}:{}", base, mca_id.get_string_repr()); } ...
crates/api_models/src/routing.rs
api_models
impl_block
93
rust
null
RoutableConnectorChoice
std::fmt::Display for
impl std::fmt::Display for for RoutableConnectorChoice
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GooglePayRedirectData { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
22
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GooglePayRedirectData" ]
null
null
null
null
pub fn get(&self, idx: K) -> Option<&V> { self.data.get(idx.get_id()) }
crates/hyperswitch_constraint_graph/src/dense_map.rs
hyperswitch_constraint_graph
function_signature
26
rust
null
null
null
null
get
null
null
null
null
null
null
null
impl api::PaymentCapture for Razorpay {}
crates/hyperswitch_connectors/src/connectors/razorpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Razorpay
api::PaymentCapture for
impl api::PaymentCapture for for Razorpay
null
null
null
null
null
null
null
null
pub struct RevenueRecoveryAttemptData { /// transaction amount against invoice, accepted in minor unit. pub amount: util_types::MinorUnit, /// currency of the transaction pub currency: common_enums::Currency, /// merchant reference id at billing connector. ex: invoice_id pub merchant_reference_i...
crates/hyperswitch_domain_models/src/revenue_recovery.rs
hyperswitch_domain_models
struct_definition
554
rust
RevenueRecoveryAttemptData
null
null
null
null
null
null
null
null
null
null
null
pub struct PowertranzBaseRequest { transaction_identifier: String, total_amount: Option<f64>, refund: Option<bool>, }
crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
PowertranzBaseRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/euclid/src/frontend/dir/lowering.rs Public functions: 1 //! Analysis of the lowering logic for the DIR //! //! Consists of certain functions that supports the lowering logic from DIR to VIR. //! These includes the lowering of the DIR program and vector of rules , and the lowering of ifstatements //! ,and...
crates/euclid/src/frontend/dir/lowering.rs
euclid
full_file
4,050
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct RoutingAlgorithmRecord { pub id: id_type::RoutingId, pub name: String, pub description: Option<String>, pub created_by: id_type::ProfileId, pub algorithm_data: StaticRoutingAlgorithm, pub algorithm_for: TransactionType, pub metadata: Option<RoutingMetadata>, pub created_at: ti...
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
87
rust
RoutingAlgorithmRecord
null
null
null
null
null
null
null
null
null
null
null
pub trait MandateBehaviour { fn get_amount(&self) -> i64; fn get_setup_future_usage(&self) -> Option<diesel_models::enums::FutureUsage>; fn get_mandate_id(&self) -> Option<&payments::MandateIds>; fn set_mandate_id(&mut self, new_mandate_id: Option<payments::MandateIds>); fn get_payment_method_data(&...
crates/router/src/core/mandate.rs
router
trait_definition
156
rust
null
null
MandateBehaviour
null
null
null
null
null
null
null
null
null
pub struct MigrateCardResponse { pub status_message: String, pub status_code: String, pub customers_moved: usize, pub cards_moved: usize, }
crates/api_models/src/locker_migration.rs
api_models
struct_definition
38
rust
MigrateCardResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Sift {}
crates/hyperswitch_connectors/src/connectors/sift.rs
hyperswitch_connectors
impl_block
9
rust
null
Sift
api::PaymentSync for
impl api::PaymentSync for for Sift
null
null
null
null
null
null
null
null
File: crates/analytics/src/search.rs Public functions: 3 use api_models::analytics::search::{ GetGlobalSearchRequest, GetSearchRequestWithIndex, GetSearchResponse, OpenMsearchOutput, OpensearchOutput, SearchIndex, SearchStatus, }; use common_utils::errors::{CustomResult, ReportSwitchExt}; use error_stack::Res...
crates/analytics/src/search.rs
analytics
full_file
2,732
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/refunds/metrics/sessionized_metrics/refund_success_count.rs use std::collections::HashSet; use api_models::analytics::{ refunds::{RefundDimensions, RefundFilters, RefundMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use diesel_models:...
crates/analytics/src/refunds/metrics/sessionized_metrics/refund_success_count.rs
analytics
full_file
890
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalAuthUpdateResponse { pub access_token: Secret<String>, pub token_type: String, pub expires_in: i64, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
PaypalAuthUpdateResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct AirwallexPaymentsNextAction { url: Url, method: Method, data: AirwallexRedirectFormData, stage: AirwallexNextActionStage, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
39
rust
AirwallexPaymentsNextAction
null
null
null
null
null
null
null
null
null
null
null
/// Performs Payment Setup Mandate pub async fn payment_setup_mandate( &self, payment_register_request: payments_grpc::PaymentServiceRegisterRequest, connector_auth_metadata: ConnectorAuthMetadata, grpc_headers: GrpcHeaders, ) -> UnifiedConnectorServiceResult<tonic::Response<paym...
crates/external_services/src/grpc_client/unified_connector_service.rs
external_services
function_signature
224
rust
null
null
null
null
payment_setup_mandate
null
null
null
null
null
null
null
pub struct ProcessingInformationResponse { payment_solution: Option<String>, commerce_indicator: Option<String>, commerce_indicator_label: Option<String>, ecommerce_indicator: Option<String>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
ProcessingInformationResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn construct_uas_router_data<F: Clone, Req, Res>( state: &SessionState, authentication_connector_name: String, payment_method: PaymentMethod, merchant_id: common_utils::id_type::MerchantId, address: Option<PaymentAddress>, request_data: Req, merchant_connector_account: &payments::helpers...
crates/router/src/core/unified_authentication_service/utils.rs
router
function_signature
630
rust
null
null
null
null
construct_uas_router_data
null
null
null
null
null
null
null
pub async fn find_process_by_id(conn: &PgPooledConn, id: &str) -> StorageResult<Option<Self>> { generics::generic_find_by_id_optional::<<Self as HasTable>::Table, _, _>( conn, id.to_owned(), ) .await }
crates/diesel_models/src/query/process_tracker.rs
diesel_models
function_signature
63
rust
null
null
null
null
find_process_by_id
null
null
null
null
null
null
null
pub struct ExtractedPayload { pub payload_type: PayloadType, pub merchant_id: Option<MerchantId>, pub key_id: Option<ApiKeyId>, }
crates/router/src/services/authentication/detached.rs
router
struct_definition
35
rust
ExtractedPayload
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Phonepe { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&*PHONEPE_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*PHONEPE_SUPPORTED_PAYMENT_METHODS) } fn get_sup...
crates/hyperswitch_connectors/src/connectors/phonepe.rs
hyperswitch_connectors
impl_block
107
rust
null
Phonepe
ConnectorSpecifications for
impl ConnectorSpecifications for for Phonepe
null
null
null
null
null
null
null
null
File: crates/router/src/core/routing/helpers.rs Public functions: 32 Public structs: 5 //! Analysis for usage of all helper functions for use case of routing //! //! Functions that are used to perform the retrieval of merchant's //! routing dict, configs, defaults use std::fmt::Debug; #[cfg(all(feature = "dynamic_ro...
crates/router/src/core/routing/helpers.rs#chunk0
router
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null