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
pub fn is_failed(self) -> bool { self == Self::Failed }
crates/common_enums/src/enums.rs
common_enums
function_signature
18
rust
null
null
null
null
is_failed
null
null
null
null
null
null
null
pub struct Card { pub card_number: Option<cards::CardNumber>, pub card_holder_name: Option<Secret<String>>, pub expiration_month: Option<Secret<String>>, pub expiration_year: Option<Secret<String>>, #[serde(rename = "CVV")] pub cvv: Option<Secret<String>>, pub three_d: Option<ThreeD>, pu...
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
struct_definition
211
rust
Card
null
null
null
null
null
null
null
null
null
null
null
/// This struct represents the decrypted Apple Pay payment data pub struct ApplePayPredecryptData { /// The primary account number #[schema(value_type = String, example = "4242424242424242")] pub application_primary_account_number: cards::CardNumber, /// The application expiration date (PAN expiry month...
crates/common_types/src/payments.rs
common_types
struct_definition
178
rust
ApplePayPredecryptData
null
null
null
null
null
null
null
null
null
null
null
pub struct NextAction { /// The URL for authenticatating the user. #[schema(value_type = String)] pub url: url::Url, /// The HTTP method to use for the request. #[schema(value_type = Method)] pub http_method: common_utils::request::Method, }
crates/api_models/src/authentication.rs
api_models
struct_definition
64
rust
NextAction
null
null
null
null
null
null
null
null
null
null
null
pub fn get_error_response(result: ResultData, status_code: u16) -> ErrorResponse { let error_code = result.status; let error_reason = result.status_text.clone(); ErrorResponse { code: error_code.to_string(), message: error_reason.clone(), reason: Some(error_reason), status_c...
crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
hyperswitch_connectors
function_signature
112
rust
null
null
null
null
get_error_response
null
null
null
null
null
null
null
impl SubmitEvidence for Checkout {}
crates/hyperswitch_connectors/src/connectors/checkout.rs
hyperswitch_connectors
impl_block
6
rust
null
Checkout
SubmitEvidence for
impl SubmitEvidence for for Checkout
null
null
null
null
null
null
null
null
pub struct AmountOfMoney { pub amount: i64, pub currency_code: String, }
crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
hyperswitch_connectors
struct_definition
22
rust
AmountOfMoney
null
null
null
null
null
null
null
null
null
null
null
pub struct PaypalUpdateOrderRequest(Vec<Operation>);
crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
hyperswitch_connectors
struct_definition
11
rust
PaypalUpdateOrderRequest
null
null
null
null
null
null
null
null
null
null
null
impl DomainIdentifier { pub fn new(identifier: String) -> Self { Self(identifier) } pub fn into_inner(&self) -> String { self.0.clone() } }
crates/hyperswitch_constraint_graph/src/types.rs
hyperswitch_constraint_graph
impl_block
41
rust
null
DomainIdentifier
null
impl DomainIdentifier
null
null
null
null
null
null
null
null
pub struct ApplicationInformation { status: Option<WellsfargoPaymentStatus>, }
crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
ApplicationInformation
null
null
null
null
null
null
null
null
null
null
null
pub fn extract_debit_routing_saving_percentage( &self, network: &common_enums::CardNetwork, ) -> Option<f64> { self.get_co_badged_card_data()? .co_badged_card_networks_info .0 .iter() .find(|info| &info.network == network) .map(|inf...
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
function_signature
87
rust
null
null
null
null
extract_debit_routing_saving_percentage
null
null
null
null
null
null
null
pub struct BitpayPaymentsRequest { price: FloatMajorUnit, currency: String, #[serde(rename = "redirectURL")] redirect_url: String, #[serde(rename = "notificationURL")] notification_url: String, transaction_speed: TransactionSpeed, token: Secret<String>, order_id: String, }
crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs
hyperswitch_connectors
struct_definition
69
rust
BitpayPaymentsRequest
null
null
null
null
null
null
null
null
null
null
null
pub async fn merchant_account_kv_status() {}
crates/openapi/src/routes/merchant_account.rs
openapi
function_signature
9
rust
null
null
null
null
merchant_account_kv_status
null
null
null
null
null
null
null
pub struct Amount { currency: enums::Currency, value: StringMajorUnit, }
crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
Amount
null
null
null
null
null
null
null
null
null
null
null
pub struct PlaidAuthType { pub client_id: Secret<String>, pub secret: Secret<String>, }
crates/pm_auth/src/connector/plaid/transformers.rs
pm_auth
struct_definition
23
rust
PlaidAuthType
null
null
null
null
null
null
null
null
null
null
null
pub async fn call_to_vault<V: pm_types::VaultingInterface>( state: &routes::SessionState, payload: Vec<u8>, ) -> CustomResult<String, errors::VaultError> { let locker = &state.conf.locker; let jwekey = state.conf.jwekey.get_inner(); let request = create_vault_request::<V>(jwekey, locker, pa...
crates/router/src/core/payment_methods/vault.rs
router
function_signature
270
rust
null
null
null
null
call_to_vault
null
null
null
null
null
null
null
pub fn from_transaction_response(response: &CeleroCardResponse, msg: String) -> Self { // Map specific error codes based on common response patterns let decline_reason = Self::map_processor_error(&response.processor_response_code, &msg); Self { error_code: None, error_me...
crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
hyperswitch_connectors
function_signature
85
rust
null
null
null
null
from_transaction_response
null
null
null
null
null
null
null
pub struct FiservResponseActions { #[serde(rename = "type")] action_type: String, url: url::Url, }
crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
hyperswitch_connectors
struct_definition
30
rust
FiservResponseActions
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Paypal {}
crates/hyperswitch_connectors/src/connectors/paypal.rs
hyperswitch_connectors
impl_block
8
rust
null
Paypal
api::Refund for
impl api::Refund for for Paypal
null
null
null
null
null
null
null
null
File: crates/router/src/core/payments/operations/payment_update_intent.rs Public structs: 1 use std::marker::PhantomData; use api_models::{ enums::{FrmSuggestion, UpdateActiveAttempt}, payments::PaymentsUpdateIntentRequest, }; use async_trait::async_trait; use common_utils::{ errors::CustomResult, ex...
crates/router/src/core/payments/operations/payment_update_intent.rs
router
full_file
3,856
null
null
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.FieldType { "oneOf": [ { "type": "string", "enum": [ "user_card_number" ] }, { "type": "string", "enum": [ "user_card_expiry_month" ] }, { "type": "string", "enum": [ "user_card_expiry_ye...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
1,813
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "FieldType" ]
null
null
null
null
pub struct RelayRetrieveRequest { /// The unique identifier for the Relay #[serde(default)] pub force_sync: bool, /// The unique identifier for the Relay pub id: common_utils::id_type::RelayId, }
crates/api_models/src/relay.rs
api_models
struct_definition
51
rust
RelayRetrieveRequest
null
null
null
null
null
null
null
null
null
null
null
Documentation: api-reference/v1/relay/relay--retrieve.mdx # Type: Doc File --- openapi: get /relay/{relay_id} ---
api-reference/v1/relay/relay--retrieve.mdx
null
doc_file
33
doc
null
null
null
null
null
null
null
null
null
null
null
null
File: crates/connector_configs/src/response_modifier.rs Public functions: 1 use crate::common_config::{ CardProvider, ConnectorApiIntegrationPayload, DashboardPaymentMethodPayload, DashboardRequestPayload, Provider, }; impl ConnectorApiIntegrationPayload { pub fn get_transformed_response_payload(response...
crates/connector_configs/src/response_modifier.rs
connector_configs
full_file
2,955
null
null
null
null
null
null
null
null
null
null
null
null
null
impl SchedulerInterface for Store {}
crates/scheduler/src/scheduler.rs
scheduler
impl_block
6
rust
null
Store
SchedulerInterface for
impl SchedulerInterface for for Store
null
null
null
null
null
null
null
null
pub async fn remove_entry_from_blocklist() {}
crates/openapi/src/routes/blocklist.rs
openapi
function_signature
10
rust
null
null
null
null
remove_entry_from_blocklist
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GpayTokenizationData { "oneOf": [ { "$ref": "#/components/schemas/GPayPredecryptData" }, { "$ref": "#/components/schemas/GpayEcryptedTokenizationData" } ], "description": "This enum is used to represent the Gpay payment data, which can either be e...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
89
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GpayTokenizationData" ]
null
null
null
null
File: crates/router/src/core/payouts/validator.rs Public functions: 5 use std::collections::HashSet; use actix_web::http::header; #[cfg(feature = "olap")] use common_utils::errors::CustomResult; use common_utils::{ id_type::{self, GenerateId}, validation::validate_domain_against_allowed_domains, }; use diese...
crates/router/src/core/payouts/validator.rs
router
full_file
3,212
null
null
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorValidation for Forte {}
crates/hyperswitch_connectors/src/connectors/forte.rs
hyperswitch_connectors
impl_block
7
rust
null
Forte
ConnectorValidation for
impl ConnectorValidation for for Forte
null
null
null
null
null
null
null
null
pub struct RedsysPaymentsResponse { #[serde(rename = "Ds_Order")] ds_order: String, #[serde(rename = "Ds_EMV3DS")] ds_emv3ds: Option<RedsysEmv3DSData>, #[serde(rename = "Ds_Card_PSD2")] ds_card_psd2: Option<CardPSD2>, #[serde(rename = "Ds_Response")] ds_response: Option<DsResponse>, ...
crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
hyperswitch_connectors
struct_definition
117
rust
RedsysPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct Braintree { amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync), amount_converter_webhooks: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/braintree.rs
hyperswitch_connectors
struct_definition
50
rust
Braintree
null
null
null
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.ConnectorStatus { "type": "string", "enum": [ "inactive", "active" ] }
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
36
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "ConnectorStatus" ]
null
null
null
null
File: crates/hyperswitch_connectors/src/connectors/stax/transformers.rs Public structs: 17 use common_enums::enums; use common_utils::pii::Email; use error_stack::ResultExt; use hyperswitch_domain_models::{ payment_method_data::{BankDebitData, PaymentMethodData}, router_data::{ConnectorAuthType, PaymentMethod...
crates/hyperswitch_connectors/src/connectors/stax/transformers.rs
hyperswitch_connectors
full_file
3,953
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct PaystackPaymentsResponseData { status: bool, message: String, data: PaystackEftRedirect, }
crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs
hyperswitch_connectors
struct_definition
28
rust
PaystackPaymentsResponseData
null
null
null
null
null
null
null
null
null
null
null
pub struct SwitchProfileRequest { pub profile_id: id_type::ProfileId, }
crates/api_models/src/user.rs
api_models
struct_definition
18
rust
SwitchProfileRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct Shift4 { amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync), }
crates/hyperswitch_connectors/src/connectors/shift4.rs
hyperswitch_connectors
struct_definition
26
rust
Shift4
null
null
null
null
null
null
null
null
null
null
null
pub struct Details { pub field: String, pub reason: String, }
crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
hyperswitch_connectors
struct_definition
17
rust
Details
null
null
null
null
null
null
null
null
null
null
null
impl api::ConnectorAccessToken for Bankofamerica {}
crates/hyperswitch_connectors/src/connectors/bankofamerica.rs
hyperswitch_connectors
impl_block
11
rust
null
Bankofamerica
api::ConnectorAccessToken for
impl api::ConnectorAccessToken for for Bankofamerica
null
null
null
null
null
null
null
null
impl api::MandateSetup for Chargebee {}
crates/hyperswitch_connectors/src/connectors/chargebee.rs
hyperswitch_connectors
impl_block
11
rust
null
Chargebee
api::MandateSetup for
impl api::MandateSetup for for Chargebee
null
null
null
null
null
null
null
null
pub fn update_payment_method_data( &mut self, payment_method_data: payment_method_data::PaymentMethodData, ) { self.payment_method_data = Some(payment_method_data); }
crates/hyperswitch_domain_models/src/payments.rs
hyperswitch_domain_models
function_signature
41
rust
null
null
null
null
update_payment_method_data
null
null
null
null
null
null
null
pub struct GocardlessBankAccountRequest { customer_bank_accounts: CustomerBankAccounts, }
crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
hyperswitch_connectors
struct_definition
19
rust
GocardlessBankAccountRequest
null
null
null
null
null
null
null
null
null
null
null
pub struct BankOfAmericaStandardErrorResponse { 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/bankofamerica/transformers.rs
hyperswitch_connectors
struct_definition
49
rust
BankOfAmericaStandardErrorResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct CryptopayAuthType { pub(super) api_key: Secret<String>, pub(super) api_secret: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/cryptopay/transformers.rs
hyperswitch_connectors
struct_definition
29
rust
CryptopayAuthType
null
null
null
null
null
null
null
null
null
null
null
pub struct ChargebeePaymentsResponse { status: ChargebeePaymentStatus, id: String, }
crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
ChargebeePaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct Plaid;
crates/pm_auth/src/connector/plaid.rs
pm_auth
struct_definition
5
rust
Plaid
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorSpecifications for Barclaycard { fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { Some(&BARCLAYCARD_CONNECTOR_INFO) } fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { Some(&*BARCLAYCARD_SUPPORTED_PAYMENT_METHODS) } ...
crates/hyperswitch_connectors/src/connectors/barclaycard.rs
hyperswitch_connectors
impl_block
112
rust
null
Barclaycard
ConnectorSpecifications for
impl ConnectorSpecifications for for Barclaycard
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.GooglePaySessionResponse { "type": "object", "required": [ "merchant_info", "shipping_address_required", "email_required", "shipping_address_parameters", "allowed_payment_methods", "transaction_info", "delayed_session_token", "connector", "s...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
376
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "GooglePaySessionResponse" ]
null
null
null
null
impl Drop for RdKafkaProducer { fn drop(&mut self) { // Flush the producer to send any pending messages match self.0.flush(rdkafka::util::Timeout::After( std::time::Duration::from_secs(5), )) { Ok(_) => router_env::logger::info!("Kafka events flush Successful"), ...
crates/router/src/services/kafka.rs
router
impl_block
102
rust
null
RdKafkaProducer
Drop for
impl Drop for for RdKafkaProducer
null
null
null
null
null
null
null
null
pub struct XenditMultipleSplitRequest { /// Name to identify split rule. Not required to be unique. Typically based on transaction and/or sub-merchant types. pub name: String, /// Description to identify fee rule pub description: String, /// The sub-account user-id that you want to make this transac...
crates/common_types/src/payments.rs
common_types
struct_definition
111
rust
XenditMultipleSplitRequest
null
null
null
null
null
null
null
null
null
null
null
impl ConnectorCommon for Riskified { fn id(&self) -> &'static str { "riskified" } fn common_get_content_type(&self) -> &'static str { "application/json" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.riskified.base_url.as_ref() } #[cfg(...
crates/hyperswitch_connectors/src/connectors/riskified.rs
hyperswitch_connectors
impl_block
281
rust
null
Riskified
ConnectorCommon for
impl ConnectorCommon for for Riskified
null
null
null
null
null
null
null
null
OpenAPI Block Path: components.schemas.SessionTokenInfo { "allOf": [ { "allOf": [ { "$ref": "#/components/schemas/PaymentProcessingDetailsAt" } ], "nullable": true }, { "type": "object", "required": [ "certificate", "certificate_keys"...
./hyperswitch/api-reference/v1/openapi_spec_v1.json
null
openapi_block
253
.json
null
null
null
null
null
openapi_spec
components
[ "schemas", "SessionTokenInfo" ]
null
null
null
null
status: common_enums::PaymentMethodStatus, limit: Option<i64>, storage_scheme: MerchantStorageScheme, ) -> CustomResult<Vec<domain::PaymentMethod>, errors::StorageError> { self.diesel_store .find_payment_method_by_customer_id_merchant_id_status( state, ...
crates/router/src/db/kafka_store.rs#chunk2
router
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
pub fn get_role_id(&self) -> &str { &self.role_id }
crates/router/src/services/authorization/roles.rs
router
function_signature
20
rust
null
null
null
null
get_role_id
null
null
null
null
null
null
null
impl super::behaviour::Conversion for MerchantKeyStore { type DstType = diesel_models::merchant_key_store::MerchantKeyStore; type NewDstType = diesel_models::merchant_key_store::MerchantKeyStoreNew; async fn convert(self) -> CustomResult<Self::DstType, ValidationError> { Ok(diesel_models::merchant_k...
crates/hyperswitch_domain_models/src/merchant_key_store.rs
hyperswitch_domain_models
impl_block
350
rust
null
MerchantKeyStore
super::behaviour::Conversion for
impl super::behaviour::Conversion for for MerchantKeyStore
null
null
null
null
null
null
null
null
pub struct SantanderPixQRPaymentRequest { #[serde(rename = "calendario")] pub calender: SantanderCalendar, #[serde(rename = "devedor")] pub debtor: Option<SantanderDebtor>, #[serde(rename = "valor")] pub value: SantanderValue, #[serde(rename = "chave")] pub key: Secret<String>, #[ser...
crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
hyperswitch_connectors
struct_definition
128
rust
SantanderPixQRPaymentRequest
null
null
null
null
null
null
null
null
null
null
null
impl api::Refund for Sift {}
crates/hyperswitch_connectors/src/connectors/sift.rs
hyperswitch_connectors
impl_block
9
rust
null
Sift
api::Refund for
impl api::Refund for for Sift
null
null
null
null
null
null
null
null
// TODO: uncomment fields as and when required #[cfg(feature = "v2")] #[derive(Clone, Debug, AsChangeset, router_derive::DebugAsDisplay, Serialize, Deserialize)] #[diesel(table_name = payment_attempt)] pub struct PaymentAttemptUpdateInternal { pub status: Option<storage_enums::AttemptStatus>, pub authentication...
crates/diesel_models/src/payment_attempt.rs#chunk1
diesel_models
chunk
8,191
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn insert_payment_attempts( conn: &PgPooledConn, batch: Vec<user::sample_data::PaymentAttemptBatchNew>, ) -> StorageResult<Vec<PaymentAttempt>> { let query = diesel::insert_into(<PaymentAttempt>::table()).values(batch); logger::debug!(query = %debug_query::<diesel::pg::Pg,_>(&query).to_string...
crates/diesel_models/src/query/user/sample_data.rs
diesel_models
function_signature
120
rust
null
null
null
null
insert_payment_attempts
null
null
null
null
null
null
null
pub struct SignifydPaymentsTransactionRequest { order_id: String, checkout_id: String, transactions: Transactions, }
crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs
hyperswitch_connectors
struct_definition
27
rust
SignifydPaymentsTransactionRequest
null
null
null
null
null
null
null
null
null
null
null
impl AuthEventMetricAccumulator for AuthenticationErrorMessageAccumulator { type MetricOutput = Option<u64>; #[inline] fn add_metrics_bucket(&mut self, metrics: &AuthEventMetricRow) { self.count = match (self.count, metrics.count) { (None, None) => None, (None, i @ Some(_)) |...
crates/analytics/src/auth_events/accumulator.rs
analytics
impl_block
143
rust
null
AuthenticationErrorMessageAccumulator
AuthEventMetricAccumulator for
impl AuthEventMetricAccumulator for for AuthenticationErrorMessageAccumulator
null
null
null
null
null
null
null
null
File: crates/router/tests/connectors/paystack.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 PaystackTest; ...
crates/router/tests/connectors/paystack.rs
router
full_file
2,925
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct BlocklistFingerprintNew { pub merchant_id: common_utils::id_type::MerchantId, pub fingerprint_id: String, pub data_kind: common_enums::BlocklistDataKind, pub encrypted_fingerprint: String, pub created_at: time::PrimitiveDateTime, }
crates/diesel_models/src/blocklist_fingerprint.rs
diesel_models
struct_definition
62
rust
BlocklistFingerprintNew
null
null
null
null
null
null
null
null
null
null
null
/// Concatenates a vector of strings without any separator /// This is useful for creating verification messages for webhooks pub fn concat_strings(strings: &[String]) -> String { strings.join("") }
crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
hyperswitch_connectors
function_signature
41
rust
null
null
null
null
concat_strings
null
null
null
null
null
null
null
impl PaymentDistributionAccumulator for ErrorDistributionAccumulator { type DistributionOutput = Option<Vec<ErrorResult>>; fn add_distribution_bucket(&mut self, distribution: &PaymentDistributionRow) { self.error_vec.push(ErrorDistributionRow { count: distribution.count.unwrap_or_default(),...
crates/analytics/src/payments/accumulator.rs
analytics
impl_block
291
rust
null
ErrorDistributionAccumulator
PaymentDistributionAccumulator for
impl PaymentDistributionAccumulator for for ErrorDistributionAccumulator
null
null
null
null
null
null
null
null
pub async fn update_user_account_details( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<user_api::UpdateUserAccountDetailsRequest>, ) -> HttpResponse { let flow = Flow::UpdateUserAccountDetails; Box::pin(api::server_wrap( flow, state.clone(), &req, ...
crates/router/src/routes/user.rs
router
function_signature
116
rust
null
null
null
null
update_user_account_details
null
null
null
null
null
null
null
pub struct NetworkTokenization { /// Enable the network tokenization for payment methods that are created using the payment method session #[schema(value_type = NetworkTokenizationToggle)] pub enable: common_enums::NetworkTokenizationToggle, }
crates/common_types/src/payment_methods.rs
common_types
struct_definition
50
rust
NetworkTokenization
null
null
null
null
null
null
null
null
null
null
null
impl Default for ConnectorAuthentication { fn default() -> Self { Self::new() } }
crates/test_utils/src/connector_auth.rs
test_utils
impl_block
21
rust
null
ConnectorAuthentication
Default for
impl Default for for ConnectorAuthentication
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Globalpay {}
crates/hyperswitch_connectors/src/connectors/globalpay.rs
hyperswitch_connectors
impl_block
9
rust
null
Globalpay
api::PaymentCapture for
impl api::PaymentCapture for for Globalpay
null
null
null
null
null
null
null
null
pub fn apply_changeset(self, source: Customer) -> Customer { let Self { name, email, phone, description, phone_country_code, metadata, connector_customer, address_id, default_payment_method_id, ...
crates/diesel_models/src/customers.rs
diesel_models
function_signature
231
rust
null
null
null
null
apply_changeset
null
null
null
null
null
null
null
pub struct SuccessBasedRoutingConfigBody { pub min_aggregates_size: Option<u32>, pub default_success_rate: Option<f64>, pub max_aggregates_size: Option<u32>, pub current_block_threshold: Option<CurrentBlockThreshold>, #[serde(default)] pub specificity_level: SuccessRateSpecificityLevel, pub ...
crates/api_models/src/routing.rs
api_models
struct_definition
99
rust
SuccessBasedRoutingConfigBody
null
null
null
null
null
null
null
null
null
null
null
pub struct ListInvitationForUserResponse { pub entity_id: String, pub entity_type: common_enums::EntityType, pub entity_name: Option<Secret<String>>, pub role_id: String, }
crates/api_models/src/user_role.rs
api_models
struct_definition
45
rust
ListInvitationForUserResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct IssuerDataInput { pub name: Option<String>, pub country: Option<enums::Country>, }
crates/euclid/src/backend/inputs.rs
euclid
struct_definition
25
rust
IssuerDataInput
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { _amount_converter: &MinorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/gpayments.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub async fn get_sdk_event_filter_for_dimension<T>( dimension: SdkEventDimensions, publishable_key: &String, time_range: &TimeRange, pool: &T, ) -> FiltersResult<Vec<SdkEventFilter>> where T: AnalyticsDataSource + SdkEventFilterAnalytics, PrimitiveDateTime: ToSql<T>, AnalyticsCollection: ToS...
crates/analytics/src/sdk_events/filters.rs
analytics
function_signature
253
rust
null
null
null
null
get_sdk_event_filter_for_dimension
null
null
null
null
null
null
null
File: crates/router/src/services/pm_auth.rs Public functions: 1 use pm_auth::{ consts, core::errors::ConnectorError, types::{self as pm_auth_types, api::BoxedConnectorIntegration, PaymentAuthRouterData}, }; use crate::{ core::errors::{self}, logger, routes::SessionState, services::{self},...
crates/router/src/services/pm_auth.rs
router
full_file
637
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TokenizeCoreWorkflow { pub lookup_key: String, pub pm: storage_enums::PaymentMethod, }
crates/diesel_models/src/payment_method.rs
diesel_models
struct_definition
26
rust
TokenizeCoreWorkflow
null
null
null
null
null
null
null
null
null
null
null
impl api::PaymentCapture for Paystack {}
crates/hyperswitch_connectors/src/connectors/paystack.rs
hyperswitch_connectors
impl_block
9
rust
null
Paystack
api::PaymentCapture for
impl api::PaymentCapture for for Paystack
null
null
null
null
null
null
null
null
pub fn list_initial_webhook_delivery_attempts_with_jwtauth() {}
crates/openapi/src/routes/webhook_events.rs
openapi
function_signature
15
rust
null
null
null
null
list_initial_webhook_delivery_attempts_with_jwtauth
null
null
null
null
null
null
null
impl api::RefundSync for Paybox {}
crates/hyperswitch_connectors/src/connectors/paybox.rs
hyperswitch_connectors
impl_block
10
rust
null
Paybox
api::RefundSync for
impl api::RefundSync for for Paybox
null
null
null
null
null
null
null
null
pub struct PaypalMethodData { billing_address: Option<Address>, shipping_address: Option<Address>, }
crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
PaypalMethodData
null
null
null
null
null
null
null
null
null
null
null
pub struct CardInfoAdd;
crates/router/src/core/cards_info.rs
router
struct_definition
6
rust
CardInfoAdd
null
null
null
null
null
null
null
null
null
null
null
pub struct ClientTokenData { create_client_token: ClientToken, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
15
rust
ClientTokenData
null
null
null
null
null
null
null
null
null
null
null
pub struct CustombillingPaymentsResponse { status: CustombillingPaymentStatus, id: String, }
crates/hyperswitch_connectors/src/connectors/custombilling/transformers.rs
hyperswitch_connectors
struct_definition
21
rust
CustombillingPaymentsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct ActivateRoutingConfigRequest { pub created_by: String, pub routing_algorithm_id: String, }
crates/router/src/core/payments/routing/utils.rs
router
struct_definition
23
rust
ActivateRoutingConfigRequest
null
null
null
null
null
null
null
null
null
null
null
impl State for CardRequestValidated {}
crates/router/src/core/payment_methods/tokenize/card_executor.rs
router
impl_block
8
rust
null
CardRequestValidated
State for
impl State for for CardRequestValidated
null
null
null
null
null
null
null
null
pub async fn payments_manual_update( state: web::Data<app::AppState>, req: actix_web::HttpRequest, json_payload: web::Json<payment_types::PaymentsManualUpdateRequest>, path: web::Path<common_utils::id_type::PaymentId>, ) -> impl Responder { let flow = Flow::PaymentsManualUpdate; let mut payload ...
crates/router/src/routes/payments.rs#chunk2
router
chunk
8,190
null
null
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_recovery_code_from_redis( state: &SessionState, user_id: &str, ) -> UserResult<()> { let redis_conn = super::get_redis_connection_for_global_tenant(state)?; let key = format!("{}{}", consts::user::REDIS_RECOVERY_CODE_PREFIX, user_id); redis_conn .delete_key(&key.into()) ...
crates/router/src/utils/user/two_factor_auth.rs
router
function_signature
98
rust
null
null
null
null
delete_recovery_code_from_redis
null
null
null
null
null
null
null
impl PaymentCreate { #[cfg(feature = "v2")] #[instrument(skip_all)] #[allow(clippy::too_many_arguments)] pub async fn make_payment_attempt( payment_id: &common_utils::id_type::PaymentId, merchant_id: &common_utils::id_type::MerchantId, organization_id: &common_utils::id_type::Org...
crates/router/src/core/payments/operations/payment_create.rs
router
impl_block
4,463
rust
null
PaymentCreate
null
impl PaymentCreate
null
null
null
null
null
null
null
null
pub async fn merchant_account_create( state: web::Data<AppState>, req: HttpRequest, json_payload: web::Json<api_models::admin::MerchantAccountCreateWithoutOrgId>, ) -> HttpResponse { let flow = Flow::MerchantsAccountCreate; let headers = req.headers(); let org_id = match auth::HeaderMapStruct::...
crates/router/src/routes/admin.rs
router
function_signature
295
rust
null
null
null
null
merchant_account_create
null
null
null
null
null
null
null
File: crates/router/src/types/api/refunds.rs #[cfg(feature = "v1")] pub use api_models::refunds::RefundRequest; pub use api_models::refunds::{ RefundListRequest, RefundListResponse, RefundResponse, RefundStatus, RefundType, RefundUpdateRequest, RefundsRetrieveBody, RefundsRetrieveRequest, }; #[cfg(feature = "v...
crates/router/src/types/api/refunds.rs
router
full_file
283
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct NetworkTokenDetailsPaymentMethod { pub last4_digits: Option<String>, pub issuer_country: Option<common_enums::CountryAlpha2>, pub network_token_expiry_month: Option<Secret<String>>, pub network_token_expiry_year: Option<Secret<String>>, pub nick_name: Option<Secret<String>>, pub card_...
crates/hyperswitch_domain_models/src/payment_method_data.rs
hyperswitch_domain_models
struct_definition
139
rust
NetworkTokenDetailsPaymentMethod
null
null
null
null
null
null
null
null
null
null
null
File: crates/router_derive/src/macros/schema.rs Public functions: 2 mod helpers; use quote::quote; use crate::macros::{ helpers as macro_helpers, schema::helpers::{HasSchemaParameters, IsSchemaFieldApplicableForValidation}, }; pub fn validate_schema_derive(input: syn::DeriveInput) -> syn::Result<proc_macro...
crates/router_derive/src/macros/schema.rs
router_derive
full_file
612
null
null
null
null
null
null
null
null
null
null
null
null
null
pub struct TotalEventsResponse { /// The list of events pub events: Vec<EventListItemResponse>, /// Count of total events pub total_count: i64, }
crates/api_models/src/webhook_events.rs
api_models
struct_definition
39
rust
TotalEventsResponse
null
null
null
null
null
null
null
null
null
null
null
pub struct CreditCardData { number: cards::CardNumber, expiration_year: Secret<String>, expiration_month: Secret<String>, cvv: Secret<String>, cardholder_name: Secret<String>, }
crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
hyperswitch_connectors
struct_definition
44
rust
CreditCardData
null
null
null
null
null
null
null
null
null
null
null
pub fn new() -> &'static Self { &Self { amount_converter: &FloatMajorUnitForConnector, } }
crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs
hyperswitch_connectors
function_signature
28
rust
null
null
null
null
new
null
null
null
null
null
null
null
pub fn sort_and_minify_json(value: &Value) -> Result<String, errors::ConnectorError> { fn sort_value(val: &Value) -> Value { match val { Value::Object(map) => { let mut entries: Vec<_> = map.iter().collect(); entries.sort_by_key(|(k, _)| k.to_owned()); ...
crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rs
hyperswitch_connectors
function_signature
190
rust
null
null
null
null
sort_and_minify_json
null
null
null
null
null
null
null
impl api::PaymentSync for Chargebee {}
crates/hyperswitch_connectors/src/connectors/chargebee.rs
hyperswitch_connectors
impl_block
9
rust
null
Chargebee
api::PaymentSync for
impl api::PaymentSync for for Chargebee
null
null
null
null
null
null
null
null
pub struct UserKeyStoreNew { pub user_id: String, pub key: Encryption, pub created_at: PrimitiveDateTime, }
crates/diesel_models/src/user_key_store.rs
diesel_models
struct_definition
29
rust
UserKeyStoreNew
null
null
null
null
null
null
null
null
null
null
null
pub async fn delete_user_scoped_dashboard_metadata_by_merchant_id_data_key( conn: &PgPooledConn, user_id: String, merchant_id: id_type::MerchantId, data_key: enums::DashboardMetadata, ) -> StorageResult<Self> { generics::generic_delete_one_with_result::<<Self as HasTable>::Ta...
crates/diesel_models/src/query/dashboard_metadata.rs
diesel_models
function_signature
127
rust
null
null
null
null
delete_user_scoped_dashboard_metadata_by_merchant_id_data_key
null
null
null
null
null
null
null
pub struct EncodedPaymentToken { billing_contact: BillingDetails, token: ApplepayPaymentData, }
crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
hyperswitch_connectors
struct_definition
23
rust
EncodedPaymentToken
null
null
null
null
null
null
null
null
null
null
null