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 Address {
pub address_id: String,
pub city: Option<String>,
pub country: Option<enums::CountryAlpha2>,
pub line1: Option<Encryption>,
pub line2: Option<Encryption>,
pub line3: Option<Encryption>,
pub state: Option<Encryption>,
pub zip: Option<Encryption>,
pub first_name: O... | crates/diesel_models/src/address.rs | diesel_models | struct_definition | 194 | rust | Address | null | null | null | null | null | null | null | null | null | null | null |
pub async fn update_merchant(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<common_utils::id_type::MerchantId>,
json_payload: web::Json<recon_api::ReconUpdateMerchantRequest>,
) -> HttpResponse {
let flow = Flow::ReconMerchantUpdate;
let merchant_id = path.into_inner();
Box:... | crates/router/src/routes/recon.rs | router | function_signature | 162 | rust | null | null | null | null | update_merchant | null | null | null | null | null | null | null |
impl StrongEq for String {
fn strong_eq(&self, other: &Self) -> bool {
let lhs = self.as_bytes();
let rhs = other.as_bytes();
bool::from(lhs.ct_eq(rhs))
}
} | crates/masking/src/strong_secret.rs | masking | impl_block | 49 | rust | null | String | StrongEq for | impl StrongEq for for String | null | null | null | null | null | null | null | null |
pub async fn get_aggregates_for_disputes(
state: SessionState,
merchant_context: domain::MerchantContext,
profile_id_list: Option<Vec<common_utils::id_type::ProfileId>>,
time_range: common_utils::types::TimeRange,
) -> RouterResponse<dispute_models::DisputesAggregateResponse> {
let db = state.store.... | crates/router/src/core/disputes.rs | router | function_signature | 240 | rust | null | null | null | null | get_aggregates_for_disputes | null | null | null | null | null | null | null |
pub fn with_config_path(config_path: Option<PathBuf>) -> Result<Self, errors::DrainerError> {
// Configuration values are picked up in the following priority order (1 being least
// priority):
// 1. Defaults from the implementation of the `Default` trait.
// 2. Values from config file. T... | crates/drainer/src/settings.rs | drainer | function_signature | 390 | rust | null | null | null | null | with_config_path | null | null | null | null | null | null | null |
impl PaymentUpdate {
fn populate_payment_attempt_with_request(
payment_attempt: &mut storage::PaymentAttempt,
request: &api::PaymentsRequest,
) {
request
.business_sub_label
.clone()
.map(|bsl| payment_attempt.business_sub_label.replace(bsl));
... | crates/router/src/core/payments/operations/payment_update.rs | router | impl_block | 351 | rust | null | PaymentUpdate | null | impl PaymentUpdate | null | null | null | null | null | null | null | null |
impl Organization {
pub fn new(org_new: OrganizationNew) -> Self {
let OrganizationNew {
org_id,
org_name,
organization_details,
metadata,
created_at,
modified_at,
id: _,
organization_name: _,
version... | crates/diesel_models/src/organization.rs | diesel_models | impl_block | 166 | rust | null | Organization | null | impl Organization | null | null | null | null | null | null | null | null |
pub fn permanent_card(
payment_method_id: common_utils::id_type::GlobalPaymentMethodId,
locker_id: Option<String>,
token: String,
) -> Self {
Self::PermanentCard(CardTokenData {
payment_method_id,
locker_id,
token,
})
} | crates/router/src/types/storage/payment_method.rs | router | function_signature | 63 | rust | null | null | null | null | permanent_card | null | null | null | null | null | null | null |
pub struct Chargebee {
amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/chargebee.rs | hyperswitch_connectors | struct_definition | 26 | rust | Chargebee | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentMethodCreateWrapper(pub api::payment_methods::PaymentMethodCreate); | crates/router/src/core/webhooks/network_tokenization_incoming.rs | router | struct_definition | 16 | rust | PaymentMethodCreateWrapper | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_multiple_dashboard_metadata(
state: web::Data<AppState>,
req: HttpRequest,
query: web::Query<user_api::dashboard_metadata::GetMultipleMetaDataRequest>,
) -> HttpResponse {
let flow = Flow::GetMultipleDashboardMetadata;
let payload = match ReportSwitchExt::<_, ApiErrorResponse>::swit... | crates/router/src/routes/user.rs | router | function_signature | 174 | rust | null | null | null | null | get_multiple_dashboard_metadata | null | null | null | null | null | null | null |
pub struct RedsysOperationsResponse {
#[serde(rename = "Ds_Order")]
ds_order: String,
#[serde(rename = "Ds_Response")]
ds_response: DsResponse,
#[serde(rename = "Ds_AuthorisationCode")]
ds_authorisation_code: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | struct_definition | 61 | rust | RedsysOperationsResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/core/utils/refunds_transformers.rs
Public structs: 1
pub struct SplitRefundInput {
pub refund_request: Option<common_types::refunds::SplitRefund>,
pub payment_charges: Option<common_types::payments::ConnectorChargeResponseData>,
pub split_payment_request: Option<common_types::payme... | crates/router/src/core/utils/refunds_transformers.rs | router | full_file | 87 | null | null | null | null | null | null | null | null | null | null | null | null | null |
/// Get tenant id from String
pub fn try_from_string(tenant_id: String) -> CustomResult<Self, ValidationError> {
Self::try_from(std::borrow::Cow::from(tenant_id))
} | crates/common_utils/src/id_type/tenant.rs | common_utils | function_signature | 45 | rust | null | null | null | null | try_from_string | null | null | null | null | null | null | null |
pub fn get_request_extended_authorization_bool_if_connector_supports(
&self,
connector: common_enums::connector_enums::Connector,
always_request_extended_authorization_optional: Option<AlwaysRequestExtendedAuthorization>,
payment_method_optional: Option<common_enums::PaymentMethod>,
... | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | function_signature | 425 | rust | null | null | null | null | get_request_extended_authorization_bool_if_connector_supports | null | null | null | null | null | null | null |
File: crates/api_models/src/analytics/outgoing_webhook_event.rs
Public structs: 1
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct OutgoingWebhookLogsRequest {
pub payment_id: common_utils::id_type::PaymentId,
pub event_id: Option<String>,
pub refund_id: Option<String>,
pub dis... | crates/api_models/src/analytics/outgoing_webhook_event.rs | api_models | full_file | 108 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn is_three_ds_authentication(self) -> bool {
matches!(self, Self::ThreeDsAuthentication)
} | crates/common_enums/src/enums.rs | common_enums | function_signature | 24 | rust | null | null | null | null | is_three_ds_authentication | null | null | null | null | null | null | null |
impl super::payments::filters::PaymentFilterAnalytics for SqlxClient {} | crates/analytics/src/sqlx.rs | analytics | impl_block | 15 | rust | null | SqlxClient | super::payments::filters::PaymentFilterAnalytics for | impl super::payments::filters::PaymentFilterAnalytics for for SqlxClient | null | null | null | null | null | null | null | null |
pub async fn decide_connector<F, D>(
state: SessionState,
merchant_context: &domain::MerchantContext,
business_profile: &domain::Profile,
payment_data: &mut D,
request_straight_through: Option<api::routing::StraightThroughAlgorithm>,
routing_data: &mut storage::RoutingData,
eligible_connecto... | crates/router/src/core/payments.rs | router | function_signature | 2,162 | rust | null | null | null | null | decide_connector | null | null | null | null | null | null | null |
pub struct CybersourceServerErrorResponse {
pub status: Option<String>,
pub message: Option<String>,
pub reason: Option<Reason>,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 31 | rust | CybersourceServerErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Worldpayvantiv {} | crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs | hyperswitch_connectors | impl_block | 13 | rust | null | Worldpayvantiv | api::MandateSetup for | impl api::MandateSetup for for Worldpayvantiv | null | null | null | null | null | null | null | null |
File: crates/router/src/services/kafka/authentication.rs
Public functions: 1
Public structs: 1
use diesel_models::{authentication::Authentication, enums as storage_enums};
use time::OffsetDateTime;
#[derive(serde::Serialize, Debug)]
pub struct KafkaAuthentication<'a> {
pub authentication_id: &'a common_utils::i... | crates/router/src/services/kafka/authentication.rs | router | full_file | 1,110 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ExternalAuthentication for Netcetera {} | crates/hyperswitch_connectors/src/connectors/netcetera.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Netcetera | ExternalAuthentication for | impl ExternalAuthentication for for Netcetera | null | null | null | null | null | null | null | null |
pub async fn get_payments_aggregates_profile(
state: web::Data<app::AppState>,
req: actix_web::HttpRequest,
payload: web::Query<common_utils::types::TimeRange>,
) -> impl Responder {
let flow = Flow::PaymentsAggregate;
let payload = payload.into_inner();
Box::pin(api::server_wrap(
flow,
... | crates/router/src/routes/payments.rs | router | function_signature | 209 | rust | null | null | null | null | get_payments_aggregates_profile | null | null | null | null | null | null | null |
impl api::MandateSetup for Multisafepay {} | crates/hyperswitch_connectors/src/connectors/multisafepay.rs | hyperswitch_connectors | impl_block | 14 | rust | null | Multisafepay | api::MandateSetup for | impl api::MandateSetup for for Multisafepay | null | null | null | null | null | null | null | null |
pub struct RevenueRecoveryInvoice(revenue_recovery::RevenueRecoveryInvoiceData); | crates/router/src/core/webhooks/recovery_incoming.rs | router | struct_definition | 16 | rust | RevenueRecoveryInvoice | null | null | null | null | null | null | null | null | null | null | null |
pub fn supports_file_storage_module(self) -> bool {
matches!(self, Self::Stripe | Self::Checkout | Self::Worldpayvantiv)
} | crates/common_enums/src/connector_enums.rs | common_enums | function_signature | 33 | rust | null | null | null | null | supports_file_storage_module | null | null | null | null | null | null | null |
pub struct ClickhouseClient {
pub config: Arc<ClickhouseConfig>,
pub database: String,
} | crates/analytics/src/clickhouse.rs | analytics | struct_definition | 23 | rust | ClickhouseClient | null | null | null | null | null | null | null | null | null | null | null |
pub struct NovalnetRefundResponse {
pub customer: Option<NovalnetResponseCustomer>,
pub merchant: Option<NovalnetResponseMerchant>,
pub result: ResultData,
pub transaction: Option<NovalnetRefundsTransactionData>,
} | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | 55 | rust | NovalnetRefundResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct Helcim {
amount_convertor: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/helcim.rs | hyperswitch_connectors | struct_definition | 29 | rust | Helcim | null | null | null | null | null | null | null | null | null | null | null |
pub struct ExternalVaultTokenData {
/// Tokenized reference for Card Number
pub tokenized_card_number: masking::Secret<String>,
} | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 29 | rust | ExternalVaultTokenData | null | null | null | null | null | null | null | null | null | null | null |
impl Tokenizable for SetupMandateRequestData {
fn set_session_token(&mut self, _token: Option<String>) {}
} | crates/router/src/types.rs | router | impl_block | 28 | rust | null | SetupMandateRequestData | Tokenizable for | impl Tokenizable for for SetupMandateRequestData | null | null | null | null | null | null | null | null |
pub async fn execute_decision_rule(
state: web::Data<app::AppState>,
req: actix_web::HttpRequest,
payload: web::Json<api_models::three_ds_decision_rule::ThreeDsDecisionRuleExecuteRequest>,
) -> impl Responder {
let flow = Flow::ThreeDsDecisionRuleExecute;
let payload = payload.into_inner();
Box:... | crates/router/src/routes/three_ds_decision_rule.rs | router | function_signature | 214 | rust | null | null | null | null | execute_decision_rule | null | null | null | null | null | null | null |
File: crates/common_utils/src/id_type/organization.rs
Public functions: 1
use crate::errors::{CustomResult, ValidationError};
crate::id_type!(
OrganizationId,
"A type for organization_id that can be used for organization ids"
);
crate::impl_id_type_methods!(OrganizationId, "organization_id");
// This is to ... | crates/common_utils/src/id_type/organization.rs | common_utils | full_file | 224 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_link_with_token(
base_url: impl std::fmt::Display,
token: impl std::fmt::Display,
action: impl std::fmt::Display,
auth_id: &Option<impl std::fmt::Display>,
theme_id: &Option<impl std::fmt::Display>,
) -> String {
let mut email_url = format!("{base_url}/user/{action}?token={token}");
... | crates/router/src/services/email/types.rs | router | function_signature | 150 | rust | null | null | null | null | get_link_with_token | null | null | null | null | null | null | null |
impl Parse for Input {
fn parse(input: ParseStream<'_>) -> syn::Result<Self> {
let (_permission_label, permissions) = parse_label_with_punctuated_data(input)?;
Ok(Self { permissions })
}
} | crates/router_derive/src/macros/generate_permissions.rs | router_derive | impl_block | 49 | rust | null | Input | Parse for | impl Parse for for Input | null | null | null | null | null | null | null | null |
pub struct ApproveRequest {} | crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | hyperswitch_connectors | struct_definition | 6 | rust | ApproveRequest | null | null | null | null | null | null | null | null | null | null | null |
pub fn is_pre_processing_required_before_authorize(self) -> bool {
matches!(self, Self::Airwallex)
} | crates/common_enums/src/connector_enums.rs | common_enums | function_signature | 27 | rust | null | null | null | null | is_pre_processing_required_before_authorize | null | null | null | null | null | null | null |
impl IncomingWebhook for Forte {
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/forte.rs | hyperswitch_connectors | impl_block | 183 | rust | null | Forte | IncomingWebhook for | impl IncomingWebhook for for Forte | null | null | null | null | null | null | null | null |
pub fn get_pm_link_config_as_value(
&self,
) -> CustomResult<Option<serde_json::Value>, errors::ParsingError> {
self.pm_collect_link_config
.as_ref()
.map(|pm_collect_link_config| pm_collect_link_config.encode_to_value())
.transpose()
} | crates/api_models/src/admin.rs | api_models | function_signature | 66 | rust | null | null | null | null | get_pm_link_config_as_value | null | null | null | null | null | null | null |
pub fn get_invoice_webhook_data_from_body(
body: &[u8],
) -> CustomResult<Self, errors::ConnectorError> {
let webhook_body = body
.parse_struct::<Self>("StripebillingInvoiceBody")
.change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?;
Ok(webhook_body)
... | crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs | hyperswitch_connectors | function_signature | 73 | rust | null | null | null | null | get_invoice_webhook_data_from_body | null | null | null | null | null | null | null |
first_attempt,
total,
count,
error_message,
routing_approach,
signature_network,
is_issuer_regulated,
is_debit_routed,
start_bucket,
end_bucket,
})
}
}
impl<'a> FromRow<'a, PgRow> for sup... | crates/analytics/src/sqlx.rs#chunk1 | analytics | chunk | 6,133 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ProphetpayRefundRequest {
pub amount: f64,
pub card_token: Secret<String>,
pub transaction_id: String,
pub profile: Secret<String>,
pub ref_info: String,
pub inquiry_reference: String,
pub action_type: i8,
} | crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | hyperswitch_connectors | struct_definition | 61 | rust | ProphetpayRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct KeyManagerState {
pub tenant_id: id_type::TenantId,
pub global_tenant_id: id_type::TenantId,
pub enabled: bool,
pub url: String,
pub client_idle_timeout: Option<u64>,
#[cfg(feature = "km_forward_x_request_id")]
pub request_id: Option<RequestId>,
#[cfg(feature = "keymanager_mtl... | crates/common_utils/src/types/keymanager.rs | common_utils | struct_definition | 123 | rust | KeyManagerState | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::PaymentsStart;
let (payment_id, merchant_id, attempt_id) = path.into_inner();
let payload = payment_types::PaymentsStartRequest {
payment_id: payment_id.clone(),
merchant_id: merchant_id.clone(),
attempt_id: attempt_id.clone(),
};
let lockin... | crates/router/src/routes/payments.rs | router | impl_block | 290 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct ItaubankAuthRequest {
client_id: Secret<String>,
client_secret: Secret<String>,
grant_type: ItaubankGrantType,
} | crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs | hyperswitch_connectors | struct_definition | 33 | rust | ItaubankAuthRequest | null | null | null | null | null | null | null | null | null | null | null |
impl NmiMerchantDefinedField {
pub fn new(metadata: &serde_json::Value) -> Self {
let metadata_as_string = metadata.to_string();
let hash_map: std::collections::BTreeMap<String, serde_json::Value> =
serde_json::from_str(&metadata_as_string).unwrap_or(std::collections::BTreeMap::new());
... | crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs | hyperswitch_connectors | impl_block | 167 | rust | null | NmiMerchantDefinedField | null | impl NmiMerchantDefinedField | null | null | null | null | null | null | null | null |
File: crates/router/src/core/webhooks/incoming.rs
Public functions: 5
Public structs: 1
use std::{str::FromStr, time::Instant};
use actix_web::FromRequest;
#[cfg(feature = "payouts")]
use api_models::payouts as payout_models;
use api_models::webhooks::{self, WebhookResponseTracker};
use common_utils::{
errors::... | crates/router/src/core/webhooks/incoming.rs#chunk0 | router | chunk | 8,188 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct OpennodeErrorResponse {
pub message: String,
} | crates/hyperswitch_connectors/src/connectors/opennode/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | OpennodeErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/payments/distribution/payment_error_message.rs
use api_models::analytics::{
payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier},
Granularity, PaymentDistributionBody, TimeRange,
};
use common_utils::errors::ReportSwitchExt;
use diesel_models::enums as storag... | crates/analytics/src/payments/distribution/payment_error_message.rs | analytics | full_file | 1,238 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn non_enum_error() -> syn::Error {
syn::Error::new(Span::call_site(), "This macro only supports enums.")
} | crates/router_derive/src/macros/helpers.rs | router_derive | function_signature | 31 | rust | null | null | null | null | non_enum_error | null | null | null | null | null | null | null |
pub struct StripebillingInvoiceBillingAddress {
pub country: Option<enums::CountryAlpha2>,
pub city: Option<String>,
pub address_line1: Option<Secret<String>>,
pub address_line2: Option<Secret<String>>,
pub zip_code: Option<Secret<String>>,
pub state: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs | hyperswitch_connectors | struct_definition | 69 | rust | StripebillingInvoiceBillingAddress | null | null | null | null | null | null | null | null | null | null | null |
pub struct CaptureIntegrityObject {
/// capture amount
pub capture_amount: Option<MinorUnit>,
/// capture currency
pub currency: storage_enums::Currency,
} | crates/hyperswitch_domain_models/src/router_request_types.rs | hyperswitch_domain_models | struct_definition | 38 | rust | CaptureIntegrityObject | null | null | null | null | null | null | null | null | null | null | null |
/// Generates the permissions enum and implematations for the permissions
///
/// **NOTE:** You have to make sure that all the identifiers used
/// in the macro input are present in the respective enums as well.
///
/// ## Usage
/// ```
/// use router_derive::generate_permissions;
///
/// enum Scope {
/// Read,
///... | crates/router_derive/src/lib.rs | router_derive | macro | 279 | rust | null | null | null | null | null | null | null | null | proc_function_like | null | null | null |
impl api::PaymentSession for Multisafepay {} | crates/hyperswitch_connectors/src/connectors/multisafepay.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Multisafepay | api::PaymentSession for | impl api::PaymentSession for for Multisafepay | null | null | null | null | null | null | null | null |
pub struct CardPaymentMethod {
pub card: Card,
pub requires_approval: bool,
pub payment_product_id: u16,
} | crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | hyperswitch_connectors | struct_definition | 30 | rust | CardPaymentMethod | null | null | null | null | null | null | null | null | null | null | null |
pub struct CoinbasePaymentsRequest {
pub name: Option<Secret<String>>,
pub description: Option<String>,
pub pricing_type: String,
pub local_price: LocalPrice,
pub redirect_url: String,
pub cancel_url: String,
} | crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs | hyperswitch_connectors | struct_definition | 52 | rust | CoinbasePaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Dwolla {} | crates/hyperswitch_connectors/src/connectors/dwolla.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Dwolla | api::PaymentToken for | impl api::PaymentToken for for Dwolla | null | null | null | null | null | null | null | null |
impl NoEmailClient {
/// Constructs a new client when email is disabled
pub async fn create() -> Self {
Self {}
}
} | crates/external_services/src/email/no_email.rs | external_services | impl_block | 31 | rust | null | NoEmailClient | null | impl NoEmailClient | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.FrmConfigs
{
"type": "object",
"description": "Details of FrmConfigs are mentioned here... it should be passed in payment connector create api call, and stored in merchant_connector_table",
"required": [
"gateway",
"payment_methods"
],
"properties": {
"gatewa... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 153 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"FrmConfigs"
] | null | null | null | null |
pub struct KafkaDispute<'a> {
pub dispute_id: &'a String,
pub dispute_amount: MinorUnit,
pub currency: storage_enums::Currency,
pub dispute_stage: &'a storage_enums::DisputeStage,
pub dispute_status: &'a storage_enums::DisputeStatus,
pub payment_id: &'a id_type::PaymentId,
pub attempt_id: &'... | crates/router/src/services/kafka/dispute.rs | router | struct_definition | 336 | rust | KafkaDispute | null | null | null | null | null | null | null | null | null | null | null |
pub struct TokeniseCreditCardResponse {
tokenise_credit_card_result: TokeniseCreditCardResult,
} | crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | TokeniseCreditCardResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorCustomer for Stripe {} | crates/hyperswitch_connectors/src/connectors/stripe.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Stripe | api::ConnectorCustomer for | impl api::ConnectorCustomer for for Stripe | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_domain_models/src/router_flow_types/payouts.rs
Public structs: 8
#[derive(Debug, Clone)]
pub struct PoCancel;
#[derive(Debug, Clone)]
pub struct PoCreate;
#[derive(Debug, Clone)]
pub struct PoEligibility;
#[derive(Debug, Clone)]
pub struct PoFulfill;
#[derive(Debug, Clone)]
pub struct PoQ... | crates/hyperswitch_domain_models/src/router_flow_types/payouts.rs | hyperswitch_domain_models | full_file | 116 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_surcharge_details_redis_hashset_key(surcharge_key: &SurchargeKey) -> String {
match surcharge_key {
SurchargeKey::Token(token) => {
format!("token_{token}")
}
SurchargeKey::PaymentMethodData(payment_method, payment_method_type, card_network) => {
... | crates/router/src/core/payments/types.rs | router | function_signature | 114 | rust | null | null | null | null | get_surcharge_details_redis_hashset_key | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::PaymentsList;
let payload = payload.into_inner();
Box::pin(api::server_wrap(
flow,
state,
&req,
payload,
|state, auth: auth::AuthenticationData, req, _| {
let merchant_context = domain::MerchantContext::NormalMerchant(Box:... | crates/router/src/routes/payments.rs | router | impl_block | 199 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct MerchantDetails {
/// The merchant's primary contact name
#[schema(value_type = Option<String>, max_length = 255, example = "John Doe")]
pub primary_contact_person: Option<Secret<String>>,
/// The merchant's primary phone number
#[schema(value_type = Option<String>, max_length = 255, exa... | crates/api_models/src/admin.rs | api_models | struct_definition | 429 | rust | MerchantDetails | null | null | null | null | null | null | null | null | null | null | null |
let is_error_in_response = router_data.response.is_err();
// If is_error_in_response is true, should_continue_payment should be false, we should throw the error
(router_data, !is_error_in_response)
} else {
(router_data, should_continue_payment... | crates/router/src/core/payments.rs#chunk6 | router | chunk | 8,191 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn list_customer_payment_method(
state: &routes::SessionState,
merchant_context: domain::MerchantContext,
payment_intent: Option<storage::PaymentIntent>,
customer_id: &id_type::CustomerId,
limit: Option<i64>,
) -> errors::RouterResponse<api::CustomerPaymentMethodsListResponse> {
let db... | crates/router/src/core/payment_methods/cards.rs | router | function_signature | 1,807 | rust | null | null | null | null | list_customer_payment_method | null | null | null | null | null | null | null |
pub struct Address {
pub city: Option<String>,
pub country: Option<common_enums::CountryAlpha2>,
pub line1: Option<Secret<String>>,
pub line2: Option<Secret<String>>,
pub line3: Option<Secret<String>>,
pub post_code: Option<Secret<String>>,
pub state: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs | hyperswitch_connectors | struct_definition | 75 | rust | Address | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorResponse {
#[instrument(skip(conn))]
pub async fn update(
self,
conn: &PgPooledConn,
connector_response: ConnectorResponseUpdate,
) -> StorageResult<Self> {
let payment_attempt_update = match connector_response.clone() {
ConnectorResponseUpdate::Resp... | crates/diesel_models/src/query/connector_response.rs | diesel_models | impl_block | 994 | rust | null | ConnectorResponse | null | impl ConnectorResponse | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Xendit {} | crates/hyperswitch_connectors/src/connectors/xendit.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Xendit | api::RefundExecute for | impl api::RefundExecute for for Xendit | null | null | null | null | null | null | null | null |
pub fn get_surcharge_amount(&self) -> Option<MinorUnit> {
self.surcharge_amount
} | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | function_signature | 25 | rust | null | null | null | null | get_surcharge_amount | null | null | null | null | null | null | null |
pub struct TransactionEvent {
pub id: String,
pub amount: MinorUnit,
pub created: String,
pub currency: Currency,
pub fee: Option<i64>,
pub fee_refunded: Option<MinorUnit>,
pub reference_id: Option<String>,
#[serde(rename = "type")]
pub event_type: AffirmEventType,
pub settlement... | crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs | hyperswitch_connectors | struct_definition | 141 | rust | TransactionEvent | null | null | null | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/user.rs
Public structs: 3
use common_utils::{encryption::Encryption, pii, types::user::LineageContext};
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use masking::Secret;
use time::PrimitiveDateTime;
use crate::{diesel_impl::OptionalDieselArray, enums::Tot... | crates/diesel_models/src/user.rs | diesel_models | full_file | 1,064 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct Amount {
total_amount: StringMajorUnit,
currency: api_models::enums::Currency,
} | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | Amount | null | null | null | null | null | null | null | null | null | null | null |
pub struct DeutschebankAccessTokenRequest {
pub grant_type: String,
pub client_id: Secret<String>,
pub client_secret: Secret<String>,
pub scope: String,
} | crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | hyperswitch_connectors | struct_definition | 37 | rust | DeutschebankAccessTokenRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::MandateSetup for Cybersource {} | crates/hyperswitch_connectors/src/connectors/cybersource.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Cybersource | api::MandateSetup for | impl api::MandateSetup for for Cybersource | null | null | null | null | null | null | null | null |
pub struct BamboraapacRouterData<T> {
pub amount: MinorUnit,
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | BamboraapacRouterData | null | null | null | null | null | null | null | null | null | null | null |
pub struct BluesnapVoidRequest {
card_transaction_type: BluesnapTxnType,
transaction_id: String,
} | crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | BluesnapVoidRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct EntityTypeQueryParam {
pub entity_type: EntityType,
} | crates/api_models/src/user/theme.rs | api_models | struct_definition | 13 | rust | EntityTypeQueryParam | null | null | null | null | null | null | null | null | null | null | null |
pub struct CybersourceConnectorMetadataObject {
pub disable_avs: Option<bool>,
pub disable_cvn: Option<bool>,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | CybersourceConnectorMetadataObject | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaysafeAuthType {
pub(super) username: Secret<String>,
pub(super) password: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | PaysafeAuthType | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Payeezy {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&PAYEEZY_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*PAYEEZY_SUPPORTED_PAYMENT_METHODS)
}
fn get_supp... | crates/hyperswitch_connectors/src/connectors/payeezy.rs | hyperswitch_connectors | impl_block | 109 | rust | null | Payeezy | ConnectorSpecifications for | impl ConnectorSpecifications for for Payeezy | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_domain_models/src/router_flow_types/fraud_check.rs
Public structs: 5
#[derive(Debug, Clone)]
pub struct Sale;
#[derive(Debug, Clone)]
pub struct Checkout;
#[derive(Debug, Clone)]
pub struct Transaction;
#[derive(Debug, Clone)]
pub struct Fulfillment;
#[derive(Debug, Clone)]
pub struct Rec... | crates/hyperswitch_domain_models/src/router_flow_types/fraud_check.rs | hyperswitch_domain_models | full_file | 77 | null | null | null | null | null | null | null | null | null | null | null | null | null |
/// Panics if `json_payload` array does not contain one `GetPaymentIntentMetricRequest` element.
pub async fn get_org_payment_intent_metrics(
state: web::Data<AppState>,
req: actix_web::HttpRequest,
json_payload: web::Json<[GetPaymentIntentMetricRequest; 1]>,
) -> impl Responder {
... | crates/router/src/analytics.rs | router | function_signature | 374 | rust | null | null | null | null | get_org_payment_intent_metrics | null | null | null | null | null | null | null |
pub struct WiseRecipientCreateRequest {
currency: String,
#[serde(rename = "type")]
recipient_type: RecipientType,
profile: Secret<String>,
account_holder_name: Secret<String>,
details: WiseBankDetails,
} | crates/hyperswitch_connectors/src/connectors/wise/transformers.rs | hyperswitch_connectors | struct_definition | 50 | rust | WiseRecipientCreateRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn refund_retrieve(
state: web::Data<routes::AppState>,
req: HttpRequest,
path: web::Path<String>,
) -> HttpResponse {
let refund_request = refund_types::RefundsRetrieveRequest {
refund_id: path.into_inner(),
force_sync: Some(true),
merchant_connector_details: None,
... | crates/router/src/compatibility/stripe/refunds.rs | router | function_signature | 278 | rust | null | null | null | null | refund_retrieve | null | null | null | null | null | null | null |
impl api::RefundExecute for Checkout {} | crates/hyperswitch_connectors/src/connectors/checkout.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Checkout | api::RefundExecute for | impl api::RefundExecute for for Checkout | null | null | null | null | null | null | null | null |
impl RefundExecute for Signifyd {} | crates/hyperswitch_connectors/src/connectors/signifyd.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Signifyd | RefundExecute for | impl RefundExecute for for Signifyd | null | null | null | null | null | null | null | null |
impl PaymentAuthorize for Threedsecureio {} | crates/hyperswitch_connectors/src/connectors/threedsecureio.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Threedsecureio | PaymentAuthorize for | impl PaymentAuthorize for for Threedsecureio | null | null | null | null | null | null | null | null |
impl MerchantAccount {
#[cfg(feature = "v1")]
/// Get the unique identifier of MerchantAccount
pub fn get_id(&self) -> &common_utils::id_type::MerchantId {
&self.merchant_id
}
#[cfg(feature = "v2")]
pub fn get_id(&self) -> &common_utils::id_type::MerchantId {
&self.id
}
} | crates/diesel_models/src/merchant_account.rs | diesel_models | impl_block | 87 | rust | null | MerchantAccount | null | impl MerchantAccount | null | null | null | null | null | null | null | null |
pub fn set_three_d_s_cres(mut self, cres: String) -> Self {
self.cres = Some(cres);
self
} | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | function_signature | 32 | rust | null | null | null | null | set_three_d_s_cres | null | null | null | null | null | null | null |
pub struct RefundErrorDetails {
pub code: String,
pub message: String,
} | crates/api_models/src/refunds.rs | api_models | struct_definition | 20 | rust | RefundErrorDetails | null | null | null | null | null | null | null | null | null | null | null |
impl AddressNew {
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Address> {
generics::generic_insert(conn, self).await
}
} | crates/diesel_models/src/query/address.rs | diesel_models | impl_block | 39 | rust | null | AddressNew | null | impl AddressNew | null | null | null | null | null | null | null | null |
impl RedisConnInterface for KafkaStore {
fn get_redis_conn(&self) -> CustomResult<Arc<RedisConnectionPool>, RedisError> {
self.diesel_store.get_redis_conn()
}
} | crates/router/src/db/kafka_store.rs | router | impl_block | 42 | rust | null | KafkaStore | RedisConnInterface for | impl RedisConnInterface for for KafkaStore | null | null | null | null | null | null | null | null |
pub fn build_refund_update_for_rsync(
connector: &api::ConnectorData,
merchant_context: &domain::MerchantContext,
router_data_response: RouterData<api::RSync, types::RefundsData, types::RefundsResponseData>,
) -> diesel_refund::RefundUpdate {
let merchant_account = merchant_context.get_merchant_account(... | crates/router/src/core/refunds_v2.rs | router | function_signature | 427 | rust | null | null | null | null | build_refund_update_for_rsync | null | null | null | null | null | null | null |
pub fn get_refund_metrics_info() -> Vec<NameDescription> {
RefundMetrics::iter().map(Into::into).collect()
} | crates/analytics/src/utils.rs | analytics | function_signature | 31 | rust | null | null | null | null | get_refund_metrics_info | null | null | null | null | null | null | null |
impl WorldpayPaymentsRequestData
for RouterData<Authorize, PaymentsAuthorizeData, PaymentsResponseData>
{
fn get_return_url(&self) -> Result<String, error_stack::Report<errors::ConnectorError>> {
self.request.get_complete_authorize_url()
}
fn get_auth_type(&self) -> &enums::AuthenticationType {... | crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs | hyperswitch_connectors | impl_block | 503 | rust | null | RouterData | WorldpayPaymentsRequestData
for | impl WorldpayPaymentsRequestData
for for RouterData | null | null | null | null | null | null | null | null |
pub struct NestedErrorStack<'a> {
context: std::borrow::Cow<'a, str>,
attachments: Vec<std::borrow::Cow<'a, str>>,
sources: Vec<NestedErrorStack<'a>>,
} | crates/router/src/core/errors.rs | router | struct_definition | 49 | rust | NestedErrorStack | null | null | null | null | null | null | null | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.