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 ConnectorValidation for Worldpayxml { fn validate_mandate_payment( &self, _pm_type: Option<common_enums::PaymentMethodType>, _pm_data: PaymentMethodData, ) -> CustomResult<(), errors::ConnectorError> { Err(errors::ConnectorError::NotSupported { message: "mandate ...
crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
hyperswitch_connectors
impl_block
94
rust
null
Worldpayxml
ConnectorValidation for
impl ConnectorValidation for for Worldpayxml
null
null
null
null
null
null
null
null
pub struct CalGlobalSuccessRateConfigEventRequest { pub entity_min_aggregates_size: u32, pub entity_default_success_rate: f64, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
35
rust
CalGlobalSuccessRateConfigEventRequest
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GpayTokenParameters { "type": "object", "properties": { "gateway": { "type": "string", "description": "The name of the connector", "nullable": true }, "gateway_merchant_id": { "type": "string", "description": "The merchant ID registere...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
209
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GpayTokenParameters" ]
null
null
null
null
pub fn is_confirm<'a, F: Clone + Send, R, Op>( operation: &'a Op, confirm: Option<bool>, ) -> BoxedOperation<'a, F, R, PaymentData<F>> where PaymentConfirm: Operation<F, R, Data = PaymentData<F>>, &'a PaymentConfirm: Operation<F, R, Data = PaymentData<F>>, Op: Operation<F, R, Data = PaymentData<F>> ...
crates/router/src/core/payments.rs
router
function_signature
145
rust
null
null
null
null
is_confirm
null
null
null
null
null
null
null
pub struct Error { pub field: Option<String>, pub message: String, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
Error
null
null
null
null
null
null
null
null
null
null
null
pub async fn connector_retrieve( state: web::Data<AppState>, req: HttpRequest, path: web::Path<( common_utils::id_type::MerchantId, common_utils::id_type::MerchantConnectorAccountId, )
crates/router/src/routes/admin.rs
router
function_signature
52
rust
null
null
null
null
connector_retrieve
null
null
null
null
null
null
null
pub trait SdkEventsFilterAnalytics: LoadRow<SdkEventsResult> {}
crates/analytics/src/sdk_events/events.rs
analytics
trait_definition
16
rust
null
null
SdkEventsFilterAnalytics
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Wellsfargopayout {}
crates/hyperswitch_connectors/src/connectors/wellsfargopayout.rs
hyperswitch_connectors
impl_block
12
rust
null
Wellsfargopayout
api::PaymentToken for
impl api::PaymentToken for for Wellsfargopayout
null
null
null
null
null
null
null
null
pub async fn find_by_global_id( conn: &PgPooledConn, id: &id_type::GlobalCustomerId, ) -> StorageResult<Self> { generics::generic_find_by_id::<<Self as HasTable>::Table, _, _>(conn, id.to_owned()).await }
crates/diesel_models/src/query/customers.rs
diesel_models
function_signature
64
rust
null
null
null
null
find_by_global_id
null
null
null
null
null
null
null
impl api::Payment for Barclaycard {}
crates/hyperswitch_connectors/src/connectors/barclaycard.rs
hyperswitch_connectors
impl_block
9
rust
null
Barclaycard
api::Payment for
impl api::Payment for for Barclaycard
null
null
null
null
null
null
null
null
impl api::Payment for Volt {}
crates/hyperswitch_connectors/src/connectors/volt.rs
hyperswitch_connectors
impl_block
7
rust
null
Volt
api::Payment for
impl api::Payment for for Volt
null
null
null
null
null
null
null
null
impl MerchantAccount { pub async fn update( self, conn: &PgPooledConn, merchant_account: MerchantAccountUpdateInternal, ) -> StorageResult<Self> { match generics::generic_update_by_id::<<Self as HasTable>::Table, _, _, _>( conn, self.get_id().to_owned(), ...
crates/diesel_models/src/query/merchant_account.rs
diesel_models
impl_block
918
rust
null
MerchantAccount
null
impl MerchantAccount
null
null
null
null
null
null
null
null
pub async fn list_blocked_payment_methods( state: web::Data<AppState>, req: HttpRequest, query_payload: web::Query<api_blocklist::ListBlocklistQuery>, ) -> HttpResponse { let flow = Flow::ListBlocklist; Box::pin(api::server_wrap( flow, state, &req, query_payload.into_...
crates/router/src/routes/blocklist.rs
router
function_signature
217
rust
null
null
null
null
list_blocked_payment_methods
null
null
null
null
null
null
null
impl api::MandateSetup for HyperswitchVault {}
crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs
hyperswitch_connectors
impl_block
13
rust
null
HyperswitchVault
api::MandateSetup for
impl api::MandateSetup for for HyperswitchVault
null
null
null
null
null
null
null
null
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Self> { generics::generic_insert(conn, self).await }
crates/diesel_models/src/query/routing_algorithm.rs
diesel_models
function_signature
33
rust
null
null
null
null
insert
null
null
null
null
null
null
null
impl api::PaymentAuthorize for Iatapay {}
crates/hyperswitch_connectors/src/connectors/iatapay.rs
hyperswitch_connectors
impl_block
11
rust
null
Iatapay
api::PaymentAuthorize for
impl api::PaymentAuthorize for for Iatapay
null
null
null
null
null
null
null
null
impl Action { #[allow(clippy::too_many_arguments)] pub async fn execute_payment( state: &SessionState, _merchant_id: &id_type::MerchantId, payment_intent: &PaymentIntent, process: &storage::ProcessTracker, profile: &domain::Profile, merchant_context: domain::Merch...
crates/router/src/core/revenue_recovery/types.rs
router
impl_block
5,452
rust
null
Action
null
impl Action
null
null
null
null
null
null
null
null
- **cypress:** Execute cypress tests in parallel ([#6225](https://github.com/juspay/hyperswitch/pull/6225)) ([`f247978`](https://github.com/juspay/hyperswitch/commit/f24797834553794f341bd4f3be3afe5fcba693ed)) ### Refactors - **connector:** [WorldPay] propagate refusal codes as error code and messages ([#6392](https:...
CHANGELOG.md#chunk20
null
doc_chunk
8,152
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/external_services/src/managers/secrets_management.rs Public functions: 2 //! Secrets management util module use common_utils::errors::CustomResult; #[cfg(feature = "hashicorp-vault")] use error_stack::ResultExt; use hyperswitch_interfaces::secrets_interface::{ SecretManagementInterface, SecretsManag...
crates/external_services/src/managers/secrets_management.rs
external_services
full_file
585
null
null
null
null
null
null
null
null
null
null
null
null
null
impl PaymentTokenData { #[cfg(feature = "v1")] pub fn permanent_card( payment_method_id: Option<String>, locker_id: Option<String>, token: String, network_token_locker_id: Option<String>, ) -> Self { Self::PermanentCard(CardTokenData { payment_method_id, ...
crates/router/src/types/storage/payment_method.rs
router
impl_block
303
rust
null
PaymentTokenData
null
impl PaymentTokenData
null
null
null
null
null
null
null
null
pub async fn setup_intents_confirm( state: web::Data<routes::AppState>, qs_config: web::Data<serde_qs::Config>, req: HttpRequest, form_payload: web::Bytes, path: web::Path<common_utils::id_type::PaymentId>, ) -> HttpResponse { let setup_id = path.into_inner(); let stripe_payload: types::Stri...
crates/router/src/compatibility/stripe/setup_intents.rs
router
function_signature
538
rust
null
null
null
null
setup_intents_confirm
null
null
null
null
null
null
null
pub struct AdyenParamsWithThreeBaseUrls { /// base url pub base_url: String, /// secondary base url #[cfg(feature = "payouts")] pub payout_base_url: String, /// third base url pub dispute_base_url: String, }
crates/hyperswitch_domain_models/src/connector_endpoints.rs
hyperswitch_domain_models
struct_definition
61
rust
AdyenParamsWithThreeBaseUrls
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_disputes_list_profile() {}
crates/openapi/src/routes/disputes.rs
openapi
function_signature
11
rust
null
null
null
null
retrieve_disputes_list_profile
null
null
null
null
null
null
null
pub struct PaymentMethodsEnabled { /// Type of payment method. #[schema(value_type = PaymentMethod,example = "card")] pub payment_method_type: common_enums::PaymentMethod, /// Payment method configuration, this includes all the filters associated with the payment method pub payment_method_subtypes:...
crates/common_types/src/payment_methods.rs
common_types
struct_definition
73
rust
PaymentMethodsEnabled
null
null
null
null
null
null
null
null
null
null
null
pub struct PostAuthentication;
crates/hyperswitch_domain_models/src/router_flow_types/authentication.rs
hyperswitch_domain_models
struct_definition
5
rust
PostAuthentication
null
null
null
null
null
null
null
null
null
null
null
pub struct SubmitSinglePaymentResult { response: PaymentResponse, }
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
SubmitSinglePaymentResult
null
null
null
null
null
null
null
null
null
null
null
pub async fn api_key_update( state: web::Data<AppState>, req: HttpRequest, key_id: web::Path<common_utils::id_type::ApiKeyId>, json_payload: web::Json<api_types::UpdateApiKeyRequest>, ) -> impl Responder { let flow = Flow::ApiKeyUpdate; let api_key_id = key_id.into_inner(); let mut payload =...
crates/router/src/routes/api_keys.rs
router
function_signature
239
rust
null
null
null
null
api_key_update
null
null
null
null
null
null
null
pub struct ExchangeToken;
crates/pm_auth/src/types/api/auth_service.rs
pm_auth
struct_definition
5
rust
ExchangeToken
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Rapyd {}
crates/hyperswitch_connectors/src/connectors/rapyd.rs
hyperswitch_connectors
impl_block
11
rust
null
Rapyd
api::RefundExecute for
impl api::RefundExecute for for Rapyd
null
null
null
null
null
null
null
null
pub struct PayoutListConstraints { /// The identifier for customer #[schema(value_type = Option<String>, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")] pub customer_id: Option<id_type::CustomerId>, /// A cursor for use in pagination, fetch the next list after some object #[schema(example = "payout_fa...
crates/api_models/src/payouts.rs
api_models
struct_definition
367
rust
PayoutListConstraints
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Redsys {}
crates/hyperswitch_connectors/src/connectors/redsys.rs
hyperswitch_connectors
impl_block
10
rust
null
Redsys
api::RefundSync for
impl api::RefundSync for for Redsys
null
null
null
null
null
null
null
null
pub struct SkrillData {}
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
7
rust
SkrillData
null
null
null
null
null
null
null
null
null
null
null
pub async fn get_payment_method_from_hs_locker<'a>( state: &'a routes::SessionState, key_store: &domain::MerchantKeyStore, customer_id: &id_type::CustomerId, merchant_id: &id_type::MerchantId, payment_method_reference: &'a str, locker_choice: Option<api_enums::LockerChoice>, ) -> errors::CustomR...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
458
rust
null
null
null
null
get_payment_method_from_hs_locker
null
null
null
null
null
null
null
pub fn get_product_type(&self) -> Option<common_enums::MerchantProductType> { self.product_type }
crates/router/src/types/domain/user.rs
router
function_signature
27
rust
null
null
null
null
get_product_type
null
null
null
null
null
null
null
File: crates/router/src/services.rs Public functions: 3 pub mod api; pub mod authentication; pub mod authorization; pub mod connector_integration_interface; #[cfg(feature = "email")] pub mod email; pub mod encryption; #[cfg(feature = "olap")] pub mod jwt; pub mod kafka; pub mod logger; pub mod pm_auth; pub mod card_...
crates/router/src/services.rs
router
full_file
854
null
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: crates/cards/README.md # Type: Doc File # Cards Types to handle card masking and validation.
crates/cards/README.md
null
doc_file
25
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_window_for_elimination_routing( state: &SessionState, payment_attempt: &storage::PaymentAttempt, profile_id: &id_type::ProfileId, dynamic_algo_ref: routing_types::DynamicRoutingAlgorithmRef, elimination_routing_configs_params_interpolator: DynamicRoutingConfigParamsInterpolator, ...
crates/router/src/core/routing/helpers.rs
router
function_signature
1,436
rust
null
null
null
null
update_window_for_elimination_routing
null
null
null
null
null
null
null
File: crates/payment_methods/src/controller.rs Public functions: 1 Public structs: 1 use std::fmt::Debug; #[cfg(feature = "payouts")] use api_models::payouts; use api_models::{enums as api_enums, payment_methods as api}; #[cfg(feature = "v1")] use common_enums::enums as common_enums; #[cfg(feature = "v2")] use comm...
crates/payment_methods/src/controller.rs
payment_methods
full_file
2,368
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs Public functions: 1 Public structs: 15 use common_enums::{enums, Currency}; use common_utils::{pii::Email, request::Method, types::MinorUnit}; use error_stack::ResultExt; use hyperswitch_domain_models::{ payment_method_data::{BankRedirec...
crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs
hyperswitch_connectors
full_file
3,608
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PlaidErrorResponse { pub display_message: Option<String>, pub error_code: Option<String>, pub error_message: String, pub error_type: Option<String>, }
crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs
hyperswitch_connectors
struct_definition
38
rust
PlaidErrorResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PayoutListFilterConstraints { "allOf": [ { "allOf": [ { "$ref": "#/components/schemas/TimeRange" } ], "nullable": true }, { "type": "object", "required": [ "currency", "entity_type" ], ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
689
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PayoutListFilterConstraints" ]
null
null
null
null
impl api::Refund for Payload {}
crates/hyperswitch_connectors/src/connectors/payload.rs
hyperswitch_connectors
impl_block
8
rust
null
Payload
api::Refund for
impl api::Refund for for Payload
null
null
null
null
null
null
null
null
pub fn get_frm_routing_algorithm( &self, ) -> CustomResult< Option<api_models::routing::RoutingAlgorithmRef>, api_error_response::ApiErrorResponse, > { self.frm_routing_algorithm .clone() .map(|val| { val.parse_value::<api_models::routing::...
crates/hyperswitch_domain_models/src/business_profile.rs
hyperswitch_domain_models
function_signature
118
rust
null
null
null
null
get_frm_routing_algorithm
null
null
null
null
null
null
null
impl Globepay { pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/globepay.rs
hyperswitch_connectors
impl_block
34
rust
null
Globepay
null
impl Globepay
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.MandateCardDetails { "type": "object", "properties": { "last4_digits": { "type": "string", "description": "The last 4 digits of card", "nullable": true }, "card_exp_month": { "type": "string", "description": "The expiry month of card",...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
477
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "MandateCardDetails" ]
null
null
null
null
File: crates/router/src/types/connector_transformers.rs use api_models::enums as api_enums; use super::ForeignTryFrom; impl ForeignTryFrom<api_enums::Connector> for common_enums::RoutableConnectors { type Error = error_stack::Report<common_utils::errors::ValidationError>; fn foreign_try_from(from: api_enums...
crates/router/src/types/connector_transformers.rs
router
full_file
2,637
null
null
null
null
null
null
null
null
null
null
null
null
null
impl PaymentCapture for Netcetera {}
crates/hyperswitch_connectors/src/connectors/netcetera.rs
hyperswitch_connectors
impl_block
9
rust
null
Netcetera
PaymentCapture for
impl PaymentCapture for for Netcetera
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::IncomingWebhookReceive; let (merchant_id, profile_id, connector_id) = path.into_inner(); let is_relay_webhook = true; Box::pin(api::server_wrap( flow.clone(), state, &req, (), |state, auth, _, req_state| { let merchan...
crates/router/src/routes/webhooks.rs
router
impl_block
202
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
DisputeSyncData, DisputeSyncResponse, > for $path::$connector {} )* }; } default_imp_for_new_connector_integration_dispute_sync!( connectors::Aci, connectors::Adyen, connectors::Adyenplatform, connectors::Affirm, connectors::Airwallex,...
crates/hyperswitch_connectors/src/default_implementations_v2.rs#chunk1
hyperswitch_connectors
chunk
8,186
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn custom_error_handlers<B: body::MessageBody + 'static>( res: ServiceResponse<B>, ) -> actix_web::Result<ErrorHandlerResponse<B>> { let error_response = match res.status() { StatusCode::NOT_FOUND => ApiErrorResponse::InvalidRequestUrl, StatusCode::METHOD_NOT_ALLOWED => ApiErrorResponse::Inv...
crates/router/src/core/errors/error_handlers.rs
router
function_signature
171
rust
null
null
null
null
custom_error_handlers
null
null
null
null
null
null
null
/// Version of the crate containing the following information: /// /// - The latest git tag. If tags are not present in the repository, the short commit hash is used /// instead. /// - Short hash of the latest git commit. /// - Timestamp of the latest git commit. /// /// Example: `0.1.0-abcd012-2038-01-19T03:14:08Z`....
crates/router_env/src/env.rs
router_env
macro
159
rust
null
null
null
null
null
null
null
null
declarative
null
null
null
File: crates/router/tests/connectors/fiservemea.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 FiservemeaTe...
crates/router/tests/connectors/fiservemea.rs
router
full_file
2,954
null
null
null
null
null
null
null
null
null
null
null
null
null
impl EphemeralKey { pub fn server(config: AppState) -> Scope { web::scope("/ephemeral_keys") .app_data(web::Data::new(config)) .service(web::resource("").route(web::post().to(ephemeral_key_create))) .service(web::resource("/{id}").route(web::delete().to(ephemeral_key_dele...
crates/router/src/routes/app.rs
router
impl_block
84
rust
null
EphemeralKey
null
impl EphemeralKey
null
null
null
null
null
null
null
null
pub struct MerchantAccount { merchant_id: common_utils::id_type::MerchantId, pub return_url: Option<String>, pub enable_payment_response_hash: bool, pub payment_response_hash_key: Option<String>, pub redirect_to_merchant_with_http_post: bool, pub merchant_name: OptionalEncryptableName, pub m...
crates/hyperswitch_domain_models/src/merchant_account.rs
hyperswitch_domain_models
struct_definition
372
rust
MerchantAccount
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/nexinets.rs Public functions: 1 Public structs: 1 pub mod transformers; use std::sync::LazyLock; use api_models::webhooks::{IncomingWebhookEvent, ObjectReferenceId}; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::ByteSliceExt...
crates/hyperswitch_connectors/src/connectors/nexinets.rs
hyperswitch_connectors
full_file
6,938
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalWebhooksBody { pub event_type: PaypalWebhookEventType, pub resource: PaypalResource, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
25
rust
PaypalWebhooksBody
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Volt {}
crates/hyperswitch_connectors/src/connectors/volt.rs
hyperswitch_connectors
impl_block
8
rust
null
Volt
api::PaymentToken for
impl api::PaymentToken for for Volt
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Cybersource {}
crates/hyperswitch_connectors/src/connectors/cybersource.rs
hyperswitch_connectors
impl_block
10
rust
null
Cybersource
api::PaymentVoid for
impl api::PaymentVoid for for Cybersource
null
null
null
null
null
null
null
null
impl PaymentAuthorize for Payone {}
crates/hyperswitch_connectors/src/connectors/payone.rs
hyperswitch_connectors
impl_block
7
rust
null
Payone
PaymentAuthorize for
impl PaymentAuthorize for for Payone
null
null
null
null
null
null
null
null
pub struct RequiredFieldsOverrideRequest { pub billing: Option<payments::Address>, }
crates/api_models/src/payouts.rs
api_models
struct_definition
19
rust
RequiredFieldsOverrideRequest
null
null
null
null
null
null
null
null
null
null
null
impl events::EventInfo for AuthenticationType { type Data = Self; fn data(&self) -> error_stack::Result<Self::Data, events::EventsError> { Ok(self.clone()) } fn key(&self) -> String { "auth_info".to_string() } }
crates/router/src/services/authentication.rs
router
impl_block
63
rust
null
AuthenticationType
events::EventInfo for
impl events::EventInfo for for AuthenticationType
null
null
null
null
null
null
null
null
File: crates/analytics/src/auth_events/metrics/challenge_success_count.rs use std::collections::HashSet; use api_models::analytics::{ auth_events::{AuthEventDimensions, AuthEventFilters, AuthEventMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_enums::{AuthenticationStatus, DecoupledAuthenticat...
crates/analytics/src/auth_events/metrics/challenge_success_count.rs
analytics
full_file
1,092
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/utils/db_utils.rs Public functions: 2 use crate::{ core::errors::{self, utils::RedisErrorExt}, routes::metrics, }; /// Generates hscan field pattern. Suppose the field is pa_1234_ref_1211 it will generate /// pa_1234_ref_* pub fn generate_hscan_pattern_for_refund(sk: &str) -> String {...
crates/router/src/utils/db_utils.rs
router
full_file
355
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundExecute for Katapult {}
crates/hyperswitch_connectors/src/connectors/katapult.rs
hyperswitch_connectors
impl_block
10
rust
null
Katapult
api::RefundExecute for
impl api::RefundExecute for for Katapult
null
null
null
null
null
null
null
null
/// returns `false` otherwise. pub fn is_normal(&self) -> bool { matches!(self, Self::Normal(_)) }
crates/masking/src/maskable.rs
masking
function_signature
30
rust
null
null
null
null
is_normal
null
null
null
null
null
null
null
File: crates/common_utils/src/tokenization.rs Public functions: 1 //! Module for tokenization-related functionality //! //! This module provides types and functions for handling tokenized payment data, //! including response structures and token generation utilities. use crate::consts::TOKEN_LENGTH; #[cfg(all(featu...
crates/common_utils/src/tokenization.rs
common_utils
full_file
122
null
null
null
null
null
null
null
null
null
null
null
null
null
impl<'a> KafkaPayout<'a> { pub fn from_storage(payouts: &'a Payouts, payout_attempt: &'a PayoutAttempt) -> Self { Self { payout_id: &payouts.payout_id, payout_attempt_id: &payout_attempt.payout_attempt_id, merchant_id: &payouts.merchant_id, customer_id: payout...
crates/router/src/services/kafka/payout.rs
router
impl_block
347
rust
null
KafkaPayout
null
impl KafkaPayout
null
null
null
null
null
null
null
null
pub async fn retrieve_conditional_config( state: SessionState, merchant_context: domain::MerchantContext, ) -> RouterResponse<DecisionManagerResponse> { let db = state.store.as_ref(); let algorithm_id = merchant_context .get_merchant_account() .get_id() .get_payment_config_routin...
crates/router/src/core/conditional_config.rs
router
function_signature
220
rust
null
null
null
null
retrieve_conditional_config
null
null
null
null
null
null
null
pub async fn delete_payment_method_data_from_vault_internal( state: &routes::SessionState, merchant_context: &domain::MerchantContext, vault_id: domain::VaultId, customer_id: &id_type::GlobalCustomerId, ) -> CustomResult<pm_types::VaultDeleteResponse, errors::VaultError> { let payload = pm_types::Va...
crates/router/src/core/payment_methods/vault.rs
router
function_signature
238
rust
null
null
null
null
delete_payment_method_data_from_vault_internal
null
null
null
null
null
null
null
Documentation: api-reference/v2/payments/payments--session-token.mdx # Type: Doc File --- openapi: post /v2/payments/{payment_id}/create-external-sdk-tokens ---
api-reference/v2/payments/payments--session-token.mdx
null
doc_file
44
doc
null
null
null
null
null
null
null
null
null
null
null
null
impl NetworkTokenizationBuilder<'_, PmTokenUpdated> { pub fn build(self) -> api::CardNetworkTokenizeResponse { api::CardNetworkTokenizeResponse { payment_method_response: self.payment_method_response, customer: self.customer.cloned(), card_tokenized: self.card_tokenized, ...
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
impl_block
112
rust
null
NetworkTokenizationBuilder
null
impl NetworkTokenizationBuilder
null
null
null
null
null
null
null
null
pub struct OrderData { pub consent_id: String, pub customer_id: id_type::GlobalCustomerId, }
crates/router/src/types/payment_methods.rs
router
struct_definition
24
rust
OrderData
null
null
null
null
null
null
null
null
null
null
null
impl api::MandateSetup for Juspaythreedsserver {}
crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs
hyperswitch_connectors
impl_block
16
rust
null
Juspaythreedsserver
api::MandateSetup for
impl api::MandateSetup for for Juspaythreedsserver
null
null
null
null
null
null
null
null
/// Retrieves the decision from the retry feature data. pub fn get_decision(&self) -> common_enums::GsmDecision { match self { Self::Retry(data) => data.decision, } }
crates/common_types/src/domain.rs
common_types
function_signature
46
rust
null
null
null
null
get_decision
null
null
null
null
null
null
null
File: crates/storage_impl/src/callback_mapper.rs use diesel_models::callback_mapper::CallbackMapper as DieselCallbackMapper; use hyperswitch_domain_models::callback_mapper::CallbackMapper; use crate::DataModelExt; impl DataModelExt for CallbackMapper { type StorageModel = DieselCallbackMapper; fn to_storage...
crates/storage_impl/src/callback_mapper.rs
storage_impl
full_file
189
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn new_token( user_id: String, merchant_id: id_type::MerchantId, settings: &Settings, org_id: id_type::OrganizationId, profile_id: id_type::ProfileId, tenant_id: Option<id_type::TenantId>, role_info: authorization::roles::RoleInfo, ) -> UserResult<St...
crates/router/src/services/authentication.rs
router
function_signature
261
rust
null
null
null
null
new_token
null
null
null
null
null
null
null
pub fn log_event<T: KafkaMessage>(&self, event: &T) { match self { Self::Kafka(kafka) => kafka.log_event(event).unwrap_or_else(|e| { logger::error!("Failed to log event: {:?}", e); }), Self::Logs(logger) => logger.log_event(event), }; }
crates/router/src/events.rs
router
function_signature
73
rust
null
null
null
null
log_event
null
null
null
null
null
null
null
pub struct DummyConnectorRefundResponse { pub status: DummyConnectorStatus, pub id: String, pub currency: Currency, #[serde(with = "common_utils::custom_serde::iso8601")] pub created: PrimitiveDateTime, pub payment_amount: i64, pub refund_amount: i64, }
crates/router/src/routes/dummy_connector/types.rs
router
struct_definition
73
rust
DummyConnectorRefundResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn find_by_profile_id( conn: &PgPooledConn, profile_id: &common_utils::id_type::ProfileId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl_identifier.eq(profile_id.to_owned()), ) .await ...
crates/diesel_models/src/query/business_profile.rs
diesel_models
function_signature
78
rust
null
null
null
null
find_by_profile_id
null
null
null
null
null
null
null
Documentation: api-reference/v2/payment-method-session/payment-method-session--list-payment-methods.mdx # Type: Doc File --- openapi: get /v2/payment-method-sessions/{id}/list-payment-methods ---
api-reference/v2/payment-method-session/payment-method-session--list-payment-methods.mdx
null
doc_file
47
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/analytics/src/disputes/metrics/sessionized_metrics/total_amount_disputed.rs use std::collections::HashSet; use api_models::analytics::{ disputes::{DisputeDimensions, DisputeFilters, DisputeMetricsBucketIdentifier}, Granularity, TimeRange, }; use common_utils::errors::ReportSwitchExt; use error_st...
crates/analytics/src/disputes/metrics/sessionized_metrics/total_amount_disputed.rs
analytics
full_file
853
null
null
null
null
null
null
null
null
null
null
null
null
null
- Make kms decryption optional if partial auth not enabled ([#5779](https://github.com/juspay/hyperswitch/pull/5779)) ([`aaeb192`](https://github.com/juspay/hyperswitch/commit/aaeb1925767b08e35decb913e3867cd6415f0abd)) **Full Changelog:** [`2024.09.10.0...2024.09.11.0`](https://github.com/juspay/hyperswitch/compare/20...
CHANGELOG.md#chunk23
null
doc_chunk
8,136
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentProxyIntent;
crates/router/src/core/payments/operations/proxy_payments_intent.rs
router
struct_definition
6
rust
PaymentProxyIntent
null
null
null
null
null
null
null
null
null
null
null
pub trait StorageErrorExt<T, E> { #[track_caller] fn to_not_found_response(self, not_found_response: E) -> error_stack::Result<T, E>; #[track_caller] fn to_duplicate_response(self, duplicate_response: E) -> error_stack::Result<T, E>; }
crates/payment_methods/src/helpers.rs
payment_methods
trait_definition
67
rust
null
null
StorageErrorExt
null
null
null
null
null
null
null
null
null
Web Documentation: Exploration Guide | Hyperswitch # Type: Web Doc Hyperswitch gives you full control over your payments infrastructure without the complexity of building from scratch. Whether you're validating a prototype or scaling globally, you can get started in minutes. This guide helps you: Quickly install Hyper...
https://docs.hyperswitch.io/
null
web_doc_file
1,481
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/
Exploration Guide | Hyperswitch
null
pub struct RefundResponse { id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/opayo/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
RefundResponse
null
null
null
null
null
null
null
null
null
null
null
impl DelReply { pub fn is_key_deleted(&self) -> bool { matches!(self, Self::KeyDeleted) } pub fn is_key_not_deleted(&self) -> bool { matches!(self, Self::KeyNotDeleted) } }
crates/redis_interface/src/types.rs
redis_interface
impl_block
55
rust
null
DelReply
null
impl DelReply
null
null
null
null
null
null
null
null
pub struct Itaubank { amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/itaubank.rs
hyperswitch_connectors
struct_definition
28
rust
Itaubank
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs Public structs: 16 use std::collections::HashMap; use api_models::webhooks::IncomingWebhookEvent; use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::Encode, request::Method, types::FloatMajorUnit, }; use error_...
crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs
hyperswitch_connectors
full_file
5,434
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct NoLevel;
crates/router/src/types/domain/user.rs
router
struct_definition
5
rust
NoLevel
null
null
null
null
null
null
null
null
null
null
null
pub fn add_filter_clause(&mut self, lhs: String, rhs: Vec<Value>) -> QueryResult<()> { self.filters.push((lhs, rhs)); Ok(()) }
crates/analytics/src/opensearch.rs
analytics
function_signature
37
rust
null
null
null
null
add_filter_clause
null
null
null
null
null
null
null
pub async fn list_multiple_merchant_accounts( conn: &PgPooledConn, merchant_ids: Vec<common_utils::id_type::MerchantId>, ) -> StorageResult<Vec<Self>> { generics::generic_filter::< <Self as HasTable>::Table, _, <<Self as HasTable>::Table as Table>::Primary...
crates/diesel_models/src/query/merchant_account.rs
diesel_models
function_signature
113
rust
null
null
null
null
list_multiple_merchant_accounts
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/opennode/transformers.rs Public structs: 9 use std::collections::HashMap; use common_enums::{enums, AttemptStatus}; use common_utils::{request::Method, types::MinorUnit}; use hyperswitch_domain_models::{ router_data::{ConnectorAuthType, RouterData}, router_f...
crates/hyperswitch_connectors/src/connectors/opennode/transformers.rs
hyperswitch_connectors
full_file
2,060
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PayoutLinkResponse { pub payout_link_id: String, #[schema(value_type = String)] pub link: Secret<url::Url>, }
crates/api_models/src/payouts.rs
api_models
struct_definition
34
rust
PayoutLinkResponse
null
null
null
null
null
null
null
null
null
null
null
impl Plaid { pub fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/plaid.rs
hyperswitch_connectors
impl_block
34
rust
null
Plaid
null
impl Plaid
null
null
null
null
null
null
null
null
pub struct GocardlessAuthType { pub(super) access_token: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
GocardlessAuthType
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/api/payments_v2.rs //! Payments V2 interface use hyperswitch_domain_models::{ router_data_v2::PaymentFlowData, router_flow_types::payments::{ Approve, Authorize, AuthorizeSessionToken, CalculateTax, Capture, CompleteAuthorize, CreateConnectorCustomer, Cr...
crates/hyperswitch_interfaces/src/api/payments_v2.rs
hyperswitch_interfaces
full_file
1,437
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct FraudMarkingInformation { reason: Option<String>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
FraudMarkingInformation
null
null
null
null
null
null
null
null
null
null
null
pub fn generate_payment_method_session_response( payment_method_session: hyperswitch_domain_models::payment_methods::PaymentMethodSession, client_secret: Secret<String>, associated_payment: Option<api_models::payments::PaymentsResponse>, tokenization_service_response: Option<api_models::tokenization::Ge...
crates/router/src/core/payment_methods/transformers.rs
router
function_signature
326
rust
null
null
null
null
generate_payment_method_session_response
null
null
null
null
null
null
null
impl api::PaymentSync for Nordea {}
crates/hyperswitch_connectors/src/connectors/nordea.rs
hyperswitch_connectors
impl_block
9
rust
null
Nordea
api::PaymentSync for
impl api::PaymentSync for for Nordea
null
null
null
null
null
null
null
null