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 struct ProfileResponse {
/// The identifier for Merchant Account
#[schema(max_length = 64, example = "y3oqhf46pyzuxjbcn2giaqnb44", value_type = String)]
pub merchant_id: id_type::MerchantId,
/// The identifier for profile. This must be used for creating merchant accounts, payments and payouts
#... | crates/api_models/src/admin.rs | api_models | struct_definition | 2,075 | rust | ProfileResponse | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/merchant-connector-account/connector-account--create.mdx
# Type: Doc File
---
openapi: post /v2/connector-accounts
--- | api-reference/v2/merchant-connector-account/connector-account--create.mdx | null | doc_file | 39 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn server(state: AppState) -> Scope {
// TODO: Deprecated. Remove this in favour of /v2/users
let mut route = web::scope("/v2/user").app_data(web::Data::new(state));
route = route.service(
web::resource("/create_merchant")
.route(web::post().to(user::user_merchan... | crates/router/src/routes/app.rs | router | function_signature | 289 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
pub struct AffirmPSyncResponse {
pub amount: MinorUnit,
pub amount_refunded: MinorUnit,
pub authorization_expiration: Option<String>,
pub checkout_id: String,
pub created: String,
pub currency: Currency,
pub events: Vec<TransactionEvent>,
pub id: String,
pub order_id: String,
pub... | crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs | hyperswitch_connectors | struct_definition | 190 | rust | AffirmPSyncResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentVoidResponse {
#[serde(skip)]
pub(super) status: u16,
action_id: String,
reference: String,
} | crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs | hyperswitch_connectors | struct_definition | 33 | rust | PaymentVoidResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct FrmInfo<F, D> {
pub fraud_check_operation: BoxedFraudCheckOperation<F, D>,
pub frm_data: Option<FrmData>,
pub suggested_action: Option<FrmSuggestion>,
} | crates/router/src/core/fraud_check/types.rs | router | struct_definition | 47 | rust | FrmInfo | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/customers/{customer_id}/mandates"
{
"get": {
"tags": [
"Mandates"
],
"summary": "Mandates - Customer Mandates List",
"description": "Lists all the mandates for a particular customer id.",
"operationId": "List Mandates for a Customer",
"parameters": [
{
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 250 | .json | null | null | null | null | null | openapi_spec | paths | [
"/customers/{customer_id}/mandates"
] | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/inespay.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use base64::Engine;
use common_enums::enums;
use common_utils::{
consts::BASE64_ENGINE,
crypto,
errors::CustomResult,
ext_traits::{ByteSliceExt, BytesEx... | crates/hyperswitch_connectors/src/connectors/inespay.rs | hyperswitch_connectors | full_file | 5,932 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn call_connector_service_prerequisites_for_external_vault_proxy<
F,
RouterDReq,
ApiRequest,
D,
>(
state: &SessionState,
req_state: ReqState,
merchant_context: &domain::MerchantContext,
connector: api::ConnectorData,
operation: &BoxedOperation<'_, F, ApiRequest, D>,
pay... | crates/router/src/core/payments.rs | router | function_signature | 627 | rust | null | null | null | null | call_connector_service_prerequisites_for_external_vault_proxy | null | null | null | null | null | null | null |
Documentation: api-reference/_snippets/snippet-example.mdx
# Type: Doc File
## My Snippet
<Info>This is an example of a reusable snippet</Info>
| api-reference/_snippets/snippet-example.mdx | null | doc_file | 37 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl ApplePayWalletData {
pub fn get_payment_method_type(&self) -> Option<api_enums::PaymentMethodType> {
self.payment_method
.pm_type
.clone()
.parse_enum("ApplePayPaymentMethodType")
.ok()
.and_then(|payment_type| match payment_type {
... | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | impl_block | 162 | rust | null | ApplePayWalletData | null | impl ApplePayWalletData | null | null | null | null | null | null | null | null |
pub async fn update(
self,
conn: &PgPooledConn,
merchant_account: MerchantAccountUpdateInternal,
) -> StorageResult<Self> {
match generics::generic_update_by_id::<<Self as HasTable>::Table, _, _, _>(
conn,
self.get_id().to_owned(),
merchant_account... | crates/diesel_models/src/query/merchant_account.rs | diesel_models | function_signature | 119 | rust | null | null | null | null | update | null | null | null | null | null | null | null |
pub struct BamboraRouterData<T> {
pub amount: FloatMajorUnit,
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | BamboraRouterData | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/routes/dummy_connector.rs
Public functions: 6
use actix_web::web;
use router_env::{instrument, tracing};
use super::app;
use crate::{
core::api_locking,
services::{api, authentication as auth},
};
mod consts;
mod core;
mod errors;
pub mod types;
mod utils;
#[cfg(all(feature = "dummy... | crates/router/src/routes/dummy_connector.rs | router | full_file | 1,166 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn update_business_profile_active_dynamic_algorithm_ref(
db: &dyn StorageInterface,
key_manager_state: &KeyManagerState,
merchant_key_store: &domain::MerchantKeyStore,
current_business_profile: domain::Profile,
dynamic_routing_algorithm_ref: routing_types::DynamicRoutingAlgorithmRef,
) -> ... | crates/router/src/core/routing/helpers.rs | router | function_signature | 207 | rust | null | null | null | null | update_business_profile_active_dynamic_algorithm_ref | null | null | null | null | null | null | null |
pub fn set_billing_data(mut self, address: Option<&Address>) -> Result<Self, Error> {
self.billing_data = address
.and_then(|address| {
address.address.as_ref().map(|address_details| {
let state = address_details
.get_optional_state()
... | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | function_signature | 230 | rust | null | null | null | null | set_billing_data | null | null | null | null | null | null | null |
impl ConnectorCommon for Tsys {
fn id(&self) -> &'static str {
"tsys"
}
fn common_get_content_type(&self) -> &'static str {
"application/json"
}
fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str {
connectors.tsys.base_url.as_ref()
}
} | crates/hyperswitch_connectors/src/connectors/tsys.rs | hyperswitch_connectors | impl_block | 79 | rust | null | Tsys | ConnectorCommon for | impl ConnectorCommon for for Tsys | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Bamboraapac {} | crates/hyperswitch_connectors/src/connectors/bamboraapac.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Bamboraapac | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Bamboraapac | null | null | null | null | null | null | null | null |
pub fn get_billing_required_fields() -> HashMap<String, RequiredFieldInfo> {
HashMap::from([
RequiredField::BillingFirstName("billing_first_name", FieldType::UserBillingName)
.to_tuple(),
RequiredField::BillingLastName("billing_last_name", FieldType::UserBillingName).to_tuple(),
... | crates/payment_methods/src/configs/payment_connector_required_fields.rs | payment_methods | function_signature | 162 | rust | null | null | null | null | get_billing_required_fields | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Nomupay {
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/nomupay.rs | hyperswitch_connectors | impl_block | 211 | rust | null | Nomupay | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Nomupay | null | null | null | null | null | null | null | null |
pub struct PlacetopayAuth {
login: Secret<String>,
tran_key: Secret<String>,
nonce: Secret<String>,
seed: String,
} | crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs | hyperswitch_connectors | struct_definition | 33 | rust | PlacetopayAuth | null | null | null | null | null | null | null | null | null | null | null |
pub struct RedsysSyncResponseData {
ds_order: String,
ds_transactiontype: String,
ds_amount: Option<String>,
ds_currency: Option<String>,
ds_securepayment: Option<String>,
ds_state: Option<String>,
ds_response: Option<DsResponse>,
} | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | struct_definition | 60 | rust | RedsysSyncResponseData | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_card_bin_and_last4_digits_for_masked_card(
masked_card_number: &str,
) -> Result<(String, String), cards::CardNumberValidationErr> {
let last4_digits = masked_card_number
.chars()
.rev()
.take(4)
.collect::<String>()
.chars()
.rev()
.collect::<S... | crates/payment_methods/src/core/migration/payment_methods.rs | payment_methods | function_signature | 147 | rust | null | null | null | null | get_card_bin_and_last4_digits_for_masked_card | null | null | null | null | null | null | null |
pub struct ZenAuthType {
pub(super) api_key: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | hyperswitch_connectors | struct_definition | 17 | rust | ZenAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub struct AchBankTransfer {
/// Bank name
#[schema(value_type = Option<String>, example = "Deutsche Bank")]
pub bank_name: Option<String>,
/// Bank country code
#[schema(value_type = Option<CountryAlpha2>, example = "US")]
pub bank_country_code: Option<api_enums::CountryAlpha2>,
/// Bank ... | crates/api_models/src/payouts.rs | api_models | struct_definition | 201 | rust | AchBankTransfer | null | null | null | null | null | null | null | null | null | null | null |
pub struct AnalyticsMetadata {
pub current_time_range: TimeRange,
} | crates/api_models/src/analytics.rs | api_models | struct_definition | 15 | rust | AnalyticsMetadata | null | null | null | null | null | null | null | null | null | null | null |
pub struct UnifiedTranslationsUpdate {
pub translation: Option<String>,
} | crates/diesel_models/src/unified_translations.rs | diesel_models | struct_definition | 14 | rust | UnifiedTranslationsUpdate | null | null | null | null | null | null | null | null | null | null | null |
pub(crate) fn diesel_enum_text_derive_inner(ast: &DeriveInput) -> syn::Result<TokenStream> {
let name = &ast.ident;
let (impl_generics, ty_generics, where_clause) = ast.generics.split_for_impl();
match &ast.data {
Data::Enum(_) => (),
_ => return Err(helpers::non_enum_error()),
};
... | crates/router_derive/src/macros/diesel.rs | router_derive | function_signature | 348 | rust | null | null | null | null | diesel_enum_text_derive_inner | null | null | null | null | null | null | null |
impl Nexinets {
pub fn connector_transaction_id(
&self,
connector_meta: Option<&serde_json::Value>,
) -> CustomResult<Option<String>, errors::ConnectorError> {
let meta: nexinets::NexinetsPaymentsMetadata = to_connector_meta(connector_meta.cloned())?;
Ok(meta.transaction_id)
... | crates/hyperswitch_connectors/src/connectors/nexinets.rs | hyperswitch_connectors | impl_block | 75 | rust | null | Nexinets | null | impl Nexinets | null | null | null | null | null | null | null | null |
pub struct PaymentMethodDataWalletInfo {
/// Last 4 digits of the card number
pub last4: String,
/// The information of the payment method
pub card_network: String,
/// The type of payment method
#[serde(rename = "type")]
pub card_type: Option<String>,
} | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 67 | rust | PaymentMethodDataWalletInfo | null | null | null | null | null | null | null | null | null | null | null |
pub fn new(routable_connector_choice: RoutableConnectorChoice, status: bool) -> Self {
Self {
routable_connector_choice,
status,
}
} | crates/api_models/src/routing.rs | api_models | function_signature | 37 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub trait PayoutsInterface {
type Error;
async fn insert_payout(
&self,
_payout: PayoutsNew,
_storage_scheme: MerchantStorageScheme,
) -> error_stack::Result<Payouts, Self::Error>;
async fn find_payout_by_merchant_id_payout_id(
&self,
_merchant_id: &id_type::Merc... | crates/hyperswitch_domain_models/src/payouts/payouts.rs | hyperswitch_domain_models | trait_definition | 714 | rust | null | null | PayoutsInterface | null | null | null | null | null | null | null | null | null |
- **connector:** [Novalnet] add Recurring payment flow for cards ([#5921](https://github.com/juspay/hyperswitch/pull/5921)) ([`6a6ce17`](https://github.com/juspay/hyperswitch/commit/6a6ce17506932e0843140ef5b02ed201d0524d5d))
- **cypress-v2:** Add cypress v2 core flow tests ([#5791](https://github.com/juspay/hyperswitch... | CHANGELOG.md#chunk22 | null | doc_chunk | 8,191 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ProfileAcquirerCreate
{
"type": "object",
"required": [
"acquirer_assigned_merchant_id",
"merchant_name",
"network",
"acquirer_bin",
"acquirer_fraud_rate",
"profile_id"
],
"properties": {
"acquirer_assigned_merchant_id": {
"type": "string"... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 377 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ProfileAcquirerCreate"
] | null | null | null | null |
pub struct Razorpay {
amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/razorpay.rs | hyperswitch_connectors | struct_definition | 26 | rust | Razorpay | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router_env/src/logger/types.rs
//! Types.
use serde::Deserialize;
use strum::{Display, EnumString};
pub use tracing::{
field::{Field, Visit},
Level, Value,
};
/// Category and tag of log event.
///
/// Don't hesitate to add your variant if it is missing here.
#[derive(Debug, Default, Deserialize... | crates/router_env/src/logger/types.rs | router_env | full_file | 4,262 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct Coupons {
pub allow: Option<Vec<Secret<String>>>,
} | crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | Coupons | null | null | null | null | null | null | null | null | null | null | null |
pub struct ChallengeSuccessCount; | crates/api_models/src/analytics/auth_events.rs | api_models | struct_definition | 6 | rust | ChallengeSuccessCount | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Novalnet {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&NOVALNET_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*NOVALNET_SUPPORTED_PAYMENT_METHODS)
}
fn get_s... | crates/hyperswitch_connectors/src/connectors/novalnet.rs | hyperswitch_connectors | impl_block | 109 | rust | null | Novalnet | ConnectorSpecifications for | impl ConnectorSpecifications for for Novalnet | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.StripeChargeResponseData
{
"type": "object",
"description": "Fee information to be charged on the payment being collected via Stripe",
"required": [
"charge_type",
"application_fees",
"transfer_account_id"
],
"properties": {
"charge_id": {
"type": "... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 216 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"StripeChargeResponseData"
] | null | null | null | null |
pub struct SecureAcceptance {
secure_acceptance_url: Option<url::Url>,
} | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | SecureAcceptance | null | null | null | null | null | null | null | null | null | null | null |
impl EphemeralKeyInterface for KafkaStore {
#[cfg(feature = "v1")]
async fn create_ephemeral_key(
&self,
ek: EphemeralKeyNew,
validity: i64,
) -> CustomResult<EphemeralKey, errors::StorageError> {
self.diesel_store.create_ephemeral_key(ek, validity).await
}
#[cfg(fea... | crates/router/src/db/kafka_store.rs | router | impl_block | 204 | rust | null | KafkaStore | EphemeralKeyInterface for | impl EphemeralKeyInterface for for KafkaStore | null | null | null | null | null | null | null | null |
pub struct PaymentsSuccessRate; | crates/api_models/src/analytics/payment_intents.rs | api_models | struct_definition | 6 | rust | PaymentsSuccessRate | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/api-key/api-key--list.mdx
# Type: Doc File
---
openapi: get /v2/api-keys/list
---
| api-reference/v2/api-key/api-key--list.mdx | null | doc_file | 34 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PayloadCancelRequest {
pub status: responses::PayloadPaymentStatus,
} | crates/hyperswitch_connectors/src/connectors/payload/requests.rs | hyperswitch_connectors | struct_definition | 17 | rust | PayloadCancelRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/common_utils/src/transformers.rs
//! Utilities for converting between foreign types
/// Trait for converting from one foreign type to another
pub trait ForeignFrom<F> {
/// Convert from a foreign type to the current type
fn foreign_from(from: F) -> Self;
}
/// Trait for converting from one forei... | crates/common_utils/src/transformers.rs | common_utils | full_file | 131 | null | null | 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 GetPaymentMetricRequest");
let flow = AnalyticsFlow::GetPa... | crates/router/src/analytics.rs | router | impl_block | 330 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct MultisafepayRefundRequest {
pub currency: enums::Currency,
pub amount: MinorUnit,
pub description: Option<String>,
pub refund_order_id: Option<String>,
pub checkout_data: Option<ShoppingCart>,
} | crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs | hyperswitch_connectors | struct_definition | 53 | rust | MultisafepayRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn ephemeral_key_delete(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<String>,
) -> HttpResponse {
let flow = Flow::EphemeralKeyDelete;
let payload = path.into_inner();
api::server_wrap(
flow,
state,
&req,
payload,
|state, _: aut... | crates/router/src/routes/ephemeral_key.rs | router | function_signature | 143 | rust | null | null | null | null | ephemeral_key_delete | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &MinorUnitForConnector,
amount_converter_webhooks: &StringMinorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/checkout.rs | hyperswitch_connectors | function_signature | 40 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
impl api::PaymentCapture for Fiserv {} | crates/hyperswitch_connectors/src/connectors/fiserv.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Fiserv | api::PaymentCapture for | impl api::PaymentCapture for for Fiserv | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/query/merchant_key_store.rs
Public functions: 5
use diesel::{associations::HasTable, ExpressionMethods};
use super::generics;
use crate::{
merchant_key_store::{MerchantKeyStore, MerchantKeyStoreNew},
schema::merchant_key_store::dsl,
PgPooledConn, StorageResult,
};
impl Mer... | crates/diesel_models/src/query/merchant_key_store.rs | diesel_models | full_file | 525 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn update_from_request(self, req: &api_models::payments::AmountDetailsUpdate) -> Self {
Self {
order_amount: req
.order_amount()
.unwrap_or(self.order_amount.into())
.into(),
currency: req.currency().unwrap_or(self.currency),
... | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | function_signature | 236 | rust | null | null | null | null | update_from_request | null | null | null | null | null | null | null |
impl api::PaymentVoid for Placetopay {} | crates/hyperswitch_connectors/src/connectors/placetopay.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Placetopay | api::PaymentVoid for | impl api::PaymentVoid for for Placetopay | null | null | null | null | null | null | null | null |
pub struct AddressUpdateMems {
pub orig: Address,
pub update_data: AddressUpdateInternal,
} | crates/diesel_models/src/kv.rs | diesel_models | struct_definition | 23 | rust | AddressUpdateMems | null | null | null | null | null | null | null | null | null | null | null |
}
api_enums::Country::BonaireSintEustatiusAndSaba => {
dir::enums::Country::BonaireSintEustatiusAndSaba
}
api_enums::Country::BosniaAndHerzegovina => dir::enums::Country::BosniaAndHerzegovina,
api_enums::Country::Botswana => dir::enums::Country::Botswana,
api_... | crates/kgraph_utils/src/transformers.rs#chunk1 | kgraph_utils | chunk | 4,920 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl CardInfoBuilder<CardInfoFetch> {
fn set_card_info(
self,
card_info: card_info_models::CardInfo,
) -> CardInfoBuilder<CardInfoUpdate> {
CardInfoBuilder {
state: std::marker::PhantomData,
card_info: Some(card_info),
}
}
fn transition(self) -> C... | crates/router/src/core/cards_info.rs | router | impl_block | 109 | rust | null | CardInfoBuilder | null | impl CardInfoBuilder | null | null | null | null | null | null | null | null |
File: crates/analytics/src/auth_events/metrics/frictionless_success_count.rs
use std::collections::HashSet;
use api_models::analytics::{
auth_events::{AuthEventDimensions, AuthEventFilters, AuthEventMetricsBucketIdentifier},
Granularity, TimeRange,
};
use common_enums::{AuthenticationStatus, DecoupledAuthenti... | crates/analytics/src/auth_events/metrics/frictionless_success_count.rs | analytics | full_file | 1,099 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ClientSecretId {
/// Generate a key for redis
pub fn generate_redis_key(&self) -> String {
format!("cs_{}", self.get_string_repr())
}
} | crates/common_utils/src/id_type/client_secret.rs | common_utils | impl_block | 39 | rust | null | ClientSecretId | null | impl ClientSecretId | null | null | null | null | null | null | null | null |
pub struct ApiMetricsBucketResponse {
#[serde(flatten)]
pub values: ApiEventMetricsBucketValue,
#[serde(flatten)]
pub dimensions: ApiEventMetricsBucketIdentifier,
} | crates/api_models/src/analytics/api_event.rs | api_models | struct_definition | 40 | rust | ApiMetricsBucketResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_theme_file_key(theme_id: &str) -> PathBuf {
get_specific_file_key(theme_id, "theme.json")
} | crates/router/src/utils/user/theme.rs | router | function_signature | 29 | rust | null | null | null | null | get_theme_file_key | null | null | null | null | null | null | null |
pub fn add_having_clause<R>(
&mut self,
aggregate: Aggregate<R>,
filter_type: FilterTypes,
value: impl ToSql<T>,
) -> QueryResult<()>
where
Aggregate<R>: ToSql<T>,
{
let aggregate = aggregate
.to_sql(&self.table_engine)
.change_context(... | crates/analytics/src/query.rs | analytics | function_signature | 186 | rust | null | null | null | null | add_having_clause | null | null | null | null | null | null | null |
pub async fn construct_payment_router_data_for_authorize<'a>(
state: &'a SessionState,
payment_data: hyperswitch_domain_models::payments::PaymentConfirmData<api::Authorize>,
connector_id: &str,
merchant_context: &domain::MerchantContext,
customer: &'a Option<domain::Customer>,
merchant_connector... | crates/router/src/core/payments/transformers.rs | router | function_signature | 1,945 | rust | null | null | null | null | construct_payment_router_data_for_authorize | null | null | null | null | null | null | null |
pub fn get_tenants(&self) -> &HashMap<id_type::TenantId, Tenant> {
&self.tenants.0
} | crates/drainer/src/settings.rs | drainer | function_signature | 32 | rust | null | null | null | null | get_tenants | null | null | null | null | null | null | null |
impl api::RefundExecute for Phonepe {} | crates/hyperswitch_connectors/src/connectors/phonepe.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Phonepe | api::RefundExecute for | impl api::RefundExecute for for Phonepe | null | null | null | null | null | null | null | null |
pub async fn proxy_core() {} | crates/openapi/src/routes/proxy.rs | openapi | function_signature | 7 | rust | null | null | null | null | proxy_core | null | null | null | null | null | null | null |
pub async fn evaluate_routing_rule() {} | crates/openapi/src/routes/routing.rs | openapi | function_signature | 8 | rust | null | null | null | null | evaluate_routing_rule | null | null | null | null | null | null | null |
impl Authorization {
pub async fn update_by_merchant_id_authorization_id(
conn: &PgPooledConn,
merchant_id: common_utils::id_type::MerchantId,
authorization_id: String,
authorization_update: AuthorizationUpdate,
) -> StorageResult<Self> {
match generics::generic_update_wi... | crates/diesel_models/src/query/authorization.rs | diesel_models | impl_block | 405 | rust | null | Authorization | null | impl Authorization | null | null | null | null | null | null | null | null |
pub struct NovalnetAuthType {
pub(super) product_activation_key: Secret<String>,
pub(super) payment_access_key: Secret<String>,
pub(super) tariff_id: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | 41 | rust | NovalnetAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub struct ResetTrackingIdRequest {
pub connector_id: id_type::MerchantConnectorAccountId,
pub connector: enums::Connector,
} | crates/api_models/src/connector_onboarding.rs | api_models | struct_definition | 28 | rust | ResetTrackingIdRequest | null | null | null | null | null | null | null | null | null | null | null |
impl OperationsDeriveInputExt for DeriveInput {
fn get_metadata(&self) -> syn::Result<Vec<OperationsEnumMeta>> {
helpers::get_metadata_inner("operation", &self.attrs)
}
} | crates/router_derive/src/macros/operation.rs | router_derive | impl_block | 45 | rust | null | DeriveInput | OperationsDeriveInputExt for | impl OperationsDeriveInputExt for for DeriveInput | null | null | null | null | null | null | null | null |
impl super::refunds::filters::RefundFilterAnalytics for ClickhouseClient {} | crates/analytics/src/clickhouse.rs | analytics | impl_block | 17 | rust | null | ClickhouseClient | super::refunds::filters::RefundFilterAnalytics for | impl super::refunds::filters::RefundFilterAnalytics for for ClickhouseClient | null | null | null | null | null | null | null | null |
pub struct CybersourceProcessingInfo {
business_application_id: CybersourcePayoutBusinessType,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | CybersourceProcessingInfo | null | null | null | null | null | null | null | null | null | null | null |
pub struct HashedApiKey(String); | crates/diesel_models/src/api_keys.rs | diesel_models | struct_definition | 7 | rust | HashedApiKey | null | null | null | null | null | null | null | null | null | null | null |
impl AuthorizationInterface for KafkaStore {
async fn insert_authorization(
&self,
authorization: storage::AuthorizationNew,
) -> CustomResult<storage::Authorization, errors::StorageError> {
self.diesel_store.insert_authorization(authorization).await
}
async fn find_all_authoriz... | crates/router/src/db/kafka_store.rs | router | impl_block | 242 | rust | null | KafkaStore | AuthorizationInterface for | impl AuthorizationInterface for for KafkaStore | null | null | null | null | null | null | null | null |
pub struct ExternalAuthentication; | crates/router/src/core/unified_authentication_service/types.rs | router | struct_definition | 5 | rust | ExternalAuthentication | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorCommon for Inespay {
fn id(&self) -> &'static str {
"inespay"
}
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Minor
}
fn common_get_content_type(&self) -> &'static str {
"application/json"
}
fn base_url<'a>(&self, connectors: &... | crates/hyperswitch_connectors/src/connectors/inespay.rs | hyperswitch_connectors | impl_block | 421 | rust | null | Inespay | ConnectorCommon for | impl ConnectorCommon for for Inespay | null | null | null | null | null | null | null | null |
pub async fn render_pm_collect_link(
_state: SessionState,
_merchant_context: domain::MerchantContext,
_req: payment_methods::PaymentMethodCollectLinkRenderRequest,
) -> RouterResponse<services::GenericLinkFormData> {
todo!()
} | crates/router/src/core/payment_methods.rs | router | function_signature | 56 | rust | null | null | null | null | render_pm_collect_link | null | null | null | null | null | null | null |
pub async fn tokenize_in_router_when_confirm_false_or_external_authentication<F, Req, D>(
state: &SessionState,
operation: &BoxedOperation<'_, F, Req, D>,
payment_data: &mut D,
validate_result: &operations::ValidateResult,
merchant_key_store: &domain::MerchantKeyStore,
customer: &Option<domain::... | crates/router/src/core/payments.rs | router | function_signature | 308 | rust | null | null | null | null | tokenize_in_router_when_confirm_false_or_external_authentication | null | null | null | null | null | null | null |
impl api::Refund for Gocardless {} | crates/hyperswitch_connectors/src/connectors/gocardless.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Gocardless | api::Refund for | impl api::Refund for for Gocardless | null | null | null | null | null | null | null | null |
pub async fn update_by_role_id(
conn: &PgPooledConn,
role_id: &str,
role_update: RoleUpdate,
) -> StorageResult<Self> {
generics::generic_update_with_unique_predicate_get_result::<
<Self as HasTable>::Table,
_,
_,
_,
>(
... | crates/diesel_models/src/query/role.rs | diesel_models | function_signature | 104 | rust | null | null | null | null | update_by_role_id | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/rapyd.rs
Public functions: 2
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use api_models::webhooks::IncomingWebhookEvent;
use base64::Engine;
use common_enums::enums;
use common_utils::{
consts::BASE64_ENGINE_URL_SAFE,
crypto, date_time,... | crates/hyperswitch_connectors/src/connectors/rapyd.rs#chunk0 | hyperswitch_connectors | chunk | 8,189 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentCapture for Celero {} | crates/hyperswitch_connectors/src/connectors/celero.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Celero | api::PaymentCapture for | impl api::PaymentCapture for for Celero | null | null | null | null | null | null | null | null |
pub fn headers(mut self, headers: Vec<(String, Maskable<String>) | crates/common_utils/src/request.rs | common_utils | function_signature | 16 | rust | null | null | null | null | headers | null | null | null | null | null | null | null |
pub struct NoonRevokeMandateResult {
subscription: NoonCancelSubscriptionObject,
} | crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | NoonRevokeMandateResult | null | null | null | null | null | null | null | null | null | null | null |
.to_lowercase();
let (_, sig_value) = security_header
.split_once('=')
.ok_or(errors::ConnectorError::WebhookSourceVerificationFailed)?;
hex::decode(sig_value).change_context(errors::ConnectorError::WebhookSignatureNotFound)
}
fn get_webhook_source_verificati... | crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs#chunk1 | hyperswitch_connectors | chunk | 2,211 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::Payment for Worldline {} | crates/hyperswitch_connectors/src/connectors/worldline.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Worldline | api::Payment for | impl api::Payment for for Worldline | null | null | null | null | null | null | null | null |
pub struct RedsysSyncResponse {
#[serde(rename = "@xmlns:soapenv")]
xmlns_soapenv: String,
#[serde(rename = "@xmlns:soapenc")]
xmlns_soapenc: String,
#[serde(rename = "@xmlns:xsd")]
xmlns_xsd: String,
#[serde(rename = "@xmlns:xsi")]
xmlns_xsi: String,
#[serde(rename = "header")]
... | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | struct_definition | 110 | rust | RedsysSyncResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardDetailFromLocker {
pub scheme: Option<String>,
pub issuer_country: Option<String>,
pub last4_digits: Option<String>,
#[serde(skip)]
#[schema(value_type=Option<String>)]
pub card_number: Option<CardNumber>,
#[schema(value_type=Option<String>)]
pub expiry_month: Option<mask... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 264 | rust | CardDetailFromLocker | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentCaptureRequest {
domain: String,
#[serde(rename = "tranID")]
tran_id: String,
amount: StringMajorUnit,
#[serde(rename = "RefID")]
ref_id: String,
skey: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | 56 | rust | PaymentCaptureRequest | null | null | null | null | null | null | null | null | null | null | null |
impl GetPaymentMethodDetails for DummyConnectorWallet {
fn get_name(&self) -> &'static str {
match self {
Self::GooglePay => "Google Pay",
Self::Paypal => "PayPal",
Self::WeChatPay => "WeChat Pay",
Self::MbWay => "Mb Way",
Self::AliPay => "Alipay",... | crates/router/src/routes/dummy_connector/types.rs | router | impl_block | 205 | rust | null | DummyConnectorWallet | GetPaymentMethodDetails for | impl GetPaymentMethodDetails for for DummyConnectorWallet | null | null | null | null | null | null | null | null |
pub fn is_upstream_timeout(&self) -> bool {
self == &Self::RequestTimeoutReceived
} | crates/common_enums/src/enums.rs | common_enums | function_signature | 24 | rust | null | null | null | null | is_upstream_timeout | null | null | null | null | null | null | null |
pub struct ThreeDSecureReqData {
pub force: bool,
} | crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | ThreeDSecureReqData | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/volt/transformers.rs
Public structs: 20
use common_enums::enums;
use common_utils::{id_type, pii::Email, request::Method, types::MinorUnit};
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, PaymentMethodData},
router_data::{AccessToken... | crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | hyperswitch_connectors | full_file | 4,653 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundsAnalyticsMetadata {
pub total_refund_success_rate: Option<f64>,
pub total_refund_processed_amount: Option<u64>,
pub total_refund_processed_amount_in_usd: Option<u64>,
pub total_refund_processed_count: Option<u64>,
pub total_refund_reason_count: Option<u64>,
pub total_refund_err... | crates/api_models/src/analytics.rs | api_models | struct_definition | 90 | rust | RefundsAnalyticsMetadata | null | null | null | null | null | null | null | null | null | null | null |
pub struct StaxMetaData {
pub capture_id: String,
} | crates/hyperswitch_connectors/src/connectors/stax/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | StaxMetaData | null | null | null | null | null | null | null | null | null | null | null |
pub fn validate_xendit_charge_refund(
xendit_split_payment_response: &common_types::payments::XenditChargeResponseData,
xendit_split_refund_request: &common_types::domain::XenditSplitSubMerchantData,
) -> RouterResult<Option<String>> {
match xendit_split_payment_response {
common_types::payments::Xe... | crates/router/src/core/utils/refunds_validator.rs | router | function_signature | 301 | rust | null | null | null | null | validate_xendit_charge_refund | null | null | null | null | null | null | null |
pub struct ContextValue<'a> {
pub value: CtxValueKind<'a>,
pub metadata: &'a Metadata,
} | crates/euclid/src/dssa/types.rs | euclid | struct_definition | 28 | rust | ContextValue | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Nexinets {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&NEXINETS_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*NEXINETS_SUPPORTED_PAYMENT_METHODS)
}
fn get_s... | crates/hyperswitch_connectors/src/connectors/nexinets.rs | hyperswitch_connectors | impl_block | 112 | rust | null | Nexinets | ConnectorSpecifications for | impl ConnectorSpecifications for for Nexinets | null | null | null | null | null | null | null | null |
pub trait GetTracker<F: Clone, D, R>: Send {
#[cfg(feature = "v1")]
#[allow(clippy::too_many_arguments)]
async fn get_trackers<'a>(
&'a self,
state: &'a SessionState,
payment_id: &api::PaymentIdType,
request: &R,
merchant_context: &domain::MerchantContext,
aut... | crates/router/src/core/payments/operations.rs | router | trait_definition | 293 | rust | null | null | GetTracker | null | null | 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.