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 fn set_error_callback(&self, callback: tokio::sync::oneshot::Sender<() | crates/storage_impl/src/redis.rs | storage_impl | function_signature | 21 | rust | null | null | null | null | set_error_callback | null | null | null | null | null | null | null |
pub struct PayoutsData {
pub payout_id: id_type::PayoutId,
pub amount: i64,
pub connector_payout_id: Option<String>,
pub destination_currency: storage_enums::Currency,
pub source_currency: storage_enums::Currency,
pub payout_type: Option<storage_enums::PayoutType>,
pub entity_type: storage_e... | crates/hyperswitch_domain_models/src/router_request_types.rs | hyperswitch_domain_models | struct_definition | 160 | rust | PayoutsData | null | null | null | null | null | null | null | null | null | null | null |
impl api::PayoutSync for Wise {} | crates/hyperswitch_connectors/src/connectors/wise.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Wise | api::PayoutSync for | impl api::PayoutSync for for Wise | null | null | null | null | null | null | null | null |
pub async fn list_initial_attempts_by_profile_id_constraints(
conn: &PgPooledConn,
profile_id: &common_utils::id_type::ProfileId,
created_after: time::PrimitiveDateTime,
created_before: time::PrimitiveDateTime,
limit: Option<i64>,
offset: Option<i64>,
event_types:... | crates/diesel_models/src/query/events.rs | diesel_models | function_signature | 363 | rust | null | null | null | null | list_initial_attempts_by_profile_id_constraints | null | null | null | null | null | null | null |
pub struct Profile; | crates/router/src/routes/app.rs | router | struct_definition | 4 | rust | Profile | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Powertranz {} | crates/hyperswitch_connectors/src/connectors/powertranz.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Powertranz | api::PaymentToken for | impl api::PaymentToken for for Powertranz | null | null | null | null | null | null | null | null |
impl api::RefundSync for Hyperwallet {} | crates/hyperswitch_connectors/src/connectors/hyperwallet.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Hyperwallet | api::RefundSync for | impl api::RefundSync for for Hyperwallet | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::DecisionManagerRetrieveConfig;
Box::pin(oss_api::server_wrap(
flow,
state,
&req,
(),
|state, auth: auth::AuthenticationData, _, _| {
conditional_config::retrieve_conditional_config(state, auth.key_store, auth.profile)
... | crates/router/src/routes/routing.rs | router | impl_block | 187 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct PaypalVaultResponse {
id: String,
status: String,
customer: CustomerId,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | PaypalVaultResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Powertranz {} | crates/hyperswitch_connectors/src/connectors/powertranz.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Powertranz | api::PaymentSync for | impl api::PaymentSync for for Powertranz | null | null | null | null | null | null | null | null |
pub async fn set_role_info_in_cache<A>(
state: &A,
role_id: &str,
role_info: &roles::RoleInfo,
expiry: i64,
) -> RouterResult<()>
where
A: SessionStateInfo + Sync,
{
let redis_conn = get_redis_connection_for_global_tenant(state)?;
redis_conn
.serialize_and_set_key_with_expiry(
... | crates/router/src/services/authorization.rs | router | function_signature | 121 | rust | null | null | null | null | set_role_info_in_cache | null | null | null | null | null | null | null |
pub struct ZenRouterData<T> {
pub amount: String,
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | ZenRouterData | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = AnalyticsFlow::GetDisputeFilters;
Box::pin(api::server_wrap(
flow,
state,
&req,
json_payload.into_inner(),
|state, auth: AuthenticationData, req, _| async move {
let org_id = auth.merchant_account.get... | crates/router/src/analytics.rs | router | impl_block | 230 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct FiuuRefundSyncRequest {
#[serde(rename = "TxnID")]
txn_id: String,
#[serde(rename = "MerchantID")]
merchant_id: Secret<String>,
signature: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | 49 | rust | FiuuRefundSyncRequest | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Jpmorgan {} | crates/hyperswitch_connectors/src/connectors/jpmorgan.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Jpmorgan | api::PaymentSession for | impl api::PaymentSession for for Jpmorgan | null | null | null | null | null | null | null | null |
pub async fn response_handler(
state: &SessionState,
merchant_context: &domain::MerchantContext,
payout_data: &PayoutData,
) -> RouterResult<payouts::PayoutCreateResponse> {
let payout_attempt = payout_data.payout_attempt.to_owned();
let payouts = payout_data.payouts.to_owned();
let payout_meth... | crates/router/src/core/payouts.rs | router | function_signature | 777 | rust | null | null | null | null | response_handler | null | null | null | null | null | null | null |
pub struct PaymentMethodNew {
pub customer_id: common_utils::id_type::CustomerId,
pub merchant_id: common_utils::id_type::MerchantId,
pub payment_method_id: String,
pub payment_method: Option<storage_enums::PaymentMethod>,
pub payment_method_type: Option<storage_enums::PaymentMethodType>,
pub pa... | crates/diesel_models/src/payment_method.rs | diesel_models | struct_definition | 372 | rust | PaymentMethodNew | null | null | null | null | null | null | null | null | null | null | null |
pub async fn generate_recovery_codes(state: web::Data<AppState>, req: HttpRequest) -> HttpResponse {
let flow = Flow::RecoveryCodesGenerate;
Box::pin(api::server_wrap(
flow,
state.clone(),
&req,
(),
|state, user, _, _| user_core::generate_recovery_codes(state, user),
... | crates/router/src/routes/user.rs | router | function_signature | 107 | rust | null | null | null | null | generate_recovery_codes | null | null | null | null | null | null | null |
pub struct PaymentsTaxCalculationData {
pub amount: MinorUnit,
pub currency: storage_enums::Currency,
pub shipping_cost: Option<MinorUnit>,
pub order_details: Option<Vec<OrderDetailsWithAmount>>,
pub shipping_address: address::Address,
} | crates/hyperswitch_domain_models/src/router_request_types.rs | hyperswitch_domain_models | struct_definition | 57 | rust | PaymentsTaxCalculationData | null | null | null | null | null | null | null | null | null | null | null |
pub struct GoPayRedirection {} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 7 | rust | GoPayRedirection | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Taxjar {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&TAXJAR_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
None
}
fn get_supported_webhook_flows(&self) -> Option<&'... | crates/hyperswitch_connectors/src/connectors/taxjar.rs | hyperswitch_connectors | impl_block | 94 | rust | null | Taxjar | ConnectorSpecifications for | impl ConnectorSpecifications for for Taxjar | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentsDynamicTaxCalculationResponse
{
"type": "object",
"required": [
"payment_id",
"net_amount",
"display_amount"
],
"properties": {
"payment_id": {
"type": "string",
"description": "The identifier for the payment"
},
"net_amount": {
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 203 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentsDynamicTaxCalculationResponse"
] | null | null | null | null |
File: crates/diesel_models/src/dispute.rs
Public structs: 3
use common_utils::{
custom_serde,
types::{MinorUnit, StringMinorUnit},
};
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use masking::Secret;
use serde::Serialize;
use time::PrimitiveDateTime;
use crate::{enums as storag... | crates/diesel_models/src/dispute.rs | diesel_models | full_file | 1,251 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn create_new_routing_algorithm(
request: &routing_types::RoutingConfigRequest,
merchant_id: &common_utils::id_type::MerchantId,
profile_id: common_utils::id_type::ProfileId,
transaction_type: enums::TransactionType,
) -> Self {
let algorithm_id = common_utils::generate_r... | crates/router/src/core/routing.rs | router | function_signature | 183 | rust | null | null | null | null | create_new_routing_algorithm | null | null | null | null | null | null | null |
impl CustomerResponse {
pub fn get_merchant_reference_id(&self) -> Option<id_type::CustomerId> {
self.merchant_reference_id.clone()
}
} | crates/api_models/src/customers.rs | api_models | impl_block | 35 | rust | null | CustomerResponse | null | impl CustomerResponse | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentAttemptResponse
{
"type": "object",
"required": [
"attempt_id",
"status",
"amount",
"created_at",
"modified_at"
],
"properties": {
"attempt_id": {
"type": "string",
"description": "A unique identifier for this specific payment att... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 1,212 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentAttemptResponse"
] | null | null | null | null |
File: crates/api_models/src/verify_connector.rs
Public structs: 1
use common_utils::events::{ApiEventMetric, ApiEventsType};
use crate::{admin, enums};
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct VerifyConnectorRequest {
pub connector_name: enums::Connector,
pub connector_accoun... | crates/api_models/src/verify_connector.rs | api_models | full_file | 96 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl AcceptDispute for Checkout {} | crates/hyperswitch_connectors/src/connectors/checkout.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Checkout | AcceptDispute for | impl AcceptDispute for for Checkout | null | null | null | null | null | null | null | null |
pub struct PaystackEftProvider {
provider: String,
} | crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | PaystackEftProvider | null | null | null | null | null | null | null | null | null | null | null |
None::<()>,
None,
)
.map_err(KgraphError::GraphConstructionError)?;
agg_node_id.push((
any_agg_node,
cgraph::Relation::Positive,
cgraph::Strength::Normal,
));
builder
.make_any_aggregator(&agg_node_id, Some("Configs"), None::<()>, Non... | crates/kgraph_utils/src/mca.rs#chunk1 | kgraph_utils | chunk | 5,123 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CnpOnlineRequest {
#[serde(rename = "@version")]
pub version: String,
#[serde(rename = "@xmlns")]
pub xmlns: String,
#[serde(rename = "@merchantId")]
pub merchant_id: Secret<String>,
pub authentication: Authentication,
#[serde(skip_serializing_if = "Option::is_none")]
pub ... | crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs | hyperswitch_connectors | struct_definition | 198 | rust | CnpOnlineRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct RedirectData {
#[serde(rename = "redirectURL")]
pub redirect_url: Url,
} | crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | RedirectData | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.MandateRevokedResponse
{
"type": "object",
"required": [
"mandate_id",
"status"
],
"properties": {
"mandate_id": {
"type": "string",
"description": "The identifier for mandate"
},
"status": {
"$ref": "#/components/schemas/MandateStatus... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 200 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"MandateRevokedResponse"
] | null | null | null | null |
pub async fn schedule_dispute_sync_task(
state: &SessionState,
business_profile: &domain::Profile,
mca: &domain::MerchantConnectorAccount,
) -> common_utils::errors::CustomResult<(), errors::ApiErrorResponse> {
let connector = api::enums::Connector::from_str(&mca.connector_name).change_context(
... | crates/router/src/core/disputes.rs | router | function_signature | 394 | rust | null | null | null | null | schedule_dispute_sync_task | null | null | null | null | null | null | null |
pub struct ThreeDsChallengedResponse {
pub authentication: AuthenticationResponse,
pub challenge: ThreeDsChallenge,
#[serde(rename = "_actions")]
pub actions: CompleteThreeDsActionLink,
} | crates/hyperswitch_connectors/src/connectors/worldpay/response.rs | hyperswitch_connectors | struct_definition | 43 | rust | ThreeDsChallengedResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn operation_derive(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
let input = syn::parse_macro_input!(input as syn::DeriveInput);
macros::operation::operation_derive_inner(input)
.unwrap_or_else(|err| err.to_compile_error().into())
} | crates/router_derive/src/lib.rs | router_derive | function_signature | 65 | rust | null | null | null | null | operation_derive | null | null | null | null | null | null | null |
File: crates/analytics/src/auth_events/filters.rs
Public functions: 1
Public structs: 1
use api_models::analytics::{auth_events::AuthEventDimensions, Granularity, TimeRange};
use common_enums::{Currency, DecoupledAuthenticationType};
use common_utils::errors::ReportSwitchExt;
use diesel_models::enums::{Authenticatio... | crates/analytics/src/auth_events/filters.rs | analytics | full_file | 692 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/routes/files/transformers.rs
Public functions: 1
use actix_multipart::Multipart;
use actix_web::web::Bytes;
use common_utils::errors::CustomResult;
use error_stack::ResultExt;
use futures::{StreamExt, TryStreamExt};
use crate::{
core::{errors, files::helpers},
types::api::files::{self... | crates/router/src/routes/files/transformers.rs | router | full_file | 687 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardInfoResponse; | crates/router/src/core/cards_info.rs | router | struct_definition | 6 | rust | CardInfoResponse | null | null | null | null | null | null | null | null | null | null | null |
impl PaymentSync for Worldline {} | crates/hyperswitch_connectors/src/connectors/worldline.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Worldline | PaymentSync for | impl PaymentSync for for Worldline | null | null | null | null | null | null | null | null |
pub async fn delete_by_merchant_id(
conn: &PgPooledConn,
identifier: &common_utils::id_type::MerchantId,
) -> StorageResult<bool> {
generics::generic_delete::<<Self as HasTable>::Table, _>(
conn,
dsl::merchant_id.eq(identifier.to_owned()),
)
.await
... | crates/diesel_models/src/query/merchant_account.rs | diesel_models | function_signature | 77 | rust | null | null | null | null | delete_by_merchant_id | null | null | null | null | null | null | null |
pub struct VoltAuthUpdateResponse {
pub access_token: Secret<String>,
pub token_type: String,
pub expires_in: i64,
pub refresh_token: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | hyperswitch_connectors | struct_definition | 40 | rust | VoltAuthUpdateResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentMethodSession; | crates/router/src/routes/app.rs | router | struct_definition | 6 | rust | PaymentMethodSession | null | null | null | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {}
} | crates/hyperswitch_connectors/src/connectors/recurly.rs | hyperswitch_connectors | function_signature | 15 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct CommonMandateReference {
pub payments: Option<PaymentsMandateReference>,
pub payouts: Option<PayoutsMandateReference>,
} | crates/diesel_models/src/payment_method.rs | diesel_models | struct_definition | 34 | rust | CommonMandateReference | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_interfaces/src/events.rs
//! Events interface
pub mod connector_api_logs;
pub mod routing_api_logs;
| crates/hyperswitch_interfaces/src/events.rs | hyperswitch_interfaces | full_file | 28 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/types/storage/configs.rs
pub use diesel_models::configs::{Config, ConfigNew, ConfigUpdate, ConfigUpdateInternal};
| crates/router/src/types/storage/configs.rs | router | full_file | 30 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn ensure_algorithm_cached(
store: &dyn StorageInterface,
merchant_id: &common_utils::id_type::MerchantId,
algorithm_id: &str,
) -> ConditionalConfigResult<VirInterpreterBackendCacheWrapper> {
let key = merchant_id.get_surcharge_dsk_key();
let value_to_cache = || async {
let confi... | crates/router/src/core/payment_methods/surcharge_decision_configs.rs | router | function_signature | 260 | rust | null | null | null | null | ensure_algorithm_cached | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.AmazonPayPaymentIntent
{
"type": "string",
"enum": [
"Confirm",
"Authorize",
"AuthorizeWithCapture"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 45 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"AmazonPayPaymentIntent"
] | null | null | null | null |
pub struct PaymeRefundResponse {
sale_status: SaleStatus,
payme_transaction_id: Option<String>,
status_error_code: Option<u32>,
} | crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | hyperswitch_connectors | struct_definition | 35 | rust | PaymeRefundResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct AuthorizedotnetTransactionResponse {
response_code: AuthorizedotnetPaymentStatus,
#[serde(rename = "transId")]
transaction_id: String,
network_trans_id: Option<Secret<String>>,
pub(super) account_number: Option<Secret<String>>,
pub(super) errors: Option<Vec<ErrorMessage>>,
secure_... | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs | hyperswitch_connectors | struct_definition | 87 | rust | AuthorizedotnetTransactionResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct AffirmPaymentsRequest {
pub merchant: Merchant,
pub items: Vec<Item>,
pub shipping: Option<Shipping>,
pub billing: Option<Billing>,
pub total: MinorUnit,
pub currency: Currency,
pub order_id: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs | hyperswitch_connectors | struct_definition | 58 | rust | AffirmPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/openapi/src/routes/webhook_events.rs
Public functions: 4
/// Events - List
///
/// List all Events associated with a Merchant Account or Profile.
#[utoipa::path(
post,
path = "/events/{merchant_id}",
params(
(
"merchant_id" = String,
Path,
descripti... | crates/openapi/src/routes/webhook_events.rs | openapi | full_file | 934 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl crate::core::payments::Operation for Point {
/// fn to_validate_request(&self) -> RouterResult<&dyn ValidateRequest> {
/// Ok(self)
/// }
/// fn to_get_tracker(&self) -> RouterResult<&dyn GetTracker<PaymentData>> {
/// Ok(self)
/// }
/// fn to_domain(... | crates/router_derive/src/lib.rs | router_derive | impl_block | 122 | rust | null | Point | crate::core::payments::Operation for | impl crate::core::payments::Operation for for Point | null | null | null | null | null | null | null | null |
pub async fn delete_surcharge_decision_manager_config(
state: web::Data<AppState>,
req: HttpRequest,
) -> impl Responder {
let flow = Flow::DecisionManagerDeleteConfig;
Box::pin(oss_api::server_wrap(
flow,
state,
&req,
(),
|state, auth: auth::AuthenticationData, (... | crates/router/src/routes/routing.rs | router | function_signature | 245 | rust | null | null | null | null | delete_surcharge_decision_manager_config | null | null | null | null | null | null | null |
/// Get the unique identifier of MerchantAccount
pub fn get_id(&self) -> &common_utils::id_type::MerchantId {
&self.id
} | crates/hyperswitch_domain_models/src/merchant_account.rs | hyperswitch_domain_models | function_signature | 35 | rust | null | null | null | null | get_id | null | null | null | null | null | null | null |
impl Forex {
pub fn server(state: AppState) -> Scope {
web::scope("/forex")
.app_data(web::Data::new(state.clone()))
.app_data(web::Data::new(state.clone()))
.service(web::resource("/rates").route(web::get().to(currency::retrieve_forex)))
.service(
... | crates/router/src/routes/app.rs | router | impl_block | 97 | rust | null | Forex | null | impl Forex | null | null | null | null | null | null | null | null |
File: crates/api_models/src/errors.rs
pub mod actix;
pub mod types;
| crates/api_models/src/errors.rs | api_models | full_file | 18 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentLinkFormData {
pub js_script: String,
pub css_script: String,
pub sdk_url: url::Url,
pub html_meta_tags: String,
} | crates/hyperswitch_domain_models/src/api.rs | hyperswitch_domain_models | struct_definition | 38 | rust | PaymentLinkFormData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn customers_retrieve(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<id_type::CustomerId>,
) -> HttpResponse {
let flow = Flow::CustomersRetrieve;
let customer_id = path.into_inner();
let auth = if auth::is_jwt_auth(req.headers()) {
Box::new(auth::JWTAuth {
... | crates/router/src/routes/customers.rs | router | function_signature | 258 | rust | null | null | null | null | customers_retrieve | null | null | null | null | null | null | null |
pub struct SantanderAuthType {
pub(super) _api_key: Secret<String>,
pub(super) _key1: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/santander/transformers.rs | hyperswitch_connectors | struct_definition | 30 | rust | SantanderAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub async fn api_key_retrieve(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<(
common_utils::id_type::MerchantId,
common_utils::id_type::ApiKeyId,
) | crates/router/src/routes/api_keys.rs | router | function_signature | 52 | rust | null | null | null | null | api_key_retrieve | null | null | null | null | null | null | null |
impl Verify {
pub fn server(state: AppState) -> Scope {
web::scope("/verify")
.app_data(web::Data::new(state))
.service(
web::resource("/apple_pay/{merchant_id}")
.route(web::post().to(apple_pay_merchant_registration)),
)
.s... | crates/router/src/routes/app.rs | router | impl_block | 99 | rust | null | Verify | null | impl Verify | null | null | null | null | null | null | null | null |
pub fn execute_dsl_and_get_conditional_config(
backend_input: dsl_inputs::BackendInput,
interpreter: &backend::VirInterpreterBackend<SurchargeDecisionConfigs>,
) -> ConditionalConfigResult<SurchargeDecisionConfigs> {
let routing_output = interpreter
.execute(backend_input)
.map(|out| out.con... | crates/router/src/core/payment_methods/surcharge_decision_configs.rs | router | function_signature | 92 | rust | null | null | null | null | execute_dsl_and_get_conditional_config | null | null | null | null | null | null | null |
pub struct PaymentGetListAttempts; | crates/router/src/core/payments/operations/payment_attempt_list.rs | router | struct_definition | 7 | rust | PaymentGetListAttempts | null | null | null | null | null | null | null | null | null | null | null |
pub struct AuthorizedotnetPaymentsRequest {
merchant_authentication: AuthorizedotnetAuthType,
ref_id: Option<String>,
transaction_request: TransactionRequest,
} | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs | hyperswitch_connectors | struct_definition | 33 | rust | AuthorizedotnetPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
pub fn update_connector_mandate_details(
mandate_details: Option<CommonMandateReference>,
payment_method_type: Option<storage_enums::PaymentMethodType>,
authorized_amount: Option<i64>,
authorized_currency: Option<storage_enums::Currency>,
merchant_connector_id: Option<id_type::MerchantConnectorAccou... | crates/router/src/core/payments/tokenization.rs | router | function_signature | 526 | rust | null | null | null | null | update_connector_mandate_details | null | null | null | null | null | null | null |
pub struct PaymentsResponseScheme {
pub reference: String,
} | crates/hyperswitch_connectors/src/connectors/worldpay/response.rs | hyperswitch_connectors | struct_definition | 13 | rust | PaymentsResponseScheme | null | null | null | null | null | null | null | null | null | null | null |
/// Transform UCS webhook response into webhook event data
pub fn transform_ucs_webhook_response(
response: PaymentServiceTransformResponse,
) -> Result<WebhookTransformData, error_stack::Report<errors::ApiErrorResponse>> {
let event_type =
api_models::webhooks::IncomingWebhookEvent::from_ucs_event_type... | crates/router/src/core/unified_connector_service/transformers.rs | router | function_signature | 190 | rust | null | null | null | null | transform_ucs_webhook_response | null | null | null | null | null | null | null |
pub async fn resend_invite(
state: web::Data<AppState>,
req: HttpRequest,
payload: web::Json<user_api::ReInviteUserRequest>,
query: web::Query<user_api::AuthIdAndThemeIdQueryParam>,
) -> HttpResponse {
let flow = Flow::ReInviteUser;
let auth_id = query.into_inner().auth_id;
Box::pin(api::ser... | crates/router/src/routes/user.rs | router | function_signature | 171 | rust | null | null | null | null | resend_invite | null | null | null | null | null | null | null |
pub struct TsysPaymentsSyncResponse {
pub status: TsysPaymentStatus,
pub response_code: String,
pub response_message: String,
pub transaction_details: TsysTransactionDetails,
} | crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs | hyperswitch_connectors | struct_definition | 42 | rust | TsysPaymentsSyncResponse | null | null | null | null | null | null | null | null | null | null | null |
impl Level {
/// Returns the most verbose [`tracing::Level`]
pub fn into_level(self) -> tracing::Level {
self.0
}
} | crates/router_env/src/logger/config.rs | router_env | impl_block | 36 | rust | null | Level | null | impl Level | null | null | null | null | null | null | null | null |
pub fn mk_delete_card_response(
response: DeleteCardResponse,
) -> errors::RouterResult<DeleteCardResp> {
Ok(DeleteCardResp {
status: response.status,
error_message: None,
error_code: None,
})
} | crates/router/src/core/payment_methods/transformers.rs | router | function_signature | 54 | rust | null | null | null | null | mk_delete_card_response | null | null | null | null | null | null | null |
impl api::PaymentSync for Stripebilling {} | crates/hyperswitch_connectors/src/connectors/stripebilling.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Stripebilling | api::PaymentSync for | impl api::PaymentSync for for Stripebilling | null | null | null | null | null | null | null | null |
pub struct PaymentsDistributionAccumulator {
pub success_without_retries: u32,
pub failed_without_retries: u32,
pub total: u32,
} | crates/analytics/src/payment_intents/accumulator.rs | analytics | struct_definition | 39 | rust | PaymentsDistributionAccumulator | null | null | null | null | null | null | null | null | null | null | null |
pub async fn external_authentication_update_trackers<F: Clone, Req>(
state: &SessionState,
router_data: RouterData<F, Req, UasAuthenticationResponseData>,
authentication: diesel_models::authentication::Authentication,
acquirer_details: Option<
hyperswitch_domain_models::router_request_types::aut... | crates/router/src/core/unified_authentication_service/utils.rs | router | function_signature | 1,336 | rust | null | null | null | null | external_authentication_update_trackers | null | null | null | null | null | null | null |
pub struct PayloadAuth {
pub api_key: Secret<String>,
pub processing_account_id: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/payload/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | PayloadAuth | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Authipay {} | crates/hyperswitch_connectors/src/connectors/authipay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Authipay | api::PaymentVoid for | impl api::PaymentVoid for for Authipay | null | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Deutschebank {
fn get_webhook_object_reference_id(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> {
Err(report!(errors::ConnectorError::WebhooksNotImpleme... | crates/hyperswitch_connectors/src/connectors/deutschebank.rs | hyperswitch_connectors | impl_block | 210 | rust | null | Deutschebank | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Deutschebank | null | null | null | null | null | null | null | null |
pub struct ConnectorAuthenticationRequestData {
pub payment_method_data: PaymentMethodData,
pub billing_address: address::Address,
pub shipping_address: Option<address::Address>,
pub browser_details: Option<BrowserInformation>,
pub amount: Option<i64>,
pub currency: Option<common_enums::Currency... | crates/hyperswitch_domain_models/src/router_request_types/authentication.rs | hyperswitch_domain_models | struct_definition | 177 | rust | ConnectorAuthenticationRequestData | null | null | null | null | null | null | null | null | null | null | null |
pub trait OutgoingWebhookType:
Serialize + From<webhooks::OutgoingWebhook> + Sync + Send + std::fmt::Debug + 'static
{
fn get_outgoing_webhooks_signature(
&self,
payment_response_hash_key: Option<impl AsRef<[u8]>>,
) -> errors::CustomResult<OutgoingWebhookPayloadWithSignature, errors::Webhoo... | crates/router/src/core/webhooks/types.rs | router | trait_definition | 112 | rust | null | null | OutgoingWebhookType | null | null | null | null | null | null | null | null | null |
/// Check whether the merchant account is a platform account
pub fn is_platform_account(&self) -> bool {
matches!(
self.merchant_account_type,
common_enums::MerchantAccountType::Platform
)
} | crates/hyperswitch_domain_models/src/merchant_account.rs | hyperswitch_domain_models | function_signature | 48 | rust | null | null | null | null | is_platform_account | null | null | null | null | null | null | null |
File: crates/analytics/src/opensearch.rs
Public functions: 17
Public structs: 6
use std::collections::HashSet;
use api_models::{
analytics::search::SearchIndex,
errors::types::{ApiError, ApiErrorResponse},
};
use aws_config::{self, meta::region::RegionProviderChain, Region};
use common_utils::{
errors::... | crates/analytics/src/opensearch.rs | analytics | full_file | 5,078 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn is_success(self) -> bool {
matches!(self, Self::Charged | Self::PartialCharged)
} | crates/common_enums/src/enums.rs | common_enums | function_signature | 27 | rust | null | null | null | null | is_success | null | null | null | null | null | null | null |
File: crates/api_models/src/api_keys.rs
Public functions: 2
Public structs: 6
use common_utils::custom_serde;
use masking::StrongSecret;
use serde::{Deserialize, Serialize};
use time::PrimitiveDateTime;
use utoipa::ToSchema;
/// The request body for creating an API Key.
#[derive(Debug, Deserialize, ToSchema, Serial... | crates/api_models/src/api_keys.rs | api_models | full_file | 2,788 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ChargebeeWebhookBody {
pub fn get_webhook_object_from_body(body: &[u8]) -> CustomResult<Self, errors::ConnectorError> {
let webhook_body = body
.parse_struct::<Self>("ChargebeeWebhookBody")
.change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?;
Ok(webhook_b... | crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | hyperswitch_connectors | impl_block | 78 | rust | null | ChargebeeWebhookBody | null | impl ChargebeeWebhookBody | null | null | null | null | null | null | null | null |
pub struct StripeConnectReversalResponse {
id: String,
source_refund: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/stripe/transformers/connect.rs | hyperswitch_connectors | struct_definition | 23 | rust | StripeConnectReversalResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/scheduler/src/configs.rs
pub mod defaults;
pub mod settings;
pub mod validations;
| crates/scheduler/src/configs.rs | scheduler | full_file | 22 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn perform_eligibility_analysis(
state: &SessionState,
key_store: &domain::MerchantKeyStore,
chosen: Vec<routing_types::RoutableConnectorChoice>,
transaction_data: &routing::TransactionData<'_>,
eligible_connectors: Option<&Vec<api_enums::RoutableConnectors>>,
profile_id: &common_utils... | crates/router/src/core/payments/routing.rs | router | function_signature | 218 | rust | null | null | null | null | perform_eligibility_analysis | null | null | null | null | null | null | null |
pub struct ZenApplePay {
pub terminal_uuid: Option<String>,
pub pay_wall_secret: Option<String>,
} | crates/connector_configs/src/common_config.rs | connector_configs | struct_definition | 24 | rust | ZenApplePay | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.StraightThroughAlgorithm
{
"oneOf": [
{
"type": "object",
"title": "Single",
"required": [
"type",
"data"
],
"properties": {
"type": {
"type": "string",
"enum": [
"single"
]
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 329 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"StraightThroughAlgorithm"
] | null | null | null | null |
pub async fn dummy_connector_refund_data(
state: web::Data<app::AppState>,
req: actix_web::HttpRequest,
path: web::Path<String>,
) -> impl actix_web::Responder {
let flow = types::Flow::DummyRefundRetrieve;
let refund_id = path.into_inner();
let payload = types::DummyConnectorRefundRetrieveReque... | crates/router/src/routes/dummy_connector.rs | router | function_signature | 146 | rust | null | null | null | null | dummy_connector_refund_data | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Authorizedotnet {
fn get_webhook_source_verification_algorithm(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> {
Ok(Box::new(crypto::HmacSha512))
}
... | crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs | hyperswitch_connectors | impl_block | 915 | rust | null | Authorizedotnet | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Authorizedotnet | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Bambora {} | crates/hyperswitch_connectors/src/connectors/bambora.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Bambora | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Bambora | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_interfaces/src/api/disputes.rs
//! Disputes interface
use hyperswitch_domain_models::{
router_flow_types::dispute::{Accept, Defend, Dsync, Evidence, Fetch},
router_request_types::{
AcceptDisputeRequestData, DefendDisputeRequestData, DisputeSyncData,
FetchDisputesReques... | crates/hyperswitch_interfaces/src/api/disputes.rs | hyperswitch_interfaces | full_file | 337 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn api_events_core(
pool: &AnalyticsProvider,
req: ApiLogsRequest,
merchant_id: &common_utils::id_type::MerchantId,
) -> AnalyticsResult<Vec<ApiLogsResult>> {
let data = match pool {
AnalyticsProvider::Sqlx(_) => Err(FiltersError::NotImplemented(
"API Events not implemented... | crates/analytics/src/api_event/core.rs | analytics | function_signature | 182 | rust | null | null | null | null | api_events_core | null | null | null | null | null | null | null |
pub fn build_generic_link_html(
boxed_generic_link_data: GenericLinksData,
locale: String,
) -> CustomResult<String, errors::ApiErrorResponse> {
match boxed_generic_link_data {
GenericLinksData::ExpiredLink(link_data) => build_generic_expired_link_html(&link_data),
GenericLinksData::Payment... | crates/router/src/services/api/generic_link_response.rs | router | function_signature | 212 | rust | null | null | null | null | build_generic_link_html | null | null | null | null | null | null | null |
pub struct Operation {
additional_data: AdditionalData,
customer_info: CustomerInfo,
operation_amount: String,
operation_currency: Currency,
operation_id: String,
operation_result: NexixpayPaymentStatus,
operation_time: String,
operation_type: NexixpayOperationType,
order_id: String,... | crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | hyperswitch_connectors | struct_definition | 82 | rust | Operation | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/worldline.rs
use std::str::FromStr;
use hyperswitch_domain_models::address::{Address, AddressDetails};
use masking::Secret;
use router::{
connector::Worldline,
core::errors,
types::{self, storage::enums, PaymentAddress},
};
use crate::{
connector_auth::ConnectorAu... | crates/router/tests/connectors/worldline.rs | router | full_file | 2,978 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/routes/user_role.rs
Public functions: 19
use actix_web::{web, HttpRequest, HttpResponse};
use api_models::user_role::{self as user_role_api, role as role_api};
use common_enums::TokenPurpose;
use router_env::Flow;
use super::AppState;
use crate::{
core::{
api_locking,
user... | crates/router/src/routes/user_role.rs | router | full_file | 2,782 | null | null | 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.