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 struct MifinityData { pub date_of_birth: Secret<Date>, pub language_preference: Option<String>, }
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
25
rust
MifinityData
null
null
null
null
null
null
null
null
null
null
null
File: crates/api_models/src/external_service_auth.rs Public functions: 1 Public structs: 3 use common_utils::{id_type, pii}; use masking::Secret; #[derive(Debug, serde::Serialize)] pub struct ExternalTokenResponse { pub token: Secret<String>, } #[derive(Debug, serde::Serialize, serde::Deserialize)] pub struct E...
crates/api_models/src/external_service_auth.rs
api_models
full_file
219
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_invoice_webhook_data_from_body( body: &[u8], ) -> CustomResult<Self, errors::ConnectorError> { let webhook_body = body .parse_struct::<Self>("ChargebeeInvoiceBody") .change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?; Ok(webhook_body) }
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
function_signature
73
rust
null
null
null
null
get_invoice_webhook_data_from_body
null
null
null
null
null
null
null
impl Default for Mandates { fn default() -> Self { Self { supported_payment_methods: SupportedPaymentMethodsForMandate(HashMap::from([ ( enums::PaymentMethod::PayLater, SupportedPaymentMethodTypesForMandate(HashMap::from([( ...
crates/payment_methods/src/configs/payment_connector_required_fields.rs
payment_methods
impl_block
646
rust
null
Mandates
Default for
impl Default for for Mandates
null
null
null
null
null
null
null
null
pub struct BarclaycardAuthValidateRequest { payment_information: PaymentInformation, client_reference_information: ClientReferenceInformation, consumer_authentication_information: BarclaycardConsumerAuthInformationValidateRequest, order_information: OrderInformation, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
47
rust
BarclaycardAuthValidateRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn extract_merchant_details_url(self, paypal_base_url: &str) -> RouterResult<String> { self.links .first() .and_then(|link| link.href.strip_prefix('/')) .map(|link| format!("{paypal_base_url}{link}")) .ok_or(ApiErrorResponse::InternalServerError) ....
crates/router/src/types/api/connector_onboarding/paypal.rs
router
function_signature
84
rust
null
null
null
null
extract_merchant_details_url
null
null
null
null
null
null
null
File: crates/common_utils/src/types/user/core.rs Public structs: 1 use diesel::{deserialize::FromSqlRow, expression::AsExpression}; use crate::id_type; /// Struct for lineageContext #[derive(Clone, Debug, serde::Serialize, serde::Deserialize, AsExpression, FromSqlRow)] #[diesel(sql_type = diesel::sql_types::Jsonb)]...
crates/common_utils/src/types/user/core.rs
common_utils
full_file
202
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct GooglePayData { googlepay: GooglePayDetails, #[serde(rename = "type")] payment_method_type: AirwallexPaymentType, }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
GooglePayData
null
null
null
null
null
null
null
null
null
null
null
pub fn get_error_reason( error_info: Option<String>, detailed_error_info: Option<String>, avs_error_info: Option<String>, ) -> Option<String> { match (error_info, detailed_error_info, avs_error_info) { (Some(message), Some(details), Some(avs_message)) => Some(format!( "{message}, det...
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
function_signature
237
rust
null
null
null
null
get_error_reason
null
null
null
null
null
null
null
pub async fn get_store( config: &Settings, tenant: &dyn TenantConfig, cache_store: Arc<RedisStore>, test_transaction: bool, ) -> StorageResult<Store> { let master_config = config.master_database.clone().into_inner(); #[cfg(feature = "olap")] let replica_config = config.replica_database.clon...
crates/router/src/services.rs
router
function_signature
339
rust
null
null
null
null
get_store
null
null
null
null
null
null
null
- **connector:** - [Worldpay] Currency Unit Conversion ([#2436](https://github.com/juspay/hyperswitch/pull/2436)) ([`b78109b`](https://github.com/juspay/hyperswitch/commit/b78109bc93433e0886b0b8656231899df84da8cf)) - [noon] use connector_request_reference_id for sync ([#2558](https://github.com/juspay/hyperswitch/p...
CHANGELOG.md#chunk49
null
doc_chunk
8,121
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl RefundSync for Threedsecureio {}
crates/hyperswitch_connectors/src/connectors/threedsecureio.rs
hyperswitch_connectors
impl_block
10
rust
null
Threedsecureio
RefundSync for
impl RefundSync for for Threedsecureio
null
null
null
null
null
null
null
null
impl api::PaymentToken for Bankofamerica {}
crates/hyperswitch_connectors/src/connectors/bankofamerica.rs
hyperswitch_connectors
impl_block
11
rust
null
Bankofamerica
api::PaymentToken for
impl api::PaymentToken for for Bankofamerica
null
null
null
null
null
null
null
null
pub struct PaystackPaymentsRequest { amount: MinorUnit, currency: Currency, email: Email, eft: PaystackEftProvider, }
crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
PaystackPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
} } } #[derive(Default, Debug, Serialize, Deserialize, Eq, PartialEq, Clone)] #[serde(rename_all = "PascalCase")] pub struct WebhookReferences { pub merchant_reference: Option<String>, pub payment_id: Option<String>, pub payment_request_id: Option<String>, } #[derive(Debug, Clone, Serialize, D...
crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs#chunk2
hyperswitch_connectors
chunk
280
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Nmi {}
crates/hyperswitch_connectors/src/connectors/nmi.rs
hyperswitch_connectors
impl_block
10
rust
null
Nmi
api::RefundSync for
impl api::RefundSync for for Nmi
null
null
null
null
null
null
null
null
pub struct ExtendedCardInfoChoice { pub enabled: bool, }
crates/api_models/src/admin.rs
api_models
struct_definition
14
rust
ExtendedCardInfoChoice
null
null
null
null
null
null
null
null
null
null
null
pub fn to_merchant_category_name(&self) -> MerchantCategory { match self { Self::Mcc5411 => MerchantCategory::GroceryStoresSupermarkets, Self::Mcc7011 => MerchantCategory::LodgingHotelsMotelsResorts, Self::Mcc0763 => MerchantCategory::AgriculturalCooperatives, Sel...
crates/common_enums/src/enums.rs
common_enums
function_signature
156
rust
null
null
null
null
to_merchant_category_name
null
null
null
null
null
null
null
pub struct FacilitapayPaymentsResponse { pub data: TransactionData, }
crates/hyperswitch_connectors/src/connectors/facilitapay/responses.rs
hyperswitch_connectors
struct_definition
17
rust
FacilitapayPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/blocklist/post-blocklist.mdx # Type: Doc File --- openapi: post /blocklist ---
api-reference/v1/blocklist/post-blocklist.mdx
null
doc_file
30
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl AcceptDispute for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
10
rust
null
Worldpayvantiv
AcceptDispute for
impl AcceptDispute for for Worldpayvantiv
null
null
null
null
null
null
null
null
pub async fn get_single_merchant_id( state: &SessionState, user_role: &UserRole, org_id: &id_type::OrganizationId, ) -> UserResult<id_type::MerchantId> { let (_, entity_type) = user_role .get_entity_id_and_type() .ok_or(UserErrors::InternalServerError)?; match entity_type { E...
crates/router/src/utils/user_role.rs
router
function_signature
221
rust
null
null
null
null
get_single_merchant_id
null
null
null
null
null
null
null
pub async fn get_global_search_results( state: web::Data<AppState>, req: actix_web::HttpRequest, json_payload: web::Json<GetGlobalSearchRequest>, ) -> impl Responder { let flow = AnalyticsFlow::GetGlobalSearchResults; Box::pin(api::server_wrap( flow, s...
crates/router/src/analytics.rs
router
function_signature
1,131
rust
null
null
null
null
get_global_search_results
null
null
null
null
null
null
null
pub struct DebitRoutingAccumulator { pub transaction_count: u64, pub savings_amount: u64, }
crates/analytics/src/payments/accumulator.rs
analytics
struct_definition
28
rust
DebitRoutingAccumulator
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Opayo {}
crates/hyperswitch_connectors/src/connectors/opayo.rs
hyperswitch_connectors
impl_block
9
rust
null
Opayo
api::PaymentVoid for
impl api::PaymentVoid for for Opayo
null
null
null
null
null
null
null
null
pub struct AddVaultRequest<D> { pub entity_id: id_type::GlobalCustomerId, pub vault_id: domain::VaultId, pub data: D, pub ttl: i64, }
crates/router/src/types/payment_methods.rs
router
struct_definition
44
rust
AddVaultRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalMandateStruct { experience_context: Option<ContextStruct>, usage_type: UsageType, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
PaypalMandateStruct
null
null
null
null
null
null
null
null
null
null
null
pub struct Signifyd;
crates/hyperswitch_connectors/src/connectors/signifyd.rs
hyperswitch_connectors
struct_definition
6
rust
Signifyd
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<FileMetadata> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/file.rs
diesel_models
function_signature
34
rust
null
null
null
null
insert
null
null
null
null
null
null
null
pub struct MerchantConnectorAccountUpdateInternal { pub connector_type: Option<storage_enums::ConnectorType>, pub connector_name: Option<String>, pub connector_account_details: Option<Encryption>, pub connector_label: Option<String>, pub test_mode: Option<bool>, pub disabled: Option<bool>, p...
crates/diesel_models/src/merchant_connector_account.rs
diesel_models
struct_definition
266
rust
MerchantConnectorAccountUpdateInternal
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/core/revenue_recovery/transformers.rs use common_enums::AttemptStatus; use masking::PeekInterface; use crate::{ core::revenue_recovery::types::RevenueRecoveryPaymentsAttemptStatus, types::transformers::ForeignFrom, }; impl ForeignFrom<AttemptStatus> for RevenueRecoveryPaymentsAttemptS...
crates/router/src/core/revenue_recovery/transformers.rs
router
full_file
913
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/utils/user_role.rs Public functions: 15 use std::{ cmp, collections::{HashMap, HashSet}, }; use api_models::user_role::role as role_api; use common_enums::{EntityType, ParentGroup, PermissionGroup}; use common_utils::id_type; use diesel_models::{ enums::{UserRoleVersion, UserStatu...
crates/router/src/utils/user_role.rs
router
full_file
3,891
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct MerchantConnectorAccount { pub merchant_id: id_type::MerchantId, pub connector_name: String, pub connector_account_details: Encryption, pub test_mode: Option<bool>, pub disabled: Option<bool>, pub merchant_connector_id: id_type::MerchantConnectorAccountId, #[diesel(deserialize_as ...
crates/diesel_models/src/merchant_connector_account.rs
diesel_models
struct_definition
366
rust
MerchantConnectorAccount
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Zsl { fn is_webhook_source_verification_mandatory(&self) -> bool { true } }
crates/hyperswitch_connectors/src/connectors/zsl.rs
hyperswitch_connectors
impl_block
28
rust
null
Zsl
ConnectorValidation for
impl ConnectorValidation for for Zsl
null
null
null
null
null
null
null
null
pub struct MandateDetails { pub update_mandate_id: Option<String>, }
crates/hyperswitch_domain_models/src/mandates.rs
hyperswitch_domain_models
struct_definition
18
rust
MandateDetails
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GenerateDisputeReport; 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
326
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl ConnectorValidation for Cashtocode {}
crates/hyperswitch_connectors/src/connectors/cashtocode.rs
hyperswitch_connectors
impl_block
8
rust
null
Cashtocode
ConnectorValidation for
impl ConnectorValidation for for Cashtocode
null
null
null
null
null
null
null
null
pub fn disable_algorithm_id(&mut self, dynamic_routing_type: DynamicRoutingType) { match dynamic_routing_type { DynamicRoutingType::SuccessRateBasedRouting => { if let Some(success_based_algo) = &self.success_based_algorithm { self.success_based_algorithm = Some(S...
crates/api_models/src/routing.rs
api_models
function_signature
237
rust
null
null
null
null
disable_algorithm_id
null
null
null
null
null
null
null
impl ProxyRequestWrapper { pub async fn get_proxy_record( &self, state: &SessionState, key_store: &domain::MerchantKeyStore, storage_scheme: common_enums::enums::MerchantStorageScheme, ) -> RouterResult<ProxyRecord> { let token = &self.0.token; match self.0.token...
crates/router/src/core/proxy/utils.rs
router
impl_block
519
rust
null
ProxyRequestWrapper
null
impl ProxyRequestWrapper
null
null
null
null
null
null
null
null
pub struct PaymentIntentCount;
crates/api_models/src/analytics/payment_intents.rs
api_models
struct_definition
6
rust
PaymentIntentCount
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/routes/dummy_connector/errors.rs #[derive(Clone, Debug, serde::Serialize)] #[serde(rename_all = "snake_case")] pub enum ErrorType { ServerNotAvailable, ObjectNotFound, InvalidRequestError, } #[derive(Debug, Clone, router_derive::ApiError)] #[error(error_type_enum = ErrorType)] // T...
crates/router/src/routes/dummy_connector/errors.rs
router
full_file
884
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ApplePayPredecrypt { token: cards::CardNumber, #[serde(rename = "type")] decrypt_type: String, token_type: String, expiry_month: Secret<String>, expiry_year: Secret<String>, eci: Option<String>, cryptogram: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
hyperswitch_connectors
struct_definition
64
rust
ApplePayPredecrypt
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_and_delete_cvc_from_payment_token( state: &routes::SessionState, payment_token: &String, payment_method: common_enums::PaymentMethod, encryption_key: &masking::Secret<Vec<u8>>, ) -> RouterResult<masking::Secret<String>> { let redis_conn = state .store .get_redis...
crates/router/src/core/payment_methods/vault.rs
router
function_signature
360
rust
null
null
null
null
retrieve_and_delete_cvc_from_payment_token
null
null
null
null
null
null
null
pub async fn api_key_create() {}
crates/openapi/src/routes/api_keys.rs
openapi
function_signature
8
rust
null
null
null
null
api_key_create
null
null
null
null
null
null
null
pub fn is_eligible_for_refund(&self, refund_amount: i64) -> DummyConnectorResult<()> { if self.eligible_amount < refund_amount { return Err( report!(DummyConnectorErrors::RefundAmountExceedsPaymentAmount) .attach_printable("Eligible amount is lesser than refund am...
crates/router/src/routes/dummy_connector/types.rs
router
function_signature
123
rust
null
null
null
null
is_eligible_for_refund
null
null
null
null
null
null
null
impl api::PaymentToken for Worldpayvantiv {}
crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
hyperswitch_connectors
impl_block
11
rust
null
Worldpayvantiv
api::PaymentToken for
impl api::PaymentToken for for Worldpayvantiv
null
null
null
null
null
null
null
null
pub async fn get_opensearch_client(&self) -> StorageResult<Option<OpenSearchClient>> { if !self.enabled { return Ok(None); } Ok(Some( OpenSearchClient::create(self) .await .change_context(StorageError::InitializationError)?, )) ...
crates/analytics/src/opensearch.rs
analytics
function_signature
66
rust
null
null
null
null
get_opensearch_client
null
null
null
null
null
null
null
pub struct PayoutsMandateReference( pub HashMap<common_utils::id_type::MerchantConnectorAccountId, PayoutsMandateReferenceRecord>, );
crates/diesel_models/src/payment_method.rs
diesel_models
struct_definition
34
rust
PayoutsMandateReference
null
null
null
null
null
null
null
null
null
null
null
pub struct TsysErrorResponse { pub status: TsysPaymentStatus, pub response_code: String, pub response_message: String, }
crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
TsysErrorResponse
null
null
null
null
null
null
null
null
null
null
null
impl fmt::Display for AnalysisError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { self.error_type.fmt(f) } }
crates/euclid/src/dssa/types.rs
euclid
impl_block
40
rust
null
AnalysisError
fmt::Display for
impl fmt::Display for for AnalysisError
null
null
null
null
null
null
null
null
impl api::Payment for Mollie {}
crates/hyperswitch_connectors/src/connectors/mollie.rs
hyperswitch_connectors
impl_block
9
rust
null
Mollie
api::Payment for
impl api::Payment for for Mollie
null
null
null
null
null
null
null
null
impl ConnectorValidation for Netcetera {}
crates/hyperswitch_connectors/src/connectors/netcetera.rs
hyperswitch_connectors
impl_block
9
rust
null
Netcetera
ConnectorValidation for
impl ConnectorValidation for for Netcetera
null
null
null
null
null
null
null
null
impl AuthInfo for AuthenticationData { fn get_merchant_id(&self) -> Option<&id_type::MerchantId> { Some(self.merchant_account.get_id()) } }
crates/router/src/services/authentication.rs
router
impl_block
38
rust
null
AuthenticationData
AuthInfo for
impl AuthInfo for for AuthenticationData
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/refunds/refunds--retrieve.mdx # Type: Doc File --- openapi: get /refunds/{refund_id} ---
api-reference/v1/refunds/refunds--retrieve.mdx
null
doc_file
34
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Globepay {}
crates/hyperswitch_connectors/src/connectors/globepay.rs
hyperswitch_connectors
impl_block
10
rust
null
Globepay
api::Refund for
impl api::Refund for for Globepay
null
null
null
null
null
null
null
null
pub struct TokenizedWalletValue1 { pub data: payments::WalletData, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
18
rust
TokenizedWalletValue1
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_customer( state: SessionState, merchant_context: domain::MerchantContext, id: id_type::GlobalCustomerId, ) -> errors::CustomerResponse<customers::CustomerDeleteResponse> { let db = &*state.store; let key_manager_state = &(&state).into(); id.redact_customer_details_and_generat...
crates/router/src/core/customers.rs
router
function_signature
99
rust
null
null
null
null
delete_customer
null
null
null
null
null
null
null
))?, } } } #[derive(Debug, Clone, Serialize)] #[serde(rename_all = "camelCase")] pub struct OnlineBankingSlovakiaData { issuer: OnlineBankingSlovakiaBanks, } #[derive(Debug, Clone, Serialize)] #[serde(rename_all = "camelCase")] pub struct OnlineBankingFpxData { issuer: OnlineBankingFpx...
crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs#chunk1
hyperswitch_connectors
chunk
8,175
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_by_user_id(conn: &PgPooledConn, user_id: &str) -> StorageResult<bool> { generics::generic_delete::<<Self as HasTable>::Table, _>( conn, users_dsl::user_id.eq(user_id.to_owned()), ) .await }
crates/diesel_models/src/query/user.rs
diesel_models
function_signature
67
rust
null
null
null
null
delete_by_user_id
null
null
null
null
null
null
null
impl Address { pub async fn find_by_address_id(conn: &PgPooledConn, address_id: &str) -> StorageResult<Self> { generics::generic_find_by_id::<<Self as HasTable>::Table, _, _>(conn, address_id.to_owned()) .await } pub async fn update_by_address_id( conn: &PgPooledConn, ad...
crates/diesel_models/src/query/address.rs
diesel_models
impl_block
867
rust
null
Address
null
impl Address
null
null
null
null
null
null
null
null
pub fn get_is_tax_connector_enabled(&self) -> bool { let is_tax_connector_enabled = self.is_tax_connector_enabled; match &self.tax_connector_id { Some(_id) => is_tax_connector_enabled, _ => false, } }
crates/hyperswitch_domain_models/src/business_profile.rs
hyperswitch_domain_models
function_signature
54
rust
null
null
null
null
get_is_tax_connector_enabled
null
null
null
null
null
null
null
impl api::PaymentCapture for Paybox {}
crates/hyperswitch_connectors/src/connectors/paybox.rs
hyperswitch_connectors
impl_block
9
rust
null
Paybox
api::PaymentCapture for
impl api::PaymentCapture for for Paybox
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations.rs Public structs: 4 #[cfg(feature = "v1")] pub mod payment_approve; #[cfg(feature = "v1")] pub mod payment_cancel; #[cfg(feature = "v1")] pub mod payment_cancel_post_capture; #[cfg(feature = "v1")] pub mod payment_capture; #[cfg(feature = "v1")] pub mod payment_comple...
crates/router/src/core/payments/operations.rs
router
full_file
7,468
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymeRefundRequest { sale_refund_amount: MinorUnit, payme_sale_id: String, seller_payme_id: Secret<String>, language: String, }
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
40
rust
PaymeRefundRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct SdkEventMetricsBucketIdentifier { pub payment_method: Option<String>, pub platform: Option<String>, pub browser_name: Option<String>, pub source: Option<String>, pub component: Option<String>, pub payment_experience: Option<String>, pub time_bucket: Option<String>, }
crates/api_models/src/analytics/sdk_events.rs
api_models
struct_definition
63
rust
SdkEventMetricsBucketIdentifier
null
null
null
null
null
null
null
null
null
null
null
pub struct NuveiSessionRequest { pub merchant_id: Secret<String>, pub merchant_site_id: Secret<String>, pub client_request_id: String, pub time_stamp: date_time::DateTime<date_time::YYYYMMDDHHmmss>, pub checksum: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
61
rust
NuveiSessionRequest
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Iatapay {}
crates/hyperswitch_connectors/src/connectors/iatapay.rs
hyperswitch_connectors
impl_block
9
rust
null
Iatapay
ConnectorValidation for
impl ConnectorValidation for for Iatapay
null
null
null
null
null
null
null
null
pub struct StripeOutgoingWebhook { id: String, #[serde(rename = "type")] stype: &'static str, object: &'static str, data: StripeWebhookObject, created: u64, // api_version: "2019-11-05", // not used }
crates/router/src/compatibility/stripe/webhooks.rs
router
struct_definition
73
rust
StripeOutgoingWebhook
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/amazonpay.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 AmazonpayTest...
crates/router/tests/connectors/amazonpay.rs
router
full_file
2,927
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PayuPaymentMethod { pay_method: PayuPaymentMethodData, }
crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
PayuPaymentMethod
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentIntentUpdateMems { pub orig: PaymentIntent, pub update_data: PaymentIntentUpdateInternal, }
crates/diesel_models/src/kv.rs
diesel_models
struct_definition
26
rust
PaymentIntentUpdateMems
null
null
null
null
null
null
null
null
null
null
null
pub struct RedirectResponsePayload { pub spi_token: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
RedirectResponsePayload
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/webhooks.rs // use std::sync; // use router::{configs::settings, connection, core::webhooks, types::api}; // mod utils; // fn get_config() -> settings::Settings { // settings::Settings::new().expect("Settings") // } // struct TestApp { // redis_conn: connection::RedisPool, // } //...
crates/router/tests/webhooks.rs
router
full_file
403
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/api_models/src/events/user_role.rs use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::user_role::{ role::{ CreateRoleRequest, CreateRoleV2Request, GetParentGroupsInfoQueryParams, GetRoleRequest, GroupsAndResources, ListRolesAtEntityLevelRequest, ListRolesQueryParams...
crates/api_models/src/events/user_role.rs
api_models
full_file
259
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Cryptopay { amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/cryptopay.rs
hyperswitch_connectors
struct_definition
28
rust
Cryptopay
null
null
null
null
null
null
null
null
null
null
null
pub struct CardProvider { pub payment_method_type: api_models::enums::CardNetwork, /// List of currencies accepted or has the processing capabilities of the processor #[schema(example = json!( { "type": "specific_accepted", "list": ["USD", "INR"] } ...
crates/connector_configs/src/common_config.rs
connector_configs
struct_definition
149
rust
CardProvider
null
null
null
null
null
null
null
null
null
null
null
impl State for CardStored {}
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
impl_block
6
rust
null
CardStored
State for
impl State for for CardStored
null
null
null
null
null
null
null
null
pub struct GetTokenDataRequest { /// Indicates the type of token to be fetched pub token_type: api_enums::TokenDataType, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
31
rust
GetTokenDataRequest
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GenerateDisputeReport; 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
pub fn get_payout_routing_algorithm( &self, ) -> CustomResult< Option<api_models::routing::RoutingAlgorithmRef>, api_error_response::ApiErrorResponse, > { self.payout_routing_algorithm .clone() .map(|val| { val.parse_value::<api_models::rou...
crates/hyperswitch_domain_models/src/business_profile.rs
hyperswitch_domain_models
function_signature
119
rust
null
null
null
null
get_payout_routing_algorithm
null
null
null
null
null
null
null
pub struct PaymentSessionIntent;
crates/router/src/core/payments/operations/payment_session_intent.rs
router
struct_definition
6
rust
PaymentSessionIntent
null
null
null
null
null
null
null
null
null
null
null
pub struct RedirectPaymentFlowResponse { pub payments_response: api_models::payments::PaymentsResponse, pub business_profile: domain::Profile, }
crates/router/src/types.rs
router
struct_definition
30
rust
RedirectPaymentFlowResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct Name { pub first: Option<Secret<String>>, pub last: Option<Secret<String>>, pub full: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
Name
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Paystack {}
crates/hyperswitch_connectors/src/connectors/paystack.rs
hyperswitch_connectors
impl_block
9
rust
null
Paystack
api::Refund for
impl api::Refund for for Paystack
null
null
null
null
null
null
null
null
impl api::Refund for Billwerk {}
crates/hyperswitch_connectors/src/connectors/billwerk.rs
hyperswitch_connectors
impl_block
9
rust
null
Billwerk
api::Refund for
impl api::Refund for for Billwerk
null
null
null
null
null
null
null
null
pub async fn update_default_routing_config( state: SessionState, merchant_context: domain::MerchantContext, updated_config: Vec<routing_types::RoutableConnectorChoice>, transaction_type: &enums::TransactionType, ) -> RouterResponse<Vec<routing_types::RoutableConnectorChoice>> { metrics::ROUTING_UPDA...
crates/router/src/core/routing.rs
router
function_signature
402
rust
null
null
null
null
update_default_routing_config
null
null
null
null
null
null
null
pub struct SdkRenderedCount;
crates/api_models/src/analytics/sdk_events.rs
api_models
struct_definition
8
rust
SdkRenderedCount
null
null
null
null
null
null
null
null
null
null
null
pub struct AppState { pub flow_name: String, pub global_store: Box<dyn GlobalStorageInterface>, // TODO: use a separate schema for accounts_store pub accounts_store: HashMap<id_type::TenantId, Box<dyn AccountsStorageInterface>>, pub stores: HashMap<id_type::TenantId, Box<dyn StorageInterface>>, ...
crates/router/src/routes/app.rs
router
struct_definition
261
rust
AppState
null
null
null
null
null
null
null
null
null
null
null
pub async fn send_request_to_key_service_for_user( state: &SessionState, keys: Vec<UserKeyStore>, ) -> errors::CustomResult<usize, errors::ApiErrorResponse> { futures::future::try_join_all(keys.into_iter().map(|key| async move { let key_encoded = BASE64_ENGINE.encode(key.key.clone().into_inner().exp...
crates/router/src/core/encryption.rs
router
function_signature
147
rust
null
null
null
null
send_request_to_key_service_for_user
null
null
null
null
null
null
null
pub struct ChallengeAttemptCount;
crates/api_models/src/analytics/auth_events.rs
api_models
struct_definition
6
rust
ChallengeAttemptCount
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodResponseItem { /// The unique identifier of the payment method. #[schema(value_type = String, example = "12345_pm_01926c58bc6e77c09e809964e72af8c8")] pub id: id_type::GlobalPaymentMethodId, /// The unique identifier of the customer. #[schema( min_length = 32, ...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
683
rust
PaymentMethodResponseItem
null
null
null
null
null
null
null
null
null
null
null
pub struct SilverflowVoidResponse { #[serde(rename = "type")] pub action_type: String, pub key: String, pub charge_key: String, #[serde(skip_serializing_if = "Option::is_none")] pub reference: Option<String>, pub replacement_amount: Amount, pub status: VoidStatus, pub authorization_r...
crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
hyperswitch_connectors
struct_definition
102
rust
SilverflowVoidResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ReceiverDetails { "type": "object", "required": [ "amount_received" ], "properties": { "amount_received": { "type": "integer", "format": "int64", "description": "The amount received by receiver" }, "amount_charged": { "type": "intege...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
163
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ReceiverDetails" ]
null
null
null
null
impl IncomingWebhook for Gocardless { fn get_webhook_source_verification_algorithm( &self, _request: &IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(crypto::HmacSha256)) } fn get_webhook_source_...
crates/hyperswitch_connectors/src/connectors/gocardless.rs
hyperswitch_connectors
impl_block
1,491
rust
null
Gocardless
IncomingWebhook for
impl IncomingWebhook for for Gocardless
null
null
null
null
null
null
null
null
pub struct ThreeDsSettings { active: bool, }
crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
hyperswitch_connectors
struct_definition
12
rust
ThreeDsSettings
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorMandateRevoke for Cybersource {}
crates/hyperswitch_connectors/src/connectors/cybersource.rs
hyperswitch_connectors
impl_block
14
rust
null
Cybersource
api::ConnectorMandateRevoke for
impl api::ConnectorMandateRevoke for for Cybersource
null
null
null
null
null
null
null
null
pub struct PaymentMethodCollectLinkData { pub pm_collect_link_id: String, pub customer_id: common_utils::id_type::CustomerId, pub link: Secret<String>, pub client_secret: Secret<String>, pub session_expiry: u32, #[serde(flatten)] pub ui_config: GenericLinkUiConfig, pub enabled_payment_me...
crates/diesel_models/src/generic_link.rs
diesel_models
struct_definition
84
rust
PaymentMethodCollectLinkData
null
null
null
null
null
null
null
null
null
null
null
impl RequestExtendedAuthorizationBool { /// returns the inner bool value pub fn is_true(&self) -> bool { self.0 } }
crates/common_types/src/primitive_wrappers.rs
common_types
impl_block
34
rust
null
RequestExtendedAuthorizationBool
null
impl RequestExtendedAuthorizationBool
null
null
null
null
null
null
null
null
impl EventInterface for KafkaStore { async fn insert_event( &self, state: &KeyManagerState, event: domain::Event, merchant_key_store: &domain::MerchantKeyStore, ) -> CustomResult<domain::Event, errors::StorageError> { self.diesel_store .insert_event(state, eve...
crates/router/src/db/kafka_store.rs
router
impl_block
1,262
rust
null
KafkaStore
EventInterface for
impl EventInterface for for KafkaStore
null
null
null
null
null
null
null
null
pub async fn toggle_blocklist_guard() {}
crates/openapi/src/routes/blocklist.rs
openapi
function_signature
9
rust
null
null
null
null
toggle_blocklist_guard
null
null
null
null
null
null
null