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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
.and_then(|business_profile| business_profile.is_connector_agnostic_mit_enabled)
.unwrap_or(false);
for pm in resp.into_iter() {
let parent_payment_method_token = generate_id(consts::ID_LENGTH, "token");
let payment_method = pm
.get_payment_method_type()
.ge... | crates/router/src/core/payment_methods/cards.rs#chunk4 | router | chunk | 7,369 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct NoonActionOrder {
id: String,
} | crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | hyperswitch_connectors | struct_definition | 12 | rust | NoonActionOrder | null | null | null | null | null | null | null | null | null | null | null |
pub struct UnifiedConnectorServiceClientConfig {
/// Base URL of the gRPC Server
pub base_url: Url,
/// Contains the connection timeout duration in seconds
pub connection_timeout: u64,
/// Set of external services/connectors available for the unified connector service
#[serde(default, deserial... | crates/external_services/src/grpc_client/unified_connector_service.rs | external_services | struct_definition | 129 | rust | UnifiedConnectorServiceClientConfig | null | null | null | null | null | null | null | null | null | null | null |
pub struct BluesnapWalletTokenResponse {
wallet_type: String,
wallet_token: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | BluesnapWalletTokenResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct RoutingAlgorithmHelpers<'h> {
pub name_mca_id_set: ConnectNameAndMCAIdForProfile<'h>,
pub name_set: ConnectNameForProfile<'h>,
pub routing_algorithm: &'h routing_types::StaticRoutingAlgorithm,
} | crates/router/src/core/routing/helpers.rs | router | struct_definition | 55 | rust | RoutingAlgorithmHelpers | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.VenmoAdditionalData
{
"type": "object",
"description": "Masked payout method details for venmo wallet payout method",
"properties": {
"telephone_number": {
"type": "string",
"description": "mobile number linked to venmo account",
"example": "******* 334... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 93 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"VenmoAdditionalData"
] | null | null | null | null |
pub struct AmazonPayRedirect {} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 6 | rust | AmazonPayRedirect | null | null | null | null | null | null | null | null | null | null | null |
impl api::Refund for Bankofamerica {} | crates/hyperswitch_connectors/src/connectors/bankofamerica.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Bankofamerica | api::Refund for | impl api::Refund for for Bankofamerica | null | null | null | null | null | null | null | null |
pub fn set_n(&mut self,n: u32) | crates/router_derive/src/lib.rs | router_derive | function_signature | 13 | rust | null | null | null | null | set_n | null | null | null | null | null | null | null |
pub struct NoEncryption; | crates/external_services/src/no_encryption/core.rs | external_services | struct_definition | 5 | rust | NoEncryption | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Nomupay {} | crates/hyperswitch_connectors/src/connectors/nomupay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Nomupay | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Nomupay | null | null | null | null | null | null | null | null |
pub struct MetricsBucketResponse {
#[serde(flatten)]
pub values: AuthEventMetricsBucketValue,
#[serde(flatten)]
pub dimensions: AuthEventMetricsBucketIdentifier,
} | crates/api_models/src/analytics/auth_events.rs | api_models | struct_definition | 39 | rust | MetricsBucketResponse | null | null | null | null | null | null | null | null | null | null | null |
/// function to satisfy connector param validation macro
pub fn validate(&self, _parent_field: &str) -> Result<(), ApplicationError> {
Ok(())
} | crates/hyperswitch_domain_models/src/connector_endpoints.rs | hyperswitch_domain_models | function_signature | 35 | rust | null | null | null | null | validate | null | null | null | null | null | null | null |
pub struct PaymentIntentMetricsAccumulator {
pub successful_smart_retries: CountAccumulator,
pub total_smart_retries: CountAccumulator,
pub smart_retried_amount: SmartRetriedAmountAccumulator,
pub payment_intent_count: CountAccumulator,
pub payments_success_rate: PaymentsSuccessRateAccumulator,
... | crates/analytics/src/payment_intents/accumulator.rs | analytics | struct_definition | 98 | rust | PaymentIntentMetricsAccumulator | null | null | null | null | null | null | null | null | null | null | null |
pub async fn find_by_merchant_id_merchant_connector_id(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
merchant_connector_id: &common_utils::id_type::MerchantConnectorAccountId,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, ... | crates/diesel_models/src/query/merchant_connector_account.rs | diesel_models | function_signature | 122 | rust | null | null | null | null | find_by_merchant_id_merchant_connector_id | null | null | null | null | null | null | null |
pub struct FiservemeaError {
pub code: Option<String>,
pub message: Option<String>,
pub details: Option<Vec<ErrorDetails>>,
} | crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs | hyperswitch_connectors | struct_definition | 34 | rust | FiservemeaError | null | null | null | null | null | null | null | null | null | null | null |
impl api::Payment for Phonepe {} | crates/hyperswitch_connectors/src/connectors/phonepe.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Phonepe | api::Payment for | impl api::Payment for for Phonepe | null | null | null | null | null | null | null | null |
impl NetworkTokenWebhookResponse {
fn get_network_token_requestor_ref_id(&self) -> String {
match self {
Self::PanMetadataUpdate(data) => data.card.card_reference.clone(),
Self::NetworkTokenMetadataUpdate(data) => data.token.card_reference.clone(),
}
}
pub fn get_res... | crates/router/src/core/webhooks/network_tokenization_incoming.rs | router | impl_block | 267 | rust | null | NetworkTokenWebhookResponse | null | impl NetworkTokenWebhookResponse | null | null | null | null | null | null | null | null |
pub struct ThreedsInvokeRequest {
three_d_s_server_trans_i_d: String,
three_d_s_method_notification_u_r_l: String,
} | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | struct_definition | 32 | rust | ThreedsInvokeRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct TokenizedCardDetails {
pub masked_card_number: String,
pub expiry_month: Secret<String>,
pub expiry_year: Secret<String>,
pub card_brand: String,
} | crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs | hyperswitch_connectors | struct_definition | 39 | rust | TokenizedCardDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentsStatusDetails {
state: AmazonpayPaymentStatus,
reason_code: Option<String>,
reason_description: Option<String>,
last_updated_timestamp: String,
} | crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs | hyperswitch_connectors | struct_definition | 36 | rust | PaymentsStatusDetails | null | null | null | null | null | null | null | null | null | null | null |
pub fn from_storage(payouts: &'a Payouts, payout_attempt: &'a PayoutAttempt) -> Self {
Self {
payout_id: &payouts.payout_id,
payout_attempt_id: &payout_attempt.payout_attempt_id,
merchant_id: &payouts.merchant_id,
customer_id: payouts.customer_id.as_ref(),
... | crates/router/src/services/kafka/payout.rs | router | function_signature | 334 | rust | null | null | null | null | from_storage | null | null | null | null | null | null | null |
pub struct SantanderAuthUpdateResponse {
#[serde(rename = "camelCase")]
pub refresh_url: String,
pub token_type: String,
pub client_id: String,
pub access_token: Secret<String>,
pub scopes: String,
pub expires_in: i64,
} | crates/hyperswitch_connectors/src/connectors/santander/transformers.rs | hyperswitch_connectors | struct_definition | 62 | rust | SantanderAuthUpdateResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PlaidBankAccountCredentialsInternational {
pub account_id: String,
pub iban: String,
pub bic: String,
} | crates/pm_auth/src/connector/plaid/transformers.rs | pm_auth | struct_definition | 30 | rust | PlaidBankAccountCredentialsInternational | null | null | null | null | null | null | null | null | null | null | null |
pub fn server(state: AppState) -> Scope {
let mut route = web::scope("/v2/payments").app_data(web::Data::new(state));
route = route
.service(
web::resource("/create-intent")
.route(web::post().to(payments::payments_create_intent)),
)
... | crates/router/src/routes/app.rs | router | function_signature | 781 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Santander {} | crates/hyperswitch_connectors/src/connectors/santander.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Santander | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Santander | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Opennode {} | crates/hyperswitch_connectors/src/connectors/opennode.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Opennode | api::PaymentSession for | impl api::PaymentSession for for Opennode | null | null | null | null | null | null | null | null |
pub fn get_req_state(&self) -> ReqState {
ReqState {
event_context: events::EventContext::new(self.event_handler.clone()),
}
} | crates/router/src/routes/app.rs | router | function_signature | 35 | rust | null | null | null | null | get_req_state | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.GpayShippingAddressParameters
{
"type": "object",
"required": [
"phone_number_required"
],
"properties": {
"phone_number_required": {
"type": "boolean",
"description": "Is shipping phone number required"
}
}
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 70 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"GpayShippingAddressParameters"
] | null | null | null | null |
impl webhooks::IncomingWebhook for Katapult {
fn get_webhook_object_reference_id(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> {
Err(report!(errors::ConnectorError::WebhooksNotImplemented... | crates/hyperswitch_connectors/src/connectors/katapult.rs | hyperswitch_connectors | impl_block | 210 | rust | null | Katapult | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Katapult | null | null | null | null | null | null | null | null |
pub struct TokenizedCard {
number: cards::CardNumber,
expiration_month: Secret<String>,
expiration_year: Secret<String>,
cryptogram: Secret<String>,
transaction_type: TransactionType,
} | crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs | hyperswitch_connectors | struct_definition | 43 | rust | TokenizedCard | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorCustomerMap {
/// Creates a new `ConnectorCustomerMap` from a HashMap
pub fn new(
map: std::collections::HashMap<common_utils::id_type::MerchantConnectorAccountId, String>,
) -> Self {
Self(map)
}
} | crates/common_types/src/customers.rs | common_types | impl_block | 57 | rust | null | ConnectorCustomerMap | null | impl ConnectorCustomerMap | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Payu {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&PAYU_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*PAYU_SUPPORTED_PAYMENT_METHODS)
}
fn get_supported_web... | crates/hyperswitch_connectors/src/connectors/payu.rs | hyperswitch_connectors | impl_block | 105 | rust | null | Payu | ConnectorSpecifications for | impl ConnectorSpecifications for for Payu | null | null | null | null | null | null | null | null |
pub fn get_two_letter_country_code() -> JsResult {
let country_code_with_name = CountryAlpha2::iter()
.map(|country_code| CountryCodeWithName {
code: country_code,
name: common_enums::Country::from_alpha2(country_code),
})
.collect::<Vec<_>>();
Ok(serde_wasm_bind... | crates/euclid_wasm/src/lib.rs | euclid_wasm | function_signature | 85 | rust | null | null | null | null | get_two_letter_country_code | null | null | null | null | null | null | null |
pub struct ChargebeeInvoiceContent {
pub invoice: ChargebeeInvoiceData,
pub subscription: Option<ChargebeeSubscriptionData>,
} | crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | ChargebeeInvoiceContent | 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/flexiti.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub async fn connector_list(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<common_utils::id_type::MerchantId>,
) -> HttpResponse {
let flow = Flow::MerchantConnectorsList;
let merchant_id = path.into_inner();
api::server_wrap(
flow,
state,
&req,
m... | crates/router/src/routes/admin.rs | router | function_signature | 181 | rust | null | null | null | null | connector_list | null | null | null | null | null | null | null |
pub async fn get_merchant_pm_filter_graph(
state: &SessionState,
key: &str,
) -> Option<Arc<hyperswitch_constraint_graph::ConstraintGraph<dir::DirValue>>> {
PM_FILTERS_CGRAPH_CACHE
.get_val::<Arc<hyperswitch_constraint_graph::ConstraintGraph<dir::DirValue>>>(CacheKey {
key: key.to_string... | crates/router/src/core/payment_methods/utils.rs | router | function_signature | 101 | rust | null | null | null | null | get_merchant_pm_filter_graph | null | null | null | null | null | null | null |
File: crates/router/src/types/api/files.rs
Public structs: 3
use api_models::enums::FileUploadProvider;
pub use hyperswitch_domain_models::router_flow_types::files::{Retrieve, Upload};
pub use hyperswitch_interfaces::api::files::{FilePurpose, FileUpload, RetrieveFile, UploadFile};
use masking::{Deserialize, Serialize... | crates/router/src/types/api/files.rs | router | full_file | 548 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::DecisionManagerUpsertConfig;
Box::pin(oss_api::server_wrap(
flow,
state,
&req,
json_payload.into_inner(),
|state, auth: auth::AuthenticationData, update_decision, _| {
conditional_config::upsert_conditional_config(
... | crates/router/src/routes/routing.rs | router | impl_block | 205 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct RefundResponse {
pub id: String,
pub status: RefundStatus,
pub amount: FloatMajorUnit,
pub currency: String,
} | crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | hyperswitch_connectors | struct_definition | 35 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct SantanderBoletoErrorResponse {
#[serde(rename = "_errorCode")]
pub error_code: i64,
#[serde(rename = "_message")]
pub error_message: String,
#[serde(rename = "_details")]
pub issuer_error_message: String,
#[serde(rename = "_timestamp")]
pub timestamp: String,
#[serde(r... | crates/hyperswitch_connectors/src/connectors/santander/transformers.rs | hyperswitch_connectors | struct_definition | 106 | rust | SantanderBoletoErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::Payment for Placetopay {} | crates/hyperswitch_connectors/src/connectors/placetopay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Placetopay | api::Payment for | impl api::Payment for for Placetopay | null | null | null | null | null | null | null | null |
impl api::RefundSync for Getnet {} | crates/hyperswitch_connectors/src/connectors/getnet.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Getnet | api::RefundSync for | impl api::RefundSync for for Getnet | null | null | null | null | null | null | null | null |
File: crates/euclid/src/backend/inputs.rs
Public structs: 7
use rustc_hash::FxHashMap;
use serde::{Deserialize, Serialize};
use crate::{
enums,
frontend::dir::enums::{CustomerDeviceDisplaySize, CustomerDevicePlatform, CustomerDeviceType},
};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Mandate... | crates/euclid/src/backend/inputs.rs | euclid | full_file | 498 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct NetceteraErrorResponse {
pub three_ds_server_trans_id: Option<String>,
pub error_details: NetceteraErrorDetails,
} | crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs | hyperswitch_connectors | struct_definition | 32 | rust | NetceteraErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/core/payment_link.rs
Public functions: 11
pub mod validator;
use std::collections::HashMap;
use actix_web::http::header;
use api_models::{
admin::PaymentLinkConfig,
payments::{PaymentLinkData, PaymentLinkStatusWrap},
};
use common_utils::{
consts::{DEFAULT_LOCALE, DEFAULT_SESSION_... | crates/router/src/core/payment_link.rs | router | full_file | 8,045 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Refunds {
pub fn server(state: AppState) -> Scope {
let mut route = web::scope("/v2/refunds").app_data(web::Data::new(state));
#[cfg(feature = "olap")]
{
route =
route.service(web::resource("/list").route(web::post().to(refunds::refunds_list)));
}
... | crates/router/src/routes/app.rs | router | impl_block | 201 | rust | null | Refunds | null | impl Refunds | null | null | null | null | null | null | null | null |
pub struct MifinityPaymentsRequest {
money: Money,
client: MifinityClient,
address: MifinityAddress,
validation_key: String,
client_reference: common_utils::id_type::CustomerId,
trace_id: String,
description: String,
destination_account_number: Secret<String>,
brand_id: Secret<String... | crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs | hyperswitch_connectors | struct_definition | 101 | rust | MifinityPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
impl IncomingWebhook for Nuvei {
fn get_webhook_source_verification_algorithm(
&self,
_request: &IncomingWebhookRequestDetails<'_>,
) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> {
Ok(Box::new(crypto::Sha256))
}
fn get_webhook_source_verificat... | crates/hyperswitch_connectors/src/connectors/nuvei.rs | hyperswitch_connectors | impl_block | 1,267 | rust | null | Nuvei | IncomingWebhook for | impl IncomingWebhook for for Nuvei | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/authipay.rs
use std::str::FromStr;
use masking::Secret;
use router::{
types::{self, api, storage::enums},
core::errors,
};
use cards;
use crate::utils::{self, ConnectorActions};
use test_utils::connector_auth;
#[derive(Clone, Copy)]
struct AuthipayTest;
impl ConnectorActi... | crates/router/tests/connectors/authipay.rs | router | full_file | 3,388 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_id(&self) -> &common_utils::id_type::MerchantId {
&self.id
} | crates/diesel_models/src/merchant_account.rs | diesel_models | function_signature | 25 | rust | null | null | null | null | get_id | null | null | null | null | null | null | null |
pub struct ClientProcessorInformation {
avs: Option<Avs>,
card_verification: Option<CardVerification>,
processor: Option<ProcessorResponse>,
network_transaction_id: Option<Secret<String>>,
approval_code: Option<String>,
merchant_advice: Option<MerchantAdvice>,
response_code: Option<String>,
... | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 126 | rust | ClientProcessorInformation | null | null | null | null | null | null | null | null | null | null | null |
pub async fn proxy_for_payments_operation_core<F, Req, Op, FData, D>(
state: &SessionState,
req_state: ReqState,
merchant_context: domain::MerchantContext,
profile: domain::Profile,
operation: Op,
req: Req,
get_tracker_response: operations::GetTrackerResponse<D>,
call_connector_action: C... | crates/router/src/core/payments.rs | router | function_signature | 649 | rust | null | null | null | null | proxy_for_payments_operation_core | null | null | null | null | null | null | null |
pub struct PSyncResponseData {
search: SearchData,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | PSyncResponseData | null | null | null | null | null | null | null | null | null | null | null |
pub struct DisputeFetchQueryData {
pub fetch_from: String,
pub fetch_till: String,
} | crates/router/src/types/api/disputes.rs | router | struct_definition | 24 | rust | DisputeFetchQueryData | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundSync for Payeezy {} | crates/hyperswitch_connectors/src/connectors/payeezy.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Payeezy | api::RefundSync for | impl api::RefundSync for for Payeezy | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs
Public structs: 6
use common_enums::enums;
use common_utils::types::StringMinorUnit;
use error_stack::ResultExt;
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, Erro... | crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs | hyperswitch_connectors | full_file | 8,030 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl FraudCheckRecordReturn for Signifyd {} | crates/hyperswitch_connectors/src/connectors/signifyd.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Signifyd | FraudCheckRecordReturn for | impl FraudCheckRecordReturn for for Signifyd | null | null | null | null | null | null | null | null |
File: crates/test_utils/tests/connectors/nexinets_ui.rs
use serial_test::serial;
use thirtyfour::{prelude::*, WebDriver};
use crate::{selenium::*, tester};
struct NexinetsSeleniumTest;
impl SeleniumTest for NexinetsSeleniumTest {
fn get_connector_name(&self) -> String {
"nexinets".to_string()
}
}
a... | crates/test_utils/tests/connectors/nexinets_ui.rs | test_utils | full_file | 686 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ProcessingOptions {
is_subsequent_auth: bool,
} | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | ProcessingOptions | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Nomupay {} | crates/hyperswitch_connectors/src/connectors/nomupay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Nomupay | api::PaymentVoid for | impl api::PaymentVoid for for Nomupay | null | null | null | null | null | null | null | null |
impl PartialEq for SdkEventMetricsBucketIdentifier {
fn eq(&self, other: &Self) -> bool {
let mut left = DefaultHasher::new();
self.hash(&mut left);
let mut right = DefaultHasher::new();
other.hash(&mut right);
left.finish() == right.finish()
}
} | crates/api_models/src/analytics/sdk_events.rs | api_models | impl_block | 71 | rust | null | SdkEventMetricsBucketIdentifier | PartialEq for | impl PartialEq for for SdkEventMetricsBucketIdentifier | null | null | null | null | null | null | null | null |
File: crates/payment_methods/src/configs.rs
pub mod payment_connector_required_fields;
pub mod settings;
| crates/payment_methods/src/configs.rs | payment_methods | full_file | 21 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn validate_payout_link_request(
req: &payouts::PayoutCreateRequest,
) -> Result<(), errors::ApiErrorResponse> {
if req.confirm.unwrap_or(false) {
return Err(errors::ApiErrorResponse::InvalidRequestData {
message: "cannot confirm a payout while creating a payout link".to_string(),
... | crates/router/src/core/payouts/validator.rs | router | function_signature | 117 | rust | null | null | null | null | validate_payout_link_request | null | null | null | null | null | null | null |
impl super::auth_events::filters::AuthEventFilterAnalytics for SqlxClient {} | crates/analytics/src/sqlx.rs | analytics | impl_block | 17 | rust | null | SqlxClient | super::auth_events::filters::AuthEventFilterAnalytics for | impl super::auth_events::filters::AuthEventFilterAnalytics for for SqlxClient | null | null | null | null | null | null | null | null |
impl api::RefundSync for Bambora {} | crates/hyperswitch_connectors/src/connectors/bambora.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Bambora | api::RefundSync for | impl api::RefundSync for for Bambora | null | null | null | null | null | null | null | null |
pub struct DecryptedData(StrongSecret<Vec<u8>>); | crates/common_utils/src/types/keymanager.rs | common_utils | struct_definition | 13 | rust | DecryptedData | null | null | null | null | null | null | null | null | null | null | null |
pub fn from_header_map(headers: Option<&HeaderMap>) -> Self {
headers
.map(|h| {
let map = h
.iter()
.map(|(k, v)| (k.to_string(), v.to_str().unwrap_or("").to_string()))
.collect();
Self(map)
})
... | crates/api_models/src/proxy.rs | api_models | function_signature | 83 | rust | null | null | null | null | from_header_map | null | null | null | null | null | null | null |
pub struct PaymentMethodAuthConnectorChoice {
pub payment_method: PaymentMethod,
pub payment_method_type: PaymentMethodType,
pub connector_name: String,
pub mca_id: id_type::MerchantConnectorAccountId,
} | crates/api_models/src/pm_auth.rs | api_models | struct_definition | 47 | rust | PaymentMethodAuthConnectorChoice | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Prophetpay {} | crates/hyperswitch_connectors/src/connectors/prophetpay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Prophetpay | api::PaymentToken for | impl api::PaymentToken for for Prophetpay | null | null | null | null | null | null | null | null |
pub struct LinkTokenCreateRequest {
pub language: Option<String>, // optional language field to be passed
pub client_secret: Option<String>, // client secret to be passed in req body
pub payment_id: id_type::PaymentId, // payment_id to be passed in req body for redis pm_auth connector name fetch
pub pay... | crates/api_models/src/pm_auth.rs | api_models | struct_definition | 113 | rust | LinkTokenCreateRequest | null | null | null | null | null | null | null | null | null | null | null |
/// fn set_error_response_body
pub fn set_error_response_body<T: Serialize>(&mut self, response: &T) {
match masking::masked_serialize(response) {
Ok(masked) => {
self.error = Some(masked.to_string());
}
Err(er) => self.set_error(json!({"error": er.to_stri... | crates/hyperswitch_interfaces/src/events/routing_api_logs.rs | hyperswitch_interfaces | function_signature | 77 | rust | null | null | null | null | set_error_response_body | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Tsys {} | crates/hyperswitch_connectors/src/connectors/tsys.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Tsys | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Tsys | null | null | null | null | null | null | null | null |
impl api::PaymentsCompleteAuthorize for Affirm {} | crates/hyperswitch_connectors/src/connectors/affirm.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Affirm | api::PaymentsCompleteAuthorize for | impl api::PaymentsCompleteAuthorize for for Affirm | null | null | null | null | null | null | null | null |
impl WebhookDetails {
fn validate_statuses<T>(statuses: &[T], status_type_name: &str) -> Result<(), String>
where
T: strum::IntoEnumIterator + Copy + PartialEq + std::fmt::Debug,
T: Into<Option<api_enums::EventType>>,
{
let valid_statuses: Vec<T> = T::iter().filter(|s| (*s).into().is... | crates/api_models/src/admin.rs | api_models | impl_block | 263 | rust | null | WebhookDetails | null | impl WebhookDetails | null | null | null | null | null | null | null | null |
pub async fn payment_intents_retrieve_with_gateway_creds(
state: web::Data<routes::AppState>,
qs_config: web::Data<serde_qs::Config>,
req: HttpRequest,
form_payload: web::Bytes,
) -> HttpResponse {
let json_payload: payment_types::PaymentRetrieveBodyWithCredentials = match qs_config
.deseria... | crates/router/src/compatibility/stripe/payment_intents.rs | router | function_signature | 563 | rust | null | null | null | null | payment_intents_retrieve_with_gateway_creds | null | null | null | null | null | null | null |
pub struct MerchantIdAuth; | crates/router/src/services/authentication.rs | router | struct_definition | 6 | rust | MerchantIdAuth | null | null | null | null | null | null | null | null | null | null | null |
pub async fn perform_session_flow_routing<'a>(
state: &'a SessionState,
key_store: &'a domain::MerchantKeyStore,
session_input: SessionFlowRoutingInput<'_>,
business_profile: &domain::Profile,
transaction_type: &api_enums::TransactionType,
) -> RoutingResult<FxHashMap<api_enums::PaymentMethodType, V... | crates/router/src/core/payments/routing.rs | router | function_signature | 967 | rust | null | null | null | null | perform_session_flow_routing | null | null | null | null | null | null | null |
pub struct MultisafepayErrorResponse {
pub error_code: i32,
pub error_info: String,
} | crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | MultisafepayErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentAccountInformation {
card: Option<PaymentAccountCardInformation>,
features: Option<PaymentAccountFeatureInformation>,
} | crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | PaymentAccountInformation | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_merchant_connector_account_for_wallet_decryption_flow<F, D>(
state: &SessionState,
merchant_context: &domain::MerchantContext,
payment_data: &mut D,
connector_call_type_optional: Option<&ConnectorCallType>,
) -> RouterResult<helpers::MerchantConnectorAccountType>
where
F: Send + Clo... | crates/router/src/core/payments.rs | router | function_signature | 323 | rust | null | null | null | null | get_merchant_connector_account_for_wallet_decryption_flow | null | null | null | null | null | null | null |
pub struct IatapayRefundRequest {
pub merchant_id: Secret<String>,
pub merchant_refund_id: Option<String>,
pub amount: FloatMajorUnit,
pub currency: String,
pub bank_transfer_description: Option<String>,
pub notification_url: String,
} | crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs | hyperswitch_connectors | struct_definition | 59 | rust | IatapayRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct EliminationRoutingEventBucketConfig {
pub bucket_size: Option<u64>,
pub bucket_leak_interval_in_secs: Option<u64>,
} | crates/api_models/src/routing.rs | api_models | struct_definition | 34 | rust | EliminationRoutingEventBucketConfig | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Braintree {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&BRAINTREE_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*BRAINTREE_SUPPORTED_PAYMENT_METHODS)
}
fn ge... | crates/hyperswitch_connectors/src/connectors/braintree.rs | hyperswitch_connectors | impl_block | 108 | rust | null | Braintree | ConnectorSpecifications for | impl ConnectorSpecifications for for Braintree | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/inespay.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 InespayTest;
im... | crates/router/tests/connectors/inespay.rs | router | full_file | 2,932 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CustomerPaymentMethodsListResponse {
/// List of payment methods for customer
pub customer_payment_methods: Vec<PaymentMethodResponseItem>,
} | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 31 | rust | CustomerPaymentMethodsListResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/test_utils/tests/connectors/trustpay_3ds_ui.rs
use serial_test::serial;
use thirtyfour::{prelude::*, WebDriver};
use crate::{selenium::*, tester};
struct TrustpaySeleniumTest;
impl SeleniumTest for TrustpaySeleniumTest {
fn get_connector_name(&self) -> String {
"trustpay_3ds".to_string()
... | crates/test_utils/tests/connectors/trustpay_3ds_ui.rs | test_utils | full_file | 294 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Nordea {} | crates/hyperswitch_connectors/src/connectors/nordea.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Nordea | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Nordea | null | null | null | null | null | null | null | null |
pub async fn retrieve_dispute_evidence(
state: SessionState,
merchant_context: domain::MerchantContext,
profile_id: Option<common_utils::id_type::ProfileId>,
req: disputes::DisputeId,
) -> RouterResponse<Vec<api_models::disputes::DisputeEvidenceBlock>> {
let dispute = state
.store
.f... | crates/router/src/core/disputes.rs | router | function_signature | 259 | rust | null | null | null | null | retrieve_dispute_evidence | null | null | null | null | null | null | null |
pub struct PayoutIndividualDetails {
pub tos_acceptance_date: Option<i64>,
pub tos_acceptance_ip: Option<Secret<String>>,
pub individual_dob_day: Option<Secret<String>>,
pub individual_dob_month: Option<Secret<String>>,
pub individual_dob_year: Option<Secret<String>>,
pub individual_id_number: O... | crates/api_models/src/payouts.rs | api_models | struct_definition | 106 | rust | PayoutIndividualDetails | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/db/capture.rs
use router_env::{instrument, tracing};
use super::MockDb;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as types, enums},
};
#[async_trait::async_trait]
pub trait CaptureInterface {
async fn insert_capture(
&self,
capture: typ... | crates/router/src/db/capture.rs | router | full_file | 1,690 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.BankTransferAdditionalData
{
"oneOf": [
{
"type": "object",
"required": [
"ach"
],
"properties": {
"ach": {
"type": "object"
}
}
},
{
"type": "object",
"required": [
"sepa"
],
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 928 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"BankTransferAdditionalData"
] | null | null | null | null |
pub fn parse_stream_entries<'a>(
read_result: &'a StreamReadResult,
stream_name: &str,
) -> errors::DrainerResult<&'a StreamEntries> {
read_result.get(stream_name).ok_or_else(|| {
report!(errors::DrainerError::RedisError(report!(
redis::errors::RedisError::NotFound
)))
})
} | crates/drainer/src/utils.rs | drainer | function_signature | 80 | rust | null | null | null | null | parse_stream_entries | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs
Public structs: 12
use common_enums::enums::{self, AuthenticationType};
use common_utils::pii::IpAddress;
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, ErrorRespons... | crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | hyperswitch_connectors | full_file | 3,876 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_connector_transaction_id_as_string(
self,
) -> Result<String, common_utils::errors::ValidationError> {
match self {
Self::PaymentId(
payments::PaymentIdType::ConnectorTransactionId(id)
) => Ok(id),
Self::PaymentId(_)=>Err(
... | crates/api_models/src/webhooks.rs | api_models | function_signature | 324 | rust | null | null | null | null | get_connector_transaction_id_as_string | null | null | null | null | null | null | null |
pub async fn call_create_connector_customer_if_required<F, Req, D>(
state: &SessionState,
customer: &Option<domain::Customer>,
merchant_context: &domain::MerchantContext,
merchant_connector_account_type: &domain::MerchantConnectorAccountTypeDetails,
payment_data: &mut D,
) -> RouterResult<Option<sto... | crates/router/src/core/payments/vault_session.rs | router | function_signature | 593 | rust | null | null | null | null | call_create_connector_customer_if_required | null | null | null | null | null | null | null |
File: crates/router/src/types/storage/blocklist.rs
pub use diesel_models::blocklist::{Blocklist, BlocklistNew};
| crates/router/src/types/storage/blocklist.rs | router | full_file | 26 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn free_lock_action<A>(
self,
state: &A,
merchant_id: common_utils::id_type::MerchantId,
) -> RouterResult<()>
where
A: SessionStateInfo,
{
match self {
Self::HoldMultiple { inputs } => {
let redis_conn = state
... | crates/router/src/core/api_locking.rs | router | function_signature | 789 | rust | null | null | null | null | free_lock_action | null | null | null | null | null | null | null |
pub fn separate_metadata_type_based_on_scope(
metadata_keys: Vec<DBEnum>,
) -> (Vec<DBEnum>, Vec<DBEnum>) {
let (mut merchant_scoped, mut user_scoped) = (
Vec::with_capacity(metadata_keys.len()),
Vec::with_capacity(metadata_keys.len()),
);
for key in metadata_keys {
match key {
... | crates/router/src/utils/user/dashboard_metadata.rs | router | function_signature | 310 | rust | null | null | null | null | separate_metadata_type_based_on_scope | null | null | null | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.