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 AppStateInfo for AppState {
fn conf(&self) -> settings::Settings<RawSecret> {
self.conf.as_ref().to_owned()
}
#[cfg(feature = "email")]
fn email_client(&self) -> Arc<Box<dyn EmailService>> {
self.email_client.to_owned()
}
fn event_handler(&self) -> EventsHandler {
se... | crates/router/src/routes/app.rs | router | impl_block | 170 | rust | null | AppState | AppStateInfo for | impl AppStateInfo for for AppState | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Stax {} | crates/hyperswitch_connectors/src/connectors/stax.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Stax | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Stax | null | null | null | null | null | null | null | null |
pub async fn retrieve_mandates_list(
state: SessionState,
merchant_context: domain::MerchantContext,
constraints: api_models::mandates::MandateListConstraints,
) -> RouterResponse<Vec<api_models::mandates::MandateResponse>> {
let mandates = state
.store
.as_ref()
.find_mandates_b... | crates/router/src/core/mandate.rs | router | function_signature | 211 | rust | null | null | null | null | retrieve_mandates_list | null | null | null | null | null | null | null |
pub struct WalletSessionData {
pub terminal_uuid: Option<Secret<String>>,
pub pay_wall_secret: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | WalletSessionData | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_connector_with_networks(
connectors: &mut IntoIter<api::ConnectorRoutingData>,
) -> Option<(api::ConnectorData, enums::CardNetwork)> {
connectors.find_map(|connector| {
connector
.network
.map(|network| (connector.connector_data, network))
})
} | crates/router/src/core/payments.rs | router | function_signature | 68 | rust | null | null | null | null | get_connector_with_networks | null | null | null | null | null | null | null |
pub fn get_merchant_account(&self) -> &MerchantAccount {
match self {
Self::NormalMerchant(merchant_account) => &merchant_account.0,
}
} | crates/hyperswitch_domain_models/src/merchant_context.rs | hyperswitch_domain_models | function_signature | 38 | rust | null | null | null | null | get_merchant_account | null | null | null | null | null | null | null |
pub struct BluesnapWebhookObjectEventType {
transaction_type: BluesnapWebhookEvents,
cb_status: Option<BluesnapChargebackStatus>,
} | crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | hyperswitch_connectors | struct_definition | 33 | rust | BluesnapWebhookObjectEventType | null | null | null | null | null | null | null | null | null | null | null |
impl Profile {
#[cfg(feature = "v1")]
pub fn get_id(&self) -> &common_utils::id_type::ProfileId {
&self.profile_id
}
#[cfg(feature = "v2")]
pub fn get_id(&self) -> &common_utils::id_type::ProfileId {
&self.id
}
} | crates/diesel_models/src/business_profile.rs | diesel_models | impl_block | 75 | rust | null | Profile | null | impl Profile | null | null | null | null | null | null | null | null |
pub struct MerchantDefinedInformation {
key: u8,
value: String,
} | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | MerchantDefinedInformation | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentCapture for Inespay {} | crates/hyperswitch_connectors/src/connectors/inespay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Inespay | api::PaymentCapture for | impl api::PaymentCapture for for Inespay | null | null | null | null | null | null | null | null |
pub struct FiuuMandateRequest {
#[serde(rename = "0")]
mandate_request: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | FiuuMandateRequest | null | null | null | null | null | null | null | null | null | null | null |
- **core:** Use profile id to find connector ([#2020](https://github.com/juspay/hyperswitch/pull/2020)) ([`5b29c25`](https://github.com/juspay/hyperswitch/commit/5b29c25210ed118dcd97dafd608170c41b1fba58))
- **storage_impl:** Split payment attempt models to domain + diesel ([#2010](https://github.com/juspay/hyperswitch... | CHANGELOG.md#chunk52 | null | doc_chunk | 8,166 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentMethodMigrateResponse {
//payment method response when payment method entry is created
pub payment_method_response: PaymentMethodResponse,
//card data migration status
pub card_migrated: Option<bool>,
//network token data migration status
pub network_token_migrated: Option<bo... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 108 | rust | PaymentMethodMigrateResponse | null | null | null | null | null | null | null | null | null | null | null |
impl Chargebee {
pub fn new() -> &'static Self {
&Self {
amount_converter: &MinorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/chargebee.rs | hyperswitch_connectors | impl_block | 33 | rust | null | Chargebee | null | impl Chargebee | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Noon {} | crates/hyperswitch_connectors/src/connectors/noon.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Noon | api::PaymentVoid for | impl api::PaymentVoid for for Noon | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/refunds/refunds--create.mdx
# Type: Doc File
---
openapi: post /v2/refunds
--- | api-reference/v2/refunds/refunds--create.mdx | null | doc_file | 33 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentCapture for Wise {} | crates/hyperswitch_connectors/src/connectors/wise.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Wise | api::PaymentCapture for | impl api::PaymentCapture for for Wise | null | null | null | null | null | null | null | null |
/// Charge specific fields for controlling the revert of funds from either platform or connected account for Stripe. Check sub-fields for more details.
pub struct StripeSplitRefundRequest {
/// Toggle for reverting the application fee that was collected for the payment.
/// If set to false, the funds are pulled... | crates/common_types/src/refunds.rs | common_types | struct_definition | 118 | rust | StripeSplitRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub fn set_payment_method(
self,
payment_method: &'a domain::PaymentMethod,
) -> NetworkTokenizationBuilder<'a, PmTokenUpdated> {
let payment_method_response = api::PaymentMethodResponse {
merchant_id: payment_method.merchant_id.clone(),
customer_id: Some(payment_meth... | crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs | router | function_signature | 280 | rust | null | null | null | null | set_payment_method | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.GsmCreateRequest
{
"type": "object",
"required": [
"connector",
"flow",
"sub_flow",
"code",
"message",
"status",
"decision",
"step_up_possible",
"clear_pan_possible"
],
"properties": {
"connector": {
"$ref": "#/components/schem... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 591 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"GsmCreateRequest"
] | null | null | null | null |
pub fn is_backfill_required(metadata_key: DBEnum) -> bool {
matches!(
metadata_key,
DBEnum::StripeConnected | DBEnum::PaypalConnected
)
} | crates/router/src/utils/user/dashboard_metadata.rs | router | function_signature | 39 | rust | null | null | null | null | is_backfill_required | null | null | null | null | null | null | null |
pub struct Amount {
total_amount: StringMajorUnit,
currency: api_models::enums::Currency,
} | crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | Amount | null | null | null | null | null | null | null | null | null | null | null |
pub struct Instruction {
#[serde(skip_serializing_if = "Option::is_none")]
pub settlement: Option<AutoSettlement>,
pub method: PaymentMethod,
pub payment_instrument: PaymentInstrument,
pub narrative: InstructionNarrative,
pub value: PaymentValue,
#[serde(skip_serializing_if = "Option::is_non... | crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs | hyperswitch_connectors | struct_definition | 149 | rust | Instruction | null | null | null | null | null | null | null | null | null | null | null |
pub struct RedirectUrl {
pub redirect_url: String,
} | crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs | hyperswitch_connectors | struct_definition | 13 | rust | RedirectUrl | null | null | null | null | null | null | null | null | null | null | null |
pub struct MerchantAccount {
merchant_id: common_utils::id_type::MerchantId,
pub return_url: Option<String>,
pub enable_payment_response_hash: bool,
pub payment_response_hash_key: Option<String>,
pub redirect_to_merchant_with_http_post: bool,
pub merchant_name: Option<Encryption>,
pub mercha... | crates/diesel_models/src/merchant_account.rs | diesel_models | struct_definition | 390 | rust | MerchantAccount | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/core/api_locking.rs
Public functions: 2
Public structs: 1
use std::fmt::Debug;
use actix_web::rt::time as actix_time;
use error_stack::{report, ResultExt};
use redis_interface::{self as redis, RedisKey};
use router_env::{instrument, logger, tracing};
use super::errors::{self, RouterResult};... | crates/router/src/core/api_locking.rs | router | full_file | 2,032 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn 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::Customer>... | crates/router/src/core/payments.rs | router | function_signature | 985 | rust | null | null | null | null | call_connector_service | null | null | null | null | null | null | null |
pub struct BrowserInfo {
pub color_depth: Option<u8>,
pub java_enabled: Option<bool>,
pub java_script_enabled: Option<bool>,
pub language: Option<String>,
pub screen_height: Option<u32>,
pub screen_width: Option<u32>,
pub time_zone: Option<i32>,
pub ip_address: Option<std::net::IpAddr>,
... | crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs | hyperswitch_connectors | struct_definition | 130 | rust | BrowserInfo | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Coingate {} | crates/hyperswitch_connectors/src/connectors/coingate.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Coingate | api::PaymentToken for | impl api::PaymentToken for for Coingate | null | null | null | null | null | null | null | null |
pub struct PlacetopayRefundRequest {
auth: PlacetopayAuth,
internal_reference: u64,
action: PlacetopayNextAction,
authorization: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs | hyperswitch_connectors | struct_definition | 44 | rust | PlacetopayRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct OpenIdConnect {
pub name: OpenIdProvider,
pub base_url: String,
pub client_id: String,
pub client_secret: Secret<String>,
pub private_key: Option<Secret<String>>,
} | crates/api_models/src/user.rs | api_models | struct_definition | 47 | rust | OpenIdConnect | null | null | null | null | null | null | null | null | null | null | null |
pub struct JuspaythreedsserverPaymentsResponse {
status: JuspaythreedsserverPaymentStatus,
id: String,
} | crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs | hyperswitch_connectors | struct_definition | 31 | rust | JuspaythreedsserverPaymentsResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn files_create(
state: web::Data<AppState>,
req: HttpRequest,
payload: Multipart,
) -> HttpResponse {
let flow = Flow::CreateFile;
let create_file_request_result = transformers::get_create_file_request(payload).await;
let create_file_request = match create_file_request_result {
... | crates/router/src/routes/files.rs | router | function_signature | 244 | rust | null | null | null | null | files_create | null | null | null | null | null | null | null |
impl IncomingWebhook for Riskified {
fn get_webhook_source_verification_algorithm(
&self,
_request: &IncomingWebhookRequestDetails<'_>,
) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, ConnectorError> {
Ok(Box::new(crypto::HmacSha256))
}
fn get_webhook_source_verificat... | crates/hyperswitch_connectors/src/connectors/riskified.rs | hyperswitch_connectors | impl_block | 846 | rust | null | Riskified | IncomingWebhook for | impl IncomingWebhook for for Riskified | null | null | null | null | null | null | null | null |
pub async fn update_by_merchant_id_payout_id(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
payout_id: &common_utils::id_type::PayoutId,
payout: PayoutsUpdate,
) -> StorageResult<Self> {
generics::generic_update_with_results::<<Self as HasTable>::Table... | crates/diesel_models/src/query/payouts.rs | diesel_models | function_signature | 177 | rust | null | null | null | null | update_by_merchant_id_payout_id | null | null | null | null | null | null | null |
File: crates/analytics/src/api_event/core.rs
Public functions: 3
use std::collections::HashMap;
use api_models::analytics::{
api_event::{
ApiEventMetricsBucketIdentifier, ApiEventMetricsBucketValue, ApiLogsRequest,
ApiMetricsBucketResponse,
},
AnalyticsMetadata, ApiEventFiltersResponse, G... | crates/analytics/src/api_event/core.rs | analytics | full_file | 1,307 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ElavonResponseValidator for ElavonResult {
fn is_successful(&self) -> bool {
matches!(self, Self::Success(response) if response.ssl_result == SslResult::ImportedBatchFile)
}
} | crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | hyperswitch_connectors | impl_block | 49 | rust | null | ElavonResult | ElavonResponseValidator for | impl ElavonResponseValidator for for ElavonResult | null | null | null | null | null | null | null | null |
pub struct VaultFingerprintRequest {
pub data: String,
pub key: String,
} | crates/router/src/types/payment_methods.rs | router | struct_definition | 20 | rust | VaultFingerprintRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct ErrorResponse {
pub timestamp: Option<String>,
pub errors: Option<Vec<SubError>>,
pub status: Option<WiseHttpStatus>,
pub error: Option<String>,
pub error_description: Option<String>,
pub message: Option<String>,
pub path: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/wise/transformers.rs | hyperswitch_connectors | struct_definition | 60 | rust | ErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn remove_entry_from_blocklist(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<api_blocklist::DeleteFromBlocklistRequest>,
) -> HttpResponse {
let flow = Flow::DeleteFromBlocklist;
Box::pin(api::server_wrap(
flow,
state,
&req,
json_pay... | crates/router/src/routes/blocklist.rs | router | function_signature | 221 | rust | null | null | null | null | remove_entry_from_blocklist | null | null | null | null | null | null | null |
pub fn insert_locales_in_context_for_payout_link(context: &mut Context, locale: &str) {
let language = get_language(locale);
let locale = language.as_str();
let i18n_payout_link_title = t!("payout_link.initiate.title", locale = locale);
let i18n_january = t!("months.january", locale = locale);
let i... | crates/router/src/services/api/generic_link_response/context.rs | router | function_signature | 667 | rust | null | null | null | null | insert_locales_in_context_for_payout_link | null | null | null | null | null | null | null |
File: crates/router/src/db/refund.rs
#[cfg(feature = "olap")]
use std::collections::{HashMap, HashSet};
#[cfg(feature = "olap")]
use common_utils::types::{ConnectorTransactionIdTrait, MinorUnit};
use diesel_models::{errors::DatabaseError, refund as diesel_refund};
use hyperswitch_domain_models::refunds;
use super::M... | crates/router/src/db/refund.rs#chunk0 | router | chunk | 8,192 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct NextAction {
pub action: String,
pub url: String,
} | crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | NextAction | null | null | null | null | null | null | null | null | null | null | null |
pub struct MerchantAccountNew {
pub merchant_name: Option<Encryption>,
pub merchant_details: Option<Encryption>,
pub publishable_key: Option<String>,
pub metadata: Option<pii::SecretSerdeValue>,
pub created_at: time::PrimitiveDateTime,
pub modified_at: time::PrimitiveDateTime,
pub organizati... | crates/diesel_models/src/merchant_account.rs | diesel_models | struct_definition | 155 | rust | MerchantAccountNew | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.UpdateScorePayload
{
"type": "object",
"required": [
"merchantId",
"gateway",
"status",
"paymentId"
],
"properties": {
"merchantId": {
"type": "string"
},
"gateway": {
"type": "string"
},
"status": {
"$ref": "#/componen... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 117 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"UpdateScorePayload"
] | null | null | null | null |
File: crates/router/src/types/api/routing.rs
Public structs: 3
pub use api_models::{
enums as api_enums,
routing::{
ConnectorVolumeSplit, RoutableChoiceKind, RoutableConnectorChoice, RoutingAlgorithmKind,
RoutingAlgorithmRef, RoutingConfigRequest, RoutingDictionary, RoutingDictionaryRecord,
... | crates/router/src/types/api/routing.rs | router | full_file | 285 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct Flow {
pub return_url: String,
} | crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | hyperswitch_connectors | struct_definition | 12 | rust | Flow | null | null | null | null | null | null | null | null | null | null | null |
pub fn add_certificate_key(mut self, certificate_key: Option<Secret<String>>) -> Self {
self.certificate_key = certificate_key;
self
} | crates/common_utils/src/request.rs | common_utils | function_signature | 33 | rust | null | null | null | null | add_certificate_key | null | null | null | null | null | null | null |
impl DashboardMetadataInterface for KafkaStore {
async fn insert_metadata(
&self,
metadata: storage::DashboardMetadataNew,
) -> CustomResult<storage::DashboardMetadata, errors::StorageError> {
self.diesel_store.insert_metadata(metadata).await
}
async fn update_metadata(
... | crates/router/src/db/kafka_store.rs | router | impl_block | 559 | rust | null | KafkaStore | DashboardMetadataInterface for | impl DashboardMetadataInterface for for KafkaStore | null | null | null | null | null | null | null | null |
pub fn perform_routing_for_single_straight_through_algorithm(
algorithm: &routing_types::StraightThroughAlgorithm,
) -> RoutingResult<Vec<routing_types::RoutableConnectorChoice>> {
Ok(match algorithm {
routing_types::StraightThroughAlgorithm::Single(connector) => vec![(**connector).clone()],
ro... | crates/router/src/core/payments/routing.rs | router | function_signature | 125 | rust | null | null | null | null | perform_routing_for_single_straight_through_algorithm | null | null | null | null | null | null | null |
pub fn calculate_check_sum(
req: FiuuRecurringRequest,
) -> CustomResult<Secret<String>, errors::ConnectorError> {
let formatted_string = format!(
"{}{}{}{}{}{}{}",
req.record_type,
req.merchant_id.peek(),
req.token.peek(),
req.order_id,
req.currency,
req.... | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | function_signature | 132 | rust | null | null | null | null | calculate_check_sum | null | null | null | null | null | null | null |
pub struct GenerateSaleResponse {
payme_sale_id: String,
} | crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | GenerateSaleResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct UserEmail(pii::Email); | crates/router/src/types/domain/user.rs | router | struct_definition | 9 | rust | UserEmail | null | null | null | null | null | null | null | null | null | null | null |
pub async fn find_by_merchant_id_connector_mandate_id(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
connector_mandate_id: &str,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
dsl::mercha... | crates/diesel_models/src/query/mandate.rs | diesel_models | function_signature | 121 | rust | null | null | null | null | find_by_merchant_id_connector_mandate_id | null | null | null | null | null | null | null |
impl api::Payment for Shift4 {} | crates/hyperswitch_connectors/src/connectors/shift4.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Shift4 | api::Payment for | impl api::Payment for for Shift4 | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Iatapay {} | crates/hyperswitch_connectors/src/connectors/iatapay.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Iatapay | api::PaymentSession for | impl api::PaymentSession for for Iatapay | null | null | null | null | null | null | null | null |
pub struct Webhooks; | crates/router/src/compatibility/stripe/app.rs | router | struct_definition | 5 | rust | Webhooks | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.RelayStatus
{
"type": "string",
"enum": [
"created",
"pending",
"success",
"failure"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 44 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"RelayStatus"
] | null | null | null | null |
pub async fn payment_method_update_api() {} | crates/openapi/src/routes/payment_method.rs | openapi | function_signature | 9 | rust | null | null | null | null | payment_method_update_api | null | null | null | null | null | null | null |
pub trait AuthServiceLinkToken:
super::ConnectorIntegration<LinkToken, LinkTokenRequest, LinkTokenResponse>
{
} | crates/pm_auth/src/types/api/auth_service.rs | pm_auth | trait_definition | 24 | rust | null | null | AuthServiceLinkToken | null | null | null | null | null | null | null | null | null |
pub struct DeleteCardResp {
pub status: String,
pub error_message: Option<String>,
pub error_code: Option<String>,
} | crates/payment_methods/src/controller.rs | payment_methods | struct_definition | 29 | rust | DeleteCardResp | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Elavon {} | crates/hyperswitch_connectors/src/connectors/elavon.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Elavon | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Elavon | null | null | null | null | null | null | null | null |
pub fn new() -> Self {
Self {
domain: DenseMap::new(),
nodes: DenseMap::new(),
edges: DenseMap::new(),
domain_identifier_map: FxHashMap::default(),
value_map: FxHashMap::default(),
edges_map: FxHashMap::default(),
node_info: Den... | crates/hyperswitch_constraint_graph/src/builder.rs | hyperswitch_constraint_graph | function_signature | 87 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub async fn create_recipient_disburse_account(
state: &SessionState,
merchant_context: &domain::MerchantContext,
connector_data: &api::ConnectorData,
payout_data: &mut PayoutData,
) -> RouterResult<()> {
// 1. Form Router data
let router_data = core_utils::construct_payout_router_data(
... | crates/router/src/core/payouts.rs | router | function_signature | 1,368 | rust | null | null | null | null | create_recipient_disburse_account | null | null | null | null | null | null | null |
pub struct InespayErrorResponse {
pub status: String,
pub status_desc: String,
} | crates/hyperswitch_connectors/src/connectors/inespay/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | InespayErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct HealthCheckClient {
/// Health clients for all gRPC based services
pub clients: HashMap<HealthCheckServices, HealthClient<Client>>,
} | crates/external_services/src/grpc_client/health_check_client.rs | external_services | struct_definition | 32 | rust | HealthCheckClient | null | null | null | null | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Noon {
fn get_webhook_source_verification_algorithm(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> {
Ok(Box::new(crypto::HmacSha512))
}
fn get_w... | crates/hyperswitch_connectors/src/connectors/noon.rs | hyperswitch_connectors | impl_block | 873 | rust | null | Noon | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Noon | null | null | null | null | null | null | null | null |
impl api::Payment for Cashtocode {} | crates/hyperswitch_connectors/src/connectors/cashtocode.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Cashtocode | api::Payment for | impl api::Payment for for Cashtocode | null | null | null | null | null | null | null | null |
pub struct LinkTokenCreateResponse {
pub link_token: String, // link_token received in response
pub connector: String, // pm_auth connector name in response
} | crates/api_models/src/pm_auth.rs | api_models | struct_definition | 37 | rust | LinkTokenCreateResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PayoutsMandateReferenceRecord {
pub transfer_method_id: Option<String>,
} | crates/diesel_models/src/payment_method.rs | diesel_models | struct_definition | 21 | rust | PayoutsMandateReferenceRecord | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/refunds/accumulator.rs
Public functions: 1
Public structs: 9
use api_models::analytics::refunds::{
ErrorMessagesResult, ReasonsResult, RefundMetricsBucketValue,
};
use bigdecimal::ToPrimitive;
use diesel_models::enums as storage_enums;
use super::{distribution::RefundDistributionRow, ... | crates/analytics/src/refunds/accumulator.rs | analytics | full_file | 2,165 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct AirwallexPaymentsSyncResponse {
status: AirwallexPaymentStatus,
//Unique identifier for the PaymentIntent
id: String,
amount: Option<f32>,
//ID of the PaymentConsent related to this PaymentIntent
payment_consent_id: Option<Secret<String>>,
next_action: Option<AirwallexPaymentsNext... | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | 79 | rust | AirwallexPaymentsSyncResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/euclid/src/dssa/state_machine.rs
Public functions: 10
Public structs: 3
use super::types::EuclidAnalysable;
use crate::{dssa::types, frontend::dir, types::Metadata};
#[derive(Debug, Clone, serde::Serialize, thiserror::Error)]
#[serde(tag = "type", content = "info", rename_all = "snake_case")]
pub enum ... | crates/euclid/src/dssa/state_machine.rs | euclid | full_file | 4,790 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/openapi/src/routes/tokenization.rs
Public functions: 2
use serde_json::json;
use utoipa::OpenApi;
/// Tokenization - Create
///
/// Create a token with customer_id
#[cfg(feature = "v2")]
#[utoipa::path(
post,
path = "/v2/tokenize",
request_body(
content = GenericTokenizationRequest,
... | crates/openapi/src/routes/tokenization.rs | openapi | full_file | 606 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.BankTransferResponse
{
"allOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BankTransferAdditionalData"
}
],
"nullable": true
},
{
"type": "object"
}
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 71 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"BankTransferResponse"
] | null | null | null | null |
pub struct AveragePaymentTime; | crates/api_models/src/analytics/sdk_events.rs | api_models | struct_definition | 6 | rust | AveragePaymentTime | null | null | null | null | null | null | null | null | null | null | null |
pub struct JCSVoucherData {} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 7 | rust | JCSVoucherData | null | null | null | null | null | null | null | null | null | null | null |
pub struct DisputeMetricsBucketResponse {
#[serde(flatten)]
pub values: DisputeMetricsBucketValue,
#[serde(flatten)]
pub dimensions: DisputeMetricsBucketIdentifier,
} | crates/api_models/src/analytics/disputes.rs | api_models | struct_definition | 41 | rust | DisputeMetricsBucketResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct GatewayStatusMap {
pub connector: String,
pub flow: String,
pub sub_flow: String,
pub code: String,
pub message: String,
pub status: String,
pub router_error: Option<String>,
pub unified_code: Option<String>,
pub unified_message: Option<String>,
pub error_category: Opt... | crates/hyperswitch_domain_models/src/gsm.rs | hyperswitch_domain_models | struct_definition | 109 | rust | GatewayStatusMap | null | null | null | null | null | null | null | null | null | null | null |
pub struct DisputeResponsePaymentsRetrieve {
/// The identifier for dispute
pub dispute_id: String,
/// Stage of the dispute
pub dispute_stage: DisputeStage,
/// Status of the dispute
pub dispute_status: DisputeStatus,
/// Status of the dispute sent by connector
pub connector_status: Str... | crates/api_models/src/disputes.rs | api_models | struct_definition | 288 | rust | DisputeResponsePaymentsRetrieve | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_cache_key_from_role_id(role_id: &str) -> String {
format!("{}{}", consts::ROLE_INFO_CACHE_PREFIX, role_id)
} | crates/router/src/services/authorization.rs | router | function_signature | 33 | rust | null | null | null | null | get_cache_key_from_role_id | null | null | null | null | null | null | null |
pub struct SchemaParameters {
pub value_type: Option<TypePath>,
pub min_length: Option<usize>,
pub max_length: Option<usize>,
pub example: Option<String>,
} | crates/router_derive/src/macros/schema/helpers.rs | router_derive | struct_definition | 38 | rust | SchemaParameters | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_assertion(&self) -> Option<&dir::DirValue> {
if let Self::Assertion(val) = self {
Some(val)
} else {
None
}
} | crates/euclid/src/dssa/types.rs | euclid | function_signature | 43 | rust | null | null | null | null | get_assertion | null | null | null | null | null | null | null |
/// Set the private fields of merchant account
pub struct MerchantAccountSetter {
pub merchant_id: common_utils::id_type::MerchantId,
pub return_url: Option<String>,
pub enable_payment_response_hash: bool,
pub payment_response_hash_key: Option<String>,
pub redirect_to_merchant_with_http_post: bool,
... | crates/hyperswitch_domain_models/src/merchant_account.rs | hyperswitch_domain_models | struct_definition | 383 | rust | MerchantAccountSetter | null | null | null | null | null | null | null | null | null | null | null |
impl api::Refund for Novalnet {} | crates/hyperswitch_connectors/src/connectors/novalnet.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Novalnet | api::Refund for | impl api::Refund for for Novalnet | null | null | null | null | null | null | null | null |
pub struct CybersourceConsumerAuthValidateResponse {
ucaf_collection_indicator: Option<String>,
cavv: Option<Secret<String>>,
ucaf_authentication_data: Option<Secret<String>>,
xid: Option<String>,
specification_version: Option<SemanticVersion>,
directory_server_transaction_id: Option<Secret<Stri... | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 74 | rust | CybersourceConsumerAuthValidateResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct GlobalPaymentMethodSessionId(GlobalId); | crates/common_utils/src/id_type/global_id/payment_methods.rs | common_utils | struct_definition | 10 | rust | GlobalPaymentMethodSessionId | null | null | null | null | null | null | null | null | null | null | null |
pub struct StripePaymentMethodDetails {
#[serde(rename = "type")]
pub type_of_payment_method: StripebillingPaymentMethod,
#[serde(rename = "card")]
pub card_details: StripeBillingCardDetails,
} | crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs | hyperswitch_connectors | struct_definition | 46 | rust | StripePaymentMethodDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct AciRefundResponse {
id: String,
//ndc is an internal unique identifier for the request.
ndc: String,
timestamp: String,
build_number: String,
pub(super) result: ResultCode,
} | crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | hyperswitch_connectors | struct_definition | 53 | rust | AciRefundResponse | null | null | null | null | null | null | null | null | null | null | null |
impl common_utils::events::ApiEventMetric for FeatureMatrixRequest {} | crates/api_models/src/feature_matrix.rs | api_models | impl_block | 14 | rust | null | FeatureMatrixRequest | common_utils::events::ApiEventMetric for | impl common_utils::events::ApiEventMetric for for FeatureMatrixRequest | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Placetopay {} | crates/hyperswitch_connectors/src/connectors/placetopay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Placetopay | ConnectorValidation for | impl ConnectorValidation for for Placetopay | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Blackhawknetwork {} | crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Blackhawknetwork | api::PaymentSync for | impl api::PaymentSync for for Blackhawknetwork | null | null | null | null | null | null | null | null |
pub struct RecordMigrationStatusBuilder {
pub card_migrated: Option<bool>,
pub network_token_migrated: Option<bool>,
pub connector_mandate_details_migrated: Option<bool>,
pub network_transaction_migrated: Option<bool>,
} | crates/payment_methods/src/core/migration.rs | payment_methods | struct_definition | 50 | rust | RecordMigrationStatusBuilder | null | null | null | null | null | null | null | null | null | null | null |
/// Secret thing.
///
/// To get access to value use method `expose()` of trait [`crate::ExposeInterface`].
pub struct StrongSecret<Secret: ZeroizableSecret, MaskingStrategy = crate::WithType> {
/// Inner secret value
pub(crate) inner_secret: Secret,
pub(crate) masking_strategy: PhantomData<MaskingStrategy>... | crates/masking/src/strong_secret.rs | masking | struct_definition | 76 | rust | StrongSecret | null | null | null | null | null | null | null | null | null | null | null |
pub async fn generate_fingerprint(
payment_method_data: Option<&api_models::payments::PaymentMethodData>,
business_profile: &domain::Profile,
) -> RouterResult<Secret<String>> {
let card_testing_secret_key = &business_profile.card_testing_secret_key;
match card_testing_secret_key {
Some(card_te... | crates/router/src/core/card_testing_guard/utils.rs | router | function_signature | 297 | rust | null | null | null | null | generate_fingerprint | null | null | null | null | null | null | null |
| WorldpayvantivResponseCode::InsufficientDataToUpdateSubscription
| WorldpayvantivResponseCode::InvalidBillingDate
| WorldpayvantivResponseCode::DiscountCodeAlreadyExists
| WorldpayvantivResponseCode::PlanCodeAlreadyExists
| WorldpayvantivResponseCode::TheAcc... | crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs#chunk4 | hyperswitch_connectors | chunk | 8,191 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentAttemptRevenueRecoveryData {
pub attempt_triggered_by: common_enums::TriggeredBy,
// stripe specific field used to identify duplicate attempts.
pub charge_id: Option<String>,
} | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | struct_definition | 42 | rust | PaymentAttemptRevenueRecoveryData | null | null | null | null | null | null | null | null | null | null | null |
impl super::refunds::filters::RefundFilterAnalytics for SqlxClient {} | crates/analytics/src/sqlx.rs | analytics | impl_block | 17 | rust | null | SqlxClient | super::refunds::filters::RefundFilterAnalytics for | impl super::refunds::filters::RefundFilterAnalytics for for SqlxClient | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs
Public functions: 1
Public structs: 2
use api_models::payments::QrCodeInformation;
use common_enums::{enums, PaymentMethod};
use common_utils::{
errors::CustomResult,
ext_traits::{BytesExt, Encode},
new_type::MaskedBankAccount... | crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs | hyperswitch_connectors | full_file | 4,849 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl<T, A> Message for FlatMapEvent<T, A>
where
A: Event<EventType = T>,
{
type Class = T;
fn get_message_class(&self) -> Self::Class {
self.1.class()
}
fn identifier(&self) -> String {
self.1.identifier()
}
} | crates/events/src/lib.rs | events | impl_block | 71 | rust | null | FlatMapEvent | Message for | impl Message for for FlatMapEvent | 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.