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 Authipay {
amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/authipay.rs | hyperswitch_connectors | struct_definition | 27 | rust | Authipay | null | null | null | null | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Cybersource {
fn get_webhook_object_reference_id(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> {
Err(report!(errors::ConnectorError::WebhooksNotImplemen... | crates/hyperswitch_connectors/src/connectors/cybersource.rs | hyperswitch_connectors | impl_block | 214 | rust | null | Cybersource | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Cybersource | null | null | null | null | null | null | null | null |
pub struct Log {
/// Logging to a file.
pub file: LogFile,
/// Logging to a console.
pub console: LogConsole,
/// Telemetry / tracing.
pub telemetry: LogTelemetry,
} | crates/router_env/src/logger/config.rs | router_env | struct_definition | 48 | rust | Log | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorCommon for Rapyd {
fn id(&self) -> &'static str {
"rapyd"
}
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Base
}
fn common_get_content_type(&self) -> &'static str {
"application/json"
}
fn base_url<'a>(&self, connectors: &'a Co... | crates/hyperswitch_connectors/src/connectors/rapyd.rs | hyperswitch_connectors | impl_block | 438 | rust | null | Rapyd | ConnectorCommon for | impl ConnectorCommon for for Rapyd | null | null | null | null | null | null | null | null |
impl api::Payment for Hipay {} | crates/hyperswitch_connectors/src/connectors/hipay.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Hipay | api::Payment for | impl api::Payment for for Hipay | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Trustpay {} | crates/hyperswitch_connectors/src/connectors/trustpay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Trustpay | api::RefundExecute for | impl api::RefundExecute for for Trustpay | null | null | null | null | null | null | null | null |
pub struct SupplementaryVaultData {
pub customer_id: Option<id_type::CustomerId>,
pub payment_method_id: Option<String>,
} | crates/router/src/core/payment_methods/vault.rs | router | struct_definition | 28 | rust | SupplementaryVaultData | null | null | null | null | null | null | null | null | null | null | null |
File: crates/api_models/src/authentication.rs
Public functions: 4
Public structs: 12
use common_enums::{enums, AuthenticationConnectors};
#[cfg(feature = "v1")]
use common_utils::errors::{self, CustomResult};
use common_utils::{
events::{ApiEventMetric, ApiEventsType},
id_type,
};
#[cfg(feature = "v1")]
use ... | crates/api_models/src/authentication.rs | api_models | full_file | 5,352 | null | null | null | null | null | null | null | null | null | null | null | null | null |
/// get_max_auto_single_connector_payout_retries_enabled_
pub fn get_max_auto_single_connector_payout_retries_enabled(
&self,
payout_retry_type: common_enums::PayoutRetryType,
) -> String {
match payout_retry_type {
common_enums::PayoutRetryType::SingleConnector => format!(
... | crates/common_utils/src/id_type/merchant.rs | common_utils | function_signature | 133 | rust | null | null | null | null | get_max_auto_single_connector_payout_retries_enabled | null | null | null | null | null | null | null |
pub struct CashtocodeAuth {
pub password_classic: Option<Secret<String>>,
pub password_evoucher: Option<Secret<String>>,
pub username_classic: Option<Secret<String>>,
pub username_evoucher: Option<Secret<String>>,
pub merchant_id_classic: Option<Secret<String>>,
pub merchant_id_evoucher: Option<... | crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs | hyperswitch_connectors | struct_definition | 76 | rust | CashtocodeAuth | null | null | null | null | null | null | null | null | null | null | null |
pub async fn skip_locker_call_and_migrate_payment_method(
_state: state::PaymentMethodsState,
_req: &pm_api::PaymentMethodMigrate,
_merchant_id: id_type::MerchantId,
_merchant_context: &merchant_context::MerchantContext,
_card: pm_api::CardDetailFromLocker,
) -> CustomResult<ApplicationResponse<pm_a... | crates/payment_methods/src/core/migration/payment_methods.rs | payment_methods | function_signature | 96 | rust | null | null | null | null | skip_locker_call_and_migrate_payment_method | null | null | null | null | null | null | null |
pub struct AirwallexPLShippingAddress {
country_code: Option<enums::CountryAlpha2>,
city: Option<String>,
street: Option<Secret<String>>,
postcode: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | 44 | rust | AirwallexPLShippingAddress | null | null | null | null | null | null | null | null | null | null | null |
impl api::Payment for Tsys {} | crates/hyperswitch_connectors/src/connectors/tsys.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Tsys | api::Payment for | impl api::Payment for for Tsys | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/opennode.rs
use hyperswitch_domain_models::address::{Address, AddressDetails, PhoneDetails};
use masking::Secret;
use router::types::{self, api, domain, storage::enums};
use crate::{
connector_auth,
utils::{self, ConnectorActions},
};
#[derive(Clone, Copy)]
struct Opennod... | crates/router/tests/connectors/opennode.rs | router | full_file | 1,358 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn from_string(value: String) -> Self {
Self {
inner: FredRedisValue::String(value.into()),
}
} | crates/redis_interface/src/types.rs | redis_interface | function_signature | 29 | rust | null | null | null | null | from_string | null | null | null | null | null | null | null |
impl ConnectorPreAuthentication for Netcetera {} | crates/hyperswitch_connectors/src/connectors/netcetera.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Netcetera | ConnectorPreAuthentication for | impl ConnectorPreAuthentication for for Netcetera | null | null | null | null | null | null | null | null |
}),
&None,
&None,
None,
item.http_code,
item.response.id.clone(),
))
} else {
Err(ge... | crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs#chunk2 | hyperswitch_connectors | chunk | 3,733 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundSync for Itaubank {} | crates/hyperswitch_connectors/src/connectors/itaubank.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Itaubank | api::RefundSync for | impl api::RefundSync for for Itaubank | null | null | null | null | null | null | null | null |
pub struct ReturnLink {
pub rel: LinkType,
pub href: String,
pub method: String,
} | crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | ReturnLink | null | null | null | null | null | null | null | null | null | null | null |
pub struct CustomerAcceptance {
/// Type of acceptance provided by the
#[schema(example = "online")]
pub acceptance_type: AcceptanceType,
/// Specifying when the customer acceptance was provided
#[schema(example = "2022-09-10T10:11:12Z")]
#[serde(default, with = "common_utils::custom_serde::iso8... | crates/common_types/src/payments.rs | common_types | struct_definition | 124 | rust | CustomerAcceptance | null | null | null | null | null | null | null | null | null | null | null |
pub struct ApiModelMetaData {
pub merchant_config_currency: Option<api_models::enums::Currency>,
pub merchant_account_id: Option<String>,
pub account_name: Option<String>,
pub terminal_id: Option<String>,
pub merchant_id: Option<String>,
pub google_pay: Option<GoogleApiModelData>,
pub paypal... | crates/connector_configs/src/common_config.rs | connector_configs | struct_definition | 317 | rust | ApiModelMetaData | null | null | null | null | null | null | null | null | null | null | null |
pub struct ConnectorNetworkTxnId(masking::Secret<String>); | crates/hyperswitch_domain_models/src/router_flow_types/webhooks.rs | hyperswitch_domain_models | struct_definition | 14 | rust | ConnectorNetworkTxnId | null | null | null | null | null | null | null | null | null | null | null |
pub fn from_storage(refund: &'a Refund) -> Self {
let Refund {
payment_id,
merchant_id,
connector_transaction_id,
connector,
connector_refund_id,
external_reference_id,
refund_type,
total_amount,
currency... | crates/router/src/services/kafka/refund_event.rs | router | function_signature | 437 | rust | null | null | null | null | from_storage | null | null | null | null | null | null | null |
.cloned();
match maybe_mca {
Some(mca) => mca
.to_owned()
.convert(
state,
key_store.key.get_inner(),
key_store.merchant_id.clone().into(),
)
.await
... | crates/router/src/db/merchant_connector_account.rs#chunk1 | router | chunk | 5,582 | null | null | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/tokenization/tokenization--create.mdx
# Type: Doc File
---
openapi: post /v2/tokenize
--- | api-reference/v2/tokenization/tokenization--create.mdx | null | doc_file | 33 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct PixBankTransferAdditionalData {
/// Partially masked unique key for pix transfer
#[schema(value_type = String, example = "a1f4102e ****** 6fa48899c1d1")]
pub pix_key: MaskedBankAccount,
/// Partially masked CPF - CPF is a Brazilian tax identification number
#[schema(value_type = Option<S... | crates/common_utils/src/payout_method_utils.rs | common_utils | struct_definition | 220 | rust | PixBankTransferAdditionalData | null | null | null | null | null | null | null | null | null | null | null |
pub struct VerificationResults {
pub address_verification_code: String,
pub cvv2_verification_code: String,
} | crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs | hyperswitch_connectors | struct_definition | 24 | rust | VerificationResults | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.RefundRequest
{
"type": "object",
"required": [
"payment_id"
],
"properties": {
"payment_id": {
"type": "string",
"description": "The payment id against which refund is to be initiated",
"example": "pay_mbabizu24mvu3mela5njyhpit4",
"maxLengt... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 714 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"RefundRequest"
] | null | null | null | null |
.change_context(errors::ConnectorError::NoConnectorMetaData)
.attach_printable(format!(
"cannot parse gpay metadata from the given value {connector_metadata:?}"
))
.change_context(errors::ApiErrorResponse::InvalidDataFormat {
... | crates/router/src/core/payments/flows/session_flow.rs#chunk1 | router | chunk | 2,894 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct NetworkTokenPaymentInformation {
tokenized_card: NetworkTokenizedCard,
} | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | NetworkTokenPaymentInformation | null | null | null | null | null | null | null | null | null | null | null |
pub struct MpgsPaymentsResponse {
status: MpgsPaymentStatus,
id: String,
} | crates/hyperswitch_connectors/src/connectors/mpgs/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | MpgsPaymentsResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct IterMut<'a, K, V> {
inner: iter::Enumerate<slice::IterMut<'a, V>>,
_marker: PhantomData<K>,
} | crates/hyperswitch_constraint_graph/src/dense_map.rs | hyperswitch_constraint_graph | struct_definition | 38 | rust | IterMut | null | null | null | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/generic_link.rs
Public functions: 2
Public structs: 7
use common_utils::{
consts,
link_utils::{
EnabledPaymentMethod, GenericLinkStatus, GenericLinkUiConfig, PaymentMethodCollectStatus,
PayoutLinkData, PayoutLinkStatus,
},
};
use diesel::{AsChangeset, Identi... | crates/diesel_models/src/generic_link.rs | diesel_models | full_file | 1,663 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Novalnet {} | crates/hyperswitch_connectors/src/connectors/novalnet.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Novalnet | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Novalnet | null | null | null | null | null | null | null | null |
impl ClickhouseClient {
async fn execute_query(&self, query: &str) -> ClickhouseResult<Vec<serde_json::Value>> {
logger::debug!("Executing query: {query}");
let client = reqwest::Client::new();
let params = CkhQuery {
date_time_output_format: String::from("iso"),
outp... | crates/analytics/src/clickhouse.rs | analytics | impl_block | 298 | rust | null | ClickhouseClient | null | impl ClickhouseClient | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Stax {} | crates/hyperswitch_connectors/src/connectors/stax.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Stax | api::RefundExecute for | impl api::RefundExecute for for Stax | null | null | null | null | null | null | null | null |
pub struct TokenResponse {
pub cnp_token: Secret<String>,
pub token_response_code: String,
pub token_message: String,
#[serde(rename = "type")]
pub card_type: Option<String>,
pub bin: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs | hyperswitch_connectors | struct_definition | 53 | rust | TokenResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn payment_complete(
state: SessionState,
req: types::DummyConnectorPaymentCompleteRequest,
) -> types::DummyConnectorResponse<()> {
utils::tokio_mock_sleep(
state.conf.dummy_connector.payment_duration,
state.conf.dummy_connector.payment_tolerance,
)
.await;
let paymen... | crates/router/src/routes/dummy_connector/core.rs | router | function_signature | 436 | rust | null | null | null | null | payment_complete | null | null | null | null | null | null | null |
pub fn new(
id: id_type::OrganizationId,
organization_type: common_enums::OrganizationType,
organization_name: Option<String>,
) -> Self {
Self {
id,
organization_name,
organization_details: None,
metadata: None,
created_at:... | crates/diesel_models/src/organization.rs | diesel_models | function_signature | 108 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub async fn delete_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 | 240 | rust | null | null | null | null | delete_decision_manager_config | null | null | null | null | null | null | null |
impl ConnectorValidation for Paytm {
fn validate_mandate_payment(
&self,
_pm_type: Option<enums::PaymentMethodType>,
pm_data: PaymentMethodData,
) -> CustomResult<(), errors::ConnectorError> {
match pm_data {
PaymentMethodData::Card(_) => Err(errors::ConnectorError::N... | crates/hyperswitch_connectors/src/connectors/paytm.rs | hyperswitch_connectors | impl_block | 179 | rust | null | Paytm | ConnectorValidation for | impl ConnectorValidation for for Paytm | null | null | null | null | null | null | null | null |
pub fn list_initial_webhook_delivery_attempts() {} | crates/openapi/src/routes/webhook_events.rs | openapi | function_signature | 10 | rust | null | null | null | null | list_initial_webhook_delivery_attempts | null | null | null | null | null | null | null |
pub struct CommonMandateReference {
pub payments: Option<PaymentsMandateReference>,
pub payouts: Option<PayoutsMandateReference>,
} | crates/hyperswitch_domain_models/src/mandates.rs | hyperswitch_domain_models | struct_definition | 34 | rust | CommonMandateReference | null | null | null | null | null | null | null | null | null | null | null |
impl super::KafkaMessage for KafkaRefundEvent<'_> {
fn key(&self) -> String {
format!(
"{}_{}_{}_{}",
self.merchant_id.get_string_repr(),
self.payment_id.get_string_repr(),
self.attempt_id.get_string_repr(),
self.merchant_reference_id.get_string_re... | crates/router/src/services/kafka/refund_event.rs | router | impl_block | 96 | rust | null | KafkaRefundEvent | super::KafkaMessage for | impl super::KafkaMessage for for KafkaRefundEvent | null | null | null | null | null | null | null | null |
pub struct PaymentsRequest {
#[serde(rename = "DATEQ")]
pub date: String,
#[serde(rename = "TYPE")]
pub transaction_type: String,
#[serde(rename = "NUMQUESTION")]
pub paybox_request_number: String,
#[serde(rename = "MONTANT")]
pub amount: MinorUnit,
#[serde(rename = "REFERENCE")]... | crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs | hyperswitch_connectors | struct_definition | 307 | rust | PaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
pub(crate) fn create_grpc_request<T: Debug>(message: T, headers: GrpcHeaders) -> tonic::Request<T> {
let mut request = tonic::Request::new(message);
request.add_headers_to_grpc_request(headers);
logger::info!(?request);
request
} | crates/external_services/src/grpc_client.rs | external_services | function_signature | 63 | rust | null | null | null | null | create_grpc_request | null | null | null | null | null | null | null |
File: crates/router/src/routes/admin.rs
Public functions: 34
use actix_web::{web, HttpRequest, HttpResponse};
use router_env::{instrument, tracing, Flow};
use super::app::AppState;
use crate::{
core::{admin::*, api_locking, errors},
services::{api, authentication as auth, authorization::permissions::Permissi... | crates/router/src/routes/admin.rs | router | full_file | 7,828 | null | null | null | null | null | null | null | null | null | null | null | null | null |
"Merchant Represent"
| "Respond to Dispute"
| "Respond to PreArb"
| "Request Arbitration"
| "Request Pre-Arbitration"
| "Create Arbitration"
| "Record Arbitration"
| "Create Pre-Arbitration"
| "File Arbitration"
... | crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs#chunk5 | hyperswitch_connectors | chunk | 2,941 | null | null | null | null | null | null | null | null | null | null | null | null | null |
/// returns the inner bool value
pub fn is_true(&self) -> bool {
self.0
} | crates/common_utils/src/types/primitive_wrappers.rs | common_utils | function_signature | 25 | rust | null | null | null | null | is_true | null | null | null | null | null | null | null |
impl api::PaymentToken for Zen {} | crates/hyperswitch_connectors/src/connectors/zen.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Zen | api::PaymentToken for | impl api::PaymentToken for for Zen | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.SdkType
{
"type": "string",
"description": "Enum representing the type of 3DS SDK.",
"enum": [
"01",
"02",
"03",
"04",
"05"
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 67 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"SdkType"
] | null | null | null | null |
File: crates/router/src/types/storage/payment_method.rs
Public functions: 6
Public structs: 7
use api_models::payment_methods;
use diesel_models::enums;
pub use diesel_models::payment_method::{
PaymentMethod, PaymentMethodNew, PaymentMethodUpdate, PaymentMethodUpdateInternal,
TokenizeCoreWorkflow,
};
use cr... | crates/router/src/types/storage/payment_method.rs | router | full_file | 1,226 | null | null | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/v1/routing/routing--update-default-config.mdx
# Type: Doc File
---
openapi: post /routing/default
--- | api-reference/v1/routing/routing--update-default-config.mdx | null | doc_file | 33 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_entity_id(&self) -> &str {
&self.entity_id
} | crates/router/src/services/email/types.rs | router | function_signature | 20 | rust | null | null | null | null | get_entity_id | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Airwallex {} | crates/hyperswitch_connectors/src/connectors/airwallex.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Airwallex | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Airwallex | null | null | null | null | null | null | null | null |
pub struct GocardlessPaymentsRequest {
payments: GocardlessPayment,
} | crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs | hyperswitch_connectors | struct_definition | 17 | rust | GocardlessPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn payments_redirect_response(
state: web::Data<app::AppState>,
req: actix_web::HttpRequest,
json_payload: Option<web::Form<serde_json::Value>>,
path: web::Path<(
common_utils::id_type::PaymentId,
common_utils::id_type::MerchantId,
String,
) | crates/router/src/routes/payments.rs | router | function_signature | 75 | rust | null | null | null | null | payments_redirect_response | null | null | null | null | null | null | null |
pub struct TtlForExtendedCardInfo(u16); | crates/api_models/src/admin.rs | api_models | struct_definition | 12 | rust | TtlForExtendedCardInfo | null | null | null | null | null | null | null | null | null | null | null |
pub(crate) fn get_santander_webhook_event(
event_type: FunctionType,
) -> api_models::webhooks::IncomingWebhookEvent {
// need to confirm about the other possible webhook event statues, as of now only two known
match event_type {
FunctionType::Pagamento => api_models::webhooks::IncomingWebhookEvent:... | crates/hyperswitch_connectors/src/connectors/santander/transformers.rs | hyperswitch_connectors | function_signature | 104 | rust | null | null | null | null | get_santander_webhook_event | null | null | null | null | null | null | null |
pub async fn list_payment_methods_for_session(
state: SessionState,
merchant_context: domain::MerchantContext,
profile: domain::Profile,
payment_method_session_id: id_type::GlobalPaymentMethodSessionId,
) -> RouterResponse<api::PaymentMethodListResponseForSession> {
let key_manager_state = &(&state)... | crates/router/src/core/payment_methods.rs | router | function_signature | 349 | rust | null | null | null | null | list_payment_methods_for_session | null | null | null | null | null | null | null |
impl ConnectorValidation for Coinbase {} | crates/hyperswitch_connectors/src/connectors/coinbase.rs | hyperswitch_connectors | impl_block | 6 | rust | null | Coinbase | ConnectorValidation for | impl ConnectorValidation for for Coinbase | null | null | null | null | null | null | null | null |
pub fn get_client_id(&self) -> Secret<String> {
match self {
Self::StandardIntegration(item) => item.client_id.clone(),
Self::PartnerIntegration(item) => item.client_id.clone(),
}
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | function_signature | 47 | rust | null | null | null | null | get_client_id | null | null | null | null | null | null | null |
pub struct RedsysThreeDsInvokeData {
pub three_ds_method_url: String,
pub three_ds_method_data: String,
pub message_version: String,
pub directory_server_id: String,
pub three_ds_method_data_submission: bool,
} | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | struct_definition | 53 | rust | RedsysThreeDsInvokeData | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Trustpay {} | crates/hyperswitch_connectors/src/connectors/trustpay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Trustpay | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Trustpay | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Stripebilling {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&STRIPEBILLING_CONNECTOR_INFO)
}
fn get_supported_webhook_flows(&self) -> Option<&'static [enums::EventClass]> {
Some(&STRIPEBILLING_SUPPORTED_WEBHOOK_FLOWS)
}
} | crates/hyperswitch_connectors/src/connectors/stripebilling.rs | hyperswitch_connectors | impl_block | 79 | rust | null | Stripebilling | ConnectorSpecifications for | impl ConnectorSpecifications for for Stripebilling | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/payment-methods/payment-method--create.mdx
# Type: Doc File
---
openapi: post /v2/payment-methods
--- | api-reference/v2/payment-methods/payment-method--create.mdx | null | doc_file | 35 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct BeginTotpResponse {
pub secret: Option<TotpSecret>,
} | crates/api_models/src/user.rs | api_models | struct_definition | 17 | rust | BeginTotpResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct Authentication; | crates/router/src/routes/app.rs | router | struct_definition | 4 | rust | Authentication | null | null | null | null | null | null | null | null | null | null | null |
impl HealthCheckDbInterface for KafkaStore {
async fn health_check_db(&self) -> CustomResult<(), errors::HealthCheckDBError> {
self.diesel_store.health_check_db().await
}
} | crates/router/src/db/kafka_store.rs | router | impl_block | 44 | rust | null | KafkaStore | HealthCheckDbInterface for | impl HealthCheckDbInterface for for KafkaStore | null | null | null | null | null | null | null | null |
impl api::Payment for Trustpay {} | crates/hyperswitch_connectors/src/connectors/trustpay.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Trustpay | api::Payment for | impl api::Payment for for Trustpay | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/payouts/{payout_id}"
{
"get": {
"tags": [
"Payouts"
],
"summary": "Payouts - Retrieve",
"operationId": "Retrieve a Payout",
"parameters": [
{
"name": "payout_id",
"in": "path",
"description": "The identifier for payout",
"requ... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 526 | .json | null | null | null | null | null | openapi_spec | paths | [
"/payouts/{payout_id}"
] | null | null | null | null |
pub fn http_response_json<T: body::MessageBody + 'static>(response: T) -> HttpResponse {
HttpResponse::Ok()
.content_type(mime::APPLICATION_JSON)
.body(response)
} | crates/drainer/src/services.rs | drainer | function_signature | 43 | rust | null | null | null | null | http_response_json | null | null | null | null | null | null | null |
pub async fn get_three_ds_decision_rule_output(
state: &SessionState,
merchant_id: &common_utils::id_type::MerchantId,
request: api_models::three_ds_decision_rule::ThreeDsDecisionRuleExecuteRequest,
) -> errors::RouterResult<common_types::three_ds_decision_rule_engine::ThreeDSDecision> {
let db = state.... | crates/router/src/core/three_ds_decision_rule.rs | router | function_signature | 400 | rust | null | null | null | null | get_three_ds_decision_rule_output | null | null | null | null | null | null | null |
impl common_utils::events::ApiEventMetric for ProxyRequest {} | crates/api_models/src/proxy.rs | api_models | impl_block | 13 | rust | null | ProxyRequest | common_utils::events::ApiEventMetric for | impl common_utils::events::ApiEventMetric for for ProxyRequest | null | null | null | null | null | null | null | null |
Web Documentation: Cost Observability | Hyperswitch
# Type: Web Doc
Enterprises often face challenges and find difficulty in understanding and managing their payment processing costs, due to complexity, variability of the underlying fee structures and the entities involved. These fees typically consist of:
Interchange... | https://docs.hyperswitch.io/about-hyperswitch/payments-modules/ai-powered-cost-observability | null | web_doc_file | 460 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/about-hyperswitch/payments-modules/ai-powered-cost-observability | Cost Observability | Hyperswitch | null |
pub struct ProcessingInfoResponse {
pub processing_status: BluesnapProcessingStatus,
pub authorization_code: Option<String>,
pub network_transaction_id: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | hyperswitch_connectors | struct_definition | 36 | rust | ProcessingInfoResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Billwerk {} | crates/hyperswitch_connectors/src/connectors/billwerk.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Billwerk | api::PaymentSync for | impl api::PaymentSync for for Billwerk | null | null | null | null | null | null | null | null |
pub async fn mandate_procedure<F, FData>(
state: &SessionState,
resp: &types::RouterData<F, FData, types::PaymentsResponseData>,
customer_id: &Option<id_type::CustomerId>,
pm_id: Option<String>,
merchant_connector_id: Option<id_type::MerchantConnectorAccountId>,
storage_scheme: MerchantStorageSc... | crates/router/src/core/mandate.rs | router | function_signature | 902 | rust | null | null | null | null | mandate_procedure | null | null | null | null | null | null | null |
impl Serialize for DecryptedData {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,
{
let data = BASE64_ENGINE.encode(self.0.peek());
serializer.serialize_str(&data)
}
} | crates/common_utils/src/types/keymanager.rs | common_utils | impl_block | 64 | rust | null | DecryptedData | Serialize for | impl Serialize for for DecryptedData | null | null | null | null | null | null | null | null |
pub async fn pg_connection_read<T: crate::DatabaseStore>(
store: &T,
) -> errors::CustomResult<
PooledConnection<'_, async_bb8_diesel::ConnectionManager<PgConnection>>,
crate::errors::StorageError,
> {
// If only OLAP is enabled get replica pool.
#[cfg(all(feature = "olap", not(feature = "oltp")))]
... | crates/storage_impl/src/connection.rs | storage_impl | function_signature | 238 | rust | null | null | null | null | pg_connection_read | null | null | null | null | null | null | null |
/// Result type for webhook processing path determination
pub struct WebhookProcessingResult {
event_type: webhooks::IncomingWebhookEvent,
source_verified: bool,
transform_data: Option<Box<unified_connector_service::WebhookTransformData>>,
decoded_body: Option<actix_web::web::Bytes>,
} | crates/router/src/core/webhooks/incoming.rs | router | struct_definition | 66 | rust | WebhookProcessingResult | null | null | null | null | null | null | null | null | null | null | null |
pub async fn update_default_fallback_routing_of_connectors_under_profile(
self,
db: &dyn StorageInterface,
updated_config: &Vec<routing_types::RoutableConnectorChoice>,
key_manager_state: &KeyManagerState,
merchant_key_store: &domain::MerchantKeyStore,
) -> RouterResult<()> {... | crates/router/src/core/admin.rs | router | function_signature | 213 | rust | null | null | null | null | update_default_fallback_routing_of_connectors_under_profile | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::DecisionManagerDeleteConfig;
Box::pin(oss_api::server_wrap(
flow,
state,
&req,
(),
|state, auth: auth::AuthenticationData, (), _| {
let merchant_context = domain::MerchantContext::NormalMerchant(Box::new(
domai... | crates/router/src/routes/routing.rs | router | impl_block | 216 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
impl Blocklist {
pub fn server(state: AppState) -> Scope {
web::scope("/blocklist")
.app_data(web::Data::new(state))
.service(
web::resource("")
.route(web::get().to(blocklist::list_blocked_payment_methods))
.route(web::post().t... | crates/router/src/routes/app.rs | router | impl_block | 125 | rust | null | Blocklist | null | impl Blocklist | null | null | null | null | null | null | null | null |
File: crates/common_utils/src/id_type/global_id.rs
Public functions: 2
Public structs: 1
pub(super) mod customer;
pub(super) mod payment;
pub(super) mod payment_methods;
pub(super) mod refunds;
pub(super) mod token;
use diesel::{backend::Backend, deserialize::FromSql, serialize::ToSql, sql_types};
use error_stack::... | crates/common_utils/src/id_type/global_id.rs | common_utils | full_file | 2,074 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorAccessToken for Riskified {} | crates/hyperswitch_connectors/src/connectors/riskified.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Riskified | ConnectorAccessToken for | impl ConnectorAccessToken for for Riskified | null | null | null | null | null | null | null | null |
pub struct CaptureResponseData {
capture_transaction: CaptureTransactionData,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | CaptureResponseData | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorCommon for Novalnet {
fn id(&self) -> &'static str {
"novalnet"
}
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Minor
}
fn common_get_content_type(&self) -> &'static str {
"application/json"
}
fn base_url<'a>(&self, connectors:... | crates/hyperswitch_connectors/src/connectors/novalnet.rs | hyperswitch_connectors | impl_block | 430 | rust | null | Novalnet | ConnectorCommon for | impl ConnectorCommon for for Novalnet | null | null | null | null | null | null | null | null |
pub async fn accept_dispute(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<String>,
) -> HttpResponse {
let flow = Flow::DisputesRetrieve;
let dispute_id = dispute_types::DisputeId {
dispute_id: path.into_inner(),
};
Box::pin(api::server_wrap(
flow,
st... | crates/router/src/routes/disputes.rs | router | function_signature | 231 | rust | null | null | null | null | accept_dispute | null | null | null | null | null | null | null |
File: crates/router/src/core/disputes/transformers.rs
Public functions: 5
use api_models::disputes::EvidenceType;
use common_utils::errors::CustomResult;
use error_stack::ResultExt;
use crate::{
core::{errors, files::helpers::retrieve_file_and_provider_file_id_from_file_id},
routes::SessionState,
types::... | crates/router/src/core/disputes/transformers.rs | router | full_file | 2,976 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::Refund for Nomupay {} | crates/hyperswitch_connectors/src/connectors/nomupay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Nomupay | api::Refund for | impl api::Refund for for Nomupay | null | null | null | null | null | null | null | null |
impl RefundExecute for Riskified {} | crates/hyperswitch_connectors/src/connectors/riskified.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Riskified | RefundExecute for | impl RefundExecute for for Riskified | null | null | null | null | null | null | null | null |
File: crates/router/src/connection.rs
Public functions: 5
use bb8::PooledConnection;
use diesel::PgConnection;
use error_stack::ResultExt;
use storage_impl::errors as storage_errors;
use crate::errors;
pub type PgPool = bb8::Pool<async_bb8_diesel::ConnectionManager<PgConnection>>;
pub type PgPooledConn = async_bb8... | crates/router/src/connection.rs | router | full_file | 862 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/core/fraud_check/flows/record_return.rs
Public functions: 1
use async_trait::async_trait;
use common_utils::ext_traits::ValueExt;
use error_stack::ResultExt;
use crate::{
connector::signifyd::transformers::RefundMethod,
core::{
errors::{ConnectorErrorExt, RouterResult},
... | crates/router/src/core/fraud_check/flows/record_return.rs | router | full_file | 1,436 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundSync for Globepay {} | crates/hyperswitch_connectors/src/connectors/globepay.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Globepay | api::RefundSync for | impl api::RefundSync for for Globepay | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.SplitRefund
{
"oneOf": [
{
"type": "object",
"required": [
"stripe_split_refund"
],
"properties": {
"stripe_split_refund": {
"$ref": "#/components/schemas/StripeSplitRefundRequest"
}
}
},
{
"type":... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 230 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"SplitRefund"
] | null | null | null | null |
impl VaultingDataInterface for PaymentMethodVaultingData {
fn get_vaulting_data_key(&self) -> String {
match &self {
Self::Card(card) => card.card_number.to_string(),
#[cfg(feature = "v2")]
Self::NetworkToken(network_token) => network_token.network_token.to_string(),
... | crates/hyperswitch_domain_models/src/vault.rs | hyperswitch_domain_models | impl_block | 74 | rust | null | PaymentMethodVaultingData | VaultingDataInterface for | impl VaultingDataInterface for for PaymentMethodVaultingData | null | null | null | null | null | null | null | null |
pub struct ValidationError {
pub field: String,
pub message: String,
} | crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs | hyperswitch_connectors | struct_definition | 17 | rust | ValidationError | null | null | null | null | null | null | null | null | null | null | null |
Web Documentation: Using Hyperswitch Control Center | Hyperswitch
# Type: Web Doc
Video
Getting started - Login / Register
During the local setup, a user has been configured automatically for you. You can use following credentials to access the dashboard.
On the landing page, click on the sign up button. Enter your em... | https://docs.hyperswitch.io/hyperswitch-open-source/account-setup/using-hyperswitch-control-center | null | web_doc_file | 537 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/hyperswitch-open-source/account-setup/using-hyperswitch-control-center | Using Hyperswitch Control Center | Hyperswitch | null |
pub fn get_payout_variant_values(key: &str) -> Result<JsValue, JsValue> {
let key =
dir::PayoutDirKeyKind::from_str(key).map_err(|_| "Invalid key received".to_string())?;
let variants: &[&str] = match key {
dir::PayoutDirKeyKind::BusinessCountry => dir_enums::BusinessCountry::VARIANTS,
... | crates/euclid_wasm/src/lib.rs | euclid_wasm | function_signature | 245 | rust | null | null | null | null | get_payout_variant_values | 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.