text string | file_path string | module string | type string | tokens int64 | language string | struct_name string | type_name string | trait_name string | impl_type string | function_name string | source string | section string | keys list | macro_type string | url string | title string | chunk_index int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
impl PaymentMethod {
#[cfg(feature = "v1")]
pub fn get_id(&self) -> &String {
&self.payment_method_id
}
#[cfg(feature = "v2")]
pub fn get_id(&self) -> &common_utils::id_type::GlobalPaymentMethodId {
&self.id
}
} | crates/diesel_models/src/payment_method.rs | diesel_models | impl_block | 72 | rust | null | PaymentMethod | null | impl PaymentMethod | null | null | null | null | null | null | null | null |
pub struct ProfileGeneralUpdate {
pub profile_name: Option<String>,
pub return_url: Option<String>,
pub enable_payment_response_hash: Option<bool>,
pub payment_response_hash_key: Option<String>,
pub redirect_to_merchant_with_http_post: Option<bool>,
pub webhook_details: Option<WebhookDetails>,
... | crates/hyperswitch_domain_models/src/business_profile.rs | hyperswitch_domain_models | struct_definition | 585 | rust | ProfileGeneralUpdate | null | null | null | null | null | null | null | null | null | null | null |
pub struct ElavonRefundRequest {
pub ssl_transaction_type: TransactionType,
pub ssl_account_id: Secret<String>,
pub ssl_user_id: Secret<String>,
pub ssl_pin: Secret<String>,
pub ssl_amount: StringMajorUnit,
pub ssl_txn_id: String,
} | crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | hyperswitch_connectors | struct_definition | 62 | rust | ElavonRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ConnectorMetadata
{
"type": "object",
"description": "Some connectors like Apple Pay, Airwallex and Noon might require some additional information, find specific details in the child attributes below.",
"properties": {
"apple_pay": {
"allOf": [
{
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 263 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ConnectorMetadata"
] | null | null | null | null |
impl MandateSetup for Threedsecureio {} | crates/hyperswitch_connectors/src/connectors/threedsecureio.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Threedsecureio | MandateSetup for | impl MandateSetup for for Threedsecureio | null | null | null | null | null | null | null | null |
pub fn iter(&self) -> Iter<'_, K, V> {
Iter::new(self.data.iter())
} | crates/hyperswitch_constraint_graph/src/dense_map.rs | hyperswitch_constraint_graph | function_signature | 25 | rust | null | null | null | null | iter | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Helcim {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&HELCIM_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*HELCIM_SUPPORTED_PAYMENT_METHODS)
}
fn get_support... | crates/hyperswitch_connectors/src/connectors/helcim.rs | hyperswitch_connectors | impl_block | 109 | rust | null | Helcim | ConnectorSpecifications for | impl ConnectorSpecifications for for Helcim | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Archipel {} | crates/hyperswitch_connectors/src/connectors/archipel.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Archipel | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Archipel | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Worldpayvantiv {} | crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Worldpayvantiv | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Worldpayvantiv | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Adyen {} | crates/hyperswitch_connectors/src/connectors/adyen.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Adyen | api::RefundExecute for | impl api::RefundExecute for for Adyen | null | null | null | null | null | null | null | null |
impl ProphetpayCardContext {
fn get_card_context(&self) -> i8 {
match self {
Self::NotApplicable => 0,
Self::WebConsumerInitiated => 5,
}
}
} | crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | hyperswitch_connectors | impl_block | 48 | rust | null | ProphetpayCardContext | null | impl ProphetpayCardContext | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/api-key/api-key--create.mdx
# Type: Doc File
---
openapi: post /v2/api-keys
--- | api-reference/v2/api-key/api-key--create.mdx | null | doc_file | 33 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CancelOrCaptureTransactionRequest {
create_transaction_request: AuthorizedotnetPaymentCancelOrCaptureRequest,
} | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | CancelOrCaptureTransactionRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct FiuuRouterData<T> {
pub amount: StringMajorUnit,
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | FiuuRouterData | null | null | null | null | null | null | null | null | null | null | null |
File: crates/openapi/src/routes/proxy.rs
Public functions: 1
#[cfg(feature = "v2")]
///Proxy
///
/// Create a proxy request
#[utoipa::path(
post,
path = "/proxy",
request_body(
content = ProxyRequest,
examples((
"Create a proxy request" = (
value = json!({
... | crates/openapi/src/routes/proxy.rs | openapi | full_file | 410 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn seed_forex(forex: JsValue) -> JsResult {
let forex: currency_conversion_types::ExchangeRates = serde_wasm_bindgen::from_value(forex)?;
SEED_FOREX
.set(forex)
.map_err(|_| "Forex has already been seeded".to_string())
.err_to_js()?;
Ok(JsValue::NULL)
} | crates/euclid_wasm/src/lib.rs | euclid_wasm | function_signature | 85 | rust | null | null | null | null | seed_forex | null | null | null | null | null | null | null |
impl DecideWalletFlow {
fn get_paze_payment_processing_details(&self) -> Option<&PazePaymentProcessingDetails> {
if let Self::PazeDecrypt(details) = self {
Some(details)
} else {
None
}
}
fn get_apple_pay_payment_processing_details(
&self,
) -> Op... | crates/router/src/core/payments.rs | router | impl_block | 163 | rust | null | DecideWalletFlow | null | impl DecideWalletFlow | null | null | null | null | null | null | null | null |
pub struct CompleteAuthorizeRedirectResponse {
pub params: Option<masking::Secret<String>>,
pub payload: Option<pii::SecretSerdeValue>,
} | crates/hyperswitch_domain_models/src/router_response_types.rs | hyperswitch_domain_models | struct_definition | 33 | rust | CompleteAuthorizeRedirectResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn refunds_filter_list(
state: web::Data<AppState>,
req: HttpRequest,
payload: web::Json<common_utils::types::TimeRange>,
) -> HttpResponse {
let flow = Flow::RefundsList;
Box::pin(api::server_wrap(
flow,
state,
&req,
payload.into_inner(),
|state, au... | crates/router/src/routes/refunds.rs | router | function_signature | 210 | rust | null | null | null | null | refunds_filter_list | null | null | null | null | null | null | null |
impl CommonStorageInterface for Store {
fn get_global_storage_interface(&self) -> Box<dyn GlobalStorageInterface> {
Box::new(self.clone())
}
fn get_storage_interface(&self) -> Box<dyn StorageInterface> {
Box::new(self.clone())
}
fn get_accounts_storage_interface(&self) -> Box<dyn Acc... | crates/router/src/db.rs | router | impl_block | 84 | rust | null | Store | CommonStorageInterface for | impl CommonStorageInterface for for Store | null | null | null | null | null | null | null | null |
### Bug Fixes
- **router:** Persist card_network if present for non co-badged cards ([#6212](https://github.com/juspay/hyperswitch/pull/6212)) ([`7564826`](https://github.com/juspay/hyperswitch/commit/75648262e7f741351c1149cd01083065d17bde7f))
**Full Changelog:** [`2024.10.04.0...2024.10.04.1`](https://github.com/jus... | CHANGELOG.md#chunk21 | null | doc_chunk | 8,186 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::Payment for Bluecode {} | crates/hyperswitch_connectors/src/connectors/bluecode.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Bluecode | api::Payment for | impl api::Payment for for Bluecode | null | null | null | null | null | null | null | null |
pub struct PaymentCreateIntent; | crates/hyperswitch_domain_models/src/router_flow_types/payments.rs | hyperswitch_domain_models | struct_definition | 6 | rust | PaymentCreateIntent | null | null | null | null | null | null | null | null | null | null | null |
impl api::PayoutsV2 for Recurly {} | crates/hyperswitch_connectors/src/connectors/recurly.rs | hyperswitch_connectors | impl_block | 13 | rust | null | Recurly | api::PayoutsV2 for | impl api::PayoutsV2 for for Recurly | null | null | null | null | null | null | null | null |
impl ConnectorCommon for Amazonpay {
fn id(&self) -> &'static str {
"amazonpay"
}
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... | crates/hyperswitch_connectors/src/connectors/amazonpay.rs | hyperswitch_connectors | impl_block | 288 | rust | null | Amazonpay | ConnectorCommon for | impl ConnectorCommon for for Amazonpay | null | null | null | null | null | null | null | null |
pub fn check_connector_for_dynamic_amount(connector_name: &str) -> (&str, Option<String>) {
let collection_dir_path = get_dir_path(connector_name);
let dynamic_amount_connectors = ["nmi", "powertranz"];
if dynamic_amount_connectors.contains(&connector_name) {
return remove_quotes_for_integer_value... | crates/test_utils/src/newman_runner.rs | test_utils | function_signature | 182 | rust | null | null | null | null | check_connector_for_dynamic_amount | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use std::sync::LazyLock;
use base64::Engine;
use common_utils::{
consts::BASE64_ENGINE,
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuil... | crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs#chunk0 | hyperswitch_connectors | chunk | 8,185 | null | null | null | null | null | null | null | null | null | null | null | null | null |
- [Nexixpay] add mandates flow for cards ([#6259](https://github.com/juspay/hyperswitch/pull/6259)) ([`62521f3`](https://github.com/juspay/hyperswitch/commit/62521f367bbbf1f9153b506934eafee7eb58e2fb))
- Added a new CaptureMethod SequentialAutomatic to Support CIT Mandates for Paybox ([#6587](https://github.com/jusp... | CHANGELOG.md#chunk17 | null | doc_chunk | 8,137 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CybersourceAuthEnrollmentRequest {
payment_information: PaymentInformation,
client_reference_information: ClientReferenceInformation,
consumer_authentication_information: CybersourceConsumerAuthInformationRequest,
order_information: OrderInformationWithBill,
}
#[derive(Debug, Deserialize)]
#... | crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs#chunk3 | hyperswitch_connectors | chunk | 8,192 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn make_in_aggregator<M: Metadata>(
&mut self,
values: Vec<V>,
info: Option<&'static str>,
metadata: Option<M>,
) -> Result<NodeId, GraphError<V>> {
let key = values
.first()
.ok_or(GraphError::NoInAggregatorValues)?
.get_key();
... | crates/hyperswitch_constraint_graph/src/builder.rs | hyperswitch_constraint_graph | function_signature | 217 | rust | null | null | null | null | make_in_aggregator | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/prophetpay.rs
Public structs: 1
pub mod transformers;
use std::{fmt::Debug, sync::LazyLock};
use api_models::webhooks::{IncomingWebhookEvent, ObjectReferenceId};
use base64::Engine;
use common_enums::enums;
use common_utils::{
consts::BASE64_ENGINE,
errors::... | crates/hyperswitch_connectors/src/connectors/prophetpay.rs | hyperswitch_connectors | full_file | 5,564 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn validate(&self) -> Result<(), ApplicationError> {
use common_utils::fp_utils::when;
when(self.paze_private_key.is_default_or_empty(), || {
Err(ApplicationError::InvalidConfigurationValueError(
"paze_private_key must not be empty".into(),
))
})?;
... | crates/router/src/configs/validations.rs | router | function_signature | 117 | rust | null | null | null | null | validate | null | null | null | null | null | null | null |
pub fn get_amount_field(&self, index: SearchIndex) -> &str {
match index {
SearchIndex::Refunds | SearchIndex::SessionizerRefunds => "refund_amount",
SearchIndex::Disputes | SearchIndex::SessionizerDisputes => "dispute_amount",
_ => "amount",
}
} | crates/analytics/src/opensearch.rs | analytics | function_signature | 72 | rust | null | null | null | null | get_amount_field | null | null | null | null | null | null | null |
impl RefundResponse {
pub fn get_refund_id_as_string(&self) -> String {
self.refund_id.clone()
}
} | crates/api_models/src/refunds.rs | api_models | impl_block | 30 | rust | null | RefundResponse | null | impl RefundResponse | null | null | null | null | null | null | null | null |
File: crates/router/src/routes/currency.rs
Public functions: 2
use actix_web::{web, HttpRequest, HttpResponse};
use router_env::Flow;
use crate::{
core::{api_locking, currency},
routes::AppState,
services::{api, authentication as auth},
};
#[cfg(feature = "v1")]
pub async fn retrieve_forex(state: web::D... | crates/router/src/routes/currency.rs | router | full_file | 433 | null | null | null | null | null | null | null | null | null | null | null | null | null |
async fn find_refund_by_id(
&self,
id: &common_utils::id_type::GlobalRefundId,
_storage_scheme: enums::MerchantStorageScheme,
) -> CustomResult<diesel_refund::Refund, errors::StorageError> {
let conn = connection::pg_connection_read(self).await?;
... | crates/router/src/db/refund.rs#chunk1 | router | chunk | 7,450 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Globepay {} | crates/hyperswitch_connectors/src/connectors/globepay.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Globepay | api::RefundExecute for | impl api::RefundExecute for for Globepay | null | null | null | null | null | null | null | null |
File: crates/router/src/core/relay.rs
Public functions: 5
Public structs: 2
use std::marker::PhantomData;
use api_models::relay as relay_api_models;
use async_trait::async_trait;
use common_enums::RelayStatus;
use common_utils::{
self, fp_utils,
id_type::{self, GenerateId},
};
use error_stack::ResultExt;
us... | crates/router/src/core/relay.rs | router | full_file | 3,338 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.OutgoingWebhook
{
"type": "object",
"required": [
"merchant_id",
"event_id",
"event_type",
"content"
],
"properties": {
"merchant_id": {
"type": "string",
"description": "The merchant id of the merchant"
},
"event_id": {
"type"... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 188 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"OutgoingWebhook"
] | null | null | null | null |
impl api::PaymentToken for Inespay {} | crates/hyperswitch_connectors/src/connectors/inespay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Inespay | api::PaymentToken for | impl api::PaymentToken for for Inespay | null | null | null | null | null | null | null | null |
pub async fn update_payment_method_connector_mandate_details(
state: &routes::SessionState,
key_store: &domain::MerchantKeyStore,
db: &dyn db::StorageInterface,
pm: domain::PaymentMethod,
connector_mandate_details: Option<CommonMandateReference>,
storage_scheme: MerchantStorageScheme,
) -> error... | crates/router/src/core/payment_methods/cards.rs | router | function_signature | 170 | rust | null | null | null | null | update_payment_method_connector_mandate_details | null | null | null | null | null | null | null |
pub struct PaytmErrorResponse {
pub status_code: u16,
pub code: String,
pub message: String,
pub reason: Option<String>,
pub network_advice_code: Option<String>,
pub network_decline_code: Option<String>,
pub network_error_message: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/paytm/transformers.rs | hyperswitch_connectors | struct_definition | 64 | rust | PaytmErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn routing_retrieve_default_config_for_profiles() {} | crates/openapi/src/routes/routing.rs | openapi | function_signature | 12 | rust | null | null | null | null | routing_retrieve_default_config_for_profiles | null | null | null | null | null | null | null |
impl api::Payment for Adyenplatform {} | crates/hyperswitch_connectors/src/connectors/adyenplatform.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Adyenplatform | api::Payment for | impl api::Payment for for Adyenplatform | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/query/dynamic_routing_stats.rs
Public functions: 3
use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods};
use error_stack::report;
use super::generics;
use crate::{
dynamic_routing_stats::{
DynamicRoutingStats, DynamicRoutingStatsNew, DynamicRouting... | crates/diesel_models/src/query/dynamic_routing_stats.rs | diesel_models | full_file | 432 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct UserKeyTransferRequest {
pub from: u32,
pub limit: u32,
} | crates/api_models/src/user.rs | api_models | struct_definition | 24 | rust | UserKeyTransferRequest | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_method(&self) -> common_utils::request::Method {
self.0.method
} | crates/router/src/core/proxy/utils.rs | router | function_signature | 23 | rust | null | null | null | null | get_method | null | null | null | null | null | null | null |
pub struct ResultCode {
pub(super) code: String,
pub(super) description: String,
pub(super) parameter_errors: Option<Vec<ErrorParameters>>,
} | crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | hyperswitch_connectors | struct_definition | 35 | rust | ResultCode | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Shift4 {} | crates/hyperswitch_connectors/src/connectors/shift4.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Shift4 | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Shift4 | null | null | null | null | null | null | null | null |
impl CustomerUpdateRequest {
pub fn get_default_customer_billing_address(&self) -> Option<payments::AddressDetails> {
self.default_billing_address.clone()
}
pub fn get_default_customer_shipping_address(&self) -> Option<payments::AddressDetails> {
self.default_shipping_address.clone()
}
... | crates/api_models/src/customers.rs | api_models | impl_block | 66 | rust | null | CustomerUpdateRequest | null | impl CustomerUpdateRequest | null | null | null | null | null | null | null | null |
File: crates/analytics/src/frm/accumulator.rs
Public functions: 1
Public structs: 3
use api_models::analytics::frm::FrmMetricsBucketValue;
use common_enums::enums as storage_enums;
use super::metrics::FrmMetricRow;
#[derive(Debug, Default)]
pub struct FrmMetricsAccumulator {
pub frm_triggered_attempts: Triggere... | crates/analytics/src/frm/accumulator.rs | analytics | full_file | 584 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct Datatrans3DSResponse {
pub transaction_id: String,
#[serde(rename = "3D")]
pub three_ds_enrolled: ThreeDSEnolled,
} | crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | hyperswitch_connectors | struct_definition | 40 | rust | Datatrans3DSResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::RefundSync for HyperswitchVault {} | crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs | hyperswitch_connectors | impl_block | 12 | rust | null | HyperswitchVault | api::RefundSync for | impl api::RefundSync for for HyperswitchVault | null | null | null | null | null | null | null | null |
/// Reopen calculate workflow when payment fails
pub async fn reopen_calculate_workflow_on_payment_failure(
state: &SessionState,
process: &storage::ProcessTracker,
profile: &domain::Profile,
merchant_context: domain::MerchantContext,
payment_intent: &PaymentIntent,
revenue_recovery_payment_data... | crates/router/src/core/revenue_recovery/types.rs | router | function_signature | 1,387 | rust | null | null | null | null | reopen_calculate_workflow_on_payment_failure | null | null | null | null | null | null | null |
impl api::PayoutCancel for Adyen {} | crates/hyperswitch_connectors/src/connectors/adyen.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Adyen | api::PayoutCancel for | impl api::PayoutCancel for for Adyen | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/refunds/list"
{
"post": {
"tags": [
"Refunds"
],
"summary": "Refunds - List",
"description": "Lists all the refunds associated with the merchant, or for a specific payment if payment_id is provided",
"operationId": "List all Refunds",
"requestBody": {
"c... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 208 | .json | null | null | null | null | null | openapi_spec | paths | [
"/refunds/list"
] | null | null | null | null |
pub struct ContractRoutingAlgorithm {
pub algorithm_id_with_timestamp:
DynamicAlgorithmWithTimestamp<common_utils::id_type::RoutingId>,
#[serde(default)]
pub enabled_feature: DynamicRoutingFeatures,
} | crates/api_models/src/routing.rs | api_models | struct_definition | 43 | rust | ContractRoutingAlgorithm | null | null | null | null | null | null | null | null | null | null | null |
pub struct InputClientTokenData {
client_token: ClientTokenInput,
} | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | InputClientTokenData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn generate_merchant_payment_report(
state: web::Data<AppState>,
req: actix_web::HttpRequest,
json_payload: web::Json<ReportRequest>,
) -> impl Responder {
let flow = AnalyticsFlow::GeneratePaymentReport;
Box::pin(api::server_wrap(
flow,
stat... | crates/router/src/analytics.rs | router | function_signature | 365 | rust | null | null | null | null | generate_merchant_payment_report | null | null | null | null | null | null | null |
pub fn get_response_payload(input: JsValue) -> JsResult {
let input: ConnectorApiIntegrationPayload = serde_wasm_bindgen::from_value(input)?;
let result = ConnectorApiIntegrationPayload::get_transformed_response_payload(input);
Ok(serde_wasm_bindgen::to_value(&result)?)
} | crates/euclid_wasm/src/lib.rs | euclid_wasm | function_signature | 65 | rust | null | null | null | null | get_response_payload | null | null | null | null | null | null | null |
File: crates/test_utils/tests/connectors/globalpay_ui.rs
use serial_test::serial;
use thirtyfour::{prelude::*, WebDriver};
use crate::{selenium::*, tester};
struct GlobalpaySeleniumTest;
impl SeleniumTest for GlobalpaySeleniumTest {
fn get_connector_name(&self) -> String {
"globalpay".to_string()
}
... | crates/test_utils/tests/connectors/globalpay_ui.rs | test_utils | full_file | 1,718 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/gsm/update"
{
"post": {
"tags": [
"Gsm"
],
"summary": "Gsm - Update",
"description": "Updates a Gsm Rule",
"operationId": "Update Gsm Rule",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/componen... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 210 | .json | null | null | null | null | null | openapi_spec | paths | [
"/gsm/update"
] | null | null | null | null |
File: crates/diesel_models/src/authentication.rs
Public functions: 2
Public structs: 3
use common_utils::{encryption::Encryption, pii};
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use serde::{self, Deserialize, Serialize};
use serde_json;
use crate::schema::authentication;
#[derive(... | crates/diesel_models/src/authentication.rs | diesel_models | full_file | 4,560 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_interfaces/src/api/files_v2.rs
//! Files V2 interface
use hyperswitch_domain_models::{
router_data_v2::FilesFlowData,
router_flow_types::{Retrieve, Upload},
router_request_types::{RetrieveFileRequestData, UploadFileRequestData},
router_response_types::{RetrieveFileResponse, Up... | crates/hyperswitch_interfaces/src/api/files_v2.rs | hyperswitch_interfaces | full_file | 289 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn metadata_is_advanced_rule_for_payments(&self) -> bool {
matches!(self.kind, enums::RoutingAlgorithmKind::Advanced)
&& matches!(self.algorithm_for, enums::TransactionType::Payment)
} | crates/diesel_models/src/routing_algorithm.rs | diesel_models | function_signature | 45 | rust | null | null | null | null | metadata_is_advanced_rule_for_payments | null | null | null | null | null | null | null |
pub fn from_storage(attempt: &'a PaymentAttempt) -> Self {
use masking::PeekInterface;
let PaymentAttempt {
payment_id,
merchant_id,
amount_details,
status,
connector,
error,
authentication_type,
created_at,
... | crates/router/src/services/kafka/payment_attempt_event.rs | router | function_signature | 1,230 | rust | null | null | null | null | from_storage | null | null | null | null | null | null | null |
File: crates/router/tests/cache.rs
#![allow(clippy::unwrap_used, clippy::print_stdout)]
use std::sync::Arc;
use router::{configs::settings::Settings, routes, services};
use storage_impl::redis::cache::{self, CacheKey};
mod utils;
#[actix_web::test]
async fn invalidate_existing_cache_success() {
// Arrange
B... | crates/router/tests/cache.rs | router | full_file | 736 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct ErrorInformation {
pub message: String,
pub reason: String,
pub details: Option<Vec<Details>>,
} | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 27 | rust | ErrorInformation | null | null | null | null | null | null | null | null | null | null | null |
pub struct MessageResponseType {
response: Option<RedsysSyncResponseData>,
errormsg: Option<SyncErrorCode>,
} | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | MessageResponseType | null | null | null | null | null | null | null | null | null | null | null |
pub struct RecurringInformation {
/// Number of occurrences. Not applicable for NO (use end_date instead). Format: int32.
#[serde(skip_serializing_if = "Option::is_none")]
pub count: Option<i32>,
/// Date on which the recurrence will end. Format: YYYY-MM-DD. Applicable only for Norway. Format: date
... | crates/hyperswitch_connectors/src/connectors/nordea/requests.rs | hyperswitch_connectors | struct_definition | 132 | rust | RecurringInformation | null | null | null | null | null | null | null | null | null | null | null |
pub async fn find_by_merchant_id_connector(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
connector_label: &str,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
dsl::merchant_id
... | crates/diesel_models/src/query/merchant_connector_account.rs | diesel_models | function_signature | 108 | rust | null | null | null | null | find_by_merchant_id_connector | null | null | null | null | null | null | null |
impl api::PaymentSync for Celero {} | crates/hyperswitch_connectors/src/connectors/celero.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Celero | api::PaymentSync for | impl api::PaymentSync for for Celero | null | null | null | null | null | null | null | null |
impl super::behaviour::Conversion for Tokenization {
type DstType = diesel_models::tokenization::Tokenization;
type NewDstType = diesel_models::tokenization::Tokenization;
async fn convert(self) -> CustomResult<Self::DstType, ValidationError> {
Ok(diesel_models::tokenization::Tokenization {
... | crates/hyperswitch_domain_models/src/tokenization.rs | hyperswitch_domain_models | impl_block | 355 | rust | null | Tokenization | super::behaviour::Conversion for | impl super::behaviour::Conversion for for Tokenization | null | null | null | null | null | null | null | null |
pub struct Shipping {
pub city: Option<String>,
pub country_code: Option<CountryAlpha2>,
pub house_number: Option<Secret<String>>,
pub name: Option<Name>,
pub state: Option<Secret<String>>,
pub state_code: Option<String>,
pub street: Option<Secret<String>>,
pub zip: Option<Secret<String>... | crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | hyperswitch_connectors | struct_definition | 76 | rust | Shipping | null | null | null | null | null | null | null | null | null | null | null |
pub struct TokenizedWalletValue1 {
pub data: WalletData,
} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 16 | rust | TokenizedWalletValue1 | null | null | null | null | null | null | null | null | null | null | null |
impl FileUpload for Checkout {
fn validate_file_upload(
&self,
purpose: FilePurpose,
file_size: i32,
file_type: mime::Mime,
) -> CustomResult<(), errors::ConnectorError> {
match purpose {
FilePurpose::DisputeEvidence => {
let supported_file_typ... | crates/hyperswitch_connectors/src/connectors/checkout.rs | hyperswitch_connectors | impl_block | 211 | rust | null | Checkout | FileUpload for | impl FileUpload for for Checkout | null | null | null | null | null | null | null | null |
pub struct RevenueRecoveryRecordBackData; | crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs | hyperswitch_domain_models | struct_definition | 9 | rust | RevenueRecoveryRecordBackData | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_bank_account_creds(
connector: PaymentAuthConnectorData,
merchant_context: &domain::MerchantContext,
connector_name: &str,
access_token: &Secret<String>,
auth_type: pm_auth_types::ConnectorAuthType,
state: &SessionState,
bank_account_id: Option<Secret<String>>,
) -> RouterRe... | crates/router/src/core/pm_auth.rs | router | function_signature | 427 | rust | null | null | null | null | get_bank_account_creds | null | null | null | null | null | null | null |
File: crates/router/src/core/payments/operations/payment_create.rs
Public functions: 4
Public structs: 1
use std::marker::PhantomData;
use api_models::{
enums::FrmSuggestion, mandates::RecurringDetails, payment_methods::PaymentMethodsData,
payments::GetAddressFromPaymentMethodData,
};
use async_trait::async... | crates/router/src/core/payments/operations/payment_create.rs#chunk0 | router | chunk | 8,189 | null | null | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/intelligent-router-api-reference/overview.mdx
# Type: Doc File
# Dynamo - Dynamic Routing System
## Overview
Dynamo is an open-source dynamic routing system designed for payment processing. It intelligently routes payments to different processors based on real-time metrics, helping to op... | api-reference/intelligent-router-api-reference/overview.mdx | null | doc_file | 1,045 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/facilitapay.rs
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData};
use masking::Secret;
use router::types::{self, api, storage::enums};
use test_utils::connector_auth;
use crate::utils::{self, ConnectorActions};
#[derive(Clone, Copy)]
struct Facilitapay... | crates/router/tests/connectors/facilitapay.rs | router | full_file | 2,946 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn trigger_event<Res, F, Fut>(
self,
state: &SessionState,
func: F,
) -> RoutingResult<RoutingEventsResponse<Res>>
where
F: FnOnce() -> Fut + Send,
Res: Serialize + serde::de::DeserializeOwned + Clone,
Fut: futures::Future<Output = RoutingResult<Option<R... | crates/router/src/core/payments/routing/utils.rs | router | function_signature | 397 | rust | null | null | null | null | trigger_event | null | null | null | null | null | null | null |
pub struct AcquirerDetails {
pub acquirer_bin: String,
pub acquirer_merchant_id: String,
pub acquirer_country_code: Option<String>,
} | crates/hyperswitch_domain_models/src/router_request_types/authentication.rs | hyperswitch_domain_models | struct_definition | 35 | rust | AcquirerDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct CustomerRequest {
/// The identifier for the customer object. If not provided the customer ID will be autogenerated.
#[schema(value_type = Option<String>, max_length = 64, min_length = 1, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")]
pub customer_id: Option<id_type::CustomerId>,
/// The identi... | crates/api_models/src/customers.rs | api_models | struct_definition | 530 | rust | CustomerRequest | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_total_blocked_amount(&self) -> common_types::MinorUnit {
self.all_captures
.iter()
.fold(common_types::MinorUnit::new(0), |accumulator, capture| {
accumulator
+ match capture.1.status {
storage_enums::CaptureStatus::C... | crates/router/src/core/payments/types.rs | router | function_signature | 121 | rust | null | null | null | null | get_total_blocked_amount | null | null | null | null | null | null | null |
impl ConnectorValidation for Chargebee {
//TODO: implement functions when support enabled
} | crates/hyperswitch_connectors/src/connectors/chargebee.rs | hyperswitch_connectors | impl_block | 18 | rust | null | Chargebee | ConnectorValidation for | impl ConnectorValidation for for Chargebee | null | null | null | null | null | null | null | null |
Web Documentation: Try out APIs | Hyperswitch
# Type: Web Doc
Set up your merchant account
Sign up or sign in to
Postman
.
Open our
Postman collection
and switch to the
"Variables" tab
. Update the value under the "current value" column for the
baseUrl
variable to have the hostname and port of the locally running serv... | https://docs.hyperswitch.io/hyperswitch-open-source/readme-1/local-setup-using-individual-components/set-up-hyperswitch-backend/try-out-apis | null | web_doc_file | 943 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/hyperswitch-open-source/readme-1/local-setup-using-individual-components/set-up-hyperswitch-backend/try-out-apis | Try out APIs | Hyperswitch | null |
pub fn currency_match(currency: Currency) -> &'static iso::Currency {
match currency {
Currency::AED => iso::AED,
Currency::AFN => iso::AFN,
Currency::ALL => iso::ALL,
Currency::AMD => iso::AMD,
Currency::ANG => iso::ANG,
Currency::AOA => iso::AOA,
Currency::A... | crates/currency_conversion/src/types.rs | currency_conversion | function_signature | 1,742 | rust | null | null | null | null | currency_match | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Paystack {
fn get_webhook_source_verification_algorithm(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> {
Ok(Box::new(crypto::HmacSha512))
}
fn g... | crates/hyperswitch_connectors/src/connectors/paystack.rs | hyperswitch_connectors | impl_block | 817 | rust | null | Paystack | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Paystack | null | null | null | null | null | null | null | null |
impl RefundSync for Wise {} | crates/hyperswitch_connectors/src/connectors/wise.rs | hyperswitch_connectors | impl_block | 7 | rust | null | Wise | RefundSync for | impl RefundSync for for Wise | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.EventListConstraints
{
"type": "object",
"description": "The constraints to apply when filtering events.",
"properties": {
"created_after": {
"type": "string",
"format": "date-time",
"description": "Filter events created after the specified time.",
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 468 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"EventListConstraints"
] | null | null | null | null |
pub struct PayoutListResponse {
/// The number of payouts included in the list
pub size: usize,
/// The list of payouts response objects
pub data: Vec<PayoutCreateResponse>,
/// The total number of available payouts for given constraints
#[serde(skip_serializing_if = "Option::is_none")]
pub ... | crates/api_models/src/payouts.rs | api_models | struct_definition | 80 | rust | PayoutListResponse | null | null | null | null | null | null | null | null | null | null | null |
impl Default for ConnectorAuthenticationMap {
fn default() -> Self {
Self::new()
}
} | crates/test_utils/src/connector_auth.rs | test_utils | impl_block | 22 | rust | null | ConnectorAuthenticationMap | Default for | impl Default for for ConnectorAuthenticationMap | null | null | null | null | null | null | null | null |
impl api::PaymentCapture for Elavon {} | crates/hyperswitch_connectors/src/connectors/elavon.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Elavon | api::PaymentCapture for | impl api::PaymentCapture for for Elavon | null | null | null | null | null | null | null | null |
pub struct ResponseMessages {
result_code: ResultCode,
pub message: Vec<ResponseMessage>,
} | crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | ResponseMessages | null | null | null | null | null | null | null | null | null | null | null |
impl State for TokenizeWithCard {} | crates/router/src/core/payment_methods/tokenize/card_executor.rs | router | impl_block | 8 | rust | null | TokenizeWithCard | State for | impl State for for TokenizeWithCard | null | null | null | null | null | null | null | null |
pub fn apply_changeset(self, source: Customer) -> Customer {
let Self {
name,
email,
phone,
description,
phone_country_code,
metadata,
connector_customer,
default_payment_method_id,
default_billing_addres... | crates/diesel_models/src/customers.rs | diesel_models | function_signature | 275 | rust | null | null | null | null | apply_changeset | null | null | null | null | null | null | null |
pub struct FacilitapayWebhookNotification {
pub notification: FacilitapayWebhookBody,
} | crates/hyperswitch_connectors/src/connectors/facilitapay/responses.rs | hyperswitch_connectors | struct_definition | 23 | rust | FacilitapayWebhookNotification | null | null | null | null | null | null | null | null | null | null | null |
impl GlobalStorageInterface for KafkaStore {
fn get_cache_store(&self) -> Box<(dyn RedisConnInterface + Send + Sync + 'static)> {
Box::new(self.clone())
}
} | crates/router/src/db/kafka_store.rs | router | impl_block | 42 | rust | null | KafkaStore | GlobalStorageInterface for | impl GlobalStorageInterface for for KafkaStore | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs
Public structs: 17
use common_enums::enums;
use common_utils::types::StringMinorUnit;
use error_stack::ResultExt;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{self, ConnectorAuthType, RouterData},... | crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs | hyperswitch_connectors | full_file | 4,557 | 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.