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
File: crates/router/tests/connectors/main.rs #![allow( clippy::expect_used, clippy::panic, clippy::unwrap_in_result, clippy::unwrap_used )] use test_utils::connector_auth; mod aci; mod adyen; mod adyenplatform; mod affirm; mod airwallex; mod amazonpay; mod authorizedotnet; mod bambora; mod bamboraapac...
crates/router/tests/connectors/main.rs
router
full_file
606
null
null
null
null
null
null
null
null
null
null
null
null
null
impl MandateSetup for Plaid {}
crates/hyperswitch_connectors/src/connectors/plaid.rs
hyperswitch_connectors
impl_block
8
rust
null
Plaid
MandateSetup for
impl MandateSetup for for Plaid
null
null
null
null
null
null
null
null
impl api::PaymentSync for Breadpay {}
crates/hyperswitch_connectors/src/connectors/breadpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Breadpay
api::PaymentSync for
impl api::PaymentSync for for Breadpay
null
null
null
null
null
null
null
null
pub async fn execute_connector_processing_step<'b, T, Req, Resp>( state: &'b SessionState, connector_integration: BoxedConnectorIntegration<'_, T, Req, Resp>, req: &'b PaymentAuthRouterData<T, Req, Resp>, connector: &pm_auth_types::PaymentMethodAuthConnectors, ) -> errors::CustomResult<PaymentAuthRouter...
crates/router/src/services/pm_auth.rs
router
function_signature
559
rust
null
null
null
null
execute_connector_processing_step
null
null
null
null
null
null
null
pub async fn call_create_connector_customer_if_required<F, Req, D>( state: &SessionState, customer: &Option<domain::Customer>, merchant_context: &domain::MerchantContext, merchant_connector_account: &domain::MerchantConnectorAccountTypeDetails, payment_data: &mut D, ) -> RouterResult<Option<storage:...
crates/router/src/core/payments.rs
router
function_signature
516
rust
null
null
null
null
call_create_connector_customer_if_required
null
null
null
null
null
null
null
impl api::PaymentVoid for Celero {}
crates/hyperswitch_connectors/src/connectors/celero.rs
hyperswitch_connectors
impl_block
9
rust
null
Celero
api::PaymentVoid for
impl api::PaymentVoid for for Celero
null
null
null
null
null
null
null
null
pub struct NexixpayTransactionResponse { order_id: String, operation_id: String, operation_result: NexixpayPaymentStatus, operation_type: NexixpayOperationType, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
NexixpayTransactionResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct PreAuthenticationData { pub threeds_server_transaction_id: String, pub message_version: common_utils::types::SemanticVersion, pub acquirer_bin: Option<String>, pub acquirer_merchant_id: Option<String>, pub acquirer_country_code: Option<String>, pub connector_metadata: Option<serde_jso...
crates/hyperswitch_domain_models/src/router_request_types/authentication.rs
hyperswitch_domain_models
struct_definition
73
rust
PreAuthenticationData
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_by_user_id_tenant_id_org_id_merchant_id_profile_id( conn: &PgPooledConn, user_id: String, tenant_id: id_type::TenantId, org_id: id_type::OrganizationId, merchant_id: id_type::MerchantId, profile_id: id_type::ProfileId, version: UserRoleVersion,...
crates/diesel_models/src/query/user_role.rs
diesel_models
function_signature
186
rust
null
null
null
null
delete_by_user_id_tenant_id_org_id_merchant_id_profile_id
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.DisputeStage { "type": "string", "description": "Stage of the dispute", "enum": [ "pre_dispute", "dispute", "pre_arbitration", "arbitration", "dispute_reversal" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
70
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "DisputeStage" ]
null
null
null
null
File: crates/router/src/types/storage/merchant_connector_account.rs pub use diesel_models::merchant_connector_account::{ MerchantConnectorAccount, MerchantConnectorAccountNew, MerchantConnectorAccountUpdateInternal, }; pub use crate::types::domain::MerchantConnectorAccountUpdate;
crates/router/src/types/storage/merchant_connector_account.rs
router
full_file
52
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MerchantCategoryCode { "type": "string", "enum": [ "5411", "7011", "0763", "8111", "5021", "4816", "5661" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
78
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MerchantCategoryCode" ]
null
null
null
null
File: crates/router/src/core/verification.rs Public functions: 2 pub mod utils; use api_models::verifications::{self, ApplepayMerchantResponse}; use common_utils::{errors::CustomResult, request::RequestContent}; use error_stack::ResultExt; use masking::ExposeInterface; use crate::{core::errors, headers, logger, rout...
crates/router/src/core/verification.rs
router
full_file
1,014
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn routing_unlink_config() {}
crates/openapi/src/routes/profile.rs
openapi
function_signature
9
rust
null
null
null
null
routing_unlink_config
null
null
null
null
null
null
null
impl UnifiedTranslationsInterface for KafkaStore { async fn add_unfied_translation( &self, translation: storage::UnifiedTranslationsNew, ) -> CustomResult<storage::UnifiedTranslations, errors::StorageError> { self.diesel_store.add_unfied_translation(translation).await } async fn...
crates/router/src/db/kafka_store.rs
router
impl_block
275
rust
null
KafkaStore
UnifiedTranslationsInterface for
impl UnifiedTranslationsInterface for for KafkaStore
null
null
null
null
null
null
null
null
File: crates/common_enums/src/enums/ui.rs use std::fmt; use serde::{de::Visitor, Deserialize, Deserializer, Serialize}; use utoipa::ToSchema; #[derive( Clone, Copy, Debug, Default, Eq, Hash, PartialEq, Serialize, Deserialize, strum::Display, strum::EnumString, ToSchema...
crates/common_enums/src/enums/ui.rs
common_enums
full_file
1,099
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn disable_decision_engine_dynamic_routing_setup( state: &SessionState, profile_id: &id_type::ProfileId, dynamic_routing_type: routing_types::DynamicRoutingType, dynamic_routing_algo_ref: &mut routing_types::DynamicRoutingAlgorithmRef, ) -> RouterResult<()> { logger::debug!( "perfo...
crates/router/src/core/routing/helpers.rs
router
function_signature
350
rust
null
null
null
null
disable_decision_engine_dynamic_routing_setup
null
null
null
null
null
null
null
File: crates/router/src/routes/dummy_connector/core.rs Public functions: 6 use app::SessionState; use common_utils::generate_id_with_default_len; use error_stack::ResultExt; use super::{errors, types, utils}; use crate::{ routes::{app, dummy_connector::consts}, services::api, utils::OptionExt, }; #[cfg(...
crates/router/src/routes/dummy_connector/core.rs
router
full_file
1,653
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Generate a test payment id with prefix test_ pub fn generate_test_payment_id_for_sample_data() -> Self { let id = generate_id_with_default_len("test"); let alphanumeric_id = AlphaNumericId::new_unchecked(id); let id = LengthId::new_unchecked(alphanumeric_id); Self(id) }
crates/common_utils/src/id_type/payment.rs
common_utils
function_signature
70
rust
null
null
null
null
generate_test_payment_id_for_sample_data
null
null
null
null
null
null
null
pub struct ChatRequest { pub message: Secret<String>, }
crates/api_models/src/chat.rs
api_models
struct_definition
13
rust
ChatRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn update(self, conn: &PgPooledConn, dispute: DisputeUpdate) -> StorageResult<Self> { match generics::generic_update_with_unique_predicate_get_result::< <Self as HasTable>::Table, _, _, _, >( conn, dsl::dispute_id.eq(self....
crates/diesel_models/src/query/dispute.rs
diesel_models
function_signature
137
rust
null
null
null
null
update
null
null
null
null
null
null
null
impl api::Payment for Tokenio {}
crates/hyperswitch_connectors/src/connectors/tokenio.rs
hyperswitch_connectors
impl_block
8
rust
null
Tokenio
api::Payment for
impl api::Payment for for Tokenio
null
null
null
null
null
null
null
null
impl SeriesBucket for Granularity { type SeriesType = time::PrimitiveDateTime; type GranularityLevel = TimeGranularityLevel; fn get_lowest_common_granularity_level(&self) -> Self::GranularityLevel { match self { Self::OneMin => TimeGranularityLevel::Minute, Self::FiveMin | ...
crates/analytics/src/query.rs
analytics
impl_block
725
rust
null
Granularity
SeriesBucket for
impl SeriesBucket for for Granularity
null
null
null
null
null
null
null
null
pub fn get_json_body( self, ) -> common_utils::errors::CustomResult<R, common_utils::errors::ValidationError> { match self { Self::Json(body) | Self::JsonWithHeaders((body, _)) => Ok(body), Self::TextPlain(_) | Self::JsonForRedirection(_) | Self::Form(...
crates/hyperswitch_domain_models/src/api.rs
hyperswitch_domain_models
function_signature
148
rust
null
null
null
null
get_json_body
null
null
null
null
null
null
null
pub async fn validate_uniqueness_of_payout_id_against_merchant_id( db: &dyn StorageInterface, payout_id: &id_type::PayoutId, merchant_id: &id_type::MerchantId, storage_scheme: storage::enums::MerchantStorageScheme, ) -> RouterResult<Option<storage::Payouts>> { let maybe_payouts = db .find_op...
crates/router/src/core/payouts/validator.rs
router
function_signature
196
rust
null
null
null
null
validate_uniqueness_of_payout_id_against_merchant_id
null
null
null
null
null
null
null
pub trait UpdateTracker<F, D, Req>: Send { /// Update the tracker information with the new data from request or calculated by the operations performed after get trackers /// This will persist the SessionData ( PaymentData ) in the database /// /// In case we are calling a processor / connector, we persi...
crates/router/src/core/payments/operations.rs
router
trait_definition
213
rust
null
null
UpdateTracker
null
null
null
null
null
null
null
null
null
pub struct Card { pub brand_reference: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/globalpay/response.rs
hyperswitch_connectors
struct_definition
15
rust
Card
null
null
null
null
null
null
null
null
null
null
null
pub struct FiuuWebhooksPaymentResponse { pub skey: Secret<String>, pub status: FiuuPaymentWebhookStatus, #[serde(rename = "orderid")] pub order_id: String, #[serde(rename = "tranID")] pub tran_id: String, pub nbcb: String, pub amount: StringMajorUnit, pub currency: String, pub do...
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
148
rust
FiuuWebhooksPaymentResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct TrustpaymentsErrorResponse { pub status_code: u16, pub code: String, pub message: String, pub reason: Option<String>, pub network_advice_code: Option<String>, pub network_decline_code: Option<String>, pub network_error_message: Option<String>, }
crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs
hyperswitch_connectors
struct_definition
64
rust
TrustpaymentsErrorResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/router_flow_types/files.rs Public structs: 2 #[derive(Debug, Clone)] pub struct Retrieve; #[derive(Debug, Clone)] pub struct Upload;
crates/hyperswitch_domain_models/src/router_flow_types/files.rs
hyperswitch_domain_models
full_file
42
null
null
null
null
null
null
null
null
null
null
null
null
null
/// get_skip_saving_wallet_at_connector_key pub fn get_skip_saving_wallet_at_connector_key(&self) -> String { format!("skip_saving_wallet_at_connector_{}", self.get_string_repr()) }
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
45
rust
null
null
null
null
get_skip_saving_wallet_at_connector_key
null
null
null
null
null
null
null
pub struct MerchantConnectorUpdate { /// Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking. #[schema(value_type = ConnectorType, example = "payment_processor")] pub connector_type: api_enums::ConnectorType, /// This is an unique label you can generate ...
crates/api_models/src/admin.rs
api_models
struct_definition
832
rust
MerchantConnectorUpdate
null
null
null
null
null
null
null
null
null
null
null
impl Dispute { pub async fn find_by_merchant_id_payment_id_connector_dispute_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, payment_id: &common_utils::id_type::PaymentId, connector_dispute_id: &str, ) -> StorageResult<Option<Self>> { generics::g...
crates/diesel_models/src/query/dispute.rs
diesel_models
impl_block
551
rust
null
Dispute
null
impl Dispute
null
null
null
null
null
null
null
null
pub struct DlocalRefundsSyncRequest { pub refund_id: String, }
crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
DlocalRefundsSyncRequest
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Coingate {}
crates/hyperswitch_connectors/src/connectors/coingate.rs
hyperswitch_connectors
impl_block
8
rust
null
Coingate
ConnectorValidation for
impl ConnectorValidation for for Coingate
null
null
null
null
null
null
null
null
pub fn get_revenue_recovery_metadata( &self, ) -> Option<diesel_models::types::PaymentRevenueRecoveryMetadata> { self.feature_metadata .as_ref() .and_then(|feature_metadata| feature_metadata.payment_revenue_recovery_metadata.clone()) }
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
function_signature
58
rust
null
null
null
null
get_revenue_recovery_metadata
null
null
null
null
null
null
null
pub struct GlobalPayPayer { /// Unique identifier for the Payer on the Global Payments system. #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub payer_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs
hyperswitch_connectors
struct_definition
49
rust
GlobalPayPayer
null
null
null
null
null
null
null
null
null
null
null
pub trait ApiEventMetricAnalytics: LoadRow<ApiEventMetricRow> + LoadRow<LatencyAvg> {}
crates/analytics/src/api_event/metrics.rs
analytics
trait_definition
24
rust
null
null
ApiEventMetricAnalytics
null
null
null
null
null
null
null
null
null
pub async fn find_by_profile_id_connector_reference_id( conn: &PgPooledConn, profile_id: &common_utils::id_type::ProfileId, connector_reference_id: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::profi...
crates/diesel_models/src/query/relay.rs
diesel_models
function_signature
111
rust
null
null
null
null
find_by_profile_id_connector_reference_id
null
null
null
null
null
null
null
pub struct AcquirerDetails { pub acquirer_bin: String, pub acquirer_merchant_mid: String, pub acquirer_country_code: Option<String>, }
crates/router/src/types/api/authentication.rs
router
struct_definition
35
rust
AcquirerDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalBatchResponse { pub payout_batch_id: String, pub batch_status: PaypalFulfillStatus, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
PaypalBatchResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct RSyncEdgeData { node: RSyncNodeData, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
RSyncEdgeData
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Razorpay { //TODO: implement functions when support enabled }
crates/hyperswitch_connectors/src/connectors/razorpay.rs
hyperswitch_connectors
impl_block
18
rust
null
Razorpay
ConnectorValidation for
impl ConnectorValidation for for Razorpay
null
null
null
null
null
null
null
null
File: crates/router/src/events/outgoing_webhook_logs.rs Public functions: 1 Public structs: 1 use api_models::{enums::EventType as OutgoingWebhookEventType, webhooks::OutgoingWebhookContent}; use common_enums::WebhookDeliveryAttempt; use serde::Serialize; use serde_json::Value; use time::OffsetDateTime; use super::...
crates/router/src/events/outgoing_webhook_logs.rs
router
full_file
1,648
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CeleroPaymentsResponse { pub status: CeleroResponseStatus, pub msg: String, pub data: Option<CeleroTransactionResponseData>, }
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
CeleroPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::CustomersDelete; let id = path.into_inner(); Box::pin(api::server_wrap( flow, state, &req, id, |state, auth: auth::AuthenticationData, id, _| { let merchant_context = domain::MerchantContext::NormalMerchant(Box::new( ...
crates/router/src/routes/customers.rs
router
impl_block
175
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
/// Allows [error_stack::Report] to change between error contexts /// using the dependent [ErrorSwitch] trait to define relations & mappings between traits pub trait ReportSwitchExt<T, U> { /// Switch to the intended report by calling switch /// requires error switch to be already implemented on the error type ...
crates/common_utils/src/errors.rs
common_utils
trait_definition
82
rust
null
null
ReportSwitchExt
null
null
null
null
null
null
null
null
null
pub struct Message { pub code: String, pub description: String, }
crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
Message
null
null
null
null
null
null
null
null
null
null
null
pub struct ForteRefundRequest { action: String, authorization_amount: FloatMajorUnit, original_transaction_id: String, authorization_code: String, }
crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
ForteRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn config_key_create( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<api_types::Config>, ) -> impl Responder { let flow = Flow::CreateConfigKey; let payload = json_payload.into_inner(); api::server_wrap( flow, state, &req, payload...
crates/router/src/routes/configs.rs
router
function_signature
119
rust
null
null
null
null
config_key_create
null
null
null
null
null
null
null
pub trait ApiEventFilterAnalytics: LoadRow<ApiEventFilter> {}
crates/analytics/src/api_event/filters.rs
analytics
trait_definition
15
rust
null
null
ApiEventFilterAnalytics
null
null
null
null
null
null
null
null
null
pub fn generate_digest(&self, payload: &[u8]) -> String { let payload_digest = digest::digest(&digest::SHA256, payload); consts::BASE64_ENGINE.encode(payload_digest) }
crates/hyperswitch_connectors/src/connectors/bankofamerica.rs
hyperswitch_connectors
function_signature
47
rust
null
null
null
null
generate_digest
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PayoutsCreateRequest { "type": "object", "required": [ "amount", "currency" ], "properties": { "merchant_order_reference_id": { "type": "string", "description": "Your unique identifier for this payout or order. This ID helps you reconcile payouts on...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
1,730
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PayoutsCreateRequest" ]
null
null
null
null
pub async fn create_vault_token_core( state: SessionState, merchant_account: &domain::MerchantAccount, merchant_key_store: &domain::MerchantKeyStore, req: api_models::tokenization::GenericTokenizationRequest, ) -> RouterResponse<api_models::tokenization::GenericTokenizationResponse> { // Generate a ...
crates/router/src/core/tokenization.rs
router
function_signature
588
rust
null
null
null
null
create_vault_token_core
null
null
null
null
null
null
null
pub struct PowertranzPaymentsRequest { transaction_identifier: String, total_amount: f64, currency_code: String, three_d_secure: bool, source: Source, order_identifier: String, // billing and shipping are optional fields and requires state in iso codes, hence commenting it // can be adde...
crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs
hyperswitch_connectors
struct_definition
115
rust
PowertranzPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/api/payouts_v2.rs pub use api_models::payouts::{ AchBankTransfer, BacsBankTransfer, Bank as BankPayout, CardPayout, PayoutActionRequest, PayoutAttemptResponse, PayoutCreateRequest, PayoutCreateResponse, PayoutListConstraints, PayoutListFilterConstraints, PayoutListFilters, Pay...
crates/router/src/types/api/payouts_v2.rs
router
full_file
332
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn diesel_enum_derive(input: proc_macro::TokenStream) -> proc_macro::TokenStream { let ast = syn::parse_macro_input!(input as syn::DeriveInput); let tokens = macros::diesel_enum_derive_inner(&ast).unwrap_or_else(|error| error.to_compile_error()); tokens.into() }
crates/router_derive/src/lib.rs
router_derive
function_signature
71
rust
null
null
null
null
diesel_enum_derive
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GenerateRefundReport; Box::pin(api::server_wrap( flow, state.clone(), &req, json_payload.into_inner(), |state, (auth, user_id): auth::AuthenticationDataWithUserId, payload, _| async move { ...
crates/router/src/analytics.rs
router
impl_block
300
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl VaultingInterface for VaultRetrieve { fn get_vaulting_request_url() -> &'static str { consts::VAULT_RETRIEVE_REQUEST_URL } fn get_vaulting_flow_name() -> &'static str { consts::VAULT_RETRIEVE_FLOW_TYPE } }
crates/router/src/types/payment_methods.rs
router
impl_block
65
rust
null
VaultRetrieve
VaultingInterface for
impl VaultingInterface for for VaultRetrieve
null
null
null
null
null
null
null
null
pub struct RefundListConstraints { pub payment_id: Option<common_utils::id_type::GlobalPaymentId>, pub refund_id: Option<common_utils::id_type::GlobalRefundId>, pub profile_id: common_utils::id_type::ProfileId, pub limit: Option<i64>, pub offset: Option<i64>, pub time_range: Option<common_utils:...
crates/hyperswitch_domain_models/src/refunds.rs
hyperswitch_domain_models
struct_definition
161
rust
RefundListConstraints
null
null
null
null
null
null
null
null
null
null
null
pub struct CoinbaseConnectorMeta { pub pricing_type: String, }
crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
CoinbaseConnectorMeta
null
null
null
null
null
null
null
null
null
null
null
pub struct DisputeMetricsAccumulator { pub disputes_status_rate: RateAccumulator, pub disputed_amount: DisputedAmountAccumulator, pub dispute_lost_amount: DisputedAmountAccumulator, }
crates/analytics/src/disputes/accumulators.rs
analytics
struct_definition
46
rust
DisputeMetricsAccumulator
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.DocumentKind { "type": "string", "enum": [ "CNPJ", "CPF" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
37
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "DocumentKind" ]
null
null
null
null
pub struct PayoutListFilterConstraints { /// The identifier for payout #[schema( value_type = Option<String>, min_length = 30, max_length = 30, example = "187282ab-40ef-47a9-9206-5099ba31e432" )] pub payout_id: Option<id_type::PayoutId>, /// The merchant order reference ID for payout ...
crates/api_models/src/payouts.rs
api_models
struct_definition
603
rust
PayoutListFilterConstraints
null
null
null
null
null
null
null
null
null
null
null
impl ApiEventMetric for BlocklistRequest {}
crates/api_models/src/blocklist.rs
api_models
impl_block
9
rust
null
BlocklistRequest
ApiEventMetric for
impl ApiEventMetric for for BlocklistRequest
null
null
null
null
null
null
null
null
pub struct TwoFactorAuthAttempts { pub is_completed: bool, pub remaining_attempts: u8, }
crates/api_models/src/user.rs
api_models
struct_definition
23
rust
TwoFactorAuthAttempts
null
null
null
null
null
null
null
null
null
null
null
pub async fn list_invitable_roles_at_entity_level( state: web::Data<AppState>, req: HttpRequest, query: web::Query<role_api::ListRolesAtEntityLevelRequest>, ) -> HttpResponse { let flow = Flow::ListInvitableRolesAtEntityLevel; Box::pin(api::server_wrap( flow, state.clone(), ...
crates/router/src/routes/user_role.rs
router
function_signature
169
rust
null
null
null
null
list_invitable_roles_at_entity_level
null
null
null
null
null
null
null
pub struct Cardholder { /// Indicates whether the Cardholder Shipping Address and Cardholder Billing Address are the same. /// /// Accepted values: /// - `Y` -> Shipping Address matches Billing Address /// - `N` -> Shipping Address does not match Billing Address /// /// If the field is not s...
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs
hyperswitch_connectors
struct_definition
1,801
rust
Cardholder
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/connector-account/connector-account--delete.mdx # Type: Doc File --- openapi: delete /v2/connector-accounts/{id} ---
api-reference/v2/connector-account/connector-account--delete.mdx
null
doc_file
39
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/currency_conversion/src/conversion.rs Public functions: 1 use common_enums::Currency; use rust_decimal::Decimal; use rusty_money::Money; use crate::{ error::CurrencyConversionError, types::{currency_match, ExchangeRates}, }; pub fn convert( ex_rates: &ExchangeRates, from_currency: Curre...
crates/currency_conversion/src/conversion.rs
currency_conversion
full_file
928
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Billing { date_of_birth: Option<Secret<String>>, email: Option<Email>, first_name: Option<Secret<String>>, last_name: Option<Secret<String>>, phone_number: Option<Secret<String>>, address: Option<AddressAirwallex>, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
58
rust
Billing
null
null
null
null
null
null
null
null
null
null
null
pub struct WellsfargoPaymentsIncrementalAuthorizationResponse { status: WellsfargoIncrementalAuthorizationStatus, error_information: Option<WellsfargoErrorInformation>, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
35
rust
WellsfargoPaymentsIncrementalAuthorizationResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct StripePaymentListConstraints { pub customer: Option<id_type::CustomerId>, pub starting_after: Option<id_type::PaymentId>, pub ending_before: Option<id_type::PaymentId>, #[serde(default = "default_limit")] pub limit: u32, pub created: Option<i64>, #[serde(rename = "created[lt]")] ...
crates/router/src/compatibility/stripe/setup_intents/types.rs
router
struct_definition
153
rust
StripePaymentListConstraints
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Payload { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&PAYLOAD_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*PAYLOAD_SUPPORTED_PAYMENT_METHODS) } fn get_supp...
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
impl_block
104
rust
null
Payload
ConnectorSpecifications for
impl ConnectorSpecifications for for Payload
null
null
null
null
null
null
null
null
/// Panics if `json_payload` array does not contain one `GetPaymentMetricRequest` element. pub async fn get_profile_payment_metrics( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<[GetPaymentMetricRequest; 1]>, ) -> impl Responder { // safety: Th...
crates/router/src/analytics.rs
router
function_signature
398
rust
null
null
null
null
get_profile_payment_metrics
null
null
null
null
null
null
null
pub fn get_inner_value(self) -> Vec<Operation> { self.0 }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
function_signature
20
rust
null
null
null
null
get_inner_value
null
null
null
null
null
null
null
impl api::PaymentToken for Worldline {}
crates/hyperswitch_connectors/src/connectors/worldline.rs
hyperswitch_connectors
impl_block
9
rust
null
Worldline
api::PaymentToken for
impl api::PaymentToken for for Worldline
null
null
null
null
null
null
null
null
pub async fn contract_based_routing_update_configs( state: web::Data<AppState>, req: HttpRequest, path: web::Path<routing_types::DynamicRoutingUpdateConfigQuery>, json_payload: web::Json<routing_types::ContractBasedRoutingConfig>, ) -> impl Responder { let flow = Flow::UpdateDynamicRoutingConfigs; ...
crates/router/src/routes/routing.rs
router
function_signature
335
rust
null
null
null
null
contract_based_routing_update_configs
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &StringMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/itaubank.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<PaymentIntent> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/payment_intent.rs
diesel_models
function_signature
35
rust
null
null
null
null
insert
null
null
null
null
null
null
null
pub fn check_tenant( token_tenant_id: Option<id_type::TenantId>, header_tenant_id: &id_type::TenantId, ) -> RouterResult<()> { if let Some(tenant_id) = token_tenant_id { if tenant_id != *header_tenant_id { return Err(ApiErrorResponse::InvalidJwtToken).attach_printable(format!( ...
crates/router/src/services/authorization.rs
router
function_signature
127
rust
null
null
null
null
check_tenant
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_cancel_post_capture.rs Public structs: 1 use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use error_stack::ResultExt; use router_derive; use router_env::{instrument, tracing}; use super::{BoxedOperation, Domain...
crates/router/src/core/payments/operations/payment_cancel_post_capture.rs
router
full_file
2,297
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct FlexitiAccessTokenRequest { client_id: Secret<String>, client_secret: Secret<String>, grant_type: FlexitiGranttype, }
crates/hyperswitch_connectors/src/connectors/flexiti/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
FlexitiAccessTokenRequest
null
null
null
null
null
null
null
null
null
null
null
impl Refund for Wellsfargo {}
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs
hyperswitch_connectors
impl_block
8
rust
null
Wellsfargo
Refund for
impl Refund for for Wellsfargo
null
null
null
null
null
null
null
null
impl ConnectorValidation for Wellsfargo { fn validate_mandate_payment( &self, pm_type: Option<enums::PaymentMethodType>, pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { let mandate_supported_pmd = std::collections::HashSet::from([ PaymentMe...
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs
hyperswitch_connectors
impl_block
117
rust
null
Wellsfargo
ConnectorValidation for
impl ConnectorValidation for for Wellsfargo
null
null
null
null
null
null
null
null
pub trait SupportedPaymentMethodsExt { fn add( &mut self, payment_method: common_enums::PaymentMethod, payment_method_type: common_enums::PaymentMethodType, payment_method_details: PaymentMethodDetails, ); }
crates/hyperswitch_domain_models/src/router_response_types.rs
hyperswitch_domain_models
trait_definition
52
rust
null
null
SupportedPaymentMethodsExt
null
null
null
null
null
null
null
null
null
pub struct AuthenticationSyncResponse { // Core Authentication Fields (from AuthenticationResponse) /// The unique identifier for this authentication. #[schema(value_type = String, example = "auth_mbabizu24mvu3mela5njyhpit4")] pub authentication_id: id_type::AuthenticationId, /// This is an identif...
crates/api_models/src/authentication.rs
api_models
struct_definition
1,225
rust
AuthenticationSyncResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn user_signup_with_merchant_id( state: web::Data<AppState>, http_req: HttpRequest, json_payload: web::Json<user_api::SignUpWithMerchantIdRequest>, query: web::Query<user_api::AuthIdAndThemeIdQueryParam>, ) -> HttpResponse { let flow = Flow::UserSignUpWithMerchantId; let req_payload = ...
crates/router/src/routes/user.rs
router
function_signature
192
rust
null
null
null
null
user_signup_with_merchant_id
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/process_tracker.rs Public functions: 7 use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods, Table}; use router_env::{instrument, tracing}; use time::PrimitiveDateTime; use super::generics; use crate::{ enums, errors, process_tracker::{ Pr...
crates/diesel_models/src/query/process_tracker.rs
diesel_models
full_file
959
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PayoutCreateResponse { "type": "object", "required": [ "payout_id", "merchant_id", "amount", "currency", "auto_fulfill", "customer_id", "client_secret", "return_url", "business_country", "entity_type", "recurring", "status", ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
2,028
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PayoutCreateResponse" ]
null
null
null
null
pub struct PayuWallet { pub value: PayuWalletCode, #[serde(rename = "type")] pub wallet_type: String, pub authorization_code: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
hyperswitch_connectors
struct_definition
39
rust
PayuWallet
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Getnet {}
crates/hyperswitch_connectors/src/connectors/getnet.rs
hyperswitch_connectors
impl_block
9
rust
null
Getnet
api::Refund for
impl api::Refund for for Getnet
null
null
null
null
null
null
null
null
pub struct Mandates;
crates/router/src/compatibility/stripe/app.rs
router
struct_definition
5
rust
Mandates
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/payment_methods.rs Public functions: 2 //! Contains functions of payment methods that are used in payments //! one of such functions is `list_payment_methods` use std::{ collections::{BTreeMap, HashSet}, str::FromStr, }; use common_utils::{ ext_traits::{OptionExt, V...
crates/router/src/core/payments/payment_methods.rs
router
full_file
6,009
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Details<'a> { pub description: Option<&'a str>, pub kind: DirKeyKind, }
crates/euclid_wasm/src/types.rs
euclid_wasm
struct_definition
26
rust
Details
null
null
null
null
null
null
null
null
null
null
null
impl ApiClient for MockApiClient { fn request( &self, _method: Method, _url: String, ) -> CustomResult<Box<dyn RequestBuilder>, ApiClientError> { // [#2066]: Add Mock implementation for ApiClient Err(ApiClientError::UnexpectedState.into()) } fn request_with_certi...
crates/router/src/services/api/client.rs
router
impl_block
329
rust
null
MockApiClient
ApiClient for
impl ApiClient for for MockApiClient
null
null
null
null
null
null
null
null
pub fn get_total_surcharge_amount(&self) -> Option<MinorUnit> { self.net_amount.get_total_surcharge_amount() }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
function_signature
29
rust
null
null
null
null
get_total_surcharge_amount
null
null
null
null
null
null
null
impl Worldpay { pub const fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/worldpay.rs
hyperswitch_connectors
impl_block
34
rust
null
Worldpay
null
impl Worldpay
null
null
null
null
null
null
null
null
File: crates/pm_auth/src/types/api.rs Public structs: 1 pub mod auth_service; use std::fmt::Debug; use common_utils::{ errors::CustomResult, request::{Request, RequestContent}, }; use masking::Maskable; use crate::{ core::errors::ConnectorError, types::{ self as auth_types, api::aut...
crates/pm_auth/src/types/api.rs
pm_auth
full_file
1,275
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/external_service_auth.rs Public functions: 3 use api_models::external_service_auth as external_service_auth_api; use common_utils::fp_utils; use error_stack::ResultExt; use masking::ExposeInterface; use crate::{ core::errors::{self, RouterResponse}, services::{ api as ser...
crates/router/src/core/external_service_auth.rs
router
full_file
679
null
null
null
null
null
null
null
null
null
null
null
null
null