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
impl SESConfig { /// Validation for the SES client specific configs pub fn validate(&self) -> Result<(), &'static str> { use common_utils::{ext_traits::ConfigExt, fp_utils::when}; when(self.email_role_arn.is_default_or_empty(), || { Err("email.aws_ses.email_role_arn must not be empt...
crates/external_services/src/email/ses.rs
external_services
impl_block
115
rust
null
SESConfig
null
impl SESConfig
null
null
null
null
null
null
null
null
File: crates/storage_impl/src/reverse_lookup.rs use diesel_models::reverse_lookup::ReverseLookup; use crate::redis::kv_store::KvStorePartition; impl KvStorePartition for ReverseLookup {}
crates/storage_impl/src/reverse_lookup.rs
storage_impl
full_file
42
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentsAnalyticsMetadata { pub total_payment_processed_amount: Option<u64>, pub total_payment_processed_amount_in_usd: Option<u64>, pub total_payment_processed_amount_without_smart_retries: Option<u64>, pub total_payment_processed_amount_without_smart_retries_usd: Option<u64>, pub total_...
crates/api_models/src/analytics.rs
api_models
struct_definition
126
rust
PaymentsAnalyticsMetadata
null
null
null
null
null
null
null
null
null
null
null
pub async fn generate_merchant_dispute_report( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<ReportRequest>, ) -> impl Responder { let flow = AnalyticsFlow::GenerateDisputeReport; Box::pin(api::server_wrap( flow, stat...
crates/router/src/analytics.rs
router
function_signature
368
rust
null
null
null
null
generate_merchant_dispute_report
null
null
null
null
null
null
null
impl<T: Eq + PartialEq + Clone> Maskable<T> { /// Get the inner data while consuming self pub fn into_inner(self) -> T { match self { Self::Masked(inner_secret) => inner_secret.expose(), Self::Normal(inner) => inner, } } /// Create a new Masked data pub fn ne...
crates/masking/src/maskable.rs
masking
impl_block
250
rust
null
Maskable
null
impl Maskable
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/gsm" { "post": { "tags": [ "Gsm" ], "summary": "Gsm - Create", "description": "Creates a GSM (Global Status Mapping) Rule. A GSM rule is used to map a connector's error message/error code combination during a particular payments flow/sub-flow to Hyperswitch's unified ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
267
.json
null
null
null
null
null
openapi_spec
paths
[ "/gsm" ]
null
null
null
null
pub struct DisputeUpdateInternal { dispute_stage: Option<storage_enums::DisputeStage>, dispute_status: Option<storage_enums::DisputeStatus>, connector_status: Option<String>, connector_reason: Option<String>, connector_reason_code: Option<String>, challenge_required_by: Option<PrimitiveDateTime>...
crates/diesel_models/src/dispute.rs
diesel_models
struct_definition
97
rust
DisputeUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
pub fn get_connector_data_if_separate_authn_supported( connector_call_type: &api::ConnectorCallType, ) -> Option<api::ConnectorData> { match connector_call_type { api::ConnectorCallType::PreDetermined(connector_routing_data) => { if connector_routing_data .connector_data ...
crates/router/src/core/authentication/utils.rs
router
function_signature
200
rust
null
null
null
null
get_connector_data_if_separate_authn_supported
null
null
null
null
null
null
null
impl api::Refund for Iatapay {}
crates/hyperswitch_connectors/src/connectors/iatapay.rs
hyperswitch_connectors
impl_block
11
rust
null
Iatapay
api::Refund for
impl api::Refund for for Iatapay
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Cashtocode {}
crates/hyperswitch_connectors/src/connectors/cashtocode.rs
hyperswitch_connectors
impl_block
10
rust
null
Cashtocode
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Cashtocode
null
null
null
null
null
null
null
null
File: crates/storage_impl/src/database.rs pub mod store;
crates/storage_impl/src/database.rs
storage_impl
full_file
13
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalItemPayoutWebhooks { pub sender_batch_id: String, pub transaction_status: PaypalFulfillStatus, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
PaypalItemPayoutWebhooks
null
null
null
null
null
null
null
null
null
null
null
impl std::ops::DerefMut for ConnectorCustomerMap { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } }
crates/common_types/src/customers.rs
common_types
impl_block
39
rust
null
ConnectorCustomerMap
std::ops::DerefMut for
impl std::ops::DerefMut for for ConnectorCustomerMap
null
null
null
null
null
null
null
null
pub fn has_exceeded_monitoring_threshold(&self, monitoring_threshold_in_seconds: i64) -> bool { let total_threshold_time = self.monitoring_configured_timestamp + Duration::seconds(monitoring_threshold_in_seconds); common_utils::date_time::now() >= total_threshold_time }
crates/diesel_models/src/business_profile.rs
diesel_models
function_signature
64
rust
null
null
null
null
has_exceeded_monitoring_threshold
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Redsys {}
crates/hyperswitch_connectors/src/connectors/redsys.rs
hyperswitch_connectors
impl_block
9
rust
null
Redsys
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Redsys
null
null
null
null
null
null
null
null
pub async fn find_by_id( conn: &PgPooledConn, id: &common_utils::id_type::RelayId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::id.eq(id.to_owned()), ) .await }
crates/diesel_models/src/query/relay.rs
diesel_models
function_signature
77
rust
null
null
null
null
find_by_id
null
null
null
null
null
null
null
impl InputData { pub fn read(db_table: &Value) -> Result<Self, toml::de::Error> { db_table.clone().try_into() } pub fn postgres_url(&self) -> String { format!( "postgres://{}:{}@{}:{}/{}", self.username, self.password, self.host, self.port, self.dbname ) ...
crates/hsdev/src/input_file.rs
hsdev
impl_block
84
rust
null
InputData
null
impl InputData
null
null
null
null
null
null
null
null
impl api::PaymentsPreProcessing for Trustpay {}
crates/hyperswitch_connectors/src/connectors/trustpay.rs
hyperswitch_connectors
impl_block
10
rust
null
Trustpay
api::PaymentsPreProcessing for
impl api::PaymentsPreProcessing for for Trustpay
null
null
null
null
null
null
null
null
Documentation: docs/one_click_setup.md # Type: Doc File # One-Click Docker Setup Guide This document provides detailed information about the one-click setup script for Hyperswitch. ## Overview The `setup.sh` script simplifies the process of setting up Hyperswitch in a local development or testing environment. It pr...
docs/one_click_setup.md
null
doc_file
730
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/common_utils/src/encryption.rs Public functions: 3 Public structs: 1 use diesel::{ backend::Backend, deserialize::{self, FromSql, Queryable}, expression::AsExpression, serialize::ToSql, sql_types, }; use masking::Secret; use crate::{crypto::Encryptable, pii::EncryptionStrategy}; im...
crates/common_utils/src/encryption.rs
common_utils
full_file
517
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Paytm {}
crates/hyperswitch_connectors/src/connectors/paytm.rs
hyperswitch_connectors
impl_block
9
rust
null
Paytm
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Paytm
null
null
null
null
null
null
null
null
.clone() .ok_or_else(missing_field_err("order_details")) } fn get_card(&self) -> Result<Card, Error> { match self.payment_method_data.clone() { PaymentMethodData::Card(card) => Ok(card), _ => Err(missing_field_err("card")()), } } fn get_c...
crates/hyperswitch_connectors/src/utils.rs#chunk2
hyperswitch_connectors
chunk
8,187
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn toggle_success_based_routing( state: web::Data<AppState>, req: HttpRequest, query: web::Query<api_models::routing::ToggleDynamicRoutingQuery>, path: web::Path<routing_types::ToggleDynamicRoutingPath>, ) -> impl Responder { let flow = Flow::ToggleDynamicRouting; let wrapper = routing...
crates/router/src/routes/routing.rs
router
function_signature
321
rust
null
null
null
null
toggle_success_based_routing
null
null
null
null
null
null
null
pub struct EventRetrieveResponse { #[serde(flatten)] pub event_information: EventListItemResponse, /// The request information (headers and body) sent in the webhook. pub request: OutgoingWebhookRequestContent, /// The response information (headers, body and status code) received for the webhook s...
crates/api_models/src/webhook_events.rs
api_models
struct_definition
99
rust
EventRetrieveResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn get_decoupled_authentication_type(&self) -> common_enums::DecoupledAuthenticationType { match self { Self::Challenge(_) => common_enums::DecoupledAuthenticationType::Challenge, Self::Frictionless => common_enums::DecoupledAuthenticationType::Frictionless, } }
crates/hyperswitch_domain_models/src/router_request_types/authentication.rs
hyperswitch_domain_models
function_signature
69
rust
null
null
null
null
get_decoupled_authentication_type
null
null
null
null
null
null
null
pub struct PaymentsRequest { ds_merchant_emv3ds: Option<EmvThreedsData>, ds_merchant_transactiontype: RedsysTransactionType, ds_merchant_currency: String, ds_merchant_pan: cards::CardNumber, ds_merchant_merchantcode: Secret<String>, ds_merchant_terminal: Secret<String>, ds_merchant_order: St...
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
struct_definition
114
rust
PaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantKeyStoreUpdateInternal { pub merchant_id: common_utils::id_type::MerchantId, pub key: Encryption, }
crates/diesel_models/src/merchant_key_store.rs
diesel_models
struct_definition
29
rust
MerchantKeyStoreUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
pub struct DisputeSyncResponse { pub object_reference_id: api_models::webhooks::ObjectReferenceId, pub amount: common_utils::types::StringMinorUnit, pub currency: common_enums::enums::Currency, pub dispute_stage: common_enums::enums::DisputeStage, pub dispute_status: api_models::enums::DisputeStatus...
crates/hyperswitch_domain_models/src/router_response_types/disputes.rs
hyperswitch_domain_models
struct_definition
148
rust
DisputeSyncResponse
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GetRefundFilters; Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inner(), |state, auth: AuthenticationData, req: GetRefundFilterRequest, _| async move { let org_id = au...
crates/router/src/analytics.rs
router
impl_block
189
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub fn from_storage(authentication: &'a Authentication) -> Self { Self { created_at: authentication.created_at.assume_utc(), modified_at: authentication.modified_at.assume_utc(), authentication_id: &authentication.authentication_id, merchant_id: &authentication.me...
crates/router/src/services/kafka/authentication.rs
router
function_signature
443
rust
null
null
null
null
from_storage
null
null
null
null
null
null
null
impl api::PaymentSession for Bluecode {}
crates/hyperswitch_connectors/src/connectors/bluecode.rs
hyperswitch_connectors
impl_block
9
rust
null
Bluecode
api::PaymentSession for
impl api::PaymentSession for for Bluecode
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CardType { "type": "string", "enum": [ "credit", "debit" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
35
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CardType" ]
null
null
null
null
File: crates/router/tests/connectors/noon.rs use std::str::FromStr; use masking::Secret; use router::types::{self, storage::enums}; use crate::{ connector_auth, utils::{self, ConnectorActions}, }; #[derive(Clone, Copy)] struct NoonTest; impl ConnectorActions for NoonTest {} impl utils::Connector for NoonTes...
crates/router/tests/connectors/noon.rs
router
full_file
3,130
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn mk_tokenization_req( state: &routes::SessionState, payload_bytes: &[u8], customer_id: id_type::CustomerId, tokenization_service: &settings::NetworkTokenizationService, ) -> CustomResult< (pm_types::CardNetworkTokenResponsePayload, Option<String>), errors::NetworkTokenizationError, >...
crates/router/src/core/payment_methods/network_tokenization.rs
router
function_signature
832
rust
null
null
null
null
mk_tokenization_req
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RoutingEvaluateResponse { "type": "object", "required": [ "status", "output", "evaluated_output", "eligible_connectors" ], "properties": { "status": { "type": "string" }, "output": {}, "evaluated_output": { "type": "array", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
151
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RoutingEvaluateResponse" ]
null
null
null
null
pub struct RecipientCreateResponse { pub recipient_id: String, }
crates/pm_auth/src/types.rs
pm_auth
struct_definition
15
rust
RecipientCreateResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/payment_intents/metrics/sessionized_metrics/payment_intent_count.rs use std::collections::HashSet; use api_models::analytics::{ payment_intents::{ PaymentIntentDimensions, PaymentIntentFilters, PaymentIntentMetricsBucketIdentifier, }, Granularity, TimeRange, }; use commo...
crates/analytics/src/payment_intents/metrics/sessionized_metrics/payment_intent_count.rs
analytics
full_file
919
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Taxjar {}
crates/hyperswitch_connectors/src/connectors/taxjar.rs
hyperswitch_connectors
impl_block
7
rust
null
Taxjar
ConnectorValidation for
impl ConnectorValidation for for Taxjar
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ThreeDsData { "type": "object", "required": [ "three_ds_server_transaction_id", "maximum_supported_3ds_version", "connector_authentication_id", "three_ds_method_data", "three_ds_method_url", "message_version", "directory_server_id" ], "propertie...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
316
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ThreeDsData" ]
null
null
null
null
impl AdminApiAuthWithApiKeyFallbackAndMerchantIdFromRoute { async fn fetch_merchant_key_store_and_account<A: SessionStateInfo + Sync>( merchant_id: &id_type::MerchantId, state: &A, ) -> RouterResult<(domain::MerchantKeyStore, domain::MerchantAccount)> { let key_manager_state = &(&state.s...
crates/router/src/services/authentication.rs
router
impl_block
204
rust
null
AdminApiAuthWithApiKeyFallbackAndMerchantIdFromRoute
null
impl AdminApiAuthWithApiKeyFallbackAndMerchantIdFromRoute
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ComparisonType { "type": "string", "description": "Conditional comparison type", "enum": [ "equal", "not_equal", "less_than", "less_than_equal", "greater_than", "greater_than_equal" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
68
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ComparisonType" ]
null
null
null
null
pub trait Feature<F, T> { async fn decide_flows<'a>( self, state: &SessionState, connector: &api::ConnectorData, call_connector_action: payments::CallConnectorAction, connector_request: Option<services::Request>, business_profile: &domain::Profile, header_payl...
crates/router/src/core/payments/flows.rs
router
trait_definition
1,140
rust
null
null
Feature
null
null
null
null
null
null
null
null
null
pub struct SdkEventMetricsBucketValue { pub payment_attempts: Option<u64>, pub payment_methods_call_count: Option<u64>, pub average_payment_time: Option<u64>, pub load_time: Option<u64>, pub sdk_rendered_count: Option<u64>, pub sdk_initiated_count: Option<u64>, pub payment_method_selected_co...
crates/api_models/src/analytics/sdk_events.rs
api_models
struct_definition
101
rust
SdkEventMetricsBucketValue
null
null
null
null
null
null
null
null
null
null
null
pub struct DynamicAlgorithmWithTimestamp<T> { pub algorithm_id: Option<T>, pub timestamp: i64, }
crates/api_models/src/routing.rs
api_models
struct_definition
26
rust
DynamicAlgorithmWithTimestamp
null
null
null
null
null
null
null
null
null
null
null
/// A helper struct to extract headers from the request pub(crate) struct HeaderMapStruct<'a> { headers: &'a HeaderMap, }
crates/router/src/services/authentication.rs
router
struct_definition
31
rust
HeaderMapStruct
null
null
null
null
null
null
null
null
null
null
null
impl Default for PaymentMethodsPTMapping { fn default() -> Self { Self { custom_pm_mapping: HashMap::new(), default_mapping: RetryMapping { start_after: 900, frequencies: vec![(300, 5)], }, max_retries_count: 5, } } ...
crates/scheduler/src/consumer/types/process_data.rs
scheduler
impl_block
72
rust
null
PaymentMethodsPTMapping
Default for
impl Default for for PaymentMethodsPTMapping
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RefundListResponse { "type": "object", "required": [ "count", "total_count", "data" ], "properties": { "count": { "type": "integer", "description": "The number of refunds included in the list", "minimum": 0 }, "total_count": { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
169
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RefundListResponse" ]
null
null
null
null
pub struct FiservemeaPaymentsRequest { request_type: FiservemeaRequestType, merchant_transaction_id: String, transaction_amount: FiservemeaTransactionAmount, order: FiservemeaOrder, payment_method: FiservemeaPaymentMethods, }
crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs
hyperswitch_connectors
struct_definition
64
rust
FiservemeaPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct Address { pub address: Option<AddressDetails>, pub phone: Option<PhoneDetails>, pub email: Option<common_utils::pii::Email>, }
crates/hyperswitch_domain_models/src/address.rs
hyperswitch_domain_models
struct_definition
35
rust
Address
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Cashtocode {}
crates/hyperswitch_connectors/src/connectors/cashtocode.rs
hyperswitch_connectors
impl_block
10
rust
null
Cashtocode
api::PaymentSync for
impl api::PaymentSync for for Cashtocode
null
null
null
null
null
null
null
null
pub struct Card { number: cards::CardNumber, expiration_month: Secret<String>, expiration_year: Secret<String>, security_code: Secret<String>, #[serde(rename = "type")] card_type: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
49
rust
Card
null
null
null
null
null
null
null
null
null
null
null
pub struct ListUserRolesByUserIdPayload<'a> { pub user_id: &'a str, pub tenant_id: &'a id_type::TenantId, pub org_id: Option<&'a id_type::OrganizationId>, pub merchant_id: Option<&'a id_type::MerchantId>, pub profile_id: Option<&'a id_type::ProfileId>, pub entity_id: Option<&'a String>, pub ...
crates/router/src/db/user_role.rs
router
struct_definition
119
rust
ListUserRolesByUserIdPayload
null
null
null
null
null
null
null
null
null
null
null
impl EmailSettings { /// Validation for the Email client specific configurations pub fn validate(&self) -> Result<(), &'static str> { match &self.client_config { EmailClientConfigs::Ses { ref aws_ses } => aws_ses.validate(), EmailClientConfigs::Smtp { ref smtp } => smtp.validate(...
crates/external_services/src/email.rs
external_services
impl_block
87
rust
null
EmailSettings
null
impl EmailSettings
null
null
null
null
null
null
null
null
pub async fn spawn(&self) -> errors::DrainerResult<()> { let mut stream_index: u8 = 0; let jobs_picked = Arc::new(atomic::AtomicU8::new(0)); while self.running.load(atomic::Ordering::SeqCst) { metrics::DRAINER_HEALTH.add(1, &[]); for store in self.stores.values() { ...
crates/drainer/src/handler.rs
drainer
function_signature
203
rust
null
null
null
null
spawn
null
null
null
null
null
null
null
pub struct VgsInsertResponse { data: Vec<VgsTokenResponseItem>, }
crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
VgsInsertResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthorizedotnetWebhookObjectId { pub webhook_id: String, pub event_type: AuthorizedotnetWebhookEvent, pub payload: AuthorizedotnetWebhookPayload, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
40
rust
AuthorizedotnetWebhookObjectId
null
null
null
null
null
null
null
null
null
null
null
pub fn is_for_internal_use_only(self) -> bool { match self { Self::Dashboard | Self::Sdk | Self::MerchantServer | Self::Postman => false, Self::Webhook | Self::ExternalAuthenticator => true, } }
crates/common_enums/src/enums.rs
common_enums
function_signature
55
rust
null
null
null
null
is_for_internal_use_only
null
null
null
null
null
null
null
pub fn get_default_customer_billing_address(&self) -> Option<payments::AddressDetails> { self.default_billing_address.clone() }
crates/api_models/src/customers.rs
api_models
function_signature
29
rust
null
null
null
null
get_default_customer_billing_address
null
null
null
null
null
null
null
pub struct IssuerInformation { country: Option<enums::CountryAlpha2>, discretionary_data: Option<String>, country_specific_discretionary_data: Option<String>, response_code: Option<String>, pin_request_indicator: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
IssuerInformation
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Checkout {}
crates/hyperswitch_connectors/src/connectors/checkout.rs
hyperswitch_connectors
impl_block
8
rust
null
Checkout
api::Refund for
impl api::Refund for for Checkout
null
null
null
null
null
null
null
null
pub struct SdkEventsRequest { pub payment_id: common_utils::id_type::PaymentId, pub time_range: TimeRange, }
crates/api_models/src/analytics/sdk_events.rs
api_models
struct_definition
30
rust
SdkEventsRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::Payouts for Wise {}
crates/hyperswitch_connectors/src/connectors/wise.rs
hyperswitch_connectors
impl_block
9
rust
null
Wise
api::Payouts for
impl api::Payouts for for Wise
null
null
null
null
null
null
null
null
pub struct PaymentsSyncData { //TODO : add fields based on the connector requirements pub connector_transaction_id: ResponseId, pub encoded_data: Option<String>, pub capture_method: Option<storage_enums::CaptureMethod>, pub connector_meta: Option<serde_json::Value>, pub sync_type: SyncRequestTyp...
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
172
rust
PaymentsSyncData
null
null
null
null
null
null
null
null
null
null
null
pub struct Paypal { #[serde(rename = "payerID")] payer_id: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
Paypal
null
null
null
null
null
null
null
null
null
null
null
profile_id: user_from_token.profile_id.clone(), tenant_id: user_from_token.tenant_id.clone(), }; let set_metadata_request = SetMetaDataRequest::IsChangePasswordRequired; dashboard_metadata::set_metadata( state.clone(), invited_user_token, ...
crates/router/src/core/user.rs#chunk1
router
chunk
8,185
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct GatewayStatusMappingUpdate { pub status: Option<String>, pub router_error: Option<Option<String>>, pub decision: Option<common_enums::GsmDecision>, pub step_up_possible: Option<bool>, pub unified_code: Option<String>, pub unified_message: Option<String>, pub error_category: Option...
crates/hyperswitch_domain_models/src/gsm.rs
hyperswitch_domain_models
struct_definition
117
rust
GatewayStatusMappingUpdate
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_optional_by_payment_id_merchant_id( conn: &PgPooledConn, payment_id: &common_utils::id_type::PaymentId, merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<Option<Self>> { generics::generic_find_one_optional::<<Self as HasTable>::Table, _, _>( ...
crates/diesel_models/src/query/payment_attempt.rs
diesel_models
function_signature
118
rust
null
null
null
null
find_optional_by_payment_id_merchant_id
null
null
null
null
null
null
null
Documentation: api-reference/v1/merchant-connector-account/merchant-connector--list.mdx # Type: Doc File --- openapi: get /accounts/{account_id}/connectors ---
api-reference/v1/merchant-connector-account/merchant-connector--list.mdx
null
doc_file
41
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PlatformAccountCreateRequest { #[schema(max_length = 64, value_type = String, example = "organization_abc")] pub organization_name: Secret<String>, }
crates/api_models/src/user.rs
api_models
struct_definition
38
rust
PlatformAccountCreateRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn get_connector_metadata(&self) -> Option<masking::Secret<serde_json::Value>> { match self { Self::TransactionResponse { connector_metadata, .. } | Self::PreProcessingResponse { connector_metadata, .. } => connector_metadata.cl...
crates/hyperswitch_domain_models/src/router_response_types.rs
hyperswitch_domain_models
function_signature
76
rust
null
null
null
null
get_connector_metadata
null
null
null
null
null
null
null
impl api::PaymentToken for Paystack {}
crates/hyperswitch_connectors/src/connectors/paystack.rs
hyperswitch_connectors
impl_block
9
rust
null
Paystack
api::PaymentToken for
impl api::PaymentToken for for Paystack
null
null
null
null
null
null
null
null
pub async fn perform_fallback_routing( state: &SessionState, key_store: &domain::MerchantKeyStore, transaction_data: &routing::TransactionData<'_>, eligible_connectors: Option<&Vec<api_enums::RoutableConnectors>>, business_profile: &domain::Profile, ) -> RoutingResult<Vec<routing_types::RoutableConn...
crates/router/src/core/payments/routing.rs
router
function_signature
417
rust
null
null
null
null
perform_fallback_routing
null
null
null
null
null
null
null
pub fn get_connector_customer_id(&self, connector_label: &str) -> Option<&str> { use masking::PeekInterface; self.connector_customer .as_ref() .and_then(|connector_customer_value| { connector_customer_value.peek().get(connector_label) }) ....
crates/hyperswitch_domain_models/src/customer.rs
hyperswitch_domain_models
function_signature
77
rust
null
null
null
null
get_connector_customer_id
null
null
null
null
null
null
null
pub struct BokuAuthType { pub(super) merchant_id: Secret<String>, pub(super) key_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/boku/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
BokuAuthType
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Getnet {}
crates/hyperswitch_connectors/src/connectors/getnet.rs
hyperswitch_connectors
impl_block
9
rust
null
Getnet
api::PaymentCapture for
impl api::PaymentCapture for for Getnet
null
null
null
null
null
null
null
null
pub struct WebhookEventDataResourceSignature { pub payme_signature: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
WebhookEventDataResourceSignature
null
null
null
null
null
null
null
null
null
null
null
/// Validate if a particular operation can be performed for the given intent status pub trait ValidateStatusForOperation { fn validate_status_for_operation( &self, intent_status: common_enums::IntentStatus, ) -> Result<(), errors::ApiErrorResponse>; }
crates/router/src/core/payments/operations.rs
router
trait_definition
55
rust
null
null
ValidateStatusForOperation
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
11
rust
null
Worldpayvantiv
api::PaymentCapture for
impl api::PaymentCapture for for Worldpayvantiv
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ConnectorWalletDetails { "type": "object", "properties": { "apple_pay_combined": { "type": "object", "description": "This field contains the Apple Pay certificates and credentials for iOS and Web Apple Pay flow", "nullable": true }, "apple_pay": {...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
275
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ConnectorWalletDetails" ]
null
null
null
null
pub struct PazePhoneNumber { pub country_code: Secret<String>, pub phone_number: Secret<String>, }
crates/hyperswitch_domain_models/src/router_data.rs
hyperswitch_domain_models
struct_definition
23
rust
PazePhoneNumber
null
null
null
null
null
null
null
null
null
null
null
pub struct WisePayoutsWebhookData { pub resource: WisePayoutsWebhookResource, pub current_state: WiseSyncStatus, }
crates/hyperswitch_connectors/src/connectors/wise/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
WisePayoutsWebhookData
null
null
null
null
null
null
null
null
null
null
null
pub struct Address { pub line1: Option<Secret<String>>, #[serde(skip_serializing_if = "Option::is_none")] pub line2: Option<Secret<String>>, pub city: Option<String>, pub state: Option<Secret<String>>, pub zipcode: Option<Secret<String>>, pub country: Option<CountryAlpha2>, }
crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
hyperswitch_connectors
struct_definition
74
rust
Address
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MerchantConnectorWebhookDetails { "type": "object", "required": [ "merchant_secret", "additional_secret" ], "properties": { "merchant_secret": { "type": "string", "example": "12345678900987654321" }, "additional_secret": { "type": "str...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
137
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantConnectorWebhookDetails" ]
null
null
null
null
pub struct RoutingRetrieveQuery { pub limit: Option<u16>, pub offset: Option<u8>, pub transaction_type: Option<TransactionType>, }
crates/api_models/src/routing.rs
api_models
struct_definition
33
rust
RoutingRetrieveQuery
null
null
null
null
null
null
null
null
null
null
null
pub async fn payouts_retrieve_core( state: SessionState, merchant_context: domain::MerchantContext, profile_id: Option<id_type::ProfileId>, req: payouts::PayoutRetrieveRequest, ) -> RouterResponse<payouts::PayoutCreateResponse> { let mut payout_data = Box::pin(make_payout_data( &state, ...
crates/router/src/core/payouts.rs
router
function_signature
271
rust
null
null
null
null
payouts_retrieve_core
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AmountFilter { "type": "object", "properties": { "start_amount": { "type": "integer", "format": "int64", "description": "The start amount to filter list of transactions which are greater than or equal to the start amount", "nullable": true }, ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
135
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AmountFilter" ]
null
null
null
null
impl Responder { let path = path.into_inner(); Box::pin(oss_api::server_wrap( Flow::RoutingRetrieveDefaultConfig, state, &req, path.clone(), |state, auth: auth::AuthenticationData, profile_id, _| { let merchant_context = domain::MerchantContext::NormalMerchant...
crates/router/src/routes/routing.rs
router
impl_block
245
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl super::disputes::filters::DisputeFilterAnalytics for ClickhouseClient {}
crates/analytics/src/clickhouse.rs
analytics
impl_block
18
rust
null
ClickhouseClient
super::disputes::filters::DisputeFilterAnalytics for
impl super::disputes::filters::DisputeFilterAnalytics for for ClickhouseClient
null
null
null
null
null
null
null
null
pub async fn populate_bin_details_for_masked_card( card_details: &api_models::payment_methods::MigrateCardDetail, db: &dyn state::PaymentMethodsStorageInterface, payment_method_type: Option<&enums::PaymentMethodType>, ) -> CustomResult<pm_api::CardDetailFromLocker, errors::ApiErrorResponse> { if let Som...
crates/payment_methods/src/core/migration/payment_methods.rs
payment_methods
function_signature
378
rust
null
null
null
null
populate_bin_details_for_masked_card
null
null
null
null
null
null
null
pub struct WalletAdditionalDataForCard { /// Last 4 digits of the card number pub last4: String, /// The information of the payment method pub card_network: String, /// The type of payment method #[serde(rename = "type")] pub card_type: Option<String>, }
crates/api_models/src/payments/additional_info.rs
api_models
struct_definition
67
rust
WalletAdditionalDataForCard
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Klarna {}
crates/hyperswitch_connectors/src/connectors/klarna.rs
hyperswitch_connectors
impl_block
9
rust
null
Klarna
api::PaymentCapture for
impl api::PaymentCapture for for Klarna
null
null
null
null
null
null
null
null
/// Get the inner data while consuming self pub fn into_inner(self) -> T { match self { Self::Masked(inner_secret) => inner_secret.expose(), Self::Normal(inner) => inner, } }
crates/masking/src/maskable.rs
masking
function_signature
50
rust
null
null
null
null
into_inner
null
null
null
null
null
null
null
pub struct IdealDetails { bank_name: Option<common_enums::BankNames>, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
IdealDetails
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/payment_intents/metrics/payment_intent_count.rs use std::collections::HashSet; use api_models::analytics::{ payment_intents::{ PaymentIntentDimensions, PaymentIntentFilters, PaymentIntentMetricsBucketIdentifier, }, Granularity, TimeRange, }; use common_utils::errors::Rep...
crates/analytics/src/payment_intents/metrics/payment_intent_count.rs
analytics
full_file
914
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn api_key_list( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::MerchantId>, query: web::Query<api_types::ListApiKeyConstraints>, ) -> impl Responder { let flow = Flow::ApiKeyList; let list_api_key_constraints = query.into_inner(); let limit = ...
crates/router/src/routes/api_keys.rs
router
function_signature
263
rust
null
null
null
null
api_key_list
null
null
null
null
null
null
null
pub async fn from_conf(conf: &Database, schema: &str) -> Self { let database_url = conf.get_database_url(schema); #[allow(clippy::expect_used)] let pool = PgPoolOptions::new() .max_connections(conf.pool_size) .acquire_timeout(std::time::Duration::from_secs(conf.connection...
crates/analytics/src/sqlx.rs
analytics
function_signature
98
rust
null
null
null
null
from_conf
null
null
null
null
null
null
null
pub async fn fulfill_payout( state: &SessionState, merchant_context: &domain::MerchantContext, connector_data: &api::ConnectorData, payout_data: &mut PayoutData, ) -> RouterResult<()> { // 1. Form Router data let mut router_data = core_utils::construct_payout_router_data( state, ...
crates/router/src/core/payouts.rs
router
function_signature
1,305
rust
null
null
null
null
fulfill_payout
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs Public structs: 21 use api_models::webhooks::IncomingWebhookEvent; use common_enums::{AttemptStatus, Currency, FraudCheckStatus, PaymentMethod}; use common_utils::{ext_traits::ValueExt, pii::Email}; use error_stack::{self, ResultExt}; pub...
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs
hyperswitch_connectors
full_file
5,399
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CheckoutDisputeWebhookData { pub id: String, pub payment_id: Option<String>, pub action_id: Option<String>, pub amount: MinorUnit, pub currency: enums::Currency, #[serde(default, with = "common_utils::custom_serde::iso8601::option")] pub evidence_required_by: Option<PrimitiveDateT...
crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
hyperswitch_connectors
struct_definition
121
rust
CheckoutDisputeWebhookData
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs Public functions: 1 Public structs: 36 use common_enums::{enums, MerchantCategoryCode}; use common_types::payments::MerchantCountryCode; use common_utils::{ext_traits::OptionExt as _, types::FloatMajorUnit}; use hypersw...
crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
hyperswitch_connectors
full_file
7,535
null
null
null
null
null
null
null
null
null
null
null
null
null