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
OpenAPI Block Path: components.schemas.DynamicRoutingConfigParams { "type": "string", "enum": [ "PaymentMethod", "PaymentMethodType", "AuthenticationType", "Currency", "Country", "CardNetwork", "CardBin" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
63
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "DynamicRoutingConfigParams" ]
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs Public structs: 83 use api_models::webhooks::IncomingWebhookEvent; use common_enums::enums; use common_utils::{ pii, types::{MinorUnit, StringMajorUnit}, }; use error_stack::ResultExt; use hyperswitch_domain_models::{ payment_met...
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs#chunk0
hyperswitch_connectors
chunk
8,178
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Worldline {}
crates/hyperswitch_connectors/src/connectors/worldline.rs
hyperswitch_connectors
impl_block
7
rust
null
Worldline
ConnectorValidation for
impl ConnectorValidation for for Worldline
null
null
null
null
null
null
null
null
pub struct ConsumerAuthenticationInformation { eci_raw: Option<String>, eci: Option<String>, acs_transaction_id: Option<String>, cavv: Option<String>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
ConsumerAuthenticationInformation
null
null
null
null
null
null
null
null
null
null
null
pub fn is_network_token_with_network_transaction_id_flow( is_connector_agnostic_mit_enabled: Option<bool>, is_network_tokenization_enabled: bool, payment_method_info: &domain::PaymentMethod, ) -> IsNtWithNtiFlow { match ( is_connector_agnostic_mit_enabled, is_network_tokenization_enabled...
crates/router/src/core/payments.rs
router
function_signature
198
rust
null
null
null
null
is_network_token_with_network_transaction_id_flow
null
null
null
null
null
null
null
impl api::Refund for Authorizedotnet {}
crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs
hyperswitch_connectors
impl_block
10
rust
null
Authorizedotnet
api::Refund for
impl api::Refund for for Authorizedotnet
null
null
null
null
null
null
null
null
impl CommonMandateReference { 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::...
crates/hyperswitch_domain_models/src/mandates.rs
hyperswitch_domain_models
impl_block
339
rust
null
CommonMandateReference
null
impl CommonMandateReference
null
null
null
null
null
null
null
null
pub struct MandateRevokeResponseData { pub mandate_status: common_enums::MandateStatus, }
crates/hyperswitch_domain_models/src/router_response_types.rs
hyperswitch_domain_models
struct_definition
24
rust
MandateRevokeResponseData
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_new_authentication( state: &SessionState, merchant_id: common_utils::id_type::MerchantId, authentication_connector: Option<String>, profile_id: common_utils::id_type::ProfileId, payment_id: Option<common_utils::id_type::PaymentId>, merchant_connector_id: Option<common_utils::...
crates/router/src/core/unified_authentication_service.rs
router
function_signature
750
rust
null
null
null
null
create_new_authentication
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/routing/{routing_algorithm_id}/activate" { "post": { "tags": [ "Routing" ], "summary": "Routing - Activate config", "description": "Activate a routing config", "operationId": "Activate a routing config", "parameters": [ { "name": "routing_algorit...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
265
.json
null
null
null
null
null
openapi_spec
paths
[ "/routing/{routing_algorithm_id}/activate" ]
null
null
null
null
PaypalWebhookEventType::PaymentCaptureRefunded => IncomingWebhookEvent::RefundSuccess, PaypalWebhookEventType::CustomerDisputeCreated => IncomingWebhookEvent::DisputeOpened, PaypalWebhookEventType::RiskDisputeCreated => IncomingWebhookEvent::DisputeAccepted, PaypalWebhookEventType::Custo...
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs#chunk3
hyperswitch_connectors
chunk
3,670
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Blackhawknetwork { fn id(&self) -> &'static str { "blackhawknetwork" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&se...
crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs
hyperswitch_connectors
impl_block
358
rust
null
Blackhawknetwork
ConnectorCommon for
impl ConnectorCommon for for Blackhawknetwork
null
null
null
null
null
null
null
null
pub fn get_field_type(field_type: syn::Type) -> Option<syn::Ident> { if let syn::Type::Path(path) = field_type { path.path .segments .last() .map(|last_path_segment| last_path_segment.ident.to_owned()) } else { None } }
crates/router_derive/src/macros/misc.rs
router_derive
function_signature
71
rust
null
null
null
null
get_field_type
null
null
null
null
null
null
null
pub struct CalSuccessRateConfigEventRequest { pub min_aggregates_size: Option<u32>, pub default_success_rate: Option<f64>, pub specificity_level: api_routing::SuccessRateSpecificityLevel, pub exploration_percent: Option<f64>, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
58
rust
CalSuccessRateConfigEventRequest
null
null
null
null
null
null
null
null
null
null
null
impl ApplePayPredecryptDataInternal { /// This logic being applied as apple pay provides application_expiration_date in the YYMMDD format fn get_four_digit_expiry_year( &self, ) -> Result<Secret<String>, common_utils::errors::ValidationError> { Ok(Secret::new(format!( "20{}", ...
crates/hyperswitch_domain_models/src/router_data.rs
hyperswitch_domain_models
impl_block
202
rust
null
ApplePayPredecryptDataInternal
null
impl ApplePayPredecryptDataInternal
null
null
null
null
null
null
null
null
pub struct AffirmRefundRequest { pub amount: MinorUnit, #[serde(skip_serializing_if = "Option::is_none")] pub reference_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
AffirmRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub trait FieldExt { /// Get all the schema metadata associated with a field. fn get_schema_metadata(&self) -> syn::Result<Vec<SchemaParameterVariant>>; }
crates/router_derive/src/macros/schema/helpers.rs
router_derive
trait_definition
36
rust
null
null
FieldExt
null
null
null
null
null
null
null
null
null
pub struct NovalnetCaptureResponse { pub result: ResultData, pub transaction: Option<NovalnetCaptureTransactionData>, }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
NovalnetCaptureResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct SquarePaymentsAmountData { amount: i64, currency: enums::Currency, }
crates/hyperswitch_connectors/src/connectors/square/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
SquarePaymentsAmountData
null
null
null
null
null
null
null
null
null
null
null
/// - `config`: A reference to a `HashiCorpVaultConfig` containing the configuration details. pub fn new(config: &HashiCorpVaultConfig) -> error_stack::Result<Self, HashiCorpError> { VaultClient::new( VaultClientSettingsBuilder::default() .address(&config.url) .to...
crates/external_services/src/hashicorp_vault/core.rs
external_services
function_signature
158
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl api::PaymentVoid for Vgs {}
crates/hyperswitch_connectors/src/connectors/vgs.rs
hyperswitch_connectors
impl_block
9
rust
null
Vgs
api::PaymentVoid for
impl api::PaymentVoid for for Vgs
null
null
null
null
null
null
null
null
pub fn add_filter_in_range_clause( &mut self, key: impl ToSql<T>, values: &[impl ToSql<T>], ) -> QueryResult<()> { let list = values .iter() .map(|i| { // trimming whitespaces from the filter values received in request, to prevent a possibility...
crates/analytics/src/query.rs
analytics
function_signature
176
rust
null
null
null
null
add_filter_in_range_clause
null
null
null
null
null
null
null
pub struct AuthIdAndThemeIdQueryParam { pub auth_id: Option<String>, pub theme_id: Option<String>, }
crates/api_models/src/user.rs
api_models
struct_definition
26
rust
AuthIdAndThemeIdQueryParam
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundResponse { response_code: u8, receipt: String, declined_code: Option<String>, declined_message: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn signout( state: SessionState, user_from_token: auth::UserIdFromAuth, ) -> UserResponse<()> { tfa_utils::delete_totp_from_redis(&state, &user_from_token.user_id).await?; tfa_utils::delete_recovery_code_from_redis(&state, &user_from_token.user_id).await?; tfa_utils::delete_totp_secret_fro...
crates/router/src/core/user.rs
router
function_signature
129
rust
null
null
null
null
signout
null
null
null
null
null
null
null
pub async fn update_connector_customer_in_customers( merchant_connector_account: &domain::MerchantConnectorAccountTypeDetails, customer: Option<&domain::Customer>, connector_customer_id: Option<String>, ) -> Option<storage::CustomerUpdate> { match merchant_connector_account { domain::MerchantCon...
crates/router/src/core/payments/customers.rs
router
function_signature
212
rust
null
null
null
null
update_connector_customer_in_customers
null
null
null
null
null
null
null
impl super::outgoing_webhook_event::events::OutgoingWebhookLogsFilterAnalytics for ClickhouseClient { }
crates/analytics/src/clickhouse.rs
analytics
impl_block
27
rust
null
ClickhouseClient
super::outgoing_webhook_event::events::OutgoingWebhookLogsFilterAnalytics for
impl super::outgoing_webhook_event::events::OutgoingWebhookLogsFilterAnalytics for for ClickhouseClient
null
null
null
null
null
null
null
null
pub struct SquareCardData { cvv: Secret<String>, exp_month: Secret<u16>, exp_year: Secret<u16>, number: cards::CardNumber, }
crates/hyperswitch_connectors/src/connectors/square/transformers.rs
hyperswitch_connectors
struct_definition
40
rust
SquareCardData
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/gocardless.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use api_models::webhooks::{IncomingWebhookEvent, ObjectReferenceId}; use common_enums::enums; use common_utils::{ crypto, errors::CustomResult, ext_trait...
crates/hyperswitch_connectors/src/connectors/gocardless.rs
hyperswitch_connectors
full_file
7,319
null
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/api-key/api-key--retrieve.mdx # Type: Doc File --- openapi: get /v2/api-keys/{id} ---
api-reference/v2/api-key/api-key--retrieve.mdx
null
doc_file
35
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct NetworkTokenData { pub token_number: cards::CardNumber, pub token_exp_month: Secret<String>, pub token_exp_year: Secret<String>, pub token_cryptogram: Option<Secret<String>>, pub card_issuer: Option<String>, pub card_network: Option<common_enums::CardNetwork>, pub card_type: Optio...
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
115
rust
NetworkTokenData
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<BlocklistFingerprint> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/blocklist_fingerprint.rs
diesel_models
function_signature
36
rust
null
null
null
null
insert
null
null
null
null
null
null
null
impl super::payments::distribution::PaymentDistributionAnalytics for ClickhouseClient {}
crates/analytics/src/clickhouse.rs
analytics
impl_block
15
rust
null
ClickhouseClient
super::payments::distribution::PaymentDistributionAnalytics for
impl super::payments::distribution::PaymentDistributionAnalytics for for ClickhouseClient
null
null
null
null
null
null
null
null
impl FileStorageConfig { /// Validates the file storage configuration. pub fn validate(&self) -> Result<(), InvalidFileStorageConfig> { match self { #[cfg(feature = "aws_s3")] Self::AwsS3 { aws_s3 } => aws_s3.validate(), Self::FileSystem => Ok(()), } } ...
crates/external_services/src/file_storage.rs
external_services
impl_block
171
rust
null
FileStorageConfig
null
impl FileStorageConfig
null
null
null
null
null
null
null
null
File: crates/api_models/src/events/gsm.rs use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::gsm; impl ApiEventMetric for gsm::GsmCreateRequest { fn get_api_event_type(&self) -> Option<ApiEventsType> { Some(ApiEventsType::Gsm) } } impl ApiEventMetric for gsm::GsmUpdateRequest { ...
crates/api_models/src/events/gsm.rs
api_models
full_file
282
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Link { href: Url, #[serde(rename = "type")] type_: String, }
crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
Link
null
null
null
null
null
null
null
null
null
null
null
pub fn should_perform_debit_routing_for_the_flow<Op: Debug, F: Clone, D>( operation: &Op, payment_data: &D, debit_routing_config: &settings::DebitRoutingConfig, ) -> bool where D: OperationSessionGetters<F> + Send + Sync + Clone, { match format!("{operation:?}").as_str() { "PaymentConfirm" =...
crates/router/src/core/debit_routing.rs
router
function_signature
122
rust
null
null
null
null
should_perform_debit_routing_for_the_flow
null
null
null
null
null
null
null
pub async fn do_retry<F, ApiRequest, FData, D>( state: &routes::SessionState, req_state: ReqState, connector: &api::ConnectorData, operation: &operations::BoxedOperation<'_, F, ApiRequest, D>, customer: &Option<domain::Customer>, merchant_context: &domain::MerchantContext, payment_data: &mut...
crates/router/src/core/payments/retry.rs
router
function_signature
588
rust
null
null
null
null
do_retry
null
null
null
null
null
null
null
/// Panics if `json_payload` array does not contain one `GetApiEventMetricRequest` element. pub async fn get_merchant_api_events_metrics( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<[GetApiEventMetricRequest; 1]>, ) -> impl Responder { // safe...
crates/router/src/analytics.rs
router
function_signature
264
rust
null
null
null
null
get_merchant_api_events_metrics
null
null
null
null
null
null
null
pub struct NexixpayErrorBody { pub code: Option<String>, pub description: Option<String>, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
NexixpayErrorBody
null
null
null
null
null
null
null
null
null
null
null
pub struct PayloadCaptureRequest { pub status: responses::PayloadPaymentStatus, }
crates/hyperswitch_connectors/src/connectors/payload/requests.rs
hyperswitch_connectors
struct_definition
17
rust
PayloadCaptureRequest
null
null
null
null
null
null
null
null
null
null
null
.service(web::resource("/filter").route(web::get().to(disputes::get_disputes_filters))) .service( web::resource("/profile/filter") .route(web::get().to(disputes::get_disputes_filters_profile)), ) .service( web::resource(...
crates/router/src/routes/app.rs#chunk2
router
chunk
7,386
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn update_router_data_with_payment_method_token_result<F: Clone, T>( payment_method_token_result: types::PaymentMethodTokenResult, router_data: &mut types::RouterData<F, T, types::PaymentsResponseData>, is_retry_payment: bool, should_continue_further: bool, ) -> bool { if payment_method_token_re...
crates/router/src/core/payments/tokenization.rs
router
function_signature
238
rust
null
null
null
null
update_router_data_with_payment_method_token_result
null
null
null
null
null
null
null
impl ConnectorCommon for Cashtocode { fn id(&self) -> &'static str { "cashtocode" } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.cashtocode.base_url.as_ref() } fn...
crates/hyperswitch_connectors/src/connectors/cashtocode.rs
hyperswitch_connectors
impl_block
276
rust
null
Cashtocode
ConnectorCommon for
impl ConnectorCommon for for Cashtocode
null
null
null
null
null
null
null
null
pub struct Processor { reference_number: Option<String>, authorization_code: Option<String>, response_code: Option<String>, response_message: Option<String>, avs_response: Option<AvsResponse>, security_code_response: Option<String>, }
crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs
hyperswitch_connectors
struct_definition
52
rust
Processor
null
null
null
null
null
null
null
null
null
null
null
impl super::refunds::metrics::RefundMetricAnalytics for SqlxClient {}
crates/analytics/src/sqlx.rs
analytics
impl_block
17
rust
null
SqlxClient
super::refunds::metrics::RefundMetricAnalytics for
impl super::refunds::metrics::RefundMetricAnalytics for for SqlxClient
null
null
null
null
null
null
null
null
pub struct OnboardSubAccountResponse { pub account_id: Secret<String>, pub id: String, pub client_sub_account_id: Secret<String>, pub profile: Profile, pub virtual_accounts: Vec<VirtualAccountsType>, pub status: String, pub created_on: String, pub last_updated: String, }
crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs
hyperswitch_connectors
struct_definition
70
rust
OnboardSubAccountResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct NexinetsPaymentResponse { pub transaction_id: String, pub status: NexinetsPaymentStatus, pub order: NexinetsOrder, #[serde(rename = "type")] pub transaction_type: NexinetsTransactionType, }
crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs
hyperswitch_connectors
struct_definition
54
rust
NexinetsPaymentResponse
null
null
null
null
null
null
null
null
null
null
null
impl<'a> NetworkTokenizationBuilder<'a, CardTokenized> { pub fn set_stored_card_response( self, store_card_response: &'a StoreLockerResponse, ) -> NetworkTokenizationBuilder<'a, CardStored> { NetworkTokenizationBuilder { state: std::marker::PhantomData, stored_car...
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
impl_block
163
rust
null
NetworkTokenizationBuilder
null
impl NetworkTokenizationBuilder
null
null
null
null
null
null
null
null
File: crates/router/src/services/kafka/payout.rs Public functions: 1 Public structs: 1 use common_utils::{id_type, pii, types::MinorUnit}; use diesel_models::enums as storage_enums; use hyperswitch_domain_models::payouts::{payout_attempt::PayoutAttempt, payouts::Payouts}; use time::OffsetDateTime; #[derive(serde::S...
crates/router/src/services/kafka/payout.rs
router
full_file
889
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct RsyncApplicationInformation { status: Option<BarclaycardRefundStatus>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
RsyncApplicationInformation
null
null
null
null
null
null
null
null
null
null
null
pub struct ThreedsecureioPostAuthenticationRequest { pub three_ds_server_trans_id: String, }
crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
ThreedsecureioPostAuthenticationRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/merchant_account.rs Public functions: 4 Public structs: 8 use common_utils::{encryption::Encryption, pii}; use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable}; use crate::enums as storage_enums; #[cfg(feature = "v1")] use crate::schema::merchant_account; #[cfg(f...
crates/diesel_models/src/merchant_account.rs
diesel_models
full_file
4,089
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_dispute_evidence( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<dispute_models::DeleteEvidenceRequest>, ) -> HttpResponse { let flow = Flow::DeleteDisputeEvidence; Box::pin(api::server_wrap( flow, state, &req, json_payload.i...
crates/router/src/routes/disputes.rs
router
function_signature
217
rust
null
null
null
null
delete_dispute_evidence
null
null
null
null
null
null
null
pub struct PaymentsResponse { data: DataResponse, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
12
rust
PaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ApplePayTokenizedCard { transaction_type: TransactionType, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
ApplePayTokenizedCard
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundUpdateRequest { #[serde(skip)] pub refund_id: String, /// An arbitrary string attached to the object. Often useful for displaying to users and your customer support executive #[schema(max_length = 255, example = "Customer returned the product")] pub reason: Option<String>, /// ...
crates/api_models/src/refunds.rs
api_models
struct_definition
160
rust
RefundUpdateRequest
null
null
null
null
null
null
null
null
null
null
null
pub trait PaymentDistributionAnalytics: LoadRow<PaymentDistributionRow> {}
crates/analytics/src/payments/distribution.rs
analytics
trait_definition
14
rust
null
null
PaymentDistributionAnalytics
null
null
null
null
null
null
null
null
null
impl GetAuthType for ApiKeyAuthWithMerchantIdFromRoute { fn get_auth_type(&self) -> detached::PayloadType { detached::PayloadType::ApiKey } }
crates/router/src/services/authentication.rs
router
impl_block
39
rust
null
ApiKeyAuthWithMerchantIdFromRoute
GetAuthType for
impl GetAuthType for for ApiKeyAuthWithMerchantIdFromRoute
null
null
null
null
null
null
null
null
pub struct CustombillingErrorResponse { pub status_code: u16, pub code: String, pub message: String, pub reason: Option<String>, }
crates/hyperswitch_connectors/src/connectors/custombilling/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
CustombillingErrorResponse
null
null
null
null
null
null
null
null
null
null
null
/// Get the action to whether calculate external tax or not as a boolean value pub fn get_external_tax_action_as_bool(&self) -> bool { self.skip_external_tax_calculation.as_bool() }
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
function_signature
43
rust
null
null
null
null
get_external_tax_action_as_bool
null
null
null
null
null
null
null
pub struct CardTokenized;
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
struct_definition
6
rust
CardTokenized
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/payments/{payment_id}/confirm" { "post": { "tags": [ "Payments" ], "summary": "Payments - Confirm", "description": "Confirms a payment intent that was previously created with `confirm: false`. This action attempts to authorize the payment with the payment processor.\n...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
605
.json
null
null
null
null
null
openapi_spec
paths
[ "/payments/{payment_id}/confirm" ]
null
null
null
null
pub fn from_storage(attempt: &'a PaymentAttempt) -> Self { let card_payment_method_data = attempt .get_payment_method_data() .and_then(|data| data.get_additional_card_info()); Self { payment_id: &attempt.payment_id, merchant_id: &attempt.merchant_id, ...
crates/router/src/services/kafka/payment_attempt_event.rs
router
function_signature
706
rust
null
null
null
null
from_storage
null
null
null
null
null
null
null
pub struct PaymentMethodFilters(pub HashMap<PaymentMethodFilterKey, CurrencyCountryFlowFilter>);
crates/kgraph_utils/src/types.rs
kgraph_utils
struct_definition
19
rust
PaymentMethodFilters
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/user_key_store.rs Public structs: 2 use common_utils::encryption::Encryption; use diesel::{Identifiable, Insertable, Queryable, Selectable}; use time::PrimitiveDateTime; use crate::schema::user_key_store; #[derive( Clone, Debug, serde::Serialize, serde::Deserialize, Identifiable, ...
crates/diesel_models/src/user_key_store.rs
diesel_models
full_file
191
null
null
null
null
null
null
null
null
null
null
null
null
null
/// get_merchant_fingerprint_secret_key pub fn get_merchant_fingerprint_secret_key(&self) -> String { format!("fingerprint_secret_{}", self.get_string_repr()) }
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
40
rust
null
null
null
null
get_merchant_fingerprint_secret_key
null
null
null
null
null
null
null
impl DummyConnectorNextAction { fn get_url(&self) -> Option<Url> { match self { Self::RedirectToUrl(redirect_to_url) => Some(redirect_to_url.to_owned()), } } }
crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs
hyperswitch_connectors
impl_block
48
rust
null
DummyConnectorNextAction
null
impl DummyConnectorNextAction
null
null
null
null
null
null
null
null
File: crates/api_models/src/webhook_events.rs Public functions: 1 Public structs: 9 use std::collections::HashSet; use common_enums::{EventClass, EventType, WebhookDeliveryAttempt}; use masking::Secret; use serde::{Deserialize, Serialize}; use time::PrimitiveDateTime; use utoipa::ToSchema; /// The constraints to a...
crates/api_models/src/webhook_events.rs
api_models
full_file
1,973
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Paytm {}
crates/hyperswitch_connectors/src/connectors/paytm.rs
hyperswitch_connectors
impl_block
10
rust
null
Paytm
api::RefundSync for
impl api::RefundSync for for Paytm
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/accounts/{account_id}/kv" { "post": { "tags": [ "Merchant Account" ], "summary": "Merchant Account - KV Status", "description": "Toggle KV mode for the Merchant Account", "operationId": "Enable/Disable KV for a Merchant Account", "parameters": [ { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
361
.json
null
null
null
null
null
openapi_spec
paths
[ "/accounts/{account_id}/kv" ]
null
null
null
null
pub struct UserMerchantAccountResponse { pub merchant_id: id_type::MerchantId, pub merchant_name: OptionalEncryptableName, pub product_type: Option<common_enums::MerchantProductType>, pub merchant_account_type: common_enums::MerchantAccountType, pub version: common_enums::ApiVersion, }
crates/api_models/src/user.rs
api_models
struct_definition
69
rust
UserMerchantAccountResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/domain/payments.rs pub use hyperswitch_domain_models::payment_method_data::{ AliPayQr, ApplePayFlow, ApplePayThirdPartySdkData, ApplePayWalletData, ApplepayPaymentMethod, BankDebitData, BankRedirectData, BankTransferData, BoletoVoucherData, Card, CardDetail, CardRedirectData, ...
crates/router/src/types/domain/payments.rs
router
full_file
311
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Thunes {}
crates/hyperswitch_connectors/src/connectors/thunes.rs
hyperswitch_connectors
impl_block
9
rust
null
Thunes
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Thunes
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.NumberComparison { "type": "object", "description": "Represents a number comparison for \"NumberComparisonArrayValue\"", "required": [ "comparisonType", "number" ], "properties": { "comparisonType": { "$ref": "#/components/schemas/ComparisonType" },...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
101
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "NumberComparison" ]
null
null
null
null
pub async fn get_payment_intent_payment_attempt( state: &SessionState, payment_id: &api::PaymentIdType, merchant_id: &common_utils::id_type::MerchantId, key_store: &domain::MerchantKeyStore, storage_scheme: enums::MerchantStorageScheme, ) -> RouterResult<(storage::PaymentIntent, storage::PaymentAtte...
crates/router/src/core/payments/operations/payment_status.rs
router
function_signature
600
rust
null
null
null
null
get_payment_intent_payment_attempt
null
null
null
null
null
null
null
impl ConnectorCommon for Airwallex { fn id(&self) -> &'static str { "airwallex" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors...
crates/hyperswitch_connectors/src/connectors/airwallex.rs
hyperswitch_connectors
impl_block
305
rust
null
Airwallex
ConnectorCommon for
impl ConnectorCommon for for Airwallex
null
null
null
null
null
null
null
null
pub struct TransientBatchDecryptDataRequest { pub identifier: Identifier, pub data: FxHashMap<String, StrongSecret<Vec<u8>>>, }
crates/common_utils/src/types/keymanager.rs
common_utils
struct_definition
32
rust
TransientBatchDecryptDataRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Bamboraapac {}
crates/hyperswitch_connectors/src/connectors/bamboraapac.rs
hyperswitch_connectors
impl_block
14
rust
null
Bamboraapac
api::MandateSetup for
impl api::MandateSetup for for Bamboraapac
null
null
null
null
null
null
null
null
pub struct MerchantAction { pub redirect_data: RedirectData, }
crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
MerchantAction
null
null
null
null
null
null
null
null
null
null
null
pub struct TaxjarPaymentsRequest { to_country: enums::CountryAlpha2, to_zip: Secret<String>, to_state: Secret<String>, to_city: Option<String>, to_street: Option<Secret<String>>, amount: FloatMajorUnit, shipping: FloatMajorUnit, line_items: Vec<LineItem>, }
crates/hyperswitch_connectors/src/connectors/taxjar/transformers.rs
hyperswitch_connectors
struct_definition
71
rust
TaxjarPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
impl Organization { pub fn server(state: AppState) -> Scope { web::scope("/organization") .app_data(web::Data::new(state)) .service(web::resource("").route(web::post().to(admin::organization_create))) .service( web::resource("/{id}") .r...
crates/router/src/routes/app.rs
router
impl_block
93
rust
null
Organization
null
impl Organization
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/address.rs Public functions: 3 Public structs: 3 use masking::{PeekInterface, Secret}; #[derive(Default, Clone, Debug, Eq, PartialEq, serde::Deserialize, serde::Serialize)] pub struct Address { pub address: Option<AddressDetails>, pub phone: Option<PhoneDetails>, ...
crates/hyperswitch_domain_models/src/address.rs
hyperswitch_domain_models
full_file
1,267
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Braintree { fn id(&self) -> &'static str { "braintree" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.braintree.base_url.as_ref() } f...
crates/hyperswitch_connectors/src/connectors/braintree.rs
hyperswitch_connectors
impl_block
740
rust
null
Braintree
ConnectorCommon for
impl ConnectorCommon for for Braintree
null
null
null
null
null
null
null
null
File: crates/drainer/src/health_check.rs Public functions: 4 Public structs: 2 use std::{collections::HashMap, sync::Arc}; use actix_web::{web, Scope}; use async_bb8_diesel::{AsyncConnection, AsyncRunQueryDsl}; use common_utils::{errors::CustomResult, id_type}; use diesel_models::{Config, ConfigNew}; use error_stac...
crates/drainer/src/health_check.rs
drainer
full_file
2,025
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Custombilling { //TODO: implement functions when support enabled }
crates/hyperswitch_connectors/src/connectors/custombilling.rs
hyperswitch_connectors
impl_block
18
rust
null
Custombilling
ConnectorValidation for
impl ConnectorValidation for for Custombilling
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Klarna {}
crates/hyperswitch_connectors/src/connectors/klarna.rs
hyperswitch_connectors
impl_block
9
rust
null
Klarna
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Klarna
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Placetopay { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&PLACETOPAY_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*PLACETOPAY_SUPPORTED_PAYMENT_METHODS) } fn...
crates/hyperswitch_connectors/src/connectors/placetopay.rs
hyperswitch_connectors
impl_block
116
rust
null
Placetopay
ConnectorSpecifications for
impl ConnectorSpecifications for for Placetopay
null
null
null
null
null
null
null
null
pub struct RefundResponse { id: String, success: bool, child_transactions: Vec<ChildTransactionsInResponse>, }
crates/hyperswitch_connectors/src/connectors/stax/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ItemDetails { name: String, quantity: u16, unit_amount: OrderAmount, tax: Option<OrderAmount>, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
ItemDetails
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/locker-api-reference/cards/retrieve-data-from-locker.mdx # Type: Doc File --- openapi: rust_locker_open_api_spec post /data/retrieve ---
api-reference/locker-api-reference/cards/retrieve-data-from-locker.mdx
null
doc_file
41
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_elimination_routing( state: web::Data<AppState>, req: HttpRequest, query: web::Query<api_models::routing::CreateDynamicRoutingQuery>, path: web::Path<routing_types::ToggleDynamicRoutingPath>, elimination_config: web::Json<routing_types::EliminationRoutingConfig>, ) -> impl Respon...
crates/router/src/routes/routing.rs
router
function_signature
366
rust
null
null
null
null
create_elimination_routing
null
null
null
null
null
null
null
impl ConnectorCommon for Prophetpay { fn id(&self) -> &'static str { "prophetpay" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connecto...
crates/hyperswitch_connectors/src/connectors/prophetpay.rs
hyperswitch_connectors
impl_block
432
rust
null
Prophetpay
ConnectorCommon for
impl ConnectorCommon for for Prophetpay
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/coingate.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct AdyenTransferRequest { amount: adyen::Amount, balance_account_id: Secret<String>, category: AdyenPayoutMethod, counterparty: AdyenPayoutMethodDetails, priority: Option<AdyenPayoutPriority>, reference: String, reference_for_beneficiary: String, description: Option<String>, }
crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs
hyperswitch_connectors
struct_definition
75
rust
AdyenTransferRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_success_based_routing( state: web::Data<AppState>, req: HttpRequest, query: web::Query<api_models::routing::CreateDynamicRoutingQuery>, path: web::Path<routing_types::ToggleDynamicRoutingPath>, success_based_config: web::Json<routing_types::SuccessBasedRoutingConfig>, ) -> impl R...
crates/router/src/routes/routing.rs
router
function_signature
369
rust
null
null
null
null
create_success_based_routing
null
null
null
null
null
null
null
pub async fn get_refund_filter_for_dimension<T>( dimension: RefundDimensions, auth: &AuthInfo, time_range: &TimeRange, pool: &T, ) -> FiltersResult<Vec<RefundFilterRow>> where T: AnalyticsDataSource + RefundFilterAnalytics, PrimitiveDateTime: ToSql<T>, AnalyticsCollection: ToSql<T>, Gran...
crates/analytics/src/refunds/filters.rs
analytics
function_signature
241
rust
null
null
null
null
get_refund_filter_for_dimension
null
null
null
null
null
null
null
impl Drop for SecretBytesMut { fn drop(&mut self) { self.0.resize(self.0.capacity(), 0); self.0.as_mut().zeroize(); debug_assert!(self.0.as_ref().iter().all(|b| *b == 0)); } }
crates/masking/src/bytes.rs
masking
impl_block
63
rust
null
SecretBytesMut
Drop for
impl Drop for for SecretBytesMut
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.BankTransferInstructions { "oneOf": [ { "type": "object", "required": [ "doku_bank_transfer_instructions" ], "properties": { "doku_bank_transfer_instructions": { "$ref": "#/components/schemas/DokuBankTransferInstructions" ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
306
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "BankTransferInstructions" ]
null
null
null
null
OpenAPI Block Path: components.schemas.OpenRouterDecideGatewayRequest { "type": "object", "required": [ "paymentInfo", "merchantId" ], "properties": { "paymentInfo": { "$ref": "#/components/schemas/PaymentInfo" }, "merchantId": { "type": "string" }, "eligibleGatewayList":...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
181
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "OpenRouterDecideGatewayRequest" ]
null
null
null
null