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.CustomerDeleteResponse { "type": "object", "required": [ "customer_id", "customer_deleted", "address_deleted", "payment_methods_deleted" ], "properties": { "customer_id": { "type": "string", "description": "The identifier for the customer ob...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
218
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CustomerDeleteResponse" ]
null
null
null
null
pub struct BancontactBankRedirectAdditionalData { /// Last 4 digits of the card number #[schema(value_type = Option<String>, example = "4242")] pub last4: Option<String>, /// The card's expiry month #[schema(value_type = Option<String>, example = "12")] pub card_exp_month: Option<Secret<String>...
crates/api_models/src/payments/additional_info.rs
api_models
struct_definition
151
rust
BancontactBankRedirectAdditionalData
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Fiservemea {}
crates/hyperswitch_connectors/src/connectors/fiservemea.rs
hyperswitch_connectors
impl_block
11
rust
null
Fiservemea
api::Payment for
impl api::Payment for for Fiservemea
null
null
null
null
null
null
null
null
/// Panics if `json_payload` array does not contain one `GetPaymentMetricRequest` element. pub async fn get_merchant_payment_metrics( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<[GetPaymentMetricRequest; 1]>, ) -> impl Responder { // safety: T...
crates/router/src/analytics.rs
router
function_signature
353
rust
null
null
null
null
get_merchant_payment_metrics
null
null
null
null
null
null
null
impl ConnectorValidation for Digitalvirgo { fn validate_psync_reference_id( &self, _data: &PaymentsSyncData, _is_three_ds: bool, _status: enums::AttemptStatus, _connector_meta_data: Option<common_utils::pii::SecretSerdeValue>, ) -> CustomResult<(), errors::ConnectorError>...
crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs
hyperswitch_connectors
impl_block
101
rust
null
Digitalvirgo
ConnectorValidation for
impl ConnectorValidation for for Digitalvirgo
null
null
null
null
null
null
null
null
pub struct InespayPSyncResponseData { cod_status: InespayPSyncStatus, status_desc: String, single_payin_id: String, single_payin_link: String, }
crates/hyperswitch_connectors/src/connectors/inespay/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
InespayPSyncResponseData
null
null
null
null
null
null
null
null
null
null
null
pub struct Inespay { amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/inespay.rs
hyperswitch_connectors
struct_definition
28
rust
Inespay
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/secrets_interface/secret_handler.rs //! Module containing trait for raw secret retrieval use common_utils::errors::CustomResult; use crate::secrets_interface::{ secret_state::{RawSecret, SecretStateContainer, SecuredSecret}, SecretManagementInterface, SecretsManagement...
crates/hyperswitch_interfaces/src/secrets_interface/secret_handler.rs
hyperswitch_interfaces
full_file
178
null
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/payouts/payouts--list.mdx # Type: Doc File --- openapi: get /payouts/list ---
api-reference/v1/payouts/payouts--list.mdx
null
doc_file
35
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn mk_delete_card_request_hs( jwekey: &settings::Jwekey, locker: &settings::Locker, customer_id: &id_type::CustomerId, merchant_id: &id_type::MerchantId, card_reference: &str, tenant_id: id_type::TenantId, request_id: Option<RequestId>, ) -> CustomResult<services::Request, errors::...
crates/router/src/core/payment_methods/transformers.rs
router
function_signature
401
rust
null
null
null
null
mk_delete_card_request_hs
null
null
null
null
null
null
null
pub struct ClientSecretResponse { /// Client Secret id #[schema(value_type = String, max_length = 32, min_length = 1)] pub id: id_type::ClientSecretId, /// resource_id to which this client secret belongs to #[schema(value_type = ResourceId)] pub resource_id: ResourceId, /// time at which thi...
crates/api_models/src/ephemeral_key.rs
api_models
struct_definition
135
rust
ClientSecretResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct BankAccountDetailsAch { pub account_number: Secret<String>, pub routing_number: Secret<String>, }
crates/pm_auth/src/types.rs
pm_auth
struct_definition
25
rust
BankAccountDetailsAch
null
null
null
null
null
null
null
null
null
null
null
impl FxExchangeRatesCacheEntry { fn new(exchange_rate: ExchangeRates) -> Self { Self { data: Arc::new(exchange_rate), timestamp: date_time::now_unix_timestamp(), } } fn is_expired(&self, data_expiration_delay: u32) -> bool { self.timestamp + i64::from(data_exp...
crates/router/src/utils/currency.rs
router
impl_block
92
rust
null
FxExchangeRatesCacheEntry
null
impl FxExchangeRatesCacheEntry
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/placetopay.rs
hyperswitch_connectors
function_signature
27
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct AmazonpayRefundRequest { pub refund_amount: ChargeAmount, pub charge_id: String, }
crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
AmazonpayRefundRequest
null
null
null
null
null
null
null
null
null
null
null
/// This struct represents the decrypted Google Pay payment data pub struct GPayPredecryptData { /// The card's expiry month #[schema(value_type = String)] pub card_exp_month: Secret<String>, /// The card's expiry year #[schema(value_type = String)] pub card_exp_year: Secret<String>, /// T...
crates/common_types/src/payments.rs
common_types
struct_definition
202
rust
GPayPredecryptData
null
null
null
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/dispute.rs Public functions: 5 use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, Table}; use super::generics; use crate::{ dispute::{Dispute, DisputeNew, DisputeUpdate, DisputeUpdateInternal}, errors, schema::dispute::dsl, PgPooledConn...
crates/diesel_models/src/query/dispute.rs
diesel_models
full_file
678
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/configs/validations.rs Public functions: 19 use common_utils::ext_traits::ConfigExt; use masking::PeekInterface; use storage_impl::errors::ApplicationError; impl super::settings::Secrets { pub fn validate(&self) -> Result<(), ApplicationError> { use common_utils::fp_utils::when; ...
crates/router/src/configs/validations.rs
router
full_file
2,324
null
null
null
null
null
null
null
null
null
null
null
null
null
impl<T: DatabaseStore> PayoutsInterface for RouterStore<T> {}
crates/storage_impl/src/lib.rs
storage_impl
impl_block
16
rust
null
RouterStore
PayoutsInterface for
impl PayoutsInterface for for RouterStore
null
null
null
null
null
null
null
null
pub async fn payment_intents_cancel( state: web::Data<routes::AppState>, qs_config: web::Data<serde_qs::Config>, req: HttpRequest, form_payload: web::Bytes, path: web::Path<common_utils::id_type::PaymentId>, ) -> HttpResponse { let payment_id = path.into_inner(); let stripe_payload: types::S...
crates/router/src/compatibility/stripe/payment_intents.rs
router
function_signature
519
rust
null
null
null
null
payment_intents_cancel
null
null
null
null
null
null
null
pub struct FraudCheckNew { pub frm_id: String, pub payment_id: common_utils::id_type::PaymentId, pub merchant_id: common_utils::id_type::MerchantId, pub attempt_id: String, pub created_at: PrimitiveDateTime, pub frm_name: String, pub frm_transaction_id: Option<String>, pub frm_transactio...
crates/diesel_models/src/fraud_check.rs
diesel_models
struct_definition
178
rust
FraudCheckNew
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/billwerk.rs
hyperswitch_connectors
function_signature
27
rust
null
null
null
null
new
null
null
null
null
null
null
null
impl ContractBasedRoutingConfig { pub fn update(&mut self, new: Self) { if let Some(new_config) = new.config { self.config.as_mut().map(|config| config.update(new_config)); } if let Some(new_label_info) = new.label_info { new_label_info.iter().for_each(|new_label_info...
crates/api_models/src/routing.rs
api_models
impl_block
199
rust
null
ContractBasedRoutingConfig
null
impl ContractBasedRoutingConfig
null
null
null
null
null
null
null
null
impl ConnectorValidation for Checkbook {}
crates/hyperswitch_connectors/src/connectors/checkbook.rs
hyperswitch_connectors
impl_block
7
rust
null
Checkbook
ConnectorValidation for
impl ConnectorValidation for for Checkbook
null
null
null
null
null
null
null
null
impl api::RefundExecute for Paybox {}
crates/hyperswitch_connectors/src/connectors/paybox.rs
hyperswitch_connectors
impl_block
10
rust
null
Paybox
api::RefundExecute for
impl api::RefundExecute for for Paybox
null
null
null
null
null
null
null
null
impl ConnectorCommon for Moneris { fn id(&self) -> &'static str { "moneris" } 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/moneris.rs
hyperswitch_connectors
impl_block
453
rust
null
Moneris
ConnectorCommon for
impl ConnectorCommon for for Moneris
null
null
null
null
null
null
null
null
pub struct AcquirerDetails { /// The bin of the card. #[schema(value_type = Option<String>, example = "123456")] pub acquirer_bin: Option<String>, /// The merchant id of the card. #[schema(value_type = Option<String>, example = "merchant_abc")] pub acquirer_merchant_id: Option<String>, /// T...
crates/api_models/src/authentication.rs
api_models
struct_definition
117
rust
AcquirerDetails
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_delete_tokenize_schedule_time( db: &dyn db::StorageInterface, pm: enums::PaymentMethod, retry_count: i32, ) -> Option<time::PrimitiveDateTime> { let redis_mapping = db::get_and_deserialize_key( db, &format!("pt_mapping_delete_{pm}_tokenize_data"), "PaymentMethods...
crates/router/src/core/payment_methods/vault.rs
router
function_signature
173
rust
null
null
null
null
get_delete_tokenize_schedule_time
null
null
null
null
null
null
null
pub async fn routing_retrieve_default_config() {}
crates/openapi/src/routes/profile.rs
openapi
function_signature
10
rust
null
null
null
null
routing_retrieve_default_config
null
null
null
null
null
null
null
pub struct PayeezyErrorResponse { pub transaction_status: String, #[serde(rename = "Error")] pub error: PayeezyError, }
crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
PayeezyErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Boku {}
crates/hyperswitch_connectors/src/connectors/boku.rs
hyperswitch_connectors
impl_block
9
rust
null
Boku
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Boku
null
null
null
null
null
null
null
null
File: crates/router/src/env.rs #[doc(inline)] pub use router_env::*;
crates/router/src/env.rs
router
full_file
18
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PazePaymentProcessingDetails { pub paze_private_key: Secret<String>, pub paze_private_key_passphrase: Secret<String>, }
crates/router/src/core/payments.rs
router
struct_definition
31
rust
PazePaymentProcessingDetails
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Fiserv { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&FISERV_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*FISERV_SUPPORTED_PAYMENT_METHODS) } fn get_support...
crates/hyperswitch_connectors/src/connectors/fiserv.rs
hyperswitch_connectors
impl_block
109
rust
null
Fiserv
ConnectorSpecifications for
impl ConnectorSpecifications for for Fiserv
null
null
null
null
null
null
null
null
pub struct PaymentsMandateReferenceRecord { pub connector_mandate_id: String, pub payment_method_type: Option<common_enums::PaymentMethodType>, pub original_payment_authorized_amount: Option<i64>, pub original_payment_authorized_currency: Option<common_enums::Currency>, pub mandate_metadata: Option<...
crates/diesel_models/src/payment_method.rs
diesel_models
struct_definition
112
rust
PaymentsMandateReferenceRecord
null
null
null
null
null
null
null
null
null
null
null
pub struct BokuRouterData<T> { pub amount: MinorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/boku/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
BokuRouterData
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Mifinity {}
crates/hyperswitch_connectors/src/connectors/mifinity.rs
hyperswitch_connectors
impl_block
10
rust
null
Mifinity
api::PaymentToken for
impl api::PaymentToken for for Mifinity
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Forte {}
crates/hyperswitch_connectors/src/connectors/forte.rs
hyperswitch_connectors
impl_block
9
rust
null
Forte
api::PaymentCapture for
impl api::PaymentCapture for for Forte
null
null
null
null
null
null
null
null
impl PayoutsInterface for MockDb {}
crates/storage_impl/src/mock_db.rs
storage_impl
impl_block
9
rust
null
MockDb
PayoutsInterface for
impl PayoutsInterface for for MockDb
null
null
null
null
null
null
null
null
pub struct PlaidBacs { account: Secret<String>, sort_code: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
PlaidBacs
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/powertranz.rs Public structs: 1 pub mod transformers; use std::{fmt::Debug, sync::LazyLock}; use api_models::enums::AuthenticationType; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::{BytesExt, ValueExt}, request::{Method...
crates/hyperswitch_connectors/src/connectors/powertranz.rs
hyperswitch_connectors
full_file
5,261
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ApiError { pub sub_code: &'static str, pub error_identifier: u16, pub error_message: String, pub extra: Option<Extra>, #[cfg(feature = "detailed_errors")] pub stacktrace: Option<serde_json::Value>, }
crates/api_models/src/errors/types.rs
api_models
struct_definition
61
rust
ApiError
null
null
null
null
null
null
null
null
null
null
null
pub struct PoFulfill;
crates/hyperswitch_domain_models/src/router_flow_types/payouts.rs
hyperswitch_domain_models
struct_definition
6
rust
PoFulfill
null
null
null
null
null
null
null
null
null
null
null
pub async fn call_decide_gateway_open_router( state: web::Data<AppState>, req: HttpRequest, payload: web::Json<api_models::open_router::OpenRouterDecideGatewayRequest>, ) -> impl Responder { let flow = Flow::DecisionEngineDecideGatewayCall; Box::pin(oss_api::server_wrap( flow, state,...
crates/router/src/routes/routing.rs
router
function_signature
152
rust
null
null
null
null
call_decide_gateway_open_router
null
null
null
null
null
null
null
pub struct MandatePaymentInformation { payment_instrument: BankOfAmericaPaymentInstrument, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
MandatePaymentInformation
null
null
null
null
null
null
null
null
null
null
null
impl NetworkTokenRequestorData { pub fn is_update_required( &self, data_stored_in_vault: api::payment_methods::CardDetailFromLocker, ) -> bool { //if the expiry year and month in the vault are not the same as the ones in the requestor data, //then we need to update the vault data...
crates/router/src/types/payment_methods.rs
router
impl_block
130
rust
null
NetworkTokenRequestorData
null
impl NetworkTokenRequestorData
null
null
null
null
null
null
null
null
pub struct PaymentIntentFilterValue { pub dimension: PaymentIntentDimensions, pub values: Vec<String>, }
crates/api_models/src/analytics.rs
api_models
struct_definition
23
rust
PaymentIntentFilterValue
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Mpgs {}
crates/hyperswitch_connectors/src/connectors/mpgs.rs
hyperswitch_connectors
impl_block
12
rust
null
Mpgs
api::MandateSetup for
impl api::MandateSetup for for Mpgs
null
null
null
null
null
null
null
null
pub struct FiuuWebhookResourceId { pub skey: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
FiuuWebhookResourceId
null
null
null
null
null
null
null
null
null
null
null
pub struct RefundResponse { id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/flexiti/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs Public functions: 2 Public structs: 24 use cards; use common_enums::enums; use common_utils::types::FloatMajorUnit; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, ErrorRespon...
crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs
hyperswitch_connectors
full_file
4,604
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert_user_scoped_metadata_to_db( state: &SessionState, user_id: String, merchant_id: id_type::MerchantId, org_id: id_type::OrganizationId, metadata_key: DBEnum, metadata_value: impl serde::Serialize, ) -> UserResult<DashboardMetadata> { let now = common_utils::date_time::now()...
crates/router/src/utils/user/dashboard_metadata.rs
router
function_signature
252
rust
null
null
null
null
insert_user_scoped_metadata_to_db
null
null
null
null
null
null
null
impl MerchantAccountUpdate { pub fn get_primary_details_as_value( &self, ) -> CustomResult<Option<serde_json::Value>, errors::ParsingError> { self.primary_business_details .as_ref() .map(|primary_business_details| primary_business_details.encode_to_value()) .t...
crates/api_models/src/admin.rs
api_models
impl_block
452
rust
null
MerchantAccountUpdate
null
impl MerchantAccountUpdate
null
null
null
null
null
null
null
null
pub struct FacilitapayRouterData<T> { pub amount: StringMajorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/facilitapay/requests.rs
hyperswitch_connectors
struct_definition
27
rust
FacilitapayRouterData
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Mifinity { fn id(&self) -> &'static str { "mifinity" } 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/mifinity.rs
hyperswitch_connectors
impl_block
683
rust
null
Mifinity
ConnectorCommon for
impl ConnectorCommon for for Mifinity
null
null
null
null
null
null
null
null
pub struct RefundResponse { id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/katapult/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn update( self, conn: &PgPooledConn, connector_response: ConnectorResponseUpdate, ) -> StorageResult<Self> { let payment_attempt_update = match connector_response.clone() { ConnectorResponseUpdate::ResponseUpdate { connector_transaction_id, ...
crates/diesel_models/src/query/connector_response.rs
diesel_models
function_signature
472
rust
null
null
null
null
update
null
null
null
null
null
null
null
impl GatewayStatusMap { pub async fn find( conn: &PgPooledConn, connector: String, flow: String, sub_flow: String, code: String, message: String, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, ...
crates/diesel_models/src/query/gsm.rs
diesel_models
impl_block
554
rust
null
GatewayStatusMap
null
impl GatewayStatusMap
null
null
null
null
null
null
null
null
pub struct AirwallexErrorResponse { pub code: String, pub message: String, pub source: Option<String>, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
AirwallexErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Authorizedotnet {}
crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs
hyperswitch_connectors
impl_block
10
rust
null
Authorizedotnet
api::PaymentCapture for
impl api::PaymentCapture for for Authorizedotnet
null
null
null
null
null
null
null
null
impl PartialEq for ActivePaymentsMetricsBucketIdentifier { fn eq(&self, other: &Self) -> bool { let mut left = DefaultHasher::new(); self.hash(&mut left); let mut right = DefaultHasher::new(); other.hash(&mut right); left.finish() == right.finish() } }
crates/api_models/src/analytics/active_payments.rs
api_models
impl_block
70
rust
null
ActivePaymentsMetricsBucketIdentifier
PartialEq for
impl PartialEq for for ActivePaymentsMetricsBucketIdentifier
null
null
null
null
null
null
null
null
pub struct ThreeDSDecisionRule { /// The decided 3DS action based on the rules pub decision: ThreeDSDecision, }
crates/common_types/src/three_ds_decision_rule_engine.rs
common_types
struct_definition
29
rust
ThreeDSDecisionRule
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/services/email/types.rs Public functions: 9 Public structs: 11 use api_models::user::dashboard_metadata::ProdIntent; use common_enums::{EntityType, MerchantProductType}; use common_utils::{errors::CustomResult, pii, types::user::EmailThemeConfig}; use error_stack::ResultExt; use external_serv...
crates/router/src/services/email/types.rs
router
full_file
4,479
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::CacheInvalidate; let key = key.into_inner().to_owned(); api::server_wrap( flow, state, &req, &key, |state, _, key, _| cache::invalidate(state, key), &auth::AdminApiAuth, api_locking::LockAction::NotApplicable, ) ...
crates/router/src/routes/cache.rs
router
impl_block
87
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
Documentation: crates/hsdev/README.md # Type: Doc File # HSDEV `hsdev` is a simple diesel Postgres migration tool. It is designed to simply running a Postgres database migration with diesel. ## Installing hsdev `hsdev` can be installed using `cargo` ```shell cargo install --force --path crates/hsdev ``` ## Using hs...
crates/hsdev/README.md
null
doc_file
176
doc
null
null
null
null
null
null
null
null
null
null
null
null
} } /// Reopen calculate workflow when payment fails pub async fn reopen_calculate_workflow_on_payment_failure( state: &SessionState, process: &storage::ProcessTracker, profile: &domain::Profile, merchant_context: domain::MerchantContext, payment_intent: &PaymentIntent, revenue_recovery_pay...
crates/router/src/core/revenue_recovery/types.rs#chunk1
router
chunk
2,728
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Helcim {}
crates/hyperswitch_connectors/src/connectors/helcim.rs
hyperswitch_connectors
impl_block
10
rust
null
Helcim
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Helcim
null
null
null
null
null
null
null
null
pub trait SessionStateInfo { fn conf(&self) -> settings::Settings<RawSecret>; fn store(&self) -> Box<dyn StorageInterface>; fn event_handler(&self) -> EventsHandler; fn get_request_id(&self) -> Option<String>; fn add_request_id(&mut self, request_id: RequestId); #[cfg(feature = "partial-auth")] ...
crates/router/src/routes/app.rs
router
trait_definition
126
rust
null
null
SessionStateInfo
null
null
null
null
null
null
null
null
null
impl PaymentMethodListContext { pub(crate) fn get_token_data(&self) -> Option<PaymentTokenData> { match self { Self::Card { token_data, .. } | Self::Bank { token_data } | Self::BankTransfer { token_data, .. } | Self::TemporaryToken { token_data } => token_data...
crates/router/src/types/storage/payment_method.rs
router
impl_block
80
rust
null
PaymentMethodListContext
null
impl PaymentMethodListContext
null
null
null
null
null
null
null
null
pub struct WiseAuthType { pub(super) api_key: Secret<String>, #[allow(dead_code)] pub(super) profile_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/wise/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
WiseAuthType
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/domain/event.rs Public structs: 1 use common_utils::{ crypto::{Encryptable, OptionalEncryptableSecretString}, encryption::Encryption, type_name, types::keymanager::{KeyManagerState, ToEncryptable}, }; use diesel_models::{ enums::{EventClass, EventObjectType, EventType...
crates/router/src/types/domain/event.rs
router
full_file
1,588
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ErrorDetail { field: String, message: String, }
crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
ErrorDetail
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: paths."/blocklist/toggle" { "post": { "tags": [ "Blocklist" ], "operationId": "Toggle blocklist guard for a particular merchant", "parameters": [ { "name": "status", "in": "query", "description": "Boolean value to enable/disable blocklist", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
205
.json
null
null
null
null
null
openapi_spec
paths
[ "/blocklist/toggle" ]
null
null
null
null
File: crates/analytics/src/payments/metrics/sessionized_metrics/success_rate.rs use std::collections::HashSet; use api_models::analytics::{ payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use error_stack::Resu...
crates/analytics/src/payments/metrics/sessionized_metrics/success_rate.rs
analytics
full_file
955
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Get the expiry date in MMYY format from the Apple Pay pre-decrypt data pub fn get_expiry_date_as_mmyy(&self) -> Result<Secret<String>, errors::ValidationError> { let year = self.get_two_digit_expiry_year()?.expose(); let month = self.get_expiry_month()?.expose(); Ok(Secret::new(format!("...
crates/common_types/src/payments.rs
common_types
function_signature
83
rust
null
null
null
null
get_expiry_date_as_mmyy
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Payme {}
crates/hyperswitch_connectors/src/connectors/payme.rs
hyperswitch_connectors
impl_block
9
rust
null
Payme
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Payme
null
null
null
null
null
null
null
null
impl Moneris { pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/moneris.rs
hyperswitch_connectors
impl_block
34
rust
null
Moneris
null
impl Moneris
null
null
null
null
null
null
null
null
pub struct ProcessorPaymentToken { pub processor_payment_token: String, #[schema(value_type = Option<String>)] pub merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>, }
crates/api_models/src/mandates.rs
api_models
struct_definition
43
rust
ProcessorPaymentToken
null
null
null
null
null
null
null
null
null
null
null
pub struct RoutableConnectorChoiceWithStatus { pub routable_connector_choice: RoutableConnectorChoice, pub status: bool, }
crates/api_models/src/routing.rs
api_models
struct_definition
28
rust
RoutableConnectorChoiceWithStatus
null
null
null
null
null
null
null
null
null
null
null
impl super::refunds::metrics::RefundMetricAnalytics for ClickhouseClient {}
crates/analytics/src/clickhouse.rs
analytics
impl_block
17
rust
null
ClickhouseClient
super::refunds::metrics::RefundMetricAnalytics for
impl super::refunds::metrics::RefundMetricAnalytics for for ClickhouseClient
null
null
null
null
null
null
null
null
impl api::RefundSync for Fiuu {}
crates/hyperswitch_connectors/src/connectors/fiuu.rs
hyperswitch_connectors
impl_block
11
rust
null
Fiuu
api::RefundSync for
impl api::RefundSync for for Fiuu
null
null
null
null
null
null
null
null
pub struct Http400RequestDetailsLoggerMiddleware<S> { service: std::rc::Rc<S>, }
crates/router/src/middleware.rs
router
struct_definition
25
rust
Http400RequestDetailsLoggerMiddleware
null
null
null
null
null
null
null
null
null
null
null
pub struct ContractBasedRoutingConfig { pub config: Option<ContractBasedRoutingConfigBody>, pub label_info: Option<Vec<LabelInformation>>, }
crates/api_models/src/routing.rs
api_models
struct_definition
31
rust
ContractBasedRoutingConfig
null
null
null
null
null
null
null
null
null
null
null
pub struct ThreedsecureioErrorResponse { pub error_code: String, pub error_component: Option<String>, pub error_description: Option<String>, pub error_detail: Option<String>, pub error_message_type: Option<String>, pub message_type: Option<String>, pub message_version: Option<String>, pu...
crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs
hyperswitch_connectors
struct_definition
77
rust
ThreedsecureioErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Phonepe {}
crates/hyperswitch_connectors/src/connectors/phonepe.rs
hyperswitch_connectors
impl_block
9
rust
null
Phonepe
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Phonepe
null
null
null
null
null
null
null
null
pub fn update_capture(&mut self, updated_capture: storage::Capture) { let capture_id = &updated_capture.capture_id; if self.all_captures.contains_key(capture_id) { self.all_captures .entry(capture_id.into()) .and_modify(|capture| *capture = updated_capture.clo...
crates/router/src/core/payments/types.rs
router
function_signature
74
rust
null
null
null
null
update_capture
null
null
null
null
null
null
null
Documentation: api-reference/v2/payments/payments--payment-methods-list.mdx # Type: Doc File --- openapi: get /v2/payments/{id}/payment-methods ---
api-reference/v2/payments/payments--payment-methods-list.mdx
null
doc_file
42
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_by_merchant_reference_id_profile_id( conn: &PgPooledConn, merchant_reference_id: &common_utils::id_type::PaymentReferenceId, profile_id: &common_utils::id_type::ProfileId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( ...
crates/diesel_models/src/query/payment_intent.rs
diesel_models
function_signature
120
rust
null
null
null
null
find_by_merchant_reference_id_profile_id
null
null
null
null
null
null
null
pub struct AuthEventFiltersResponse { pub query_data: Vec<AuthEventFilterValue>, }
crates/api_models/src/analytics.rs
api_models
struct_definition
20
rust
AuthEventFiltersResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ExternalThreeDSConnectorMetadata { pub pull_mechanism_for_external_3ds_enabled: Option<bool>, }
crates/hyperswitch_domain_models/src/router_request_types/authentication.rs
hyperswitch_domain_models
struct_definition
25
rust
ExternalThreeDSConnectorMetadata
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_all_themes_in_lineage( state: web::Data<AppState>, req: HttpRequest, query: web::Query<theme_api::EntityTypeQueryParam>, ) -> HttpResponse { let flow = Flow::ListAllThemesInLineage; let entity_type = query.into_inner().entity_type; Box::pin(api::server_wrap( flow, ...
crates/router/src/routes/user/theme.rs
router
function_signature
162
rust
null
null
null
null
list_all_themes_in_lineage
null
null
null
null
null
null
null
impl api::MandateSetup for Square {}
crates/hyperswitch_connectors/src/connectors/square.rs
hyperswitch_connectors
impl_block
10
rust
null
Square
api::MandateSetup for
impl api::MandateSetup for for Square
null
null
null
null
null
null
null
null
pub struct LoadTime;
crates/api_models/src/analytics/sdk_events.rs
api_models
struct_definition
5
rust
LoadTime
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorPostAuthentication for Threedsecureio {}
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
hyperswitch_connectors
impl_block
10
rust
null
Threedsecureio
ConnectorPostAuthentication for
impl ConnectorPostAuthentication for for Threedsecureio
null
null
null
null
null
null
null
null
pub struct StripebillingRecoveryDetailsData { #[serde(rename = "id")] pub charge_id: String, pub status: StripebillingChargeStatus, pub amount: common_utils::types::MinorUnit, #[serde(deserialize_with = "convert_uppercase")] pub currency: enums::Currency, pub customer: String, pub paymen...
crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
hyperswitch_connectors
struct_definition
150
rust
StripebillingRecoveryDetailsData
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Tokenio {}
crates/hyperswitch_connectors/src/connectors/tokenio.rs
hyperswitch_connectors
impl_block
11
rust
null
Tokenio
api::MandateSetup for
impl api::MandateSetup for for Tokenio
null
null
null
null
null
null
null
null
pub async fn deep_health_check_func( state: routes::SessionState, service: &str, ) -> errors::RouterResult<SchedulerHealthCheckResponse> { logger::info!("{} deep health check was called", service); logger::debug!("Database health check begin"); let db_status = state .health_check_db() ...
crates/router/src/bin/scheduler.rs
router
function_signature
331
rust
null
null
null
null
deep_health_check_func
null
null
null
null
null
null
null
pub fn generate_emv_string( payload_url: &str, merchant_name: &str, merchant_city: &str, amount: Option<&str>, txid: Option<&str>, ) -> String { let mut emv = String::new(); // 00: Payload Format Indicator emv += &format_emv_field("00", "01"); // 01: Point of Initiation Method (dyna...
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
function_signature
516
rust
null
null
null
null
generate_emv_string
null
null
null
null
null
null
null
}, card: PayoutCardDetails::try_from(&item.router_data.get_payout_method_data()?)?, billing_address: get_address_info(item.router_data.get_billing().ok()) .transpose()?, merchant_account, referenc...
crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs#chunk6
hyperswitch_connectors
chunk
4,121
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TokenResponse { data: TokenizeCreditCard, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
TokenResponse
null
null
null
null
null
null
null
null
null
null
null