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 SantanderRefundResponse { pub id: Secret<String>, pub rtr_id: Secret<String>, #[serde(rename = "valor")] pub value: StringMajorUnit, #[serde(rename = "horario")] pub time: SantanderTime, pub status: SantanderRefundStatus, #[serde(rename = "motivo")] pub reason: String, }
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
83
rust
SantanderRefundResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/routing.rs Public functions: 34 Public structs: 4 pub mod helpers; pub mod transformers; use std::collections::HashSet; #[cfg(all(feature = "v1", feature = "dynamic_routing"))] use api_models::routing::DynamicRoutingAlgoAccessor; use api_models::{ enums, mandates as mandates_api, ...
crates/router/src/core/routing.rs#chunk0
router
chunk
8,192
null
null
null
null
null
null
null
null
null
null
null
null
null
impl BusinessGenericLinkConfig { pub fn validate(&self) -> Result<(), &str> { // Validate host domain name let host_domain_valid = self .domain_name .clone() .map(|host_domain| link_utils::validate_strict_domain(&host_domain)) .unwrap_or(true); ...
crates/api_models/src/admin.rs
api_models
impl_block
162
rust
null
BusinessGenericLinkConfig
null
impl BusinessGenericLinkConfig
null
null
null
null
null
null
null
null
| WalletData::WeChatPayQr(_) | WalletData::CashappQr(_) | WalletData::SwishQr(_) | WalletData::Mifinity(_) | WalletData::RevolutPay(_) | WalletData::Paze(_) => Err(errors::ConnectorError::NotImplemented( ...
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs#chunk1
hyperswitch_connectors
chunk
8,180
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/billwerk.rs use masking::Secret; use router::types::{self, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct BillwerkTest; impl ConnectorActions for BillwerkTest {} impl utils::Connector for Billwerk...
crates/router/tests/connectors/billwerk.rs
router
full_file
2,942
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Hipay { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&HIPAY_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*HIPAY_SUPPORTED_PAYMENT_METHODS) } fn get_supported_...
crates/hyperswitch_connectors/src/connectors/hipay.rs
hyperswitch_connectors
impl_block
105
rust
null
Hipay
ConnectorSpecifications for
impl ConnectorSpecifications for for Hipay
null
null
null
null
null
null
null
null
impl api::Refund for Square {}
crates/hyperswitch_connectors/src/connectors/square.rs
hyperswitch_connectors
impl_block
8
rust
null
Square
api::Refund for
impl api::Refund for for Square
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/wellsfargopayout.rs use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct WellsfargopayoutTest; impl ConnectorActions for WellsfargopayoutTest {} impl utils::C...
crates/router/tests/connectors/wellsfargopayout.rs
router
full_file
2,973
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_user_authentication_method_by_id( conn: &PgPooledConn, id: &str, ) -> StorageResult<Self> { generics::generic_find_by_id::<<Self as HasTable>::Table, _, _>(conn, id.to_owned()).await }
crates/diesel_models/src/query/user_authentication_method.rs
diesel_models
function_signature
62
rust
null
null
null
null
get_user_authentication_method_by_id
null
null
null
null
null
null
null
File: crates/router/src/routes/payment_link.rs Public functions: 5 use actix_web::{web, Responder}; use router_env::{instrument, tracing, Flow}; use crate::{ core::{api_locking, payment_link::*}, services::{api, authentication as auth}, types::domain, AppState, }; /// Payments Link - Retrieve /// //...
crates/router/src/routes/payment_link.rs
router
full_file
1,280
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for UnifiedAuthenticationService { fn id(&self) -> &'static str { "unified_authentication_service" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" ...
crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs
hyperswitch_connectors
impl_block
297
rust
null
UnifiedAuthenticationService
ConnectorCommon for
impl ConnectorCommon for for UnifiedAuthenticationService
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/gpayments/gpayments_types.rs Public structs: 10 use api_models::payments::ThreeDsCompletionIndicator; use cards::CardNumber; use common_utils::types; use masking::{Deserialize, Secret, Serialize}; #[derive(Debug, Serialize, Deserialize)] pub struct GpaymentsConnecto...
crates/hyperswitch_connectors/src/connectors/gpayments/gpayments_types.rs
hyperswitch_connectors
full_file
1,955
null
null
null
null
null
null
null
null
null
null
null
null
null
impl DynamicRoutingAlgorithmRef { pub fn update_algorithm_id( &mut self, new_id: common_utils::id_type::RoutingId, enabled_feature: DynamicRoutingFeatures, dynamic_routing_type: DynamicRoutingType, ) { match dynamic_routing_type { DynamicRoutingType::SuccessRa...
crates/api_models/src/routing.rs
api_models
impl_block
619
rust
null
DynamicRoutingAlgorithmRef
null
impl DynamicRoutingAlgorithmRef
null
null
null
null
null
null
null
null
pub struct ConnectorInfo { pub gateway_name: String, pub gateway_id: Option<String>, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
21
rust
ConnectorInfo
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/cashtocode.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use base64::Engine; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::ByteSliceExt, request::{Method, Request, RequestBuilde...
crates/hyperswitch_connectors/src/connectors/cashtocode.rs
hyperswitch_connectors
full_file
4,047
null
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/payment-methods/payment-method--retrieve.mdx # Type: Doc File --- openapi: get /v2/payment-methods/{id} ---
api-reference/v2/payment-methods/payment-method--retrieve.mdx
null
doc_file
37
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Adyenplatform { fn id(&self) -> &'static str { "adyenplatform" } fn get_auth_header( &self, auth_type: &ConnectorAuthType, ) -> CustomResult<Vec<(String, Maskable<String>)>, ConnectorError> { let auth = adyenplatform::AdyenplatformAuthType::try_f...
crates/hyperswitch_connectors/src/connectors/adyenplatform.rs
hyperswitch_connectors
impl_block
353
rust
null
Adyenplatform
ConnectorCommon for
impl ConnectorCommon for for Adyenplatform
null
null
null
null
null
null
null
null
pub trait PaymentFilterAnalytics: LoadRow<PaymentFilterRow> {}
crates/analytics/src/payments/filters.rs
analytics
trait_definition
14
rust
null
null
PaymentFilterAnalytics
null
null
null
null
null
null
null
null
null
pub fn get_authentication_connector_config(key: &str) -> JsResult { let key = api_model_enums::AuthenticationConnectors::from_str(key) .map_err(|_| "Invalid key received".to_string())?; let res = connector::ConnectorConfig::get_authentication_connector_config(key)?; Ok(serde_wasm_bindgen::to_value(&...
crates/euclid_wasm/src/lib.rs
euclid_wasm
function_signature
78
rust
null
null
null
null
get_authentication_connector_config
null
null
null
null
null
null
null
impl api::RefundExecute for Wellsfargopayout {}
crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs
hyperswitch_connectors
impl_block
13
rust
null
Wellsfargopayout
api::RefundExecute for
impl api::RefundExecute for for Wellsfargopayout
null
null
null
null
null
null
null
null
pub fn set_stored_token_response( self, store_token_response: &'a StoreLockerResponse, ) -> NetworkTokenizationBuilder<'a, CardTokenStored> { NetworkTokenizationBuilder { state: std::marker::PhantomData, card_tokenized: true, stored_token: Some(&store_toke...
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
function_signature
143
rust
null
null
null
null
set_stored_token_response
null
null
null
null
null
null
null
pub struct AdyenplatformAuthType { pub(super) api_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
AdyenplatformAuthType
null
null
null
null
null
null
null
null
null
null
null
pub fn into_inner(self) -> pii::Email { self.0 }
crates/router/src/types/domain/user.rs
router
function_signature
18
rust
null
null
null
null
into_inner
null
null
null
null
null
null
null
pub struct ChargebackCase { pub case_id: String, pub merchant_id: String, pub day_issued_by_bank: Option<String>, pub date_received_by_vantiv_cnp: Option<String>, pub vantiv_cnp_txn_id: String, pub cycle: String, pub order_id: String, pub card_number_last4: Option<String>, pub card_t...
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
241
rust
ChargebackCase
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Nexixpay {}
crates/hyperswitch_connectors/src/connectors/nexixpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Nexixpay
api::Payment for
impl api::Payment for for Nexixpay
null
null
null
null
null
null
null
null
pub struct NexixpayMandateResponse { operation: Operation, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
NexixpayMandateResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn get_feature_metadata(&self) -> Option<FeatureMetadata> { self.feature_metadata.clone() }
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
function_signature
23
rust
null
null
null
null
get_feature_metadata
null
null
null
null
null
null
null
impl IncomingWebhook for Rapyd { fn get_webhook_source_verification_algorithm( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(crypto::HmacSha256)) } fn get_webhook_source_verif...
crates/hyperswitch_connectors/src/connectors/rapyd.rs
hyperswitch_connectors
impl_block
2,088
rust
null
Rapyd
IncomingWebhook for
impl IncomingWebhook for for Rapyd
null
null
null
null
null
null
null
null
pub struct ProfileNew { pub merchant_id: common_utils::id_type::MerchantId, pub profile_name: String, pub created_at: time::PrimitiveDateTime, pub modified_at: time::PrimitiveDateTime, pub return_url: Option<common_utils::types::Url>, pub enable_payment_response_hash: bool, pub payment_respo...
crates/diesel_models/src/business_profile.rs
diesel_models
struct_definition
758
rust
ProfileNew
null
null
null
null
null
null
null
null
null
null
null
pub struct CalSuccessRateEventResponse { pub labels_with_score: Vec<LabelWithScoreEventResponse>, pub routing_approach: RoutingApproach, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
33
rust
CalSuccessRateEventResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct CashtocodeErrorResponse { pub error: serde_json::Value, pub error_description: String, pub errors: Option<Vec<CashtocodeErrors>>, }
crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
CashtocodeErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct PoCancel;
crates/hyperswitch_domain_models/src/router_flow_types/payouts.rs
hyperswitch_domain_models
struct_definition
5
rust
PoCancel
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/compatibility/stripe/webhooks.rs Public structs: 4 #[cfg(feature = "payouts")] use api_models::payouts as payout_models; use api_models::{ enums::{Currency, DisputeStatus, MandateStatus}, webhooks::{self as api}, }; use common_utils::{crypto::SignMessage, date_time, ext_traits::Encode}...
crates/router/src/compatibility/stripe/webhooks.rs
router
full_file
3,014
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PmTokenUpdated;
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
struct_definition
7
rust
PmTokenUpdated
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/refund.rs Public functions: 10 use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, Table}; use super::generics; #[cfg(feature = "v1")] use crate::schema::refund::dsl; #[cfg(feature = "v2")] use crate::schema_v2::refund::dsl; use crate::{ errors, ...
crates/diesel_models/src/query/refund.rs
diesel_models
full_file
1,349
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_merchant_reference_id(&self) -> id_type::MerchantId { self.merchant_id.clone() }
crates/api_models/src/admin.rs
api_models
function_signature
26
rust
null
null
null
null
get_merchant_reference_id
null
null
null
null
null
null
null
/// Revenue recovery metadata for merchant connector account pub struct RevenueRecoveryMetadata { /// The maximum number of retries allowed for an invoice. This limit is set by the merchant for each `billing connector`. Once this limit is reached, no further retries will be attempted. #[schema(value_type = u16,...
crates/api_models/src/admin.rs
api_models
struct_definition
256
rust
RevenueRecoveryMetadata
null
null
null
null
null
null
null
null
null
null
null
pub fn get_optional_full_name(&self) -> Option<Secret<String>> { match (self.first_name.as_ref(), self.last_name.as_ref()) { (Some(first_name), Some(last_name)) => Some(Secret::new(format!( "{} {}", first_name.peek(), last_name.peek() ))), ...
crates/hyperswitch_domain_models/src/address.rs
hyperswitch_domain_models
function_signature
96
rust
null
null
null
null
get_optional_full_name
null
null
null
null
null
null
null
pub fn payment_method_session_confirm() {}
crates/openapi/src/routes/payment_method.rs
openapi
function_signature
8
rust
null
null
null
null
payment_method_session_confirm
null
null
null
null
null
null
null
impl<T: std::fmt::Debug + Clone + Eq + PartialEq> std::fmt::Debug for Maskable<T> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { Self::Masked(secret_value) => std::fmt::Debug::fmt(secret_value, f), Self::Normal(value) => std::fmt::Debug::fmt(value...
crates/masking/src/maskable.rs
masking
impl_block
99
rust
null
Maskable
std::fmt::Debug for
impl std::fmt::Debug for for Maskable
null
null
null
null
null
null
null
null
impl Default for Database { fn default() -> Self { Self { username: String::new(), password: Secret::<String>::default(), host: "localhost".into(), port: 5432, dbname: String::new(), pool_size: 5, connection_timeout: 10, ...
crates/storage_impl/src/config.rs
storage_impl
impl_block
96
rust
null
Database
Default for
impl Default for for Database
null
null
null
null
null
null
null
null
impl EmvThreedsData { pub fn new(three_d_s_info: RedsysThreeDsInfo) -> Self { Self { three_d_s_info, protocol_version: None, browser_accept_header: None, browser_user_agent: None, browser_java_enabled: None, browser_javascript_enabled: ...
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
impl_block
2,350
rust
null
EmvThreedsData
null
impl EmvThreedsData
null
null
null
null
null
null
null
null
/// Middleware for Logging request_details of HTTP 400 Bad Requests pub struct Http400RequestDetailsLogger;
crates/router/src/middleware.rs
router
struct_definition
25
rust
Http400RequestDetailsLogger
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Itaubank {}
crates/hyperswitch_connectors/src/connectors/itaubank.rs
hyperswitch_connectors
impl_block
9
rust
null
Itaubank
api::Payment for
impl api::Payment for for Itaubank
null
null
null
null
null
null
null
null
pub struct TokenizationResponse { pub token: String, pub created_at: PrimitiveDateTime, pub flag: common_enums::TokenizationFlag, }
crates/hyperswitch_domain_models/src/tokenization.rs
hyperswitch_domain_models
struct_definition
33
rust
TokenizationResponse
null
null
null
null
null
null
null
null
null
null
null
impl DieselDeriveInputExt for DeriveInput { fn get_metadata(&self) -> syn::Result<Vec<DieselEnumMeta>> { helpers::get_metadata_inner("storage_type", &self.attrs) } }
crates/router_derive/src/macros/diesel.rs
router_derive
impl_block
46
rust
null
DeriveInput
DieselDeriveInputExt for
impl DieselDeriveInputExt for for DeriveInput
null
null
null
null
null
null
null
null
File: crates/router/src/types/api/payments_v2.rs pub use hyperswitch_interfaces::api::payments_v2::{ ConnectorCustomerV2, MandateSetupV2, PaymentApproveV2, PaymentAuthorizeSessionTokenV2, PaymentAuthorizeV2, PaymentCaptureV2, PaymentIncrementalAuthorizationV2, PaymentPostCaptureVoidV2, PaymentPostSessionTo...
crates/router/src/types/api/payments_v2.rs
router
full_file
152
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CustomerUpdateRequestInternal { pub customer_id: id_type::CustomerId, pub request: CustomerUpdateRequest, }
crates/api_models/src/customers.rs
api_models
struct_definition
26
rust
CustomerUpdateRequestInternal
null
null
null
null
null
null
null
null
null
null
null
pub struct SuccessfulSmartRetries;
crates/api_models/src/analytics/payment_intents.rs
api_models
struct_definition
7
rust
SuccessfulSmartRetries
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentsPostProcessingData { pub payment_method_data: PaymentMethodData, pub customer_id: Option<id_type::CustomerId>, pub connector_transaction_id: Option<String>, pub country: Option<common_enums::CountryAlpha2>, pub connector_meta_data: Option<pii::SecretSerdeValue>, pub header_pay...
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
81
rust
PaymentsPostProcessingData
null
null
null
null
null
null
null
null
null
null
null
pub struct PayuPaymentsCancelResponse { pub order_id: String, pub ext_order_id: Option<String>, pub status: PayuPaymentStatusData, }
crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
PayuPaymentsCancelResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct NovalnetPSyncResponse { pub customer: Option<NovalnetResponseCustomer>, pub merchant: Option<NovalnetResponseMerchant>, pub result: ResultData, pub transaction: Option<NovalnetSyncResponseTransactionData>, }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
55
rust
NovalnetPSyncResponse
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Airwallex { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&AIRWALLEX_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*AIRWALLEX_SUPPORTED_PAYMENT_METHODS) } fn ge...
crates/hyperswitch_connectors/src/connectors/airwallex.rs
hyperswitch_connectors
impl_block
112
rust
null
Airwallex
ConnectorSpecifications for
impl ConnectorSpecifications for for Airwallex
null
null
null
null
null
null
null
null
pub struct RSyncSearchData { refunds: RefundData, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
RSyncSearchData
null
null
null
null
null
null
null
null
null
null
null
pub async fn perform_surcharge_ops( _payment_intent: Option<storage::PaymentIntent>, _state: &routes::SessionState, _merchant_context: &domain::MerchantContext, _business_profile: Option<Profile>, _response: &mut api_models::payment_methods::CustomerPaymentMethodsListResponse, ) -> Result<(), error_...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
88
rust
null
null
null
null
perform_surcharge_ops
null
null
null
null
null
null
null
File: crates/analytics/src/disputes/metrics/sessionized_metrics/total_dispute_lost_amount.rs use std::collections::HashSet; use api_models::analytics::{ disputes::{DisputeDimensions, DisputeFilters, DisputeMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use erro...
crates/analytics/src/disputes/metrics/sessionized_metrics/total_dispute_lost_amount.rs
analytics
full_file
857
null
null
null
null
null
null
null
null
null
null
null
null
null
pub trait NuveiPaymentsGenericResponse { fn is_post_capture_void() -> bool { false } }
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
trait_definition
25
rust
null
null
NuveiPaymentsGenericResponse
null
null
null
null
null
null
null
null
null
pub struct UnifiedConnectorServiceClient { /// The Unified Connector Service Client pub client: PaymentServiceClient<tonic::transport::Channel>, }
crates/external_services/src/grpc_client/unified_connector_service.rs
external_services
struct_definition
31
rust
UnifiedConnectorServiceClient
null
null
null
null
null
null
null
null
null
null
null
pub async fn generate_jwt_auth_token_with_attributes( state: &SessionState, user_id: String, merchant_id: id_type::MerchantId, org_id: id_type::OrganizationId, role_id: String, profile_id: id_type::ProfileId, tenant_id: Option<id_type::TenantId>, ) -> UserResult<Secret<String>> { let tok...
crates/router/src/utils/user.rs
router
function_signature
134
rust
null
null
null
null
generate_jwt_auth_token_with_attributes
null
null
null
null
null
null
null
impl api::PaymentCapture for Hipay {}
crates/hyperswitch_connectors/src/connectors/hipay.rs
hyperswitch_connectors
impl_block
9
rust
null
Hipay
api::PaymentCapture for
impl api::PaymentCapture for for Hipay
null
null
null
null
null
null
null
null
pub fn make_new_payment_attempt( connector: String, old_payment_attempt: storage::PaymentAttempt, new_attempt_count: i16, is_step_up: bool, setup_future_usage_intent: Option<storage_enums::FutureUsage>, ) -> storage::PaymentAttemptNew { let created_at @ modified_at @ last_synced = Some(common_ut...
crates/router/src/core/payments/retry.rs
router
function_signature
754
rust
null
null
null
null
make_new_payment_attempt
null
null
null
null
null
null
null
impl api::RefundSync for Novalnet {}
crates/hyperswitch_connectors/src/connectors/novalnet.rs
hyperswitch_connectors
impl_block
11
rust
null
Novalnet
api::RefundSync for
impl api::RefundSync for for Novalnet
null
null
null
null
null
null
null
null
pub struct WiseAddressDetails { country: Option<CountryAlpha2>, country_code: Option<CountryAlpha2>, first_line: Option<Secret<String>>, post_code: Option<Secret<String>>, city: Option<String>, state: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/wise/transformers.rs
hyperswitch_connectors
struct_definition
58
rust
WiseAddressDetails
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Paystack {}
crates/hyperswitch_connectors/src/connectors/paystack.rs
hyperswitch_connectors
impl_block
9
rust
null
Paystack
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Paystack
null
null
null
null
null
null
null
null
pub struct Authentication { pub sca: SCA, pub cvc: Secret<String>, pub avs: String, }
crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
Authentication
null
null
null
null
null
null
null
null
null
null
null
pub struct SupportedPaymentMethod { /// The payment method supported by the connector #[schema(value_type = PaymentMethod)] pub payment_method: common_enums::PaymentMethod, /// The payment method type supported by the connector #[schema(value_type = PaymentMethodType)] pub payment_method_type: c...
crates/api_models/src/feature_matrix.rs
api_models
struct_definition
323
rust
SupportedPaymentMethod
null
null
null
null
null
null
null
null
null
null
null
impl MerchantConnectorAccount { pub fn get_retry_threshold(&self) -> Option<u16> { self.feature_metadata .as_ref() .and_then(|metadata| metadata.revenue_recovery.as_ref()) .map(|recovery| recovery.billing_connector_retry_threshold) } pub fn get_id(&self) -> id_ty...
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
impl_block
492
rust
null
MerchantConnectorAccount
null
impl MerchantConnectorAccount
null
null
null
null
null
null
null
null
pub struct VantivDisputeErrors { pub error: String, }
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
VantivDisputeErrors
null
null
null
null
null
null
null
null
null
null
null
pub struct DummySignal;
crates/common_utils/src/signals.rs
common_utils
struct_definition
5
rust
DummySignal
null
null
null
null
null
null
null
null
null
null
null
impl CaptureInterface for KafkaStore { async fn insert_capture( &self, capture: storage::CaptureNew, storage_scheme: MerchantStorageScheme, ) -> CustomResult<storage::Capture, errors::StorageError> { self.diesel_store .insert_capture(capture, storage_scheme) ...
crates/router/src/db/kafka_store.rs
router
impl_block
277
rust
null
KafkaStore
CaptureInterface for
impl CaptureInterface for for KafkaStore
null
null
null
null
null
null
null
null
pub struct VaultDeleteRequest { pub entity_id: id_type::GlobalCustomerId, pub vault_id: domain::VaultId, }
crates/router/src/types/payment_methods.rs
router
struct_definition
28
rust
VaultDeleteRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundListRequest { /// The identifier for the payment #[schema(value_type = Option<String>)] pub payment_id: Option<common_utils::id_type::PaymentId>, /// The identifier for the refund pub refund_id: Option<String>, /// The identifier for business profile #[schema(value_type = Op...
crates/api_models/src/refunds.rs
api_models
struct_definition
384
rust
RefundListRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn validate_create_request( state: &SessionState, merchant_context: &domain::MerchantContext, req: &payouts::PayoutCreateRequest, ) -> RouterResult<( id_type::PayoutId, Option<payouts::PayoutMethodData>, id_type::ProfileId, Option<domain::Customer>, Option<PaymentMethod>, )> { ...
crates/router/src/core/payouts/validator.rs
router
function_signature
1,517
rust
null
null
null
null
validate_create_request
null
null
null
null
null
null
null
pub trait NodeViz { fn viz(&self) -> String; }
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
trait_definition
16
rust
null
null
NodeViz
null
null
null
null
null
null
null
null
null
pub struct StripeDisputeResponse { pub id: String, pub amount: String, pub currency: Currency, pub payment_intent: id_type::PaymentId, pub reason: Option<String>, pub status: StripeDisputeStatus, }
crates/router/src/compatibility/stripe/webhooks.rs
router
struct_definition
53
rust
StripeDisputeResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/api_models/src/ephemeral_key.rs Public structs: 4 use common_utils::id_type; #[cfg(feature = "v2")] use masking::Secret; use serde; use utoipa::ToSchema; #[cfg(feature = "v1")] /// Information required to create an ephemeral key. #[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)] pu...
crates/api_models/src/ephemeral_key.rs
api_models
full_file
888
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Bambora {}
crates/hyperswitch_connectors/src/connectors/bambora.rs
hyperswitch_connectors
impl_block
8
rust
null
Bambora
ConnectorValidation for
impl ConnectorValidation for for Bambora
null
null
null
null
null
null
null
null
/// Create a [`Histogram`][Histogram] u64 metric with the specified name and an optional description, /// associated with the specified meter. Note that the meter must be a valid [`Meter`][Meter]. /// /// [Histogram]: opentelemetry::metrics::Histogram /// [Meter]: opentelemetry::metrics::Meter #[macro_export] macro_rul...
crates/router_env/src/metrics.rs
router_env
macro
297
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
File: crates/router/src/types/storage/revenue_recovery.rs Public functions: 2 Public structs: 6 use std::{collections::HashMap, fmt::Debug}; use common_enums::enums::{self, CardNetwork}; use common_utils::{date_time, ext_traits::ValueExt, id_type}; use error_stack::ResultExt; use external_services::grpc_client::{se...
crates/router/src/types/storage/revenue_recovery.rs
router
full_file
990
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Tokenio {}
crates/hyperswitch_connectors/src/connectors/tokenio.rs
hyperswitch_connectors
impl_block
10
rust
null
Tokenio
api::RefundSync for
impl api::RefundSync for for Tokenio
null
null
null
null
null
null
null
null
impl Default for OpenSearchConfig { fn default() -> Self { Self { host: "https://localhost:9200".to_string(), auth: OpenSearchAuth::Basic { username: "admin".to_string(), password: "admin".to_string(), }, indexes: OpenSearchInde...
crates/analytics/src/opensearch.rs
analytics
impl_block
210
rust
null
OpenSearchConfig
Default for
impl Default for for OpenSearchConfig
null
null
null
null
null
null
null
null
pub fn from_top_level_error(msg: String) -> Self { // Map specific error codes from top-level API errors Self { error_code: None, error_message: msg, processor_response_code: None, decline_reason: None, } }
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
function_signature
57
rust
null
null
null
null
from_top_level_error
null
null
null
null
null
null
null
impl api::RefundExecute for Celero {}
crates/hyperswitch_connectors/src/connectors/celero.rs
hyperswitch_connectors
impl_block
10
rust
null
Celero
api::RefundExecute for
impl api::RefundExecute for for Celero
null
null
null
null
null
null
null
null
pub struct PaytmPaymentsRequest { amount: StringMinorUnit, card: PaytmCard, }
crates/hyperswitch_connectors/src/connectors/paytm/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
PaytmPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct ProcessedAmountAccumulator { pub count_with_retries: Option<i64>, pub total_with_retries: Option<i64>, pub count_without_retries: Option<i64>, pub total_without_retries: Option<i64>, }
crates/analytics/src/payment_intents/accumulator.rs
analytics
struct_definition
58
rust
ProcessedAmountAccumulator
null
null
null
null
null
null
null
null
null
null
null
pub struct Authorization { header: Option<HeaderValue>, }
crates/router/src/core/webhooks/network_tokenization_incoming.rs
router
struct_definition
12
rust
Authorization
null
null
null
null
null
null
null
null
null
null
null
pub struct VoltRefundRequest { pub amount: MinorUnit, pub external_reference: String, }
crates/hyperswitch_connectors/src/connectors/volt/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
VoltRefundRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payment_methods/network_tokenization.rs Public functions: 14 #[cfg(feature = "v2")] use std::fmt::Debug; #[cfg(feature = "v2")] use std::str::FromStr; use ::payment_methods::controller::PaymentMethodsController; use api_models::payment_methods as api_payment_methods; #[cfg(feature = "v2"...
crates/router/src/core/payment_methods/network_tokenization.rs
router
full_file
7,254
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_connectors_for_a_profile( state: SessionState, key_store: domain::MerchantKeyStore, profile_id: id_type::ProfileId, ) -> RouterResponse<Vec<api_models::admin::MerchantConnectorListResponse>> { let store = state.store.as_ref(); let key_manager_state = &(&state).into(); let merc...
crates/router/src/core/admin.rs
router
function_signature
164
rust
null
null
null
null
list_connectors_for_a_profile
null
null
null
null
null
null
null
File: crates/external_services/src/grpc_client/revenue_recovery.rs Public structs: 1 /// Recovery Decider client pub mod recovery_decider_client; use std::fmt::Debug; use common_utils::consts; use router_env::logger; /// Contains recovery grpc headers #[derive(Debug)] pub struct GrpcRecoveryHeaders { /// Reque...
crates/external_services/src/grpc_client/revenue_recovery.rs
external_services
full_file
338
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/proxy/utils.rs Public functions: 7 Public structs: 2 use api_models::{payment_methods::PaymentMethodId, proxy as proxy_api_models}; use common_utils::{ ext_traits::{Encode, OptionExt}, id_type, }; use error_stack::ResultExt; use hyperswitch_domain_models::payment_methods; use mas...
crates/router/src/core/proxy/utils.rs
router
full_file
1,348
null
null
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Barclaycard { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemen...
crates/hyperswitch_connectors/src/connectors/barclaycard.rs
hyperswitch_connectors
impl_block
211
rust
null
Barclaycard
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Barclaycard
null
null
null
null
null
null
null
null
pub struct DlocalPaymentsCaptureResponse { status: DlocalPaymentStatus, id: String, order_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
DlocalPaymentsCaptureResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct GocardlessCustomer { address_line1: Option<Secret<String>>, address_line2: Option<Secret<String>>, address_line3: Option<Secret<String>>, city: Option<Secret<String>>, region: Option<Secret<String>>, country_code: Option<CountryAlpha2>, email: pii::Email, given_name: Secret<St...
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
122
rust
GocardlessCustomer
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Adyen {}
crates/hyperswitch_connectors/src/connectors/adyen.rs
hyperswitch_connectors
impl_block
9
rust
null
Adyen
api::PaymentToken for
impl api::PaymentToken for for Adyen
null
null
null
null
null
null
null
null
pub struct ProphetpaySyncRequest { transaction_id: String, ref_info: String, inquiry_reference: String, profile: Secret<String>, action_type: i8, }
crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs
hyperswitch_connectors
struct_definition
39
rust
ProphetpaySyncRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct WisePayoutQuoteRequest { source_currency: String, target_currency: String, source_amount: Option<FloatMajorUnit>, target_amount: Option<FloatMajorUnit>, pay_out: WisePayOutOption, }
crates/hyperswitch_connectors/src/connectors/wise/transformers.rs
hyperswitch_connectors
struct_definition
48
rust
WisePayoutQuoteRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_payment_methods_core( state: &SessionState, merchant_context: &domain::MerchantContext, customer_id: &id_type::GlobalCustomerId, ) -> RouterResult<payment_methods::CustomerPaymentMethodsListResponse> { let db = &*state.store; let key_manager_state = &(state).into(); let saved_...
crates/router/src/core/payment_methods.rs
router
function_signature
250
rust
null
null
null
null
list_payment_methods_core
null
null
null
null
null
null
null
pub struct JpmorganCaptureResponse { pub transaction_id: String, pub request_id: String, pub transaction_state: JpmorganTransactionState, pub response_status: JpmorganTransactionStatus, pub response_code: String, pub response_message: String, pub payment_method_type: PaymentMethodTypeCapRes,...
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
71
rust
JpmorganCaptureResponse
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/refunds/refunds--metadata-update.mdx # Type: Doc File --- openapi: put /v2/refunds/{id}/update_metadata ---
api-reference/v2/refunds/refunds--metadata-update.mdx
null
doc_file
39
doc
null
null
null
null
null
null
null
null
null
null
null
null