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 api::PaymentSession for Razorpay {} | crates/hyperswitch_connectors/src/connectors/razorpay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Razorpay | api::PaymentSession for | impl api::PaymentSession for for Razorpay | null | null | null | null | null | null | null | null |
pub struct NoonSubscriptionObject {
identifier: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | hyperswitch_connectors | struct_definition | 13 | rust | NoonSubscriptionObject | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentLinkBackgroundImageConfig {
/// URL of the image
#[schema(value_type = String, example = "https://hyperswitch.io/favicon.ico")]
pub url: common_utils::types::Url,
/// Position of the image in the UI
#[schema(value_type = Option<ElementPosition>, example = "top-left")]
pub posit... | crates/api_models/src/admin.rs | api_models | struct_definition | 124 | rust | PaymentLinkBackgroundImageConfig | null | null | null | null | null | null | null | null | null | null | null |
pub async fn elimination_routing_update_configs(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<routing_types::DynamicRoutingUpdateConfigQuery>,
json_payload: web::Json<routing_types::EliminationRoutingConfig>,
) -> impl Responder {
let flow = Flow::UpdateDynamicRoutingConfigs;
le... | crates/router/src/routes/routing.rs | router | function_signature | 292 | rust | null | null | null | null | elimination_routing_update_configs | null | null | null | null | null | null | null |
pub struct SamsungPayWalletCredentials {
pub method: Option<String>,
pub recurring_payment: Option<bool>,
pub card_brand: common_enums::SamsungPayCardBrand,
pub dpan_last_four_digits: Option<String>,
#[serde(rename = "card_last4digits")]
pub card_last_four_digits: String,
#[serde(rename = "3... | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 88 | rust | SamsungPayWalletCredentials | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_payment_method_collect_data(&self) -> Result<&PaymentMethodCollectLinkData, String> {
match self {
Self::PaymentMethodCollect(pm) => Ok(pm),
_ => Err("Invalid link type for fetching payment method collect data".to_string()),
}
} | crates/diesel_models/src/generic_link.rs | diesel_models | function_signature | 60 | rust | null | null | null | null | get_payment_method_collect_data | null | null | null | null | null | null | null |
File: crates/router/src/routes/blocklist.rs
Public functions: 4
use actix_web::{web, HttpRequest, HttpResponse};
use api_models::blocklist as api_blocklist;
use router_env::Flow;
use crate::{
core::{api_locking, blocklist},
routes::AppState,
services::{api, authentication as auth, authorization::permissi... | crates/router/src/routes/blocklist.rs | router | full_file | 1,383 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::RecoveryPaymentsCreate;
let mut payload = json_payload.into_inner();
Box::pin(api::server_wrap(
flow,
state,
&req.clone(),
payload,
|state, auth: auth::AuthenticationData, req_payload, req_state| {
let merchant_context = d... | crates/router/src/routes/payments.rs | router | impl_block | 175 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
impl DBOperation {
pub async fn execute(self, conn: &PgPooledConn) -> crate::StorageResult<DBResult> {
Ok(match self {
Self::Insert { insertable } => match *insertable {
Insertable::PaymentIntent(a) => {
DBResult::PaymentIntent(Box::new(a.insert(conn).await?))... | crates/diesel_models/src/kv.rs | diesel_models | impl_block | 999 | rust | null | DBOperation | null | impl DBOperation | null | null | null | null | null | null | null | null |
pub struct ThreeDSAuthData {
three_d_s_auth_response: Option<Secret<String>>,
authentication_value: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | hyperswitch_connectors | struct_definition | 29 | rust | ThreeDSAuthData | null | null | null | null | null | null | null | null | null | null | null |
pub struct CheckoutApplePayHeader {
ephemeral_public_key: Secret<String>,
public_key_hash: Secret<String>,
transaction_id: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs | hyperswitch_connectors | struct_definition | 32 | rust | CheckoutApplePayHeader | null | null | null | null | null | null | null | null | null | null | null |
pub struct DigitalvirgoErrorResponse {
pub cause: Option<String>,
pub operation_error: Option<String>,
pub description: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/digitalvirgo/transformers.rs | hyperswitch_connectors | struct_definition | 30 | rust | DigitalvirgoErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct DebitRoutingOutput {
pub co_badged_card_networks_info: CoBadgedCardNetworks,
pub issuer_country: common_enums::CountryAlpha2,
pub is_regulated: bool,
pub regulated_name: Option<common_enums::RegulatedName>,
pub card_type: common_enums::CardType,
} | crates/api_models/src/open_router.rs | api_models | struct_definition | 73 | rust | DebitRoutingOutput | null | null | null | null | null | null | null | null | null | null | null |
pub struct WebhookReferences {
pub merchant_reference: Option<String>,
pub payment_id: Option<String>,
pub payment_request_id: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | hyperswitch_connectors | struct_definition | 32 | rust | WebhookReferences | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Itaubank {} | crates/hyperswitch_connectors/src/connectors/itaubank.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Itaubank | api::PaymentToken for | impl api::PaymentToken for for Itaubank | null | null | null | null | null | null | null | null |
impl ConnectorTransactionId for Helcim {
#[cfg(feature = "v1")]
fn connector_transaction_id(
&self,
payment_attempt: &PaymentAttempt,
) -> Result<Option<String>, ApiErrorResponse> {
if payment_attempt.get_connector_payment_id().is_none() {
let metadata =
S... | crates/hyperswitch_connectors/src/connectors/helcim.rs | hyperswitch_connectors | impl_block | 269 | rust | null | Helcim | ConnectorTransactionId for | impl ConnectorTransactionId for for Helcim | null | null | null | null | null | null | null | null |
pub struct Analytics; | crates/router/src/analytics.rs | router | struct_definition | 4 | rust | Analytics | null | null | null | null | null | null | null | null | null | null | null |
impl ThreeDsDecisionRule {
pub fn server(state: AppState) -> Scope {
web::scope("/three_ds_decision")
.app_data(web::Data::new(state))
.service(
web::resource("/execute")
.route(web::post().to(three_ds_decision_rule::execute_decision_rule)),
... | crates/router/src/routes/app.rs | router | impl_block | 71 | rust | null | ThreeDsDecisionRule | null | impl ThreeDsDecisionRule | null | null | null | null | null | null | null | null |
pub fn make_new_payment_attempt(
_connector: String,
_old_payment_attempt: storage::PaymentAttempt,
_new_attempt_count: i16,
_is_step_up: bool,
) -> storage::PaymentAttempt {
todo!()
} | crates/router/src/core/payments/retry.rs | router | function_signature | 54 | rust | null | null | null | null | make_new_payment_attempt | null | null | null | null | null | null | null |
File: crates/api_models/src/disputes.rs
Public structs: 10
use std::collections::HashMap;
use common_utils::types::{StringMinorUnit, TimeRange};
use masking::{Deserialize, Serialize};
use serde::de::Error;
use time::PrimitiveDateTime;
use utoipa::ToSchema;
use super::enums::{Currency, DisputeStage, DisputeStatus};
... | crates/api_models/src/disputes.rs | api_models | full_file | 2,352 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct DomainInfo {
pub domain_identifier: DomainIdentifier,
pub domain_description: String,
} | crates/hyperswitch_constraint_graph/src/types.rs | hyperswitch_constraint_graph | struct_definition | 21 | rust | DomainInfo | null | null | null | null | null | null | null | null | null | null | null |
/// Schedule the task for retry
///
/// Returns bool which indicates whether this was the last retry or not
pub async fn retry_sync_task(
db: &dyn StorageInterface,
connector: String,
merchant_id: common_utils::id_type::MerchantId,
pt: storage::ProcessTracker,
) -> Result<bool, sch_errors::ProcessTracke... | crates/router/src/workflows/dispute_list.rs | router | function_signature | 184 | rust | null | null | null | null | retry_sync_task | null | null | null | null | null | null | null |
pub struct CardData {
card_data: cards::CardNumber,
expiration_month: Secret<String>,
expiration_year: Secret<String>,
#[serde(skip_serializing_if = "Option::is_none")]
security_code: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 52 | rust | CardData | null | null | null | null | null | null | null | null | null | null | null |
pub struct SyncErrorCode {
ds_errorcode: String,
} | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | struct_definition | 13 | rust | SyncErrorCode | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaypalNetworkTransactionReference {
id: String,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 13 | rust | PaypalNetworkTransactionReference | null | null | null | null | null | null | null | null | null | null | null |
pub struct WellsfargopayoutCard {
number: cards::CardNumber,
expiry_month: Secret<String>,
expiry_year: Secret<String>,
cvc: Secret<String>,
complete: bool,
} | crates/hyperswitch_connectors/src/connectors/wellsfargopayout/transformers.rs | hyperswitch_connectors | struct_definition | 44 | rust | WellsfargopayoutCard | null | null | null | null | null | null | null | null | null | null | null |
pub struct ItaubankErrorBody {
pub status: u16,
pub title: Option<String>,
pub detail: Option<String>,
pub violacoes: Option<Vec<Violations>>,
} | crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs | hyperswitch_connectors | struct_definition | 42 | rust | ItaubankErrorBody | null | null | null | null | null | null | null | null | null | null | null |
pub struct AuthorizedotnetTransactionResponseError {
_supplemental_data_qualification_indicator: i64,
} | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs | hyperswitch_connectors | struct_definition | 24 | rust | AuthorizedotnetTransactionResponseError | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ConnectorType
{
"type": "string",
"description": "Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking.",
"enum": [
"payment_processor",
"payment_vas",
"fin_operations",
"fiz_operations",
"networks",
"ba... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 125 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ConnectorType"
] | null | null | null | null |
/// Build UCS webhook transform request from webhook components
pub fn build_webhook_transform_request(
_webhook_body: &[u8],
request_details: &hyperswitch_interfaces::webhooks::IncomingWebhookRequestDetails<'_>,
webhook_secrets: Option<payments_grpc::WebhookSecrets>,
merchant_id: &str,
connector_id... | crates/router/src/core/unified_connector_service/transformers.rs | router | function_signature | 234 | rust | null | null | null | null | build_webhook_transform_request | null | null | null | null | null | null | null |
/// Get the default global tenant ID
pub fn get_default_global_tenant_id() -> Self {
Self(super::LengthId::new_unchecked(
super::AlphaNumericId::new_unchecked(DEFAULT_GLOBAL_TENANT_ID.to_string()),
))
} | crates/common_utils/src/id_type/tenant.rs | common_utils | function_signature | 55 | rust | null | null | null | null | get_default_global_tenant_id | null | null | null | null | null | null | null |
pub struct ApplePayTotalInfo {
pub label: String,
pub amount: StringMajorUnit,
} | crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | ApplePayTotalInfo | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorAuthentication for Gpayments {} | crates/hyperswitch_connectors/src/connectors/gpayments.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Gpayments | ConnectorAuthentication for | impl ConnectorAuthentication for for Gpayments | null | null | null | null | null | null | null | null |
impl RetryFeatureData {
/// Checks if step-up retry is possible.
pub fn is_step_up_possible(&self) -> bool {
self.step_up_possible
}
/// Checks if retry with PAN is possible.
pub fn is_clear_pan_possible(&self) -> bool {
self.clear_pan_possible
}
/// Checks if retry with al... | crates/common_types/src/domain.rs | common_types | impl_block | 140 | rust | null | RetryFeatureData | null | impl RetryFeatureData | null | null | null | null | null | null | null | null |
pub struct ProphetpayRefundSyncResponse {
pub success: bool,
pub response_text: String,
} | crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | ProphetpayRefundSyncResponse | null | null | null | null | null | null | null | null | null | null | null |
impl PaymentSync for Signifyd {} | crates/hyperswitch_connectors/src/connectors/signifyd.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Signifyd | PaymentSync for | impl PaymentSync for for Signifyd | null | null | null | null | null | null | null | null |
pub fn is_internal(&self) -> bool {
self.is_internal
} | crates/router/src/services/authorization/roles.rs | router | function_signature | 17 | rust | null | null | null | null | is_internal | null | null | null | null | null | null | null |
pub async fn get_tracking_id_from_configs(
state: &SessionState,
connector_id: &common_utils::id_type::MerchantConnectorAccountId,
connector: enums::Connector,
) -> RouterResult<String> {
let timestamp = state
.store
.find_config_by_key_unwrap_or(
&build_key(connector_id, con... | crates/router/src/utils/connector_onboarding.rs | router | function_signature | 138 | rust | null | null | null | null | get_tracking_id_from_configs | null | null | null | null | null | null | null |
impl Entity {
pub fn get_entity_type(&self) -> EntityType {
self.entity_type
}
pub fn get_entity_id(&self) -> &str {
&self.entity_id
}
} | crates/router/src/services/email/types.rs | router | impl_block | 44 | rust | null | Entity | null | impl Entity | null | null | null | null | null | null | null | null |
pub struct FraudMarkingInformation {
reason: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | FraudMarkingInformation | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_dotted_jwe(jwe: encryption::JweBody) -> String {
let header = jwe.header;
let encryption_key = jwe.encrypted_key;
let iv = jwe.iv;
let encryption_payload = jwe.encrypted_payload;
let tag = jwe.tag;
format!("{header}.{encryption_key}.{iv}.{encryption_payload}.{tag}")
} | crates/router/src/core/payment_methods/transformers.rs | router | function_signature | 81 | rust | null | null | null | null | get_dotted_jwe | null | null | null | null | null | null | null |
pub struct ProxyCardDetails {
/// Tokenized Card Number
#[schema(value_type = String,example = "tok_sjfowhoejsldj")]
pub card_number: masking::Secret<String>,
/// Card Expiry Month
#[schema(value_type = String,example = "10")]
pub card_exp_month: masking::Secret<String>,
/// Card Expiry Ye... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 358 | rust | ProxyCardDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct NovalnetPaymentsRequest {
merchant: NovalnetPaymentsRequestMerchant,
customer: NovalnetPaymentsRequestCustomer,
transaction: NovalnetPaymentsRequestTransaction,
custom: NovalnetCustom,
} | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | 47 | rust | NovalnetPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
pub fn parse_and_log_keys_in_url_encoded_response<T>(data: &[u8]) {
match std::str::from_utf8(data) {
Ok(query_str) => {
let loggable_keys = [
"status",
"orderid",
"tranID",
"nbcb",
"amount",
"currenc... | crates/hyperswitch_connectors/src/connectors/fiuu.rs | hyperswitch_connectors | function_signature | 232 | rust | null | null | null | null | parse_and_log_keys_in_url_encoded_response | null | null | null | null | null | null | null |
impl api::PaymentSync for Bluecode {} | crates/hyperswitch_connectors/src/connectors/bluecode.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Bluecode | api::PaymentSync for | impl api::PaymentSync for for Bluecode | null | null | null | null | null | null | null | null |
pub struct IntermediateSigningKey {
signed_key: Secret<String>,
signatures: Vec<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | IntermediateSigningKey | null | null | null | null | null | null | null | null | null | null | null |
pub trait RecoveryDeciderClientInterface: dyn_clone::DynClone + Send + Sync + Debug {
/// fn to call gRPC service
async fn decide_on_retry(
&mut self,
request_payload: DeciderRequest,
recovery_headers: super::GrpcRecoveryHeaders,
) -> RecoveryDeciderResult<DeciderResponse>;
} | crates/external_services/src/grpc_client/revenue_recovery/recovery_decider_client.rs | external_services | trait_definition | 74 | rust | null | null | RecoveryDeciderClientInterface | null | null | null | null | null | null | null | null | null |
pub async fn get_tokenized_data(
state: &routes::SessionState,
lookup_key: &str,
_should_get_value2: bool,
encryption_key: &masking::Secret<Vec<u8>>,
) -> RouterResult<api::TokenizePayloadRequest> {
let redis_key = get_redis_locker_key(lookup_key);
let func = || async {
metrics::GET_TOKE... | crates/router/src/core/payment_methods/vault.rs | router | function_signature | 433 | rust | null | null | null | null | get_tokenized_data | null | null | null | null | null | null | null |
File: crates/router/src/types/api/customers.rs
use api_models::customers;
pub use api_models::customers::{
CustomerDeleteResponse, CustomerListRequest, CustomerRequest, CustomerUpdateRequest,
CustomerUpdateRequestInternal,
};
#[cfg(feature = "v2")]
use hyperswitch_domain_models::customer;
use serde::Serialize;... | crates/router/src/types/api/customers.rs | router | full_file | 478 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn retrieve_mandates_list() {} | crates/openapi/src/routes/mandates.rs | openapi | function_signature | 10 | rust | null | null | null | null | retrieve_mandates_list | null | null | null | null | null | null | null |
pub async fn payment_link_retrieve(
state: web::Data<AppState>,
req: actix_web::HttpRequest,
path: web::Path<String>,
json_payload: web::Query<api_models::payments::RetrievePaymentLinkRequest>,
) -> impl Responder {
let flow = Flow::PaymentLinkRetrieve;
let payload = json_payload.into_inner();
... | crates/router/src/routes/payment_link.rs | router | function_signature | 208 | rust | null | null | null | null | payment_link_retrieve | null | null | null | null | null | null | null |
Documentation: api-reference/v1/payments/payments--confirm.mdx
# Type: Doc File
---
openapi: post /payments/{payment_id}/confirm
--- | api-reference/v1/payments/payments--confirm.mdx | null | doc_file | 35 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn trigger_refund_outgoing_webhook(
state: &SessionState,
merchant_account: &domain::MerchantAccount,
refund: &diesel_models::Refund,
profile_id: id_type::ProfileId,
key_store: &domain::MerchantKeyStore,
) -> RouterResult<()> {
todo!()
} | crates/router/src/utils.rs | router | function_signature | 71 | rust | null | null | null | null | trigger_refund_outgoing_webhook | null | null | null | null | null | null | null |
impl Stripebilling {
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMinorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/stripebilling.rs | hyperswitch_connectors | impl_block | 34 | rust | null | Stripebilling | null | impl Stripebilling | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/worldpayvantiv.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData};
use masking::Secret;
use router::types::{self, api, storage::enums};
use test_utils::connector_auth;
use crate::utils::{self, ConnectorActions};
#[derive(Clone, Copy)]
struct Worldpay... | crates/router/tests/connectors/worldpayvantiv.rs | router | full_file | 2,940 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl NuveiPaymentsGenericResponse for Capture {} | crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Capture | NuveiPaymentsGenericResponse for | impl NuveiPaymentsGenericResponse for for Capture | null | null | null | null | null | null | null | null |
pub struct SantanderRefundRequest {
#[serde(rename = "valor")]
pub value: StringMajorUnit,
} | crates/hyperswitch_connectors/src/connectors/santander/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | SantanderRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct RevokeMandateResponse {
data: DeletePaymentMethodFromVault,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | RevokeMandateResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct Sdk {
/// Universally unique ID created upon all installations and updates of the 3DS Requestor App on a Customer Device.
/// This will be newly generated and stored by the 3DS SDK for each installation or update. The field is limited to 36
/// characters and it shall have a canonical format as d... | crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs | hyperswitch_connectors | struct_definition | 1,553 | rust | Sdk | null | null | null | null | null | null | null | null | null | null | null |
impl RelayUpdate {
pub fn from(
response: Result<router_response_types::RefundsResponseData, ErrorResponse>,
) -> Self {
match response {
Err(error) => Self::ErrorUpdate {
error_code: error.code,
error_message: error.reason.unwrap_or(error.message),
... | crates/hyperswitch_domain_models/src/relay.rs | hyperswitch_domain_models | impl_block | 123 | rust | null | RelayUpdate | null | impl RelayUpdate | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Stripebilling {} | crates/hyperswitch_connectors/src/connectors/stripebilling.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Stripebilling | api::RefundExecute for | impl api::RefundExecute for for Stripebilling | null | null | null | null | null | null | null | null |
impl PaymentIntentInterface for KafkaStore {
type Error = errors::StorageError;
async fn update_payment_intent(
&self,
state: &KeyManagerState,
this: storage::PaymentIntent,
payment_intent: storage::PaymentIntentUpdate,
key_store: &domain::MerchantKeyStore,
storag... | crates/router/src/db/kafka_store.rs | router | impl_block | 1,827 | rust | null | KafkaStore | PaymentIntentInterface for | impl PaymentIntentInterface for for KafkaStore | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Billwerk {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&BILLWERK_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*BILLWERK_SUPPORTED_PAYMENT_METHODS)
}
fn get_s... | crates/hyperswitch_connectors/src/connectors/billwerk.rs | hyperswitch_connectors | impl_block | 108 | rust | null | Billwerk | ConnectorSpecifications for | impl ConnectorSpecifications for for Billwerk | null | null | null | null | null | null | null | null |
pub struct ProcessorConnected {
pub processor_id: id_type::MerchantConnectorAccountId,
pub processor_name: String,
} | crates/api_models/src/user/dashboard_metadata.rs | api_models | struct_definition | 25 | rust | ProcessorConnected | null | null | null | null | null | null | null | null | null | null | null |
pub struct DomainIdentifier(String); | crates/hyperswitch_constraint_graph/src/types.rs | hyperswitch_constraint_graph | struct_definition | 6 | rust | DomainIdentifier | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.SamsungPayWalletData
{
"type": "object",
"required": [
"payment_credential"
],
"properties": {
"payment_credential": {
"$ref": "#/components/schemas/SamsungPayWalletCredentials"
}
}
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 67 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"SamsungPayWalletData"
] | null | null | null | null |
pub fn get_debit_routing_decision_data(
network: common_enums::enums::CardNetwork,
debit_routing_result: Option<open_router::DebitRoutingOutput>,
) -> Self {
Self::DebitRouting(DebitRoutingDecisionData {
card_network: network,
debit_routing_result,
})
} | crates/router/src/core/routing/helpers.rs | router | function_signature | 69 | rust | null | null | null | null | get_debit_routing_decision_data | null | null | null | null | null | null | null |
pub fn analyze_program(js_program: JsValue) -> JsResult {
let program: ast::Program<ConnectorSelection> = serde_wasm_bindgen::from_value(js_program)?;
analyzer::analyze(program, SEED_DATA.get().map(|sd| &sd.cgraph)).err_to_js()?;
Ok(JsValue::NULL)
} | crates/euclid_wasm/src/lib.rs | euclid_wasm | function_signature | 70 | rust | null | null | null | null | analyze_program | null | null | null | null | null | null | null |
pub struct Status {
pub code: String,
pub description: String,
pub severity: String,
} | crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | Status | null | null | null | null | null | null | null | null | null | null | null |
impl PaymentToken for Plaid {} | crates/hyperswitch_connectors/src/connectors/plaid.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Plaid | PaymentToken for | impl PaymentToken for for Plaid | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/relay/{relay_id}"
{
"get": {
"tags": [
"Relay"
],
"summary": "Relay - Retrieve",
"description": "Retrieves a relay details.",
"operationId": "Retrieve a Relay details",
"parameters": [
{
"name": "relay_id",
"in": "path",
"descript... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 287 | .json | null | null | null | null | null | openapi_spec | paths | [
"/relay/{relay_id}"
] | null | null | null | null |
macro_rules! platform {
// (
// ) => {
// concat!(
// env!("VERGEN_SYSINFO_OS_VERSION"),
// " - ",
// env!("VERGEN_SYSINFO_CPU_BRAND"),
// )
// };
// } | crates/router_env/src/env.rs | router_env | macro | 53 | rust | null | null | null | null | null | null | null | null | declarative | null | null | null |
impl RevenueRecoveryPaymentsAttemptStatus {
pub(crate) async fn update_pt_status_based_on_attempt_status_for_execute_payment(
&self,
db: &dyn StorageInterface,
execute_task_process: &storage::ProcessTracker,
) -> Result<(), errors::ProcessTrackerError> {
logger::info!("Entering u... | crates/router/src/core/revenue_recovery/types.rs | router | impl_block | 1,415 | rust | null | RevenueRecoveryPaymentsAttemptStatus | null | impl RevenueRecoveryPaymentsAttemptStatus | null | null | null | null | null | null | null | null |
pub fn get_transaction_type(&self) -> api_enums::TransactionType {
match self.connector_type {
#[cfg(feature = "payouts")]
api_enums::ConnectorType::PayoutProcessor => api_enums::TransactionType::Payout,
_ => api_enums::TransactionType::Payment,
}
} | crates/api_models/src/admin.rs | api_models | function_signature | 70 | rust | null | null | null | null | get_transaction_type | null | null | null | null | null | null | null |
pub fn get_html_body(email_body: EmailBody) -> String {
match email_body {
EmailBody::Verify {
link,
entity_name,
entity_logo_url,
primary_color,
background_color,
foreground_color,
} => {
... | crates/router/src/services/email/types.rs | router | function_signature | 857 | rust | null | null | null | null | get_html_body | null | null | null | null | null | null | null |
impl db::payment_method_session::PaymentMethodsSessionInterface for KafkaStore {
async fn insert_payment_methods_session(
&self,
state: &KeyManagerState,
key_store: &hyperswitch_domain_models::merchant_key_store::MerchantKeyStore,
payment_methods_session: hyperswitch_domain_models::p... | crates/router/src/db/kafka_store.rs | router | impl_block | 380 | rust | null | KafkaStore | db::payment_method_session::PaymentMethodsSessionInterface for | impl db::payment_method_session::PaymentMethodsSessionInterface for for KafkaStore | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/locker_mock_up.rs
Public structs: 2
use diesel::{Identifiable, Insertable, Queryable, Selectable};
use crate::schema::locker_mock_up;
#[derive(Clone, Debug, Eq, Identifiable, Queryable, Selectable, PartialEq)]
#[diesel(table_name = locker_mock_up, primary_key(card_id), check_for_backe... | crates/diesel_models/src/locker_mock_up.rs | diesel_models | full_file | 390 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaystackRouterData<T> {
pub amount: MinorUnit,
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | hyperswitch_connectors | struct_definition | 24 | rust | PaystackRouterData | null | null | null | null | null | null | null | null | null | null | null |
impl api::Refund for Bambora {} | crates/hyperswitch_connectors/src/connectors/bambora.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Bambora | api::Refund for | impl api::Refund for for Bambora | null | null | null | null | null | null | null | null |
/// Generate a response from the given Data. This should be implemented on a payment data object
pub trait GenerateResponse<Response>
where
Self: Sized,
{
#[cfg(feature = "v2")]
#[allow(clippy::too_many_arguments)]
fn generate_response(
self,
state: &SessionState,
connector_http_... | crates/router/src/core/payments/transformers.rs | router | trait_definition | 139 | rust | null | null | GenerateResponse | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.VoucherData
{
"oneOf": [
{
"type": "object",
"required": [
"boleto"
],
"properties": {
"boleto": {
"$ref": "#/components/schemas/BoletoVoucherData"
}
}
},
{
"type": "string",
"enum": [
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 632 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"VoucherData"
] | null | null | null | null |
pub fn get_pending_captures(&self) -> Vec<&storage::Capture> {
self.all_captures
.iter()
.filter(|capture| capture.1.status == storage_enums::CaptureStatus::Pending)
.map(|key_value| key_value.1)
.collect()
} | crates/router/src/core/payments/types.rs | router | function_signature | 67 | rust | null | null | null | null | get_pending_captures | null | null | null | null | null | null | null |
impl NuveiPaymentsGenericResponse for PSync {} | crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | hyperswitch_connectors | impl_block | 11 | rust | null | PSync | NuveiPaymentsGenericResponse for | impl NuveiPaymentsGenericResponse for for PSync | null | null | null | null | null | null | null | null |
File: crates/router/src/services/kafka/refund_event.rs
Public functions: 2
Public structs: 2
#[cfg(feature = "v2")]
use common_utils::pii;
#[cfg(feature = "v2")]
use common_utils::types::{self, ChargeRefunds};
use common_utils::{
id_type,
types::{ConnectorTransactionIdTrait, MinorUnit},
};
use diesel_models:... | crates/router/src/services/kafka/refund_event.rs | router | full_file | 1,909 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct OpenSearchConfig {
host: String,
auth: OpenSearchAuth,
indexes: OpenSearchIndexes,
#[serde(default)]
enabled: bool,
} | crates/analytics/src/opensearch.rs | analytics | struct_definition | 36 | rust | OpenSearchConfig | null | null | null | null | null | null | null | null | null | null | null |
pub struct AuthenticationAuthenticateResponse {
/// Indicates the transaction status
#[serde(rename = "trans_status")]
#[schema(value_type = Option<TransactionStatus>)]
pub transaction_status: Option<common_enums::TransactionStatus>,
/// Access Server URL to be used for challenge submission
pub ... | crates/api_models/src/authentication.rs | api_models | struct_definition | 557 | rust | AuthenticationAuthenticateResponse | null | null | null | null | null | null | null | null | null | null | null |
impl SetupIntents {
pub fn server(state: routes::AppState) -> Scope {
web::scope("/setup_intents")
.app_data(web::Data::new(state))
.service(web::resource("").route(web::post().to(setup_intents_create)))
.service(
web::resource("/{setup_id}")
... | crates/router/src/compatibility/stripe/app.rs | router | impl_block | 131 | rust | null | SetupIntents | null | impl SetupIntents | null | null | null | null | null | null | null | null |
pub trait FrmMetric<T>
where
T: AnalyticsDataSource + FrmMetricAnalytics,
PrimitiveDateTime: ToSql<T>,
AnalyticsCollection: ToSql<T>,
Granularity: GroupByClause<T>,
Aggregate<&'static str>: ToSql<T>,
Window<&'static str>: ToSql<T>,
{
async fn load_metrics(
&self,
dimensions: ... | crates/analytics/src/frm/metrics.rs | analytics | trait_definition | 147 | rust | null | null | FrmMetric | null | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_convertor: &StringMajorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/nuvei.rs | hyperswitch_connectors | function_signature | 29 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
impl CustomerNew {
pub fn update_storage_scheme(&mut self, storage_scheme: common_enums::MerchantStorageScheme) {
self.updated_by = Some(storage_scheme.to_string());
}
} | crates/diesel_models/src/customers.rs | diesel_models | impl_block | 40 | rust | null | CustomerNew | null | impl CustomerNew | null | null | null | null | null | null | null | null |
pub struct SavePaymentMethodData<Req> {
request: Req,
response: Result<types::PaymentsResponseData, types::ErrorResponse>,
payment_method_token: Option<types::PaymentMethodToken>,
payment_method: PaymentMethod,
attempt_status: common_enums::AttemptStatus,
} | crates/router/src/core/payments/tokenization.rs | router | struct_definition | 62 | rust | SavePaymentMethodData | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_merchant_details_as_secret(
&self,
) -> CustomResult<Option<pii::SecretSerdeValue>, errors::ParsingError> {
self.merchant_details
.as_ref()
.map(|merchant_details| merchant_details.encode_to_value().map(Secret::new))
.transpose()
} | crates/api_models/src/admin.rs | api_models | function_signature | 69 | rust | null | null | null | null | get_merchant_details_as_secret | null | null | null | null | null | null | null |
pub struct PayPalIntegrationDone {
pub connector_id: String,
} | crates/api_models/src/connector_onboarding.rs | api_models | struct_definition | 14 | rust | PayPalIntegrationDone | null | null | null | null | null | null | null | null | null | null | null |
File: crates/common_utils/src/id_type/routing.rs
crate::id_type!(
RoutingId,
" A type for routing_id that can be used for routing ids"
);
crate::impl_id_type_methods!(RoutingId, "routing_id");
// This is to display the `RoutingId` as RoutingId(abcd)
crate::impl_debug_id_type!(RoutingId);
crate::impl_try_from... | crates/common_utils/src/id_type/routing.rs | common_utils | full_file | 193 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Signifyd {} | crates/hyperswitch_connectors/src/connectors/signifyd.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Signifyd | ConnectorValidation for | impl ConnectorValidation for for Signifyd | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/merchant-account/merchant-account--kv-status.mdx
# Type: Doc File
---
openapi: post /accounts/{account_id}/kv
--- | api-reference/v1/merchant-account/merchant-account--kv-status.mdx | null | doc_file | 38 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn update_subscription_entry(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
subscription_id: String,
subscription_update: SubscriptionUpdate,
) -> StorageResult<Self> {
generics::generic_update_with_results::<
<Self as HasTable>::... | crates/diesel_models/src/query/subscription.rs | diesel_models | function_signature | 168 | rust | null | null | null | null | update_subscription_entry | null | null | null | null | null | null | null |
pub fn new(
tenant_id: common_utils::id_type::TenantId,
merchant_id: Option<common_utils::id_type::MerchantId>,
api_flow: &impl FlowMetric,
request_id: &RequestId,
latency: u128,
status_code: i64,
request: serde_json::Value,
response: Option<serde_json::Va... | crates/router/src/events/api_logs.rs | router | function_signature | 353 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct Amount {
pub value: StringMajorUnit,
pub currency: enums::Currency,
} | crates/hyperswitch_connectors/src/connectors/tokenio/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | Amount | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Sift {} | crates/hyperswitch_connectors/src/connectors/sift.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Sift | api::PaymentVoid for | impl api::PaymentVoid for for Sift | 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.