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 fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, amount_converter_to_float_major_unit: &FloatMajorUnitForConnector, amount_converter_to_string_minor_unit: &StringMinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/trustpay.rs
hyperswitch_connectors
function_signature
58
rust
null
null
null
null
new
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SamsungPayMerchantPaymentInformation { "type": "object", "required": [ "name", "country_code" ], "properties": { "name": { "type": "string", "description": "Merchant name, this will be displayed on the Samsung Pay screen" }, "url": { "...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
137
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SamsungPayMerchantPaymentInformation" ]
null
null
null
null
impl api::PaymentVoid for Worldpay {}
crates/hyperswitch_connectors/src/connectors/worldpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Worldpay
api::PaymentVoid for
impl api::PaymentVoid for for Worldpay
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Phonepe { 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/phonepe.rs
hyperswitch_connectors
impl_block
210
rust
null
Phonepe
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Phonepe
null
null
null
null
null
null
null
null
pub struct Billwerk { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/billwerk.rs
hyperswitch_connectors
struct_definition
26
rust
Billwerk
null
null
null
null
null
null
null
null
null
null
null
pub fn new(value: FredRedisValue) -> Self { Self { inner: value } }
crates/redis_interface/src/types.rs
redis_interface
function_signature
21
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct FlexitiRefundRequest { pub amount: FloatMajorUnit, }
crates/hyperswitch_connectors/src/connectors/flexiti/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
FlexitiRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct VgsAliasItem { alias: String, format: String, }
crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
VgsAliasItem
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Redsys {}
crates/hyperswitch_connectors/src/connectors/redsys.rs
hyperswitch_connectors
impl_block
7
rust
null
Redsys
ConnectorValidation for
impl ConnectorValidation for for Redsys
null
null
null
null
null
null
null
null
pub struct NoonPaymentsResponseResult { order: NoonPaymentsOrderResponse, checkout_data: Option<NoonCheckoutData>, subscription: Option<NoonSubscriptionObject>, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
NoonPaymentsResponseResult
null
null
null
null
null
null
null
null
null
null
null
pub trait GlobalStorageInterface: Send + Sync + dyn_clone::DynClone + user::UserInterface + user_role::UserRoleInterface + user_key_store::UserKeyStoreInterface + role::RoleInterface + RedisConnInterface + 'static { fn get_cache_store(&self) -> Box<(dyn RedisConnInterface + Send ...
crates/router/src/db.rs
router
trait_definition
91
rust
null
null
GlobalStorageInterface
null
null
null
null
null
null
null
null
null
pub async fn payments_update( state: web::Data<app::AppState>, req: actix_web::HttpRequest, json_payload: web::Json<payment_types::PaymentsRequest>, path: web::Path<common_utils::id_type::PaymentId>, ) -> impl Responder { let flow = Flow::PaymentsUpdate; let mut payload = json_payload.into_inner...
crates/router/src/routes/payments.rs
router
function_signature
424
rust
null
null
null
null
payments_update
null
null
null
null
null
null
null
pub async fn check_if_profile_id_is_present_in_payment_intent( payment_id: PaymentId, state: &SessionState, auth_data: &AuthenticationData, ) -> CustomResult<(), errors::ApiErrorResponse> { let db = &*state.store; let payment_intent = db .find_payment_intent_by_payment_id_merchant_id( ...
crates/router/src/core/verification/utils.rs
router
function_signature
146
rust
null
null
null
null
check_if_profile_id_is_present_in_payment_intent
null
null
null
null
null
null
null
pub fn new(method: Method, url: &str) -> Self { Self { method, url: String::from(url), headers: std::collections::HashSet::new(), certificate: None, certificate_key: None, body: None, ca_certificate: None, } }
crates/common_utils/src/request.rs
common_utils
function_signature
66
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn get_dispute_evidence_block( state: &SessionState, merchant_context: &domain::MerchantContext, evidence_type: EvidenceType, file_id: String, ) -> CustomResult<api_models::disputes::DisputeEvidenceBlock, errors::ApiErrorResponse> { let file_metadata = state .store .find_fi...
crates/router/src/core/disputes/transformers.rs
router
function_signature
180
rust
null
null
null
null
get_dispute_evidence_block
null
null
null
null
null
null
null
pub struct HipayMaintenanceRequest { operation: Operation, currency: Option<enums::Currency>, amount: Option<StringMajorUnit>, }
crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
HipayMaintenanceRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct BankAccountConnectorDetails { pub connector: String, pub account_id: masking::Secret<String>, pub mca_id: id_type::MerchantConnectorAccountId, pub access_token: BankAccountAccessCreds, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
48
rust
BankAccountConnectorDetails
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Rapyd {}
crates/hyperswitch_connectors/src/connectors/rapyd.rs
hyperswitch_connectors
impl_block
10
rust
null
Rapyd
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Rapyd
null
null
null
null
null
null
null
null
File: crates/router_derive/src/macros/try_get_enum.rs Public functions: 1 Public structs: 1 use proc_macro2::Span; use quote::ToTokens; use syn::{parse::Parse, punctuated::Punctuated}; mod try_get_keyword { use syn::custom_keyword; custom_keyword!(error_type); } #[derive(Debug)] pub struct TryGetEnumMeta ...
crates/router_derive/src/macros/try_get_enum.rs
router_derive
full_file
886
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BankOfAmericaClientReferenceResponse { id: String, status: BankofamericaPaymentStatus, client_reference_information: ClientReferenceInformation, processor_information: Option<ClientProcessorInformation>, processing_information: Option<ProcessingInformationResponse>, payment_informatio...
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
157
rust
BankOfAmericaClientReferenceResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_by_merchant_id_payment_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, payment_id: &common_utils::id_type::PaymentId, ) -> StorageResult<Vec<Self>> { generics::generic_filter::<<Self as HasTable>::Table, _, _, _>( conn, ...
crates/diesel_models/src/query/authorization.rs
diesel_models
function_signature
131
rust
null
null
null
null
find_by_merchant_id_payment_id
null
null
null
null
null
null
null
impl api::PaymentSync for Tokenio {}
crates/hyperswitch_connectors/src/connectors/tokenio.rs
hyperswitch_connectors
impl_block
9
rust
null
Tokenio
api::PaymentSync for
impl api::PaymentSync for for Tokenio
null
null
null
null
null
null
null
null
### Miscellaneous Tasks - **CODEOWNERS:** Add hyperswitch-maintainers as default owners for all files ([#1210](https://github.com/juspay/hyperswitch/pull/1210)) ([`985670d`](https://github.com/juspay/hyperswitch/commit/985670da9c90cbc904162d7863c9c508f5cf5e19)) - **git-cliff:** Simplify `git-cliff` config files ([#121...
CHANGELOG.md#chunk61
null
doc_chunk
8,120
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct RoleInfo { role_id: String, role_name: String, groups: Vec<PermissionGroup>, scope: RoleScope, entity_type: EntityType, is_invitable: bool, is_deletable: bool, is_updatable: bool, is_internal: bool, }
crates/router/src/services/authorization/roles.rs
router
struct_definition
66
rust
RoleInfo
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Paypal { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&PAYPAL_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*PAYPAL_SUPPORTED_PAYMENT_METHODS) } fn get_support...
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
impl_block
104
rust
null
Paypal
ConnectorSpecifications for
impl ConnectorSpecifications for for Paypal
null
null
null
null
null
null
null
null
pub fn is_recovery_transaction_event(&self) -> bool { matches!( self, Self::RecoveryPaymentFailure | Self::RecoveryPaymentSuccess | Self::RecoveryPaymentPending ) }
crates/api_models/src/webhooks.rs
api_models
function_signature
48
rust
null
null
null
null
is_recovery_transaction_event
null
null
null
null
null
null
null
pub fn make_any_aggregator<M: Metadata>( &mut self, nodes: &[(NodeId, Relation, Strength)
crates/hyperswitch_constraint_graph/src/builder.rs
hyperswitch_constraint_graph
function_signature
26
rust
null
null
null
null
make_any_aggregator
null
null
null
null
null
null
null
.as_ref() .and_then(|extra_p| { extra_p.token.as_ref().map(|token| MandateReference { connector_mandate_id: Some(token.clone().expose()), payment_method_id: Non...
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs#chunk1
hyperswitch_connectors
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/customers.rs Public functions: 8 use common_utils::{ crypto::Encryptable, errors::ReportSwitchExt, ext_traits::AsyncExt, id_type, pii, type_name, types::{ keymanager::{Identifier, KeyManagerState, ToEncryptable}, Description, }, }; use error_stack::...
crates/router/src/core/customers.rs#chunk0
router
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/payment_intents/accumulator.rs Public functions: 1 Public structs: 8 use api_models::analytics::payment_intents::PaymentIntentMetricsBucketValue; use bigdecimal::ToPrimitive; use diesel_models::enums as storage_enums; use super::metrics::PaymentIntentMetricRow; #[derive(Debug, Default)] ...
crates/analytics/src/payment_intents/accumulator.rs
analytics
full_file
3,000
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.OpenBankingData { "oneOf": [ { "type": "object", "required": [ "open_banking_pis" ], "properties": { "open_banking_pis": { "type": "object" } } } ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
74
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "OpenBankingData" ]
null
null
null
null
pub struct MandateCard { type_selection_indicator: Option<String>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
MandateCard
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/signifyd/transformers.rs #[cfg(feature = "frm")] pub mod api; pub mod auth; #[cfg(feature = "frm")] pub use self::api::*; pub use self::auth::*;
crates/hyperswitch_connectors/src/connectors/signifyd/transformers.rs
hyperswitch_connectors
full_file
54
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn build(self) -> RecordMigrationStatus { RecordMigrationStatus { card_migrated: self.card_migrated, network_token_migrated: self.network_token_migrated, connector_mandate_details_migrated: self.connector_mandate_details_migrated, network_transaction_migrated:...
crates/payment_methods/src/core/migration.rs
payment_methods
function_signature
71
rust
null
null
null
null
build
null
null
null
null
null
null
null
File: crates/router/tests/connectors/hyperswitch_vault.rs use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct Hyper...
crates/router/tests/connectors/hyperswitch_vault.rs
router
full_file
2,952
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn fetch_producer_tasks( db: &dyn SchedulerInterface, conf: &SchedulerSettings, ) -> CustomResult<Vec<storage::ProcessTracker>, errors::ProcessTrackerError> { let upper = conf.producer.upper_fetch_limit; let lower = conf.producer.lower_fetch_limit; let now = common_utils::date_time::now();...
crates/scheduler/src/producer.rs
scheduler
function_signature
405
rust
null
null
null
null
fetch_producer_tasks
null
null
null
null
null
null
null
pub async fn start_process_tracker< T: SchedulerAppState + 'static, U: SchedulerSessionState + 'static, F, >( state: &T, scheduler_flow: SchedulerFlow, scheduler_settings: Arc<SchedulerSettings>, channel: (mpsc::Sender<()
crates/scheduler/src/scheduler.rs
scheduler
function_signature
62
rust
null
null
null
null
start_process_tracker
null
null
null
null
null
null
null
pub async fn get_data_from_hyperswitch_ai_workflow( state: SessionState, user_from_token: auth::UserFromToken, req: chat_api::ChatRequest, session_id: Option<&str>, ) -> CustomResult<ApplicationResponse<chat_api::ChatResponse>, ChatErrors> { let url = format!("{}/webhook", state.conf.chat.hyperswitc...
crates/router/src/core/chat.rs
router
function_signature
396
rust
null
null
null
null
get_data_from_hyperswitch_ai_workflow
null
null
null
null
null
null
null
/// The time range for which objects are needed. TimeRange has two fields start_time and end_time from which objects can be filtered as per required scenarios (created_at, time less than, greater than etc). #[serde(flatten)] pub time_range: Option<common_utils::types::TimeRange>, /// The list of connect...
crates/api_models/src/payments.rs#chunk8
api_models
chunk
8,189
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodBalance { pub amount: MinorUnit, pub currency: common_enums::enums::Currency, }
crates/hyperswitch_domain_models/src/router_data.rs
hyperswitch_domain_models
struct_definition
26
rust
PaymentMethodBalance
null
null
null
null
null
null
null
null
null
null
null
pub struct SwitchOrganizationRequest { pub org_id: id_type::OrganizationId, }
crates/api_models/src/user.rs
api_models
struct_definition
18
rust
SwitchOrganizationRequest
null
null
null
null
null
null
null
null
null
null
null
/// Create a new Instance of IntermediateString using a string pub fn new(inner: String) -> Self { Self(inner) }
crates/external_services/src/email.rs
external_services
function_signature
29
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn list_roles_with_info( state: web::Data<AppState>, req: HttpRequest, query: web::Query<role_api::ListRolesQueryParams>, ) -> HttpResponse { let flow = Flow::ListRolesV2; Box::pin(api::server_wrap( flow, state.clone(), &req, query.into_inner(), |st...
crates/router/src/routes/user_role.rs
router
function_signature
144
rust
null
null
null
null
list_roles_with_info
null
null
null
null
null
null
null
pub async fn perform_contract_based_routing<F, D>( state: &SessionState, routable_connectors: Vec<api_routing::RoutableConnectorChoice>, profile_id: &common_utils::id_type::ProfileId, merchant_id: &common_utils::id_type::MerchantId, payment_id: &common_utils::id_type::PaymentId, _dynamic_routing...
crates/router/src/core/payments/routing.rs
router
function_signature
1,633
rust
null
null
null
null
perform_contract_based_routing
null
null
null
null
null
null
null
pub fn reverse_string(s: &str) -> String { s.chars().rev().collect() }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
function_signature
21
rust
null
null
null
null
reverse_string
null
null
null
null
null
null
null
pub async fn find_user_scoped_dashboard_metadata( conn: &PgPooledConn, user_id: String, merchant_id: id_type::MerchantId, org_id: id_type::OrganizationId, data_types: Vec<enums::DashboardMetadata>, ) -> StorageResult<Vec<Self>> { let predicate = dsl::user_id ...
crates/diesel_models/src/query/dashboard_metadata.rs
diesel_models
function_signature
167
rust
null
null
null
null
find_user_scoped_dashboard_metadata
null
null
null
null
null
null
null
pub struct ProfileDefaultRoutingConfig { #[schema(value_type = String)] pub profile_id: common_utils::id_type::ProfileId, pub connectors: Vec<RoutableConnectorChoice>, }
crates/api_models/src/routing.rs
api_models
struct_definition
41
rust
ProfileDefaultRoutingConfig
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/compatibility/stripe/setup_intents.rs Public functions: 4 pub mod types; #[cfg(feature = "v1")] use actix_web::{web, HttpRequest, HttpResponse}; #[cfg(feature = "v1")] use api_models::payments as payment_types; #[cfg(feature = "v1")] use error_stack::report; #[cfg(feature = "v1")] use router_e...
crates/router/src/compatibility/stripe/setup_intents.rs
router
full_file
2,229
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Rapyd {}
crates/hyperswitch_connectors/src/connectors/rapyd.rs
hyperswitch_connectors
impl_block
11
rust
null
Rapyd
api::RefundSync for
impl api::RefundSync for for Rapyd
null
null
null
null
null
null
null
null
File: crates/masking/src/bytes.rs Public functions: 1 Public structs: 1 //! Optional `Secret` wrapper type for the `bytes::BytesMut` crate. use core::fmt; use bytes::BytesMut; #[cfg(all(feature = "bytes", feature = "serde"))] use serde::de::{self, Deserialize}; use super::{PeekInterface, ZeroizableSecret}; /// I...
crates/masking/src/bytes.rs
masking
full_file
733
null
null
null
null
null
null
null
null
null
null
null
null
null
impl SubscriptionNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Subscription> { generics::generic_insert(conn, self).await } }
crates/diesel_models/src/query/subscription.rs
diesel_models
impl_block
40
rust
null
SubscriptionNew
null
impl SubscriptionNew
null
null
null
null
null
null
null
null
pub struct ZslPaymentsResponse { process_type: ProcessType, process_code: ProcessCode, status: String, mer_ref: String, mer_id: String, enctype: EncodingType, txn_url: String, signature: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs
hyperswitch_connectors
struct_definition
57
rust
ZslPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct NovalnetRawCardDetails { card_number: CardNumber, card_expiry_month: Secret<String>, card_expiry_year: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
NovalnetRawCardDetails
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Aci {}
crates/hyperswitch_connectors/src/connectors/aci.rs
hyperswitch_connectors
impl_block
9
rust
null
Aci
api::Refund for
impl api::Refund for for Aci
null
null
null
null
null
null
null
null
pub struct AppState { pub conf: Arc<Settings<RawSecret>>, pub encryption_client: Arc<dyn EncryptionManagementInterface>, }
crates/drainer/src/settings.rs
drainer
struct_definition
27
rust
AppState
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AuthenticationConnectors { "type": "string", "enum": [ "threedsecureio", "netcetera", "gpayments", "ctp_mastercard", "unified_authentication_service", "juspaythreedsserver", "ctp_visa" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
76
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AuthenticationConnectors" ]
null
null
null
null
pub fn collect(self) -> RefundMetricsBucketValue { let (successful_refunds, total_refunds, refund_success_rate) = self.refund_success_rate.collect(); let (refund_processed_amount, refund_processed_count, refund_processed_amount_in_usd) = self.processed_amount.collect(); R...
crates/analytics/src/refunds/accumulator.rs
analytics
function_signature
177
rust
null
null
null
null
collect
null
null
null
null
null
null
null
Documentation: api-reference/v2/customers/customers--list.mdx # Type: Doc File --- openapi: get /v2/customers/list ---
api-reference/v2/customers/customers--list.mdx
null
doc_file
34
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct FiuuPaymentRequest { #[serde(rename = "MerchantID")] merchant_id: Secret<String>, reference_no: String, txn_type: TxnType, txn_currency: Currency, txn_amount: StringMajorUnit, signature: Secret<String>, #[serde(rename = "ReturnURL")] return_url: Option<String>, #[serde...
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
110
rust
FiuuPaymentRequest
null
null
null
null
null
null
null
null
null
null
null
/// Set the private fields of merchant account pub struct MerchantAccountSetter { pub id: common_utils::id_type::MerchantId, pub merchant_name: OptionalEncryptableName, pub merchant_details: OptionalEncryptableValue, pub publishable_key: String, pub storage_scheme: MerchantStorageScheme, pub met...
crates/hyperswitch_domain_models/src/merchant_account.rs
hyperswitch_domain_models
struct_definition
175
rust
MerchantAccountSetter
null
null
null
null
null
null
null
null
null
null
null
/// Trait to convert the raw data to the required format for encryption service request pub trait ConvertRaw { /// Return type of the convert_raw function type Output: serde::Serialize; /// Function to convert the raw data to the required format for encryption service request fn convert_raw(self) -> Res...
crates/common_utils/src/keymanager.rs
common_utils
trait_definition
76
rust
null
null
ConvertRaw
null
null
null
null
null
null
null
null
null
/// Retains the connector name and payment method in every flattened element pub fn from_payment_connectors_list(payment_connectors: Vec<MerchantConnectorAccount>) -> Self { let payment_methods_enabled_flattened_with_connector = payment_connectors .into_iter() .map(|connector| { ...
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
294
rust
null
null
null
null
from_payment_connectors_list
null
null
null
null
null
null
null
pub struct DwollaErrorResponse { pub code: String, pub message: String, pub _embedded: Option<Vec<DwollaErrorDetails>>, pub reason: Option<String>, }
crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
hyperswitch_connectors
struct_definition
39
rust
DwollaErrorResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_reject.rs Public structs: 1 use std::marker::PhantomData; use api_models::{enums::FrmSuggestion, payments::PaymentsCancelRequest}; use async_trait::async_trait; use error_stack::ResultExt; use router_derive; use router_env::{instrument, tracing}; use super::{...
crates/router/src/core/payments/operations/payment_reject.rs
router
full_file
2,235
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn payment_method_retrieve_api() {}
crates/openapi/src/routes/payment_method.rs
openapi
function_signature
10
rust
null
null
null
null
payment_method_retrieve_api
null
null
null
null
null
null
null
**Full Changelog:** [`2024.08.02.0...2024.08.05.0`](https://github.com/juspay/hyperswitch/compare/2024.08.02.0...2024.08.05.0) - - - ## 2024.08.02.0 ### Features - **auth:** - Add support for partial-auth, by facilitating injection of authentication parameters in headers ([#4802](https://github.com/juspay/hypers...
CHANGELOG.md#chunk26
null
doc_chunk
8,181
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn execute_payment( state: &SessionState, _merchant_id: &id_type::MerchantId, payment_intent: &PaymentIntent, process: &storage::ProcessTracker, profile: &domain::Profile, merchant_context: domain::MerchantContext, revenue_recovery_payment_data: &storage...
crates/router/src/core/revenue_recovery/types.rs
router
function_signature
1,639
rust
null
null
null
null
execute_payment
null
null
null
null
null
null
null
pub struct EnabledServices { pub merchant_presented_qr: String, }
crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
EnabledServices
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentsCompleteAuthorize for Breadpay {}
crates/hyperswitch_connectors/src/connectors/breadpay.rs
hyperswitch_connectors
impl_block
10
rust
null
Breadpay
api::PaymentsCompleteAuthorize for
impl api::PaymentsCompleteAuthorize for for Breadpay
null
null
null
null
null
null
null
null
pub async fn start_drainer( stores: HashMap<id_type::TenantId, Arc<Store>>, conf: DrainerSettings, ) -> errors::DrainerResult<()> { let drainer_handler = handler::Handler::from_conf(conf, stores); let (tx, rx) = mpsc::channel::<()>(1); let signal = get_allowed_signals().change_context(errors::Drai...
crates/drainer/src/lib.rs
drainer
function_signature
221
rust
null
null
null
null
start_drainer
null
null
null
null
null
null
null
File: crates/api_models/src/poll.rs Public structs: 1 use common_utils::events::{ApiEventMetric, ApiEventsType}; use serde::Serialize; use utoipa::ToSchema; #[derive(Debug, ToSchema, Clone, Serialize)] pub struct PollResponse { /// The poll id pub poll_id: String, /// Status of the poll pub status: P...
crates/api_models/src/poll.rs
api_models
full_file
193
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/signifyd/transformers/auth.rs Public structs: 1 use error_stack; use hyperswitch_domain_models::router_data::ConnectorAuthType; use hyperswitch_interfaces::errors::ConnectorError; use masking::Secret; pub struct SignifydAuthType { pub api_key: Secret<String>, } ...
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/auth.rs
hyperswitch_connectors
full_file
176
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn do_auth_connector_call<F, Req, Res>( state: &SessionState, authentication_connector_name: String, router_data: RouterData<F, Req, Res>, ) -> RouterResult<RouterData<F, Req, Res>> where Req: std::fmt::Debug + Clone + 'static, Res: std::fmt::Debug + Clone + 'static, F: std::fmt::Debug...
crates/router/src/core/unified_authentication_service/utils.rs
router
function_signature
251
rust
null
null
null
null
do_auth_connector_call
null
null
null
null
null
null
null
pub struct LinkTokenResponse { pub link_token: String, }
crates/pm_auth/src/types.rs
pm_auth
struct_definition
14
rust
LinkTokenResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct SurchargeDetails { /// original_amount pub original_amount: MinorUnit, /// surcharge value pub surcharge: common_utils::types::Surcharge, /// tax on surcharge value pub tax_on_surcharge: Option<common_utils::types::Percentage<{ consts::SURCHARGE_PERCENTAGE_PRECISION_LENGTH }>>...
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
116
rust
SurchargeDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentSuccessCount;
crates/api_models/src/analytics/payments.rs
api_models
struct_definition
6
rust
PaymentSuccessCount
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/storage/address.rs pub use diesel_models::address::{Address, AddressNew, AddressUpdateInternal}; pub use crate::types::domain::AddressUpdate;
crates/router/src/types/storage/address.rs
router
full_file
37
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn enum_variant_value(input: &str) -> ParseResult<&str, ast::ValueType> { error::context( "enum_variant_value", combinator::map(enum_value_string, ast::ValueType::EnumVariant), )(input) }
crates/euclid/src/frontend/ast/parser.rs
euclid
function_signature
53
rust
null
null
null
null
enum_variant_value
null
null
null
null
null
null
null
File: crates/router/tests/connectors/adyen.rs use std::str::FromStr; use hyperswitch_domain_models::address::{Address, AddressDetails, PhoneDetails}; use masking::Secret; use router::types::{self, storage::enums, PaymentAddress}; use crate::{ connector_auth, utils::{self, ConnectorActions, PaymentInfo}, }; ...
crates/router/tests/connectors/adyen.rs
router
full_file
4,955
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BillTo { first_name: Option<Secret<String>>, last_name: Option<Secret<String>>, address: Option<Secret<String>>, city: Option<String>, state: Option<Secret<String>>, zip: Option<Secret<String>>, country: Option<enums::CountryAlpha2>, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
65
rust
BillTo
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorAccessToken for Plaid {}
crates/hyperswitch_connectors/src/connectors/plaid.rs
hyperswitch_connectors
impl_block
7
rust
null
Plaid
ConnectorAccessToken for
impl ConnectorAccessToken for for Plaid
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Recurly {}
crates/hyperswitch_connectors/src/connectors/recurly.rs
hyperswitch_connectors
impl_block
8
rust
null
Recurly
ConnectorSpecifications for
impl ConnectorSpecifications for for Recurly
null
null
null
null
null
null
null
null
pub async fn make_connector_decision( state: &SessionState, merchant_context: &domain::MerchantContext, connector_call_type: api::ConnectorCallType, payout_data: &mut PayoutData, ) -> RouterResult<()> { match connector_call_type { api::ConnectorCallType::PreDetermined(routing_data) => { ...
crates/router/src/core/payouts.rs
router
function_signature
562
rust
null
null
null
null
make_connector_decision
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.FrmPaymentMethod { "type": "object", "description": "Details of FrmPaymentMethod are mentioned here... it should be passed in payment connector create api call, and stored in merchant_connector_table", "required": [ "payment_method" ], "properties": { "payment_me...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
221
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "FrmPaymentMethod" ]
null
null
null
null
impl api::UasAuthenticationConfirmation for UnifiedAuthenticationService {}
crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs
hyperswitch_connectors
impl_block
12
rust
null
UnifiedAuthenticationService
api::UasAuthenticationConfirmation for
impl api::UasAuthenticationConfirmation for for UnifiedAuthenticationService
null
null
null
null
null
null
null
null
pub struct WellsfargopayoutAuthType { pub(super) api_key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/wellsfargopayout/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
WellsfargopayoutAuthType
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentMethodDataResponseWithBilling { "allOf": [ { "allOf": [ { "$ref": "#/components/schemas/PaymentMethodDataResponse" } ], "nullable": true }, { "type": "object", "properties": { "billing": { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
117
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentMethodDataResponseWithBilling" ]
null
null
null
null
pub struct ErrorParameters { pub(super) name: String, pub(super) value: Option<String>, pub(super) message: String, }
crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
ErrorParameters
null
null
null
null
null
null
null
null
null
null
null
pub async fn authorize_preprocessing_steps<F: Clone>( state: &SessionState, router_data: &types::RouterData<F, types::PaymentsAuthorizeData, types::PaymentsResponseData>, confirm: bool, connector: &api::ConnectorData, ) -> RouterResult<types::RouterData<F, types::PaymentsAuthorizeData, types::PaymentsRe...
crates/router/src/core/payments/flows/authorize_flow.rs
router
function_signature
643
rust
null
null
null
null
authorize_preprocessing_steps
null
null
null
null
null
null
null
pub struct RefundResponse { id: String, status: DummyRefundStatus, currency: Currency, created: String, payment_amount: MinorUnit, refund_amount: MinorUnit, }
crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_filters_for_disputes( state: SessionState, merchant_context: domain::MerchantContext, profile_id_list: Option<Vec<common_utils::id_type::ProfileId>>, ) -> RouterResponse<api_models::disputes::DisputeListFilters> { let merchant_connector_accounts = if let services::ApplicationResponse::J...
crates/router/src/core/disputes.rs
router
function_signature
369
rust
null
null
null
null
get_filters_for_disputes
null
null
null
null
null
null
null
pub async fn find_by_publishable_key( conn: &PgPooledConn, publishable_key: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::publishable_key.eq(publishable_key.to_owned()), ) .await }
crates/diesel_models/src/query/merchant_account.rs
diesel_models
function_signature
78
rust
null
null
null
null
find_by_publishable_key
null
null
null
null
null
null
null
Documentation: api-reference/v1/api-key/api-key--revoke.mdx # Type: Doc File --- openapi: delete /api_keys/{merchant_id}/{key_id} ---
api-reference/v1/api-key/api-key--revoke.mdx
null
doc_file
38
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_merchants_for_user_in_org( state: web::Data<AppState>, req: HttpRequest, ) -> HttpResponse { let flow = Flow::ListMerchantsForUserInOrg; Box::pin(api::server_wrap( flow, state.clone(), &req, (), |state, user_from_token, _, _| { user_...
crates/router/src/routes/user.rs
router
function_signature
125
rust
null
null
null
null
list_merchants_for_user_in_org
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/dummyconnector.rs Public functions: 1 Public structs: 1 pub mod transformers; use api_models::webhooks::{IncomingWebhookEvent, ObjectReferenceId}; use common_enums::{CaptureMethod, PaymentMethod, PaymentMethodType}; use common_utils::{ consts as common_consts, ...
crates/hyperswitch_connectors/src/connectors/dummyconnector.rs
hyperswitch_connectors
full_file
4,793
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSession for Wise {}
crates/hyperswitch_connectors/src/connectors/wise.rs
hyperswitch_connectors
impl_block
8
rust
null
Wise
api::PaymentSession for
impl api::PaymentSession for for Wise
null
null
null
null
null
null
null
null
pub struct ApiKeyAuth { pub is_connected_allowed: bool, pub is_platform_allowed: bool, }
crates/router/src/services/authentication.rs
router
struct_definition
23
rust
ApiKeyAuth
null
null
null
null
null
null
null
null
null
null
null
pub struct GlobalPayRouterData<T> { pub amount: StringMinorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs
hyperswitch_connectors
struct_definition
25
rust
GlobalPayRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct BusinessPaymentLinkConfig { /// Custom domain name to be used for hosting the link in your own domain pub domain_name: Option<String>, /// Default payment link config for all future payment link #[serde(flatten)] #[schema(value_type = PaymentLinkConfigRequest)] pub default_config: Opt...
crates/api_models/src/admin.rs
api_models
struct_definition
159
rust
BusinessPaymentLinkConfig
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Payload {}
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
impl_block
8
rust
null
Payload
api::PaymentVoid for
impl api::PaymentVoid for for Payload
null
null
null
null
null
null
null
null