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
card_type: None, card_issuing_country: None, bank_code: None, nick_name: None, eci: None, } } } impl ForeignFrom<common_types::three_ds_decision_rule_engine::ThreeDSDecision> for common_enums::AuthenticationType { fn foreign_from( ...
crates/router/src/core/payments/transformers.rs#chunk6
router
chunk
469
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaystackErrorResponse { pub status: bool, pub message: String, pub data: Option<serde_json::Value>, pub meta: serde_json::Value, pub code: String, }
crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs
hyperswitch_connectors
struct_definition
45
rust
PaystackErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_sync_process_schedule_time( db: &dyn StorageInterface, connector: &str, merchant_id: &common_utils::id_type::MerchantId, retry_count: i32, ) -> Result<Option<time::PrimitiveDateTime>, errors::ProcessTrackerError> { let mapping: common_utils::errors::CustomResult< process_dat...
crates/router/src/workflows/dispute_list.rs
router
function_signature
236
rust
null
null
null
null
get_sync_process_schedule_time
null
null
null
null
null
null
null
impl api::MandateSetup for Katapult {}
crates/hyperswitch_connectors/src/connectors/katapult.rs
hyperswitch_connectors
impl_block
11
rust
null
Katapult
api::MandateSetup for
impl api::MandateSetup for for Katapult
null
null
null
null
null
null
null
null
pub struct Tokenization { pub id: id_type::GlobalTokenId, pub merchant_id: id_type::MerchantId, pub customer_id: id_type::GlobalCustomerId, pub created_at: PrimitiveDateTime, pub updated_at: PrimitiveDateTime, pub locker_id: String, pub flag: common_enums::enums::TokenizationFlag, pub ve...
crates/diesel_models/src/tokenization.rs
diesel_models
struct_definition
89
rust
Tokenization
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/router_response_types/disputes.rs Public structs: 5 #[derive(Default, Clone, Debug)] pub struct AcceptDisputeResponse { pub dispute_status: api_models::enums::DisputeStatus, pub connector_status: Option<String>, } #[derive(Default, Clone, Debug)] pub struct SubmitEv...
crates/hyperswitch_domain_models/src/router_response_types/disputes.rs
hyperswitch_domain_models
full_file
348
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/payment_intents/filters.rs Public functions: 1 Public structs: 1 use api_models::analytics::{payment_intents::PaymentIntentDimensions, Granularity, TimeRange}; use common_utils::errors::ReportSwitchExt; use diesel_models::enums::{AuthenticationType, Currency, IntentStatus}; use error_stack...
crates/analytics/src/payment_intents/filters.rs
analytics
full_file
550
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Paytm {}
crates/hyperswitch_connectors/src/connectors/paytm.rs
hyperswitch_connectors
impl_block
9
rust
null
Paytm
api::PaymentVoid for
impl api::PaymentVoid for for Paytm
null
null
null
null
null
null
null
null
impl HubspotRequest { pub fn new( country: String, hubspot_form_id: String, firstname: Secret<String>, email: Secret<String>, company_name: String, website: String, ) -> Self { Self { use_hubspot: true, country, hubspot_...
crates/external_services/src/hubspot_proxy.rs
external_services
impl_block
108
rust
null
HubspotRequest
null
impl HubspotRequest
null
null
null
null
null
null
null
null
pub async fn update_role( state: SessionState, user_from_token: UserFromToken, req: role_api::UpdateRoleRequest, role_id: &str, ) -> UserResponse<role_api::RoleInfoWithGroupsResponse> { let role_name = req.role_name.map(RoleName::new).transpose()?; let role_info = roles::RoleInfo::from_role_id_...
crates/router/src/core/user_role/role.rs
router
function_signature
608
rust
null
null
null
null
update_role
null
null
null
null
null
null
null
pub trait CustomerAddress { async fn get_address_update( &self, state: &SessionState, address_details: payments::AddressDetails, key: &[u8], storage_scheme: storage::enums::MerchantStorageScheme, merchant_id: id_type::MerchantId, ) -> CustomResult<storage::Address...
crates/router/src/utils.rs
router
trait_definition
167
rust
null
null
CustomerAddress
null
null
null
null
null
null
null
null
null
pub struct AmazonpayFinalizeRequest { charge_amount: ChargeAmount, shipping_address: AddressDetails, payment_intent: PaymentIntent, }
crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
AmazonpayFinalizeRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn make_payment_attempt( payment_id: &common_utils::id_type::PaymentId, merchant_id: &common_utils::id_type::MerchantId, organization_id: &common_utils::id_type::OrganizationId, money: (api::Amount, enums::Currency)
crates/router/src/core/payments/operations/payment_create.rs
router
function_signature
61
rust
null
null
null
null
make_payment_attempt
null
null
null
null
null
null
null
pub fn get_valid_connectors_for_rule(rule: JsValue) -> JsResult { let seed_data = SEED_DATA.get().ok_or("Data not seeded").err_to_js()?; let rule: ast::Rule<ConnectorSelection> = serde_wasm_bindgen::from_value(rule)?; let dir_rule = ast::lowering::lower_rule(rule).err_to_js()?; let mut valid_connectors...
crates/euclid_wasm/src/lib.rs
euclid_wasm
function_signature
502
rust
null
null
null
null
get_valid_connectors_for_rule
null
null
null
null
null
null
null
pub struct PaymentRevenueRecoveryMetadata { /// Total number of billing connector + recovery retries for a payment intent. pub total_retry_count: u16, /// Flag for the payment connector's call pub payment_connector_transmission: PaymentConnectorTransmission, /// Billing Connector Id to update the in...
crates/diesel_models/src/types.rs
diesel_models
struct_definition
339
rust
PaymentRevenueRecoveryMetadata
null
null
null
null
null
null
null
null
null
null
null
impl Engine for Kv2 { type ReturnType<'b, T: 'b> = Pin<Box<dyn Future<Output = error_stack::Result<T, HashiCorpError>> + Send + 'b>>; fn read(client: &HashiCorpVault, location: String) -> Self::ReturnType<'_, String> { Box::pin(async move { let mut split = location.split(':'); ...
crates/external_services/src/hashicorp_vault/core.rs
external_services
impl_block
211
rust
null
Kv2
Engine for
impl Engine for for Kv2
null
null
null
null
null
null
null
null
pub struct ReconToken { pub user_id: String, pub merchant_id: id_type::MerchantId, pub role_id: String, pub exp: u64, pub org_id: id_type::OrganizationId, pub profile_id: id_type::ProfileId, pub tenant_id: Option<id_type::TenantId>, #[serde(skip_serializing_if = "Option::is_none")] p...
crates/router/src/services/authentication.rs
router
struct_definition
95
rust
ReconToken
null
null
null
null
null
null
null
null
null
null
null
pub fn parse_routing_algorithm(&self) -> CustomResult<(), errors::ParsingError> { match self.routing_algorithm { Some(ref routing_algorithm) => { let _: routing::StaticRoutingAlgorithm = routing_algorithm .clone() .parse_value("StaticRoutingAlg...
crates/api_models/src/admin.rs
api_models
function_signature
73
rust
null
null
null
null
parse_routing_algorithm
null
null
null
null
null
null
null
pub struct Vault;
crates/router/src/core/payment_methods/vault.rs
router
struct_definition
4
rust
Vault
null
null
null
null
null
null
null
null
null
null
null
impl OrganizationNew { pub fn new( id: id_type::OrganizationId, organization_type: common_enums::OrganizationType, organization_name: Option<String>, ) -> Self { Self { org_id: id.clone(), org_name: organization_name.clone(), id, or...
crates/diesel_models/src/organization.rs
diesel_models
impl_block
129
rust
null
OrganizationNew
null
impl OrganizationNew
null
null
null
null
null
null
null
null
pub fn set_payment_method_response( self, payment_method: &'a domain::PaymentMethod, ) -> NetworkTokenizationBuilder<'a, PaymentMethodCreated> { let card_detail_from_locker = self.card.as_ref().map(|card| api::CardDetailFromLocker { scheme: None, issuer_country: card....
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
function_signature
460
rust
null
null
null
null
set_payment_method_response
null
null
null
null
null
null
null
File: crates/storage_impl/src/payouts.rs pub mod payout_attempt; #[allow(clippy::module_inception)] pub mod payouts; use diesel_models::{payout_attempt::PayoutAttempt, payouts::Payouts}; use crate::redis::kv_store::KvStorePartition; impl KvStorePartition for Payouts {} impl KvStorePartition for PayoutAttempt {}
crates/storage_impl/src/payouts.rs
storage_impl
full_file
78
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct FiservemeaPaymentCard { number: cards::CardNumber, expiry_date: FiservemeaExpiryDate, security_code: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs
hyperswitch_connectors
struct_definition
39
rust
FiservemeaPaymentCard
null
null
null
null
null
null
null
null
null
null
null
pub struct Card { pub cvv: Secret<String>, pub expiry_month: Secret<String>, pub expiry_year: Secret<String>, pub number: cards::CardNumber, }
crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs
hyperswitch_connectors
struct_definition
38
rust
Card
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Barclaycard { //TODO: implement functions when support enabled }
crates/hyperswitch_connectors/src/connectors/barclaycard.rs
hyperswitch_connectors
impl_block
19
rust
null
Barclaycard
ConnectorValidation for
impl ConnectorValidation for for Barclaycard
null
null
null
null
null
null
null
null
pub struct ThreeDSecureIoConnectorMetaData { pub ds_start_protocol_version: String, pub ds_end_protocol_version: String, pub acs_start_protocol_version: String, pub acs_end_protocol_version: String, }
crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs
hyperswitch_connectors
struct_definition
48
rust
ThreeDSecureIoConnectorMetaData
null
null
null
null
null
null
null
null
null
null
null
pub struct ApiPayload { pub service: String, pub card_data: Secret<String>, //encrypted card data pub order_data: OrderData, pub key_id: String, pub should_send_token: bool, }
crates/router/src/types/payment_methods.rs
router
struct_definition
48
rust
ApiPayload
null
null
null
null
null
null
null
null
null
null
null
impl ErrorCategory { pub fn should_perform_elimination_routing(self) -> bool { match self { Self::ProcessorDowntime | Self::ProcessorDeclineUnauthorized => true, Self::IssueWithPaymentMethod | Self::ProcessorDeclineIncorrectData | Self::FrmDecline ...
crates/common_enums/src/enums.rs
common_enums
impl_block
89
rust
null
ErrorCategory
null
impl ErrorCategory
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Payme {}
crates/hyperswitch_connectors/src/connectors/payme.rs
hyperswitch_connectors
impl_block
9
rust
null
Payme
api::PaymentCapture for
impl api::PaymentCapture for for Payme
null
null
null
null
null
null
null
null
pub struct CallbackMapper { pub id: String, pub callback_mapper_id_type: common_enums::CallbackMapperIdType, pub data: CallbackMapperData, pub created_at: time::PrimitiveDateTime, pub last_modified_at: time::PrimitiveDateTime, }
crates/hyperswitch_domain_models/src/callback_mapper.rs
hyperswitch_domain_models
struct_definition
57
rust
CallbackMapper
null
null
null
null
null
null
null
null
null
null
null
pub fn get_payment_method_type(&self) -> Option<&Vec<RequestPaymentMethodTypes>> { self.payment_method_subtypes.as_ref() }
crates/common_types/src/payment_methods.rs
common_types
function_signature
31
rust
null
null
null
null
get_payment_method_type
null
null
null
null
null
null
null
pub struct AffirmRouterData<T> { pub amount: MinorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
AffirmRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct CardToken { /// The card holder's name pub card_holder_name: Option<Secret<String>>, /// The CVC number for the card pub card_cvc: Option<Secret<String>>, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
47
rust
CardToken
null
null
null
null
null
null
null
null
null
null
null
pub struct RecipientBankAccountRequest { #[serde(rename = "external_account[object]")] external_account_object: String, #[serde(rename = "external_account[country]")] external_account_country: enums::CountryAlpha2, #[serde(rename = "external_account[currency]")] external_account_currency: Curren...
crates/hyperswitch_connectors/src/connectors/stripe/transformers/connect.rs
hyperswitch_connectors
struct_definition
154
rust
RecipientBankAccountRequest
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Nmi { fn validate_psync_reference_id( &self, _data: &PaymentsSyncData, _is_three_ds: bool, _status: enums::AttemptStatus, _connector_meta_data: Option<common_utils::pii::SecretSerdeValue>, ) -> CustomResult<(), ConnectorError> { // in ...
crates/hyperswitch_connectors/src/connectors/nmi.rs
hyperswitch_connectors
impl_block
197
rust
null
Nmi
ConnectorValidation for
impl ConnectorValidation for for Nmi
null
null
null
null
null
null
null
null
impl super::KafkaMessage for KafkaFraudCheck<'_> { fn key(&self) -> String { format!( "{}_{}_{}_{}", self.merchant_id.get_string_repr(), self.payment_id.get_string_repr(), self.attempt_id, self.frm_id ) } fn event_type(&self) -> cr...
crates/router/src/services/kafka/fraud_check.rs
router
impl_block
94
rust
null
KafkaFraudCheck
super::KafkaMessage for
impl super::KafkaMessage for for KafkaFraudCheck
null
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Dlocal {}
crates/hyperswitch_connectors/src/connectors/dlocal.rs
hyperswitch_connectors
impl_block
9
rust
null
Dlocal
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Dlocal
null
null
null
null
null
null
null
null
pub fn build_unified_connector_service_auth_metadata( #[cfg(feature = "v1")
crates/router/src/core/unified_connector_service.rs
router
function_signature
19
rust
null
null
null
null
build_unified_connector_service_auth_metadata
null
null
null
null
null
null
null
pub struct SantanderPixVoidResponse { #[serde(rename = "calendario")] pub calendar: SantanderCalendar, #[serde(rename = "txid")] pub transaction_id: String, #[serde(rename = "revisao")] pub revision: i32, #[serde(rename = "devedor")] pub debtor: Option<SantanderDebtor>, pub location:...
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
176
rust
SantanderPixVoidResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ReqState { pub event_context: events::EventContext<crate::events::EventType, EventsHandler>, }
crates/router/src/routes/app.rs
router
struct_definition
25
rust
ReqState
null
null
null
null
null
null
null
null
null
null
null
impl RecoveryDeciderClientConfig { /// Validate the configuration pub fn validate(&self) -> Result<(), RecoveryDeciderError> { use common_utils::fp_utils::when; when(self.base_url.is_empty(), || { Err(RecoveryDeciderError::ConfigError( "Recovery Decider base URL cann...
crates/external_services/src/grpc_client/revenue_recovery/recovery_decider_client.rs
external_services
impl_block
218
rust
null
RecoveryDeciderClientConfig
null
impl RecoveryDeciderClientConfig
null
null
null
null
null
null
null
null
pub struct Card { pub card_number: StrongSecret<String>, }
crates/api_models/src/blocklist.rs
api_models
struct_definition
14
rust
Card
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Zsl { fn id(&self) -> &'static str { "zsl" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/x-www-form-urlencoded" } fn base_url<'a>(&self, conn...
crates/hyperswitch_connectors/src/connectors/zsl.rs
hyperswitch_connectors
impl_block
316
rust
null
Zsl
ConnectorCommon for
impl ConnectorCommon for for Zsl
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/secrets_interface/secret_state.rs Public functions: 3 Public structs: 3 //! Module to manage encrypted and decrypted states for a given type. use std::marker::PhantomData; use serde::{Deserialize, Deserializer}; /// Trait defining the states of a secret pub trait SecretStat...
crates/hyperswitch_interfaces/src/secrets_interface/secret_state.rs
hyperswitch_interfaces
full_file
444
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn call_update_gateway_score_open_router() {}
crates/openapi/src/routes/routing.rs
openapi
function_signature
11
rust
null
null
null
null
call_update_gateway_score_open_router
null
null
null
null
null
null
null
pub struct ThreeDSPaymentsRequest { id_merchant: Secret<String>, id_session: String, amount: MinorUnit, currency: String, #[serde(rename = "CCNumber")] cc_number: cards::CardNumber, #[serde(rename = "CCExpDate")] cc_exp_date: Secret<String>, #[serde(rename = "CVVCode")] cvv_code:...
crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs
hyperswitch_connectors
struct_definition
181
rust
ThreeDSPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn convert_currency( state: SessionState, amount: i64, to_currency: String, from_currency: String, ) -> CustomResult<api_models::currency::CurrencyConversionResponse, ForexError> { let forex_api = state.conf.forex_api.get_inner(); let rates = get_forex_rates(&state, forex_api.data_expi...
crates/router/src/utils/currency.rs
router
function_signature
266
rust
null
null
null
null
convert_currency
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SamsungPaySessionTokenResponse { "type": "object", "required": [ "version", "service_id", "order_number", "merchant", "amount", "protocol", "allowed_brands", "billing_address_required", "shipping_address_required" ], "properties": { ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
335
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SamsungPaySessionTokenResponse" ]
null
null
null
null
impl api::Payouts for Adyenplatform {}
crates/hyperswitch_connectors/src/connectors/adyenplatform.rs
hyperswitch_connectors
impl_block
11
rust
null
Adyenplatform
api::Payouts for
impl api::Payouts for for Adyenplatform
null
null
null
null
null
null
null
null
File: crates/diesel_models/src/query/address.rs Public functions: 8 use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods}; use super::generics; use crate::{ address::{Address, AddressNew, AddressUpdateInternal}, errors, schema::address::dsl, PgPooledConn, StorageResult, }; i...
crates/diesel_models/src/query/address.rs
diesel_models
full_file
980
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_network_token_resource_object( request_details: &api::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn masking::ErasedMaskSerialize>, errors::NetworkTokenizationError> { let response: NetworkTokenWebhookResponse = request_details .body .parse_struct("NetworkTokenWebhookRes...
crates/router/src/core/webhooks/network_tokenization_incoming.rs
router
function_signature
96
rust
null
null
null
null
get_network_token_resource_object
null
null
null
null
null
null
null
pub struct GlobalpayRefreshTokenErrorResponse { pub error_code: String, pub detailed_error_description: String, }
crates/hyperswitch_connectors/src/connectors/globalpay/response.rs
hyperswitch_connectors
struct_definition
24
rust
GlobalpayRefreshTokenErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub const fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, amount_converter_webhooks: &StringMinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/stripe.rs
hyperswitch_connectors
function_signature
41
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub struct DigitalvirgoPaymentSyncResponse { payment_status: DigitalvirgoPaymentSyncStatus, transaction_id: String, }
crates/hyperswitch_connectors/src/connectors/digitalvirgo/transformers.rs
hyperswitch_connectors
struct_definition
27
rust
DigitalvirgoPaymentSyncResponse
null
null
null
null
null
null
null
null
null
null
null
impl scheduler::SchedulerAppState for AppState { fn get_tenants(&self) -> Vec<id_type::TenantId> { self.conf.multitenancy.get_tenant_ids() } }
crates/router/src/routes/app.rs
router
impl_block
40
rust
null
AppState
scheduler::SchedulerAppState for
impl scheduler::SchedulerAppState for for AppState
null
null
null
null
null
null
null
null
pub async fn retrieve_merchant_routing_dictionary( state: SessionState, merchant_context: domain::MerchantContext, profile_id_list: Option<Vec<common_utils::id_type::ProfileId>>, query_params: RoutingRetrieveQuery, transaction_type: enums::TransactionType, ) -> RouterResponse<routing_types::RoutingK...
crates/router/src/core/routing.rs
router
function_signature
629
rust
null
null
null
null
retrieve_merchant_routing_dictionary
null
null
null
null
null
null
null
pub async fn payments_reject( state: web::Data<app::AppState>, http_req: actix_web::HttpRequest, json_payload: web::Json<payment_types::PaymentsRejectRequest>, path: web::Path<common_utils::id_type::PaymentId>, ) -> impl Responder { let mut payload = json_payload.into_inner(); let payment_id = p...
crates/router/src/routes/payments.rs
router
function_signature
463
rust
null
null
null
null
payments_reject
null
null
null
null
null
null
null
impl api::PaymentSession for Braintree {}
crates/hyperswitch_connectors/src/connectors/braintree.rs
hyperswitch_connectors
impl_block
9
rust
null
Braintree
api::PaymentSession for
impl api::PaymentSession for for Braintree
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_capture.rs Public structs: 1 use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use async_trait::async_trait; use common_utils::ext_traits::AsyncExt; use error_stack::ResultExt; use router_env::{instrument, tracing}; use super::{BoxedOperatio...
crates/router/src/core/payments/operations/payment_capture.rs
router
full_file
2,470
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ThreeDsEligibilityResponse { pub three_ds_server_trans_id: String, pub scheme_id: Option<String>, pub acs_protocol_versions: Option<Vec<AcsProtocolVersion>>, pub ds_protocol_versions: Option<Vec<String>>, pub three_ds_method_data_form: Option<ThreeDsMethodDataForm>, pub three_ds_metho...
crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
hyperswitch_connectors
struct_definition
112
rust
ThreeDsEligibilityResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_payout_link( state: &SessionState, business_profile: &domain::Profile, customer_id: &id_type::CustomerId, merchant_id: &id_type::MerchantId, req: &payouts::PayoutCreateRequest, payout_id: &id_type::PayoutId, locale: &str, ) -> RouterResult<PayoutLink> { let payout_lin...
crates/router/src/core/payouts.rs
router
function_signature
1,083
rust
null
null
null
null
create_payout_link
null
null
null
null
null
null
null
pub fn validate_config(input: proc_macro::TokenStream) -> proc_macro::TokenStream { let input = syn::parse_macro_input!(input as syn::DeriveInput); macros::misc::validate_config(input) .unwrap_or_else(|error| error.into_compile_error()) .into() }
crates/router_derive/src/lib.rs
router_derive
function_signature
64
rust
null
null
null
null
validate_config
null
null
null
null
null
null
null
impl api::PaymentVoid for Barclaycard {}
crates/hyperswitch_connectors/src/connectors/barclaycard.rs
hyperswitch_connectors
impl_block
10
rust
null
Barclaycard
api::PaymentVoid for
impl api::PaymentVoid for for Barclaycard
null
null
null
null
null
null
null
null
impl api::RefundSync for Coinbase {}
crates/hyperswitch_connectors/src/connectors/coinbase.rs
hyperswitch_connectors
impl_block
9
rust
null
Coinbase
api::RefundSync for
impl api::RefundSync for for Coinbase
null
null
null
null
null
null
null
null
impl api::Refund for Razorpay {}
crates/hyperswitch_connectors/src/connectors/razorpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Razorpay
api::Refund for
impl api::Refund for for Razorpay
null
null
null
null
null
null
null
null
impl<const T: u8> PaymentAuthorize for DummyConnector<T> {}
crates/hyperswitch_connectors/src/connectors/dummyconnector.rs
hyperswitch_connectors
impl_block
15
rust
null
DummyConnector
PaymentAuthorize for
impl PaymentAuthorize for for DummyConnector
null
null
null
null
null
null
null
null
pub async fn update_card_info( state: routes::SessionState, card_info_request: cards_info_api_types::CardInfoUpdateRequest, ) -> RouterResponse<cards_info_api_types::CardInfoResponse> { let db = state.store.as_ref(); cards_info::CardsInfoInterface::update_card_info( db, card_info_request...
crates/router/src/core/cards_info.rs
router
function_signature
274
rust
null
null
null
null
update_card_info
null
null
null
null
null
null
null
pub fn new( algorithm_id_with_timestamp: DynamicAlgorithmWithTimestamp< common_utils::id_type::RoutingId, >, ) -> Self { Self { algorithm_id_with_timestamp, enabled_feature: DynamicRoutingFeatures::None, } }
crates/api_models/src/routing.rs
api_models
function_signature
56
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub fn server(config: AppState) -> Scope { web::scope("/configs") .app_data(web::Data::new(config)) .service(web::resource("/").route(web::post().to(config_key_create))) .service( web::resource("/{key}") .route(web::get().to(config_key_retr...
crates/router/src/routes/app.rs
router
function_signature
98
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub struct ConnectorParamsWithMoreUrls { /// base url pub base_url: String, /// base url for bank redirects pub base_url_bank_redirects: String, }
crates/hyperswitch_domain_models/src/connector_endpoints.rs
hyperswitch_domain_models
struct_definition
39
rust
ConnectorParamsWithMoreUrls
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/payments/metrics.rs Public structs: 1 use std::collections::HashSet; use api_models::analytics::{ payments::{PaymentDimensions, PaymentFilters, PaymentMetrics, PaymentMetricsBucketIdentifier}, Granularity, TimeRange, }; use diesel_models::enums as storage_enums; use time::Primitive...
crates/analytics/src/payments/metrics.rs
analytics
full_file
1,515
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct IatapayPaymentsResponse { pub status: IatapayPaymentStatus, pub iata_payment_id: Option<String>, pub iata_refund_id: Option<String>, pub merchant_id: Option<Secret<String>>, pub merchant_payment_id: Option<String>, pub amount: FloatMajorUnit, pub currency: String, pub checkout...
crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs
hyperswitch_connectors
struct_definition
101
rust
IatapayPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/transformers.rs Public functions: 23 Public structs: 1 use std::{fmt::Debug, marker::PhantomData, str::FromStr}; use api_models::payments::{ Address, ConnectorMandateReferenceId, CustomerDetails, CustomerDetailsResponse, FrmMessage, MandateIds, RequestSurchargeDetails, ...
crates/router/src/core/payments/transformers.rs#chunk0
router
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct MandateAmountData { pub amount: MinorUnit, pub currency: Currency, pub start_date: Option<PrimitiveDateTime>, pub end_date: Option<PrimitiveDateTime>, pub metadata: Option<pii::SecretSerdeValue>, }
crates/hyperswitch_domain_models/src/mandates.rs
hyperswitch_domain_models
struct_definition
54
rust
MandateAmountData
null
null
null
null
null
null
null
null
null
null
null
pub struct RazorpaySyncResponse { items: Vec<RazorpaySyncItem>, }
crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
RazorpaySyncResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/fraud_check/flows/fulfillment_flow.rs Public functions: 2 use common_utils::ext_traits::{OptionExt, ValueExt}; use error_stack::ResultExt; use router_env::tracing::{self, instrument}; use crate::{ core::{ errors::RouterResult, fraud_check::frm_core_types::FrmFulfillmentReques...
crates/router/src/core/fraud_check/flows/fulfillment_flow.rs
router
full_file
1,093
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct RefusedResponse { pub refusal_description: String, // Access Worldpay returns a raw response code in the refusalCode field (if enabled) containing the unmodified response code received either directly from the card scheme for Worldpay-acquired transactions, or from third party acquirers. pub refu...
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
struct_definition
116
rust
RefusedResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_domain_models/src/router_request_types/revenue_recovery.rs Public structs: 3 use common_enums::enums; use crate::connector_endpoints; #[derive(Debug, Clone)] pub struct BillingConnectorPaymentsSyncRequest { /// unique id for making billing connector psync call pub billing_connector_...
crates/hyperswitch_domain_models/src/router_request_types/revenue_recovery.rs
hyperswitch_domain_models
full_file
253
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/payone.rs Public functions: 2 Public structs: 1 pub mod transformers; use api_models::webhooks::{IncomingWebhookEvent, ObjectReferenceId}; use base64::Engine; #[cfg(feature = "payouts")] use common_utils::request::RequestContent; use common_utils::{consts::BASE64_E...
crates/hyperswitch_connectors/src/connectors/payone.rs
hyperswitch_connectors
full_file
3,865
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_forex_rates( state: &SessionState, data_expiration_delay: u32, ) -> CustomResult<FxExchangeRatesCacheEntry, ForexError> { if let Some(local_rates) = retrieve_forex_from_local_cache().await { if local_rates.is_expired(data_expiration_delay) { // expired local data ...
crates/router/src/utils/currency.rs
router
function_signature
176
rust
null
null
null
null
get_forex_rates
null
null
null
null
null
null
null
pub async fn save_migration_payment_method( req: pm_api::PaymentMethodCreate, migration_status: &mut migration::RecordMigrationStatusBuilder, controller: &dyn PaymentMethodsController, ) -> CustomResult<ApplicationResponse<pm_api::PaymentMethodResponse>, errors::ApiErrorResponse> { let connector_mandate...
crates/payment_methods/src/core/migration/payment_methods.rs
payment_methods
function_signature
253
rust
null
null
null
null
save_migration_payment_method
null
null
null
null
null
null
null
File: crates/router/src/utils/user/two_factor_auth.rs Public functions: 16 use common_utils::pii; use error_stack::ResultExt; use masking::{ExposeInterface, PeekInterface}; use totp_rs::{Algorithm, TOTP}; use crate::{ consts, core::errors::{UserErrors, UserResult}, routes::SessionState, }; pub fn genera...
crates/router/src/utils/user/two_factor_auth.rs
router
full_file
1,854
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ReverseLookup { pub async fn find_by_lookup_id(lookup_id: &str, conn: &PgPooledConn) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::lookup_id.eq(lookup_id.to_owned()), ) .await } }
crates/diesel_models/src/query/reverse_lookup.rs
diesel_models
impl_block
76
rust
null
ReverseLookup
null
impl ReverseLookup
null
null
null
null
null
null
null
null
File: crates/storage_impl/src/mandate.rs use diesel_models::Mandate; use crate::redis::kv_store::KvStorePartition; impl KvStorePartition for Mandate {}
crates/storage_impl/src/mandate.rs
storage_impl
full_file
40
null
null
null
null
null
null
null
null
null
null
null
null
null
pub trait IntoDirValue { fn into_dir_value(self) -> Result<dir::DirValue, KgraphError>; }
crates/kgraph_utils/src/transformers.rs
kgraph_utils
trait_definition
26
rust
null
null
IntoDirValue
null
null
null
null
null
null
null
null
null
pub struct WorldpayvantivPaymentMetadata { pub report_group: Option<String>, }
crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
WorldpayvantivPaymentMetadata
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments.rs Public functions: 93 Public structs: 15 pub mod access_token; pub mod conditional_configs; pub mod customers; pub mod flows; pub mod helpers; pub mod operations; #[cfg(feature = "retry")] pub mod retry; pub mod routing; #[cfg(feature = "v2")] pub mod session_operation; pub m...
crates/router/src/core/payments.rs#chunk0
router
chunk
8,178
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentRequestBankRedirect { pub payment_method: TrustpayPaymentMethod, pub merchant_identification: MerchantIdentification, pub payment_information: BankPaymentInformation, pub callback_urls: CallbackURLs, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
45
rust
PaymentRequestBankRedirect
null
null
null
null
null
null
null
null
null
null
null
pub struct CardTypeIndicators { issuance_country_code: Option<Secret<String>>, is_durbin_regulated: Option<bool>, card_product_types: Secret<Vec<String>>, }
crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
hyperswitch_connectors
struct_definition
37
rust
CardTypeIndicators
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_all_combined_kv_database<F, RFut, DFut, T>( redis_fut: RFut, database_call: F, limit: Option<i64>, ) -> error_stack::Result<Vec<T>, StorageError> where T: UniqueConstraints, F: FnOnce() -> DFut, RFut: futures::Future<Output = error_stack::Result<Vec<T>, redis_interface:...
crates/storage_impl/src/utils.rs
storage_impl
function_signature
388
rust
null
null
null
null
find_all_combined_kv_database
null
null
null
null
null
null
null
connectors::Thunes, connectors::Tokenio, connectors::Trustpay, connectors::Trustpayments, connectors::Tsys, connectors::UnifiedAuthenticationService, connectors::Wise, connectors::Worldline, connectors::Volt, connectors::Worldpay, connectors::Worldpayvantiv, connectors::W...
crates/hyperswitch_connectors/src/default_implementations_v2.rs#chunk3
hyperswitch_connectors
chunk
6,597
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ErrorObject { pub code: String, pub message: String, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
ErrorObject
null
null
null
null
null
null
null
null
null
null
null
pub struct AdminApiAuthWithApiKeyFallback { pub organization_id: Option<id_type::OrganizationId>, }
crates/router/src/services/authentication.rs
router
struct_definition
23
rust
AdminApiAuthWithApiKeyFallback
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_parent_group_info( state: SessionState, user_from_token: auth::UserFromToken, request: role_api::GetParentGroupsInfoQueryParams, ) -> UserResponse<Vec<role_api::ParentGroupInfo>> { let role_info = roles::RoleInfo::from_role_id_org_id_tenant_id( &state, &user_from_token.r...
crates/router/src/core/user_role.rs
router
function_signature
370
rust
null
null
null
null
get_parent_group_info
null
null
null
null
null
null
null
pub async fn health() -> impl actix_web::Responder { logger::info!("Scheduler health was called"); actix_web::HttpResponse::Ok().body("Scheduler health is good") }
crates/router/src/bin/scheduler.rs
router
function_signature
40
rust
null
null
null
null
health
null
null
null
null
null
null
null
impl ConnectorSpecifications for Noon { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&NOON_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*NOON_SUPPORTED_PAYMENT_METHODS) } fn get_supported_web...
crates/hyperswitch_connectors/src/connectors/noon.rs
hyperswitch_connectors
impl_block
104
rust
null
Noon
ConnectorSpecifications for
impl ConnectorSpecifications for for Noon
null
null
null
null
null
null
null
null
pub struct SyncResponseBankRedirect { pub payment_information: BankPaymentInformationResponse, }
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
SyncResponseBankRedirect
null
null
null
null
null
null
null
null
null
null
null
pub struct CustomerResponse { /// The identifier for the customer object #[schema(value_type = String, max_length = 64, min_length = 1, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")] pub customer_id: id_type::CustomerId, /// The customer's name #[schema(max_length = 255, value_type = Option<String>, e...
crates/api_models/src/customers.rs
api_models
struct_definition
602
rust
CustomerResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct BillingAddress { name: Option<Secret<String>>, street: Option<Secret<String>>, city: Option<String>, post_code: Option<Secret<String>>, country: Option<enums::CountryAlpha2>, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
48
rust
BillingAddress
null
null
null
null
null
null
null
null
null
null
null
pub struct BraintreeThreeDsResponse { pub nonce: Secret<String>, pub liability_shifted: bool, pub liability_shift_possible: bool, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
BraintreeThreeDsResponse
null
null
null
null
null
null
null
null
null
null
null