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 PaymentLink {
pub fn server(state: AppState) -> Scope {
web::scope("/payment_link")
.app_data(web::Data::new(state))
.service(web::resource("/list").route(web::post().to(payment_link::payments_link_list)))
.service(
web::resource("/{payment_link_id}")... | crates/router/src/routes/app.rs | router | impl_block | 193 | rust | null | PaymentLink | null | impl PaymentLink | null | null | null | null | null | null | null | null |
pub fn from_predefined_roles(role_id: &str) -> Option<Self> {
predefined_roles::PREDEFINED_ROLES.get(role_id).cloned()
} | crates/router/src/services/authorization/roles.rs | router | function_signature | 34 | rust | null | null | null | null | from_predefined_roles | null | null | null | null | null | null | null |
impl super::payment_intents::filters::PaymentIntentFilterAnalytics for ClickhouseClient {} | crates/analytics/src/clickhouse.rs | analytics | impl_block | 18 | rust | null | ClickhouseClient | super::payment_intents::filters::PaymentIntentFilterAnalytics for | impl super::payment_intents::filters::PaymentIntentFilterAnalytics for for ClickhouseClient | null | null | null | null | null | null | null | null |
impl api::Refund for Forte {} | crates/hyperswitch_connectors/src/connectors/forte.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Forte | api::Refund for | impl api::Refund for for Forte | null | null | null | null | null | null | null | null |
pub struct GetGlobalSearchRequest {
pub query: String,
#[serde(default)]
pub filters: Option<SearchFilters>,
#[serde(default)]
pub time_range: Option<TimeRange>,
} | crates/api_models/src/analytics/search.rs | api_models | struct_definition | 43 | rust | GetGlobalSearchRequest | null | null | null | null | null | null | null | null | null | null | null |
impl SignatureCalculationData for RedsysOperationRequest {
fn get_merchant_parameters(&self) -> Result<String, Error> {
self.encode_to_string_of_json()
.change_context(errors::ConnectorError::RequestEncodingFailed)
}
fn get_order_id(&self) -> String {
self.ds_merchant_order.clon... | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | impl_block | 72 | rust | null | RedsysOperationRequest | SignatureCalculationData for | impl SignatureCalculationData for for RedsysOperationRequest | null | null | null | null | null | null | null | null |
impl BillingConnectorPaymentsSyncFlowRouterData {
async fn construct_router_data_for_billing_connector_payment_sync_call(
state: &SessionState,
connector_name: &str,
merchant_connector_account: &hyperswitch_domain_models::merchant_connector_account::MerchantConnectorAccount,
merchant... | crates/router/src/core/webhooks/recovery_incoming.rs | router | impl_block | 498 | rust | null | BillingConnectorPaymentsSyncFlowRouterData | null | impl BillingConnectorPaymentsSyncFlowRouterData | null | null | null | null | null | null | null | null |
pub fn validated_limit(&self) -> u32 {
self.limit.unwrap_or(50).min(1000)
} | crates/api_models/src/routing.rs | api_models | function_signature | 30 | rust | null | null | null | null | validated_limit | null | null | null | null | null | null | null |
impl Customers {
pub fn server(config: routes::AppState) -> Scope {
web::scope("/customers")
.app_data(web::Data::new(config))
.service(web::resource("").route(web::post().to(customer_create)))
.service(
web::resource("/{customer_id}")
... | crates/router/src/compatibility/stripe/app.rs | router | impl_block | 132 | rust | null | Customers | null | impl Customers | null | null | null | null | null | null | null | null |
pub struct AVSDetails {
pub message: String,
} | crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs | hyperswitch_connectors | struct_definition | 13 | rust | AVSDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct FeatureMatrix; | crates/router/src/routes/app.rs | router | struct_definition | 5 | rust | FeatureMatrix | null | null | null | null | null | null | null | null | null | null | null |
pub async fn do_retry(
state: &routes::SessionState,
connector: api::ConnectorData,
merchant_context: &domain::MerchantContext,
payout_data: &mut PayoutData,
) -> RouterResult<()> {
metrics::AUTO_RETRY_PAYOUT_COUNT.add(1, &[]);
modify_trackers(state, &connector, merchant_context, payout_data).a... | crates/router/src/core/payouts/retry.rs | router | function_signature | 112 | rust | null | null | null | null | do_retry | null | null | null | null | null | null | null |
pub async fn should_call_frm<F, D>(
merchant_context: &domain::MerchantContext,
payment_data: &D,
state: &SessionState,
) -> RouterResult<(
bool,
Option<FrmRoutingAlgorithm>,
Option<common_utils::id_type::ProfileId>,
Option<FrmConfigsObject>,
)>
where
F: Send + Clone,
D: payments::Op... | crates/router/src/core/fraud_check.rs | router | function_signature | 1,572 | rust | null | null | null | null | should_call_frm | null | null | null | null | null | null | null |
pub async fn update_with_payment_method_id(
self,
conn: &PgPooledConn,
payment_method: payment_method::PaymentMethodUpdateInternal,
) -> StorageResult<Self> {
match generics::generic_update_with_unique_predicate_get_result::<
<Self as HasTable>::Table,
_,
... | crates/diesel_models/src/query/payment_method.rs | diesel_models | function_signature | 146 | rust | null | null | null | null | update_with_payment_method_id | null | null | null | null | null | null | null |
pub struct ProfileAcquirerResponse {
/// The unique identifier of the profile acquirer
#[schema(value_type= String,example = "pro_acq_LCRdERuylQvNQ4qh3QE0")]
pub profile_acquirer_id: common_utils::id_type::ProfileAcquirerId,
/// The merchant id assigned by the acquirer
#[schema(value_type= String,ex... | crates/api_models/src/profile_acquirer.rs | api_models | struct_definition | 342 | rust | ProfileAcquirerResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct CheckbookErrorResponse {
pub status_code: u16,
pub code: String,
pub message: String,
pub reason: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/checkbook/transformers.rs | hyperswitch_connectors | struct_definition | 35 | rust | CheckbookErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/config_importer/src/main.rs
mod cli;
use std::io::{BufWriter, Write};
use anyhow::Context;
/// The separator used in environment variable names.
const ENV_VAR_SEPARATOR: &str = "__";
#[cfg(not(feature = "preserve_order"))]
type EnvironmentVariableMap = std::collections::HashMap<String, String>;
#[cfg... | crates/config_importer/src/main.rs | config_importer | full_file | 851 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct CreateFileRequest {
pub file: Vec<u8>,
pub file_name: Option<String>,
pub file_size: i32,
#[serde_as(as = "serde_with::DisplayFromStr")]
pub file_type: mime::Mime,
pub purpose: FilePurpose,
pub dispute_id: Option<String>,
} | crates/router/src/types/api/files.rs | router | struct_definition | 71 | rust | CreateFileRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentsRequest {
#[serde(flatten)]
pub payment_data: WorldlinePaymentMethod,
pub order: Order,
pub shipping: Option<Shipping>,
} | crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | hyperswitch_connectors | struct_definition | 36 | rust | PaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/routes/user.rs
Public functions: 50
pub mod theme;
use actix_web::{web, HttpRequest, HttpResponse};
#[cfg(feature = "dummy_connector")]
use api_models::user::sample_data::SampleDataRequest;
use api_models::{
errors::types::ApiErrorResponse,
user::{self as user_api},
};
use common_enum... | crates/router/src/routes/user.rs | router | full_file | 7,094 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn update(
self,
conn: &PgPooledConn,
payout_update: PayoutsUpdate,
) -> StorageResult<Self> {
match generics::generic_update_with_results::<<Self as HasTable>::Table, _, _, _>(
conn,
dsl::payout_id
.eq(self.payout_id.to_owned())
... | crates/diesel_models/src/query/payouts.rs | diesel_models | function_signature | 176 | rust | null | null | null | null | update | null | null | null | null | null | null | null |
pub(crate) fn get_status(status: &str) -> IncomingWebhookEvent {
match status {
"dispute_opened" => IncomingWebhookEvent::DisputeOpened,
"dispute_lost" => IncomingWebhookEvent::DisputeLost,
"dispute_won" => IncomingWebhookEvent::DisputeWon,
"dispute_accepted" | "dispute_auto_accepted... | crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | hyperswitch_connectors | function_signature | 144 | rust | null | null | null | null | get_status | null | null | null | null | null | null | null |
pub struct AirwallexDisputeObject {
pub payment_intent_id: String,
pub dispute_amount: MinorUnit,
pub dispute_currency: enums::Currency,
pub stage: AirwallexDisputeStage,
pub dispute_id: String,
pub dispute_reason_type: Option<String>,
pub dispute_original_reason_code: Option<String>,
pu... | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | 140 | rust | AirwallexDisputeObject | null | null | null | null | null | null | null | null | null | null | null |
pub async fn connector_update(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<(
common_utils::id_type::MerchantId,
common_utils::id_type::MerchantConnectorAccountId,
) | crates/router/src/routes/admin.rs | router | function_signature | 51 | rust | null | null | null | null | connector_update | null | null | null | null | null | null | null |
File: crates/router/src/services/authentication/decision.rs
Public functions: 5
Public structs: 2
use common_utils::{errors::CustomResult, request::RequestContent};
use masking::{ErasedMaskSerialize, Secret};
use serde::Serialize;
use storage_impl::errors::ApiClientError;
use crate::{
core::metrics,
routes:... | crates/router/src/services/authentication/decision.rs | router | full_file | 1,498 | null | null | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/essentials/error_codes.mdx
# Type: Doc File
---
title: Error Codes
---
Hyperswitch uses error codes, types, and messages to communicate errors during API calls. There are two main types of error codes: Error Codes and Unified Error Codes.
1. **Error Codes** refer to the error code sent by... | api-reference/essentials/error_codes.mdx | null | doc_file | 3,296 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
impl EmailData for InviteUser {
async fn get_email_data(&self, base_url: &str) -> CustomResult<EmailContents, EmailError> {
let token = EmailToken::new_token(
self.recipient_email.clone(),
Some(self.entity.clone()),
domain::Origin::AcceptInvitationFromEmail,
&... | crates/router/src/services/email/types.rs | router | impl_block | 291 | rust | null | InviteUser | EmailData for | impl EmailData for for InviteUser | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs
Public structs: 1
pub mod transformers;
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
};
use error_stack::{report, ResultExt};
use hyperswitch_domain_model... | crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs | hyperswitch_connectors | full_file | 3,660 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn list_webhook_delivery_attempts() {} | crates/openapi/src/routes/webhook_events.rs | openapi | function_signature | 9 | rust | null | null | null | null | list_webhook_delivery_attempts | null | null | null | null | null | null | null |
impl NoEncryption {
/// Encryption functionality
pub fn encrypt(&self, data: impl AsRef<[u8]>) -> Vec<u8> {
data.as_ref().into()
}
/// Decryption functionality
pub fn decrypt(&self, data: impl AsRef<[u8]>) -> Vec<u8> {
data.as_ref().into()
}
} | crates/external_services/src/no_encryption/core.rs | external_services | impl_block | 80 | rust | null | NoEncryption | null | impl NoEncryption | null | null | null | null | null | null | null | null |
pub struct Feedback {
pub email: pii::Email,
pub description: Option<String>,
pub rating: Option<i32>,
pub category: Option<String>,
} | crates/api_models/src/user/dashboard_metadata.rs | api_models | struct_definition | 36 | rust | Feedback | null | null | null | null | null | null | null | null | null | null | null |
pub struct PayboxCaptureResponse {
#[serde(rename = "NUMTRANS")]
pub transaction_number: String,
#[serde(rename = "NUMAPPEL")]
pub paybox_order_id: String,
#[serde(rename = "CODEREPONSE")]
pub response_code: String,
#[serde(rename = "COMMENTAIRE")]
pub response_message: String,
} | crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs | hyperswitch_connectors | struct_definition | 79 | rust | PayboxCaptureResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/types/storage/generic_link.rs
pub use diesel_models::generic_link::{
GenericLink, GenericLinkData, GenericLinkNew, GenericLinkState, GenericLinkUpdateInternal,
PaymentMethodCollectLink, PayoutLink, PayoutLinkUpdate,
};
| crates/router/src/types/storage/generic_link.rs | router | full_file | 57 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Barclaycard {} | crates/hyperswitch_connectors/src/connectors/barclaycard.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Barclaycard | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Barclaycard | null | null | null | null | null | null | null | null |
File: crates/payment_methods/src/core.rs
pub mod errors;
pub mod migration;
| crates/payment_methods/src/core.rs | payment_methods | full_file | 17 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct MifinityPsyncResponse {
payload: Vec<MifinityPsyncPayload>,
} | crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | MifinityPsyncResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct NovalnetRefundRequest {
pub transaction: NovalnetRefundTransaction,
pub custom: NovalnetCustom,
} | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | 30 | rust | NovalnetRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardDetails {
pub card_number: Secret<String>,
pub card_holder: Secret<String>,
pub card_expiry_date: Secret<String>,
pub card_cvv: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs | hyperswitch_connectors | struct_definition | 40 | rust | CardDetails | null | null | null | null | null | null | null | null | null | null | null |
impl RequestIdStore for Store {
fn add_request_id(&mut self, request_id: String) {
self.request_id = Some(request_id)
}
fn get_request_id(&self) -> Option<String> {
self.request_id.clone()
}
} | crates/router/src/db.rs | router | impl_block | 55 | rust | null | Store | RequestIdStore for | impl RequestIdStore for for Store | null | null | null | null | null | null | null | null |
pub async fn create_payment_method_api() {} | crates/openapi/src/routes/payment_method.rs | openapi | function_signature | 9 | rust | null | null | null | null | create_payment_method_api | null | null | null | null | null | null | null |
File: crates/router/src/db/configs.rs
use diesel_models::configs::ConfigUpdateInternal;
use error_stack::report;
use router_env::{instrument, tracing};
use storage_impl::redis::cache::{self, CacheKind, CONFIG_CACHE};
use super::{MockDb, Store};
use crate::{
connection,
core::errors::{self, CustomResult},
... | crates/router/src/db/configs.rs | router | full_file | 1,967 | null | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.NoonData
{
"type": "object",
"properties": {
"order_category": {
"type": "string",
"description": "Information about the order category that merchant wants to specify at connector level. (e.g. In Noon Payments it can take values like \"pay\", \"food\", or any o... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 100 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"NoonData"
] | null | null | null | null |
impl api::PaymentVoid for Phonepe {} | crates/hyperswitch_connectors/src/connectors/phonepe.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Phonepe | api::PaymentVoid for | impl api::PaymentVoid for for Phonepe | null | null | null | null | null | null | null | null |
pub struct QueryTransactionResponse {
query_transaction_result: QueryTransactionResult,
} | crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | QueryTransactionResponse | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorCommon for Aci {
fn id(&self) -> &'static str {
"aci"
}
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Base
}
fn common_get_content_type(&self) -> &'static str {
"application/x-www-form-urlencoded"
}
fn base_url<'a>(&self, connect... | crates/hyperswitch_connectors/src/connectors/aci.rs | hyperswitch_connectors | impl_block | 455 | rust | null | Aci | ConnectorCommon for | impl ConnectorCommon for for Aci | null | null | null | null | null | null | null | null |
pub struct ActivePaymentsMetricsBucketIdentifier {
pub time_bucket: Option<String>,
} | crates/api_models/src/analytics/active_payments.rs | api_models | struct_definition | 17 | rust | ActivePaymentsMetricsBucketIdentifier | null | null | null | null | null | null | null | null | null | null | null |
impl Default for DrainerSettings {
fn default() -> Self {
Self {
stream_name: "DRAINER_STREAM".into(),
num_partitions: 64,
max_read_count: 100,
shutdown_interval: 1000,
loop_interval: 500,
}
}
} | crates/scheduler/src/settings.rs | scheduler | impl_block | 71 | rust | null | DrainerSettings | Default for | impl Default for for DrainerSettings | null | null | null | null | null | null | null | null |
impl FileStorageInterface for AwsFileStorageClient {
/// Uploads a file to AWS S3.
async fn upload_file(
&self,
file_key: &str,
file: Vec<u8>,
) -> CustomResult<(), FileStorageError> {
self.upload_file(file_key, file)
.await
.change_context(FileStorage... | crates/external_services/src/file_storage/aws_s3.rs | external_services | impl_block | 211 | rust | null | AwsFileStorageClient | FileStorageInterface for | impl FileStorageInterface for for AwsFileStorageClient | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.ExternalAuthenticationDetailsResponse
{
"type": "object",
"description": "Details of external authentication",
"required": [
"status"
],
"properties": {
"authentication_flow": {
"allOf": [
{
"$ref": "#/components/schemas/DecoupledAuthentic... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 265 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"ExternalAuthenticationDetailsResponse"
] | null | null | null | null |
File: crates/drainer/src/connection.rs
Public functions: 3
use bb8::PooledConnection;
use common_utils::DbConnectionParams;
use diesel::PgConnection;
use crate::{settings::Database, Settings};
pub type PgPool = bb8::Pool<async_bb8_diesel::ConnectionManager<PgConnection>>;
#[allow(clippy::expect_used)]
pub async fn... | crates/drainer/src/connection.rs | drainer | full_file | 339 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct Santander {
amount_converter: &'static (dyn AmountConvertor<Output = StringMajorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/santander.rs | hyperswitch_connectors | struct_definition | 27 | rust | Santander | null | null | null | null | null | null | null | null | null | null | null |
pub struct Context(pub MerchantAccount, pub MerchantKeyStore); | crates/hyperswitch_domain_models/src/merchant_context.rs | hyperswitch_domain_models | struct_definition | 12 | rust | Context | null | null | null | null | null | null | null | null | null | null | null |
pub struct ProfileCreate {
/// The name of profile
#[schema(max_length = 64)]
pub profile_name: String,
/// The URL to redirect after the completion of the operation
#[schema(value_type = Option<String>, max_length = 255, example = "https://www.example.com/success")]
pub return_url: Option<comm... | crates/api_models/src/admin.rs | api_models | struct_definition | 1,667 | rust | ProfileCreate | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.GcashRedirection
{
"type": "object"
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 22 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"GcashRedirection"
] | null | null | null | null |
pub struct Comparison {
/// The left hand side which will always be a domain input identifier like "payment.method.cardtype"
pub lhs: String,
/// The comparison operator
pub comparison: ComparisonType,
/// The value to compare against
pub value: ValueType,
/// Additional metadata that the St... | crates/euclid/src/frontend/ast.rs | euclid | struct_definition | 123 | rust | Comparison | null | null | null | null | null | null | null | null | null | null | null |
pub struct PreAuthNRequestData {
// card data
pub card: Card,
} | crates/hyperswitch_domain_models/src/router_request_types/authentication.rs | hyperswitch_domain_models | struct_definition | 20 | rust | PreAuthNRequestData | null | null | null | null | null | null | null | null | null | null | null |
pub struct NexixpayRedirectionRequest {
pub three_d_s_auth_url: String,
pub three_ds_request: String,
pub return_url: String,
pub transaction_id: String,
} | crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | hyperswitch_connectors | struct_definition | 42 | rust | NexixpayRedirectionRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct Tokenization {
pub id: common_utils::id_type::GlobalTokenId,
pub merchant_id: common_utils::id_type::MerchantId,
pub customer_id: common_utils::id_type::GlobalCustomerId,
pub locker_id: String,
pub created_at: PrimitiveDateTime,
pub updated_at: PrimitiveDateTime,
pub flag: common_... | crates/hyperswitch_domain_models/src/tokenization.rs | hyperswitch_domain_models | struct_definition | 94 | rust | Tokenization | null | null | null | null | null | null | null | null | null | null | null |
pub struct DomainConnectorPayload {
/// Template string containing token references in the format {{$field_name}}
pub template: String,
} | crates/injector/src/types.rs | injector | struct_definition | 28 | rust | DomainConnectorPayload | null | null | null | null | null | null | null | null | null | null | null |
pub fn new(
setup_mandate: Option<&'a mandates::MandateData>,
payment_attempt: &'a storage::PaymentAttempt,
payment_intent: &'a storage::PaymentIntent,
payment_method_data: Option<&'a domain::PaymentMethodData>,
address: &'a payment_address::PaymentAddress,
recurring_deta... | crates/router/src/core/routing.rs | router | function_signature | 134 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.GenericErrorResponseOpenApi
{
"type": "object",
"required": [
"error_type",
"message",
"code"
],
"properties": {
"error_type": {
"type": "string",
"example": "invalid_request"
},
"message": {
"type": "string",
"example": "Mis... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 122 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"GenericErrorResponseOpenApi"
] | null | null | null | null |
pub struct Provider {
pub payment_method_type: api_models::enums::PaymentMethodType,
/// List of currencies accepted or has the processing capabilities of the processor
#[schema(example = json!(
{
"type": "specific_accepted",
"list": ["USD", "INR"]
}
... | crates/connector_configs/src/common_config.rs | connector_configs | struct_definition | 164 | rust | Provider | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorAccessToken for Netcetera {} | crates/hyperswitch_connectors/src/connectors/netcetera.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Netcetera | ConnectorAccessToken for | impl ConnectorAccessToken for for Netcetera | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::WebhookEventInitialDeliveryAttemptList;
let constraints = json_payload.into_inner();
let request_internal = EventListRequestInternal {
merchant_id: common_utils::id_type::MerchantId::default(),
constraints,
};
Box::pin(api::server_wrap(
flo... | crates/router/src/routes/webhook_events.rs | router | impl_block | 203 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
OpenAPI Block Path: paths."/user/create_platform"
{
"post": {
"tags": [
"Platform"
],
"summary": "Platform - Create",
"description": "Create a new platform account",
"operationId": "Create a Platform Account",
"requestBody": {
"description": "Create a platform account with organiza... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 344 | .json | null | null | null | null | null | openapi_spec | paths | [
"/user/create_platform"
] | null | null | null | null |
pub trait PostUpdateTracker<F, D, R: Send>: Send {
/// Update the tracker information with the response from the connector
/// The response from routerdata is used to update paymentdata and also persist this in the database
#[cfg(feature = "v1")]
async fn update_tracker<'b>(
&'b self,
db... | crates/router/src/core/payments/operations.rs | router | trait_definition | 415 | rust | null | null | PostUpdateTracker | null | null | null | null | null | null | null | null | null |
impl db::payment_method_session::PaymentMethodsSessionInterface for KafkaStore {} | crates/router/src/db/kafka_store.rs | router | impl_block | 15 | rust | null | KafkaStore | db::payment_method_session::PaymentMethodsSessionInterface for | impl db::payment_method_session::PaymentMethodsSessionInterface for for KafkaStore | null | null | null | null | null | null | null | null |
pub struct DecisionManagerRequest {
pub name: String,
pub program: Program<common_types::payments::ConditionalConfigs>,
} | crates/api_models/src/conditional_configs.rs | api_models | struct_definition | 27 | rust | DecisionManagerRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct RotatePasswordRequest {
pub password: Secret<String>,
} | crates/api_models/src/user.rs | api_models | struct_definition | 14 | rust | RotatePasswordRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct ReferrerData {
#[serde(rename = "type")]
r_type: String,
version: String,
} | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | ReferrerData | null | null | null | null | null | null | null | null | null | null | null |
"Moravica District" => Ok(Self::MoravicaDistrict),
"Nišava District" => Ok(Self::NišavaDistrict),
"North Banat District" => Ok(Self::NorthBanatDistrict),
"North Bačka District" => Ok(Self::NorthBačkaDistrict),
"Pirot District" => Ok(Self::P... | crates/hyperswitch_connectors/src/utils.rs#chunk7 | hyperswitch_connectors | chunk | 8,186 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/routes/relay.rs
Public functions: 2
use actix_web::{web, Responder};
use router_env::{instrument, tracing, Flow};
use crate::{
self as app,
core::{api_locking, relay},
services::{api, authentication as auth},
};
#[instrument(skip_all, fields(flow = ?Flow::Relay))]
#[cfg(feature =... | crates/router/src/routes/relay.rs | router | full_file | 639 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl<'a> NetworkTokenizationBuilder<'a, PmTokenized> {
pub fn set_stored_token_response(
self,
store_token_response: &'a pm_transformers::StoreCardRespPayload,
) -> NetworkTokenizationBuilder<'a, PmTokenStored> {
NetworkTokenizationBuilder {
state: std::marker::PhantomData,
... | crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs | router | impl_block | 167 | rust | null | NetworkTokenizationBuilder | null | impl NetworkTokenizationBuilder | null | null | null | null | null | null | null | null |
pub struct ItaubankErrorResponse {
pub error: ItaubankErrorBody,
} | crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs | hyperswitch_connectors | struct_definition | 18 | rust | ItaubankErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn merchant_account_create() {} | crates/openapi/src/routes/merchant_account.rs | openapi | function_signature | 8 | rust | null | null | null | null | merchant_account_create | null | null | null | null | null | null | null |
File: crates/router/src/types/api/payouts.rs
pub use api_models::payouts::{
AchBankTransfer, BacsBankTransfer, Bank as BankPayout, CardPayout, PaymentMethodTypeInfo,
PayoutActionRequest, PayoutAttemptResponse, PayoutCreateRequest, PayoutCreateResponse,
PayoutEnabledPaymentMethodsInfo, PayoutLinkResponse, P... | crates/router/src/types/api/payouts.rs | router | full_file | 320 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/payu.rs
use masking::PeekInterface;
use router::types::{self, domain, storage::enums, AccessToken, ConnectorAuthType};
use crate::{
connector_auth,
utils::{self, Connector, ConnectorActions, PaymentAuthorizeType},
};
struct Payu;
impl ConnectorActions for Payu {}
impl Conn... | crates/router/tests/connectors/payu.rs | router | full_file | 2,491 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Tsys {
fn get_webhook_object_reference_id(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> {
Err(report!(errors::ConnectorError::WebhooksNotImplemented))
... | crates/hyperswitch_connectors/src/connectors/tsys.rs | hyperswitch_connectors | impl_block | 210 | rust | null | Tsys | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Tsys | null | null | null | null | null | null | null | null |
File: crates/analytics/src/sdk_events.rs
pub mod accumulator;
mod core;
pub mod events;
pub mod filters;
pub mod metrics;
pub mod types;
pub use accumulator::{SdkEventMetricAccumulator, SdkEventMetricsAccumulator};
pub use self::core::{get_filters, get_metrics, sdk_events_core};
| crates/analytics/src/sdk_events.rs | analytics | full_file | 68 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct GatewayStatusMappingNew {
pub connector: String,
pub flow: String,
pub sub_flow: String,
pub code: String,
pub message: String,
pub status: String,
pub router_error: Option<String>,
pub decision: String,
pub step_up_possible: bool,
pub unified_code: Option<String>,
... | crates/diesel_models/src/gsm.rs | diesel_models | struct_definition | 132 | rust | GatewayStatusMappingNew | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/routes/profile_acquirer.rs
Public functions: 2
use actix_web::{web, HttpRequest, HttpResponse};
use api_models::profile_acquirer::{ProfileAcquirerCreate, ProfileAcquirerUpdate};
use router_env::{instrument, tracing, Flow};
use super::app::AppState;
use crate::{
core::api_locking,
serv... | crates/router/src/routes/profile_acquirer.rs | router | full_file | 690 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl RecordMigrationStatusBuilder {
pub fn new() -> Self {
Self {
card_migrated: None,
network_token_migrated: None,
connector_mandate_details_migrated: None,
network_transaction_migrated: None,
}
}
pub fn card_migrated(&mut self, card_migrate... | crates/payment_methods/src/core/migration.rs | payment_methods | impl_block | 278 | rust | null | RecordMigrationStatusBuilder | null | impl RecordMigrationStatusBuilder | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs
Public structs: 23
use api_models::payments::{KlarnaSessionTokenResponse, SessionToken};
use common_enums::enums;
use common_utils::{pii, types::MinorUnit};
use error_stack::{report, ResultExt};
use hyperswitch_domain_models::{
payment_meth... | crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs | hyperswitch_connectors | full_file | 5,366 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct DeutschebankThreeDSCompleteAuthorizeRequest {
cres: String,
} | crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | DeutschebankThreeDSCompleteAuthorizeRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct ListMethodsForPaymentMethodsRequest {
/// This is a 15 minute expiry token which shall be used from the client to authenticate and perform sessions from the SDK
#[schema(max_length = 30, min_length = 30, example = "secret_k2uj3he2893eiu2d")]
pub client_secret: Option<String>,
/// The two-let... | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 319 | rust | ListMethodsForPaymentMethodsRequest | null | null | null | null | null | null | null | null | null | null | null |
File: crates/diesel_models/src/query/subscription.rs
Public functions: 3
use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods};
use error_stack::report;
use super::generics;
use crate::{
errors,
schema::subscription::dsl,
subscription::{Subscription, SubscriptionNew, Subscription... | crates/diesel_models/src/query/subscription.rs | diesel_models | full_file | 402 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let mut payload = json_payload.into_inner();
let payment_id = path.into_inner();
tracing::Span::current().record("payment_id", payment_id.get_string_repr());
payload.payment_id = payment_id;
let flow = Flow::PaymentsApprove;
let fpayload = FPaymentsApproveRequest(&payload);
... | crates/router/src/routes/payments.rs | router | impl_block | 392 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Cryptopay {} | crates/hyperswitch_connectors/src/connectors/cryptopay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Cryptopay | api::PaymentSync for | impl api::PaymentSync for for Cryptopay | null | null | null | null | null | null | null | null |
pub struct AuthEventMetricsResponse<T> {
pub query_data: Vec<T>,
pub meta_data: [AuthEventsAnalyticsMetadata; 1],
} | crates/api_models/src/analytics.rs | api_models | struct_definition | 32 | rust | AuthEventMetricsResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::Refund for Redsys {} | crates/hyperswitch_connectors/src/connectors/redsys.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Redsys | api::Refund for | impl api::Refund for for Redsys | null | null | null | null | null | null | null | null |
pub fn create_merchant_connector_account(
self,
source: MerchantConnectorAccount,
) -> MerchantConnectorAccount {
MerchantConnectorAccount {
merchant_id: source.merchant_id,
connector_type: self.connector_type.unwrap_or(source.connector_type),
connector_ac... | crates/diesel_models/src/merchant_connector_account.rs | diesel_models | function_signature | 171 | rust | null | null | null | null | create_merchant_connector_account | null | null | null | null | null | null | null |
File: crates/router/src/core/mandate/helpers.rs
Public functions: 2
Public structs: 1
use api_models::payments as api_payments;
use common_enums::enums;
use common_types::payments as common_payments_types;
use common_utils::errors::CustomResult;
use diesel_models::Mandate;
use error_stack::ResultExt;
use hyperswitch... | crates/router/src/core/mandate/helpers.rs | router | full_file | 862 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/storage_impl/src/redis.rs
Public functions: 2
Public structs: 1
pub mod cache;
pub mod kv_store;
pub mod pub_sub;
use std::sync::{atomic, Arc};
use router_env::tracing::Instrument;
use self::{kv_store::RedisConnInterface, pub_sub::PubSubInterface};
#[derive(Clone)]
pub struct RedisStore {
// May... | crates/storage_impl/src/redis.rs | storage_impl | full_file | 426 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn refund_list(
state: SessionState,
merchant_account: domain::MerchantAccount,
profile: domain::Profile,
req: refunds::RefundListRequest,
) -> errors::RouterResponse<refunds::RefundListResponse> {
let db = state.store;
let limit = refunds_validator::validate_refund_list(req.limit)?;
... | crates/router/src/core/refunds_v2.rs | router | function_signature | 298 | rust | null | null | null | null | refund_list | null | null | null | null | null | null | null |
pub struct NoonRefundResponseTransactions {
id: String,
status: RefundStatus,
transaction_reference: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | hyperswitch_connectors | struct_definition | 28 | rust | NoonRefundResponseTransactions | null | null | null | null | null | null | null | null | null | null | null |
pub async fn call_frm_service<D: Clone, F, Req, OperationData>(
state: &SessionState,
payment_data: &OperationData,
frm_data: &mut FrmData,
merchant_context: &domain::MerchantContext,
customer: &Option<domain::Customer>,
) -> RouterResult<oss_types::RouterData<F, Req, frm_types::FraudCheckResponseDa... | crates/router/src/core/fraud_check.rs | router | function_signature | 493 | rust | null | null | null | null | call_frm_service | null | null | null | null | null | null | null |
pub struct TimeSeries {
pub granularity: Granularity,
} | crates/api_models/src/analytics.rs | api_models | struct_definition | 13 | rust | TimeSeries | null | null | null | null | null | null | null | null | null | null | null |
pub struct ChargebeeInvoicePayments {
pub txn_status: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | hyperswitch_connectors | struct_definition | 16 | rust | ChargebeeInvoicePayments | null | null | null | null | null | null | null | null | null | null | null |
pub struct ActionLink {
pub href: String,
pub method: String,
} | crates/hyperswitch_connectors/src/connectors/worldpay/response.rs | hyperswitch_connectors | struct_definition | 18 | rust | ActionLink | null | null | null | null | null | null | null | null | null | null | null |
impl PaymentMethodInterface for KafkaStore {
type Error = errors::StorageError;
#[cfg(feature = "v1")]
async fn find_payment_method(
&self,
state: &KeyManagerState,
key_store: &domain::MerchantKeyStore,
payment_method_id: &str,
storage_scheme: MerchantStorageScheme,
... | crates/router/src/db/kafka_store.rs | router | impl_block | 1,626 | rust | null | KafkaStore | PaymentMethodInterface for | impl PaymentMethodInterface for for KafkaStore | 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.