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 async fn payouts_list_available_filters_for_profile(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<common_utils::types::TimeRange>,
) -> HttpResponse {
let flow = Flow::PayoutsFilter;
let payload = json_payload.into_inner();
Box::pin(api::server_wrap(
flow,
... | crates/router/src/routes/payouts.rs | router | function_signature | 244 | rust | null | null | null | null | payouts_list_available_filters_for_profile | null | null | null | null | null | null | null |
pub async fn fetch_user_roles_by_payload(
state: &SessionState,
payload: ListUserRolesByOrgIdPayload<'_>,
request_entity_type: Option<EntityType>,
) -> UserResult<HashSet<UserRole>> {
Ok(state
.global_store
.list_user_roles_by_org_id(payload)
.await
.change_context(UserEr... | crates/router/src/utils/user_role.rs | router | function_signature | 153 | rust | null | null | null | null | fetch_user_roles_by_payload | null | null | null | null | null | null | null |
pub async fn refund_retrieve_core_with_internal_reference_id(
state: SessionState,
merchant_context: domain::MerchantContext,
profile_id: Option<common_utils::id_type::ProfileId>,
refund_internal_request_id: String,
force_sync: Option<bool>,
) -> RouterResult<diesel_refund::Refund> {
let db = &*... | crates/router/src/core/refunds.rs | router | function_signature | 225 | rust | null | null | null | null | refund_retrieve_core_with_internal_reference_id | null | null | null | null | null | null | null |
pub struct Statuses {
pub status: Vec<Status>,
} | crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | hyperswitch_connectors | struct_definition | 14 | rust | Statuses | null | null | null | null | null | null | null | null | null | null | null |
pub async fn payouts_filtered_list_core(
state: SessionState,
merchant_context: domain::MerchantContext,
profile_id_list: Option<Vec<id_type::ProfileId>>,
filters: payouts::PayoutListFilterConstraints,
) -> RouterResponse<payouts::PayoutListResponse> {
let limit = &filters.limit;
validator::vali... | crates/router/src/core/payouts.rs | router | function_signature | 799 | rust | null | null | null | null | payouts_filtered_list_core | null | null | null | null | null | null | null |
pub async fn submit_dispute_evidence(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<dispute_models::SubmitEvidenceRequest>,
) -> HttpResponse {
let flow = Flow::DisputesEvidenceSubmit;
Box::pin(api::server_wrap(
flow,
state,
&req,
json_payload.... | crates/router/src/routes/disputes.rs | router | function_signature | 222 | rust | null | null | null | null | submit_dispute_evidence | null | null | null | null | null | null | null |
pub fn handle_unified_connector_service_response_for_payment_get(
response: payments_grpc::PaymentServiceGetResponse,
) -> CustomResult<
(
AttemptStatus,
Result<PaymentsResponseData, ErrorResponse>,
u16,
),
UnifiedConnectorServiceError,
> {
let status = AttemptStatus::foreign... | crates/router/src/core/unified_connector_service.rs | router | function_signature | 122 | rust | null | null | null | null | handle_unified_connector_service_response_for_payment_get | null | null | null | null | null | null | null |
impl RefundSync for Plaid {} | crates/hyperswitch_connectors/src/connectors/plaid.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Plaid | RefundSync for | impl RefundSync for for Plaid | null | null | null | null | null | null | null | null |
pub fn apply(&self, card_data_from_locker: Card) -> CardDetail {
CardDetail {
card_number: card_data_from_locker.card_number,
card_exp_month: self
.card_exp_month
.clone()
.unwrap_or(card_data_from_locker.card_exp_month),
card_e... | crates/api_models/src/payment_methods.rs | api_models | function_signature | 188 | rust | null | null | null | null | apply | null | null | null | null | null | null | null |
pub async fn get_user_theme_using_theme_id(
state: SessionState,
user_from_token: UserFromToken,
theme_id: String,
) -> UserResponse<theme_api::GetThemeResponse> {
let db_theme = state
.store
.find_theme_by_theme_id(theme_id.clone())
.await
.to_not_found_response(UserErro... | crates/router/src/core/user/theme.rs | router | function_signature | 318 | rust | null | null | null | null | get_user_theme_using_theme_id | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaymentMethodDataResponse
{
"oneOf": [
{
"type": "object",
"required": [
"card"
],
"properties": {
"card": {
"$ref": "#/components/schemas/CardResponse"
}
}
},
{
"type": "object",
"required":... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 889 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaymentMethodDataResponse"
] | null | null | null | null |
pub fn get_totp_status(&self) -> TotpStatus {
self.0.totp_status
} | crates/router/src/types/domain/user.rs | router | function_signature | 24 | rust | null | null | null | null | get_totp_status | null | null | null | null | null | null | null |
pub async fn list_countries_currencies_for_connector_payment_method(
state: routes::SessionState,
req: ListCountriesCurrenciesRequest,
_profile_id: Option<id_type::ProfileId>,
) -> errors::RouterResponse<ListCountriesCurrenciesResponse> {
Ok(services::ApplicationResponse::Json(
list_countries_cu... | crates/router/src/core/payment_methods/cards.rs | router | function_signature | 102 | rust | null | null | null | null | list_countries_currencies_for_connector_payment_method | null | null | null | null | null | null | null |
impl api::RefundSync for Deutschebank {} | crates/hyperswitch_connectors/src/connectors/deutschebank.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Deutschebank | api::RefundSync for | impl api::RefundSync for for Deutschebank | null | null | null | null | null | null | null | null |
pub fn check_node<C>(
&self,
ctx: &C,
node_id: NodeId,
relation: Relation,
strength: Strength,
memo: &mut Memoization<V>,
cycle_map: &mut CycleCheck,
domains: Option<&[String]>,
) -> Result<(), GraphError<V>>
where
C: CheckingContext<Value ... | crates/hyperswitch_constraint_graph/src/graph.rs | hyperswitch_constraint_graph | function_signature | 205 | rust | null | null | null | null | check_node | null | null | null | null | null | null | null |
File: crates/hsdev/src/main.rs
Public functions: 1
#![allow(clippy::print_stdout, clippy::print_stderr)]
use clap::{Parser, ValueHint};
use diesel::{pg::PgConnection, Connection};
use diesel_migrations::{FileBasedMigrations, HarnessWithOutput, MigrationHarness};
use toml::Value;
mod input_file;
#[derive(Parser, De... | crates/hsdev/src/main.rs | hsdev | full_file | 967 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn update(&mut self, new_config: Self) {
self.threshold = new_config.threshold;
} | crates/api_models/src/open_router.rs | api_models | function_signature | 23 | rust | null | null | null | null | update | null | null | null | null | null | null | null |
pub struct ConstraintGraphBuilder<V: ValueNode> {
domain: DenseMap<DomainId, DomainInfo>,
nodes: DenseMap<NodeId, Node<V>>,
edges: DenseMap<EdgeId, Edge>,
domain_identifier_map: FxHashMap<DomainIdentifier, DomainId>,
value_map: FxHashMap<NodeValue<V>, NodeId>,
edges_map: FxHashMap<(NodeId, NodeI... | crates/hyperswitch_constraint_graph/src/builder.rs | hyperswitch_constraint_graph | struct_definition | 127 | rust | ConstraintGraphBuilder | null | null | null | null | null | null | null | null | null | null | null |
pub async fn totp_reset(state: web::Data<AppState>, req: HttpRequest) -> HttpResponse {
let flow = Flow::TotpReset;
Box::pin(api::server_wrap(
flow,
state.clone(),
&req,
(),
|state, user, _, _| user_core::reset_totp(state, user),
&auth::DashboardNoPermissionAuth,
... | crates/router/src/routes/user.rs | router | function_signature | 99 | rust | null | null | null | null | totp_reset | null | null | null | null | null | null | null |
impl api::Refund for Nexixpay {} | crates/hyperswitch_connectors/src/connectors/nexixpay.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Nexixpay | api::Refund for | impl api::Refund for for Nexixpay | null | null | null | null | null | null | null | null |
pub struct AddPaymentMethodResponse {
pub payment_method_id: String,
pub external_id: String,
#[serde(rename = "merchant_id")]
pub merchant_id: Option<id_type::MerchantId>,
pub nickname: Option<String>,
pub customer_id: Option<id_type::CustomerId>,
pub duplicate: Option<bool>,
pub paymen... | crates/router/src/core/payment_methods/transformers.rs | router | struct_definition | 80 | rust | AddPaymentMethodResponse | null | null | null | null | null | null | null | null | null | null | null |
pub fn should_acknowledge_webhook_for_resource_not_found_errors(self) -> bool {
matches!(self, Self::Adyenplatform)
} | crates/common_enums/src/connector_enums.rs | common_enums | function_signature | 30 | rust | null | null | null | null | should_acknowledge_webhook_for_resource_not_found_errors | null | null | null | null | null | null | null |
impl DefendDispute for Checkout {} | crates/hyperswitch_connectors/src/connectors/checkout.rs | hyperswitch_connectors | impl_block | 8 | rust | null | Checkout | DefendDispute for | impl DefendDispute for for Checkout | null | null | null | null | null | null | null | null |
pub struct PaymentIntentsAnalyticsMetadata {
pub total_success_rate: Option<f64>,
pub total_success_rate_without_smart_retries: Option<f64>,
pub total_smart_retried_amount: Option<u64>,
pub total_smart_retried_amount_without_smart_retries: Option<u64>,
pub total_payment_processed_amount: Option<u64>... | crates/api_models/src/analytics.rs | api_models | struct_definition | 195 | rust | PaymentIntentsAnalyticsMetadata | null | null | null | null | null | null | null | null | null | null | null |
pub struct DeleteTokenizeByTokenRequest {
pub lookup_key: String,
pub service_name: String,
} | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 24 | rust | DeleteTokenizeByTokenRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct OpennodeWebhookDetails {
pub id: String,
pub callback_url: String,
pub success_url: String,
pub status: OpennodePaymentStatus,
pub payment_method: String,
pub missing_amt: String,
pub order_id: String,
pub description: String,
pub price: String,
pub fee: String,
pu... | crates/hyperswitch_connectors/src/connectors/opennode/transformers.rs | hyperswitch_connectors | struct_definition | 118 | rust | OpennodeWebhookDetails | null | null | null | null | null | null | null | null | null | null | null |
pub struct CardValidation {
id: String,
approved: i32,
message_id: i32,
message: String,
auth_code: String,
trans_date: String,
order_number: String,
type_: String,
amount: f64,
cvd_id: i32,
} | crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs | hyperswitch_connectors | struct_definition | 70 | rust | CardValidation | null | null | null | null | null | null | null | null | null | null | null |
File: crates/test_utils/tests/connectors/worldline_ui.rs
use serial_test::serial;
use thirtyfour::{prelude::*, WebDriver};
use crate::{selenium::*, tester};
struct WorldlineSeleniumTest;
impl SeleniumTest for WorldlineSeleniumTest {
fn get_connector_name(&self) -> String {
"worldline".to_string()
}
... | crates/test_utils/tests/connectors/worldline_ui.rs | test_utils | full_file | 590 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
#[cfg(feature = "payouts")]
amount_converter: &FloatMajorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/ebanx.rs | hyperswitch_connectors | function_signature | 38 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct AirwallexRedirectNextAction {
url: Url,
method: Method,
} | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | 20 | rust | AirwallexRedirectNextAction | null | null | null | null | null | null | null | null | null | null | null |
impl api::PaymentVoid for Digitalvirgo {} | crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Digitalvirgo | api::PaymentVoid for | impl api::PaymentVoid for for Digitalvirgo | null | null | null | null | null | null | null | null |
impl TransactionStatus {
pub fn is_pending(self) -> bool {
matches!(
self,
Self::ChallengeRequired | Self::ChallengeRequiredDecoupledAuthentication
)
}
pub fn is_terminal_state(self) -> bool {
matches!(self, Self::Success | Self::Failure)
}
} | crates/common_enums/src/enums.rs | common_enums | impl_block | 66 | rust | null | TransactionStatus | null | impl TransactionStatus | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::AuthenticationEligibility;
let api_auth = auth::ApiKeyAuth::default();
let payload = json_payload.into_inner();
let (auth, _) = match auth::check_client_secret_and_get_auth(req.headers(), &payload, api_auth)
{
Ok((auth, _auth_flow)) => (auth, _auth_flow),
... | crates/router/src/routes/authentication.rs | router | impl_block | 228 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
pub struct GenericLinks {
pub allowed_domains: HashSet<String>,
pub data: GenericLinksData,
pub locale: String,
} | crates/hyperswitch_domain_models/src/api.rs | hyperswitch_domain_models | struct_definition | 28 | rust | GenericLinks | null | null | null | null | null | null | null | null | null | null | null |
pub fn from_storage(attempt: &'a PaymentAttempt) -> Self {
let card_payment_method_data = attempt
.get_payment_method_data()
.and_then(|data| data.get_additional_card_info());
Self {
payment_id: &attempt.payment_id,
merchant_id: &attempt.merchant_id,
... | crates/router/src/services/kafka/payment_attempt.rs | router | function_signature | 706 | rust | null | null | null | null | from_storage | null | null | null | null | null | null | null |
impl AccountsStorageInterface for KafkaStore {} | crates/router/src/db/kafka_store.rs | router | impl_block | 8 | rust | null | KafkaStore | AccountsStorageInterface for | impl AccountsStorageInterface for for KafkaStore | null | null | null | null | null | null | null | null |
pub struct DDCActionLink {
#[serde(rename = "supply3dsDeviceData")]
supply_ddc_data: ActionLink,
} | crates/hyperswitch_connectors/src/connectors/worldpay/response.rs | hyperswitch_connectors | struct_definition | 29 | rust | DDCActionLink | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router/src/routes/apple_pay_certificates_migration.rs
Public functions: 1
use actix_web::{web, HttpRequest, HttpResponse};
use router_env::Flow;
use super::AppState;
use crate::{
core::{api_locking, apple_pay_certificates_migration},
services::{api, authentication as auth},
};
pub async fn appl... | crates/router/src/routes/apple_pay_certificates_migration.rs | router | full_file | 212 | null | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/openapi/src/routes/disputes.rs
Public functions: 3
/// Disputes - Retrieve Dispute
/// Retrieves a dispute
#[utoipa::path(
get,
path = "/disputes/{dispute_id}",
params(
("dispute_id" = String, Path, description = "The identifier for dispute"),
("force_sync" = Option<bool>, Que... | crates/openapi/src/routes/disputes.rs | openapi | full_file | 947 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct RefundsRetrieveRequest {
/// Unique Identifier for the Refund. This is to ensure idempotency for multiple partial refund initiated against the same payment. If the identifiers is not defined by the merchant, this filed shall be auto generated and provide in the API response. It is recommended to generate... | crates/api_models/src/refunds.rs | api_models | struct_definition | 178 | rust | RefundsRetrieveRequest | null | null | null | null | null | null | null | null | null | null | null |
pub struct CreditorAccount {
/// Account number
pub account: AccountNumber,
/// Creditor bank information.
pub bank: Option<CreditorBank>,
/// Country of the creditor
pub country: Option<api_models::enums::CountryAlpha2>,
/// Address
pub creditor_address: Option<NordeaAddress>,
/// M... | crates/hyperswitch_connectors/src/connectors/nordea/requests.rs | hyperswitch_connectors | struct_definition | 280 | rust | CreditorAccount | null | null | null | null | null | null | null | null | null | null | null |
- RSync voided status mapping in AuthorizeDotNet ([#7566](https://github.com/juspay/hyperswitch/pull/7566)) ([`8512bf3`](https://github.com/juspay/hyperswitch/commit/8512bf3ea54907887de9b9bcfcf7f522b97ebf2b))
- [globalpay] address 5xx due to deserialization issue when `account_name` is not passed ([#7540](https://g... | CHANGELOG.md#chunk11 | null | doc_chunk | 8,141 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.WalletResponse
{
"allOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/WalletResponseData"
}
],
"nullable": true
},
{
"type": "object"
}
]
} | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 69 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"WalletResponse"
] | null | null | null | null |
/// Get the four-digit expiration year from the Google Pay pre-decrypt data
pub fn get_four_digit_expiry_year(&self) -> Result<Secret<String>, errors::ValidationError> {
let mut year = self.card_exp_year.peek().clone();
// If it's a 2-digit year, convert to 4-digit
if year.len() == 2 {
... | crates/common_types/src/payments.rs | common_types | function_signature | 154 | rust | null | null | null | null | get_four_digit_expiry_year | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &FloatMajorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/taxjar.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
File: crates/api_models/src/analytics/routing_events.rs
Public structs: 1
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct RoutingEventsRequest {
pub payment_id: common_utils::id_type::PaymentId,
pub refund_id: Option<String>,
pub dispute_id: Option<String>,
}
| crates/api_models/src/analytics/routing_events.rs | api_models | full_file | 70 | null | null | null | null | null | null | null | null | null | null | null | null | null |
maud::html! {
(maud::DOCTYPE)
html {
head {
meta name="viewport" content="width=device-width, initial-scale=1";
}
body style="background-color: #ffffff; padding: 20px; font-family: Arial, Helvetica, Sans-Serif;" ... | crates/router/src/services/api.rs#chunk3 | router | chunk | 6,113 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::ConnectorAccessToken for Facilitapay {} | crates/hyperswitch_connectors/src/connectors/facilitapay.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Facilitapay | api::ConnectorAccessToken for | impl api::ConnectorAccessToken for for Facilitapay | null | null | null | null | null | null | null | null |
KlarnaRedirect,
KlarnaSdk,
AffirmRedirect,
AfterpayClearpayRedirect,
PayBrightRedirect,
WalleyRedirect,
AlmaRedirect,
AtomeRedirect,
Breadpay,
FlexitiRedirect,
BancontactCard,
Bizum,
Blik,
Eft,
Eps,
Giropay,
Ideal,
Interac,
LocalBankRedirect,
... | crates/hyperswitch_connectors/src/utils.rs#chunk8 | hyperswitch_connectors | chunk | 8,192 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl PayoutAttemptUpdate {
pub fn apply_changeset(self, source: PayoutAttempt) -> PayoutAttempt {
let PayoutAttemptUpdateInternal {
payout_token,
connector_payout_id,
status,
error_message,
error_code,
is_eligible,
business_... | crates/diesel_models/src/payout_attempt.rs | diesel_models | impl_block | 362 | rust | null | PayoutAttemptUpdate | null | impl PayoutAttemptUpdate | null | null | null | null | null | null | null | null |
impl Responder {
let flow = Flow::PaymentsRedirect;
let (payment_id, merchant_id, connector, creds_identifier) = path.into_inner();
let param_string = req.query_string();
tracing::Span::current().record("payment_id", payment_id.get_string_repr());
let payload = payments::PaymentsRedirectResponseDa... | crates/router/src/routes/payments.rs | router | impl_block | 294 | rust | null | Responder | null | impl Responder | null | null | null | null | null | null | null | null |
impl DecisionEngineApiHandler for SRApiClient {
async fn send_decision_engine_request<Req, Res>(
state: &SessionState,
http_method: services::Method,
path: &str,
request_body: Option<Req>,
timeout: Option<u64>,
events_wrapper: Option<RoutingEventsWrapper<Req>>,
) ... | crates/router/src/core/payments/routing/utils.rs | router | impl_block | 284 | rust | null | SRApiClient | DecisionEngineApiHandler for | impl DecisionEngineApiHandler for for SRApiClient | null | null | null | null | null | null | null | null |
pub async fn retrieve_apple_pay_verified_domains(
state: web::Data<AppState>,
req: HttpRequest,
params: web::Query<verifications::ApplepayGetVerifiedDomainsParam>,
) -> impl Responder {
let flow = Flow::Verification;
let merchant_id = ¶ms.merchant_id;
let mca_id = ¶ms.merchant_connector_... | crates/router/src/routes/verification.rs | router | function_signature | 226 | rust | null | null | null | null | retrieve_apple_pay_verified_domains | null | null | null | null | null | null | null |
pub async fn organization_update(
state: web::Data<AppState>,
req: HttpRequest,
org_id: web::Path<common_utils::id_type::OrganizationId>,
json_payload: web::Json<admin::OrganizationUpdateRequest>,
) -> HttpResponse {
let flow = Flow::OrganizationUpdate;
let organization_id = org_id.into_inner();... | crates/router/src/routes/admin.rs | router | function_signature | 204 | rust | null | null | null | null | organization_update | null | null | null | null | null | null | null |
pub struct GetTokenizePayloadResponse {
pub lookup_key: String,
pub get_value2: Option<bool>,
} | crates/api_models/src/payment_methods.rs | api_models | struct_definition | 25 | rust | GetTokenizePayloadResponse | null | null | null | null | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.AuthenticationCreateRequest
{
"type": "object",
"required": [
"amount",
"currency"
],
"properties": {
"authentication_id": {
"type": "string",
"description": "The unique identifier for this authentication.",
"example": "auth_mbabizu24mvu3mela5... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 464 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"AuthenticationCreateRequest"
] | null | null | null | null |
pub fn new(identifier: String) -> Self {
Self(identifier)
} | crates/hyperswitch_constraint_graph/src/types.rs | hyperswitch_constraint_graph | function_signature | 16 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
pub struct FrmMetricsBucketIdentifier {
pub frm_status: Option<String>,
pub frm_name: Option<String>,
pub frm_transaction_type: Option<String>,
#[serde(rename = "time_range")]
pub time_bucket: TimeRange,
#[serde(rename = "time_bucket")]
#[serde(with = "common_utils::custom_serde::iso8601cust... | crates/api_models/src/analytics/frm.rs | api_models | struct_definition | 89 | rust | FrmMetricsBucketIdentifier | null | null | null | null | null | null | null | null | null | null | null |
pub struct PowertranzBaseResponse {
transaction_type: u8,
approved: bool,
transaction_identifier: String,
original_trxn_identifier: Option<String>,
errors: Option<Vec<Error>>,
iso_response_code: String,
redirect_data: Option<Secret<String>>,
response_message: String,
order_identifier... | crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | hyperswitch_connectors | struct_definition | 72 | rust | PowertranzBaseResponse | null | null | null | null | null | null | null | null | null | null | null |
pub struct PayeezyPaymentsMetadata {
transaction_tag: String,
} | crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs | hyperswitch_connectors | struct_definition | 15 | rust | PayeezyPaymentsMetadata | null | null | null | null | null | null | null | null | null | null | null |
pub async fn perform_eligibility_analysis_with_fallback(
state: &SessionState,
key_store: &domain::MerchantKeyStore,
chosen: Vec<routing_types::RoutableConnectorChoice>,
transaction_data: &routing::TransactionData<'_>,
eligible_connectors: Option<Vec<api_enums::RoutableConnectors>>,
business_pro... | crates/router/src/core/payments/routing.rs | router | function_signature | 321 | rust | null | null | null | null | perform_eligibility_analysis_with_fallback | null | null | null | null | null | null | null |
impl TraceAssertion {
/// Should the provided url be traced
fn should_trace_url(&self, url: &str) -> bool {
match &self.clauses {
Some(clauses) => clauses.iter().all(|cur| cur.compare_url(url)),
None => self.default,
}
}
} | crates/router_env/src/logger/setup.rs | router_env | impl_block | 66 | rust | null | TraceAssertion | null | impl TraceAssertion | null | null | null | null | null | null | null | null |
impl api::PaymentCapture for Fiservemea {} | crates/hyperswitch_connectors/src/connectors/fiservemea.rs | hyperswitch_connectors | impl_block | 12 | rust | null | Fiservemea | api::PaymentCapture for | impl api::PaymentCapture for for Fiservemea | null | null | null | null | null | null | null | null |
impl PaymentAttemptBatchNew {
// // Used to verify compatibility with PaymentAttemptTable
// fn convert_into_normal_attempt_insert(self) -> PaymentAttemptNew {
// // PaymentAttemptNew {
// // payment_id: self.payment_id,
// // merchant_id: self.merchant_id,
// // stat... | crates/diesel_models/src/user/sample_data.rs | diesel_models | impl_block | 692 | rust | null | PaymentAttemptBatchNew | null | impl PaymentAttemptBatchNew | null | null | null | null | null | null | null | null |
File: crates/router/src/core/verification/utils.rs
Public functions: 4
use common_utils::{errors::CustomResult, id_type::PaymentId};
use error_stack::{Report, ResultExt};
use crate::{
core::{
errors::{self, utils::StorageErrorExt},
utils,
},
logger,
routes::SessionState,
services:... | crates/router/src/core/verification/utils.rs | router | full_file | 1,196 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl api::revenue_recovery_v2::BillingConnectorPaymentsSyncIntegrationV2 for Recurly {} | crates/hyperswitch_connectors/src/connectors/recurly.rs | hyperswitch_connectors | impl_block | 21 | rust | null | Recurly | api::revenue_recovery_v2::BillingConnectorPaymentsSyncIntegrationV2 for | impl api::revenue_recovery_v2::BillingConnectorPaymentsSyncIntegrationV2 for for Recurly | null | null | null | null | null | null | null | null |
impl api::RefundSync for Powertranz {} | crates/hyperswitch_connectors/src/connectors/powertranz.rs | hyperswitch_connectors | impl_block | 11 | rust | null | Powertranz | api::RefundSync for | impl api::RefundSync for for Powertranz | null | null | null | null | null | null | null | null |
File: crates/router/src/routes/feature_matrix.rs
Public functions: 2
use actix_web::{web, HttpRequest, Responder};
use api_models::{connector_enums::Connector, feature_matrix};
use common_enums::enums;
use hyperswitch_domain_models::{
api::ApplicationResponse, router_response_types::PaymentMethodTypeMetadata,
};
... | crates/router/src/routes/feature_matrix.rs | router | full_file | 1,137 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl WebhookEvents {
pub fn server(config: AppState) -> Scope {
web::scope("/events")
.app_data(web::Data::new(config))
.service(web::scope("/profile/list").service(web::resource("").route(
web::post().to(webhook_events::list_initial_webhook_delivery_attempts_with_jwt... | crates/router/src/routes/app.rs | router | impl_block | 194 | rust | null | WebhookEvents | null | impl WebhookEvents | null | null | null | null | null | null | null | null |
pub struct PaymentIntentCore {
pub payment_id: common_utils::id_type::PaymentId,
} | crates/router/src/core/fraud_check/types.rs | router | struct_definition | 21 | rust | PaymentIntentCore | null | null | null | null | null | null | null | null | null | null | null |
pub async fn construct_mandate_revoke_router_data(
state: &SessionState,
merchant_connector_account: helpers::MerchantConnectorAccountType,
merchant_context: &domain::MerchantContext,
mandate: Mandate,
) -> CustomResult<types::MandateRevokeRouterData, errors::ApiErrorResponse> {
let auth_type: types... | crates/router/src/core/mandate/utils.rs | router | function_signature | 660 | rust | null | null | null | null | construct_mandate_revoke_router_data | null | null | null | null | null | null | null |
impl PaymentMethodSession {
pub fn apply_changeset(self, update_session: PaymentMethodsSessionUpdateInternal) -> Self {
let Self {
id,
customer_id,
billing,
psp_tokenization,
network_tokenization,
tokenization_data,
expires_... | crates/diesel_models/src/payment_methods_session.rs | diesel_models | impl_block | 179 | rust | null | PaymentMethodSession | null | impl PaymentMethodSession | null | null | null | null | null | null | null | null |
Documentation: api-reference/v2/payment-method-session/payment-method-session--create.mdx
# Type: Doc File
---
openapi: post /v2/payment-method-sessions
---
| api-reference/v2/payment-method-session/payment-method-session--create.mdx | null | doc_file | 37 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct MetricsBucketResponse {
#[serde(flatten)]
pub values: SdkEventMetricsBucketValue,
#[serde(flatten)]
pub dimensions: SdkEventMetricsBucketIdentifier,
} | crates/api_models/src/analytics/sdk_events.rs | api_models | struct_definition | 41 | rust | MetricsBucketResponse | null | null | null | null | null | null | null | null | null | null | null |
File: crates/router_derive/src/macros/diesel.rs
Public functions: 1
use proc_macro2::{Span, TokenStream};
use quote::{format_ident, quote, ToTokens};
use syn::{parse::Parse, Data, DeriveInput, ItemEnum};
use crate::macros::helpers;
pub(crate) fn diesel_enum_text_derive_inner(ast: &DeriveInput) -> syn::Result<TokenS... | crates/router_derive/src/macros/diesel.rs | router_derive | full_file | 1,759 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl Phonepe {
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMinorUnitForConnector,
}
}
} | crates/hyperswitch_connectors/src/connectors/phonepe.rs | hyperswitch_connectors | impl_block | 34 | rust | null | Phonepe | null | impl Phonepe | null | null | null | null | null | null | null | null |
impl api::RefundExecute for Redsys {} | crates/hyperswitch_connectors/src/connectors/redsys.rs | hyperswitch_connectors | impl_block | 10 | rust | null | Redsys | api::RefundExecute for | impl api::RefundExecute for for Redsys | null | null | null | null | null | null | null | null |
pub struct DomainId(usize); | crates/hyperswitch_constraint_graph/src/types.rs | hyperswitch_constraint_graph | struct_definition | 7 | rust | DomainId | null | null | null | null | null | null | null | null | null | null | null |
impl api::Refund for Santander {} | crates/hyperswitch_connectors/src/connectors/santander.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Santander | api::Refund for | impl api::Refund for for Santander | null | null | null | null | null | null | null | null |
File: crates/analytics/src/payments/metrics/sessionized_metrics/retries_count.rs
use std::collections::HashSet;
use api_models::{
analytics::{
payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier},
Granularity, TimeRange,
},
enums::IntentStatus,
};
use common_utils:... | crates/analytics/src/payments/metrics/sessionized_metrics/retries_count.rs | analytics | full_file | 973 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub fn new() -> &'static Self {
&Self {
amount_converter: &StringMajorUnitForConnector,
}
} | crates/hyperswitch_connectors/src/connectors/amazonpay.rs | hyperswitch_connectors | function_signature | 28 | rust | null | null | null | null | new | null | null | null | null | null | null | null |
OpenAPI Block Path: components.schemas.PaypalAdditionalData
{
"type": "object",
"description": "Masked payout method details for paypal wallet payout method",
"properties": {
"email": {
"type": "string",
"description": "Email linked with paypal account",
"example": "john.doe@example.com",
... | ./hyperswitch/api-reference/v1/openapi_spec_v1.json | null | openapi_block | 178 | .json | null | null | null | null | null | openapi_spec | components | [
"schemas",
"PaypalAdditionalData"
] | null | null | null | null |
pub struct FiuuPaymentRedirectResponse {
pub skey: Secret<String>,
#[serde(rename = "tranID")]
pub tran_id: String,
pub status: FiuuPaymentWebhookStatus,
pub appcode: Option<String>,
pub error_code: Option<String>,
pub error_desc: Option<String>,
} | crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs | hyperswitch_connectors | struct_definition | 70 | rust | FiuuPaymentRedirectResponse | null | null | null | null | null | null | null | null | null | null | null |
impl ConnectorSpecifications for Opennode {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
Some(&OPENNODE_CONNECTOR_INFO)
}
fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
Some(&*OPENNODE_SUPPORTED_PAYMENT_METHODS)
}
fn get_s... | crates/hyperswitch_connectors/src/connectors/opennode.rs | hyperswitch_connectors | impl_block | 106 | rust | null | Opennode | ConnectorSpecifications for | impl ConnectorSpecifications for for Opennode | null | null | null | null | null | null | null | null |
### Bug Fixes
- **connector:** [NETCETERA] add fixes for authentication response fields ([#8907](https://github.com/juspay/hyperswitch/pull/8907)) ([`58b3e64`](https://github.com/juspay/hyperswitch/commit/58b3e64f5e4777c6a9a37a9fb12a5a24c689db61))
- **eps_bank_name:** Send eps supported bank names inside the structs f... | CHANGELOG.md#chunk2 | null | doc_chunk | 8,166 | doc | null | null | null | null | null | null | null | null | null | null | null | null |
File: crates/hyperswitch_connectors/src/connectors/recurly.rs
Public functions: 1
Public structs: 1
pub mod transformers;
use base64::Engine;
#[cfg(all(feature = "v2", feature = "revenue_recovery"))]
use common_utils::request::{Method, Request, RequestBuilder};
use common_utils::{consts, errors::CustomResult, ext_t... | crates/hyperswitch_connectors/src/connectors/recurly.rs | hyperswitch_connectors | full_file | 4,820 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub async fn refund_manual_update(
state: SessionState,
req: api_models::refunds::RefundManualUpdateRequest,
) -> RouterResponse<serde_json::Value> {
let key_manager_state = &(&state).into();
let key_store = state
.store
.get_merchant_key_store_by_merchant_id(
key_manager_sta... | crates/router/src/core/refunds.rs | router | function_signature | 428 | rust | null | null | null | null | refund_manual_update | null | null | null | null | null | null | null |
File: crates/hyperswitch_domain_models/src/errors/api_error_response.rs
use api_models::errors::types::Extra;
use common_utils::errors::ErrorSwitch;
use http::StatusCode;
use crate::router_data;
#[derive(Clone, Debug, serde::Serialize)]
#[serde(rename_all = "snake_case")]
pub enum ErrorType {
InvalidRequestError... | crates/hyperswitch_domain_models/src/errors/api_error_response.rs#chunk0 | hyperswitch_domain_models | chunk | 8,189 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl super::behaviour::Conversion for Event {
type DstType = diesel_models::events::Event;
type NewDstType = diesel_models::events::EventNew;
async fn convert(self) -> CustomResult<Self::DstType, ValidationError> {
Ok(diesel_models::events::Event {
event_id: self.event_id,
e... | crates/router/src/types/domain/event.rs | router | impl_block | 840 | rust | null | Event | super::behaviour::Conversion for | impl super::behaviour::Conversion for for Event | null | null | null | null | null | null | null | null |
pub async fn add_delete_tokenized_data_task(
db: &dyn db::StorageInterface,
lookup_key: &str,
pm: enums::PaymentMethod,
) -> RouterResult<()> {
let runner = storage::ProcessTrackerRunner::DeleteTokenizeDataWorkflow;
let process_tracker_id = format!("{runner}_{lookup_key}");
let task = runner.to_... | crates/router/src/core/payment_methods/vault.rs | router | function_signature | 307 | rust | null | null | null | null | add_delete_tokenized_data_task | null | null | null | null | null | null | null |
File: crates/router/src/core/payout_link.rs
Public functions: 4
use std::{
cmp::Ordering,
collections::{HashMap, HashSet},
};
use actix_web::http::header;
use api_models::payouts;
use common_utils::{
ext_traits::{AsyncExt, Encode, OptionExt},
link_utils,
types::{AmountConvertor, StringMajorUnitFo... | crates/router/src/core/payout_link.rs | router | full_file | 3,862 | null | null | null | null | null | null | null | null | null | null | null | null | null |
pub struct GooglePayRedirectData {} | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | struct_definition | 7 | rust | GooglePayRedirectData | null | null | null | null | null | null | null | null | null | null | null |
pub struct DatatransRefundRequest {
pub amount: MinorUnit,
pub currency: enums::Currency,
pub refno: String,
} | crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | hyperswitch_connectors | struct_definition | 32 | rust | DatatransRefundRequest | null | null | null | null | null | null | null | null | null | null | null |
pub async fn payments_intent_core<F, Res, Req, Op, D>(
state: SessionState,
req_state: ReqState,
merchant_context: domain::MerchantContext,
profile: domain::Profile,
operation: Op,
req: Req,
payment_id: id_type::GlobalPaymentId,
header_payload: HeaderPayload,
) -> RouterResponse<Res>
whe... | crates/router/src/core/payments.rs | router | function_signature | 267 | rust | null | null | null | null | payments_intent_core | null | null | null | null | null | null | null |
File: crates/router/tests/connectors/blackhawknetwork.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 Blackh... | crates/router/tests/connectors/blackhawknetwork.rs | router | full_file | 2,935 | null | null | null | null | null | null | null | null | null | null | null | null | null |
impl super::KafkaMessage for KafkaPaymentIntent<'_> {
fn key(&self) -> String {
format!(
"{}_{}",
self.merchant_id.get_string_repr(),
self.get_id().get_string_repr(),
)
}
fn event_type(&self) -> crate::events::EventType {
crate::events::EventType:... | crates/router/src/services/kafka/payment_intent.rs | router | impl_block | 79 | rust | null | KafkaPaymentIntent | super::KafkaMessage for | impl super::KafkaMessage for for KafkaPaymentIntent | null | null | null | null | null | null | null | null |
pub async fn payouts_fulfill(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<id_type::PayoutId>,
) -> HttpResponse {
let flow = Flow::PayoutsFulfill;
let payload = payout_types::PayoutActionRequest {
payout_id: path.into_inner(),
};
Box::pin(api::server_wrap(
... | crates/router/src/routes/payouts.rs | router | function_signature | 201 | rust | null | null | null | null | payouts_fulfill | null | null | null | null | null | null | null |
impl<V: ValueNode> Default for Memoization<V> {
#[inline]
fn default() -> Self {
Self::new()
}
} | crates/hyperswitch_constraint_graph/src/types.rs | hyperswitch_constraint_graph | impl_block | 32 | rust | null | Memoization | Default for | impl Default for for Memoization | null | null | null | null | null | null | null | null |
impl api::Refund for Flexiti {} | crates/hyperswitch_connectors/src/connectors/flexiti.rs | hyperswitch_connectors | impl_block | 9 | rust | null | Flexiti | api::Refund for | impl api::Refund for for Flexiti | null | null | null | null | null | null | null | null |
impl Default for EventsHandler {
fn default() -> Self {
Self::Logs(event_logger::EventLogger {})
}
} | crates/router/src/events.rs | router | impl_block | 26 | rust | null | EventsHandler | Default for | impl Default for for EventsHandler | 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.