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 BuyerDetails {
buyer_id: Secret<String>,
name: Secret<String>,
email: pii::Email,
phone_number: Secret<String>,
prime_membership_types: Vec<String>,
} | crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs | hyperswitch_connectors | struct_definition | 41 | rust | BuyerDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct AvsSecurityCodeResponse {
pub street_match: Option<String>,
pub postal_code_match: Option<String>,
pub security_code_match: Option<String>,
pub association: Option<Association>,
} | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 43 | rust | AvsSecurityCodeResponse | null | null | null | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::PaymentsPostSessionTokens;
let payment_id = path.into_inner();
let payload = payment_types::PaymentsPostSessionTokensRequest {
payment_id,
..json_payload.into_inner()
};
tracing::Span::current().record("payment_id", payload.payment_id.get_string_rep... | crates/router/src/routes/payments.rs | router | impl_block | 317 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
/// Constructs a new client when email is disabled
pub async fn create() -> Self {
Self {}
} | crates/external_services/src/email/no_email.rs | external_services | function_signature | 24 | rust | null | null | null | null | create | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Mifinity {} | crates/hyperswitch_connectors/src/connectors/mifinity.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Mifinity | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Mifinity | null | null | null | null | null | null | null | null |
) -> CustomResult<String, errors::ApiErrorResponse> {
let (tera, mut context) = build_payment_link_template(payment_link_data)
.attach_printable("Failed to build payment link's HTML template")?;
let payment_link_initiator =
include_str!("../core/payment_link/payment_link_initiate/payment_link_in... | crates/router/src/services/api.rs#chunk6 | router | chunk | 1,380 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_profile_routing_events(
state: web::Data<AppState>,
req: actix_web::HttpRequest,
json_payload: web::Query<api_models::analytics::routing_events::RoutingEventsRequest>,
) -> impl Responder {
let flow = AnalyticsFlow::GetRoutingEvents;
Box::pin(api::server_wrap... | crates/router/src/analytics.rs | router | function_signature | 257 | rust | null | null | null | null | get_profile_routing_events | null | null | null | null | null | null | null |
pub struct PaymentIntent {
pub payment_id: id_type::PaymentId,
pub merchant_id: id_type::MerchantId,
pub status: storage_enums::IntentStatus,
pub amount: MinorUnit,
pub shipping_cost: Option<MinorUnit>,
pub currency: Option<storage_enums::Currency>,
pub amount_captured: Option<MinorUnit>,
... | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | struct_definition | 888 | rust | PaymentIntent | null | null | null | null | null | null | null | null | null | null | null |
/// Path to the root directory of the cargo workspace.
/// It is recommended that this be used by the application as the base path to build other paths
/// such as configuration and logs directories.
pub fn workspace_path() -> PathBuf {
if let Ok(manifest_dir) = std::env::var(vars::CARGO_MANIFEST_DIR) {
let... | crates/router_env/src/env.rs | router_env | function_signature | 110 | rust | null | null | null | null | workspace_path | null | null | null | null | null | null | null |
pub struct EbanxBankDetails {
bank_name: Option<String>,
bank_branch: Option<String>,
bank_account: Option<Secret<String>>,
account_type: Option<EbanxBankAccountType>,
} | crates/hyperswitch_connectors/src/connectors/ebanx/transformers.rs | hyperswitch_connectors | struct_definition | 44 | rust | EbanxBankDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct OpayoErrorResponse {
pub status_code: u16,
pub code: String,
pub message: String,
pub reason: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/opayo/transformers.rs | hyperswitch_connectors | struct_definition | 35 | rust | OpayoErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct Links {
redirect: Option<Href>,
} | crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs | hyperswitch_connectors | struct_definition | 12 | rust | Links | null | null | null | null | null | null | null | null | null | null | null |
Documentation: api-reference/intelligent-router-api-reference/contract-routing/fetch-contract-scores-for-an-entity.mdx
# Type: Doc File
---
openapi: post /contract_routing.ContractScoreCalculator/FetchContractScore
--- | api-reference/intelligent-router-api-reference/contract-routing/fetch-contract-scores-for-an-entity.mdx | null | doc_file | 47 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Mandate> {
generics::generic_insert(conn, self).await
} | crates/diesel_models/src/query/mandate.rs | diesel_models | function_signature | 35 | rust | null | null | null | null | insert | null | null | null | null | null | null | null |
pub struct FiservSyncRequest {
merchant_details: MerchantDetails,
reference_transaction_details: ReferenceTransactionDetails,
} | crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | hyperswitch_connectors | struct_definition | 25 | rust | FiservSyncRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct ContactDetails {
pub email_address: Option<Email>,
pub mobile_phone_number: Option<Secret<String>>,
} | crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | hyperswitch_connectors | struct_definition | 26 | rust | ContactDetails | null | null | null | null | null | null | null | null | null | null | null |
Web Documentation: Previous Roadmap - Q2 2025 | Hyperswitch
# Type: Web Doc
🗺️ Our Roadmap typically pans out over a 3-month period and we establish topics we work on upfront.
👂And as always, we listen to your feedback and adapt our plans if needed.
Core Values
Our core values have pretty much remained the same sinc... | https://docs.hyperswitch.io/about-hyperswitch/roadmap/roadmap-q2-2025 | null | web_doc_file | 710 | doc | null | null | null | null | null | web | null | null | null | https://docs.hyperswitch.io/about-hyperswitch/roadmap/roadmap-q2-2025 | Previous Roadmap - Q2 2025 | Hyperswitch | null |
OpenAPI Block Path: components.schemas.PaymentsCompleteAuthorizeRequest
{
"type": "object",
"required": [
"client_secret"
],
"properties": {
"shipping": {
"allOf": [
{
"$ref": "#/components/schemas/Address"
}
],
"nullable": true
},
"client_secret": {
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 147 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentsCompleteAuthorizeRequest"
] | null | null | null | null |
pub struct VaultDelete; | crates/router/src/types/payment_methods.rs | router | struct_definition | 5 | rust | VaultDelete | null | null | null | null | null | null | null | null | null | null | null |
impl super::auth_events::metrics::AuthEventMetricAnalytics for ClickhouseClient {} | crates/analytics/src/clickhouse.rs | analytics | impl_block | 17 | rust | null | ClickhouseClient | super::auth_events::metrics::AuthEventMetricAnalytics for | impl super::auth_events::metrics::AuthEventMetricAnalytics for for ClickhouseClient | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Bambora {} | crates/hyperswitch_connectors/src/connectors/bambora.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Bambora | api::PaymentSession for | impl api::PaymentSession for for Bambora | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Redsys {} | crates/hyperswitch_connectors/src/connectors/redsys.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Redsys | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Redsys | null | null | null | null | null | null | null | null |
pub async fn retrieve_payment_method(
state: SessionState,
pm: api::PaymentMethodId,
merchant_context: domain::MerchantContext,
) -> RouterResponse<api::PaymentMethodResponse> {
let db = state.store.as_ref();
let pm_id = id_type::GlobalPaymentMethodId::generate_from_string(pm.payment_method_id)
... | crates/router/src/core/payment_methods.rs | router | function_signature | 244 | rust | null | null | null | null | retrieve_payment_method | null | null | null | null | null | null | null |
impl api::PaymentSync for Opennode {} | crates/hyperswitch_connectors/src/connectors/opennode.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Opennode | api::PaymentSync for | impl api::PaymentSync for for Opennode | null | null | null | null | null | null | null | null |
pub trait RedisConnInterface {
fn get_redis_conn(
&self,
) -> error_stack::Result<Arc<redis_interface::RedisConnectionPool>, RedisError>;
} | crates/storage_impl/src/redis/kv_store.rs | storage_impl | trait_definition | 37 | rust | null | null | RedisConnInterface | null | null | null | null | null | null | null | null | null |
pub struct BillwerkAuthType {
pub(super) api_key: Secret<String>,
pub(super) public_api_key: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | hyperswitch_connectors | struct_definition | 29 | rust | BillwerkAuthType | null | null | null | null | null | null | null | null | null | null | null |
impl common_utils::events::ApiEventMetric for CardNetworkTokenizeResponse {} | crates/api_models/src/payment_methods.rs | api_models | impl_block | 16 | rust | null | CardNetworkTokenizeResponse | common_utils::events::ApiEventMetric for | impl common_utils::events::ApiEventMetric for for CardNetworkTokenizeResponse | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentLinkResponse
{
"type": "object",
"required": [
"link",
"payment_link_id"
],
"properties": {
"link": {
"type": "string",
"description": "URL for rendering the open payment link"
},
"secure_link": {
"type": "string",
"descri... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 133 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentLinkResponse"
] | null | null | null | null |
pub fn operation_derive_inner(input: DeriveInput) -> syn::Result<proc_macro::TokenStream> {
let struct_name = &input.ident;
let operations_meta = input.get_metadata()?;
let operation_properties = get_operation_properties(operations_meta)?;
let current_crate = syn::Ident::new("crate", Span::call_site())... | crates/router_derive/src/macros/operation.rs | router_derive | function_signature | 513 | rust | null | null | null | null | operation_derive_inner | null | null | null | null | null | null | null |
pub struct PaypalRedirectResponse {
id: String,
intent: PaypalPaymentIntent,
status: PaypalOrderStatus,
purchase_units: Vec<RedirectPurchaseUnitItem>,
links: Vec<PaypalLinks>,
payment_source: Option<PaymentSourceItemResponse>,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 57 | rust | PaypalRedirectResponse | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_user_details(
state: SessionState,
user_from_token: auth::UserFromToken,
) -> UserResponse<user_api::GetUserDetailsResponse> {
let user = user_from_token.get_user_from_db(&state).await?;
let verification_days_left = utils::user::get_verification_days_left(&state, &user)?;
let role_i... | crates/router/src/core/user.rs | router | function_signature | 699 | rust | null | null | null | null | get_user_details | null | null | null | null | null | null | null |
pub async fn find_by_merchant_id_attempt_id(
conn: &PgPooledConn,
merchant_id: &common_utils::id_type::MerchantId,
attempt_id: &str,
) -> StorageResult<Self> {
generics::generic_find_one::<<Self as HasTable>::Table, _, _>(
conn,
dsl::merchant_id
... | crates/diesel_models/src/query/payment_attempt.rs | diesel_models | function_signature | 109 | rust | null | null | null | null | find_by_merchant_id_attempt_id | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::PaymentLinkList;
let payload = payload.into_inner();
Box::pin(api::server_wrap(
flow,
state,
&req,
payload,
|state, auth: auth::AuthenticationData, payload, _| {
list_payment_link(state, auth.merchant_account, payload)
... | crates/router/src/routes/payment_link.rs | router | impl_block | 120 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
impl Bluesnap {
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMajorUnitForConnector,
amount_converter_to_string_minor_unit: &StringMinorUnitForConnector,
amount_converter_float_major_unit: &FloatMajorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/bluesnap.rs | hyperswitch_connectors | impl_block | 63 | rust | null | Bluesnap | null | impl Bluesnap | null | null | null | null | null | null | null | null |
pub struct PublishableKeyAuth; | crates/router/src/services/authentication.rs | router | struct_definition | 7 | rust | PublishableKeyAuth | null | null | null | null | null | null | null | null | null | null | null |
pub struct ThreeDsMethod {
method: ThreeDsType,
} | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | ThreeDsMethod | null | null | null | null | null | null | null | null | null | null | null |
pub struct PlaidPaymentsRequest {
amount: PlaidAmount,
recipient_id: String,
reference: String,
#[serde(skip_serializing_if = "Option::is_none")]
schedule: Option<PlaidSchedule>,
#[serde(skip_serializing_if = "Option::is_none")]
options: Option<PlaidOptions>,
} | crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs | hyperswitch_connectors | struct_definition | 72 | rust | PlaidPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct StripebillingWebhookLinesData {
pub period: StripebillingWebhookLineDataPeriod,
} | crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs | hyperswitch_connectors | struct_definition | 22 | rust | StripebillingWebhookLinesData | null | null | null | null | null | null | null | null | null | null | null |
pub struct NetworkTokenData {
pub network_token: cards::NetworkToken,
pub network_token_exp_month: Secret<String>,
pub network_token_exp_year: Secret<String>,
pub cryptogram: Option<Secret<String>>,
pub card_issuer: Option<String>, //since network token is tied to card, so its issuer will be same as... | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 157 | rust | NetworkTokenData | null | null | null | null | null | null | null | null | null | null | null |
- Fix wallet payments throwing `Invalid 'payment_method_type' provided` and UI test issues ([#1633](https://github.com/juspay/hyperswitch/pull/1633)) ([`307a470`](https://github.com/juspay/hyperswitch/commit/307a470f7d838dc53df07a004ab89045ee0048ff))
- Add Payment_Method_data in Redirection Form ([#1668](https://g... | CHANGELOG.md#chunk57 | null | doc_chunk | 8,140 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn get_payment_filters_profile(
state: web::Data<app::AppState>,
req: actix_web::HttpRequest,
) -> impl Responder {
let flow = Flow::PaymentsFilters;
Box::pin(api::server_wrap(
flow,
state,
&req,
(),
|state, auth: auth::AuthenticationData, _, _| {
... | crates/router/src/routes/payments.rs | router | function_signature | 178 | rust | null | null | null | null | get_payment_filters_profile | null | null | null | null | null | null | null |
impl api::RefundExecute for Inespay {} | crates/hyperswitch_connectors/src/connectors/inespay.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Inespay | api::RefundExecute for | impl api::RefundExecute for for Inespay | null | null | null | null | null | null | null | null |
pub struct XenditSplitSubMerchantData {
/// The sub-account user-id that you want to make this transaction for.
pub for_user_id: String,
} | crates/common_types/src/domain.rs | common_types | struct_definition | 35 | rust | XenditSplitSubMerchantData | null | null | null | null | null | null | null | null | null | null | null |
pub struct MerchantRefundReq {
pub merchant_software: JpmorganMerchantSoftware,
} | crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | MerchantRefundReq | null | null | null | null | null | null | null | null | null | null | null |
pub async fn list_all_key_stores(
conn: &PgPooledConn,
from: u32,
limit: u32,
) -> StorageResult<Vec<Self>> {
generics::generic_filter::<
<Self as HasTable>::Table,
_,
<<Self as HasTable>::Table as diesel::Table>::PrimaryKey,
_,
... | crates/diesel_models/src/query/merchant_key_store.rs | diesel_models | function_signature | 121 | rust | null | null | null | null | list_all_key_stores | null | null | null | null | null | null | null |
pub struct KlarnaSDKSyncResponse {
pub order_id: String,
pub status: KlarnaPaymentStatus,
pub klarna_reference: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs | hyperswitch_connectors | struct_definition | 34 | rust | KlarnaSDKSyncResponse | null | null | null | null | null | null | null | null | null | null | null |
- [PowerTranz] resolve pr comments and add comments ([#1726](https://github.com/juspay/hyperswitch/pull/1726)) ([`432a8e0`](https://github.com/juspay/hyperswitch/commit/432a8e02e98494bd20bcb8c2a1a425f9504b86c7))
- [PowerTranz] fix rsync not implemented error ([#1734](https://github.com/juspay/hyperswitch/pull/1734)... | CHANGELOG.md#chunk56 | null | doc_chunk | 8,145 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/types/api/bank_accounts.rs
| crates/router/src/types/api/bank_accounts.rs | router | full_file | 12 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn is_preprocessing_required_for_wallets(connector_name: String) -> bool {
connector_name == *"trustpay" || connector_name == *"payme"
} | crates/router/src/core/payments.rs | router | function_signature | 35 | rust | null | null | null | null | is_preprocessing_required_for_wallets | null | null | null | null | null | null | null |
impl api::PaymentSession for Payload {} | crates/hyperswitch_connectors/src/connectors/payload.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Payload | api::PaymentSession for | impl api::PaymentSession for for Payload | null | null | null | null | null | null | null | null |
pub struct ActivePayments; | crates/api_models/src/analytics/active_payments.rs | api_models | struct_definition | 5 | rust | ActivePayments | null | null | null | null | null | null | null | null | null | null | null |
.await
.attach_printable("Creation of customer failed")?;
}
Ok(())
}
#[cfg(feature = "v1")]
pub async fn create_recipient(
state: &SessionState,
merchant_context: &domain::MerchantContext,
connector_data: &api::ConnectorData,
payout_data: &mut PayoutData,
) -> RouterResult<()> ... | crates/router/src/core/payouts.rs#chunk1 | router | chunk | 8,185 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct RoutingConfigRequest {
pub name: String,
pub description: String,
pub algorithm: StaticRoutingAlgorithm,
#[schema(value_type = String)]
pub profile_id: common_utils::id_type::ProfileId,
} | crates/api_models/src/routing.rs | api_models | struct_definition | 49 | rust | RoutingConfigRequest | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_payment_id(&self) -> &id_type::GlobalPaymentId {
&self.payment_intent.id
} | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | function_signature | 26 | rust | null | null | null | null | get_payment_id | null | null | null | null | null | null | null |
pub(crate) async fn get_schedule_time_to_retry_mit_payments(
db: &dyn StorageInterface,
merchant_id: &id_type::MerchantId,
retry_count: i32,
) -> Option<time::PrimitiveDateTime> {
let key = "pt_mapping_pcr_retries";
let result = db
.find_config_by_key(key)
.await
.map(|value|... | crates/router/src/workflows/revenue_recovery.rs | router | function_signature | 282 | rust | null | null | null | null | get_schedule_time_to_retry_mit_payments | null | null | null | null | null | null | null |
impl<'a> KafkaPaymentIntentEvent<'a> {
pub fn from_storage(intent: &'a PaymentIntent, infra_values: Option<Value>) -> Self {
let PaymentIntent {
id,
merchant_id,
status,
amount_details,
amount_captured,
customer_id,
descript... | crates/router/src/services/kafka/payment_intent_event.rs | router | impl_block | 957 | rust | null | KafkaPaymentIntentEvent | null | impl KafkaPaymentIntentEvent | null | null | null | null | null | null | null | null |
pub fn get_attempt_status(
&self,
authorized_amount: common_types::MinorUnit,
) -> storage_enums::AttemptStatus {
let total_captured_amount = self.get_total_charged_amount();
if authorized_amount == total_captured_amount {
return storage_enums::AttemptStatus::Charged;
... | crates/router/src/core/payments/types.rs | router | function_signature | 137 | rust | null | null | null | null | get_attempt_status | null | null | null | null | null | null | null |
pub struct AuthenticatePaymentFlowResponse {
pub payments_response: api_models::payments::PaymentsResponse,
pub poll_config: PollConfig,
pub business_profile: domain::Profile,
} | crates/router/src/types.rs | router | struct_definition | 38 | rust | AuthenticatePaymentFlowResponse | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentSync for Razorpay {} | crates/hyperswitch_connectors/src/connectors/razorpay.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Razorpay | api::PaymentSync for | impl api::PaymentSync for for Razorpay | null | null | null | null | null | null | null | null |
pub fn get_mut(&mut self, idx: K) -> Option<&mut V> {
self.data.get_mut(idx.get_id())
} | crates/hyperswitch_constraint_graph/src/dense_map.rs | hyperswitch_constraint_graph | function_signature | 30 | rust | null | null | null | null | get_mut | null | null | null | null | null | null | null |
pub struct RapydPaymentsRequest {
pub amount: FloatMajorUnit,
pub currency: enums::Currency,
pub payment_method: PaymentMethod,
pub payment_method_options: Option<PaymentMethodOptions>,
pub merchant_reference_id: Option<String>,
pub capture: Option<bool>,
pub description: Option<String>,
... | crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs | hyperswitch_connectors | struct_definition | 86 | rust | RapydPaymentsRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct StripeBillingDetails {
pub address: Option<AddressDetails>,
pub email: Option<Email>,
pub name: Option<String>,
pub phone: Option<masking::Secret<String>>,
} | crates/router/src/compatibility/stripe/payment_intents/types.rs | router | struct_definition | 42 | rust | StripeBillingDetails | null | null | null | null | null | null | null | null | null | null | null |
impl webhooks::IncomingWebhook for Getnet {
fn get_webhook_source_verification_algorithm(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<Box<dyn crypto::VerifySignature + Send>, errors::ConnectorError> {
Ok(Box::new(crypto::HmacSha256))
}
fn get... | crates/hyperswitch_connectors/src/connectors/getnet.rs | hyperswitch_connectors | impl_block | 1,057 | rust | null | Getnet | webhooks::IncomingWebhook for | impl webhooks::IncomingWebhook for for Getnet | null | null | null | null | null | null | null | null |
pub async fn execute_query<R, P>(
&mut self,
store: &P,
) -> CustomResult<CustomResult<Vec<R>, QueryExecutionError>, QueryBuildingError>
where
P: LoadRow<R> + AnalyticsDataSource,
Aggregate<&'static str>: ToSql<T>,
Window<&'static str>: ToSql<T>,
{
let query =... | crates/analytics/src/query.rs | analytics | function_signature | 125 | rust | null | null | null | null | execute_query | null | null | null | null | null | null | null |
pub struct ZenWebhookBody {
#[serde(rename = "transactionId")]
pub id: String,
pub merchant_transaction_id: String,
pub amount: String,
pub currency: String,
pub status: ZenPaymentStatus,
} | crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | hyperswitch_connectors | struct_definition | 51 | rust | ZenWebhookBody | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/services/kafka/payment_intent_event.rs
Public functions: 4
Public structs: 2
#[cfg(feature = "v2")]
use ::common_types::{payments, primitive_wrappers::RequestExtendedAuthorizationBool};
#[cfg(feature = "v2")]
use common_enums::{self, RequestIncrementalAuthorization};
use common_utils::{
c... | crates/router/src/services/kafka/payment_intent_event.rs | router | full_file | 3,169 | null | null | null | null | null | null | null | null | null | null | null | null | null |
macro_rules! impl_entity {
($name:ident) => {
impl $crate::dense_map::EntityId for $name {
#[inline]
fn get_id(&self) -> usize {
self.0
}
#[inline]
fn with_id(id: usize) -> Self {
Self(id)
}
}
... | crates/hyperswitch_constraint_graph/src/dense_map.rs | hyperswitch_constraint_graph | macro | 76 | rust | null | null | null | null | null | null | null | null | declarative | null | null | null |
pub fn comparison_type(input: &str) -> ParseResult<&str, ast::ComparisonType> {
error::context(
"comparison_operator",
combinator::map_res(
branch::alt((
complete::tag("/="),
complete::tag(">="),
complete::tag("<="),
complet... | crates/euclid/src/frontend/ast/parser.rs | euclid | function_signature | 193 | rust | null | null | null | null | comparison_type | null | null | null | null | null | null | null |
pub struct DecisionEngineSRSubLevelInputConfig {
pub payment_method_type: Option<String>,
pub payment_method: Option<String>,
pub latency_threshold: Option<f64>,
pub bucket_size: Option<i32>,
pub hedging_percent: Option<f64>,
pub lower_reset_factor: Option<f64>,
pub upper_reset_factor: Optio... | crates/api_models/src/open_router.rs | api_models | struct_definition | 98 | rust | DecisionEngineSRSubLevelInputConfig | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentAuthorize for Opennode {} | crates/hyperswitch_connectors/src/connectors/opennode.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Opennode | api::PaymentAuthorize for | impl api::PaymentAuthorize for for Opennode | null | null | null | null | null | null | null | null |
pub struct Wise {
#[cfg(feature = "payouts")]
amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync),
} | crates/hyperswitch_connectors/src/connectors/wise.rs | hyperswitch_connectors | struct_definition | 36 | rust | Wise | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.CustomerPaymentMethod
{
"type": "object",
"required": [
"payment_token",
"payment_method_id",
"customer_id",
"payment_method",
"requires_cvv",
"default_payment_method_set"
],
"properties": {
"payment_token": {
"type": "string",
"desc... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 1,097 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"CustomerPaymentMethod"
] | null | null | null | null |
impl ConnectorSpecifications for Chargebee {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&CHARGEBEE_CONNECTOR_INFO)
}
fn get_supported_webhook_flows(&self) -> Option<&'static [enums::EventClass]> {
Some(&CHARGEBEE_SUPPORTED_WEBHOOK_FLOWS)
}
} | crates/hyperswitch_connectors/src/connectors/chargebee.rs | hyperswitch_connectors | impl_block | 77 | rust | null | Chargebee | ConnectorSpecifications for | impl ConnectorSpecifications for for Chargebee | null | null | null | null | null | null | null | null |
common_enums::CardNetwork::JCB,
common_enums::CardNetwork::DinersClub,
common_enums::CardNetwork::UnionPay,
common_enums::CardNetwork::Discover,
common_enums::CardNetwork::CartesBancaires,
common_enums::CardNetwork::Interac,
];
let... | crates/hyperswitch_connectors/src/connectors/novalnet.rs#chunk1 | hyperswitch_connectors | chunk | 863 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn find_by_profile_id_connector_transaction_id(
conn: &PgPooledConn,
profile_id: &common_utils::id_type::ProfileId,
connector_txn_id: &str,
) -> StorageResult<Self> {
let (txn_id, txn_data) = common_utils::types::ConnectorTransactionId::form_id_and_data(
connect... | crates/diesel_models/src/query/payment_attempt.rs | diesel_models | function_signature | 204 | rust | null | null | null | null | find_by_profile_id_connector_transaction_id | null | null | null | null | null | null | null |
pub fn get_error_reason(
error_info: Option<String>,
detailed_error_info: Option<String>,
avs_error_info: Option<String>,
) -> Option<String> {
match (error_info, detailed_error_info, avs_error_info) {
(Some(message), Some(details), Some(avs_message)) => Some(format!(
"{message}, det... | crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs | hyperswitch_connectors | function_signature | 237 | rust | null | null | null | null | get_error_reason | null | null | null | null | null | null | null |
pub async fn trigger_payouts_webhook(
state: &SessionState,
merchant_context: &domain::MerchantContext,
payout_response: &api_models::payouts::PayoutCreateResponse,
) -> RouterResult<()> {
todo!()
} | crates/router/src/utils.rs | router | function_signature | 55 | rust | null | null | null | null | trigger_payouts_webhook | null | null | null | null | null | null | null |
impl quote::ToTokens for FieldMeta {
fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) {
self.value.to_tokens(tokens);
}
} | crates/router_derive/src/macros/to_encryptable.rs | router_derive | impl_block | 38 | rust | null | FieldMeta | quote::ToTokens for | impl quote::ToTokens for for FieldMeta | null | null | null | null | null | null | null | null |
impl api::PaymentSession for Noon {} | crates/hyperswitch_connectors/src/connectors/noon.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Noon | api::PaymentSession for | impl api::PaymentSession for for Noon | null | null | null | null | null | null | null | null |
impl PaymentAuthorize for Signifyd {} | crates/hyperswitch_connectors/src/connectors/signifyd.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Signifyd | PaymentAuthorize for | impl PaymentAuthorize for for Signifyd | null | null | null | null | null | null | null | null |
pub struct CardVerification {
result_code: Option<String>,
result_code_raw: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs | hyperswitch_connectors | struct_definition | 21 | rust | CardVerification | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaymentsRejectData {
pub amount: Option<i64>,
pub currency: Option<storage_enums::Currency>,
} | crates/hyperswitch_domain_models/src/router_request_types.rs | hyperswitch_domain_models | struct_definition | 28 | rust | PaymentsRejectData | null | null | null | null | null | null | null | null | null | null | null |
pub struct BreadpayErrorResponse {
/// Human-readable error description
pub description: String,
/// Error type classification
#[serde(rename = "type")]
pub error_type: String,
} | crates/hyperswitch_connectors/src/connectors/breadpay/transformers.rs | hyperswitch_connectors | struct_definition | 41 | rust | BreadpayErrorResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct CustomerNew {
pub merchant_id: common_utils::id_type::MerchantId,
pub name: Option<Encryption>,
pub email: Option<Encryption>,
pub phone: Option<Encryption>,
pub phone_country_code: Option<String>,
pub description: Option<Description>,
pub created_at: PrimitiveDateTime,
pub me... | crates/diesel_models/src/customers.rs | diesel_models | struct_definition | 207 | rust | CustomerNew | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaypalDetails {
shopper_name: Secret<String>,
country_code: enums::CountryAlpha2,
} | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | 23 | rust | PaypalDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct PaytmAuthType {
pub merchant_id: Secret<String>,
pub merchant_key: Secret<String>,
pub website: Secret<String>,
} | crates/hyperswitch_connectors/src/connectors/paytm/transformers.rs | hyperswitch_connectors | struct_definition | 31 | rust | PaytmAuthType | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundIntegrityObject {
/// refund currency
pub currency: storage_enums::Currency,
/// refund amount
pub refund_amount: MinorUnit,
} | crates/hyperswitch_domain_models/src/router_request_types.rs | hyperswitch_domain_models | struct_definition | 37 | rust | RefundIntegrityObject | null | null | null | null | null | null | null | null | null | null | null |
impl ApiEventMetric for AuthenticationEligibilityResponse {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Authentication {
authentication_id: self.authentication_id.clone(),
})
}
} | crates/api_models/src/authentication.rs | api_models | impl_block | 50 | rust | null | AuthenticationEligibilityResponse | ApiEventMetric for | impl ApiEventMetric for for AuthenticationEligibilityResponse | null | null | null | null | null | null | null | null |
impl api::PayoutQuote for Ebanx {} | crates/hyperswitch_connectors/src/connectors/ebanx.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Ebanx | api::PayoutQuote for | impl api::PayoutQuote for for Ebanx | null | null | null | null | null | null | null | null |
pub struct Checkout; | crates/hyperswitch_domain_models/src/router_flow_types/fraud_check.rs | hyperswitch_domain_models | struct_definition | 4 | rust | Checkout | null | null | null | null | null | null | null | null | null | null | null |
pub async fn profiles_list(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<common_utils::id_type::MerchantId>,
) -> HttpResponse {
let flow = Flow::ProfileList;
let merchant_id = path.into_inner();
Box::pin(api::server_wrap(
flow,
state,
&req,
merc... | crates/router/src/routes/profiles.rs | router | function_signature | 181 | rust | null | null | null | null | profiles_list | null | null | null | null | null | null | null |
pub fn get_allowed_signals() -> Result<DummySignal, std::io::Error> {
Ok(DummySignal)
} | crates/common_utils/src/signals.rs | common_utils | function_signature | 26 | rust | null | null | null | null | get_allowed_signals | null | null | null | null | null | null | null |
impl api::PaymentVoid for Fiuu {} | crates/hyperswitch_connectors/src/connectors/fiuu.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Fiuu | api::PaymentVoid for | impl api::PaymentVoid for for Fiuu | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/payment-methods/payment-methods--payment-methods-list.mdx
# Type: Doc File
---
openapi: get /v2/payment-methods/{id}/list-enabled-payment-methods
--- | api-reference/v2/payment-methods/payment-methods--payment-methods-list.mdx | null | doc_file | 47 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
/// returns `false` otherwise.
pub fn is_masked(&self) -> bool {
matches!(self, Self::Masked(_))
} | crates/masking/src/maskable.rs | masking | function_signature | 32 | rust | null | null | null | null | is_masked | null | null | null | null | null | null | null |
File: crates/hyperswitch_domain_models/src/router_flow_types/dispute.rs
Public structs: 5
#[derive(Debug, Clone)]
pub struct Accept;
#[derive(Debug, Clone)]
pub struct Evidence;
#[derive(Debug, Clone)]
pub struct Defend;
#[derive(Debug, Clone)]
pub struct Fetch;
#[derive(Debug, Clone)]
pub struct Dsync;
| crates/hyperswitch_domain_models/src/router_flow_types/dispute.rs | hyperswitch_domain_models | full_file | 75 | null | null | null | null | null | null | null | null | null | null | null | null | null |
.update_dynamic_routing_stats(
payment_attempt.attempt_id.clone(),
&payment_attempt.merchant_id.to_owned(),
dynamic_routing_update,
)
.await
.change_context(errors::Api... | crates/router/src/core/routing/helpers.rs#chunk1 | router | chunk | 8,191 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct VgsRouterData<T> {
pub amount: StringMinorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc.
pub router_data: T,
} | crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs | hyperswitch_connectors | struct_definition | 50 | rust | VgsRouterData | null | null | null | null | null | null | null | null | null | null | null |
pub fn get_order_tax_amount(&self) -> Option<MinorUnit> {
self.order_tax_amount
} | crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | hyperswitch_domain_models | function_signature | 24 | rust | null | null | null | null | get_order_tax_amount | null | null | null | null | null | null | null |
File: crates/storage_impl/src/database/store.rs
Public functions: 1
Public structs: 2
use async_bb8_diesel::{AsyncConnection, ConnectionError};
use bb8::CustomizeConnection;
use common_utils::DbConnectionParams;
use diesel::PgConnection;
use error_stack::ResultExt;
use crate::{
config::{Database, TenantConfig},... | crates/storage_impl/src/database/store.rs | storage_impl | full_file | 1,173 | 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.