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 SplitRefundInput { pub refund_request: Option<common_types::refunds::SplitRefund>, pub payment_charges: Option<common_types::payments::ConnectorChargeResponseData>, pub split_payment_request: Option<common_types::payments::SplitPaymentsRequest>, pub charge_id: Option<String>, }
crates/router/src/core/utils/refunds_transformers.rs
router
struct_definition
68
rust
SplitRefundInput
null
null
null
null
null
null
null
null
null
null
null
pub struct CardDetails { pub country: Option<String>, pub last4: Option<String>, pub exp_month: Option<masking::Secret<String>>, pub exp_year: Option<masking::Secret<String>>, pub fingerprint: Option<masking::Secret<String>>, }
crates/router/src/compatibility/stripe/customers/types.rs
router
struct_definition
59
rust
CardDetails
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Zen {}
crates/hyperswitch_connectors/src/connectors/zen.rs
hyperswitch_connectors
impl_block
10
rust
null
Zen
api::MandateSetup for
impl api::MandateSetup for for Zen
null
null
null
null
null
null
null
null
impl api::PaymentSession for Dlocal {}
crates/hyperswitch_connectors/src/connectors/dlocal.rs
hyperswitch_connectors
impl_block
9
rust
null
Dlocal
api::PaymentSession for
impl api::PaymentSession for for Dlocal
null
null
null
null
null
null
null
null
pub(crate) async fn update_pt_status_based_on_attempt_status_for_payments_sync( &self, state: &SessionState, payment_intent: &PaymentIntent, process_tracker: storage::ProcessTracker, profile: &domain::Profile, merchant_context: domain::MerchantContext, revenue_rec...
crates/router/src/core/revenue_recovery/types.rs
router
function_signature
1,151
rust
null
null
null
null
update_pt_status_based_on_attempt_status_for_payments_sync
null
null
null
null
null
null
null
pub async fn merchant_account_list( state: web::Data<AppState>, req: HttpRequest, query_params: web::Query<api_models::admin::MerchantAccountListRequest>, ) -> HttpResponse { let flow = Flow::MerchantAccountList; Box::pin(api::server_wrap( flow, state, &req, query_pa...
crates/router/src/routes/admin.rs
router
function_signature
175
rust
null
null
null
null
merchant_account_list
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/mifinity.rs Public functions: 1 Public structs: 1 pub mod transformers; use api_models::webhooks::{IncomingWebhookEvent, ObjectReferenceId}; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Reque...
crates/hyperswitch_connectors/src/connectors/mifinity.rs
hyperswitch_connectors
full_file
4,120
null
null
null
null
null
null
null
null
null
null
null
null
null
impl FlattenedPaymentMethodsEnabled { async fn perform_filtering( self, state: &routes::SessionState, merchant_context: &domain::MerchantContext, profile_id: &id_type::ProfileId, req: &api_models::payments::ListMethodsForPaymentsRequest, payment_intent: &hyperswitch_d...
crates/router/src/core/payments/payment_methods.rs
router
impl_block
219
rust
null
FlattenedPaymentMethodsEnabled
null
impl FlattenedPaymentMethodsEnabled
null
null
null
null
null
null
null
null
pub struct NoonRevokeMandateResponse { result: NoonRevokeMandateResult, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
NoonRevokeMandateResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct TemporaryVaultCvc { card_cvc: masking::Secret<String>, }
crates/router/src/core/payment_methods/vault.rs
router
struct_definition
18
rust
TemporaryVaultCvc
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodResponse { /// The unique identifier of the Payment method #[schema(value_type = String, example = "12345_pm_01926c58bc6e77c09e809964e72af8c8")] pub id: id_type::GlobalPaymentMethodId, /// Unique identifier for a merchant #[schema(value_type = String, example = "merchant_167...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
582
rust
PaymentMethodResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn customers_delete( state: web::Data<AppState>, req: HttpRequest, path: web::Path<id_type::CustomerId>, ) -> impl Responder { let flow = Flow::CustomersDelete; let customer_id = path.into_inner(); Box::pin(api::server_wrap( flow, state, &req, customer_...
crates/router/src/routes/customers.rs
router
function_signature
215
rust
null
null
null
null
customers_delete
null
null
null
null
null
null
null
pub fn requires_forex_functionality(&self) -> bool { self.payment_attempt .as_ref() .map(|req| req.metrics.iter().any(|metric| metric.is_forex_metric())) .unwrap_or_default() || self .payment_intent .as_ref() .map(|r...
crates/api_models/src/analytics.rs
api_models
function_signature
170
rust
null
null
null
null
requires_forex_functionality
null
null
null
null
null
null
null
impl ConnectorCommon for Paystack { fn id(&self) -> &'static str { "paystack" } 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/paystack.rs
hyperswitch_connectors
impl_block
408
rust
null
Paystack
ConnectorCommon for
impl ConnectorCommon for for Paystack
null
null
null
null
null
null
null
null
pub fn get_frm_config_as_secret( frm_configs: Option<Vec<api_models::admin::FrmConfigs>>, ) -> Option<Vec<Secret<serde_json::Value>>> { match frm_configs.as_ref() { Some(frm_value) => { let configs_for_frm_value: Vec<Secret<serde_json::Value>> = frm_value .iter() ...
crates/router/src/core/admin.rs
router
function_signature
148
rust
null
null
null
null
get_frm_config_as_secret
null
null
null
null
null
null
null
impl CardExpirationMonth { pub fn two_digits(&self) -> String { format!("{:02}", self.peek()) } }
crates/cards/src/lib.rs
cards
impl_block
29
rust
null
CardExpirationMonth
null
impl CardExpirationMonth
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/authentication") .app_data(web::Data::new(state)) .service(web::resource("").route(web::post().to(authentication::authentication_create))) .service( web::resource("/{authentication_id}/eligibility") ...
crates/router/src/routes/app.rs
router
function_signature
162
rust
null
null
null
null
server
null
null
null
null
null
null
null
impl Default for RevenueRecoveryPaymentProcessTrackerMapping { fn default() -> Self { Self { default_mapping: RetryMapping { // 1st attempt happens after 1 minute of it being start_after: 60, frequencies: vec![ // 2nd and 3rd a...
crates/scheduler/src/consumer/types/process_data.rs
scheduler
impl_block
271
rust
null
RevenueRecoveryPaymentProcessTrackerMapping
Default for
impl Default for for RevenueRecoveryPaymentProcessTrackerMapping
null
null
null
null
null
null
null
null
File: crates/router/src/core/fraud_check/operation/fraud_check_pre.rs Public structs: 1 use async_trait::async_trait; use common_enums::FrmSuggestion; use common_utils::ext_traits::Encode; use diesel_models::enums::FraudCheckLastStep; use router_env::{instrument, tracing}; use uuid::Uuid; use super::{Domain, FraudCh...
crates/router/src/core/fraud_check/operation/fraud_check_pre.rs
router
full_file
2,941
null
null
null
null
null
null
null
null
null
null
null
null
null
impl masking::SerializableSecret for RedirectResponse {}
crates/diesel_models/src/types.rs
diesel_models
impl_block
9
rust
null
RedirectResponse
masking::SerializableSecret for
impl masking::SerializableSecret for for RedirectResponse
null
null
null
null
null
null
null
null
pub struct ConsultaOperacionesReturn { messages: MessagesResponseData, }
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
ConsultaOperacionesReturn
null
null
null
null
null
null
null
null
null
null
null
impl PaymentAttemptUpdate { pub fn to_storage_model(self) -> diesel_models::PaymentAttemptUpdate { match self { Self::Update { net_amount, currency, status, authentication_type, payment_method, paymen...
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
impl_block
2,377
rust
null
PaymentAttemptUpdate
null
impl PaymentAttemptUpdate
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/cards") .app_data(web::Data::new(state)) .service(web::resource("/create").route(web::post().to(create_cards_info))) .service(web::resource("/update").route(web::post().to(update_cards_info))) .service(web::re...
crates/router/src/routes/app.rs
router
function_signature
111
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub async fn find_last_successful_or_partially_captured_attempt_by_payment_id_merchant_id( conn: &PgPooledConn, payment_id: &common_utils::id_type::PaymentId, merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<Self> { // perform ordering on the application level inst...
crates/diesel_models/src/query/payment_attempt.rs
diesel_models
function_signature
217
rust
null
null
null
null
find_last_successful_or_partially_captured_attempt_by_payment_id_merchant_id
null
null
null
null
null
null
null
/// Emit the event and log any errors. pub fn emit(self) { self.try_emit() .map_err(|e| { logger::error!("Error emitting event: {:?}", e); }) .ok(); }
crates/events/src/lib.rs
events
function_signature
49
rust
null
null
null
null
emit
null
null
null
null
null
null
null
impl ClientSecretFetch for PaymentMethodListRequest { fn get_client_secret(&self) -> Option<&String> { self.client_secret.as_ref() } }
crates/router/src/services/authentication.rs
router
impl_block
34
rust
null
PaymentMethodListRequest
ClientSecretFetch for
impl ClientSecretFetch for for PaymentMethodListRequest
null
null
null
null
null
null
null
null
pub struct ClientSecretType { pub id: common_utils::id_type::ClientSecretId, pub merchant_id: common_utils::id_type::MerchantId, pub resource_id: common_utils::types::authentication::ResourceId, pub created_at: time::PrimitiveDateTime, pub expires: time::PrimitiveDateTime, pub secret: Secret<Str...
crates/diesel_models/src/ephemeral_key.rs
diesel_models
struct_definition
75
rust
ClientSecretType
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_role_v2( state: SessionState, user_from_token: UserFromToken, req: role_api::CreateRoleV2Request, _req_state: ReqState, ) -> UserResponse<role_api::RoleInfoResponseWithParentsGroup> { let now = common_utils::date_time::now(); let user_entity_type = user_from_token .g...
crates/router/src/core/user_role/role.rs
router
function_signature
797
rust
null
null
null
null
create_role_v2
null
null
null
null
null
null
null
pub async fn dummy_connector_authorize_payment( state: web::Data<app::AppState>, req: actix_web::HttpRequest, path: web::Path<String>, ) -> impl actix_web::Responder { let flow = types::Flow::DummyPaymentAuthorize; let attempt_id = path.into_inner(); let payload = types::DummyConnectorPaymentCon...
crates/router/src/routes/dummy_connector.rs
router
function_signature
145
rust
null
null
null
null
dummy_connector_authorize_payment
null
null
null
null
null
null
null
Documentation: api-reference/v1/mandates/mandates--revoke-mandate.mdx # Type: Doc File --- openapi: post /mandates/revoke/{mandate_id} ---
api-reference/v1/mandates/mandates--revoke-mandate.mdx
null
doc_file
43
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/payment_intents/metrics/sessionized_metrics/successful_smart_retries.rs use std::collections::HashSet; use api_models::{ analytics::{ payment_intents::{ PaymentIntentDimensions, PaymentIntentFilters, PaymentIntentMetricsBucketIdentifier, }, Granularit...
crates/analytics/src/payment_intents/metrics/sessionized_metrics/successful_smart_retries.rs
analytics
full_file
995
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct DecryptDataRequest { #[serde(flatten)] pub identifier: Identifier, pub data: StrongSecret<String>, }
crates/common_utils/src/types/keymanager.rs
common_utils
struct_definition
27
rust
DecryptDataRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/checkbook.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct OnlineMandate { /// Ip address of the customer machine from which the mandate was created #[schema(value_type = String, example = "123.32.25.123")] pub ip_address: Option<Secret<String, pii::IpAddress>>, /// The user-agent of the customer's browser pub user_agent: String, }
crates/common_types/src/payments.rs
common_types
struct_definition
80
rust
OnlineMandate
null
null
null
null
null
null
null
null
null
null
null
pub fn apply_changeset(self, source: Profile) -> Profile { let Self { profile_name, modified_at, return_url, enable_payment_response_hash, payment_response_hash_key, redirect_to_merchant_with_http_post, webhook_details, ...
crates/diesel_models/src/business_profile.rs
diesel_models
function_signature
1,471
rust
null
null
null
null
apply_changeset
null
null
null
null
null
null
null
pub struct NomupayPaymentResponse { pub id: String, pub status: NomupayPaymentStatus, pub created_on: String, pub last_updated: String, pub source_id: Secret<String>, pub destination_id: Secret<String>, pub payment_reference: String, pub amount: FloatMajorUnit, pub currency_code: Str...
crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs
hyperswitch_connectors
struct_definition
111
rust
NomupayPaymentResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs Public structs: 12 use std::str::FromStr; use api_models::payments::{DeviceChannel, ThreeDsCompletionIndicator}; use base64::Engine; use common_enums::enums; use common_utils::{consts::BASE64_ENGINE, date_time, ext_traits::OptionExt as...
crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs
hyperswitch_connectors
full_file
5,800
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_group_authorization_info() -> Option<Vec<GroupInfo>> { let groups = PermissionGroup::iter() .filter_map(get_group_info_from_permission_group) .collect::<Vec<_>>(); groups.is_empty().not().then_some(groups) }
crates/router/src/services/authorization/info.rs
router
function_signature
54
rust
null
null
null
null
get_group_authorization_info
null
null
null
null
null
null
null
impl Parse for ResourceInput { fn parse(input: ParseStream<'_>) -> syn::Result<Self> { let resource_name: Ident = input.parse()?; input.parse::<Token![:]>()?; // Expect ':' let content; braced!(content in input); let (_scopes_label, scopes) = parse_label_with_punctuated_dat...
crates/router_derive/src/macros/generate_permissions.rs
router_derive
impl_block
124
rust
null
ResourceInput
Parse for
impl Parse for for ResourceInput
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Jpmorgan { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented...
crates/hyperswitch_connectors/src/connectors/jpmorgan.rs
hyperswitch_connectors
impl_block
211
rust
null
Jpmorgan
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Jpmorgan
null
null
null
null
null
null
null
null
pub fn payments_get_intent() {}
crates/openapi/src/routes/payments.rs
openapi
function_signature
7
rust
null
null
null
null
payments_get_intent
null
null
null
null
null
null
null
pub struct ThreedsInfo { cardholder: CardHolder, }
crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
ThreedsInfo
null
null
null
null
null
null
null
null
null
null
null
pub struct RecurringMandatePaymentData { pub payment_method_type: Option<common_enums::enums::PaymentMethodType>, //required for making recurring payment using saved payment method through stripe pub original_payment_authorized_amount: Option<i64>, pub original_payment_authorized_currency: Option<common_enu...
crates/hyperswitch_domain_models/src/router_data.rs
hyperswitch_domain_models
struct_definition
90
rust
RecurringMandatePaymentData
null
null
null
null
null
null
null
null
null
null
null
impl Relay { pub fn server(state: AppState) -> Scope { web::scope("/relay") .app_data(web::Data::new(state)) .service(web::resource("").route(web::post().to(relay::relay))) .service(web::resource("/{relay_id}").route(web::get().to(relay::relay_retrieve))) } }
crates/router/src/routes/app.rs
router
impl_block
77
rust
null
Relay
null
impl Relay
null
null
null
null
null
null
null
null
pub struct GooglePayPaymentMethodDetails { pub auth_method: common_enums::enums::GooglePayAuthMethod, pub expiration_month: cards::CardExpirationMonth, pub expiration_year: cards::CardExpirationYear, pub pan: cards::CardNumber, pub cryptogram: Option<Secret<String>>, pub eci_indicator: Option<St...
crates/hyperswitch_domain_models/src/router_data.rs
hyperswitch_domain_models
struct_definition
83
rust
GooglePayPaymentMethodDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct Edge { pub strength: Strength, pub relation: Relation, pub pred: NodeId, pub succ: NodeId, pub domain: Option<DomainId>, }
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
struct_definition
40
rust
Edge
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/noon/transformers.rs Public functions: 1 Public structs: 44 use common_enums::enums::{self, AttemptStatus}; use common_utils::{ext_traits::Encode, pii, request::Method, types::StringMajorUnit}; use error_stack::ResultExt; use hyperswitch_domain_models::{ payment...
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
full_file
7,034
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_payment_distribution( &self, distribution: &PaymentDistributionBody, dimensions: &[PaymentDimensions], auth: &AuthInfo, filters: &PaymentFilters, granularity: Option<Granularity>, time_range: &TimeRange, ) -> types::MetricsResult<Vec<(PaymentM...
crates/analytics/src/lib.rs
analytics
function_signature
619
rust
null
null
null
null
get_payment_distribution
null
null
null
null
null
null
null
pub struct OrganizationNew { pub org_id: id_type::OrganizationId, pub org_type: OrganizationType, pub org_name: Option<String>, }
crates/api_models/src/organization.rs
api_models
struct_definition
33
rust
OrganizationNew
null
null
null
null
null
null
null
null
null
null
null
pub fn check_refund_integrity<T, Request>( request: &Request, refund_response_data: &Result<types::RefundsResponseData, ErrorResponse>, ) -> Result<(), common_utils::errors::IntegrityCheckError> where T: FlowIntegrity, Request: GetIntegrityObject<T> + CheckIntegrity<Request, T>, { let connector_refu...
crates/router/src/core/refunds_v2.rs
router
function_signature
126
rust
null
null
null
null
check_refund_integrity
null
null
null
null
null
null
null
File: crates/api_models/src/events/dispute.rs use common_utils::events::{ApiEventMetric, ApiEventsType}; use super::{ DeleteEvidenceRequest, DisputeResponse, DisputeResponsePaymentsRetrieve, DisputeRetrieveRequest, DisputesAggregateResponse, SubmitEvidenceRequest, }; impl ApiEventMetric for SubmitEvidenceReq...
crates/api_models/src/events/dispute.rs
api_models
full_file
354
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::PaymentsFilters; Box::pin(api::server_wrap( flow, state, &req, (), |state, auth: auth::AuthenticationData, _, _| { let merchant_context = domain::MerchantContext::NormalMerchant(Box::new( domain::Context(auth.m...
crates/router/src/routes/payments.rs
router
impl_block
148
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Globepay {}
crates/hyperswitch_connectors/src/connectors/globepay.rs
hyperswitch_connectors
impl_block
10
rust
null
Globepay
api::PaymentCapture for
impl api::PaymentCapture for for Globepay
null
null
null
null
null
null
null
null
pub fn should_call_retrieve(status: api_enums::PayoutStatus) -> bool { matches!( status, api_enums::PayoutStatus::Pending | api_enums::PayoutStatus::Initiated ) }
crates/router/src/core/payouts/helpers.rs
router
function_signature
50
rust
null
null
null
null
should_call_retrieve
null
null
null
null
null
null
null
pub fn update(&mut self, new: Self) { if let Some(bucket_size) = new.bucket_size { self.bucket_size = Some(bucket_size) } if let Some(bucket_leak_interval_in_secs) = new.bucket_leak_interval_in_secs { self.bucket_leak_interval_in_secs = Some(bucket_leak_interval_in_secs) ...
crates/api_models/src/routing.rs
api_models
function_signature
76
rust
null
null
null
null
update
null
null
null
null
null
null
null
pub struct PurchaseUnitRequest { reference_id: Option<String>, //reference for an item in purchase_units invoice_id: Option<String>, //The API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives. custom_id: Option<Str...
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
122
rust
PurchaseUnitRequest
null
null
null
null
null
null
null
null
null
null
null
}; db.update_payment_method( &(state.into()), merchant_context.get_merchant_key_store(), payment_method, pm_update, merchant_context.get_merchant_account().storage_scheme, ) .await ...
crates/router/src/core/payment_methods.rs#chunk1
router
chunk
8,183
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn set_role_info_in_cache_if_required( state: &SessionState, role_id: &str, org_id: &id_type::OrganizationId, tenant_id: &id_type::TenantId, ) -> UserResult<()> { if roles::predefined_roles::PREDEFINED_ROLES.contains_key(role_id) { return Ok(()); } let role_info = ...
crates/router/src/utils/user_role.rs
router
function_signature
213
rust
null
null
null
null
set_role_info_in_cache_if_required
null
null
null
null
null
null
null
pub struct WelcomeToCommunity { pub recipient_email: domain::UserEmail, }
crates/router/src/services/email/types.rs
router
struct_definition
17
rust
WelcomeToCommunity
null
null
null
null
null
null
null
null
null
null
null
pub struct RequestMetadata { meta_key: Option<String>, meta_value: Option<String>, is_visible: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
RequestMetadata
null
null
null
null
null
null
null
null
null
null
null
pub const fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/nmi.rs
hyperswitch_connectors
function_signature
29
rust
null
null
null
null
new
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PayoutListFilters { "type": "object", "required": [ "connector", "currency", "status", "payout_method" ], "properties": { "connector": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutConnectors" }, "desc...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
242
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PayoutListFilters" ]
null
null
null
null
pub struct WorldpayxmlRouterData<T> { pub amount: StringMinorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
WorldpayxmlRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct HyperswitchVaultErrorDetails { #[serde(alias = "type")] pub error_type: String, pub message: Option<String>, pub code: String, }
crates/hyperswitch_connectors/src/connectors/hyperswitch_vault/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
HyperswitchVaultErrorDetails
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Razorpay {}
crates/hyperswitch_connectors/src/connectors/razorpay.rs
hyperswitch_connectors
impl_block
8
rust
null
Razorpay
api::Payment for
impl api::Payment for for Razorpay
null
null
null
null
null
null
null
null
pub struct PaymentCaptureRequest { pub amount: Option<MinorUnit>, pub capture_type: Option<CaptureType>, pub processing_channel_id: Secret<String>, pub reference: Option<String>, }
crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
hyperswitch_connectors
struct_definition
42
rust
PaymentCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Coingate {}
crates/hyperswitch_connectors/src/connectors/coingate.rs
hyperswitch_connectors
impl_block
9
rust
null
Coingate
api::Payment for
impl api::Payment for for Coingate
null
null
null
null
null
null
null
null
File: crates/api_models/src/user/sample_data.rs Public structs: 1 use common_enums::{AuthenticationType, CountryAlpha2}; use time::PrimitiveDateTime; use crate::enums::Connector; #[derive(serde::Deserialize, Debug, serde::Serialize)] pub struct SampleDataRequest { pub record: Option<usize>, pub connector: O...
crates/api_models/src/user/sample_data.rs
api_models
full_file
242
null
null
null
null
null
null
null
null
null
null
null
null
null
pub(super) fn occurrence_error<T: ToTokens>( first_keyword: T, second_keyword: T, attr: &str, ) -> syn::Error { let mut error = syn::Error::new_spanned( second_keyword, format!("Found multiple occurrences of error({attr})"), ); error.combine(syn::Error::new_spanned(first_keyword,...
crates/router_derive/src/macros/helpers.rs
router_derive
function_signature
89
rust
null
null
null
null
occurrence_error
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Mpgs { fn get_webhook_object_reference_id( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented)) ...
crates/hyperswitch_connectors/src/connectors/mpgs.rs
hyperswitch_connectors
impl_block
211
rust
null
Mpgs
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Mpgs
null
null
null
null
null
null
null
null
pub struct InespayWebhookEvent { pub data_return: String, pub signature_data_return: String, }
crates/hyperswitch_connectors/src/connectors/inespay/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
InespayWebhookEvent
null
null
null
null
null
null
null
null
null
null
null
pub struct HostedUrlResponse { redirect_url: Option<Url>, }
crates/hyperswitch_connectors/src/connectors/boku/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
HostedUrlResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_user_authentication_method( state: SessionState, req: user_api::CreateUserAuthenticationMethodRequest, ) -> UserResponse<()> { let user_auth_encryption_key = hex::decode( state .conf .user_auth_methods .get_inner() .encryption_key ...
crates/router/src/core/user.rs
router
function_signature
720
rust
null
null
null
null
create_user_authentication_method
null
null
null
null
null
null
null
pub async fn verify_webhook_source( self, nt_service: &settings::NetworkTokenizationService, ) -> CustomResult<(), errors::ApiErrorResponse> { let secret = nt_service.webhook_source_verification_key.clone(); let source_verified = match self.header { Some(authorization_he...
crates/router/src/core/webhooks/network_tokenization_incoming.rs
router
function_signature
178
rust
null
null
null
null
verify_webhook_source
null
null
null
null
null
null
null
impl Default for Database { fn default() -> Self { Self { username: String::new(), password: String::new().into(), host: "localhost".into(), port: 5432, dbname: String::new(), pool_size: 5, connection_timeout: 10, } ...
crates/drainer/src/settings.rs
drainer
impl_block
75
rust
null
Database
Default for
impl Default for for Database
null
null
null
null
null
null
null
null
impl<'a> MerchantReferenceIdForCustomer<'a> { async fn verify_if_merchant_reference_not_present_by_optional_merchant_reference_id( &self, db: &dyn StorageInterface, ) -> Result<Option<()>, error_stack::Report<errors::CustomersErrorResponse>> { self.merchant_reference_id .asyn...
crates/router/src/core/customers.rs
router
impl_block
285
rust
null
MerchantReferenceIdForCustomer
null
impl MerchantReferenceIdForCustomer
null
null
null
null
null
null
null
null
pub struct BankOfAmericaVoidRequest { client_reference_information: ClientReferenceInformation, reversal_information: ReversalInformation, #[serde(skip_serializing_if = "Option::is_none")] merchant_defined_information: Option<Vec<MerchantDefinedInformation>>, // The connector documentation does not ...
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
80
rust
BankOfAmericaVoidRequest
null
null
null
null
null
null
null
null
null
null
null
impl AcceptDispute for Adyen {}
crates/hyperswitch_connectors/src/connectors/adyen.rs
hyperswitch_connectors
impl_block
8
rust
null
Adyen
AcceptDispute for
impl AcceptDispute for for Adyen
null
null
null
null
null
null
null
null
pub struct DlocalPaymentsResponse { status: DlocalPaymentStatus, id: String, three_dsecure: Option<ThreeDSecureResData>, order_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
DlocalPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn apply_changeset(self, source: PaymentMethod) -> PaymentMethod { let Self { payment_method_data, last_used_at, network_transaction_id, status, locker_id, payment_method_type_v2, connector_mandate_details, updat...
crates/diesel_models/src/payment_method.rs
diesel_models
function_signature
437
rust
null
null
null
null
apply_changeset
null
null
null
null
null
null
null
pub struct DebtorInformation { pub name: Secret<String>, pub email: Email, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
DebtorInformation
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AchBankTransferAdditionalData { "type": "object", "description": "Masked payout method details for ach bank transfer payout method", "required": [ "bank_account_number", "bank_routing_number" ], "properties": { "bank_account_number": { "type": "string",...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
275
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AchBankTransferAdditionalData" ]
null
null
null
null
) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> { Err(report!(errors::ConnectorError::WebhooksNotImplemented)) } fn get_webhook_event_type( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<api_models::webhooks::I...
crates/hyperswitch_connectors/src/connectors/nordea.rs#chunk1
hyperswitch_connectors
chunk
599
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AliPayRedirection {}
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
7
rust
AliPayRedirection
null
null
null
null
null
null
null
null
null
null
null
pub struct IndonesianBankTransferData { bank_transfer: IndonesianBankTransferDetails, #[serde(rename = "type")] payment_method_type: AirwallexPaymentType, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
IndonesianBankTransferData
null
null
null
null
null
null
null
null
null
null
null
impl AuthenticationConnectorData { pub fn get_connector_by_name(name: &str) -> CustomResult<Self, errors::ApiErrorResponse> { let connector_name = enums::AuthenticationConnectors::from_str(name) .change_context(errors::ApiErrorResponse::IncorrectConnectorNameGiven) .attach_printable_...
crates/router/src/types/api/authentication.rs
router
impl_block
380
rust
null
AuthenticationConnectorData
null
impl AuthenticationConnectorData
null
null
null
null
null
null
null
null
pub struct CoinbaseRouterData<T> { amount: StringMajorUnit, router_data: T, }
crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
CoinbaseRouterData
null
null
null
null
null
null
null
null
null
null
null
impl FrmMetricAccumulator for TriggeredAttemptsAccumulator { type MetricOutput = Option<u64>; #[inline] fn add_metrics_bucket(&mut self, metrics: &FrmMetricRow) { self.count = match (self.count, metrics.count) { (None, None) => None, (None, i @ Some(_)) | (i @ Some(_), None) ...
crates/analytics/src/frm/accumulator.rs
analytics
impl_block
143
rust
null
TriggeredAttemptsAccumulator
FrmMetricAccumulator for
impl FrmMetricAccumulator for for TriggeredAttemptsAccumulator
null
null
null
null
null
null
null
null
File: crates/injector/src/types.rs Public structs: 8 pub mod models { use std::collections::HashMap; use common_utils::pii::SecretSerdeValue; use masking::Secret; use serde::{Deserialize, Serialize}; // Enums for the injector - making it standalone /// Content types supported by the injecto...
crates/injector/src/types.rs
injector
full_file
1,696
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/payments/{payment_id}/incremental_authorization" { "post": { "tags": [ "Payments" ], "summary": "Payments - Incremental Authorization", "description": "Authorized amount for a payment can be incremented if it is in status: requires_capture", "operationId": "Increm...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
326
.json
null
null
null
null
null
openapi_spec
paths
[ "/payments/{payment_id}/incremental_authorization" ]
null
null
null
null
pub async fn generic_user_roles_list_for_user( conn: &PgPooledConn, user_id: String, tenant_id: id_type::TenantId, org_id: Option<id_type::OrganizationId>, merchant_id: Option<id_type::MerchantId>, profile_id: Option<id_type::ProfileId>, entity_id: Option<String>,...
crates/diesel_models/src/query/user_role.rs
diesel_models
function_signature
454
rust
null
null
null
null
generic_user_roles_list_for_user
null
null
null
null
null
null
null
Documentation: api-reference/v1/blocklist/delete-blocklist.mdx # Type: Doc File --- openapi: delete /blocklist ---
api-reference/v1/blocklist/delete-blocklist.mdx
null
doc_file
30
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct OpensearchError { pub error: OpensearchErrorDetails, pub status: u16, }
crates/api_models/src/analytics/search.rs
api_models
struct_definition
26
rust
OpensearchError
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentsResponseCards { pub status: i64, pub description: Option<String>, pub instance_id: String, pub payment_status: Option<String>, pub payment_description: Option<String>, pub redirect_url: Option<Url>, pub redirect_params: Option<HashMap<String, String>>, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
65
rust
PaymentsResponseCards
null
null
null
null
null
null
null
null
null
null
null
pub fn get_mandate_details_value(&self) -> CustomResult<serde_json::Value, ParsingError> { let mut payments = self .payments .as_ref() .map_or_else(|| Ok(serde_json::json!({})), serde_json::to_value) .change_context(ParsingError::StructParseFailure("payment mandat...
crates/hyperswitch_domain_models/src/mandates.rs
hyperswitch_domain_models
function_signature
192
rust
null
null
null
null
get_mandate_details_value
null
null
null
null
null
null
null
pub struct Shipping { 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
Shipping
null
null
null
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/verify") .app_data(web::Data::new(state)) .service( web::resource("/apple_pay/{merchant_id}") .route(web::post().to(apple_pay_merchant_registration)), ) .service( ...
crates/router/src/routes/app.rs
router
function_signature
94
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub struct ExternalVaultCard { pub card_number: Secret<String>, pub card_exp_month: Secret<String>, pub card_exp_year: Secret<String>, pub card_cvc: Secret<String>, pub bin_number: Option<String>, pub last_four: Option<String>, pub card_issuer: Option<String>, pub card_network: Option<co...
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
148
rust
ExternalVaultCard
null
null
null
null
null
null
null
null
null
null
null
pub struct PlaidExchangeTokenResponse { pub access_token: String, }
crates/pm_auth/src/connector/plaid/transformers.rs
pm_auth
struct_definition
16
rust
PlaidExchangeTokenResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/default_implementations_v2.rs use hyperswitch_domain_models::{ router_data::{AccessToken, AccessTokenAuthenticationResponse}, router_data_v2::{ flow_common_types::{ BillingConnectorInvoiceSyncFlowData, BillingConnectorPaymentsSyncFlowData, ...
crates/hyperswitch_connectors/src/default_implementations_v2.rs#chunk0
hyperswitch_connectors
chunk
8,186
null
null
null
null
null
null
null
null
null
null
null
null
null