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
OpenAPI Block Path: components.schemas.PayoutCancelRequest { "type": "object", "required": [ "payout_id" ], "properties": { "payout_id": { "type": "string", "description": "Unique identifier for the payout. This ensures idempotency for multiple payouts\nthat have been done by a single mercha...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
157
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PayoutCancelRequest" ]
null
null
null
null
**Full Changelog:** [`2025.01.16.0...2025.01.17.0`](https://github.com/juspay/hyperswitch/compare/2025.01.16.0...2025.01.17.0) - - - ## 2025.01.16.0 ### Features - **connector:** [Xendit] ADD Cards & Mandates Flow ([#6966](https://github.com/juspay/hyperswitch/pull/6966)) ([`bbf8844`](https://github.com/juspay/hype...
CHANGELOG.md#chunk15
null
doc_chunk
8,192
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TokenizedWalletInsensitiveValues { pub customer_id: Option<id_type::CustomerId>, }
crates/router/src/core/payment_methods/vault.rs
router
struct_definition
21
rust
TokenizedWalletInsensitiveValues
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/globalpay.rs Public functions: 1 Public structs: 1 mod requests; mod response; pub mod transformers; use std::sync::LazyLock; use api_models::webhooks::IncomingWebhookEvent; use common_enums::{enums, CallConnectorAction, PaymentAction}; use common_utils::{ cryp...
crates/hyperswitch_connectors/src/connectors/globalpay.rs#chunk0
hyperswitch_connectors
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/services/authorization.rs Public functions: 5 use std::sync::Arc; use common_utils::id_type; use error_stack::ResultExt; use redis_interface::RedisConnectionPool; use router_env::logger; use super::authentication::AuthToken; use crate::{ consts, core::errors::{ApiErrorResponse, Route...
crates/router/src/services/authorization.rs
router
full_file
1,059
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn create_connector_request( request: Self, api_response: ConnectorApiIntegrationPayload, ) -> ConnectorApiIntegrationPayload { let mut card_payment_method_types = Vec::new(); let mut payment_method_enabled = Vec::new(); if let Some(payment_methods_enabled) = request.pay...
crates/connector_configs/src/transformer.rs
connector_configs
function_signature
628
rust
null
null
null
null
create_connector_request
null
null
null
null
null
null
null
impl api::Refund for Itaubank {}
crates/hyperswitch_connectors/src/connectors/itaubank.rs
hyperswitch_connectors
impl_block
10
rust
null
Itaubank
api::Refund for
impl api::Refund for for Itaubank
null
null
null
null
null
null
null
null
pub fn validate(&self) -> Result<(), ApplicationError> { use common_utils::fp_utils::when; when(!self.mock_locker && self.host.is_default_or_empty(), || { Err(ApplicationError::InvalidConfigurationValueError( "locker host must not be empty when mock locker is disabled".into(...
crates/router/src/configs/validations.rs
router
function_signature
130
rust
null
null
null
null
validate
null
null
null
null
null
null
null
pub struct PaymentIntentData<F> where F: Clone, { pub flow: PhantomData<F>, pub payment_intent: PaymentIntent, pub sessions_token: Vec<SessionToken>, pub client_secret: Option<Secret<String>>, pub vault_session_details: Option<VaultSessionDetails>, pub connector_customer_id: Option<String>, ...
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
struct_definition
73
rust
PaymentIntentData
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Mollie {}
crates/hyperswitch_connectors/src/connectors/mollie.rs
hyperswitch_connectors
impl_block
10
rust
null
Mollie
api::PaymentToken for
impl api::PaymentToken for for Mollie
null
null
null
null
null
null
null
null
File: crates/router/src/routes/payouts.rs Public functions: 13 use actix_web::{ body::{BoxBody, MessageBody}, web, HttpRequest, HttpResponse, Responder, }; use common_utils::id_type; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_locking, payouts::*}, s...
crates/router/src/routes/payouts.rs
router
full_file
3,365
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn payments_core<F, Res, Req, Op, FData, D>( state: SessionState, req_state: ReqState, merchant_context: domain::MerchantContext, profile_id: Option<id_type::ProfileId>, operation: Op, req: Req, auth_flow: services::AuthFlow, call_connector_action: CallConnectorAction, elig...
crates/router/src/core/payments.rs
router
function_signature
493
rust
null
null
null
null
payments_core
null
null
null
null
null
null
null
pub async fn payment_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 payment_id = path.into_inner(); let stripe_payload: types::...
crates/router/src/compatibility/stripe/payment_intents.rs
router
function_signature
592
rust
null
null
null
null
payment_intents_confirm
null
null
null
null
null
null
null
pub struct CardPayout { /// The card number #[schema(value_type = String, example = "4242424242424242")] pub card_number: CardNumber, /// The card's expiry month #[schema(value_type = String)] pub expiry_month: Secret<String>, /// The card's expiry year #[schema(value_type = String)] ...
crates/api_models/src/payouts.rs
api_models
struct_definition
132
rust
CardPayout
null
null
null
null
null
null
null
null
null
null
null
impl UserNew { pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<User> { generics::generic_insert(conn, self).await } }
crates/diesel_models/src/query/user.rs
diesel_models
impl_block
39
rust
null
UserNew
null
impl UserNew
null
null
null
null
null
null
null
null
pub struct BarclaycardConsumerAuthInformationRequest { return_url: String, reference_id: String, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
BarclaycardConsumerAuthInformationRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/connector_configs/src/transformer.rs Public functions: 4 use std::str::FromStr; use api_models::{ enums::{ Connector, PaymentMethod, PaymentMethodType::{self, AliPay, ApplePay, GooglePay, Klarna, Paypal, WeChatPay}, }, payment_methods, refunds::MinorUnit, }; use crate::c...
crates/connector_configs/src/transformer.rs
connector_configs
full_file
1,498
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AmazonPayShippingMethod { "type": "object", "required": [ "shipping_method_name", "shipping_method_code" ], "properties": { "shipping_method_name": { "type": "string", "description": "Name of the shipping method" }, "shipping_method_code": {...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
104
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AmazonPayShippingMethod" ]
null
null
null
null
impl api::PaymentToken for Novalnet {}
crates/hyperswitch_connectors/src/connectors/novalnet.rs
hyperswitch_connectors
impl_block
10
rust
null
Novalnet
api::PaymentToken for
impl api::PaymentToken for for Novalnet
null
null
null
null
null
null
null
null
pub struct BusinessPayoutLinkConfig { #[serde(flatten)] pub config: BusinessGenericLinkConfig, /// Form layout of the payout link #[schema(value_type = Option<UIWidgetFormLayout>, max_length = 255, example = "tabs")] pub form_layout: Option<api_enums::UIWidgetFormLayout>, /// Allows for removi...
crates/api_models/src/admin.rs
api_models
struct_definition
117
rust
BusinessPayoutLinkConfig
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalRouterData<T> { pub amount: StringMajorUnit, pub shipping_cost: Option<StringMajorUnit>, pub order_tax_amount: Option<StringMajorUnit>, pub order_amount: Option<StringMajorUnit>, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
55
rust
PaypalRouterData
null
null
null
null
null
null
null
null
null
null
null
pub struct BlocklistLookup { pub merchant_id: common_utils::id_type::MerchantId, pub fingerprint: String, }
crates/diesel_models/src/blocklist_lookup.rs
diesel_models
struct_definition
27
rust
BlocklistLookup
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/signifyd.rs Public structs: 1 pub mod transformers; use std::fmt::Debug; #[cfg(feature = "frm")] use api_models::webhooks::IncomingWebhookEvent; #[cfg(feature = "frm")] use base64::Engine; #[cfg(feature = "frm")] use common_utils::{ consts, request::{Method,...
crates/hyperswitch_connectors/src/connectors/signifyd.rs
hyperswitch_connectors
full_file
5,759
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PayoutsMandateReferenceRecord { pub transfer_method_id: Option<String>, }
crates/api_models/src/payment_methods.rs
api_models
struct_definition
21
rust
PayoutsMandateReferenceRecord
null
null
null
null
null
null
null
null
null
null
null
impl Xendit { pub fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/xendit.rs
hyperswitch_connectors
impl_block
35
rust
null
Xendit
null
impl Xendit
null
null
null
null
null
null
null
null
pub struct PaymentMethodAuthConfig { pub enabled_payment_methods: Vec<PaymentMethodAuthConnectorChoice>, }
crates/api_models/src/pm_auth.rs
api_models
struct_definition
22
rust
PaymentMethodAuthConfig
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Checkbook {}
crates/hyperswitch_connectors/src/connectors/checkbook.rs
hyperswitch_connectors
impl_block
9
rust
null
Checkbook
api::PaymentSync for
impl api::PaymentSync for for Checkbook
null
null
null
null
null
null
null
null
pub fn validate_payment_method_update( _card_updation_obj: CardDetailUpdate, _existing_card_data: api::CardDetailFromLocker, ) -> bool { todo!() }
crates/router/src/core/payment_methods/cards.rs
router
function_signature
40
rust
null
null
null
null
validate_payment_method_update
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GetSankey; let payload = json_payload.into_inner(); Box::pin(api::server_wrap( flow, state, &req, payload, |state, auth: AuthenticationData, req, _| async move { let org_id = au...
crates/router/src/analytics.rs
router
impl_block
235
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl api::PaymentVoid for Wellsfargo {}
crates/hyperswitch_connectors/src/connectors/wellsfargo.rs
hyperswitch_connectors
impl_block
10
rust
null
Wellsfargo
api::PaymentVoid for
impl api::PaymentVoid for for Wellsfargo
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Deutschebank {}
crates/hyperswitch_connectors/src/connectors/deutschebank.rs
hyperswitch_connectors
impl_block
9
rust
null
Deutschebank
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Deutschebank
null
null
null
null
null
null
null
null
pub struct ValueData { pub value: dir::DirValue, pub metadata: Metadata, }
crates/euclid/src/dssa/types.rs
euclid
struct_definition
21
rust
ValueData
null
null
null
null
null
null
null
null
null
null
null
pub fn into_keys(self) -> Keys<K> { Keys::new(0..self.data.len()) }
crates/hyperswitch_constraint_graph/src/dense_map.rs
hyperswitch_constraint_graph
function_signature
24
rust
null
null
null
null
into_keys
null
null
null
null
null
null
null
impl api::PaymentVoid for Redsys {}
crates/hyperswitch_connectors/src/connectors/redsys.rs
hyperswitch_connectors
impl_block
9
rust
null
Redsys
api::PaymentVoid for
impl api::PaymentVoid for for Redsys
null
null
null
null
null
null
null
null
impl DisputeMetricAccumulator for RateAccumulator { type MetricOutput = Option<(Option<u64>, Option<u64>, Option<u64>, Option<u64>)>; fn add_metrics_bucket(&mut self, metrics: &DisputeMetricRow) { if let Some(ref dispute_status) = metrics.dispute_status { if dispute_status.as_ref() == &stor...
crates/analytics/src/disputes/accumulators.rs
analytics
impl_block
294
rust
null
RateAccumulator
DisputeMetricAccumulator for
impl DisputeMetricAccumulator for for RateAccumulator
null
null
null
null
null
null
null
null
/// Get the User Agent pub fn get_user_agent(&self) -> Option<String> { self.online.as_ref().map(|data| data.user_agent.clone()) }
crates/common_types/src/payments.rs
common_types
function_signature
37
rust
null
null
null
null
get_user_agent
null
null
null
null
null
null
null
/// RoutingEvent type pub struct RoutingEvent { tenant_id: common_utils::id_type::TenantId, routable_connectors: String, payment_connector: Option<String>, flow: String, request: String, response: Option<String>, error: Option<String>, url: String, method: String, payment_id: Str...
crates/hyperswitch_interfaces/src/events/routing_api_logs.rs
hyperswitch_interfaces
struct_definition
142
rust
RoutingEvent
null
null
null
null
null
null
null
null
null
null
null
impl Boku { pub fn new() -> &'static Self { &Self { amount_converter: &MinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/boku.rs
hyperswitch_connectors
impl_block
33
rust
null
Boku
null
impl Boku
null
null
null
null
null
null
null
null
pub async fn user_org_create( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<user_api::UserOrgMerchantCreateRequest>, ) -> HttpResponse { let flow = Flow::UserOrgMerchantCreate; Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inn...
crates/router/src/routes/user.rs
router
function_signature
150
rust
null
null
null
null
user_org_create
null
null
null
null
null
null
null
pub struct RoutingStrategy { /// success rate service for Dynamic Routing pub success_rate_client: SuccessRateCalculatorClient<Client>, /// contract based routing service for Dynamic Routing pub contract_based_client: ContractScoreCalculatorClient<Client>, /// elimination service for Dynamic Routing...
crates/external_services/src/grpc_client/dynamic_routing.rs
external_services
struct_definition
70
rust
RoutingStrategy
null
null
null
null
null
null
null
null
null
null
null
pub struct RequiredFieldInfo { /// Required field for a payment_method through a payment_method_type pub required_field: String, /// Display name of the required field in the front-end pub display_name: String, /// Possible field type of required field #[schema(value_type = FieldType)] pub...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
98
rust
RequiredFieldInfo
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentsUpdateMetadataRequest { "type": "object", "required": [ "metadata" ], "properties": { "metadata": { "type": "object", "description": "Metadata is useful for storing additional, unstructured information on an object." } }, "additionalProp...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
81
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentsUpdateMetadataRequest" ]
null
null
null
null
impl behaviour::Conversion for Customer { type DstType = diesel_models::customers::Customer; type NewDstType = diesel_models::customers::CustomerNew; async fn convert(self) -> CustomResult<Self::DstType, ValidationError> { Ok(diesel_models::customers::Customer { id: self.id, ...
crates/hyperswitch_domain_models/src/customer.rs
hyperswitch_domain_models
impl_block
919
rust
null
Customer
behaviour::Conversion for
impl behaviour::Conversion for for Customer
null
null
null
null
null
null
null
null
pub fn is_jwt_auth(headers: &HeaderMap) -> bool { let header_map_struct = HeaderMapStruct::new(headers); match header_map_struct.get_auth_string_from_header() { Ok(auth_str) => auth_str.starts_with("Bearer"), Err(_) => get_cookie_from_header(headers) .and_then(cookies::get_jwt_from_c...
crates/router/src/services/authentication.rs
router
function_signature
83
rust
null
null
null
null
is_jwt_auth
null
null
null
null
null
null
null
/// Verify that the cargo metadata workspace packages format matches that expected by /// [`set_cargo_workspace_members_env`] to set the `CARGO_WORKSPACE_MEMBERS` environment variable. /// /// This function should be typically called within build scripts, before the /// [`set_cargo_workspace_members_env`] function is c...
crates/router_env/src/cargo_workspace.rs
router_env
function_signature
192
rust
null
null
null
null
verify_cargo_metadata_format
null
null
null
null
null
null
null
pub struct OpenSearchHealth { pub status: OpenSearchHealthStatus, }
crates/analytics/src/opensearch.rs
analytics
struct_definition
16
rust
OpenSearchHealth
null
null
null
null
null
null
null
null
null
null
null
pub struct ArchipelTokenizedCard { number: cards::CardNumber, expiry: CardExpiryDate, scheme: ArchipelCardScheme, }
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
ArchipelTokenizedCard
null
null
null
null
null
null
null
null
null
null
null
pub async fn post_3ds_payments_authorize( state: web::Data<app::AppState>, req: actix_web::HttpRequest, json_payload: Option<web::Form<serde_json::Value>>, path: web::Path<( common_utils::id_type::PaymentId, common_utils::id_type::MerchantId, String, )
crates/router/src/routes/payments.rs
router
function_signature
79
rust
null
null
null
null
post_3ds_payments_authorize
null
null
null
null
null
null
null
pub struct HipayPaymentsResponse { status: HipayPaymentStatus, message: String, order: PaymentOrder, forward_url: String, transaction_reference: String, }
crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs
hyperswitch_connectors
struct_definition
39
rust
HipayPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn construct_router_data_for_psync<'a>( state: &'a SessionState, payment_data: hyperswitch_domain_models::payments::PaymentStatusData<api::PSync>, connector_id: &str, merchant_context: &domain::MerchantContext, customer: &'a Option<domain::Customer>, merchant_connector_account: &domain...
crates/router/src/core/payments/transformers.rs
router
function_signature
1,127
rust
null
null
null
null
construct_router_data_for_psync
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentLinkTransactionDetails { "type": "object", "required": [ "key", "value" ], "properties": { "key": { "type": "string", "description": "Key for the transaction details", "example": "Policy-Number", "maxLength": 255 }, "value...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
183
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentLinkTransactionDetails" ]
null
null
null
null
File: crates/analytics/src/disputes/types.rs use api_models::analytics::disputes::{DisputeDimensions, DisputeFilters}; use error_stack::ResultExt; use crate::{ query::{QueryBuilder, QueryFilter, QueryResult, ToSql}, types::{AnalyticsCollection, AnalyticsDataSource}, }; impl<T> QueryFilter<T> for DisputeFilte...
crates/analytics/src/disputes/types.rs
analytics
full_file
259
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AciErrorResponse { ndc: String, timestamp: String, build_number: String, pub(super) result: ResultCode, }
crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
hyperswitch_connectors
struct_definition
33
rust
AciErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn payment_link_retrieve() {}
crates/openapi/src/routes/payment_link.rs
openapi
function_signature
9
rust
null
null
null
null
payment_link_retrieve
null
null
null
null
null
null
null
pub struct VerifyTotpRequest { pub totp: Secret<String>, }
crates/api_models/src/user.rs
api_models
struct_definition
16
rust
VerifyTotpRequest
null
null
null
null
null
null
null
null
null
null
null
pub fn get_shipping_required_fields() -> HashMap<String, RequiredFieldInfo> { HashMap::from([ RequiredField::ShippingFirstName.to_tuple(), RequiredField::ShippingLastName.to_tuple(), RequiredField::ShippingAddressCity.to_tuple(), RequiredField::ShippingAddressState.to_tuple(), ...
crates/payment_methods/src/configs/payment_connector_required_fields.rs
payment_methods
function_signature
127
rust
null
null
null
null
get_shipping_required_fields
null
null
null
null
null
null
null
pub struct CardDataForVault { pub card_data: payment_method_data::Card, pub network_token_req_ref_id: Option<String>, }
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
struct_definition
30
rust
CardDataForVault
null
null
null
null
null
null
null
null
null
null
null
/// Generates the ToEncryptable trait for a type /// /// This macro generates the temporary structs which has the fields that needs to be encrypted /// /// fn to_encryptable: Convert the temp struct to a hashmap that can be sent over the network /// fn from_encryptable: Convert the hashmap back to temp struct #[proc_ma...
crates/router_derive/src/lib.rs
router_derive
macro
145
rust
null
null
null
null
null
null
null
null
proc_derive
null
null
null
impl webhooks::IncomingWebhook for Fiuu { fn get_webhook_source_verification_algorithm( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(crypto::Md5)) } fn get_webhook_...
crates/hyperswitch_connectors/src/connectors/fiuu.rs
hyperswitch_connectors
impl_block
2,190
rust
null
Fiuu
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Fiuu
null
null
null
null
null
null
null
null
File: crates/hyperswitch_interfaces/src/api.rs //! API interface /// authentication module pub mod authentication; /// authentication_v2 module pub mod authentication_v2; pub mod disputes; pub mod disputes_v2; pub mod files; pub mod files_v2; #[cfg(feature = "frm")] pub mod fraud_check; #[cfg(feature = "frm")] pub mo...
crates/hyperswitch_interfaces/src/api.rs
hyperswitch_interfaces
full_file
5,050
null
null
null
null
null
null
null
null
null
null
null
null
null
impl std::ops::DerefMut for PaymentsMandateReference { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } }
crates/diesel_models/src/payment_method.rs
diesel_models
impl_block
41
rust
null
PaymentsMandateReference
std::ops::DerefMut for
impl std::ops::DerefMut for for PaymentsMandateReference
null
null
null
null
null
null
null
null
pub struct PaymentDetails { credit_card_bin: Option<Secret<String>>, credit_card_number: Option<Secret<String>>, credit_card_company: Option<api_models::enums::CardNetwork>, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
41
rust
PaymentDetails
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/types/api/connector_mapping.rs Public functions: 4 Public structs: 1 use std::str::FromStr; use error_stack::{report, ResultExt}; use hyperswitch_connectors::connectors::{Paytm, Phonepe}; use crate::{ configs::settings::Connectors, connector, core::errors::{self, CustomResult}, ...
crates/router/src/types/api/connector_mapping.rs
router
full_file
4,908
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Jpmorgan { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&JPMORGAN_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*JPMORGAN_SUPPORTED_PAYMENT_METHODS) } fn get_s...
crates/hyperswitch_connectors/src/connectors/jpmorgan.rs
hyperswitch_connectors
impl_block
112
rust
null
Jpmorgan
ConnectorSpecifications for
impl ConnectorSpecifications for for Jpmorgan
null
null
null
null
null
null
null
null
/// get_blocklist_enabled_key pub fn get_blocklist_guard_key(&self) -> String { format!("guard_blocklist_for_{}", self.get_string_repr()) }
crates/common_utils/src/id_type/merchant.rs
common_utils
function_signature
37
rust
null
null
null
null
get_blocklist_guard_key
null
null
null
null
null
null
null
impl PaymentIntentMetricAccumulator for PaymentsSuccessRateAccumulator { type MetricOutput = ( Option<u32>, Option<u32>, Option<u32>, Option<f64>, Option<f64>, ); fn add_metrics_bucket(&mut self, metrics: &PaymentIntentMetricRow) { if let Some(ref status) = m...
crates/analytics/src/payment_intents/accumulator.rs
analytics
impl_block
498
rust
null
PaymentsSuccessRateAccumulator
PaymentIntentMetricAccumulator for
impl PaymentIntentMetricAccumulator for for PaymentsSuccessRateAccumulator
null
null
null
null
null
null
null
null
impl api::Refund for Fiservemea {}
crates/hyperswitch_connectors/src/connectors/fiservemea.rs
hyperswitch_connectors
impl_block
12
rust
null
Fiservemea
api::Refund for
impl api::Refund for for Fiservemea
null
null
null
null
null
null
null
null
pub async fn refunds_create() {}
crates/openapi/src/routes/refunds.rs
openapi
function_signature
7
rust
null
null
null
null
refunds_create
null
null
null
null
null
null
null
pub struct NovalnetCancelTransaction { tid: String, }
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
NovalnetCancelTransaction
null
null
null
null
null
null
null
null
null
null
null
pub fn get_list_of_accept_languages(accept_language: String) -> Vec<String> { accept_language .split(',') .map(|lang| lang.split(';').next().unwrap_or(lang).trim().to_string()) .collect() }
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs
hyperswitch_connectors
function_signature
52
rust
null
null
null
null
get_list_of_accept_languages
null
null
null
null
null
null
null
pub fn set_stored_card_response( self, store_card_response: &'a StoreLockerResponse, ) -> NetworkTokenizationBuilder<'a, CardStored> { NetworkTokenizationBuilder { state: std::marker::PhantomData, stored_card: Some(&store_card_response.store_card_resp), cu...
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
function_signature
145
rust
null
null
null
null
set_stored_card_response
null
null
null
null
null
null
null
impl api::Payment for Worldpayxml {}
crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
hyperswitch_connectors
impl_block
9
rust
null
Worldpayxml
api::Payment for
impl api::Payment for for Worldpayxml
null
null
null
null
null
null
null
null
pub struct SinglePurposeOrLoginToken { pub user_id: String, pub role_id: Option<String>, pub purpose: Option<TokenPurpose>, pub exp: u64, pub tenant_id: Option<id_type::TenantId>, }
crates/router/src/services/authentication.rs
router
struct_definition
53
rust
SinglePurposeOrLoginToken
null
null
null
null
null
null
null
null
null
null
null
pub fn into_inner(&self) -> String { self.0.clone() }
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
function_signature
18
rust
null
null
null
null
into_inner
null
null
null
null
null
null
null
Web Documentation: Previous roadmap - Q4 2023 | Hyperswitch # Type: Web Doc 🗺️ Our Roadmap typically pans out over a 3-month period and we establish topics we work on upfront. 👂And as always, we listen to your feedback and adapt our plans if needed. Core Values Our core values have pretty much remained the same sinc...
https://docs.hyperswitch.io/about-hyperswitch/roadmap/roadmap-q4-2023
null
web_doc_file
871
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/about-hyperswitch/roadmap/roadmap-q4-2023
Previous roadmap - Q4 2023 | Hyperswitch
null
pub async fn delete_by_merchant_id_fingerprint_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, fingerprint_id: &str, ) -> StorageResult<Self> { generics::generic_delete_one_with_result::<<Self as HasTable>::Table, _, _>( conn, dsl::me...
crates/diesel_models/src/query/blocklist.rs
diesel_models
function_signature
113
rust
null
null
null
null
delete_by_merchant_id_fingerprint_id
null
null
null
null
null
null
null
pub async fn insert_merchant_scoped_metadata_to_db( state: &SessionState, user_id: String, merchant_id: id_type::MerchantId, org_id: id_type::OrganizationId, metadata_key: DBEnum, metadata_value: impl serde::Serialize, ) -> UserResult<DashboardMetadata> { let now = common_utils::date_time::n...
crates/router/src/utils/user/dashboard_metadata.rs
router
function_signature
250
rust
null
null
null
null
insert_merchant_scoped_metadata_to_db
null
null
null
null
null
null
null
Documentation: crates/router/README.md # Type: Doc File # Router Main crate of the project. ## Files Tree Layout <!-- FIXME: this table should either be generated by a script or smoke test should be introduced checking it agrees with actual structure --> <!-- FIXME: fill missing --> ```text ├── src ...
crates/router/README.md
null
doc_file
327
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ReconStatusResponse { pub recon_status: enums::ReconStatus, }
crates/api_models/src/recon.rs
api_models
struct_definition
18
rust
ReconStatusResponse
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.PaymentCreatePaymentLinkConfig { "allOf": [ { "allOf": [ { "$ref": "#/components/schemas/PaymentLinkConfigRequest" } ], "nullable": true }, { "type": "object" } ], "description": "Configure a custom payment li...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
87
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "PaymentCreatePaymentLinkConfig" ]
null
null
null
null
pub struct ErrorDetails { pub code: String, pub description: String, pub error_name: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
26
rust
ErrorDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct PayuOrderResponseBuyerData { ext_customer_id: Option<String>, email: Option<Email>, phone: Option<Secret<String>>, first_name: Option<Secret<String>>, last_name: Option<Secret<String>>, #[serde(rename = "nin")] national_identification_number: Option<Secret<String>>, language: ...
crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
hyperswitch_connectors
struct_definition
90
rust
PayuOrderResponseBuyerData
null
null
null
null
null
null
null
null
null
null
null
impl Gsm { pub fn server(state: AppState) -> Scope { web::scope("/gsm") .app_data(web::Data::new(state)) .service(web::resource("").route(web::post().to(gsm::create_gsm_rule))) .service(web::resource("/get").route(web::post().to(gsm::get_gsm_rule))) .service(w...
crates/router/src/routes/app.rs
router
impl_block
127
rust
null
Gsm
null
impl Gsm
null
null
null
null
null
null
null
null
pub struct MerchantConnectorAccountFeatureMetadata { pub revenue_recovery: Option<RevenueRecoveryMetadata>, }
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
struct_definition
21
rust
MerchantConnectorAccountFeatureMetadata
null
null
null
null
null
null
null
null
null
null
null
pub struct Address { street_address: Secret<String>, unit: Option<Secret<String>>, postal_code: Secret<String>, city: String, province_code: Secret<String>, country_code: common_enums::CountryAlpha2, }
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs
hyperswitch_connectors
struct_definition
51
rust
Address
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodToken;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
6
rust
PaymentMethodToken
null
null
null
null
null
null
null
null
null
null
null
impl api::Payment for Digitalvirgo {}
crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs
hyperswitch_connectors
impl_block
9
rust
null
Digitalvirgo
api::Payment for
impl api::Payment for for Digitalvirgo
null
null
null
null
null
null
null
null
pub async fn update_user_theme( state: SessionState, theme_id: String, user_from_token: UserFromToken, request: theme_api::UpdateThemeRequest, ) -> UserResponse<theme_api::GetThemeResponse> { let db_theme = state .store .find_theme_by_theme_id(theme_id.clone()) .await ...
crates/router/src/core/user/theme.rs
router
function_signature
482
rust
null
null
null
null
update_user_theme
null
null
null
null
null
null
null
pub struct DDCResponse { pub device_data_collection: DDCToken, #[serde(rename = "_actions")] pub actions: DDCActionLink, }
crates/hyperswitch_connectors/src/connectors/worldpay/response.rs
hyperswitch_connectors
struct_definition
34
rust
DDCResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct TempLockerCardSupport;
crates/router/src/core/payment_methods/cards.rs
router
struct_definition
7
rust
TempLockerCardSupport
null
null
null
null
null
null
null
null
null
null
null
.unwrap_or(MinorUnit::zero()); let total_amount = payment_data.payment_attempt.amount_details.get_net_amount(); if amount_captured == total_amount { common_enums::AttemptStatus::Charged } else { common_enums::At...
crates/hyperswitch_domain_models/src/router_data.rs#chunk1
hyperswitch_domain_models
chunk
6,760
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn payment_link_status( state: web::Data<AppState>, req: actix_web::HttpRequest, path: web::Path<( common_utils::id_type::MerchantId, common_utils::id_type::PaymentId, )
crates/router/src/routes/payment_link.rs
router
function_signature
55
rust
null
null
null
null
payment_link_status
null
null
null
null
null
null
null
pub struct GocardlessErrorResponse { pub error: GocardlessError, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
GocardlessErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn authorization_attempt_status_from_transaction_state( getnet_status: GetnetPaymentStatus, is_auto_capture: bool, ) -> AttemptStatus { match getnet_status { GetnetPaymentStatus::Success => { if is_auto_capture { AttemptStatus::Charged } else { ...
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
function_signature
102
rust
null
null
null
null
authorization_attempt_status_from_transaction_state
null
null
null
null
null
null
null
impl Sift { pub fn new() -> &'static Self { &Self { amount_converter: &StringMinorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/sift.rs
hyperswitch_connectors
impl_block
34
rust
null
Sift
null
impl Sift
null
null
null
null
null
null
null
null
pub struct MigrateCardDetail { /// Card Number #[schema(value_type = String,example = "4111111145551142")] pub card_number: masking::Secret<String>, /// Card Expiry Month #[schema(value_type = String,example = "10")] pub card_exp_month: masking::Secret<String>, /// Card Expiry Year #[s...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
272
rust
MigrateCardDetail
null
null
null
null
null
null
null
null
null
null
null
impl api::revenue_recovery_v2::RevenueRecoveryRecordBackV2 for Recurly {}
crates/hyperswitch_connectors/src/connectors/recurly.rs
hyperswitch_connectors
impl_block
21
rust
null
Recurly
api::revenue_recovery_v2::RevenueRecoveryRecordBackV2 for
impl api::revenue_recovery_v2::RevenueRecoveryRecordBackV2 for for Recurly
null
null
null
null
null
null
null
null
File: crates/router/src/core/gsm.rs Public functions: 4 use api_models::gsm as gsm_api_types; use error_stack::ResultExt; use router_env::{instrument, tracing}; use crate::{ core::errors::{self, RouterResponse, StorageErrorExt}, db::gsm::GsmInterface, services, types::transformers::{ForeignFrom, Fore...
crates/router/src/core/gsm.rs
router
full_file
1,266
null
null
null
null
null
null
null
null
null
null
null
null
null
/// Validates that the configuration provided for the `parent_field` does not contain empty or default values pub fn validate(&self, parent_field: &str) -> Result<(), ApplicationError> { #(#function_expansions)* Ok(()) }
crates/router_derive/src/macros/misc.rs
router_derive
function_signature
54
rust
null
null
null
null
validate
null
null
null
null
null
null
null
pub struct RedsysAuthType { pub(super) merchant_id: Secret<String>, pub(super) terminal_id: Secret<String>, pub(super) sha256_pwd: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
RedsysAuthType
null
null
null
null
null
null
null
null
null
null
null