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 ReconUpdateMerchantRequest { pub recon_status: enums::ReconStatus, pub user_email: pii::Email, }
crates/api_models/src/recon.rs
api_models
struct_definition
28
rust
ReconUpdateMerchantRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Gocardless {}
crates/hyperswitch_connectors/src/connectors/gocardless.rs
hyperswitch_connectors
impl_block
12
rust
null
Gocardless
api::MandateSetup for
impl api::MandateSetup for for Gocardless
null
null
null
null
null
null
null
null
pub async fn call_decision_manager<F, D>( state: &SessionState, merchant_context: &domain::MerchantContext, _business_profile: &domain::Profile, payment_data: &D, ) -> RouterResult<Option<enums::AuthenticationType>> where F: Clone, D: OperationSessionGetters<F>, { let setup_mandate = payment...
crates/router/src/core/payments.rs
router
function_signature
335
rust
null
null
null
null
call_decision_manager
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/integrity.rs use common_utils::errors::IntegrityCheckError; use hyperswitch_domain_models::router_request_types::{ AuthoriseIntegrityObject, CaptureIntegrityObject, PaymentsAuthorizeData, PaymentsCaptureData, PaymentsSyncData, RefundIntegrityObject, RefundsData, SyncInte...
crates/hyperswitch_interfaces/src/integrity.rs
hyperswitch_interfaces
full_file
2,220
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_merchant_active_algorithm_ref( state: &SessionState, key_store: &domain::MerchantKeyStore, config_key: cache::CacheKind<'_>, algorithm_id: routing_types::RoutingAlgorithmRef, ) -> RouterResult<()> { let ref_value = algorithm_id .encode_to_value() .change_context(e...
crates/router/src/core/routing/helpers.rs
router
function_signature
386
rust
null
null
null
null
update_merchant_active_algorithm_ref
null
null
null
null
null
null
null
/// A `BoxedConnectorIntegrationInterface` containing the connector integration pub fn get_connector_integration<F, ResourceCommonData, Req, Resp>( &self, ) -> BoxedConnectorIntegrationInterface<F, ResourceCommonData, Req, Resp> where dyn Connector + Sync: ConnectorIntegration<F, Req, Resp>,...
crates/hyperswitch_interfaces/src/connector_integration_interface.rs
hyperswitch_interfaces
function_signature
201
rust
null
null
null
null
get_connector_integration
null
null
null
null
null
null
null
impl api::PaymentCapture for Noon {}
crates/hyperswitch_connectors/src/connectors/noon.rs
hyperswitch_connectors
impl_block
8
rust
null
Noon
api::PaymentCapture for
impl api::PaymentCapture for for Noon
null
null
null
null
null
null
null
null
File: crates/common_utils/src/id_type/merchant_connector_account.rs Public functions: 1 use std::str::FromStr; use crate::errors::{CustomResult, ValidationError}; crate::id_type!( MerchantConnectorAccountId, "A type for merchant_connector_id that can be used for merchant_connector_account ids" ); crate::imp...
crates/common_utils/src/id_type/merchant_connector_account.rs
common_utils
full_file
309
null
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: docs/SECURITY.md # Type: Doc File # Security Policy ## Reporting a security issue The hyperswitch project team welcomes security reports and is committed to providing prompt attention to security issues. Security issues should be reported privately via the [advisories page on GitHub][report-vulnerabil...
docs/SECURITY.md
null
doc_file
130
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl NetceteraPreAuthenticationResponseData { pub fn get_card_range_if_available(&self) -> Option<CardRange> { let card_range = self .card_ranges .iter() .max_by_key(|card_range| &card_range.highest_common_supported_version); card_range.cloned() } }
crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
hyperswitch_connectors
impl_block
70
rust
null
NetceteraPreAuthenticationResponseData
null
impl NetceteraPreAuthenticationResponseData
null
null
null
null
null
null
null
null
/// fn set_error_response_body pub fn set_error_response_body<T: Serialize>(&mut self, response: &T) { match masking::masked_serialize(response) { Ok(masked) => { self.error = Some(masked.to_string()); } Err(er) => self.set_error(json!({"error": er.to_stri...
crates/hyperswitch_interfaces/src/events/connector_api_logs.rs
hyperswitch_interfaces
function_signature
77
rust
null
null
null
null
set_error_response_body
null
null
null
null
null
null
null
impl LockerMockUp { pub async fn find_by_card_id(conn: &PgPooledConn, card_id: &str) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::card_id.eq(card_id.to_owned()), ) .await } pub async fn delete_by_card_id(c...
crates/diesel_models/src/query/locker_mock_up.rs
diesel_models
impl_block
146
rust
null
LockerMockUp
null
impl LockerMockUp
null
null
null
null
null
null
null
null
pub async fn ucs_logging_wrapper<T, F, Fut, Req, Resp, GrpcReq, GrpcResp>( router_data: RouterData<T, Req, Resp>, state: &SessionState, grpc_request: GrpcReq, handler: F, ) -> RouterResult<RouterData<T, Req, Resp>> where T: std::fmt::Debug + Clone + Send + 'static, Req: std::fmt::Debug + Clone +...
crates/router/src/core/unified_connector_service.rs
router
function_signature
899
rust
null
null
null
null
ucs_logging_wrapper
null
null
null
null
null
null
null
Documentation: api-reference/v1/payments/payments--update-metadata.mdx # Type: Doc File --- openapi: post /payments/{payment_id}/update_metadata ---
api-reference/v1/payments/payments--update-metadata.mdx
null
doc_file
37
doc
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentLinkConfig { "type": "object", "required": [ "theme", "logo", "seller_name", "sdk_layout", "display_sdk_only", "enabled_saved_payment_method", "hide_card_nickname_field", "show_card_form_by_default", "enable_button_only_on_form_ready"...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
1,148
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentLinkConfig" ]
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/cache") .app_data(web::Data::new(state)) .service(web::resource("/invalidate/{key}").route(web::post().to(invalidate))) }
crates/router/src/routes/app.rs
router
function_signature
51
rust
null
null
null
null
server
null
null
null
null
null
null
null
impl ConnectorValidation for Vgs {}
crates/hyperswitch_connectors/src/connectors/vgs.rs
hyperswitch_connectors
impl_block
7
rust
null
Vgs
ConnectorValidation for
impl ConnectorValidation for for Vgs
null
null
null
null
null
null
null
null
impl api::PaymentSync for Dwolla {}
crates/hyperswitch_connectors/src/connectors/dwolla.rs
hyperswitch_connectors
impl_block
9
rust
null
Dwolla
api::PaymentSync for
impl api::PaymentSync for for Dwolla
null
null
null
null
null
null
null
null
pub trait GetRoutableConnectorsForChoice { async fn get_routable_connectors( &self, db: &dyn StorageInterface, business_profile: &domain::Profile, ) -> RouterResult<RoutableConnectors>; }
crates/router/src/core/routing.rs
router
trait_definition
54
rust
null
null
GetRoutableConnectorsForChoice
null
null
null
null
null
null
null
null
null
impl FraudCheckNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<FraudCheck> { generics::generic_insert(conn, self).await } }
crates/diesel_models/src/query/fraud_check.rs
diesel_models
impl_block
42
rust
null
FraudCheckNew
null
impl FraudCheckNew
null
null
null
null
null
null
null
null
File: crates/analytics/src/payment_intents/metrics/sessionized_metrics/payments_distribution.rs use std::collections::HashSet; use api_models::analytics::{ payment_intents::{ PaymentIntentDimensions, PaymentIntentFilters, PaymentIntentMetricsBucketIdentifier, }, Granularity, TimeRange, }; use comm...
crates/analytics/src/payment_intents/metrics/sessionized_metrics/payments_distribution.rs
analytics
full_file
983
null
null
null
null
null
null
null
null
null
null
null
null
null
/// get_creds_identifier_key pub fn get_creds_identifier_key(&self, creds_identifier: &str) -> String { format!("mcd_{}_{creds_identifier}", self.get_string_repr()) }
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
45
rust
null
null
null
null
get_creds_identifier_key
null
null
null
null
null
null
null
pub fn parser(val: String) -> String { ron_parser::my_parse(val) }
crates/euclid_wasm/src/lib.rs
euclid_wasm
function_signature
20
rust
null
null
null
null
parser
null
null
null
null
null
null
null
/// fn set_response_body pub fn set_response_body<T: Serialize>(&mut self, response: &T) { match masking::masked_serialize(response) { Ok(masked) => { self.masked_response = Some(masked.to_string()); } Err(er) => self.set_error(json!({"error": er.to_string...
crates/hyperswitch_interfaces/src/events/connector_api_logs.rs
hyperswitch_interfaces
function_signature
77
rust
null
null
null
null
set_response_body
null
null
null
null
null
null
null
pub struct Proxy { /// The URL of the HTTP proxy server. pub http_url: Option<String>, /// The URL of the HTTPS proxy server. pub https_url: Option<String>, /// The timeout duration (in seconds) for idle connections in the proxy pool. pub idle_pool_connection_timeout: Option<u64>, /// A c...
crates/hyperswitch_interfaces/src/types.rs
hyperswitch_interfaces
struct_definition
96
rust
Proxy
null
null
null
null
null
null
null
null
null
null
null
impl common_utils::events::ApiEventMetric for TotalEventsResponse { fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType> { Some(common_utils::events::ApiEventsType::Events { merchant_id: self.events.first().map(|event| event.merchant_id.clone())?, }) } }
crates/api_models/src/webhook_events.rs
api_models
impl_block
73
rust
null
TotalEventsResponse
common_utils::events::ApiEventMetric for
impl common_utils::events::ApiEventMetric for for TotalEventsResponse
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CustomerUpdateRequest { "type": "object", "description": "The identifier for the customer object. If not provided the customer ID will be autogenerated.", "properties": { "name": { "type": "string", "description": "The customer's name", "example": "Jon ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
476
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CustomerUpdateRequest" ]
null
null
null
null
pub struct ExternalAuthenticationFlowData { pub merchant_id: common_utils::id_type::MerchantId, pub connector_meta_data: Option<pii::SecretSerdeValue>, pub address: PaymentAddress, }
crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs
hyperswitch_domain_models
struct_definition
44
rust
ExternalAuthenticationFlowData
null
null
null
null
null
null
null
null
null
null
null
pub fn get_payment_id(&self) -> Option<common_utils::id_type::PaymentId> { match self { Self::Payment { payment_id, .. } | Self::Refund { payment_id, .. } | Self::Dispute { payment_id, .. } => Some(payment_id.to_owned()), Self::NoEffect | Self::Mandate { .. } | Se...
crates/api_models/src/webhooks.rs
api_models
function_signature
127
rust
null
null
null
null
get_payment_id
null
null
null
null
null
null
null
pub fn new( order_amount: MinorUnit, shipping_cost: Option<MinorUnit>, order_tax_amount: Option<MinorUnit>, surcharge_amount: Option<MinorUnit>, tax_on_surcharge: Option<MinorUnit>, ) -> Self { Self { order_amount, shipping_cost, or...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
87
rust
null
null
null
null
new
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MandateType { "oneOf": [ { "type": "object", "required": [ "single_use" ], "properties": { "single_use": { "$ref": "#/components/schemas/MandateAmountData" } } }, { "type": "object", "require...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
147
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MandateType" ]
null
null
null
null
impl webhooks::IncomingWebhook for Novalnet { fn get_webhook_source_verification_algorithm( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(crypto::Sha256)) } fn get_w...
crates/hyperswitch_connectors/src/connectors/novalnet.rs
hyperswitch_connectors
impl_block
1,780
rust
null
Novalnet
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Novalnet
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<LockerMockUp> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/locker_mock_up.rs
diesel_models
function_signature
36
rust
null
null
null
null
insert
null
null
null
null
null
null
null
impl api::RefundSync for Nomupay {}
crates/hyperswitch_connectors/src/connectors/nomupay.rs
hyperswitch_connectors
impl_block
11
rust
null
Nomupay
api::RefundSync for
impl api::RefundSync for for Nomupay
null
null
null
null
null
null
null
null
pub struct BluesnapPaymentsResponse { pub processing_info: ProcessingInfoResponse, pub transaction_id: String, pub card_transaction_type: BluesnapTxnType, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
BluesnapPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct GetnetRouterData<T> { pub amount: FloatMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
GetnetRouterData
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Hipay { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented)) ...
crates/hyperswitch_connectors/src/connectors/hipay.rs
hyperswitch_connectors
impl_block
210
rust
null
Hipay
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Hipay
null
null
null
null
null
null
null
null
pub struct SiftPaymentsRequest { amount: StringMinorUnit, card: SiftCard, }
crates/hyperswitch_connectors/src/connectors/sift/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
SiftPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct Payeezy;
crates/hyperswitch_connectors/src/connectors/payeezy.rs
hyperswitch_connectors
struct_definition
6
rust
Payeezy
null
null
null
null
null
null
null
null
null
null
null
pub fn get_frm_config_as_secret(&self) -> Option<Vec<Secret<serde_json::Value>>> { match self.frm_configs.as_ref() { Some(frm_value) => { let configs_for_frm_value: Vec<Secret<serde_json::Value>> = frm_value .iter() .map(|config| config.encode_...
crates/api_models/src/admin.rs
api_models
function_signature
115
rust
null
null
null
null
get_frm_config_as_secret
null
null
null
null
null
null
null
impl api::PaymentCapture for Affirm {}
crates/hyperswitch_connectors/src/connectors/affirm.rs
hyperswitch_connectors
impl_block
9
rust
null
Affirm
api::PaymentCapture for
impl api::PaymentCapture for for Affirm
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/hyperwallet.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub fn get_vault_response_for_retrieve_payment_method_data<F>( router_data: VaultRouterData<F>, ) -> RouterResult<pm_types::VaultRetrieveResponse> { match router_data.response { Ok(response) => match response { types::VaultResponseData::ExternalVaultRetrieveResponse { vault_data } => { ...
crates/router/src/core/payment_methods/vault.rs
router
function_signature
184
rust
null
null
null
null
get_vault_response_for_retrieve_payment_method_data
null
null
null
null
null
null
null
impl<Secret: Clone + ZeroizableSecret, MaskingStrategy> Clone for StrongSecret<Secret, MaskingStrategy> { fn clone(&self) -> Self { Self { inner_secret: self.inner_secret.clone(), masking_strategy: PhantomData, } } }
crates/masking/src/strong_secret.rs
masking
impl_block
61
rust
null
StrongSecret
Clone for
impl Clone for for StrongSecret
null
null
null
null
null
null
null
null
pub struct BankPaymentInformation { pub amount: Amount, pub references: References, #[serde(skip_serializing_if = "Option::is_none")] pub debtor: Option<DebtorInformation>, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
BankPaymentInformation
null
null
null
null
null
null
null
null
null
null
null
impl PaymentAttemptBatchNew { // Used to verify compatibility with PaymentAttemptTable fn convert_into_normal_attempt_insert(self) -> PaymentAttemptNew { PaymentAttemptNew { payment_id: self.payment_id, merchant_id: self.merchant_id, attempt_id: self.attempt_id, ...
crates/diesel_models/src/user/sample_data.rs
diesel_models
impl_block
786
rust
null
PaymentAttemptBatchNew
null
impl PaymentAttemptBatchNew
null
null
null
null
null
null
null
null
impl api::PaymentToken for Silverflow {}
crates/hyperswitch_connectors/src/connectors/silverflow.rs
hyperswitch_connectors
impl_block
9
rust
null
Silverflow
api::PaymentToken for
impl api::PaymentToken for for Silverflow
null
null
null
null
null
null
null
null
pub struct AciPaymentsResponse { id: String, registration_id: Option<Secret<String>>, // ndc is an internal unique identifier for the request. ndc: String, timestamp: String, // Number useful for support purposes. build_number: String, pub(super) result: ResultCode, pub(super) redire...
crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
hyperswitch_connectors
struct_definition
82
rust
AciPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct IssuerData { /// The name of the issuer. pub name: Option<String>, /// The country of the issuer. #[schema(value_type = Country)] pub country: Option<common_enums::Country>, }
crates/api_models/src/three_ds_decision_rule.rs
api_models
struct_definition
50
rust
IssuerData
null
null
null
null
null
null
null
null
null
null
null
pub struct RapydAuthType { pub access_key: Secret<String>, pub secret_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
RapydAuthType
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_by_merchant_id_connector_payout_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, connector_payout_id: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::merchant...
crates/diesel_models/src/query/payout_attempt.rs
diesel_models
function_signature
117
rust
null
null
null
null
find_by_merchant_id_connector_payout_id
null
null
null
null
null
null
null
pub struct CashtocodeIncomingWebhook { pub amount: FloatMajorUnit, pub currency: String, pub foreign_transaction_id: String, #[serde(rename = "type")] pub event_type: String, pub transaction_id: String, }
crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs
hyperswitch_connectors
struct_definition
54
rust
CashtocodeIncomingWebhook
null
null
null
null
null
null
null
null
null
null
null
pub async fn apple_pay_merchant_registration( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<verifications::ApplepayMerchantVerificationRequest>, path: web::Path<common_utils::id_type::MerchantId>, ) -> impl Responder { let flow = Flow::Verification; let merchant_id = path...
crates/router/src/routes/verification.rs
router
function_signature
231
rust
null
null
null
null
apple_pay_merchant_registration
null
null
null
null
null
null
null
File: crates/router/src/core/fraud_check/operation/fraud_check_post.rs Public structs: 1 use async_trait::async_trait; use common_enums::{CaptureMethod, FrmSuggestion}; use common_utils::ext_traits::Encode; use hyperswitch_domain_models::payments::{ payment_attempt::PaymentAttemptUpdate, payment_intent::PaymentIn...
crates/router/src/core/fraud_check/operation/fraud_check_post.rs
router
full_file
4,720
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn pg_connection_write<T: storage_impl::DatabaseStore>( store: &T, ) -> errors::CustomResult< PooledConnection<'_, async_bb8_diesel::ConnectionManager<PgConnection>>, storage_errors::StorageError, > { // Since all writes should happen to master DB only choose master DB. let pool = store.ge...
crates/router/src/connection.rs
router
function_signature
101
rust
null
null
null
null
pg_connection_write
null
null
null
null
null
null
null
pub struct GetCardToken { pub card_reference: String, pub customer_id: id_type::GlobalCustomerId, }
crates/router/src/types/payment_methods.rs
router
struct_definition
25
rust
GetCardToken
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Worldpay {}
crates/hyperswitch_connectors/src/connectors/worldpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Worldpay
api::Refund for
impl api::Refund for for Worldpay
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentMethodIssuerCode { "type": "string", "enum": [ "jp_hdfc", "jp_icici", "jp_googlepay", "jp_applepay", "jp_phonepay", "jp_wechat", "jp_sofort", "jp_giropay", "jp_sepa", "jp_bacs" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
94
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentMethodIssuerCode" ]
null
null
null
null
pub struct RefundResponse { id: String, status: RefundStatus, amount: Option<OrderAmount>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn mk_add_bank_response_hs( _bank: api::BankPayout, _bank_reference: String, _req: api::PaymentMethodCreate, _merchant_id: &id_type::MerchantId, ) -> api::PaymentMethodResponse { todo!() }
crates/router/src/core/payment_methods/transformers.rs
router
function_signature
60
rust
null
null
null
null
mk_add_bank_response_hs
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AdyenSplitData { "type": "object", "description": "Fee information for Split Payments to be charged on the payment being collected for Adyen", "required": [ "split_items" ], "properties": { "store": { "type": "string", "description": "The store identi...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
148
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AdyenSplitData" ]
null
null
null
null
pub struct GetnetCancelRequest { pub payment: CancelPaymentData, }
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
GetnetCancelRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct FiservemeaCaptureRequest { request_type: FiservemeaRequestType, transaction_amount: FiservemeaTransactionAmount, }
crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
FiservemeaCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct GetUserRoleDetailsResponseV2 { pub role_id: String, pub org: NameIdUnit<Option<String>, id_type::OrganizationId>, pub merchant: Option<NameIdUnit<OptionalEncryptableName, id_type::MerchantId>>, pub profile: Option<NameIdUnit<String, id_type::ProfileId>>, pub status: UserStatus, pub en...
crates/api_models/src/user.rs
api_models
struct_definition
92
rust
GetUserRoleDetailsResponseV2
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundResponse { id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Sift { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&SIFT_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*SIFT_SUPPORTED_PAYMENT_METHODS) } fn get_supported_web...
crates/hyperswitch_connectors/src/connectors/sift.rs
hyperswitch_connectors
impl_block
105
rust
null
Sift
ConnectorSpecifications for
impl ConnectorSpecifications for for Sift
null
null
null
null
null
null
null
null
pub fn contains_token(s: &str) -> bool { s.contains("{{") && s.contains("$") && s.contains("}}") }
crates/router/src/core/proxy/utils.rs
router
function_signature
30
rust
null
null
null
null
contains_token
null
null
null
null
null
null
null
impl api::RefundSync for Mpgs {}
crates/hyperswitch_connectors/src/connectors/mpgs.rs
hyperswitch_connectors
impl_block
11
rust
null
Mpgs
api::RefundSync for
impl api::RefundSync for for Mpgs
null
null
null
null
null
null
null
null
impl api::PaymentSession for Wellsfargo {}
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs
hyperswitch_connectors
impl_block
10
rust
null
Wellsfargo
api::PaymentSession for
impl api::PaymentSession for for Wellsfargo
null
null
null
null
null
null
null
null
pub async fn delete_profile( state: SessionState, profile_id: id_type::ProfileId, merchant_id: &id_type::MerchantId, ) -> RouterResponse<bool> { let db = state.store.as_ref(); let delete_result = db .delete_profile_by_profile_id_merchant_id(&profile_id, merchant_id) .await .t...
crates/router/src/core/admin.rs
router
function_signature
119
rust
null
null
null
null
delete_profile
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/fiuu.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl IncomingWebhook for Adyen { fn get_webhook_source_verification_algorithm( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn common_utils::crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(common_utils::crypto::HmacSha256)) } ...
crates/hyperswitch_connectors/src/connectors/adyen.rs
hyperswitch_connectors
impl_block
1,993
rust
null
Adyen
IncomingWebhook for
impl IncomingWebhook for for Adyen
null
null
null
null
null
null
null
null
pub struct IntoIter<K, V> { inner: iter::Enumerate<vec::IntoIter<V>>, _marker: PhantomData<K>, }
crates/hyperswitch_constraint_graph/src/dense_map.rs
hyperswitch_constraint_graph
struct_definition
32
rust
IntoIter
null
null
null
null
null
null
null
null
null
null
null
/// Panics if Store can't be created or JWE decryption fails pub async fn with_storage( conf: settings::Settings<SecuredSecret>, storage_impl: StorageImpl, shut_down_signal: oneshot::Sender<()
crates/router/src/routes/app.rs
router
function_signature
52
rust
null
null
null
null
with_storage
null
null
null
null
null
null
null
pub async fn incoming_webhooks_wrapper<W: types::OutgoingWebhookType>( flow: &impl router_env::types::FlowMetric, state: SessionState, req_state: ReqState, req: &actix_web::HttpRequest, merchant_context: domain::MerchantContext, connector_name_or_mca_id: &str, body: actix_web::web::Bytes, ...
crates/router/src/core/webhooks/incoming.rs
router
function_signature
496
rust
null
null
null
null
incoming_webhooks_wrapper
null
null
null
null
null
null
null
pub struct CardResponse { pub masked_number: String, }
crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
CardResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_merchant_connector_account_by_name( state: &SessionState, merchant_id: &common_utils::id_type::MerchantId, connector_name: &str, key_store: &MerchantKeyStore, ) -> UserResult<Option<domain::MerchantConnectorAccount>> { #[cfg(feature = "v1")] { state .store ...
crates/router/src/core/user/dashboard_metadata.rs
router
function_signature
207
rust
null
null
null
null
get_merchant_connector_account_by_name
null
null
null
null
null
null
null
)?; Ok(PaymentMethodToken::ApplePayDecrypt(Box::new( apple_pay_predecrypt, ))) } } #[async_trait::async_trait] impl<F, D> WalletFlow<F, D> for GooglePayWallet where F: Send + Clone, D: OperationSessionGetters<F> + Send + Sync + Clone, { fn check_predecrypted...
crates/router/src/core/payments.rs#chunk5
router
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CoingatePaymentsRequest { price_amount: StringMajorUnit, price_currency: Currency, receive_currency: String, callback_url: String, success_url: Option<String>, cancel_url: Option<String>, title: String, token: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs
hyperswitch_connectors
struct_definition
60
rust
CoingatePaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { let mut routes_with_restricted_access = web::scope(""); #[cfg(not(feature = "external_access_dc"))] { routes_with_restricted_access = routes_with_restricted_access.guard(actix_web::guard::Host("localhost")); } ...
crates/router/src/routes/app.rs
router
function_signature
272
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub async fn routing_retrieve_linked_config() {}
crates/openapi/src/routes/routing.rs
openapi
function_signature
10
rust
null
null
null
null
routing_retrieve_linked_config
null
null
null
null
null
null
null
File: crates/router/src/db.rs Public functions: 1 pub mod address; pub mod api_keys; pub mod authentication; pub mod authorization; pub mod blocklist; pub mod blocklist_fingerprint; pub mod blocklist_lookup; pub mod business_profile; pub mod callback_mapper; pub mod capture; pub mod configs; pub mod customers; pub mo...
crates/router/src/db.rs
router
full_file
3,113
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct WellsfargoRefundRequest { order_information: OrderInformation, client_reference_information: ClientReferenceInformation, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
WellsfargoRefundRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorMandateRevoke for Wellsfargo {}
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs
hyperswitch_connectors
impl_block
14
rust
null
Wellsfargo
api::ConnectorMandateRevoke for
impl api::ConnectorMandateRevoke for for Wellsfargo
null
null
null
null
null
null
null
null
pub struct BreadpayAuthType { pub(super) api_key: Secret<String>, pub(super) api_secret: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/breadpay/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
BreadpayAuthType
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs Public functions: 3 Public structs: 39 use std::collections::HashMap; use api_models::payments; use cards::CardNumber; use common_enums::{enums, BankNames, CaptureMethod, Currency}; use common_types::payments::ApplePayPredecryptData; use common...
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs#chunk0
hyperswitch_connectors
chunk
8,183
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct FrmPaymentMethodType { ///payment method types(credit, debit) that can be used in the payment #[schema(value_type = PaymentMethodType)] pub payment_method_type: Option<common_enums::PaymentMethodType>, ///card networks(like visa mastercard) types that can be used in the payment #[schema(v...
crates/api_models/src/admin.rs
api_models
struct_definition
171
rust
FrmPaymentMethodType
null
null
null
null
null
null
null
null
null
null
null
pub struct TransactionDetails { merchant_authentication: AuthorizedotnetAuthType, #[serde(rename = "transId")] transaction_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
TransactionDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct BlikDetails { shopper_name: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
BlikDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct ProcessDisputeWorkflow;
crates/router/src/workflows/process_dispute.rs
router
struct_definition
7
rust
ProcessDisputeWorkflow
null
null
null
null
null
null
null
null
null
null
null
pub trait KafkaMessage where Self: Serialize + std::fmt::Debug, { fn value(&self) -> MQResult<Vec<u8>> { // Add better error logging here serde_json::to_vec(&self).change_context(KafkaError::GenericError) } fn key(&self) -> String; fn event_type(&self) -> EventType; fn creatio...
crates/router/src/services/kafka.rs
router
trait_definition
100
rust
null
null
KafkaMessage
null
null
null
null
null
null
null
null
null
pub async fn insert_user_in_db( &self, db: &dyn GlobalStorageInterface, ) -> UserResult<UserFromStorage> { match db.insert_user(self.clone().try_into()?).await { Ok(user) => Ok(user.into()), Err(e) => { if e.current_context().is_db_unique_violation() {...
crates/router/src/types/domain/user.rs
router
function_signature
118
rust
null
null
null
null
insert_user_in_db
null
null
null
null
null
null
null
pub struct GpayTokenParameters { pub gateway: String, pub gateway_merchant_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
GpayTokenParameters
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalMeta { pub authorize_id: Option<String>, pub capture_id: Option<String>, pub incremental_authorization_id: Option<String>, pub psync_flow: PaypalPaymentIntent, pub next_action: Option<api_models::payments::NextActionCall>, pub order_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
66
rust
PaypalMeta
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorRedirectResponse for ConnectorEnum { fn get_flow_type( &self, query_params: &str, json_payload: Option<serde_json::Value>, action: PaymentAction, ) -> CustomResult<common_enums::CallConnectorAction, errors::ConnectorError> { match self { Self::Ol...
crates/hyperswitch_interfaces/src/connector_integration_interface.rs
hyperswitch_interfaces
impl_block
111
rust
null
ConnectorEnum
ConnectorRedirectResponse for
impl ConnectorRedirectResponse for for ConnectorEnum
null
null
null
null
null
null
null
null
impl MessagingInterface for EventLogger { type MessageClass = EventType; fn send_message<T>( &self, data: T, metadata: HashMap<String, String>, _timestamp: PrimitiveDateTime, ) -> error_stack::Result<(), EventsError> where T: Message<Class = Self::MessageClass> +...
crates/router/src/events/event_logger.rs
router
impl_block
143
rust
null
EventLogger
MessagingInterface for
impl MessagingInterface for for EventLogger
null
null
null
null
null
null
null
null
impl api::RefundExecute for Prophetpay {}
crates/hyperswitch_connectors/src/connectors/prophetpay.rs
hyperswitch_connectors
impl_block
10
rust
null
Prophetpay
api::RefundExecute for
impl api::RefundExecute for for Prophetpay
null
null
null
null
null
null
null
null
pub struct GocardlessWebhookEvent { pub events: Vec<WebhookEvent>, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
GocardlessWebhookEvent
null
null
null
null
null
null
null
null
null
null
null
pub fn get_acquirer_details_from_network( &self, network: common_enums::CardNetwork, ) -> Option<AcquirerConfig> { // iterate over acquirer_config_map and find the acquirer config for the given network self.acquirer_config_map .as_ref() .and_then(|acquirer_con...
crates/hyperswitch_domain_models/src/business_profile.rs
hyperswitch_domain_models
function_signature
124
rust
null
null
null
null
get_acquirer_details_from_network
null
null
null
null
null
null
null
pub struct DisputeFilterRow { pub connector: Option<String>, pub dispute_status: Option<String>, pub connector_status: Option<String>, pub dispute_stage: Option<String>, pub currency: Option<DBEnumWrapper<Currency>>, }
crates/analytics/src/disputes/filters.rs
analytics
struct_definition
51
rust
DisputeFilterRow
null
null
null
null
null
null
null
null
null
null
null