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
impl ConnectorSpecifications for Bitpay { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&BITPAY_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*BITPAY_SUPPORTED_PAYMENT_METHODS) } fn get_support...
crates/hyperswitch_connectors/src/connectors/bitpay.rs
hyperswitch_connectors
impl_block
105
rust
null
Bitpay
ConnectorSpecifications for
impl ConnectorSpecifications for for Bitpay
null
null
null
null
null
null
null
null
pub struct SiftPaymentsResponse { status: SiftPaymentStatus, id: String, }
crates/hyperswitch_connectors/src/connectors/sift/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
SiftPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn get_id(&self) -> id_type::MerchantConnectorAccountId { self.merchant_connector_id.clone() }
crates/diesel_models/src/merchant_connector_account.rs
diesel_models
function_signature
25
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
File: crates/router/src/core/payments/tokenization.rs Public functions: 16 Public structs: 2 use std::collections::HashMap; use ::payment_methods::controller::PaymentMethodsController; #[cfg(feature = "v1")] use api_models::payment_methods::PaymentMethodsData; use api_models::{ payment_methods::PaymentMethodDat...
crates/router/src/core/payments/tokenization.rs#chunk0
router
chunk
8,184
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct FiuuRefundSuccessResponse { #[serde(rename = "RefundID")] refund_id: i64, status: String, #[serde(rename = "reason")] reason: Option<String>, }
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
48
rust
FiuuRefundSuccessResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Opayo {}
crates/hyperswitch_connectors/src/connectors/opayo.rs
hyperswitch_connectors
impl_block
11
rust
null
Opayo
api::MandateSetup for
impl api::MandateSetup for for Opayo
null
null
null
null
null
null
null
null
impl ResponsePaymentMethodIntermediate { pub fn new( pm_type: RequestPaymentMethodTypes, connector: String, merchant_connector_id: String, pm: api_enums::PaymentMethod, ) -> Self { Self { payment_method_type: pm_type.payment_method_type, payment_ex...
crates/api_models/src/payment_methods.rs
api_models
impl_block
100
rust
null
ResponsePaymentMethodIntermediate
null
impl ResponsePaymentMethodIntermediate
null
null
null
null
null
null
null
null
pub async fn retrieve_surcharge_decision_config( state: SessionState, merchant_context: domain::MerchantContext, ) -> RouterResponse<SurchargeDecisionManagerResponse> { let db = state.store.as_ref(); let algorithm_id = merchant_context .get_merchant_account() .get_id() .get_payme...
crates/router/src/core/surcharge_decision_config.rs
router
function_signature
195
rust
null
null
null
null
retrieve_surcharge_decision_config
null
null
null
null
null
null
null
impl FeatureMatrixConnectorData { pub fn convert_connector( connector_name: &str, ) -> CustomResult<ConnectorEnum, errors::ApiErrorResponse> { match enums::Connector::from_str(connector_name) { Ok(name) => match name { enums::Connector::Aci => Ok(ConnectorEnum::Old(Bo...
crates/router/src/types/api/feature_matrix.rs
router
impl_block
4,182
rust
null
FeatureMatrixConnectorData
null
impl FeatureMatrixConnectorData
null
null
null
null
null
null
null
null
pub struct CreateTenantUserRequest { pub name: Secret<String>, pub email: pii::Email, pub password: Secret<String>, }
crates/api_models/src/user.rs
api_models
struct_definition
30
rust
CreateTenantUserRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/payments/metrics/sessionized_metrics.rs mod avg_ticket_size; mod connector_success_rate; mod debit_routing; mod failure_reasons; mod payment_count; mod payment_processed_amount; mod payment_success_count; mod payments_distribution; mod retries_count; mod success_rate; pub(super) use avg_tick...
crates/analytics/src/payments/metrics/sessionized_metrics.rs
analytics
full_file
188
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AmazonPayWalletData { "type": "object", "required": [ "checkout_session_id" ], "properties": { "checkout_session_id": { "type": "string", "description": "Checkout Session identifier" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
69
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AmazonPayWalletData" ]
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/wellsfargo.rs Public functions: 3 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use base64::Engine; use common_enums::enums; use common_utils::{ consts, errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, Reque...
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs#chunk0
hyperswitch_connectors
chunk
8,183
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Wise { pub fn new() -> &'static Self { &Self { #[cfg(feature = "payouts")] amount_converter: &FloatMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/wise.rs
hyperswitch_connectors
impl_block
43
rust
null
Wise
null
impl Wise
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ApplepayConnectorMetadataRequest { "type": "object", "properties": { "session_token_data": { "allOf": [ { "$ref": "#/components/schemas/SessionTokenInfo" } ], "nullable": true } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
72
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ApplepayConnectorMetadataRequest" ]
null
null
null
null
File: crates/router/src/compatibility/stripe/customers/types.rs Public structs: 9 use std::{convert::From, default::Default}; #[cfg(feature = "v1")] use api_models::payment_methods as api_types; use api_models::payments; #[cfg(feature = "v1")] use common_utils::{crypto::Encryptable, date_time}; use common_utils::{ ...
crates/router/src/compatibility/stripe/customers/types.rs
router
full_file
1,995
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct StripebillingWebhookBody { #[serde(rename = "type")] pub event_type: StripebillingEventType, pub data: StripebillingWebhookData, }
crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
hyperswitch_connectors
struct_definition
36
rust
StripebillingWebhookBody
null
null
null
null
null
null
null
null
null
null
null
impl api::PayoutEligibility for Ebanx {}
crates/hyperswitch_connectors/src/connectors/ebanx.rs
hyperswitch_connectors
impl_block
13
rust
null
Ebanx
api::PayoutEligibility for
impl api::PayoutEligibility for for Ebanx
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Itaubank {}
crates/hyperswitch_connectors/src/connectors/itaubank.rs
hyperswitch_connectors
impl_block
10
rust
null
Itaubank
api::PaymentCapture for
impl api::PaymentCapture for for Itaubank
null
null
null
null
null
null
null
null
/// Validation for the SES client specific configs pub fn validate(&self) -> Result<(), &'static str> { use common_utils::{ext_traits::ConfigExt, fp_utils::when}; when(self.email_role_arn.is_default_or_empty(), || { Err("email.aws_ses.email_role_arn must not be empty") })?; ...
crates/external_services/src/email/ses.rs
external_services
function_signature
109
rust
null
null
null
null
validate
null
null
null
null
null
null
null
pub struct PaymentCardDetails { expiry_date: ExpiryDate, bin: String, last4: String, brand: String, }
crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs
hyperswitch_connectors
struct_definition
31
rust
PaymentCardDetails
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_file_from_theme_bucket( state: &SessionState, path: &PathBuf, ) -> UserResult<Vec<u8>> { state .theme_storage_client .retrieve_file(path_buf_to_str(path)?) .await .change_context(UserErrors::ErrorRetrievingFile) }
crates/router/src/utils/user/theme.rs
router
function_signature
69
rust
null
null
null
null
retrieve_file_from_theme_bucket
null
null
null
null
null
null
null
File: crates/router/tests/connectors/paysafe.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 PaysafeTest; im...
crates/router/tests/connectors/paysafe.rs
router
full_file
2,929
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BraintreeMeta { merchant_account_id: Secret<String>, merchant_config_currency: enums::Currency, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
BraintreeMeta
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentIncrementalAuthorization for Cybersource {}
crates/hyperswitch_connectors/src/connectors/cybersource.rs
hyperswitch_connectors
impl_block
12
rust
null
Cybersource
api::PaymentIncrementalAuthorization for
impl api::PaymentIncrementalAuthorization for for Cybersource
null
null
null
null
null
null
null
null
impl api::Payment for Taxjar {}
crates/hyperswitch_connectors/src/connectors/taxjar.rs
hyperswitch_connectors
impl_block
8
rust
null
Taxjar
api::Payment for
impl api::Payment for for Taxjar
null
null
null
null
null
null
null
null
pub fn is_transaction_event(event_code: &AirwallexWebhookEventType) -> bool { matches!( event_code, AirwallexWebhookEventType::PaymentAttemptFailedToProcess | AirwallexWebhookEventType::PaymentAttemptAuthorized ) }
crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
hyperswitch_connectors
function_signature
56
rust
null
null
null
null
is_transaction_event
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AuthenticationSyncRequest { "type": "object", "required": [ "client_secret" ], "properties": { "client_secret": { "type": "string", "description": "The client secret for this authentication." } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
67
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AuthenticationSyncRequest" ]
null
null
null
null
impl AmountDetails { /// Get the action to whether calculate surcharge or not as a boolean value fn get_surcharge_action_as_bool(&self) -> bool { self.skip_surcharge_calculation.as_bool() } /// Get the action to whether calculate external tax or not as a boolean value pub fn get_external_ta...
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
impl_block
1,013
rust
null
AmountDetails
null
impl AmountDetails
null
null
null
null
null
null
null
null
pub struct CallBackResponse { pub transaction_id: String, pub order_ref: String, }
crates/hyperswitch_connectors/src/connectors/breadpay/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
CallBackResponse
null
null
null
null
null
null
null
null
null
null
null
/// An event that can be published. pub trait Event: EventInfo { /// The type of the event. type EventType; /// The timestamp of the event. fn timestamp(&self) -> PrimitiveDateTime; /// The (unique) identifier of the event. fn identifier(&self) -> String; /// The class/type of the event. T...
crates/events/src/lib.rs
events
trait_definition
125
rust
null
null
Event
null
null
null
null
null
null
null
null
null
/// Similar to [`DieselEnum`] but uses text when storing in the database, this is to avoid /// making changes to the database when the enum variants are added or modified /// /// # Example /// [DieselEnum]: macro@crate::diesel_enum /// /// ``` /// use router_derive::{diesel_enum}; /// /// // Deriving `FromStr` and `ToS...
crates/router_derive/src/lib.rs
router_derive
macro
236
rust
null
null
null
null
null
null
null
null
proc_derive
null
null
null
/// NoCrm struct pub struct NoCrm;
crates/external_services/src/crm.rs
external_services
struct_definition
12
rust
NoCrm
null
null
null
null
null
null
null
null
null
null
null
pub async fn add_entry_to_blocklist() {}
crates/openapi/src/routes/blocklist.rs
openapi
function_signature
10
rust
null
null
null
null
add_entry_to_blocklist
null
null
null
null
null
null
null
pub trait ProcessPaymentAttempt { fn build_payment_data_from_payment_attempt( self, payment_attempt: types::DummyConnectorPaymentAttempt, redirect_url: String, ) -> types::DummyConnectorResult<types::DummyConnectorPaymentData>; }
crates/router/src/routes/dummy_connector/utils.rs
router
trait_definition
52
rust
null
null
ProcessPaymentAttempt
null
null
null
null
null
null
null
null
null
pub async fn verify_external_token( state: SessionState, json_payload: external_service_auth_api::ExternalVerifyTokenRequest, external_service_type: ExternalServiceType, ) -> RouterResponse<external_service_auth_api::ExternalVerifyTokenResponse> { let token_from_payload = json_payload.token.expose(); ...
crates/router/src/core/external_service_auth.rs
router
function_signature
282
rust
null
null
null
null
verify_external_token
null
null
null
null
null
null
null
pub async fn refund_data( state: SessionState, req: types::DummyConnectorRefundRetrieveRequest, ) -> types::DummyConnectorResponse<types::DummyConnectorRefundResponse> { let refund_id = req.refund_id; utils::tokio_mock_sleep( state.conf.dummy_connector.refund_retrieve_duration, state.con...
crates/router/src/routes/dummy_connector/core.rs
router
function_signature
205
rust
null
null
null
null
refund_data
null
null
null
null
null
null
null
pub fn is_db_unique_violation(&self) -> bool { match self { Self::DatabaseError(err) => { matches!(err.current_context(), DatabaseError::UniqueViolation,) } Self::DuplicateValue { .. } => true, _ => false, } }
crates/storage_impl/src/errors.rs
storage_impl
function_signature
62
rust
null
null
null
null
is_db_unique_violation
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.WeChatPayRedirection { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
23
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "WeChatPayRedirection" ]
null
null
null
null
pub async fn revenue_recovery_pt_retrieve_api() {}
crates/openapi/src/routes/revenue_recovery.rs
openapi
function_signature
11
rust
null
null
null
null
revenue_recovery_pt_retrieve_api
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/mpgs/transformers.rs Public structs: 8 use common_enums::enums; use common_utils::types::StringMinorUnit; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router_flow_types::refunds::{E...
crates/hyperswitch_connectors/src/connectors/mpgs/transformers.rs
hyperswitch_connectors
full_file
1,676
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CustomerListConstraints { pub limit: u16, pub offset: Option<u32>, }
crates/hyperswitch_domain_models/src/customer.rs
hyperswitch_domain_models
struct_definition
24
rust
CustomerListConstraints
null
null
null
null
null
null
null
null
null
null
null
pub struct ErrorResponse { pub code: String, pub message: String, pub reason: Option<String>, pub status_code: u16, }
crates/pm_auth/src/types.rs
pm_auth
struct_definition
33
rust
ErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn is_permanent_card(&self) -> bool { matches!(self, Self::PermanentCard(_)) }
crates/router/src/types/storage/payment_method.rs
router
function_signature
26
rust
null
null
null
null
is_permanent_card
null
null
null
null
null
null
null
impl CurrencyFactors { pub fn new(to_factor: Decimal, from_factor: Decimal) -> Self { Self { to_factor, from_factor, } } }
crates/currency_conversion/src/types.rs
currency_conversion
impl_block
37
rust
null
CurrencyFactors
null
impl CurrencyFactors
null
null
null
null
null
null
null
null
impl PaymentSession for Netcetera {}
crates/hyperswitch_connectors/src/connectors/netcetera.rs
hyperswitch_connectors
impl_block
9
rust
null
Netcetera
PaymentSession for
impl PaymentSession for for Netcetera
null
null
null
null
null
null
null
null
pub trait NonSerializableSecret: Serialize {}
crates/masking/src/serde.rs
masking
trait_definition
8
rust
null
null
NonSerializableSecret
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/sdk_events/metrics/payment_methods_call_count.rs use std::collections::HashSet; use api_models::analytics::{ sdk_events::{ SdkEventDimensions, SdkEventFilters, SdkEventMetricsBucketIdentifier, SdkEventNames, }, Granularity, TimeRange, }; use common_utils::errors::ReportS...
crates/analytics/src/sdk_events/metrics/payment_methods_call_count.rs
analytics
full_file
839
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Profile { #[cfg(feature = "v1")] pub fn get_id(&self) -> &common_utils::id_type::ProfileId { &self.profile_id } #[cfg(feature = "v2")] pub fn get_id(&self) -> &common_utils::id_type::ProfileId { &self.id } }
crates/hyperswitch_domain_models/src/business_profile.rs
hyperswitch_domain_models
impl_block
75
rust
null
Profile
null
impl Profile
null
null
null
null
null
null
null
null
File: crates/router/src/db/routing_algorithm.rs use diesel_models::routing_algorithm as routing_storage; use error_stack::report; use router_env::{instrument, tracing}; use storage_impl::mock_db::MockDb; use crate::{ connection, core::errors::{self, CustomResult}, services::Store, }; type StorageResult<T...
crates/router/src/db/routing_algorithm.rs
router
full_file
1,900
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ReconActivation { pub recipient_email: domain::UserEmail, pub user_name: domain::UserName, pub subject: &'static str, pub theme_id: Option<String>, pub theme_config: EmailThemeConfig, }
crates/router/src/services/email/types.rs
router
struct_definition
50
rust
ReconActivation
null
null
null
null
null
null
null
null
null
null
null
pub struct OrderInformationWithBill { amount_details: Amount, bill_to: Option<BillTo>, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
OrderInformationWithBill
null
null
null
null
null
null
null
null
null
null
null
impl GatewayStatusMappingNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<GatewayStatusMap> { generics::generic_insert(conn, self).await } }
crates/diesel_models/src/query/gsm.rs
diesel_models
impl_block
44
rust
null
GatewayStatusMappingNew
null
impl GatewayStatusMappingNew
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Juspaythreedsserver {}
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
hyperswitch_connectors
impl_block
14
rust
null
Juspaythreedsserver
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Juspaythreedsserver
null
null
null
null
null
null
null
null
pub fn is_payout_err_state(status: api_enums::PayoutStatus) -> bool { matches!( status, api_enums::PayoutStatus::Cancelled | api_enums::PayoutStatus::Failed | api_enums::PayoutStatus::Ineligible ) }
crates/router/src/core/payouts/helpers.rs
router
function_signature
65
rust
null
null
null
null
is_payout_err_state
null
null
null
null
null
null
null
impl FileMetadataInterface for KafkaStore { async fn insert_file_metadata( &self, file: storage::FileMetadataNew, ) -> CustomResult<storage::FileMetadata, errors::StorageError> { self.diesel_store.insert_file_metadata(file).await } async fn find_file_metadata_by_merchant_id_file...
crates/router/src/db/kafka_store.rs
router
impl_block
288
rust
null
KafkaStore
FileMetadataInterface for
impl FileMetadataInterface for for KafkaStore
null
null
null
null
null
null
null
null
pub struct RoutingAlgorithm { pub algorithm_id: id_type::RoutingId, pub profile_id: id_type::ProfileId, pub merchant_id: id_type::MerchantId, pub name: String, pub description: Option<String>, pub kind: enums::RoutingAlgorithmKind, pub algorithm_data: serde_json::Value, pub created_at: t...
crates/diesel_models/src/routing_algorithm.rs
diesel_models
struct_definition
112
rust
RoutingAlgorithm
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AuthenticationStatus { "type": "string", "enum": [ "started", "pending", "success", "failed" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
43
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AuthenticationStatus" ]
null
null
null
null
pub struct Notifications { pub return_url: Option<String>, pub status_url: Option<String>, pub cancel_url: Option<String>, }
crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs
hyperswitch_connectors
struct_definition
29
rust
Notifications
null
null
null
null
null
null
null
null
null
null
null
pub async fn user_merchant_account_create( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<user_api::UserMerchantCreate>, ) -> HttpResponse { let flow = Flow::UserMerchantAccountCreate; Box::pin(api::server_wrap( flow, state, &req, json_payload.i...
crates/router/src/routes/user.rs
router
function_signature
149
rust
null
null
null
null
user_merchant_account_create
null
null
null
null
null
null
null
impl PaymentIntentMetricAccumulator for CountAccumulator { type MetricOutput = Option<u64>; #[inline] fn add_metrics_bucket(&mut self, metrics: &PaymentIntentMetricRow) { self.count = match (self.count, metrics.count) { (None, None) => None, (None, i @ Some(_)) | (i @ Some(_)...
crates/analytics/src/payment_intents/accumulator.rs
analytics
impl_block
142
rust
null
CountAccumulator
PaymentIntentMetricAccumulator for
impl PaymentIntentMetricAccumulator for for CountAccumulator
null
null
null
null
null
null
null
null
pub struct KafkaStore { pub kafka_producer: KafkaProducer, pub diesel_store: Store, pub tenant_id: TenantID, }
crates/router/src/db/kafka_store.rs
router
struct_definition
30
rust
KafkaStore
null
null
null
null
null
null
null
null
null
null
null
impl GPayPredecryptData { /// Get the four-digit expiration year from the Google Pay pre-decrypt data pub fn get_four_digit_expiry_year(&self) -> Result<Secret<String>, errors::ValidationError> { let mut year = self.card_exp_year.peek().clone(); // If it's a 2-digit year, convert to 4-digit ...
crates/common_types/src/payments.rs
common_types
impl_block
515
rust
null
GPayPredecryptData
null
impl GPayPredecryptData
null
null
null
null
null
null
null
null
impl api::RefundSync for Moneris {}
crates/hyperswitch_connectors/src/connectors/moneris.rs
hyperswitch_connectors
impl_block
11
rust
null
Moneris
api::RefundSync for
impl api::RefundSync for for Moneris
null
null
null
null
null
null
null
null
pub struct PaymentMethodsSessionUpdateRequest { /// The billing address details of the customer. This will also be used for any new payment methods added during the session #[schema(value_type = Option<Address>)] pub billing: Option<payments::Address>, /// The tokenization type to be applied #[sche...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
196
rust
PaymentMethodsSessionUpdateRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct BankOfAmericaPaymentInstrument { id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
BankOfAmericaPaymentInstrument
null
null
null
null
null
null
null
null
null
null
null
} } } // Do not remove the `skip_all` as the key would be logged otherwise #[instrument(skip_all)] async fn batch_decrypt_via_api( state: &KeyManagerState, encrypted_data: FxHashMap<String, Encryption>, identifier: Identifi...
crates/hyperswitch_domain_models/src/type_encryption.rs#chunk1
hyperswitch_domain_models
chunk
2,874
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Refund for Plaid {}
crates/hyperswitch_connectors/src/connectors/plaid.rs
hyperswitch_connectors
impl_block
7
rust
null
Plaid
Refund for
impl Refund for for Plaid
null
null
null
null
null
null
null
null
impl super::behaviour::Conversion for MerchantAccount { type DstType = diesel_models::merchant_account::MerchantAccount; type NewDstType = diesel_models::merchant_account::MerchantAccountNew; async fn convert(self) -> CustomResult<Self::DstType, ValidationError> { let setter = diesel_models::merchan...
crates/hyperswitch_domain_models/src/merchant_account.rs
hyperswitch_domain_models
impl_block
1,416
rust
null
MerchantAccount
super::behaviour::Conversion for
impl super::behaviour::Conversion for for MerchantAccount
null
null
null
null
null
null
null
null
pub async fn invoke_lambda( function_name: &str, region: &str, json_bytes: &[u8], ) -> CustomResult<(), AnalyticsError> { get_aws_client(region.to_string()) .await .invoke() .function_name(function_name) .invocation_type(Event) .payload(Blob::new(json_bytes.to_own...
crates/analytics/src/lambda_utils.rs
analytics
function_signature
144
rust
null
null
null
null
invoke_lambda
null
null
null
null
null
null
null
pub struct GooglePayData { data: Secret<String>, signature: Secret<String>, version: String, intermediate_signing_key: IntermediateSigningKey, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
34
rust
GooglePayData
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ApplePayPaymentData { "oneOf": [ { "$ref": "#/components/schemas/ApplePayPredecryptData" }, { "type": "string", "description": "This variant contains the encrypted Apple Pay payment data as a string." } ], "description": "This enum is used t...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
98
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ApplePayPaymentData" ]
null
null
null
null
pub struct FetchRoutingConfig { pub merchant_id: String, pub algorithm: AlgorithmType, }
crates/api_models/src/open_router.rs
api_models
struct_definition
21
rust
FetchRoutingConfig
null
null
null
null
null
null
null
null
null
null
null
pub trait FrmMetricAccumulator { type MetricOutput; fn add_metrics_bucket(&mut self, metrics: &FrmMetricRow); fn collect(self) -> Self::MetricOutput; }
crates/analytics/src/frm/accumulator.rs
analytics
trait_definition
42
rust
null
null
FrmMetricAccumulator
null
null
null
null
null
null
null
null
null
pub async fn get_decrypted_response_payload( jwekey: &settings::Jwekey, jwe_body: encryption::JweBody, locker_choice: Option<api_enums::LockerChoice>, decryption_scheme: settings::DecryptionScheme, ) -> CustomResult<String, errors::VaultError> { let target_locker = locker_choice.unwrap_or(api_enums:...
crates/router/src/core/payment_methods/transformers.rs
router
function_signature
387
rust
null
null
null
null
get_decrypted_response_payload
null
null
null
null
null
null
null
pub struct MerchantDefinedInformation { key: u8, value: String, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
MerchantDefinedInformation
null
null
null
null
null
null
null
null
null
null
null
pub struct OutgoingWebhook { /// The merchant id of the merchant #[schema(value_type = String)] pub merchant_id: common_utils::id_type::MerchantId, /// The unique event id for each webhook pub event_id: String, /// The type of event this webhook corresponds to. #[schema(value_type = EventT...
crates/api_models/src/webhooks.rs
api_models
struct_definition
154
rust
OutgoingWebhook
null
null
null
null
null
null
null
null
null
null
null
/// Get the expiration month from the Apple Pay pre-decrypt data pub fn get_expiry_month(&self) -> Result<Secret<String>, errors::ValidationError> { let month_str = self.application_expiration_month.peek(); let month = month_str .parse::<u8>() .map_err(|_| errors::ValidationE...
crates/common_types/src/payments.rs
common_types
function_signature
157
rust
null
null
null
null
get_expiry_month
null
null
null
null
null
null
null
File: crates/router/tests/connectors/razorpay.rs use masking::Secret; use router::types::{self, domain, storage::enums}; use test_utils::connector_auth; use crate::utils::{self, ConnectorActions}; #[derive(Clone, Copy)] struct RazorpayTest; impl ConnectorActions for RazorpayTest {} impl utils::Connector for Razorpay...
crates/router/tests/connectors/razorpay.rs
router
full_file
2,931
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/openapi/src/routes/api_keys.rs Public functions: 10 #[cfg(feature = "v1")] /// API Key - Create /// /// Create a new API Key for accessing our APIs from your servers. The plaintext API Key will be /// displayed only once on creation, so ensure you store it securely. #[utoipa::path( post, path = "...
crates/openapi/src/routes/api_keys.rs
openapi
full_file
1,766
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn value_type(input: &str) -> ParseResult<&str, ast::ValueType> { error::context( "value_type", branch::alt(( number_value, enum_variant_value, enum_variant_array_value, number_array_value, number_comparison_array_value, str...
crates/euclid/src/frontend/ast/parser.rs
euclid
function_signature
72
rust
null
null
null
null
value_type
null
null
null
null
null
null
null
impl api::PaymentVoid for Billwerk {}
crates/hyperswitch_connectors/src/connectors/billwerk.rs
hyperswitch_connectors
impl_block
9
rust
null
Billwerk
api::PaymentVoid for
impl api::PaymentVoid for for Billwerk
null
null
null
null
null
null
null
null
impl RefundSync for Signifyd {}
crates/hyperswitch_connectors/src/connectors/signifyd.rs
hyperswitch_connectors
impl_block
9
rust
null
Signifyd
RefundSync for
impl RefundSync for for Signifyd
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ApplePayRedirectData { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
23
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ApplePayRedirectData" ]
null
null
null
null
pub struct ApplepayGetVerifiedDomainsParam { pub merchant_id: id_type::MerchantId, pub merchant_connector_account_id: id_type::MerchantConnectorAccountId, }
crates/api_models/src/verifications.rs
api_models
struct_definition
35
rust
ApplepayGetVerifiedDomainsParam
null
null
null
null
null
null
null
null
null
null
null
/// Performs Payment repeat (MIT - Merchant Initiated Transaction). pub async fn payment_repeat( &self, payment_repeat_request: payments_grpc::PaymentServiceRepeatEverythingRequest, connector_auth_metadata: ConnectorAuthMetadata, grpc_headers: GrpcHeaders, ) -> UnifiedConnectorSe...
crates/external_services/src/grpc_client/unified_connector_service.rs
external_services
function_signature
228
rust
null
null
null
null
payment_repeat
null
null
null
null
null
null
null
impl api::PaymentSession for Nexinets {}
crates/hyperswitch_connectors/src/connectors/nexinets.rs
hyperswitch_connectors
impl_block
10
rust
null
Nexinets
api::PaymentSession for
impl api::PaymentSession for for Nexinets
null
null
null
null
null
null
null
null
pub struct ErrorResponse { pub errors: Option<Vec<SubError>>, pub error_id: Option<i32>, }
crates/hyperswitch_connectors/src/connectors/payone/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
ErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct BamboraCard { name: Secret<String>, number: cards::CardNumber, expiry_month: Secret<String>, expiry_year: Secret<String>, cvd: Secret<String>, complete: bool, #[serde(skip_serializing_if = "Option::is_none")] #[serde(rename = "3d_secure")] three_d_secure: Option<ThreeDSecu...
crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs
hyperswitch_connectors
struct_definition
83
rust
BamboraCard
null
null
null
null
null
null
null
null
null
null
null
pub struct AchBankDebitAdditionalData { /// Partially masked account number for ach bank debit payment #[schema(value_type = String, example = "0001****3456")] pub account_number: MaskedBankAccount, /// Partially masked routing number for ach bank debit payment #[schema(value_type = String, example...
crates/api_models/src/payments/additional_info.rs
api_models
struct_definition
281
rust
AchBankDebitAdditionalData
null
null
null
null
null
null
null
null
null
null
null
pub async fn payments_create( state: web::Data<app::AppState>, req: actix_web::HttpRequest, json_payload: web::Json<payment_types::PaymentsRequest>, ) -> impl Responder { let flow = Flow::PaymentsCreate; let mut payload = json_payload.into_inner(); if let Err(err) = payload .validate() ...
crates/router/src/routes/payments.rs
router
function_signature
534
rust
null
null
null
null
payments_create
null
null
null
null
null
null
null
File: crates/analytics/src/sdk_events/filters.rs Public functions: 1 Public structs: 1 use api_models::analytics::{sdk_events::SdkEventDimensions, Granularity, TimeRange}; use common_utils::errors::ReportSwitchExt; use error_stack::ResultExt; use time::PrimitiveDateTime; use crate::{ query::{Aggregate, GroupByC...
crates/analytics/src/sdk_events/filters.rs
analytics
full_file
446
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct UpdateCardInfo { pub card_issuer: Option<String>, pub card_network: Option<storage_enums::CardNetwork>, pub card_type: Option<String>, pub card_subtype: Option<String>, pub card_issuing_country: Option<String>, pub bank_code_id: Option<String>, pub bank_code: Option<String>, p...
crates/diesel_models/src/cards_info.rs
diesel_models
struct_definition
101
rust
UpdateCardInfo
null
null
null
null
null
null
null
null
null
null
null
pub async fn authentication_eligibility_core( state: SessionState, merchant_context: domain::MerchantContext, req: AuthenticationEligibilityRequest, authentication_id: common_utils::id_type::AuthenticationId, ) -> RouterResponse<AuthenticationEligibilityResponse> { let merchant_account = merchant_co...
crates/router/src/core/unified_authentication_service.rs
router
function_signature
1,980
rust
null
null
null
null
authentication_eligibility_core
null
null
null
null
null
null
null
pub fn is_terminal_status(self) -> bool { match self { Self::RouterDeclined | Self::Charged | Self::AutoRefunded | Self::Voided | Self::VoidedPostCharge | Self::VoidFailed | Self::CaptureFailed | Self::Failure ...
crates/common_enums/src/enums.rs
common_enums
function_signature
230
rust
null
null
null
null
is_terminal_status
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SepaBankTransferInstructions { "type": "object", "required": [ "account_holder_name", "bic", "country", "iban", "reference" ], "properties": { "account_holder_name": { "type": "string", "example": "Jane Doe" }, "bic": { "ty...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
187
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SepaBankTransferInstructions" ]
null
null
null
null
impl EmailData for ProFeatureRequest { async fn get_email_data(&self, _base_url: &str) -> CustomResult<EmailContents, EmailError> { let recipient = self.recipient_email.clone().into_inner(); let body = html::get_html_body(EmailBody::ProFeatureRequest { user_name: self.user_name.clone()....
crates/router/src/services/email/types.rs
router
impl_block
151
rust
null
ProFeatureRequest
EmailData for
impl EmailData for for ProFeatureRequest
null
null
null
null
null
null
null
null
pub fn construct_recovery_record_back_router_data( state: &SessionState, billing_mca: &merchant_connector_account::MerchantConnectorAccount, payment_attempt: &PaymentAttempt, payment_intent: &PaymentIntent, ) -> RecoveryResult<hyperswitch_domain_models::types::RevenueRecoveryRecordBackRouterData> { ...
crates/router/src/core/revenue_recovery/types.rs
router
function_signature
592
rust
null
null
null
null
construct_recovery_record_back_router_data
null
null
null
null
null
null
null
pub fn is_prod_email_required(data: &ProdIntent, user_email: String) -> bool { let poc_email_check = not_contains_string( data.poc_email.as_ref().map(|email| email.peek().as_str()), "juspay", ); let business_website_check = not_contains_string(data.business_website.as_deref(), "juspay") ...
crates/router/src/utils/user/dashboard_metadata.rs
router
function_signature
187
rust
null
null
null
null
is_prod_email_required
null
null
null
null
null
null
null
impl api::Payment for Mpgs {}
crates/hyperswitch_connectors/src/connectors/mpgs.rs
hyperswitch_connectors
impl_block
9
rust
null
Mpgs
api::Payment for
impl api::Payment for for Mpgs
null
null
null
null
null
null
null
null