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.WeChatPayQr { "type": "object" }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
23
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "WeChatPayQr" ]
null
null
null
null
pub async fn set_role_info_in_cache_by_user_role( state: &SessionState, user_role: &UserRole, ) -> bool { let Some(ref org_id) = user_role.org_id else { return false; }; set_role_info_in_cache_if_required( state, user_role.role_id.as_str(), org_id, &user_role....
crates/router/src/utils/user_role.rs
router
function_signature
113
rust
null
null
null
null
set_role_info_in_cache_by_user_role
null
null
null
null
null
null
null
/// lowers the rules supplied accordingly to DirRule struct by specifying the rule_name, /// connector_selection and statements that are a bunch of if statements pub fn lower_rule<O: EuclidDirFilter>( rule: ast::Rule<O>, ) -> Result<dir::DirRule<O>, AnalysisError> { Ok(dir::DirRule { name: rule.name, ...
crates/euclid/src/frontend/ast/lowering.rs
euclid
function_signature
119
rust
null
null
null
null
lower_rule
null
null
null
null
null
null
null
File: crates/router/src/db/blocklist_fingerprint.rs use error_stack::report; use router_env::{instrument, tracing}; use storage_impl::MockDb; use super::Store; use crate::{ connection, core::errors::{self, CustomResult}, db::kafka_store::KafkaStore, types::storage, }; #[async_trait::async_trait] pub ...
crates/router/src/db/blocklist_fingerprint.rs
router
full_file
791
null
null
null
null
null
null
null
null
null
null
null
null
null
impl Refund for Netcetera {}
crates/hyperswitch_connectors/src/connectors/netcetera.rs
hyperswitch_connectors
impl_block
9
rust
null
Netcetera
Refund for
impl Refund for for Netcetera
null
null
null
null
null
null
null
null
pub struct MandateData { /// A way to update the mandate's payment method details pub update_mandate_id: Option<String>, /// A consent from the customer to store the payment method pub customer_acceptance: Option<common_payments_types::CustomerAcceptance>, /// A way to select the type of mandate use...
crates/hyperswitch_domain_models/src/mandates.rs
hyperswitch_domain_models
struct_definition
83
rust
MandateData
null
null
null
null
null
null
null
null
null
null
null
pub struct CustomerUpdateMems { pub orig: Customer, pub update_data: CustomerUpdateInternal, }
crates/diesel_models/src/kv.rs
diesel_models
struct_definition
23
rust
CustomerUpdateMems
null
null
null
null
null
null
null
null
null
null
null
impl api::RefundSync for Sift {}
crates/hyperswitch_connectors/src/connectors/sift.rs
hyperswitch_connectors
impl_block
10
rust
null
Sift
api::RefundSync for
impl api::RefundSync for for Sift
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.OutgoingWebhookContent { "oneOf": [ { "type": "object", "title": "PaymentsResponse", "required": [ "type", "object" ], "properties": { "type": { "type": "string", "enum": [ "payment_details...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
488
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "OutgoingWebhookContent" ]
null
null
null
null
pub(super) fn get_struct_fields( data: syn::Data, ) -> syn::Result<Punctuated<syn::Field, syn::token::Comma>> { if let syn::Data::Struct(syn::DataStruct { fields: syn::Fields::Named(syn::FieldsNamed { ref named, .. }), .. }) = data { Ok(named.to_owned()) } else { Err(...
crates/router_derive/src/macros/helpers.rs
router_derive
function_signature
121
rust
null
null
null
null
get_struct_fields
null
null
null
null
null
null
null
impl<'a, K, V> Iter<'a, K, V> { fn new(iter: slice::Iter<'a, V>) -> Self { Self { inner: iter.enumerate(), _marker: PhantomData, } } }
crates/hyperswitch_constraint_graph/src/dense_map.rs
hyperswitch_constraint_graph
impl_block
55
rust
null
Iter
null
impl Iter
null
null
null
null
null
null
null
null
pub struct AddressData { name: Option<Secret<String>>, address_line1: Option<Secret<String>>, address_line2: Option<Secret<String>>, city: Option<String>, province: Option<Secret<String>>, country: Option<enums::CountryAlpha2>, postal_code: Option<Secret<String>>, phone_number: Option<Se...
crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs
hyperswitch_connectors
struct_definition
85
rust
AddressData
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs Public structs: 3 use common_utils::{ crypto::{self, GenerateDigest}, errors::ParsingError, pii, request::Method, types::{AmountConvertor, MinorUnit, StringMinorUnit, StringMinorUnitForConnector}, }; use error_stack::Resu...
crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs
hyperswitch_connectors
full_file
5,024
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthorizedotnetWebhookPayload { pub id: Option<String>, }
crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
AuthorizedotnetWebhookPayload
null
null
null
null
null
null
null
null
null
null
null
pub fn collect(self) -> ActivePaymentsMetricsBucketValue { ActivePaymentsMetricsBucketValue { active_payments: self.active_payments.collect(), } }
crates/analytics/src/active_payments/accumulator.rs
analytics
function_signature
32
rust
null
null
null
null
collect
null
null
null
null
null
null
null
- **core:** Fix failing token based MIT payments ([#4735](https://github.com/juspay/hyperswitch/pull/4735)) ([`1bd4061`](https://github.com/juspay/hyperswitch/commit/1bd406197b5baf1c041f0dffa5bc02dce10f1529)) - Added hget lookup for all updated_by existing cases ([#4716](https://github.com/juspay/hyperswitch/pull/4716...
CHANGELOG.md#chunk32
null
doc_chunk
8,134
doc
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.RetrievePaymentLinkRequest { "type": "object", "properties": { "client_secret": { "type": "string", "description": "It's a token used for client side verification.", "nullable": true } } }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
66
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "RetrievePaymentLinkRequest" ]
null
null
null
null
pub struct ExternalVaultProxyPaymentsData { pub payment_method_data: ExternalVaultPaymentMethodData, /// total amount (original_amount + surcharge_amount + tax_on_surcharge_amount) /// If connector supports separate field for surcharge amount, consider using below functions defined on `PaymentsAuthorizeData...
crates/hyperswitch_domain_models/src/router_request_types.rs
hyperswitch_domain_models
struct_definition
662
rust
ExternalVaultProxyPaymentsData
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodCollectLinkStatusDetails { pub pm_collect_link_id: String, pub customer_id: id_type::CustomerId, #[serde(with = "common_utils::custom_serde::iso8601")] pub session_expiry: time::PrimitiveDateTime, pub return_url: Option<url::Url>, pub status: link_utils::PaymentMethodColl...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
101
rust
PaymentMethodCollectLinkStatusDetails
null
null
null
null
null
null
null
null
null
null
null
pub struct BluesnapThreeDSecureInfo { three_d_secure_reference_id: String, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
BluesnapThreeDSecureInfo
null
null
null
null
null
null
null
null
null
null
null
pub(crate) async fn payments_create_and_confirm_intent( state: SessionState, req_state: ReqState, merchant_context: domain::MerchantContext, profile: domain::Profile, request: payments_api::PaymentsRequest, mut header_payload: HeaderPayload, ) -> RouterResponse<payments_api::PaymentsResponse> { ...
crates/router/src/core/payments.rs
router
function_signature
355
rust
null
null
null
null
payments_create_and_confirm_intent
null
null
null
null
null
null
null
impl api::MandateSetup for Volt {}
crates/hyperswitch_connectors/src/connectors/volt.rs
hyperswitch_connectors
impl_block
10
rust
null
Volt
api::MandateSetup for
impl api::MandateSetup for for Volt
null
null
null
null
null
null
null
null
pub fn server(state: AppState) -> Scope { web::scope("/payment_link") .app_data(web::Data::new(state)) .service(web::resource("/list").route(web::post().to(payment_link::payments_link_list))) .service( web::resource("/{payment_link_id}") .r...
crates/router/src/routes/app.rs
router
function_signature
187
rust
null
null
null
null
server
null
null
null
null
null
null
null
pub struct BankOfAmericaConsumerAuthInformation { ucaf_collection_indicator: Option<String>, cavv: Option<String>, ucaf_authentication_data: Option<Secret<String>>, xid: Option<String>, directory_server_transaction_id: Option<Secret<String>>, specification_version: Option<String>, }
crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
62
rust
BankOfAmericaConsumerAuthInformation
null
null
null
null
null
null
null
null
null
null
null
pub struct RecoveryCodes(pub Vec<Secret<String>>);
crates/router/src/types/domain/user.rs
router
struct_definition
11
rust
RecoveryCodes
null
null
null
null
null
null
null
null
null
null
null
pub async fn customers_update( state: web::Data<AppState>, req: HttpRequest, path: web::Path<id_type::GlobalCustomerId>, json_payload: web::Json<customers::CustomerUpdateRequest>, ) -> HttpResponse { let flow = Flow::CustomersUpdate; let id = path.into_inner(); let request = json_payload.int...
crates/router/src/routes/customers.rs
router
function_signature
250
rust
null
null
null
null
customers_update
null
null
null
null
null
null
null
#[strum(serialize = "AN")] Andalusia, #[strum(serialize = "VI")] ArabaAlava, #[strum(serialize = "AR")] Aragon, #[strum(serialize = "BA")] BadajozProvince, #[strum(serialize = "PM")] BalearicIslands, #[strum(serialize = "B")] BarcelonaProvince, #[strum(serialize = "PV...
crates/common_enums/src/enums.rs#chunk5
common_enums
chunk
8,187
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CybersourcePaymentsIncrementalAuthorizationRequest { processing_information: ProcessingInformation, order_information: OrderInformationIncrementalAuthorization, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
CybersourcePaymentsIncrementalAuthorizationRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct ThreeDSRequestorPriorTransactionAuthenticationInformation { /// This data element provides additional information to the ACS to determine the best /// approach for handling a request. The field is limited to 36 characters containing /// ACS Transaction ID for a prior authenticated transaction (fo...
crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs
hyperswitch_connectors
struct_definition
351
rust
ThreeDSRequestorPriorTransactionAuthenticationInformation
null
null
null
null
null
null
null
null
null
null
null
impl MandateSetup for Netcetera {}
crates/hyperswitch_connectors/src/connectors/netcetera.rs
hyperswitch_connectors
impl_block
10
rust
null
Netcetera
MandateSetup for
impl MandateSetup for for Netcetera
null
null
null
null
null
null
null
null
pub struct Rule<O> { pub name: String, #[serde(alias = "routingOutput")] pub connector_selection: O, pub statements: Vec<IfStatement>, }
crates/euclid/src/frontend/ast.rs
euclid
struct_definition
38
rust
Rule
null
null
null
null
null
null
null
null
null
null
null
pub struct ZenPaymentData { browser_details: ZenBrowserDetails, #[serde(rename = "type")] payment_type: ZenPaymentTypes, #[serde(skip_serializing_if = "Option::is_none")] token: Option<Secret<String>>, #[serde(skip_serializing_if = "Option::is_none")] card: Option<ZenCardDetails>, descri...
crates/hyperswitch_connectors/src/connectors/zen/transformers.rs
hyperswitch_connectors
struct_definition
89
rust
ZenPaymentData
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Xendit {}
crates/hyperswitch_connectors/src/connectors/xendit.rs
hyperswitch_connectors
impl_block
10
rust
null
Xendit
api::Refund for
impl api::Refund for for Xendit
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.CardRedirectResponse { "allOf": [ { "allOf": [ { "$ref": "#/components/schemas/CardRedirectData" } ], "nullable": true }, { "type": "object" } ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
68
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "CardRedirectResponse" ]
null
null
null
null
pub struct WorldpayAuthType { pub(super) api_key: Secret<String>, pub(super) entity_id: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
WorldpayAuthType
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Digitalvirgo {}
crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs
hyperswitch_connectors
impl_block
10
rust
null
Digitalvirgo
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Digitalvirgo
null
null
null
null
null
null
null
null
pub struct SantanderCalendar { #[serde(rename = "calendario")] pub creation: String, #[serde(rename = "expiracao")] pub expiration: i32, }
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
41
rust
SantanderCalendar
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_or_add_connector_customer_payment_processor_tokens( state: &SessionState, connector_customer_id: &str, payment_processor_token_info_map: HashMap<String, PaymentProcessorTokenStatus>, ) -> CustomResult<(), errors::StorageError> { let redis_conn = state ...
crates/router/src/types/storage/revenue_recovery_redis_operation.rs
router
function_signature
358
rust
null
null
null
null
update_or_add_connector_customer_payment_processor_tokens
null
null
null
null
null
null
null
Documentation: api-reference/v2/profile/profile--create.mdx # Type: Doc File --- openapi: post /v2/profiles ---
api-reference/v2/profile/profile--create.mdx
null
doc_file
31
doc
null
null
null
null
null
null
null
null
null
null
null
null
pub struct AuthenticationDetails { /// The status of authentication for the payment method #[schema(value_type = IntentStatus)] pub status: common_enums::IntentStatus, /// Error details of the authentication #[schema(value_type = Option<ErrorDetails>)] pub error: Option<payments::ErrorDetails>,...
crates/api_models/src/payment_methods.rs
api_models
struct_definition
69
rust
AuthenticationDetails
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorRedirectResponse for Braintree { fn get_flow_type( &self, _query_params: &str, json_payload: Option<serde_json::Value>, action: PaymentAction, ) -> CustomResult<CallConnectorAction, errors::ConnectorError> { match action { PaymentAction::PSync =>...
crates/hyperswitch_connectors/src/connectors/braintree.rs
hyperswitch_connectors
impl_block
312
rust
null
Braintree
ConnectorRedirectResponse for
impl ConnectorRedirectResponse for for Braintree
null
null
null
null
null
null
null
null
pub struct AchPaymentInformation { bank: AchBankAccount, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
14
rust
AchPaymentInformation
null
null
null
null
null
null
null
null
null
null
null
impl ForeignIDRef for PaymentAttempt { fn foreign_id(&self) -> String { todo!() } }
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
hyperswitch_domain_models
impl_block
25
rust
null
PaymentAttempt
ForeignIDRef for
impl ForeignIDRef for for PaymentAttempt
null
null
null
null
null
null
null
null
pub fn generate_payment_method_response( payment_method: &domain::PaymentMethod, single_use_token: &Option<payment_method_data::SingleUsePaymentMethodToken>, ) -> errors::RouterResult<api::PaymentMethodResponse> { let pmd = payment_method .payment_method_data .clone() .map(|data| dat...
crates/router/src/core/payment_methods/transformers.rs
router
function_signature
510
rust
null
null
null
null
generate_payment_method_response
null
null
null
null
null
null
null
pub struct GlobalPaymentMethodId(GlobalId);
crates/common_utils/src/id_type/global_id/payment_methods.rs
common_utils
struct_definition
9
rust
GlobalPaymentMethodId
null
null
null
null
null
null
null
null
null
null
null
pub struct StripebillingWebhookData { pub object: StripebillingWebhookObject, }
crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
StripebillingWebhookData
null
null
null
null
null
null
null
null
null
null
null
format!( "{field_name} contains invalid data. Expected format is {expected_format}" ), None )), Self::InvalidRequestData { message } => { AER::Unprocessable(ApiError::new("IR", 6, message.to_string(), None)) } ...
crates/hyperswitch_domain_models/src/errors/api_error_response.rs#chunk1
hyperswitch_domain_models
chunk
2,387
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.Country { "type": "string", "enum": [ "Afghanistan", "AlandIslands", "Albania", "Algeria", "AmericanSamoa", "Andorra", "Angola", "Anguilla", "Antarctica", "AntiguaAndBarbuda", "Argentina", "Armenia", "Aruba", "Australia",...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
1,573
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "Country" ]
null
null
null
null
pub struct PaymentIntent { /// The global identifier for the payment intent. This is generated by the system. /// The format of the global id is `{cell_id:5}_pay_{time_ordered_uuid:32}`. pub id: id_type::GlobalPaymentId, /// The identifier for the merchant. This is automatically derived from the api key...
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
struct_definition
1,595
rust
PaymentIntent
null
null
null
null
null
null
null
null
null
null
null
pub struct PlaidBankAccountCredentialsAccounts { pub account_id: String, pub name: String, pub subtype: Option<String>, pub balances: Option<PlaidBankAccountCredentialsBalances>, }
crates/pm_auth/src/connector/plaid/transformers.rs
pm_auth
struct_definition
44
rust
PlaidBankAccountCredentialsAccounts
null
null
null
null
null
null
null
null
null
null
null
impl Responder { // safety: This shouldn't panic owing to the data type #[allow(clippy::expect_used)] let payload = json_payload .into_inner() .to_vec() .pop() .expect("Couldn't get GetDisputeMetricRequest"); let flow = AnalyticsFlow::GetDi...
crates/router/src/analytics.rs
router
impl_block
253
rust
null
Responder
null
impl Responder
null
null
null
null
null
null
null
null
/// Retrieves the appropriate secret management client based on the configuration. pub async fn get_secret_management_client( &self, ) -> CustomResult<Box<dyn SecretManagementInterface>, SecretsManagementError> { match self { #[cfg(feature = "aws_kms")] Self::AwsKms { aws...
crates/external_services/src/managers/secrets_management.rs
external_services
function_signature
195
rust
null
null
null
null
get_secret_management_client
null
null
null
null
null
null
null
impl ConnectorValidation for Cryptopay { fn validate_psync_reference_id( &self, _data: &PaymentsSyncData, _is_three_ds: bool, _status: enums::AttemptStatus, _connector_meta_data: Option<common_utils::pii::SecretSerdeValue>, ) -> CustomResult<(), errors::ConnectorError> { ...
crates/hyperswitch_connectors/src/connectors/cryptopay.rs
hyperswitch_connectors
impl_block
106
rust
null
Cryptopay
ConnectorValidation for
impl ConnectorValidation for for Cryptopay
null
null
null
null
null
null
null
null
pub struct KatapultErrorResponse { pub status_code: u16, pub code: String, pub message: String, pub reason: Option<String>, pub network_advice_code: Option<String>, pub network_decline_code: Option<String>, pub network_error_message: Option<String>, }
crates/hyperswitch_connectors/src/connectors/katapult/transformers.rs
hyperswitch_connectors
struct_definition
64
rust
KatapultErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct CancelPaymentData { #[serde(rename = "merchant-account-id")] pub merchant_account_id: MerchantAccountId, #[serde(rename = "request-id")] pub request_id: String, #[serde(rename = "transaction-type")] pub transaction_type: GetnetTransactionType, #[serde(rename = "parent-transaction-...
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
109
rust
CancelPaymentData
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentToken for Cybersource {}
crates/hyperswitch_connectors/src/connectors/cybersource.rs
hyperswitch_connectors
impl_block
10
rust
null
Cybersource
api::PaymentToken for
impl api::PaymentToken for for Cybersource
null
null
null
null
null
null
null
null
pub struct PmValidated;
crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs
router
struct_definition
7
rust
PmValidated
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_merchant_routing_dictionary( db: &dyn StorageInterface, merchant_id: &str, dictionary: routing_types::RoutingDictionary, ) -> RouterResult<()> { let key = get_routing_dictionary_key(merchant_id); let dictionary_str = dictionary .encode_to_string_of_json() .change_...
crates/router/src/core/routing/helpers.rs
router
function_signature
158
rust
null
null
null
null
update_merchant_routing_dictionary
null
null
null
null
null
null
null
pub struct Rule { pub name: String, #[serde(alias = "routingType")] pub routing_type: RoutingType, #[serde(alias = "routingOutput")] pub output: Output, pub statements: Vec<IfStatement>, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
52
rust
Rule
null
null
null
null
null
null
null
null
null
null
null
File: crates/router/src/db/locker_mock_up.rs Public structs: 1 use error_stack::report; use router_env::{instrument, tracing}; use super::{MockDb, Store}; use crate::{ connection, core::errors::{self, CustomResult}, types::storage, }; #[async_trait::async_trait] pub trait LockerMockUpInterface { asy...
crates/router/src/db/locker_mock_up.rs
router
full_file
1,965
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct CurrencyConversionParams { pub amount: MinorUnit, pub to_currency: String, pub from_currency: String, }
crates/api_models/src/currency.rs
api_models
struct_definition
28
rust
CurrencyConversionParams
null
null
null
null
null
null
null
null
null
null
null
pub struct Discount { pub discount_amount: MinorUnit, pub discount_display_name: String, pub discount_code: Option<String>, }
crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
Discount
null
null
null
null
null
null
null
null
null
null
null
pub async fn generate_recovery_codes( state: SessionState, user_token: auth::UserIdFromAuth, ) -> UserResponse<user_api::RecoveryCodes> { if !tfa_utils::check_totp_in_redis(&state, &user_token.user_id).await? { return Err(UserErrors::TotpRequired.into()); } let recovery_codes = domain::Reco...
crates/router/src/core/user.rs
router
function_signature
207
rust
null
null
null
null
generate_recovery_codes
null
null
null
null
null
null
null
pub struct ActionResponse { #[serde(rename = "id")] pub action_id: String, pub amount: MinorUnit, #[serde(rename = "type")] pub action_type: ActionType, pub approved: Option<bool>, pub reference: Option<String>, }
crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
hyperswitch_connectors
struct_definition
57
rust
ActionResponse
null
null
null
null
null
null
null
null
null
null
null
impl PaymentSync for Plaid {}
crates/hyperswitch_connectors/src/connectors/plaid.rs
hyperswitch_connectors
impl_block
7
rust
null
Plaid
PaymentSync for
impl PaymentSync for for Plaid
null
null
null
null
null
null
null
null
impl api::MandateSetup for Cryptopay {}
crates/hyperswitch_connectors/src/connectors/cryptopay.rs
hyperswitch_connectors
impl_block
12
rust
null
Cryptopay
api::MandateSetup for
impl api::MandateSetup for for Cryptopay
null
null
null
null
null
null
null
null
pub struct PayuAuthUpdateResponse { pub access_token: Secret<String>, pub token_type: String, pub expires_in: i64, pub grant_type: String, }
crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
hyperswitch_connectors
struct_definition
40
rust
PayuAuthUpdateResponse
null
null
null
null
null
null
null
null
null
null
null
pub async fn call_connector_service_prerequisites<F, RouterDReq, ApiRequest, D>( state: &SessionState, merchant_context: &domain::MerchantContext, connector: api::ConnectorData, operation: &BoxedOperation<'_, F, ApiRequest, D>, payment_data: &mut D, customer: &Option<domain::Customer>, valid...
crates/router/src/core/payments.rs
router
function_signature
1,024
rust
null
null
null
null
call_connector_service_prerequisites
null
null
null
null
null
null
null
File: crates/diesel_models/src/blocklist_lookup.rs Public structs: 2 use diesel::{Identifiable, Insertable, Queryable, Selectable}; use serde::{Deserialize, Serialize}; use crate::schema::blocklist_lookup; #[derive(Default, Clone, Debug, Eq, Insertable, PartialEq, Serialize, Deserialize)] #[diesel(table_name = bloc...
crates/diesel_models/src/blocklist_lookup.rs
diesel_models
full_file
198
null
null
null
null
null
null
null
null
null
null
null
null
null
impl webhooks::IncomingWebhook for Worldline { fn get_webhook_source_verification_algorithm( &self, _request: &webhooks::IncomingWebhookRequestDetails<'_>, ) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> { Ok(Box::new(crypto::HmacSha256)) } fn ...
crates/hyperswitch_connectors/src/connectors/worldline.rs
hyperswitch_connectors
impl_block
1,040
rust
null
Worldline
webhooks::IncomingWebhook for
impl webhooks::IncomingWebhook for for Worldline
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.AdditionalPayoutMethodData { "oneOf": [ { "type": "object", "required": [ "Card" ], "properties": { "Card": { "$ref": "#/components/schemas/CardAdditionalData" } } }, { "type": "object", "req...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
189
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "AdditionalPayoutMethodData" ]
null
null
null
null
pub fn from_decision_engine_approach(approach: &str) -> Self { match approach { "SR_SELECTION_V3_ROUTING" => Self::Exploitation, "SR_V3_HEDGING" => Self::Exploration, _ => Self::Default, } }
crates/api_models/src/routing.rs
api_models
function_signature
62
rust
null
null
null
null
from_decision_engine_approach
null
null
null
null
null
null
null
pub connector_label: Option<String>, /// Identifier for the profile, if not provided default will be chosen from merchant account #[schema(max_length = 64, value_type = String)] pub profile_id: id_type::ProfileId, /// An object containing the required details/credentials for a Connector account. ...
crates/api_models/src/admin.rs#chunk1
api_models
chunk
8,168
null
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs Public functions: 1 Public structs: 10 use common_enums::{AttemptStatus, Currency, RefundStatus}; use common_utils::{pii, request::Method, types::MinorUnit}; use hyperswitch_domain_models::{ payment_method_data::{ Card, Pay...
crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs
hyperswitch_connectors
full_file
3,255
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn update_last_used_at( payment_method: &domain::PaymentMethod, state: &routes::SessionState, storage_scheme: MerchantStorageScheme, key_store: &domain::MerchantKeyStore, ) -> errors::RouterResult<()> { let update_last_used = storage::PaymentMethodUpdate::LastUsedUpdate { last_used...
crates/router/src/core/payment_methods/cards.rs
router
function_signature
159
rust
null
null
null
null
update_last_used_at
null
null
null
null
null
null
null
pub struct BarclaycardStandardErrorResponse { pub error_information: Option<ErrorInformation>, pub status: Option<String>, pub message: Option<String>, pub reason: Option<String>, pub details: Option<Vec<Details>>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
49
rust
BarclaycardStandardErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub fn get_browser_information(&self) -> Option<BrowserInformation> { self.browser_information.clone() }
crates/api_models/src/authentication.rs
api_models
function_signature
23
rust
null
null
null
null
get_browser_information
null
null
null
null
null
null
null
File: crates/router/src/services/api/generic_link_response.rs Public functions: 6 use common_utils::errors::CustomResult; use error_stack::ResultExt; use hyperswitch_domain_models::api::{ GenericExpiredLinkData, GenericLinkFormData, GenericLinkStatusData, GenericLinksData, }; use tera::{Context, Tera}; use super...
crates/router/src/services/api/generic_link_response.rs
router
full_file
2,484
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct Powertranz;
crates/hyperswitch_connectors/src/connectors/powertranz.rs
hyperswitch_connectors
struct_definition
6
rust
Powertranz
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.DisputeResponsePaymentsRetrieve { "type": "object", "required": [ "dispute_id", "dispute_stage", "dispute_status", "connector_status", "connector_dispute_id", "created_at" ], "properties": { "dispute_id": { "type": "string", "descrip...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
433
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "DisputeResponsePaymentsRetrieve" ]
null
null
null
null
Web Documentation: Intelligent Routing | Hyperswitch # Type: Web Doc The Hyperswitch Intelligent Routing module augments your payment processing by dynamically switching between processors in real-time for every transaction to optimally maximise first attempt auth rates and minimise processing cost. Types of Intellige...
https://docs.hyperswitch.io/about-hyperswitch/payments-modules/intelligent-routing
null
web_doc_file
389
doc
null
null
null
null
null
web
null
null
null
https://docs.hyperswitch.io/about-hyperswitch/payments-modules/intelligent-routing
Intelligent Routing | Hyperswitch
null
impl Parse for FieldMeta { fn parse(input: syn::parse::ParseStream<'_>) -> syn::Result<Self> { let _meta_type: Ident = input.parse()?; input.parse::<syn::Token![=]>()?; let value: Ident = input.parse()?; Ok(Self { _meta_type, value }) } }
crates/router_derive/src/macros/to_encryptable.rs
router_derive
impl_block
72
rust
null
FieldMeta
Parse for
impl Parse for for FieldMeta
null
null
null
null
null
null
null
null
pub struct PaymentData { #[serde(rename = "merchant-account-id")] pub merchant_account_id: MerchantAccountId, #[serde(rename = "request-id")] pub request_id: String, #[serde(rename = "transaction-type")] pub transaction_type: GetnetTransactionType, #[serde(rename = "requested-amount")] p...
crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
hyperswitch_connectors
struct_definition
151
rust
PaymentData
null
null
null
null
null
null
null
null
null
null
null
impl RevenueRecoveryAttempt { pub async fn load_recovery_attempt_from_api( data: api_models::payments::RecoveryPaymentsCreate, state: &SessionState, req_state: &ReqState, merchant_context: &domain::MerchantContext, profile: &domain::Profile, payment_intent: revenue_re...
crates/router/src/core/webhooks/recovery_incoming.rs
router
impl_block
4,085
rust
null
RevenueRecoveryAttempt
null
impl RevenueRecoveryAttempt
null
null
null
null
null
null
null
null
pub struct GlobalpayErrorResponse { pub error_code: String, pub detailed_error_code: String, pub detailed_error_description: String, }
crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
GlobalpayErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct NoonBilling { address: NoonBillingAddress, }
crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
hyperswitch_connectors
struct_definition
13
rust
NoonBilling
null
null
null
null
null
null
null
null
null
null
null
impl Helcim { pub fn new() -> &'static Self { &Self { amount_convertor: &FloatMajorUnitForConnector, } } }
crates/hyperswitch_connectors/src/connectors/helcim.rs
hyperswitch_connectors
impl_block
36
rust
null
Helcim
null
impl Helcim
null
null
null
null
null
null
null
null
pub async fn find_by_merchant_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, ) -> StorageResult<Self> { generics::generic_find_one::<<Self as HasTable>::Table, _, _>( conn, dsl::merchant_id.eq(merchant_id.to_owned()), ) .awai...
crates/diesel_models/src/query/merchant_key_store.rs
diesel_models
function_signature
82
rust
null
null
null
null
find_by_merchant_id
null
null
null
null
null
null
null
pub struct ConsumerAuthenticationResponse { code: Option<String>, code_raw: Option<String>, }
crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
hyperswitch_connectors
struct_definition
20
rust
ConsumerAuthenticationResponse
null
null
null
null
null
null
null
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs Public functions: 1 Public structs: 1 pub mod transformers; use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, FloatM...
crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs
hyperswitch_connectors
full_file
4,393
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaymentMethodCreated;
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
struct_definition
6
rust
PaymentMethodCreated
null
null
null
null
null
null
null
null
null
null
null
pub fn get_auth_event_metrics_info() -> Vec<NameDescription> { AuthEventMetrics::iter().map(Into::into).collect() }
crates/analytics/src/utils.rs
analytics
function_signature
31
rust
null
null
null
null
get_auth_event_metrics_info
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.XenditSplitSubMerchantData { "type": "object", "description": "Fee information to be charged on the payment being collected for sub-merchant via xendit", "required": [ "for_user_id" ], "properties": { "for_user_id": { "type": "string", "description": ...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
111
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "XenditSplitSubMerchantData" ]
null
null
null
null
impl api::PaymentSession for Blackhawknetwork {}
crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs
hyperswitch_connectors
impl_block
10
rust
null
Blackhawknetwork
api::PaymentSession for
impl api::PaymentSession for for Blackhawknetwork
null
null
null
null
null
null
null
null
pub async fn find_optional_by_merchant_id_key_id( conn: &PgPooledConn, merchant_id: &common_utils::id_type::MerchantId, key_id: &common_utils::id_type::ApiKeyId, ) -> StorageResult<Option<Self>> { generics::generic_find_one_optional::<<Self as HasTable>::Table, _, _>( con...
crates/diesel_models/src/query/api_keys.rs
diesel_models
function_signature
118
rust
null
null
null
null
find_optional_by_merchant_id_key_id
null
null
null
null
null
null
null
pub struct GlobalpayAuthType { pub app_id: Secret<String>, pub key: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
GlobalpayAuthType
null
null
null
null
null
null
null
null
null
null
null
pub fn get_mandate_type( mandate_data: Option<api_payments::MandateData>, off_session: Option<bool>, setup_future_usage: Option<enums::FutureUsage>, customer_acceptance: Option<common_payments_types::CustomerAcceptance>, token: Option<String>, payment_method: Option<enums::PaymentMethod>, ) -> C...
crates/router/src/core/mandate/helpers.rs
router
function_signature
378
rust
null
null
null
null
get_mandate_type
null
null
null
null
null
null
null
impl ConnectorValidation for Billwerk {}
crates/hyperswitch_connectors/src/connectors/billwerk.rs
hyperswitch_connectors
impl_block
7
rust
null
Billwerk
ConnectorValidation for
impl ConnectorValidation for for Billwerk
null
null
null
null
null
null
null
null
impl api::MandateSetup for Nuvei {}
crates/hyperswitch_connectors/src/connectors/nuvei.rs
hyperswitch_connectors
impl_block
12
rust
null
Nuvei
api::MandateSetup for
impl api::MandateSetup for for Nuvei
null
null
null
null
null
null
null
null
pub async fn payments_dynamic_tax_calculation( state: web::Data<app::AppState>, req: actix_web::HttpRequest, json_payload: web::Json<payment_types::PaymentsDynamicTaxCalculationRequest>, path: web::Path<common_utils::id_type::PaymentId>, ) -> impl Responder { let flow = Flow::SessionUpdateTaxCalcula...
crates/router/src/routes/payments.rs
router
function_signature
396
rust
null
null
null
null
payments_dynamic_tax_calculation
null
null
null
null
null
null
null