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 async fn payouts_list_by_filter_profile(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<payout_types::PayoutListFilterConstraints>,
) -> HttpResponse {
let flow = Flow::PayoutsList;
let payload = json_payload.into_inner();
Box::pin(api::server_wrap(
flow,
... | crates/router/src/routes/payouts.rs | router | function_signature | 243 | rust | null | null | null | null | payouts_list_by_filter_profile | null | null | null | null | null | null | null |
pub async fn dummy_connector_refund(
state: web::Data<app::AppState>,
req: actix_web::HttpRequest,
json_payload: web::Json<types::DummyConnectorRefundRequest>,
path: web::Path<common_utils::id_type::PaymentId>,
) -> impl actix_web::Responder {
let flow = types::Flow::DummyRefundCreate;
let mut p... | crates/router/src/routes/dummy_connector.rs | router | function_signature | 167 | rust | null | null | null | null | dummy_connector_refund | null | null | null | null | null | null | null |
File: crates/payment_methods/src/configs/settings.rs
Public structs: 15
use std::collections::{HashMap, HashSet};
use api_models::{enums, payment_methods::RequiredFieldInfo};
use common_utils::errors::CustomResult;
use hyperswitch_interfaces::secrets_interface::{
secret_handler::SecretsHandler,
secret_state:... | crates/payment_methods/src/configs/settings.rs | payment_methods | full_file | 1,185 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn read_config(state: SessionState, key: &str) -> RouterResponse<api::Config> {
let store = state.store.as_ref();
let config = store
.find_config_by_key(key)
.await
.to_not_found_response(errors::ApiErrorResponse::ConfigNotFound)?;
Ok(ApplicationResponse::Json(config.foreig... | crates/router/src/core/configs.rs | router | function_signature | 77 | rust | null | null | null | null | read_config | null | null | null | null | null | null | null |
pub struct DeclinedPaymentDetails {
authorization_error: AuthorizationError,
} | crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs | hyperswitch_connectors | struct_definition | 15 | rust | DeclinedPaymentDetails | null | null | null | null | null | null | null | null | null | null | null |
pub async fn payment_status(
state: web::Data<app::AppState>,
req: actix_web::HttpRequest,
payload: web::Query<api_models::payments::PaymentsStatusRequest>,
path: web::Path<common_utils::id_type::GlobalPaymentId>,
) -> impl Responder {
use hyperswitch_domain_models::payments::PaymentStatusData;
... | crates/router/src/routes/payments.rs | router | function_signature | 538 | rust | null | null | null | null | payment_status | null | null | null | null | null | null | null |
pub struct PoQuote; | crates/hyperswitch_domain_models/src/router_flow_types/payouts.rs | hyperswitch_domain_models | struct_definition | 5 | rust | PoQuote | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_schedule_time_based_on_retry_type(
&self,
state: &SessionState,
merchant_id: &id_type::MerchantId,
retry_count: i32,
payment_attempt: &PaymentAttempt,
payment_intent: &PaymentIntent,
is_hard_decline: bool,
) -> Option<time::PrimitiveDateTime> ... | crates/router/src/types/storage/revenue_recovery.rs | router | function_signature | 218 | rust | null | null | null | null | get_schedule_time_based_on_retry_type | null | null | null | null | null | null | null |
pub fn server(state: AppState) -> Scope {
web::scope("/account/{account_id}/profile")
.app_data(web::Data::new(state))
.service(
web::resource("").route(web::get().to(profiles::profiles_list_at_profile_level)),
)
.service(
web::reso... | crates/router/src/routes/app.rs | router | function_signature | 87 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
pub async fn payments_connector_session(
state: web::Data<app::AppState>,
req: actix_web::HttpRequest,
json_payload: web::Json<payment_types::PaymentsSessionRequest>,
) -> impl Responder {
let flow = Flow::PaymentsSessionToken;
let payload = json_payload.into_inner();
let header_payload = match... | crates/router/src/routes/payments.rs | router | function_signature | 352 | rust | null | null | null | null | payments_connector_session | null | null | null | null | null | null | null |
pub async fn retrieve_connector(
state: SessionState,
merchant_context: domain::MerchantContext,
id: id_type::MerchantConnectorAccountId,
) -> RouterResponse<api_models::admin::MerchantConnectorResponse> {
let store = state.store.as_ref();
let key_manager_state = &(&state).into();
let merchant_... | crates/router/src/core/admin.rs | router | function_signature | 254 | rust | null | null | null | null | retrieve_connector | null | null | null | null | null | null | null |
impl CardDetailsPaymentMethod {
pub fn to_card_details_from_locker(self) -> payment_methods::CardDetailFromLocker {
payment_methods::CardDetailFromLocker {
card_number: None,
card_holder_name: self.card_holder_name.clone(),
card_issuer: self.card_issuer.clone(),
... | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | impl_block | 231 | rust | null | CardDetailsPaymentMethod | null | impl CardDetailsPaymentMethod | null | null | null | null | null | null | null | null |
pub struct Phonepe {
amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/phonepe.rs | hyperswitch_connectors | struct_definition | 27 | rust | Phonepe | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardSource {
#[serde(rename = "type")]
pub source_type: CheckoutSourceTypes,
pub number: cards::CardNumber,
pub expiry_month: Secret<String>,
pub expiry_year: Secret<String>,
pub cvv: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs | hyperswitch_connectors | struct_definition | 56 | rust | CardSource | null | null | null | null | null | null | null | null | null | null | null |
pub async fn store_card_in_locker(
&self,
card: &domain::CardDetail,
customer_id: &id_type::CustomerId,
) -> RouterResult<pm_transformers::StoreCardRespPayload> {
let merchant_id = self.merchant_account.get_id();
let locker_req =
pm_transformers::StoreLockerReq::L... | crates/router/src/core/payment_methods/tokenize/card_executor.rs | router | function_signature | 316 | rust | null | null | null | null | store_card_in_locker | null | null | null | null | null | null | null |
pub struct RSync; | crates/hyperswitch_domain_models/src/router_flow_types/refunds.rs | hyperswitch_domain_models | struct_definition | 5 | rust | RSync | null | null | null | null | null | null | null | null | null | null | null |
pub struct CheckoutMeta {
pub psync_flow: CheckoutPaymentIntent,
} | crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | CheckoutMeta | null | null | null | null | null | null | null | null | null | null | null |
pub struct ChangePasswordRequest {
pub new_password: Secret<String>,
pub old_password: Secret<String>,
} | crates/api_models/src/user.rs | api_models | struct_definition | 23 | rust | ChangePasswordRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/events/audit_events.rs
Public functions: 1
Public structs: 1
use api_models::payments::Amount;
use common_utils::types::MinorUnit;
use diesel_models::fraud_check::FraudCheck;
use events::{Event, EventInfo};
use serde::Serialize;
use time::PrimitiveDateTime;
#[derive(Debug, Clone, Serialize)]
... | crates/router/src/events/audit_events.rs | router | full_file | 708 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn create_specific_dynamic_routing_setup(
state: &SessionState,
key_store: domain::MerchantKeyStore,
business_profile: domain::Profile,
feature_to_enable: routing_types::DynamicRoutingFeatures,
mut dynamic_routing_algo_ref: routing_types::DynamicRoutingAlgorithmRef,
dynamic_routing_typ... | crates/router/src/core/routing/helpers.rs | router | function_signature | 763 | rust | null | null | null | null | create_specific_dynamic_routing_setup | null | null | null | null | null | null | null |
impl DynamicRoutingAlgoAccessor for SuccessBasedAlgorithm {
fn get_algorithm_id_with_timestamp(
self,
) -> DynamicAlgorithmWithTimestamp<common_utils::id_type::RoutingId> {
self.algorithm_id_with_timestamp
}
fn get_enabled_features(&mut self) -> &mut DynamicRoutingFeatures {
&mut... | crates/api_models/src/routing.rs | api_models | impl_block | 75 | rust | null | SuccessBasedAlgorithm | DynamicRoutingAlgoAccessor for | impl DynamicRoutingAlgoAccessor for for SuccessBasedAlgorithm | null | null | null | null | null | null | null | null |
pub trait HealthCheckInterface {
async fn health_check_db(&self) -> CustomResult<(), HealthCheckDBError>;
async fn health_check_redis(&self, conf: &Settings) -> CustomResult<(), HealthCheckRedisError>;
} | crates/drainer/src/health_check.rs | drainer | trait_definition | 48 | rust | null | null | HealthCheckInterface | null | null | null | null | null | null | null | null | null |
pub fn is_network_token_payment_method_data(&self) -> bool {
matches!(self, Self::NetworkToken(_))
} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | function_signature | 27 | rust | null | null | null | null | is_network_token_payment_method_data | null | null | null | null | null | null | null |
File: crates/router/src/core/payments/operations/payment_confirm_intent.rs
Public structs: 1
use api_models::{enums::FrmSuggestion, payments::PaymentsConfirmIntentRequest};
use async_trait::async_trait;
use common_utils::{ext_traits::Encode, fp_utils::when, id_type, types::keymanager::ToEncryptable};
use error_stack:... | crates/router/src/core/payments/operations/payment_confirm_intent.rs | router | full_file | 5,062 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct FieldError {
pub field: String,
pub error: String,
} | crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | FieldError | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.OutgoingWebhookRequestContent
{
"type": "object",
"description": "The request information (headers and body) sent in the webhook.",
"required": [
"body",
"headers"
],
"properties": {
"body": {
"type": "string",
"description": "The request body sen... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 206 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"OutgoingWebhookRequestContent"
] | null | null | null | null |
pub struct KafkaFraudCheck<'a> {
pub frm_id: &'a String,
pub payment_id: &'a common_utils::id_type::PaymentId,
pub merchant_id: &'a common_utils::id_type::MerchantId,
pub attempt_id: &'a String,
#[serde(with = "time::serde::timestamp")]
pub created_at: OffsetDateTime,
pub frm_name: &'a Strin... | crates/router/src/services/kafka/fraud_check.rs | router | struct_definition | 269 | rust | KafkaFraudCheck | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_token_based_on_retry_type(
state: &SessionState,
connector_customer_id: &str,
retry_algorithm_type: RevenueRecoveryAlgorithmType,
last_token_used: Option<&str>,
) -> CustomResult<Option<PaymentProcessorTokenStatus>, errors::StorageError> {
let mut token = Non... | crates/router/src/types/storage/revenue_recovery_redis_operation.rs | router | function_signature | 268 | rust | null | null | null | null | get_token_based_on_retry_type | null | null | null | null | null | null | null |
pub struct ChatResponse {
pub response: Secret<serde_json::Value>,
pub merchant_id: id_type::MerchantId,
pub status: String,
#[serde(skip_serializing)]
pub query_executed: Option<Secret<String>>,
#[serde(skip_serializing)]
pub row_count: Option<i32>,
} | crates/api_models/src/chat.rs | api_models | struct_definition | 69 | rust | ChatResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct Item {
pub name: String,
pub unit_price: FloatMajorUnit,
pub description: Option<String>,
pub quantity: i64,
} | crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs | hyperswitch_connectors | struct_definition | 35 | rust | Item | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/core/webhooks/outgoing.rs
use std::collections::HashMap;
use api_models::{
webhook_events::{OutgoingWebhookRequestContent, OutgoingWebhookResponseContent},
webhooks,
};
use common_utils::{
ext_traits::{Encode, StringExt},
request::RequestContent,
type_name,
types::keyma... | crates/router/src/core/webhooks/outgoing.rs | router | full_file | 7,454 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Nomupay {} | crates/hyperswitch_connectors/src/connectors/nomupay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Nomupay | api::PaymentSession for | impl api::PaymentSession for for Nomupay | null | null | null | null | null | null | null | null |
/// Construct of `FormattingLayer with implicit default entries.
pub fn new_with_implicit_entries(
service: &str,
dst_writer: W,
default_fields: HashMap<String, Value>,
formatter: F,
) -> error_stack::Result<Self, ConfigError> {
let pid = std::process::id();
let h... | crates/router_env/src/logger/formatter.rs | router_env | function_signature | 265 | rust | null | null | null | null | new_with_implicit_entries | null | null | null | null | null | null | null |
pub struct AuthenticationSyncPostUpdateRequest {
/// Authentication ID for the authentication
#[serde(skip_deserializing)]
pub authentication_id: id_type::AuthenticationId,
} | crates/api_models/src/authentication.rs | api_models | struct_definition | 36 | rust | AuthenticationSyncPostUpdateRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct InespayRSyncResponseData {
cod_status: InespayRSyncStatus,
status_desc: String,
refund_id: String,
} | crates/hyperswitch_connectors/src/connectors/inespay/transformers.rs | hyperswitch_connectors | struct_definition | 34 | rust | InespayRSyncResponseData | null | null | null | null | null | null | null | null | null | null | null |
impl Dlocal {
pub fn new() -> &'static Self {
&Self {
amount_convertor: &MinorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/dlocal.rs | hyperswitch_connectors | impl_block | 34 | rust | null | Dlocal | null | impl Dlocal | null | null | null | null | null | null | null | null |
pub fn get_payment_method_billing(&self) -> Option<&Address> {
self.unified_payment_method_billing.as_ref()
} | crates/hyperswitch_domain_models/src/payment_address.rs | hyperswitch_domain_models | function_signature | 27 | rust | null | null | null | null | get_payment_method_billing | null | null | null | null | null | null | null |
- **api_models:** Follow naming convention for wallets & paylater payment method data enums ([#1338](https://github.com/juspay/hyperswitch/pull/1338)) ([`6c0d136`](https://github.com/juspay/hyperswitch/commit/6c0d136cee106fc25fbcf63e4bbc01b28baa1519))
- **auth_type:** Updated auth type in `update tracker` and also cha... | CHANGELOG.md#chunk60 | null | doc_chunk | 8,145 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Powertranz {} | crates/hyperswitch_connectors/src/connectors/powertranz.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Powertranz | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Powertranz | null | null | null | null | null | null | null | null |
pub fn get_name(&self) -> Secret<String> {
self.0.name.clone()
} | crates/router/src/types/domain/user.rs | router | function_signature | 21 | rust | null | null | null | null | get_name | null | null | null | null | null | null | null |
impl ConnectorValidation for Fiuu {
fn validate_mandate_payment(
&self,
pm_type: Option<PaymentMethodType>,
pm_data: PaymentMethodData,
) -> CustomResult<(), errors::ConnectorError> {
let mandate_supported_pmd: HashSet<PaymentMethodDataType> =
HashSet::from([PaymentMe... | crates/hyperswitch_connectors/src/connectors/fiuu.rs | hyperswitch_connectors | impl_block | 100 | rust | null | Fiuu | ConnectorValidation for | impl ConnectorValidation for for Fiuu | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMajorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/wellsfargo.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct PayLaterRequest {
flow: Flow,
payment_method: PaymentMethod,
} | crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | PayLaterRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn find_by_algorithm_id_merchant_id(
conn: &PgPooledConn,
algorithm_id: &common_utils::id_type::RoutingId,
merchant_id: &common_utils::id_type::MerchantId,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
... | crates/diesel_models/src/query/routing_algorithm.rs | diesel_models | function_signature | 116 | rust | null | null | null | null | find_by_algorithm_id_merchant_id | null | null | null | null | null | null | null |
pub async fn get_individual_surcharge_detail_from_redis(
state: &SessionState,
surcharge_key: SurchargeKey,
payment_attempt_id: &str,
) -> CustomResult<SurchargeDetails, RedisError> {
let redis_conn = state
.store
.get_redis_conn()
.attach_printabl... | crates/router/src/core/payments/types.rs | router | function_signature | 193 | rust | null | null | null | null | get_individual_surcharge_detail_from_redis | null | null | null | null | null | null | null |
pub struct NovalnetRefundSyncResponse {
result: ResultData,
transaction: Option<NovalnetSyncResponseTransactionData>,
} | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | 30 | rust | NovalnetRefundSyncResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct MifinityConnectorMetadataObject {
pub brand_id: Secret<String>,
pub destination_account_number: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | MifinityConnectorMetadataObject | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Vgs {} | crates/hyperswitch_connectors/src/connectors/vgs.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Vgs | api::PaymentSession for | impl api::PaymentSession for for Vgs | null | null | null | null | null | null | null | null |
pub async fn sync_refund_with_gateway_workflow(
state: &SessionState,
refund_tracker: &storage::ProcessTracker,
) -> Result<(), errors::ProcessTrackerError> {
let key_manager_state = &state.into();
let refund_core = serde_json::from_value::<diesel_refund::RefundCoreWorkflow>(
refund_tracker.trac... | crates/router/src/core/refunds.rs | router | function_signature | 449 | rust | null | null | null | null | sync_refund_with_gateway_workflow | null | null | null | null | null | null | null |
pub fn update_storage_scheme(&mut self, storage_scheme: MerchantStorageScheme) {
self.updated_by = Some(storage_scheme.to_string());
} | crates/diesel_models/src/mandate.rs | diesel_models | function_signature | 30 | rust | null | null | null | null | update_storage_scheme | null | null | null | null | null | null | null |
impl UserRoleNew {
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<UserRole> {
generics::generic_insert(conn, self).await
}
} | crates/diesel_models/src/query/user_role.rs | diesel_models | impl_block | 40 | rust | null | UserRoleNew | null | impl UserRoleNew | null | null | null | null | null | null | null | null |
impl Capturable for PaymentsSessionData {} | crates/router/src/types.rs | router | impl_block | 8 | rust | null | PaymentsSessionData | Capturable for | impl Capturable for for PaymentsSessionData | null | null | null | null | null | null | null | null |
pub async fn delete_theme(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<String>,
) -> HttpResponse {
let flow = Flow::DeleteTheme;
let theme_id = path.into_inner();
Box::pin(api::server_wrap(
flow,
state,
&req,
theme_id,
|state, _, theme_... | crates/router/src/routes/user/theme.rs | router | function_signature | 119 | rust | null | null | null | null | delete_theme | null | null | null | null | null | null | null |
pub struct StripeBillingDetails {
pub address: Option<payments::AddressDetails>,
pub email: Option<pii::Email>,
pub name: Option<String>,
pub phone: Option<pii::Secret<String>>,
} | crates/router/src/compatibility/stripe/setup_intents/types.rs | router | struct_definition | 47 | rust | StripeBillingDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymeRedirectResponseData {
meta_data: String,
} | crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | PaymeRedirectResponseData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn customers_retrieve() {} | crates/openapi/src/routes/customers.rs | openapi | function_signature | 8 | rust | null | null | null | null | customers_retrieve | null | null | null | null | null | null | null |
pub fn update_algorithm_id(&mut self, new_id: common_utils::id_type::RoutingId) {
self.algorithm_id = Some(new_id);
self.timestamp = common_utils::date_time::now_unix_timestamp();
} | crates/api_models/src/routing.rs | api_models | function_signature | 47 | rust | null | null | null | null | update_algorithm_id | null | null | null | null | null | null | null |
File: crates/router/src/db/user/theme.rs
use common_utils::types::user::ThemeLineage;
use diesel_models::user::theme::{self as storage, ThemeUpdate};
use error_stack::report;
use super::MockDb;
use crate::{
connection,
core::errors::{self, CustomResult},
services::Store,
};
#[async_trait::async_trait]
pu... | crates/router/src/db/user/theme.rs | router | full_file | 2,856 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Deref for DisputePollingIntervalInHours {
type Target = i32;
fn deref(&self) -> &Self::Target {
&self.0
}
} | crates/common_types/src/primitive_wrappers.rs | common_types | impl_block | 43 | rust | null | DisputePollingIntervalInHours | Deref for | impl Deref for for DisputePollingIntervalInHours | null | null | null | null | null | null | null | null |
pub struct PaymentMethodsState {
pub store: Box<dyn PaymentMethodsStorageInterface>,
pub key_store: Option<merchant_key_store::MerchantKeyStore>,
pub key_manager_state: keymanager::KeyManagerState,
} | crates/payment_methods/src/state.rs | payment_methods | struct_definition | 46 | rust | PaymentMethodsState | null | null | null | null | null | null | null | null | null | null | null |
pub struct Defend; | crates/hyperswitch_domain_models/src/router_flow_types/dispute.rs | hyperswitch_domain_models | struct_definition | 5 | rust | Defend | null | null | null | null | null | null | null | null | null | null | null |
/// set routing approach
pub fn set_routing_approach(&mut self, approach: String) {
self.routing_approach = Some(approach);
} | crates/hyperswitch_interfaces/src/events/routing_api_logs.rs | hyperswitch_interfaces | function_signature | 33 | rust | null | null | null | null | set_routing_approach | null | null | null | null | null | null | null |
pub struct BillingConnectorPaymentsSync; | crates/hyperswitch_domain_models/src/router_flow_types/revenue_recovery.rs | hyperswitch_domain_models | struct_definition | 7 | rust | BillingConnectorPaymentsSync | null | null | null | null | null | null | null | null | null | null | null |
pub struct SdkSecretInfo {
pub display: Secret<String>,
pub payment: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | SdkSecretInfo | null | null | null | null | null | null | null | null | null | null | null |
pub struct BankAccountDetailsSepa {
pub iban: Secret<String>,
pub bic: Secret<String>,
} | crates/pm_auth/src/types.rs | pm_auth | struct_definition | 24 | rust | BankAccountDetailsSepa | null | null | null | null | null | null | null | null | null | null | null |
pub async fn default_service_405<E>(req: ServiceRequest) -> Result<ServiceResponse, E> {
// Ok(req.into_response(ApiErrorResponse::InvalidHttpMethod.error_response()))
// } | crates/router/src/core/errors/error_handlers.rs | router | function_signature | 41 | rust | null | null | null | null | default_service_405 | null | null | null | null | null | null | null |
impl api::PaymentsPreProcessing for Xendit {} | crates/hyperswitch_connectors/src/connectors/xendit.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Xendit | api::PaymentsPreProcessing for | impl api::PaymentsPreProcessing for for Xendit | null | null | null | null | null | null | null | null |
pub fn get_payment_method_type(&self) -> Option<storage_enums::PaymentMethodType> {
// TODO: check if we can fix this
Some(self.payment_method_subtype)
} | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | function_signature | 41 | rust | null | null | null | null | get_payment_method_type | null | null | null | null | null | null | null |
pub struct BlackhawknetworkErrorResponse {
pub error: String,
pub error_description: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/blackhawknetwork/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | BlackhawknetworkErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundSync for Thunes {} | crates/hyperswitch_connectors/src/connectors/thunes.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Thunes | api::RefundSync for | impl api::RefundSync for for Thunes | null | null | null | null | null | null | null | null |
impl Hash for RefundMetricsBucketIdentifier {
fn hash<H: Hasher>(&self, state: &mut H) {
self.currency.hash(state);
self.refund_status.hash(state);
self.connector.hash(state);
self.refund_type.hash(state);
self.profile_id.hash(state);
self.refund_reason.hash(state);
... | crates/api_models/src/analytics/refunds.rs | api_models | impl_block | 88 | rust | null | RefundMetricsBucketIdentifier | Hash for | impl Hash for for RefundMetricsBucketIdentifier | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMinorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/thunes.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct Avs {
code: Option<String>,
code_raw: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | Avs | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::VolumeSplitOnRoutingType;
let routing_info = api_models::routing::RoutingVolumeSplit {
routing_type: api_models::routing::RoutingType::Dynamic,
split: query.into_inner().split,
};
let payload = api_models::routing::RoutingVolumeSplitWrapper {
rou... | crates/router/src/routes/routing.rs | router | impl_block | 288 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct SyncIntegrityObject {
/// Sync amount
pub amount: Option<MinorUnit>,
/// Sync currency
pub currency: Option<storage_enums::Currency>,
} | crates/hyperswitch_domain_models/src/router_request_types.rs | hyperswitch_domain_models | struct_definition | 39 | rust | SyncIntegrityObject | null | null | null | null | null | null | null | null | null | null | null |
pub struct ThreedsecureioAuthType {
pub(super) api_key: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | ThreedsecureioAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub trait OutgoingWebhookLogsFilterAnalytics: LoadRow<OutgoingWebhookLogsResult> {} | crates/analytics/src/outgoing_webhook_event/events.rs | analytics | trait_definition | 21 | rust | null | null | OutgoingWebhookLogsFilterAnalytics | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Trustpayments {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&TRUSTPAYMENTS_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*TRUSTPAYMENTS_SUPPORTED_PAYMENT_METHODS)
... | crates/hyperswitch_connectors/src/connectors/trustpayments.rs | hyperswitch_connectors | impl_block | 111 | rust | null | Trustpayments | ConnectorSpecifications for | impl ConnectorSpecifications for for Trustpayments | null | null | null | null | null | null | null | null |
pub trait CommonStorageInterface:
StorageInterface
+ GlobalStorageInterface
+ AccountsStorageInterface
+ PaymentMethodsStorageInterface
{
fn get_storage_interface(&self) -> Box<dyn StorageInterface>;
fn get_global_storage_interface(&self) -> Box<dyn GlobalStorageInterface>;
fn get_accounts_s... | crates/router/src/db.rs | router | trait_definition | 77 | rust | null | null | CommonStorageInterface | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs
Public functions: 18
Public structs: 84
use std::str::FromStr;
#[cfg(feature = "payouts")]
use api_models::payouts::{self, PayoutMethodData};
use api_models::{
enums,
payments::{self, PollConfig, QrCodeInformation, VoucherNextStepData}... | crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs#chunk0 | hyperswitch_connectors | chunk | 8,189 | null | null | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/customers/customers--retrieve.mdx
# Type: Doc File
---
openapi: get /customers/{customer_id}
--- | api-reference/v1/customers/customers--retrieve.mdx | null | doc_file | 33 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ErrorResponse {
pub error: ErrorData,
} | crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs | hyperswitch_connectors | struct_definition | 12 | rust | ErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Multisafepay {} | crates/hyperswitch_connectors/src/connectors/multisafepay.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Multisafepay | api::PaymentVoid for | impl api::PaymentVoid for for Multisafepay | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/dwolla.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use base64::engine::Engine;
use common_enums::enums;
use common_utils::{
consts::BASE64_ENGINE,
crypto,
errors::CustomResult,
ext_traits::{ByteSliceExt, ... | crates/hyperswitch_connectors/src/connectors/dwolla.rs | hyperswitch_connectors | full_file | 7,482 | null | null | null | null | null | null | null | null | null | null | null | null | null |
- - -
## 2024.11.07.0
### Features
- **analytics:** Implement currency conversion to power multi-currency aggregation ([#6418](https://github.com/juspay/hyperswitch/pull/6418)) ([`01c5216`](https://github.com/juspay/hyperswitch/commit/01c5216fdd6f1d841082868cccea6054b64e9e07))
### Bug Fixes
- **core:** PMD Not Get... | CHANGELOG.md#chunk19 | null | doc_chunk | 8,096 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct OrgAuthenticationMethodUpdateInternal {
pub private_config: Option<Encryption>,
pub public_config: Option<serde_json::Value>,
pub last_modified_at: PrimitiveDateTime,
pub email_domain: Option<String>,
} | crates/diesel_models/src/user_authentication_method.rs | diesel_models | struct_definition | 47 | rust | OrgAuthenticationMethodUpdateInternal | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/routes/authentication.rs
Public functions: 5
use actix_web::{web, HttpRequest, Responder};
use api_models::authentication::{AuthenticationAuthenticateRequest, AuthenticationCreateRequest};
#[cfg(feature = "v1")]
use api_models::authentication::{
AuthenticationEligibilityRequest, Authentica... | crates/router/src/routes/authentication.rs | router | full_file | 1,518 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundSync for Authorizedotnet {} | crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Authorizedotnet | api::RefundSync for | impl api::RefundSync for for Authorizedotnet | null | null | null | null | null | null | null | null |
pub async fn get_vault_data(
&self,
state: &SessionState,
merchant_context: domain::MerchantContext,
) -> RouterResult<Value> {
match self {
Self::PaymentMethodRecord(_) => {
let vault_resp = vault::retrieve_payment_method_from_vault_internal(
... | crates/router/src/core/proxy/utils.rs | router | function_signature | 273 | rust | null | null | null | null | get_vault_data | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Mpgs {} | crates/hyperswitch_connectors/src/connectors/mpgs.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Mpgs | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Mpgs | null | null | null | null | null | null | null | null |
pub struct PaymentMethodSessionConfirmRequest {
/// The payment method type
#[schema(value_type = PaymentMethod, example = "card")]
pub payment_method_type: common_enums::PaymentMethod,
/// The payment method subtype
#[schema(value_type = PaymentMethodType, example = "google_pay")]
pub payment_... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 160 | rust | PaymentMethodSessionConfirmRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn delete_merchant_account(
state: web::Data<AppState>,
req: HttpRequest,
mid: web::Path<common_utils::id_type::MerchantId>,
) -> HttpResponse {
let flow = Flow::MerchantsAccountDelete;
let mid = mid.into_inner();
let payload = web::Json(admin::MerchantId { merchant_id: mid }).into_in... | crates/router/src/routes/admin.rs | router | function_signature | 147 | rust | null | null | null | null | delete_merchant_account | null | null | null | null | null | null | null |
File: crates/api_models/src/open_router.rs
Public functions: 6
Public structs: 23
use std::{collections::HashMap, fmt::Debug};
use common_utils::{errors, id_type, types::MinorUnit};
pub use euclid::{
dssa::types::EuclidAnalysable,
frontend::{
ast,
dir::{DirKeyKind, EuclidDirFilter},
},
}... | crates/api_models/src/open_router.rs | api_models | full_file | 3,079 | null | null | null | null | null | null | null | null | null | null | null | null | null |
request
.business_sub_label
.clone()
.map(|bsl| payment_attempt.business_sub_label.replace(bsl));
request
.payment_method_type
.map(|pmt| payment_attempt.payment_method_type.replace(pmt));
request
.payment_experience
... | crates/router/src/core/payments/operations/payment_update.rs#chunk1 | router | chunk | 323 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct AciCaptureResultDetails {
extended_description: String,
#[serde(rename = "clearingInstituteName")]
clearing_institute_name: String,
connector_tx_id1: String,
connector_tx_id3: String,
connector_tx_id2: String,
acquirer_response: String,
} | crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | hyperswitch_connectors | struct_definition | 66 | rust | AciCaptureResultDetails | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/account/{account_id}/connectors/{merchant_connector_id}"
{
"get": {
"tags": [
"Merchant Connector Account"
],
"summary": "Merchant Connector - Retrieve",
"description": "Retrieves details of a Connector account",
"operationId": "Retrieve a Merchant Connector",
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 1,032 | .json | null | null | null | null | null | openapi_spec | paths | [
"/account/{account_id}/connectors/{merchant_connector_id}"
] | null | null | null | null |
pub fn set_offset_n_count(&mut self, offset: i64, count: i64) -> QueryResult<()> {
self.offset = Some(offset);
self.count = Some(count);
Ok(())
} | crates/analytics/src/opensearch.rs | analytics | function_signature | 46 | rust | null | null | null | null | set_offset_n_count | null | null | null | null | null | null | null |
impl ConnectorCommon for Payeezy {
fn id(&self) -> &'static str {
"payeezy"
}
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Base
}
fn common_get_content_type(&self) -> &'static str {
"application/json"
}
fn base_url<'a>(&self, connectors: &'... | crates/hyperswitch_connectors/src/connectors/payeezy.rs | hyperswitch_connectors | impl_block | 332 | rust | null | Payeezy | ConnectorCommon for | impl ConnectorCommon for for Payeezy | null | null | null | null | null | null | null | null |
pub struct CoingatePaymentsResponse {
status: CoingatePaymentStatus,
id: i64,
payment_url: Option<String>,
order_id: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs | hyperswitch_connectors | struct_definition | 39 | rust | CoingatePaymentsResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn trigger_payments_webhook<F, Op, D>(
merchant_account: domain::MerchantAccount,
business_profile: domain::Profile,
key_store: &domain::MerchantKeyStore,
payment_data: D,
customer: Option<domain::Customer>,
state: &SessionState,
operation: Op,
) -> RouterResult<()>
where
F: Se... | crates/router/src/utils.rs | router | function_signature | 108 | rust | null | null | null | null | trigger_payments_webhook | 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.