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: paths."/accounts/{account_id}" { "get": { "tags": [ "Merchant Account" ], "summary": "Merchant Account - Retrieve", "description": "Retrieve a *merchant* account details.", "operationId": "Retrieve a Merchant Account", "parameters": [ { "name": "account_...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
878
.json
null
null
null
null
null
openapi_spec
paths
[ "/accounts/{account_id}" ]
null
null
null
null
impl State for CardDetailsAssigned {}
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
impl_block
7
rust
null
CardDetailsAssigned
State for
impl State for for CardDetailsAssigned
null
null
null
null
null
null
null
null
pub fn get_grpc_headers(&self) -> GrpcHeaders { GrpcHeaders { tenant_id: self.tenant.tenant_id.get_string_repr().to_string(), request_id: self.request_id.map(|req_id| (*req_id).to_string()), } }
crates/router/src/routes/app.rs
router
function_signature
59
rust
null
null
null
null
get_grpc_headers
null
null
null
null
null
null
null
pub async fn find_by_merchant_id_payout_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, payout_id: &common_utils::id_type::PayoutId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::...
crates/diesel_models/src/query/payouts.rs
diesel_models
function_signature
119
rust
null
null
null
null
find_by_merchant_id_payout_id
null
null
null
null
null
null
null
pub struct ShippingMethod { shipping_method_name: String, }
crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
ShippingMethod
null
null
null
null
null
null
null
null
null
null
null
pub fn get_id(&self) -> &String { &self.payment_method_id }
crates/diesel_models/src/payment_method.rs
diesel_models
function_signature
20
rust
null
null
null
null
get_id
null
null
null
null
null
null
null
impl api::PaymentSession for Cashtocode {}
crates/hyperswitch_connectors/src/connectors/cashtocode.rs
hyperswitch_connectors
impl_block
10
rust
null
Cashtocode
api::PaymentSession for
impl api::PaymentSession for for Cashtocode
null
null
null
null
null
null
null
null
pub struct DlocalRouterData<T> { pub amount: MinorUnit, pub router_data: T, }
crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
DlocalRouterData
null
null
null
null
null
null
null
null
null
null
null
.map(|required_fields_final| { let mut required_fields_hs = required_fields_final.common.clone(); if is_cit_transaction { required_fields_hs ...
crates/router/src/core/payment_methods/cards.rs#chunk3
router
chunk
8,192
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CreateOrder;
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
hyperswitch_domain_models
struct_definition
5
rust
CreateOrder
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/mpgs.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 MpgsTest; impl Con...
crates/router/tests/connectors/mpgs.rs
router
full_file
2,931
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodMetaData { /// The card network (e.g., Visa, Mastercard) if the payment method is a card. #[schema(value_type = CardNetwork)] pub card_network: Option<common_enums::CardNetwork>, }
crates/api_models/src/three_ds_decision_rule.rs
api_models
struct_definition
52
rust
PaymentMethodMetaData
null
null
null
null
null
null
null
null
null
null
null
pub struct SetupProcessor { pub connector_id: String, }
crates/api_models/src/user/dashboard_metadata.rs
api_models
struct_definition
13
rust
SetupProcessor
null
null
null
null
null
null
null
null
null
null
null
pub struct Address { #[serde(rename = "street1")] pub street1: Option<Secret<String>>, pub city: Option<String>, pub state: Option<Secret<String>>, pub country: Option<CountryAlpha2>, }
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
50
rust
Address
null
null
null
null
null
null
null
null
null
null
null
pub async fn call_frm_service<D: Clone, F, Req, OperationData>( state: &SessionState, payment_data: &OperationData, frm_data: &mut FrmData, merchant_context: &domain::MerchantContext, customer: &Option<domain::Customer>, ) -> RouterResult<oss_types::RouterData<F, Req, frm_types::FraudCheckResponseDa...
crates/router/src/core/fraud_check.rs
router
function_signature
210
rust
null
null
null
null
call_frm_service
null
null
null
null
null
null
null
File: crates/router/src/configs/secrets_transformers.rs use common_utils::{errors::CustomResult, ext_traits::AsyncExt}; use hyperswitch_interfaces::secrets_interface::{ secret_handler::SecretsHandler, secret_state::{RawSecret, SecretStateContainer, SecuredSecret}, SecretManagementInterface, SecretsManageme...
crates/router/src/configs/secrets_transformers.rs
router
full_file
4,256
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PayoutData { pub billing_address: Option<domain_models::address::Address>, pub business_profile: domain::Profile, pub customer_details: Option<domain::Customer>, pub merchant_connector_account: Option<payment_helpers::MerchantConnectorAccountType>, pub payouts: storage::Payouts, pub p...
crates/router/src/core/payouts.rs
router
struct_definition
150
rust
PayoutData
null
null
null
null
null
null
null
null
null
null
null
pub struct FxExchangeRatesCacheEntry { pub data: Arc<ExchangeRates>, timestamp: i64, }
crates/router/src/utils/currency.rs
router
struct_definition
26
rust
FxExchangeRatesCacheEntry
null
null
null
null
null
null
null
null
null
null
null
pub struct ProcessTrackerDeprecated;
crates/router/src/routes/app.rs
router
struct_definition
6
rust
ProcessTrackerDeprecated
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentAuthenticateCompleteAuthorize;
crates/router/src/core/payments.rs
router
struct_definition
7
rust
PaymentAuthenticateCompleteAuthorize
null
null
null
null
null
null
null
null
null
null
null
pub async fn create_payment_method_intent_api() {}
crates/openapi/src/routes/payment_method.rs
openapi
function_signature
10
rust
null
null
null
null
create_payment_method_intent_api
null
null
null
null
null
null
null
impl ConnectorCommon for Bambora { fn id(&self) -> &'static str { "bambora" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'...
crates/hyperswitch_connectors/src/connectors/bambora.rs
hyperswitch_connectors
impl_block
420
rust
null
Bambora
ConnectorCommon for
impl ConnectorCommon for for Bambora
null
null
null
null
null
null
null
null
File: crates/euclid/benches/backends.rs #![allow(unused, clippy::expect_used)] use common_utils::types::MinorUnit; use criterion::{black_box, criterion_group, criterion_main, Criterion}; use euclid::{ backend::{inputs, EuclidBackend, InterpreterBackend, VirInterpreterBackend}, enums, frontend::ast::{self,...
crates/euclid/benches/backends.rs
euclid
full_file
678
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct DynamicRoutingStatsNew { pub payment_id: common_utils::id_type::PaymentId, pub attempt_id: String, pub merchant_id: common_utils::id_type::MerchantId, pub profile_id: common_utils::id_type::ProfileId, pub amount: common_utils::types::MinorUnit, pub success_based_routing_connector: Str...
crates/diesel_models/src/dynamic_routing_stats.rs
diesel_models
struct_definition
203
rust
DynamicRoutingStatsNew
null
null
null
null
null
null
null
null
null
null
null
pub struct VoltErrorException { pub code: u64, pub message: String, pub error_list: Option<Vec<VoltErrorList>>, }
crates/hyperswitch_connectors/src/connectors/volt/transformers.rs
hyperswitch_connectors
struct_definition
32
rust
VoltErrorException
null
null
null
null
null
null
null
null
null
null
null
pub struct GenericTokenData { pub token: String, }
crates/router/src/types/storage/payment_method.rs
router
struct_definition
13
rust
GenericTokenData
null
null
null
null
null
null
null
null
null
null
null
impl<K> Iterator for Keys<K> where K: EntityId, { type Item = K; fn next(&mut self) -> Option<Self::Item> { self.inner.next().map(K::with_id) } }
crates/hyperswitch_constraint_graph/src/dense_map.rs
hyperswitch_constraint_graph
impl_block
51
rust
null
Keys
Iterator for
impl Iterator for for Keys
null
null
null
null
null
null
null
null
pub struct Profile { early_decision: Option<String>, name: Option<String>, decision: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
24
rust
Profile
null
null
null
null
null
null
null
null
null
null
null
impl Default for ArchipelErrorMessage { fn default() -> Self { Self { code: consts::NO_ERROR_CODE.to_string(), description: Some(consts::NO_ERROR_MESSAGE.to_string()), } } }
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
hyperswitch_connectors
impl_block
46
rust
null
ArchipelErrorMessage
Default for
impl Default for for ArchipelErrorMessage
null
null
null
null
null
null
null
null
pub fn payments_cancel() {}
crates/openapi/src/routes/payments.rs
openapi
function_signature
6
rust
null
null
null
null
payments_cancel
null
null
null
null
null
null
null
pub struct ArchipelOrderResponse { id: String, amount: Option<i64>, currency: Option<Currency>, captured_amount: Option<i64>, authorized_amount: Option<i64>, }
crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
hyperswitch_connectors
struct_definition
46
rust
ArchipelOrderResponse
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = Flow::ApiKeyRetrieve; let (merchant_id, key_id) = path.into_inner(); api::server_wrap( flow, state, &req, (merchant_id.clone(), key_id.clone()), |state, _, (merchant_id, key_id), _| api_keys::retrieve_api_key(state, merchant_id, key_id), ...
crates/router/src/routes/api_keys.rs
router
impl_block
175
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
impl api::RefundSync for Paystack {}
crates/hyperswitch_connectors/src/connectors/paystack.rs
hyperswitch_connectors
impl_block
10
rust
null
Paystack
api::RefundSync for
impl api::RefundSync for for Paystack
null
null
null
null
null
null
null
null
pub struct RedisValue { inner: FredRedisValue, }
crates/redis_interface/src/types.rs
redis_interface
struct_definition
13
rust
RedisValue
null
null
null
null
null
null
null
null
null
null
null
impl Iatapay { pub fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/iatapay.rs
hyperswitch_connectors
impl_block
36
rust
null
Iatapay
null
impl Iatapay
null
null
null
null
null
null
null
null
pub trait PaymentAuthConnectorDataExt { fn get_connector_by_name(name: &str) -> errors::CustomResult<Self, ApiErrorResponse> where Self: Sized; fn convert_connector( connector_name: pm_auth_types::PaymentMethodAuthConnectors, ) -> errors::CustomResult<BoxedPaymentAuthConnector, ApiErrorR...
crates/router/src/core/pm_auth/helpers.rs
router
trait_definition
73
rust
null
null
PaymentAuthConnectorDataExt
null
null
null
null
null
null
null
null
null
pub async fn find_optional_by_payment_id_merchant_id( conn: &PgPooledConn, payment_id: &common_utils::id_type::PaymentId, merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<Option<Self>> { generics::generic_find_one_optional::<<Self as HasTable>::Table, _, _>( ...
crates/diesel_models/src/query/payment_intent.rs
diesel_models
function_signature
118
rust
null
null
null
null
find_optional_by_payment_id_merchant_id
null
null
null
null
null
null
null
pub struct SampleDataRequest { pub record: Option<usize>, pub connector: Option<Vec<Connector>>, #[serde(default, with = "common_utils::custom_serde::iso8601::option")] pub start_time: Option<PrimitiveDateTime>, #[serde(default, with = "common_utils::custom_serde::iso8601::option")] pub end_time...
crates/api_models/src/user/sample_data.rs
api_models
struct_definition
187
rust
SampleDataRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct GetAuthEventMetricRequest { pub time_series: Option<TimeSeries>, pub time_range: TimeRange, #[serde(default)] pub group_by_names: Vec<AuthEventDimensions>, #[serde(default)] pub filters: AuthEventFilters, #[serde(default)] pub metrics: HashSet<AuthEventMetrics>, #[serde(de...
crates/api_models/src/analytics.rs
api_models
struct_definition
83
rust
GetAuthEventMetricRequest
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/compatibility/stripe.rs Public functions: 1 Public structs: 1 pub mod app; pub mod customers; pub mod payment_intents; pub mod refunds; pub mod setup_intents; pub mod webhooks; #[cfg(feature = "v1")] use actix_web::{web, Scope}; pub mod errors; #[cfg(feature = "v1")] use crate::routes; #[cfg...
crates/router/src/compatibility/stripe.rs
router
full_file
246
null
null
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentSync for Vgs {}
crates/hyperswitch_connectors/src/connectors/vgs.rs
hyperswitch_connectors
impl_block
9
rust
null
Vgs
api::PaymentSync for
impl api::PaymentSync for for Vgs
null
null
null
null
null
null
null
null
Documentation: docs/rfcs/guidelines.md # Type: Doc File # Hyperswitch RFC Process Hyperswitch welcomes contributions from anyone in the open-source community. Although some contributions can be easily reviewed and implemented through regular GitHub pull requests, larger changes that require design decisions will requ...
docs/rfcs/guidelines.md
null
doc_file
843
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub fn is_correct_password( candidate: &Secret<String>, password: &Secret<String>, ) -> CustomResult<bool, UserErrors> { let password = password.peek(); let parsed_hash = PasswordHash::new(password).change_context(UserErrors::InternalServerError)?; let result = Argon2::default().verify_passw...
crates/router/src/utils/user/password.rs
router
function_signature
122
rust
null
null
null
null
is_correct_password
null
null
null
null
null
null
null
pub struct StaxPaymentsResponse { success: bool, id: String, is_captured: i8, is_voided: bool, child_captures: Vec<StaxChildCapture>, #[serde(rename = "type")] payment_response_type: StaxPaymentResponseTypes, idempotency_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/stax/transformers.rs
hyperswitch_connectors
struct_definition
75
rust
StaxPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn tenant_unaware_key(&self, _pool: &RedisConnectionPool) -> String { self.0.clone() }
crates/redis_interface/src/types.rs
redis_interface
function_signature
28
rust
null
null
null
null
tenant_unaware_key
null
null
null
null
null
null
null
impl Authentication { pub async fn update_by_merchant_id_authentication_id( conn: &PgPooledConn, merchant_id: common_utils::id_type::MerchantId, authentication_id: common_utils::id_type::AuthenticationId, authorization_update: AuthenticationUpdate, ) -> StorageResult<Self> { ...
crates/diesel_models/src/query/authentication.rs
diesel_models
impl_block
511
rust
null
Authentication
null
impl Authentication
null
null
null
null
null
null
null
null
impl<'a> KafkaRefundEvent<'a> { pub fn from_storage(refund: &'a Refund) -> Self { Self { internal_reference_id: &refund.internal_reference_id, refund_id: &refund.refund_id, payment_id: &refund.payment_id, merchant_id: &refund.merchant_id, connector...
crates/router/src/services/kafka/refund_event.rs
router
impl_block
286
rust
null
KafkaRefundEvent
null
impl KafkaRefundEvent
null
null
null
null
null
null
null
null
pub struct BamboraapacSyncResponse { body: SyncBodyResponse, }
crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
hyperswitch_connectors
struct_definition
18
rust
BamboraapacSyncResponse
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Zen {}
crates/hyperswitch_connectors/src/connectors/zen.rs
hyperswitch_connectors
impl_block
8
rust
null
Zen
api::PaymentCapture for
impl api::PaymentCapture for for Zen
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GivexGiftCardAdditionalData { "type": "object", "required": [ "last4" ], "properties": { "last4": { "type": "string", "description": "Last 4 digits of the gift card number", "example": "4242" } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
84
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GivexGiftCardAdditionalData" ]
null
null
null
null
pub async fn list_customers( state: SessionState, merchant_id: id_type::MerchantId, _profile_id_list: Option<Vec<id_type::ProfileId>>, key_store: domain::MerchantKeyStore, request: customers::CustomerListRequest, ) -> errors::CustomerResponse<Vec<customers::CustomerResponse>> { let db = state.st...
crates/router/src/core/customers.rs
router
function_signature
274
rust
null
null
null
null
list_customers
null
null
null
null
null
null
null
File: crates/analytics/src/refunds/metrics.rs Public structs: 1 use api_models::analytics::{ refunds::{ RefundDimensions, RefundFilters, RefundMetrics, RefundMetricsBucketIdentifier, RefundType, }, Granularity, TimeRange, }; use diesel_models::enums as storage_enums; use time::PrimitiveDateTime; m...
crates/analytics/src/refunds/metrics.rs
analytics
full_file
1,140
null
null
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v2/merchant-account/business-profile--list.mdx # Type: Doc File --- openapi: get /v2/merchant-accounts/{id}/profiles ---
api-reference/v2/merchant-account/business-profile--list.mdx
null
doc_file
40
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CardHolderAccountInformation { /// Length of time that the cardholder has had the account with the 3DS Requestor. /// /// Accepted values are: /// - `01` -> No account /// - `02` -> Created during this transaction /// - `03` -> Less than 30 days /// - `04` -> Between 30 and 60 day...
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs
hyperswitch_connectors
struct_definition
1,238
rust
CardHolderAccountInformation
null
null
null
null
null
null
null
null
null
null
null
pub async fn retrieve_decision( conn: &PgPooledConn, connector: String, flow: String, sub_flow: String, code: String, message: String, ) -> StorageResult<String> { Self::find(conn, connector, flow, sub_flow, code, message) .await .map(|...
crates/diesel_models/src/query/gsm.rs
diesel_models
function_signature
82
rust
null
null
null
null
retrieve_decision
null
null
null
null
null
null
null
impl Responder { let flow = Flow::IncomingWebhookReceive; let (merchant_id, profile_id, connector_id) = path.into_inner(); Box::pin(api::server_wrap( flow.clone(), state, &req, (), |state, auth, _, req_state| { let merchant_context = domain::MerchantConte...
crates/router/src/routes/webhooks.rs
router
impl_block
188
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub struct CheckTokenStatusResponsePayload { pub token_expiry_month: Secret<String>, pub token_expiry_year: Secret<String>, pub token_status: TokenStatus, }
crates/router/src/types/payment_methods.rs
router
struct_definition
35
rust
CheckTokenStatusResponsePayload
null
null
null
null
null
null
null
null
null
null
null
pub struct FiservemeaPaymentsResponse { response_type: Option<ResponseType>, #[serde(rename = "type")] fiservemea_type: Option<String>, client_request_id: Option<String>, api_trace_id: Option<String>, ipg_transaction_id: String, order_id: Option<String>, transaction_type: FiservemeaTrans...
crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs
hyperswitch_connectors
struct_definition
257
rust
FiservemeaPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn profile_create() {}
crates/openapi/src/routes/profile.rs
openapi
function_signature
7
rust
null
null
null
null
profile_create
null
null
null
null
null
null
null
pub struct SignifydWebhookBody { pub order_id: String, pub review_disposition: ReviewDisposition, }
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs
hyperswitch_connectors
struct_definition
26
rust
SignifydWebhookBody
null
null
null
null
null
null
null
null
null
null
null
pub struct KafkaRefundEvent<'a> { pub internal_reference_id: &'a String, pub refund_id: &'a String, //merchant_reference id pub payment_id: &'a id_type::PaymentId, pub merchant_id: &'a id_type::MerchantId, pub connector_transaction_id: &'a String, pub connector: &'a String, pub connector_ref...
crates/router/src/services/kafka/refund_event.rs
router
struct_definition
316
rust
KafkaRefundEvent
null
null
null
null
null
null
null
null
null
null
null
pub struct ExtendedData { three_d_secure: ThreeDSecure, merchant_response_url: String, browser_info: BrowserInfo, }
crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
ExtendedData
null
null
null
null
null
null
null
null
null
null
null
impl PaymentLink { pub async fn find_link_by_payment_link_id( conn: &PgPooledConn, payment_link_id: &str, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::payment_link_id.eq(payment_link_id.to_owned()), )...
crates/diesel_models/src/query/payment_link.rs
diesel_models
impl_block
84
rust
null
PaymentLink
null
impl PaymentLink
null
null
null
null
null
null
null
null
pub async fn get_total_count_of_attempts( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, active_attempt_ids: &[String], connector: Option<Vec<String>>, payment_method_type: Option<Vec<enums::PaymentMethod>>, payment_method_subtype: Option<Vec<enums:...
crates/diesel_models/src/query/payment_attempt.rs
diesel_models
function_signature
536
rust
null
null
null
null
get_total_count_of_attempts
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.BankDebitBilling { "type": "object", "properties": { "name": { "type": "string", "description": "The billing name for bank debits", "example": "John Doe", "nullable": true }, "email": { "type": "string", "description": "The billi...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
151
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "BankDebitBilling" ]
null
null
null
null
pub async fn find_by_global_customer_id( conn: &PgPooledConn, customer_id: &common_utils::id_type::GlobalCustomerId, limit: Option<i64>, ) -> StorageResult<Vec<Self>> { generics::generic_filter::<<Self as HasTable>::Table, _, _, _>( conn, dsl::customer_id.eq(c...
crates/diesel_models/src/query/payment_method.rs
diesel_models
function_signature
106
rust
null
null
null
null
find_by_global_customer_id
null
null
null
null
null
null
null
pub struct BokuRsyncRequest { country: String, merchant_id: Secret<String>, merchant_transaction_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/boku/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
BokuRsyncRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct GetnetCard { number: CardNumber, expiry_month: Secret<String>, expiry_year: Secret<String>, cvc: Secret<String>, complete: bool, }
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
39
rust
GetnetCard
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GsmFeature { "type": "string", "enum": [ "retry" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
32
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GsmFeature" ]
null
null
null
null
pub struct PaymentLink { pub payment_link_id: String, pub payment_id: common_utils::id_type::PaymentId, pub link_to_pay: String, pub merchant_id: common_utils::id_type::MerchantId, pub amount: MinorUnit, pub currency: Option<storage_enums::Currency>, #[serde(with = "common_utils::custom_serd...
crates/diesel_models/src/payment_link.rs
diesel_models
struct_definition
210
rust
PaymentLink
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/nordea/requests.rs Public structs: 14 use common_utils::types::StringMajorUnit; use masking::Secret; use serde::{Deserialize, Serialize}; pub struct NordeaRouterData<T> { pub amount: StringMajorUnit, pub router_data: T, } #[derive(Debug, Serialize, Deserial...
crates/hyperswitch_connectors/src/connectors/nordea/requests.rs
hyperswitch_connectors
full_file
3,300
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ConnectorEventsResult { pub merchant_id: common_utils::id_type::MerchantId, pub payment_id: String, pub connector_name: Option<String>, pub request_id: Option<String>, pub flow: String, pub request: String, #[serde(rename = "masked_response")] pub response: Option<String>, ...
crates/analytics/src/connector_events/events.rs
analytics
struct_definition
132
rust
ConnectorEventsResult
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Gocardless {}
crates/hyperswitch_connectors/src/connectors/gocardless.rs
hyperswitch_connectors
impl_block
10
rust
null
Gocardless
api::PaymentCapture for
impl api::PaymentCapture for for Gocardless
null
null
null
null
null
null
null
null
pub struct RefundData { #[serde(rename = "RefundID")] refund_id: String, status: RefundStatus, }
crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
RefundData
null
null
null
null
null
null
null
null
null
null
null
pub fn get_drainer_stream_name(&self, shard_key: &str) -> String { format!("{{{}}}_{}", shard_key, self.drainer_stream_name) }
crates/storage_impl/src/kv_router_store.rs
storage_impl
function_signature
37
rust
null
null
null
null
get_drainer_stream_name
null
null
null
null
null
null
null
pub struct InterpreterBackend<O> { program: ast::Program<O>, }
crates/euclid/src/backend/interpreter.rs
euclid
struct_definition
16
rust
InterpreterBackend
null
null
null
null
null
null
null
null
null
null
null
/// Performs Payment Authorize pub async fn payment_authorize( &self, payment_authorize_request: payments_grpc::PaymentServiceAuthorizeRequest, connector_auth_metadata: ConnectorAuthMetadata, external_vault_proxy_metadata: Option<String>, grpc_headers: GrpcHeaders, ) -> U...
crates/external_services/src/grpc_client/unified_connector_service.rs
external_services
function_signature
228
rust
null
null
null
null
payment_authorize
null
null
null
null
null
null
null
pub struct Processor { reference_number: Option<String>, authorization_code: Option<String>, response_code: String, response_message: String, avs_response: Option<AvsResponse>, security_code_response: Option<String>, tax_refund_data: Option<serde_json::Value>, }
crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs
hyperswitch_connectors
struct_definition
63
rust
Processor
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SamsungPayAmountDetails { "type": "object", "required": [ "option", "currency_code", "total" ], "properties": { "option": { "$ref": "#/components/schemas/SamsungPayAmountFormat" }, "currency_code": { "$ref": "#/components/schemas/Currenc...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
129
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SamsungPayAmountDetails" ]
null
null
null
null
pub struct ClientRiskInformationRules { name: Option<Secret<String>>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
16
rust
ClientRiskInformationRules
null
null
null
null
null
null
null
null
null
null
null
pub struct StripePaymentMethod { #[serde(rename = "id")] payment_method_id: String, object: &'static str, card: Option<StripeCard>, created: u64, #[serde(rename = "type")] method_type: String, livemode: bool, }
crates/router/src/compatibility/stripe/setup_intents/types.rs
router
struct_definition
64
rust
StripePaymentMethod
null
null
null
null
null
null
null
null
null
null
null
pub struct CountAccumulator { pub count: Option<i64>, }
crates/analytics/src/active_payments/accumulator.rs
analytics
struct_definition
17
rust
CountAccumulator
null
null
null
null
null
null
null
null
null
null
null
impl Responder { let flow = AnalyticsFlow::GetAuthEventFilters; Box::pin(api::server_wrap( flow, state, &req, json_payload.into_inner(), |state, auth: AuthenticationData, req, _| async move { let org_id = auth.merchant_account.g...
crates/router/src/analytics.rs
router
impl_block
183
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
pub fn get_or_generate_payment_id( payload: &mut payment_types::PaymentsRequest, ) -> errors::RouterResult<()> { let given_payment_id = payload .payment_id .clone() .map(|payment_id| { payment_id .get_payment_intent_id() .map_err(|err| err.chan...
crates/router/src/routes/payments.rs
router
function_signature
171
rust
null
null
null
null
get_or_generate_payment_id
null
null
null
null
null
null
null
impl api::ConnectorCustomer for HyperswitchVault {}
crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs
hyperswitch_connectors
impl_block
11
rust
null
HyperswitchVault
api::ConnectorCustomer for
impl api::ConnectorCustomer for for HyperswitchVault
null
null
null
null
null
null
null
null
payment_method_data_request.payment_method_data.clone() }) .async_map(|payment_method_data| async { helpers::get_additional_payment_data( &payment_method_data.into(), &*state.store, &profile_id, ...
crates/router/src/core/payments/operations/payment_create.rs#chunk1
router
chunk
4,494
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct ApiResponse { status: ZenPaymentStatus, id: String, // merchant_transaction_id: Option<String>, merchant_action: Option<ZenMerchantAction>, reject_code: Option<String>, reject_reason: Option<String>, }
crates/hyperswitch_connectors/src/connectors/zen/transformers.rs
hyperswitch_connectors
struct_definition
50
rust
ApiResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct NexixpayCompleteAuthorizeRequest { order: Order, card: NexixpayCard, operation_id: String, capture_type: Option<NexixpayCaptureType>, three_d_s_auth_data: ThreeDSAuthData, recurrence: Option<RecurrenceRequest>, }
crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
hyperswitch_connectors
struct_definition
62
rust
NexixpayCompleteAuthorizeRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct RecipientCreate;
crates/pm_auth/src/types/api/auth_service.rs
pm_auth
struct_definition
6
rust
RecipientCreate
null
null
null
null
null
null
null
null
null
null
null
pub fn get_connector_wallets_details(&self) -> Option<Secret<Value>> { self.connector_wallets_details.as_deref().cloned() }
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
hyperswitch_domain_models
function_signature
32
rust
null
null
null
null
get_connector_wallets_details
null
null
null
null
null
null
null
impl api::Payment for Authorizedotnet {}
crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs
hyperswitch_connectors
impl_block
9
rust
null
Authorizedotnet
api::Payment for
impl api::Payment for for Authorizedotnet
null
null
null
null
null
null
null
null
impl ConnectorCommon for Opennode { fn id(&self) -> &'static str { "opennode" } fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors:...
crates/hyperswitch_connectors/src/connectors/opennode.rs
hyperswitch_connectors
impl_block
393
rust
null
Opennode
ConnectorCommon for
impl ConnectorCommon for for Opennode
null
null
null
null
null
null
null
null
pub struct TransactionPaymentDetails { authorization_id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs
hyperswitch_connectors
struct_definition
14
rust
TransactionPaymentDetails
null
null
null
null
null
null
null
null
null
null
null
impl ConvertRaw for TransientBatchDecryptDataRequest { type Output = BatchDecryptDataRequest; fn convert_raw(self) -> Result<Self::Output, errors::KeyManagerClientError> { let data = self .data .iter() .map(|(k, v)| { let value = match String::from_utf...
crates/common_utils/src/keymanager.rs
common_utils
impl_block
161
rust
null
TransientBatchDecryptDataRequest
ConvertRaw for
impl ConvertRaw for for TransientBatchDecryptDataRequest
null
null
null
null
null
null
null
null
OpenAPI Block Path: openapi { "openapi": "3.0.3" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
22
.json
null
null
null
null
null
openapi_spec
openapi
[]
null
null
null
null
pub async fn retrieve_payment_method_from_auth_service( state: &SessionState, key_store: &domain::MerchantKeyStore, auth_token: &payment_methods::BankAccountTokenData, payment_intent: &PaymentIntent, _customer: &Option<domain::Customer>, ) -> RouterResult<Option<(domain::PaymentMethodData, enums::Pa...
crates/router/src/core/pm_auth.rs
router
function_signature
966
rust
null
null
null
null
retrieve_payment_method_from_auth_service
null
null
null
null
null
null
null
/// Returns customer_user_agent_extended with customer_user_agent as fallback pub fn get_customer_user_agent_extended(&self) -> Option<String> { self.customer_user_agent_extended .clone() .or_else(|| self.customer_user_agent.clone()) }
crates/diesel_models/src/mandate.rs
diesel_models
function_signature
53
rust
null
null
null
null
get_customer_user_agent_extended
null
null
null
null
null
null
null
File: crates/router/tests/connectors/payme.rs use std::str::FromStr; use common_utils::{pii::Email, types::MinorUnit}; use diesel_models::types::OrderDetailsWithAmount; use hyperswitch_domain_models::address::{Address, AddressDetails}; use masking::Secret; use router::types::{self, domain, storage::enums, PaymentAddr...
crates/router/tests/connectors/payme.rs
router
full_file
4,169
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Tokenization { pub fn server(state: AppState) -> Scope { web::scope("/v2/tokenize") .app_data(web::Data::new(state)) .service( web::resource("") .route(web::post().to(tokenization_routes::create_token_vault_api)), ) .se...
crates/router/src/routes/app.rs
router
impl_block
99
rust
null
Tokenization
null
impl Tokenization
null
null
null
null
null
null
null
null
pub struct MbWayRedirection {}
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
7
rust
MbWayRedirection
null
null
null
null
null
null
null
null
null
null
null