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 Checkbook {
amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/checkbook.rs | hyperswitch_connectors | struct_definition | 27 | rust | Checkbook | null | null | null | null | null | null | null | null | null | null | null |
impl CardDetailUpdate {
pub fn apply(&self, card_data_from_locker: Card) -> CardDetail {
CardDetail {
card_number: card_data_from_locker.card_number,
card_exp_month: self
.card_exp_month
.clone()
.unwrap_or(card_data_from_locker.card_ex... | crates/api_models/src/payment_methods.rs | api_models | impl_block | 195 | rust | null | CardDetailUpdate | null | impl CardDetailUpdate | null | null | null | null | null | null | null | null |
pub struct ApiKey {
pub key_id: common_utils::id_type::ApiKeyId,
pub merchant_id: common_utils::id_type::MerchantId,
pub name: String,
pub description: Option<String>,
pub hashed_api_key: HashedApiKey,
pub prefix: String,
pub created_at: PrimitiveDateTime,
pub expires_at: Option<Primitiv... | crates/diesel_models/src/api_keys.rs | diesel_models | struct_definition | 91 | rust | ApiKey | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/types/storage/authorization.rs
pub use diesel_models::authorization::{Authorization, AuthorizationNew, AuthorizationUpdate};
| crates/router/src/types/storage/authorization.rs | router | full_file | 26 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.AuthenticationConnectorDetails
{
"type": "object",
"required": [
"authentication_connectors",
"three_ds_requestor_url"
],
"properties": {
"authentication_connectors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Authentication... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 206 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"AuthenticationConnectorDetails"
] | null | null | null | null |
pub struct SessionRoutingPmTypeInput<'a> {
routing_algorithm: &'a MerchantAccountRoutingAlgorithm,
backend_input: dsl_inputs::BackendInput,
allowed_connectors: FxHashMap<String, api::GetToken>,
profile_id: &'a common_utils::id_type::ProfileId,
} | crates/router/src/core/payments/routing.rs | router | struct_definition | 65 | rust | SessionRoutingPmTypeInput | null | null | null | null | null | null | null | null | null | null | null |
pub struct Amount {
total: FloatMajorUnit,
currency: String,
#[serde(skip_serializing_if = "Option::is_none")]
components: Option<AmountComponents>,
} | crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs | hyperswitch_connectors | struct_definition | 39 | rust | Amount | null | null | null | null | null | null | null | null | null | null | null |
pub struct KafkaProducer {
producer: Arc<RdKafkaProducer>,
intent_analytics_topic: String,
fraud_check_analytics_topic: String,
attempt_analytics_topic: String,
refund_analytics_topic: String,
api_logs_topic: String,
connector_logs_topic: String,
outgoing_webhook_logs_topic: String,
... | crates/router/src/services/kafka.rs | router | struct_definition | 143 | rust | KafkaProducer | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.AuthenticationEligibilityResponse
{
"type": "object",
"required": [
"authentication_id",
"next_action",
"status",
"connector_metadata",
"profile_id"
],
"properties": {
"authentication_id": {
"type": "string",
"description": "The unique i... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 529 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"AuthenticationEligibilityResponse"
] | null | null | null | null |
impl api::ConnectorAccessToken for Nexinets {} | crates/hyperswitch_connectors/src/connectors/nexinets.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Nexinets | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Nexinets | null | null | null | null | null | null | null | null |
event_type: enums::EventType::PaymentSucceeded,
event_class: enums::EventClass::Payments,
is_webhook_notified: false,
primary_object_id: payment_id.into(),
primary_object_type: enums::EventObjectType::PaymentDetails,
... | crates/router/src/db/events.rs#chunk1 | router | chunk | 3,150 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = match json_payload.force_sync {
Some(true) => Flow::PaymentsRetrieveForceSync,
_ => Flow::PaymentsRetrieve,
};
let payment_id = path.into_inner();
tracing::Span::current().record("payment_id", payment_id.get_string_repr());
let payload = payment_types::Pa... | crates/router/src/routes/payments.rs | router | impl_block | 531 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Mifinity {} | crates/hyperswitch_connectors/src/connectors/mifinity.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Mifinity | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Mifinity | null | null | null | null | null | null | null | null |
impl<const T: u8> ConnectorSpecifications for DummyConnector<T> {} | crates/hyperswitch_connectors/src/connectors/dummyconnector.rs | hyperswitch_connectors | impl_block | 15 | rust | null | DummyConnector | ConnectorSpecifications for | impl ConnectorSpecifications for for DummyConnector | null | null | null | null | null | null | null | null |
impl api::PayoutEligibility for Adyen {} | crates/hyperswitch_connectors/src/connectors/adyen.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Adyen | api::PayoutEligibility for | impl api::PayoutEligibility for for Adyen | null | null | null | null | null | null | null | null |
pub(crate) struct OutgoingWebhookTrackingData {
pub(crate) merchant_id: common_utils::id_type::MerchantId,
pub(crate) business_profile_id: common_utils::id_type::ProfileId,
pub(crate) event_type: enums::EventType,
pub(crate) event_class: enums::EventClass,
pub(crate) primary_object_id: String,
p... | crates/router/src/core/webhooks/types.rs | router | struct_definition | 102 | rust | OutgoingWebhookTrackingData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_merchant_auth_event_sankey(
state: web::Data<AppState>,
req: actix_web::HttpRequest,
json_payload: web::Json<TimeRange>,
) -> impl Responder {
let flow = AnalyticsFlow::GetSankey;
let payload = json_payload.into_inner();
Box::pin(api::server_wrap(
... | crates/router/src/analytics.rs | router | function_signature | 232 | rust | null | null | null | null | get_merchant_auth_event_sankey | null | null | null | null | null | null | null |
pub struct VoidData {
#[serde(rename = "id")]
pub void_id: String,
pub reason: Option<String>,
pub inserted_at: String,
pub status: FacilitapayPaymentStatus,
pub transaction_kind: String,
pub bank_transaction: VoidBankTransaction,
} | crates/hyperswitch_connectors/src/connectors/facilitapay/responses.rs | hyperswitch_connectors | struct_definition | 62 | rust | VoidData | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaypalOrderErrorResponse {
pub name: Option<String>,
pub message: String,
pub debug_id: Option<String>,
pub details: Option<Vec<OrderErrorDetails>>,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 38 | rust | PaypalOrderErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn server(state: AppState) -> Scope {
let mut route = web::scope("/account").app_data(web::Data::new(state));
#[cfg(feature = "olap")]
{
use super::admin::*;
route = route
.service(
web::resource("/connectors/verify")
... | crates/router/src/routes/app.rs | router | function_signature | 236 | rust | null | null | null | null | server | null | null | null | null | null | null | null |
pub async fn find_link_by_payment_link_id(
conn: &PgPooledConn,
payment_link_id: &str,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
dsl::payment_link_id.eq(payment_link_id.to_owned()),
)
.await
} | crates/diesel_models/src/query/payment_link.rs | diesel_models | function_signature | 78 | rust | null | null | null | null | find_link_by_payment_link_id | null | null | null | null | null | null | null |
impl api::Refund for Inespay {} | crates/hyperswitch_connectors/src/connectors/inespay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Inespay | api::Refund for | impl api::Refund for for Inespay | null | null | null | null | null | null | null | null |
impl CallbackMapperData {
/// Retrieves the details of the network token webhook type from callback mapper data.
pub fn get_network_token_webhook_details(
&self,
) -> (id_type::MerchantId, String, id_type::CustomerId) {
match self {
Self::NetworkTokenWebhook {
mer... | crates/common_types/src/callback_mapper.rs | common_types | impl_block | 105 | rust | null | CallbackMapperData | null | impl CallbackMapperData | null | null | null | null | null | null | null | null |
impl Payment for Netcetera {} | crates/hyperswitch_connectors/src/connectors/netcetera.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Netcetera | Payment for | impl Payment for for Netcetera | null | null | null | null | null | null | null | null |
pub async fn load_recovery_attempt_from_api(
data: api_models::payments::RecoveryPaymentsCreate,
state: &SessionState,
req_state: &ReqState,
merchant_context: &domain::MerchantContext,
profile: &domain::Profile,
payment_intent: revenue_recovery::RecoveryPaymentIntent,
... | crates/router/src/core/webhooks/recovery_incoming.rs | router | function_signature | 246 | rust | null | null | null | null | load_recovery_attempt_from_api | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &MinorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/deutschebank.rs | hyperswitch_connectors | function_signature | 27 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
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_with_unique_predicate_get_r... | crates/diesel_models/src/query/authorization.rs | diesel_models | function_signature | 268 | rust | null | null | null | null | update_by_merchant_id_authorization_id | null | null | null | null | null | null | null |
pub trait RefundMetricAccumulator {
type MetricOutput;
fn add_metrics_bucket(&mut self, metrics: &RefundMetricRow);
fn collect(self) -> Self::MetricOutput;
} | crates/analytics/src/refunds/accumulator.rs | analytics | trait_definition | 43 | rust | null | null | RefundMetricAccumulator | null | null | null | null | null | null | null | null | null |
pub struct GetDecisionEngineConfigRequest {
pub merchant_id: String,
pub algorithm: DecisionEngineDynamicAlgorithmType,
} | crates/api_models/src/open_router.rs | api_models | struct_definition | 26 | rust | GetDecisionEngineConfigRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct CommonMandateReference {
pub payments: Option<PaymentsMandateReference>,
pub payouts: Option<PayoutsMandateReference>,
} | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 34 | rust | CommonMandateReference | null | null | null | null | null | null | null | null | null | null | null |
pub struct ForteRouterData<T> {
pub amount: FloatMajorUnit,
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/forte/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | ForteRouterData | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Breadpay {} | crates/hyperswitch_connectors/src/connectors/breadpay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Breadpay | api::RefundExecute for | impl api::RefundExecute for for Breadpay | null | null | null | null | null | null | null | null |
pub struct OpenRouterDecideGatewayRequest {
pub payment_info: PaymentInfo,
#[schema(value_type = String)]
pub merchant_id: id_type::ProfileId,
pub eligible_gateway_list: Option<Vec<String>>,
pub ranking_algorithm: Option<RankingAlgorithm>,
pub elimination_enabled: Option<bool>,
} | crates/api_models/src/open_router.rs | api_models | struct_definition | 66 | rust | OpenRouterDecideGatewayRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentCaptureRequest {
payme_sale_id: String,
sale_price: MinorUnit,
} | crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | PaymentCaptureRequest | null | null | null | null | null | null | null | null | null | null | null |
assert_eq!(
algorithm
.decode_message(&secret, encoded_message.into())
.expect("Decode Failed"),
message
);
}
#[test]
fn test_gcm_aes_256_decode_message() {
// Inputs taken from AES GCM test vectors provided by NIST
// ... | crates/common_utils/src/crypto.rs#chunk1 | common_utils | chunk | 1,677 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn payments_complete_authorize() {} | crates/openapi/src/routes/payments.rs | openapi | function_signature | 8 | rust | null | null | null | null | payments_complete_authorize | null | null | null | null | null | null | null |
pub struct PaymentAttemptBatchNew {
pub payment_id: common_utils::id_type::PaymentId,
pub merchant_id: common_utils::id_type::MerchantId,
pub attempt_id: String,
pub status: AttemptStatus,
pub amount: MinorUnit,
pub currency: Option<Currency>,
pub save_to_locker: Option<bool>,
pub connec... | crates/diesel_models/src/user/sample_data.rs | diesel_models | struct_definition | 868 | rust | PaymentAttemptBatchNew | null | null | null | null | null | null | null | null | null | null | null |
Web Documentation: Click To Pay | Hyperswitch
# Type: Web Doc
This feature is currently in Beta. For access, please contact us at
[email protected]
Click to Pay is a secure and user-friendly digital payment solution designed to simplify the online checkout process. With Click to Pay, consumers can use their saved paym... | https://docs.hyperswitch.io/explore-hyperswitch/merchant-controls/payment-features/click-to-pay | null | web_doc_file | 664 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/explore-hyperswitch/merchant-controls/payment-features/click-to-pay | Click To Pay | Hyperswitch | null |
pub async fn customers_retrieve(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<id_type::GlobalCustomerId>,
) -> HttpResponse {
use crate::services::authentication::api_or_client_auth;
let flow = Flow::CustomersRetrieve;
let id = path.into_inner();
let v2_client_auth = auth... | crates/router/src/routes/customers.rs | router | function_signature | 282 | rust | null | null | null | null | customers_retrieve | null | null | null | null | null | null | null |
pub fn get_payment_method(&self) -> Option<common_enums::PaymentMethod> {
Some(self.payment_method)
} | crates/api_models/src/admin.rs | api_models | function_signature | 27 | rust | null | null | null | null | get_payment_method | null | null | null | null | null | null | null |
impl Gsm {
pub fn server(state: AppState) -> Scope {
web::scope("/v2/gsm")
.app_data(web::Data::new(state))
.service(web::resource("").route(web::post().to(gsm::create_gsm_rule)))
.service(web::resource("/get").route(web::post().to(gsm::get_gsm_rule)))
.servic... | crates/router/src/routes/app.rs | router | impl_block | 129 | rust | null | Gsm | null | impl Gsm | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/barclaycard.rs
use masking::Secret;
use router::types::{self, api, domain, storage::enums};
use test_utils::connector_auth;
use crate::utils::{self, ConnectorActions};
#[derive(Clone, Copy)]
struct BarclaycardTest;
impl ConnectorActions for BarclaycardTest {}
impl utils::Connecto... | crates/router/tests/connectors/barclaycard.rs | router | full_file | 2,939 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn merchant_account_update() {} | crates/openapi/src/routes/merchant_account.rs | openapi | function_signature | 8 | rust | null | null | null | null | merchant_account_update | null | null | null | null | null | null | null |
pub async fn create_org_merchant_for_user(
state: SessionState,
req: user_api::UserOrgMerchantCreateRequest,
) -> UserResponse<()> {
let db_organization = ForeignFrom::foreign_from(req.clone());
let org: diesel_models::organization::Organization = state
.accounts_store
.insert_organizati... | crates/router/src/core/user.rs | router | function_signature | 208 | rust | null | null | null | null | create_org_merchant_for_user | null | null | null | null | null | null | null |
pub struct DeutschebankMandateMetadata {
account_holder: Secret<String>,
iban: Secret<String>,
reference: Secret<String>,
signed_on: String,
} | crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | hyperswitch_connectors | struct_definition | 36 | rust | DeutschebankMandateMetadata | null | null | null | null | null | null | null | null | null | null | null |
impl IncomingWebhook for Placetopay {
fn get_webhook_object_reference_id(
&self,
_request: &IncomingWebhookRequestDetails<'_>,
) -> CustomResult<ObjectReferenceId, errors::ConnectorError> {
Err(report!(errors::ConnectorError::WebhooksNotImplemented))
}
fn get_webhook_event_type(... | crates/hyperswitch_connectors/src/connectors/placetopay.rs | hyperswitch_connectors | impl_block | 187 | rust | null | Placetopay | IncomingWebhook for | impl IncomingWebhook for for Placetopay | null | null | null | null | null | null | null | null |
impl api::Payment for Dwolla {} | crates/hyperswitch_connectors/src/connectors/dwolla.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Dwolla | api::Payment for | impl api::Payment for for Dwolla | null | null | null | null | null | null | null | null |
pub async fn refund_list(
state: SessionState,
merchant_context: domain::MerchantContext,
profile_id_list: Option<Vec<common_utils::id_type::ProfileId>>,
req: api_models::refunds::RefundListRequest,
) -> RouterResponse<api_models::refunds::RefundListResponse> {
let db = state.store;
let limit = ... | crates/router/src/core/refunds.rs | router | function_signature | 323 | rust | null | null | null | null | refund_list | null | null | null | null | null | null | null |
/// Middleware for Adding Accept-Language header based on query params
pub struct AddAcceptLanguageHeader; | crates/router/src/middleware.rs | router | struct_definition | 19 | rust | AddAcceptLanguageHeader | null | null | null | null | null | null | null | null | null | null | null |
pub struct OrderInformation {
amount_details: Amount,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 12 | rust | OrderInformation | null | null | null | null | null | null | null | null | null | null | null |
pub async fn find_by_merchant_id_authentication_id(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
authentication_id: &common_utils::id_type::AuthenticationId,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
... | crates/diesel_models/src/query/authentication.rs | diesel_models | function_signature | 116 | rust | null | null | null | null | find_by_merchant_id_authentication_id | null | null | null | null | null | null | null |
pub struct Theme {
pub theme_id: String,
pub tenant_id: id_type::TenantId,
pub org_id: Option<id_type::OrganizationId>,
pub merchant_id: Option<id_type::MerchantId>,
pub profile_id: Option<id_type::ProfileId>,
pub created_at: PrimitiveDateTime,
pub last_modified_at: PrimitiveDateTime,
pu... | crates/diesel_models/src/user/theme.rs | diesel_models | struct_definition | 135 | rust | Theme | null | null | null | null | null | null | null | null | null | null | null |
impl TypedSql {
pub fn to_field_value_pairs(
&self,
request_id: String,
global_id: String,
) -> crate::StorageResult<Vec<(&str, String)>> {
let pushed_at = common_utils::date_time::now_unix_timestamp();
Ok(vec![
(
"typed_sql",
... | crates/diesel_models/src/kv.rs | diesel_models | impl_block | 125 | rust | null | TypedSql | null | impl TypedSql | null | null | null | null | null | null | null | null |
pub struct AirwallexCompleteRequest {
request_id: String,
three_ds: AirwallexThreeDsData,
#[serde(rename = "type")]
three_ds_type: AirwallexThreeDsType,
} | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | 46 | rust | AirwallexCompleteRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct GocardlessRefundRequest {
refunds: GocardlessRefund,
} | crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | GocardlessRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct Retrieve; | crates/hyperswitch_domain_models/src/router_flow_types/files.rs | hyperswitch_domain_models | struct_definition | 4 | rust | Retrieve | null | null | null | null | null | null | null | null | null | null | null |
impl ApiKeyId {
/// Generate Api Key Id from prefix
pub fn generate_key_id(prefix: &'static str) -> Self {
Self(crate::generate_ref_id_with_default_length(prefix))
}
} | crates/common_utils/src/id_type/api_key.rs | common_utils | impl_block | 43 | rust | null | ApiKeyId | null | impl ApiKeyId | null | null | null | null | null | null | null | null |
pub async fn call_locker_api<T>(
state: &routes::SessionState,
request: Request,
flow_name: &str,
locker_choice: Option<api_enums::LockerChoice>,
) -> errors::CustomResult<T, errors::VaultError>
where
T: serde::de::DeserializeOwned,
{
let locker = &state.conf.locker;
let jwekey = state.conf.... | crates/router/src/core/payment_methods/cards.rs | router | function_signature | 479 | rust | null | null | null | null | call_locker_api | null | null | null | null | null | null | null |
pub struct TokenizationNew {
pub id: id_type::GlobalTokenId,
pub merchant_id: id_type::MerchantId,
pub customer_id: id_type::GlobalCustomerId,
pub locker_id: String,
pub created_at: PrimitiveDateTime,
pub updated_at: PrimitiveDateTime,
pub version: common_enums::enums::ApiVersion,
pub fl... | crates/diesel_models/src/tokenization.rs | diesel_models | struct_definition | 90 | rust | TokenizationNew | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/auth_events/metrics.rs
Public structs: 1
use std::collections::HashSet;
use api_models::analytics::{
auth_events::{
AuthEventDimensions, AuthEventFilters, AuthEventMetrics, AuthEventMetricsBucketIdentifier,
},
Granularity, TimeRange,
};
use diesel_models::enums as stora... | crates/analytics/src/auth_events/metrics.rs | analytics | full_file | 1,406 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::RoutingUnlinkConfig;
let path = path.into_inner();
Box::pin(oss_api::server_wrap(
flow,
state,
&req,
path.clone(),
|state, auth: auth::AuthenticationData, path, _| {
let merchant_context = domain::MerchantContext::NormalMe... | crates/router/src/routes/routing.rs | router | impl_block | 251 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Hipay {} | crates/hyperswitch_connectors/src/connectors/hipay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Hipay | api::RefundExecute for | impl api::RefundExecute for for Hipay | null | null | null | null | null | null | null | null |
pub struct ProcessingInformation {
action_list: Option<Vec<WellsfargoActionsList>>,
action_token_types: Option<Vec<WellsfargoActionsTokenType>>,
authorization_options: Option<WellsfargoAuthorizationOptions>,
commerce_indicator: String,
capture: Option<bool>,
capture_options: Option<CaptureOption... | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 73 | rust | ProcessingInformation | null | null | null | null | null | null | null | null | null | null | null |
pub struct IncomingWebhookRequestDetails<'a> {
/// method
pub method: http::Method,
/// uri
pub uri: http::Uri,
/// headers
pub headers: &'a actix_web::http::header::HeaderMap,
/// body
pub body: &'a [u8],
/// query_params
pub query_params: String,
} | crates/hyperswitch_interfaces/src/webhooks.rs | hyperswitch_interfaces | struct_definition | 83 | rust | IncomingWebhookRequestDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct MonerisRouterData<T> {
pub amount: MinorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc.
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs | hyperswitch_connectors | struct_definition | 50 | rust | MonerisRouterData | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Datatrans {} | crates/hyperswitch_connectors/src/connectors/datatrans.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Datatrans | api::PaymentSync for | impl api::PaymentSync for for Datatrans | null | null | null | null | null | null | null | null |
pub struct RouterHealthCheckResponse {
pub database: bool,
pub redis: bool,
#[serde(skip_serializing_if = "Option::is_none")]
pub vault: Option<bool>,
#[cfg(feature = "olap")]
pub analytics: bool,
#[cfg(feature = "olap")]
pub opensearch: bool,
pub outgoing_request: bool,
#[cfg(fe... | crates/api_models/src/health_check.rs | api_models | struct_definition | 124 | rust | RouterHealthCheckResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PollId {
pub poll_id: String,
} | crates/router/src/types/api/poll.rs | router | struct_definition | 13 | rust | PollId | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentLinkSdkLabelType
{
"type": "string",
"enum": [
"above",
"floating",
"never"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 42 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentLinkSdkLabelType"
] | null | null | null | null |
OpenAPI Block Path: components.schemas.PhoneDetails
{
"type": "object",
"properties": {
"number": {
"type": "string",
"description": "The contact number",
"example": "9123456789",
"nullable": true
},
"country_code": {
"type": "string",
"description": "The country code... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 113 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PhoneDetails"
] | null | null | null | null |
pub struct ReportConfig {
pub payment_function: String,
pub refund_function: String,
pub dispute_function: String,
pub authentication_function: String,
pub region: String,
} | crates/analytics/src/lib.rs | analytics | struct_definition | 40 | rust | ReportConfig | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Payme {} | crates/hyperswitch_connectors/src/connectors/payme.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Payme | api::PaymentSync for | impl api::PaymentSync for for Payme | null | null | null | null | null | null | null | null |
File: crates/router/src/core/metrics.rs
use router_env::{counter_metric, global_meter};
global_meter!(GLOBAL_METER, "ROUTER_API");
counter_metric!(INCOMING_DISPUTE_WEBHOOK_METRIC, GLOBAL_METER); // No. of incoming dispute webhooks
counter_metric!(
INCOMING_DISPUTE_WEBHOOK_SIGNATURE_FAILURE_METRIC,
GLOBAL_MET... | crates/router/src/core/metrics.rs | router | full_file | 936 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundResponse {
id: String,
status: RefundStatus,
} | crates/hyperswitch_connectors/src/connectors/breadpay/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | RefundResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSync for CtpMastercard {} | crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs | hyperswitch_connectors | impl_block | 11 | rust | null | CtpMastercard | api::PaymentSync for | impl api::PaymentSync for for CtpMastercard | null | null | null | null | null | null | null | null |
File: crates/analytics/src/health_check.rs
use common_utils::errors::CustomResult;
use crate::types::QueryExecutionError;
#[async_trait::async_trait]
pub trait HealthCheck {
async fn deep_health_check(&self) -> CustomResult<(), QueryExecutionError>;
}
| crates/analytics/src/health_check.rs | analytics | full_file | 59 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl CreateOrValidateOrganization {
#[cfg(all(feature = "v1", feature = "olap"))]
/// Create an action to either create or validate the given organization_id
/// If organization_id is passed, then validate if this organization exists
/// If not passed, create a new organization
fn new(organization_i... | crates/router/src/core/admin.rs | router | impl_block | 388 | rust | null | CreateOrValidateOrganization | null | impl CreateOrValidateOrganization | null | null | null | null | null | null | null | null |
impl DummyConnectors {
pub fn get_connector_image_link(self, base_url: &str) -> String {
let image_name = match self {
Self::PhonyPay => "PHONYPAY.svg",
Self::FauxPay => "FAUXPAY.svg",
Self::PretendPay => "PRETENDPAY.svg",
Self::StripeTest => "STRIPE_TEST.svg"... | crates/router/src/routes/dummy_connector/types.rs | router | impl_block | 123 | rust | null | DummyConnectors | null | impl DummyConnectors | null | null | null | null | null | null | null | null |
pub struct QrCodeData {
#[serde(rename = "tranID")]
pub tran_id: String,
pub status: String,
} | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | 30 | rust | QrCodeData | null | null | null | null | null | null | null | null | null | null | null |
impl Payme {
pub const fn new() -> &'static Self {
&Self {
amount_converter: &MinorUnitForConnector,
apple_pay_google_pay_amount_converter: &StringMajorUnitForConnector,
amount_converter_webhooks: &StringMinorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/payme.rs | hyperswitch_connectors | impl_block | 62 | rust | null | Payme | null | impl Payme | null | null | null | null | null | null | null | null |
request: &webhooks::IncomingWebhookRequestDetails<'_>,
_merchant_id: &common_utils::id_type::MerchantId,
_connector_webhook_secrets: &api_models::webhooks::ConnectorWebhookSecrets,
) -> CustomResult<Vec<u8>, errors::ConnectorError> {
let trustpay_response: trustpay::TrustpayWebhookRe... | crates/hyperswitch_connectors/src/connectors/trustpay.rs#chunk1 | hyperswitch_connectors | chunk | 3,840 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn list_customer_payment_methods_core(
state: &SessionState,
merchant_context: &domain::MerchantContext,
customer_id: &id_type::GlobalCustomerId,
) -> RouterResult<Vec<payment_methods::CustomerPaymentMethodResponseItem>> {
let db = &*state.store;
let key_manager_state = &(state).into();
... | crates/router/src/core/payment_methods.rs | router | function_signature | 501 | rust | null | null | null | null | list_customer_payment_methods_core | null | null | null | null | null | null | null |
impl State for TokenizeWithPmId {} | crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs | router | impl_block | 10 | rust | null | TokenizeWithPmId | State for | impl State for for TokenizeWithPmId | null | null | null | null | null | null | null | null |
pub async fn proxy_for_call_connector_service<F, RouterDReq, ApiRequest, D>(
state: &SessionState,
req_state: ReqState,
merchant_context: &domain::MerchantContext,
connector: api::ConnectorData,
operation: &BoxedOperation<'_, F, ApiRequest, D>,
payment_data: &mut D,
customer: &Option<domain:... | crates/router/src/core/payments.rs | router | function_signature | 1,100 | rust | null | null | null | null | proxy_for_call_connector_service | null | null | null | null | null | null | null |
pub struct Venmo {
/// mobile number linked to venmo account
#[schema(value_type = String, example = "16608213349")]
pub telephone_number: Option<Secret<String>>,
} | crates/api_models/src/payouts.rs | api_models | struct_definition | 49 | rust | Venmo | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundSync for Flexiti {} | crates/hyperswitch_connectors/src/connectors/flexiti.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Flexiti | api::RefundSync for | impl api::RefundSync for for Flexiti | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Jpmorgan {} | crates/hyperswitch_connectors/src/connectors/jpmorgan.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Jpmorgan | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Jpmorgan | null | null | null | null | null | null | null | null |
pub async fn routing_retrieve_config() {} | crates/openapi/src/routes/routing.rs | openapi | function_signature | 9 | rust | null | null | null | null | routing_retrieve_config | null | null | null | null | null | null | null |
pub struct RefundBodyResponse {
submit_single_refund_response: SubmitSingleRefundResponse,
} | crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | RefundBodyResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct ConnectorTokenReferenceRecord {
pub connector_token: String,
pub payment_method_subtype: Option<common_enums::PaymentMethodType>,
pub original_payment_authorized_amount: Option<MinorUnit>,
pub original_payment_authorized_currency: Option<Currency>,
pub metadata: Option<pii::SecretSerdeVal... | crates/hyperswitch_domain_models/src/mandates.rs | hyperswitch_domain_models | struct_definition | 94 | rust | ConnectorTokenReferenceRecord | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardAndNetworkTokenDataForVault {
pub card_data: payment_method_data::Card,
pub network_token: NetworkTokenDataForVault,
} | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | struct_definition | 33 | rust | CardAndNetworkTokenDataForVault | null | null | null | null | null | null | null | null | null | null | null |
pub async fn signout_hypersense_token(
state: web::Data<AppState>,
http_req: HttpRequest,
json_payload: web::Json<external_service_auth_api::ExternalSignoutTokenRequest>,
) -> HttpResponse {
let flow = Flow::HypersenseSignoutToken;
Box::pin(api::server_wrap(
flow,
state.clone(),
... | crates/router/src/routes/hypersense.rs | router | function_signature | 143 | rust | null | null | null | null | signout_hypersense_token | null | null | null | null | null | null | null |
pub fn new() -> Self {
Self {
data: Vec::new(),
_marker: PhantomData,
}
} | crates/hyperswitch_constraint_graph/src/dense_map.rs | hyperswitch_constraint_graph | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
File: crates/storage_impl/src/mock_db/redis_conn.rs
use std::sync::Arc;
use redis_interface::errors::RedisError;
use super::MockDb;
use crate::redis::kv_store::RedisConnInterface;
impl RedisConnInterface for MockDb {
fn get_redis_conn(
&self,
) -> Result<Arc<redis_interface::RedisConnectionPool>, er... | crates/storage_impl/src/mock_db/redis_conn.rs | storage_impl | full_file | 98 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMajorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/aci.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct Stripebilling {
amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/stripebilling.rs | hyperswitch_connectors | struct_definition | 27 | rust | Stripebilling | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_domain_models/src/router_response_types/fraud_check.rs
use serde::Serialize;
use crate::router_response_types::ResponseId;
#[derive(Debug, Clone, Serialize)]
#[serde(untagged)]
pub enum FraudCheckResponseData {
TransactionResponse {
resource_id: ResponseId,
status: diesel... | crates/hyperswitch_domain_models/src/router_response_types/fraud_check.rs | hyperswitch_domain_models | full_file | 218 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn do_auth_connector_call<F, Req, Res>(
state: &SessionState,
authentication_connector_name: String,
router_data: RouterData<F, Req, Res>,
) -> RouterResult<RouterData<F, Req, Res>>
where
Req: std::fmt::Debug + Clone + 'static,
Res: std::fmt::Debug + Clone + 'static,
F: std::fmt::Debug... | crates/router/src/core/authentication/utils.rs | router | function_signature | 258 | rust | null | null | null | null | do_auth_connector_call | null | null | null | null | null | null | null |
pub struct PowertranzErrorResponse {
pub errors: Vec<Error>,
} | crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | PowertranzErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
impl CoBadgedCardNetworks {
pub fn get_card_networks(&self) -> Vec<common_enums::CardNetwork> {
self.0.iter().map(|info| info.network.clone()).collect()
}
pub fn get_signature_network(&self) -> Option<common_enums::CardNetwork> {
self.0
.iter()
.find(|info| info.netw... | crates/api_models/src/open_router.rs | api_models | impl_block | 101 | rust | null | CoBadgedCardNetworks | null | impl CoBadgedCardNetworks | 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.