text
string
file_path
string
module
string
type
string
tokens
int64
language
string
struct_name
string
type_name
string
trait_name
string
impl_type
string
function_name
string
source
string
section
string
keys
list
macro_type
string
url
string
title
string
chunk_index
int64
pub struct NoonOrderNvp { #[serde(flatten)] inner: std::collections::BTreeMap<String, Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
NoonOrderNvp
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Tsys {}
crates/hyperswitch_connectors/src/connectors/tsys.rs
hyperswitch_connectors
impl_block
9
rust
null
Tsys
api::PaymentSession for
impl api::PaymentSession for for Tsys
null
null
null
null
null
null
null
null
pub fn store_key(payment_method_id: &id_type::GlobalPaymentMethodId) -> Self { let new_token = format!("single_use_token_{}", payment_method_id.get_string_repr()); Self(new_token) }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
function_signature
46
rust
null
null
null
null
store_key
null
null
null
null
null
null
null
pub struct CancelResponse { data: CancelResponseData, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
CancelResponse
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Mollie { fn id(&self) -> &'static str { "mollie" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.mollie.base_url.as_ref() } fn get_aut...
crates/hyperswitch_connectors/src/connectors/mollie.rs
hyperswitch_connectors
impl_block
394
rust
null
Mollie
ConnectorCommon for
impl ConnectorCommon for for Mollie
null
null
null
null
null
null
null
null
pub struct Elavon { amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/elavon.rs
hyperswitch_connectors
struct_definition
28
rust
Elavon
null
null
null
null
null
null
null
null
null
null
null
pub async fn call_surcharge_decision_management_for_session_flow( state: &SessionState, merchant_context: &domain::MerchantContext, _business_profile: &domain::Profile, payment_attempt: &storage::PaymentAttempt, payment_intent: &storage::PaymentIntent, billing_address: Option<hyperswitch_domain_...
crates/router/src/core/payments.rs
router
function_signature
496
rust
null
null
null
null
call_surcharge_decision_management_for_session_flow
null
null
null
null
null
null
null
pub fn create_revenue_recovery_attempt_data( &self, revenue_recovery_metadata: api_models::payments::PaymentRevenueRecoveryMetadata, billing_connector_account: &merchant_connector_account::MerchantConnectorAccount, card_info: api_models::payments::AdditionalCardInfo, payment_proc...
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
function_signature
499
rust
null
null
null
null
create_revenue_recovery_attempt_data
null
null
null
null
null
null
null
impl api::RefundSync for Facilitapay {}
crates/hyperswitch_connectors/src/connectors/facilitapay.rs
hyperswitch_connectors
impl_block
12
rust
null
Facilitapay
api::RefundSync for
impl api::RefundSync for for Facilitapay
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PrimaryBusinessDetails { "type": "object", "required": [ "country", "business" ], "properties": { "country": { "$ref": "#/components/schemas/CountryAlpha2" }, "business": { "type": "string", "example": "food" } }, "additionalPr...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
92
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PrimaryBusinessDetails" ]
null
null
null
null
pub struct VaultStruct { vault_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
VaultStruct
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_by_profile_id( conn: &PgPooledConn, profile_id: &common_utils::id_type::ProfileId, ) -> StorageResult<Vec<Self>> { generics::generic_filter::<<Self as HasTable>::Table, _, _, _>( conn, dsl::profile_id.eq(profile_id.to_owned()), None, ...
crates/diesel_models/src/query/merchant_connector_account.rs
diesel_models
function_signature
96
rust
null
null
null
null
list_by_profile_id
null
null
null
null
null
null
null
pub struct PlacetopayInstrument { card: PlacetopayCard, }
crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
PlacetopayInstrument
null
null
null
null
null
null
null
null
null
null
null
impl ProphetpayEntryMethod { fn get_entry_method(&self) -> i8 { match self { Self::ManualEntry => 1, Self::CardSwipe => 2, } } }
crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs
hyperswitch_connectors
impl_block
45
rust
null
ProphetpayEntryMethod
null
impl ProphetpayEntryMethod
null
null
null
null
null
null
null
null
pub struct SankeyRow { pub count: i64, pub status: DBEnumWrapper<enums::IntentStatus>, #[serde(default)] pub refunds_status: Option<DBEnumWrapper<SessionizerRefundStatus>>, #[serde(default)] pub dispute_status: Option<DBEnumWrapper<SessionizerDisputeStatus>>, pub first_attempt: i64, }
crates/analytics/src/payment_intents/sankey.rs
analytics
struct_definition
81
rust
SankeyRow
null
null
null
null
null
null
null
null
null
null
null
pub trait DataModelExt { type StorageModel; fn to_storage_model(self) -> Self::StorageModel; fn from_storage_model(storage_model: Self::StorageModel) -> Self; }
crates/storage_impl/src/lib.rs
storage_impl
trait_definition
41
rust
null
null
DataModelExt
null
null
null
null
null
null
null
null
null
pub async fn update_by_org_id( conn: &PgPooledConn, org_id: id_type::OrganizationId, update: OrganizationUpdate, ) -> StorageResult<Self> { generics::generic_update_with_unique_predicate_get_result::< <Self as HasTable>::Table, _, _, _,...
crates/diesel_models/src/query/organization.rs
diesel_models
function_signature
101
rust
null
null
null
null
update_by_org_id
null
null
null
null
null
null
null
Documentation: api-reference/v1/event/events--delivery-attempt-list.mdx # Type: Doc File --- openapi: get /events/{merchant_id}/{event_id}/attempts ---
api-reference/v1/event/events--delivery-attempt-list.mdx
null
doc_file
40
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentFacilitator { pub pf_id: Secret<String>, #[serde(skip_serializing_if = "Option::is_none")] pub iso_id: Option<Secret<String>>, pub sub_merchant: SubMerchant, }
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
hyperswitch_connectors
struct_definition
49
rust
PaymentFacilitator
null
null
null
null
null
null
null
null
null
null
null
File: crates/test_utils/tests/connectors/bluesnap_ui.rs use serial_test::serial; use thirtyfour::{prelude::*, WebDriver}; use crate::{selenium::*, tester}; struct BluesnapSeleniumTest; impl SeleniumTest for BluesnapSeleniumTest { fn get_connector_name(&self) -> String { "bluesnap".to_string() } } a...
crates/test_utils/tests/connectors/bluesnap_ui.rs
test_utils
full_file
521
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Generates the function to get the value out of enum variant /// Usage /// ``` /// use router_derive::TryGetEnumVariant; /// /// impl std::fmt::Display for RedisError { /// fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> { /// match self { /// Self::UnknownResult...
crates/router_derive/src/lib.rs
router_derive
macro
395
rust
null
null
null
null
null
null
null
null
proc_derive
null
null
null
pub struct AuthorizationNew { pub authorization_id: String, pub merchant_id: common_utils::id_type::MerchantId, pub payment_id: common_utils::id_type::PaymentId, pub amount: MinorUnit, pub status: storage_enums::AuthorizationStatus, pub error_code: Option<String>, pub error_message: Option<S...
crates/diesel_models/src/authorization.rs
diesel_models
struct_definition
95
rust
AuthorizationNew
null
null
null
null
null
null
null
null
null
null
null
pub struct CheckTokenStatusResponse { pub payload: CheckTokenStatusResponsePayload, }
crates/router/src/types/payment_methods.rs
router
struct_definition
18
rust
CheckTokenStatusResponse
null
null
null
null
null
null
null
null
null
null
null
impl super::payment_intents::metrics::PaymentIntentMetricAnalytics for ClickhouseClient {}
crates/analytics/src/clickhouse.rs
analytics
impl_block
18
rust
null
ClickhouseClient
super::payment_intents::metrics::PaymentIntentMetricAnalytics for
impl super::payment_intents::metrics::PaymentIntentMetricAnalytics for for ClickhouseClient
null
null
null
null
null
null
null
null
pub async fn enable_dynamic_routing_algorithm( state: &SessionState, key_store: domain::MerchantKeyStore, business_profile: domain::Profile, feature_to_enable: routing_types::DynamicRoutingFeatures, dynamic_routing_algo_ref: routing_types::DynamicRoutingAlgorithmRef, dynamic_routing_type: routin...
crates/router/src/core/routing/helpers.rs
router
function_signature
317
rust
null
null
null
null
enable_dynamic_routing_algorithm
null
null
null
null
null
null
null
/// Indicates whether the payment method should be saved for future use or not pub fn is_off_session(self) -> bool { match self { Self::OffSession => true, Self::OnSession => false, } }
crates/common_enums/src/enums.rs
common_enums
function_signature
50
rust
null
null
null
null
is_off_session
null
null
null
null
null
null
null
pub struct BluecodeAuthType { pub(super) api_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
BluecodeAuthType
null
null
null
null
null
null
null
null
null
null
null
impl RiskFactorsInner { pub fn new(risk_type: RiskType, risk: Risk) -> Self { Self { risk_type, detail: None, risk, } } }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
impl_block
43
rust
null
RiskFactorsInner
null
impl RiskFactorsInner
null
null
null
null
null
null
null
null
impl IncomingWebhook for Signifyd { fn get_webhook_source_verification_algorithm( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, ConnectorError> { Ok(Box::new(crypto::HmacSha256)) } fn get_webhook_source_verificati...
crates/hyperswitch_connectors/src/connectors/signifyd.rs
hyperswitch_connectors
impl_block
881
rust
null
Signifyd
IncomingWebhook for
impl IncomingWebhook for for Signifyd
null
null
null
null
null
null
null
null
impl api::RefundExecute for Braintree {}
crates/hyperswitch_connectors/src/connectors/braintree.rs
hyperswitch_connectors
impl_block
10
rust
null
Braintree
api::RefundExecute for
impl api::RefundExecute for for Braintree
null
null
null
null
null
null
null
null
pub struct PaymentMethodType(pub HashMap<enums::PaymentMethodType, ConnectorFields>);
crates/payment_methods/src/configs/settings.rs
payment_methods
struct_definition
18
rust
PaymentMethodType
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/payments/payments--complete-authorize.mdx # Type: Doc File --- openapi: post /{payment_id}/complete_authorize ---
api-reference/v1/payments/payments--complete-authorize.mdx
null
doc_file
38
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub fn populate_error_reason( code: Option<String>, message: Option<String>, reason: Option<String>, http_code: u16, attempt_status: Option<AttemptStatus>, connector_transaction_id: Option<String>, ) -> ErrorResponse { ErrorResponse { code: code.unwrap_or(NO_ERROR_CODE.to_string()), ...
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
function_signature
133
rust
null
null
null
null
populate_error_reason
null
null
null
null
null
null
null
pub async fn list_by_organization_id( conn: &PgPooledConn, organization_id: &common_utils::id_type::OrganizationId, ) -> 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
125
rust
null
null
null
null
list_by_organization_id
null
null
null
null
null
null
null
impl Capturable for PaymentsCancelPostCaptureData { fn get_captured_amount<F>( &self, _amount_captured: Option<i64>, payment_data: &PaymentData<F>, ) -> Option<i64> where F: Clone, { // return previously captured amount payment_data .payment_in...
crates/router/src/types.rs
router
impl_block
385
rust
null
PaymentsCancelPostCaptureData
Capturable for
impl Capturable for for PaymentsCancelPostCaptureData
null
null
null
null
null
null
null
null
pub async fn make_payment_attempt( payment_id: &common_utils::id_type::PaymentId, merchant_id: &common_utils::id_type::MerchantId, organization_id: &common_utils::id_type::OrganizationId, money: (api::Amount, enums::Currency)
crates/router/src/core/payments/operations/payment_create.rs
router
function_signature
61
rust
null
null
null
null
make_payment_attempt
null
null
null
null
null
null
null
pub async fn get_merchant_config_for_gsm( db: &dyn StorageInterface, merchant_id: &common_utils::id_type::MerchantId, ) -> bool { let config = db .find_config_by_key_unwrap_or( &merchant_id.get_should_call_gsm_key(), Some("false".to_string()), ) .await; ma...
crates/router/src/core/payments/retry.rs
router
function_signature
115
rust
null
null
null
null
get_merchant_config_for_gsm
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/placetopay.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use api_models::webhooks::{IncomingWebhookEvent, ObjectReferenceId}; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::BytesExt,...
crates/hyperswitch_connectors/src/connectors/placetopay.rs
hyperswitch_connectors
full_file
5,662
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn fetch_routing_algo( merchant_id: &common_utils::id_type::MerchantId, algorithm_id: &common_utils::id_type::RoutingId, db: &dyn StorageInterface, ) -> RouterResult<Self> { let routing_algo = db .find_routing_algorithm_by_algorithm_id_merchant_id(algorithm_id, ...
crates/router/src/core/routing.rs
router
function_signature
101
rust
null
null
null
null
fetch_routing_algo
null
null
null
null
null
null
null
pub struct TokenizePayloadEncrypted { pub payload: String, pub key_id: String, pub version: Option<String>, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
29
rust
TokenizePayloadEncrypted
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/wise.rs Public functions: 1 Public structs: 1 pub mod transformers; use api_models::webhooks::IncomingWebhookEvent; #[cfg(feature = "payouts")] use common_utils::request::{Method, RequestBuilder, RequestContent}; #[cfg(feature = "payouts")] use common_utils::types:...
crates/hyperswitch_connectors/src/connectors/wise.rs
hyperswitch_connectors
full_file
6,934
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Archipel { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/archipel.rs
hyperswitch_connectors
struct_definition
26
rust
Archipel
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodData { pub id: Option<String>, pub object: &'static str, pub card: Option<CardDetails>, pub created: Option<time::PrimitiveDateTime>, }
crates/router/src/compatibility/stripe/customers/types.rs
router
struct_definition
41
rust
PaymentMethodData
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentIntentConfirm;
crates/router/src/core/payments/operations/payment_confirm_intent.rs
router
struct_definition
6
rust
PaymentIntentConfirm
null
null
null
null
null
null
null
null
null
null
null
File: crates/openapi/src/routes/payments.rs Public functions: 25 /// Payments - Create /// /// Creates a payment resource, which represents a customer's intent to pay. /// This endpoint is the starting point for various payment flows: /// #[utoipa::path( post, path = "/payments", request_body( con...
crates/openapi/src/routes/payments.rs#chunk0
openapi
chunk
8,172
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ErrorsObject { pub errors: Vec<ErrorObject>, pub transaction: Option<TransactionError>, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
ErrorsObject
null
null
null
null
null
null
null
null
null
null
null
pub async fn routing_retrieve_config() {}
crates/openapi/src/routes/routing.rs
openapi
function_signature
9
rust
null
null
null
null
routing_retrieve_config
null
null
null
null
null
null
null
pub async fn get_translated_unified_code_and_message( state: &SessionState, unified_code: Option<&UnifiedCode>, unified_message: Option<&UnifiedMessage>, locale: &str, ) -> CustomResult<Option<UnifiedMessage>, errors::ApiErrorResponse> { Ok(unified_code .zip(unified_message) .async_a...
crates/router/src/core/payouts/helpers.rs
router
function_signature
175
rust
null
null
null
null
get_translated_unified_code_and_message
null
null
null
null
null
null
null
pub struct ParentInfo { pub name: ParentGroup, pub description: &'static str, pub groups: Vec<PermissionGroup>, }
crates/api_models/src/user_role.rs
api_models
struct_definition
30
rust
ParentInfo
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_recovery_code_attempts_from_redis( state: &SessionState, user_id: &str, ) -> UserResult<()> { let redis_conn = super::get_redis_connection_for_global_tenant(state)?; redis_conn .delete_key(&get_recovery_code_attempts_key(user_id).into()) .await .change_context...
crates/router/src/utils/user/two_factor_auth.rs
router
function_signature
85
rust
null
null
null
null
delete_recovery_code_attempts_from_redis
null
null
null
null
null
null
null
pub struct UpdateLabelWithStatusEventRequest { pub label: String, pub status: bool, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
22
rust
UpdateLabelWithStatusEventRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_by_user_id_tenant_id_org_id_merchant_id_profile_id( conn: &PgPooledConn, user_id: String, tenant_id: id_type::TenantId, org_id: id_type::OrganizationId, merchant_id: Option<id_type::MerchantId>, profile_id: Option<id_type::ProfileId>, update: U...
crates/diesel_models/src/query/user_role.rs
diesel_models
function_signature
420
rust
null
null
null
null
update_by_user_id_tenant_id_org_id_merchant_id_profile_id
null
null
null
null
null
null
null
impl SignatureCalculationData for PaymentsRequest { fn get_merchant_parameters(&self) -> Result<String, Error> { self.encode_to_string_of_json() .change_context(errors::ConnectorError::RequestEncodingFailed) } fn get_order_id(&self) -> String { self.ds_merchant_order.clone() ...
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
impl_block
70
rust
null
PaymentsRequest
SignatureCalculationData for
impl SignatureCalculationData for for PaymentsRequest
null
null
null
null
null
null
null
null
impl api::PayoutCreate for Ebanx {}
crates/hyperswitch_connectors/src/connectors/ebanx.rs
hyperswitch_connectors
impl_block
11
rust
null
Ebanx
api::PayoutCreate for
impl api::PayoutCreate for for Ebanx
null
null
null
null
null
null
null
null
pub struct PaymentDistributionBody { pub distribution_for: PaymentDistributions, pub distribution_cardinality: QueryLimit, }
crates/api_models/src/analytics.rs
api_models
struct_definition
25
rust
PaymentDistributionBody
null
null
null
null
null
null
null
null
null
null
null
pub struct CeleroVoidResponse { pub status: CeleroResponseStatus, pub msg: String, pub data: Option<serde_json::Value>, // Usually null for void responses }
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
40
rust
CeleroVoidResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct CommonMandateReference { pub payments: Option<PaymentsTokenReference>, pub payouts: Option<PayoutsMandateReference>, }
crates/diesel_models/src/payment_method.rs
diesel_models
struct_definition
32
rust
CommonMandateReference
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Thunes {}
crates/hyperswitch_connectors/src/connectors/thunes.rs
hyperswitch_connectors
impl_block
9
rust
null
Thunes
api::PaymentSync for
impl api::PaymentSync for for Thunes
null
null
null
null
null
null
null
null
pub async fn customers_create() {}
crates/openapi/src/routes/customers.rs
openapi
function_signature
7
rust
null
null
null
null
customers_create
null
null
null
null
null
null
null
pub fn process_env_mappings( mappings: Option<HashMap<String, String>>, ) -> Option<serde_json::Value> { let result: HashMap<String, String> = mappings? .into_iter() .filter_map(|(key, env_var)| std::env::var(&env_var).ok().map(|value| (key, value))) .collect(); ...
crates/router/src/routes/app.rs
router
function_signature
140
rust
null
null
null
null
process_env_mappings
null
null
null
null
null
null
null
pub async fn change_password( state: web::Data<AppState>, http_req: HttpRequest, json_payload: web::Json<user_api::ChangePasswordRequest>, ) -> HttpResponse { let flow = Flow::ChangePassword; Box::pin(api::server_wrap( flow, state.clone(), &http_req, json_payload.into...
crates/router/src/routes/user.rs
router
function_signature
124
rust
null
null
null
null
change_password
null
null
null
null
null
null
null
pub struct PaymentCapture;
crates/router/src/core/payments/operations/payment_capture.rs
router
struct_definition
5
rust
PaymentCapture
null
null
null
null
null
null
null
null
null
null
null
pub fn new(event: Option<routing_events::RoutingEvent>, response: Option<Res>) -> Self { Self { event, response } }
crates/router/src/core/payments/routing/utils.rs
router
function_signature
31
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct AliPayQr {}
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
7
rust
AliPayQr
null
null
null
null
null
null
null
null
null
null
null
pub const fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/archipel.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct NovalnetCancelResponse { result: ResultData, transaction: Option<NovalnetPaymentsResponseTransactionData>, }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
NovalnetCancelResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct PartnerReferralOperations { pub operation: PayPalReferralOperationType, pub api_integration_preference: PartnerReferralIntegrationPreference, }
crates/router/src/types/api/connector_onboarding/paypal.rs
router
struct_definition
30
rust
PartnerReferralOperations
null
null
null
null
null
null
null
null
null
null
null
pub async fn payment_get_intent_using_merchant_reference_id( state: web::Data<app::AppState>, req: actix_web::HttpRequest, path: web::Path<common_utils::id_type::PaymentReferenceId>, ) -> impl Responder { use crate::db::domain::merchant_context; let flow = Flow::PaymentsRetrieveUsingMerchantReferen...
crates/router/src/routes/payments.rs
router
function_signature
296
rust
null
null
null
null
payment_get_intent_using_merchant_reference_id
null
null
null
null
null
null
null
pub struct AuthenticationSuccessCount;
crates/api_models/src/analytics/auth_events.rs
api_models
struct_definition
6
rust
AuthenticationSuccessCount
null
null
null
null
null
null
null
null
null
null
null
pub struct ZslRouterData<T> { pub amount: String, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
ZslRouterData
null
null
null
null
null
null
null
null
null
null
null
- **core:** Make installment_payment_enabled,recurring_enabled Optional ([#8201](https://github.com/juspay/hyperswitch/pull/8201)) ([`171ca3b`](https://github.com/juspay/hyperswitch/commit/171ca3b5645d8b0b7715939c46509cfa03af12ae)) ### Bug Fixes - **connector:** - Removed forked josekit dependency from payout conne...
CHANGELOG.md#chunk6
null
doc_chunk
8,159
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn validate_role_name( state: &SessionState, role_name: &domain::RoleName, merchant_id: &id_type::MerchantId, org_id: &id_type::OrganizationId, tenant_id: &id_type::TenantId, profile_id: &id_type::ProfileId, entity_type: &EntityType, ) -> UserResult<()> { let role_name_str = ro...
crates/router/src/utils/user_role.rs
router
function_signature
368
rust
null
null
null
null
validate_role_name
null
null
null
null
null
null
null
pub struct Merchant { merchant_id: Option<String>, merchant_software: JpmorganMerchantSoftware, merchant_category_code: Option<String>, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
Merchant
null
null
null
null
null
null
null
null
null
null
null
pub struct CardInfo { #[serde(rename = "infoSource")] pub info_source: String, pub network: String, #[serde(rename = "primaryNetwork")] pub primary_network: bool, }
crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
CardInfo
null
null
null
null
null
null
null
null
null
null
null
pub fn header(mut self, header: &str, value: &str) -> Self { self.headers.insert((header.into(), value.into())); self }
crates/common_utils/src/request.rs
common_utils
function_signature
35
rust
null
null
null
null
header
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/hyperwallet/transformers.rs Public structs: 8 use common_enums::enums; use common_utils::types::StringMinorUnit; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router_flow_types::refu...
crates/hyperswitch_connectors/src/connectors/hyperwallet/transformers.rs
hyperswitch_connectors
full_file
1,657
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_payout_link_by_link_id( conn: &PgPooledConn, link_id: &str, ) -> StorageResult<PayoutLink> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::link_id.eq(link_id.to_owned()), ) .await .and_then(|res: Se...
crates/diesel_models/src/query/generic_link.rs
diesel_models
function_signature
126
rust
null
null
null
null
find_payout_link_by_link_id
null
null
null
null
null
null
null
pub struct NoonWebhookEvent { pub order_status: NoonPaymentStatus, pub event_type: NoonWebhookEventTypes, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
NoonWebhookEvent
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantConnectorAccount { pub id: id_type::MerchantConnectorAccountId, pub merchant_id: id_type::MerchantId, pub connector_name: common_enums::connector_enums::Connector, #[encrypt] pub connector_account_details: Encryptable<Secret<Value>>, pub disabled: Option<bool>, pub payment...
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
struct_definition
278
rust
MerchantConnectorAccount
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/transformers.rs pub trait ForeignFrom<F> { fn foreign_from(from: F) -> Self; } pub trait ForeignTryFrom<F>: Sized { type Error; fn foreign_try_from(from: F) -> Result<Self, Self::Error>; }
crates/hyperswitch_domain_models/src/transformers.rs
hyperswitch_domain_models
full_file
65
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Katapult {}
crates/hyperswitch_connectors/src/connectors/katapult.rs
hyperswitch_connectors
impl_block
9
rust
null
Katapult
api::PaymentToken for
impl api::PaymentToken for for Katapult
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Payeezy {}
crates/hyperswitch_connectors/src/connectors/payeezy.rs
hyperswitch_connectors
impl_block
10
rust
null
Payeezy
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Payeezy
null
null
null
null
null
null
null
null
pub fn update(&mut self, new_config: Self) { if let Some(payment_method_type) = new_config.payment_method_type { self.payment_method_type = Some(payment_method_type); } if let Some(payment_method) = new_config.payment_method { self.payment_method = Some(payment_method); ...
crates/api_models/src/open_router.rs
api_models
function_signature
251
rust
null
null
null
null
update
null
null
null
null
null
null
null
impl ConnectorSpecifications for Mollie { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&*MOLLIE_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*MOLLIE_SUPPORTED_PAYMENT_METHODS) } fn get_suppor...
crates/hyperswitch_connectors/src/connectors/mollie.rs
hyperswitch_connectors
impl_block
111
rust
null
Mollie
ConnectorSpecifications for
impl ConnectorSpecifications for for Mollie
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ProcessorPaymentToken { "type": "object", "description": "Processor payment token for MIT payments where payment_method_data is not available", "required": [ "processor_payment_token" ], "properties": { "processor_payment_token": { "type": "string" }, ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
99
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ProcessorPaymentToken" ]
null
null
null
null
impl Deref for ExtendedAuthorizationAppliedBool { type Target = bool; fn deref(&self) -> &Self::Target { &self.0 } }
crates/common_types/src/primitive_wrappers.rs
common_types
impl_block
38
rust
null
ExtendedAuthorizationAppliedBool
Deref for
impl Deref for for ExtendedAuthorizationAppliedBool
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs Public functions: 1 Public structs: 21 use api_models::{payouts, webhooks}; use common_enums::enums; use common_utils::pii; use error_stack::{report, ResultExt}; use hyperswitch_domain_models::types::{self, PayoutsRouterData}; u...
crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs
hyperswitch_connectors
full_file
5,503
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.IssuerData { "type": "object", "description": "Represents data about the issuer used in the 3DS decision rule.", "required": [ "country" ], "properties": { "name": { "type": "string", "description": "The name of the issuer.", "nullable": true ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
110
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "IssuerData" ]
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/tokenio.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::{ sync::LazyLock, time::{SystemTime, UNIX_EPOCH}, }; use base64::{engine::general_purpose::URL_SAFE_NO_PAD, Engine as _}; use common_enums::{enums, FeatureStatus, PaymentMethodT...
crates/hyperswitch_connectors/src/connectors/tokenio.rs
hyperswitch_connectors
full_file
6,266
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_by_payment_id_merchant_id_attempt_id( conn: &PgPooledConn, payment_id: &common_utils::id_type::PaymentId, merchant_id: &common_utils::id_type::MerchantId, attempt_id: &str, ) -> StorageResult<Self> { let connector_response: Self = generics::gener...
crates/diesel_models/src/query/connector_response.rs
diesel_models
function_signature
503
rust
null
null
null
null
find_by_payment_id_merchant_id_attempt_id
null
null
null
null
null
null
null
impl Default for ClickhouseConfig { fn default() -> Self { Self { username: "default".to_string(), password: None, host: "http://localhost:8123".to_string(), } } }
crates/analytics/src/clickhouse.rs
analytics
impl_block
52
rust
null
ClickhouseConfig
Default for
impl Default for for ClickhouseConfig
null
null
null
null
null
null
null
null
pub struct RiskifiedMetadata { vendor_name: String, shipping_lines: Vec<ShippingLines>, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
22
rust
RiskifiedMetadata
null
null
null
null
null
null
null
null
null
null
null
pub fn validate(&self) -> Result<(), ApplicationError> { use common_utils::fp_utils::when; when(self.hash_key.peek().is_empty(), || { Err(ApplicationError::InvalidConfigurationValueError( "API key hashing key must not be empty".into(), )) })?; #[...
crates/router/src/configs/validations.rs
router
function_signature
118
rust
null
null
null
null
validate
null
null
null
null
null
null
null
pub struct CardVaultResponse { attributes: Option<AttributeResponse>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
CardVaultResponse
null
null
null
null
null
null
null
null
null
null
null
impl State for PmAssigned {}
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
impl_block
7
rust
null
PmAssigned
State for
impl State for for PmAssigned
null
null
null
null
null
null
null
null
pub struct PartnerReferralRestApiIntegration { pub integration_method: IntegrationMethod, pub integration_type: PayPalIntegrationType, pub third_party_details: PartnerReferralThirdPartyDetails, }
crates/router/src/types/api/connector_onboarding/paypal.rs
router
struct_definition
40
rust
PartnerReferralRestApiIntegration
null
null
null
null
null
null
null
null
null
null
null
File: crates/api_models/src/events/routing.rs use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::routing::{ ContractBasedRoutingPayloadWrapper, ContractBasedRoutingSetupPayloadWrapper, CreateDynamicRoutingWrapper, DynamicRoutingUpdateConfigQuery, EliminationRoutingPayloadWrapper, Linked...
crates/api_models/src/events/routing.rs
api_models
full_file
1,448
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ThreeDSAuthResult { authentication_value: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
ThreeDSAuthResult
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_retries( state: &app::SessionState, retries: Option<i32>, merchant_id: &common_utils::id_type::MerchantId, profile: &domain::Profile, ) -> Option<i32> { match retries { Some(retries) => Some(retries), None => get_merchant_max_auto_retries_enabled(state.store.as_ref()...
crates/router/src/core/payments/retry.rs
router
function_signature
110
rust
null
null
null
null
get_retries
null
null
null
null
null
null
null
pub fn master_key(&self) -> &StrongSecret<Vec<u8>> { &self.master_encryption_key }
crates/storage_impl/src/lib.rs
storage_impl
function_signature
26
rust
null
null
null
null
master_key
null
null
null
null
null
null
null