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 MolliePaymentsResponse { pub resource: String, pub id: String, pub amount: Amount, pub description: Option<String>, pub metadata: Option<MollieMetadata>, pub status: MolliePaymentStatus, pub is_cancelable: Option<bool>, pub sequence_type: SequenceType, pub redirect_url: Op...
crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
hyperswitch_connectors
struct_definition
101
rust
MolliePaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct StripeMandateResponse { pub mandate_id: String, pub status: StripeMandateStatus, pub payment_method_id: String, pub payment_method: String, }
crates/router/src/compatibility/stripe/webhooks.rs
router
struct_definition
41
rust
StripeMandateResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct BillTo { first_name: Option<Secret<String>>, last_name: Option<Secret<String>>, address1: Option<Secret<String>>, locality: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] administrative_area: Option<Secret<String>>, #[serde(skip_serializing_if = "Option::is_none...
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
103
rust
BillTo
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/revenue_recovery/api.rs Public functions: 5 use actix_web::{web, Responder}; use api_models::{payments as payments_api, payments as api_payments}; use common_utils::id_type; use error_stack::{report, FutureExt, ResultExt}; use hyperswitch_domain_models::{ merchant_context::{Context, M...
crates/router/src/core/revenue_recovery/api.rs
router
full_file
2,743
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TsysAuthType { pub(super) device_id: Secret<String>, pub(super) transaction_key: Secret<String>, pub(super) developer_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
TsysAuthType
null
null
null
null
null
null
null
null
null
null
null
pub fn get_connector_wallets_details(&self) -> Option<Secret<Value>> { self.connector_wallets_details.as_deref().cloned() }
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
32
rust
null
null
null
null
get_connector_wallets_details
null
null
null
null
null
null
null
pub async fn next(self, user: UserFromStorage, state: &SessionState) -> UserResult<NextFlow> { let flows = self.origin.get_flows(); let remaining_flows = flows.iter().skip(self.current_flow_index + 1); for flow in remaining_flows { if flow .is_required( ...
crates/router/src/types/domain/user/decision_manager.rs
router
function_signature
164
rust
null
null
null
null
next
null
null
null
null
null
null
null
/// Panics if `json_payload` array does not contain one `GetActivePaymentsMetricRequest` element. pub async fn get_active_payments_metrics( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<[GetActivePaymentsMetricRequest; 1]>, ) -> impl Responder { ...
crates/router/src/analytics.rs
router
function_signature
269
rust
null
null
null
null
get_active_payments_metrics
null
null
null
null
null
null
null
pub struct PayoutListFilters { /// The list of available connector filters #[schema(value_type = Vec<PayoutConnectors>)] pub connector: Vec<api_enums::PayoutConnectors>, /// The list of available currency filters #[schema(value_type = Vec<Currency>)] pub currency: Vec<common_enums::Currency>, ...
crates/api_models/src/payouts.rs
api_models
struct_definition
150
rust
PayoutListFilters
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SdkNextActionData { "type": "object", "required": [ "next_action" ], "properties": { "next_action": { "$ref": "#/components/schemas/NextActionCall" }, "order_id": { "type": "string", "nullable": true } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
84
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SdkNextActionData" ]
null
null
null
null
pub fn from_storage(intent: &'a PaymentIntent, infra_values: Option<Value>) -> Self { let PaymentIntent { id, merchant_id, status, amount_details, amount_captured, customer_id, description, return_url, me...
crates/router/src/services/kafka/payment_intent.rs
router
function_signature
943
rust
null
null
null
null
from_storage
null
null
null
null
null
null
null
pub struct PaymentMetricsAccumulator { pub payment_success_rate: SuccessRateAccumulator, pub payment_count: CountAccumulator, pub payment_success: CountAccumulator, pub processed_amount: ProcessedAmountAccumulator, pub avg_ticket_size: AverageAccumulator, pub payment_error_message: ErrorDistribu...
crates/analytics/src/payments/accumulator.rs
analytics
struct_definition
149
rust
PaymentMetricsAccumulator
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Fiservemea {}
crates/hyperswitch_connectors/src/connectors/fiservemea.rs
hyperswitch_connectors
impl_block
12
rust
null
Fiservemea
api::PaymentToken for
impl api::PaymentToken for for Fiservemea
null
null
null
null
null
null
null
null
File: crates/analytics/src/payment_intents/core.rs Public functions: 3 #![allow(dead_code)] use std::collections::{HashMap, HashSet}; use api_models::analytics::{ payment_intents::{ MetricsBucketResponse, PaymentIntentDimensions, PaymentIntentMetrics, PaymentIntentMetricsBucketIdentifier, }, ...
crates/analytics/src/payment_intents/core.rs
analytics
full_file
3,761
null
null
null
null
null
null
null
null
null
null
null
null
null
impl PaymentMethods { pub fn server(state: AppState) -> Scope { let mut route = web::scope("/v2/payment-methods").app_data(web::Data::new(state)); #[cfg(feature = "olap")] { route = route.service(web::resource("/filter").route( web::get().to( ...
crates/router/src/routes/app.rs
router
impl_block
329
rust
null
PaymentMethods
null
impl PaymentMethods
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Bamboraapac { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&BAMBORAAPAC_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*BAMBORAAPAC_SUPPORTED_PAYMENT_METHODS) } ...
crates/hyperswitch_connectors/src/connectors/bamboraapac.rs
hyperswitch_connectors
impl_block
117
rust
null
Bamboraapac
ConnectorSpecifications for
impl ConnectorSpecifications for for Bamboraapac
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs Public structs: 14 use cards::CardNumber; use common_enums::{enums, AttemptStatus, CaptureMethod, Currency, PaymentMethod}; use common_utils::{errors::ParsingError, ext_traits::Encode}; use error_stack::ResultExt; use hyperswitch_domain_models...
crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs
hyperswitch_connectors
full_file
4,368
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn save_network_token_in_locker( _state: &SessionState, _merchant_context: &domain::MerchantContext, _card_data: &domain::Card, _payment_method_request: api::PaymentMethodCreate, ) -> RouterResult<( Option<api_models::payment_methods::PaymentMethodResponse>, Option<payment_methods::tra...
crates/router/src/core/payments/tokenization.rs
router
function_signature
95
rust
null
null
null
null
save_network_token_in_locker
null
null
null
null
null
null
null
File: crates/storage_impl/src/mock_db/payout_attempt.rs use common_utils::errors::CustomResult; use diesel_models::enums as storage_enums; use hyperswitch_domain_models::payouts::{ payout_attempt::{ PayoutAttempt, PayoutAttemptInterface, PayoutAttemptNew, PayoutAttemptUpdate, }, payouts::Payouts, }...
crates/storage_impl/src/mock_db/payout_attempt.rs
storage_impl
full_file
659
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn validate(&self) -> Result<(), String> { #(#validation_checks)* Ok(()) }
crates/router_derive/src/macros/schema.rs
router_derive
function_signature
24
rust
null
null
null
null
validate
null
null
null
null
null
null
null
pub struct SquareErrorDetails { pub category: Option<String>, pub code: Option<String>, pub detail: Option<String>, }
crates/hyperswitch_connectors/src/connectors/square/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
SquareErrorDetails
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_poll_status( state: SessionState, req: crate::types::api::PollId, merchant_context: domain::MerchantContext, ) -> RouterResponse<PollResponse> { let redis_conn = state .store .get_redis_conn() .change_context(errors::ApiErrorResponse::InternalServerError) ...
crates/router/src/core/poll.rs
router
function_signature
322
rust
null
null
null
null
retrieve_poll_status
null
null
null
null
null
null
null
File: crates/external_services/src/grpc_client/dynamic_routing/elimination_based_client.rs use api_models::routing::{ EliminationAnalyserConfig as EliminationConfig, RoutableConnectorChoice, RoutableConnectorChoiceWithBucketName, }; use common_utils::{ext_traits::OptionExt, transformers::ForeignTryFrom}; pub u...
crates/external_services/src/grpc_client/dynamic_routing/elimination_based_client.rs
external_services
full_file
1,292
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn pg_connection_write<T: crate::DatabaseStore>( store: &T, ) -> errors::CustomResult< PooledConnection<'_, async_bb8_diesel::ConnectionManager<PgConnection>>, crate::errors::StorageError, > { // Since all writes should happen to master DB only choose master DB. let pool = store.get_master...
crates/storage_impl/src/connection.rs
storage_impl
function_signature
102
rust
null
null
null
null
pg_connection_write
null
null
null
null
null
null
null
impl Store { /// # Panics /// /// Panics if there is a failure while obtaining the HashiCorp client using the provided configuration. /// This panic indicates a critical failure in setting up external services, and the application cannot proceed without a valid HashiCorp client. pub async fn new(con...
crates/drainer/src/services.rs
drainer
impl_block
237
rust
null
Store
null
impl Store
null
null
null
null
null
null
null
null
impl PaymentIntentUpdate { pub fn is_confirm_operation(&self) -> bool { match self { Self::Update(value) => value.is_confirm_operation, _ => false, } } }
crates/hyperswitch_domain_models/src/payments/payment_intent.rs
hyperswitch_domain_models
impl_block
43
rust
null
PaymentIntentUpdate
null
impl PaymentIntentUpdate
null
null
null
null
null
null
null
null
impl api::Payment for Noon {}
crates/hyperswitch_connectors/src/connectors/noon.rs
hyperswitch_connectors
impl_block
7
rust
null
Noon
api::Payment for
impl api::Payment for for Noon
null
null
null
null
null
null
null
null
### Refactors - **connector:** [itau] refactor error reason and code mapping for itau ([#5718](https://github.com/juspay/hyperswitch/pull/5718)) ([`f024ffb`](https://github.com/juspay/hyperswitch/commit/f024ffbdb86862175694602755c7b619c734e6b2)) - **customer_v2:** Fixed customer_v2 create panic issue ([#5699](https:/...
CHANGELOG.md#chunk24
null
doc_chunk
8,130
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub trait PaymentMetricAnalytics: LoadRow<PaymentMetricRow> {}
crates/analytics/src/payments/metrics.rs
analytics
trait_definition
14
rust
null
null
PaymentMetricAnalytics
null
null
null
null
null
null
null
null
null
pub struct CoinbasePaymentResponseData { pub id: String, pub code: String, pub name: Option<Secret<String>>, pub utxo: Option<bool>, pub pricing: HashMap<String, OverpaymentAbsoluteThreshold>, pub fee_rate: Option<f64>, pub logo_url: Option<String>, pub metadata: Option<Metadata>, pu...
crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
hyperswitch_connectors
struct_definition
230
rust
CoinbasePaymentResponseData
null
null
null
null
null
null
null
null
null
null
null
pub struct GsmDeleteRequest { /// The connector through which payment has gone through pub connector: String, /// The flow in which the code and message occurred for a connector pub flow: String, /// The sub_flow in which the code and message occurred for a connector pub sub_flow: String, /...
crates/api_models/src/gsm.rs
api_models
struct_definition
98
rust
GsmDeleteRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct ExtendedAuthorizationAppliedBool(bool);
crates/common_types/src/primitive_wrappers.rs
common_types
struct_definition
8
rust
ExtendedAuthorizationAppliedBool
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Nexinets {}
crates/hyperswitch_connectors/src/connectors/nexinets.rs
hyperswitch_connectors
impl_block
9
rust
null
Nexinets
api::Payment for
impl api::Payment for for Nexinets
null
null
null
null
null
null
null
null
pub struct CybersourceAuthorizationOptions { initiator: Option<CybersourcePaymentInitiator>, merchant_intitiated_transaction: Option<MerchantInitiatedTransaction>, ignore_avs_result: Option<bool>, ignore_cv_result: Option<bool>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
52
rust
CybersourceAuthorizationOptions
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/payment_intents/metrics/successful_smart_retries.rs use std::collections::HashSet; use api_models::{ analytics::{ payment_intents::{ PaymentIntentDimensions, PaymentIntentFilters, PaymentIntentMetricsBucketIdentifier, }, Granularity, TimeRange, },...
crates/analytics/src/payment_intents/metrics/successful_smart_retries.rs
analytics
full_file
990
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_with_payment_id_if_present( conn: &PgPooledConn, payment_id: common_utils::id_type::PaymentId, merchant_id: common_utils::id_type::MerchantId, ) -> StorageResult<Option<Self>> { generics::generic_find_one_optional::<<Self as HasTable>::Table, _, _>( conn,...
crates/diesel_models/src/query/fraud_check.rs
diesel_models
function_signature
110
rust
null
null
null
null
get_with_payment_id_if_present
null
null
null
null
null
null
null
File: crates/router/src/core/fraud_check.rs Public functions: 12 use std::fmt::Debug; use api_models::{self, enums as api_enums}; use common_enums::CaptureMethod; use error_stack::ResultExt; use masking::PeekInterface; use router_env::{ logger, tracing::{self, instrument}, }; use self::{ flows::{self as...
crates/router/src/core/fraud_check.rs
router
full_file
6,698
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/common_utils/src/events.rs use serde::Serialize; use crate::{id_type, types::TimeRange}; pub trait ApiEventMetric { fn get_api_event_type(&self) -> Option<ApiEventsType> { None } } #[derive(Clone, Debug, Eq, PartialEq, Serialize)] #[serde(tag = "flow_type", rename_all = "snake_case")] p...
crates/common_utils/src/events.rs
common_utils
full_file
1,322
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct GenerateFingerprintResponsePayload { pub card_fingerprint: String, }
crates/api_models/src/blocklist.rs
api_models
struct_definition
17
rust
GenerateFingerprintResponsePayload
null
null
null
null
null
null
null
null
null
null
null
File: crates/common_utils/src/validation.rs Public functions: 3 //! Custom validations for some shared types. use std::{collections::HashSet, sync::LazyLock}; use error_stack::report; use globset::Glob; use regex::Regex; #[cfg(feature = "logs")] use router_env::logger; use crate::errors::{CustomResult, ValidationE...
crates/common_utils/src/validation.rs
common_utils
full_file
1,185
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_kind(&self) -> RoutingAlgorithmKind { match self { Self::Single(_) => RoutingAlgorithmKind::Single, Self::Priority(_) => RoutingAlgorithmKind::Priority, Self::VolumeSplit(_) => RoutingAlgorithmKind::VolumeSplit, Self::Advanced(_) => RoutingAlgorithmKind...
crates/api_models/src/routing.rs
api_models
function_signature
88
rust
null
null
null
null
get_kind
null
null
null
null
null
null
null
impl api::RefundSync for Gpayments {}
crates/hyperswitch_connectors/src/connectors/gpayments.rs
hyperswitch_connectors
impl_block
10
rust
null
Gpayments
api::RefundSync for
impl api::RefundSync for for Gpayments
null
null
null
null
null
null
null
null
pub struct RefundSyncResponse { result: NoonRefundSyncResponseResult, result_code: u32, class_description: String, message: String, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
RefundSyncResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/configs.rs pub use hyperswitch_domain_models::connector_endpoints::Connectors;
crates/hyperswitch_interfaces/src/configs.rs
hyperswitch_interfaces
full_file
27
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_dispute_evidence( state: web::Data<AppState>, req: HttpRequest, path: web::Path<String>, ) -> HttpResponse { let flow = Flow::RetrieveDisputeEvidence; let dispute_id = dispute_types::DisputeId { dispute_id: path.into_inner(), }; Box::pin(api::server_wrap( ...
crates/router/src/routes/disputes.rs
router
function_signature
235
rust
null
null
null
null
retrieve_dispute_evidence
null
null
null
null
null
null
null
pub async fn connector_list() {}
crates/openapi/src/routes/profile.rs
openapi
function_signature
7
rust
null
null
null
null
connector_list
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/globepay.rs
hyperswitch_connectors
function_signature
27
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl ConnectorAuthentication { /// # Panics /// /// Will panic if `CONNECTOR_AUTH_FILE_PATH` env is not set #[allow(clippy::expect_used)] pub fn new() -> Self { // Do `export CONNECTOR_AUTH_FILE_PATH="/hyperswitch/crates/router/tests/connectors/sample_auth.toml"` // before running te...
crates/test_utils/src/connector_auth.rs
test_utils
impl_block
148
rust
null
ConnectorAuthentication
null
impl ConnectorAuthentication
null
null
null
null
null
null
null
null
impl Mpgs { pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/mpgs.rs
hyperswitch_connectors
impl_block
35
rust
null
Mpgs
null
impl Mpgs
null
null
null
null
null
null
null
null
impl api::PaymentSession for Taxjar {}
crates/hyperswitch_connectors/src/connectors/taxjar.rs
hyperswitch_connectors
impl_block
9
rust
null
Taxjar
api::PaymentSession for
impl api::PaymentSession for for Taxjar
null
null
null
null
null
null
null
null
impl UploadFile for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
9
rust
null
Worldpayvantiv
UploadFile for
impl UploadFile for for Worldpayvantiv
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ApplePayRegularBillingDetails { "type": "object", "required": [ "label" ], "properties": { "label": { "type": "string", "description": "The label that Apple Pay displays to the user in the payment sheet with the recurring details" }, "recurring_...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
315
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ApplePayRegularBillingDetails" ]
null
null
null
null
pub async fn routing_retrieve_default_config( state: web::Data<AppState>, req: HttpRequest, transaction_type: &enums::TransactionType, ) -> impl Responder { Box::pin(oss_api::server_wrap( Flow::RoutingRetrieveDefaultConfig, state, &req, (), |state, auth: auth::Aut...
crates/router/src/routes/routing.rs
router
function_signature
216
rust
null
null
null
null
routing_retrieve_default_config
null
null
null
null
null
null
null
impl api::RefundExecute for Moneris {}
crates/hyperswitch_connectors/src/connectors/moneris.rs
hyperswitch_connectors
impl_block
11
rust
null
Moneris
api::RefundExecute for
impl api::RefundExecute for for Moneris
null
null
null
null
null
null
null
null
/// Create a [`Histogram`][Histogram] f64 metric with the specified name and an optional description, /// associated with the specified meter. Note that the meter must be a valid [`Meter`][Meter]. /// /// [Histogram]: opentelemetry::metrics::Histogram /// [Meter]: opentelemetry::metrics::Meter #[macro_export] macro_rul...
crates/router_env/src/metrics.rs
router_env
macro
297
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
impl StructType { /// Generates the fields for temporary structs which consists of the fields that should be /// encrypted/decrypted fn generate_struct_fields(self, fields: &[(Field, Ident)]) -> Vec<proc_macro2::TokenStream> { fields .iter() .map(|(field, inner_ty)| { ...
crates/router_derive/src/macros/to_encryptable.rs
router_derive
impl_block
916
rust
null
StructType
null
impl StructType
null
null
null
null
null
null
null
null
pub async fn update_payment_processor_token_schedule_time( state: &SessionState, connector_customer_id: &str, payment_processor_token: &str, schedule_time: Option<PrimitiveDateTime>, ) -> CustomResult<bool, errors::StorageError> { let updated_token = Self::get_con...
crates/router/src/types/storage/revenue_recovery_redis_operation.rs
router
function_signature
346
rust
null
null
null
null
update_payment_processor_token_schedule_time
null
null
null
null
null
null
null
Documentation: api-reference/v2/profile/merchant-connector--list.mdx # Type: Doc File --- openapi: get /v2/profiles/{id}/connector-accounts ---
api-reference/v2/profile/merchant-connector--list.mdx
null
doc_file
40
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct StripebillingRouterData<T> { pub amount: StringMinorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc. pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
hyperswitch_connectors
struct_definition
50
rust
StripebillingRouterData
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentsPreProcessing for Paysafe {}
crates/hyperswitch_connectors/src/connectors/paysafe.rs
hyperswitch_connectors
impl_block
10
rust
null
Paysafe
api::PaymentsPreProcessing for
impl api::PaymentsPreProcessing for for Paysafe
null
null
null
null
null
null
null
null
pub struct RefundsMetricsResponse<T> { pub query_data: Vec<T>, pub meta_data: [RefundsAnalyticsMetadata; 1], }
crates/api_models/src/analytics.rs
api_models
struct_definition
32
rust
RefundsMetricsResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Payload {}
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
impl_block
10
rust
null
Payload
api::MandateSetup for
impl api::MandateSetup for for Payload
null
null
null
null
null
null
null
null
pub struct InespayPaymentsRequest { description: String, amount: StringMinorUnit, reference: String, debtor_account: Option<Secret<String>>, success_link_redirect: Option<String>, notif_url: Option<String>, }
crates/hyperswitch_connectors/src/connectors/inespay/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
InespayPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MerchantAccountCreate { "type": "object", "required": [ "merchant_id" ], "properties": { "merchant_id": { "type": "string", "description": "The identifier for the Merchant Account", "example": "y3oqhf46pyzuxjbcn2giaqnb44", "maxLength": 64, ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
1,135
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantAccountCreate" ]
null
null
null
null
pub struct FrmFulfillmentSignifydApiResponse { pub order_id: String, pub shipment_ids: Vec<String>, }
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs
hyperswitch_connectors
struct_definition
27
rust
FrmFulfillmentSignifydApiResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/services/kafka.rs Public functions: 17 Public structs: 2 use std::{collections::HashMap, sync::Arc}; use common_utils::errors::CustomResult; use error_stack::{report, ResultExt}; use events::{EventsError, Message, MessagingInterface}; use num_traits::ToPrimitive; use rdkafka::{ config::F...
crates/router/src/services/kafka.rs
router
full_file
5,668
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalZeroMandateRequest { payment_source: ZeroMandateSourceItem, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
PaypalZeroMandateRequest
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::PaymentSecureLinkInitiate; let (merchant_id, payment_id) = path.into_inner(); let payload = api_models::payments::PaymentLinkInitiateRequest { payment_id, merchant_id: merchant_id.clone(), }; let headers = req.headers(); Box::pin(api::server_wrap...
crates/router/src/routes/payment_link.rs
router
impl_block
202
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.TotalEventsResponse { "type": "object", "description": "The response body of list initial delivery attempts api call.", "required": [ "events", "total_count" ], "properties": { "events": { "type": "array", "items": { "$ref": "#/components/...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
139
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "TotalEventsResponse" ]
null
null
null
null
File: crates/common_types/src/domain.rs Public functions: 6 Public structs: 8 //! Common types use std::collections::HashMap; use common_enums::enums; use common_utils::{impl_to_sql_from_sql_json, types::MinorUnit}; use diesel::{sql_types::Jsonb, AsExpression, FromSqlRow}; #[cfg(feature = "v2")] use masking::Secre...
crates/common_types/src/domain.rs
common_types
full_file
1,572
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AchTransfer { "type": "object", "required": [ "account_number", "bank_name", "routing_number", "swift_code" ], "properties": { "account_number": { "type": "string", "example": "122385736258" }, "bank_name": { "type": "string" ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
151
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AchTransfer" ]
null
null
null
null
pub struct GenerateReportRequest { pub request: ReportRequest, pub merchant_id: Option<common_utils::id_type::MerchantId>, pub auth: AuthInfo, pub email: Secret<String, EmailStrategy>, }
crates/api_models/src/analytics.rs
api_models
struct_definition
47
rust
GenerateReportRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct RoutingConfigRequest { pub name: Option<String>, pub description: Option<String>, pub algorithm: Option<StaticRoutingAlgorithm>, #[schema(value_type = Option<String>)] pub profile_id: Option<common_utils::id_type::ProfileId>, pub transaction_type: Option<TransactionType>, }
crates/api_models/src/routing.rs
api_models
struct_definition
66
rust
RoutingConfigRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct SkrillData { skrill: SkrillDetails, #[serde(rename = "type")] payment_method_type: AirwallexPaymentType, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
SkrillData
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/recon.rs Public functions: 4 use api_models::recon as recon_api; #[cfg(feature = "email")] use common_utils::{ext_traits::AsyncExt, types::user::ThemeLineage}; use error_stack::ResultExt; #[cfg(feature = "email")] use masking::{ExposeInterface, PeekInterface, Secret}; #[cfg(feature = "em...
crates/router/src/core/recon.rs
router
full_file
2,071
null
null
null
null
null
null
null
null
null
null
null
null
null
impl EuclidDirFilter for SurchargeDecisionConfigs { const ALLOWED: &'static [DirKeyKind] = &[ DirKeyKind::PaymentMethod, DirKeyKind::MetaData, DirKeyKind::PaymentAmount, DirKeyKind::PaymentCurrency, DirKeyKind::BillingCountry, DirKeyKind::CardNetwork, DirKeyKi...
crates/api_models/src/surcharge_decision_configs.rs
api_models
impl_block
139
rust
null
SurchargeDecisionConfigs
EuclidDirFilter for
impl EuclidDirFilter for for SurchargeDecisionConfigs
null
null
null
null
null
null
null
null
pub struct Payments;
crates/router/src/routes/app.rs
router
struct_definition
4
rust
Payments
null
null
null
null
null
null
null
null
null
null
null
pub async fn authentication_post_sync_core( state: SessionState, merchant_context: domain::MerchantContext, req: AuthenticationSyncPostUpdateRequest, ) -> RouterResponse<()> { let authentication_id = req.authentication_id; let merchant_account = merchant_context.get_merchant_account(); let merch...
crates/router/src/core/unified_authentication_service.rs
router
function_signature
583
rust
null
null
null
null
authentication_post_sync_core
null
null
null
null
null
null
null
pub struct SkrillDetails { shopper_name: Secret<String>, shopper_email: Email, country_code: enums::CountryAlpha2, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
SkrillDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct TaxjarAuthType { pub(super) api_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/taxjar/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
TaxjarAuthType
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Juspaythreedsserver { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNot...
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
hyperswitch_connectors
impl_block
215
rust
null
Juspaythreedsserver
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Juspaythreedsserver
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ProfileDefaultRoutingConfig { "type": "object", "required": [ "profile_id", "connectors" ], "properties": { "profile_id": { "type": "string" }, "connectors": { "type": "array", "items": { "$ref": "#/components/schemas/RoutableC...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
98
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ProfileDefaultRoutingConfig" ]
null
null
null
null
impl ApiEventMetric for ToggleBlocklistResponse {}
crates/api_models/src/blocklist.rs
api_models
impl_block
10
rust
null
ToggleBlocklistResponse
ApiEventMetric for
impl ApiEventMetric for for ToggleBlocklistResponse
null
null
null
null
null
null
null
null
pub async fn get_payment_method_data_from_locker( state: &routes::SessionState, lookup_key: &str, merchant_key_store: &domain::MerchantKeyStore, ) -> RouterResult<(Option<domain::PaymentMethodData>, SupplementaryVaultData)> { let de_tokenize = get_tokenized_data(state, lo...
crates/router/src/core/payment_methods/vault.rs
router
function_signature
150
rust
null
null
null
null
get_payment_method_data_from_locker
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/router_flow_types/revenue_recovery.rs Public structs: 3 #[derive(Debug, Clone)] pub struct BillingConnectorPaymentsSync; #[derive(Debug, Clone)] pub struct RecoveryRecordBack; #[derive(Debug, Clone)] pub struct BillingConnectorInvoiceSync;
crates/hyperswitch_domain_models/src/router_flow_types/revenue_recovery.rs
hyperswitch_domain_models
full_file
62
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> Self { Self { state: std::marker::PhantomData, customer: None, card: None, card_cvc: None, network_token: None, stored_card: None, stored_token: None, payment_method_response: None, card_t...
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
function_signature
86
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct VaultTransactionBody { amount: StringMajorUnit, merchant_account_id: Secret<String>, vault_payment_method_after_transacting: TransactionTiming, #[serde(skip_serializing_if = "Option::is_none")] customer_details: Option<CustomerBody>, order_id: String, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
61
rust
VaultTransactionBody
null
null
null
null
null
null
null
null
null
null
null
pub fn parent_group_info_request_to_permission_groups( parent_groups: &[role_api::ParentGroupInfoRequest], ) -> Result<Vec<PermissionGroup>, UserErrors> { parent_groups .iter() .try_fold(Vec::new(), |mut permission_groups, parent_group| { let scopes = &parent_group.scopes; ...
crates/router/src/utils/user_role.rs
router
function_signature
186
rust
null
null
null
null
parent_group_info_request_to_permission_groups
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SamsungPayProtocolType { "type": "string", "enum": [ "PROTOCOL3DS" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
37
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SamsungPayProtocolType" ]
null
null
null
null
pub struct RefundMetadataUpdateRequest { /// An arbitrary string attached to the object. Often useful for displaying to users and your customer support executive #[schema(max_length = 255, example = "Customer returned the product")] pub reason: Option<String>, /// You can specify up to 50 keys, with ke...
crates/api_models/src/refunds.rs
api_models
struct_definition
149
rust
RefundMetadataUpdateRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct SurchargeDecisionManagerRecord { pub name: String, pub merchant_surcharge_configs: MerchantSurchargeConfigs, pub algorithm: Program<SurchargeDecisionConfigs>, pub created_at: i64, pub modified_at: i64, }
crates/api_models/src/surcharge_decision_configs.rs
api_models
struct_definition
56
rust
SurchargeDecisionManagerRecord
null
null
null
null
null
null
null
null
null
null
null
pub struct RoutingVolumeSplit { pub routing_type: RoutingType, pub split: u8, }
crates/api_models/src/routing.rs
api_models
struct_definition
22
rust
RoutingVolumeSplit
null
null
null
null
null
null
null
null
null
null
null
File: crates/api_models/src/events/connector_onboarding.rs use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::connector_onboarding::{ ActionUrlRequest, ActionUrlResponse, OnboardingStatus, OnboardingSyncRequest, ResetTrackingIdRequest, }; common_utils::impl_api_event_type!( Miscellaneo...
crates/api_models/src/events/connector_onboarding.rs
api_models
full_file
102
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentsIncrementalAuthorizationRequest { "type": "object", "required": [ "amount" ], "properties": { "amount": { "type": "integer", "format": "int64", "description": "The total amount including previously authorized amount and additional amount",...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
121
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentsIncrementalAuthorizationRequest" ]
null
null
null
null
pub struct PaymentMethodListRequest { /// This is a 15 minute expiry token which shall be used from the client to authenticate and perform sessions from the SDK #[schema(max_length = 30, min_length = 30, example = "secret_k2uj3he2893eiu2d")] pub client_secret: Option<String>, /// The two-letter ISO cur...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
358
rust
PaymentMethodListRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn construct_router_data_to_update_calculated_tax<'a, F, T>( state: &'a SessionState, payment_data: PaymentData<F>, connector_id: &str, merchant_context: &domain::MerchantContext, customer: &'a Option<domain::Customer>, merchant_connector_account: &helpers::MerchantConnectorAccountType...
crates/router/src/core/payments/transformers.rs
router
function_signature
891
rust
null
null
null
null
construct_router_data_to_update_calculated_tax
null
null
null
null
null
null
null
impl api::payments::MandateSetup for Prophetpay {}
crates/hyperswitch_connectors/src/connectors/prophetpay.rs
hyperswitch_connectors
impl_block
13
rust
null
Prophetpay
api::payments::MandateSetup for
impl api::payments::MandateSetup for for Prophetpay
null
null
null
null
null
null
null
null
pub struct SilverflowPaymentsRequest { merchant_acceptor_resolver: MerchantAcceptorResolver, card: Card, amount: Amount, #[serde(rename = "type")] payment_type: PaymentType, clearing_mode: String, }
crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
hyperswitch_connectors
struct_definition
50
rust
SilverflowPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Elavon {}
crates/hyperswitch_connectors/src/connectors/elavon.rs
hyperswitch_connectors
impl_block
10
rust
null
Elavon
api::PaymentVoid for
impl api::PaymentVoid for for Elavon
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/consts.rs //! connector integration related const declarations /// No error message string const pub const NO_ERROR_MESSAGE: &str = "No error message"; /// No error code string const pub const NO_ERROR_CODE: &str = "No error code"; /// Accepted format for request pub const AC...
crates/hyperswitch_interfaces/src/consts.rs
hyperswitch_interfaces
full_file
110
null
null
null
null
null
null
null
null
null
null
null
null
null