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 V2AdditionalParams { pub challenge_window_size: Option<String>, /// Recurring Expiry in format YYYYMMDD. REQUIRED if isRebilling = 0, We recommend setting rebillExpiry to a value of no more than 5 years from the date of the initial transaction processing date. pub rebill_expiry: Option<String>, ...
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
99
rust
V2AdditionalParams
null
null
null
null
null
null
null
null
null
null
null
pub struct KlarnaCaptureRequest { captured_amount: MinorUnit, reference: Option<String>, }
crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
KlarnaCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/routing/routing--deactivate.mdx # Type: Doc File --- openapi: post /routing/deactivate ---
api-reference/v1/routing/routing--deactivate.mdx
null
doc_file
33
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl Request { pub fn new(method: Method, url: &str) -> Self { Self { method, url: String::from(url), headers: std::collections::HashSet::new(), certificate: None, certificate_key: None, body: None, ca_certificate: None, ...
crates/common_utils/src/request.rs
common_utils
impl_block
212
rust
null
Request
null
impl Request
null
null
null
null
null
null
null
null
pub async fn call_encryption_service<T, R>( state: &KeyManagerState, method: Method, endpoint: &str, request_body: T, ) -> errors::CustomResult<R, errors::KeyManagerClientError> where T: GetKeymanagerTenant + ConvertRaw + Send + Sync + 'static + Debug, R: serde::de::DeserializeOwned, { let u...
crates/common_utils/src/keymanager.rs
common_utils
function_signature
613
rust
null
null
null
null
call_encryption_service
null
null
null
null
null
null
null
pub struct TransactionInteraction { origin: TransactionInteractionOrigin, eci_indicator: TransactionInteractionEciIndicator, pos_condition_code: TransactionInteractionPosConditionCode, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
TransactionInteraction
null
null
null
null
null
null
null
null
null
null
null
pub struct MonerisCancelRequest { idempotency_key: String, reason: Option<String>, }
crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
MonerisCancelRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn apply_changeset(self, source: Mandate) -> Mandate { let Self { mandate_status, amount_captured, connector_mandate_ids, connector_mandate_id, payment_method_id, original_payment_id, updated_by, } = self; M...
crates/diesel_models/src/mandate.rs
diesel_models
function_signature
197
rust
null
null
null
null
apply_changeset
null
null
null
null
null
null
null
pub async fn modify_trackers<F, FData, D>( state: &routes::SessionState, connector: String, payment_data: &mut D, key_store: &domain::MerchantKeyStore, storage_scheme: storage_enums::MerchantStorageScheme, router_data: types::RouterData<F, FData, types::PaymentsResponseData>, is_step_up: boo...
crates/router/src/core/payments/retry.rs
router
function_signature
1,562
rust
null
null
null
null
modify_trackers
null
null
null
null
null
null
null
macro_rules! impl_error_type { ($name: ident, $arg: tt) => { #[derive(Debug)] pub struct $name; impl_error_display!($name, $arg); impl std::error::Error for $name {} }; }
crates/router/src/core/errors.rs
router
macro
57
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
pub fn get_next_connector( connectors: &mut IntoIter<api::ConnectorRoutingData>, ) -> RouterResult<api::ConnectorRoutingData> { connectors .next() .ok_or(errors::ApiErrorResponse::InternalServerError) .attach_printable("Connector not found in connectors iterator") }
crates/router/src/core/payouts.rs
router
function_signature
64
rust
null
null
null
null
get_next_connector
null
null
null
null
null
null
null
impl<T: serde::Serialize> common_utils::events::ApiEventMetric for PaymentsGenericRequestWithResourceId<T> { fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType> { Some(common_utils::events::ApiEventsType::Payment { payment_id: self.global_payment_i...
crates/router/src/routes/payments.rs
router
impl_block
78
rust
null
PaymentsGenericRequestWithResourceId
common_utils::events::ApiEventMetric for
impl common_utils::events::ApiEventMetric for for PaymentsGenericRequestWithResourceId
null
null
null
null
null
null
null
null
pub fn get_webhook_object_from_body(body: &[u8]) -> CustomResult<Self, errors::ConnectorError> { let webhook_body = body .parse_struct::<Self>("ChargebeeWebhookBody") .change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?; Ok(webhook_body) }
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
function_signature
69
rust
null
null
null
null
get_webhook_object_from_body
null
null
null
null
null
null
null
pub struct CustomerUpdateRequest { /// The customer's name #[schema(max_length = 255, value_type = String, example = "Jon Test")] pub name: Option<Secret<String>>, /// The customer's email address #[schema(value_type = String, max_length = 255, example = "JonTest@test.com")] pub email: Option<pi...
crates/api_models/src/customers.rs
api_models
struct_definition
510
rust
CustomerUpdateRequest
null
null
null
null
null
null
null
null
null
null
null
impl RuleMigrationResponse { pub fn new( profile_id: common_utils::id_type::ProfileId, euclid_algorithm_id: common_utils::id_type::RoutingId, decision_engine_algorithm_id: String, is_active_rule: bool, ) -> Self { Self { profile_id, euclid_algorith...
crates/api_models/src/routing.rs
api_models
impl_block
87
rust
null
RuleMigrationResponse
null
impl RuleMigrationResponse
null
null
null
null
null
null
null
null
pub struct BlackhawknetworkAccessTokenRequest { pub grant_type: String, pub client_id: Secret<String>, pub client_secret: Secret<String>, pub scope: String, }
crates/hyperswitch_connectors/src/connectors/blackhawknetwork/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
BlackhawknetworkAccessTokenRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Wellsfargopayout {}
crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs
hyperswitch_connectors
impl_block
12
rust
null
Wellsfargopayout
api::Refund for
impl api::Refund for for Wellsfargopayout
null
null
null
null
null
null
null
null
impl api::RefundExecute for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
12
rust
null
Worldpayvantiv
api::RefundExecute for
impl api::RefundExecute for for Worldpayvantiv
null
null
null
null
null
null
null
null
impl OpenSearchConfig { pub async fn get_opensearch_client(&self) -> StorageResult<Option<OpenSearchClient>> { if !self.enabled { return Ok(None); } Ok(Some( OpenSearchClient::create(self) .await .change_context(StorageError::Initializa...
crates/analytics/src/opensearch.rs
analytics
impl_block
173
rust
null
OpenSearchConfig
null
impl OpenSearchConfig
null
null
null
null
null
null
null
null
/// Merchant's already created config can be updated and this change will be reflected /// in DB as well for the particular updated config pub async fn update_merchant_default_config( db: &dyn StorageInterface, merchant_id: &str, connectors: Vec<routing_types::RoutableConnectorChoice>, transaction_type:...
crates/router/src/core/routing/helpers.rs
router
function_signature
209
rust
null
null
null
null
update_merchant_default_config
null
null
null
null
null
null
null
pub async fn payouts_core( state: &SessionState, merchant_context: &domain::MerchantContext, payout_data: &mut PayoutData, routing_algorithm: Option<serde_json::Value>, eligible_connectors: Option<Vec<api_enums::PayoutConnectors>>, ) -> RouterResult<()> { todo!() }
crates/router/src/core/payouts.rs
router
function_signature
72
rust
null
null
null
null
payouts_core
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.DisputeStatus { "type": "string", "description": "Status of the dispute", "enum": [ "dispute_opened", "dispute_expired", "dispute_accepted", "dispute_cancelled", "dispute_challenged", "dispute_won", "dispute_lost" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
85
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "DisputeStatus" ]
null
null
null
null
pub struct Card { number: cards::CardNumber, expiration_month: Secret<String>, expiration_year: Secret<String>, security_code: Option<Secret<String>>, #[serde(rename = "type")] card_type: Option<String>, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
51
rust
Card
null
null
null
null
null
null
null
null
null
null
null
Documentation: docs/architecture.md # Type: Doc File # HyperSwitch Architecture - [Introduction](#introduction) - [Router](#router) - [Scheduler](#scheduler) - [Producer (Job scheduler)](#producer-job-scheduler) - [Consumer (Job executor)](#consumer-job-executor) - [Database](#database) - [Postgres](#postgres) ...
docs/architecture.md
null
doc_file
1,030
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl Event { pub async fn find_by_merchant_id_event_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, event_id: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::merchant_id ...
crates/diesel_models/src/query/events.rs
diesel_models
impl_block
2,545
rust
null
Event
null
impl Event
null
null
null
null
null
null
null
null
pub async fn update_user_role( state: SessionState, user_from_token: auth::UserFromToken, req: user_role_api::UpdateUserRoleRequest, _req_state: ReqState, ) -> UserResponse<()> { let role_info = roles::RoleInfo::from_role_id_in_lineage( &state, &req.role_id, &user_from_token....
crates/router/src/core/user_role.rs
router
function_signature
1,653
rust
null
null
null
null
update_user_role
null
null
null
null
null
null
null
pub struct TrustpaymentsRefundRequest { pub amount: StringMinorUnit, }
crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
TrustpaymentsRefundRequest
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AdyenSplitItem { "type": "object", "description": "Data for the split items", "required": [ "amount", "split_type", "reference" ], "properties": { "amount": { "type": "integer", "format": "int64", "description": "The amount of the split ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
242
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AdyenSplitItem" ]
null
null
null
null
/// Read the env variable `CONFIG_DIR` or fallback to `config` pub fn get_config_directory() -> PathBuf { let mut config_path = PathBuf::new(); let config_directory = std::env::var(crate::env::vars::CONFIG_DIR).unwrap_or_else(|_| "config".into()); config_path.push(crate::env::w...
crates/router_env/src/logger/config.rs
router_env
function_signature
91
rust
null
null
null
null
get_config_directory
null
null
null
null
null
null
null
pub struct RecurlyAuthType { pub(super) api_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
RecurlyAuthType
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_profile( state: SessionState, profile_id: &id_type::ProfileId, key_store: domain::MerchantKeyStore, request: api::ProfileUpdate, ) -> RouterResponse<api::ProfileResponse> { let db = state.store.as_ref(); let key_manager_state = &(&state).into(); let business_profile = db...
crates/router/src/core/admin.rs
router
function_signature
283
rust
null
null
null
null
update_profile
null
null
null
null
null
null
null
pub async fn log_fraud_check( &self, attempt: &FraudCheck, old_attempt: Option<FraudCheck>, tenant_id: TenantID, ) -> MQResult<()> { if let Some(negative_event) = old_attempt { self.log_event(&KafkaEvent::old( &KafkaFraudCheck::from_storage(&negati...
crates/router/src/services/kafka.rs
router
function_signature
251
rust
null
null
null
null
log_fraud_check
null
null
null
null
null
null
null
impl Deref for CardExpirationYear { type Target = StrongSecret<u16>; fn deref(&self) -> &Self::Target { &self.0 } }
crates/cards/src/lib.rs
cards
impl_block
40
rust
null
CardExpirationYear
Deref for
impl Deref for for CardExpirationYear
null
null
null
null
null
null
null
null
} else { let card_info = card_isin .clone() .async_and_then(|card_isin| async move { db.get_card_info(&card_isin) .await .map_err(|error| services::logger::warn!(card_info_...
crates/router/src/core/payments/helpers.rs#chunk5
router
chunk
8,187
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::ApiKeyUpdate; let (merchant_id, key_id) = path.into_inner(); let mut payload = json_payload.into_inner(); payload.key_id = key_id; payload.merchant_id.clone_from(&merchant_id); Box::pin(api::server_wrap( flow, state, &req, payloa...
crates/router/src/routes/api_keys.rs
router
impl_block
187
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub async fn store_data_in_redis( state: &SessionState, key: String, data: impl serde::Serialize + Debug, ttl: i64, ) -> types::DummyConnectorResult<()> { let redis_conn = state .store .get_redis_conn() .change_context(errors::DummyConnectorErrors::InternalServerError) ...
crates/router/src/routes/dummy_connector/utils.rs
router
function_signature
145
rust
null
null
null
null
store_data_in_redis
null
null
null
null
null
null
null
pub fn apply_routing_decision<F, D>(&self, payment_data: &mut D)
crates/router/src/core/routing/helpers.rs
router
function_signature
18
rust
null
null
null
null
apply_routing_decision
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.StripeSplitRefundRequest { "type": "object", "description": "Charge specific fields for controlling the revert of funds from either platform or connected account for Stripe. Check sub-fields for more details.", "properties": { "revert_platform_fee": { "type": "bool...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
182
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "StripeSplitRefundRequest" ]
null
null
null
null
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
function_signature
58
rust
null
null
null
null
get_card_range_if_available
null
null
null
null
null
null
null
pub struct Billing { pub name: Name, pub address: Address, #[serde(skip_serializing_if = "Option::is_none")] pub phone_number: Option<Secret<String>>, #[serde(skip_serializing_if = "Option::is_none")] pub email: Option<pii::Email>, }
crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
hyperswitch_connectors
struct_definition
65
rust
Billing
null
null
null
null
null
null
null
null
null
null
null
pub fn from_storage(check: &'a FraudCheck) -> Self { Self { frm_id: &check.frm_id, payment_id: &check.payment_id, merchant_id: &check.merchant_id, attempt_id: &check.attempt_id, created_at: check.created_at.assume_utc(), frm_name: &check.fr...
crates/router/src/services/kafka/fraud_check_event.rs
router
function_signature
189
rust
null
null
null
null
from_storage
null
null
null
null
null
null
null
pub struct MonerisError { pub reason_code: String, pub parameter_name: String, }
crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
MonerisError
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Forte {}
crates/hyperswitch_connectors/src/connectors/forte.rs
hyperswitch_connectors
impl_block
10
rust
null
Forte
api::RefundExecute for
impl api::RefundExecute for for Forte
null
null
null
null
null
null
null
null
Documentation: crates/masking/README.md # Type: Doc File # Masking Personal Identifiable Information protection. Wrapper types and traits for secret management which help ensure they aren't accidentally copied, logged, or otherwise exposed (as much as possible), and also ensure secrets are securely wiped from memory ...
crates/masking/README.md
null
doc_file
522
doc
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentMethodsEnabled { "type": "object", "description": "Details of all the payment methods enabled for the connector for the given merchant account", "required": [ "payment_method" ], "properties": { "payment_method": { "$ref": "#/components/schemas/Payme...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
155
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentMethodsEnabled" ]
null
null
null
null
pub struct PayoutDetails<'a> { pub description: Option<&'a str>, pub kind: PayoutDirKeyKind, }
crates/euclid_wasm/src/types.rs
euclid_wasm
struct_definition
30
rust
PayoutDetails
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Hipay {}
crates/hyperswitch_connectors/src/connectors/hipay.rs
hyperswitch_connectors
impl_block
9
rust
null
Hipay
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Hipay
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/stripe.rs Public structs: 1 pub mod transformers; use std::{collections::HashMap, sync::LazyLock}; use api_models::webhooks::IncomingWebhookEvent; use common_enums::{ CallConnectorAction, CaptureMethod, PaymentAction, PaymentChargeType, PaymentMethodType, P...
crates/hyperswitch_connectors/src/connectors/stripe.rs#chunk0
hyperswitch_connectors
chunk
8,192
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/v2/merchant-accounts") .app_data(web::Data::new(state)) .service(web::resource("").route(web::post().to(admin::merchant_account_create))) .service( web::scope("/{id}") .service( ...
crates/router/src/routes/app.rs
router
function_signature
176
rust
null
null
null
null
server
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ElementPosition { "type": "string", "enum": [ "left", "top left", "top", "top right", "right", "bottom right", "bottom", "bottom left", "center" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
67
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ElementPosition" ]
null
null
null
null
pub struct HateoasLink { pub href: String, pub rel: String, pub method: String, }
crates/router/src/types/api/connector_onboarding/paypal.rs
router
struct_definition
26
rust
HateoasLink
null
null
null
null
null
null
null
null
null
null
null
impl ChargebeeCustomer { // the logic to find connector customer id & mandate id is different for different gateways, reference : https://apidocs.chargebee.com/docs/api/customers?prod_cat_ver=2#customer_payment_method_reference_id . pub fn find_connector_ids(&self) -> Result<ChargebeeMandateDetails, errors::Con...
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
impl_block
203
rust
null
ChargebeeCustomer
null
impl ChargebeeCustomer
null
null
null
null
null
null
null
null
impl ApiKeyNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<ApiKey> { generics::generic_insert(conn, self).await } }
crates/diesel_models/src/query/api_keys.rs
diesel_models
impl_block
41
rust
null
ApiKeyNew
null
impl ApiKeyNew
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CaptureResponse { "type": "object", "required": [ "capture_id", "status", "amount", "connector", "authorized_attempt_id", "capture_sequence" ], "properties": { "capture_id": { "type": "string", "description": "A unique identifier for...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
547
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CaptureResponse" ]
null
null
null
null
pub struct ItaubankRefundRequest { pub valor: StringMajorUnit, // refund_amount }
crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
ItaubankRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct ConfigUpdateInternal { config: Option<String>, }
crates/diesel_models/src/configs.rs
diesel_models
struct_definition
13
rust
ConfigUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
pub async fn populate_bin_details_for_payment_method_create( card_details: api_models::payment_methods::CardDetail, db: Box<dyn state::PaymentMethodsStorageInterface>, ) -> api_models::payment_methods::CardDetail { let card_isin: Option<_> = Some(card_details.card_number.get_card_isin()); if card_detail...
crates/payment_methods/src/helpers.rs
payment_methods
function_signature
515
rust
null
null
null
null
populate_bin_details_for_payment_method_create
null
null
null
null
null
null
null
/// Custom deserializer for output from decision_engine, this is required as untagged enum is /// stored but the enum requires tagged deserialization, hence deserializing it into specific /// variants pub fn extract_de_output_connectors( output_value: serde_json::Value, ) -> RoutingResult<Vec<ConnectorInfo>> { ...
crates/router/src/core/payments/routing/utils.rs
router
function_signature
1,453
rust
null
null
null
null
extract_de_output_connectors
null
null
null
null
null
null
null
pub struct SilverflowAuthType { pub(super) api_key: Secret<String>, pub(super) api_secret: Secret<String>, pub(super) merchant_acceptor_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
hyperswitch_connectors
struct_definition
40
rust
SilverflowAuthType
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Paypal {}
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
impl_block
8
rust
null
Paypal
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Paypal
null
null
null
null
null
null
null
null
impl<T: KafkaMessage> KafkaMessage for KafkaEvent<'_, T> { fn key(&self) -> String { self.event.key() } fn event_type(&self) -> EventType { self.event.event_type() } fn creation_timestamp(&self) -> Option<i64> { self.event.creation_timestamp() } }
crates/router/src/services/kafka.rs
router
impl_block
73
rust
null
KafkaEvent
KafkaMessage for
impl KafkaMessage for for KafkaEvent
null
null
null
null
null
null
null
null
pub fn build(self) -> api::CardNetworkTokenizeResponse { api::CardNetworkTokenizeResponse { payment_method_response: self.payment_method_response, customer: self.customer.cloned(), card_tokenized: self.card_tokenized, error_code: self.error_code.cloned(), ...
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
function_signature
97
rust
null
null
null
null
build
null
null
null
null
null
null
null
impl api::PaymentSync for Wellsfargopayout {}
crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs
hyperswitch_connectors
impl_block
12
rust
null
Wellsfargopayout
api::PaymentSync for
impl api::PaymentSync for for Wellsfargopayout
null
null
null
null
null
null
null
null
pub struct RiskifiedPaymentsCheckoutRequest { order: CheckoutRequest, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
15
rust
RiskifiedPaymentsCheckoutRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct ApiEventMetricsBucketIdentifier { #[serde(rename = "time_range")] pub time_bucket: TimeRange, // Coz FE sucks #[serde(rename = "time_bucket")] #[serde(with = "common_utils::custom_serde::iso8601custom")] pub start_time: time::PrimitiveDateTime, }
crates/api_models/src/analytics/api_event.rs
api_models
struct_definition
72
rust
ApiEventMetricsBucketIdentifier
null
null
null
null
null
null
null
null
null
null
null
pub fn check_payment_link_status( payment_link_expiry: PrimitiveDateTime, ) -> api_models::payments::PaymentLinkStatus { let curr_time = common_utils::date_time::now(); if curr_time > payment_link_expiry { api_models::payments::PaymentLinkStatus::Expired } else { api_models::payments::P...
crates/router/src/core/payment_link.rs
router
function_signature
79
rust
null
null
null
null
check_payment_link_status
null
null
null
null
null
null
null
pub async fn create_access_token<F: Clone + 'static>( state: &SessionState, connector_data: &api_types::ConnectorData, merchant_context: &domain::MerchantContext, router_data: &mut types::PayoutsRouterData<F>, payout_type: Option<enums::PayoutType>, ) -> RouterResult<()> { let connector_access_t...
crates/router/src/core/payouts/access_token.rs
router
function_signature
178
rust
null
null
null
null
create_access_token
null
null
null
null
null
null
null
pub struct FacilitapayAuthResponse { username: Secret<String>, name: Secret<String>, pub jwt: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/facilitapay/responses.rs
hyperswitch_connectors
struct_definition
29
rust
FacilitapayAuthResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct DigitalvirgoRefundRequest { pub amount: FloatMajorUnit, }
crates/hyperswitch_connectors/src/connectors/digitalvirgo/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
DigitalvirgoRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct EliminationInformationEventResponse { pub entity: Option<BucketInformationEventResponse>, pub global: Option<BucketInformationEventResponse>, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
31
rust
EliminationInformationEventResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct SyncResponseBody { consultaoperacionesresponse: ConsultaOperacionesResponse, }
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
SyncResponseBody
null
null
null
null
null
null
null
null
null
null
null
impl RetrieveFile for Adyen {}
crates/hyperswitch_connectors/src/connectors/adyen.rs
hyperswitch_connectors
impl_block
7
rust
null
Adyen
RetrieveFile for
impl RetrieveFile for for Adyen
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_update_metadata.rs Public structs: 1 use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use common_utils::types::keymanager::KeyManagerState; use error_stack::ResultExt; use masking::ExposeInterface; use router_de...
crates/router/src/core/payments/operations/payment_update_metadata.rs
router
full_file
2,162
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_payment_filter_for_dimension<T>( dimension: PaymentDimensions, auth: &AuthInfo, time_range: &TimeRange, pool: &T, ) -> FiltersResult<Vec<PaymentFilterRow>> where T: AnalyticsDataSource + PaymentFilterAnalytics, PrimitiveDateTime: ToSql<T>, AnalyticsCollection: ToSql<T>, ...
crates/analytics/src/payments/filters.rs
analytics
function_signature
235
rust
null
null
null
null
get_payment_filter_for_dimension
null
null
null
null
null
null
null
pub struct TypedSql { #[serde(flatten)] pub op: DBOperation, }
crates/diesel_models/src/kv.rs
diesel_models
struct_definition
20
rust
TypedSql
null
null
null
null
null
null
null
null
null
null
null
pub struct SignifydAuthType { pub api_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/auth.rs
hyperswitch_connectors
struct_definition
17
rust
SignifydAuthType
null
null
null
null
null
null
null
null
null
null
null
pub struct Void { #[serde(rename = "@id")] pub id: String, #[serde(rename = "@reportGroup")] pub report_group: String, pub cnp_txn_id: String, }
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
Void
null
null
null
null
null
null
null
null
null
null
null
pub fn get_shipping_cost(&self) -> Option<MinorUnit> { self.shipping_cost }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
23
rust
null
null
null
null
get_shipping_cost
null
null
null
null
null
null
null
pub async fn get_theme_using_theme_id( state: web::Data<AppState>, req: HttpRequest, path: web::Path<String>, ) -> HttpResponse { let flow = Flow::GetThemeUsingThemeId; let payload = path.into_inner(); Box::pin(api::server_wrap( flow, state, &req, payload, ...
crates/router/src/routes/user/theme.rs
router
function_signature
124
rust
null
null
null
null
get_theme_using_theme_id
null
null
null
null
null
null
null
pub struct BankAccountIban { pub account_holder_name: Secret<String>, pub iban: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
BankAccountIban
null
null
null
null
null
null
null
null
null
null
null
pub struct RecurlyWebhookBody { // Transaction uuid pub uuid: String, pub event_type: RecurlyPaymentEventType, }
crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
RecurlyWebhookBody
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthenticationErrorMessage;
crates/api_models/src/analytics/auth_events.rs
api_models
struct_definition
5
rust
AuthenticationErrorMessage
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Trustpay {}
crates/hyperswitch_connectors/src/connectors/trustpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Trustpay
api::PaymentCapture for
impl api::PaymentCapture for for Trustpay
null
null
null
null
null
null
null
null
impl AddressStructForDbUpdate<'_> { async fn update_address_if_sent( &self, db: &dyn StorageInterface, ) -> errors::CustomResult<Option<domain::Address>, errors::CustomersErrorResponse> { let address = if let Some(addr) = &self.update_customer.address { match self.domain_cust...
crates/router/src/core/customers.rs
router
impl_block
490
rust
null
AddressStructForDbUpdate
null
impl AddressStructForDbUpdate
null
null
null
null
null
null
null
null
pub struct SepaAndBacsBillingDetails { /// The Email ID for SEPA and BACS billing pub email: Email, /// The billing name for SEPA and BACS billing pub name: Secret<String>, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
50
rust
SepaAndBacsBillingDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct FiservRefundRequest { amount: Amount, merchant_details: MerchantDetails, reference_transaction_details: ReferenceTransactionDetails, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
FiservRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct ToggleAllKVResponse { ///Total number of updated merchants #[schema(example = 20)] pub total_updated: usize, /// Status of KV for the specific merchant #[schema(example = true)] pub kv_enabled: bool, }
crates/api_models/src/admin.rs
api_models
struct_definition
56
rust
ToggleAllKVResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn make_fulfillment_api_call( db: &dyn StorageInterface, fraud_check: FraudCheck, payment_intent: PaymentIntent, state: SessionState, merchant_context: domain::MerchantContext, req: frm_core_types::FrmFulfillmentRequest, ) -> RouterResponse<frm_types::FraudCheckResponseData> { let ...
crates/router/src/core/fraud_check.rs
router
function_signature
570
rust
null
null
null
null
make_fulfillment_api_call
null
null
null
null
null
null
null
File: crates/connector_configs/src/common_config.rs Public structs: 12 use api_models::{payment_methods, payments}; use serde::{Deserialize, Serialize}; use utoipa::ToSchema; #[serde_with::skip_serializing_none] #[derive(Debug, Deserialize, serde::Serialize, Clone)] #[serde(rename_all = "snake_case")] pub struct Zen...
crates/connector_configs/src/common_config.rs
connector_configs
full_file
1,814
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PixBankTransfer { /// Bank name #[schema(value_type = Option<String>, example = "Deutsche Bank")] pub bank_name: Option<String>, /// Bank branch #[schema(value_type = Option<String>, example = "3707")] pub bank_branch: Option<String>, /// Bank account number is an unique identif...
crates/api_models/src/payouts.rs
api_models
struct_definition
193
rust
PixBankTransfer
null
null
null
null
null
null
null
null
null
null
null
pub fn set_cargo_workspace_members_env() { use std::io::Write; let metadata = cargo_metadata::MetadataCommand::new() .exec() .expect("Failed to obtain cargo metadata"); let workspace_members = metadata .workspace_packages() .iter() .map(|package| package.name.as_str...
crates/router_env/src/cargo_workspace.rs
router_env
function_signature
134
rust
null
null
null
null
set_cargo_workspace_members_env
null
null
null
null
null
null
null
pub struct SubmitEvidenceRequestData { pub dispute_id: String, pub dispute_status: storage_enums::DisputeStatus, pub connector_dispute_id: String, pub access_activity_log: Option<String>, pub billing_address: Option<String>, //cancellation policy pub cancellation_policy: Option<Vec<u8>>, ...
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
574
rust
SubmitEvidenceRequestData
null
null
null
null
null
null
null
null
null
null
null
pub async fn refunds_update( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<refunds::RefundUpdateRequest>, path: web::Path<String>, ) -> HttpResponse { let flow = Flow::RefundsUpdate; let mut refund_update_req = json_payload.into_inner(); refund_update_req.refund_id = ...
crates/router/src/routes/refunds.rs
router
function_signature
211
rust
null
null
null
null
refunds_update
null
null
null
null
null
null
null
impl RefundExecute for Threedsecureio {}
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
hyperswitch_connectors
impl_block
10
rust
null
Threedsecureio
RefundExecute for
impl RefundExecute for for Threedsecureio
null
null
null
null
null
null
null
null
json_payload: web::Json<[GetAuthEventMetricRequest; 1]>, ) -> impl Responder { // safety: This shouldn't panic owing to the data type #[allow(clippy::expect_used)] let payload = json_payload .into_inner() .to_vec() .pop() .expect("Could...
crates/router/src/analytics.rs#chunk1
router
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn connector_list_profile( state: web::Data<AppState>, req: HttpRequest, path: web::Path<common_utils::id_type::MerchantId>, ) -> HttpResponse { let flow = Flow::MerchantConnectorsList; let merchant_id = path.into_inner(); api::server_wrap( flow, state, &req, ...
crates/router/src/routes/admin.rs
router
function_signature
202
rust
null
null
null
null
connector_list_profile
null
null
null
null
null
null
null
pub async fn payments_complete_authorize_redirect( state: web::Data<app::AppState>, req: actix_web::HttpRequest, json_payload: Option<web::Form<serde_json::Value>>, path: web::Path<( common_utils::id_type::PaymentId, common_utils::id_type::MerchantId, String, )
crates/router/src/routes/payments.rs
router
function_signature
77
rust
null
null
null
null
payments_complete_authorize_redirect
null
null
null
null
null
null
null
pub fn record_value(&mut self, key: &'a str, value: serde_json::Value) { if super::formatter::IMPLICIT_KEYS.contains(key) { tracing::warn!(value =? value, "{} is a reserved entry. Skipping it.", key); } else { self.values.insert(key, value); } }
crates/router_env/src/logger/storage.rs
router_env
function_signature
72
rust
null
null
null
null
record_value
null
null
null
null
null
null
null
impl<K, V> Iterator for IntoIter<K, V> where K: EntityId, { type Item = (K, V); fn next(&mut self) -> Option<Self::Item> { self.inner.next().map(|(id, val)| (K::with_id(id), val)) } }
crates/hyperswitch_constraint_graph/src/dense_map.rs
hyperswitch_constraint_graph
impl_block
69
rust
null
IntoIter
Iterator for
impl Iterator for for IntoIter
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ConnectorIntegrationStatus { "type": "string", "description": "Connector Integration Status", "enum": [ "live", "sandbox", "beta", "alpha" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
54
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ConnectorIntegrationStatus" ]
null
null
null
null