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 CreateRoleV2Request { pub role_name: String, pub role_scope: RoleScope, pub entity_type: Option<EntityType>, pub parent_groups: Vec<ParentGroupInfoRequest>, }
crates/api_models/src/user_role/role.rs
api_models
struct_definition
45
rust
CreateRoleV2Request
null
null
null
null
null
null
null
null
null
null
null
pub fn comparison_array(input: &str) -> ParseResult<&str, Vec<ast::Comparison>> { let many_with_ampersand = error::context( "many_with_amp", multi::many0(sequence::preceded(skip_ws(complete::tag("&")), comparison)), ); let full_sequence = sequence::pair( skip_ws(branch::alt((compari...
crates/euclid/src/frontend/ast/parser.rs
euclid
function_signature
160
rust
null
null
null
null
comparison_array
null
null
null
null
null
null
null
pub async fn create_merchant_account( state: SessionState, req: api::MerchantAccountCreate, org_data_from_auth: Option<authentication::AuthenticationDataWithOrg>, ) -> RouterResponse<api::MerchantAccountResponse> { #[cfg(feature = "keymanager_create")] use common_utils::{keymanager, types::keymanage...
crates/router/src/core/admin.rs
router
function_signature
670
rust
null
null
null
null
create_merchant_account
null
null
null
null
null
null
null
impl api::MandateSetup for Worldpay {}
crates/hyperswitch_connectors/src/connectors/worldpay.rs
hyperswitch_connectors
impl_block
11
rust
null
Worldpay
api::MandateSetup for
impl api::MandateSetup for for Worldpay
null
null
null
null
null
null
null
null
impl CommonStorageInterface for MockDb { fn get_global_storage_interface(&self) -> Box<dyn GlobalStorageInterface> { Box::new(self.clone()) } fn get_storage_interface(&self) -> Box<dyn StorageInterface> { Box::new(self.clone()) } fn get_accounts_storage_interface(&self) -> Box<dyn A...
crates/router/src/db.rs
router
impl_block
85
rust
null
MockDb
CommonStorageInterface for
impl CommonStorageInterface for for MockDb
null
null
null
null
null
null
null
null
impl<F> PaymentStatusData<F> where F: Clone, { pub fn get_payment_id(&self) -> &id_type::GlobalPaymentId { &self.payment_intent.id } }
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
impl_block
44
rust
null
PaymentStatusData
null
impl PaymentStatusData
null
null
null
null
null
null
null
null
impl ConnectorCommon for Stax { fn id(&self) -> &'static str { "stax" } 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 Conn...
crates/hyperswitch_connectors/src/connectors/stax.rs
hyperswitch_connectors
impl_block
368
rust
null
Stax
ConnectorCommon for
impl ConnectorCommon for for Stax
null
null
null
null
null
null
null
null
pub struct WellsfargoRsyncResponse { id: String, application_information: Option<RsyncApplicationInformation>, error_information: Option<WellsfargoErrorInformation>, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
WellsfargoRsyncResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/routes/dummy_connector/consts.rs pub const ATTEMPT_ID_PREFIX: &str = "dummy_attempt"; pub const REFUND_ID_PREFIX: &str = "dummy_ref"; pub const THREE_DS_CSS: &str = include_str!("threeds_page.css"); pub const DUMMY_CONNECTOR_UPI_FAILURE_VPA_ID: &str = "failure@upi"; pub const DUMMY_CONNECTOR_UP...
crates/router/src/routes/dummy_connector/consts.rs
router
full_file
104
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct NovalnetPaymentsRequestBilling { house_no: Option<Secret<String>>, street: Option<Secret<String>>, city: Option<Secret<String>>, zip: Option<Secret<String>>, country_code: Option<api_enums::CountryAlpha2>, }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
57
rust
NovalnetPaymentsRequestBilling
null
null
null
null
null
null
null
null
null
null
null
impl api::PayoutQuote for Wise {}
crates/hyperswitch_connectors/src/connectors/wise.rs
hyperswitch_connectors
impl_block
9
rust
null
Wise
api::PayoutQuote for
impl api::PayoutQuote for for Wise
null
null
null
null
null
null
null
null
pub struct PaymentMethodRecordUpdateResponse { pub payment_method_id: String, pub status: common_enums::PaymentMethodStatus, pub network_transaction_id: Option<String>, pub connector_mandate_details: Option<pii::SecretSerdeValue>, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
55
rust
PaymentMethodRecordUpdateResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/connector_onboarding") .app_data(web::Data::new(state)) .service( web::resource("/action_url") .route(web::post().to(connector_onboarding::get_action_url)), ) .service( ...
crates/router/src/routes/app.rs
router
function_signature
126
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub fn cancel_status_from_transaction_state(getnet_status: GetnetPaymentStatus) -> AttemptStatus { match getnet_status { GetnetPaymentStatus::Success => AttemptStatus::Voided, GetnetPaymentStatus::InProgress => AttemptStatus::Pending, GetnetPaymentStatus::Failed => AttemptStatus::VoidFailed,...
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
function_signature
70
rust
null
null
null
null
cancel_status_from_transaction_state
null
null
null
null
null
null
null
impl IncomingWebhook for Payeezy { fn get_webhook_object_reference_id( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented)) } fn get_...
crates/hyperswitch_connectors/src/connectors/payeezy.rs
hyperswitch_connectors
impl_block
191
rust
null
Payeezy
IncomingWebhook for
impl IncomingWebhook for for Payeezy
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self }
crates/hyperswitch_connectors/src/connectors/silverflow.rs
hyperswitch_connectors
function_signature
15
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct RefundResponse { id: String, status: RefundStatus }
connector-template/transformers.rs
connector-template
struct_definition
19
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ExternalToken { pub external_token_provider: ExternalTokenProvider, pub mobile_token: Option<Secret<String>>, pub cryptogram: Option<Secret<String>>, pub eci_provider: Option<String>, }
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
45
rust
ExternalToken
null
null
null
null
null
null
null
null
null
null
null
impl Default for CycleCheck { #[inline] fn default() -> Self { Self::new() } }
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
impl_block
25
rust
null
CycleCheck
Default for
impl Default for for CycleCheck
null
null
null
null
null
null
null
null
pub struct SyncTransactionResponse { pub transaction_id: String, pub condition: String, }
crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
SyncTransactionResponse
null
null
null
null
null
null
null
null
null
null
null
/// A struct representing a connection to HashiCorp Vault. pub struct HashiCorpVault { /// The underlying client used for interacting with HashiCorp Vault. client: VaultClient, }
crates/external_services/src/hashicorp_vault/core.rs
external_services
struct_definition
40
rust
HashiCorpVault
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/gpayments.rs use router::types; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] #[allow(dead_code)] struct GpaymentsTest; impl ConnectorActions for GpaymentsTest {} impl utils::Connector for GpaymentsTest { fn get_data(&self)...
crates/router/tests/connectors/gpayments.rs
router
full_file
224
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Gpayments { _amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/gpayments.rs
hyperswitch_connectors
struct_definition
27
rust
Gpayments
null
null
null
null
null
null
null
null
null
null
null
pub fn into_inner(self) -> T { self.0 }
crates/hyperswitch_domain_models/src/type_encryption.rs
hyperswitch_domain_models
function_signature
16
rust
null
null
null
null
into_inner
null
null
null
null
null
null
null
pub struct UpiDetails { flow: UpiFlow, vpa: Secret<String, pii::UpiVpaMaskingStrategy>, }
crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
UpiDetails
null
null
null
null
null
null
null
null
null
null
null
pub fn get_id(&self) -> &id_type::PaymentId { &self.payment_id }
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
function_signature
23
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RoutableConnectorChoice { "type": "object", "description": "Routable Connector chosen for a payment", "required": [ "connector" ], "properties": { "connector": { "$ref": "#/components/schemas/RoutableConnectors" }, "merchant_connector_id": { "...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
99
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RoutableConnectorChoice" ]
null
null
null
null
pub struct OpenIdConnectPublicConfig { pub name: OpenIdProvider, }
crates/api_models/src/user.rs
api_models
struct_definition
17
rust
OpenIdConnectPublicConfig
null
null
null
null
null
null
null
null
null
null
null
pub fn mk_add_card_response_hs( card: api::CardDetail, card_reference: String, req: api::PaymentMethodCreate, merchant_id: &id_type::MerchantId, ) -> api::PaymentMethodResponse { let card_number = card.card_number.clone(); let last4_digits = card_number.get_last4(); let card_isin = card_numb...
crates/router/src/core/payment_methods/transformers.rs
router
function_signature
423
rust
null
null
null
null
mk_add_card_response_hs
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.EventRetrieveResponse { "allOf": [ { "$ref": "#/components/schemas/EventListItemResponse" }, { "type": "object", "required": [ "request", "response" ], "properties": { "request": { "$ref": "#/components/...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
174
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "EventRetrieveResponse" ]
null
null
null
null
pub struct ZeroMandates { pub supported_payment_methods: SupportedPaymentMethodsForMandate, }
crates/payment_methods/src/configs/settings.rs
payment_methods
struct_definition
22
rust
ZeroMandates
null
null
null
null
null
null
null
null
null
null
null
Some("upi") => "up3ds_attempted", _ => "internet", }, "07" => match card_network_lower_case.as_deref() { Some("amex") => "internet", Some("discover") => "internet", Some("mastercard") => "spa", Some("visa") => "vbv_failure", ...
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs#chunk1
hyperswitch_connectors
chunk
8,186
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct LimitByClause { limit: u64, columns: Vec<String>, }
crates/analytics/src/query.rs
analytics
struct_definition
20
rust
LimitByClause
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Worldpayxml {}
crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
hyperswitch_connectors
impl_block
12
rust
null
Worldpayxml
api::MandateSetup for
impl api::MandateSetup for for Worldpayxml
null
null
null
null
null
null
null
null
pub struct GenerateSaleRequest { currency: enums::Currency, sale_type: SaleType, sale_price: MinorUnit, transaction_id: String, product_name: String, sale_return_url: String, seller_payme_id: Secret<String>, sale_callback_url: String, sale_payment_method: SalePaymentMethod, servi...
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
85
rust
GenerateSaleRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct Fiserv { amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/fiserv.rs
hyperswitch_connectors
struct_definition
28
rust
Fiserv
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Volt { fn get_webhook_source_verification_algorithm( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(crypto::HmacSha256)) } fn get_w...
crates/hyperswitch_connectors/src/connectors/volt.rs
hyperswitch_connectors
impl_block
943
rust
null
Volt
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Volt
null
null
null
null
null
null
null
null
pub struct CardTokenStored;
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
struct_definition
6
rust
CardTokenStored
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SamsungPayAmountFormat { "type": "string", "enum": [ "FORMAT_TOTAL_PRICE_ONLY", "FORMAT_TOTAL_ESTIMATED_AMOUNT" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
46
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SamsungPayAmountFormat" ]
null
null
null
null
pub struct CustomerListConstraints { pub limit: i64, pub offset: Option<i64>, }
crates/diesel_models/src/query/customers.rs
diesel_models
struct_definition
24
rust
CustomerListConstraints
null
null
null
null
null
null
null
null
null
null
null
pub async fn construct_external_vault_proxy_router_data_v2<'a>( state: &'a SessionState, merchant_account: &domain::MerchantAccount, merchant_connector_account: &domain::MerchantConnectorAccountTypeDetails, payment_data: &hyperswitch_domain_models::payments::PaymentConfirmData<api::ExternalVaultProxy>, ...
crates/router/src/core/payments/transformers.rs
router
function_signature
654
rust
null
null
null
null
construct_external_vault_proxy_router_data_v2
null
null
null
null
null
null
null
pub struct TransactionDetails { #[serde(skip_serializing_if = "Option::is_none")] capture_flag: Option<bool>, #[serde(skip_serializing_if = "Option::is_none")] reversal_reason_code: Option<String>, #[serde(skip_serializing_if = "Option::is_none")] merchant_transaction_id: Option<String>, #[s...
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
94
rust
TransactionDetails
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/services/openidconnect.rs Public functions: 2 use common_utils::errors::ErrorSwitch; use error_stack::ResultExt; use external_services::http_client::client; use masking::{ExposeInterface, Secret}; use oidc::TokenResponse; use openidconnect::{self as oidc, core as oidc_core}; use redis_interfac...
crates/router/src/services/openidconnect.rs
router
full_file
1,630
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Cryptopay {}
crates/hyperswitch_connectors/src/connectors/cryptopay.rs
hyperswitch_connectors
impl_block
10
rust
null
Cryptopay
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Cryptopay
null
null
null
null
null
null
null
null
/// Creates a tonic::Request with recovery headers added. pub(crate) fn create_revenue_recovery_grpc_request<T: Debug>( message: T, recovery_headers: GrpcRecoveryHeaders, ) -> tonic::Request<T> { let mut request = tonic::Request::new(message); request.add_recovery_headers(recovery_headers); request ...
crates/external_services/src/grpc_client/revenue_recovery.rs
external_services
function_signature
74
rust
null
null
null
null
create_revenue_recovery_grpc_request
null
null
null
null
null
null
null
impl api::Refund for Multisafepay {}
crates/hyperswitch_connectors/src/connectors/multisafepay.rs
hyperswitch_connectors
impl_block
12
rust
null
Multisafepay
api::Refund for
impl api::Refund for for Multisafepay
null
null
null
null
null
null
null
null
/// Transition the secret state from `SecuredSecret` to `RawSecret` pub fn transition_state( mut self, decryptor_fn: impl FnOnce(T) -> T, ) -> SecretStateContainer<T, RawSecret> { self.inner = decryptor_fn(self.inner); SecretStateContainer { inner: self.inner, ...
crates/hyperswitch_interfaces/src/secrets_interface/secret_state.rs
hyperswitch_interfaces
function_signature
82
rust
null
null
null
null
transition_state
null
null
null
null
null
null
null
pub async fn dummy_connector_payment_data( state: web::Data<app::AppState>, req: actix_web::HttpRequest, path: web::Path<String>, ) -> impl actix_web::Responder { let flow = types::Flow::DummyPaymentRetrieve; let payment_id = path.into_inner(); let payload = types::DummyConnectorPaymentRetrieveR...
crates/router/src/routes/dummy_connector.rs
router
function_signature
143
rust
null
null
null
null
dummy_connector_payment_data
null
null
null
null
null
null
null
pub struct HelcimCard { card_number: cards::CardNumber, card_expiry: Secret<String>, card_c_v_v: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
HelcimCard
null
null
null
null
null
null
null
null
null
null
null
File: crates/scheduler/src/db.rs pub mod process_tracker; pub mod queue;
crates/scheduler/src/db.rs
scheduler
full_file
18
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TokenioWebhookPayload { #[serde(rename = "eventType", skip_serializing_if = "Option::is_none")] pub event_type: Option<String>, pub id: String, #[serde(flatten)] pub event_data: TokenioWebhookEventData, }
crates/hyperswitch_connectors/src/connectors/tokenio/transformers.rs
hyperswitch_connectors
struct_definition
59
rust
TokenioWebhookPayload
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_capture_v2.rs Public structs: 1 use api_models::{enums::FrmSuggestion, payments::PaymentsCaptureRequest}; use async_trait::async_trait; use error_stack::ResultExt; use hyperswitch_domain_models::payments::PaymentCaptureData; use router_env::{instrument, tracing...
crates/router/src/core/payments/operations/payment_capture_v2.rs
router
full_file
2,605
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Facilitapay {}
crates/hyperswitch_connectors/src/connectors/facilitapay.rs
hyperswitch_connectors
impl_block
11
rust
null
Facilitapay
api::Refund for
impl api::Refund for for Facilitapay
null
null
null
null
null
null
null
null
pub struct BarclaycardConsumerAuthValidateResponse { ucaf_collection_indicator: Option<String>, cavv: Option<Secret<String>>, ucaf_authentication_data: Option<Secret<String>>, xid: Option<String>, specification_version: Option<SemanticVersion>, directory_server_transaction_id: Option<Secret<Stri...
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
74
rust
BarclaycardConsumerAuthValidateResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn get_currency(&self) -> storage_enums::Currency { self.amount_details.currency }
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
function_signature
22
rust
null
null
null
null
get_currency
null
null
null
null
null
null
null
pub struct BamboraMeta { pub three_d_session_data: String, }
crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
BamboraMeta
null
null
null
null
null
null
null
null
null
null
null
pub struct ProductionAgreementValue { pub version: String, pub ip_address: Secret<String, common_utils::pii::IpAddress>, pub timestamp: PrimitiveDateTime, }
crates/router/src/types/domain/user/dashboard_metadata.rs
router
struct_definition
36
rust
ProductionAgreementValue
null
null
null
null
null
null
null
null
null
null
null
impl OpenSearchQueryBuilder { pub fn new(query_type: OpenSearchQuery, query: String, search_params: Vec<AuthInfo>) -> Self { Self { query_type, query, search_params, offset: Default::default(), count: Default::default(), filters: Defaul...
crates/analytics/src/opensearch.rs
analytics
impl_block
1,724
rust
null
OpenSearchQueryBuilder
null
impl OpenSearchQueryBuilder
null
null
null
null
null
null
null
null
pub fn get_revenue_recovery_attempt( payment_intent: &domain_payments::PaymentIntent, revenue_recovery_metadata: &api_payments::PaymentRevenueRecoveryMetadata, billing_connector_account: &domain::MerchantConnectorAccount, card_info: api_payments::AdditionalCardInfo, payment_proce...
crates/router/src/core/webhooks/recovery_incoming.rs
router
function_signature
163
rust
null
null
null
null
get_revenue_recovery_attempt
null
null
null
null
null
null
null
impl Responder { let flow = Flow::RoutingRetrieveDictionary; Box::pin(oss_api::server_wrap( flow, state, &req, query.into_inner(), |state, auth: auth::AuthenticationData, query_params, _| { let merchant_context = domain::MerchantContext::NormalMerchant(Box::ne...
crates/router/src/routes/routing.rs
router
impl_block
215
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct ApplicationInformation { status: Option<CybersourcePaymentStatus>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
ApplicationInformation
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Gpayments {}
crates/hyperswitch_connectors/src/connectors/gpayments.rs
hyperswitch_connectors
impl_block
9
rust
null
Gpayments
api::Refund for
impl api::Refund for for Gpayments
null
null
null
null
null
null
null
null
impl AuthenticationInterface for KafkaStore { async fn insert_authentication( &self, authentication: storage::AuthenticationNew, ) -> CustomResult<storage::Authentication, errors::StorageError> { let auth = self .diesel_store .insert_authentication(authentication)...
crates/router/src/db/kafka_store.rs
router
impl_block
459
rust
null
KafkaStore
AuthenticationInterface for
impl AuthenticationInterface for for KafkaStore
null
null
null
null
null
null
null
null
pub struct Customers { id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
11
rust
Customers
null
null
null
null
null
null
null
null
null
null
null
impl super::frm::filters::FrmFilterAnalytics for ClickhouseClient {}
crates/analytics/src/clickhouse.rs
analytics
impl_block
16
rust
null
ClickhouseClient
super::frm::filters::FrmFilterAnalytics for
impl super::frm::filters::FrmFilterAnalytics for for ClickhouseClient
null
null
null
null
null
null
null
null
pub async fn get_evidence_request_data( state: &SessionState, merchant_context: &domain::MerchantContext, evidence_request: api_models::disputes::SubmitEvidenceRequest, dispute: &diesel_models::dispute::Dispute, ) -> CustomResult<SubmitEvidenceRequestData, errors::ApiErrorResponse> { let cancellatio...
crates/router/src/core/disputes/transformers.rs
router
function_signature
1,272
rust
null
null
null
null
get_evidence_request_data
null
null
null
null
null
null
null
api_models::payments::OpenBankingData, api_models::payments::OpenBankingSessionToken, api_models::payments::BankDebitResponse, api_models::payments::BankRedirectResponse, api_models::payments::BankTransferResponse, api_models::payments::CardRedirectResponse, api_m...
crates/openapi/src/openapi_v2.rs#chunk1
openapi
chunk
1,172
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct RouterStore<T: DatabaseStore> { db_store: T, cache_store: Arc<RedisStore>, master_encryption_key: StrongSecret<Vec<u8>>, pub request_id: Option<String>, }
crates/storage_impl/src/lib.rs
storage_impl
struct_definition
46
rust
RouterStore
null
null
null
null
null
null
null
null
null
null
null
File: crates/common_utils/src/id_type/global_id/token.rs Public functions: 3 use std::borrow::Cow; use error_stack::ResultExt; use crate::errors::{CustomResult, ValidationError}; crate::global_id_type!( GlobalTokenId, "A global id that can be used to identify a token. The format will be `<cell_id>_<entity...
crates/common_utils/src/id_type/global_id/token.rs
common_utils
full_file
410
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/api/refunds_v2.rs pub use hyperswitch_interfaces::api::refunds_v2::{RefundExecuteV2, RefundSyncV2, RefundV2};
crates/router/src/types/api/refunds_v2.rs
router
full_file
43
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn internal_user_signup( state: web::Data<AppState>, http_req: HttpRequest, json_payload: web::Json<user_api::CreateInternalUserRequest>, ) -> HttpResponse { let flow = Flow::InternalUserSignup; Box::pin(api::server_wrap( flow, state.clone(), &http_req, json...
crates/router/src/routes/user.rs
router
function_signature
124
rust
null
null
null
null
internal_user_signup
null
null
null
null
null
null
null
impl api::PaymentVoid for Iatapay {}
crates/hyperswitch_connectors/src/connectors/iatapay.rs
hyperswitch_connectors
impl_block
11
rust
null
Iatapay
api::PaymentVoid for
impl api::PaymentVoid for for Iatapay
null
null
null
null
null
null
null
null
impl ApiClient for ProxyClient { fn request( &self, method: Method, url: String, ) -> CustomResult<Box<dyn RequestBuilder>, ApiClientError> { self.request_with_certificate(method, url, None, None) } fn request_with_certificate( &self, method: Method, ...
crates/router/src/services/api/client.rs
router
impl_block
328
rust
null
ProxyClient
ApiClient for
impl ApiClient for for ProxyClient
null
null
null
null
null
null
null
null
pub fn new( payment_method: Option<common_enums::PaymentMethod>, payment_method_type: Option<common_enums::PaymentMethodType>, authentication_type: Option<common_enums::AuthenticationType>, currency: Option<common_enums::Currency>, country: Option<common_enums::CountryAlpha2>, ...
crates/router/src/core/routing/helpers.rs
router
function_signature
122
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct BusinessGenericLinkConfig { pub domain_name: Option<String>, pub allowed_domains: HashSet<String>, #[serde(flatten)] pub ui_config: common_utils::link_utils::GenericLinkUiConfig, }
crates/diesel_models/src/business_profile.rs
diesel_models
struct_definition
46
rust
BusinessGenericLinkConfig
null
null
null
null
null
null
null
null
null
null
null
impl PaymentMetricAccumulator for DebitRoutingAccumulator { type MetricOutput = (Option<u64>, Option<u64>, Option<u64>); fn add_metrics_bucket(&mut self, metrics: &PaymentMetricRow) { if let Some(count) = metrics.count { self.transaction_count += u64::try_from(count).unwrap_or(0); }...
crates/analytics/src/payments/accumulator.rs
analytics
impl_block
155
rust
null
DebitRoutingAccumulator
PaymentMetricAccumulator for
impl PaymentMetricAccumulator for for DebitRoutingAccumulator
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.OrganizationType { "type": "string", "enum": [ "standard", "platform" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
35
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "OrganizationType" ]
null
null
null
null
File: crates/router/src/core/utils/refunds_validator.rs Public functions: 10 use diesel_models::refund as diesel_refund; use error_stack::report; use router_env::{instrument, tracing}; use time::PrimitiveDateTime; use crate::{ core::errors::{self, CustomResult, RouterResult}, types::{ self, a...
crates/router/src/core/utils/refunds_validator.rs
router
full_file
2,315
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/moneris.rs
hyperswitch_connectors
function_signature
27
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub fn build_payout_link_status_html( link_data: &GenericLinkStatusData, locale: &str, ) -> CustomResult<String, errors::ApiErrorResponse> { let mut tera = Tera::default(); let mut context = Context::new(); // Insert dynamic context in CSS let css_dynamic_context = "{{ color_scheme }}"; let...
crates/router/src/services/api/generic_link_response.rs
router
function_signature
504
rust
null
null
null
null
build_payout_link_status_html
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ThreeDSDecision { "type": "string", "description": "Enum representing the possible outcomes of the 3DS Decision Rule Engine.", "enum": [ "no_three_ds", "challenge_requested", "challenge_preferred", "three_ds_exemption_requested_tra", "three_ds_exemption_r...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
93
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ThreeDSDecision" ]
null
null
null
null
pub async fn verify_connector_credentials( state: SessionState, req: VerifyConnectorRequest, _profile_id: Option<common_utils::id_type::ProfileId>, ) -> errors::RouterResponse<()> { let boxed_connector = api::ConnectorData::get_connector_by_name( &state.conf.connectors, &req.connector_na...
crates/router/src/core/verify_connector.rs
router
function_signature
327
rust
null
null
null
null
verify_connector_credentials
null
null
null
null
null
null
null
pub struct ThunesErrorResponse { pub status_code: u16, pub code: String, pub message: String, pub reason: Option<String>, }
crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
ThunesErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct HyperswitchVaultCreateRequest { customer_id: String, }
crates/hyperswitch_connectors/src/connectors/hyperswitch_vault/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
HyperswitchVaultCreateRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct IncomingWebhookDetails { pub object_reference_id: ObjectReferenceId, pub resource_object: Vec<u8>, }
crates/api_models/src/webhooks.rs
api_models
struct_definition
27
rust
IncomingWebhookDetails
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/v2/organizations") .app_data(web::Data::new(state)) .service(web::resource("").route(web::post().to(admin::organization_create))) .service( web::scope("/{id}") .service( ...
crates/router/src/routes/app.rs
router
function_signature
131
rust
null
null
null
null
server
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Paysafe {}
crates/hyperswitch_connectors/src/connectors/paysafe.rs
hyperswitch_connectors
impl_block
9
rust
null
Paysafe
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Paysafe
null
null
null
null
null
null
null
null
pub struct Evoucher { pub password_evoucher: String, pub username_evoucher: String, pub merchant_id_evoucher: String, }
crates/connector_configs/src/connector.rs
connector_configs
struct_definition
31
rust
Evoucher
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Globepay {}
crates/hyperswitch_connectors/src/connectors/globepay.rs
hyperswitch_connectors
impl_block
10
rust
null
Globepay
api::PaymentSync for
impl api::PaymentSync for for Globepay
null
null
null
null
null
null
null
null
impl super::payments::filters::PaymentFilterAnalytics for ClickhouseClient {}
crates/analytics/src/clickhouse.rs
analytics
impl_block
15
rust
null
ClickhouseClient
super::payments::filters::PaymentFilterAnalytics for
impl super::payments::filters::PaymentFilterAnalytics for for ClickhouseClient
null
null
null
null
null
null
null
null
pub struct RecurrenceRequest { action: NexixpayRecurringAction, contract_id: Secret<String>, contract_type: ContractType, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
RecurrenceRequest
null
null
null
null
null
null
null
null
null
null
null
impl<K, V> IntoIter<K, V> { fn new(iter: vec::IntoIter<V>) -> Self { Self { inner: iter.enumerate(), _marker: PhantomData, } } }
crates/hyperswitch_constraint_graph/src/dense_map.rs
hyperswitch_constraint_graph
impl_block
48
rust
null
IntoIter
null
impl IntoIter
null
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GetAuthEventFilters; Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inner(), |state, auth: AuthenticationData, req, _| async move { let org_id = auth.merchant_account.g...
crates/router/src/analytics.rs
router
impl_block
229
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AcquirerDetails { "type": "object", "properties": { "acquirer_bin": { "type": "string", "description": "The bin of the card.", "example": "123456", "nullable": true }, "acquirer_merchant_id": { "type": "string", "description": "T...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
165
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AcquirerDetails" ]
null
null
null
null
pub struct AdditionalData { masked_pan: String, card_id: Secret<String>, card_id4: Option<Secret<String>>, card_expiry_date: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
39
rust
AdditionalData
null
null
null
null
null
null
null
null
null
null
null
pub async fn connector_retrieve() {}
crates/openapi/src/routes/merchant_connector_account.rs
openapi
function_signature
8
rust
null
null
null
null
connector_retrieve
null
null
null
null
null
null
null
impl api::Refund for Stax {}
crates/hyperswitch_connectors/src/connectors/stax.rs
hyperswitch_connectors
impl_block
9
rust
null
Stax
api::Refund for
impl api::Refund for for Stax
null
null
null
null
null
null
null
null
impl api::RefundExecute for Placetopay {}
crates/hyperswitch_connectors/src/connectors/placetopay.rs
hyperswitch_connectors
impl_block
12
rust
null
Placetopay
api::RefundExecute for
impl api::RefundExecute for for Placetopay
null
null
null
null
null
null
null
null
pub struct CeleroMandateFields { pub card_on_file_indicator: Option<CardOnFileIndicator>, pub initiated_by: Option<InitiatedBy>, pub initial_transaction_id: Option<String>, pub stored_credential_indicator: Option<StoredCredentialIndicator>, pub billing_method: Option<BillingMethod>, }
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
66
rust
CeleroMandateFields
null
null
null
null
null
null
null
null
null
null
null
Documentation: add_connector.md # Type: Doc File # Guide to Integrating a Connector ## Table of Contents 1. [Introduction](#introduction) 2. [Prerequisites](#prerequisites) 3. [Development Environment Setup & Configuration](#development-environment-setup--configuration) 4. [Create a Connector](#create-a-connec...
add_connector.md#chunk0
null
doc_chunk
8,154
doc
null
null
null
null
null
null
null
null
null
null
null
null