text
string
file_path
string
module
string
type
string
tokens
int64
language
string
struct_name
string
type_name
string
trait_name
string
impl_type
string
function_name
string
source
string
section
string
keys
list
macro_type
string
url
string
title
string
chunk_index
int64
File: crates/router/tests/connectors/fiserv.rs use std::str::FromStr; use masking::Secret; use router::types::{self, domain, storage::enums}; use serde_json::json; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[derive(Clone, Copy)] struct FiservTest; impl ConnectorActions for FiservTest ...
crates/router/tests/connectors/fiserv.rs
router
full_file
3,616
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AciAuthType { pub api_key: Secret<String>, pub entity_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
AciAuthType
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Elavon { fn validate_mandate_payment( &self, pm_type: Option<PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { let mandate_supported_pmd = std::collections::HashSet::from([PaymentMethodDataType::Card]); ...
crates/hyperswitch_connectors/src/connectors/elavon.rs
hyperswitch_connectors
impl_block
94
rust
null
Elavon
ConnectorValidation for
impl ConnectorValidation for for Elavon
null
null
null
null
null
null
null
null
pub struct BankAccountOptionalIDs { pub ids: Vec<Secret<String>>, }
crates/pm_auth/src/types.rs
pm_auth
struct_definition
17
rust
BankAccountOptionalIDs
null
null
null
null
null
null
null
null
null
null
null
pub fn add_random_delay_to_schedule_time( state: &SessionState, schedule_time: time::PrimitiveDateTime, ) -> time::PrimitiveDateTime { let mut rng = rand::thread_rng(); let delay_limit = state .conf .revenue_recovery .recovery_timestamp .max_random_schedule_delay_in_secon...
crates/router/src/workflows/revenue_recovery.rs
router
function_signature
120
rust
null
null
null
null
add_random_delay_to_schedule_time
null
null
null
null
null
null
null
pub struct PaymentsResponse { payment: PaymentResponseData, }
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
PaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantConnectorListResponse { /// Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking. #[schema(value_type = ConnectorType, example = "payment_processor")] pub connector_type: api_enums::ConnectorType, /// Name of the Connector #[schema(v...
crates/api_models/src/admin.rs
api_models
struct_definition
776
rust
MerchantConnectorListResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundResponse { pub data: BraintreeRefundResponseData, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RoutingConfigRequest { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "algorithm": { "allOf": [ { "$ref": "#/components...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
168
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RoutingConfigRequest" ]
null
null
null
null
Documentation: api-reference/v1/gsm/gsm--create.mdx # Type: Doc File --- openapi: post /gsm ---
api-reference/v1/gsm/gsm--create.mdx
null
doc_file
31
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_all_merchant_accounts( conn: &PgPooledConn, limit: u32, offset: Option<u32>, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as HasTable>::Table, _, <<Self as HasTable>::Table as Table>::PrimaryKey, _...
crates/diesel_models/src/query/merchant_account.rs
diesel_models
function_signature
123
rust
null
null
null
null
list_all_merchant_accounts
null
null
null
null
null
null
null
pub struct PayuRefundRequestData { description: String, amount: Option<MinorUnit>, }
crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
PayuRefundRequestData
null
null
null
null
null
null
null
null
null
null
null
pub async fn receive_incoming_relay_webhook<W: types::OutgoingWebhookType>( state: web::Data<AppState>, req: HttpRequest, body: web::Bytes, path: web::Path<( common_utils::id_type::MerchantId, common_utils::id_type::ProfileId, common_utils::id_type::MerchantConnectorAccountId, ...
crates/router/src/routes/webhooks.rs
router
function_signature
82
rust
null
null
null
null
receive_incoming_relay_webhook
null
null
null
null
null
null
null
pub async fn refund_retrieve_core_with_refund_id( state: SessionState, merchant_context: domain::MerchantContext, profile_id: Option<common_utils::id_type::ProfileId>, request: refunds::RefundsRetrieveRequest, ) -> RouterResult<diesel_refund::Refund> { let refund_id = request.refund_id.clone(); ...
crates/router/src/core/refunds.rs
router
function_signature
196
rust
null
null
null
null
refund_retrieve_core_with_refund_id
null
null
null
null
null
null
null
pub async fn find_by_internal_reference_id_merchant_id( conn: &PgPooledConn, internal_reference_id: &str, merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::merc...
crates/diesel_models/src/query/refund.rs
diesel_models
function_signature
112
rust
null
null
null
null
find_by_internal_reference_id_merchant_id
null
null
null
null
null
null
null
pub struct InespayPaymentsResponseData { status: String, status_desc: String, single_payin_id: String, single_payin_link: String, }
crates/hyperswitch_connectors/src/connectors/inespay/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
InespayPaymentsResponseData
null
null
null
null
null
null
null
null
null
null
null
pub async fn initiate_payout_link( state: SessionState, merchant_context: domain::MerchantContext, req: payouts::PayoutLinkInitiateRequest, request_headers: &header::HeaderMap, ) -> RouterResponse<services::GenericLinkFormData> { let db: &dyn StorageInterface = &*state.store; let merchant_id = m...
crates/router/src/core/payout_link.rs
router
function_signature
2,289
rust
null
null
null
null
initiate_payout_link
null
null
null
null
null
null
null
impl PaymentsPreProcessing for Payme {}
crates/hyperswitch_connectors/src/connectors/payme.rs
hyperswitch_connectors
impl_block
8
rust
null
Payme
PaymentsPreProcessing for
impl PaymentsPreProcessing for for Payme
null
null
null
null
null
null
null
null
impl auth_service::PaymentInitiationRecipientCreate for Plaid {}
crates/pm_auth/src/connector/plaid.rs
pm_auth
impl_block
13
rust
null
Plaid
auth_service::PaymentInitiationRecipientCreate for
impl auth_service::PaymentInitiationRecipientCreate for for Plaid
null
null
null
null
null
null
null
null
pub fn new(metadata: &serde_json::Value) -> Self { let metadata_as_string = metadata.to_string(); let hash_map: std::collections::BTreeMap<String, serde_json::Value> = serde_json::from_str(&metadata_as_string).unwrap_or(std::collections::BTreeMap::new()); let inner = hash_map ...
crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
hyperswitch_connectors
function_signature
158
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl MerchantConnectorAccountInterface for KafkaStore { async fn update_multiple_merchant_connector_accounts( &self, merchant_connector_accounts: Vec<( domain::MerchantConnectorAccount, storage::MerchantConnectorAccountUpdateInternal, )>, ) -> CustomResult<(), err...
crates/router/src/db/kafka_store.rs
router
impl_block
1,404
rust
null
KafkaStore
MerchantConnectorAccountInterface for
impl MerchantConnectorAccountInterface for for KafkaStore
null
null
null
null
null
null
null
null
pub struct IntermediateString(String);
crates/external_services/src/email.rs
external_services
struct_definition
6
rust
IntermediateString
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Square {}
crates/hyperswitch_connectors/src/connectors/square.rs
hyperswitch_connectors
impl_block
9
rust
null
Square
api::RefundExecute for
impl api::RefundExecute for for Square
null
null
null
null
null
null
null
null
impl Default for ConsumerSettings { fn default() -> Self { Self { disabled: false, consumer_group: "SCHEDULER_GROUP".into(), } } }
crates/scheduler/src/settings.rs
scheduler
impl_block
38
rust
null
ConsumerSettings
Default for
impl Default for for ConsumerSettings
null
null
null
null
null
null
null
null
pub async fn add_payment_method_status_update_task( db: &dyn StorageInterface, payment_method: &domain::PaymentMethod, prev_status: enums::PaymentMethodStatus, curr_status: enums::PaymentMethodStatus, merchant_id: &id_type::MerchantId, ) -> Result<(), ProcessTrackerError> { let created_at = paym...
crates/router/src/core/payment_methods.rs
router
function_signature
371
rust
null
null
null
null
add_payment_method_status_update_task
null
null
null
null
null
null
null
pub struct RuleDeleteRequest { pub tag: String, #[serde(flatten)] pub variant: AuthType, }
crates/router/src/services/authentication/decision.rs
router
struct_definition
26
rust
RuleDeleteRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Celero {}
crates/hyperswitch_connectors/src/connectors/celero.rs
hyperswitch_connectors
impl_block
8
rust
null
Celero
api::Payment for
impl api::Payment for for Celero
null
null
null
null
null
null
null
null
pub async fn list_multiple_key_stores( conn: &PgPooledConn, merchant_ids: Vec<common_utils::id_type::MerchantId>, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as HasTable>::Table, _, <<Self as HasTable>::Table as diesel::Table>::Primar...
crates/diesel_models/src/query/merchant_key_store.rs
diesel_models
function_signature
114
rust
null
null
null
null
list_multiple_key_stores
null
null
null
null
null
null
null
impl Test { /// fn set_test(&mut self, val: u32) -> &mut Self { /// self.test = val; /// self /// } /// }
crates/router_derive/src/lib.rs
router_derive
impl_block
39
rust
null
Test
null
impl Test
null
null
null
null
null
null
null
null
impl ConnectorAuthTypeValidation<'_> { fn validate_connector_auth_type( &self, ) -> Result<(), error_stack::Report<errors::ApiErrorResponse>> { let validate_non_empty_field = |field_value: &str, field_name: &str| { if field_value.trim().is_empty() { Err(errors::ApiErr...
crates/router/src/core/connector_validation.rs
router
impl_block
643
rust
null
ConnectorAuthTypeValidation
null
impl ConnectorAuthTypeValidation
null
null
null
null
null
null
null
null
pub struct ResponsePaymentMethodsEnabled { /// The payment method enabled #[schema(value_type = PaymentMethod)] pub payment_method: api_enums::PaymentMethod, /// The list of payment method types enabled for a connector account pub payment_method_types: Vec<ResponsePaymentMethodTypes>, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
62
rust
ResponsePaymentMethodsEnabled
null
null
null
null
null
null
null
null
null
null
null
.get_or_insert_payment_method( req.clone(), &mut resp, &customer_id, self.merchant_context.get_merchant_key_store(), ) ...
crates/router/src/core/payment_methods/cards.rs#impl_block_chunk1
router
impl_block_chunk
1,005
rust
null
PmCards
PaymentMethodsController for
impl PaymentMethodsController for for PmCards
null
null
null
null
null
null
null
1
pub async fn list_roles_with_info( state: SessionState, user_from_token: UserFromToken, request: role_api::ListRolesQueryParams, ) -> UserResponse<role_api::ListRolesResponse> { let user_role_info = user_from_token .get_role_info_from_db(&state) .await .attach_printable("Invalid ...
crates/router/src/core/user_role/role.rs
router
function_signature
936
rust
null
null
null
null
list_roles_with_info
null
null
null
null
null
null
null
pub struct FacilitapayCustomerRequest { pub person: FacilitapayPerson, }
crates/hyperswitch_connectors/src/connectors/facilitapay/requests.rs
hyperswitch_connectors
struct_definition
20
rust
FacilitapayCustomerRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct RecurlyRecordBackResponse { // Invoice id pub id: id_type::PaymentReferenceId, }
crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
RecurlyRecordBackResponse
null
null
null
null
null
null
null
null
null
null
null
impl RedisKey { pub fn tenant_aware_key(&self, pool: &RedisConnectionPool) -> String { pool.add_prefix(&self.0) } pub fn tenant_unaware_key(&self, _pool: &RedisConnectionPool) -> String { self.0.clone() } }
crates/redis_interface/src/types.rs
redis_interface
impl_block
65
rust
null
RedisKey
null
impl RedisKey
null
null
null
null
null
null
null
null
pub struct FiuuPaymentSyncResponse { stat_code: StatCode, stat_name: StatName, #[serde(rename = "TranID")] tran_id: String, error_code: Option<String>, error_desc: Option<String>, #[serde(rename = "miscellaneous")] miscellaneous: Option<HashMap<String, Secret<String>>>, #[serde(renam...
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
94
rust
FiuuPaymentSyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct EbanxPayoutFulfillRequest { integration_key: Secret<String>, uid: String, }
crates/hyperswitch_connectors/src/connectors/ebanx/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
EbanxPayoutFulfillRequest
null
null
null
null
null
null
null
null
null
null
null
/// Schedule the task for retry /// /// Returns bool which indicates whether this was the last retry or not pub async fn retry_sync_task( db: &dyn StorageInterface, connector: String, merchant_id: common_utils::id_type::MerchantId, pt: storage::ProcessTracker, ) -> Result<bool, sch_errors::ProcessTracke...
crates/router/src/workflows/process_dispute.rs
router
function_signature
176
rust
null
null
null
null
retry_sync_task
null
null
null
null
null
null
null
pub fn get_request_payload(input: JsValue, response: JsValue) -> JsResult { let input: DashboardRequestPayload = serde_wasm_bindgen::from_value(input)?; let api_response: ConnectorApiIntegrationPayload = serde_wasm_bindgen::from_value(response)?; let result = DashboardRequestPayload::create_connector_reques...
crates/euclid_wasm/src/lib.rs
euclid_wasm
function_signature
89
rust
null
null
null
null
get_request_payload
null
null
null
null
null
null
null
impl ConnectorValidation for Nexixpay { fn validate_mandate_payment( &self, pm_type: Option<enums::PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { let mandate_supported_pmd: HashSet<PaymentMethodDataType> = HashSet::from...
crates/hyperswitch_connectors/src/connectors/nexixpay.rs
hyperswitch_connectors
impl_block
102
rust
null
Nexixpay
ConnectorValidation for
impl ConnectorValidation for for Nexixpay
null
null
null
null
null
null
null
null
Web Documentation: A Payments Switch with virtually zero overhead | Hyperswitch # Type: Web Doc When it comes to payments, every millisecond counts. The difference between a seamless customer experience and a frustrating one often boils down to the speed and efficiency of payment processing. Merchants who operate in t...
https://docs.hyperswitch.io/learn-more/hyperswitch-architecture/a-payments-switch-with-virtually-zero-overhead
null
web_doc_file
808
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/learn-more/hyperswitch-architecture/a-payments-switch-with-virtually-zero-overhead
A Payments Switch with virtually zero overhead | Hyperswitch
null
pub async fn connector_agnostic_mit_toggle( state: SessionState, merchant_id: &id_type::MerchantId, profile_id: &id_type::ProfileId, connector_agnostic_mit_choice: admin_types::ConnectorAgnosticMitChoice, ) -> RouterResponse<admin_types::ConnectorAgnosticMitChoice> { let db = state.store.as_ref(); ...
crates/router/src/core/admin.rs
router
function_signature
419
rust
null
null
null
null
connector_agnostic_mit_toggle
null
null
null
null
null
null
null
pub struct PaymeRouterData<T> { pub amount: MinorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
PaymeRouterData
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Airwallex {}
crates/hyperswitch_connectors/src/connectors/airwallex.rs
hyperswitch_connectors
impl_block
10
rust
null
Airwallex
api::PaymentSession for
impl api::PaymentSession for for Airwallex
null
null
null
null
null
null
null
null
pub struct AuthorizationResponse { pub network: String, pub response_code: String, pub response_code_description: String, }
crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
AuthorizationResponse
null
null
null
null
null
null
null
null
null
null
null
impl fred::types::FromRedis for MsetnxReply { fn from_value(value: fred::types::RedisValue) -> Result<Self, fred::error::RedisError> { match value { fred::types::RedisValue::Integer(1) => Ok(Self::KeysSet), fred::types::RedisValue::Integer(0) => Ok(Self::KeysNotSet), _ =>...
crates/redis_interface/src/types.rs
redis_interface
impl_block
122
rust
null
MsetnxReply
fred::types::FromRedis for
impl fred::types::FromRedis for for MsetnxReply
null
null
null
null
null
null
null
null
impl api::Refund for Fiuu {}
crates/hyperswitch_connectors/src/connectors/fiuu.rs
hyperswitch_connectors
impl_block
10
rust
null
Fiuu
api::Refund for
impl api::Refund for for Fiuu
null
null
null
null
null
null
null
null
pub async fn update_with_attempt_id( self, conn: &PgPooledConn, payment_attempt: PaymentAttemptUpdate, ) -> StorageResult<Self> { match generics::generic_update_with_unique_predicate_get_result::< <Self as HasTable>::Table, _, _, _, ...
crates/diesel_models/src/query/payment_attempt.rs
diesel_models
function_signature
170
rust
null
null
null
null
update_with_attempt_id
null
null
null
null
null
null
null
File: crates/euclid/src/frontend/ast.rs Public functions: 1 Public structs: 9 pub mod lowering; #[cfg(feature = "ast_parser")] pub mod parser; use common_enums::RoutableConnectors; use common_utils::types::MinorUnit; use serde::{Deserialize, Serialize}; use utoipa::ToSchema; use crate::types::{DataType, Metadata};...
crates/euclid/src/frontend/ast.rs
euclid
full_file
1,390
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn rust_locker_migration( state: SessionState, merchant_id: &id_type::MerchantId, ) -> CustomResult<services::ApplicationResponse<MigrateCardResponse>, errors::ApiErrorResponse> { use crate::db::customers::CustomerListConstraints; let db = state.store.as_ref(); let key_manager_state = &(&...
crates/router/src/core/locker_migration.rs
router
function_signature
515
rust
null
null
null
null
rust_locker_migration
null
null
null
null
null
null
null
pub struct TsysPaymentsCaptureRequest { capture: TsysCaptureRequest, }
crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
TsysPaymentsCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/checkout.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::{convert::TryFrom, sync::LazyLock}; use common_enums::{enums, CallConnectorAction, PaymentAction}; use common_utils::{ crypto, errors::CustomResult, ext_traits::ByteSliceEx...
crates/hyperswitch_connectors/src/connectors/checkout.rs#chunk0
hyperswitch_connectors
chunk
8,185
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TokenizedBankTransferValue1 { pub data: payments::BankTransferData, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
20
rust
TokenizedBankTransferValue1
null
null
null
null
null
null
null
null
null
null
null
pub struct MandateUpdateInternal { mandate_status: Option<storage_enums::MandateStatus>, amount_captured: Option<i64>, connector_mandate_ids: Option<pii::SecretSerdeValue>, connector_mandate_id: Option<String>, payment_method_id: Option<String>, original_payment_id: Option<common_utils::id_type:...
crates/diesel_models/src/mandate.rs
diesel_models
struct_definition
90
rust
MandateUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
impl PaymentRedirectFlow for PaymentRedirectSync { type PaymentFlowResponse = router_types::RedirectPaymentFlowResponse; #[allow(clippy::too_many_arguments)] async fn call_payment_flow( &self, state: &SessionState, req_state: ReqState, merchant_context: domain::MerchantConte...
crates/router/src/core/payments.rs
router
impl_block
806
rust
null
PaymentRedirectSync
PaymentRedirectFlow for
impl PaymentRedirectFlow for for PaymentRedirectSync
null
null
null
null
null
null
null
null
pub trait FrmMetricAnalytics: LoadRow<FrmMetricRow> {}
crates/analytics/src/frm/metrics.rs
analytics
trait_definition
14
rust
null
null
FrmMetricAnalytics
null
null
null
null
null
null
null
null
null
pub fn update_target_time(&mut self, new: &Self) { self.target_time = new.target_time; }
crates/api_models/src/routing.rs
api_models
function_signature
26
rust
null
null
null
null
update_target_time
null
null
null
null
null
null
null
pub struct PaystackRefundWebhookData { pub status: PaystackRefundStatus, pub id: String, pub transaction_reference: String, }
crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
PaystackRefundWebhookData
null
null
null
null
null
null
null
null
null
null
null
impl GlobalStorageInterface for MockDb { fn get_cache_store(&self) -> Box<(dyn RedisConnInterface + Send + Sync + 'static)> { Box::new(self.clone()) } }
crates/router/src/db.rs
router
impl_block
42
rust
null
MockDb
GlobalStorageInterface for
impl GlobalStorageInterface for for MockDb
null
null
null
null
null
null
null
null
File: crates/common_utils/src/types/authentication.rs Public functions: 1 use crate::id_type; /// Enum for different levels of authentication #[derive( Clone, Debug, Hash, Eq, PartialEq, serde::Deserialize, serde::Serialize, strum::Display, strum::EnumString, )] pub enum AuthInfo ...
crates/common_utils/src/types/authentication.rs
common_utils
full_file
437
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn payouts_list_available_filters_core( state: SessionState, merchant_context: domain::MerchantContext, profile_id_list: Option<Vec<id_type::ProfileId>>, time_range: common_utils::types::TimeRange, ) -> RouterResponse<api::PayoutListFilters> { let db = state.store.as_ref(); let payouts...
crates/router/src/core/payouts.rs
router
function_signature
270
rust
null
null
null
null
payouts_list_available_filters_core
null
null
null
null
null
null
null
File: crates/storage_impl/src/refund.rs use diesel_models::refund::Refund; use crate::redis::kv_store::KvStorePartition; impl KvStorePartition for Refund {}
crates/storage_impl/src/refund.rs
storage_impl
full_file
40
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_merchant_scoped_metadata( state: &SessionState, user_id: String, merchant_id: id_type::MerchantId, org_id: id_type::OrganizationId, metadata_key: DBEnum, metadata_value: impl serde::Serialize, ) -> UserResult<DashboardMetadata> { let data_value = serde_json::to_value(meta...
crates/router/src/utils/user/dashboard_metadata.rs
router
function_signature
184
rust
null
null
null
null
update_merchant_scoped_metadata
null
null
null
null
null
null
null
pub struct SessionFlowRoutingInput<'a> { pub state: &'a SessionState, pub country: Option<CountryAlpha2>, pub key_store: &'a domain::MerchantKeyStore, pub merchant_account: &'a domain::MerchantAccount, pub payment_attempt: &'a oss_storage::PaymentAttempt, pub payment_intent: &'a oss_storage::Pay...
crates/router/src/core/payments/routing.rs
router
struct_definition
91
rust
SessionFlowRoutingInput
null
null
null
null
null
null
null
null
null
null
null
pub async fn routing_create_config( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<routing_types::RoutingConfigRequest>, transaction_type: enums::TransactionType, ) -> impl Responder { let flow = Flow::RoutingCreateConfig; Box::pin(oss_api::server_wrap( flow, ...
crates/router/src/routes/routing.rs
router
function_signature
280
rust
null
null
null
null
routing_create_config
null
null
null
null
null
null
null
pub struct PayboxSyncResponse { #[serde(rename = "NUMTRANS")] pub transaction_number: String, #[serde(rename = "NUMAPPEL")] pub paybox_order_id: String, #[serde(rename = "CODEREPONSE")] pub response_code: String, #[serde(rename = "COMMENTAIRE")] pub response_message: String, #[se...
crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs
hyperswitch_connectors
struct_definition
95
rust
PayboxSyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_merchant_api_event_filters( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<GetApiEventFiltersRequest>, ) -> impl Responder { let flow = AnalyticsFlow::GetApiEventFilters; Box::pin(api::server_wrap( flow, ...
crates/router/src/analytics.rs
router
function_signature
175
rust
null
null
null
null
get_merchant_api_event_filters
null
null
null
null
null
null
null
pub struct PaymentMethodStatusTrackingData { pub payment_method_id: String, pub prev_status: enums::PaymentMethodStatus, pub curr_status: enums::PaymentMethodStatus, pub merchant_id: common_utils::id_type::MerchantId, }
crates/router/src/types/storage/payment_method.rs
router
struct_definition
53
rust
PaymentMethodStatusTrackingData
null
null
null
null
null
null
null
null
null
null
null
impl<'a> KafkaPaymentAttemptEvent<'a> { pub fn from_storage(attempt: &'a PaymentAttempt) -> Self { use masking::PeekInterface; let PaymentAttempt { payment_id, merchant_id, amount_details, status, connector, error, a...
crates/router/src/services/kafka/payment_attempt_event.rs
router
impl_block
1,244
rust
null
KafkaPaymentAttemptEvent
null
impl KafkaPaymentAttemptEvent
null
null
null
null
null
null
null
null
impl api::MandateSetup for Checkbook {}
crates/hyperswitch_connectors/src/connectors/checkbook.rs
hyperswitch_connectors
impl_block
11
rust
null
Checkbook
api::MandateSetup for
impl api::MandateSetup for for Checkbook
null
null
null
null
null
null
null
null
impl api::Payment for Amazonpay {}
crates/hyperswitch_connectors/src/connectors/amazonpay.rs
hyperswitch_connectors
impl_block
8
rust
null
Amazonpay
api::Payment for
impl api::Payment for for Amazonpay
null
null
null
null
null
null
null
null
pub struct BluesnapConnectorMetaData { pub merchant_id: common_utils::id_type::MerchantId, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
BluesnapConnectorMetaData
null
null
null
null
null
null
null
null
null
null
null
pub trait ConnectorCommonExt<Flow, Req, Resp>: ConnectorCommon + ConnectorIntegration<Flow, Req, Resp> { fn build_headers( &self, _req: &auth_types::PaymentAuthRouterData<Flow, Req, Resp>, _connectors: &auth_types::PaymentMethodAuthConnectors, ) -> CustomResult<Vec<(String, Maskable<...
crates/pm_auth/src/types/api.rs
pm_auth
trait_definition
97
rust
null
null
ConnectorCommonExt
null
null
null
null
null
null
null
null
null
pub struct ArchipelCardAuthorizationRequest { order: ArchipelOrderRequest, card: ArchipelCard, cardholder: Option<ArchipelCardHolder>, #[serde(rename = "3DS")] three_ds: Option<Archipel3DS>, credential_indicator: Option<ArchipelCredentialIndicator>, stored_on_file: bool, tenant_id: Archi...
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
hyperswitch_connectors
struct_definition
82
rust
ArchipelCardAuthorizationRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct NetworkSpecificFields { pub transaction_identifier: String, pub cvv2_result_code: String, }
crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
NetworkSpecificFields
null
null
null
null
null
null
null
null
null
null
null
maud::html! { (maud::DOCTYPE) html { head { meta name="viewport" content="width=device-width, initial-scale=1"; } body style="background-color: #ffffff; padding: 20px; font-family: Arial, Helvetica, Sans-Serif;" ...
crates/router/src/services/api.rs#chunk2
router
chunk
6,138
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct FacilitapayAuthType { pub(super) username: Secret<String>, pub(super) password: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
FacilitapayAuthType
null
null
null
null
null
null
null
null
null
null
null
impl super::disputes::metrics::DisputeMetricAnalytics for SqlxClient {}
crates/analytics/src/sqlx.rs
analytics
impl_block
18
rust
null
SqlxClient
super::disputes::metrics::DisputeMetricAnalytics for
impl super::disputes::metrics::DisputeMetricAnalytics for for SqlxClient
null
null
null
null
null
null
null
null
pub struct ChargebeePaymentMethodDetails { card: ChargebeeCardDetails, }
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
ChargebeePaymentMethodDetails
null
null
null
null
null
null
null
null
null
null
null
impl Mandates { pub fn server(config: routes::AppState) -> Scope { web::scope("/payment_methods") .app_data(web::Data::new(config)) .service(web::resource("/{id}/detach").route(web::post().to(mandates::revoke_mandate))) } }
crates/router/src/compatibility/stripe/app.rs
router
impl_block
66
rust
null
Mandates
null
impl Mandates
null
null
null
null
null
null
null
null
pub struct Address { pub street_address: Secret<String>, pub unit: Option<Secret<String>>, pub postal_code: Secret<String>, pub city: String, pub province_code: Secret<String>, pub country_code: common_enums::CountryAlpha2, }
crates/hyperswitch_domain_models/src/router_request_types/fraud_check.rs
hyperswitch_domain_models
struct_definition
57
rust
Address
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Xendit {}
crates/hyperswitch_connectors/src/connectors/xendit.rs
hyperswitch_connectors
impl_block
10
rust
null
Xendit
api::PaymentVoid for
impl api::PaymentVoid for for Xendit
null
null
null
null
null
null
null
null
pub struct Volt { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/volt.rs
hyperswitch_connectors
struct_definition
25
rust
Volt
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_card_from_hs_locker<'a>( state: &'a routes::SessionState, customer_id: &id_type::CustomerId, merchant_id: &id_type::MerchantId, card_reference: &'a str, locker_choice: api_enums::LockerChoice, ) -> errors::CustomResult<Card, errors::VaultError> { let locker = &state.conf.locker;...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
374
rust
null
null
null
null
get_card_from_hs_locker
null
null
null
null
null
null
null
pub fn build_unified_connector_service_payment_method( payment_method_data: hyperswitch_domain_models::payment_method_data::PaymentMethodData, payment_method_type: PaymentMethodType, ) -> CustomResult<payments_grpc::PaymentMethod, UnifiedConnectorServiceError> { match payment_method_data { hyperswit...
crates/router/src/core/unified_connector_service.rs
router
function_signature
920
rust
null
null
null
null
build_unified_connector_service_payment_method
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Wise {}
crates/hyperswitch_connectors/src/connectors/wise.rs
hyperswitch_connectors
impl_block
8
rust
null
Wise
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Wise
null
null
null
null
null
null
null
null
File: crates/masking/src/strategy.rs use core::fmt; /// Debugging trait which is specialized for handling secret values pub trait Strategy<T> { /// Format information about the secret's type. fn fmt(value: &T, fmt: &mut fmt::Formatter<'_>) -> fmt::Result; } /// Debug with type #[cfg_attr(feature = "serde", d...
crates/masking/src/strategy.rs
masking
full_file
216
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BankDebitTypes { pub eligible_connectors: Vec<String>, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
17
rust
BankDebitTypes
null
null
null
null
null
null
null
null
null
null
null
pub struct ThreeDSRequest { #[serde(rename = "type")] pub three_ds_type: String, pub mode: String, pub device_data: ThreeDSRequestDeviceData, pub challenge: ThreeDSRequestChallenge, }
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
hyperswitch_connectors
struct_definition
49
rust
ThreeDSRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::UasAuthenticationV2 for Recurly {}
crates/hyperswitch_connectors/src/connectors/recurly.rs
hyperswitch_connectors
impl_block
13
rust
null
Recurly
api::UasAuthenticationV2 for
impl api::UasAuthenticationV2 for for Recurly
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.BankRedirectResponse { "allOf": [ { "allOf": [ { "$ref": "#/components/schemas/BankRedirectDetails" } ], "nullable": true }, { "type": "object", "properties": { "bank_name": { "allOf": [ ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
116
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "BankRedirectResponse" ]
null
null
null
null
pub struct DisputesAnalyticsMetadata { pub total_disputed_amount: Option<u64>, pub total_dispute_lost_amount: Option<u64>, }
crates/api_models/src/analytics.rs
api_models
struct_definition
34
rust
DisputesAnalyticsMetadata
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for HyperswitchVault {}
crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs
hyperswitch_connectors
impl_block
11
rust
null
HyperswitchVault
api::PaymentToken for
impl api::PaymentToken for for HyperswitchVault
null
null
null
null
null
null
null
null
} #[derive(Debug, Clone)] pub struct AccessTokenAuthenticationRequestData { pub auth_creds: router_data::ConnectorAuthType, } impl TryFrom<router_data::ConnectorAuthType> for AccessTokenAuthenticationRequestData { type Error = ApiErrorResponse; fn try_from(connector_auth: router_data::ConnectorAuthType) -...
crates/hyperswitch_domain_models/src/router_request_types.rs#chunk1
hyperswitch_domain_models
chunk
2,472
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct OrderResponse { id: String, status: PaymentStatus, description: Option<String>, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
23
rust
OrderResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/euclid/src/backend/interpreter.rs Public structs: 1 pub mod types; use common_utils::types::MinorUnit; use crate::{ backend::{self, inputs, EuclidBackend}, frontend::ast, }; pub struct InterpreterBackend<O> { program: ast::Program<O>, } impl<O> InterpreterBackend<O> where O: Clone, { ...
crates/euclid/src/backend/interpreter.rs
euclid
full_file
1,280
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct RetrieveFileRequestData { pub provider_file_id: String, pub connector_dispute_id: Option<String>, }
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
26
rust
RetrieveFileRequestData
null
null
null
null
null
null
null
null
null
null
null
File: crates/euclid_macros/src/inner.rs mod enum_nums; mod knowledge; pub(crate) use enum_nums::enum_nums_inner; pub(crate) use knowledge::knowledge_inner;
crates/euclid_macros/src/inner.rs
euclid_macros
full_file
39
null
null
null
null
null
null
null
null
null
null
null
null
null