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 ConnectorValidation for Rapyd {}
crates/hyperswitch_connectors/src/connectors/rapyd.rs
hyperswitch_connectors
impl_block
8
rust
null
Rapyd
ConnectorValidation for
impl ConnectorValidation for for Rapyd
null
null
null
null
null
null
null
null
pub async fn get_routing_events<T>( merchant_id: &common_utils::id_type::MerchantId, query_param: RoutingEventsRequest, pool: &T, ) -> FiltersResult<Vec<RoutingEventsResult>> where T: AnalyticsDataSource + RoutingEventLogAnalytics, PrimitiveDateTime: ToSql<T>, AnalyticsCollection: ToSql<T>, ...
crates/analytics/src/routing_events/events.rs
analytics
function_signature
309
rust
null
null
null
null
get_routing_events
null
null
null
null
null
null
null
pub async fn invalidate( state: web::Data<AppState>, req: HttpRequest, key: web::Path<String>, ) -> impl Responder { let flow = Flow::CacheInvalidate; let key = key.into_inner().to_owned(); api::server_wrap( flow, state, &req, &key, |state, _, key, _| ca...
crates/router/src/routes/cache.rs
router
function_signature
116
rust
null
null
null
null
invalidate
null
null
null
null
null
null
null
pub async fn check_email_token_in_blacklist(state: &SessionState, token: &str) -> UserResult<()> { let redis_conn = get_redis_connection_for_global_tenant(state) .change_context(UserErrors::InternalServerError)?; let blacklist_key = format!("{EMAIL_TOKEN_BLACKLIST_PREFIX}{token}"); let key_exists = ...
crates/router/src/services/authentication/blacklist.rs
router
function_signature
119
rust
null
null
null
null
check_email_token_in_blacklist
null
null
null
null
null
null
null
impl api::PaymentSession for Hyperwallet {}
crates/hyperswitch_connectors/src/connectors/hyperwallet.rs
hyperswitch_connectors
impl_block
9
rust
null
Hyperwallet
api::PaymentSession for
impl api::PaymentSession for for Hyperwallet
null
null
null
null
null
null
null
null
pub struct KVRouterStore<T: DatabaseStore> { pub router_store: RouterStore<T>, drainer_stream_name: String, drainer_num_partitions: u8, pub ttl_for_kv: u32, pub request_id: Option<String>, pub soft_kill_mode: bool, }
crates/storage_impl/src/kv_router_store.rs
storage_impl
struct_definition
64
rust
KVRouterStore
null
null
null
null
null
null
null
null
null
null
null
pub fn generate_newman_command_for_connector() -> Result<ReturnArgs> { let args = Args::parse(); let connector_name = args .connector_name .with_context(|| "invalid parameters: connector/module name not found in arguments")?; let base_url = args.base_url; let admin_api_key = args.admin...
crates/test_utils/src/newman_runner.rs
test_utils
function_signature
1,133
rust
null
null
null
null
generate_newman_command_for_connector
null
null
null
null
null
null
null
impl events::ApiEventMetric for DecisionManagerRequest { fn get_api_event_type(&self) -> Option<events::ApiEventsType> { Some(events::ApiEventsType::Routing) } }
crates/api_models/src/conditional_configs.rs
api_models
impl_block
43
rust
null
DecisionManagerRequest
events::ApiEventMetric for
impl events::ApiEventMetric for for DecisionManagerRequest
null
null
null
null
null
null
null
null
pub async fn update_payment_method_record( state: &SessionState, req: pm_api::UpdatePaymentMethodRecord, merchant_id: &id_type::MerchantId, merchant_context: &merchant_context::MerchantContext, ) -> CustomResult< ApplicationResponse<pm_api::PaymentMethodRecordUpdateResponse>, errors::ApiErrorRes...
crates/router/src/core/payment_methods/migration.rs
router
function_signature
1,383
rust
null
null
null
null
update_payment_method_record
null
null
null
null
null
null
null
File: crates/external_services/src/utils.rs //! Custom deserializers for external services configuration use std::collections::HashSet; use serde::Deserialize; /// Parses a comma-separated string into a HashSet of typed values. /// /// # Arguments /// /// * `value` - String or string reference containing comma-sepa...
crates/external_services/src/utils.rs
external_services
full_file
1,269
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentCaptureResponse { #[serde(rename = "TranID")] tran_id: String, stat_code: String, }
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
PaymentCaptureResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Coinbase {}
crates/hyperswitch_connectors/src/connectors/coinbase.rs
hyperswitch_connectors
impl_block
10
rust
null
Coinbase
api::MandateSetup for
impl api::MandateSetup for for Coinbase
null
null
null
null
null
null
null
null
pub async fn call_decide_gateway_open_router() {}
crates/openapi/src/routes/routing.rs
openapi
function_signature
11
rust
null
null
null
null
call_decide_gateway_open_router
null
null
null
null
null
null
null
pub struct StreamData { pub request_id: String, pub global_id: String, #[serde(deserialize_with = "deserialize_db_op")] pub typed_sql: kv::DBOperation, #[serde(deserialize_with = "deserialize_i64")] pub pushed_at: i64, }
crates/drainer/src/types.rs
drainer
struct_definition
64
rust
StreamData
null
null
null
null
null
null
null
null
null
null
null
Documentation: add_connector_updated.md # Type: Doc File # 📦 File Moved This file has been renamed. Please visit the updated version here: 👉 [add_connector.md](./add_connector.md)
add_connector_updated.md
null
doc_file
44
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CryptopayPaymentResponseData { pub id: String, pub custom_id: Option<String>, pub customer_id: Option<String>, pub status: CryptopayPaymentStatus, pub status_context: Option<String>, pub address: Option<Secret<String>>, pub network: Option<String>, pub uri: Option<String>, ...
crates/hyperswitch_connectors/src/connectors/cryptopay/transformers.rs
hyperswitch_connectors
struct_definition
191
rust
CryptopayPaymentResponseData
null
null
null
null
null
null
null
null
null
null
null
pub struct SankeyResponse { pub count: i64, pub status: String, pub refunds_status: Option<String>, pub dispute_status: Option<String>, pub first_attempt: i64, }
crates/api_models/src/analytics.rs
api_models
struct_definition
46
rust
SankeyResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PollConfigResponse { "type": "object", "required": [ "poll_id", "delay_in_secs", "frequency" ], "properties": { "poll_id": { "type": "string", "description": "Poll Id" }, "delay_in_secs": { "type": "integer", "format": "int32...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
142
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PollConfigResponse" ]
null
null
null
null
pub async fn list_user_authentication_methods_for_email_domain( conn: &PgPooledConn, email_domain: &str, ) -> StorageResult<Vec<Self>> { generics::generic_filter::<<Self as HasTable>::Table, _, _, _>( conn, dsl::email_domain.eq(email_domain.to_owned()), No...
crates/diesel_models/src/query/user_authentication_method.rs
diesel_models
function_signature
93
rust
null
null
null
null
list_user_authentication_methods_for_email_domain
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/refunds" { "post": { "tags": [ "Refunds" ], "summary": "Refunds - Create", "description": "Creates a refund against an already processed payment. In case of some processors, you can even opt to refund only a partial amount multiple times until the original charge amou...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
427
.json
null
null
null
null
null
openapi_spec
paths
[ "/refunds" ]
null
null
null
null
impl api::PaymentSession for Worldpayxml {}
crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
hyperswitch_connectors
impl_block
10
rust
null
Worldpayxml
api::PaymentSession for
impl api::PaymentSession for for Worldpayxml
null
null
null
null
null
null
null
null
impl api::PaymentSession for Redsys {}
crates/hyperswitch_connectors/src/connectors/redsys.rs
hyperswitch_connectors
impl_block
9
rust
null
Redsys
api::PaymentSession for
impl api::PaymentSession for for Redsys
null
null
null
null
null
null
null
null
impl utils::ConnectorErrorTypeMapping for Checkout { fn get_connector_error_type( &self, error_code: String, _error_message: String, ) -> ConnectorErrorType { match error_code.as_str() { "action_failure_limit_exceeded" => ConnectorErrorType::BusinessError, ...
crates/hyperswitch_connectors/src/connectors/checkout.rs
hyperswitch_connectors
impl_block
1,683
rust
null
Checkout
utils::ConnectorErrorTypeMapping for
impl utils::ConnectorErrorTypeMapping for for Checkout
null
null
null
null
null
null
null
null
pub struct PaypalFulfillResponse { batch_header: PaypalBatchResponse, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
PaypalFulfillResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundResponse { id: String, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
12
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct StaxPaymentsRequestMetaData { tax: i64, }
crates/hyperswitch_connectors/src/connectors/stax/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
StaxPaymentsRequestMetaData
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Hyperwallet {}
crates/hyperswitch_connectors/src/connectors/hyperwallet.rs
hyperswitch_connectors
impl_block
10
rust
null
Hyperwallet
api::RefundExecute for
impl api::RefundExecute for for Hyperwallet
null
null
null
null
null
null
null
null
pub struct BarclaycardAuthEnrollmentRequest { payment_information: PaymentInformation, client_reference_information: ClientReferenceInformation, consumer_authentication_information: BarclaycardConsumerAuthInformationRequest, order_information: OrderInformationWithBill, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
49
rust
BarclaycardAuthEnrollmentRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for CtpMastercard {}
crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs
hyperswitch_connectors
impl_block
12
rust
null
CtpMastercard
api::RefundSync for
impl api::RefundSync for for CtpMastercard
null
null
null
null
null
null
null
null
pub struct CreditResponse { #[serde(rename = "@id")] pub id: String, #[serde(rename = "@reportGroup")] pub report_group: String, #[serde(rename = "@customerId", skip_serializing_if = "Option::is_none")] pub customer_id: Option<String>, pub cnp_txn_id: String, pub response: Worldpayvantiv...
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
103
rust
CreditResponse
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Getnet { fn validate_psync_reference_id( &self, data: &PaymentsSyncData, _is_three_ds: bool, _status: enums::AttemptStatus, _connector_meta_data: Option<common_utils::pii::SecretSerdeValue>, ) -> CustomResult<(), errors::ConnectorError> { ...
crates/hyperswitch_connectors/src/connectors/getnet.rs
hyperswitch_connectors
impl_block
130
rust
null
Getnet
ConnectorValidation for
impl ConnectorValidation for for Getnet
null
null
null
null
null
null
null
null
pub fn get_account_reference_id_using_payment_merchant_connector_account_id( &self, payment_merchant_connector_account_id: id_type::MerchantConnectorAccountId, ) -> Option<String> { self.feature_metadata.as_ref().and_then(|metadata| { metadata.revenue_recovery.as_ref().and_then(|...
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
106
rust
null
null
null
null
get_account_reference_id_using_payment_merchant_connector_account_id
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/payeezy.rs Public structs: 1 pub mod transformers; use std::sync::LazyLock; use api_models::webhooks::IncomingWebhookEvent; use base64::Engine; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::ByteSliceExt, request::{Method,...
crates/hyperswitch_connectors/src/connectors/payeezy.rs
hyperswitch_connectors
full_file
4,870
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Rapyd { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&RAPYD_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*RAPYD_SUPPORTED_PAYMENT_METHODS) } fn get_supported_...
crates/hyperswitch_connectors/src/connectors/rapyd.rs
hyperswitch_connectors
impl_block
109
rust
null
Rapyd
ConnectorSpecifications for
impl ConnectorSpecifications for for Rapyd
null
null
null
null
null
null
null
null
pub struct RefundFilterRow { pub currency: Option<DBEnumWrapper<Currency>>, pub refund_status: Option<DBEnumWrapper<RefundStatus>>, pub connector: Option<String>, pub refund_type: Option<DBEnumWrapper<RefundType>>, pub profile_id: Option<String>, pub refund_reason: Option<String>, pub refund...
crates/analytics/src/refunds/filters.rs
analytics
struct_definition
82
rust
RefundFilterRow
null
null
null
null
null
null
null
null
null
null
null
pub struct ConnectorWalletDetails { /// This field contains the Apple Pay certificates and credentials for iOS and Web Apple Pay flow #[serde(skip_serializing_if = "Option::is_none")] #[schema(value_type = Option<Object>)] pub apple_pay_combined: Option<pii::SecretSerdeValue>, /// This field is for ...
crates/api_models/src/admin.rs
api_models
struct_definition
329
rust
ConnectorWalletDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct RsyncApplicationInformation { status: Option<WellsfargoRefundStatus>, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
RsyncApplicationInformation
null
null
null
null
null
null
null
null
null
null
null
pub fn update(&mut self, new: Self) { if let Some(params) = new.params { self.params = Some(params) } if let Some(new_config) = new.config { self.config.as_mut().map(|config| config.update(new_config)); } if let Some(new_config) = new.decision_engine_confi...
crates/api_models/src/routing.rs
api_models
function_signature
100
rust
null
null
null
null
update
null
null
null
null
null
null
null
impl api::PaymentSync for Affirm {}
crates/hyperswitch_connectors/src/connectors/affirm.rs
hyperswitch_connectors
impl_block
9
rust
null
Affirm
api::PaymentSync for
impl api::PaymentSync for for Affirm
null
null
null
null
null
null
null
null
pub struct Fiuu { amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/fiuu.rs
hyperswitch_connectors
struct_definition
28
rust
Fiuu
null
null
null
null
null
null
null
null
null
null
null
pub async fn rotate_password( state: web::Data<AppState>, req: HttpRequest, payload: web::Json<user_api::RotatePasswordRequest>, ) -> HttpResponse { let flow = Flow::RotatePassword; Box::pin(api::server_wrap( flow, state.clone(), &req, payload.into_inner(), us...
crates/router/src/routes/user.rs
router
function_signature
113
rust
null
null
null
null
rotate_password
null
null
null
null
null
null
null
pub struct BokuPsyncResponse { charges: ChargeResponseData, }
crates/hyperswitch_connectors/src/connectors/boku/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
BokuPsyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct PayloadAuthType { pub auths: HashMap<enums::Currency, PayloadAuth>, }
crates/hyperswitch_connectors/src/connectors/payload/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
PayloadAuthType
null
null
null
null
null
null
null
null
null
null
null
pub struct OpenSearchQueryBuilder { pub query_type: OpenSearchQuery, pub query: String, pub offset: Option<i64>, pub count: Option<i64>, pub filters: Vec<(String, Vec<Value>)>, pub time_range: Option<OpensearchTimeRange>, search_params: Vec<AuthInfo>, case_sensitive_fields: HashSet<&'sta...
crates/analytics/src/opensearch.rs
analytics
struct_definition
85
rust
OpenSearchQueryBuilder
null
null
null
null
null
null
null
null
null
null
null
impl State for CardInfoUpdate {}
crates/router/src/core/cards_info.rs
router
impl_block
7
rust
null
CardInfoUpdate
State for
impl State for for CardInfoUpdate
null
null
null
null
null
null
null
null
impl ConnectorCommon for Worldpay { fn id(&self) -> &'static str { "worldpay" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors:...
crates/hyperswitch_connectors/src/connectors/worldpay.rs
hyperswitch_connectors
impl_block
418
rust
null
Worldpay
ConnectorCommon for
impl ConnectorCommon for for Worldpay
null
null
null
null
null
null
null
null
pub struct NewUserPassword { password: UserPassword, is_temporary: bool, }
crates/router/src/types/domain/user.rs
router
struct_definition
20
rust
NewUserPassword
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantAccountUpdate { /// The identifier for the Merchant Account #[schema(max_length = 64, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = String)] pub merchant_id: id_type::MerchantId, /// Name of the Merchant Account #[schema(example = "NewAge Retailer")] pub merchant_name:...
crates/api_models/src/admin.rs
api_models
struct_definition
857
rust
MerchantAccountUpdate
null
null
null
null
null
null
null
null
null
null
null
pub async fn request_validator( req_type: AnalyticsRequest, state: &crate::routes::SessionState, ) -> CustomResult<Option<ExchangeRates>, AnalyticsError> { let forex_enabled = state.conf.analytics.get_inner().get_forex_enabled(); let require_forex_functionality = req_type.requires_forex_functionality();...
crates/router/src/analytics_validator.rs
router
function_signature
121
rust
null
null
null
null
request_validator
null
null
null
null
null
null
null
/// RouterDataConversion trait /// /// This trait must be implemented for conversion between Router data and RouterDataV2 pub trait RouterDataConversion<T, Req: Clone, Resp: Clone> { /// Convert RouterData to RouterDataV2 /// /// # Arguments /// /// * `old_router_data` - A reference to the old Route...
crates/hyperswitch_interfaces/src/connector_integration_interface.rs
hyperswitch_interfaces
trait_definition
272
rust
null
null
RouterDataConversion
null
null
null
null
null
null
null
null
null
pub async fn files_retrieve_core( state: SessionState, merchant_context: domain::MerchantContext, req: api::FileRetrieveRequest, ) -> RouterResponse<serde_json::Value> { let file_metadata_object = state .store .as_ref() .find_file_metadata_by_merchant_id_file_id( merc...
crates/router/src/core/files.rs
router
function_signature
271
rust
null
null
null
null
files_retrieve_core
null
null
null
null
null
null
null
impl ConnectorCommon for Elavon { fn id(&self) -> &'static str { "elavon" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/x-www-form-urlencoded" } fn base_url<'a>(&self,...
crates/hyperswitch_connectors/src/connectors/elavon.rs
hyperswitch_connectors
impl_block
109
rust
null
Elavon
ConnectorCommon for
impl ConnectorCommon for for Elavon
null
null
null
null
null
null
null
null
impl Hyperwallet { pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/hyperwallet.rs
hyperswitch_connectors
impl_block
34
rust
null
Hyperwallet
null
impl Hyperwallet
null
null
null
null
null
null
null
null
File: crates/router/src/types/api/feature_matrix.rs Public functions: 1 Public structs: 1 use std::str::FromStr; use error_stack::{report, ResultExt}; use crate::{ connector, core::errors::{self, CustomResult}, services::connector_integration_interface::ConnectorEnum, types::api::enums, }; #[deriv...
crates/router/src/types/api/feature_matrix.rs
router
full_file
4,268
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn set_tracking_id_in_configs( state: &SessionState, connector_id: &common_utils::id_type::MerchantConnectorAccountId, connector: enums::Connector, ) -> RouterResult<()> { let timestamp = common_utils::date_time::now_unix_timestamp().to_string(); let find_config = state .store ...
crates/router/src/utils/connector_onboarding.rs
router
function_signature
285
rust
null
null
null
null
set_tracking_id_in_configs
null
null
null
null
null
null
null
pub struct RefundReasonDistributionAccumulator { pub refund_reason_vec: Vec<RefundReasonDistributionRow>, }
crates/analytics/src/refunds/accumulator.rs
analytics
struct_definition
25
rust
RefundReasonDistributionAccumulator
null
null
null
null
null
null
null
null
null
null
null
pub struct CybersourceNotAvailableErrorResponse { pub errors: Vec<CybersourceNotAvailableErrorObject>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
CybersourceNotAvailableErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct PoSync;
crates/hyperswitch_domain_models/src/router_flow_types/payouts.rs
hyperswitch_domain_models
struct_definition
5
rust
PoSync
null
null
null
null
null
null
null
null
null
null
null
pub async fn redis_connection( conf: &crate::configs::Settings, ) -> redis_interface::RedisConnectionPool { redis_interface::RedisConnectionPool::new(&conf.redis) .await .expect("Failed to create Redis Connection Pool") }
crates/router/src/connection.rs
router
function_signature
54
rust
null
null
null
null
redis_connection
null
null
null
null
null
null
null
impl Default for CardTestingGuardConfig { fn default() -> Self { Self { is_card_ip_blocking_enabled: common_utils::consts::DEFAULT_CARD_IP_BLOCKING_STATUS, card_ip_blocking_threshold: common_utils::consts::DEFAULT_CARD_IP_BLOCKING_THRESHOLD, is_guest_user_card_blocking_en...
crates/diesel_models/src/business_profile.rs
diesel_models
impl_block
168
rust
null
CardTestingGuardConfig
Default for
impl Default for for CardTestingGuardConfig
null
null
null
null
null
null
null
null
/// This struct is only used by and internal api to migrate payment method pub struct PaymentMethodMigrate { /// Merchant id pub merchant_id: id_type::MerchantId, /// The type of payment method use for the payment. pub payment_method: Option<api_enums::PaymentMethod>, /// This is a sub-category of...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
471
rust
PaymentMethodMigrate
null
null
null
null
null
null
null
null
null
null
null
pub trait ApiClient: dyn_clone::DynClone where Self: Send + Sync, { fn request( &self, method: Method, url: String, ) -> CustomResult<Box<dyn RequestBuilder>, ApiClientError>; fn request_with_certificate( &self, method: Method, url: String, certif...
crates/router/src/services/api/client.rs
router
trait_definition
207
rust
null
null
ApiClient
null
null
null
null
null
null
null
null
null
pub struct ErrorResponseStatus { pub environment: String, pub response_type: Option<String>, pub response_code: Option<String>, pub response_desc: String, }
crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
ErrorResponseStatus
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentUpdateIntent;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
6
rust
PaymentUpdateIntent
null
null
null
null
null
null
null
null
null
null
null
pub struct HashiCorpVaultConfig { /// The URL of the HashiCorp Vault server. pub url: String, /// The authentication token used to access HashiCorp Vault. pub token: Secret<String>, }
crates/external_services/src/hashicorp_vault/core.rs
external_services
struct_definition
47
rust
HashiCorpVaultConfig
null
null
null
null
null
null
null
null
null
null
null
pub fn run_program(program: JsValue, input: JsValue) -> JsResult { let program: ast::Program<ConnectorSelection> = serde_wasm_bindgen::from_value(program)?; let input: inputs::BackendInput = serde_wasm_bindgen::from_value(input)?; let backend = InterpreterBackend::with_program(program).err_to_js()?; l...
crates/euclid_wasm/src/lib.rs
euclid_wasm
function_signature
117
rust
null
null
null
null
run_program
null
null
null
null
null
null
null
pub fn get_company_name(&self) -> Option<String> { self.company_name.clone().map(UserCompanyName::get_secret) }
crates/router/src/types/domain/user.rs
router
function_signature
28
rust
null
null
null
null
get_company_name
null
null
null
null
null
null
null
pub fn extract_action_url(self) -> RouterResult<String> { Ok(self .links .into_iter() .find(|hateoas_link| hateoas_link.rel == "action_url") .ok_or(ApiErrorResponse::InternalServerError) .attach_printable("Failed to get action_url from paypal response"...
crates/router/src/types/api/connector_onboarding/paypal.rs
router
function_signature
77
rust
null
null
null
null
extract_action_url
null
null
null
null
null
null
null
pub async fn verify_email_token_only_flow( state: SessionState, user_token: auth::UserFromSinglePurposeToken, req: user_api::VerifyEmailRequest, ) -> UserResponse<user_api::TokenResponse> { let token = req.token.clone().expose(); let email_token = auth::decode_jwt::<email_types::EmailToken>(&token, ...
crates/router/src/core/user.rs
router
function_signature
380
rust
null
null
null
null
verify_email_token_only_flow
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GenerateAuthenticationReport; Box::pin(api::server_wrap( flow, state.clone(), &req, json_payload.into_inner(), |state, (auth, user_id): auth::AuthenticationDataWithUserId, payload, _| async move { ...
crates/router/src/analytics.rs
router
impl_block
324
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct DwollaAccessTokenRequest { pub grant_type: String, }
crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
DwollaAccessTokenRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Nexixpay {}
crates/hyperswitch_connectors/src/connectors/nexixpay.rs
hyperswitch_connectors
impl_block
10
rust
null
Nexixpay
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Nexixpay
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/airwallex.rs use std::str::FromStr; use hyperswitch_domain_models::address::{Address, AddressDetails}; use masking::{PeekInterface, Secret}; use router::types::{self, domain, storage::enums, AccessToken}; use crate::{ connector_auth, utils::{self, Connector, ConnectorActi...
crates/router/tests/connectors/airwallex.rs
router
full_file
3,690
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ThreeDsEligibilityResponse { pub fn get_max_acs_protocol_version_if_available(&self) -> Option<AcsProtocolVersion> { let max_acs_version = self.acs_protocol_versions .as_ref() .and_then(|acs_protocol_versions| { acs_protocol_versions ...
crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
hyperswitch_connectors
impl_block
99
rust
null
ThreeDsEligibilityResponse
null
impl ThreeDsEligibilityResponse
null
null
null
null
null
null
null
null
pub struct LabelWithBucketNameEventRequest { pub label: String, pub bucket_name: String, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
23
rust
LabelWithBucketNameEventRequest
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/account/{account_id}/business_profile/{profile_id}/dynamic_routing/contracts/config/{algorithm_id}" { "patch": { "tags": [ "Routing" ], "summary": "Routing - Update contract based dynamic routing config for profile", "description": "Update contract based dynamic routi...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
483
.json
null
null
null
null
null
openapi_spec
paths
[ "/account/{account_id}/business_profile/{profile_id}/dynamic_routing/contracts/config/{algorithm_id}" ]
null
null
null
null
File: crates/router/tests/connectors/nexixpay.rs use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct NexixpayTest; ...
crates/router/tests/connectors/nexixpay.rs
router
full_file
2,937
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AddressAirwallex { country_code: Option<enums::CountryAlpha2>, city: Option<String>, street: Option<Secret<String>>, postcode: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
42
rust
AddressAirwallex
null
null
null
null
null
null
null
null
null
null
null
pub struct PayuErrorData { pub status_code: String, pub code: Option<String>, pub code_literal: Option<String>, pub status_desc: String, }
crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
PayuErrorData
null
null
null
null
null
null
null
null
null
null
null
pub struct Key { #[serde(rename = "type")] pub key_type: Option<String>, pub dict_key: Option<String>, }
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
Key
null
null
null
null
null
null
null
null
null
null
null
pub struct CaptureRequest { amount: Option<FloatMajorUnit>, receipt_email: Option<Secret<String>>, statement_descriptor: Option<String>, }
crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
CaptureRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/common_utils/src/id_type/payment.rs Public functions: 8 use crate::{ errors::{CustomResult, ValidationError}, generate_id_with_default_len, id_type::{AlphaNumericId, LengthId}, }; crate::id_type!( PaymentId, "A type for payment_id that can be used for payment ids" ); crate::impl_id_t...
crates/common_utils/src/id_type/payment.rs
common_utils
full_file
871
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Mpgs {}
crates/hyperswitch_connectors/src/connectors/mpgs.rs
hyperswitch_connectors
impl_block
10
rust
null
Mpgs
api::PaymentVoid for
impl api::PaymentVoid for for Mpgs
null
null
null
null
null
null
null
null
impl Cybersource { pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/cybersource.rs
hyperswitch_connectors
impl_block
35
rust
null
Cybersource
null
impl Cybersource
null
null
null
null
null
null
null
null
pub async fn get_refund_sync_process_schedule_time( db: &dyn db::StorageInterface, connector: &str, merchant_id: &common_utils::id_type::MerchantId, retry_count: i32, ) -> Result<Option<time::PrimitiveDateTime>, errors::ProcessTrackerError> { let mapping: common_utils::errors::CustomResult< ...
crates/router/src/core/refunds.rs
router
function_signature
247
rust
null
null
null
null
get_refund_sync_process_schedule_time
null
null
null
null
null
null
null
/// Returns the token string if encrypted data exists, otherwise returns an error pub fn get_encrypted_google_pay_token(&self) -> Result<String, errors::ValidationError> { Ok(self .get_encrypted_google_pay_payment_data_mandatory()? .token .clone()) }
crates/common_types/src/payments.rs
common_types
function_signature
63
rust
null
null
null
null
get_encrypted_google_pay_token
null
null
null
null
null
null
null
impl api::Payment for Breadpay {}
crates/hyperswitch_connectors/src/connectors/breadpay.rs
hyperswitch_connectors
impl_block
8
rust
null
Breadpay
api::Payment for
impl api::Payment for for Breadpay
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.FeatureMatrixListResponse { "type": "object", "required": [ "connector_count", "connectors" ], "properties": { "connector_count": { "type": "integer", "description": "The number of connectors included in the response", "minimum": 0 }, ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
119
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "FeatureMatrixListResponse" ]
null
null
null
null
pub async fn get_filters( pool: &AnalyticsProvider, req: GetSdkEventFiltersRequest, publishable_key: &String, ) -> AnalyticsResult<SdkEventFiltersResponse> { use api_models::analytics::{sdk_events::SdkEventDimensions, SdkEventFilterValue}; use super::filters::get_sdk_event_filter_for_dimension; ...
crates/analytics/src/sdk_events/core.rs
analytics
function_signature
402
rust
null
null
null
null
get_filters
null
null
null
null
null
null
null
impl api::RefundExecute for Facilitapay {}
crates/hyperswitch_connectors/src/connectors/facilitapay.rs
hyperswitch_connectors
impl_block
12
rust
null
Facilitapay
api::RefundExecute for
impl api::RefundExecute for for Facilitapay
null
null
null
null
null
null
null
null
pub async fn recovery_payments_create( state: web::Data<app::AppState>, req: actix_web::HttpRequest, json_payload: web::Json<payment_types::RecoveryPaymentsCreate>, ) -> impl Responder { let flow = Flow::RecoveryPaymentsCreate; let mut payload = json_payload.into_inner(); Box::pin(api::server_wr...
crates/router/src/routes/payments.rs
router
function_signature
220
rust
null
null
null
null
recovery_payments_create
null
null
null
null
null
null
null
expiry_date, } => Self::Pix(Box::new( api_models::payments::additional_info::PixBankTransferAdditionalData { pix_key: pix_key.map(MaskedBankAccount::from), cpf: cpf.map(MaskedBankAccount::from), cnpj: cnpj.map(Masked...
crates/hyperswitch_domain_models/src/payment_method_data.rs#chunk2
hyperswitch_domain_models
chunk
6,460
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct GlobalpayPaymentsResponse { pub status: GlobalpayPaymentStatus, pub payment_method: Option<PaymentMethod>, pub id: String, pub amount: Option<StringMinorUnit>, #[serde(deserialize_with = "deserialize_optional_currency")] pub currency: Option<Currency>, pub reference: Option<String...
crates/hyperswitch_connectors/src/connectors/globalpay/response.rs
hyperswitch_connectors
struct_definition
69
rust
GlobalpayPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct EventUpdateInternal { pub is_webhook_notified: Option<bool>, pub response: Option<Encryption>, pub is_overall_delivery_successful: Option<bool>, }
crates/diesel_models/src/events.rs
diesel_models
struct_definition
37
rust
EventUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MerchantConnectorListResponse { "type": "object", "required": [ "connector_type", "connector_name", "merchant_connector_id", "profile_id", "status" ], "properties": { "connector_type": { "$ref": "#/components/schemas/ConnectorType" }, ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
1,016
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantConnectorListResponse" ]
null
null
null
null
pub fn new(org_type: OrganizationType, org_name: Option<String>) -> Self { Self { org_id: id_type::OrganizationId::default(), org_type, org_name, } }
crates/api_models/src/organization.rs
api_models
function_signature
45
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl api::PaymentToken for Noon {}
crates/hyperswitch_connectors/src/connectors/noon.rs
hyperswitch_connectors
impl_block
8
rust
null
Noon
api::PaymentToken for
impl api::PaymentToken for for Noon
null
null
null
null
null
null
null
null
impl ReverseLookupNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<ReverseLookup> { generics::generic_insert(conn, self).await } pub async fn batch_insert( reverse_lookups: Vec<Self>, conn: &PgPooledConn, ) -> StorageResult<()> { generics::generic_in...
crates/diesel_models/src/query/reverse_lookup.rs
diesel_models
impl_block
97
rust
null
ReverseLookupNew
null
impl ReverseLookupNew
null
null
null
null
null
null
null
null
/// This panic indicates a critical failure in setting up external services, and the application cannot proceed without a valid HashiCorp client. pub async fn new(config: &crate::Settings, test_transaction: bool, tenant: &Tenant) -> Self { let redis_conn = crate::connection::redis_connection(config).await; ...
crates/drainer/src/services.rs
drainer
function_signature
182
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn get_data_from_hyperswitch_ai_workflow( state: web::Data<AppState>, http_req: HttpRequest, payload: web::Json<chat_api::ChatRequest>, ) -> HttpResponse { let flow = Flow::GetDataFromHyperswitchAiFlow; let session_id = http_req .headers() .get(common_utils::consts::X_CHAT_...
crates/router/src/routes/chat.rs
router
function_signature
250
rust
null
null
null
null
get_data_from_hyperswitch_ai_workflow
null
null
null
null
null
null
null