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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 GetAuthEventMetricRequest");
let flow = AnalyticsFlow::Get... | crates/router/src/analytics.rs | router | impl_block | 236 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
impl api::Refund for Tsys {} | crates/hyperswitch_connectors/src/connectors/tsys.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Tsys | api::Refund for | impl api::Refund for for Tsys | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.GpayAllowedPaymentMethods
{
"type": "object",
"required": [
"type",
"parameters",
"tokenization_specification"
],
"properties": {
"type": {
"type": "string",
"description": "The type of payment method"
},
"parameters": {
"$ref": "#... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 124 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"GpayAllowedPaymentMethods"
] | null | null | null | null |
pub trait PayoutIndividualDetailsExt {
type Error;
fn get_external_account_account_holder_type(&self) -> Result<String, Self::Error>;
} | crates/router/src/types.rs | router | trait_definition | 32 | rust | null | null | PayoutIndividualDetailsExt | null | null | null | null | null | null | null | null | null |
File: crates/router/src/types/pm_auth.rs
use std::str::FromStr;
use error_stack::ResultExt;
use pm_auth::{
connector::plaid,
types::{
self as pm_auth_types,
api::{BoxedPaymentAuthConnector, PaymentAuthConnectorData},
},
};
use crate::core::{
errors::{self, ApiErrorResponse},
pm_au... | crates/router/src/types/pm_auth.rs | router | full_file | 277 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::UasAuthentication for Juspaythreedsserver {} | crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs | hyperswitch_connectors | impl_block | 15 | rust | null | Juspaythreedsserver | api::UasAuthentication for | impl api::UasAuthentication for for Juspaythreedsserver | null | null | null | null | null | null | null | null |
impl utils::MultipleCaptureSyncResponse for HelcimPaymentsResponse {
// fn get_connector_capture_id(&self) -> String {
// self.transaction_id.to_string()
// }
// fn get_capture_attempt_status(&self) -> diesel_models::enums::AttemptStatus {
// enums::AttemptStatus::from(self.to_owned())
// ... | crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | hyperswitch_connectors | impl_block | 141 | rust | null | HelcimPaymentsResponse | utils::MultipleCaptureSyncResponse for | impl utils::MultipleCaptureSyncResponse for for HelcimPaymentsResponse | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Mpgs {
fn validate_mandate_payment(
&self,
_pm_type: Option<enums::PaymentMethodType>,
pm_data: PaymentMethodData,
) -> CustomResult<(), errors::ConnectorError> {
match pm_data {
PaymentMethodData::Card(_) => Err(errors::ConnectorError::No... | crates/hyperswitch_connectors/src/connectors/mpgs.rs | hyperswitch_connectors | impl_block | 180 | rust | null | Mpgs | ConnectorValidation for | impl ConnectorValidation for for Mpgs | null | null | null | null | null | null | null | null |
pub struct Fulfillments {
pub shipment_id: String,
pub products: Option<Vec<Product>>,
pub destination: Destination,
pub fulfillment_method: Option<String>,
pub carrier: Option<String>,
pub shipment_status: Option<String>,
pub tracking_urls: Option<Vec<String>>,
pub tracking_numbers: Opt... | crates/hyperswitch_connectors/src/connectors/signifyd/transformers/api.rs | hyperswitch_connectors | struct_definition | 77 | rust | Fulfillments | null | null | null | null | null | null | null | null | null | null | null |
pub struct ProfileAcquirer; | crates/router/src/routes/app.rs | router | struct_definition | 6 | rust | ProfileAcquirer | null | null | null | null | null | null | null | null | null | null | null |
impl PaymentRedirectFlow for PaymentRedirectCompleteAuthorize {
type PaymentFlowResponse = router_types::RedirectPaymentFlowResponse;
#[allow(clippy::too_many_arguments)]
async fn call_payment_flow(
&self,
state: &SessionState,
req_state: ReqState,
merchant_context: domain::... | crates/router/src/core/payments.rs | router | impl_block | 1,394 | rust | null | PaymentRedirectCompleteAuthorize | PaymentRedirectFlow for | impl PaymentRedirectFlow for for PaymentRedirectCompleteAuthorize | null | null | null | null | null | null | null | null |
pub async fn accept_invite_from_email(
state: web::Data<AppState>,
req: HttpRequest,
payload: web::Json<user_api::AcceptInviteFromEmailRequest>,
) -> HttpResponse {
let flow = Flow::AcceptInviteFromEmail;
Box::pin(api::server_wrap(
flow.clone(),
state,
&req,
payload.i... | crates/router/src/routes/user.rs | router | function_signature | 145 | rust | null | null | null | null | accept_invite_from_email | null | null | null | null | null | null | null |
impl api::PaymentCapture for Tokenio {} | crates/hyperswitch_connectors/src/connectors/tokenio.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Tokenio | api::PaymentCapture for | impl api::PaymentCapture for for Tokenio | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for HyperswitchVault {} | crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs | hyperswitch_connectors | impl_block | 9 | rust | null | HyperswitchVault | ConnectorSpecifications for | impl ConnectorSpecifications for for HyperswitchVault | null | null | null | null | null | null | null | null |
pub struct ExternalVaultInsertFlow; | crates/hyperswitch_domain_models/src/router_flow_types/vault.rs | hyperswitch_domain_models | struct_definition | 7 | rust | ExternalVaultInsertFlow | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_scope(&self) -> RoleScope {
self.scope
} | crates/router/src/services/authorization/roles.rs | router | function_signature | 17 | rust | null | null | null | null | get_scope | null | null | null | null | null | null | null |
Documentation: README.md
# Type: Doc File
<p align="center">
</p>
<h1 align="center">Composable Open-Source Payments Infrastructure</h1>
<p align="center">
</p>
<!-- @import "[TOC]" {cmd="toc" depthFrom=1 depthTo=6 orderedList=false} -->
<p align="center">
<a href="https://github.com/juspay/hyperswitch/actions?q... | README.md | null | doc_file | 2,340 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Xendit {
fn get_webhook_source_verification_signature(
&self,
request: &webhooks::IncomingWebhookRequestDetails<'_>,
_connector_webhook_secrets: &api_models::webhooks::ConnectorWebhookSecrets,
) -> CustomResult<Vec<u8>, errors::ConnectorError> {
... | crates/hyperswitch_connectors/src/connectors/xendit.rs | hyperswitch_connectors | impl_block | 941 | rust | null | Xendit | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Xendit | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.RecurringPaymentIntervalUnit
{
"type": "string",
"enum": [
"year",
"month",
"day",
"hour",
"minute"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 50 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"RecurringPaymentIntervalUnit"
] | null | null | null | null |
impl api::PaymentSync for Trustpay {} | crates/hyperswitch_connectors/src/connectors/trustpay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Trustpay | api::PaymentSync for | impl api::PaymentSync for for Trustpay | null | null | null | null | null | null | null | null |
pub struct FiservemeaPaymentCardResponse {
expiry_date: Option<FiservemeaExpiryDate>,
bin: Option<String>,
last4: Option<String>,
brand: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs | hyperswitch_connectors | struct_definition | 45 | rust | FiservemeaPaymentCardResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/euclid/src/types/transformers.rs
| crates/euclid/src/types/transformers.rs | euclid | full_file | 13 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Nexixpay {} | crates/hyperswitch_connectors/src/connectors/nexixpay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Nexixpay | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Nexixpay | null | null | null | null | null | null | null | null |
pub async fn delete_network_token_from_locker_and_token_service(
state: &routes::SessionState,
customer_id: &id_type::CustomerId,
merchant_id: &id_type::MerchantId,
payment_method_id: String,
network_token_locker_id: Option<String>,
network_token_requestor_reference_id: String,
merchant_cont... | crates/router/src/core/payment_methods/network_tokenization.rs | router | function_signature | 312 | rust | null | null | null | null | delete_network_token_from_locker_and_token_service | null | null | null | null | null | null | null |
pub fn get_recon_acl(&self) -> HashMap<Resource, ReconPermissionScope> {
let mut acl: HashMap<Resource, ReconPermissionScope> = HashMap::new();
let mut recon_resources = RECON_OPS.to_vec();
recon_resources.extend(RECON_REPORTS);
let recon_internal_resources = [Resource::ReconToken];
... | crates/router/src/services/authorization/roles.rs | router | function_signature | 219 | rust | null | null | null | null | get_recon_acl | null | null | null | null | null | null | null |
pub fn set_log_event(&mut self, log_event: bool) {
self.log_event = log_event;
} | crates/router/src/core/payments/routing/utils.rs | router | function_signature | 25 | rust | null | null | null | null | set_log_event | null | null | null | null | null | null | null |
pub struct RefundResponse {
pub id: String,
pub amount: i64,
pub currency: String,
pub charge: String,
pub status: Shift4RefundStatus,
} | crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | hyperswitch_connectors | struct_definition | 43 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
impl Deref for AlwaysRequestExtendedAuthorization {
type Target = bool;
fn deref(&self) -> &Self::Target {
&self.0
}
} | crates/common_types/src/primitive_wrappers.rs | common_types | impl_block | 38 | rust | null | AlwaysRequestExtendedAuthorization | Deref for | impl Deref for for AlwaysRequestExtendedAuthorization | null | null | null | null | null | null | null | null |
pub struct DisputeListGetConstraints {
/// The identifier for dispute
pub dispute_id: Option<String>,
/// The payment_id against which dispute is raised
pub payment_id: Option<common_utils::id_type::PaymentId>,
/// Limit on the number of objects to return
pub limit: Option<u32>,
/// The star... | crates/api_models/src/disputes.rs | api_models | struct_definition | 377 | rust | DisputeListGetConstraints | null | null | null | null | null | null | null | null | null | null | null |
pub struct AffirmPaymentsResponse {
checkout_id: String,
redirect_url: String,
} | crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | AffirmPaymentsResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/core/locker_migration.rs
Public functions: 4
use ::payment_methods::controller::PaymentMethodsController;
#[cfg(feature = "v1")]
use api_models::enums as api_enums;
use api_models::locker_migration::MigrateCardResponse;
use common_utils::{errors::CustomResult, id_type};
#[cfg(feature = "v1")]
... | crates/router/src/core/locker_migration.rs | router | full_file | 1,560 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn make_frm_data_and_fraud_check_operation<F, D>(
_db: &dyn StorageInterface,
state: &SessionState,
merchant_context: &domain::MerchantContext,
payment_data: D,
frm_routing_algorithm: FrmRoutingAlgorithm,
profile_id: common_utils::id_type::ProfileId,
frm_configs: FrmConfigsObject,
... | crates/router/src/core/fraud_check.rs | router | function_signature | 549 | rust | null | null | null | null | make_frm_data_and_fraud_check_operation | null | null | null | null | null | null | null |
pub struct PayoutBatchHeader {
sender_batch_id: String,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | PayoutBatchHeader | null | null | null | null | null | null | null | null | null | null | null |
impl api::Payment for Nomupay {} | crates/hyperswitch_connectors/src/connectors/nomupay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Nomupay | api::Payment for | impl api::Payment for for Nomupay | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.GsmDecision
{
"type": "string",
"enum": [
"retry",
"do_default"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 37 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"GsmDecision"
] | null | null | null | null |
pub async fn create_de_euclid_routing_algo(
state: &SessionState,
routing_request: &RoutingRule,
) -> RoutingResult<String> {
logger::debug!("decision_engine_euclid: create api call for euclid routing rule creation");
logger::debug!(decision_engine_euclid_request=?routing_request,"decision_engine_eucli... | crates/router/src/core/payments/routing/utils.rs | router | function_signature | 209 | rust | null | null | null | null | create_de_euclid_routing_algo | null | null | null | null | null | null | null |
pub struct CompleteAuthorizeRedirectResponse {
pub params: Option<Secret<String>>,
pub payload: Option<pii::SecretSerdeValue>,
} | crates/hyperswitch_domain_models/src/router_request_types.rs | hyperswitch_domain_models | struct_definition | 30 | rust | CompleteAuthorizeRedirectResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct FrmMetricRow {
pub frm_name: Option<String>,
pub frm_status: Option<DBEnumWrapper<storage_enums::FraudCheckStatus>>,
pub frm_transaction_type: Option<DBEnumWrapper<FrmTransactionType>>,
pub total: Option<bigdecimal::BigDecimal>,
pub count: Option<i64>,
#[serde(with = "common_utils::cu... | crates/analytics/src/frm/metrics.rs | analytics | struct_definition | 133 | rust | FrmMetricRow | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_interfaces/src/connector_integration_v2.rs
//! definition of the new connector integration trait
use common_utils::{
errors::CustomResult,
request::{Method, Request, RequestBuilder, RequestContent},
};
use hyperswitch_domain_models::{router_data::ErrorResponse, router_data_v2::RouterD... | crates/hyperswitch_interfaces/src/connector_integration_v2.rs | hyperswitch_interfaces | full_file | 2,117 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ThreeDS {
#[serde(skip_serializing_if = "Option::is_none")]
pub authentication_value: Option<Secret<String>>,
pub version: ThreeDSVersion,
#[serde(skip_serializing_if = "Option::is_none")]
pub transaction_id: Option<String>,
pub eci: String,
#[serde(rename = "type")]
pub auth_... | crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs | hyperswitch_connectors | struct_definition | 84 | rust | ThreeDS | null | null | null | null | null | null | null | null | null | null | null |
pub struct NordeaPaymentsConfirmErrorObject {
/// Error message
pub error: Option<String>,
/// Description of the error
pub error_description: Option<String>,
/// Payment id of the payment, the error is associated with
pub payment_id: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/nordea/responses.rs | hyperswitch_connectors | struct_definition | 59 | rust | NordeaPaymentsConfirmErrorObject | null | null | null | null | null | null | null | null | null | null | null |
payment_intent.customer_id.as_ref(),
merchant_context.get_merchant_key_store(),
&payment_intent.payment_id,
storage_scheme,
)
.await?;
let billing_address = helpers::create_or_find_address_for_payment_by_request(
&state,
None,
payment_attempt
... | crates/router/src/core/payments.rs#chunk9 | router | chunk | 8,190 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct UpdateRoleRequest {
pub groups: Option<Vec<PermissionGroup>>,
pub role_name: Option<String>,
} | crates/api_models/src/user_role/role.rs | api_models | struct_definition | 25 | rust | UpdateRoleRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct UnifiedAuthenticationServiceRouterData<T> {
pub amount: FloatMajorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc.
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs | hyperswitch_connectors | struct_definition | 51 | rust | UnifiedAuthenticationServiceRouterData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn refunds_retrieve_with_body(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<refunds::RefundsRetrieveRequest>,
) -> HttpResponse {
let flow = match json_payload.force_sync {
Some(true) => Flow::RefundsRetrieveForceSync,
_ => Flow::RefundsRetrieve,
};... | crates/router/src/routes/refunds.rs | router | function_signature | 243 | rust | null | null | null | null | refunds_retrieve_with_body | null | null | null | null | null | null | null |
pub struct MifinityAddress {
address_line1: Secret<String>,
country_code: api_models::enums::CountryAlpha2,
city: String,
} | crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs | hyperswitch_connectors | struct_definition | 34 | rust | MifinityAddress | null | null | null | null | null | null | null | null | null | null | null |
pub struct CeleroErrorDetails {
pub error_code: Option<String>,
pub error_message: String,
pub processor_response_code: Option<String>,
pub decline_reason: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/celero/transformers.rs | hyperswitch_connectors | struct_definition | 40 | rust | CeleroErrorDetails | null | null | null | null | null | null | null | null | null | null | null |
File: crates/euclid_macros/src/inner/enum_nums.rs
Public functions: 1
use proc_macro::TokenStream;
use proc_macro2::{Span, TokenStream as TokenStream2};
use quote::quote;
fn error() -> TokenStream2 {
syn::Error::new(
Span::call_site(),
"'EnumNums' can only be derived on enums with unit variants".... | crates/euclid_macros/src/inner/enum_nums.rs | euclid_macros | full_file | 312 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct HyperwalletAuthType {
pub(super) api_key: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/hyperwallet/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | HyperwalletAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundResponse {
id: String,
status: RefundStatus,
} | crates/hyperswitch_connectors/src/connectors/custombilling/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardholderAuthentication {
authentication_value: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | CardholderAuthentication | null | null | null | null | null | null | null | null | null | null | null |
pub async fn complete_create_recipient_disburse_account(
state: &SessionState,
merchant_context: &domain::MerchantContext,
connector_data: &api::ConnectorData,
payout_data: &mut PayoutData,
) -> RouterResult<()> {
if !payout_data.should_terminate
&& matches!(
payout_data.payout_a... | crates/router/src/core/payouts.rs | router | function_signature | 198 | rust | null | null | null | null | complete_create_recipient_disburse_account | null | null | null | null | null | null | null |
pub struct Profile {
profile_id: common_utils::id_type::ProfileId,
pub merchant_id: common_utils::id_type::MerchantId,
pub profile_name: String,
pub created_at: time::PrimitiveDateTime,
pub modified_at: time::PrimitiveDateTime,
pub return_url: Option<String>,
pub enable_payment_response_hash... | crates/hyperswitch_domain_models/src/business_profile.rs | hyperswitch_domain_models | struct_definition | 684 | rust | Profile | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentsConfirmRequest
{
"type": "object",
"properties": {
"amount": {
"type": "integer",
"format": "int64",
"description": "The primary amount for the payment, provided in the lowest denomination of the specified currency (e.g., 6540 for $65.40 USD). Thi... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 3,643 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentsConfirmRequest"
] | null | null | null | null |
pub struct TaxCalculationResponseData {
pub order_tax_amount: MinorUnit,
} | crates/hyperswitch_domain_models/src/router_response_types.rs | hyperswitch_domain_models | struct_definition | 18 | rust | TaxCalculationResponseData | null | null | null | null | null | null | null | null | null | null | null |
/// Returns the merchant ID of the event.
pub fn get_merchant_id(&self) -> &str {
self.merchant_id.get_string_repr()
} | crates/hyperswitch_interfaces/src/events/routing_api_logs.rs | hyperswitch_interfaces | function_signature | 34 | rust | null | null | null | null | get_merchant_id | null | null | null | null | null | null | null |
impl Files {
pub fn server(state: AppState) -> Scope {
web::scope("/files")
.app_data(web::Data::new(state))
.service(web::resource("").route(web::post().to(files::files_create)))
.service(
web::resource("/{file_id}")
.route(web::delete... | crates/router/src/routes/app.rs | router | impl_block | 94 | rust | null | Files | null | impl Files | null | null | null | null | null | null | null | null |
pub struct ClientRiskInformation {
rules: Option<Vec<ClientRiskInformationRules>>,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 17 | rust | ClientRiskInformation | null | null | null | null | null | null | null | null | null | null | null |
pub struct GooglePayThirdPartySdkData {} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 9 | rust | GooglePayThirdPartySdkData | null | null | null | null | null | null | null | null | null | null | null |
pub struct ClientReferenceInformation {
code: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs | hyperswitch_connectors | struct_definition | 13 | rust | ClientReferenceInformation | null | null | null | null | null | null | null | null | null | null | null |
pub async fn create_profile_from_merchant_account(
state: &SessionState,
merchant_account: domain::MerchantAccount,
request: ProfileCreate,
key_store: &MerchantKeyStore,
) -> Result<domain::Profile, error_stack::Report<errors::ApiErrorResponse>> {
use common_utils::ext_traits::AsyncExt;
use dies... | crates/router/src/types/api/admin.rs | router | function_signature | 1,485 | rust | null | null | null | null | create_profile_from_merchant_account | null | null | null | null | null | null | null |
pub struct RuleResults {
id: Option<String>,
decision: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | RuleResults | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentType {
intent: String,
card_entry: String,
order: String,
} | crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | PaymentType | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = AnalyticsFlow::GetSdkEventFilters;
Box::pin(api::server_wrap(
flow,
state,
&req,
json_payload.into_inner(),
|state, auth: AuthenticationData, req, _| async move {
analytics::sdk_events::get_filters(
... | crates/router/src/analytics.rs | router | impl_block | 137 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Digitalvirgo {} | crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Digitalvirgo | api::PaymentSession for | impl api::PaymentSession for for Digitalvirgo | null | null | null | null | null | null | null | null |
pub struct PlaidBankAccountCredentialsBalances {
pub available: Option<util_types::FloatMajorUnit>,
pub current: Option<util_types::FloatMajorUnit>,
pub limit: Option<util_types::FloatMajorUnit>,
pub iso_currency_code: Option<String>,
pub unofficial_currency_code: Option<String>,
pub last_update... | crates/pm_auth/src/connector/plaid/transformers.rs | pm_auth | struct_definition | 77 | rust | PlaidBankAccountCredentialsBalances | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/api-key/api-key--list.mdx
# Type: Doc File
---
openapi: get /api_keys/{merchant_id}/list
---
| api-reference/v1/api-key/api-key--list.mdx | null | doc_file | 36 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct FrmTriggeredAttempts; | crates/api_models/src/analytics/frm.rs | api_models | struct_definition | 7 | rust | FrmTriggeredAttempts | null | null | null | null | null | null | null | null | null | null | null |
pub struct NmiWebhookEventBody {
pub event_type: NmiWebhookEventType,
} | crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | NmiWebhookEventBody | null | null | null | null | null | null | null | null | null | null | null |
pub struct FeatureMetadata {
/// Redirection response coming in request as metadata field only for redirection scenarios
pub redirect_response: Option<RedirectResponse>,
/// Additional tags to be used for global search
pub search_tags: Option<Vec<HashedString<WithType>>>,
/// Recurring payment detai... | crates/diesel_models/src/types.rs | diesel_models | struct_definition | 112 | rust | FeatureMetadata | null | null | null | null | null | null | null | null | null | null | null |
impl RevenueRecoveryPaymentData {
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,
... | crates/router/src/types/storage/revenue_recovery.rs | router | impl_block | 227 | rust | null | RevenueRecoveryPaymentData | null | impl RevenueRecoveryPaymentData | null | null | null | null | null | null | null | null |
pub struct LoanFees {
pub amount: Option<MinorUnit>,
pub description: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | LoanFees | null | null | null | null | null | null | null | null | null | null | null |
pub struct SyncResponse {
pub transaction_id: String,
#[serde(rename = "type")]
pub res_type: TransactionType,
pub status: TransactionStatus,
pub detail: SyncDetails,
pub card: Option<SyncCardDetails>,
} | crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | hyperswitch_connectors | struct_definition | 53 | rust | SyncResponse | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.BacsBankTransferInstructions
{
"type": "object",
"required": [
"account_holder_name",
"account_number",
"sort_code"
],
"properties": {
"account_holder_name": {
"type": "string",
"example": "Jane Doe"
},
"account_number": {
"type": ... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 133 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"BacsBankTransferInstructions"
] | null | null | null | null |
pub struct RecipientTokenRequest {
external_account: String,
} | crates/hyperswitch_connectors/src/connectors/stripe/transformers/connect.rs | hyperswitch_connectors | struct_definition | 14 | rust | RecipientTokenRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct ConditionalConfigReq {
pub name: Option<String>,
pub algorithm: Option<Program<common_types::payments::ConditionalConfigs>>,
} | crates/api_models/src/conditional_configs.rs | api_models | struct_definition | 30 | rust | ConditionalConfigReq | null | null | null | null | null | null | null | null | null | null | null |
- [Cybersource] Throw proper unauthorised message ([#1529](https://github.com/juspay/hyperswitch/pull/1529)) ([`3e284b0`](https://github.com/juspay/hyperswitch/commit/3e284b04b1f02f190cd386f1ee6149bf7b25aa87))
- [Bluesnap] add cardholder info in bluesnap payment request ([#1540](https://github.com/juspay/hyperswitc... | CHANGELOG.md#chunk58 | null | doc_chunk | 8,126 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct BluesnapPaymentsTokenRequest {
cc_number: cards::CardNumber,
exp_date: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | BluesnapPaymentsTokenRequest | null | null | null | null | null | null | null | null | null | null | null |
pub fn validate(&self) -> Result<(), errors::DrainerError> {
common_utils::fp_utils::when(self.host.is_default_or_empty(), || {
Err(errors::DrainerError::ConfigParsingError(
"server host must not be empty".into(),
))
})
} | crates/drainer/src/settings.rs | drainer | function_signature | 62 | rust | null | null | null | null | validate | null | null | null | null | null | null | null |
impl UserPassword {
pub fn new(password: Secret<String>) -> UserResult<Self> {
let password = password.expose();
let mut has_upper_case = false;
let mut has_lower_case = false;
let mut has_numeric_value = false;
let mut has_special_character = false;
let mut has_whit... | crates/router/src/types/domain/user.rs | router | impl_block | 343 | rust | null | UserPassword | null | impl UserPassword | null | null | null | null | null | null | null | null |
/// get_max_auto_retries_enabled key
pub fn get_max_auto_retries_enabled(&self) -> String {
format!("max_auto_retries_enabled_{}", self.get_string_repr())
} | crates/common_utils/src/id_type/merchant.rs | common_utils | function_signature | 41 | rust | null | null | null | null | get_max_auto_retries_enabled | null | null | null | null | null | null | null |
impl PayoutAttemptInterface for KafkaStore {} | crates/router/src/db/kafka_store.rs | router | impl_block | 9 | rust | null | KafkaStore | PayoutAttemptInterface for | impl PayoutAttemptInterface for for KafkaStore | null | null | null | null | null | null | null | null |
File: crates/router/src/core/payments/flows/authorize_flow.rs
Public functions: 2
use async_trait::async_trait;
use common_enums as enums;
use common_types::payments as common_payments_types;
use error_stack::ResultExt;
use hyperswitch_domain_models::errors::api_error_response::ApiErrorResponse;
#[cfg(feature = "v2")... | crates/router/src/core/payments/flows/authorize_flow.rs | router | full_file | 6,703 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/volt.rs
use masking::Secret;
use router::types::{self, domain, storage::enums};
use test_utils::connector_auth;
use crate::utils::{self, ConnectorActions};
#[derive(Clone, Copy)]
struct VoltTest;
impl ConnectorActions for VoltTest {}
impl utils::Connector for VoltTest {
fn ge... | crates/router/tests/connectors/volt.rs | router | full_file | 2,915 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentApprove; | crates/router/src/core/payments/operations/payment_approve.rs | router | struct_definition | 6 | rust | PaymentApprove | null | null | null | null | null | null | null | null | null | null | null |
pub async fn find_by_id(
conn: &PgPooledConn,
id: &common_utils::id_type::GlobalPaymentMethodId,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(conn, pm_id.eq(id.to_owned()))
.await
} | crates/diesel_models/src/query/payment_method.rs | diesel_models | function_signature | 72 | rust | null | null | null | null | find_by_id | null | null | null | null | null | null | null |
Documentation: api-reference/v2/organization/organization--create.mdx
# Type: Doc File
---
openapi: post /v2/organizations
--- | api-reference/v2/organization/organization--create.mdx | null | doc_file | 33 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router_derive/src/macros/schema/helpers.rs
Public structs: 1
use proc_macro2::TokenStream;
use quote::ToTokens;
use syn::{parse::Parse, Field, LitInt, LitStr, Token, TypePath};
use crate::macros::helpers::{get_metadata_inner, occurrence_error};
mod keyword {
use syn::custom_keyword;
// Schema ... | crates/router_derive/src/macros/schema/helpers.rs | router_derive | full_file | 1,339 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.RuleConnectorSelection
{
"type": "object",
"description": "Represents a rule\n\n```text\nrule_name: [stripe, adyen, checkout]\n{\npayment.method = card {\npayment.method.cardtype = (credit, debit) {\npayment.method.network = (amex, rupay, diners)\n}\n\npayment.method.cardtype ... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 195 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"RuleConnectorSelection"
] | null | null | null | null |
pub async fn get_bank_account_connector_details(
pm: &domain::PaymentMethod,
) -> errors::RouterResult<Option<BankAccountTokenData>> {
let payment_method_data = pm
.payment_method_data
.clone()
.map(|x| x.into_inner().expose())
.map(
|v| -> Result<PaymentMethodsData, ... | crates/router/src/core/payment_methods/cards.rs | router | function_signature | 411 | rust | null | null | null | null | get_bank_account_connector_details | null | null | null | null | null | null | null |
File: crates/api_models/src/apple_pay_certificates_migration.rs
Public structs: 2
#[derive(Debug, Clone, serde::Serialize)]
pub struct ApplePayCertificatesMigrationResponse {
pub migration_successful: Vec<common_utils::id_type::MerchantId>,
pub migration_failed: Vec<common_utils::id_type::MerchantId>,
}
#[de... | crates/api_models/src/apple_pay_certificates_migration.rs | api_models | full_file | 129 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn customers_delete() {} | crates/openapi/src/routes/customers.rs | openapi | function_signature | 7 | rust | null | null | null | null | customers_delete | null | null | null | null | null | null | null |
pub fn validate(&self) -> Result<(), ApplicationError> {
use common_utils::fp_utils::when;
when(
self.google_pay_root_signing_keys.is_default_or_empty(),
|| {
Err(ApplicationError::InvalidConfigurationValueError(
"google_pay_root_signing_keys ... | crates/router/src/configs/validations.rs | router | function_signature | 75 | rust | null | null | null | null | validate | null | null | null | null | null | null | null |
pub struct CaptureBuyerResponse {
buyer_key: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | CaptureBuyerResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct DigitalvirgoRedirectResponseData {
otp: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/digitalvirgo/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | DigitalvirgoRedirectResponseData | null | null | null | null | null | null | null | null | null | null | null |
pub struct DisputeFilters {
#[serde(default)]
pub dispute_stage: Vec<DisputeStage>,
#[serde(default)]
pub connector: Vec<String>,
#[serde(default)]
pub currency: Vec<Currency>,
} | crates/api_models/src/analytics/disputes.rs | api_models | struct_definition | 48 | rust | DisputeFilters | null | null | null | null | null | null | null | null | null | null | null |
pub struct WebhookDeliveryAttemptListRequestInternal {
pub merchant_id: common_utils::id_type::MerchantId,
pub initial_attempt_id: String,
} | crates/api_models/src/webhook_events.rs | api_models | struct_definition | 33 | rust | WebhookDeliveryAttemptListRequestInternal | null | null | null | null | null | null | null | null | null | null | null |
### Miscellaneous Tasks
- **users:** Add hubspot tracking to prod intent ([#7798](https://github.com/juspay/hyperswitch/pull/7798)) ([`67f38f8`](https://github.com/juspay/hyperswitch/commit/67f38f864e963a41667142a6042ab7b0e557eb2c))
- Resolve v2 warnings in common_utils ([#7358](https://github.com/juspay/hyperswitch/... | CHANGELOG.md#chunk8 | null | doc_chunk | 8,192 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: x-mcp
{
"enabled": true
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 17 | .json | null | null | null | null | null | openapi_spec | x-mcp | [] | null | null | null | null |
pub struct BarclaycardConsumerAuthInformationResponse {
access_token: String,
device_data_collection_url: String,
reference_id: String,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 31 | rust | BarclaycardConsumerAuthInformationResponse | null | null | 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.