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
Web Documentation: Accept Payments | Hyperswitch # Type: Web Doc We at Hyperswitch simplify accepting one-time payments by offering a seamless integration process that empowers businesses to start accepting payments in just a few minutes. Get Started 1. Get your Hyperswitch API key Sign up on Hyperswitch Control Centr...
https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/quickstart
null
web_doc_file
660
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/quickstart
Accept Payments | Hyperswitch
null
pub async fn payouts_cancel( state: web::Data<AppState>, req: HttpRequest, path: web::Path<id_type::PayoutId>, ) -> HttpResponse { let flow = Flow::PayoutsCancel; let payload = payout_types::PayoutActionRequest { payout_id: path.into_inner(), }; Box::pin(api::server_wrap( fl...
crates/router/src/routes/payouts.rs
router
function_signature
198
rust
null
null
null
null
payouts_cancel
null
null
null
null
null
null
null
impl Default for AuthenticationUpdateInternal { fn default() -> Self { Self { connector_authentication_id: Default::default(), payment_method_id: Default::default(), authentication_type: Default::default(), authentication_status: Default::default(), ...
crates/diesel_models/src/authentication.rs
diesel_models
impl_block
378
rust
null
AuthenticationUpdateInternal
Default for
impl Default for for AuthenticationUpdateInternal
null
null
null
null
null
null
null
null
pub async fn refund_create( state: web::Data<routes::AppState>, qs_config: web::Data<serde_qs::Config>, req: HttpRequest, form_payload: web::Bytes, ) -> HttpResponse { let payload: types::StripeCreateRefundRequest = match qs_config .deserialize_bytes(&form_payload) .map_err(|err| rep...
crates/router/src/compatibility/stripe/refunds.rs
router
function_signature
354
rust
null
null
null
null
refund_create
null
null
null
null
null
null
null
pub struct PaymentMethodsSessionUpdateInternal { pub billing: Option<common_utils::encryption::Encryption>, pub psp_tokenization: Option<common_types::payment_methods::PspTokenization>, pub network_tokenization: Option<common_types::payment_methods::NetworkTokenization>, pub tokenzation_data: Option<mas...
crates/diesel_models/src/payment_methods_session.rs
diesel_models
struct_definition
79
rust
PaymentMethodsSessionUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
/// Create a [`Counter`][Counter] metric with the specified name and an optional description, /// associated with the specified meter. Note that the meter must be a valid [`Meter`][Meter]. /// /// [Counter]: opentelemetry::metrics::Counter /// [Meter]: opentelemetry::metrics::Meter #[macro_export] macro_rules! counter_...
crates/router_env/src/metrics.rs
router_env
macro
249
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
pub struct ListRountingAlgorithmsRequest { pub created_by: String, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
18
rust
ListRountingAlgorithmsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct ConnectorAuthenticationMap(HashMap<String, ConnectorAuthType>);
crates/test_utils/src/connector_auth.rs
test_utils
struct_definition
14
rust
ConnectorAuthenticationMap
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/payment_intent.rs Public functions: 4 Public structs: 14 use common_enums::{PaymentMethodType, RequestIncrementalAuthorization}; use common_types::primitive_wrappers::RequestExtendedAuthorizationBool; use common_utils::{encryption::Encryption, pii, types::MinorUnit}; use diesel::{AsCha...
crates/diesel_models/src/payment_intent.rs#chunk0
diesel_models
chunk
8,185
null
null
null
null
null
null
null
null
null
null
null
null
null
impl GetAddressFromPaymentMethodData for BankDebitData { fn get_billing_address(&self) -> Option<Address> { fn get_billing_address_inner( bank_debit_billing: Option<&BankDebitBilling>, bank_account_holder_name: Option<&Secret<String>>, ) -> Option<Address> { // W...
crates/api_models/src/payments.rs#chunk3
api_models
chunk
8,192
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BitpayPaymentResponseData { pub url: Option<url::Url>, pub status: BitpayPaymentStatus, pub price: FloatMajorUnit, pub currency: String, pub amount_paid: FloatMajorUnit, pub invoice_time: Option<FloatMajorUnit>, pub rate_refresh_time: Option<i64>, pub expiration_time: Option<i...
crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs
hyperswitch_connectors
struct_definition
169
rust
BitpayPaymentResponseData
null
null
null
null
null
null
null
null
null
null
null
pub struct CybersourceAuthenticationErrorResponse { pub response: AuthenticationErrorInformation, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
CybersourceAuthenticationErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn is_key_not_deleted(&self) -> bool { matches!(self, Self::KeyNotDeleted) }
crates/redis_interface/src/types.rs
redis_interface
function_signature
25
rust
null
null
null
null
is_key_not_deleted
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RewardData { "type": "object", "required": [ "merchant_id" ], "properties": { "merchant_id": { "type": "string", "description": "The merchant ID with which we have to call the connector" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
72
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RewardData" ]
null
null
null
null
File: crates/hyperswitch_constraint_graph/src/dense_map.rs Public functions: 12 Public structs: 5 use std::{fmt, iter, marker::PhantomData, ops, slice, vec}; pub trait EntityId { fn get_id(&self) -> usize; fn with_id(id: usize) -> Self; } macro_rules! impl_entity { ($name:ident) => { impl $crat...
crates/hyperswitch_constraint_graph/src/dense_map.rs
hyperswitch_constraint_graph
full_file
1,434
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct FiservemeaPaymentMethodDetails { payment_card: Option<FiservemeaPaymentCardResponse>, payment_method_type: Option<String>, payment_method_brand: Option<String>, }
crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs
hyperswitch_connectors
struct_definition
42
rust
FiservemeaPaymentMethodDetails
null
null
null
null
null
null
null
null
null
null
null
pub fn validate_payment_method_data_against_payment_method( payment_method_type: api_enums::PaymentMethod, payment_method_data: PaymentMethodCreateData, ) -> bool { match payment_method_type { api_enums::PaymentMethod::Card => { matches!( payme...
crates/api_models/src/payment_methods.rs
api_models
function_signature
94
rust
null
null
null
null
validate_payment_method_data_against_payment_method
null
null
null
null
null
null
null
pub struct KafkaPayout<'a> { pub payout_id: &'a id_type::PayoutId, pub payout_attempt_id: &'a String, pub merchant_id: &'a id_type::MerchantId, pub customer_id: Option<&'a id_type::CustomerId>, pub address_id: Option<&'a String>, pub profile_id: &'a id_type::ProfileId, pub payout_method_id: ...
crates/router/src/services/kafka/payout.rs
router
struct_definition
378
rust
KafkaPayout
null
null
null
null
null
null
null
null
null
null
null
pub struct VaultRetrieve;
crates/router/src/types/payment_methods.rs
router
struct_definition
5
rust
VaultRetrieve
null
null
null
null
null
null
null
null
null
null
null
pub struct StripebillingWebhookLinesObject { pub data: Vec<StripebillingWebhookLinesData>, }
crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
StripebillingWebhookLinesObject
null
null
null
null
null
null
null
null
null
null
null
pub struct PayseraData {}
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
6
rust
PayseraData
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AcquirerConfigMap { "type": "object", "description": "Acquirer configs", "additionalProperties": { "$ref": "#/components/schemas/AcquirerConfig" } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
53
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AcquirerConfigMap" ]
null
null
null
null
pub async fn refund_retrieve_core( state: SessionState, merchant_context: domain::MerchantContext, profile_id: Option<common_utils::id_type::ProfileId>, request: refunds::RefundsRetrieveRequest, refund: diesel_refund::Refund, ) -> RouterResult<diesel_refund::Refund> { let db = &*state.store; ...
crates/router/src/core/refunds.rs
router
function_signature
619
rust
null
null
null
null
refund_retrieve_core
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AmazonPayMerchantCredentials { "type": "object", "required": [ "merchant_id", "store_id" ], "properties": { "merchant_id": { "type": "string", "description": "Amazon Pay merchant account identifier" }, "store_id": { "type": "string", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
99
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AmazonPayMerchantCredentials" ]
null
null
null
null
pub struct RoutingData { // TODO: change this to RoutableConnectors enum pub routed_through: Option<String>, pub merchant_connector_id: Option<id_type::MerchantConnectorAccountId>, pub pre_routing_connector_choice: Option<PreRoutingConnectorChoice>, pub algorithm_requested: Option<id_type::Routing...
crates/hyperswitch_domain_models/src/routing.rs
hyperswitch_domain_models
struct_definition
71
rust
RoutingData
null
null
null
null
null
null
null
null
null
null
null
pub struct AirwallexWebhookObjectResource { pub data: AirwallexWebhookDataResource, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
AirwallexWebhookObjectResource
null
null
null
null
null
null
null
null
null
null
null
impl<'a> KafkaFraudCheck<'a> { pub fn from_storage(check: &'a FraudCheck) -> Self { Self { frm_id: &check.frm_id, payment_id: &check.payment_id, merchant_id: &check.merchant_id, attempt_id: &check.attempt_id, created_at: check.created_at.assume_utc...
crates/router/src/services/kafka/fraud_check.rs
router
impl_block
203
rust
null
KafkaFraudCheck
null
impl KafkaFraudCheck
null
null
null
null
null
null
null
null
File: crates/analytics/src/payments/metrics/avg_ticket_size.rs use std::collections::HashSet; use api_models::analytics::{ payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use diesel_models::enums as storage_en...
crates/analytics/src/payments/metrics/avg_ticket_size.rs
analytics
full_file
1,022
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_payment_method_with_token( _state: &SessionState, _merchant_key_store: &domain::MerchantKeyStore, _token_data: &storage::PaymentTokenData, _payment_intent: &PaymentIntent, _card_token_data: Option<&domain::CardToken>, _customer: &Option<domain::Customer>, _storage_schem...
crates/router/src/core/payment_methods.rs
router
function_signature
150
rust
null
null
null
null
retrieve_payment_method_with_token
null
null
null
null
null
null
null
Documentation: api-reference/intelligent-router-api-reference/elimination/invalidate-elimination-bucket.mdx # Type: Doc File --- openapi: post /elimination.EliminationAnalyser/InvalidateBucket ---
api-reference/intelligent-router-api-reference/elimination/invalidate-elimination-bucket.mdx
null
doc_file
47
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/storage_impl/src/payouts/payout_attempt.rs use std::str::FromStr; use api_models::enums::PayoutConnectors; use common_utils::{errors::CustomResult, ext_traits::Encode, fallback_reverse_lookup_not_found}; use diesel_models::{ enums::MerchantStorageScheme, kv, payout_attempt::{ PayoutAt...
crates/storage_impl/src/payouts/payout_attempt.rs
storage_impl
full_file
5,592
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AdvancedFraudResults { pub device_review_status: Option<String>, pub device_reputation_score: Option<String>, pub triggered_rule: Option<Vec<String>>, }
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
AdvancedFraudResults
null
null
null
null
null
null
null
null
null
null
null
pub async fn refunds_retrieve( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::GlobalRefundId>, query_params: web::Query<api_models::refunds::RefundsRetrieveBody>, ) -> HttpResponse { let refund_request = refunds::RefundsRetrieveRequest { refund_id: path....
crates/router/src/routes/refunds.rs
router
function_signature
323
rust
null
null
null
null
refunds_retrieve
null
null
null
null
null
null
null
/// Generate the id for revenue recovery Execute PT workflow pub fn get_execute_revenue_recovery_id( &self, task: &str, runner: enums::ProcessTrackerRunner, ) -> String { format!("{runner}_{task}_{}", self.get_string_repr()) }
crates/common_utils/src/id_type/global_id/payment.rs
common_utils
function_signature
60
rust
null
null
null
null
get_execute_revenue_recovery_id
null
null
null
null
null
null
null
pub struct FrmFlowData { pub merchant_id: common_utils::id_type::MerchantId, pub payment_id: String, pub attempt_id: String, pub payment_method: common_enums::enums::PaymentMethod, pub connector_request_reference_id: String, pub auth_type: common_enums::enums::AuthenticationType, pub connect...
crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs
hyperswitch_domain_models
struct_definition
134
rust
FrmFlowData
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.rs Public structs: 3 use common_utils::types::MinorUnit; use time::PrimitiveDateTime; #[derive(Debug, Clone, serde::Deserialize, serde::Serialize)] pub struct BillingConnectorPaymentsSyncResponse { /// transaction amount against inv...
crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.rs
hyperswitch_domain_models
full_file
582
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorApiIntegrationPayload { pub fn get_transformed_response_payload(response: Self) -> DashboardRequestPayload { let mut wallet_details: Vec<Provider> = Vec::new(); let mut bank_redirect_details: Vec<Provider> = Vec::new(); let mut pay_later_details: Vec<Provider> = Vec::new(); ...
crates/connector_configs/src/response_modifier.rs
connector_configs
impl_block
2,910
rust
null
ConnectorApiIntegrationPayload
null
impl ConnectorApiIntegrationPayload
null
null
null
null
null
null
null
null
pub struct Novalnet { amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/novalnet.rs
hyperswitch_connectors
struct_definition
28
rust
Novalnet
null
null
null
null
null
null
null
null
null
null
null
pub async fn save_payout_data_to_locker( _state: &SessionState, _payout_data: &mut PayoutData, _customer_id: &id_type::CustomerId, _payout_method_data: &api::PayoutMethodData, _connector_mandate_details: Option<serde_json::Value>, _merchant_context: &domain::MerchantContext, ) -> RouterResult<()...
crates/router/src/core/payouts/helpers.rs
router
function_signature
94
rust
null
null
null
null
save_payout_data_to_locker
null
null
null
null
null
null
null
pub fn validate(&self) -> Result<(), ApplicationError> { use common_utils::{ext_traits::ConfigExt, fp_utils::when}; if !self.enabled { return Ok(()); } when(self.host.is_default_or_empty(), || { Err(ApplicationError::InvalidConfigurationValueError( ...
crates/analytics/src/opensearch.rs
analytics
function_signature
99
rust
null
null
null
null
validate
null
null
null
null
null
null
null
File: crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs Public functions: 12 Public structs: 7 use api_models::enums as api_enums; use common_utils::{ ext_traits::OptionExt, fp_utils::when, pii::Email, types::keymanager::KeyManagerState, }; use error_stack::{report, ResultExt}; use maski...
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
full_file
3,254
null
null
null
null
null
null
null
null
null
null
null
null
null
impl RefundExecute for Plaid {}
crates/hyperswitch_connectors/src/connectors/plaid.rs
hyperswitch_connectors
impl_block
8
rust
null
Plaid
RefundExecute for
impl RefundExecute for for Plaid
null
null
null
null
null
null
null
null
pub struct RouterRequestBuilder { // Using option here to get around the reinitialization problem // request builder follows a chain pattern where the value is consumed and a newer requestbuilder is returned // Since for this brief period of time between the value being consumed & newer request builder ...
crates/router/src/services/api/client.rs
router
struct_definition
104
rust
RouterRequestBuilder
null
null
null
null
null
null
null
null
null
null
null
pub struct Subscription { pub subscription_id: String, pub status: String, pub billing_processor: Option<String>, pub payment_method_id: Option<String>, pub merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>, pub client_secret: Option<String>, pub connector_subs...
crates/diesel_models/src/subscription.rs
diesel_models
struct_definition
142
rust
Subscription
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_mca_from_payout_attempt( state: &SessionState, merchant_context: &domain::MerchantContext, payout_id_type: webhooks::PayoutIdType, connector_name: &str, ) -> CustomResult<domain::MerchantConnectorAccount, errors::ApiErrorResponse> { let db = &*state.store; let payout = match pay...
crates/router/src/utils.rs
router
function_signature
590
rust
null
null
null
null
get_mca_from_payout_attempt
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Aci {}
crates/hyperswitch_connectors/src/connectors/aci.rs
hyperswitch_connectors
impl_block
9
rust
null
Aci
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Aci
null
null
null
null
null
null
null
null
impl api::Refund for Braintree {}
crates/hyperswitch_connectors/src/connectors/braintree.rs
hyperswitch_connectors
impl_block
9
rust
null
Braintree
api::Refund for
impl api::Refund for for Braintree
null
null
null
null
null
null
null
null
pub fn update_connector_mandate_details_status( merchant_connector_id: id_type::MerchantConnectorAccountId, mut payment_mandate_reference: PaymentsMandateReference, status: ConnectorMandateStatus, ) -> RouterResult<Option<CommonMandateReference>> { let mandate_reference = { payment_mandate_refer...
crates/router/src/core/payments/tokenization.rs
router
function_signature
242
rust
null
null
null
null
update_connector_mandate_details_status
null
null
null
null
null
null
null
Web Documentation: Try a Payment | Hyperswitch # Type: Web Doc Test the Configuration using Dashboard Upon configuration of the Connector, navigate to the dashboard home page Proceed with the "Try a test payment" option on the home page of the dashboard\ Setup your demo checkout page by providing Business profile, Pro...
https://docs.hyperswitch.io/explore-hyperswitch/connectors/test-a-payment-with-connector
null
web_doc_file
1,192
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/explore-hyperswitch/connectors/test-a-payment-with-connector
Try a Payment | Hyperswitch
null
impl api::ConnectorAccessToken for Paytm {}
crates/hyperswitch_connectors/src/connectors/paytm.rs
hyperswitch_connectors
impl_block
9
rust
null
Paytm
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Paytm
null
null
null
null
null
null
null
null
impl api::RefundExecute for Helcim {}
crates/hyperswitch_connectors/src/connectors/helcim.rs
hyperswitch_connectors
impl_block
11
rust
null
Helcim
api::RefundExecute for
impl api::RefundExecute for for Helcim
null
null
null
null
null
null
null
null
pub fn payments_create_and_confirm_intent() {}
crates/openapi/src/routes/payments.rs
openapi
function_signature
9
rust
null
null
null
null
payments_create_and_confirm_intent
null
null
null
null
null
null
null
pub async fn get_connector_tokenization_action_when_confirm_true<F, Req, D>( state: &SessionState, operation: &BoxedOperation<'_, F, Req, D>, payment_data: &mut D, validate_result: &operations::ValidateResult, merchant_key_store: &domain::MerchantKeyStore, customer: &Option<domain::Customer>, ...
crates/router/src/core/payments.rs
router
function_signature
855
rust
null
null
null
null
get_connector_tokenization_action_when_confirm_true
null
null
null
null
null
null
null
Web Documentation: For E-Commerce Businesses | Hyperswitch # Type: Web Doc Hyperswitch provides e-commerce businesses with a reliable and flexible payment system, whether you are a small store or a large business. Hyperswitch enables you to improve conversions, accept payments globally, optimize payment costs, access ...
https://docs.hyperswitch.io/use-cases/for-e-commerce-businesses
null
web_doc_file
417
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/use-cases/for-e-commerce-businesses
For E-Commerce Businesses | Hyperswitch
null
File: crates/analytics/src/payments/types.rs use api_models::analytics::payments::{PaymentDimensions, PaymentFilters}; use error_stack::ResultExt; use crate::{ query::{QueryBuilder, QueryFilter, QueryResult, ToSql}, types::{AnalyticsCollection, AnalyticsDataSource}, }; impl<T> QueryFilter<T> for PaymentFilte...
crates/analytics/src/payments/types.rs
analytics
full_file
1,116
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ConnectorPTMapping { pub default_mapping: RetryMapping, pub custom_merchant_mapping: HashMap<common_utils::id_type::MerchantId, RetryMapping>, pub max_retries_count: i32, }
crates/scheduler/src/consumer/types/process_data.rs
scheduler
struct_definition
47
rust
ConnectorPTMapping
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundResponse { refund_id: String, charge_id: String, creation_timestamp: String, refund_amount: ChargeAmount, status_details: RefundStatusDetails, soft_descriptor: String, release_environment: ReleaseEnvironment, disbursement_details: Option<String>, }
crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
hyperswitch_connectors
struct_definition
62
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct SplitShipment { total_count: i32, final_shipment: bool, }
crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
SplitShipment
null
null
null
null
null
null
null
null
null
null
null
pub struct Merchant { pub entity: Secret<String>, #[serde(skip_serializing_if = "Option::is_none")] pub mcc: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] pub payment_facilitator: Option<PaymentFacilitator>, }
crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs
hyperswitch_connectors
struct_definition
61
rust
Merchant
null
null
null
null
null
null
null
null
null
null
null
), ), common_utils::types::keymanager::Identifier::Merchant( merchant_context .get_merchant_key_store() .merchant_id .clone(), ), merchant_context.get_merchant_key_store().key.peek(), ) .await .and_then(|...
crates/router/src/core/unified_authentication_service.rs#chunk1
router
chunk
4,860
null
null
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Chargebee { fn get_webhook_source_verification_signature( &self, request: &webhooks::IncomingWebhookRequestDetails<'_>, _connector_webhook_secrets: &api_models::webhooks::ConnectorWebhookSecrets, ) -> CustomResult<Vec<u8>, errors::ConnectorError> { ...
crates/hyperswitch_connectors/src/connectors/chargebee.rs
hyperswitch_connectors
impl_block
1,272
rust
null
Chargebee
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Chargebee
null
null
null
null
null
null
null
null
impl api::MandateSetup for Wise {}
crates/hyperswitch_connectors/src/connectors/wise.rs
hyperswitch_connectors
impl_block
10
rust
null
Wise
api::MandateSetup for
impl api::MandateSetup for for Wise
null
null
null
null
null
null
null
null
impl api::PaymentSession for Mpgs {}
crates/hyperswitch_connectors/src/connectors/mpgs.rs
hyperswitch_connectors
impl_block
10
rust
null
Mpgs
api::PaymentSession for
impl api::PaymentSession for for Mpgs
null
null
null
null
null
null
null
null
impl Disputes { pub fn server(state: AppState) -> Scope { web::scope("/disputes") .app_data(web::Data::new(state)) .service(web::resource("/list").route(web::get().to(disputes::retrieve_disputes_list))) .service( web::resource("/profile/list") ...
crates/router/src/routes/app.rs
router
impl_block
420
rust
null
Disputes
null
impl Disputes
null
null
null
null
null
null
null
null
File: crates/analytics/src/api_event.rs mod core; pub mod events; pub mod filters; pub mod metrics; pub mod types; pub trait APIEventAnalytics: events::ApiLogsFilterAnalytics {} pub use self::core::{api_events_core, get_api_event_metrics, get_filters};
crates/analytics/src/api_event.rs
analytics
full_file
60
null
null
null
null
null
null
null
null
null
null
null
null
null
impl EventInfo for PaymentEvent { type Data = Self; fn data(&self) -> error_stack::Result<Self::Data, events::EventsError> { Ok(self.clone()) } fn key(&self) -> String { "payment".to_string() } }
crates/router/src/core/payments.rs
router
impl_block
60
rust
null
PaymentEvent
EventInfo for
impl EventInfo for for PaymentEvent
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Recurly { fn get_webhook_source_verification_algorithm( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn common_utils::crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(common_utils::crypt...
crates/hyperswitch_connectors/src/connectors/recurly.rs
hyperswitch_connectors
impl_block
1,032
rust
null
Recurly
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Recurly
null
null
null
null
null
null
null
null
pub fn get_decision_engine_configs( &self, ) -> Result<open_router::DecisionEngineSuccessRateData, error_stack::Report<ValidationError>> { self.decision_engine_configs .clone() .ok_or(error_stack::Report::new( ValidationError::MissingRequiredField { ...
crates/api_models/src/routing.rs
api_models
function_signature
81
rust
null
null
null
null
get_decision_engine_configs
null
null
null
null
null
null
null
pub struct RefundProcessedAmountAccumulator { pub count: Option<i64>, pub total: Option<i64>, }
crates/analytics/src/refunds/accumulator.rs
analytics
struct_definition
29
rust
RefundProcessedAmountAccumulator
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs Public structs: 16 use api_models::payments::DeviceChannel; use common_enums::MerchantCategoryCode; use common_types::payments::MerchantCountryCode; use common_utils::types::MinorUnit; use masking::Secret; use crate::ad...
crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
hyperswitch_domain_models
full_file
1,588
null
null
null
null
null
null
null
null
null
null
null
null
null
impl RefundExecute for Wise {}
crates/hyperswitch_connectors/src/connectors/wise.rs
hyperswitch_connectors
impl_block
7
rust
null
Wise
RefundExecute for
impl RefundExecute for for Wise
null
null
null
null
null
null
null
null
pub struct GooglePayAllowedPaymentMethods { #[serde(rename = "type")] pub payment_method_type: String, pub parameters: GpayAllowedMethodsParameters, pub tokenization_specification: GpayTokenizationSpecification, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
48
rust
GooglePayAllowedPaymentMethods
null
null
null
null
null
null
null
null
null
null
null
- **events:** Add audit events payment capture ([#4913](https://github.com/juspay/hyperswitch/pull/4913)) ([`40a996e`](https://github.com/juspay/hyperswitch/commit/40a996e84c1d9ccc55b62c561cee443508e9e60f)) - **payouts:** Make payout_type optional in payouts table ([#4954](https://github.com/juspay/hyperswitch/pull/495...
CHANGELOG.md#chunk30
null
doc_chunk
8,166
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalDisputeWebhooks { pub dispute_id: String, pub disputed_transactions: Vec<DisputeTransaction>, pub dispute_amount: OrderAmount, pub dispute_outcome: Option<DisputeOutcome>, pub dispute_life_cycle_stage: DisputeLifeCycleStage, pub status: DisputeStatus, pub reason: Option<Stri...
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
185
rust
PaypalDisputeWebhooks
null
null
null
null
null
null
null
null
null
null
null
pub struct ApplepayMerchantVerificationConfigs { pub domain_names: Vec<String>, pub encrypt_to: String, pub partner_internal_merchant_identifier: String, pub partner_merchant_name: String, }
crates/api_models/src/verifications.rs
api_models
struct_definition
43
rust
ApplepayMerchantVerificationConfigs
null
null
null
null
null
null
null
null
null
null
null
pub struct AdditionalInfo { pub name: Option<String>, pub value: Option<String>, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
AdditionalInfo
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/workflows/dispute_list.rs Public functions: 3 Public structs: 1 use std::ops::Deref; use common_utils::ext_traits::{StringExt, ValueExt}; use diesel_models::process_tracker::business_status; use error_stack::ResultExt; use router_env::{logger, tracing::Instrument}; use scheduler::{ consu...
crates/router/src/workflows/dispute_list.rs
router
full_file
1,570
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundResponse { id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct NumberComparison { pub comparison_type: ComparisonType, pub number: MinorUnit, }
crates/euclid/src/frontend/ast.rs
euclid
struct_definition
21
rust
NumberComparison
null
null
null
null
null
null
null
null
null
null
null
pub fn get_connector_response_reference_id(&self) -> Option<String> { match self { Self::Success { connector_response_reference_id, .. } => connector_response_reference_id.clone(), Self::Error { .. } => None, } }
crates/hyperswitch_domain_models/src/router_response_types.rs
hyperswitch_domain_models
function_signature
55
rust
null
null
null
null
get_connector_response_reference_id
null
null
null
null
null
null
null
pub struct RefundResponse { pub status: Status, pub data: Option<RefundResponseData>, }
crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Elavon {}
crates/hyperswitch_connectors/src/connectors/elavon.rs
hyperswitch_connectors
impl_block
11
rust
null
Elavon
api::RefundExecute for
impl api::RefundExecute for for Elavon
null
null
null
null
null
null
null
null
pub struct WorldlineAuthType { pub api_key: Secret<String>, pub api_secret: Secret<String>, pub merchant_account_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
WorldlineAuthType
null
null
null
null
null
null
null
null
null
null
null
pub fn get_payout_description_category() -> JsResult { let keys = dir::PayoutDirKeyKind::VARIANTS.to_vec(); let mut category: HashMap<Option<&str>, Vec<types::PayoutDetails<'_>>> = HashMap::new(); for key in keys { let dir_key = dir::PayoutDirKeyKind::from_str(key).map_err(|_| "Invalid k...
crates/euclid_wasm/src/lib.rs
euclid_wasm
function_signature
172
rust
null
null
null
null
get_payout_description_category
null
null
null
null
null
null
null
impl Issuer { pub fn new(code: String) -> Self { Self { authorization_code: Secret::new(code), } } }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
impl_block
32
rust
null
Issuer
null
impl Issuer
null
null
null
null
null
null
null
null
pub fn apply(&self, card_data_from_locker: Card) -> CardDetail { CardDetail { card_number: card_data_from_locker.card_number, card_exp_month: card_data_from_locker.card_exp_month, card_exp_year: card_data_from_locker.card_exp_year, card_holder_name: self ...
crates/api_models/src/payment_methods.rs
api_models
function_signature
163
rust
null
null
null
null
apply
null
null
null
null
null
null
null
pub struct PaypalOrdersResponse { id: String, intent: PaypalPaymentIntent, status: PaypalOrderStatus, purchase_units: Vec<PurchaseUnitItem>, payment_source: Option<PaymentSourceItemResponse>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
47
rust
PaypalOrdersResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct FrictionlessFlowCount;
crates/api_models/src/analytics/auth_events.rs
api_models
struct_definition
8
rust
FrictionlessFlowCount
null
null
null
null
null
null
null
null
null
null
null
pub fn refunds_list() {}
crates/openapi/src/routes/refunds.rs
openapi
function_signature
6
rust
null
null
null
null
refunds_list
null
null
null
null
null
null
null
impl ConnectorRedirectResponse for Zen { fn get_flow_type( &self, _query_params: &str, _json_payload: Option<serde_json::Value>, action: PaymentAction, ) -> CustomResult<CallConnectorAction, errors::ConnectorError> { match action { PaymentAction::PSync ...
crates/hyperswitch_connectors/src/connectors/zen.rs
hyperswitch_connectors
impl_block
104
rust
null
Zen
ConnectorRedirectResponse for
impl ConnectorRedirectResponse for for Zen
null
null
null
null
null
null
null
null
pub struct CreateCustomerRequest { pub email: Option<Email>, pub invoice_prefix: Option<String>, pub name: Option<masking::Secret<String>>, pub phone: Option<masking::Secret<String>>, pub address: Option<StripeAddressDetails>, pub metadata: Option<pii::SecretSerdeValue>, pub description: Opt...
crates/router/src/compatibility/stripe/customers/types.rs
router
struct_definition
272
rust
CreateCustomerRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundMetricsBucketResponse { #[serde(flatten)] pub values: RefundMetricsBucketValue, #[serde(flatten)] pub dimensions: RefundMetricsBucketIdentifier, }
crates/api_models/src/analytics/refunds.rs
api_models
struct_definition
41
rust
RefundMetricsBucketResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn new(payment_attempt_id: String) -> Self { Self { surcharge_results: HashMap::new(), payment_attempt_id, } }
crates/router/src/core/payments/types.rs
router
function_signature
33
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl PaymentToken for Netcetera {}
crates/hyperswitch_connectors/src/connectors/netcetera.rs
hyperswitch_connectors
impl_block
9
rust
null
Netcetera
PaymentToken for
impl PaymentToken for for Netcetera
null
null
null
null
null
null
null
null
pub async fn list_blocklist_entries( state: SessionState, merchant_context: domain::MerchantContext, query: api_blocklist::ListBlocklistQuery, ) -> RouterResponse<Vec<api_blocklist::BlocklistResponse>> { utils::list_blocklist_entries_for_merchant( &state, merchant_context.get_merchant_ac...
crates/router/src/core/blocklist.rs
router
function_signature
97
rust
null
null
null
null
list_blocklist_entries
null
null
null
null
null
null
null
pub struct AuthEventMetricsBucketIdentifier { pub authentication_status: Option<AuthenticationStatus>, pub trans_status: Option<TransactionStatus>, pub authentication_type: Option<DecoupledAuthenticationType>, pub error_message: Option<String>, pub authentication_connector: Option<AuthenticationConn...
crates/api_models/src/analytics/auth_events.rs
api_models
struct_definition
296
rust
AuthEventMetricsBucketIdentifier
null
null
null
null
null
null
null
null
null
null
null
pub trait RequestIdStore { fn add_request_id(&mut self, _request_id: String) {} fn get_request_id(&self) -> Option<String> { None } }
crates/router/src/db.rs
router
trait_definition
41
rust
null
null
RequestIdStore
null
null
null
null
null
null
null
null
null
pub struct CardThreeDsData { ccnumber: CardNumber, ccexp: Secret<String>, email: Option<Email>, cardholder_auth: Option<String>, cavv: Option<Secret<String>>, eci: Option<String>, cvv: Secret<String>, three_ds_version: Option<String>, directory_server_id: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
hyperswitch_connectors
struct_definition
78
rust
CardThreeDsData
null
null
null
null
null
null
null
null
null
null
null
pub struct UserCompanyName(String);
crates/router/src/types/domain/user.rs
router
struct_definition
6
rust
UserCompanyName
null
null
null
null
null
null
null
null
null
null
null
pub struct UpdateScoreResponse { pub message: String, }
crates/api_models/src/open_router.rs
api_models
struct_definition
13
rust
UpdateScoreResponse
null
null
null
null
null
null
null
null
null
null
null