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 trait AsSchedulerInterface { fn as_scheduler(&self) -> &dyn SchedulerInterface; }
crates/scheduler/src/scheduler.rs
scheduler
trait_definition
20
rust
null
null
AsSchedulerInterface
null
null
null
null
null
null
null
null
null
impl PaymentMethodData { pub fn get_payment_method(&self) -> Option<common_enums::PaymentMethod> { match self { Self::Card(_) | Self::NetworkToken(_) | Self::CardDetailsForNetworkTransactionId(_) => { Some(common_enums::PaymentMethod::Card) } Self::CardRed...
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
impl_block
595
rust
null
PaymentMethodData
null
impl PaymentMethodData
null
null
null
null
null
null
null
null
pub trait Vaultable: Sized { fn get_value1( &self, customer_id: Option<id_type::CustomerId>, ) -> CustomResult<String, errors::VaultError>; fn get_value2( &self, _customer_id: Option<id_type::CustomerId>, ) -> CustomResult<String, errors::VaultError> { Ok(String::...
crates/router/src/core/payment_methods/vault.rs
router
trait_definition
118
rust
null
null
Vaultable
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GPayPredecryptData { "type": "object", "description": "This struct represents the decrypted Google Pay payment data", "required": [ "card_exp_month", "card_exp_year", "application_primary_account_number", "cryptogram", "eci_indicator" ], "properties":...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
271
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GPayPredecryptData" ]
null
null
null
null
- **connector:** - [BILLWERK, FISERVEMEA, TSYS] use LazyLock instead of lazy_static ([#7494](https://github.com/juspay/hyperswitch/pull/7494)) ([`413a7ee`](https://github.com/juspay/hyperswitch/commit/413a7eee8aafcf94925cd0b667b8569b4af9f375)) - [NMI,PAYONE,RISKIFIED] moved to hyperswitch_connectors ([#7666](https:...
CHANGELOG.md#chunk9
null
doc_chunk
8,111
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn setup_intents_retrieve( state: web::Data<routes::AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::PaymentId>, query_payload: web::Query<stripe_payment_types::StripePaymentRetrieveBody>, ) -> HttpResponse { let payload = payment_types::PaymentsRetrieveRequest { ...
crates/router/src/compatibility/stripe/setup_intents.rs
router
function_signature
478
rust
null
null
null
null
setup_intents_retrieve
null
null
null
null
null
null
null
pub struct DigitalWallet { /// Identifies who provides the digital wallet for the Payer. pub provider: Option<DigitalWalletProvider>, /// A token that represents, or is the payment method, stored with the digital wallet. pub payment_token: Option<serde_json::Value>, }
crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs
hyperswitch_connectors
struct_definition
62
rust
DigitalWallet
null
null
null
null
null
null
null
null
null
null
null
pub struct BusinessGenericLinkConfig { /// Custom domain name to be used for hosting the link pub domain_name: Option<String>, /// A list of allowed domains (glob patterns) where this link can be embedded / opened from pub allowed_domains: HashSet<String>, #[serde(flatten)] #[schema(value_type...
crates/api_models/src/admin.rs
api_models
struct_definition
90
rust
BusinessGenericLinkConfig
null
null
null
null
null
null
null
null
null
null
null
impl IncomingWebhook for Braintree { fn get_webhook_source_verification_algorithm( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(crypto::HmacSha1)) } fn get_webhook_source_ver...
crates/hyperswitch_connectors/src/connectors/braintree.rs
hyperswitch_connectors
impl_block
1,469
rust
null
Braintree
IncomingWebhook for
impl IncomingWebhook for for Braintree
null
null
null
null
null
null
null
null
pub struct RefundRequest { amount: Option<MinorUnit>, reference: String, }
crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
RefundRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Bluesnap {}
crates/hyperswitch_connectors/src/connectors/bluesnap.rs
hyperswitch_connectors
impl_block
11
rust
null
Bluesnap
api::MandateSetup for
impl api::MandateSetup for for Bluesnap
null
null
null
null
null
null
null
null
pub struct AuthorizationUpdateInternal { pub status: Option<storage_enums::AuthorizationStatus>, pub error_code: Option<String>, pub error_message: Option<String>, pub modified_at: Option<PrimitiveDateTime>, pub connector_authorization_id: Option<String>, }
crates/diesel_models/src/authorization.rs
diesel_models
struct_definition
56
rust
AuthorizationUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
impl<T: serde::Serialize> common_utils::events::ApiEventMetric for RefundsGenericRequestWithResourceId<T> { fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType> { let refund_id = self.global_refund_id.clone(); let payment_id = self.payment_id.clone(); ...
crates/router/src/routes/refunds.rs
router
impl_block
100
rust
null
RefundsGenericRequestWithResourceId
common_utils::events::ApiEventMetric for
impl common_utils::events::ApiEventMetric for for RefundsGenericRequestWithResourceId
null
null
null
null
null
null
null
null
pub struct PaymentResponse { #[serde(rename = "@id")] pub id: String, #[serde(rename = "@reportGroup")] pub report_group: String, #[serde(rename = "@customerId", skip_serializing_if = "Option::is_none")] pub customer_id: Option<String>, pub cnp_txn_id: String, pub order_id: String, p...
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
166
rust
PaymentResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorTransactionId for ConnectorEnum { /// Get the connector transaction ID /// /// # Arguments /// /// * `payment_attempt` - The payment attempt /// /// # Returns /// /// A `Result` containing an optional transaction ID or an ApiErrorResponse fn connector_transacti...
crates/hyperswitch_interfaces/src/connector_integration_interface.rs
hyperswitch_interfaces
impl_block
143
rust
null
ConnectorEnum
api::ConnectorTransactionId for
impl api::ConnectorTransactionId for for ConnectorEnum
null
null
null
null
null
null
null
null
pub async fn perform_surcharge_decision_management_for_payment_method_list( _state: &SessionState, _algorithm_ref: routing::RoutingAlgorithmRef, _payment_attempt: &storage::PaymentAttempt, _payment_intent: &storage::PaymentIntent, _billing_address: Option<payments::Address>, _response_payment_me...
crates/router/src/core/payment_methods/surcharge_decision_configs.rs
router
function_signature
119
rust
null
null
null
null
perform_surcharge_decision_management_for_payment_method_list
null
null
null
null
null
null
null
pub fn get_three_ds_method_url(&self) -> Option<String> { self.acs_protocol_versions .iter() .find(|acs_protocol_version| { acs_protocol_version.version == self.highest_common_supported_version }) .and_then(|acs_version| acs_version.three_ds_method...
crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
hyperswitch_connectors
function_signature
71
rust
null
null
null
null
get_three_ds_method_url
null
null
null
null
null
null
null
pub struct BlocklistLookupNew { pub merchant_id: common_utils::id_type::MerchantId, pub fingerprint: String, }
crates/diesel_models/src/blocklist_lookup.rs
diesel_models
struct_definition
28
rust
BlocklistLookupNew
null
null
null
null
null
null
null
null
null
null
null
pub struct SubmitSingleRefundResult { response: RefundResponse, }
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
SubmitSingleRefundResult
null
null
null
null
null
null
null
null
null
null
null
pub fn get_frm_dimensions() -> Vec<NameDescription> { FrmDimensions::iter().map(Into::into).collect() }
crates/analytics/src/utils.rs
analytics
function_signature
28
rust
null
null
null
null
get_frm_dimensions
null
null
null
null
null
null
null
impl api::PaymentCapture for Payload {}
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
impl_block
8
rust
null
Payload
api::PaymentCapture for
impl api::PaymentCapture for for Payload
null
null
null
null
null
null
null
null
impl Dispute for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
9
rust
null
Worldpayvantiv
Dispute for
impl Dispute for for Worldpayvantiv
null
null
null
null
null
null
null
null
pub async fn profile_create( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<admin::ProfileCreate>, path: web::Path<common_utils::id_type::MerchantId>, ) -> HttpResponse { let flow = Flow::ProfileCreate; let payload = json_payload.into_inner(); let merchant_id = path.in...
crates/router/src/routes/profiles.rs
router
function_signature
313
rust
null
null
null
null
profile_create
null
null
null
null
null
null
null
pub struct References { pub merchant_reference: String, }
crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
hyperswitch_connectors
struct_definition
12
rust
References
null
null
null
null
null
null
null
null
null
null
null
pub struct FraudCheckPre;
crates/router/src/core/fraud_check/operation/fraud_check_pre.rs
router
struct_definition
6
rust
FraudCheckPre
null
null
null
null
null
null
null
null
null
null
null
pub async fn redis_connection( redis: &redis_interface::RedisSettings, ) -> redis_interface::RedisConnectionPool { redis_interface::RedisConnectionPool::new(redis) .await .expect("Failed to create Redis Connection Pool") }
crates/storage_impl/src/connection.rs
storage_impl
function_signature
52
rust
null
null
null
null
redis_connection
null
null
null
null
null
null
null
impl Refund for Cybersource {}
crates/hyperswitch_connectors/src/connectors/cybersource.rs
hyperswitch_connectors
impl_block
8
rust
null
Cybersource
Refund for
impl Refund for for Cybersource
null
null
null
null
null
null
null
null
/// Redis-based token management struct pub struct RedisTokenManager;
crates/router/src/types/storage/revenue_recovery_redis_operation.rs
router
struct_definition
13
rust
RedisTokenManager
null
null
null
null
null
null
null
null
null
null
null
pub struct TsysSyncRequest { search_transaction: TsysSearchTransactionRequest, }
crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
TsysSyncRequest
null
null
null
null
null
null
null
null
null
null
null
impl Responder { // safety: This shouldn't panic owing to the data type #[allow(clippy::expect_used)] let payload = json_payload .into_inner() .to_vec() .pop() .expect("Couldn't get GetDisputeMetricRequest"); let flow = AnalyticsFlow::GetDi...
crates/router/src/analytics.rs
router
impl_block
238
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct SmtpServerConfig { /// hostname of the SMTP server eg: smtp.gmail.com pub host: String, /// portname of the SMTP server eg: 25 pub port: u16, /// timeout for the SMTP server connection in seconds eg: 10 pub timeout: u64, /// Username name of the SMTP server pub username: Optio...
crates/external_services/src/email/smtp.rs
external_services
struct_definition
130
rust
SmtpServerConfig
null
null
null
null
null
null
null
null
null
null
null
impl Tsys { pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/tsys.rs
hyperswitch_connectors
impl_block
34
rust
null
Tsys
null
impl Tsys
null
null
null
null
null
null
null
null
pub struct MerchantAccountCreate { /// The identifier for the Merchant Account #[schema(value_type = String, max_length = 64, min_length = 1, example = "y3oqhf46pyzuxjbcn2giaqnb44")] pub merchant_id: id_type::MerchantId, /// Name of the Merchant Account #[schema(value_type= Option<String>,example =...
crates/api_models/src/admin.rs
api_models
struct_definition
1,051
rust
MerchantAccountCreate
null
null
null
null
null
null
null
null
null
null
null
impl HealthCheck for OpenSearchClient { async fn deep_health_check(&self) -> CustomResult<(), QueryExecutionError> { let health = Cluster::new(&self.transport) .health(ClusterHealthParts::None) .send() .await .change_context(QueryExecutionError::DatabaseError)...
crates/analytics/src/opensearch.rs
analytics
impl_block
159
rust
null
OpenSearchClient
HealthCheck for
impl HealthCheck for for OpenSearchClient
null
null
null
null
null
null
null
null
Web Documentation: Deploy on Kubernetes | Hyperswitch # Type: Web Doc Hyperswitch can be deployed on Kubernetes using Helm Charts , a package manager for Kubernetes, to provide a robust, scalable, and containerized payment infrastructure. Kubernetes deployment ensures high availability, effortless scaling, and efficie...
https://docs.hyperswitch.io/hyperswitch-open-source/deploy-on-kubernetes-using-helm
null
web_doc_file
245
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/hyperswitch-open-source/deploy-on-kubernetes-using-helm
Deploy on Kubernetes | Hyperswitch
null
File: crates/diesel_models/src/query/locker_mock_up.rs Public functions: 3 use diesel::{associations::HasTable, ExpressionMethods}; use super::generics; use crate::{ locker_mock_up::{LockerMockUp, LockerMockUpNew}, schema::locker_mock_up::dsl, PgPooledConn, StorageResult, }; impl LockerMockUpNew { p...
crates/diesel_models/src/query/locker_mock_up.rs
diesel_models
full_file
264
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct EmailContents { /// The subject of email pub subject: String, /// This will be the intermediate representation of the email body in a generic format. /// The email clients can convert this intermediate representation to their client specific rich text format pub body: IntermediateString,...
crates/external_services/src/email.rs
external_services
struct_definition
85
rust
EmailContents
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Multisafepay {}
crates/hyperswitch_connectors/src/connectors/multisafepay.rs
hyperswitch_connectors
impl_block
13
rust
null
Multisafepay
api::RefundExecute for
impl api::RefundExecute for for Multisafepay
null
null
null
null
null
null
null
null
pub struct ArchipelIncrementalAuthorizationRequest { order: ArchipelOrderRequest, tenant_id: ArchipelTenantId, }
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
ArchipelIncrementalAuthorizationRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/sdk_events/types.rs use api_models::analytics::sdk_events::{SdkEventDimensions, SdkEventFilters}; use error_stack::ResultExt; use crate::{ query::{QueryBuilder, QueryFilter, QueryResult, ToSql}, types::{AnalyticsCollection, AnalyticsDataSource}, }; impl<T> QueryFilter<T> for SdkEve...
crates/analytics/src/sdk_events/types.rs
analytics
full_file
401
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/nexixpay.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::collections::HashSet; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, ...
crates/hyperswitch_connectors/src/connectors/nexixpay.rs#chunk0
hyperswitch_connectors
chunk
8,189
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Payu {}
crates/hyperswitch_connectors/src/connectors/payu.rs
hyperswitch_connectors
impl_block
7
rust
null
Payu
ConnectorValidation for
impl ConnectorValidation for for Payu
null
null
null
null
null
null
null
null
pub struct DatatransRouterData<T> { pub amount: MinorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
DatatransRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct PlacetopayPaymentsResponse { status: PlacetopayStatusResponse, internal_reference: u64, authorization: Option<String>, }
crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
PlacetopayPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_profile_acquirer( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<ProfileAcquirerCreate>, ) -> HttpResponse { let flow = Flow::ProfileAcquirerCreate; let payload = json_payload.into_inner(); Box::pin(api::server_wrap( flow, state, ...
crates/router/src/routes/profile_acquirer.rs
router
function_signature
235
rust
null
null
null
null
create_profile_acquirer
null
null
null
null
null
null
null
impl api::RefundExecute for CtpMastercard {}
crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs
hyperswitch_connectors
impl_block
12
rust
null
CtpMastercard
api::RefundExecute for
impl api::RefundExecute for for CtpMastercard
null
null
null
null
null
null
null
null
pub struct MockApiClient;
crates/router/src/services/api/client.rs
router
struct_definition
5
rust
MockApiClient
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/relay/relay.mdx # Type: Doc File --- openapi: post /relay ---
api-reference/v1/relay/relay.mdx
null
doc_file
28
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_cards_info( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<cards_info_api_types::CardInfoUpdateRequest>, ) -> impl Responder { let payload = json_payload.into_inner(); let flow = Flow::CardsInfoUpdate; Box::pin(api::server_wrap( flow, st...
crates/router/src/routes/cards_info.rs
router
function_signature
132
rust
null
null
null
null
update_cards_info
null
null
null
null
null
null
null
/// Create a new non-masked data pub fn new_normal(item: T) -> Self { Self::Normal(item) }
crates/masking/src/maskable.rs
masking
function_signature
29
rust
null
null
null
null
new_normal
null
null
null
null
null
null
null
impl api::PaymentVoid for Cashtocode {}
crates/hyperswitch_connectors/src/connectors/cashtocode.rs
hyperswitch_connectors
impl_block
10
rust
null
Cashtocode
api::PaymentVoid for
impl api::PaymentVoid for for Cashtocode
null
null
null
null
null
null
null
null
pub struct SurchargeDetailsResponse { /// surcharge value pub surcharge: SurchargeResponse, /// tax on surcharge value pub tax_on_surcharge: Option<SurchargePercentage>, /// surcharge amount for this payment pub display_surcharge_amount: f64, /// tax on surcharge amount for this payment ...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
116
rust
SurchargeDetailsResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_payment_method_core( state: &SessionState, _request_state: &routes::app::ReqState, req: api::PaymentMethodCreate, merchant_context: &domain::MerchantContext, profile: &domain::Profile, ) -> RouterResult<(api::PaymentMethodResponse, domain::PaymentMethod)> { use common_utils::...
crates/router/src/core/payment_methods.rs
router
function_signature
532
rust
null
null
null
null
create_payment_method_core
null
null
null
null
null
null
null
pub fn apply_changeset(self, source: Profile) -> Profile { let Self { profile_name, modified_at, return_url, enable_payment_response_hash, payment_response_hash_key, redirect_to_merchant_with_http_post, webhook_details, ...
crates/diesel_models/src/business_profile.rs
diesel_models
function_signature
1,330
rust
null
null
null
null
apply_changeset
null
null
null
null
null
null
null
impl super::behaviour::Conversion for UserKeyStore { type DstType = diesel_models::user_key_store::UserKeyStore; type NewDstType = diesel_models::user_key_store::UserKeyStoreNew; async fn convert(self) -> CustomResult<Self::DstType, ValidationError> { Ok(diesel_models::user_key_store::UserKeyStore ...
crates/router/src/types/domain/user_key_store.rs
router
impl_block
340
rust
null
UserKeyStore
super::behaviour::Conversion for
impl super::behaviour::Conversion for for UserKeyStore
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs Public functions: 2 Public structs: 31 use api_models::webhooks::IncomingWebhookEvent; use cards::CardNumber; use common_enums::{AttemptStatus, AuthenticationType, CountryAlpha2, Currency, RefundStatus}; use common_utils::{errors::CustomResult, e...
crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs#chunk0
hyperswitch_connectors
chunk
8,184
null
null
null
null
null
null
null
null
null
null
null
null
null
impl PaymentSession for Payone {}
crates/hyperswitch_connectors/src/connectors/payone.rs
hyperswitch_connectors
impl_block
7
rust
null
Payone
PaymentSession for
impl PaymentSession for for Payone
null
null
null
null
null
null
null
null
impl CeleroTransactionResponseData { pub fn get_mandate_reference(&self) -> Box<Option<MandateReference>> { if self.payment_method_id.is_some() { Box::new(Some(MandateReference { connector_mandate_id: None, payment_method_id: self.payment_method_id.clone(), ...
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
impl_block
104
rust
null
CeleroTransactionResponseData
null
impl CeleroTransactionResponseData
null
null
null
null
null
null
null
null
pub struct InternationalBankAccount { iban: Secret<String>, account_holder_name: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
InternationalBankAccount
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Wellsfargopayout {}
crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs
hyperswitch_connectors
impl_block
12
rust
null
Wellsfargopayout
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Wellsfargopayout
null
null
null
null
null
null
null
null
pub struct CardInfoBuilder<S: State> { state: std::marker::PhantomData<S>, pub card_info: Option<card_info_models::CardInfo>, }
crates/router/src/core/cards_info.rs
router
struct_definition
37
rust
CardInfoBuilder
null
null
null
null
null
null
null
null
null
null
null
pub async fn payouts_core( state: &SessionState, merchant_context: &domain::MerchantContext, payout_data: &mut PayoutData, routing_algorithm: Option<serde_json::Value>, eligible_connectors: Option<Vec<api_enums::PayoutConnectors>>, ) -> RouterResult<()> { let payout_attempt = &payout_data.payout...
crates/router/src/core/payouts.rs
router
function_signature
165
rust
null
null
null
null
payouts_core
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SuccessRateSpecificityLevel { "type": "string", "enum": [ "merchant", "global" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
38
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SuccessRateSpecificityLevel" ]
null
null
null
null
impl api::PaymentSession for Gocardless {}
crates/hyperswitch_connectors/src/connectors/gocardless.rs
hyperswitch_connectors
impl_block
10
rust
null
Gocardless
api::PaymentSession for
impl api::PaymentSession for for Gocardless
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentLinkDetailsLayout { "type": "string", "enum": [ "layout1", "layout2" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
39
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentLinkDetailsLayout" ]
null
null
null
null
pub struct PaysafePaymentsSyncResponse { pub payments: Vec<PaysafePaymentsResponse>, }
crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
PaysafePaymentsSyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct CybersourcePaymentsIncrementalAuthorizationResponse { status: CybersourceIncrementalAuthorizationStatus, error_information: Option<CybersourceErrorInformation>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
CybersourcePaymentsIncrementalAuthorizationResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/stripebilling.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
/// DecisionManagerRecord pub struct DecisionManagerRecord { /// Name of the Decision Manager pub name: String, /// Program to be executed pub program: Program<ConditionalConfigs>, /// Created at timestamp pub created_at: i64, }
crates/common_types/src/payments.rs
common_types
struct_definition
57
rust
DecisionManagerRecord
null
null
null
null
null
null
null
null
null
null
null
pub struct ZenGooglePay { pub terminal_uuid: Option<String>, pub pay_wall_secret: Option<String>, }
crates/connector_configs/src/common_config.rs
connector_configs
struct_definition
24
rust
ZenGooglePay
null
null
null
null
null
null
null
null
null
null
null
pub async fn files_create_core( state: SessionState, merchant_context: domain::MerchantContext, create_file_request: api::CreateFileRequest, ) -> RouterResponse<files::CreateFileResponse> { helpers::validate_file_upload( &state, merchant_context.clone(), create_file_request.clone...
crates/router/src/core/files.rs
router
function_signature
507
rust
null
null
null
null
files_create_core
null
null
null
null
null
null
null
pub struct ReversalInformation { amount_details: Amount, reason: String, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
ReversalInformation
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_profile_active_algorithm_ref( db: &dyn StorageInterface, key_manager_state: &KeyManagerState, merchant_key_store: &domain::MerchantKeyStore, current_business_profile: domain::Profile, algorithm_id: routing_types::RoutingAlgorithmRef, transaction_type: &storage::enums::Transac...
crates/router/src/core/routing/helpers.rs
router
function_signature
461
rust
null
null
null
null
update_profile_active_algorithm_ref
null
null
null
null
null
null
null
impl api::PaymentVoid for Bluecode {}
crates/hyperswitch_connectors/src/connectors/bluecode.rs
hyperswitch_connectors
impl_block
9
rust
null
Bluecode
api::PaymentVoid for
impl api::PaymentVoid for for Bluecode
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::GetExtendedCardInfo; let payment_id = path.into_inner(); Box::pin(api::server_wrap( flow, state, &req, payment_id, |state, auth: auth::AuthenticationData, payment_id, _| { let merchant_context = domain::MerchantContext::N...
crates/router/src/routes/payments.rs
router
impl_block
173
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct BluesnapRouterData<T> { pub amount: StringMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
BluesnapRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct RecoveryPaymentIntent { pub payment_id: id_type::GlobalPaymentId, pub status: common_enums::IntentStatus, pub feature_metadata: Option<api_payments::FeatureMetadata>, pub merchant_id: id_type::MerchantId, pub merchant_reference_id: Option<id_type::PaymentReferenceId>, pub invoice_amou...
crates/hyperswitch_domain_models/src/revenue_recovery.rs
hyperswitch_domain_models
struct_definition
113
rust
RecoveryPaymentIntent
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Stax {}
crates/hyperswitch_connectors/src/connectors/stax.rs
hyperswitch_connectors
impl_block
9
rust
null
Stax
api::PaymentCapture for
impl api::PaymentCapture for for Stax
null
null
null
null
null
null
null
null
pub async fn insert_recovery_code_in_redis(state: &SessionState, user_id: &str) -> UserResult<()> { let redis_conn = super::get_redis_connection_for_global_tenant(state)?; let key = format!("{}{}", consts::user::REDIS_RECOVERY_CODE_PREFIX, user_id); redis_conn .set_key_with_expiry( &key....
crates/router/src/utils/user/two_factor_auth.rs
router
function_signature
119
rust
null
null
null
null
insert_recovery_code_in_redis
null
null
null
null
null
null
null
pub fn validate(&self) -> Result<(), crate::core::errors::ApplicationError> { use common_utils::ext_traits::ConfigExt; use crate::core::errors::ApplicationError; common_utils::fp_utils::when(self.brokers.is_empty(), || { Err(ApplicationError::InvalidConfigurationValueError( ...
crates/router/src/services/kafka.rs
router
function_signature
709
rust
null
null
null
null
validate
null
null
null
null
null
null
null
/// Panics if `json_payload` array does not contain one `GetDisputeMetricRequest` element. pub async fn get_merchant_dispute_metrics( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<[GetDisputeMetricRequest; 1]>, ) -> impl Responder { // safety: T...
crates/router/src/analytics.rs
router
function_signature
310
rust
null
null
null
null
get_merchant_dispute_metrics
null
null
null
null
null
null
null
File: crates/router/src/routes/disputes/utils.rs Public functions: 2 use actix_multipart::{Field, Multipart}; use actix_web::web::Bytes; use common_utils::{errors::CustomResult, ext_traits::StringExt, fp_utils}; use error_stack::ResultExt; use futures::{StreamExt, TryStreamExt}; use crate::{ core::{errors, files...
crates/router/src/routes/disputes/utils.rs
router
full_file
822
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Forte {}
crates/hyperswitch_connectors/src/connectors/forte.rs
hyperswitch_connectors
impl_block
10
rust
null
Forte
api::RefundSync for
impl api::RefundSync for for Forte
null
null
null
null
null
null
null
null
pub struct PaymentIntentListParams { pub offset: u32, pub starting_at: Option<PrimitiveDateTime>, pub ending_at: Option<PrimitiveDateTime>, pub amount_filter: Option<api_models::payments::AmountFilter>, pub connector: Option<Vec<api_models::enums::Connector>>, pub currency: Option<Vec<common_enu...
crates/hyperswitch_domain_models/src/payments/payment_intent.rs
hyperswitch_domain_models
struct_definition
271
rust
PaymentIntentListParams
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::IncomingNetworkTokenWebhookReceive; Box::pin(api::server_wrap( flow.clone(), state, &req, (), |state, _: (), _, _| { webhooks::network_token_incoming_webhooks_wrapper::<W>( &flow, state.to_owne...
crates/router/src/routes/webhooks.rs
router
impl_block
109
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl api::RefundExecute for Boku {}
crates/hyperswitch_connectors/src/connectors/boku.rs
hyperswitch_connectors
impl_block
10
rust
null
Boku
api::RefundExecute for
impl api::RefundExecute for for Boku
null
null
null
null
null
null
null
null
impl Organization { pub async fn find_by_org_id( conn: &PgPooledConn, org_id: id_type::OrganizationId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl_identifier.eq(org_id), ) .await } pu...
crates/diesel_models/src/query/organization.rs
diesel_models
impl_block
179
rust
null
Organization
null
impl Organization
null
null
null
null
null
null
null
null
pub fn get_payout_connector_config( connector: PayoutConnectors, ) -> Result<Option<ConnectorTomlConfig>, String> { let connector_data = Self::new()?; match connector { PayoutConnectors::Adyen => Ok(connector_data.adyen_payout), PayoutConnectors::Adyenplatform => Ok(c...
crates/connector_configs/src/connector.rs
connector_configs
function_signature
218
rust
null
null
null
null
get_payout_connector_config
null
null
null
null
null
null
null
impl Hash for SdkEventMetricsBucketIdentifier { fn hash<H: Hasher>(&self, state: &mut H) { self.payment_method.hash(state); self.platform.hash(state); self.browser_name.hash(state); self.source.hash(state); self.component.hash(state); self.payment_experience.hash(stat...
crates/api_models/src/analytics/sdk_events.rs
api_models
impl_block
76
rust
null
SdkEventMetricsBucketIdentifier
Hash for
impl Hash for for SdkEventMetricsBucketIdentifier
null
null
null
null
null
null
null
null
pub struct BraintreeRedirectionResponse { pub authentication_response: String, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
BraintreeRedirectionResponse
null
null
null
null
null
null
null
null
null
null
null
/// Paypal Ref - https://developer.paypal.com/docs/reports/reference/paypal-supported-currencies/ pub fn to_currency_base_unit_with_zero_decimal_check( self, amount: i64, ) -> Result<String, TryFromIntError> { let amount_f64 = self.to_currency_base_unit_asf64(amount)?; if self.is...
crates/common_enums/src/enums.rs
common_enums
function_signature
110
rust
null
null
null
null
to_currency_base_unit_with_zero_decimal_check
null
null
null
null
null
null
null
pub struct JpmorganCaptureRequest { capture_method: Option<CapMethod>, amount: MinorUnit, currency: Option<common_enums::Currency>, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
JpmorganCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_parent_info_for_role( state: SessionState, user_from_token: UserFromToken, role: role_api::GetRoleRequest, ) -> UserResponse<role_api::RoleInfoWithParents> { let role_info = roles::RoleInfo::from_role_id_org_id_tenant_id( &state, &role.role_id, &user_from_token.o...
crates/router/src/core/user_role/role.rs
router
function_signature
383
rust
null
null
null
null
get_parent_info_for_role
null
null
null
null
null
null
null
pub struct StripeConnectPayoutCreateRequest { amount: i64, currency: Currency, destination: String, transfer_group: String, }
crates/hyperswitch_connectors/src/connectors/stripe/transformers/connect.rs
hyperswitch_connectors
struct_definition
33
rust
StripeConnectPayoutCreateRequest
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<String>, query_params: web::Query<api_models::refunds::RefundsRetrieveBody>, ) -> HttpResponse { let refund_request = refunds::RefundsRetrieveRequest { refund_id: path.into_inner(), force_syn...
crates/router/src/routes/refunds.rs
router
function_signature
321
rust
null
null
null
null
refunds_retrieve
null
null
null
null
null
null
null
impl ProxyRecord { fn get_vault_id(&self) -> RouterResult<payment_methods::VaultId> { match self { Self::PaymentMethodRecord(payment_method) => payment_method .locker_id .clone() .get_required_value("vault_id") .change_context(error...
crates/router/src/core/proxy/utils.rs
router
impl_block
456
rust
null
ProxyRecord
null
impl ProxyRecord
null
null
null
null
null
null
null
null
pub struct KlarnaRefundResponse { pub refund_id: String, }
crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
KlarnaRefundResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::ExternalVault for Vgs {}
crates/hyperswitch_connectors/src/connectors/vgs.rs
hyperswitch_connectors
impl_block
9
rust
null
Vgs
api::ExternalVault for
impl api::ExternalVault for for Vgs
null
null
null
null
null
null
null
null
pub struct WalletDetails { pub data_descriptor: WalletMethod, pub data_value: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
WalletDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct KatapultPaymentsRequest { amount: StringMinorUnit, card: KatapultCard, }
crates/hyperswitch_connectors/src/connectors/katapult/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
KatapultPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null