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 fn get_connector_params( &self, connector: connector_enums::Connector, ) -> CustomResult<ConnectorParams, api_error_response::ApiErrorResponse> { match connector { connector_enums::Connector::Recurly => Ok(self.recurly.clone()), connector_enums::Connector::Stripeb...
crates/hyperswitch_domain_models/src/connector_endpoints.rs
hyperswitch_domain_models
function_signature
113
rust
null
null
null
null
get_connector_params
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Vgs { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented)) ...
crates/hyperswitch_connectors/src/connectors/vgs.rs
hyperswitch_connectors
impl_block
210
rust
null
Vgs
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Vgs
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/payments/payments--incremental-authorization.mdx # Type: Doc File --- openapi: post /payments/{payment_id}/incremental_authorization ---
api-reference/v1/payments/payments--incremental-authorization.mdx
null
doc_file
41
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/constants.rs /// Header Constants pub(crate) mod headers { pub(crate) const ACCEPT: &str = "Accept"; pub(crate) const API_KEY: &str = "API-KEY"; pub(crate) const APIKEY: &str = "apikey"; pub(crate) const API_TOKEN: &str = "Api-Token"; pub(crate) const AUTHORI...
crates/hyperswitch_connectors/src/constants.rs
hyperswitch_connectors
full_file
770
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn update(&mut self, new_config: Self) { if let Some(threshold) = new_config.default_latency_threshold { self.default_latency_threshold = Some(threshold); } if let Some(bucket_size) = new_config.default_bucket_size { self.default_bucket_size = Some(bucket_size); ...
crates/api_models/src/open_router.rs
api_models
function_signature
250
rust
null
null
null
null
update
null
null
null
null
null
null
null
pub fn process_payment_attempt( state: &SessionState, payment_attempt: types::DummyConnectorPaymentAttempt, ) -> types::DummyConnectorResult<Self> { let redirect_url = format!( "{}/dummy-connector/authorize/{}", state.base_url, payment_attempt.attempt_id ); ...
crates/router/src/routes/dummy_connector/utils.rs
router
function_signature
101
rust
null
null
null
null
process_payment_attempt
null
null
null
null
null
null
null
impl api::Payment for Payu {}
crates/hyperswitch_connectors/src/connectors/payu.rs
hyperswitch_connectors
impl_block
8
rust
null
Payu
api::Payment for
impl api::Payment for for Payu
null
null
null
null
null
null
null
null
pub struct MerchantConnectorAccountNew { pub merchant_id: Option<id_type::MerchantId>, pub connector_type: Option<storage_enums::ConnectorType>, pub connector_name: Option<String>, pub connector_account_details: Option<Encryption>, pub test_mode: Option<bool>, pub disabled: Option<bool>, pub...
crates/diesel_models/src/merchant_connector_account.rs
diesel_models
struct_definition
351
rust
MerchantConnectorAccountNew
null
null
null
null
null
null
null
null
null
null
null
pub fn get_sdk_event_dimensions() -> Vec<NameDescription> { SdkEventDimensions::iter().map(Into::into).collect() }
crates/analytics/src/utils.rs
analytics
function_signature
31
rust
null
null
null
null
get_sdk_event_dimensions
null
null
null
null
null
null
null
pub trait CheckingContext { type Value: ValueNode; fn from_node_values<L>(vals: impl IntoIterator<Item = L>) -> Self where L: Into<Self::Value>; fn check_presence(&self, value: &NodeValue<Self::Value>, strength: Strength) -> bool; fn get_values_by_key( &self, expected: &<S...
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
trait_definition
100
rust
null
null
CheckingContext
null
null
null
null
null
null
null
null
null
pub struct CustomerAcceptance { #[serde(rename = "type")] pub acceptance_type: Option<AcceptanceType>, pub accepted_at: Option<PrimitiveDateTime>, pub online: Option<OnlineMandate>, }
crates/router/src/compatibility/stripe/payment_intents/types.rs
router
struct_definition
47
rust
CustomerAcceptance
null
null
null
null
null
null
null
null
null
null
null
/// Get external authentication request poll id pub fn get_external_authentication_request_poll_id(&self) -> String { format!("external_authentication_{}", self.get_string_repr()) }
crates/common_utils/src/id_type/authentication.rs
common_utils
function_signature
37
rust
null
null
null
null
get_external_authentication_request_poll_id
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.WalletAdditionalDataForCard { "type": "object", "required": [ "last4", "card_network" ], "properties": { "last4": { "type": "string", "description": "Last 4 digits of the card number" }, "card_network": { "type": "string", "descr...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
135
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "WalletAdditionalDataForCard" ]
null
null
null
null
pub fn get_webhook_response( body: &[u8], ) -> CustomResult<GetnetWebhookNotificationResponse, errors::ConnectorError> { let body_bytes = bytes::Bytes::copy_from_slice(body); let parsed_param: GetnetWebhookNotificationResponse = parse_url_encoded_to_struct(body_bytes) .change_context(err...
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
function_signature
89
rust
null
null
null
null
get_webhook_response
null
null
null
null
null
null
null
pub struct NetworkTokenExpiry { pub token_exp_month: Option<Secret<String>>, pub token_exp_year: Option<Secret<String>>, }
crates/router/src/core/payments.rs
router
struct_definition
30
rust
NetworkTokenExpiry
null
null
null
null
null
null
null
null
null
null
null
impl GetPaymentMethodDetails for DummyConnectorPaymentMethodType { fn get_name(&self) -> &'static str { match self { Self::Card => "3D Secure", Self::Upi(upi_type) => upi_type.get_name(), Self::Wallet(wallet) => wallet.get_name(), Self::PayLater(pay_later) => ...
crates/router/src/routes/dummy_connector/types.rs
router
impl_block
181
rust
null
DummyConnectorPaymentMethodType
GetPaymentMethodDetails for
impl GetPaymentMethodDetails for for DummyConnectorPaymentMethodType
null
null
null
null
null
null
null
null
pub struct NomupayPaymentRequest { pub source_id: Secret<String>, pub destination_id: Secret<String>, pub payment_reference: String, pub amount: FloatMajorUnit, pub currency_code: Currency, pub purpose: String, pub description: Option<String>, pub internal_memo: Option<String>, }
crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs
hyperswitch_connectors
struct_definition
69
rust
NomupayPaymentRequest
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> { generics::generic_find_one::<<Self as HasTable>::Table, _,...
crates/diesel_models/src/query/payment_attempt.rs
diesel_models
function_signature
141
rust
null
null
null
null
find_by_payment_id_merchant_id_attempt_id
null
null
null
null
null
null
null
File: crates/analytics/src/auth_events/metrics/authentication_count.rs use std::collections::HashSet; use api_models::analytics::{ auth_events::{AuthEventDimensions, AuthEventFilters, AuthEventMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use error_stack::Resu...
crates/analytics/src/auth_events/metrics/authentication_count.rs
analytics
full_file
1,021
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ProxyClient { proxy_config: Proxy, client: reqwest::Client, request_id: Option<String>, }
crates/router/src/services/api/client.rs
router
struct_definition
27
rust
ProxyClient
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Powertranz {}
crates/hyperswitch_connectors/src/connectors/powertranz.rs
hyperswitch_connectors
impl_block
12
rust
null
Powertranz
api::MandateSetup for
impl api::MandateSetup for for Powertranz
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/payload/requests.rs Public structs: 7 use common_utils::types::StringMajorUnit; use masking::Secret; use serde::{Deserialize, Serialize}; use crate::connectors::payload::responses; #[derive(Debug, Serialize, PartialEq)] #[serde(untagged)] pub enum PayloadPaymentsRe...
crates/hyperswitch_connectors/src/connectors/payload/requests.rs
hyperswitch_connectors
full_file
839
null
null
null
null
null
null
null
null
null
null
null
null
null
/// This is the url to which the customer will be redirected to, to complete the redirection flow pub fn create_start_redirection_url( &self, base_url: &str, publishable_key: String, ) -> CustomResult<url::Url, errors::api_error_response::ApiErrorResponse> { let start_redirection...
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
function_signature
166
rust
null
null
null
null
create_start_redirection_url
null
null
null
null
null
null
null
pub struct MultipleCaptureRequestData { pub capture_sequence: i16, pub capture_reference: String, }
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
24
rust
MultipleCaptureRequestData
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/domain/types.rs use ::payment_methods::state as pm_state; use common_utils::types::keymanager::KeyManagerState; pub use hyperswitch_domain_models::type_encryption::{ crypto_operation, AsyncLift, CryptoOperation, Lift, OptionalEncryptableJsonType, }; use crate::routes::app; impl From...
crates/router/src/types/domain/types.rs
router
full_file
311
null
null
null
null
null
null
null
null
null
null
null
null
null
- Mandates for alternate payment methods via Stripe ([#1041](https://github.com/juspay/hyperswitch/pull/1041)) ([`64721b8`](https://github.com/juspay/hyperswitch/commit/64721b80ae0d276820404ff1208af91303cf1473)) - **errors:** Add reverse errorswitch trait for foreign errors ([#909](https://github.com/juspay/hyperswit...
CHANGELOG.md#chunk62
null
doc_chunk
8,168
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PayoutRecipient for Wise {}
crates/hyperswitch_connectors/src/connectors/wise.rs
hyperswitch_connectors
impl_block
9
rust
null
Wise
api::PayoutRecipient for
impl api::PayoutRecipient for for Wise
null
null
null
null
null
null
null
null
pub struct PayboxPSyncRequest { #[serde(rename = "DATEQ")] pub date: String, #[serde(rename = "TYPE")] pub transaction_type: String, #[serde(rename = "NUMQUESTION")] pub paybox_request_number: String, #[serde(rename = "VERSION")] pub version: String, #[serde(rename = "SITE")] ...
crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs
hyperswitch_connectors
struct_definition
156
rust
PayboxPSyncRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct DisputeResponse { /// The identifier for dispute pub dispute_id: String, /// The identifier for payment_intent #[schema(value_type = String)] pub payment_id: common_utils::id_type::PaymentId, /// The identifier for payment_attempt pub attempt_id: String, /// The dispute amount...
crates/api_models/src/disputes.rs
api_models
struct_definition
470
rust
DisputeResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AcceptedCountries { "oneOf": [ { "type": "object", "required": [ "type", "list" ], "properties": { "type": { "type": "string", "enum": [ "enable_only" ] }, "list": { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
299
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AcceptedCountries" ]
null
null
null
null
File: crates/hyperswitch_domain_models/src/tokenization.rs Public functions: 1 Public structs: 3 use common_enums; use common_utils::{ self, date_time, errors::{CustomResult, ValidationError}, types::keymanager, }; use masking::Secret; use serde::{Deserialize, Serialize}; use time::PrimitiveDateTime; #[...
crates/hyperswitch_domain_models/src/tokenization.rs
hyperswitch_domain_models
full_file
947
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn totp_verify( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<user_api::VerifyTotpRequest>, ) -> HttpResponse { let flow = Flow::TotpVerify; Box::pin(api::server_wrap( flow, state.clone(), &req, json_payload.into_inner(), |sta...
crates/router/src/routes/user.rs
router
function_signature
135
rust
null
null
null
null
totp_verify
null
null
null
null
null
null
null
impl api::PaymentVoid for Taxjar {}
crates/hyperswitch_connectors/src/connectors/taxjar.rs
hyperswitch_connectors
impl_block
9
rust
null
Taxjar
api::PaymentVoid for
impl api::PaymentVoid for for Taxjar
null
null
null
null
null
null
null
null
pub struct ProphetpayCompleteAuthResponse { pub success: bool, pub response_text: String, #[serde(rename = "transactionID")] pub transaction_id: String, pub response_code: String, }
crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs
hyperswitch_connectors
struct_definition
45
rust
ProphetpayCompleteAuthResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/test_utils/tests/connectors/paypal_ui.rs use serial_test::serial; use thirtyfour::{prelude::*, WebDriver}; use crate::{selenium::*, tester}; struct PaypalSeleniumTest; impl SeleniumTest for PaypalSeleniumTest { fn get_connector_name(&self) -> String { "paypal".to_string() } } async fn ...
crates/test_utils/tests/connectors/paypal_ui.rs
test_utils
full_file
858
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct NovalnetSyncTransaction { tid: String, }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
NovalnetSyncTransaction
null
null
null
null
null
null
null
null
null
null
null
pub struct SurchargeMetadata { surcharge_results: HashMap<SurchargeKey, SurchargeDetails>, pub payment_attempt_id: String, }
crates/router/src/core/payments/types.rs
router
struct_definition
30
rust
SurchargeMetadata
null
null
null
null
null
null
null
null
null
null
null
pub struct Order { order_id: String, amount: StringMinorUnit, currency: Currency, description: Option<String>, customer_info: CustomerInfo, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
Order
null
null
null
null
null
null
null
null
null
null
null
impl common_utils::events::ApiEventMetric for ProfileAcquirerUpdate {}
crates/api_models/src/profile_acquirer.rs
api_models
impl_block
15
rust
null
ProfileAcquirerUpdate
common_utils::events::ApiEventMetric for
impl common_utils::events::ApiEventMetric for for ProfileAcquirerUpdate
null
null
null
null
null
null
null
null
impl ApiEventMetric for AuthenticationSyncResponse { fn get_api_event_type(&self) -> Option<ApiEventsType> { Some(ApiEventsType::Authentication { authentication_id: self.authentication_id.clone(), }) } }
crates/api_models/src/authentication.rs
api_models
impl_block
48
rust
null
AuthenticationSyncResponse
ApiEventMetric for
impl ApiEventMetric for for AuthenticationSyncResponse
null
null
null
null
null
null
null
null
pub fn get_optional_customer_id( &self, ) -> CustomResult<Option<id_type::CustomerId>, common_utils::errors::ValidationError> { self.customer_id .as_ref() .map(|customer_id| id_type::CustomerId::try_from(customer_id.clone())) .transpose() }
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
function_signature
65
rust
null
null
null
null
get_optional_customer_id
null
null
null
null
null
null
null
pub(crate) fn get_webhook_object_from_body( body: &[u8], ) -> CustomResult<BluecodeSyncResponse, common_utils::errors::ParsingError> { let webhook: BluecodeSyncResponse = body.parse_struct("BluecodeIncomingWebhook")?; Ok(webhook) }
crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rs
hyperswitch_connectors
function_signature
63
rust
null
null
null
null
get_webhook_object_from_body
null
null
null
null
null
null
null
File: crates/router/src/core/currency.rs Public functions: 3 use analytics::errors::AnalyticsError; use common_utils::errors::CustomResult; use currency_conversion::types::ExchangeRates; use error_stack::ResultExt; use router_env::logger; use crate::{ consts::DEFAULT_ANALYTICS_FOREX_RETRY_ATTEMPTS, core::err...
crates/router/src/core/currency.rs
router
full_file
716
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/services/connector_integration_interface.rs pub use hyperswitch_interfaces::{ authentication::ExternalAuthenticationPayload, connector_integration_interface::*, connector_integration_v2::ConnectorIntegrationV2, webhooks::IncomingWebhookFlowError, };
crates/router/src/services/connector_integration_interface.rs
router
full_file
51
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.BusinessGenericLinkConfig { "allOf": [ { "$ref": "#/components/schemas/GenericLinkUiConfig" }, { "type": "object", "required": [ "allowed_domains" ], "properties": { "domain_name": { "type": "string", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
169
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "BusinessGenericLinkConfig" ]
null
null
null
null
pub struct VoltPaymentsResponse { checkout_url: String, id: String, }
crates/hyperswitch_connectors/src/connectors/volt/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
VoltPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn unlink_routing_config_under_profile( state: SessionState, merchant_context: domain::MerchantContext, profile_id: common_utils::id_type::ProfileId, transaction_type: &enums::TransactionType, ) -> RouterResponse<routing_types::RoutingDictionaryRecord> { metrics::ROUTING_UNLINK_CONFIG.add(...
crates/router/src/core/routing.rs
router
function_signature
422
rust
null
null
null
null
unlink_routing_config_under_profile
null
null
null
null
null
null
null
impl api::PaymentCapture for Bambora {}
crates/hyperswitch_connectors/src/connectors/bambora.rs
hyperswitch_connectors
impl_block
10
rust
null
Bambora
api::PaymentCapture for
impl api::PaymentCapture for for Bambora
null
null
null
null
null
null
null
null
pub struct RefundResponse { pub transaction_id: String, pub original_transaction_id: String, pub action: String, pub authorization_amount: Option<FloatMajorUnit>, pub authorization_code: String, pub response: ResponseStatus, }
crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
hyperswitch_connectors
struct_definition
52
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
impl Multitenancy { pub fn get_tenants(&self) -> &HashMap<id_type::TenantId, Tenant> { &self.tenants.0 } pub fn get_tenant_ids(&self) -> Vec<id_type::TenantId> { self.tenants .0 .values() .map(|tenant| tenant.tenant_id.clone()) .collect() }...
crates/drainer/src/settings.rs
drainer
impl_block
130
rust
null
Multitenancy
null
impl Multitenancy
null
null
null
null
null
null
null
null
pub fn new( currency: Option<Currency>, status: Option<AttemptStatus>, connector: Option<String>, auth_type: Option<AuthenticationType>, payment_method: Option<String>, payment_method_type: Option<String>, client_source: Option<String>, client_version: Opt...
crates/api_models/src/analytics/payments.rs
api_models
function_signature
264
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct WellsfargoErrorInformationResponse { id: String, error_information: WellsfargoErrorInformation, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
WellsfargoErrorInformationResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_default_routing_config_for_profiles( state: SessionState, merchant_context: domain::MerchantContext, transaction_type: &enums::TransactionType, ) -> RouterResponse<Vec<routing_types::ProfileDefaultRoutingConfig>> { metrics::ROUTING_RETRIEVE_CONFIG_FOR_PROFILE.add(1, &[]); let d...
crates/router/src/core/routing.rs
router
function_signature
361
rust
null
null
null
null
retrieve_default_routing_config_for_profiles
null
null
null
null
null
null
null
pub async fn payments_list_attempts_using_payment_intent_id<F, Res, Req, Op, D>( state: SessionState, req_state: ReqState, merchant_context: domain::MerchantContext, profile: domain::Profile, operation: Op, req: Req, payment_id: id_type::GlobalPaymentId, header_payload: HeaderPayload, ) ...
crates/router/src/core/payments.rs
router
function_signature
264
rust
null
null
null
null
payments_list_attempts_using_payment_intent_id
null
null
null
null
null
null
null
pub fn get_output(&self) -> &O { &self.connector_selection }
crates/euclid/src/backend.rs
euclid
function_signature
19
rust
null
null
null
null
get_output
null
null
null
null
null
null
null
pub async fn find_by_merchant_id_subscription_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, subscription_id: String, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::merchant_id ...
crates/diesel_models/src/query/subscription.rs
diesel_models
function_signature
108
rust
null
null
null
null
find_by_merchant_id_subscription_id
null
null
null
null
null
null
null
impl StripebillingWebhookBody { pub fn get_webhook_object_from_body(body: &[u8]) -> CustomResult<Self, errors::ConnectorError> { let webhook_body: Self = body .parse_struct::<Self>("StripebillingWebhookBody") .change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?; ...
crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
hyperswitch_connectors
impl_block
80
rust
null
StripebillingWebhookBody
null
impl StripebillingWebhookBody
null
null
null
null
null
null
null
null
pub fn get_merchant_reference_id(&self) -> Option<id_type::CustomerId> { Some( self.customer_id .to_owned() .unwrap_or_else(common_utils::generate_customer_id_of_default_length), ) }
crates/api_models/src/customers.rs
api_models
function_signature
51
rust
null
null
null
null
get_merchant_reference_id
null
null
null
null
null
null
null
pub fn get_card_detail( _pm: &domain::PaymentMethod, response: Card, ) -> CustomResult<api::CardDetailFromLocker, errors::VaultError> { let card_number = response.card_number; let last4_digits = card_number.clone().get_last4(); //fetch form card bin let card_detail = api::CardDetailFromLocker {...
crates/router/src/core/payment_methods/transformers.rs
router
function_signature
197
rust
null
null
null
null
get_card_detail
null
null
null
null
null
null
null
impl api::PaymentUpdateMetadata for Stripe {}
crates/hyperswitch_connectors/src/connectors/stripe.rs
hyperswitch_connectors
impl_block
9
rust
null
Stripe
api::PaymentUpdateMetadata for
impl api::PaymentUpdateMetadata for for Stripe
null
null
null
null
null
null
null
null
/// establish connection with the server pub fn get_dynamic_routing_connection( self, client: Client, ) -> Result<Option<RoutingStrategy>, Box<dyn std::error::Error>> { match self { Self::Enabled { host, port, .. } => { let uri = format!("http://{host}:{port}"...
crates/external_services/src/grpc_client/dynamic_routing.rs
external_services
function_signature
193
rust
null
null
null
null
get_dynamic_routing_connection
null
null
null
null
null
null
null
impl RedisSettings { /// Validates the Redis configuration provided. pub fn validate(&self) -> CustomResult<(), errors::RedisError> { use common_utils::{ext_traits::ConfigExt, fp_utils::when}; when(self.host.is_default_or_empty(), || { Err(errors::RedisError::InvalidConfiguration( ...
crates/redis_interface/src/types.rs
redis_interface
impl_block
189
rust
null
RedisSettings
null
impl RedisSettings
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Authipay {}
crates/hyperswitch_connectors/src/connectors/authipay.rs
hyperswitch_connectors
impl_block
9
rust
null
Authipay
api::PaymentCapture for
impl api::PaymentCapture for for Authipay
null
null
null
null
null
null
null
null
impl std::fmt::Debug for RedisStore { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.debug_struct("CacheStore") .field("redis_conn", &"Redis conn doesn't implement debug") .finish() } }
crates/storage_impl/src/redis.rs
storage_impl
impl_block
66
rust
null
RedisStore
std::fmt::Debug for
impl std::fmt::Debug for for RedisStore
null
null
null
null
null
null
null
null
pub struct HeaderPayload { pub payment_confirm_source: Option<common_enums::PaymentSource>, pub client_source: Option<String>, pub client_version: Option<String>, pub x_hs_latency: Option<bool>, pub browser_name: Option<common_enums::BrowserName>, pub x_client_platform: Option<common_enums::Clie...
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
struct_definition
110
rust
HeaderPayload
null
null
null
null
null
null
null
null
null
null
null
} #[derive(Debug, Serialize, Default)] #[serde(rename_all = "camelCase")] pub struct NuveiVoidRequest { pub merchant_id: Secret<String>, pub merchant_site_id: Secret<String>, pub client_unique_id: String, pub related_transaction_id: String, pub time_stamp: String, pub checksum: Secret<String>, ...
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs#chunk2
hyperswitch_connectors
chunk
8,184
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_merchant_account( state: web::Data<AppState>, req: HttpRequest, mid: web::Path<common_utils::id_type::MerchantId>, json_payload: web::Json<admin::MerchantAccountUpdate>, ) -> HttpResponse { let flow = Flow::MerchantsAccountUpdate; let merchant_id = mid.into_inner(); Box::...
crates/router/src/routes/admin.rs
router
function_signature
217
rust
null
null
null
null
update_merchant_account
null
null
null
null
null
null
null
impl api::PaymentVoid for Worldpayxml {}
crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
hyperswitch_connectors
impl_block
10
rust
null
Worldpayxml
api::PaymentVoid for
impl api::PaymentVoid for for Worldpayxml
null
null
null
null
null
null
null
null
pub struct PriorityLogicData { pub name: Option<String>, pub status: Option<String>, pub failure_reason: Option<String>, }
crates/api_models/src/open_router.rs
api_models
struct_definition
29
rust
PriorityLogicData
null
null
null
null
null
null
null
null
null
null
null
pub fn requires_defend_dispute(self) -> bool { matches!(self, Self::Checkout) }
crates/common_enums/src/connector_enums.rs
common_enums
function_signature
23
rust
null
null
null
null
requires_defend_dispute
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Flexiti { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented)...
crates/hyperswitch_connectors/src/connectors/flexiti.rs
hyperswitch_connectors
impl_block
210
rust
null
Flexiti
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Flexiti
null
null
null
null
null
null
null
null
pub struct PaymentValue { pub amount: i64, pub currency: api_models::enums::Currency, }
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
hyperswitch_connectors
struct_definition
25
rust
PaymentValue
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Stripebilling {}
crates/hyperswitch_connectors/src/connectors/stripebilling.rs
hyperswitch_connectors
impl_block
8
rust
null
Stripebilling
api::Payment for
impl api::Payment for for Stripebilling
null
null
null
null
null
null
null
null
pub async fn fetch_payout_method_data( state: &SessionState, payout_data: &mut PayoutData, connector_data: &api::ConnectorData, merchant_context: &domain::MerchantContext, ) -> RouterResult<()> { let connector_transfer_method_id = should_create_connector_transfer_method(payout_data, connecto...
crates/router/src/core/payouts/helpers.rs
router
function_signature
303
rust
null
null
null
null
fetch_payout_method_data
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/opayo/transformers.rs Public structs: 8 use common_enums::enums; use common_utils::types::MinorUnit; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router_flow_types::{Execute, RSync}...
crates/hyperswitch_connectors/src/connectors/opayo/transformers.rs
hyperswitch_connectors
full_file
1,815
null
null
null
null
null
null
null
null
null
null
null
null
null
impl DieselEnumMeta { pub fn get_storage_type(&self) -> &StorageType { match self { Self::StorageTypeEnum { value, .. } => value, } } }
crates/router_derive/src/macros/diesel.rs
router_derive
impl_block
41
rust
null
DieselEnumMeta
null
impl DieselEnumMeta
null
null
null
null
null
null
null
null
impl api::PaymentSession for Juspaythreedsserver {}
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
hyperswitch_connectors
impl_block
14
rust
null
Juspaythreedsserver
api::PaymentSession for
impl api::PaymentSession for for Juspaythreedsserver
null
null
null
null
null
null
null
null
pub struct AnalyticsRequest { pub payment_intent: Option<GetPaymentIntentMetricRequest>, pub payment_attempt: Option<GetPaymentMetricRequest>, pub refund: Option<GetRefundMetricRequest>, pub dispute: Option<GetDisputeMetricRequest>, }
crates/api_models/src/analytics.rs
api_models
struct_definition
55
rust
AnalyticsRequest
null
null
null
null
null
null
null
null
null
null
null
impl Payment for Payone {}
crates/hyperswitch_connectors/src/connectors/payone.rs
hyperswitch_connectors
impl_block
6
rust
null
Payone
Payment for
impl Payment for for Payone
null
null
null
null
null
null
null
null
impl SecretState for RawSecret {}
crates/hyperswitch_interfaces/src/secrets_interface/secret_state.rs
hyperswitch_interfaces
impl_block
7
rust
null
RawSecret
SecretState for
impl SecretState for for RawSecret
null
null
null
null
null
null
null
null
pub fn is_pre_network_tokenization_enabled( state: &SessionState, business_profile: &domain::Profile, customer_acceptance: Option<Secret<serde_json::Value>>, connector_name: enums::Connector, ) -> bool { let ntid_supported_connectors = &state .conf .network_transaction_id_supported_c...
crates/router/src/core/payments.rs
router
function_signature
133
rust
null
null
null
null
is_pre_network_tokenization_enabled
null
null
null
null
null
null
null
pub fn add_top_n_clause( &mut self, columns: &[impl ToSql<T>], count: u64, order_column: impl ToSql<T>, order: Order, ) -> QueryResult<()> where Window<&'static str>: ToSql<T>, { let partition_by_columns = self.transform_to_sql_values(columns)?; ...
crates/analytics/src/query.rs
analytics
function_signature
210
rust
null
null
null
null
add_top_n_clause
null
null
null
null
null
null
null
pub async fn get_vault_operation_for_pre_network_tokenization( state: &SessionState, customer_id: id_type::CustomerId, card_data: &hyperswitch_domain_models::payment_method_data::Card, ) -> payments::VaultOperation { let pre_tokenization_response = tokenization::pre_payment_tokenization(state, c...
crates/router/src/core/payments.rs
router
function_signature
304
rust
null
null
null
null
get_vault_operation_for_pre_network_tokenization
null
null
null
null
null
null
null
pub struct CardVerification { result_code: Option<String>, result_code_raw: Option<String>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
CardVerification
null
null
null
null
null
null
null
null
null
null
null
impl RequiredField { fn to_tuple(&self) -> (String, RequiredFieldInfo) { match self { Self::CardNumber => ( "payment_method_data.card.card_number".to_string(), RequiredFieldInfo { required_field: "payment_method_data.card.card_number".to_string...
crates/payment_methods/src/configs/payment_connector_required_fields.rs
payment_methods
impl_block
5,597
rust
null
RequiredField
null
impl RequiredField
null
null
null
null
null
null
null
null
impl api::MandateSetup for Stax {}
crates/hyperswitch_connectors/src/connectors/stax.rs
hyperswitch_connectors
impl_block
11
rust
null
Stax
api::MandateSetup for
impl api::MandateSetup for for Stax
null
null
null
null
null
null
null
null
pub struct ProphetpayRefundSyncRequest { transaction_id: String, inquiry_reference: String, ref_info: String, profile: Secret<String>, action_type: i8, }
crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
ProphetpayRefundSyncRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct SendVerifyEmailRequest { pub email: pii::Email, }
crates/api_models/src/user.rs
api_models
struct_definition
16
rust
SendVerifyEmailRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct ApplePayThirdPartySdkData {}
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
9
rust
ApplePayThirdPartySdkData
null
null
null
null
null
null
null
null
null
null
null
impl<V: ValueNode> GraphError<V> { pub fn get_analysis_trace(self) -> Result<Weak<AnalysisTrace<V>>, Self> { match self { Self::AnalysisError(trace) => Ok(trace), _ => Err(self), } } }
crates/hyperswitch_constraint_graph/src/error.rs
hyperswitch_constraint_graph
impl_block
57
rust
null
GraphError
null
impl GraphError
null
null
null
null
null
null
null
null
pub trait DatabaseStore: Clone + Send + Sync { type Config: Send; async fn new( config: Self::Config, tenant_config: &dyn TenantConfig, test_transaction: bool, ) -> StorageResult<Self>; fn get_master_pool(&self) -> &PgPool; fn get_replica_pool(&self) -> &PgPool; fn get_ac...
crates/storage_impl/src/database/store.rs
storage_impl
trait_definition
108
rust
null
null
DatabaseStore
null
null
null
null
null
null
null
null
null
pub(crate) async fn retry_webhook_delivery_task( db: &dyn StorageInterface, merchant_id: &id_type::MerchantId, process: storage::ProcessTracker, ) -> errors::CustomResult<(), errors::StorageError> { let schedule_time = get_webhook_delivery_retry_schedule_time(db, merchant_id, process.retry_count...
crates/router/src/workflows/outgoing_webhook_retry.rs
router
function_signature
145
rust
null
null
null
null
retry_webhook_delivery_task
null
null
null
null
null
null
null
File: crates/storage_impl/src/errors.rs Public functions: 2 pub use common_enums::{ApiClientError, ApplicationError, ApplicationResult}; pub use redis_interface::errors::RedisError; use crate::store::errors::DatabaseError; pub type StorageResult<T> = error_stack::Result<T, StorageError>; #[derive(Debug, thiserror::...
crates/storage_impl/src/errors.rs
storage_impl
full_file
2,435
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TokenizedWalletSensitiveValues { pub email: Option<Email>, pub telephone_number: Option<masking::Secret<String>>, pub wallet_id: Option<masking::Secret<String>>, pub wallet_type: PaymentMethodType, }
crates/router/src/core/payment_methods/vault.rs
router
struct_definition
52
rust
TokenizedWalletSensitiveValues
null
null
null
null
null
null
null
null
null
null
null
pub struct VantivSyncErrorResponse { pub error_messages: Vec<String>, }
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
VantivSyncErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct UserKeyStore { pub user_id: String, pub key: Encryption, pub created_at: PrimitiveDateTime, }
crates/diesel_models/src/user_key_store.rs
diesel_models
struct_definition
28
rust
UserKeyStore
null
null
null
null
null
null
null
null
null
null
null
/// A string uniquely identifying the application build. /// /// Consists of a combination of: /// - Version defined in the crate file /// - Timestamp of commit /// - Hash of the commit /// - Version of rust compiler /// - Target triple /// /// Example: `0.1.0-f5f383e-2022-09-04T11:39:37Z-1.63.0-x86_64-unknown-linux-gn...
crates/router_env/src/env.rs
router_env
macro
211
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
pub async fn get_customer_mandates( state: SessionState, merchant_context: domain::MerchantContext, customer_id: id_type::CustomerId, ) -> RouterResponse<Vec<mandates::MandateResponse>> { let mandates = state .store .find_mandate_by_merchant_id_customer_id( merchant_context.g...
crates/router/src/core/mandate.rs
router
function_signature
279
rust
null
null
null
null
get_customer_mandates
null
null
null
null
null
null
null
pub struct RapydWallet { #[serde(rename = "type")] payment_type: String, #[serde(rename = "details")] token: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
RapydWallet
null
null
null
null
null
null
null
null
null
null
null
pub struct Database { pub username: String, pub password: Secret<String>, pub host: String, pub port: u16, pub dbname: String, pub pool_size: u32, pub connection_timeout: u64, pub queue_strategy: QueueStrategy, pub min_idle: Option<u32>, pub max_lifetime: Option<u64>, }
crates/storage_impl/src/config.rs
storage_impl
struct_definition
84
rust
Database
null
null
null
null
null
null
null
null
null
null
null