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 MerchantIdentification { pub project_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
MerchantIdentification
null
null
null
null
null
null
null
null
null
null
null
pub struct ProfileSetter { pub profile_id: common_utils::id_type::ProfileId, 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<String>, pub enable_payment_res...
crates/hyperswitch_domain_models/src/business_profile.rs
hyperswitch_domain_models
struct_definition
641
rust
ProfileSetter
null
null
null
null
null
null
null
null
null
null
null
pub struct StripeSplitRefund { pub charge_id: String, pub transfer_account_id: String, pub charge_type: api_models::enums::PaymentChargeType, pub options: ChargeRefundsOptions, }
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
46
rust
StripeSplitRefund
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Mollie {}
crates/hyperswitch_connectors/src/connectors/mollie.rs
hyperswitch_connectors
impl_block
10
rust
null
Mollie
api::PaymentSession for
impl api::PaymentSession for for Mollie
null
null
null
null
null
null
null
null
pub fn is_external_vault_enabled(&self) -> bool { self.is_external_vault_enabled.unwrap_or(false) }
crates/hyperswitch_domain_models/src/business_profile.rs
hyperswitch_domain_models
function_signature
26
rust
null
null
null
null
is_external_vault_enabled
null
null
null
null
null
null
null
impl UnifiedAuthenticationService { pub fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs
hyperswitch_connectors
impl_block
35
rust
null
UnifiedAuthenticationService
null
impl UnifiedAuthenticationService
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Flexiti {}
crates/hyperswitch_connectors/src/connectors/flexiti.rs
hyperswitch_connectors
impl_block
9
rust
null
Flexiti
api::PaymentVoid for
impl api::PaymentVoid for for Flexiti
null
null
null
null
null
null
null
null
/// Get a merchant id with a value of `irrelevant_merchant_id` pub fn get_irrelevant_merchant_id() -> Self { let alphanumeric_id = AlphaNumericId::new_unchecked("irrelevant_merchant_id".to_string()); let length_id = LengthId::new_unchecked(alphanumeric_id); Self(length_id) }
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
73
rust
null
null
null
null
get_irrelevant_merchant_id
null
null
null
null
null
null
null
pub struct MerchantInitiatedTransactionResponse { agreement_id: Option<String>, previous_transaction_id: Option<String>, original_authorized_amount: Option<StringMajorUnit>, reason: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
MerchantInitiatedTransactionResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Adyen {}
crates/hyperswitch_connectors/src/connectors/adyen.rs
hyperswitch_connectors
impl_block
9
rust
null
Adyen
api::PaymentSession for
impl api::PaymentSession for for Adyen
null
null
null
null
null
null
null
null
impl api::RefundExecute for Noon {}
crates/hyperswitch_connectors/src/connectors/noon.rs
hyperswitch_connectors
impl_block
9
rust
null
Noon
api::RefundExecute for
impl api::RefundExecute for for Noon
null
null
null
null
null
null
null
null
pub async fn list_by_merchant_id_initial_attempt_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, initial_attempt_id: &str, ) -> StorageResult<Vec<Self>> { generics::generic_filter::<<Self as HasTable>::Table, _, _, _>( conn, dsl::merc...
crates/diesel_models/src/query/events.rs
diesel_models
function_signature
128
rust
null
null
null
null
list_by_merchant_id_initial_attempt_id
null
null
null
null
null
null
null
Documentation: api-reference/v2/payment-methods/payment-method--update.mdx # Type: Doc File --- openapi: patch /v2/payment-methods/{id}/update-saved-payment-method ---
api-reference/v2/payment-methods/payment-method--update.mdx
null
doc_file
43
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_default_fallback_algorithm_for_profile( state: SessionState, merchant_context: domain::MerchantContext, profile_id: common_utils::id_type::ProfileId, ) -> RouterResponse<Vec<routing_types::RoutableConnectorChoice>> { metrics::ROUTING_RETRIEVE_DEFAULT_CONFIG.add(1, &[]); let db ...
crates/router/src/core/routing.rs
router
function_signature
214
rust
null
null
null
null
retrieve_default_fallback_algorithm_for_profile
null
null
null
null
null
null
null
pub struct GetPaymentIntentMetricRequest { pub time_series: Option<TimeSeries>, pub time_range: TimeRange, #[serde(default)] pub group_by_names: Vec<PaymentIntentDimensions>, #[serde(default)] pub filters: payment_intents::PaymentIntentFilters, pub metrics: HashSet<PaymentIntentMetrics>, ...
crates/api_models/src/analytics.rs
api_models
struct_definition
82
rust
GetPaymentIntentMetricRequest
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CardSpecificFeatures { "type": "object", "required": [ "three_ds", "no_three_ds", "supported_card_networks" ], "properties": { "three_ds": { "$ref": "#/components/schemas/FeatureStatus" }, "no_three_ds": { "$ref": "#/components/schemas/F...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
143
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CardSpecificFeatures" ]
null
null
null
null
OpenAPI Block Path: components.schemas.RelayResponse { "type": "object", "required": [ "id", "status", "connector_resource_id", "connector_id", "profile_id", "type" ], "properties": { "id": { "type": "string", "description": "The unique identifier for the Relay", "e...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
479
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RelayResponse" ]
null
null
null
null
pub struct NuveiPaymentSyncRequest { pub session_token: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
NuveiPaymentSyncRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Paystack {}
crates/hyperswitch_connectors/src/connectors/paystack.rs
hyperswitch_connectors
impl_block
8
rust
null
Paystack
api::Payment for
impl api::Payment for for Paystack
null
null
null
null
null
null
null
null
impl TryFrom<BluesnapWebhookObjectResource> for Value { type Error = error_stack::Report<errors::ConnectorError>; fn try_from(details: BluesnapWebhookObjectResource) -> Result<Self, Self::Error> { let (card_transaction_type, processing_status, transaction_id) = match details .transaction_ty...
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs#chunk1
hyperswitch_connectors
chunk
831
null
null
null
null
null
null
null
null
null
null
null
null
null
impl FraudCheckFulfillment for Riskified {}
crates/hyperswitch_connectors/src/connectors/riskified.rs
hyperswitch_connectors
impl_block
10
rust
null
Riskified
FraudCheckFulfillment for
impl FraudCheckFulfillment for for Riskified
null
null
null
null
null
null
null
null
pub struct ChargebeeRefundRequest { pub amount: MinorUnit, }
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
ChargebeeRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct StripebillingPaymentsRequest { amount: StringMinorUnit, card: StripebillingCard, }
crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
StripebillingPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_forex_exchange_rates( state: SessionState, ) -> CustomResult<ExchangeRates, AnalyticsError> { let forex_api = state.conf.forex_api.get_inner(); let mut attempt = 1; logger::info!("Starting forex exchange rates fetch"); loop { logger::info!("Attempting to fetch forex rates -...
crates/router/src/core/currency.rs
router
function_signature
397
rust
null
null
null
null
get_forex_exchange_rates
null
null
null
null
null
null
null
impl PaymentRedirectFlow for PaymentRedirectSync { type PaymentFlowResponse = router_types::RedirectPaymentFlowResponse<PaymentStatusData<api::PSync>>; async fn call_payment_flow( &self, state: &SessionState, req_state: ReqState, merchant_context: domain::MerchantContext...
crates/router/src/core/payments.rs
router
impl_block
843
rust
null
PaymentRedirectSync
PaymentRedirectFlow for
impl PaymentRedirectFlow for for PaymentRedirectSync
null
null
null
null
null
null
null
null
pub fn get_net_amount(&self) -> MinorUnit { self.net_amount }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
19
rust
null
null
null
null
get_net_amount
null
null
null
null
null
null
null
pub struct PaymentMethodDetails { pub ignore_01_field: String, pub cvv2_printed_ind: String, pub last4: String, pub exp_date_printed_ind: String, pub payment_account_reference: String, pub exp_year: String, pub exp_month: String, pub verification_results: VerificationResults, pub ena...
crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
hyperswitch_connectors
struct_definition
83
rust
PaymentMethodDetails
null
null
null
null
null
null
null
null
null
null
null
pub fn validate(&self) -> Result<(), ApplicationError> { common_utils::fp_utils::when(self.wildcard_origin && !self.origins.is_empty(), || { Err(ApplicationError::InvalidConfigurationValueError( "Allowed Origins must be empty when wildcard origin is true".to_string(), )) ...
crates/router/src/configs/validations.rs
router
function_signature
128
rust
null
null
null
null
validate
null
null
null
null
null
null
null
pub struct WellsfargopayoutPaymentsRequest { amount: StringMinorUnit, card: WellsfargopayoutCard, }
crates/hyperswitch_connectors/src/connectors/wellsfargopayout/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
WellsfargopayoutPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn get_connector_by_name( _connectors: &Connectors, name: &str, connector_type: GetToken, connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>, ) -> CustomResult<Self, errors::ApiErrorResponse> { let connector = Self::convert_connector(name)?; l...
crates/router/src/types/api/connector_mapping.rs
router
function_signature
154
rust
null
null
null
null
get_connector_by_name
null
null
null
null
null
null
null
File: crates/common_utils/src/errors.rs Public structs: 1 //! Errors and error specific types for universal use use crate::types::MinorUnit; /// Custom Result /// A custom datatype that wraps the error variant <E> into a report, allowing /// error_stack::Report<E> specific extendability /// /// Effectively, equival...
crates/common_utils/src/errors.rs
common_utils
full_file
1,845
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Default for RedisSettings { fn default() -> Self { Self { host: "127.0.0.1".to_string(), port: 6379, cluster_enabled: false, cluster_urls: vec![], use_legacy_version: false, pool_size: 5, reconnect_max_attempts: 5, ...
crates/redis_interface/src/types.rs
redis_interface
impl_block
170
rust
null
RedisSettings
Default for
impl Default for for RedisSettings
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::WebhookEventInitialDeliveryAttemptList; let merchant_id = path.into_inner(); let constraints = json_payload.into_inner(); let request_internal = EventListRequestInternal { merchant_id: merchant_id.clone(), constraints, }; Box::pin(api::server_w...
crates/router/src/routes/webhook_events.rs
router
impl_block
187
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct TokenResponse { pub authentication_details: AuthenticationDetails, pub network: api_enums::CardNetwork, pub token_details: TokenDetails, pub eci: Option<String>, pub card_type: Option<String>, pub issuer: Option<String>, pub nickname: Option<Secret<String>>, }
crates/router/src/types/payment_methods.rs
router
struct_definition
65
rust
TokenResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Worldpay {}
crates/hyperswitch_connectors/src/connectors/worldpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Worldpay
api::PaymentToken for
impl api::PaymentToken for for Worldpay
null
null
null
null
null
null
null
null
pub struct Invoice { pub id: String, }
crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs
hyperswitch_connectors
struct_definition
11
rust
Invoice
null
null
null
null
null
null
null
null
null
null
null
pub async fn customers_list() {}
crates/openapi/src/routes/customers.rs
openapi
function_signature
7
rust
null
null
null
null
customers_list
null
null
null
null
null
null
null
pub struct PayloadCard { #[serde(rename = "payment_method[card][card_number]")] pub number: cards::CardNumber, #[serde(rename = "payment_method[card][expiry]")] pub expiry: Secret<String>, #[serde(rename = "payment_method[card][card_code]")] pub cvc: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/payload/requests.rs
hyperswitch_connectors
struct_definition
71
rust
PayloadCard
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Checkbook { fn get_webhook_object_reference_id( &self, request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { let details: checkbook::CheckbookPaymentsResponse = reques...
crates/hyperswitch_connectors/src/connectors/checkbook.rs
hyperswitch_connectors
impl_block
839
rust
null
Checkbook
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Checkbook
null
null
null
null
null
null
null
null
File: crates/analytics/src/refunds/metrics/refund_success_rate.rs use std::collections::HashSet; use api_models::analytics::{ refunds::{RefundDimensions, RefundFilters, RefundMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use error_stack::ResultExt; use time::P...
crates/analytics/src/refunds/metrics/refund_success_rate.rs
analytics
full_file
860
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Zen { fn get_default_header() -> (String, masking::Maskable<String>) { ("request-id".to_string(), Uuid::new_v4().to_string().into()) } }
crates/hyperswitch_connectors/src/connectors/zen.rs
hyperswitch_connectors
impl_block
43
rust
null
Zen
null
impl Zen
null
null
null
null
null
null
null
null
File: crates/api_models/src/gsm.rs Public structs: 6 use utoipa::ToSchema; use crate::enums as api_enums; #[derive(Debug, serde::Deserialize, serde::Serialize, ToSchema)] pub struct GsmCreateRequest { /// The connector through which payment has gone through #[schema(value_type = Connector)] pub connecto...
crates/api_models/src/gsm.rs
api_models
full_file
1,875
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_recipient( state: &SessionState, merchant_context: &domain::MerchantContext, connector_data: &api::ConnectorData, payout_data: &mut PayoutData, ) -> RouterResult<()> { todo!() }
crates/router/src/core/payouts.rs
router
function_signature
55
rust
null
null
null
null
create_recipient
null
null
null
null
null
null
null
pub struct ResponseMessage { code: String, pub text: String, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
ResponseMessage
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Tokenio { fn get_webhook_object_reference_id( &self, request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { let webhook_payload: tokenio::TokenioWebhookPayload = reques...
crates/hyperswitch_connectors/src/connectors/tokenio.rs
hyperswitch_connectors
impl_block
1,407
rust
null
Tokenio
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Tokenio
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Celero { 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/celero.rs
hyperswitch_connectors
impl_block
210
rust
null
Celero
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Celero
null
null
null
null
null
null
null
null
pub async fn routing_link_config( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::RoutingId>, json_payload: web::Json<routing_types::RoutingActivatePayload>, transaction_type: Option<enums::TransactionType>, ) -> impl Responder { let flow = Flow::RoutingLinkC...
crates/router/src/routes/routing.rs
router
function_signature
277
rust
null
null
null
null
routing_link_config
null
null
null
null
null
null
null
pub async fn find_by_merchant_id_payment_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, payment_id: &common_utils::id_type::PaymentId, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as HasTable>::Table, _, ...
crates/diesel_models/src/query/payment_attempt.rs
diesel_models
function_signature
145
rust
null
null
null
null
find_by_merchant_id_payment_id
null
null
null
null
null
null
null
pub struct AuthipayGatewayResponse { pub transaction_state: AuthipayTransactionStatus, pub transaction_processing_details: AuthipayTransactionProcessingDetails, }
crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
AuthipayGatewayResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn refunds_list( state: web::Data<AppState>, req: HttpRequest, payload: web::Json<api_models::refunds::RefundListRequest>, ) -> HttpResponse { let flow = Flow::RefundsList; Box::pin(api::server_wrap( flow, state, &req, payload.into_inner(), |state, a...
crates/router/src/routes/refunds.rs
router
function_signature
213
rust
null
null
null
null
refunds_list
null
null
null
null
null
null
null
pub struct CaptureOptions { capture_sequence_number: u32, total_capture_count: u32, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
CaptureOptions
null
null
null
null
null
null
null
null
null
null
null
pub struct KafkaAuthentication<'a> { pub authentication_id: &'a common_utils::id_type::AuthenticationId, pub merchant_id: &'a common_utils::id_type::MerchantId, pub authentication_connector: Option<&'a String>, pub connector_authentication_id: Option<&'a String>, pub authentication_data: Option<serd...
crates/router/src/services/kafka/authentication.rs
router
struct_definition
527
rust
KafkaAuthentication
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/forte.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
Documentation: api-reference/v2/customers/customers--delete.mdx # Type: Doc File --- openapi: delete /v2/customers/{id} ---
api-reference/v2/customers/customers--delete.mdx
null
doc_file
35
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Cybersource { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&CYBERSOURCE_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*CYBERSOURCE_SUPPORTED_PAYMENT_METHODS) } ...
crates/hyperswitch_connectors/src/connectors/cybersource.rs
hyperswitch_connectors
impl_block
109
rust
null
Cybersource
ConnectorSpecifications for
impl ConnectorSpecifications for for Cybersource
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Wellsfargopayout { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&WELLSFARGOPAYOUTS_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { None } fn get_supported_webhook_flow...
crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs
hyperswitch_connectors
impl_block
101
rust
null
Wellsfargopayout
ConnectorSpecifications for
impl ConnectorSpecifications for for Wellsfargopayout
null
null
null
null
null
null
null
null
pub async fn find_payment_intent_from_payment_id_type( state: &SessionState, payment_id_type: payments::PaymentIdType, merchant_context: &domain::MerchantContext, ) -> CustomResult<PaymentIntent, errors::ApiErrorResponse> { let key_manager_state: KeyManagerState = state.into(); let db = &*state.stor...
crates/router/src/utils.rs
router
function_signature
518
rust
null
null
null
null
find_payment_intent_from_payment_id_type
null
null
null
null
null
null
null
pub fn to_merchant_connector_info(&self, connector_label: &String) -> MerchantConnectorInfo { MerchantConnectorInfo { connector_label: connector_label.to_string(), merchant_connector_id: self.merchant_connector_id.clone(), } }
crates/api_models/src/admin.rs
api_models
function_signature
51
rust
null
null
null
null
to_merchant_connector_info
null
null
null
null
null
null
null
pub struct MerchantAccountDeleteResponse { /// The identifier for the Merchant Account #[schema(max_length = 255, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = String)] pub merchant_id: id_type::MerchantId, /// If the connector is deleted or not #[schema(example = false)] pub deleted: boo...
crates/api_models/src/admin.rs
api_models
struct_definition
90
rust
MerchantAccountDeleteResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ApplePayTokenPaymentInformation { fluid_data: FluidData, tokenized_card: ApplePayTokenizedCard, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
ApplePayTokenPaymentInformation
null
null
null
null
null
null
null
null
null
null
null
pub fn remove_cookie_response() -> UserResponse<()> { let (expiry, max_age) = get_expiry_and_max_age_from_seconds(0); let header_key = get_set_cookie_header(); let header_value = create_cookie("".to_string().into(), expiry, max_age) .to_string() .into_masked(); let header = vec![(header...
crates/router/src/services/authentication/cookies.rs
router
function_signature
96
rust
null
null
null
null
remove_cookie_response
null
null
null
null
null
null
null
pub fn payment_method_session_delete_saved_payment_method() {}
crates/openapi/src/routes/payment_method.rs
openapi
function_signature
11
rust
null
null
null
null
payment_method_session_delete_saved_payment_method
null
null
null
null
null
null
null
pub struct PlaidLinkTokenRequest { client_name: String, country_codes: Vec<String>, language: String, products: Vec<String>, user: User, payment_initiation: PlaidPaymentInitiation, redirect_uri: Option<String>, android_package_name: Option<String>, }
crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs
hyperswitch_connectors
struct_definition
64
rust
PlaidLinkTokenRequest
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MomoRedirection { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
22
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MomoRedirection" ]
null
null
null
null
impl common_utils::events::ApiEventMetric for EventListRequestInternal { fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType> { Some(common_utils::events::ApiEventsType::Events { merchant_id: self.merchant_id.clone(), }) } }
crates/api_models/src/webhook_events.rs
api_models
impl_block
65
rust
null
EventListRequestInternal
common_utils::events::ApiEventMetric for
impl common_utils::events::ApiEventMetric for for EventListRequestInternal
null
null
null
null
null
null
null
null
PaymentMethodDetails { mandates: enums::FeatureStatus::Supported, refunds: enums::FeatureStatus::Supported, supported_capture_methods: supported_capture_methods.clone(), specific_features: Some( api_models::feature_matrix::PaymentMethodSpecificFeat...
crates/hyperswitch_connectors/src/connectors/nmi.rs#chunk1
hyperswitch_connectors
chunk
629
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_filters( pool: &AnalyticsProvider, req: GetPaymentIntentFiltersRequest, merchant_id: &common_utils::id_type::MerchantId, ) -> AnalyticsResult<PaymentIntentFiltersResponse> { let mut res = PaymentIntentFiltersResponse::default(); for dim in req.group_by_names { let values = ...
crates/analytics/src/payment_intents/core.rs
analytics
function_signature
748
rust
null
null
null
null
get_filters
null
null
null
null
null
null
null
pub async fn do_gsm_single_connector_actions( state: &app::SessionState, original_connector_data: api::ConnectorData, payout_data: &mut PayoutData, merchant_context: &domain::MerchantContext, ) -> RouterResult<()> { let mut retries = None; metrics::AUTO_PAYOUT_RETRY_ELIGIBLE_REQUEST_COUNT.add(1...
crates/router/src/core/payouts/retry.rs
router
function_signature
342
rust
null
null
null
null
do_gsm_single_connector_actions
null
null
null
null
null
null
null
impl crate::events::ApiEventMetric for AuthenticationId { fn get_api_event_type(&self) -> Option<crate::events::ApiEventsType> { Some(crate::events::ApiEventsType::Authentication { authentication_id: self.clone(), }) } }
crates/common_utils/src/id_type/authentication.rs
common_utils
impl_block
57
rust
null
AuthenticationId
crate::events::ApiEventMetric for
impl crate::events::ApiEventMetric for for AuthenticationId
null
null
null
null
null
null
null
null
impl SuccessBasedAlgorithm { pub fn update_enabled_features(&mut self, feature_to_enable: DynamicRoutingFeatures) { self.enabled_feature = feature_to_enable } }
crates/api_models/src/routing.rs
api_models
impl_block
36
rust
null
SuccessBasedAlgorithm
null
impl SuccessBasedAlgorithm
null
null
null
null
null
null
null
null
pub async fn authentication_sync_core( state: SessionState, merchant_context: domain::MerchantContext, auth_flow: AuthFlow, req: AuthenticationSyncRequest, ) -> RouterResponse<AuthenticationSyncResponse> { let authentication_id = req.authentication_id; let merchant_account = merchant_context.get...
crates/router/src/core/unified_authentication_service.rs
router
function_signature
1,916
rust
null
null
null
null
authentication_sync_core
null
null
null
null
null
null
null
pub struct BraintreeDisputeData { pub amount_disputed: MinorUnit, pub amount_won: Option<String>, pub case_number: Option<String>, pub chargeback_protection_level: Option<String>, pub currency_iso_code: enums::Currency, #[serde(default, with = "common_utils::custom_serde::iso8601::option")] ...
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
215
rust
BraintreeDisputeData
null
null
null
null
null
null
null
null
null
null
null
pub struct OverpaymentAbsoluteThreshold { pub amount: StringMajorUnit, pub currency: String, }
crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
OverpaymentAbsoluteThreshold
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Paystack { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&PAYSTACK_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*PAYSTACK_SUPPORTED_PAYMENT_METHODS) } fn get_s...
crates/hyperswitch_connectors/src/connectors/paystack.rs
hyperswitch_connectors
impl_block
105
rust
null
Paystack
ConnectorSpecifications for
impl ConnectorSpecifications for for Paystack
null
null
null
null
null
null
null
null
pub struct MultisafepayPaymentDetails { pub account_holder_name: Option<Secret<String>>, pub account_id: Option<Secret<String>>, pub card_expiry_date: Option<Secret<String>>, pub external_transaction_id: Option<serde_json::Value>, pub last4: Option<Secret<String>>, pub recurring_flow: Option<Str...
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
struct_definition
108
rust
MultisafepayPaymentDetails
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { let mut route = web::scope("/v2/users").app_data(web::Data::new(state)); route = route.service( web::resource("/create-merchant") .route(web::post().to(user::user_merchant_account_create)), ); route = route.service( ...
crates/router/src/routes/app.rs
router
function_signature
273
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub struct WebhookDetails { pub webhook_version: Option<String>, pub webhook_username: Option<String>, pub webhook_password: Option<Secret<String>>, pub webhook_url: Option<Secret<String>>, pub payment_created_enabled: Option<bool>, pub payment_succeeded_enabled: Option<bool>, pub payment_fa...
crates/diesel_models/src/business_profile.rs
diesel_models
struct_definition
121
rust
WebhookDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentsCapture;
crates/router/src/core/payments/operations/payment_capture_v2.rs
router
struct_definition
5
rust
PaymentsCapture
null
null
null
null
null
null
null
null
null
null
null
pub(super) async fn perform_redis_lock<A>( state: &A, unique_locking_key: &str, merchant_id: common_utils::id_type::MerchantId, ) -> RouterResult<Option<String>> where A: SessionStateInfo, { let lock_value: String = uuid::Uuid::new_v4().to_string(); let redis_conn = state .store() ...
crates/router/src/core/webhooks/utils.rs
router
function_signature
329
rust
null
null
null
null
perform_redis_lock
null
null
null
null
null
null
null
pub struct MolliePaymentsRequest { amount: Amount, description: String, redirect_url: String, cancel_url: Option<String>, webhook_url: String, locale: Option<String>, #[serde(flatten)] payment_method_data: MolliePaymentMethodData, metadata: Option<MollieMetadata>, sequence_type: ...
crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
hyperswitch_connectors
struct_definition
87
rust
MolliePaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct UploadFileRequestData { pub file_key: String, #[serde(skip)] pub file: Vec<u8>, #[serde_as(as = "serde_with::DisplayFromStr")] pub file_type: mime::Mime, pub file_size: i32, pub dispute_id: String, pub connector_dispute_id: String, }
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
77
rust
UploadFileRequestData
null
null
null
null
null
null
null
null
null
null
null
pub struct DisputeRetrieveRequest { /// The identifier for dispute pub dispute_id: String, /// Decider to enable or disable the connector call for dispute retrieve request pub force_sync: Option<bool>, }
crates/api_models/src/disputes.rs
api_models
struct_definition
46
rust
DisputeRetrieveRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Gpayments {}
crates/hyperswitch_connectors/src/connectors/gpayments.rs
hyperswitch_connectors
impl_block
9
rust
null
Gpayments
api::PaymentSession for
impl api::PaymentSession for for Gpayments
null
null
null
null
null
null
null
null
impl FraudCheckSale for Riskified {}
crates/hyperswitch_connectors/src/connectors/riskified.rs
hyperswitch_connectors
impl_block
8
rust
null
Riskified
FraudCheckSale for
impl FraudCheckSale for for Riskified
null
null
null
null
null
null
null
null
impl DynamicRoutingAlgoAccessor for EliminationRoutingAlgorithm { fn get_algorithm_id_with_timestamp( self, ) -> DynamicAlgorithmWithTimestamp<common_utils::id_type::RoutingId> { self.algorithm_id_with_timestamp } fn get_enabled_features(&mut self) -> &mut DynamicRoutingFeatures { ...
crates/api_models/src/routing.rs
api_models
impl_block
76
rust
null
EliminationRoutingAlgorithm
DynamicRoutingAlgoAccessor for
impl DynamicRoutingAlgoAccessor for for EliminationRoutingAlgorithm
null
null
null
null
null
null
null
null
impl RefundSync for Payone {}
crates/hyperswitch_connectors/src/connectors/payone.rs
hyperswitch_connectors
impl_block
8
rust
null
Payone
RefundSync for
impl RefundSync for for Payone
null
null
null
null
null
null
null
null
pub struct XenditErrorResponse { pub error_code: String, pub message: String, }
crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
XenditErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl Database { fn validate(&self) -> Result<(), errors::DrainerError> { use common_utils::fp_utils::when; when(self.host.is_default_or_empty(), || { Err(errors::DrainerError::ConfigParsingError( "database host must not be empty".into(), )) })?; ...
crates/drainer/src/settings.rs
drainer
impl_block
190
rust
null
Database
null
impl Database
null
null
null
null
null
null
null
null
pub async fn filter_payment_methods( payment_method_type_details: hyperswitch_domain_models::merchant_connector_account::PaymentMethodsEnabledForConnector, req: &api_models::payments::ListMethodsForPaymentsRequest, resp: &mut Vec< hyperswitch_domain_models::merchant_connector_account::PaymentMethods...
crates/router/src/core/payments/payment_methods.rs
router
function_signature
487
rust
null
null
null
null
filter_payment_methods
null
null
null
null
null
null
null
File: crates/analytics/src/auth_events/metrics/authentication_success_count.rs use std::collections::HashSet; use api_models::analytics::{ auth_events::{AuthEventDimensions, AuthEventFilters, AuthEventMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_enums::AuthenticationStatus; use common_utils...
crates/analytics/src/auth_events/metrics/authentication_success_count.rs
analytics
full_file
1,054
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ContractBasedRoutingConfigBody { "type": "object", "properties": { "constants": { "type": "array", "items": { "type": "number", "format": "double" }, "nullable": true }, "time_scale": { "allOf": [ { "$...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
112
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ContractBasedRoutingConfigBody" ]
null
null
null
null
pub fn get_billing_address(&self) -> Option<Address> { self.billing.clone() }
crates/api_models/src/authentication.rs
api_models
function_signature
21
rust
null
null
null
null
get_billing_address
null
null
null
null
null
null
null
impl ConnectorSpecifications for Facilitapay { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&*FACILITAPAY_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*FACILITAPAY_SUPPORTED_PAYMENT_METHODS) } ...
crates/hyperswitch_connectors/src/connectors/facilitapay.rs
hyperswitch_connectors
impl_block
121
rust
null
Facilitapay
ConnectorSpecifications for
impl ConnectorSpecifications for for Facilitapay
null
null
null
null
null
null
null
null
impl api::PaymentToken for Aci {}
crates/hyperswitch_connectors/src/connectors/aci.rs
hyperswitch_connectors
impl_block
9
rust
null
Aci
api::PaymentToken for
impl api::PaymentToken for for Aci
null
null
null
null
null
null
null
null
pub struct LinkToken;
crates/pm_auth/src/types/api/auth_service.rs
pm_auth
struct_definition
5
rust
LinkToken
null
null
null
null
null
null
null
null
null
null
null
pub async fn payment_method_retrieve_api() {}
crates/openapi/src/routes/payment_method.rs
openapi
function_signature
10
rust
null
null
null
null
payment_method_retrieve_api
null
null
null
null
null
null
null
impl ConnectorValidation for Datatrans { fn validate_mandate_payment( &self, _pm_type: Option<PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { let connector = self.id(); match pm_data { PaymentMethodData::Card(_) ...
crates/hyperswitch_connectors/src/connectors/datatrans.rs
hyperswitch_connectors
impl_block
110
rust
null
Datatrans
ConnectorValidation for
impl ConnectorValidation for for Datatrans
null
null
null
null
null
null
null
null
impl ConnectorValidation for Worldpay { fn validate_mandate_payment( &self, pm_type: Option<enums::PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { let mandate_supported_pmd = std::collections::HashSet::from([PaymentMethodDataType::C...
crates/hyperswitch_connectors/src/connectors/worldpay.rs
hyperswitch_connectors
impl_block
116
rust
null
Worldpay
ConnectorValidation for
impl ConnectorValidation for for Worldpay
null
null
null
null
null
null
null
null
pub struct CoingateRouterData<T> { pub amount: StringMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
CoingateRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct IfStatement { // #[schema(value_type=Vec<Comparison>)] pub condition: IfCondition, pub nested: Option<Vec<IfStatement>>, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
35
rust
IfStatement
null
null
null
null
null
null
null
null
null
null
null