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
three_ds: common_enums::FeatureStatus::Supported, no_three_ds: common_enums::FeatureStatus::Supported, supported_card_networks: supported_card_network.clone(), } }), ), ...
crates/hyperswitch_connectors/src/connectors/archipel.rs#chunk1
hyperswitch_connectors
chunk
478
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ConnectorAuthentication { pub aci: Option<BodyKey>, #[cfg(not(feature = "payouts"))] pub adyen: Option<BodyKey>, #[cfg(feature = "payouts")] pub adyenplatform: Option<HeaderKey>, pub affirm: Option<HeaderKey>, #[cfg(feature = "payouts")] pub adyen: Option<SignatureKey>, #[...
crates/test_utils/src/connector_auth.rs
test_utils
struct_definition
1,407
rust
ConnectorAuthentication
null
null
null
null
null
null
null
null
null
null
null
pub struct TokenizedBankTransferValue1 { pub data: BankTransferData, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
18
rust
TokenizedBankTransferValue1
null
null
null
null
null
null
null
null
null
null
null
pub fn get_webhook_object_from_body(body: &[u8]) -> CustomResult<Self, errors::ConnectorError> { let webhook_body = body .parse_struct::<Self>("RecurlyWebhookBody") .change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?; Ok(webhook_body) }
crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs
hyperswitch_connectors
function_signature
70
rust
null
null
null
null
get_webhook_object_from_body
null
null
null
null
null
null
null
pub struct RefundResponse { /// Global Refund Id for the refund #[schema(value_type = String)] pub id: common_utils::id_type::GlobalRefundId, /// The payment id against which refund is initiated #[schema(value_type = String)] pub payment_id: common_utils::id_type::GlobalPaymentId, /// Unique...
crates/api_models/src/refunds.rs
api_models
struct_definition
534
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct PayoutAmount { value: StringMajorUnit, currency: storage_enums::Currency, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
PayoutAmount
null
null
null
null
null
null
null
null
null
null
null
pub struct CardDetail { /// Card Number #[schema(value_type = String,example = "4111111145551142")] pub card_number: CardNumber, /// Card Expiry Month #[schema(value_type = String,example = "10")] pub card_exp_month: masking::Secret<String>, /// Card Expiry Year #[schema(value_type = S...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
267
rust
CardDetail
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::AuthenticationCreate; Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inner(), |state, auth: auth::AuthenticationData, req, _| { let merchant_context = domain::MerchantContext::NormalMerchant(Box::new( ...
crates/router/src/routes/authentication.rs
router
impl_block
147
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub fn is_refund_event(transaction_type: &GetnetTransactionType) -> bool { matches!( transaction_type, GetnetTransactionType::RefundPurchase | GetnetTransactionType::RefundCapture ) }
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
function_signature
47
rust
null
null
null
null
is_refund_event
null
null
null
null
null
null
null
pub struct ClientTokenResponse { data: ClientTokenData, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
ClientTokenResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn get_payment_method_types_supporting_extended_authorization( self, ) -> HashSet<PaymentMethodType> { HashSet::from([PaymentMethodType::Credit, PaymentMethodType::Debit]) }
crates/common_enums/src/connector_enums.rs
common_enums
function_signature
45
rust
null
null
null
null
get_payment_method_types_supporting_extended_authorization
null
null
null
null
null
null
null
///Get GlobalTokenId from a string pub fn from_string(token_string: &str) -> CustomResult<Self, ValidationError> { let token = super::GlobalId::from_string(Cow::Owned(token_string.to_string())) .change_context(ValidationError::IncorrectValueProvided { field_name: "GlobalTokenId",...
crates/common_utils/src/id_type/global_id/token.rs
common_utils
function_signature
79
rust
null
null
null
null
from_string
null
null
null
null
null
null
null
pub struct PaytmCard { number: cards::CardNumber, expiry_month: Secret<String>, expiry_year: Secret<String>, cvc: Secret<String>, complete: bool, }
crates/hyperswitch_connectors/src/connectors/paytm/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
PaytmCard
null
null
null
null
null
null
null
null
null
null
null
pub async fn connector_selection<F, D>( state: &SessionState, merchant_context: &domain::MerchantContext, business_profile: &domain::Profile, payment_data: &mut D, mandate_type: Option<api::MandateTransactionType>, ) -> RouterResult<ConnectorCallType> where F: Send + Clone, D: OperationSessi...
crates/router/src/core/payments.rs
router
function_signature
364
rust
null
null
null
null
connector_selection
null
null
null
null
null
null
null
pub async fn get_auth_event_metrics( &self, metric: &AuthEventMetrics, dimensions: &[AuthEventDimensions], auth: &AuthInfo, filters: &AuthEventFilters, granularity: Option<Granularity>, time_range: &TimeRange, ) -> types::MetricsResult<HashSet<(AuthEventMetric...
crates/analytics/src/lib.rs
analytics
function_signature
225
rust
null
null
null
null
get_auth_event_metrics
null
null
null
null
null
null
null
pub struct FiservOrderRequest { order_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
FiservOrderRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct LogSpanInitializerMiddleware<S> { service: S, }
crates/router/src/middleware.rs
router
struct_definition
15
rust
LogSpanInitializerMiddleware
null
null
null
null
null
null
null
null
null
null
null
pub trait Capturable { fn get_captured_amount<F>( &self, _amount_captured: Option<i64>, _payment_data: &PaymentData<F>, ) -> Option<i64> where F: Clone, { None } fn get_amount_capturable<F>( &self, _payment_data: &PaymentData<F>, _g...
crates/router/src/types.rs
router
trait_definition
133
rust
null
null
Capturable
null
null
null
null
null
null
null
null
null
impl GlobalCustomerId { /// Get string representation of the id pub fn get_string_repr(&self) -> &str { self.0.get_string_repr() } /// Generate a new GlobalCustomerId from a cell id pub fn generate(cell_id: &crate::id_type::CellId) -> Self { let global_id = super::GlobalId::generate...
crates/common_utils/src/id_type/global_id/customer.rs
common_utils
impl_block
96
rust
null
GlobalCustomerId
null
impl GlobalCustomerId
null
null
null
null
null
null
null
null
/// Finds all themes that match the specified lineage hierarchy. pub async fn find_all_by_lineage_hierarchy( conn: &PgPooledConn, lineage: ThemeLineage, ) -> StorageResult<Vec<Self>> { let filter = Self::lineage_hierarchy_filter(lineage); let query = <Self as HasTable>::table()....
crates/diesel_models/src/query/user/theme.rs
diesel_models
function_signature
187
rust
null
null
null
null
find_all_by_lineage_hierarchy
null
null
null
null
null
null
null
pub struct Bluesnap { amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), amount_converter_to_string_minor_unit: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync), amount_converter_float_major_unit: &'static (dyn AmountConvertor<Output = FloatMajo...
crates/hyperswitch_connectors/src/connectors/bluesnap.rs
hyperswitch_connectors
struct_definition
78
rust
Bluesnap
null
null
null
null
null
null
null
null
null
null
null
impl Hash for DisputeMetricsBucketIdentifier { fn hash<H: Hasher>(&self, state: &mut H) { self.dispute_stage.hash(state); self.connector.hash(state); self.currency.hash(state); self.time_bucket.hash(state); } }
crates/api_models/src/analytics/disputes.rs
api_models
impl_block
56
rust
null
DisputeMetricsBucketIdentifier
Hash for
impl Hash for for DisputeMetricsBucketIdentifier
null
null
null
null
null
null
null
null
pub fn get_payment_intent_metrics_info() -> Vec<NameDescription> { PaymentIntentMetrics::iter().map(Into::into).collect() }
crates/analytics/src/utils.rs
analytics
function_signature
31
rust
null
null
null
null
get_payment_intent_metrics_info
null
null
null
null
null
null
null
pub async fn perform_surcharge_decision_management_for_saved_cards( state: &SessionState, algorithm_ref: routing::RoutingAlgorithmRef, payment_attempt: &storage::PaymentAttempt, payment_intent: &storage::PaymentIntent, customer_payment_method_list: &mut [api_models::payment_methods::CustomerPaymentM...
crates/router/src/core/payment_methods/surcharge_decision_configs.rs
router
function_signature
598
rust
null
null
null
null
perform_surcharge_decision_management_for_saved_cards
null
null
null
null
null
null
null
pub fn as_map(&self) -> &HashMap<String, String> { &self.0 }
crates/api_models/src/proxy.rs
api_models
function_signature
23
rust
null
null
null
null
as_map
null
null
null
null
null
null
null
pub(super) async fn generic_filter<T, P, O, R>( conn: &PgPooledConn, predicate: P, limit: Option<i64>, offset: Option<i64>, order: Option<O>, ) -> StorageResult<Vec<R>> where T: HasTable<Table = T> + Table + BoxedDsl<'static, Pg> + GetPrimaryKey + 'static, IntoBoxed<'static, T, Pg>: FilterDs...
crates/diesel_models/src/query/generics.rs
diesel_models
function_signature
394
rust
null
null
null
null
generic_filter
null
null
null
null
null
null
null
/// Get the 2-digit expiration year from the Google Pay pre-decrypt data pub fn get_two_digit_expiry_year(&self) -> Result<Secret<String>, errors::ValidationError> { let binding = self.card_exp_year.clone(); let year = binding.peek(); Ok(Secret::new( year.get(year.len() - 2..) ...
crates/common_types/src/payments.rs
common_types
function_signature
109
rust
null
null
null
null
get_two_digit_expiry_year
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Stripebilling {}
crates/hyperswitch_connectors/src/connectors/stripebilling.rs
hyperswitch_connectors
impl_block
9
rust
null
Stripebilling
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Stripebilling
null
null
null
null
null
null
null
null
impl ConnectorCommon for Ebanx { fn id(&self) -> &'static str { "ebanx" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a Co...
crates/hyperswitch_connectors/src/connectors/ebanx.rs
hyperswitch_connectors
impl_block
288
rust
null
Ebanx
ConnectorCommon for
impl ConnectorCommon for for Ebanx
null
null
null
null
null
null
null
null
impl ReverseLookupInterface for KafkaStore { async fn insert_reverse_lookup( &self, new: ReverseLookupNew, storage_scheme: MerchantStorageScheme, ) -> CustomResult<ReverseLookup, errors::StorageError> { self.diesel_store .insert_reverse_lookup(new, storage_scheme) ...
crates/router/src/db/kafka_store.rs
router
impl_block
138
rust
null
KafkaStore
ReverseLookupInterface for
impl ReverseLookupInterface for for KafkaStore
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Opayo {}
crates/hyperswitch_connectors/src/connectors/opayo.rs
hyperswitch_connectors
impl_block
9
rust
null
Opayo
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Opayo
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AuthenticationType { "type": "string", "description": "Specifies the type of cardholder authentication to be applied for a payment.\n\n- `ThreeDs`: Requests 3D Secure (3DS) authentication. If the card is enrolled, 3DS authentication will be activated, potentially shifting char...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
173
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AuthenticationType" ]
null
null
null
null
pub async fn update_payment_method_core( state: &SessionState, merchant_context: &domain::MerchantContext, profile: &domain::Profile, request: api::PaymentMethodUpdate, payment_method_id: &id_type::GlobalPaymentMethodId, ) -> RouterResult<api::PaymentMethodResponse> { let db = state.store.as_ref...
crates/router/src/core/payment_methods.rs
router
function_signature
753
rust
null
null
null
null
update_payment_method_core
null
null
null
null
null
null
null
pub fn build(self) -> cards_info_api_types::CardInfoMigrateResponseRecord { match self.card_info { Some(card_info) => cards_info_api_types::CardInfoMigrateResponseRecord { card_iin: Some(card_info.card_iin), card_issuer: card_info.card_issuer, card_net...
crates/router/src/core/cards_info.rs
router
function_signature
180
rust
null
null
null
null
build
null
null
null
null
null
null
null
pub struct NoEmailClient {}
crates/external_services/src/email/no_email.rs
external_services
struct_definition
6
rust
NoEmailClient
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Digitalvirgo { fn id(&self) -> &'static str { "digitalvirgo" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, conn...
crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs
hyperswitch_connectors
impl_block
484
rust
null
Digitalvirgo
ConnectorCommon for
impl ConnectorCommon for for Digitalvirgo
null
null
null
null
null
null
null
null
pub struct PlaidBankAccountCredentialsResponse { pub accounts: Vec<PlaidBankAccountCredentialsAccounts>, pub numbers: PlaidBankAccountCredentialsNumbers, // pub item: PlaidBankAccountCredentialsItem, pub request_id: String, }
crates/pm_auth/src/connector/plaid/transformers.rs
pm_auth
struct_definition
53
rust
PlaidBankAccountCredentialsResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.DokuBankTransferInstructions { "type": "object", "required": [ "expires_at", "reference", "instructions_url" ], "properties": { "expires_at": { "type": "string", "example": "1707091200000" }, "reference": { "type": "string", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
132
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "DokuBankTransferInstructions" ]
null
null
null
null
pub struct ThunesRouterData<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/thunes/transformers.rs
hyperswitch_connectors
struct_definition
50
rust
ThunesRouterData
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Jpmorgan {}
crates/hyperswitch_connectors/src/connectors/jpmorgan.rs
hyperswitch_connectors
impl_block
10
rust
null
Jpmorgan
api::PaymentToken for
impl api::PaymentToken for for Jpmorgan
null
null
null
null
null
null
null
null
pub struct MerchantConnectorAccountFeatureMetadata { pub revenue_recovery: Option<RevenueRecoveryMetadata>, }
crates/diesel_models/src/merchant_connector_account.rs
diesel_models
struct_definition
21
rust
MerchantConnectorAccountFeatureMetadata
null
null
null
null
null
null
null
null
null
null
null
pub trait RefundMetricAnalytics: LoadRow<RefundMetricRow> {}
crates/analytics/src/refunds/metrics.rs
analytics
trait_definition
16
rust
null
null
RefundMetricAnalytics
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/metrics.rs use router_env::{global_meter, histogram_metric_f64, histogram_metric_u64}; global_meter!(GLOBAL_METER, "ROUTER_API"); histogram_metric_f64!(METRIC_FETCH_TIME, GLOBAL_METER); histogram_metric_u64!(BUCKETS_FETCHED, GLOBAL_METER); pub mod request;
crates/analytics/src/metrics.rs
analytics
full_file
78
null
null
null
null
null
null
null
null
null
null
null
null
null
impl FileMetadata { pub async fn find_by_merchant_id_file_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, file_id: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::merchant...
crates/diesel_models/src/query/file.rs
diesel_models
impl_block
364
rust
null
FileMetadata
null
impl FileMetadata
null
null
null
null
null
null
null
null
impl ProfileNew { #[cfg(feature = "v1")] pub fn server(state: AppState) -> Scope { web::scope("/account/{account_id}/profile") .app_data(web::Data::new(state)) .service( web::resource("").route(web::get().to(profiles::profiles_list_at_profile_level)), ...
crates/router/src/routes/app.rs
router
impl_block
145
rust
null
ProfileNew
null
impl ProfileNew
null
null
null
null
null
null
null
null
pub struct DynamicRoutingUpdateConfigQuery { #[schema(value_type = String)] pub algorithm_id: common_utils::id_type::RoutingId, #[schema(value_type = String)] pub profile_id: common_utils::id_type::ProfileId, }
crates/api_models/src/routing.rs
api_models
struct_definition
53
rust
DynamicRoutingUpdateConfigQuery
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AliPayQr { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
23
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AliPayQr" ]
null
null
null
null
impl Webhooks { pub fn server(config: routes::AppState) -> Scope { web::scope("/webhooks") .app_data(web::Data::new(config)) .service( web::resource("/{merchant_id}/{connector_name}") .route( web::post().to(webhooks::receive...
crates/router/src/compatibility/stripe/app.rs
router
impl_block
112
rust
null
Webhooks
null
impl Webhooks
null
null
null
null
null
null
null
null
pub struct KlarnaSessionRequest { intent: KlarnaSessionIntent, purchase_country: enums::CountryAlpha2, purchase_currency: enums::Currency, order_amount: MinorUnit, order_lines: Vec<OrderLines>, shipping_address: Option<KlarnaShippingAddress>, }
crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs
hyperswitch_connectors
struct_definition
60
rust
KlarnaSessionRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/authentication/types.rs use error_stack::{Report, ResultExt}; pub use hyperswitch_domain_models::router_request_types::authentication::{ AcquirerDetails, ExternalThreeDSConnectorMetadata, PreAuthenticationData, ThreeDsMethodData, }; use crate::{ core::errors, types::{storage, ...
crates/router/src/core/authentication/types.rs
router
full_file
298
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn payments_confirm( state: web::Data<app::AppState>, req: actix_web::HttpRequest, json_payload: web::Json<payment_types::PaymentsRequest>, path: web::Path<common_utils::id_type::PaymentId>, ) -> impl Responder { let flow = Flow::PaymentsConfirm; let mut payload = json_payload.into_inn...
crates/router/src/routes/payments.rs
router
function_signature
514
rust
null
null
null
null
payments_confirm
null
null
null
null
null
null
null
pub struct Refunds;
crates/router/src/compatibility/stripe/app.rs
router
struct_definition
5
rust
Refunds
null
null
null
null
null
null
null
null
null
null
null
pub async fn routing_retrieve_linked_config() {}
crates/openapi/src/routes/profile.rs
openapi
function_signature
10
rust
null
null
null
null
routing_retrieve_linked_config
null
null
null
null
null
null
null
pub struct PlaidAmount { currency: Currency, value: FloatMajorUnit, }
crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
PlaidAmount
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentsCompleteAuthorize for Nmi {}
crates/hyperswitch_connectors/src/connectors/nmi.rs
hyperswitch_connectors
impl_block
10
rust
null
Nmi
api::PaymentsCompleteAuthorize for
impl api::PaymentsCompleteAuthorize for for Nmi
null
null
null
null
null
null
null
null
impl<E> NewUserRole<E> where E: Clone + Into<EntityInfo>, { fn convert_to_new_v2_role(self, entity: EntityInfo) -> UserRoleNew { UserRoleNew { user_id: self.user_id, role_id: self.role_id, status: self.status, created_by: self.created_by, last_...
crates/router/src/types/domain/user.rs
router
impl_block
245
rust
null
NewUserRole
null
impl NewUserRole
null
null
null
null
null
null
null
null
pub async fn create_specific_dynamic_routing( state: SessionState, merchant_context: domain::MerchantContext, feature_to_enable: routing::DynamicRoutingFeatures, profile_id: common_utils::id_type::ProfileId, dynamic_routing_type: routing::DynamicRoutingType, payload: routing_types::DynamicRoutin...
crates/router/src/core/routing.rs
router
function_signature
483
rust
null
null
null
null
create_specific_dynamic_routing
null
null
null
null
null
null
null
pub struct RoutingDictionaryRecord { #[schema(value_type = String)] pub id: common_utils::id_type::RoutingId, #[schema(value_type = String)] pub profile_id: common_utils::id_type::ProfileId, pub name: String, pub kind: RoutingAlgorithmKind, pub description: String, pub created_at: i64, ...
crates/api_models/src/routing.rs
api_models
struct_definition
107
rust
RoutingDictionaryRecord
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AliPayHkRedirection { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
25
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AliPayHkRedirection" ]
null
null
null
null
pub struct RefundResponse { id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/digitalvirgo/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalPaymentsCancelResponse { id: String, status: PaypalCancelStatus, amount: Option<OrderAmount>, invoice_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
PaypalPaymentsCancelResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct OwnerCompany { pub social_name: Option<Secret<String>>, #[serde(rename = "id")] pub company_id: Option<String>, pub document_type: DocumentType, pub document_number: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/facilitapay/responses.rs
hyperswitch_connectors
struct_definition
48
rust
OwnerCompany
null
null
null
null
null
null
null
null
null
null
null
impl DisputeNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Dispute> { generics::generic_insert(conn, self).await } }
crates/diesel_models/src/query/dispute.rs
diesel_models
impl_block
42
rust
null
DisputeNew
null
impl DisputeNew
null
null
null
null
null
null
null
null
impl super::behaviour::Conversion for Profile { type DstType = diesel_models::business_profile::Profile; type NewDstType = diesel_models::business_profile::ProfileNew; async fn convert(self) -> CustomResult<Self::DstType, ValidationError> { Ok(diesel_models::business_profile::Profile { ...
crates/hyperswitch_domain_models/src/business_profile.rs
hyperswitch_domain_models
impl_block
2,540
rust
null
Profile
super::behaviour::Conversion for
impl super::behaviour::Conversion for for Profile
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/routing/routing--list.mdx # Type: Doc File --- openapi: get /routing ---
api-reference/v1/routing/routing--list.mdx
null
doc_file
30
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl BlocklistLookupNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<BlocklistLookup> { generics::generic_insert(conn, self).await } }
crates/diesel_models/src/query/blocklist_lookup.rs
diesel_models
impl_block
43
rust
null
BlocklistLookupNew
null
impl BlocklistLookupNew
null
null
null
null
null
null
null
null
pub async fn get_best_psp_token_available_for_smart_retry( state: &SessionState, connector_customer_id: &str, payment_intent: &PaymentIntent, ) -> CustomResult<Option<time::PrimitiveDateTime>, errors::ProcessTrackerError> { // Lock using payment_id let locked = RedisTokenManager::lock_connector_cus...
crates/router/src/workflows/revenue_recovery.rs
router
function_signature
304
rust
null
null
null
null
get_best_psp_token_available_for_smart_retry
null
null
null
null
null
null
null
pub struct DecisionManagerRecord { pub name: String, pub program: Program<common_types::payments::ConditionalConfigs>, pub created_at: i64, pub modified_at: i64, }
crates/api_models/src/conditional_configs.rs
api_models
struct_definition
45
rust
DecisionManagerRecord
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/payments/core.rs Public functions: 2 #![allow(dead_code)] use std::collections::{HashMap, HashSet}; use api_models::analytics::{ payments::{ MetricsBucketResponse, PaymentDimensions, PaymentDistributions, PaymentMetrics, PaymentMetricsBucketIdentifier, }, Filter...
crates/analytics/src/payments/core.rs
analytics
full_file
3,533
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct SantanderMetadataObject { pub pix_key: Secret<String>, pub expiration_time: i32, pub cpf: Secret<String>, pub merchant_city: String, pub merchant_name: String, pub workspace_id: String, pub covenant_code: String, // max_size : 9 }
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
67
rust
SantanderMetadataObject
null
null
null
null
null
null
null
null
null
null
null
impl Datatrans { pub const fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/datatrans.rs
hyperswitch_connectors
impl_block
35
rust
null
Datatrans
null
impl Datatrans
null
null
null
null
null
null
null
null
pub fn get_specific_file_key(theme_id: &str, file_name: &str) -> PathBuf { let mut path = get_theme_dir_key(theme_id); path.push(file_name); path }
crates/router/src/utils/user/theme.rs
router
function_signature
44
rust
null
null
null
null
get_specific_file_key
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Billwerk {}
crates/hyperswitch_connectors/src/connectors/billwerk.rs
hyperswitch_connectors
impl_block
9
rust
null
Billwerk
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Billwerk
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Nordea {}
crates/hyperswitch_connectors/src/connectors/nordea.rs
hyperswitch_connectors
impl_block
9
rust
null
Nordea
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Nordea
null
null
null
null
null
null
null
null
pub struct PaymentStatusData<F> where F: Clone, { pub flow: PhantomData<F>, pub payment_intent: PaymentIntent, pub payment_attempt: PaymentAttempt, pub payment_address: payment_address::PaymentAddress, pub attempts: Option<Vec<PaymentAttempt>>, /// Should the payment status be synced with co...
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
struct_definition
117
rust
PaymentStatusData
null
null
null
null
null
null
null
null
null
null
null
pub async fn mk_delete_card_request_hs_by_id( jwekey: &settings::Jwekey, locker: &settings::Locker, id: &String, merchant_id: &id_type::MerchantId, card_reference: &str, tenant_id: id_type::TenantId, request_id: Option<RequestId>, ) -> CustomResult<services::Request, errors::VaultError> { ...
crates/router/src/core/payment_methods/transformers.rs
router
function_signature
400
rust
null
null
null
null
mk_delete_card_request_hs_by_id
null
null
null
null
null
null
null
pub struct ProfileAcquirerConfigs { pub acquirer_config_map: Option<common_types::domain::AcquirerConfigMap>, pub profile_id: common_utils::id_type::ProfileId, }
crates/router/src/types/api/admin.rs
router
struct_definition
41
rust
ProfileAcquirerConfigs
null
null
null
null
null
null
null
null
null
null
null
pub async fn set_metadata( state: SessionState, user: UserFromToken, request: api::SetMetaDataRequest, _req_state: ReqState, ) -> UserResponse<()> { let metadata_value = parse_set_request(request)?; let metadata_key = DBEnum::from(&metadata_value); insert_metadata(&state, user, metadata_key...
crates/router/src/core/user/dashboard_metadata.rs
router
function_signature
90
rust
null
null
null
null
set_metadata
null
null
null
null
null
null
null
pub async fn success_based_routing_update_configs( state: web::Data<AppState>, req: HttpRequest, path: web::Path<routing_types::DynamicRoutingUpdateConfigQuery>, json_payload: web::Json<routing_types::SuccessBasedRoutingConfig>, ) -> impl Responder { let flow = Flow::UpdateDynamicRoutingConfigs; ...
crates/router/src/routes/routing.rs
router
function_signature
293
rust
null
null
null
null
success_based_routing_update_configs
null
null
null
null
null
null
null
pub struct StoreCardResp { pub status: String, pub error_message: Option<String>, pub error_code: Option<String>, pub payload: Option<StoreCardRespPayload>, }
crates/router/src/core/payment_methods/transformers.rs
router
struct_definition
40
rust
StoreCardResp
null
null
null
null
null
null
null
null
null
null
null
pub struct OrderInformationWithBill { amount_details: Amount, bill_to: Option<BillTo>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
OrderInformationWithBill
null
null
null
null
null
null
null
null
null
null
null
pub struct Mistercash { pub mobile_pay_button_position: Option<String>, pub disable_mobile_pay_button: Option<String>, pub qr_only: Option<String>, pub qr_size: Option<String>, }
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
struct_definition
42
rust
Mistercash
null
null
null
null
null
null
null
null
null
null
null
pub struct GetnetRefundRequest { pub payment: RefundPaymentData, }
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
GetnetRefundRequest
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.DecisionEngineSuccessRateData { "type": "object", "properties": { "defaultLatencyThreshold": { "type": "number", "format": "double", "nullable": true }, "defaultBucketSize": { "type": "integer", "format": "int32", "nullable": tru...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
279
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "DecisionEngineSuccessRateData" ]
null
null
null
null
pub struct LockerMockUp { pub card_id: String, pub external_id: String, pub card_fingerprint: String, pub card_global_fingerprint: String, pub merchant_id: common_utils::id_type::MerchantId, pub card_number: String, pub card_exp_year: String, pub card_exp_month: String, pub name_on_c...
crates/diesel_models/src/locker_mock_up.rs
diesel_models
struct_definition
140
rust
LockerMockUp
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Worldpay {}
crates/hyperswitch_connectors/src/connectors/worldpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Worldpay
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Worldpay
null
null
null
null
null
null
null
null
pub struct BamboraapacMeta { pub authorize_id: String, }
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
BamboraapacMeta
null
null
null
null
null
null
null
null
null
null
null
pub struct PayuPaymentStatusData { status_code: PayuPaymentStatus, severity: Option<String>, status_desc: Option<String>, }
crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
PayuPaymentStatusData
null
null
null
null
null
null
null
null
null
null
null
pub fn log_and_return_error_response<T>(error: Report<T>) -> HttpResponse where T: error_stack::Context + ResponseError + Clone, { logger::error!(?error); let body = serde_json::json!({ "message": error.to_string() }) .to_string(); HttpResponse::InternalServerError() .content_typ...
crates/drainer/src/services.rs
drainer
function_signature
87
rust
null
null
null
null
log_and_return_error_response
null
null
null
null
null
null
null
pub struct CaptureOptions { capture_sequence_number: u32, total_capture_count: u32, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
CaptureOptions
null
null
null
null
null
null
null
null
null
null
null
pub fn get_entity_id_and_type(&self) -> Option<(String, EntityType)> { match (self.version, self.entity_type, self.role_id.as_str()) { (enums::UserRoleVersion::V1, None, consts::ROLE_ID_ORGANIZATION_ADMIN) => { let org_id = self.org_id.clone()?.get_string_repr().to_string(); ...
crates/diesel_models/src/user_role.rs
diesel_models
function_signature
188
rust
null
null
null
null
get_entity_id_and_type
null
null
null
null
null
null
null
pub struct SquareAuthType { pub(super) api_key: Secret<String>, pub(super) key1: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/square/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
SquareAuthType
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentOptions { pub notification_url: Option<String>, pub notification_method: Option<String>, pub redirect_url: String, pub cancel_url: String, pub close_window: Option<bool>, pub settings: Option<Settings>, pub template_id: Option<String>, pub allowed_countries: Option<Vec<...
crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
hyperswitch_connectors
struct_definition
69
rust
PaymentOptions
null
null
null
null
null
null
null
null
null
null
null
pub struct Capture;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
4
rust
Capture
null
null
null
null
null
null
null
null
null
null
null
pub struct ApiErrorResponse { pub message: String, pub errors: ErrorsObject, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
ApiErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn new( algorithm_id_with_timestamp: DynamicAlgorithmWithTimestamp< common_utils::id_type::RoutingId, >, ) -> Self { Self { algorithm_id_with_timestamp, enabled_feature: DynamicRoutingFeatures::None, } }
crates/api_models/src/routing.rs
api_models
function_signature
56
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl ConnectorCommon for Authipay { fn id(&self) -> &'static str { "authipay" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: ...
crates/hyperswitch_connectors/src/connectors/authipay.rs
hyperswitch_connectors
impl_block
407
rust
null
Authipay
ConnectorCommon for
impl ConnectorCommon for for Authipay
null
null
null
null
null
null
null
null
impl api::PaymentSession for CtpMastercard {}
crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs
hyperswitch_connectors
impl_block
11
rust
null
CtpMastercard
api::PaymentSession for
impl api::PaymentSession for for CtpMastercard
null
null
null
null
null
null
null
null
impl ConnectorCommon for Silverflow { fn id(&self) -> &'static str { "silverflow" } fn get_currency_unit(&self) -> api::CurrencyUnit { // Silverflow processes amounts in minor units (cents) api::CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { ...
crates/hyperswitch_connectors/src/connectors/silverflow.rs
hyperswitch_connectors
impl_block
473
rust
null
Silverflow
ConnectorCommon for
impl ConnectorCommon for for Silverflow
null
null
null
null
null
null
null
null
impl api::Refund for Bluesnap {}
crates/hyperswitch_connectors/src/connectors/bluesnap.rs
hyperswitch_connectors
impl_block
9
rust
null
Bluesnap
api::Refund for
impl api::Refund for for Bluesnap
null
null
null
null
null
null
null
null