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 SellerInfo {
/// Name of the Seller. The value length is maximum 100 characters. This field is required.
seller_name: String,
/// Merchant-assigned Seller identifier. If this data element is present, this must match the Seller ID field
/// in the Seller Information object. The value length i... | crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs | hyperswitch_connectors | struct_definition | 684 | rust | SellerInfo | null | null | null | null | null | null | null | null | null | null | null |
pub async fn create_connector(
state: SessionState,
req: api::MerchantConnectorCreate,
merchant_context: domain::MerchantContext,
auth_profile_id: Option<id_type::ProfileId>,
) -> RouterResponse<api_models::admin::MerchantConnectorResponse> {
let store = state.store.as_ref();
let key_manager_sta... | crates/router/src/core/admin.rs | router | function_signature | 1,049 | rust | null | null | null | null | create_connector | null | null | null | null | null | null | null |
impl PaymentMethodUpdateInternal {
pub fn apply_changeset(self, source: PaymentMethod) -> PaymentMethod {
let Self {
payment_method_data,
last_used_at,
network_transaction_id,
status,
locker_id,
payment_method_type_v2,
conne... | crates/diesel_models/src/payment_method.rs | diesel_models | impl_block | 445 | rust | null | PaymentMethodUpdateInternal | null | impl PaymentMethodUpdateInternal | null | null | null | null | null | null | null | null |
/// Panics if `json_payload` array does not contain one `GetRefundMetricRequest` element.
pub async fn get_profile_refund_metrics(
state: web::Data<AppState>,
req: actix_web::HttpRequest,
json_payload: web::Json<[GetRefundMetricRequest; 1]>,
) -> impl Responder {
#[allow(clippy::... | crates/router/src/analytics.rs | router | function_signature | 403 | rust | null | null | null | null | get_profile_refund_metrics | null | null | null | null | null | null | null |
pub fn get_entity_type(&self) -> EntityType {
self.entity_type
} | crates/router/src/services/authorization/roles.rs | router | function_signature | 18 | rust | null | null | null | null | get_entity_type | null | null | null | null | null | null | null |
impl api::Payouts for Adyen {} | crates/hyperswitch_connectors/src/connectors/adyen.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Adyen | api::Payouts for | impl api::Payouts for for Adyen | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Authipay {} | crates/hyperswitch_connectors/src/connectors/authipay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Authipay | api::RefundExecute for | impl api::RefundExecute for for Authipay | null | null | null | null | null | null | null | null |
File: crates/router/src/core/payments/flows/reject_flow.rs
use async_trait::async_trait;
use super::{ConstructFlowSpecificData, Feature};
use crate::{
core::{
errors::{ApiErrorResponse, NotImplementedMessage, RouterResult},
payments::{self, access_token, helpers, transformers, PaymentData},
},... | crates/router/src/core/payments/flows/reject_flow.rs | router | full_file | 782 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct GetApiEventMetricRequest {
pub time_series: Option<TimeSeries>,
pub time_range: TimeRange,
#[serde(default)]
pub group_by_names: Vec<ApiEventDimensions>,
#[serde(default)]
pub filters: api_event::ApiEventFilters,
pub metrics: HashSet<ApiEventMetrics>,
#[serde(default)]
pub... | crates/api_models/src/analytics.rs | api_models | struct_definition | 81 | rust | GetApiEventMetricRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct CompleteThreeDsActionLink {
#[serde(rename = "complete3dsChallenge")]
pub complete_three_ds_challenge: ActionLink,
} | crates/hyperswitch_connectors/src/connectors/worldpay/response.rs | hyperswitch_connectors | struct_definition | 30 | rust | CompleteThreeDsActionLink | null | null | null | null | null | null | null | null | null | null | null |
impl OrganizationBridge for Organization {
fn get_organization_id(&self) -> id_type::OrganizationId {
self.org_id.clone()
}
fn get_organization_name(&self) -> Option<String> {
self.org_name.clone()
}
fn set_organization_name(&mut self, organization_name: String) {
self.org_na... | crates/diesel_models/src/organization.rs | diesel_models | impl_block | 78 | rust | null | Organization | OrganizationBridge for | impl OrganizationBridge for for Organization | null | null | null | null | null | null | null | null |
pub struct Katapult {
amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/katapult.rs | hyperswitch_connectors | struct_definition | 27 | rust | Katapult | null | null | null | null | null | null | null | null | null | null | null |
pub struct DynamicRoutingAlgorithmRef {
pub success_based_algorithm: Option<SuccessBasedAlgorithm>,
pub dynamic_routing_volume_split: Option<u8>,
pub elimination_routing_algorithm: Option<EliminationRoutingAlgorithm>,
pub contract_based_routing: Option<ContractRoutingAlgorithm>,
#[serde(default)]
... | crates/api_models/src/routing.rs | api_models | struct_definition | 73 | rust | DynamicRoutingAlgorithmRef | null | null | null | null | null | null | null | null | null | null | null |
impl api::Payouts for Paypal {} | crates/hyperswitch_connectors/src/connectors/paypal.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Paypal | api::Payouts for | impl api::Payouts for for Paypal | null | null | null | null | null | null | null | null |
File: crates/analytics/src/refunds/metrics/refund_processed_amount.rs
use std::collections::HashSet;
use api_models::analytics::{
refunds::{RefundDimensions, RefundFilters, RefundMetricsBucketIdentifier},
Granularity, TimeRange,
};
use common_utils::errors::ReportSwitchExt;
use diesel_models::enums as storage... | crates/analytics/src/refunds/metrics/refund_processed_amount.rs | analytics | full_file | 917 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct HelcimPaymentsErrorResponse {
pub errors: HelcimErrorTypes,
} | crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | hyperswitch_connectors | struct_definition | 19 | rust | HelcimPaymentsErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
impl RequestIdStore for KafkaStore {
fn add_request_id(&mut self, request_id: String) {
self.diesel_store.add_request_id(request_id)
}
} | crates/router/src/db.rs | router | impl_block | 37 | rust | null | KafkaStore | RequestIdStore for | impl RequestIdStore for for KafkaStore | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Mifinity {} | crates/hyperswitch_connectors/src/connectors/mifinity.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Mifinity | api::RefundExecute for | impl api::RefundExecute for for Mifinity | null | null | null | null | null | null | null | null |
pub struct DeleteCardToken {
pub card_reference: String, //network token requestor ref id
pub customer_id: id_type::CustomerId,
} | crates/router/src/types/payment_methods.rs | router | struct_definition | 32 | rust | DeleteCardToken | null | null | null | null | null | null | null | null | null | null | null |
impl GetPaymentMethodDetails for DummyConnectorUpiType {
fn get_name(&self) -> &'static str {
match self {
Self::UpiCollect => "UPI Collect",
}
}
fn get_image_link(&self, base_url: &str) -> String {
let image_name = match self {
Self::UpiCollect => "UPI_COLLEC... | crates/router/src/routes/dummy_connector/types.rs | router | impl_block | 95 | rust | null | DummyConnectorUpiType | GetPaymentMethodDetails for | impl GetPaymentMethodDetails for for DummyConnectorUpiType | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Rapyd {} | crates/hyperswitch_connectors/src/connectors/rapyd.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Rapyd | api::PaymentSession for | impl api::PaymentSession for for Rapyd | null | null | null | null | null | null | null | null |
File: crates/api_models/src/events/revenue_recovery.rs
use common_utils::events::{ApiEventMetric, ApiEventsType};
use crate::process_tracker::revenue_recovery::{RevenueRecoveryId, RevenueRecoveryResponse};
impl ApiEventMetric for RevenueRecoveryResponse {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
... | crates/api_models/src/events/revenue_recovery.rs | api_models | full_file | 124 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Dwolla {} | crates/hyperswitch_connectors/src/connectors/dwolla.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Dwolla | api::RefundExecute for | impl api::RefundExecute for for Dwolla | null | null | null | null | null | null | null | null |
impl api::PaymentToken for Square {} | crates/hyperswitch_connectors/src/connectors/square.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Square | api::PaymentToken for | impl api::PaymentToken for for Square | null | null | null | null | null | null | null | null |
pub struct OpennodeRefundRequest {
pub amount: i64,
} | crates/hyperswitch_connectors/src/connectors/opennode/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | OpennodeRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/drainer/src/secrets_transformers.rs
Public functions: 1
use common_utils::errors::CustomResult;
use hyperswitch_interfaces::secrets_interface::{
secret_handler::SecretsHandler,
secret_state::{RawSecret, SecretStateContainer, SecuredSecret},
SecretManagementInterface, SecretsManagementError,
}... | crates/drainer/src/secrets_transformers.rs | drainer | full_file | 367 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn insert_surcharge_details(
&mut self,
surcharge_key: SurchargeKey,
surcharge_details: SurchargeDetails,
) {
self.surcharge_results
.insert(surcharge_key, surcharge_details);
} | crates/router/src/core/payments/types.rs | router | function_signature | 54 | rust | null | null | null | null | insert_surcharge_details | null | null | null | null | null | null | null |
File: crates/router/src/core/errors/customers_error_response.rs
use http::StatusCode;
#[derive(Debug, thiserror::Error)]
pub enum CustomersErrorResponse {
#[error("Customer has already been redacted")]
CustomerRedacted,
#[error("Something went wrong")]
InternalServerError,
#[error("Customer has ... | crates/router/src/core/errors/customers_error_response.rs | router | full_file | 221 | null | null | null | null | null | null | null | null | null | null | null | null | null |
} else {
None
}
.map(|data| {
serde_json::to_value(types::AdditionalMerchantData::OpenBankingRecipientData(
data,
))
})
.transpose()
.change_context(errors::ApiErrorResponse::InternalServerError)
.attach_printabl... | crates/router/src/core/admin.rs#chunk2 | router | chunk | 8,191 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn delete_merchant_account() {} | crates/openapi/src/routes/merchant_account.rs | openapi | function_signature | 9 | rust | null | null | null | null | delete_merchant_account | null | null | null | null | null | null | null |
pub struct Frequency {
unit: String,
value: String,
} | crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | Frequency | null | null | null | null | null | null | null | null | null | null | null |
pub struct Noon {
amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/noon.rs | hyperswitch_connectors | struct_definition | 26 | rust | Noon | null | null | null | null | null | null | null | null | null | null | null |
pub async fn frm_fulfillment_core(
state: SessionState,
merchant_context: domain::MerchantContext,
req: frm_core_types::FrmFulfillmentRequest,
) -> RouterResponse<frm_types::FraudCheckResponseData> {
let db = &*state.clone().store;
let payment_intent = db
.find_payment_intent_by_payment_id_m... | crates/router/src/core/fraud_check.rs | router | function_signature | 480 | rust | null | null | null | null | frm_fulfillment_core | null | null | null | null | null | null | null |
pub struct FortePaymentsRequest {
action: ForteAction,
authorization_amount: FloatMajorUnit,
billing_address: BillingAddress,
card: Card,
} | crates/hyperswitch_connectors/src/connectors/forte/transformers.rs | hyperswitch_connectors | struct_definition | 35 | rust | FortePaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn find_by_publishable_key(
conn: &PgPooledConn,
publishable_key: &str,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
dsl::publishable_key.eq(publishable_key.to_owned()),
)
.await
} | crates/diesel_models/src/query/merchant_account.rs | diesel_models | function_signature | 78 | rust | null | null | null | null | find_by_publishable_key | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use common_enums::{enums, PaymentAction};
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::ByteSliceExt,
request::{Method, Request, ... | crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs#chunk0 | hyperswitch_connectors | chunk | 8,177 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentMethodCreate
{
"type": "object",
"required": [
"payment_method"
],
"properties": {
"payment_method": {
"$ref": "#/components/schemas/PaymentMethod"
},
"payment_method_type": {
"allOf": [
{
"$ref": "#/components/schemas/P... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 639 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentMethodCreate"
] | null | null | null | null |
impl DummyConnector {
pub fn server(state: AppState) -> Scope {
let mut routes_with_restricted_access = web::scope("");
#[cfg(not(feature = "external_access_dc"))]
{
routes_with_restricted_access =
routes_with_restricted_access.guard(actix_web::guard::Host("localh... | crates/router/src/routes/app.rs | router | impl_block | 278 | rust | null | DummyConnector | null | impl DummyConnector | null | null | null | null | null | null | null | null |
pub trait EuclidBackend<O>: Sized {
type Error: serde::Serialize;
fn with_program(program: ast::Program<O>) -> Result<Self, Self::Error>;
fn execute(&self, input: BackendInput) -> Result<BackendOutput<O>, Self::Error>;
} | crates/euclid/src/backend.rs | euclid | trait_definition | 59 | rust | null | null | EuclidBackend | null | null | null | null | null | null | null | null | null |
pub struct SantanderTime {
#[serde(rename = "solicitacao")]
pub request: Option<String>,
#[serde(rename = "liquidacao")]
pub liquidation: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/santander/transformers.rs | hyperswitch_connectors | struct_definition | 41 | rust | SantanderTime | null | null | null | null | null | null | null | null | null | null | null |
pub struct OpensearchSuccess {
pub hits: OpensearchHits,
} | crates/api_models/src/analytics/search.rs | api_models | struct_definition | 17 | rust | OpensearchSuccess | null | null | null | null | null | null | null | null | null | null | null |
File: crates/common_utils/src/id_type/customer.rs
crate::id_type!(
CustomerId,
"A type for customer_id that can be used for customer ids"
);
crate::impl_id_type_methods!(CustomerId, "customer_id");
// This is to display the `CustomerId` as CustomerId(abcd)
crate::impl_debug_id_type!(CustomerId);
crate::impl_d... | crates/common_utils/src/id_type/customer.rs | common_utils | full_file | 213 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct AdyenInvalidField {
pub name: Option<String>,
pub value: Option<String>,
pub message: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs | hyperswitch_connectors | struct_definition | 29 | rust | AdyenInvalidField | null | null | null | null | null | null | null | null | null | null | null |
pub async fn update_user_authentication_method(
conn: &PgPooledConn,
id: &str,
user_authentication_method_update: UserAuthenticationMethodUpdate,
) -> StorageResult<Self> {
generics::generic_update_with_unique_predicate_get_result::<
<Self as HasTable>::Table,
... | crates/diesel_models/src/query/user_authentication_method.rs | diesel_models | function_signature | 109 | rust | null | null | null | null | update_user_authentication_method | null | null | null | null | null | null | null |
impl api::Payment for Archipel {} | crates/hyperswitch_connectors/src/connectors/archipel.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Archipel | api::Payment for | impl api::Payment for for Archipel | null | null | null | null | null | null | null | null |
File: crates/common_utils/src/access_token.rs
Public functions: 1
//! Commonly used utilities for access token
use std::fmt::Display;
use crate::id_type;
/// Create a key for fetching the access token from redis
pub fn create_access_token_key(
merchant_id: &id_type::MerchantId,
merchant_connector_id_or_con... | crates/common_utils/src/access_token.rs | common_utils | full_file | 99 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct OutgoingWebhookResponseContent {
/// The response body received for the webhook sent.
#[schema(value_type = Option<String>)]
#[serde(alias = "payload")]
pub body: Option<Secret<String>>,
/// The response headers received for the webhook sent.
#[schema(
value_type = Option<Vec... | crates/api_models/src/webhook_events.rs | api_models | struct_definition | 183 | rust | OutgoingWebhookResponseContent | null | null | null | null | null | null | null | null | null | null | null |
pub struct BlackhawknetworkPaymentsResponse {
pub id: String,
#[serde(rename = "transactionStatus")]
pub status: BlackhawknetworkAttemptStatus,
} | crates/hyperswitch_connectors/src/connectors/blackhawknetwork/transformers.rs | hyperswitch_connectors | struct_definition | 34 | rust | BlackhawknetworkPaymentsResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct Response {
pub headers: Option<http::HeaderMap>,
pub response: bytes::Bytes,
pub status_code: u16,
} | crates/pm_auth/src/types.rs | pm_auth | struct_definition | 33 | rust | Response | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Taxjar {} | crates/hyperswitch_connectors/src/connectors/taxjar.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Taxjar | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Taxjar | null | null | null | null | null | null | null | null |
File: crates/pm_auth/src/core/errors.rs
#[derive(Debug, thiserror::Error, PartialEq)]
pub enum ConnectorError {
#[error("Failed to obtain authentication type")]
FailedToObtainAuthType,
#[error("Missing required field: {field_name}")]
MissingRequiredField { field_name: &'static str },
#[error("Faile... | crates/pm_auth/src/core/errors.rs | pm_auth | full_file | 257 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.IfStatement
{
"type": "object",
"description": "Represents an IF statement with conditions and optional nested IF statements\n\n```text\npayment.method = card {\npayment.method.cardtype = (credit, debit) {\npayment.method.network = (amex, rupay, diners)\n}\n}\n```",
"require... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 173 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"IfStatement"
] | null | null | null | null |
pub struct BokuMetaData {
pub(super) country: String,
} | crates/hyperswitch_connectors/src/connectors/boku/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | BokuMetaData | null | null | null | null | null | null | null | null | null | null | null |
pub struct ApiEventFiltersResponse {
pub query_data: Vec<ApiEventFilterValue>,
} | crates/api_models/src/analytics.rs | api_models | struct_definition | 20 | rust | ApiEventFiltersResponse | null | null | null | null | null | null | null | null | null | null | null |
/// Get the attempt id for the payment id based on the attempt count
pub fn get_attempt_id(&self, attempt_count: i16) -> String {
format!("{}_{attempt_count}", self.get_string_repr())
} | crates/common_utils/src/id_type/payment.rs | common_utils | function_signature | 49 | rust | null | null | null | null | get_attempt_id | null | null | null | null | null | null | null |
pub struct SchedulerHealthCheckResponse {
pub database: bool,
pub redis: bool,
pub outgoing_request: bool,
} | crates/api_models/src/health_check.rs | api_models | struct_definition | 27 | rust | SchedulerHealthCheckResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Config> {
generics::generic_insert(conn, self).await
} | crates/diesel_models/src/query/configs.rs | diesel_models | function_signature | 34 | rust | null | null | null | null | insert | null | null | null | null | null | null | null |
Documentation: api-reference/v1/3ds-decision-rule/execute-a-3ds-decision-rule-based-on-the-provided-input.mdx
# Type: Doc File
---
openapi: post /three_ds_decision/execute
--- | api-reference/v1/3ds-decision-rule/execute-a-3ds-decision-rule-based-on-the-provided-input.mdx | null | doc_file | 49 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardsInfoRequestParams {
#[schema(example = "pay_OSERgeV9qAy7tlK7aKpc_secret_TuDUoh11Msxh12sXn3Yp")]
pub client_secret: Option<String>,
} | crates/api_models/src/cards_info.rs | api_models | struct_definition | 56 | rust | CardsInfoRequestParams | null | null | null | null | null | null | null | null | null | null | null |
pub struct Amount {
value: MinorUnit,
currency: String,
} | crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | Amount | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/tests/health_check.rs
mod utils;
use utils::{mk_service, AppClient};
#[actix_web::test]
async fn health_check() {
let server = Box::pin(mk_service()).await;
let client = AppClient::guest();
assert_eq!(client.health(&server).await, "health is good");
}
| crates/router/tests/health_check.rs | router | full_file | 74 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardInfoMigrateExecutor<'a> {
state: &'a routes::SessionState,
record: &'a cards_info_api_types::CardInfoUpdateRequest,
} | crates/router/src/core/cards_info.rs | router | struct_definition | 37 | rust | CardInfoMigrateExecutor | null | null | null | null | null | null | null | null | null | null | null |
pub async fn delete_network_token_from_tokenization_service(
state: &routes::SessionState,
network_token_requestor_reference_id: String,
customer_id: &id_type::CustomerId,
tokenization_service: &settings::NetworkTokenizationService,
) -> CustomResult<bool, errors::NetworkTokenizationError> {
let mut... | crates/router/src/core/payment_methods/network_tokenization.rs | router | function_signature | 601 | rust | null | null | null | null | delete_network_token_from_tokenization_service | null | null | null | null | null | null | null |
pub async fn payouts_list_available_filters_for_merchant(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<common_utils::types::TimeRange>,
) -> HttpResponse {
let flow = Flow::PayoutsFilter;
let payload = json_payload.into_inner();
Box::pin(api::server_wrap(
flow,
... | crates/router/src/routes/payouts.rs | router | function_signature | 227 | rust | null | null | null | null | payouts_list_available_filters_for_merchant | null | null | null | null | null | null | null |
impl MerchantDefaultConfigUpdate<'_> {
async fn retrieve_and_update_default_fallback_routing_algorithm_if_routable_connector_exists(
&self,
) -> RouterResult<()> {
let mut default_routing_config = routing::helpers::get_merchant_default_config(
self.store,
self.merchant_id... | crates/router/src/core/admin.rs | router | impl_block | 693 | rust | null | MerchantDefaultConfigUpdate | null | impl MerchantDefaultConfigUpdate | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Adyen {} | crates/hyperswitch_connectors/src/connectors/adyen.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Adyen | api::PaymentVoid for | impl api::PaymentVoid for for Adyen | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_domain_models/src/refunds.rs
Public structs: 2
#[cfg(feature = "v2")]
use crate::business_profile::Profile;
#[cfg(feature = "v1")]
use crate::errors;
#[cfg(feature = "v1")]
pub struct RefundListConstraints {
pub payment_id: Option<common_utils::id_type::PaymentId>,
pub refund_id: Opt... | crates/hyperswitch_domain_models/src/refunds.rs | hyperswitch_domain_models | full_file | 1,001 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn attempt_status_from_transaction_state(
transaction_state: JpmorganTransactionState,
) -> common_enums::AttemptStatus {
match transaction_state {
JpmorganTransactionState::Authorized => common_enums::AttemptStatus::Authorized,
JpmorganTransactionState::Closed => common_enums::AttemptStatus... | crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | hyperswitch_connectors | function_signature | 141 | rust | null | null | null | null | attempt_status_from_transaction_state | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Prophetpay {} | crates/hyperswitch_connectors/src/connectors/prophetpay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Prophetpay | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Prophetpay | null | null | null | null | null | null | null | null |
impl IncomingWebhook for Archipel {
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/archipel.rs | hyperswitch_connectors | impl_block | 185 | rust | null | Archipel | IncomingWebhook for | impl IncomingWebhook for for Archipel | null | null | null | null | null | null | null | null |
pub async fn accept_dispute(
state: SessionState,
merchant_context: domain::MerchantContext,
profile_id: Option<common_utils::id_type::ProfileId>,
req: disputes::DisputeId,
) -> RouterResponse<dispute_models::DisputeResponse> {
todo!()
} | crates/router/src/core/disputes.rs | router | function_signature | 65 | rust | null | null | null | null | accept_dispute | null | null | null | null | null | null | null |
pub struct EligiblePaymentMethods {
#[serde(deserialize_with = "deserialize_hashset")]
pub sdk_eligible_payment_methods: HashSet<String>,
} | crates/payment_methods/src/configs/settings.rs | payment_methods | struct_definition | 32 | rust | EligiblePaymentMethods | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PayLaterData
{
"oneOf": [
{
"type": "object",
"required": [
"klarna_redirect"
],
"properties": {
"klarna_redirect": {
"type": "object",
"description": "For KlarnaRedirect as PayLater Option",
"properties":... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 804 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PayLaterData"
] | null | null | null | null |
File: crates/diesel_models/src/routing_algorithm.rs
Public functions: 1
Public structs: 3
use common_utils::id_type;
use diesel::{Identifiable, Insertable, Queryable, Selectable};
use serde::{Deserialize, Serialize};
use crate::{enums, schema::routing_algorithm};
#[derive(Clone, Debug, Identifiable, Insertable, Qu... | crates/diesel_models/src/routing_algorithm.rs | diesel_models | full_file | 437 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct IncrementalAuthorization; | crates/hyperswitch_domain_models/src/router_flow_types/payments.rs | hyperswitch_domain_models | struct_definition | 6 | rust | IncrementalAuthorization | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentMethodIntentConfirmInternal {
pub id: id_type::GlobalPaymentMethodId,
pub request: PaymentMethodIntentConfirm,
} | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 30 | rust | PaymentMethodIntentConfirmInternal | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentCapture for Worldpayxml {} | crates/hyperswitch_connectors/src/connectors/worldpayxml.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Worldpayxml | api::PaymentCapture for | impl api::PaymentCapture for for Worldpayxml | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.UpdateScoreResponse
{
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 53 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"UpdateScoreResponse"
] | null | null | null | null |
pub fn get_wait_screen_metadata() -> CustomResult<Option<serde_json::Value>, errors::ConnectorError>
{
let current_time = OffsetDateTime::now_utc().unix_timestamp_nanos();
Ok(Some(serde_json::json!(WaitScreenData {
display_from_timestamp: current_time,
display_to_timestamp: Some(current_time + D... | crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | hyperswitch_connectors | function_signature | 108 | rust | null | null | null | null | get_wait_screen_metadata | null | null | null | null | null | null | null |
impl ConnectorValidation for Gpayments {
//TODO: implement functions when support enabled
} | crates/hyperswitch_connectors/src/connectors/gpayments.rs | hyperswitch_connectors | impl_block | 18 | rust | null | Gpayments | ConnectorValidation for | impl ConnectorValidation for for Gpayments | null | null | null | null | null | null | null | null |
pub struct KafkaPaymentAttemptEvent<'a> {
pub payment_id: &'a id_type::GlobalPaymentId,
pub merchant_id: &'a id_type::MerchantId,
pub attempt_id: &'a id_type::GlobalAttemptId,
pub status: storage_enums::AttemptStatus,
pub amount: MinorUnit,
pub connector: Option<&'a String>,
pub error_messag... | crates/router/src/services/kafka/payment_attempt_event.rs | router | struct_definition | 871 | rust | KafkaPaymentAttemptEvent | null | null | null | null | null | null | null | null | null | null | null |
pub struct ApplePayHeader {
#[serde(skip_serializing_if = "Option::is_none")]
pub application_data_hash: Option<Secret<String>>,
pub ephemeral_public_key: Secret<String>,
pub public_key_hash: Secret<String>,
pub transaction_id: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 59 | rust | ApplePayHeader | null | null | null | null | null | null | null | null | null | null | null |
pub fn fetch_qr_code_url_next_steps_check(
payment_attempt: storage::PaymentAttempt,
) -> RouterResult<Option<api_models::payments::FetchQrCodeInformation>> {
let qr_code_steps: Option<Result<api_models::payments::FetchQrCodeInformation, _>> =
payment_attempt
.connector_metadata
... | crates/router/src/core/payments/transformers.rs | router | function_signature | 111 | rust | null | null | null | null | fetch_qr_code_url_next_steps_check | null | null | null | null | null | null | null |
pub struct AdyenAddress {
line1: Secret<String>,
line2: Secret<String>,
postal_code: Option<Secret<String>>,
state_or_province: Option<Secret<String>>,
city: String,
country: enums::CountryAlpha2,
} | crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs | hyperswitch_connectors | struct_definition | 54 | rust | AdyenAddress | null | null | null | null | null | null | null | null | null | null | null |
pub struct MonerisAuthRequest {
client_id: Secret<String>,
client_secret: Secret<String>,
grant_type: String,
} | crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs | hyperswitch_connectors | struct_definition | 29 | rust | MonerisAuthRequest | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentMethodUpdate
{
"type": "object",
"properties": {
"card": {
"allOf": [
{
"$ref": "#/components/schemas/CardDetailUpdate"
}
],
"nullable": true
},
"client_secret": {
"type": "string",
"description": "This... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 161 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentMethodUpdate"
] | null | null | null | null |
pub struct DeutschebankThreeDSInitializeRequestAmountTotal {
amount: MinorUnit,
currency: api_models::enums::Currency,
} | crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | DeutschebankThreeDSInitializeRequestAmountTotal | null | null | null | null | null | null | null | null | null | null | null |
File: crates/analytics/src/disputes/metrics/sessionized_metrics/dispute_status_metric.rs
use std::collections::HashSet;
use api_models::analytics::{
disputes::{DisputeDimensions, DisputeFilters, DisputeMetricsBucketIdentifier},
Granularity, TimeRange,
};
use common_utils::errors::ReportSwitchExt;
use error_st... | crates/analytics/src/disputes/metrics/sessionized_metrics/dispute_status_metric.rs | analytics | full_file | 849 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn generate_id(length: usize, prefix: &str) -> String {
format!("{}_{}", prefix, nanoid!(length, &consts::ALPHABETS))
} | crates/router/src/utils.rs | router | function_signature | 37 | rust | null | null | null | null | generate_id | null | null | null | null | null | null | null |
pub struct PaymentMethodIntentCreate {
/// You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
#[schema(value_type = Option<Object>,example = json!({ "city": "NY", "unit": "24... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 221 | rust | PaymentMethodIntentCreate | null | null | null | null | null | null | null | null | null | null | null |
pub async fn payments_operation_core<F, Req, Op, FData, D>(
state: &SessionState,
req_state: ReqState,
merchant_context: domain::MerchantContext,
profile: &domain::Profile,
operation: Op,
req: Req,
get_tracker_response: operations::GetTrackerResponse<D>,
call_connector_action: CallConnec... | crates/router/src/core/payments.rs | router | function_signature | 1,767 | rust | null | null | null | null | payments_operation_core | null | null | null | null | null | null | null |
impl MandateSetup for Checkout {} | crates/hyperswitch_connectors/src/connectors/checkout.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Checkout | MandateSetup for | impl MandateSetup for for Checkout | null | null | null | null | null | null | null | null |
pub async fn create_gsm_rule() {} | crates/openapi/src/routes/gsm.rs | openapi | function_signature | 9 | rust | null | null | null | null | create_gsm_rule | null | null | null | null | null | null | null |
pub struct FiuuSyncStatus {
pub stat_name: StatName,
pub stat_code: StatCode,
} | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | FiuuSyncStatus | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorValidation for Paybox {
fn validate_mandate_payment(
&self,
pm_type: Option<enums::PaymentMethodType>,
pm_data: PaymentMethodData,
) -> CustomResult<(), errors::ConnectorError> {
let mandate_supported_pmd = std::collections::HashSet::from([PaymentMethodDataType::Car... | crates/hyperswitch_connectors/src/connectors/paybox.rs | hyperswitch_connectors | impl_block | 95 | rust | null | Paybox | ConnectorValidation for | impl ConnectorValidation for for Paybox | null | null | null | null | null | null | null | null |
pub struct ConfiguredRouting {
pub routing_id: String,
} | crates/api_models/src/user/dashboard_metadata.rs | api_models | struct_definition | 14 | rust | ConfiguredRouting | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let index = index.into_inner();
let flow = AnalyticsFlow::GetSearchResults;
let indexed_req = GetSearchRequestWithIndex {
search_req: json_payload.into_inner(),
index,
};
Box::pin(api::server_wrap(
flow,
state.clone... | crates/router/src/analytics.rs | router | impl_block | 1,111 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct Sale; | crates/hyperswitch_domain_models/src/router_flow_types/fraud_check.rs | hyperswitch_domain_models | struct_definition | 4 | rust | Sale | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/core/user_role/role.rs
Public functions: 9
use std::{cmp, collections::HashSet};
use api_models::user_role::role as role_api;
use common_enums::{EntityType, ParentGroup, PermissionGroup};
use common_utils::generate_id_with_default_len;
use diesel_models::role::{ListRolesByEntityPayload, RoleN... | crates/router/src/core/user_role/role.rs | router | full_file | 4,763 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.GooglePayAssuranceDetails
{
"type": "object",
"required": [
"card_holder_authenticated",
"account_verified"
],
"properties": {
"card_holder_authenticated": {
"type": "boolean",
"description": "indicates that Cardholder possession validation has been... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 115 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"GooglePayAssuranceDetails"
] | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.